[
  {
    "path": ".htaccess",
    "content": ""
  },
  {
    "path": "404.php",
    "content": "<div class=\"d-flex justify-content-center align-items-center main\" id=\"main\">\n    <h1 class=\"mr-3 pr-3 align-top border-right inline-block align-content-center\">404</h1>\n    <div class=\"inline-block align-middle\">\n    \t<h2 class=\"font-weight-normal lead\" id=\"desc\">The page you requested was not found.</h2>\n    </div>\n</div>\n\n<style type=\"text/css\">\n\t.main {\n    \theight: 100vh;\n    \ttext-align: center;\n    \tcolor: #ffffff!important;\n\t}\n</style>"
  },
  {
    "path": "README.md",
    "content": "# Student Management System\n\n> This is a simple web-based open source software written in PHP and JavaScript. This was specifically written for school or educational organization. You can easily install this system in your own server.\n\n> If you find any bug or added new feature feel free to send a pull request.\n\n> If you have any suggestions feel free create issues.\n\n- [Demo](#demo)\n- [Feature](#feature-of-student-management-system)\n- [Technology](#technology)\n- [Screen Shot](#screen-shot)\n- [Installation](#installation)\n\nDemo\n-----------------------------\n- **URL** - http://ems.tserm.com\n- **Username** -  github_user\n- **Password** - guser\n\nFeature of Student Management System\n-----------------------------\n- Add Student Information\n- Admit Student In Multiple Program\n- Student Payment System\n- Student Attendence System\n- Generate Student Id Card\n- Program Add\n- Exam Add\n- Add Exam Result Add and generate Auto Ranking\n- Sending Result by SMS\n- Sending Notice By SMS\n- Institute Report (Payment,Expence,Income,Profit,Attendence)\n- All Activity are Auto Saved and Admin or User Can See Change Previous and Present Change\n\nTechnology\n-----------------------\n- PHP\n- Ajax\n- Java Script\n- Bootstrap\n- Html\n- css\n- mysql\n\nScreen Shot\n-----------------------\n![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/login_screen.png) Login Screen | ![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/dashboard.PNG) Dashboard |\n|-|-|\n\n![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/user_profile.PNG) User Profile | ![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/student_profile.PNG) Student Profile |\n|-|-|\n\n![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/id_card.PNG) ID Card | ![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/print_id_card.PNG) Print ID Card | \n|-|-|\n\n![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/monthly_attendence_report.PNG) Student Attendence Report | ![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/payment_dashboard.PNG) Payment Dashboard |\n|-|-|\n\n![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/payment_status_list.PNG) Payment Status List | ![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/payment_money_recept.PNG) Payment Money Recept |\n|-|-|\n\n![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/sms_dashboard.PNG) SMS Dashboard | ![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/compare_user_activity_data.PNG) Compare User Activity |\n|-|-|\n\n![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/theme_change.PNG) Multiple Themes | ![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/update_setting.png) Update Institute Information |\n|-|-|\n\nInstallation\n-----------------------\n- Clone this project from https://github.com/amirhamza05/Student-Management-System\n- After clone you can see this installation screen\n![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/install_screen.png)\n\n- Fill this database setup form and when you install button click then if information is correct then you see install success screen\n![screenshot](https://raw.githubusercontent.com/amirhamza05/Student-Management-System/master/screen_shot/install_success.png)\n\n- After this your install is complete then you can login this system. Your Default id and password is 'admin' and 'admin'.\n\n\n\n\n"
  },
  {
    "path": "account.php",
    "content": "\n\n<?php \n\ninclude \"layout/header.php\";\n\nif(isset($_GET['type'])){\n  $type=$_GET['type'];\n  if ($type==\"expence\") {\n  \tinclude \"page/account/expence.php\";\n  }\n  else if($type==\"income\"){\n  \tinclude \"page/account/income.php\";\n  }\n}\n\n\ninclude \"layout/footer.php\";\n\n\n ?>"
  },
  {
    "path": "account_action.php",
    "content": "<?php\n\ninclude \"layout/header_script.php\";\ninclude \"page_action/account/account.php\";\n\n?>"
  },
  {
    "path": "add_result.php",
    "content": "<?php\n\ninclude 'layout/header.php';\ninclude 'page/result/add_result.php';\ninclude 'layout/footer.php';\n\n?>"
  },
  {
    "path": "add_result_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\ninclude 'page_action/result/result_action.php';\n\n\n?>"
  },
  {
    "path": "add_student.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/student/add_student.php\";\ninclude \"layout/footer.php\";\n\n?>"
  },
  {
    "path": "api.php",
    "content": "<?php\n\n\ninclude \"page/api/api.php\";\n\n\n?>\n\n"
  },
  {
    "path": "attend.php",
    "content": "<?php\ninclude 'layout/header.php';\ninclude \"page/attend/attend.php\";\ninclude \"layout/footer.php\";\n\n?>"
  },
  {
    "path": "attend_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\ninclude \"page_action/attend/attend_action.php\";\n\n\n\n?>"
  },
  {
    "path": "barcode.php",
    "content": "<?php\n\n/*\n =\n *  Usage:\t<img src=\"/barcode.php?text=testing\" alt=\"testing\" />\n */\n// For demonstration purposes, get pararameters that are passed in through $_GET or set to the default value\n\n\n\n$filepath = (isset($_GET[\"filepath\"])?$_GET[\"filepath\"]:\"\");\n$text = (isset($_GET[\"text\"])?$_GET[\"text\"]:\"0\");\n$size = (isset($_GET[\"size\"])?$_GET[\"size\"]:\"20\");\n\n$orientation = (isset($_GET[\"orientation\"])?$_GET[\"orientation\"]:\"horizontal\");\n\n$code_type = (isset($_GET[\"codetype\"])?$_GET[\"codetype\"]:\"code128\");\n$print = (isset($_GET[\"print\"])&&$_GET[\"print\"]=='true'?true:false);\n$sizefactor = (isset($_GET[\"sizefactor\"])?$_GET[\"sizefactor\"]:\"1\");\n// This function call can be copied into your project and can be made from anywhere in your code\nbarcode( $filepath, $text, $size, $orientation, $code_type, $print, $sizefactor );\nfunction barcode( $filepath=\"\", $text=\"0\", $size=\"20\", $orientation=\"horizontal\", $code_type=\"code128\", $print=false, $SizeFactor=1 ) {\n\t$code_string = \"\";\n\t// Translate the $text into barcode the correct $code_type\n\tif ( in_array(strtolower($code_type), array(\"code128\", \"code128b\")) ) {\n\t\t$chksum = 104;\n\t\t// Must not change order of array elements as the checksum depends on the array's key to validate final code\n\t\t$code_array = array(\" \"=>\"212222\",\"!\"=>\"222122\",\"\\\"\"=>\"222221\",\"#\"=>\"121223\",\"$\"=>\"121322\",\"%\"=>\"131222\",\"&\"=>\"122213\",\"'\"=>\"122312\",\"(\"=>\"132212\",\")\"=>\"221213\",\"*\"=>\"221312\",\"+\"=>\"231212\",\",\"=>\"112232\",\"-\"=>\"122132\",\".\"=>\"122231\",\"/\"=>\"113222\",\"0\"=>\"123122\",\"1\"=>\"123221\",\"2\"=>\"223211\",\"3\"=>\"221132\",\"4\"=>\"221231\",\"5\"=>\"213212\",\"6\"=>\"223112\",\"7\"=>\"312131\",\"8\"=>\"311222\",\"9\"=>\"321122\",\":\"=>\"321221\",\";\"=>\"312212\",\"<\"=>\"322112\",\"=\"=>\"322211\",\">\"=>\"212123\",\"?\"=>\"212321\",\"@\"=>\"232121\",\"A\"=>\"111323\",\"B\"=>\"131123\",\"C\"=>\"131321\",\"D\"=>\"112313\",\"E\"=>\"132113\",\"F\"=>\"132311\",\"G\"=>\"211313\",\"H\"=>\"231113\",\"I\"=>\"231311\",\"J\"=>\"112133\",\"K\"=>\"112331\",\"L\"=>\"132131\",\"M\"=>\"113123\",\"N\"=>\"113321\",\"O\"=>\"133121\",\"P\"=>\"313121\",\"Q\"=>\"211331\",\"R\"=>\"231131\",\"S\"=>\"213113\",\"T\"=>\"213311\",\"U\"=>\"213131\",\"V\"=>\"311123\",\"W\"=>\"311321\",\"X\"=>\"331121\",\"Y\"=>\"312113\",\"Z\"=>\"312311\",\"[\"=>\"332111\",\"\\\\\"=>\"314111\",\"]\"=>\"221411\",\"^\"=>\"431111\",\"_\"=>\"111224\",\"\\`\"=>\"111422\",\"a\"=>\"121124\",\"b\"=>\"121421\",\"c\"=>\"141122\",\"d\"=>\"141221\",\"e\"=>\"112214\",\"f\"=>\"112412\",\"g\"=>\"122114\",\"h\"=>\"122411\",\"i\"=>\"142112\",\"j\"=>\"142211\",\"k\"=>\"241211\",\"l\"=>\"221114\",\"m\"=>\"413111\",\"n\"=>\"241112\",\"o\"=>\"134111\",\"p\"=>\"111242\",\"q\"=>\"121142\",\"r\"=>\"121241\",\"s\"=>\"114212\",\"t\"=>\"124112\",\"u\"=>\"124211\",\"v\"=>\"411212\",\"w\"=>\"421112\",\"x\"=>\"421211\",\"y\"=>\"212141\",\"z\"=>\"214121\",\"{\"=>\"412121\",\"|\"=>\"111143\",\"}\"=>\"111341\",\"~\"=>\"131141\",\"DEL\"=>\"114113\",\"FNC 3\"=>\"114311\",\"FNC 2\"=>\"411113\",\"SHIFT\"=>\"411311\",\"CODE C\"=>\"113141\",\"FNC 4\"=>\"114131\",\"CODE A\"=>\"311141\",\"FNC 1\"=>\"411131\",\"Start A\"=>\"211412\",\"Start B\"=>\"211214\",\"Start C\"=>\"211232\",\"Stop\"=>\"2331112\");\n\t\t$code_keys = array_keys($code_array);\n\t\t$code_values = array_flip($code_keys);\n\t\tfor ( $X = 1; $X <= strlen($text); $X++ ) {\n\t\t\t$activeKey = substr( $text, ($X-1), 1);\n\t\t\t$code_string .= $code_array[$activeKey];\n\t\t\t$chksum=($chksum + ($code_values[$activeKey] * $X));\n\t\t}\n\t\t$code_string .= $code_array[$code_keys[($chksum - (intval($chksum / 103) * 103))]];\n\t\t$code_string = \"211214\" . $code_string . \"2331112\";\n\t} elseif ( strtolower($code_type) == \"code128a\" ) {\n\t\t$chksum = 103;\n\t\t$text = strtoupper($text); // Code 128A doesn't support lower case\n\t\t// Must not change order of array elements as the checksum depends on the array's key to validate final code\n\t\t$code_array = array(\" \"=>\"212222\",\"!\"=>\"222122\",\"\\\"\"=>\"222221\",\"#\"=>\"121223\",\"$\"=>\"121322\",\"%\"=>\"131222\",\"&\"=>\"122213\",\"'\"=>\"122312\",\"(\"=>\"132212\",\")\"=>\"221213\",\"*\"=>\"221312\",\"+\"=>\"231212\",\",\"=>\"112232\",\"-\"=>\"122132\",\".\"=>\"122231\",\"/\"=>\"113222\",\"0\"=>\"123122\",\"1\"=>\"123221\",\"2\"=>\"223211\",\"3\"=>\"221132\",\"4\"=>\"221231\",\"5\"=>\"213212\",\"6\"=>\"223112\",\"7\"=>\"312131\",\"8\"=>\"311222\",\"9\"=>\"321122\",\":\"=>\"321221\",\";\"=>\"312212\",\"<\"=>\"322112\",\"=\"=>\"322211\",\">\"=>\"212123\",\"?\"=>\"212321\",\"@\"=>\"232121\",\"A\"=>\"111323\",\"B\"=>\"131123\",\"C\"=>\"131321\",\"D\"=>\"112313\",\"E\"=>\"132113\",\"F\"=>\"132311\",\"G\"=>\"211313\",\"H\"=>\"231113\",\"I\"=>\"231311\",\"J\"=>\"112133\",\"K\"=>\"112331\",\"L\"=>\"132131\",\"M\"=>\"113123\",\"N\"=>\"113321\",\"O\"=>\"133121\",\"P\"=>\"313121\",\"Q\"=>\"211331\",\"R\"=>\"231131\",\"S\"=>\"213113\",\"T\"=>\"213311\",\"U\"=>\"213131\",\"V\"=>\"311123\",\"W\"=>\"311321\",\"X\"=>\"331121\",\"Y\"=>\"312113\",\"Z\"=>\"312311\",\"[\"=>\"332111\",\"\\\\\"=>\"314111\",\"]\"=>\"221411\",\"^\"=>\"431111\",\"_\"=>\"111224\",\"NUL\"=>\"111422\",\"SOH\"=>\"121124\",\"STX\"=>\"121421\",\"ETX\"=>\"141122\",\"EOT\"=>\"141221\",\"ENQ\"=>\"112214\",\"ACK\"=>\"112412\",\"BEL\"=>\"122114\",\"BS\"=>\"122411\",\"HT\"=>\"142112\",\"LF\"=>\"142211\",\"VT\"=>\"241211\",\"FF\"=>\"221114\",\"CR\"=>\"413111\",\"SO\"=>\"241112\",\"SI\"=>\"134111\",\"DLE\"=>\"111242\",\"DC1\"=>\"121142\",\"DC2\"=>\"121241\",\"DC3\"=>\"114212\",\"DC4\"=>\"124112\",\"NAK\"=>\"124211\",\"SYN\"=>\"411212\",\"ETB\"=>\"421112\",\"CAN\"=>\"421211\",\"EM\"=>\"212141\",\"SUB\"=>\"214121\",\"ESC\"=>\"412121\",\"FS\"=>\"111143\",\"GS\"=>\"111341\",\"RS\"=>\"131141\",\"US\"=>\"114113\",\"FNC 3\"=>\"114311\",\"FNC 2\"=>\"411113\",\"SHIFT\"=>\"411311\",\"CODE C\"=>\"113141\",\"CODE B\"=>\"114131\",\"FNC 4\"=>\"311141\",\"FNC 1\"=>\"411131\",\"Start A\"=>\"211412\",\"Start B\"=>\"211214\",\"Start C\"=>\"211232\",\"Stop\"=>\"2331112\");\n\t\t$code_keys = array_keys($code_array);\n\t\t$code_values = array_flip($code_keys);\n\t\tfor ( $X = 1; $X <= strlen($text); $X++ ) {\n\t\t\t$activeKey = substr( $text, ($X-1), 1);\n\t\t\t$code_string .= $code_array[$activeKey];\n\t\t\t$chksum=($chksum + ($code_values[$activeKey] * $X));\n\t\t}\n\t\t$code_string .= $code_array[$code_keys[($chksum - (intval($chksum / 103) * 103))]];\n\t\t$code_string = \"211412\" . $code_string . \"2331112\";\n\t} elseif ( strtolower($code_type) == \"code39\" ) {\n\t\t$code_array = array(\"0\"=>\"111221211\",\"1\"=>\"211211112\",\"2\"=>\"112211112\",\"3\"=>\"212211111\",\"4\"=>\"111221112\",\"5\"=>\"211221111\",\"6\"=>\"112221111\",\"7\"=>\"111211212\",\"8\"=>\"211211211\",\"9\"=>\"112211211\",\"A\"=>\"211112112\",\"B\"=>\"112112112\",\"C\"=>\"212112111\",\"D\"=>\"111122112\",\"E\"=>\"211122111\",\"F\"=>\"112122111\",\"G\"=>\"111112212\",\"H\"=>\"211112211\",\"I\"=>\"112112211\",\"J\"=>\"111122211\",\"K\"=>\"211111122\",\"L\"=>\"112111122\",\"M\"=>\"212111121\",\"N\"=>\"111121122\",\"O\"=>\"211121121\",\"P\"=>\"112121121\",\"Q\"=>\"111111222\",\"R\"=>\"211111221\",\"S\"=>\"112111221\",\"T\"=>\"111121221\",\"U\"=>\"221111112\",\"V\"=>\"122111112\",\"W\"=>\"222111111\",\"X\"=>\"121121112\",\"Y\"=>\"221121111\",\"Z\"=>\"122121111\",\"-\"=>\"121111212\",\".\"=>\"221111211\",\" \"=>\"122111211\",\"$\"=>\"121212111\",\"/\"=>\"121211121\",\"+\"=>\"121112121\",\"%\"=>\"111212121\",\"*\"=>\"121121211\");\n\t\t// Convert to uppercase\n\t\t$upper_text = strtoupper($text);\n\t\tfor ( $X = 1; $X<=strlen($upper_text); $X++ ) {\n\t\t\t$code_string .= $code_array[substr( $upper_text, ($X-1), 1)] . \"1\";\n\t\t}\n\t\t$code_string = \"1211212111\" . $code_string . \"121121211\";\n\t} elseif ( strtolower($code_type) == \"code25\" ) {\n\t\t$code_array1 = array(\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"0\");\n\t\t$code_array2 = array(\"3-1-1-1-3\",\"1-3-1-1-3\",\"3-3-1-1-1\",\"1-1-3-1-3\",\"3-1-3-1-1\",\"1-3-3-1-1\",\"1-1-1-3-3\",\"3-1-1-3-1\",\"1-3-1-3-1\",\"1-1-3-3-1\");\n\t\tfor ( $X = 1; $X <= strlen($text); $X++ ) {\n\t\t\tfor ( $Y = 0; $Y < count($code_array1); $Y++ ) {\n\t\t\t\tif ( substr($text, ($X-1), 1) == $code_array1[$Y] )\n\t\t\t\t\t$temp[$X] = $code_array2[$Y];\n\t\t\t}\n\t\t}\n\t\tfor ( $X=1; $X<=strlen($text); $X+=2 ) {\n\t\t\tif ( isset($temp[$X]) && isset($temp[($X + 1)]) ) {\n\t\t\t\t$temp1 = explode( \"-\", $temp[$X] );\n\t\t\t\t$temp2 = explode( \"-\", $temp[($X + 1)] );\n\t\t\t\tfor ( $Y = 0; $Y < count($temp1); $Y++ )\n\t\t\t\t\t$code_string .= $temp1[$Y] . $temp2[$Y];\n\t\t\t}\n\t\t}\n\t\t$code_string = \"1111\" . $code_string . \"311\";\n\t} elseif ( strtolower($code_type) == \"codabar\" ) {\n\t\t$code_array1 = array(\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"0\",\"-\",\"$\",\":\",\"/\",\".\",\"+\",\"A\",\"B\",\"C\",\"D\");\n\t\t$code_array2 = array(\"1111221\",\"1112112\",\"2211111\",\"1121121\",\"2111121\",\"1211112\",\"1211211\",\"1221111\",\"2112111\",\"1111122\",\"1112211\",\"1122111\",\"2111212\",\"2121112\",\"2121211\",\"1121212\",\"1122121\",\"1212112\",\"1112122\",\"1112221\");\n\t\t// Convert to uppercase\n\t\t$upper_text = strtoupper($text);\n\t\tfor ( $X = 1; $X<=strlen($upper_text); $X++ ) {\n\t\t\tfor ( $Y = 0; $Y<count($code_array1); $Y++ ) {\n\t\t\t\tif ( substr($upper_text, ($X-1), 1) == $code_array1[$Y] )\n\t\t\t\t\t$code_string .= $code_array2[$Y] . \"1\";\n\t\t\t}\n\t\t}\n\t\t$code_string = \"11221211\" . $code_string . \"1122121\";\n\t}\n\t// Pad the edges of the barcode\n\n\t$code_length = 20;\n\tif ($print) {\n\t\t$text_height = 30;\n\t} else {\n\t\t$text_height = 0;\n\t}\n\t\n\tfor ( $i=1; $i <= strlen($code_string); $i++ ){\n\t\t$code_length = $code_length + (integer)(substr($code_string,($i-1),1));\n        }\n\tif ( strtolower($orientation) == \"horizontal\" ) {\n\t\t$img_width = $code_length*$SizeFactor;\n\t\t$img_height = $size;\n\t} else {\n\t\t$img_width = $size;\n\t\t$img_height = $code_length*$SizeFactor;\n\t}\n\t$image = imagecreate($img_width, $img_height + $text_height);\n\t$black = imagecolorallocate ($image, 0, 0, 0);\n\t$white = imagecolorallocate ($image, 255, 255, 255);\n\timagefill( $image, 0, 0, $white );\n\tif ( $print ) {\n\t\timagestring($image, 5, 31, $img_height, $text, $black );\n\t}\n\t$location = 10;\n\tfor ( $position = 1 ; $position <= strlen($code_string); $position++ ) {\n\t\t$cur_size = $location + ( substr($code_string, ($position-1), 1) );\n\t\tif ( strtolower($orientation) == \"horizontal\" )\n\t\t\timagefilledrectangle( $image, $location*$SizeFactor, 0, $cur_size*$SizeFactor, $img_height, ($position % 2 == 0 ? $white : $black) );\n\t\telse\n\t\t\timagefilledrectangle( $image, 0, $location*$SizeFactor, $img_width, $cur_size*$SizeFactor, ($position % 2 == 0 ? $white : $black) );\n\t\t$location = $cur_size;\n\t}\n\t\n\t// Draw barcode to the screen or save in a file\n\tif ( $filepath==\"\" ) {\n\t\theader ('Content-type: image/png');\n\t\timagepng($image);\n\t\timagedestroy($image);\n\t}\n\t else {\n\t\timagepng($image,$filepath);\n\t\timagedestroy($image);\t\t\n\t}\n}\n\n\n\n?>"
  },
  {
    "path": "batch_action.php",
    "content": "<?php\n\ninclude \"page_action/batch_page_action.php\";\n\n?>"
  },
  {
    "path": "batch_list.php",
    "content": "<?php \n\ninclude \"layout/header.php\";\ninclude \"page/batch/batch_list.php\";\ninclude \"layout/footer.php\";\n\n\n?>"
  },
  {
    "path": "chat.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/chat/chat.php\";\ninclude \"layout/footer.php\";\n\n\n?>\n\n\n"
  },
  {
    "path": "config/config.php",
    "content": "<?php\n\ninclude \"db.php\";\ninclude \"connect.php\";\n\n?>"
  },
  {
    "path": "config/connect.php",
    "content": "\n<?php\n\nclass database {\n   \n\n public $host=db_host;\n public $user=db_user;\n public $pass=db_pass;\n public $db=db_name;\n public $result;\n public $conn;\n public $login_user;\n public $ip;\n public $browser;\n public $logo;\n public $main_logo;\n public $site_name;\n public $sort_name;\n public $address;\n public $phone;\n public $email;\n public $msg;\n\n //conection start\n\n public function __construct(){\n    $this->connection();\n    $this->set_institute_info();\n    date_default_timezone_set('Asia/Dhaka');\n }\n\n\npublic function connection(){\n\n     $this->conn =mysqli_connect($this->host,$this->user,$this->pass,$this->db);\n     if(!$this->conn){\n       echo \"Conection failed\";\n     }\n     else return 1;\n}\n\npublic function date(){\n  return $this->get_now_time();\n}\n\npublic function get_now_time(){\n  \n  $now=date(\"Y-m-d H:i:s\", time());\n  return $now;\n }\n\npublic function set_login_user($uid,$ip,$browser){\n  $this->login_user=$uid;\n  $this->ip=$ip;\n  $this->browser=$browser;\n}\n\npublic function select($query){\n return $this->result=mysqli_query($this->conn, $query);\n}\n\npublic function set_institute_info(){\n  $sql=\"select * from setting\";\n  $info=$this->get_sql_array($sql);\n  $img=\"upload/custom_content/\";\n  $this->site_name=$info[0]['option_value'];\n  $this->sort_name=$info[1]['option_value'];\n  $this->address=$info[2]['option_value'];\n  $this->phone=$info[5]['option_value'];\n  $this->email=$info[6]['option_value'];\n  $this->logo=$img.$info[4]['option_value'];\n  $this->main_logo=$img.$info[3]['option_value'];\n  $this->msg=\"@\".$info[1]['option_value'];\n\n}\n\npublic function date_to_string($date){\n  return date(\"d M Y h:i:A\", strtotime($date));\n}\n\npublic function get_select_last_id($query){\n  \n  if(mysqli_query($this->conn, $query)){\n    return mysqli_insert_id($this->conn);\n  }\n  else 0;\n}\n\npublic function process_mysql_array($info){\n  $res=array();\n  $c=0;\n  foreach ($info as $key => $value) {\n    if($c%2==1)$res[$key]=$value;\n    $c++;\n  }\n  return $res;\n}\n\npublic function get_sql_array($sql){\n  $info=array();\n  $res=$this->select($sql);\n  while($row=mysqli_fetch_array($res)){\n      $sub=array();\n      $sub=$this->process_mysql_array($row);\n      array_push($info, $sub);\n   }\n   return $info;\n}\n\npublic function action_link($table){\n  $index[\"batch\"]=\"batch_list\";\n  $index[\"student\"]=\"student_list\";\n  $index[\"program\"]=\"program_list\";\n  $index[\"subject\"]=\"subject_list\";\n  $index['exam']=\"exam_list\";\n  $index['theme']=\"theme\";\n\nreturn (isset($index[$table]))?$index[$table]:\"---\";\n}\n\n\n  public function insert_sql($arr,$table){\n    $sql=\"\";\n    $sql.=\"INSERT INTO \".$table;\n    $sql.=\" (\".implode(\",\", array_keys($arr)).\") VALUES \";\n    $sql.=\" ('\".implode(\"','\", array_values($arr)).\"')\";\n\n    return $sql;\n  }\n\n\npublic function Update_sql($arr,$table){\n    $sql=\"\";\n    $sql.=\"UPDATE \".$table.\" SET \";\n    $condition=\"\";\n    $size=sizeof($arr);\n    $c=0;\n    foreach ($arr as $key => $value) {\n       $condition.=$key.\"='\".$value.\"'\";\n      if($c!=$size-1)$condition.=\",\";\n      $c++;\n    }\n    $sql.=$condition;\n    $sql.=\" WHERE id=\".$arr['id'];\n    return $sql; \n}\n\npublic function get_previous_data($table,$id){\n  $sql=\"select * from $table WHERE id=$id\";\n  $info=$this->get_sql_array($sql);\n  if(isset($info[0]))return json_encode($info[0]);\n}\n\n\n\n  public function sql_action($table,$action,$info,$msg=\"yes\"){\n      $flag=0;\n      $action_name=\"\";\n      \n      if($action==\"update\"){\n        $action_name=\"Update \". $table;\n        $sql=$this->update_sql($info,$table);\n      }\n\n      else if($action==\"insert\"){\n        $action_name=\"Insert New \". $table;\n        $sql=$this->insert_sql($info,$table);\n      }\n\n      else if($action==\"delete\"){\n        $id=$info['id'];\n        $action_name=\"Delete \". $table;\n        $sql = \"DELETE FROM $table WHERE id=$id\";\n      }\n  \n\n  $present_data=\"\";\n  $previous_data=\"\";\n\n  if($table!=\"login\"){\n    if($action!=\"insert\"){\n      if($table!=\"site_activity\"){\n        $previous_data=$this->get_previous_data($table,$info['id']);\n      }\n    }     \n    if($action==\"insert\"){\n      $res=$this->get_select_last_id($sql);\n      if($table!=\"site_activity\")$present_data=$this->get_previous_data($table,$res);\n    }\n    else{\n      $res=$this->select($sql);\n      if($table!=\"site_activity\")$present_data=$this->get_previous_data($table,$info['id']);\n    } \n  }\n\n  else $res=1; \n    //echo \"$sql\";\n  if($res)$flag=1;\n  \n  if($flag==1 && $table!=\"chat\" && $table!=\"result\" && $table!=\"student_attendence\" && $table!=\"site_activity\" && $this->login_user!=\"\"){\n    $activity=array();\n    $table_id=($action==\"insert\")?$res:$info['id'];\n    $login=($table==\"login\")?1:0;\n    $activity['user_id']=$this->login_user;\n    $activity['table_name']=$table;\n    $activity['action_type']=$action;\n    $activity['login']=$login;\n    $activity['table_id']=$table_id;\n    $activity['date']=$this->date();\n    $activity['ip']=$this->ip; \n    $activity['browser']=$this->browser;\n    $activity['present_data']=$present_data;\n    $activity['previous_data']=$previous_data;\n\n    $this->sql_action(\"site_activity\",\"insert\",$activity,\"no\");\n  }\n\n  if($msg==\"yes\")$link=$this->action_link($table);\n  \n  if($flag==1 && $msg==\"yes\")echo \"<script>alert('Successfully $action_name!');</script><script>document.location='$link.php'</script>\";\n   else if($msg==\"yes\") echo \"<script>alert('Failed...Please Again Try!');</script><script>document.location='$link.php'</script>\";\n    if($flag==0)echo(\"Error description: \" . mysqli_error($this->conn));\n    if($msg==\"no\")return $flag;\n  }\n  \n\n\n\n// conection end\n}\n\n?>"
  },
  {
    "path": "config/db.php",
    "content": ""
  },
  {
    "path": "config/dbclass.php",
    "content": "\n<?php\n\nclass dbclass {\n   \n\n public $host=db_host;\n public $user=db_user;\n public $pass=db_pass;\n public $db=db_name;\n public $sql;\n public $result;\n public $conn;\n public $row;\n public $shaw;\n\n //conection start\n\n public function __construct(){\n     $this->connection();\n\n }\n\n\npublic function connection(){\n\n     $this->conn =mysqli_connect($this->host,$this->user,$this->pass,$this->db);\nif(!$this->conn){\necho \"Conection failed\";\n}\n\n}\n\npublic function select($query){\nreturn $this->result=mysqli_query($this->conn, $query);\n}\n\n\n\n}\n\n\n?>"
  },
  {
    "path": "dashboard_action.php",
    "content": "<?php\n\ninclude \"layout/header_script.php\";\ninclude \"page_action/dashboard/dashboard_action.php\";\n\n?>"
  },
  {
    "path": "edit_id_card.php",
    "content": "<?php\ninclude \"layout/header.php\";\ninclude \"page/id_card/edit_id_card.php\";\ninclude \"layout/footer.php\";\n?>"
  },
  {
    "path": "exam.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\n\n$ok=0;\n\nif(isset($_GET['page'])){\n\t$page=$_GET['page'];\n\tif($page==\"exam_category\"){\n\t\t$page=\"page/exam_page/exam_category/exam_category.php\";\n\t\t$ok=1;\n\t}\n\telse if($page==\"exam_panel\"){\n\t\t$page=\"page/exam_page/exam_panel/exam_panel.php\";\n\t\t$ok=1;\n\t}\n}\nif($ok==0)$page=\"404.php\";\ninclude \"$page\";\n\ninclude \"layout/footer.php\";\n\n\n?>"
  },
  {
    "path": "exam_action.php",
    "content": "<?php\n\n\ninclude \"layout/header_script.php\";\ninclude \"page_action/exam/exam_action.php\";\n\n\n\n?>"
  },
  {
    "path": "exam_category_action.php",
    "content": "<?php\n\n\ninclude \"layout/header_script.php\";\ninclude \"page_action/exam/exam_category/exam_category_action.php\";\n\n\n?>"
  },
  {
    "path": "exam_list.php",
    "content": "<?php\n\ninclude 'layout/header.php';\ninclude 'page/exam/exam_list.php';\ninclude 'layout/footer.php';\n\n\n?>"
  },
  {
    "path": "exam_panel.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/exam_panel/exam_panel.php\";\ninclude \"layout/footer.php\";\n\n\n?>"
  },
  {
    "path": "exam_panel_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\n\nif( isset($_SESSION['user'])!=\"\" ){\n\tinclude \"page_action/exam_panel/exam_panel.php\";\n}\n\nelse echo \"Api Request Is Not Found\";\n\n?>"
  },
  {
    "path": "export.php",
    "content": "<?php\n\ninclude \"layout/header_script.php\";\ninclude \"page/export/excel.php\";\n\n?>\n"
  },
  {
    "path": "id_card.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/id_card/id_card_editor/id_card_editor.php\";\ninclude \"layout/footer.php\";\n\n ?>\n\n\n\n "
  },
  {
    "path": "id_card_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\ninclude \"page_action/id_card/edit_id_card/edit_id_card_action.php\";\n\n?>"
  },
  {
    "path": "index.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/index/dashboard.php\";\ninclude \"layout/footer.php\";\n\n?>"
  },
  {
    "path": "install_action.php",
    "content": "<?php\n\ninclude \"page_action/install/install.php\";\n\n?>"
  },
  {
    "path": "install_system.php",
    "content": "<?php\ninclude \"script/install/install.php\";\n$install=new install();\n$step=$install->step_install();\nif($step==1)include 'page/install/install_system.php';\nelse header(\"Location: login.php\");\n\n\n?>"
  },
  {
    "path": "layout/bubble.php",
    "content": "\n<script type=\"text/javascript\" src=\"layout/js/bubble.js\"></script>\n\n<style type=\"text/css\">\n\t.theme_select .modal-dialog{max-width: 800px; width: 100%;}\n</style>\n\n<div class=\"containerr\" style=\"\">\n\t<div class=\"row\" style=\"\">\n\t\t        <div id=\"inbox\" >\n          <div style=\"position: fixed;\" class=\"fab btn-group show-on-hover dropup\">\n          <div data-toggle=\"tooltip\" data-placement=\"left\" title=\"Select Option\" style=\"margin-left: 42px;\">\n          <button type=\"button\" class=\"btn btn-danger btn-io dropdown-toggle\" data-toggle=\"dropdown\"  style=\"\">\n            <span class=\"fa-stack fa-2x\">\n                <i class=\"fa fa-circle fa-stack-2x fab-backdrop\"></i>\n                <i class=\"fa fa-plus fa-stack-1x fa-inverse fab-primary\"></i>\n                <i class=\"fa fa-pencil fa-stack-1x fa-inverse fab-secondary\"></i>\n            </span>\n          </button></div>\n          <ul class=\"dropdown-menu dropdown-menu-right\" role=\"menu\">\n\n            <li class=\"dropdown_sub\" style=\"\"><a onclick=\"get_theme_list()\" style=\"\"><i class=\"fa fa-tint\"></i></a> </li>\n\n          </ul>\n        </div>\n        </div>\n\t</div>\n</div>\n\n\n<div class=\"modal large fade theme_select\" id=\"theme\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n        \n        <div class=\"modal-body\" style=\"background-color: #ecf0f1\">\n        \t<?php include 'page/theme/theme_list.php'; ?> \n        </div>\n      </div>\n    </div>\n</div>\n\n<script type=\"text/javascript\">\n\t$('.fab').hover(function () {\n    $(this).toggleClass('active');\n});\n$(function () {\n  $('[data-toggle=\"tooltip\"]').tooltip()\n})\n</script>\n\n<style type=\"text/css\">\n\n\n\n.fab {\n  cursor: pointer;\n}\n.fab-backdrop {\n  color: rgba(255, 255, 255, 0);\n}\n.fab-primary, .fab-secondary {\n  transition: all 0.35s ease-in-out;\n}\n.fab.active .fab-primary {\n  opacity: 0;\n  transform: rotate(225deg);\n}\n.fab-secondary {\n  opacity: 0;\n  transform: rotate(-225deg);\n}\n.fab.active .fab-secondary {\n  opacity: 1;\n  transform: rotate(0);\n  margin-top: -2px;\n}\n\n\n\n#inbox .show-on-hover:hover > ul.dropdown-menu {\n    display: block;    \n}\n#inbox .show-on-hover {\n    position: absolute;\n    bottom: 40px;\n    right: 20px;\n}\n#inbox .btn-io{\n    height: 65px;\n    width: 65px;\n    padding: 0 !important;\n    border: 3px solid rgba(255,255,255,0.3);\n    border-radius: 100%;\n}\n#inbox .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu {\ntop: auto;\nbottom: 100%;\nmargin-bottom: 1px;\nmargin-bottom: -5px;\npadding-bottom: 30px;\n}\n#inbox .dropdown-menu-right {\nright: 0 !Important;\nleft: auto !Important;\n}\n#inbox .dropdown-menu {\nposition: absolute;\ntop: 100%;\nleft: 0;\nz-index: 1000;\ndisplay: none;\nfloat: left;\nmin-width: 60px;\npadding: 5px 0;\nmargin: 2px 0 0;\nfont-size: 14px;\ntext-align: center;\nlist-style: none;\nbackground-color: rgba(255, 255, 255, 0) !Important;\n-webkit-background-clip: padding-box;\nbackground-clip: padding-box;\nborder: none;\nborder-radius: 0px;\n-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0) !Important;\nbox-shadow: 0 6px 12px rgba(0, 0, 0, 0) !Important;\n}\n#inbox .fa-iox{\n    font-size: 22px;\n}\n#inbox .dropdown-menu > li > a {\ndisplay: block;\npadding: 0;\npadding-top: 4px;\nmargin-top: 20px;\nclear: both;\nfont-weight: normal;\nline-height: 1.42857143;\ncolor: #333;\nbackground: #fff;\nwhite-space: nowrap;\nwidth: 40px;\nheight: 40px;\nborder: solid 1px #ccc;\nborder-radius: 50px;\nfont-size: 21px;\nbox-shadow: 0px 3px 7px 0px rgba(203, 203, 203, 0.72);\n}\n#inbox .dropdown-menu > li:first-child>a {\n    background: #6E4320 !important;\n    color: #fff !important;\n}\n#inbox .dropdown-menu > li:last-child>a {\n    background: #D3A516;\n    color: #fff;\n}\n#inbox .dropdown-menu > li:nth-child(3)>a {\n    background: #3C80F6;\n    color: #fff;\n}\n#inbox .dropdown-menu > li:nth-child(2)>a {\n    background: #2CAC26;\n    color: #fff;\n}\n#inbox .fa-iosm{\n    \n    margin-top: 7px;\n}\n</style>"
  },
  {
    "path": "layout/footer.php",
    "content": "</div>\n</div>\n\n\n    <script src=\"style/lib/bootstrap/js/bootstrap.js\"></script>\n    <script type=\"text/javascript\">\n        $(\"[rel=tooltip]\").tooltip();\n        $(function() {\n            $('.demo-cancel-click').click(function(){return false;});\n        });\n    </script>\n\n  <!-- <footer style=\"background-color: #414959; padding: 20px;\"> -->\n               \n<div class=\"footer-style custom_footer\">\n                <!-- Purchase a site license to remove this link from the footer: http://www.portnine.com/bootstrap-themes -->\n                <center>Design & Developed By: <a class=\"a_footer\" href=\"https://github.com/amirhamza05/Student-Management-System\">Amir Hamza</a></center>\n           \n</div>\n            <!-- </footer> -->\n</body></html>\n\n<style type=\"text/css\">\n \n    .custom_footer{\n        padding: 10px!important;\n       font-weight: bold;\n       font-size: 18px;\n       font-family: \"Palatino Linotype\", \"Book Antiqua\", Palatino, serif;\n    }\n    .a_footer{\n       font-size: 20px;\n       color: var(--font-color);\n    }\n</style>"
  },
  {
    "path": "layout/header.php",
    "content": "<?php\n\n\ninclude \"layout.php\";\n\n?>"
  },
  {
    "path": "layout/header_lib.php",
    "content": "\t<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"style/lib/bootstrap/css/bootstrap.css\">\n\t<link rel=\"stylesheet\" href=\"style/lib/font-awesome/css/font-awesome.css\">\n\t<script src=\"style/lib/jquery-1.11.1.min.js\" type=\"text/javascript\"></script>\n\n\t<!-- Datatable Style Sheet -->\n\t<script language=\"JavaScript\" src=\"https://cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js\" type=\"text/javascript\"></script>\n\t<script language=\"JavaScript\" src=\"https://cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.js\" type=\"text/javascript\"></script>\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"http://cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.css\">\n\n\t<script language=\"JavaScript\" src=\"style/lib/custom/custom.js\" type=\"text/javascript\"></script>\n\t<script language=\"JavaScript\" src=\"layout/site_script.js\" type=\"text/javascript\"></script>\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"style/stylesheets/money_recept.css\">\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"style/css/table.css\">\n\n     "
  },
  {
    "path": "layout/header_script.php",
    "content": "<?php\n\nsession_start(); \n \nif( isset($_SESSION['user'])!=\"\" ){\n\ninclude \"config/config.php\";\n$db=new database();\n\ninclude 'script/program/program.php';\ninclude \"script/site_content/site_content.php\";\ninclude \"script/payment/set_payment.php\";\ninclude \"tool/vendor/vendor/autoload.php\";\ninclude 'script/theme/theme.php';\n\ninclude 'script/user/user.php';\n$id=$_SESSION['user'];\n$user_ob=new user($id);\n\n$user=$user_ob->get_user_info();\n$login_user=$user_ob->get_login_user();\n\n$user_id=$login_user['id'];\n$login_user_id=$login_user['id'];\n$user_permit=$login_user['permit'];\n$role=$login_user['permit'];\n$login_user_role=$role;\n\n$ip = $_SERVER['REMOTE_ADDR'];\n$browser = $user_ob->get_browser($_SERVER['HTTP_USER_AGENT']);\n\n$db->set_login_user($user_id,$ip,$browser);\n\n \n$site=new site_content();\n\n\ninclude 'script/subject/subject.php'; \n$subject_ob=new subject();\n$subject=$subject_ob->get_subject_info();\n\ninclude 'script/batch/batch.php';\n$batch_ob=new batch();\n$batch=$batch_ob->batch_info();\n\n//include 'script/program/program.php';\n$program_ob=new program();\n$program=$program_ob->get_program_info();\n\ninclude 'script/student/student.php';\n$student_ob=new student();\n$student=$student_ob->get_student_info();\n\ninclude 'script/sms/sms.php';\n$sms=new sms($user_id);\n\n\ninclude 'script/contest/contest.php';\n$contest=new contest();\n\ninclude 'script/payment/payment.php';\n$payment=new payment();\n\n\n$set_payment_ob=new set_payment();\n$set_payment_info=$set_payment_ob->get_set_payment_list();\n\ninclude 'script/id_card/id_card.php';\n$id_card=new id_card();\n\n//include 'script/exam/exam.php';\n//$exam_ob=new exam();\n//$exam=$exam_ob->get_exam_info();\n\n//include 'script/result/result.php';\n//$result=new result();\n//$result_info=$result->get_result();\n\n\ninclude 'script/attendence/attendence.php';\n$attend_ob=new attendence();\n\ninclude 'script/notice/notice.php';\n$notice=new notice();\n$notice_info=$notice->get_notice_info(); \n\n\n$theme=new theme();\n$theme_info=$theme->get_theme_info();\n\ninclude 'script/report/report.php';\n$report=new report();\n\ninclude 'script/account/account.php';\n$account=new account();\n\ninclude 'script/site_activity/site_activity.php';\n$site_activity=new site_activity();\n\ninclude 'script/setting/setting.php';\n$setting=new setting();\n\ninclude 'script/graph/graph.php';\n$graph=new graph();\n\ninclude 'script/chat/chat.php';\n$chat=new chat();\n\ninclude 'script/exam/exam_category.php';\n$exam=new exam();\n\n\n\n}\nelse{\n\n    echo \"<script>window.location.href = 'login.php';</script>\";\n\n}\n\n?>"
  },
  {
    "path": "layout/js/bubble.js",
    "content": "\naction_url=\"nav_bar_action.php\";\n\n\nfunction get_theme_list(){\n  modal_open(\"lg\", \"Theme\");\n  loader(\"modal_lg_body\");\n\n  var data={\n  \t'get_theme_list':1\n  }\n\n  $.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n           set_html(\"modal_lg_body\",response);\n        }\n    });  \n}\n\nfunction change_theme(theme_id){\n\tloader(\"modal_lg_body\");\n\tvar data={\n  \t\t'change_theme':theme_id\n  \t}\n  \t$.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n        \tset_html(\"theme_color\",response);\n           \tget_theme_list();\n        }\n    });  \n\n}"
  },
  {
    "path": "layout/js/nav_bar_script.js",
    "content": "\naction_url=\"nav_bar_action.php\";\n\nfunction sql_editor(){\n    var data = {\n        \"sql_editor\": 1\n    }\n    modal_open(\"lg\", \"SQL Editor\");\n    loader(\"modal_lg_body\");\n    $.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n           set_html(\"modal_lg_body\",response);\n        }\n    });  \n}\nfunction sql_editor_run(){\n  sql=get_value(\"sql_editor\");\n  var data = {\n        \"sql_editor_run\": sql\n  }\n  loader(\"sql_editor_output\");\n  $.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n           set_html(\"sql_editor_output\",response);\n        }\n  });  \n\n}\n\nfunction live_chat_nav(){\n\n    var data = {\n        \"live_chat_nav\": 1\n    }\n    modal_open(\"sm\", \"Live Chat\");\n    loader(\"modal_sm_body\");\n    \n    $.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n           set_html(\"modal_sm_body\",response);\n\n           load_chat_body_data();\n        }\n    });   \n\n}\n\nfunction load_chat_body_data(){\n  \n  var data = {\n        \"load_chat_body_data\": 1\n  }\n  \n  loader(\"message_body\",120);\n    $.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n           set_html(\"message_body\",response);\n           var box = document.getElementById('message_body');\n           box.scrollTop = box.scrollHeight;\n        }\n    });  \n}\n\nfunction send_message_chat(){\n  message=get_value(\"message\");\n  if(message==\"\"){\n    alert(\"Enter Message\");\n    return;\n  }\n  var data1={\n    \"message\": message\n  }\n  var data={\n    \"send_message_chat\": data1\n  }\n  document.getElementById(\"message\").value=\"\";\n  loader(\"message_body\");\n\n\n  $.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n           load_chat_body_data();\n        }\n    }); \n\n}\n\n\nfunction student_info_nav_bar(){\n\n    var data = {\n        \"student_info_nav_bar\": 1\n    }\n    modal_open(\"sm\", \"Student Quick Access\");\n    loader(\"modal_sm_body\");\n    \n    $.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n           set_html(\"modal_sm_body\",response);\n        }\n    });   \n\n}\n\nfunction sms_state_nav(){\n\n  var data = {\n        \"sms_state_nav\": 1\n    }\n    modal_open(\"md\", \"SMS Statistics\");\n    loader(\"modal_md_body\");\n    $.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n           set_html(\"modal_md_body\",response);\n        }\n    }); \n}\n\nfunction nav_bar_student_action(type){\n    var data = {\n        \"nav_bar_student_action\": type\n    }\n    \n    loader(\"modal_sm_body\");\n    $.ajax({\n        type: 'POST',\n        url: action_url,\n        data:data,\n        success: function(response) {\n           set_html(\"modal_sm_body\",response);\n        }\n    });   \n}\n\nfunction nav_bar_student_final_action(type){\n      id=get_value(\"student_id\");\n      error=\"\";\n      if(id==\"\")error=\"Please Enter Student ID\";\n      if(error!=\"\"){\n        alert(error);\n        return;\n      }\n      \n      type=(type==1)?\"info\":\"payment\";\n      url=\"student_profile.php?get_id=\"+id+\"&tab=\"+type;\n      window.history.pushState('', '', url);\n      window.location.href = \"\";\n      \n}"
  },
  {
    "path": "layout/layout.php",
    "content": "<?php\ninclude \"layout_style.php\";\ninclude \"nev_bar.php\";\ninclude \"side_bar.php\";\n?>\n\n<div id=\"content\" class=\"content\"> \n\t<div class=\"main-content\" style=\"padding-bottom: 30px;margin-top: 15px;\" >\n\t\t<?php \n  \t\t\tinclude \"bubble.php\"; \n  \t\t\tinclude \"loader.php\";\n  \t\t\tinclude \"modal_lib.php\";\n \t\t?>\n\n"
  },
  {
    "path": "layout/layout_style.php",
    "content": "\n<?php\ninclude \"header_script.php\";\n?>\n\n<!doctype html>\n<html lang=\"en\"><head>\n    <meta charset=\"utf-8\">\n    \n    <meta content=\"IE=edge,chrome=1\" http-equiv=\"X-UA-Compatible\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <meta name=\"description\" content=\"\">\n    <meta name=\"author\" content=\"\">\n    <link rel=\"icon\" href=\"<?php echo $db->logo; ?>\" type=\"image/gif\" sizes=\"16x16\">\n    <title><?php echo $site->get_page_name(); ?></title>\n\n    <?php include 'header_lib.php'; ?>\n\n    <script>\n        $(document).ready(function() {\n            $('#datatable').dataTable({\n                \"sScrollX\": \"100%\",\n                \"sScrollY\": \"100%\",\n                \"sScrollXInner\": \"100%\",\n            });\n\n            $(\"[data-toggle=tooltip]\").tooltip();\n        } );\n    </script>\n\n\n    <?php\n        $ut_info=$theme->get_theme($login_user['theme']);\n        $bg_color=$ut_info['bg_color'];\n        $font_color=$ut_info['font_color'];\n    ?>\n\n    <!-- End Datatable Style Sheet -->\n\n    <script src=\"style/lib/jQuery-Knob/js/jquery.knob.js\" type=\"text/javascript\"></script>\n    <script type=\"text/javascript\">\n        $(function() {\n            $(\".knob\").knob();\n        });\n        var bg_color=\"<?php echo \"$bg_color\"; ?>\";\n    </script>\n\n<div id=\"theme_color\">\n    <style type=\"text/css\">\n        :root {\n            --bg-color: <?php echo \"$bg_color\"; ?>;\n            --font-color: <?php echo \"$font_color\"; ?>;\n        } \n    </style>\n</div>\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"style/stylesheets/theme.css\">\n\n</head>\n\n\n\n<body class=\"theme-blue\">\n\n    <!-- Demo page code -->\n\n\n    <style type=\"text/css\">\n        #line-chart {\n            height:300px;\n            width:800px;\n            margin: 0px auto;\n            margin-top: 1em;\n        }\n        .navbar-default .navbar-brand, .navbar-default .navbar-brand:hover { \n            color: #fff;\n        }\n        .watermark_body{\n            background: url(<?php echo $db->logo; ?>);\n            \n        }\n    </style>\n\n    <script type=\"text/javascript\">\n        $(function() {\n            var uls = $('.sidebar-nav > ul > *').clone();\n            uls.addClass('visible-xs');\n            $('#main-menu').append(uls.clone());\n        });\n    </script>\n\n    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->\n    <!--[if lt IE 9]>\n      <script src=\"http://html5shim.googlecode.com/svn/trunk/html5.js\"></script>\n    <![endif]-->\n\n    <!-- Le fav and touch icons -->\n    <link rel=\"shortcut icon\" href=\"../assets/ico/favicon.ico\">\n    <link rel=\"apple-touch-icon-precomposed\" sizes=\"144x144\" href=\"../assets/ico/apple-touch-icon-144-precomposed.png\">\n    <link rel=\"apple-touch-icon-precomposed\" sizes=\"114x114\" href=\"../assets/ico/apple-touch-icon-114-precomposed.png\">\n    <link rel=\"apple-touch-icon-precomposed\" sizes=\"72x72\" href=\"../assets/ico/apple-touch-icon-72-precomposed.png\">\n    <link rel=\"apple-touch-icon-precomposed\" href=\"../assets/ico/apple-touch-icon-57-precomposed.png\">"
  },
  {
    "path": "layout/loader.php",
    "content": "\n\n<div class=\"bg_load\"></div>\n<div class=\"wrapper\">\n    <div class=\"inner\">\n        <span>L</span>\n        <span>o</span>\n        <span>a</span>\n        <span>d</span>\n        <span>i</span>\n        <span>n</span>\n        <span>g</span>\n    </div>\n</div>\n\n<style type=\"text/css\">\n    @import url(https://fonts.googleapis.com/css?family=Racing+Sans+One);\n\n\n    \n.bg_load {\n    position: fixed;\n    left: 0px;\n    top: 0px;\n    width: 100%;\n    height: 100%;\n    background: #EEE;\n}\n\n.wrapper {\n    /* Size and position */\n    font-size: 25px; /* 1em */\n    width: 8em;\n    height: 8em;\n    position: fixed;\n    left: 50%;\n    top: 50%;\n    margin-top: -100px;\n    margin-left: -100px;\n\n    /* Styles */\n    border-radius: 50%;\n    background: rgba(255,255,255,0.1);\n    border: 1em dashed rgba(138,189,195,0.5);\n    box-shadow: \n        inset 0 0 2em rgba(255,255,255,0.3),\n        0 0 0 0.7em rgba(255,255,255,0.3);\n    animation: rota 3.5s linear infinite;\n\n    /* Font styles */\n    font-family: 'Racing Sans One', sans-serif;\n    \n    color: #444;\n    text-align: center;\n    text-transform: uppercase;\n    text-shadow: 0 .04em rgba(255,255,255,0.9);\n    line-height: 6em;\n}\n\n.wrapper:before,\n.wrapper:after {\n    content: \"\";\n    position: absolute;\n    z-index: -1;\n    border-radius: inherit;\n    box-shadow: inset 0 0 2em rgba(255,255,255,0.3);\n    border: 1em dashed;\n}\n\n.wrapper:before {\n    border-color: rgba(138,189,195,0.2);\n    top: 0; right: 0; bottom: 0; left: 0;\n}\n\n.wrapper:after {\n    border-color: rgba(138,189,195,0.4);\n    top: 1em; right: 1em; bottom: 1em; left: 1em; \n}\n\n.wrapper .inner {\n    width: 100%;\n    height: 100%;\n    animation: rota 3.5s linear reverse infinite;\n}\n\n.wrapper span {\n    display: inline-block;\n    animation: placeholder 1.5s ease-out infinite;\n}\n\n.wrapper span:nth-child(1)  { animation-name: loading-1;  }\n.wrapper span:nth-child(2)  { animation-name: loading-2;  }\n.wrapper span:nth-child(3)  { animation-name: loading-3;  }\n.wrapper span:nth-child(4)  { animation-name: loading-4;  }\n.wrapper span:nth-child(5)  { animation-name: loading-5;  }\n.wrapper span:nth-child(6)  { animation-name: loading-6;  }\n.wrapper span:nth-child(7)  { animation-name: loading-7;  }\n\n@keyframes rota {\n    to { transform: rotate(360deg); }\n}\n\n@keyframes loading-1 {\n    14.28% { opacity: 0.3; }\n}\n\n@keyframes loading-2 {\n    28.57% { opacity: 0.3; }\n}\n\n@keyframes loading-3 {\n    42.86% { opacity: 0.3; }\n}\n\n@keyframes loading-4 {\n    57.14% { opacity: 0.3; }\n}\n\n@keyframes loading-5 {\n    71.43% { opacity: 0.3; }\n}\n\n@keyframes loading-6 {\n    85.71% { opacity: 0.3; }\n}\n\n@keyframes loading-7 {\n    100% { opacity: 0.3; }\n}\n</style>\n\n<script type=\"text/javascript\">\n    $(window).load(function() {\n    $(\".bg_load\").fadeOut(\"slow\");\n    $(\".wrapper\").fadeOut(\"slow\");\n})\n\n</script>"
  },
  {
    "path": "layout/menu_button.php",
    "content": "<link rel=\"stylesheet\" type=\"text/css\" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css\"/>\n<div class=\"container\" align=\"center\">\n       <div class=\"row\">\n        <div class=\"col-md-1\"></div>\n          <div class=\"col-md-2\">\n            <div class=\"square-service-block\">\n               <a href=\"#\">\n                 <div class=\"ssb-icon\"><i class=\"fa fa-paint-brush\" aria-hidden=\"true\"></i></div>\n                 <h2 class=\"ssb-title\">Graphics</h2>  \n               </a>\n            </div>\n          </div>\n          \n          <div class=\"col-md-2\">\n            <div class=\"square-service-block\">\n               <a href=\"#\">\n                 <div class=\"ssb-icon\"> <i class=\"fa fa-globe\" aria-hidden=\"true\"></i> </div>\n                 <h2 class=\"ssb-title\">web service</h2>  \n               </a>\n            </div>\n          </div>\n          \n          <div class=\"col-md-2\">\n            <div class=\"square-service-block\">\n               <a href=\"#\">\n                 <div class=\"ssb-icon\"><i class=\"fa fa-camera\" aria-hidden=\"true\"></i></div>\n                 <h2 class=\"ssb-title\">Photography</h2>  \n               </a>\n            </div>\n          </div>\n          \n          <div class=\"col-md-2\">\n            <div class=\"square-service-block\">\n               <a href=\"#\">\n                 <div class=\"ssb-icon\"><i class=\"fa fa-font\" aria-hidden=\"true\"></i></div>\n                 <h2 class=\"ssb-title\">Fonts</h2>  \n               </a>\n            </div>\n          </div>\n          \n         \n          \n       </div>\n    </div>\n\n    <style type=\"text/css\">\n      a:hover, a:focus {\n  color: #2a6496;\n  text-decoration: none;\n}\n.square-service-block{\n  position:relative;\n  overflow:hidden;\n  margin:15px auto;\n  }\n.square-service-block a {\n  background-color: #e74c3c;\n  border-radius: 50%;\n  display: block;\n  padding: 5px;\n  text-align: center;\n  width: 100%;\n}\n.square-service-block a:hover{\n  background-color: rgba(231, 76, 60, 0.8);\n  border-radius: 5px;\n}\n\n.ssb-icon {\n  color: #fff;\n  display: inline-block;\n  font-size: 20px;\n  margin: 0 0 5px;\n}\n\nh2.ssb-title {\n  color: #fff;\n  font-size: 15px;\n  font-weight: 200;\n  margin:0;\n  padding:0;\n  text-transform: uppercase;\n}\n\n    </style>"
  },
  {
    "path": "layout/modal_lib.php",
    "content": "<!-- Start sm Modal -->\n<div class=\"modal fade modal_sm\" id=\"modal_sm\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modal_sm_Label\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal_header\" style=\"\">\n        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n    </div>\n\n    <div class=\"modal-content\">\n        <div id=\"modal_sm_header\" class=\"modal_content_header\">Header</div>\n            <div class=\"modal_sm_body\" id=\"modal_sm_body\">\n                          \n            </div>\n\n    </div>\n    </div>\n</div>\n<!-- End sm Modal -->\n\n<!-- Start md Modal -->\n<div class=\"modal fade modal_md\" id=\"modal_md\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modal_md_Label\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal_header\" style=\"\">\n        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n    </div>\n\n    <div class=\"modal-content\">\n        <div id=\"modal_md_header\" class=\"modal_content_header\">Header</div>\n            <div class=\"modal_md_body\" id=\"modal_md_body\">\n                           \n            </div>\n\n    </div>\n    </div>\n</div>\n<!-- End md Modal -->\n\n<!-- Start lg Modal -->\n<div class=\"modal fade modal_lg\" id=\"modal_lg\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modal_md_Label\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal_header\" style=\"\">\n        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n    </div>\n\n    <div class=\"modal-content\">\n        <div id=\"modal_lg_header\" class=\"modal_content_header\">Header</div>\n            <div class=\"modal_lg_body\" id=\"modal_lg_body\">\n                           \n            </div>\n\n    </div>\n    </div>\n</div>\n<!-- End lg Modal -->\n\n<style type=\"text/css\">\n    .modal-content{\n        border-radius: 0px;\n    }\n    .modal_sm .modal-dialog{max-width: 350px; width: 100%;}\n    .modal_md .modal-dialog{max-width: 600px; width: 100%;}\n    .modal_lg .modal-dialog{max-width: 950px; width: 100%;}\n    .modal_header{\n       border-radius: 10px 10px 0px 0px;\n    }\n    .modal_sm_body,.modal_md_body,.modal_lg_body{\n        padding: 20px;\n        background-color: #ECF0F1;\n        overflow: scroll;\n        max-height: 500px;\n    }\n    .modal-content  {\n     -webkit-border-radius: 5px !important;\n     -moz-border-radius: 5px !important;\n     border-radius: 0px 0px 5px 5px !important; \n    }\n    .modal_content_header{\n        background-color: var(--bg-color);\n        color: var(--font-color);\n        padding: 15px;\n        font-size: 18px;\n        font-weight: bold;\n    }\n    .modal_header .close {\n      margin: 0;\n      position: absolute;\n      top: -10px;\n      right: -10px;\n      width: 40px;\n      height: 40px;\n      border-radius: 23px;\n      background-color: #00aeef;\n      color: #ffe300;\n      font-size: 20px;\n      opacity: 1;\n      z-index: 10;\n    }\n    .modal_header .close:hover {\n      outline: none;\n      font-size: 30px;\n    }\n    \n    .modal_header .close:focus {\n      outline: none;\n      background-color: #049ad1;\n    }\n\n    \n</style>\n\n<script type=\"text/javascript\">\n    function modal_open(type,header=\"Header\",permission=\"open\"){\n        \n        if(type==\"sm\")modal_sm(permission,header);\n        else if(type==\"md\")modal_md(permission,header);\n        else if(type==\"lg\")modal_lg(permission,header);  \n\n    }\n\n\n    function modal_sm(permission,header){\n        modal_ob=$(\"#modal_sm\");\n        set_data(\"modal_sm_header\",header);\n        if(permission==\"open\")modal_ob.modal(\"show\");\n        else modal_ob.modal(\"hide\");\n    }\n     function modal_md(permission,header){\n        modal_ob=$(\"#modal_md\");\n        set_data(\"modal_md_header\",header);\n        if(permission==\"open\")modal_ob.modal(\"show\");\n        else modal_ob.modal(\"hide\");\n    }\n    function modal_lg(permission,header){\n        modal_ob=$(\"#modal_lg\");\n        set_data(\"modal_lg_header\",header);\n        if(permission==\"open\")modal_ob.modal(\"show\");\n        else modal_ob.modal(\"hide\");\n    }\n\n    function set_data(div,data){\n        document.getElementById(div).innerHTML=data;\n    }\n</script>"
  },
  {
    "path": "layout/nev_bar.php",
    "content": "<!--\n===============================\n  Navbar\n===============================\n-->\n\n\n<?php \n\n$name=$login_user['uname'];\n$permit_role=($role<=5)?\"techserm\":\"ins\";\n$chat_due=$chat->get_chat_last_list($permit_role);\n$chat_due=($chat_due==0)?\"\":\"($chat_due)\";\n?>\n\n<script type=\"text/javascript\" src=\"layout/js/nav_bar_script.js\"></script>\n <div class=\"navbar navbar-default\" role=\"navigation\" style=\"position: auto; border-width: 0px 0px 1px 0px; border-color: rgba(0,0,0,0.2); padding: 10px;\" >\n\n        <div class=\"navbar-headerr\"  style=\"position: auto; border-width: 0px;\">\n\n        <ul class=\"nav navbar-nav navbar-left\">  \n          <span onclick=\"action_side_bar()\" class=\"sidebar-toggle-action\">\n          <button  class=\"btn_nav_toggle\"><i class=\"fa fa-bars\" id=\"icon_div\"></i></button>\n          </span> \n        \n        \n          <a class=\"\" href=\"index.php\"><span class=\"navbar-brand\"  style=\"color:var(--font-color)\"><font class=\"logo_title\"> <?php echo $db->site_name; ?></font></span></a>\n          <span class=\"nev_bar_button_area\">\n             <!-- here button -->\n           <button onclick=\"student_info_nav_bar()\" class=\"btn_tab\" style=\"margin-left: 15px;\"><span class=\"glyphicon glyphicon-fire\"></span> Student Quick Access</button>\n           <button onclick=\"sms_state_nav()\" class=\"btn_tab\" style=\"margin-left: 15px;\"><span class=\"glyphicon glyphicon-envelope\"></span> SMS Statistics</button>\n           <button onclick=\"live_chat_nav()\" class=\"btn_tab\" style=\"margin-left: 15px;\"><i class=\"fa fa-comments\"></i> Live Chat <b><?php echo \"$chat_due\"; ?></b></button>\n           <button onclick=\"sql_editor()\" class=\"btn_tab\" style=\"margin-left: 15px;\"><span class=\"fa fa-database\"></span> SQL Editor</button>\n          \n\n\n          </span>\n        </ul>\n        <ul class=\"nav navbar-nav navbar-right\">\n           <?php //include \"page/nav_bar_dropdown.php\"; ?>        \n        </ul> \n\n         <!--  -->\n        </div>\n</div>\n\n  \n<style type=\"text/css\">\n  @media screen and (max-width: 800px) {\n  .nev_bar_button_area {\n    visibility: hidden;\n    clear: both;\n    float: left;\n    margin: 10px auto 5px 20px;\n    width: 28%;\n    display: none;\n  } \n}\n\n\n\n\n</style>\n\n        \n<script type=\"text/javascript\">\n  function action_side_bar(){\n    div=document.getElementById('content');\n    icon_div=document.getElementById('icon_div');\n    class_name=div.className;\n    if(class_name=='content_with_sidebar'){\n      div.className = 'content';\n      icon_div.className='fa fa-bars';\n    }\n    else{\n      div.className = 'content_with_sidebar';\n      icon_div.className='fa fa-times';\n    }\n  }\n</script>\n<script type=\"text/javascript\" src=\"layout/js/nav_bar_script.js\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"style/css/nav_bar.css\">\n\n        </div>\n  </div>\n\n"
  },
  {
    "path": "layout/page/nav_bar_dropdown.php",
    "content": "<li class=\"dropdown\">\n                    <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n                        <span class=\"glyphicon glyphicon-user\"></span> \n                        <strong>Nombre</strong>\n                        <span class=\"glyphicon glyphicon-chevron-down\"></span>\n                    </a>\n                    <ul class=\"dropdown-menu\" style=\"background-color: var(--bg-color)\">\n                        <li>\n                            <div class=\"navbar-login\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4\">\n                                        <p class=\"text-center\">\n                                            <span class=\"glyphicon glyphicon-user icon-size\"></span>\n                                        </p>\n                                    </div>\n                                    <div class=\"col-lg-8\">\n                                        <p class=\"text-left\"><strong>Nombre Apellido</strong></p>\n                                        <p class=\"text-left small\">correoElectronico@email.com</p>\n                                        <p class=\"text-left\">\n                                            <a href=\"#\" class=\"btn btn-primary btn-block btn-sm\">Actualizar Datos</a>\n                                        </p>\n                                    </div>\n                                </div>\n                            </div>\n                        </li>\n                        <li class=\"divider\"></li>\n                        <li>\n                            <div class=\"navbar-login navbar-login-session\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <p>\n                                            <a href=\"#\" class=\"btn btn-danger btn-block\">Cerrar Sesion</a>\n                                        </p>\n                                    </div>\n                                </div>\n                            </div>\n                        </li>\n                    </ul>\n</li>"
  },
  {
    "path": "layout/side_bar.php",
    "content": "<div style=\"background-color: #ffffff; height: 100%; position: absolute;\">\n    <div class=\"sidebar-nav\" style=\"\">\n        <style type=\"text/css\">\n            .img_style {\n                height: 74px;\n                width: 70px;\n                margin: -5px;\n            }\n        </style>\n        <?php\n\n$user_name=$login_user['uname'];\n$user_email=$login_user['email'];\n$id=$login_user['id'];\n$photo=$login_user['photo'];\n$user_name=$id_card->make_string($user_name,20);\n$user_email=$id_card->make_string($user_email,20);\n\n?>\n\n            <ul class=\"side_bar_ul\">\n\n                <li class=\"side-user\" style=\"\">\n\n                    <div class=\"user-head\">\n                        <div>\n                            <a class=\"inbox-avatar\" style=\"border-radius: 0%\" href=\"user_info.php?user_id=<?php echo \" $id \"; ?>\">\n        <img class=\"img_style\"  width=\"74\" hieght=\"70\" src=\"<?php echo\"$photo\"; ?>\">\n    </a>\n                            <div class=\"user-name\" style=\"\">\n                                <h5><a href=\"user_info.php?user_id=<?php echo \"$id\"; ?>\"><?php echo \"$user_name\"; ?></a></h5>\n                                <span><a href=\"user_info.php?user_id=<?php echo \"$id\"; ?>\"><?php echo \"$user_email\"; ?></a></span>\n                            </div>\n                        </div>\n\n                    </div>\n\n                </li>\n\n                <li><a href=\"index.php\" class=\"nav-header\"><i class=\"fa fa-fw fa-dashboard side_bar_icon\"></i> Dashboard</a></li>\n\n                <li><a href=\"javascript:void(0)\" data-target=\".legal-menu_s\" class=\"nav-header collapsed\" data-toggle=\"collapse\"><i class=\"fa fa-mortar-board side_bar_icon\"></i> Students<i class=\"fa fa-collapse\"></i></a></li>\n\n                <li>\n                    <ul class=\"legal-menu_s nav nav-list collapse\">\n                        <li class=\"\"><a href=\"student_list.php\" class=\"\"><span class=\"fa fa-caret-right\"></span>Student List</a></li>\n                        <li><a href=\"add_student.php\"><span class=\"fa fa-caret-right\"></span>Add Student</a></li>\n                        <li><a href=\"attend.php\"><span class=\"fa fa-caret-right\"></span>Attendence</a></li>\n                    </ul>\n                </li>\n\n                <?php if($user_permit<8){ ?>\n\n                    <li><a href=\"batch_list.php\" class=\"nav-header\"><i class=\"fa fa-outdent  side_bar_icon\"></i> Batch</a></li>\n\n                    <li><a href=\"program_list.php\" class=\"nav-header\"><i class=\"fa fa-renren side_bar_icon\"></i> Program</a></li>\n\n                    <li><a href=\"subject_list.php\" class=\"nav-header\"><i class=\"fa fa-fw fa-book side_bar_icon\"></i> Subject</a></li>\n\n                    <li><a href=\"javascript:void(0)\" data-target=\".result\" class=\"nav-header collapsed\" data-toggle=\"collapse\"><i class=\"fa fa-th-list side_bar_icon\"></i> Exam<i class=\"fa fa-collapse\"></i></a></li>\n\n                    <li>\n                        <ul class=\"result nav nav-list collapse\">\n                            <li><a href=\"exam_list.php\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span>Exam List</a></li>\n                            <li><a href=\"result.php\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span>Show Result</a></li>\n                            <li><a href=\"add_result.php\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span>ADD Result</a></li>\n\n                        </ul>\n                    </li>\n\n                    <li><a href=\"javascript:void(0)\" data-target=\".notice\" class=\"nav-header collapsed\" data-toggle=\"collapse\"><i class=\"fa fa-bullhorn side_bar_icon\"></i> Notice<i class=\"fa fa-collapse\"></i></a></li>\n\n                    <li>\n                        <ul class=\"notice nav nav-list collapse\">\n\n                            <li><a href=\"notice_list.php\"><span class=\"fa fa-caret-right\"></span>Notice List</a></li>\n                        </ul>\n                    </li>\n\n                    <li><a href=\"javascript:void(0)\" data-target=\".user\" class=\"nav-header collapsed\" data-toggle=\"collapse\"><i class=\"fa fa-fw fa-user side_bar_icon\"></i> User<i class=\"fa fa-collapse\"></i></a></li>\n\n                    <li>\n                        <ul class=\"user nav nav-list collapse\">\n                            <li><a href=\"user_list.php\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span> User List</a></li>\n\n                        </ul>\n                    </li>\n\n                    <li><a href=\"javascript:void(0)\" data-target=\".account\" class=\"nav-header collapsed\" data-toggle=\"collapse\"><i class=\"fa fa-rupee side_bar_icon\"></i> Account<i class=\"fa fa-collapse\"></i></a></li>\n\n                    <li>\n                        <ul class=\"account nav nav-list collapse\">\n                            <li><a href=\"account.php?type=expence\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span>Add Expence</a></li>\n                            <li><a href=\"account.php?type=income\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span>Add Income</a></li>\n\n                        </ul>\n                    </li>\n\n                    <li><a href=\"javascript:void(0)\" data-target=\".report\" class=\"nav-header collapsed\" data-toggle=\"collapse\"><i class=\"fa fa-file-text-o side_bar_icon\"></i> Report<i class=\"fa fa-collapse\"></i></a></li>\n\n                    <li>\n                        <ul class=\"report nav nav-list collapse\">\n                            <li><a href=\"report.php?type=payment_report\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span>Payment Report</a></li>\n                            <li><a href=\"report.php?type=expence_report\"><span class=\"fa fa-caret-right\"></span>Expence Report</a></li>\n                            <li><a href=\"report.php?type=income_report\"><span class=\"fa fa-caret-right\"></span>Income Report</a></li>\n                            <li><a href=\"report.php?type=profit_report\"><span class=\"fa fa-caret-right\"></span>Profit Report</a></li>\n                            <li><a href=\"report.php?type=attendence_report\"><span class=\"fa fa-caret-right\"></span>Attendence Report</a></li>\n\n                        </ul>\n                    </li>\n\n                    <li><a href=\"javascript:void(0)\" data-target=\".sms\" class=\"nav-header collapsed\" data-toggle=\"collapse\"><i class=\"fa fa-envelope-o side_bar_icon\"></i> SMS<i class=\"fa fa-collapse\"></i></a></li>\n\n                    <li>\n                        <ul class=\"sms nav nav-list collapse\">\n                            <li><a href=\"sms_dashboard.php\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span>SMS Dashboard</a></li>\n                            <li><a href=\"pending_sms_list.php\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span>Pending SMS (<?php echo count($sms->get_pending_sms_list()); ?>)</a></li>\n\n                        </ul>\n                    </li>\n\n                    <li><a href=\"javascript:void(0)\" data-target=\".setting\" class=\"nav-header collapsed\" data-toggle=\"collapse\"><i class=\"fa fa-cogs side_bar_icon\"></i> Setting<i class=\"fa fa-collapse\"></i></a></li>\n\n                    <li>\n                        <ul class=\"setting nav nav-list collapse\">\n                            <li><a href=\"setting.php\" class=\"l_active\"><span class=\"fa fa-caret-right\"></span>Genaral Setting</a></li>\n\n                        </ul>\n                    </li>\n\n                    <?php } ?>\n            </ul>\n    </div>\n\n</div>\n\n<style type=\"text/css\">\n   \n    .side_bar_ul a{\n        text-decoration: none;\n    }\n    .side_bar_icon {\n        background-color: rgba(0,0,0,0.1);\n        margin-right: 10px;\n        font-size: 15px;\n        width: 30px;\n        height: 30px;\n        line-height: 30px!important;\n        text-align: center!important;\n        border-radius: 5px;\n        padding-left: 9px;\n        \n    }\n    .side_bar_ul{\n        color: var(--font-color);\n        opacity: 0.9;\n    }\n    \n    \n    \n</style>"
  },
  {
    "path": "layout/site_script.js",
    "content": "function script_test(){\n\talert(\"working\");\n}\n\nfunction get_ajax(action_data,data){\n  url=action_data['url'];\n  div=action_data['div'];\n  load=action_data['load'];\n  \n  $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        beforeSend: function() {\n        },\n        success: function(response) {\n\n            if(load==1)window.location.href = \"\";\n            else document.getElementById(div).innerHTML=response;\n        }\n    });\n\n}\n\n\n\nfunction loader(divname,size=0){\n  div_ob=document.getElementById(divname);\n  img_size=\"\";\n  if(size!=0)img_size=\"height: \"+size+\"px; width:\"+size+\"px\";\n  img_url=\"src='upload/site_content/processing1.gif'\";\n  img_style=\"style='margin-top:35px\"+img_size+\"'\";\n  img=\"<center><img \"+img_style+img_url+\" /></center>\";\n\n  div_ob.innerHTML =img;\n}\n\nfunction btn_loader(btn){\n set_html(btn,\"hello\")\n}\n\n\nfunction get_value(div){\n\tval=document.getElementById(div).value;\n\treturn val;\n}\n\nfunction set_html(div,val){\n  document.getElementById(div).innerHTML=val;\n}\n\nfunction set_value(div,val){\n  document.getElementById(div).value=val;\n}\n\nfunction get_checkbox_value(field_name){\n  var checkboxes = document.getElementsByName(field_name);\n  var vals = \"\";\n  for (var i=0, n=checkboxes.length;i<n;i++) \n     {\n        if (checkboxes[i].checked) \n        {\n          vals += \",\"+checkboxes[i].value;\n        }\n   }\n\nif (vals) vals = vals.substring(1);\nreturn vals;\n}\n\n\nfunction print_action(url,width=1000,height=800){\n  var w = width;\n        var h = height;\n        var left = Number((screen.width/2)-(w/2));\n        var tops = Number((screen.height/2)-(h/2));\n\nwindow.open(url, '', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+tops+', left='+left);\n}\n\nfunction print(divName){\n    var printContents = document.getElementById(divName).innerHTML;\n    w=1150;\n    h=750;\n    var left = (screen.width/2)-(w/2);\n    var top = (screen.height/2)-(h/2);\n    myWindow=window.open('', '', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);;\n    myWindow.document.write(printContents);\n    myWindow.document.close();\n    myWindow.focus();\n    myWindow.print();\n    myWindow.close();\n  }"
  },
  {
    "path": "login.php",
    "content": "<?php\n\n\nsession_start();\nif( isset($_SESSION['user'])==\"\" ){\ninclude \"layout/header_lib.php\";\ninclude \"script/install/install.php\";\n$install=new install();\n$step=$install->step_install();\nif($step==2)include 'page/login/login.php';\nelse header(\"Location: install_system.php\");\n}\nelse{\n\theader(\"Location: index.php\");\n}\n?>"
  },
  {
    "path": "login_action.php",
    "content": "<?php\nsession_start();\ninclude \"config/config.php\";\n$db=new database();\n\ninclude 'script/user/user.php';\n$user_ob=new user();\n$user=$user_ob->get_user_info();\n\n\nif(isset($_POST['login'])){\n\n  $uname = trim($_POST['uname']);\n  $uname = strip_tags($uname);\n  $uname = htmlspecialchars($uname);\n\n  $pass = $_POST['pass'];\n  $pass=hash('sha256', $pass);\n\n  $data['error']=0;\n\n\t$login_error=1;\n\tforeach ($user as $key => $value) {\n\t\t$id=$value['id'];\n\t\t$uname1=$value['uname'];\n\t\t$pass1=$value['pass'];\n\t\t$status=$value['status'];\n\t\tif($pass1==$pass && $uname==$uname1){\n\t\t\tif($status==0)$login_error=2;\n\t\t\telse $login_error=0;\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tif($login_error==0){\n\t\t$_SESSION['user']=$id;\n\t\t$ex=$_SESSION['user'];\n\t\t$info=array();\n\t\t$info['user_id']=$id;\n        $ip = $_SERVER['REMOTE_ADDR'];\n\t\t$browser = $user_ob->get_browser($_SERVER['HTTP_USER_AGENT']);\n        $db->set_login_user($id,$ip,$browser);\n\t    $db->sql_action(\"login\",\"insert\",$info,\"no\");\n\t}\n\n\t$data['error']=$login_error;\n\t$data['error_msg']=($login_error==1)?\"Please Fill Up Correct User Name and Password\":\"User Is Deactive.\";\n\t$data=json_encode($data);\n\techo \"$data\";\n\n\n}\n\n?>\n"
  },
  {
    "path": "logout.php",
    "content": "<?php\n\n\nsession_start();\nunset($_SESSION[\"user\"]);\nheader(\"Location: login.php\");\n\n?>"
  },
  {
    "path": "nav_bar_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\ninclude \"page_action/nav_bar/nav_bar.php\";\n\n\n\n?>"
  },
  {
    "path": "notice_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\ninclude \"page_action/notice/notice.php\";\n\n?>"
  },
  {
    "path": "notice_list.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/notice/notice_list.php\";\ninclude \"layout/footer.php\";\n\n\n?>"
  },
  {
    "path": "page/account/expence.php",
    "content": "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/index/style.css\">\n<script type=\"text/javascript\" src=\"page/account/js/expence.js\"></script>\n<div class=\"row\" style=\"\">\n    \t<script type=\"text/javascript\">\n    \t\t$(document).ready(function() {\n   \t\t\t\t $('table.display').DataTable();\n\t\t\t} );\n    \t</script>\n    \t  \n \n        <div class=\"col-md-12\">\n            <div class=\"dashboard_box\">\n                <div class=\"box_header\">Expence List</div>\n                <div class=\"box_body\">\n                \t <div class=\"pull-rightt\" style=\"margin-top: -20px;\">\n\t\t\t\t\t\t<center><button class=\"button\" onclick=\"get_expence_form('insert')\">+ Add Expence</button></center>\n\t\t\t\t\t</div>\n                \n                \t<table id=\"\" class=\"display\" width=\"100%\">\n                \t\t<thead style=\"width: 100%;\">\n                \t\t<tr>\n                \t\t\t<td class=\"td_list1\"></td>\n                \t\t\t<td class=\"td_list1\">#</td>\n                \t\t\t<td class=\"td_list1\">Expence Name</td>\n                \t\t\t<td class=\"td_list1\">Ammount</td>\n                            <td class=\"td_list1\">Notes</td>\n                \t\t\t<td class=\"td_list1\">Date</td>\n                            <td class=\"td_list1\">Add By</td>\n                \t\t\t<td class=\"td_list1\">Action</td>\n                \t\t\t\n                \t\t</tr>\n                \t</thead>\n                \t<tbody>\n                \t\t<?php \n\n\t\t\t\t\t\t$info=$account->expence_list();\n                \t\tforeach ($info as $key => $value) {\n                            $id=$value['id'];\n                \t\t ?>\n \n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"td_list2\"></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['id']; ?></td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['name']; ?>    \n                            </td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['amount']; ?>    \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $value['notes']; ?>    \n                            </td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['date']; ?>    \n                            </td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['user']; ?>   \n                            </td>\n                            <td class=\"td_list2\">\n                                <button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Update\" data-title=\"Update\" onclick=\"get_expence_form('update',<?php echo \"$id\"; ?>)\" >\n                                <span class=\"glyphicon glyphicon-pencil\"></span>\n                                </button>\n                                <button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" onclick=\"get_expence_form('delete',<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button>\n                            </td>\n                \t\t\t\n                \t\t</tr>\n                \t\t<?php } ?>\n                \t\t</tbody>\n                \t</table>\n                </div>\n            </div>\n        </div>\n        \n    </div>  \n\n    <style type=\"text/css\">\n    thead{\n        background-color: #EFF0F2;\n        border-width: 0px;\n    }\n    .td_list1{\n        background-color: #EFF0F2;\n        color: #000000;\n        padding: 10px;\n        font-weight: bold;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n    .td_list2{\n        background-color: #ffffff;\n        color: #000000;\n        padding: 8px;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n</style>"
  },
  {
    "path": "page/account/income.php",
    "content": "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/index/style.css\">\n<script type=\"text/javascript\" src=\"page/account/js/income.js\"></script>\n<div class=\"row\" style=\"\">\n    \t<script type=\"text/javascript\">\n    \t\t$(document).ready(function() {\n   \t\t\t\t $('table.display').DataTable();\n\t\t\t} );\n    \t</script>\n    \t  \n \n        <div class=\"col-md-12\">\n            <div class=\"dashboard_box\">\n                <div class=\"box_header\">Income List</div>\n                <div class=\"box_body\">\n                \t <div class=\"pull-rightt\" style=\"margin-top: -20px;\">\n\t\t\t\t\t\t<center><button class=\"button\" onclick=\"get_income_form('insert')\">+ Add Income</button></center>\n\t\t\t\t\t</div>\n                \n                \t<table id=\"\" class=\"display\" width=\"100%\">\n                \t\t<thead style=\"width: 100%;\">\n                \t\t<tr>\n                \t\t\t<td class=\"td_list1\"></td>\n                \t\t\t<td class=\"td_list1\">#</td>\n                \t\t\t<td class=\"td_list1\">Income Name</td>\n                \t\t\t<td class=\"td_list1\">Ammount</td>\n                            <td class=\"td_list1\">Notes</td>\n                \t\t\t<td class=\"td_list1\">Date</td>\n                            <td class=\"td_list1\">Add By</td>\n                \t\t\t<td class=\"td_list1\">Action</td>\n                \t\t\t\n                \t\t</tr>\n                \t</thead>\n                \t<tbody>\n                \t\t<?php \n\n\t\t\t\t\t\t$info=$account->income_list();\n                \t\tforeach ($info as $key => $value) {\n                            $id=$value['id'];\n                \t\t ?>\n \n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"td_list2\"></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['id']; ?></td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['name']; ?>    \n                            </td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['amount']; ?>    \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $value['notes']; ?>    \n                            </td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['date']; ?>    \n                            </td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['user']; ?>   \n                            </td>\n                            <td class=\"td_list2\">\n                                <button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Update\" data-title=\"Update\" onclick=\"get_income_form('update',<?php echo \"$id\"; ?>)\" >\n                                <span class=\"glyphicon glyphicon-pencil\"></span>\n                                </button>\n                                <button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" onclick=\"get_income_form('delete',<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button>\n                            </td>\n                \t\t\t\n                \t\t</tr>\n                \t\t<?php } ?>\n                \t\t</tbody>\n                \t</table>\n                </div>\n            </div>\n        </div>\n        \n    </div>  \n\n    <style type=\"text/css\">\n    thead{\n        background-color: #EFF0F2;\n        border-width: 0px;\n    }\n    .td_list1{\n        background-color: #EFF0F2;\n        color: #000000;\n        padding: 10px;\n        font-weight: bold;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n    .td_list2{\n        background-color: #ffffff;\n        color: #000000;\n        padding: 8px;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n</style>"
  },
  {
    "path": "page/account/js/expence.js",
    "content": "\nurl=\"account_action.php\";\nmodal_body=\"modal_sm_body\";\nmodal=\"sm\";\n\nvar action_data={\n    'url':url,\n    'div':modal_body,\n    'load':0\n};\n \nfunction get_expence_form(type,id=0){\n  if(type==\"insert\"){\n    header=\"Add Expence\";\n    data_key=\"get_expence_form\";\n    val=1;\n  }\n  else if(type==\"update\"){\n    header=\"Update Expence\";\n    data_key=\"update_expence_form\";\n    val=id;\n  }\n  else{\n    header=\"Delete Expence\";\n    data_key=\"delete_expence_form\";\n    val=id;\n  }\n\n  modal_open(modal,header);\n  loader(modal_body);\n\n  var data={\n    [data_key]:val\n  }\n\n  get_ajax(action_data,data);\n}\n\n\nfunction expence_action(type,id=0){\n  \n  delete_type=0;\n  if(type==\"insert\"){\n    data_key=\"insert_expence\";\n    val=0;\n  }\n  else if(type==\"update\"){\n    data_key=\"update_expence\";\n    val=id;\n  }\n  else{\n    data_key=\"delete_expence\";\n    val=id;\n    delete_type=1;\n  }\n\n  if(delete_type==0){\n    var data_val={\n        'id':val,\n        'name':get_value(\"expence_name\"),\n        'amount':get_value(\"amount\"),\n        'notes':get_value(\"note\")\n    }\n    error=filter_data(data_val);\n  }\n  else{\n    var data_val={\n      'id':val\n    }\n    error=0;\n  }\n    \n    var data={\n        [data_key]:data_val\n    }\n    \n    if(error==0){\n         action_data['load']=1;\n         loader(modal_body);\n         get_ajax(action_data,data);\n    }\n}\n\n\n\n\nfunction filter_data(data){\n    expence_category=data['name'];\n    ammount=data['amount'];\n    error=0;\n    if(expence_name==\"\"){\n        alert(\"Enter Expence Name\");\n        error=1;\n    }\n    else if(ammount==\"\"){\n        alert(\"Enter Expence Ammount\");\n        error=1;\n    }\n    return error;\n}\n"
  },
  {
    "path": "page/account/js/income.js",
    "content": "\nurl=\"account_action.php\";\nmodal_body=\"modal_sm_body\";\nmodal=\"sm\";\n\nvar action_data={\n    'url':url,\n    'div':modal_body,\n    'load':0\n};\n \nfunction get_income_form(type,id=0){\n  if(type==\"insert\"){\n    header=\"Add income\";\n    data_key=\"get_income_form\";\n    val=1;\n  }\n  else if(type==\"update\"){\n    header=\"Update income\";\n    data_key=\"update_income_form\";\n    val=id;\n  }\n  else{\n    header=\"Delete income\";\n    data_key=\"delete_income_form\";\n    val=id;\n  }\n\n  modal_open(modal,header);\n  loader(modal_body);\n\n  var data={\n    [data_key]:val\n  }\n\n  get_ajax(action_data,data);\n}\n\n\nfunction income_action(type,id=0){\n  \n  delete_type=0;\n  if(type==\"insert\"){\n    data_key=\"insert_income\";\n    val=0;\n  }\n  else if(type==\"update\"){\n    data_key=\"update_income\";\n    val=id;\n  }\n  else{\n    data_key=\"delete_income\";\n    val=id;\n    delete_type=1;\n  }\n\n  if(delete_type==0){\n    var data_val={\n        'id':val,\n        'name':get_value(\"income_name\"),\n        'amount':get_value(\"amount\"),\n        'notes':get_value(\"note\")\n    }\n    error=filter_data(data_val);\n  }\n  else{\n    var data_val={\n      'id':val\n    }\n    error=0;\n  }\n    \n    var data={\n        [data_key]:data_val\n    }\n    \n    if(error==0){\n         action_data['load']=1;\n         loader(modal_body);\n         get_ajax(action_data,data);\n    }\n}\n\n\n\n\nfunction filter_data(data){\n    income_category=data['name'];\n    ammount=data['amount'];\n    error=0;\n    if(income_name==\"\"){\n        alert(\"Enter income Name\");\n        error=1;\n    }\n    else if(ammount==\"\"){\n        alert(\"Enter income Ammount\");\n        error=1;\n    }\n    return error;\n}\n"
  },
  {
    "path": "page/api/api.php",
    "content": "<?php\n\nsession_start(); \n\n\ninclude \"config/config.php\";\n\ninclude 'script/program/program.php';\ninclude \"script/site_content/site_content.php\";\ninclude \"script/payment/set_payment.php\";\ninclude 'script/student/student.php';\ninclude 'script/batch/batch.php';\ninclude 'script/subject/subject.php'; \ninclude 'script/sms/sms.php';\n\n\n$site_key=\"12345\";\n$data=array();\n$info=array();\n$data['error']=1;\n$key=(isset($_GET['key']))?$_GET['key']:\"\";\n$type=(isset($_GET['type']))?$_GET['type']:\"\";\n\n\nif($key==$site_key){\n\tif($type==\"student_info\"){\n\t\tif(isset($_GET['student_id'])){\n\t\t\t$student_ob=new student();\n\t\t    $student_list=$student_ob->get_student_info();\n\t\t    $student_id=$_GET['student_id'];\n\t\t    if(isset($student_list[$student_id])){\n\t\t    \t$info=$student_list[$student_id];\n\t\t    \t$data['error']=0;\n\t\t    }   \n\t\t}\n\t}\n\t\n\telse if($type==\"check_login\"){\n\t\t\n\t\t$info['login_id']=-1;\n\t\tif( isset($_SESSION['student_login'])!=\"\" ){\n             $info['login_id']=$_SESSION['student_login'];\n             $data['error']=0;\n\t\t}\n\t}\n\n\telse if($type=\"send_sms\"){\n\t\t$data['error']=0;\n\t\t$info['sms']=\"hello bangladesh\";\n\t}\n\telse if($type==\"post_sms\"){\n\t\t$data['error']=0;\n\t\t$val=$_GET['data'];\n\t\t$info=$val;\n\t}\n\n}\n\n\n\n\t$data['data']=$info;\n\t$data=json_encode($data);\n\techo \"$data\";\n\t\n\n\n?>"
  },
  {
    "path": "page/attend/attend.php",
    "content": "\n\n<script src=\"page/attend/js/attend.js\"></script>\n<?php \n$date=date(\"Y-m-d\",strtotime($db->date()));\n?>\n <div class=\"row\">\n    \n        <div class=\"dropdown\" style=\"\">\n          \n          <div class=\"col-md-3\">\n            <select onchange=\"select_program()\" class=\"select\" id=\"program_select\" name=\"options\">\n                <option value=\"-1\">Select Program</option>\n                <?php $program_ob->select_program(); ?>\n            </select>\n          </div>\n\n          <div class=\"col-md-3\" id=\"batch_select\">\n            <select class=\"select\" id=\"batch_select_id\">\n                <option value=\"-1\">Select Batch</option>\n            </select>\n            <br/>\n            <div id='loader_select'></div>\n          </div>\n          <div class=\"col-md-3\">\n              <input type=\"date\" id=\"attend_date\" value=\"<?php echo \"$date\"; ?>\" class=\"input_date\" name=\"\">\n          </div> \n          <div class=\"col-md-3\">\n            <button class=\"btn_select\" onclick=\"attend_panel()\">Attendence Panel</button>\n          </div>\n    </div> \n</div>\n\n<div id=\"res\" style=\"margin-top: 15px\"></div>\n<div id=\"attend_reportt\" style=\"margin-top: 15px\"></div>\n\n<style type=\"text/css\">\n    .btn_attend{\n        padding: 20px;\n        font-size: 20px;\n        background-color: var(--bg-color);\n        color: var(--font-color);\n        border-width: 0px;\n    }\n    .btn_attend:hover{\n       font-size: 21px;\n       padding: 19px;\n    }\n    .btn_area{\n       align-content: center;\n       margin-top: 10px;\n    }\n\n .select {\n  position: relative;\n  display: block;\n  height: 3.4em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n\n.select::after {\n  content: '\\25BC';\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding: 0 1em;\n  background: #34495e;\n  pointer-events: none;\n}\n.select:hover::after {\n  color: #f39c12;\n}\n.select::after {\n  -webkit-transition: .25s all ease;\n  -o-transition: .25s all ease;\n  transition: .25s all ease;\n}\n\n.img{\n    height: 40px;\n    width: 30px;\n}\n\n.btn_select{\n  position: relative;\n  display: block;\n  height: 3.5em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n.input_date{\n    width: 100%;\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    margin: 0.5em 0em 1em 0em;\n    height: 3.5em;\n    padding: 10px;\n    border-width: 0px;\n    border-radius: .25em;\n}\n\n.top-alert { \n  position: fixed;\n  top: 0px;\n  width: 100%;\n  z-index: 100000;\n  left: 0;\n  padding: 50px;\n  display: inline-block;\n  text-align: center;\n}\n.top-alert .alert {\n  width: auto !important;\n  height: 100%;\n  display: inline;\n  position: relative;\n  margin: 0;\n}\n.top-alert .alert .close {\n  position: absolute;\n  top: 11px;\n  right: 10px;\n  color: inherit;\n}\n\n.alert-purple { border-color: #694D9F;background: #694D9F;color: #fff; }\n.alert-info-alt { border-color: #B4E1E4;background: #81c7e1;color: #fff; }\n.alert-danger-alt { border-color: #B63E5A;background: #E26868;color: #fff; }\n.alert-warning-alt { border-color: #F3F3EB;background: #E9CEAC;color: #fff; }\n.alert-success-alt { \n  border-color: #19B99A;\n  background: #20A286;\n  color: #fff; \n  padding: 20px;\n  float: right;\n  border-radius: 15px;\n}\n\n.alert a {color: gold;}\n\n\n</style>"
  },
  {
    "path": "page/attend/extra.php",
    "content": "\n$url=\"https://www.jqueryscript.net/demo/Exporting-Html-Tables-To-CSV-XLS-XLSX-Text-TableExport/\";\n\n?>\n\n<!doctype html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>jQuery TableExport Basic Demo</title>\n<link href=\"https://www.jqueryscript.net/css/jquerysctipttop.css\" rel=\"stylesheet\" type=\"text/css\">\n\n\n\n<table class=\"table table-striped table-bordered\"\n                                   data-name=\"cool-table\">\n                                <thead>\n                             <tr>\n                                 <td style=\"width: 180px;\">Student Management System</td>\n                             </tr>\n                                <tr>\n                                    <th style=\"padding: 15px; background-color: #000000\">Rank</th>\n                                    <th>Country</th>\n                                    <th>Population</th>\n                                    <th>% of world population</th>\n                                    <th>Date</th>\n                                </tr>\n                                </thead>\n                                <tbody>\n                                <?php for($i=0; $i<30; $i++){ ?>    \n                                <tr>\n                                    <td><?php echo \"$i\"; ?></td>\n                                    <td>Hamza</td>\n                                    <td>1,370,570,000</td>\n                                    <td>18.9%</td>\n                                    <td>June 24, 2015</td>\n                                </tr>\n                                \n                            <?php } ?>\n                                </tbody>\n                            </table>\n<script src=\"https://code.jquery.com/jquery-1.12.4.min.js\"></script>\n<script src=\"<?php echo $url; ?>FileSaver.min.js\"></script>\n<script src=\"<?php echo $url; ?>Blob.min.js\"></script>\n<script src=\"<?php echo $url; ?>xls.core.min.js\"></script>\n\n<script src=\"<?php echo $url; ?>dist/js/tableexport.js\"></script>\n<script>\n  $(\"table\").tableExport({formats: [\"xlsx\",\"xls\", \"csv\", \"txt\"],    });\n</script>\n"
  },
  {
    "path": "page/attend/js/attend.js",
    "content": "\nurl = \"attend_action.php\";\nmodal_body = \"modal_lg_body\";\nmodal = \"lg\";\n\nvar program_id,batch_id,date;\n \nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\n\nfunction attend_panel(){\n   pid=get_value(\"program_select\");\n   bid=get_value(\"batch_select_id\");\n   date=get_value(\"attend_date\");\n   error=\"\";\n   if(pid==-1)error=\"Select Program\";\n   else if(bid==-1 || bid==\"\")error=\"Select Batch\";\n   else if(date==\"\")error=\"Select Date\";\n   if(error!=\"\"){\n   \talert(error);\n   \treturn;\n   }\n   \n   program_id=pid;\n   batch_id=bid;\n\n   var data1 = {\n   \t \"program_id\": program_id,\n   \t \"batch_id\": batch_id,\n   \t \"date\": date\n   }\n\n   var data = {\n        \"attend_panel\":data1\n    }\n    //modal_open(modal, \"Payment\");\n    loader(\"res\");\n     $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           set_html(\"res\",response);\n           take_attend();\n        }\n    });\n    \n}\n\n\nfunction take_attend(){\n    var data1 = {\n      \"program_id\": program_id,\n      \"batch_id\": batch_id,\n      \"date\": date\n    }\n\n   var data = {\n        \"take_attend\":data1\n    }\n\n    loader(\"take_attend\");\n    get_ajax(get_action_data(\"take_attend\"), data);\n}\n\nfunction attend_report(status=2){\n    var data1 = {\n      \"program_id\": program_id,\n      \"batch_id\": batch_id,\n      \"date\": date,\n      \"status\": status\n    }\n\n   var data = {\n        \"attend_report\":data1\n    }\n\n    loader(\"attend_report\");\n    get_ajax(get_action_data(\"attend_report\"), data);\n}\n\nfunction attend_sms(){\n  var data1 = {\n      \"program_id\": program_id,\n      \"batch_id\": batch_id,\n      \"date\": date\n    }\n\n   var data = {\n        \"attend_sms\":data1\n    }\n\n    loader(\"attend_sms\");\n    get_ajax(get_action_data(\"attend_sms\"), data);\n}\n\nfunction send_attend_sms(){\n  type=get_value(\"attend_type\");\n  receiver=get_value(\"select_receiver\");\n  error=\"\";\n  if(type==-1){\n     error=\"Please Select Attendence Type\";\n  }\n  else if(receiver==-1){\n        error=\"Please Select Receiver\";\n  }\n\n  if(error!=\"\"){\n    alert(error);\n    return;\n  }\n\n  var data1 = {\n      \"program_id\": program_id,\n      \"batch_id\": batch_id,\n      \"date\": date,\n      \"type\": type,\n      \"receiver\": receiver\n    }\n\n   var data = {\n        \"send_attend_sms\":data1\n    }\n\n    loader(\"attend_sms\");\n    get_ajax(get_action_data(\"attend_sms\"), data);\n}\n\n\nfunction select_program(){\n\tprogram_id=get_value(\"program_select\");\n\t\n\tvar data = {\n        \"select_program\": program_id\n    }\n\n    loader(\"loader_select\",40);\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           set_html(\"loader_select\",\"\");\n           set_html(\"batch_select_id\",response);\n        }\n    });\n}\n\n\n\n\n\nfunction save_attend(info){\n    \n   var arr=[];\n\n    $(':radio').each(function () {\n            var myval = $(this).val();\n\n            name=$(this).attr('name');\n            student_id = name.split(/(\\d+)/);\n            student_id=parseInt(student_id[1]);\n            val=$(\"input:radio[name='\"+name+\"']:checked\").val();\n            arr[student_id]=val;\n        });\n        \n\n        var attend_list=[];\n        for (var student_id in arr) {\n    \t\tvar status = arr[student_id];\n            if(!status){\n            \talert(\"Please Select Student \" + student_id);\n            \treturn;\n            }\n            attend_list.push({student_id,status});\n\t\t}\n        \n        var data1={\n        \t\"program_id\": info.program_id,\n          \"batch_id\": info.batch_id,\n        \t\"date\": info.date,\n        \t\"student_list\":attend_list\n        }\n\n        var data = {\n          \"save_attend\": data1\n    \t}\n        loader(\"take_attend\");\n        $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n        \tsuccess(\"Successfully Taken Student Attendence\");\n          take_attend();\n        }\n    });\n\n}\n\nfunction p(val){\n\tconsole.log(val);\n}\n"
  },
  {
    "path": "page/batch/batch_list.php",
    "content": "\n<script type=\"text/javascript\" src=\"page/batch/batch_script.js\"></script>\n\n\n<div class=\"row\">\n<div class=\"col-md-12\">\n<center>\n<div class=\"btn-toolbar list-toolbar\">\n    \n\n    <button class=\"btn btn-primary\" data-title=\"Add Batch\"  onclick=\"get_batch_form('insert')\"><i class=\"fa fa-plus\"></i> Add Batch</button>\n    \n</div>\n</center>\n<table id=\"datatable\" class=\"table table-striped table-bordered\" cellspacing=\"0\" width=\"100%\"> \n            <thead>\n            <tr>\n              <th></th>\n              <th><center>Batch Name</center></th>\n              <th><center>Batch Start</center></th>\n              <th><center>Batch End</center></th>\n               <th><center>Batch Day</center></th>\n              <th><center>Action</center></th>\n              \n            </tr>\n          </thead>\n          <tbody>\n\n<?php \n\nforeach ($batch as $key => $value) {\n  $name=$value['name'];\n  $start=$value['start'];\n  $end=$value['end'];\n  $batch_day=$value['day_string'];\n  $id=$value['id'];\n  $day=$value['day'];\n?>\n            <tr>\n              <td width=\"5px;\"></td>\n              <td><center><?php echo \"$name\"; ?></center></td>\n              <td><center><?php echo \"$start\"; ?></center></td>\n              <td><center><?php echo \"$end\"; ?></center></td>\n              <td><center><?php echo \"$batch_day\"; ?></center></td>\n              <td><div class=\"btn-toolbar list-toolbar\"><center>\n\n                <button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Edit\" data-title=\"Edit\" ><span class=\"glyphicon glyphicon-pencil\" onclick=\"get_batch_form('update',<?php echo \"$id\"; ?>)\"></span></button>\n                <button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" onclick=\"get_batch_form('delete',<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button></center></div></td>\n            </tr>\n\n<?php } ?>\n          </tbody>\n        </table>\n\n</div>\n</div>"
  },
  {
    "path": "page/batch/batch_script.js",
    "content": "url = \"batch_action.php\";\nmodal_body = \"modal_md_body\";\nmodal = \"md\";\n\nvar action_data = {\n    'url': url,\n    'div': modal_body,\n    'load': 0\n};\n\nfunction get_batch_form(type, id = 0) {\n    if (type == \"insert\") {\n        header = \"Add Batch\";\n        data_key = \"add_batch_form\";\n        val = 1;\n    } else if (type == \"update\") {\n        header = \"Update Batch\";\n        data_key = \"update_batch_form\";\n        val = id;\n    } else {\n        header = \"Delete Batch\";\n        data_key = \"delete_batch_form\";\n        val = id;\n    }\n\n    modal_open(modal, header);\n    loader(modal_body);\n\n    var data = {\n        [data_key]: val\n    }\n\n    get_ajax(action_data, data);\n}\n\n\nfunction batch_action(type, id = 0) {\n\n    delete_type = 0;\n    if (type == \"insert\") {\n        data_key = \"insert_batch\";\n        val = 0;\n    } else if (type == \"update\") {\n        data_key = \"update_batch\";\n        val = id;\n    } else {\n        data_key = \"delete_batch\";\n        val = id;\n        delete_type = 1;\n    }\n\n    if (delete_type == 0) {\n        data_val = get_data();\n        error = filter_data(data_val);\n    } else {\n        var data_val = {\n            'id': val\n        }\n        error = 0;\n    }\n\n    var data = {\n        [data_key]: data_val\n    }\n\n    if (error == 0) {\n        action_data['load'] = 1;\n        loader(modal_body);\n        get_ajax(action_data, data);\n    }\n}\n\n\nfunction get_data() {\n    var data_val = {\n        'id': val,\n        'name': get_value(\"batch_name\"),\n        'start': get_value(\"batch_start\"),\n        'end': get_value(\"batch_end\"),\n        'day':get_checkbox_value('batch_day[]')\n    }\n\n    return data_val;\n}\n\nfunction filter_data(data) {\n    name = data['name'];\n    start = data['start'];\n    end = data['end'];\n\n    error = 0;\n    if (name == \"\") {\n        alert(\"Enter Batch Name\");\n        error = 1;\n    } else if (start == \"\") {\n        alert(\"Enter Batch Start Time\");\n        error = 1;\n    } else if (end == \"\") {\n        alert(\"Enter Batch End Time\");\n        error = 1;\n    }\n    return error;\n}"
  },
  {
    "path": "page/chat/chat.php",
    "content": "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/chat/css/style.css\">\n \n<div class=\"row bootstrap snippets\">\n <div class=\"col-md-4\">\n      <!-- DIRECT CHAT SUCCESS -->\n      <div class=\"box box-success direct-chat direct-chat-success\">\n       \n        <!-- /.box-header -->\n        <div class=\"box-body\">\n          <!-- Conversations are loaded here -->\n          <div class=\"direct-chat-messages\">\n            <!-- Message. Default to the left -->\n            <div class=\"direct-chat-msg\">\n              <div class=\"direct-chat-info clearfix\">\n                <span class=\"direct-chat-name pull-left\">Alexander Pierce</span>\n                <span class=\"direct-chat-timestamp pull-right\">23 Jan 2:00 pm</span>\n              </div>\n              <!-- /.direct-chat-info -->\n              <img class=\"direct-chat-img\" src=\"https://bootdey.com/img/Content/user_1.jpg\" alt=\"Message User Image\"><!-- /.direct-chat-img -->\n              <div class=\"direct-chat-text\">\n                Is this template really for free? That's unbelievable!\n              </div>\n              <!-- /.direct-chat-text -->\n            </div>\n            <!-- /.direct-chat-msg -->\n    \n            <!-- Message to the right -->\n            <div class=\"direct-chat-msg right\">\n              <div class=\"direct-chat-info clearfix\">\n                <span class=\"direct-chat-name pull-right\">Sarah Bullock</span>\n                <span class=\"direct-chat-timestamp pull-left\">23 Jan 2:05 pm</span>\n              </div>\n              <!-- /.direct-chat-info -->\n              <img class=\"direct-chat-img\" src=\"https://bootdey.com/img/Content/user_2.jpg\" alt=\"Message User Image\"><!-- /.direct-chat-img -->\n              <div class=\"direct-chat-text\">\n                <?php for($i=0; $i<50; $i++){ ?>\n                    Hello Word\n                <?php } ?>    \n              </div>\n              <!-- /.direct-chat-text -->\n            </div>\n            <!-- /.direct-chat-msg -->\n\n\n          </div>\n          <!--/.direct-chat-messages-->\n    \n          <!-- Contacts are loaded here -->\n          <div class=\"direct-chat-contacts\">\n            <ul class=\"contacts-list\">\n              <li>\n                <a href=\"#\">\n                  <img class=\"contacts-list-img\" src=\"https://bootdey.com/img/Content/user_1.jpg\">\n    \n                  <div class=\"contacts-list-info\">\n                        <span class=\"contacts-list-name\">\n                          Count Dracula\n                          <small class=\"contacts-list-date pull-right\">2/28/2015</small>\n                        </span>\n                    <span class=\"contacts-list-msg\">How have you been? I was...</span>\n                  </div>\n                  <!-- /.contacts-list-info -->\n                </a>\n              </li>\n              <!-- End Contact Item -->\n            </ul>\n            <!-- /.contatcts-list -->\n          </div>\n          <!-- /.direct-chat-pane -->\n        </div>\n        <!-- /.box-body -->\n        <div class=\"box-footer\">\n          <form action=\"#\" method=\"post\">\n            <div class=\"input-group\">\n              <input type=\"text\" name=\"message\" placeholder=\"Type Message ...\" class=\"form-control\">\n                  <span class=\"input-group-btn\">\n                    <button type=\"submit\" class=\"btn btn-success btn-flat\">Send</button>\n                  </span>\n            </div>\n          </form>\n        </div>\n        <!-- /.box-footer-->\n      </div>\n      <!--/.direct-chat -->\n    </div>\n\n</div>"
  },
  {
    "path": "page/chat/css/style.css",
    "content": ".box {\n    position: relative;\n    border-radius: 3px;\n    background: #ffffff;\n    border-top: 3px solid #d2d6de;\n    margin-bottom: 20px;\n    width: 100%; \n    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);\n}\n.box.box-primary {\n    border-top-color: #3c8dbc;\n}\n.box.box-info {\n    border-top-color: #00c0ef;\n}\n.box.box-danger {\n    border-top-color: #dd4b39;\n}\n.box.box-warning {\n    border-top-color: #f39c12;\n}\n.box.box-success {\n    border-top-color: #00a65a;\n}\n.box.box-default {\n    border-top-color: #d2d6de;\n}\n.box.collapsed-box .box-body, .box.collapsed-box .box-footer {\n    display: none;\n}\n.box .nav-stacked>li {\n    border-bottom: 1px solid #f4f4f4;\n    margin: 0;\n}\n.box .nav-stacked>li:last-of-type {\n    border-bottom: none;\n}\n.box.height-control .box-body {\n    max-height: 300px;\n    overflow: auto;\n}\n.box .border-right {\n    border-right: 1px solid #f4f4f4;\n}\n.box .border-left {\n    border-left: 1px solid #f4f4f4;\n}\n.box.box-solid {\n    border-top: 0;\n}\n.box.box-solid>.box-header .btn.btn-default {\n    background: transparent;\n}\n.box.box-solid>.box-header .btn:hover, .box.box-solid>.box-header a:hover {\n    background: rgba(0, 0, 0, 0.1);\n}\n.box.box-solid.box-default {\n    border: 1px solid #d2d6de;\n}\n.box.box-solid.box-default>.box-header {\n    color: #444;\n    background: #d2d6de;\n    background-color: #d2d6de;\n}\n.box.box-solid.box-default>.box-header a, .box.box-solid.box-default>.box-header .btn {\n    color: #444;\n}\n.box.box-solid.box-primary {\n    border: 1px solid #3c8dbc;\n}\n.box.box-solid.box-primary>.box-header {\n    color: #fff;\n    background: #3c8dbc;\n    background-color: #3c8dbc;\n}\n.box.box-solid.box-primary>.box-header a, .box.box-solid.box-primary>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid.box-info {\n    border: 1px solid #00c0ef;\n}\n.box.box-solid.box-info>.box-header {\n    color: #fff;\n    background: #00c0ef;\n    background-color: #00c0ef;\n}\n.box.box-solid.box-info>.box-header a, .box.box-solid.box-info>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid.box-danger {\n    border: 1px solid #dd4b39;\n}\n.box.box-solid.box-danger>.box-header {\n    color: #fff;\n    background: #dd4b39;\n    background-color: #dd4b39;\n}\n.box.box-solid.box-danger>.box-header a, .box.box-solid.box-danger>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid.box-warning {\n    border: 1px solid #f39c12;\n}\n.box.box-solid.box-warning>.box-header {\n    color: #fff;\n    background: #f39c12;\n    background-color: #f39c12;\n}\n.box.box-solid.box-warning>.box-header a, .box.box-solid.box-warning>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid.box-success {\n    border: 1px solid #00a65a;\n}\n.box.box-solid.box-success>.box-header {\n    color: #fff;\n    background: #00a65a;\n    background-color: #00a65a;\n}\n.box.box-solid.box-success>.box-header a, .box.box-solid.box-success>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid>.box-header>.box-tools .btn {\n    border: 0;\n    box-shadow: none;\n}\n.box.box-solid[class*='bg']>.box-header {\n    color: #fff;\n}\n.box .box-group>.box {\n    margin-bottom: 5px;\n}\n.box .knob-label {\n    text-align: center;\n    color: #333;\n    font-weight: 100;\n    font-size: 12px;\n    margin-bottom: 0.3em;\n}\n.box>.overlay, .overlay-wrapper>.overlay, .box>.loading-img, .overlay-wrapper>.loading-img {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%}\n.box .overlay, .overlay-wrapper .overlay {\n    z-index: 50;\n    background: rgba(255, 255, 255, 0.7);\n    border-radius: 3px;\n}\n.box .overlay>.fa, .overlay-wrapper .overlay>.fa {\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    margin-left: -15px;\n    margin-top: -15px;\n    color: #000;\n    font-size: 30px;\n}\n.box .overlay.dark, .overlay-wrapper .overlay.dark {\n    background: rgba(0, 0, 0, 0.5);\n}\n.box-header:before, .box-body:before, .box-footer:before, .box-header:after, .box-body:after, .box-footer:after {\n    content: \" \";\n    display: table;\n}\n.box-header:after, .box-body:after, .box-footer:after {\n    clear: both;\n}\n.box-header {\n    color: #444;\n    display: block;\n    padding: 10px;\n    position: relative;\n}\n.box-header.with-border {\n    border-bottom: 1px solid #f4f4f4;\n}\n.collapsed-box .box-header.with-border {\n    border-bottom: none;\n}\n.box-header>.fa, .box-header>.glyphicon, .box-header>.ion, .box-header .box-title {\n    display: inline-block;\n    font-size: 18px;\n    margin: 0;\n    line-height: 1;\n}\n.box-header>.fa, .box-header>.glyphicon, .box-header>.ion {\n    margin-right: 5px;\n}\n.box-header>.box-tools {\n    position: absolute;\n    right: 10px;\n    top: 5px;\n}\n.box-header>.box-tools [data-toggle=\"tooltip\"] {\n    position: relative;\n}\n.box-header>.box-tools.pull-right .dropdown-menu {\n    right: 0;\n    left: auto;\n}\n.btn-box-tool {\n    padding: 5px;\n    font-size: 12px;\n    background: transparent;\n    color: #97a0b3;\n}\n.open .btn-box-tool, .btn-box-tool:hover {\n    color: #606c84;\n}\n.btn-box-tool.btn:active {\n    box-shadow: none;\n}\n.box-body {\n    border-top-left-radius: 0;\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 3px;\n    border-bottom-left-radius: 3px;\n    padding: 10px;\n}\n.no-header .box-body {\n    border-top-right-radius: 3px;\n    border-top-left-radius: 3px;\n}\n.box-body>.table {\n    margin-bottom: 0;\n}\n.box-body .fc {\n    margin-top: 5px;\n}\n.box-body .full-width-chart {\n    margin: -19px;\n}\n.box-body.no-padding .full-width-chart {\n    margin: -9px;\n}\n.box-body .box-pane {\n    border-top-left-radius: 0;\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 0;\n    border-bottom-left-radius: 3px;\n}\n.box-body .box-pane-right {\n    border-top-left-radius: 0;\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 3px;\n    border-bottom-left-radius: 0;\n}\n.box-footer {\n    border-top-left-radius: 0;\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 3px;\n    border-bottom-left-radius: 3px;\n    border-top: 1px solid #f4f4f4;\n    padding: 10px;\n    background-color: #fff;\n}\n.direct-chat .box-body {\n    border-bottom-right-radius: 0;\n    border-bottom-left-radius: 0;\n    position: relative;\n    overflow-x: hidden;\n    padding: 0;\n}\n.direct-chat.chat-pane-open .direct-chat-contacts {\n    -webkit-transform: translate(0,  0);\n    -ms-transform: translate(0,  0);\n    -o-transform: translate(0,  0);\n    transform: translate(0,  0);\n}\n.direct-chat-messages {\n    -webkit-transform: translate(0,  0);\n    -ms-transform: translate(0,  0);\n    -o-transform: translate(0,  0);\n    transform: translate(0,  0);\n    padding: 10px;\n    height: 350px;\n    overflow: auto;\n}\n.direct-chat-msg, .direct-chat-text {\n    display: block;\n}\n.direct-chat-msg {\n    margin-bottom: 10px;\n}\n.direct-chat-msg:before, .direct-chat-msg:after {\n    content: \" \";\n    display: table;\n}\n.direct-chat-msg:after {\n    clear: both;\n}\n.direct-chat-messages, .direct-chat-contacts {\n    -webkit-transition: -webkit-transform .5s ease-in-out;\n    -moz-transition: -moz-transform .5s ease-in-out;\n    -o-transition: -o-transform .5s ease-in-out;\n    transition: transform .5s ease-in-out;\n}\n.direct-chat-text {\n    border-radius: 5px;\n    position: relative;\n    padding: 5px 10px;\n    background: #d2d6de;\n    border: 1px solid #d2d6de;\n    margin: 5px 0 0 50px;\n    color: #444;\n}\n.direct-chat-text:after, .direct-chat-text:before {\n    position: absolute;\n    right: 100%;\n    top: 15px;\n    border: solid transparent;\n    border-right-color: #d2d6de;\n    content: ' ';\n    height: 0;\n    width: 0;\n    pointer-events: none;\n}\n.direct-chat-text:after {\n    border-width: 5px;\n    margin-top: -5px;\n}\n.direct-chat-text:before {\n    border-width: 6px;\n    margin-top: -6px;\n}\n.right .direct-chat-text {\n    margin-right: 50px;\n    margin-left: 0;\n}\n.right .direct-chat-text:after, .right .direct-chat-text:before {\n    right: auto;\n    left: 100%;\n    border-right-color: transparent;\n    border-left-color: #d2d6de;\n}\n.direct-chat-img {\n    border-radius: 50%;\n    float: left;\n    width: 40px;\n    height: 40px;\n}\n.right .direct-chat-img {\n    float: right;\n}\n.direct-chat-info {\n    display: block;\n    margin-bottom: 2px;\n    font-size: 12px;\n}\n.direct-chat-name {\n    font-weight: 600;\n}\n.direct-chat-timestamp {\n    color: #999;\n}\n.direct-chat-contacts-open .direct-chat-contacts {\n    -webkit-transform: translate(0,  0);\n    -ms-transform: translate(0,  0);\n    -o-transform: translate(0,  0);\n    transform: translate(0,  0);\n}\n.direct-chat-contacts {\n    -webkit-transform: translate(101%,  0);\n    -ms-transform: translate(101%,  0);\n    -o-transform: translate(101%,  0);\n    transform: translate(101%,  0);\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    height: 250px;\n    width: 100%;\n    background: #222d32;\n    color: #fff;\n    overflow: auto;\n}\n.contacts-list>li {\n    border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n    padding: 10px;\n    margin: 0;\n}\n.contacts-list>li:before, .contacts-list>li:after {\n    content: \" \";\n    display: table;\n}\n.contacts-list>li:after {\n    clear: both;\n}\n.contacts-list>li:last-of-type {\n    border-bottom: none;\n}\n.contacts-list-img {\n    border-radius: 50%;\n    width: 40px;\n    float: left;\n}\n.contacts-list-info {\n    margin-left: 45px;\n    color: #fff;\n}\n.contacts-list-name, .contacts-list-status {\n    display: block;\n}\n.contacts-list-name {\n    font-weight: 600;\n}\n.contacts-list-status {\n    font-size: 12px;\n}\n.contacts-list-date {\n    color: #aaa;\n    font-weight: normal;\n}\n.contacts-list-msg {\n    color: #999;\n}\n.direct-chat-danger .right>.direct-chat-text {\n    background: #dd4b39;\n    border-color: #dd4b39;\n    color: #fff;\n}\n.direct-chat-danger .right>.direct-chat-text:after, .direct-chat-danger .right>.direct-chat-text:before {\n    border-left-color: #dd4b39;\n}\n.direct-chat-primary .right>.direct-chat-text {\n    background: #3c8dbc;\n    border-color: #3c8dbc;\n    color: #fff;\n}\n.direct-chat-primary .right>.direct-chat-text:after, .direct-chat-primary .right>.direct-chat-text:before {\n    border-left-color: #3c8dbc;\n}\n.direct-chat-warning .right>.direct-chat-text {\n    background: #f39c12;\n    border-color: #f39c12;\n    color: #fff;\n}\n.direct-chat-warning .right>.direct-chat-text:after, .direct-chat-warning .right>.direct-chat-text:before {\n    border-left-color: #f39c12;\n}\n.direct-chat-info .right>.direct-chat-text {\n    background: #00c0ef;\n    border-color: #00c0ef;\n    color: #fff;\n}\n.direct-chat-info .right>.direct-chat-text:after, .direct-chat-info .right>.direct-chat-text:before {\n    border-left-color: #00c0ef;\n}\n.direct-chat-success .right>.direct-chat-text {\n    background: #00a65a;\n    border-color: #00a65a;\n    color: #fff;\n}\n.direct-chat-success .right>.direct-chat-text:after, .direct-chat-success .right>.direct-chat-text:before {\n    border-left-color: #00a65a;\n}"
  },
  {
    "path": "page/editor/css/sms_editor.css",
    "content": ".editor_box{\n\tborder-top-width: 0px;\n\tborder-color: #000000;\n\tborder-style: solid;\n\tborder-bottom-width: 0px;\n}\n.editor_header{\n\tpadding: 10px;\n\tbackground-color: #595959;\n}\n\n.editor_area{\n\t\n\theight: 190px;\n\twidth: 100%;\n\tresize: vertical;\n\tpadding: 12px;\n\tbackground-color: #E2DEDE;\n\tcolor: #000000;\n\tfont-family: cursive;\n\tborder-width: 1px;\n\tborder-color: #B7B7B7;\n\tborder-style: solid;\n\tfont-size: 16px;\n\tfont-weight: bold;\n}\n\n\n\n.btn-group .dropdown-menu a{\n    color:#fff;\n}\n\n.btn-default .dropdown-menu {\n  color: #000 !important;\n}\n.btn-default .dropdown-menu li > a:hover,\n.btn-default .dropdown-menu li > a:focus {\n  background-color: #000 !important;\n  color:#fff !important;\n}\n.btn-group-primary .dropdown-menu {\n  background-color: #3784c5 !important;\n}\n.btn-group-primary .dropdown-menu li > a:hover,\n.btn-group-primary .dropdown-menu li > a:focus {\n  background-color: #428bca !important;\n}\n.btn-group-success .dropdown-menu {\n  background-color: #51b351 !important;\n}\n.btn-group-success .dropdown-menu li > a:hover,\n.btn-group-success .dropdown-menu li > a:focus {\n  background-color: #5cb85c !important;\n}\n.btn-group-info .dropdown-menu {\n  background-color: #4ebbdb !important;\n}\n.btn-group-info .dropdown-menu li > a:hover,\n.btn-group-info .dropdown-menu li > a:focus {\n  background-color: #5bc0de !important;\n}\n.btn-group-warning .dropdown-menu {\n  background-color: #efa640 !important;\n}\n.btn-group-warning .dropdown-menu li > a:hover,\n.btn-group-warning .dropdown-menu li > a:focus {\n  background-color: #f0ad4e !important;\n}\n.btn-group-danger .dropdown-menu {\n  background-color: #d64742 !important;\n}\n.btn-group-danger .dropdown-menu li > a:hover,\n.btn-group-danger .dropdown-menu li > a:focus {\n  background-color: #d9534f !important;\n\n"
  },
  {
    "path": "page/editor/js/sms_editor.js",
    "content": "function select(className){\n\n    clear(className);\n    title=title_name(className);\n    set_header_title(title);\n    ajax_enjin(className);\n\n  }\n\n  function ajax_enjin(className){\n\n        $.ajax({\n        type: 'POST',\n        url: 'student_profile_action.php',\n        data: {\n            test: className\n        },\n        beforeSend: function() {\n          //document.getElementById(\"result\").innerHTML=\"Submitting\";\n        },\n        success: function(response) {\n           //alert(\"Yay!\");\n            document.getElementById(\"panel_body\").innerHTML=response; \n        }\n    });\n\n  }\n\n\n\n  function clear(className){\n  \tdocument.getElementById(\"exam\").className=\"\";\n    document.getElementById(\"personal\").className = \"\";\n    document.getElementById(\"payment\").className = \"\";\n    document.getElementById(\"attends\").className = \"\";\n    document.getElementById(className).className = \"active\";\n  }\n\n  function set_header_title(title){\n     document.getElementById(\"panel_title\").innerHTML=title;\n\n  }\n\n  function title_name(className){\n  \ttitle=\"\";\n  \tif(className==\"exam\")title=\"Exam Result\";\n  \telse if(className==\"personal\")title=\"Personal Information\";\n  \treturn title;\n  }\n\n  function key(){\n  \t//alert(\"sdaf\");\n  \tper=document.getElementById(\"select_level\").value;\n    var country = document.getElementById(\"select_level\");\n    country.options[country.options.selectedIndex].selected = false;\n\n  \ttext=document.getElementById(\"editor\").value;\n\n  \tvar myElement = document.getElementById('editor');\n    var startPosition = myElement.selectionStart;\n    var endPosition = myElement.selectionEnd;\n\n    var text1 = text.substring(0, startPosition);\n\n    len=text.length;\n    var text2= text.substring(startPosition, len);\n\n    \n    len1=text1+per;\n    len1=len1.length;\n  \ttext=text1+per+text2;\n    document.getElementById(\"editor\").value=text;\n\n    setCaretToPos(myElement, len1);\n    count_len();\n\n  }\n\n  function count_len(){\n    \n  \ttext=document.getElementById(\"editor\").value;\n  \tlen=text.length;\n  \tdocument.getElementById(\"len\").innerHTML=len;\n  }\n\n  function test(){\n  \talert(\"sdaf\");\n  }\n\n\n  function setSelectionRange(input, selectionStart, selectionEnd) {\n  if (input.setSelectionRange) {\n    input.focus();\n    input.setSelectionRange(selectionStart, selectionEnd);\n  }\n  else if (input.createTextRange) {\n    var range = input.createTextRange();\n    range.collapse(true);\n    range.moveEnd('character', selectionEnd);\n    range.moveStart('character', selectionStart);\n    range.select();\n  }\n}\n\nfunction setCaretToPos (input, pos) {\n  setSelectionRange(input, pos, pos);\n}\n\nfunction loader1(divname){\n  document.getElementById(divname).innerHTML = \"<img src='https://public.udvash.com/Content/Image/ajax-loader.gif' />\";\n}\nfunction close_loader(divname){\n  document.getElementById(divname).innerHTML = \"Sucess\";\n}"
  },
  {
    "path": "page/editor/sms_editor.php",
    "content": "\n<script type=\"text/javascript\" src=\"page/editor/js/sms_editor.js\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/editor/css/sms_editor.css\">\n\n  <div class=\"editor_boxx\">\n  <div class=\"editor_header\">\n\n\n <select class=\"form-control\" style=\"background: #424242; color: #ffffff\" id=\"select_level\" onchange=\"key()\" style=\"\" >\n  <option value=\"\" selected=\"\">Select Action</option>\n  <?php $sms->get_syntext(); ?>\n</select>\n\n \n  </div>\n  <div class=\"editor_body\">\n  \n  <textarea id=\"editor\" onkeyup=\"count_len()\" class=\"editor_area\" rows=\"7\" cols=\"7\" placeholder=\"\"></textarea>\n  </div>\n  <div id=\"sms_res\" style=\"color: #000000\"></div>\n</div>\n\n"
  },
  {
    "path": "page/exam/add_exam.php",
    "content": "\n  <div class=\"row\">\n      <div class=\"col-xs-12 col-sm-12\">  \n          <form  action=\"exam_action.php\" autocomplete=\"off\" method=\"POST\">\n     \n<div class='form-group'>\n  <label class='control-label' for='inputName'><b>Select Program</b></label>\n  <div class='input-group'>\n  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n\n<select class='form-control'  name='add_program_select' id='add_program_select' class='cs-select cs-skin-border' onchange=\"select_program()\"  required=\"\">\n  <option value=\"0\">Select Program</option>\n  <?php $program_ob->select_program(); ?>\n</select>\n</div></div>\n\n<div class='form-group'>\n  <label class='control-label' for='inputName'><b>Select Subject</b></label>\n  <div class='input-group'>\n  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n\n<div id=\"subject_field\">\n<select class='form-control'  name='subject' id='program' class='cs-select cs-skin-border' onchange=\"\"  required=\"\">\n  \n</select>\n</div>\n</div></div>\n\n\n  <?php\n\n$site->form_input(\"Exam Name\",\"exam_name\",\"exam_name\",\"text\");\n$site->form_input(\"MCQ Mark\",\"mcq\",\"mcq\",\"number\");\n$site->form_input(\"Written Mark\",\"written\",\"written\",\"number\");\n$site->form_input(\"Total Mark\",\"total\",\"total\",\"number\");\n$site->form_input(\"Exam Date\",\"date\",\"date\",\"date\");\n\n  ?>\n          <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save</button>\n        </form>\n      </div>\n</div>\n   \n\n \n"
  },
  {
    "path": "page/exam/exam_list.php",
    "content": "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/index/style.css\">\n<script type=\"text/javascript\" src=\"page/exam/js/exam.js\"></script>\n<div class=\"row\" style=\"\">\n      <script type=\"text/javascript\">\n        $(document).ready(function() {\n           $('table.display').DataTable();\n      } );\n      </script>\n        \n \n        <div class=\"col-md-12\">\n            <div class=\"dashboard_box\">\n                <div class=\"box_header\">Exam List</div>\n                <div class=\"box_body\">\n                   <div class=\"pull-rightt\" style=\"margin-top: -20px;\">\n            <center><button class=\"button\" onclick=\"get_exam_form('insert')\">+ Add Exam</button></center>\n          </div>\n                \n                  <table id=\"\" class=\"display\" width=\"100%\">\n                    <thead style=\"width: 100%;\">\n                    <tr>\n                      <td class=\"td_list1\"></td>\n                      <td class=\"td_list1\">#</td>\n                      <td class=\"td_list1\">Income Name</td>\n                      <td class=\"td_list1\">Program Name</td>\n                      <td class=\"td_list1\">Subject Name</td>\n                      <td class=\"td_list1\">MCQ</td>\n                      <td class=\"td_list1\">Written</td>\n                      <td class=\"td_list1\">Total</td>\n                      <td class=\"td_list1\">Date</td>\n                      <td class=\"td_list1\">Action</td>\n                      \n                    </tr>\n                  </thead>\n                  <tbody>\n                    <?php \n                    \n                    foreach ($exam as $key => $value) {\n                            $id=$value['id'];\n                            $program_id=$value['program_id'];\n                            $sub_id=$value['sub_id'];\n\n                     ?>\n \n            <tr>\n              <td class=\"td_list2\"></td>\n                      <td class=\"td_list2\"><?php echo $value['id']; ?></td>\n                      <td class=\"td_list2\">\n                                <?php echo $value['exam_name']; ?>    \n                            </td>\n                      <td class=\"td_list2\">\n                                <?php echo $program[$program_id]['name']; ?>    \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $subject[$sub_id]['name']; ?>    \n                            </td>\n                      <td class=\"td_list2\">\n                                <?php echo $value['mcq']; ?>    \n                            </td>\n                      <td class=\"td_list2\">\n                                <?php echo $value['written']; ?>   \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $value['total']; ?>   \n                            </td>\n                          \n                            <td class=\"td_list2\">\n                                <?php echo $value['exam_date']; ?>   \n                            </td>\n                            <td class=\"td_list2\">\n                                <button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Update\" data-title=\"Update\" onclick=\"get_exam_form('update',<?php echo \"$id\"; ?>)\" >\n                                <span class=\"glyphicon glyphicon-pencil\"></span>\n                                </button>\n                                <button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" onclick=\"get_exam_form('delete',<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button>\n                            </td>\n                      \n                    </tr>\n                    <?php } ?>\n                    </tbody>\n                  </table>\n                </div>\n            </div>\n        </div>\n        \n    </div>  \n\n    <style type=\"text/css\">\n    thead{\n        background-color: #EFF0F2;\n        border-width: 0px;\n    }\n    .td_list1{\n        background-color: #EFF0F2;\n        color: #000000;\n        padding: 10px;\n        font-weight: bold;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n    .td_list2{\n        background-color: #ffffff;\n        color: #000000;\n        padding: 8px;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n</style>"
  },
  {
    "path": "page/exam/exam_result.php",
    "content": "<script type=\"text/javascript\" src=\"page/exam/js/result.js\"></script>\n<button onclick=\"fun()\">fun</button>"
  },
  {
    "path": "page/exam/js/exam.js",
    "content": "\nurl=\"exam_action.php\";\nmodal_body=\"modal_md_body\";\nmodal=\"md\";\n\nvar action_data={\n    'url':url,\n    'div':modal_body,\n    'load':0\n};\n \nfunction get_exam_form(type,id=0){\n  if(type==\"insert\"){\n    header=\"Add exam\";\n    data_key=\"get_exam_form\";\n    val=1;\n  }\n  else if(type==\"update\"){\n    header=\"Update exam\";\n    data_key=\"update_exam_form\";\n    val=id;\n  }\n  else{\n    header=\"Delete exam\";\n    data_key=\"delete_exam_form\";\n    val=id;\n  }\n\n  modal_open(modal,header);\n  loader(modal_body);\n\n  var data={\n    [data_key]:val\n  }\n\n  get_ajax(action_data,data);\n}\n\n\nfunction exam_action(type,id=0){\n  \n  delete_type=0;\n  if(type==\"insert\"){\n    data_key=\"insert_exam\";\n    val=0;\n  }\n  else if(type==\"update\"){\n    data_key=\"update_exam\";\n    val=parseInt(id);\n  }\n  else{\n    data_key=\"delete_exam\";\n    val=parseInt(id);\n    delete_type=1;\n  }\n\n  if(delete_type==0){\n    mcq=get_value(\"mcq\");\n    written=get_value(\"written\");\n    mcq=(mcq==\"\")?0:mcq;\n    written=(written==\"\")?0:written;\n    total=parseInt(mcq)+parseInt(written);\n    var data_val={\n        'id':parseInt(id),\n        'exam_name':get_value(\"exam_name\"),\n        'program_id':get_value(\"program_select\"),\n        'sub_id':get_value(\"select_subject\"),\n        'mcq':mcq,\n        'written':written,\n        'total':total,\n        'exam_date':get_value(\"exam_date\")\n    }\n    error=filter_data(data_val);\n  }\n  else{\n    var data_val={\n      'id':val\n    }\n    error=0;\n  }\n    \n    var data={\n        [data_key]:data_val\n    }\n    \n    if(error==0){\n         action_data['load']=1;\n         loader(modal_body);\n         get_ajax(action_data,data);\n    }\n}\n\nfunction select_program(){\n   id=get_value(\"program_select\");\n   var data={\n      \"program_select\": id\n   }\n\n   $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        beforeSend: function() {\n        },\n        success: function(response) {\n            set_html(\"select_subject\",response);\n        }\n    });\n}\n\n\nfunction filter_data(data){\n    error=\"\";\n    if(data['program_id']==-1){\n      error=\"Please Select Program\";\n    }\n    else if(data['sub_id']==\"\"){\n      error=\"Please Select Subject\";\n    }\n    else if(data['exam_name']==\"\"){\n      error=\"Please Enter Exam Name\";\n    }\n    else if(data['exam_date']==\"\"){\n      error=\"Please Enter Exam Date\";\n    }\n\n    if(error!=\"\")alert(error);\n    return (error!=\"\")?1:0;\n}\n"
  },
  {
    "path": "page/exam/public_result.php",
    "content": ""
  },
  {
    "path": "page/exam_page/exam_category/exam_category.php",
    "content": "<link rel=\"stylesheet\" type=\"text/css\" href=\"page/index/style.css\">\n<script type=\"text/javascript\" src=\"page/exam_page/exam_category/js/script.js\"></script>\n<div class=\"row\" style=\"\">\n    \t<script type=\"text/javascript\">\n    \t\t$(document).ready(function() {\n   \t\t\t\t $('table.display').DataTable();\n\t\t\t} );\n    \t</script>\n    \t  \n \n        <div class=\"col-md-12\">\n            <div class=\"dashboard_box\">\n                <div class=\"box_header\">Exam Category List</div>\n                <div class=\"box_body\">\n                \t <div class=\"pull-rightt\" style=\"margin-top: -20px;\">\n\t\t\t\t\t\t<center><button class=\"button\" onclick=\"get_exam_form('insert')\">+ Add Exam Category</button></center>\n\t\t\t\t\t</div>\n                \n                \t<table id=\"\" class=\"display\" width=\"100%\">\n                \t\t<thead style=\"width: 100%;\">\n                \t\t<tr>\n                \t\t\t<td class=\"td_list1\"></td>\n                \t\t\t<td class=\"td_list1\">#</td>\n                \t\t\t<td class=\"td_list1\">Category Name</td>\n                \t\t\t<td class=\"td_list1\">Program Name</td>\n                            <td class=\"td_list1\">Added By</td>\n                            <td class=\"td_list1\">Added Date</td>\n                \t\t\t<td class=\"td_list1\">Action</td>\n                \t\t\t\n                \t\t</tr>\n                \t</thead>\n                \t<tbody>\n                \t\t<?php \n\n                        $info=$exam->get_exam_category();\n                \t\tforeach ($info as $key => $value) {\n                        $id=$value['id'];\n                        ?>\n \n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"td_list2\"></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['id']; ?></td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['category_name']; ?>    \n                            </td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['program_name']; ?>    \n                            </td>\n                           \n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['add_by']; ?>    \n                            </td>\n                \t\t\t<td class=\"td_list2\">\n                                <?php echo $value['date']; ?>   \n                            </td>\n                            <td class=\"td_list2\">\n                                <button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Update\" data-title=\"Update\" onclick=\"get_exam_form('update',<?php echo \"$id\"; ?>)\" >\n                                <span class=\"glyphicon glyphicon-pencil\"></span>\n                                </button>\n                                <button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" onclick=\"get_exam_form('delete',<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button>\n                            </td>\n                \t\t\t\n                \t\t</tr>\n                \t\t<?php } ?>\n                \t\t</tbody>\n                \t</table>\n                </div>\n            </div>\n        </div>\n        \n    </div>  \n\n    <style type=\"text/css\">\n    thead{\n        background-color: #EFF0F2;\n        border-width: 0px;\n    }\n    .td_list1{\n        background-color: #EFF0F2;\n        color: #000000;\n        padding: 10px;\n        font-weight: bold;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n    .td_list2{\n        background-color: #ffffff;\n        color: #000000;\n        padding: 8px;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n</style>"
  },
  {
    "path": "page/exam_page/exam_category/js/script.js",
    "content": "url=\"exam_category_action.php\";\nmodal_body=\"modal_sm_body\";\nmodal=\"sm\";\n\n function get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': _load\n    }\n    return data;\n}\n\nfunction get_exam_form(type,id=0){\n  if(type==\"insert\"){\n    header=\"Add Exam Category\";\n    data_key=\"get_exam_category_form\";\n    val=1;\n  }\n  else if(type==\"update\"){\n    header=\"Update Exam Category\";\n    data_key=\"update_exam_category_form\";\n    val=id;\n  }\n  else{\n    header=\"Delete Exam Category\";\n    data_key=\"delete_exam_category_form\";\n    val=id;\n  }\n\n  modal_open(modal,header);\n  loader(modal_body);\n\n  var data={\n    [data_key]:val\n  }\n\n  get_ajax(get_action_data(),data);\n}\n\n\nfunction exam_category_action(type,id=0){\n  \n  delete_type=0;\n  if(type==\"insert\"){\n    data_key=\"insert_exam_category\";\n    val=0;\n  }\n  else if(type==\"update\"){\n    data_key=\"update_exam_category\";\n    val=id;\n  }\n  else{\n    data_key=\"delete_exam_category\";\n    val=id;\n    delete_type=1;\n  }\n\n  if(delete_type==0){\n    var data_val={\n        'id':val,\n        'category_name':get_value(\"exam_category_name\"),\n        'program_id':get_value(\"select_program\")\n    }\n    error=filter_data(data_val);\n  }\n  else{\n    var data_val={\n      'id':val\n    }\n    error=0;\n  }\n    \n    var data={\n        [data_key]:data_val\n    }\n    \n    if(error==0){\n         loader(modal_body);\n         get_ajax(get_action_data(modal_body,1),data);\n    }\n}\n\n\n\n\nfunction filter_data(data){\n    exam_category=data['category_name'];\n    program_id=data['program_id'];\n    error=0;\n    if(exam_category==\"\"){\n        alert(\"Enter exam_category Name\");\n        error=1;\n    }\n    else if(program_id==\"\" || program_id==-1){\n        alert(\"Select Program\");\n        error=1;\n    }\n    return error;\n}\n"
  },
  {
    "path": "page/exam_page/exam_panel/exam_panel.php",
    "content": "<script type=\"text/javascript\" src=\"page/exam_page/exam_panel/js/exam_panel.js\"></script>\n<script type=\"text/javascript\" src=\"page/exam_page/exam_panel/js/add_result_script.js\"></script>\n\n<center><button class=\"btn\" style=\"outline: none;\" onclick=\"view_exam_panel()\">View Panel</button></center>\n\n <div class=\"row\">\n    \n        <div class=\"dropdown\" style=\"\">\n          <div class=\"col-md-2\"></div>\n          <div class=\"col-md-3\">\n            <select onchange=\"program_select()\" class=\"select\" id=\"program_select\" name=\"options\">\n            \t<option value=\"0\">Select Program</option>\n            \t<?php $program_ob->select_program(); ?>\n            </select>\n          </div>\n\n          <div class=\"col-md-3\">\n            <select class=\"select\" id=\"exam_category_select\" name=\"options\">\n            \t<option value=\"-1\">Select Exam Category</option>\n            </select>\n            <div id=\"select_loader\"></div>\n          </div>\n          <div class=\"col-md-2\">\n          \t<button class=\"btn_select\" onclick=\"view_exam_panel()\">View Program</button>\n          </div>\n    </div>\n</div> \n\n<div style=\"margin-bottom: 15px;\"></div>\n<div id=\"view_exam_panel\"></div>"
  },
  {
    "path": "page/exam_page/exam_panel/js/add_result_script.js",
    "content": "\nvar student_row_list=[];\n\nfunction add_result(){\n    var data={\n        \"add_result\": get_value(\"total\")\n    }\n\n    loader(\"add_result\");\n    get_ajax(get_action_data(\"add_result\"), data);\n}\n\nfunction check_id(row_num){\n    row_name=\"check_\"+row_num;\n    student_row_id_name=\"student_id_\"+row_num;\n    \n    loader(row_name,25);\n    student_id=get_value(student_row_id_name);\n\n    if(student_id==\"\"){\n        set_html(row_name,\"\");\n        student_row_list[row_num]=0;\n        return; \n    }\n    student_id=parseInt(student_id);\n    if(student_id<10000){\n        process_check_id_response(row_name,add_result_resonse_data_make(\"not_found\"));\n        student_row_list[row_num]=0;\n        return;\n    }\n\n    var data={\n        'check_id': student_id\n    }\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n            response=JSON.parse(response);\n            error=response.error;\n            if(error==\"found\")student_row_list[row_num]=1;\n            else student_row_list[row_num]=0;\n            process_check_id_response(row_name,add_result_resonse_data_make(error));\n        }\n    });\n}\n\nfunction process_check_id_response(row_name,response){\n    style=\"style='color:\"+response.color+\"'\";\n    class_icon=\" class='icon glyphicon glyphicon-\"+response.icon+\"'\";\n    title=\"title='\"+response.title+\"'\";\n    span=\"<span\"+class_icon+style+title+\"</span>\"\n    set_html(row_name,span); \n}\n\nfunction add_result_resonse_data_make(error){\n    \n\n    \n    color=\"green\";\n    icon=\"ok\";\n    title=\"Student ID Valid\";\n    \n    if(error==\"not_found\"){\n        color=\"red\";\n        icon=\"remove\";\n        title=\"Student ID Not Found\";\n    }\n    else if(error==\"already_added\"){\n        color=\"blue\";\n        icon=\"ok\";\n        title=\"Student ID Already Added\";\n    }\n    else if(error==\"found_but_not_program\"){\n        color=\"blue\";\n        icon=\"remove\";\n        title=\"Student ID Not in this program\";\n    }\n    \n    response=[];\n    response['color']=color;\n    response['icon']=icon;\n    response['title']=title;\n    return response;\n}\n\nfunction save_result(){\n\n    var valid_list=[];\n\n    for (let [key, value] of Object.entries(student_row_list)) {\n            if(value==1)valid_list.push(key);\n    }\n    console.log(valid_list);\n\n}"
  },
  {
    "path": "page/exam_page/exam_panel/js/exam_control.js",
    "content": ""
  },
  {
    "path": "page/exam_page/exam_panel/js/exam_panel.js",
    "content": "url = \"exam_panel_action.php\";\nmodal_body = \"modal_md_body\";\ndiv=\"exam_panel_body\";\nvar exam_category=\"\";\nvar panel_title=\"panel_title\";\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\nfunction program_select(){\n    var pid=get_value(\"program_select\");\n    \n    var data={\n        \"program_select\": pid\n    }\n    loader(\"select_loader\",50);\n\n    $.ajax({\n        type: \"POST\",\n        url: url,\n        data: data,\n        success: function(responce){\n            set_html(\"exam_category_select\",responce);\n            set_html(\"select_loader\",\"\");\n        }\n    });\n\n}\n\nfunction view_exam_panel(){\n    \n    var exam_cat=get_value(\"exam_category_select\");\n    \n    if(exam_cat==-1 || exam_cat==\"\"){\n        alert(\"Please Select Program\");\n        return;\n    }\n\n    exam_category=exam_cat;\n\n\tvar data={\n\t\t\"view_exam_panel\": exam_category\n\t}\n\n    loader(\"view_exam_panel\");\n\t\n    $.ajax({\n        type: \"POST\",\n        url: url,\n        data: data,\n        success:function(responce){\n            set_html(\"view_exam_panel\",responce);\n            get_dashboard();\n\n        }\n    })\n}\n\n\n\nfunction view_exam(exam_id){\n\n    var data={\n        \"view_exam\": exam_id\n    }\n    loader(\"exam_panel_body\");\n    $.ajax({\n        type: \"POST\",\n        url: url,\n        data: data,\n        success:function(responce){\n            set_html(\"exam_panel_body\",responce);\n        }\n    })\n}\n\nfunction get_dashboard(){\n    var data={\n        \"get_dashboard\": exam_category\n    }\n    set_html(panel_title,\"Exam Dashboard\")\n    loader(\"exam_panel_body\");\n    get_ajax(get_action_data(\"exam_panel_body\"), data);\n\n}\n\nfunction get_exam_list(){\n\n    var data={\n        \"get_exam_list\": exam_category\n    }\n    set_html(panel_title,\"Exam List\")\n    loader(\"exam_panel_body\");\n    get_ajax(get_action_data(\"exam_panel_body\"), data);\n}\n\nfunction admit_card(){\n\n    var data={\n        'admit_card': 1\n    }\n\n    loader(\"exam_panel_body\");\n    get_ajax(get_action_data(\"exam_panel_body\"), data);\n}\n\n// function for exam panel\nfunction exam_control(type){\n\n    var data={};\n    data[type]=1;\n\n    set_html(\"exam_panel_title\",type);\n    loader(\"exam_control_panel_body\");\n    get_ajax(get_action_data(\"exam_control_panel_body\"), data);\n}\n\n\n"
  },
  {
    "path": "page/export/excel.php",
    "content": "<?php\n\n\n?>\n\n\n<!DOCTYPE html>\n<html>\n<head>\n<style>\ntable, th, td {\n    border: 1px solid black;\n    border-collapse: collapse;\n    width: 100%;\n    font-size: 20px;\n    text-align: center;\n}\nth, td {\n    padding: 15px;\n    text-align: left;\n}\ntable#t01 {\n    width: 100%;    \n    background-color: #f1f1c1;\n}\n</style>\n</head>\n<body>\n\n<div style=\"text-align: center; font-size: 20px\">Student List</div>\n<div style=\"float: left; font-size: 20px\">Shift: Morning</div>\n<div style=\"text-align: right; font-size: 20px\">Class: 7</div>\n\n<table  id=\"t01\">\n  <tr>\n    <th>Student Id</th>\n    <th>Student Name</th>\n    <th>Student Mobile</th>\n    <th>Program Name</th>\n    <th>Batch Name</th>\n    \n  </tr>\n\n  <?php\n  //print_r($student);\n$c=0;\n  for($c=0; $c<10; $c++) {\n\n    ?>\n  <tr>\n    <td><?php echo \"$c\"; ?></td>\n    <td><?php echo \"name\"; ?></td>\n    <td><?php echo \"student_mobile\"; ?></td>\n    <td><?php echo \"program_name\"; ?></td>\n    <td><?php echo \"batch_name\"; ?></td>\n  </tr>\n  <?php } ?>\n</table>\n<br>\n\n\n\n</body>\n</html>\n\n\n<?php\n\nheader(\"Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\");\nheader(\"Content-Disposition: attachment;filename=\\\"filename.xlsx\\\"\");\nheader(\"Cache-Control: max-age=0\");\n\n/** Error reporting */\nerror_reporting(E_ALL);\n\n/** Include path **/\nini_set('include_path', ini_get('include_path').';../Classes/');\n\n/** PHPExcel */\ninclude 'PHPExcel.php';\n\n/** PHPExcel_Writer_Excel2007 */\ninclude 'PHPExcel/Writer/Excel2007.php';\n?>"
  },
  {
    "path": "page/export/style/excel_table.css",
    "content": ""
  },
  {
    "path": "page/id_card/id_card_editor/css/style.css",
    "content": ""
  },
  {
    "path": "page/id_card/id_card_editor/id_card_editor.php",
    "content": "\n<script type=\"text/javascript\" src=\"page/id_card/id_card_editor/js/script.js\"></script>\n<div class=\"row\">\n\t<div class=\"col-md-5\">\n\t\t<div class=\"id_card_info_area\">\n\t\t\t<div class=\"editor_card_header\">\n\t\t\t\tID Card\n\t\t\t</div>\n\t\t\t<div class=\"editor_card_body\" id=\"\">\n\n\t\t\t\t<div id=\"editor_card_body\" style=\"margin-left: 40px;\"></div>\n\t\t\t</div>\n\t\t\t<div class=\"editor_card_header\" style=\"height: auto;\">\n\t\t\t\t<button class=\"card_option_btn\" onclick=\"load_id_card()\">Basic Setting</button>\n\t\t\t\t<button class=\"card_option_btn\" onclick=\"click_option(1)\">Image</button>\n\t\t\t\t<button class=\"card_option_btn\" onclick=\"test()\">Border</button>\n\t\t\t\t<button class=\"card_option_btn\" onclick=\"click_option(3)\">Color</button>\n\t\t\t\t<button class=\"card_option_btn\" onclick=\"click_option(3)\">Shadaw</button>\n\t\t\t\t<button class=\"card_option_btn\" onclick=\"click_option(3)\">Option</button>\n\t\t\t\t<button class=\"card_option_btn\" onclick=\"click_option(3)\">Barcode</button>\n\t\t\t\t<button class=\"card_option_btn\" onclick=\"click_option(3)\">Area Button 3</button>\n\t\t\t</div>\n\t\t\t\t\n\t\t</div>\n\t</div>\n\t<div class=\"col-md-7\" style=\"margin-left: -30px;\">\n\t\t<div class=\"editor_card_header\">\n\t\t\t\tID Card\n\t\t</div>\n\t\t<div id=\"editor_area\" class=\"editor_area\">\n\t\t\t\n\t\t</div>\n\t\t<div class=\"editor_area_footer\">\n\t\t\t<button class=\"card_option_btn\" onclick=\"click_option(1)\">Image</button>\n\t\t\t<button class=\"card_option_btn\" onclick=\"click_option(1)\">Image</button>\n\t\t</div>\n\t</div>\n</div>\n\n\n\n<script type=\"text/javascript\">\n\tclick_option(1);\n</script>\n\n<style type=\"text/css\">\n\t\n\t.card_option_btn{\n  \t\tbackground-color: rgba(0,0,0.1,0.1);\n  \t\tcolor: var(--font-color);\n  \t\tpadding: 10px;\n  \t\tborder-radius: 5px;\n  \t\tmargin-left: 5px;\n  \t\tmargin-bottom: 5px;\n  \t\twidth: 31%;\n  \t\tborder: 1px solid rgba(0,0,0.1,0.1);\n  \t\tfont-size: 15px;\n  \t\tfont-family: \"Trebuchet MS\", Helvetica, sans-serif;\n}\n\t.card_option_btn:hover{\n   \t\tbackground-color: rgba(0,0,0,0.3);\n\t}\n\t.card_option_btn:focus {\n    \toutline: 0 !important;\n    \tbackground-color: rgba(0,0,0,0.3);\n\t}\n\t.editor_area{\n\t\theight: 410px;\n\t\tborder: 1px solid var(--bg-color);\n\t\tpadding: 15px;\n\t\tbackground-color: #C6C9D1;\n\t\toverflow: scroll;\n\t\tborder-width: 0px 6px 0px 3px;\n\t}\n\t.editor_area_footer{\n\t\tbackground-color: var(--bg-color);\n\t\tpadding: 7px;\n\t\tborder: 1px solid var(--bg-color);\n\t}\n\t.id_card_info_area{\n\t\tborder: 1px solid var(--bg-color);\n\t\tborder-width: 0px 3px 0px 6px;\n\t\theight: auto;\n\t}\n\t.editor_card_header{\n\t\tborder: 1px solid var(--bg-color);\n\t\tborder-width: 0px 3px 0px 3px;\n\t\tbackground-color: var(--bg-color);\n\t\tcolor: var(--font-color);\n\t\tpadding: 10px;\n\t}\n\t.editor_card_body{\n\t\tmin-height: 310px;\n\t\tmax-height: auto;\n\t\tpadding: 15px;\n\t}\n\t.option1{\n\t\theight: 150px;\n\t\tpadding-left: 15px;\n\t\tbackground-color: #ffffff;\n\t}\n\t.option2{\n\t\theight: 150px;\n\t\tpadding-left: 15px;\n\t\tbackground-color: #eeeeee;\n\t}\n\t.option1 li{\n\t\tbackground-color: var(--bg-color);\n\t\tpadding: 5px;\n\t\tcolor: var(--font-color);\n\t\tmargin-bottom: 2px;\n\t}\n</style>\n\n"
  },
  {
    "path": "page/id_card/id_card_editor/js/script.js",
    "content": "url = \"id_card_action.php\";\nmodal_body = \"modal_lg_body\";\nmodal = \"lg\";\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\nfunction load_id_card(){\n\tvar data={\n\t\t\"load_id_card\": 1\n\t}\n\tloader(\"editor_card_body\");\n\tget_ajax(get_action_data(\"editor_card_body\"), data);\n}\n\nfunction click_option(btn){\n\tvar data={\n\t\t\"click_option\": btn\n\t}\n\tget_ajax(get_action_data(\"editor_area\"), data);\n}\n\nfunction test(){\n\tvar slider = document.getElementById(\"myRange\");\n\tslider.oninput = function() {\n\t\tconsole.log(this.value);\n  \t\tdocument.getElementById(\"img_card\").style.borderRadius = this.value+\"px\";\n\t}\n}\n\n//drag_script\nvar dropTarget = document.querySelector(\".wrapperr\");\nvar draggables = document.querySelectorAll(\".task\");\n\n/*\nWhat to Drag - ondragstart and setData()\nThen, specify what should happen when the element is dragged.\n\nIn the example above, the ondragstart attribute calls a function, \ndrag(event), that specifies what data to be dragged.\n\nThe dataTransfer.setData() method sets the data type and the \nvalue of the dragged data:\n*/\n\nfor(let i = 0; i < draggables.length; i++) {\n  draggables[i].addEventListener(\"dragstart\", function (ev) {\n     ev.dataTransfer.setData(\"srcId\", ev.target.id);\n  });\n}\n\n/*\nWhere to Drop - ondragover\nThe ondragover event specifies where the dragged data can be dropped.\n\nBy default, data/elements cannot be dropped in other \nelements. \nTo allow a drop, we must prevent the default handling of \nthe element.\n\nThis is done by calling the event.preventDefault() method for \nthe ondragover event:\n*/\n\ndropTarget.addEventListener('dragover', function(ev) {\n  ev.preventDefault();\n});\n\ndropTarget.addEventListener('drop', function(ev) {\n  ev.preventDefault();\n  let target = ev.target;\n  let droppable  = target.classList.contains('box');\n  let srcId = ev.dataTransfer.getData(\"srcId\");\n  \n  if (droppable) {\n    ev.target.appendChild(document.getElementById(srcId));\n  }\n});\n"
  },
  {
    "path": "page/index/dashboard.php",
    "content": "\n<script type=\"text/javascript\" src=\"page/index/js/dashboard.js\"></script>\n<script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>\n\n<script type=\"text/javascript\">\n            $(document).ready(function() {\n                 $('table.display').DataTable();\n            } );\n        </script>\n\n\n\n\n<?php\n\n$total_student=count($student);\n$total_notice=count($notice_info);\n$info=$sms->sms_balance();\n\n?>\n\n<?php\n/**\n* Show user information like IP address, useragent\n**/\n\n?>\n\n<?php\n\n\n?>\n\n\n\n <div class=\"row\" style=\"margin-bottom: 10px;\">\n    <?php include 'dashboard_info.php'; ?>\n</div>\n <div class=\"row\" >\n\n                    <div class=\"col-lg-3 col-sm-6\">\n                        <div class=\"circle-tile\">\n                            <a href=\"\">\n                                <div class=\"circle-tile-heading dark-blue\">\n                                    <i class=\"fa fa-users fa-fw fa-3x\"></i>\n                                </div>\n                            </a>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <div class=\"circle-tile-description text-faded\">\n                                    Total Students\n                                </div>\n                                <div class=\"circle-tile-number text-faded\">\n                                    <?php echo \"$total_student\"; ?>\n                                    <span id=\"sparklineA\"></span>\n                                </div>\n                                <a href=\"\" class=\"circle-tile-footer\">More Info <i class=\"fa fa-chevron-circle-right\"></i></a>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3 col-sm-6\">\n                        <div class=\"circle-tile\">\n                            <a href=\"\">\n                                <div class=\"circle-tile-heading dark-blue\">\n                                    <i class=\"fa fa-money fa-fw fa-3x\"></i>\n                                </div>\n                            </a>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <div class=\"circle-tile-description text-faded\">\n                                    Total Teacher\n                                </div>\n                                <div class=\"circle-tile-number text-faded\">\n                                    -\n                                </div>\n                                <a href=\"\" class=\"circle-tile-footer\">More Info <i class=\"fa fa-chevron-circle-right\"></i></a>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3 col-sm-6\">\n                        <div class=\"circle-tile\">\n                            <a href=\"\">\n                                <div class=\"circle-tile-heading dark-blue\">\n                                    <i class=\"fa fa-bell fa-fw fa-3x\"></i>\n                                </div>\n                            </a>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <div class=\"circle-tile-description text-faded\">\n                                    SMS Balance\n                                </div>\n                                <div class=\"circle-tile-number text-faded\">\n                                   <?php echo $info['balance']; ?>\n                                </div>\n                                <a href=\"\" class=\"circle-tile-footer\">More Info <i class=\"fa fa-chevron-circle-right\"></i></a>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3 col-sm-6\">\n                        <div class=\"circle-tile\">\n                            <a href=\"#\">\n                                <div class=\"circle-tile-heading dark-blue\">\n                                    <i class=\"fa fa-tasks fa-fw fa-3x\"></i>\n                                </div>\n                            </a>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <div class=\"circle-tile-description text-faded\">\n                                    Total Notice\n                                </div>\n                                <div class=\"circle-tile-number text-faded\">\n                                    <?php echo \"$total_notice\"; ?>\n                                    <span id=\"sparklineB\"></span>\n                                </div>\n                                <a href=\"#\" class=\"circle-tile-footer\">More Info <i class=\"fa fa-chevron-circle-right\"></i></a>\n                            </div>\n                        </div>\n                    </div>\n        </div>\n\n\n\n    <div class=\"row\">\n    \n    <script src=\"tool/chart_api/canvas_api.js\"></script>\n\n\n        <?php \n       \n       if($user_permit<8){\n        include \"student_admit_graph.php\"; \n        include \"site_activity.php\"; \n        \n       }\n        ?>\n\n    </div>    \n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/index/style.css\">\n<style type=\"text/css\">\n    thead{\n        background-color: #EFF0F2;\n        border-width: 0px;\n    }\n    .td_list1{\n        background-color: #EFF0F2;\n        color: #000000;\n        padding: 10px;\n        font-weight: bold;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n    .td_list2{\n        background-color: #ffffff;\n        color: #000000;\n        padding: 8px;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n</style>\n\n<script type=\"text/javascript\">\n    live_site_action();\n</script>"
  },
  {
    "path": "page/index/dashboard_info.php",
    "content": "\n   \n     <div class=\"col-lg-8\">\n     \t<div class=\"row\">\n     \t\t<div class=\"col-ms-12 col-sm-12\">\n                        <div class=\"circle-tile\">\n                            <a href=\"\">\n                                <div class=\"circle-tile-heading dark-blue\">\n                                    <img src=\"<?php echo $db->logo; ?>\" class=\"logo_img\">\n                                </div>\n                            </a>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <center>\n                                <div class=\"description_area\">\n                                  <font class=\"site_title\"><?php echo $db->site_name; ?></font><br/>\n                                      <font class=\"site_description\">\n                                        <span class=\"glyphicon glyphicon-map-marker\"></span> <?php echo $db->address; ?><br/>\n                                        <span class=\"glyphicon glyphicon-phone\"></span> Phone: <?php echo $db->phone; ?> | <span class=\"glyphicon glyphicon-envelope\"></span> Email: <?php echo $db->email; ?>\n                                  </font>\n                                </div>\n                              </center>\n                               \n                            </div>\n                        </div>\n        </div>\n     \t\n     \t</div>\n         \n    </div>\n\n     <div class=\"col-lg-4\">\n        <center><font style=\"font-weight: bold;text-align: center; font-size: 18px\"> \n        \t<?php\n        \t$uname=$login_user['uname'];\n        \t$date=date(\"d M Y h:i:A\", strtotime($db->date()));\n        \t$day=date(\"l\", strtotime($db->date()));\n          $user_permission=$user_ob->get_user_permission($role);\n         \t\n         ?>\n         \t<marquee style='color: var(--bg-color)' behavior=\"scroll\" direction=\"left\"><?php echo $site->welcome_time($uname); ?></marquee>\n\n         </font></center>\n                <table width=\"100%\">\n                    <tr>\n                        <td class=\"td_info1\">Today Date: </td>\n                        <td class=\"td_info2\"><?php echo $date; ?></td>\n                    </tr>\n                    <tr>\n                        <td class=\"td_info1\">Today Day: </td>\n                        <td class=\"td_info2\"><?php echo $day; ?></td>\n                    </tr>\n                    <tr>\n                        <td class=\"td_info1\">Your IP: </td>\n                        <td class=\"td_info2\"><?php echo $ip; ?></td>\n                    </tr>\n                    <tr>\n                        <td class=\"td_info1\">Your Browser: </td>\n                        <td class=\"td_info2\"><?php echo $browser; ?></td>\n                    </tr>\n                    <tr>\n                        <td class=\"td_info1\">Your Permission: </td>\n                        <td class=\"td_info2\"><?php echo $user_permission; ?></td>\n                    </tr>\n                    \n                </table>\n                           \n    </div>\n\n    <style type=\"text/css\">\n\n    .site_title{\n          font-weight: bold;\n          font-size: 33px;\n          color: var(--font-color);\n          font-family: \"Times New Roman\", Times, serif;\n    }\n    .site_description{\n          font-weight: bold;\n          font-size: 18px;\n          color: var(--font-color);\n    }\n\n    \t.td_info1,.td_info2{\n  border-width: 1px;\n  border-color: #DDDDDD;\n  border-style: solid;\n  padding: 10px;\n}\n.td_info1{\n  width: 150px; \n  background-color: var(--bg-color);\n  color: var(--font-color);\n}\n.logo_img{\n\nheight: 75px;\nwidth: 75px;\npadding: 5px;\n\n}\n.description_area{\n\tbackground-color: var(--bg-color); \n\tcolor: var(--font-color);\n\n\tpadding: 5px 10px 30px 10px;\n\n}\n\n    </style>\n\n"
  },
  {
    "path": "page/index/expence_list.php",
    "content": ""
  },
  {
    "path": "page/index/js/dashboard.js",
    "content": "url = \"dashboard_action.php\";\nmodal_body = \"modal_lg_body\";\nmodal = \"lg\";\nfirst_load=0;\nlive_site_action_processing=0;\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\n\nfunction live_site_action(){\n   var data = {\n        \"live_site_action\": 1\n    }\n    \n    if(first_load==0)loader(\"site_activity\");\n    first_load=1;\n    live_site_action_processing=1;\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\t\n           set_html(\"site_activity\",response);\n           live_site_action_processing=0;\n        }\n    });\n}\n\nfunction get_activity_info(id){\n    var data = {\n        \"get_activity_info\": id\n    }\n    modal_open(modal, \"Activity Detail\");\n    loader(modal_body);\n    get_ajax(get_action_data(modal_body), data);\n}\n\n\nfunction reload_activity(id){\n    var data = {\n        \"get_activity_info\": id\n    }\n    loader(modal_body);\n    get_ajax(get_action_data(modal_body), data);\n}\n\nsetInterval(function(){ \n  if(live_site_action_processing==0)live_site_action(); \n}, 2000);"
  },
  {
    "path": "page/index/js/graph.js",
    "content": "\nfunction graph(data,data1){\n\n  CanvasJS.addColorSet(\"greenShades\",\n    [\n      bg_color              \n    ]);\n\n  var message_send = new CanvasJS.Chart(\"message_send_graph\", {\n      animationEnabled: true,\n      colorSet: \"greenShades\",\n      theme: \"light2\", // \"light1\", \"light2\", \"dark1\", \"dark2\"\n      title:{\n        text: \"Last 7 Days SMS Send Performance Graph\"\n      },\n      axisY: {\n       title: \"Total SMS Send (Daily)\"\n      },\n      data: [{        \n        type: \"column\",  \n        showInLegend: true, \n        legendMarkerColor: \"grey\",\n        legendText: \"Daily Total SMS Send\",\n        dataPoints: data\n      }]\n    });\n\n\n    var site_activity = new CanvasJS.Chart(\"site_activity_graph\", {\n      animationEnabled: true,\n      colorSet: \"greenShades\",\n      theme: \"light2\",\n      title:{\n        text: \"Last 7 Days Site Activity Graph\"\n      },\n      axisY:{\n        includeZero: false\n      },\n      data: [{        \n        type: \"line\",\n        lineThickness: 4,\n        markerSize: 16,       \n        dataPoints: data1\n      }]\n    });\n\n    site_activity.render();\n    message_send.render();\n\n}"
  },
  {
    "path": "page/index/message_send_chart.php",
    "content": "\n"
  },
  {
    "path": "page/index/site_activity.php",
    "content": "\n\n<div class=\"col-md-12\">\n            <div class=\"dashboard_box\">\n                <div class=\"box_header\">Live Site Activity</div>\n                <div class=\"box_body\" id=\"site_activity\">\n                     \n               \n                </div>\n            </div>\n        </div>"
  },
  {
    "path": "page/index/student_admit_graph.php",
    "content": "\n<script type=\"text/javascript\" src=\"page/index/js/graph.js\"></script>\n\n<div class=\"col-md-6\">\n            <div class=\"dashboard_box\" style=\"overflow: hidden;\">\n                <div class=\"box_header\">Last 7 Days Site Activity Graph</div>\n                <div class=\"box_body\">\n                     <div id=\"site_activity_graph\" style=\"height: 300px; width: 100%;\"></div>\n                    \n                </div>\n            </div>\n</div>\n<div class=\"col-md-6\">\n            <div class=\"dashboard_box\" style=\"overflow: hidden;\">\n                <div class=\"box_header\">Last 7 Days SMS Send Performance Graph</div>\n                <div class=\"box_body\">\n                     \n                    <div id=\"message_send_graph\" style=\"height: 300px; width: 100%;\"></div>       \n                   \n                </div>\n            </div>\n</div>\n  \n<?php\n\n$sms_send_data=$graph->get_last_sms_data(7);\n$site_activity_data=$graph->get_site_activity_data(7);\n\n?>\n\n<script>\n\nsms_send_data=<?php echo \"$sms_send_data\"; ?>;\nsite_activity_data=<?php echo \"$site_activity_data\"; ?>;\n\nwindow.onload = function () {\n  graph(sms_send_data,site_activity_data);\n\n}\n\n</script>\n\n\n"
  },
  {
    "path": "page/index/style.css",
    "content": ".dashboard_box{\n    margin-top: 20px;\n}\n.dashboard_box .box_header{\n   background-color: var(--bg-color);\n   color: var(--font-color);\n   padding: 10px;\n}\n.dashboard_box .box_body{\n   height: auto;\n   border-width: 0px 1px 1px 1px;\n   border-color: var(--bg-color);\n}\n\n\n    @media (min-width: 768px){\n.circle-tile {\n    margin-bottom: 30px;\n}\n}\n\n.circle-tile {\n    margin-bottom: 15px;\n    text-align: center;\n}\n\n.circle-tile-heading {\n    position: relative;\n    width: 80px;\n    height: 80px;\n    margin: 0 auto -40px;\n    border: 3px solid rgba(255,255,255,0.3);\n    border-radius: 100%;\n    color: #fff;\n    transition: all ease-in-out .3s;\n}\n\n/* -- Background Helper Classes */\n\n/* Use these to cuztomize the background color of a div. These are used along with tiles, or any other div you want to customize. */\n\n .dark-blue {\n    background-color: var(--bg-color);\n}\n\n.green {\n    background-color: #16a085;\n}\n\n.blue {\n    background-color: #2980b9;\n}\n\n.orange {\n    background-color: #f39c12;\n}\n\n.red {\n    background-color: #e74c3c;\n}\n\n.purple {\n    background-color: #8e44ad;\n}\n\n.dark-gray {\n    background-color: #7f8c8d;\n}\n\n.gray {\n    background-color: #95a5a6;\n}\n\n.light-gray {\n    background-color: #bdc3c7;\n}\n\n.yellow {\n    background-color: #f1c40f;\n}\n\n/* -- Text Color Helper Classes */\n\n .text-dark-blue {\n    color: #34495e;\n}\n\n.text-green {\n    color: #16a085;\n}\n\n.text-blue {\n    color: #2980b9;\n}\n\n.text-orange {\n    color: #f39c12;\n}\n\n.text-red {\n    color: #e74c3c;\n}\n\n.text-purple {\n    color: #8e44ad;\n}\n\n.text-faded {\n    color: rgba(255,255,255,0.7);\n}\n\n\n\n.circle-tile-heading .fa {\n    line-height: 80px;\n}\n\n.circle-tile-content {\n    padding-top: 50px;\n}\n.circle-tile-description {\n    text-transform: uppercase;\n}\n\n.text-faded {\n    color: rgba(255,255,255,0.7);\n}\n\n.circle-tile-number {\n    padding: 5px 0 15px;\n    font-size: 26px;\n    font-weight: 700;\n    line-height: 1;\n}\n\n.circle-tile-footer {\n    display: block;\n    padding: 5px;\n    color: rgba(255,255,255,0.5);\n    background-color: rgba(0,0,0,0.1);\n    transition: all ease-in-out .3s;\n}\n\n.circle-tile-footer:hover {\n    text-decoration: none;\n    color: rgba(255,255,255,0.5);\n    background-color: rgba(0,0,0,0.2);\n}"
  },
  {
    "path": "page/install/install_system.php",
    "content": "\n<title>Install Student Management System</title>\n\n<link href=\"//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css\" rel=\"stylesheet\" id=\"bootstrap-css\">\n<link href=\"https://fonts.googleapis.com/css?family=Exo 2\" rel=\"stylesheet\">\n<script src=\"//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js\"></script>\n<script src=\"//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>\n<!------ Include the above in your HEAD tag ---------->\n<script type=\"text/javascript\" src=\"page/install/js/install_system.js\"></script>\n<script language=\"JavaScript\" src=\"layout/site_script.js\" type=\"text/javascript\"></script>\n\n<style type=\"text/css\">\n    body{\n\n    }\n</style>\n\n<div  style=\"padding: 0px 8px 0px 0px\">\n\n<div class=\"container\" style=\"padding: 10px;margin-top: 5px;\">\n                <div class=\"row register\" style=\"padding: 5px;\">\n                    <div class=\"col-md-4 col-sm-12 register-left\">\n\n                        \n                        <div style=\"margin-top: 10px;\"></div>\n                        <b style=\"font-size: 13px;\">Open Source</b><br/>\n                        <b style=\"font-size: 25px;\">Student Management System</b><br/>\n                        By <b style=\"font-size: 16px;\"><a href=\"https://github.com/amirhamza05\" style=\"color: #ffffff\">Amir Hamza</a></b>\n                        <div style=\"margin-top: 35px;text-align: left;\">\n                            <ul style=\"font-size: 15px;\">\n                                <li>Add Student Information</li>\n                                <li>Admit Student In Multiple Program</li>\n                                <li>Student Payment System</li>\n                                <li>Student Attendence System</li>\n                                <li>Generate Student Id Card</li>\n                                <li>Program Add</li>\n                                <li>Exam Add</li>\n                                <li>Add Exam Result Add and generate Auto Ranking</li>\n                                <li>Sending Result by SMS</li>\n                                <li>Sending Notice By SMS</li>\n                                <li>Institute Report (Payment,Expence,Income,Profit,Attendence)</li>\n                            </ul>\n                        </div>\n                        \n                        <a href=\"https://github.com/amirhamza05/Student-Management-System\"><input type=\"submit\" name=\"\" value=\"Github\"/></a><br/>\n                    </div>\n                    <div class=\"col-md-8 col-sm-12 register-right\">\n                        \n                        <div class=\"tab-content\" id=\"myTabContent\">\n                            <div class=\"tab-pane fade show active\" style=\"\" id=\"install_body\">\n                            \t<div style=\"margin-top: 100px;\"></div>\n                            \t<center>\n                                <button class=\"btnnext\" onclick=\"view_install_page()\">Install</button>\n                                </center>\n                            </div>\n                            </div>\n                           \n                        </div>\n                    </div>\n                </div>\n\n            </div>\n\n<script type=\"text/javascript\">\n\tview_install_page();\n</script>\n            <style type=\"text/css\">\n          body{\n          \tbackground-color: #ffffff;\n\n          \t\n          }  \t\n.register{\n    background-color: #000000;\n    margin-top: 0%;\n    padding: 0%;\n    color: #000000;\n    animation: myanimation 10s infinite;\n}\n@keyframes myanimation {\n  0% {background-color: #c0392b;}\n  25%{background-color:#d35400;}\n  50%{background-color:#8e44ad;}\n  75%{background-color:#16a085;}\n  100% {background-color: #27ae60;}\n}\n\n\n.register-left{\n    text-align: center;\n    color: #fff;\n    margin-top: 4%;\n}\n.btnnext{\n\tbackground-color: #0062CC;\n\tfont-size: 22px;\n\theight: 100px;\n\twidth: 100px;\n\tcolor: #ffffff;\n\tborder-width: 1px;\n\tborder-radius: 100%;\n\tcursor: pointer;\n\n}\n.inputField{\n    padding: 10px;\n    width: 100%;\n    border-radius: 3px;\n    font-size: 14px;\n    color: #888A88;\n    border: 1px solid #E6E6E6;\n    margin-bottom: 10px;\n    background-color: #f9f9f9;\n}\n.inputField:focus{\n    outline: none;\n    border-radius: 5px;\n    border: 1px solid var(--blue);\n    box-shadow: 0 0 3px 3px #CCC7D8;\n}\n.register-left input{\n    border: none;\n    border-radius: 1.5rem;\n    padding: 2%;\n    width: 70%;\n    background: #f8f9fa;\n    font-weight: bold;\n    color: #383d41;\n    margin-top: 30%;\n    margin-bottom: 3%;\n    cursor: pointer;\n}\n\n@keyframes myanimation1 {\n  0% {background-color: #a4b0be;}\n  25%{background-color:#f1f2f6;}\n  50%{background-color:#dfe4ea;}\n  75%{background-color:#ced6e0;}\n  100% {background-color: #a4b0be;}\n}\n.register-right{\n    background: #f5f5f5;\n    border-top-left-radius: 10% 50%;\n    border-bottom-left-radius: 10% 50%;\n\t\n}\n.register-left img{\n    margin-top: 15%;\n    margin-bottom: 5%;\n    width: 25%;\n    -webkit-animation: mover 2s infinite  alternate;\n    animation: mover 1s infinite  alternate;\n}\n\n.register-left p{\n    font-weight: lighter;\n    padding: 12%;\n    margin-top: -9%;\n}\n.register .register-form{\n    padding: 10%;\n    margin-top: 10%;\n}\n.btnRegister{\n    float: right;\n    margin-top: 10%;\n    border: none;\n    border-radius: 1.5rem;\n    padding: 2%;\n    background: #0062cc;\n    color: #fff;\n    font-weight: 600;\n    width: 230px;\n    cursor: pointer;\n}\n\n.formLabel{\n    color: #3f3d3e;\n    margin-left: 5px;\n    margin-bottom: 3px;\n    font-weight: bold;\n    font-size: 13px;\n}\n\n.register-heading{\n    text-align: center;\n    margin-top: 8%;\n    margin-bottom: -15%;\n    color: #495057;\n}\n            </style>"
  },
  {
    "path": "page/install/js/install_system.js",
    "content": "\nurl = \"install_action.php\";\n\n\nfunction get_value(div){\n  return document.getElementById(div).value;\n}\n\nfunction view_install_page(){\n   var data={\n   \t'view_install_page': 1\n   }\n   document.getElementById('install_body').innerHTML=\"hamza\";\n    loader(\"install_body\",160);\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           document.getElementById('install_body').innerHTML=response;\n        }\n    });\n\n}\n\nfunction install_first_step(){\n\tdiv=document.getElementById('install_body');\n\t\n   hostname=get_value(\"hostname\");\n   db_user=get_value(\"db_user\");\n   db_pass=get_value(\"db_pass\");\n   db_name=get_value(\"db_name\");\n   error=\"\";\n   if(hostname==\"\"){\n      error=\"Please Enter Host Name\";\n   }\n   else if(db_user==\"\"){\n   \terror=\"Please Enter db_user\";\n   }\n   else if(db_name==\"\"){\n   \t error=\"Please Enter db_name\";\n   }\n\n\n   if(error!=\"\"){\n   \talert(error);\n   \treturn;\n   }\n\n   var data1={\n   \t 'hostname': hostname,\n   \t 'db_user': db_user,\n   \t 'db_pass':db_pass,\n   \t 'db_name':db_name\n   }\n\n\tvar data={\n   \t'install_first_step': data1\n   }\n    div.style.margin = \"150px 0px 0px 0px\";\n\tloader(\"install_body\",250);\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n            document.getElementById('install_body').innerHTML=response;\n        }\n    });\n}\n"
  },
  {
    "path": "page/login/js/ajax.js",
    "content": "/* -----------------------------------------------\n/* Author : Vincent Garreau  - vincentgarreau.com\n/* MIT license: http://opensource.org/licenses/MIT\n/* Demo / Generator : vincentgarreau.com/particles.js\n/* GitHub : github.com/VincentGarreau/particles.js\n/* How to use? : Check the GitHub README\n/* v2.0.0\n/* ----------------------------------------------- */\nfunction hexToRgb(e){var a=/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;e=e.replace(a,function(e,a,t,i){return a+a+t+t+i+i});var t=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function clamp(e,a,t){return Math.min(Math.max(e,a),t)}function isInArray(e,a){return a.indexOf(e)>-1}var pJS=function(e,a){var t=document.querySelector(\"#\"+e+\" > .particles-js-canvas-el\");this.pJS={canvas:{el:t,w:t.offsetWidth,h:t.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:\"#fff\"},shape:{type:\"circle\",stroke:{width:0,color:\"#ff0000\"},polygon:{nb_sides:5},image:{src:\"\",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:\"#fff\",opacity:1,width:1},move:{enable:!0,speed:2,direction:\"none\",random:!1,straight:!1,out_mode:\"out\",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:\"canvas\",events:{onhover:{enable:!0,mode:\"grab\"},onclick:{enable:!0,mode:\"push\"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var i=this.pJS;a&&Object.deepExtend(i,a),i.tmp.obj={size_value:i.particles.size.value,size_anim_speed:i.particles.size.anim.speed,move_speed:i.particles.move.speed,line_linked_distance:i.particles.line_linked.distance,line_linked_width:i.particles.line_linked.width,mode_grab_distance:i.interactivity.modes.grab.distance,mode_bubble_distance:i.interactivity.modes.bubble.distance,mode_bubble_size:i.interactivity.modes.bubble.size,mode_repulse_distance:i.interactivity.modes.repulse.distance},i.fn.retinaInit=function(){i.retina_detect&&window.devicePixelRatio>1?(i.canvas.pxratio=window.devicePixelRatio,i.tmp.retina=!0):(i.canvas.pxratio=1,i.tmp.retina=!1),i.canvas.w=i.canvas.el.offsetWidth*i.canvas.pxratio,i.canvas.h=i.canvas.el.offsetHeight*i.canvas.pxratio,i.particles.size.value=i.tmp.obj.size_value*i.canvas.pxratio,i.particles.size.anim.speed=i.tmp.obj.size_anim_speed*i.canvas.pxratio,i.particles.move.speed=i.tmp.obj.move_speed*i.canvas.pxratio,i.particles.line_linked.distance=i.tmp.obj.line_linked_distance*i.canvas.pxratio,i.interactivity.modes.grab.distance=i.tmp.obj.mode_grab_distance*i.canvas.pxratio,i.interactivity.modes.bubble.distance=i.tmp.obj.mode_bubble_distance*i.canvas.pxratio,i.particles.line_linked.width=i.tmp.obj.line_linked_width*i.canvas.pxratio,i.interactivity.modes.bubble.size=i.tmp.obj.mode_bubble_size*i.canvas.pxratio,i.interactivity.modes.repulse.distance=i.tmp.obj.mode_repulse_distance*i.canvas.pxratio},i.fn.canvasInit=function(){i.canvas.ctx=i.canvas.el.getContext(\"2d\")},i.fn.canvasSize=function(){i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i&&i.interactivity.events.resize&&window.addEventListener(\"resize\",function(){i.canvas.w=i.canvas.el.offsetWidth,i.canvas.h=i.canvas.el.offsetHeight,i.tmp.retina&&(i.canvas.w*=i.canvas.pxratio,i.canvas.h*=i.canvas.pxratio),i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i.particles.move.enable||(i.fn.particlesEmpty(),i.fn.particlesCreate(),i.fn.particlesDraw(),i.fn.vendors.densityAutoParticles()),i.fn.vendors.densityAutoParticles()})},i.fn.canvasPaint=function(){i.canvas.ctx.fillRect(0,0,i.canvas.w,i.canvas.h)},i.fn.canvasClear=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h)},i.fn.particle=function(e,a,t){if(this.radius=(i.particles.size.random?Math.random():1)*i.particles.size.value,i.particles.size.anim.enable&&(this.size_status=!1,this.vs=i.particles.size.anim.speed/100,i.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=t?t.x:Math.random()*i.canvas.w,this.y=t?t.y:Math.random()*i.canvas.h,this.x>i.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>i.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),i.particles.move.bounce&&i.fn.vendors.checkOverlap(this,t),this.color={},\"object\"==typeof e.value)if(e.value instanceof Array){var s=e.value[Math.floor(Math.random()*i.particles.color.value.length)];this.color.rgb=hexToRgb(s)}else void 0!=e.value.r&&void 0!=e.value.g&&void 0!=e.value.b&&(this.color.rgb={r:e.value.r,g:e.value.g,b:e.value.b}),void 0!=e.value.h&&void 0!=e.value.s&&void 0!=e.value.l&&(this.color.hsl={h:e.value.h,s:e.value.s,l:e.value.l});else\"random\"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:\"string\"==typeof e.value&&(this.color=e,this.color.rgb=hexToRgb(this.color.value));this.opacity=(i.particles.opacity.random?Math.random():1)*i.particles.opacity.value,i.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=i.particles.opacity.anim.speed/100,i.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var n={};switch(i.particles.move.direction){case\"top\":n={x:0,y:-1};break;case\"top-right\":n={x:.5,y:-.5};break;case\"right\":n={x:1,y:-0};break;case\"bottom-right\":n={x:.5,y:.5};break;case\"bottom\":n={x:0,y:1};break;case\"bottom-left\":n={x:-.5,y:1};break;case\"left\":n={x:-1,y:0};break;case\"top-left\":n={x:-.5,y:-.5};break;default:n={x:0,y:0}}i.particles.move.straight?(this.vx=n.x,this.vy=n.y,i.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=n.x+Math.random()-.5,this.vy=n.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var r=i.particles.shape.type;if(\"object\"==typeof r){if(r instanceof Array){var c=r[Math.floor(Math.random()*r.length)];this.shape=c}}else this.shape=r;if(\"image\"==this.shape){var o=i.particles.shape;this.img={src:o.image.src,ratio:o.image.width/o.image.height},this.img.ratio||(this.img.ratio=1),\"svg\"==i.tmp.img_type&&void 0!=i.tmp.source_svg&&(i.fn.vendors.createSvgImg(this),i.tmp.pushing&&(this.img.loaded=!1))}},i.fn.particle.prototype.draw=function(){function e(){i.canvas.ctx.drawImage(r,a.x-t,a.y-t,2*t,2*t/a.img.ratio)}var a=this;if(void 0!=a.radius_bubble)var t=a.radius_bubble;else var t=a.radius;if(void 0!=a.opacity_bubble)var s=a.opacity_bubble;else var s=a.opacity;if(a.color.rgb)var n=\"rgba(\"+a.color.rgb.r+\",\"+a.color.rgb.g+\",\"+a.color.rgb.b+\",\"+s+\")\";else var n=\"hsla(\"+a.color.hsl.h+\",\"+a.color.hsl.s+\"%,\"+a.color.hsl.l+\"%,\"+s+\")\";switch(i.canvas.ctx.fillStyle=n,i.canvas.ctx.beginPath(),a.shape){case\"circle\":i.canvas.ctx.arc(a.x,a.y,t,0,2*Math.PI,!1);break;case\"edge\":i.canvas.ctx.rect(a.x-t,a.y-t,2*t,2*t);break;case\"triangle\":i.fn.vendors.drawShape(i.canvas.ctx,a.x-t,a.y+t/1.66,2*t,3,2);break;case\"polygon\":i.fn.vendors.drawShape(i.canvas.ctx,a.x-t/(i.particles.shape.polygon.nb_sides/3.5),a.y-t/.76,2.66*t/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,1);break;case\"star\":i.fn.vendors.drawShape(i.canvas.ctx,a.x-2*t/(i.particles.shape.polygon.nb_sides/4),a.y-t/1.52,2*t*2.66/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,2);break;case\"image\":if(\"svg\"==i.tmp.img_type)var r=a.img.obj;else var r=i.tmp.img_obj;r&&e()}i.canvas.ctx.closePath(),i.particles.shape.stroke.width>0&&(i.canvas.ctx.strokeStyle=i.particles.shape.stroke.color,i.canvas.ctx.lineWidth=i.particles.shape.stroke.width,i.canvas.ctx.stroke()),i.canvas.ctx.fill()},i.fn.particlesCreate=function(){for(var e=0;e<i.particles.number.value;e++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value))},i.fn.particlesUpdate=function(){for(var e=0;e<i.particles.array.length;e++){var a=i.particles.array[e];if(i.particles.move.enable){var t=i.particles.move.speed/2;a.x+=a.vx*t,a.y+=a.vy*t}if(i.particles.opacity.anim.enable&&(1==a.opacity_status?(a.opacity>=i.particles.opacity.value&&(a.opacity_status=!1),a.opacity+=a.vo):(a.opacity<=i.particles.opacity.anim.opacity_min&&(a.opacity_status=!0),a.opacity-=a.vo),a.opacity<0&&(a.opacity=0)),i.particles.size.anim.enable&&(1==a.size_status?(a.radius>=i.particles.size.value&&(a.size_status=!1),a.radius+=a.vs):(a.radius<=i.particles.size.anim.size_min&&(a.size_status=!0),a.radius-=a.vs),a.radius<0&&(a.radius=0)),\"bounce\"==i.particles.move.out_mode)var s={x_left:a.radius,x_right:i.canvas.w,y_top:a.radius,y_bottom:i.canvas.h};else var s={x_left:-a.radius,x_right:i.canvas.w+a.radius,y_top:-a.radius,y_bottom:i.canvas.h+a.radius};switch(a.x-a.radius>i.canvas.w?(a.x=s.x_left,a.y=Math.random()*i.canvas.h):a.x+a.radius<0&&(a.x=s.x_right,a.y=Math.random()*i.canvas.h),a.y-a.radius>i.canvas.h?(a.y=s.y_top,a.x=Math.random()*i.canvas.w):a.y+a.radius<0&&(a.y=s.y_bottom,a.x=Math.random()*i.canvas.w),i.particles.move.out_mode){case\"bounce\":a.x+a.radius>i.canvas.w?a.vx=-a.vx:a.x-a.radius<0&&(a.vx=-a.vx),a.y+a.radius>i.canvas.h?a.vy=-a.vy:a.y-a.radius<0&&(a.vy=-a.vy)}if(isInArray(\"grab\",i.interactivity.events.onhover.mode)&&i.fn.modes.grabParticle(a),(isInArray(\"bubble\",i.interactivity.events.onhover.mode)||isInArray(\"bubble\",i.interactivity.events.onclick.mode))&&i.fn.modes.bubbleParticle(a),(isInArray(\"repulse\",i.interactivity.events.onhover.mode)||isInArray(\"repulse\",i.interactivity.events.onclick.mode))&&i.fn.modes.repulseParticle(a),i.particles.line_linked.enable||i.particles.move.attract.enable)for(var n=e+1;n<i.particles.array.length;n++){var r=i.particles.array[n];i.particles.line_linked.enable&&i.fn.interact.linkParticles(a,r),i.particles.move.attract.enable&&i.fn.interact.attractParticles(a,r),i.particles.move.bounce&&i.fn.interact.bounceParticles(a,r)}}},i.fn.particlesDraw=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h),i.fn.particlesUpdate();for(var e=0;e<i.particles.array.length;e++){var a=i.particles.array[e];a.draw()}},i.fn.particlesEmpty=function(){i.particles.array=[]},i.fn.particlesRefresh=function(){cancelRequestAnimFrame(i.fn.checkAnimFrame),cancelRequestAnimFrame(i.fn.drawAnimFrame),i.tmp.source_svg=void 0,i.tmp.img_obj=void 0,i.tmp.count_svg=0,i.fn.particlesEmpty(),i.fn.canvasClear(),i.fn.vendors.start()},i.fn.interact.linkParticles=function(e,a){var t=e.x-a.x,s=e.y-a.y,n=Math.sqrt(t*t+s*s);if(n<=i.particles.line_linked.distance){var r=i.particles.line_linked.opacity-n/(1/i.particles.line_linked.opacity)/i.particles.line_linked.distance;if(r>0){var c=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle=\"rgba(\"+c.r+\",\"+c.g+\",\"+c.b+\",\"+r+\")\",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(a.x,a.y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}},i.fn.interact.attractParticles=function(e,a){var t=e.x-a.x,s=e.y-a.y,n=Math.sqrt(t*t+s*s);if(n<=i.particles.line_linked.distance){var r=t/(1e3*i.particles.move.attract.rotateX),c=s/(1e3*i.particles.move.attract.rotateY);e.vx-=r,e.vy-=c,a.vx+=r,a.vy+=c}},i.fn.interact.bounceParticles=function(e,a){var t=e.x-a.x,i=e.y-a.y,s=Math.sqrt(t*t+i*i),n=e.radius+a.radius;n>=s&&(e.vx=-e.vx,e.vy=-e.vy,a.vx=-a.vx,a.vy=-a.vy)},i.fn.modes.pushParticles=function(e,a){i.tmp.pushing=!0;for(var t=0;e>t;t++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value,{x:a?a.pos_x:Math.random()*i.canvas.w,y:a?a.pos_y:Math.random()*i.canvas.h})),t==e-1&&(i.particles.move.enable||i.fn.particlesDraw(),i.tmp.pushing=!1)},i.fn.modes.removeParticles=function(e){i.particles.array.splice(0,e),i.particles.move.enable||i.fn.particlesDraw()},i.fn.modes.bubbleParticle=function(e){function a(){e.opacity_bubble=e.opacity,e.radius_bubble=e.radius}function t(a,t,s,n,c){if(a!=t)if(i.tmp.bubble_duration_end){if(void 0!=s){var o=n-p*(n-a)/i.interactivity.modes.bubble.duration,l=a-o;d=a+l,\"size\"==c&&(e.radius_bubble=d),\"opacity\"==c&&(e.opacity_bubble=d)}}else if(r<=i.interactivity.modes.bubble.distance){if(void 0!=s)var v=s;else var v=n;if(v!=a){var d=n-p*(n-a)/i.interactivity.modes.bubble.duration;\"size\"==c&&(e.radius_bubble=d),\"opacity\"==c&&(e.opacity_bubble=d)}}else\"size\"==c&&(e.radius_bubble=void 0),\"opacity\"==c&&(e.opacity_bubble=void 0)}if(i.interactivity.events.onhover.enable&&isInArray(\"bubble\",i.interactivity.events.onhover.mode)){var s=e.x-i.interactivity.mouse.pos_x,n=e.y-i.interactivity.mouse.pos_y,r=Math.sqrt(s*s+n*n),c=1-r/i.interactivity.modes.bubble.distance;if(r<=i.interactivity.modes.bubble.distance){if(c>=0&&\"mousemove\"==i.interactivity.status){if(i.interactivity.modes.bubble.size!=i.particles.size.value)if(i.interactivity.modes.bubble.size>i.particles.size.value){var o=e.radius+i.interactivity.modes.bubble.size*c;o>=0&&(e.radius_bubble=o)}else{var l=e.radius-i.interactivity.modes.bubble.size,o=e.radius-l*c;o>0?e.radius_bubble=o:e.radius_bubble=0}if(i.interactivity.modes.bubble.opacity!=i.particles.opacity.value)if(i.interactivity.modes.bubble.opacity>i.particles.opacity.value){var v=i.interactivity.modes.bubble.opacity*c;v>e.opacity&&v<=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=v)}else{var v=e.opacity-(i.particles.opacity.value-i.interactivity.modes.bubble.opacity)*c;v<e.opacity&&v>=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=v)}}}else a();\"mouseleave\"==i.interactivity.status&&a()}else if(i.interactivity.events.onclick.enable&&isInArray(\"bubble\",i.interactivity.events.onclick.mode)){if(i.tmp.bubble_clicking){var s=e.x-i.interactivity.mouse.click_pos_x,n=e.y-i.interactivity.mouse.click_pos_y,r=Math.sqrt(s*s+n*n),p=((new Date).getTime()-i.interactivity.mouse.click_time)/1e3;p>i.interactivity.modes.bubble.duration&&(i.tmp.bubble_duration_end=!0),p>2*i.interactivity.modes.bubble.duration&&(i.tmp.bubble_clicking=!1,i.tmp.bubble_duration_end=!1)}i.tmp.bubble_clicking&&(t(i.interactivity.modes.bubble.size,i.particles.size.value,e.radius_bubble,e.radius,\"size\"),t(i.interactivity.modes.bubble.opacity,i.particles.opacity.value,e.opacity_bubble,e.opacity,\"opacity\"))}},i.fn.modes.repulseParticle=function(e){function a(){var a=Math.atan2(d,p);if(e.vx=u*Math.cos(a),e.vy=u*Math.sin(a),\"bounce\"==i.particles.move.out_mode){var t={x:e.x+e.vx,y:e.y+e.vy};t.x+e.radius>i.canvas.w?e.vx=-e.vx:t.x-e.radius<0&&(e.vx=-e.vx),t.y+e.radius>i.canvas.h?e.vy=-e.vy:t.y-e.radius<0&&(e.vy=-e.vy)}}if(i.interactivity.events.onhover.enable&&isInArray(\"repulse\",i.interactivity.events.onhover.mode)&&\"mousemove\"==i.interactivity.status){var t=e.x-i.interactivity.mouse.pos_x,s=e.y-i.interactivity.mouse.pos_y,n=Math.sqrt(t*t+s*s),r={x:t/n,y:s/n},c=i.interactivity.modes.repulse.distance,o=100,l=clamp(1/c*(-1*Math.pow(n/c,2)+1)*c*o,0,50),v={x:e.x+r.x*l,y:e.y+r.y*l};\"bounce\"==i.particles.move.out_mode?(v.x-e.radius>0&&v.x+e.radius<i.canvas.w&&(e.x=v.x),v.y-e.radius>0&&v.y+e.radius<i.canvas.h&&(e.y=v.y)):(e.x=v.x,e.y=v.y)}else if(i.interactivity.events.onclick.enable&&isInArray(\"repulse\",i.interactivity.events.onclick.mode))if(i.tmp.repulse_finish||(i.tmp.repulse_count++,i.tmp.repulse_count==i.particles.array.length&&(i.tmp.repulse_finish=!0)),i.tmp.repulse_clicking){var c=Math.pow(i.interactivity.modes.repulse.distance/6,3),p=i.interactivity.mouse.click_pos_x-e.x,d=i.interactivity.mouse.click_pos_y-e.y,m=p*p+d*d,u=-c/m*1;c>=m&&a()}else 0==i.tmp.repulse_clicking&&(e.vx=e.vx_i,e.vy=e.vy_i)},i.fn.modes.grabParticle=function(e){if(i.interactivity.events.onhover.enable&&\"mousemove\"==i.interactivity.status){var a=e.x-i.interactivity.mouse.pos_x,t=e.y-i.interactivity.mouse.pos_y,s=Math.sqrt(a*a+t*t);if(s<=i.interactivity.modes.grab.distance){var n=i.interactivity.modes.grab.line_linked.opacity-s/(1/i.interactivity.modes.grab.line_linked.opacity)/i.interactivity.modes.grab.distance;if(n>0){var r=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle=\"rgba(\"+r.r+\",\"+r.g+\",\"+r.b+\",\"+n+\")\",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(i.interactivity.mouse.pos_x,i.interactivity.mouse.pos_y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}}},i.fn.vendors.eventsListeners=function(){\"window\"==i.interactivity.detect_on?i.interactivity.el=window:i.interactivity.el=i.canvas.el,(i.interactivity.events.onhover.enable||i.interactivity.events.onclick.enable)&&(i.interactivity.el.addEventListener(\"mousemove\",function(e){if(i.interactivity.el==window)var a=e.clientX,t=e.clientY;else var a=e.offsetX||e.clientX,t=e.offsetY||e.clientY;i.interactivity.mouse.pos_x=a,i.interactivity.mouse.pos_y=t,i.tmp.retina&&(i.interactivity.mouse.pos_x*=i.canvas.pxratio,i.interactivity.mouse.pos_y*=i.canvas.pxratio),i.interactivity.status=\"mousemove\"}),i.interactivity.el.addEventListener(\"mouseleave\",function(e){i.interactivity.mouse.pos_x=null,i.interactivity.mouse.pos_y=null,i.interactivity.status=\"mouseleave\"})),i.interactivity.events.onclick.enable&&i.interactivity.el.addEventListener(\"click\",function(){if(i.interactivity.mouse.click_pos_x=i.interactivity.mouse.pos_x,i.interactivity.mouse.click_pos_y=i.interactivity.mouse.pos_y,i.interactivity.mouse.click_time=(new Date).getTime(),i.interactivity.events.onclick.enable)switch(i.interactivity.events.onclick.mode){case\"push\":i.particles.move.enable?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):1==i.interactivity.modes.push.particles_nb?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):i.interactivity.modes.push.particles_nb>1&&i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb);break;case\"remove\":i.fn.modes.removeParticles(i.interactivity.modes.remove.particles_nb);break;case\"bubble\":i.tmp.bubble_clicking=!0;break;case\"repulse\":i.tmp.repulse_clicking=!0,i.tmp.repulse_count=0,i.tmp.repulse_finish=!1,setTimeout(function(){i.tmp.repulse_clicking=!1},1e3*i.interactivity.modes.repulse.duration)}})},i.fn.vendors.densityAutoParticles=function(){if(i.particles.number.density.enable){var e=i.canvas.el.width*i.canvas.el.height/1e3;i.tmp.retina&&(e/=2*i.canvas.pxratio);var a=e*i.particles.number.value/i.particles.number.density.value_area,t=i.particles.array.length-a;0>t?i.fn.modes.pushParticles(Math.abs(t)):i.fn.modes.removeParticles(t)}},i.fn.vendors.checkOverlap=function(e,a){for(var t=0;t<i.particles.array.length;t++){var s=i.particles.array[t],n=e.x-s.x,r=e.y-s.y,c=Math.sqrt(n*n+r*r);c<=e.radius+s.radius&&(e.x=a?a.x:Math.random()*i.canvas.w,e.y=a?a.y:Math.random()*i.canvas.h,i.fn.vendors.checkOverlap(e))}},i.fn.vendors.createSvgImg=function(e){var a=i.tmp.source_svg,t=/#([0-9A-F]{3,6})/gi,s=a.replace(t,function(a,t,i,s){if(e.color.rgb)var n=\"rgba(\"+e.color.rgb.r+\",\"+e.color.rgb.g+\",\"+e.color.rgb.b+\",\"+e.opacity+\")\";else var n=\"hsla(\"+e.color.hsl.h+\",\"+e.color.hsl.s+\"%,\"+e.color.hsl.l+\"%,\"+e.opacity+\")\";return n}),n=new Blob([s],{type:\"image/svg+xml;charset=utf-8\"}),r=window.URL||window.webkitURL||window,c=r.createObjectURL(n),o=new Image;o.addEventListener(\"load\",function(){e.img.obj=o,e.img.loaded=!0,r.revokeObjectURL(c),i.tmp.count_svg++}),o.src=c},i.fn.vendors.destroypJS=function(){cancelAnimationFrame(i.fn.drawAnimFrame),t.remove(),pJSDom=null},i.fn.vendors.drawShape=function(e,a,t,i,s,n){var r=s*n,c=s/n,o=180*(c-2)/c,l=Math.PI-Math.PI*o/180;e.save(),e.beginPath(),e.translate(a,t),e.moveTo(0,0);for(var v=0;r>v;v++)e.lineTo(i,0),e.translate(i,0),e.rotate(l);e.fill(),e.restore()},i.fn.vendors.exportImg=function(){window.open(i.canvas.el.toDataURL(\"image/png\"),\"_blank\")},i.fn.vendors.loadImg=function(e){if(i.tmp.img_error=void 0,\"\"!=i.particles.shape.image.src)if(\"svg\"==e){var a=new XMLHttpRequest;a.open(\"GET\",i.particles.shape.image.src),a.onreadystatechange=function(e){4==a.readyState&&(200==a.status?(i.tmp.source_svg=e.currentTarget.response,i.fn.vendors.checkBeforeDraw()):(console.log(\"Error pJS - Image not found\"),i.tmp.img_error=!0))},a.send()}else{var t=new Image;t.addEventListener(\"load\",function(){i.tmp.img_obj=t,i.fn.vendors.checkBeforeDraw()}),t.src=i.particles.shape.image.src}else console.log(\"Error pJS - No image.src\"),i.tmp.img_error=!0},i.fn.vendors.draw=function(){\"image\"==i.particles.shape.type?\"svg\"==i.tmp.img_type?i.tmp.count_svg>=i.particles.number.value?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):void 0!=i.tmp.img_obj?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame))},i.fn.vendors.checkBeforeDraw=function(){\"image\"==i.particles.shape.type?\"svg\"==i.tmp.img_type&&void 0==i.tmp.source_svg?i.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(i.tmp.checkAnimFrame),i.tmp.img_error||(i.fn.vendors.init(),i.fn.vendors.draw())):(i.fn.vendors.init(),i.fn.vendors.draw())},i.fn.vendors.init=function(){i.fn.retinaInit(),i.fn.canvasInit(),i.fn.canvasSize(),i.fn.canvasPaint(),i.fn.particlesCreate(),i.fn.vendors.densityAutoParticles(),i.particles.line_linked.color_rgb_line=hexToRgb(i.particles.line_linked.color)},i.fn.vendors.start=function(){isInArray(\"image\",i.particles.shape.type)?(i.tmp.img_type=i.particles.shape.image.src.substr(i.particles.shape.image.src.length-3),i.fn.vendors.loadImg(i.tmp.img_type)):i.fn.vendors.checkBeforeDraw()},i.fn.vendors.eventsListeners(),i.fn.vendors.start()};Object.deepExtend=function(e,a){for(var t in a)a[t]&&a[t].constructor&&a[t].constructor===Object?(e[t]=e[t]||{},arguments.callee(e[t],a[t])):e[t]=a[t];return e},window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),window.pJSDom=[],window.particlesJS=function(e,a){\"string\"!=typeof e&&(a=e,e=\"particles-js\"),e||(e=\"particles-js\");var t=document.getElementById(e),i=\"particles-js-canvas-el\",s=t.getElementsByClassName(i);if(s.length)for(;s.length>0;)t.removeChild(s[0]);var n=document.createElement(\"canvas\");n.className=i,n.style.width=\"100%\",n.style.height=\"100%\";var r=document.getElementById(e).appendChild(n);null!=r&&pJSDom.push(new pJS(e,a))},window.particlesJS.load=function(e,a,t){var i=new XMLHttpRequest;i.open(\"GET\",a),i.onreadystatechange=function(a){if(4==i.readyState)if(200==i.status){var s=JSON.parse(a.currentTarget.response);window.particlesJS(e,s),t&&t()}else console.log(\"Error pJS - XMLHttpRequest status: \"+i.status),console.log(\"Error pJS - File config not found\")},i.send()};"
  },
  {
    "path": "page/login/js/script.js",
    "content": "\n\nfunction get_value(div){\n  return document.getElementById(div).value;\n}\n\nfunction set_html(div,text){\n  document.getElementById(div).innerHTML=text;\n}\n\n\nfunction login_area(per){\n    document.getElementById(\"login_body\").style.display=per;\n    document.getElementById(\"loader_area\").style.display=(per==\"block\")?\"none\":\"block\";\n}\n\n function login(){\n    uname=get_value('uname');\n    pass=get_value('pass');\n    document.getElementById(\"error_msg\").style.display=\"none\";\n    login_area(\"none\");\n     $.ajax({\n        type: 'POST',\n        url: 'login_action.php',\n        data: {\n            login: uname,\n            uname: uname,\n            pass: pass\n        }, \n        beforeSend: function() {\n              \n\n        },\n        success: function(response) {\n          response=JSON.parse(response);\n          setTimeout(function () {\n                fun_wait(response);\n           }, 1000); \n          \n        }\n    }); \n           \n  }\n\n  function fun_wait(data){\n\n      if(data.error==0)location.reload();\n      else{\n          document.getElementById(\"error_msg\").style.display=\"block\";\n          set_html(\"error_msg_text\",data.error_msg);\n          login_area(\"block\");\n      }\n  }\n\n\n$.getScript(\"https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.min.js\", function(){\n    particlesJS('particles-js',\n      {\n        \"particles\": {\n          \"number\": {\n            \"value\": 80,\n            \"density\": {\n              \"enable\": true,\n              \"value_area\": 800\n            }\n          },\n          \"color\": {\n            \"value\": \"#ffffff\"\n          },\n          \"shape\": {\n            \"type\": \"circle\",\n            \"stroke\": {\n              \"width\": 0,\n              \"color\": \"#000000\"\n            },\n            \"polygon\": {\n              \"nb_sides\": 5\n            },\n            \"image\": {\n              \"width\": 100,\n              \"height\": 100\n            }\n          },\n          \"opacity\": {\n            \"value\": 0.5,\n            \"random\": false,\n            \"anim\": {\n              \"enable\": false,\n              \"speed\": 1,\n              \"opacity_min\": 0.1,\n              \"sync\": false\n            }\n          },\n          \"size\": {\n            \"value\": 5,\n            \"random\": true,\n            \"anim\": {\n              \"enable\": false,\n              \"speed\": 40,\n              \"size_min\": 0.1,\n              \"sync\": false\n            }\n          },\n          \"line_linked\": {\n            \"enable\": true,\n            \"distance\": 150,\n            \"color\": \"#ffffff\",\n            \"opacity\": 0.4,\n            \"width\": 1\n          },\n          \"move\": {\n            \"enable\": true,\n            \"speed\": 6,\n            \"direction\": \"none\",\n            \"random\": false,\n            \"straight\": false,\n            \"out_mode\": \"out\",\n            \"attract\": {\n              \"enable\": false,\n              \"rotateX\": 600,\n              \"rotateY\": 1200\n            }\n          }\n        },\n        \"interactivity\": {\n          \"detect_on\": \"canvas\",\n          \"events\": {\n            \"onhover\": {\n              \"enable\": true,\n              \"mode\": \"repulse\"\n            },\n            \"onclick\": {\n              \"enable\": true,\n              \"mode\": \"push\"\n            },\n            \"resize\": true\n          },\n          \"modes\": {\n            \"grab\": {\n              \"distance\": 400,\n              \"line_linked\": {\n                \"opacity\": 1\n              }\n            },\n            \"bubble\": {\n              \"distance\": 400,\n              \"size\": 40,\n              \"duration\": 2,\n              \"opacity\": 8,\n              \"speed\": 3\n            },\n            \"repulse\": {\n              \"distance\": 200\n            },\n            \"push\": {\n              \"particles_nb\": 4\n            },\n            \"remove\": {\n              \"particles_nb\": 2\n            }\n          }\n        },\n        \"retina_detect\": true,\n        \"config_demo\": {\n          \"hide_card\": false,\n          \"background_color\": \"#b61924\",\n          \"background_image\": \"\",\n          \"background_position\": \"50% 50%\",\n          \"background_repeat\": \"no-repeat\",\n          \"background_size\": \"cover\"\n        }\n      }\n    );\n\n});\n\n"
  },
  {
    "path": "page/login/login.php",
    "content": " \n<?php \n\ninclude \"config/config.php\";\ninclude \"layout/header_lib.php\";\n$db=new database();\n?>\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/login/style/style.css\">\n<script type=\"text/javascript\" src=\"page/login/js/script.js\"></script>\n<script type=\"text/javascript\" src=\"page/login/js/ajax.js\"></script>\n\n<!DOCTYPE html>\n<html>\n<head>\n  <title>Login || <?php echo $db->site_name; ?></title>\n</head>\n\n<body style=\"background-size: 100%;\">\n<div class=\"container\" style=\"width: 100%\">\n\n  <div class=\"row\">\n    <div class=\"col-md-4  col-sm-12\"></div>\n    <div class=\"col-md-4 col-sm-12\">\n    <div id=\"login-box\" style=\"margin-top: 45px;\">\n        <div class=\"header_box\">Login Your ID</div>\n        <div class=\"logo\">\n            <h1 class=\"logo-caption\"><?php echo $db->site_name; ?></h1>\n        </div>\n        <div id=\"loader_area\" style=\"display: none;\"><?php loader(); ?></div>\n        <div class=\"controls\" id=\"login_body\">\n            <div id=\"error_msg\" class=\"error_msg\" style=\"color: #F64343;display: none;\">\n              <span class=\"glyphicon glyphicon-remove error_icon\"></span><br/>\n              <span id=\"error_msg_text\"></span>\n            </div>\n            \n            <div class=\"input-container\">\n                <i class=\"fa fa-user icon\"></i>\n                <input class=\"input-field\" autocomplete=\"off\" type=\"text\" placeholder=\"Username\" id=\"uname\" name=\"uname\">\n            </div>\n            <div class=\"input-container\">\n                <i class=\"fa fa-key icon\"></i>\n                <input class=\"input-field\" type=\"password\" id=\"pass\" name=\"pass\" placeholder=\"Password\">\n            </div>\n            \n            <button type=\"submit\" style=\"font-size: 16px;\" id=\"login_btn\" onclick=\"login()\" name=\"login\" class=\"btn btn-default btn-block btn-custom\">Login</button> \n        </div>\n        <div class=\"footer_login\" style=\"\">Developed By: <a href=\"https://github.com/amirhamza05/Student-Management-System\"><font style=\"font-size: 19px;font-weight: bold;color: #F64343\">Amir Hamza</font></a></div>\n    </div>\n    \n\n</div>\n\n</div>\n<div id=\"particles-js\"></div>\n</div>\n\n</body>\n</html>\n\n\n<?php\n\nfunction loader(){\n  ?>\n<center>  \n<div class=\"lds-css ng-scope\"><div style=\"width:100%;height:100%\" class=\"lds-ellipsis\"><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div></div>\n </center>\n\n  <?php\n}\n\n?>\n\n<style type=\"text/css\">\n\n\n\n  @keyframes lds-ellipsis3 {\n  0%, 25% {\n    left: 32px;\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n  50% {\n    left: 32px;\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n  75% {\n    left: 100px;\n  }\n  100% {\n    left: 168px;\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n}\n@-webkit-keyframes lds-ellipsis3 {\n  0%, 25% {\n    left: 32px;\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n  50% {\n    left: 32px;\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n  75% {\n    left: 100px;\n  }\n  100% {\n    left: 168px;\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n}\n@keyframes lds-ellipsis2 {\n  0% {\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n  25%, 100% {\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n}\n@-webkit-keyframes lds-ellipsis2 {\n  0% {\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n  25%, 100% {\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n}\n@keyframes lds-ellipsis {\n  0% {\n    left: 32px;\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n  25% {\n    left: 32px;\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n  50% {\n    left: 100px;\n  }\n  75% {\n    left: 168px;\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n  100% {\n    left: 168px;\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n}\n@-webkit-keyframes lds-ellipsis {\n  0% {\n    left: 32px;\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n  25% {\n    left: 32px;\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n  50% {\n    left: 100px;\n  }\n  75% {\n    left: 168px;\n    -webkit-transform: scale(1);\n    transform: scale(1);\n  }\n  100% {\n    left: 168px;\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n}\n.lds-ellipsis {\n  position: relative;\n}\n.lds-ellipsis > div {\n  position: absolute;\n  -webkit-transform: translate(-50%, -50%);\n  transform: translate(-50%, -50%);\n  width: 44px;\n  height: 44px;\n}\n.lds-ellipsis div > div {\n  width: 44px;\n  height: 44px;\n  border-radius: 50%;\n  background: #f00;\n  position: absolute;\n  top: 100px;\n  left: 32px;\n  -webkit-animation: lds-ellipsis 2s cubic-bezier(0, 0.5, 0.5, 1) infinite forwards;\n  animation: lds-ellipsis 2s cubic-bezier(0, 0.5, 0.5, 1) infinite forwards;\n}\n.lds-ellipsis div:nth-child(1) div {\n  -webkit-animation: lds-ellipsis2 2s cubic-bezier(0, 0.5, 0.5, 1) infinite forwards;\n  animation: lds-ellipsis2 2s cubic-bezier(0, 0.5, 0.5, 1) infinite forwards;\n  background: #be2222;\n}\n.lds-ellipsis div:nth-child(2) div {\n  -webkit-animation-delay: -1s;\n  animation-delay: -1s;\n  background: #d72929;\n}\n.lds-ellipsis div:nth-child(3) div {\n  -webkit-animation-delay: -0.5s;\n  animation-delay: -0.5s;\n  background: #d51515;\n}\n.lds-ellipsis div:nth-child(4) div {\n  -webkit-animation-delay: 0s;\n  animation-delay: 0s;\n  background: #d92c2c;\n}\n.lds-ellipsis div:nth-child(5) div {\n  -webkit-animation: lds-ellipsis3 2s cubic-bezier(0, 0.5, 0.5, 1) infinite forwards;\n  animation: lds-ellipsis3 2s cubic-bezier(0, 0.5, 0.5, 1) infinite forwards;\n  background: #be2222;\n}\n.lds-ellipsis {\n  width: 200px !important;\n  height: 200px !important;\n  -webkit-transform: translate(-100px, -100px) scale(1) translate(100px, 100px);\n  transform: translate(-100px, -100px) scale(1) translate(100px, 100px);\n}\n</style>"
  },
  {
    "path": "page/login/style/style.css",
    "content": "@import url('https://fonts.googleapis.com/css?family=Nunito');\n@import url('https://fonts.googleapis.com/css?family=Poiret+One');\n\nbody, html {\n\t\n\tbackground-repeat: no-repeat;    /*background-image: linear-gradient(rgb(12, 97, 33),rgb(104, 145, 162));*/\n\tbackground:black;\n\tposition: relative;\n\tbackground-color: #000000;\n\n}\n\n.input-container {\n  display: flex;\n  width: 100%;\n  margin-bottom: 3px;\n}\n.icon {\n  padding: 10px;\n  background: #F64343;\n  color: white;\n  height: 42px;\n  font-size: 24px;\n  min-width: 50px;\n  text-align: center;\n  border-radius: 5px 0px 0px 5px;\n}\n.input-field {\n  width: 100%;\n  outline: none;\n  border-radius: 0px 5px 5px 0px !important;\n}\n\n.error_msg{\n\t/*background-color: #383534!important;*/\n\tmargin: 10px 0px 15px 0px;\n\ttext-align: center;\n\tfont-weight: bold;\n\tpadding: 5px 5px 5px 5px;\n\tborder-color: #F64343;\n\tborder-width: 1px 1px 1px 1px;\n\tborder-style: double;\n\tborder-radius: 5px;\n}\n.error_icon{\n\tfont-size: 20px;\n}\n\n.body_style{\n\t\n}\n.footer_login{\n\tbackground: #383534!important;\n\tpadding: 7px;\n\tmargin-top: 40px;\n\tmargin-bottom: -20px;\n\tmargin-left: -20px;\n\tmargin-right: -20px;\n\tcolor: #ffffff;\n\tfont-size: 15px;\n\ttext-align: center;\n\tborder-radius: 0px 0px 0px 0px;\n\n}\n.header_box{\n\tbackground: #F64343;\n\tpadding: 15px;\n\tmargin-bottom: 25px;\n\tmargin-top: -20px;\n\tmargin-left: -20px;\n\tmargin-right: -20px;\n\tcolor: #ffffff;\n\tfont-size: 20px;\n\tborder-radius: 0px 0px 0px 0px;\n}\n#login-box {\n\tposition: absolute;\n\ttop: 0px;\n\tmargin: 0 auto;\n\tcolor: #fff;\n\tborder: 0px solid #F64343;\n\tbackground: rgba(48, 46, 45, 5);\n\theight: auto;\n\twidth: 390px;\n\tpadding: 20px;\n\tz-index: 9999;\n\tborder-radius: 5px;\n}\n#login-box .logo .logo-caption {\n\tfont-family: 'Poiret One', cursive;\n\tcolor: white;\n\ttext-align: center;\n\tmargin-bottom: 0px;\n}\n#login-box .logo .tweak {\n\tcolor: #ff5252;\n}\n#login-box .controls {\n\tpadding-top: 30px;\n}\n#login-box .controls input {\n\tbackground: rgb(98, 96, 96);\n\tcolor: white;\n\tfont-size: 15px;\n\tborder: 1px solid rgb(98, 96, 96);\n\tborder-width: 1px 1px 1px 0px;\n\theight: 42px;\n\tpadding: 0px 8px 0px 5px;\n\tfont-family: 'Nunito', sans-serif;\n\tmargin-bottom: 5px;\n}\n#login-box .controls input:focus {\n\tbox-shadow: none;\n\tborder-radius: 0px;\n\tborder: 1px solid #F64343;\n\tborder-width: 1px 1px 1px 0px;\n}\n#login-box .controls input:first-child {\n\tborder-top-left-radius: 2px;\n\tborder-top-right-radius: 2px;\n}\n#login-box .controls input:last-child {\n\tborder-bottom-left-radius: 2px;\n\tborder-bottom-right-radius: 2px;\n}\n#login-box button.btn-custom {\n\tborder-radius: 10px;\n\tmargin-top: 8px;\n    padding: 10px;\n\tbackground:#ff5252;\n\tfont-size: 19px!important;\n\tborder-color: rgba(48, 46, 45, 1);\n\tcolor: white;\n\tfont-family: 'Nunito', sans-serif;\n}\n#login-box button.btn-custom:hover{\n\t-webkit-transition: all 500ms ease;\n\t-moz-transition: all 500ms ease;\n\t-ms-transition: all 500ms ease;\n\t-o-transition: all 500ms ease;\n\ttransition: all 500ms ease;\n\tbackground: rgba(48, 46, 45, 1);\n\tfont-size: 18px;\n\tborder-color: #ff5252;\n\n}\n#login-box button.btn-custom:focus{\n\toutline: none;\n\n}\n#particles-js{\n  \twidth: 100%;\n  \theight: 100%;\n  \tbackground-size: cover;\n  \tbackground-position: 50% 50%;\n  \tposition: fixed;\n  \ttop: 0px;\n  \tz-index:1;\n}\n\n/*animation loder*/\n.lds-dual-ring {\n  display: inline-block;\n  width: 50px;\n  height: 50px;\n}\n.lds-dual-ring:after {\n  content: \" \";\n  display: block;\n  width: 46px;\n  height: 46px;\n  margin: 1px;\n  border-radius: 50%;\n  border: 5px solid #fff;\n  border-color: #fff transparent #fff transparent;\n  animation: lds-dual-ring 0.1s linear infinite;\n}\n@keyframes lds-dual-ring {\n  0% {\n    transform: rotate(0deg);\n  }\n  50% {\n    transform: rotate(300deg);\n  }\n  100% {\n    transform: rotate(600deg);\n  }\n}\n\n/*animated background*/\n\n"
  },
  {
    "path": "page/notice/add_notice.php",
    "content": ""
  },
  {
    "path": "page/notice/js/notice.js",
    "content": "\nurl=\"notice_action.php\";\nmodal_body=\"modal_md_body\";\nmodal=\"md\";\n\nvar action_data={\n  \t'url':url,\n  \t'div':modal_body,\n  \t'load':0\n};\n\nfunction send_sms_form(id){\n  modal_open(modal,\"Send SMS\");\n  loader(modal_body);\n\n  var data={\n      \"send_sms_form\":id\n  }\n\n  get_ajax(action_data,data);\n}\n\nfunction select_program(){\n  program_id=get_value(\"program_select\");\n  \n  var data = {\n        \"select_program\": program_id\n    }\n\n    loader(\"loader_select\",40);\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           set_html(\"loader_select\",\"\");\n           set_html(\"batch_select_id\",response);\n        }\n    });\n}\n\nfunction send_sms(id){\n  program_id=get_value(\"program_select\");\n  batch_id=get_value(\"batch_select_id\");\n  recever=get_value(\"recever\");\n  if(program_id==-1){\n    alert(\"Select Program\");\n    return;\n  }\n  else if(recever==-1){\n    alert(\"Select Recever\");\n    return;\n  }\n\n  var data1={\n    \"program_id\": program_id,\n    \"batch_id\":batch_id,\n    \"notice_id\": id,\n    \"recever\": recever\n    \n  }\n\n  loader(modal_body);\n\n\n  var data={\n    \"send_sms\":data1\n  }\n\n  get_ajax(action_data,data);\n}\n\n \nfunction get_notice_form(type,id=0){\n  if(type==\"insert\"){\n  \theader=\"Add Notice\";\n  \tdata_key=\"get_notice_form\";\n    val=1;\n  }\n  else if(type==\"update\"){\n  \theader=\"Update Notice\";\n  \tdata_key=\"update_notice_form\";\n    val=id;\n  }\n  else{\n    header=\"Delete Notice\";\n    data_key=\"delete_notice_form\";\n    val=id;\n  }\n\n  modal_open(modal,header);\n  loader(modal_body);\n\n  var data={\n    [data_key]:val\n  }\n\n  get_ajax(action_data,data);\n}\n\n\nfunction notice_action(type,id=0){\n  \n  delete_type=0;\n  if(type==\"insert\"){\n    data_key=\"insert_notice\";\n    val=0;\n  }\n  else if(type==\"update\"){\n    data_key=\"update_notice\";\n    val=id;\n  }\n  else{\n    data_key=\"delete_notice\";\n    val=id;\n    delete_type=1;\n  }\n\n  if(delete_type==0){\n    var data_val={\n      'id':val,\n      'title': get_value(\"title\"),\n    \t'description':get_value(\"editor\")\n    }\n    error=filter_data(data_val);\n  }\n  else{\n    var data_val={\n      'id':val\n    }\n    error=0;\n  }\n    \n    var data={\n    \t[data_key]:data_val\n    }\n\t\n\tif(error==0){\n         action_data['load']=1;\n         loader(modal_body);\n         get_ajax(action_data,data);\n\t}\n}\n\n\n\n\nfunction filter_data(data){\n\ttitle=data['title'];\n\tdescription=data['description'];\n\terror=0;\n\tif(title==\"\"){\n\t\talert(\"Enter Notice Title\");\n        error=1;\n\t}\n\telse if(description==\"\"){\n\t\talert(\"Enter Notice Description\");\n\t\terror=1;\n\t}\n\treturn error;\n}\n\n function key(){\n    //alert(\"sdaf\");\n    per=document.getElementById(\"select_level\").value;\n    var country = document.getElementById(\"select_level\");\n    country.options[country.options.selectedIndex].selected = false;\n\n    text=document.getElementById(\"editor\").value;\n\n    var myElement = document.getElementById('editor');\n    var startPosition = myElement.selectionStart;\n    var endPosition = myElement.selectionEnd;\n\n    var text1 = text.substring(0, startPosition);\n\n    len=text.length;\n    var text2= text.substring(startPosition, len);\n\n    \n    len1=text1+per;\n    len1=len1.length;\n    text=text1+per+text2;\n    document.getElementById(\"editor\").value=text;\n\n    setCaretToPos(myElement, len1);\n    count_len();\n\n  }\n\n  function count_len(){\n    \n    text=document.getElementById(\"editor\").value;\n    len=text.length;\n    len_sms=Math.ceil(len/160);\n    document.getElementById(\"len_text\").innerHTML=len;\n    document.getElementById(\"len_sms\").innerHTML=len_sms;\n  }\n\nfunction setSelectionRange(input, selectionStart, selectionEnd) {\n  if (input.setSelectionRange) {\n    input.focus();\n    input.setSelectionRange(selectionStart, selectionEnd);\n  }\n  else if (input.createTextRange) {\n    var range = input.createTextRange();\n    range.collapse(true);\n    range.moveEnd('character', selectionEnd);\n    range.moveStart('character', selectionStart);\n    range.select();\n  }\n}\n\nfunction setCaretToPos (input, pos) {\n  setSelectionRange(input, pos, pos);\n}\n\n"
  },
  {
    "path": "page/notice/notice_list.php",
    "content": "<script type=\"text/javascript\" src=\"page/notice/js/notice.js\"></script>\n\n<center>\n<div class=\"btn-toolbar list-toolbar\">\n   <button class=\"btn btn-primary\" onclick=\"get_notice_form('insert')\"><i class=\"fa fa-plus\"></i> Add Notice</button>\n</div>\n</center>\n\n<div id=\"sms_body_list\">\n\n\n\n<?php \n\nfunction generateStrongPassword($length = 9, $add_dashes = false, $available_sets = 'luds')\n{\n  $sets = array();\n  if(strpos($available_sets, 'l') !== false)\n    $sets[] = 'abcdefghjkmnpqrstuvwxyz';\n  if(strpos($available_sets, 'u') !== false)\n    $sets[] = 'ABCDEFGHJKMNPQRSTUVWXYZ';\n  if(strpos($available_sets, 'd') !== false)\n    $sets[] = '23456789';\n  if(strpos($available_sets, 's') !== false)\n    $sets[] = '!@#$%&*?';\n  $all = '';\n  $password = '';\n  foreach($sets as $set)\n  {\n    $password .= $set[array_rand(str_split($set))];\n    $all .= $set;\n  }\n  $all = str_split($all);\n  for($i = 0; $i < $length - count($sets); $i++)\n    $password .= $all[array_rand($all)];\n  $password = str_shuffle($password);\n  if(!$add_dashes)\n    return $password;\n  $dash_len = floor(sqrt($length));\n  $dash_str = '';\n  while(strlen($password) > $dash_len)\n  {\n    $dash_str .= substr($password, 0, $dash_len) . '-';\n    $password = substr($password, $dash_len);\n  }\n  $dash_str .= $password;\n  return $dash_str;\n}\nif(isset($_GET['id'])){\n$id=$_GET['id'];\n$en=(int)(($id%4)*(100%7)+35-4+3);\n$id=\"#@\".$id;\n$en=base64_encode($id);\n$en=generateStrongPassword(6,false,\"hamza\");\necho \"$en\";\n\n}\nforeach ($notice_info as $key => $value) {\n  $title=$value['title'];\n  $description=$value['description'];\n  $id=$value['id'];\n  $date=$value['date'];\n  $day=date(\"d\", strtotime($date));\n  $month=date(\"M\", strtotime($date));\n  $year=date(\"Y\", strtotime($date));\n  \n  for($i=0; $i<1; $i++){\n?>\n        <div class=\"row carousel-row\">\n        <div class=\"col-xs-10 col-xs-offset-1 slide-row\">\n          \n<div id=\"carousel-1\" style=\"\" class=\"carousel slide slide-carousel\">\n  \n              <!-- Wrapper for slides -->\n        <div style=\"background-color: background-color: var(--bg-color);  \n    color: var(--font-color)!important;height: 160px;\">\n              <div class=\"carousel-inner\">\n                  <div class=\"time_body\">\n              <span class=\"day\"><?php echo \"$day\"; ?></span>\n              <span class=\"month\"><?php echo \"$month\"; ?></span>\n              <span class=\"year\"><?php echo \"$year\"; ?></span>\n                  </div>\n              </div>\n            </div>\n\n    </div>\n\n\n            <div class=\"slide-content\">\n               <div class=\"notice_des\">\n                <h4><?php echo \"$title\"; ?></h4>\n                <p style=\"\">\n                    <?php echo \"$description\"; ?>\n                </p>\n                </div>\n            </div>\n            <div class=\"slide-footer\">\n                <span class=\"pull-right buttons\">\n                  <button class=\"btn btn-sm btn-primary\" data-toggle=\"modal\" onclick=\"send_sms_form(<?php echo \"$id\"; ?>)\" data-target=\"#send_sms\"><i class=\"fa fa-fw fa-shopping-cart\"></i><b>Send SMS</b></button>\n                  <button class=\"btn btn-sm btn-primary\" onclick=\"get_notice_form('update',<?php echo \"$id\"; ?>)\"><i class=\"fa fa-fw fa-shopping-cart\"></i><b>Edit</b></button>\n                   <button class=\"btn btn-sm btn-primary\" onclick=\"get_notice_form('delete',<?php echo \"$id\"; ?>)\"><i class=\"fa fa-fw fa-shopping-cart\"></i><b>Delete</b></button>\n                </span>\n            </div>\n        </div>\n    </div>\n\n<?php } } ?>\n        \n</div>\n\n  <input type=\"number\" name=\"\" id=\"notice_id\" hidden=\"\">\n\n    <style type=\"text/css\">\n\n  .btn_send{\n    padding: 10px;\n    background-color: #2B383B;\n    color: #ffffff;\n  }\n  .btn_send:hover{\n    padding: 10px;\n    background-color: #2B383B;\n    color: #ffffff;\n  }\n\n  .select,\n.download-target {\n  width: 15em;\n}\n.select {\n  position: relative;\n  display: block;\n  height: 3em;\n  line-height: 3;\n  background: #2c3e50;\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 1em 0;\n}\nselect {\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0 0 0 .5em;\n  color: #fff;\n  cursor: pointer;\n}\nselect::-ms-expand {\n  display: none;\n}\n.select::after {\n  content: '\\25BC';\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding: 0 1em;\n  background: #34495e;\n  pointer-events: none;\n}\n.select:hover::after {\n  color: #f39c12;\n}\n.select::after {\n  -webkit-transition: .25s all ease;\n  -o-transition: .25s all ease;\n  transition: .25s all ease;\n}\n\n/*REQUIRED*/\n.carousel-row {\n    margin-bottom: 10px;\n}\n\n.slide-row {\n    padding: 0;\n    background-color: #F1F1F1;\n    min-height: 160px;\n    border: 0px solid #e7e7e7;\n    overflow: hidden;\n    height: auto;\n    position: relative;\n}\n.time{\n    display: inline-block;\n    width: 100%;\n    background-color: var(--bg-color);  \n    color: var(--font-color)!important;\n    padding: 5px;\n    text-align: center;\n    text-transform: uppercase;\n}\n.day{\n  display: block;\n    font-size: 56pt;\n    font-weight: 100;\n    line-height: 1;\n    \n}\n.notice_des{\n  margin-left: -15px;\n  margin-right: 5px;\n  font-size: 16px;\n  font-family: sans-serif;\n}\n.month {\n    display: block;\n    font-size: 24pt;\n    font-weight: 900;\n    line-height: 1;\n  }\n.year{\n  \n}\n  .time_body{\n    background-color: var(--bg-color);  \n    color: var(--font-color)!important;\n    box-shadow: 0px 0px 5px rgb(51, 51, 51);\n    box-shadow: 0px 0px 5px rgba(51, 51, 51, 0.7);\n    padding: 0px;\n    padding: 5px;\n    text-align: center;\n    margin: 0px 2px 0px 0px;\n  }\n \n.slide-carousel {\n    width: 15%;\n    float: left;\n    background-color: var(--bg-color);  \n    color: var(--font-color)!important;\n    \n}\n\n\n.slide-content {\n    position: absolute;\n    top: 0;\n    left: 16%;\n    display: block;\n    float: left;\n    width: 84%;\n    max-height: 84%;\n    padding: 1.5% 2% 2% 2%;\n    overflow-y: auto;\n}\n\n.slide-content h4 {\n    margin-bottom: 3px;\n    margin-top: 0;\n    font-weight: bold;\n}\n\n.slide-footer {\n    position: absolute;\n    bottom: 0;\n    left: 15%;\n    width: 85%;\n    height: 25%;\n    margin: -2px;\n    padding: 3px;\n    padding-right: 25px;\n    \n}\n\n/* Scrollbars */\n.slide-content::-webkit-scrollbar {\n  width: 5px;\n}\n \n.slide-content::-webkit-scrollbar-thumb:vertical {\n  margin: 5px;\n  background-color: #999;\n  -webkit-border-radius: 5px;\n}\n \n.slide-content::-webkit-scrollbar-button:start:decrement,\n.slide-content::-webkit-scrollbar-button:end:increment {\n  height: 5px;\n  display: block;\n}\n    </style>"
  },
  {
    "path": "page/notice/notice_script/notice.js",
    "content": "function program(){\n\nprogram_id=document.getElementById(\"program_select\").value;\n\n  $.ajax({\n        type: 'POST',\n        url: 'notice_action.php',\n        data: {\n            select_program: program_id\n        },\n        success: function(response) {\n          //alert(\"Yay!\");\n            \n            document.getElementById(\"batch_div\").innerHTML =response;\n            batch();\n            \n        }\n    });\n}\n\nfunction batch(){\n\n  program_id=document.getElementById(\"program_select\").value;\n  batch_id=document.getElementById(\"batch_select\").value;\n\n   $.ajax({\n        type: 'POST',\n        url: 'notice_action.php',\n        data: {\n            select_batch: batch_id,\n            program_id:program_id\n        },\n        success: function(response) {\n           //alert(\"Yay!\");\n            \n            document.getElementById(\"student_div\").innerHTML =response;\n  \n        }\n    });\n}\n\nfunction send_btn(id){\n    document.getElementById(\"notice_id\").value=id;\n\n    $.ajax({\n        type: 'POST',\n        url: 'notice_action.php',\n        data: {\n            send_body: id\n        },\n        success: function(response) {\n          //alert(response);\n            document.getElementById('send_body').innerHTML=response;\n        }\n    });\n  \n}\nfunction send_sms(){\n    \n program_id=document.getElementById(\"program_select\").value;\n batch_id=document.getElementById(\"batch_select\").value;\n student_id=document.getElementById(\"student_select\").value;\n notice=document.getElementById(\"notice_id\").value;\n recever=document.getElementById(\"select_receive\").value;\n if(recever==0){\n    alert(\"Please select recever\");\n    return;\n }\n    $.ajax({\n        type: 'POST',\n        url: 'notice_action.php',\n        data: {\n            s_program_id: program_id,\n            batch_id: batch_id,\n            student_id: student_id,\n            notice: notice,\n            recever: recever\n\n        },\n        beforeSend: function() {\n              loader1(\"sms_report\");\n          },\n        success: function(response) {\n            //alert(\"hey\");\n            close_loader1('sms_report');\n            document.getElementById('sms_report').innerHTML=response;\n        }\n    });\n}\n\nfunction save_notice(){\n\ntitle=document.getElementById(\"title\").value;\nnotice=document.getElementById(\"editor\").value;\nif(title==\"\"){\n    alert(\"Please Enter Title\");\n    return;\n}\nif(notice==\"\"){\n    alert(\"Please Write Something Editor\");\n    return;\n}\n$('#myModal').modal('hide');\n  $.ajax({\n        type: 'POST',\n        url: 'notice_action.php',\n        data: {\n            save_notice: title,\n            notice : notice\n\n        },\n         beforeSend: function() {\n              loader1(\"sms_body_list\");\n          },\n        success: function(response) {\n          //alert(\"hey\");\n            close_loader1('sms_body_list');\n            document.getElementById('sms_body_list').innerHTML=response;\n\n        }\n    });\n}\n\nfunction send_notice_pre(id){\n    document.getElementById(\"notice_id\").value=id;\n}\n\nfunction send_notice(){\n    notice=document.getElementById(\"notice_id\").value;\n}\n\nfunction loader1(divname){\n  document.getElementById(divname).innerHTML = \"<center><img style='margin-top:35px; ' src='upload/site_content/processing1.gif' /></center>\";\n}\nfunction close_loader1(divname){\n  document.getElementById(divname).innerHTML = \"\";\n}"
  },
  {
    "path": "page/notice/notice_script/notice_action.php",
    "content": "<?php\n\ninclude \"layout/header_script.php\";\n\n\nif(isset($_POST['select_program'])){\n  $program_id=$_POST['select_program'];\n  $flag=0;\n\n  if($program_id!=0){\n  \t$batch1=$program[$program_id]['batch'];\n    $program_name=\"'\".$program[$program_id]['name'].\"'\";\n  }\n  else {\n  \t$flag=1;\n  \t$program_name=\"\";\n  }\n\t?>\n<select onchange=\"batch()\" class=\"dropdown-select-version select\" name=\"options\" id=\"batch_select\" style=\"width: 100%\">\n<option value=\"0\"> <?php echo \"All $program_name Batch\"; ?></option>   \n\t<?php\n   if($flag==1){\n         foreach ($batch as $key => $value) {\n            \t$id=$value['id'];\n            \t$name=$value['name'];\n            \t   ?>\n<option value=\"<?php echo\"$id\"; ?>\"> <?php echo \"$name\"; ?></option>        \n\t<?php \n   }\n}\n   if($flag==0){\n\n\t  foreach ($batch1 as $key => $value) {\n            \t$id=$value['id'];\n            \t$name=$value['name'];\n            \t   ?>\n<option value=\"<?php echo\"$id\"; ?>\"> <?php echo \"$name\"; ?></option>        \n\t<?php\n}\n}\necho \"</select>\";\n\n}\n\nelse if(isset($_POST['select_batch'])){\n  $program_id=$_POST['program_id'];\n  $batch_id=$_POST['select_batch'];\n $program_name=$program_ob->get_program_name($program_id);\n\n  $batch_name=$batch_ob->get_batch_name($batch_id);\n\n\n\t?>\n<select onchange=\"student_update()\" class=\"dropdown-select-version select\" name=\"options\" id=\"student_select\" style=\"width: 100%\">\n<option value=\"0\"> <?php echo \"All $program_name $batch_name Student\"; ?></option>   \n\n<?php \nif($program_id==0){\n\t foreach ($student as $key => $value) {\n            \t$id=$value['id'];\n            \t$name=$value['name'];\n            \t$pid=$value['program'];\n            \t$bid=$value['batch'];\n            \t   ?>\n<option value=\"<?php echo\"$id\"; ?>\"> <?php echo \"($id) $name\"; ?></option>        \n\t<?php\n}\n\n}\nelse{\n\n\t foreach ($student as $key => $value) {\n            \t$id=$value['id'];\n            \t$name=$value['name'];\n            \t$pid=$value['program'];\n            \t$bid=$value['batch'];\n            \tif(($pid==$program_id && $bid==$batch_id)||($batch_id==0 && $pid==$program_id)){\n            \t   ?>\n<option value=\"<?php echo\"$id\"; ?>\"> <?php echo \"($id) $name\"; ?></option>        \n\t<?php\n}\n}\n}\necho \"</select>\";\n\n}\n\nif(isset($_POST['send_body'])){\n  ?>\n\n<div class=\"dropdown\">\n             <center>\n              <div class=\"col-md-12\" style=\"margin-bottom: -20px\">\n            <select style=\"width: 100%;\" onchange=\"program()\" class=\"dropdown-select-version select\" id=\"program_select\" name=\"options\">\n              <option value=\"0\">All Program</option>\n        <?php  foreach ($program as $key => $value) {\n              $id=$value['id'];\n              $name=$value['name'];\n                 ?>\n                <option value=\"<?php echo \"$id\"; ?>\"><?php echo \"$name\"; ?></option>\n               <?php } ?>\n            </select>\n            </div>\n            <div class=\"col-md-12\" style=\"margin-bottom: -20px\">\n            <a id=\"batch_div\" style=\"\">\n            <select class=\"dropdown-select-version select\" name=\"options\" style=\"width: 100%;\" id=\"batch_select\">\n                <option value=\"0\"> All Batch </option>\n            </select>\n         </a>   \n       </div>\n       <div class=\"col-md-12\" style=\"margin-bottom: -20px\">\n         <a id=\"student_div\">\n            <select style=\"width: 100%;\" class=\"dropdown-select-version select\" name=\"options\" id=\"student_select\">\n                <option value=\"0\"> All Student </option>\n            </select>\n        </a>\n      </div>\n      <div class=\"col-md-12\" style=\"\">\n        \n            <select style=\"width: 100%;\" class=\"dropdown-select-version select\" name=\"permission\" id=\"select_receive\">\n               <option value=\"0\"> --Select Recever-- </option>\n                <option value=\"a\"> ALL </option>\n                <option value=\"s\"> Student </option>\n                <option value=\"g\"> Guardians </option>\n\n            </select>\n        \n      </div>\n\n            <a id=\"btnn\"  onclick=\"send_sms()\" class=\"btn btn_send\" style=\"width: 50%;\" title=\"Send SMS\" alt=\"Download\">Send SMS</a>\n              </center>\n        </div>\n\n<style type=\"text/css\">\n  .sms_report{\n    \n  }\n</style>\n<div class=\"sms_report\" id=\"sms_report\">\n  \n</div>\n\n  <?php\n}\n\nelse if(isset($_POST['s_program_id'])){\n  $program_id=$_POST['s_program_id'];\n  $batch_id=$_POST['batch_id'];\n  $student_id=$_POST['student_id'];\n  $notice_id=$_POST['notice'];\n  $receive_by=$_POST['recever'];\n  $info=$student_ob->get_select_student($program_id,$batch_id,$student_id);\n  //$title=$notice_info[$notice_id]['title'];\n  //echo \"$title\";\n$notice_des=$notice_info[$notice_id]['description'];\n  foreach ($info as $key => $value) {\n    $student_id=$value['id'];\n    $msg=$sms->get_sms($student_id,$notice_des);\n    $sms->send_sms_student($student_id,$msg,$receive_by);\n  }\n  ?>\n<!-- <style type=\"text/css\">\ntable{\n  \n        margin-top: 15px;\n        table-layout: fixed;\n}\n  td,th{\n    border-width: 1px;\n    border-style: solid;\n    padding: 5px;\n    text-align: center;\n  }\n  th{\n    background-color: #f1f1f1;\n    font-weight: bold;\n    padding: 10px;\n  }\n  .t_msg{\n    width: 45%;\n  }\n  .t_mobile{\n    width: 20%;\n  }\n  .t_sta{\n    width: 17%;\n  }\n  .t_tok{\n    width: 18%;\n  }\n\n</style>\n\n<table class=\"tb\"  width=\"100%\" style=\"\">\n  <tr>\n    <th class=\"t_mobile\">Mobile</th>\n    <th class=\"t_msg\">Message</th>\n    <th class=\"t_sta\">Status</th>\n    <th class=\"t_tok\">Token</th>\n  </tr>\n  <tbody>\n  <tr>\n    <?php //for($i=0; $i<100; $i++){ ?>\n    <td class=\"t_mobile\">100000001</td>\n    <td class=\"t_msg\">jhga sddfas dfsdafsdafsadfasdf sdafsadfsdfsdfsdafsdfsdasdfa</td>\n    <td class=\"t_sta\">Hamza</td>\n    <td class=\"t_tok\">10000000454</td>\n  </tr>\n  <?php //} ?>\n  </tbody>\n</table> -->\n\n  <?php\n}\nelse if(isset($_POST['save_notice'])){\n  $title=$_POST['save_notice'];\n  $notice=$_POST['notice'];\n  $info['title']=$title;\n  $info['description']=$notice;\n  $date=date(\"Y-m-d\");\n  $info['date']=$date;\n  $add_by=$login_user['id'];\n  $info['ad_by']=$add_by;\n  $db->sql_action(\"notice\",\"insert\",$info,\"no\");\n  ?>\n  <?php \n\nforeach ($notice_info as $key => $value) {\n  $title=$value['title'];\n  $description=$value['description'];\n  $id=$value['id'];\n\n  for($i=0; $i<1; $i++){\n?>\n        <div class=\"row carousel-row\">\n        <div class=\"col-xs-10 col-xs-offset-1 slide-row\">\n          \n<div id=\"carousel-1\" style=\"\" class=\"carousel slide slide-carousel\">\n  \n              <!-- Wrapper for slides -->\n              <div style=\"background-color: #2E363F;height: 160px;\">\n              <div class=\"carousel-inner\">\n                  <div class=\"time_body\">\n              <span class=\"day\">4</span>\n              <span class=\"month\">Jul</span>\n              <span class=\"year\">2014</span>\n                  </div>\n              </div>\n            </div>\n\n    </div>\n\n\n            <div class=\"slide-content\">\n               <div class=\"notice_des\">\n                <h4><?php echo \"$title\"; ?></h4>\n                <p style=\"\">\n                    <?php echo \"$description\"; ?>\n                </p>\n                </div>\n            </div>\n            <div class=\"slide-footer\">\n                <span class=\"pull-right buttons\">\n                  <button class=\"btn btn-sm btn-primary\" data-toggle=\"modal\" onclick=\"send_btn(<?php echo \"1\"; ?>)\" data-target=\"#send_sms\"><i class=\"fa fa-fw fa-shopping-cart\"></i><b>Send SMS</b></button>\n                  <button class=\"btn btn-sm btn-primary\"><i class=\"fa fa-fw fa-shopping-cart\"></i><b>Edit</b></button>\n                   <button class=\"btn btn-sm btn-primary\"><i class=\"fa fa-fw fa-shopping-cart\"></i><b>Delete</b></button>\n                </span>\n            </div>\n        </div>\n    </div>\n\n<?php } }\n        \n}\n\n\n?>"
  },
  {
    "path": "page/notice/send_notice.php",
    "content": ""
  },
  {
    "path": "page/payment/left_payment_option.php",
    "content": "<div class=\"left_class\">\n\t<input type=\"number\" name=\"\" placeholder=\"Enter Student ID\">\n</div>\n<style type=\"text/css\">\n\t.left_class{\n\t\tborder: 4px solid var(--bg-color);\n\t\theight: 440px;\n\t}\n</style>"
  },
  {
    "path": "page/payment/payment.php",
    "content": "<div class=\"row\">\n    <div class=\"col-md-12\">\n        <div class=\"row\">\n            <div class=\"col-md-7\">\n                <?php include \"left_payment_option.php\"; ?>\n            </div>\n            <div class=\"col-md-5\">\n                <?php include \"right_payment_option.php\"; ?>\n            </div>\n        </div>\n    </div> \n</div>"
  },
  {
    "path": "page/payment/right_payment_option.php",
    "content": ""
  },
  {
    "path": "page/print/id_print.php",
    "content": ""
  },
  {
    "path": "page/print_page/print_page.php",
    "content": "<?php\n\nif(isset($_GET['student_money_recept'])){\n\t$recept_id=$_GET['student_money_recept'];\n\t$recept_id=base64_decode($recept_id);\n\t$recept_id=(int)$recept_id;\n\t$set_payment_ob->get_money_recept($recept_id);\n}\n\n\n?>\n"
  },
  {
    "path": "page/program/add_program.php",
    "content": "\n<style>\n  \n.select_box{\n  background-color: #414959;\n  padding: 5px;\n  color: #ffffff;\n}\n.select_box1{\n  border-width: 2px;\n  border-style: solid;\n  border-color: #414959;\n  padding: 15px;\n}\n\n</style>\n\n  <div class=\"row\">\n      <div class=\"col-xs-12 col-sm-12\">  \n          <form  action=\"program_action.php\" autocomplete=\"off\" method=\"POST\">\n      \n\n<?php\n\n //$site->form_input(\"Batch Name\",\"name\",\"name\");\n //$site->form_input(\"Start Time\",\"start\",\"start\");\n //$site->form_input(\"End time\",\"end\",\"end\");\n ?>\n\n  <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Program Name</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"date\" value=\"\" placeholder=\"Enter Program Name\"  type=\"text\" name=\"name\"  required=\"\" />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\"></div>\n  </div>\n\n\n\n  <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Start Program Time</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"date\" value=\"\" placeholder=\"Enter Start Program Time\"  type=\"date\" name=\"start\"  required=\"\" />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\" style=\"padding-left: 40px;\"></div>\n  </div>\n\n\n\n <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>End Program Time</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"date\" value=\"\" placeholder=\"Enter End Program Time\"  type=\"date\" name=\"end\"  required=\"\" />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\" style=\"padding-left: 40px;\"></div>\n  </div>\n\n\n <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Admission Fee</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"date\" value=\"\" placeholder=\"Enter Admission Fee\"  type=\"number\" name=\"fee\"  required=\"\" />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\" style=\"padding-left: 40px;\"></div>\n</div>\n\n<div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Start Fee Date</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"date\" value=\"\" placeholder=\"Enter End Batch Time\"  type=\"date\" name=\"start_fee\"  />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\" style=\"padding-left: 40px;\"></div>\n</div>\n\n<div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>End Fee Date</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"date\" value=\"\" placeholder=\"Enter End Batch Time\"  type=\"date\" name=\"end_fee\"   />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\" style=\"padding-left: 40px;\"></div>\n</div>\n\n\n\n  <b>\n\n\n  <?php \n  echo \"<div class='select_box'>Select Batch</div><div class='select_box1'>\";\n  $program_ob->select_batch();\n echo \"</div><div class='select_box'>Select Subject</div><div class='select_box1'>\";\n  $program_ob->select_subject();\n echo \"</div><br />\";\n   ?>\n</b>\n          <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save</button>\n        </form>\n      </div>\n</div>\n   \n"
  },
  {
    "path": "page/program/program_list.php",
    "content": "\n<script type=\"text/javascript\" src=\"page/program/program_script.js\"></script>\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/index/style.css\">\n\n    <style type=\"text/css\">\n    thead{\n        background-color: #EFF0F2;\n        border-width: 0px;\n    }\n    .td_list1{\n        background-color: #EFF0F2;\n        color: #000000;\n        padding: 10px;\n        font-weight: bold;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n    .td_list2{\n        background-color: #ffffff;\n        color: #000000;\n        padding: 8px;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n</style>\n<div class=\"row\" style=\"\">\n  <script type=\"text/javascript\">\n        $(document).ready(function() {\n           $('table.display').DataTable();\n      } );\n      </script>\n<div class=\"col-md-12\">\n            <div class=\"dashboard_box\">\n                <div class=\"box_header\">Program List</div>\n                <div class=\"box_body\">\n                   <div class=\"pull-rightt\" style=\"margin-top: -20px;\">\n            <center><button class=\"button\" onclick=\"get_program_form('insert')\">+ Add Program</button></center>\n          </div>\n                \n           <table id=\"\" class=\"display\" width=\"100%\">\n            <thead style=\"width: 100%;\">\n            <tr>\n             \n              <td class=\"td_list1\">Program Name</td>\n              <td class=\"td_list1\">Program Start</td>\n              <td class=\"td_list1\">Program End</td>\n              <td class=\"td_list1\">Subject</td>\n              <td class=\"td_list1\">Batch</td>\n              <td class=\"td_list1\">Type</td>\n              <td class=\"td_list1\">Fee</td>\n              <td class=\"td_list1\">Monthly Fee</td>\n              <td class=\"td_list1\">Action</td>\n              <td class=\"td_list1\">Set Payment</td>\n            </tr>\n          </thead>\n          <tbody>\n\n<?php \n\nforeach ($program as $key => $value) {\n  $id=$value['id'];\n  $name=$value['name'];\n  $start=$value['start'];\n  $end=$value['end'];\n  $subject=$value['subject_string'];\n  $batch=$value['batch_string'];\n  $fee=$value['fee'];\n  $monthly=$value['monthly_fee'];\n  $type=$value['type_string'];\n?>\n            <tr>\n              <td class=\"td_list2\"><?php echo \"$name\"; ?></td>\n              <td class=\"td_list2\"><?php echo \"$start\"; ?></td>\n              <td class=\"td_list2\"><?php echo \"$end\"; ?></td>\n              <td class=\"td_list2\"><?php echo \"$subject\"; ?></td>\n              <td class=\"td_list2\"><?php echo \"$batch\"; ?></td>\n              <td class=\"td_list2\"><?php echo \"$type\"; ?> </td>\n              <td class=\"td_list2\"><?php echo \"$fee\"; ?></td>\n              <td class=\"td_list2\"><?php echo \"$monthly\"; ?></td>\n\n                \n                <td class=\"td_list2\"><div class=\"btn-toolbar list-toolbar\"><center><button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Edit\"  onclick=\"get_program_form('update',<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-pencil\"></span></button>\n                  <button class=\"btn btn-danger btn-xs\" title=\"Delete\" onclick=\"get_program_form('delete',<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button></center></div>\n                </td>\n                <td class=\"td_list2\">\n                  <center>\n                  <button class=\"btn btn-danger btn-xs\" title=\"Delete\" onclick=\"set_payment(<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-euro\"></span> Set Payment</button>\n                </center></div>\n                </td>\n    \n            </tr>\n\n            <!-- end edit model -->\n<?php } ?>\n          </tbody>\n        </table>\n  </table>\n                </div>\n            </div>\n        </div>\n        \n    </div> \n\n"
  },
  {
    "path": "page/program/program_script.js",
    "content": "url = \"program_action.php\";\nmodal_body = \"modal_md_body\";\nmodal = \"md\";\n\nvar action_data = {\n    'url': url,\n    'div': modal_body, \n    'load': 0\n};\n\n\nfunction get_program_form(type, id = 0) {\n    if (type == \"insert\") {\n        header = \"Add program\";\n        data_key = \"add_program_form\";\n        val = 1;\n    } else if (type == \"update\") {\n        header = \"Update program\";\n        data_key = \"update_program_form\";\n        val = id;\n    } else {\n        header = \"Delete program\";\n        data_key = \"delete_program_form\";\n        val = id;\n    }\n\n    modal_open(modal, header);\n    loader(modal_body);\n\n    var data = {\n        [data_key]: val\n    }\n    action_data['div']=\"modal_md_body\";\n\n    get_ajax(action_data, data);\n}\n\n\nfunction select_year(pid){\n    year=get_value(\"select_year\");\n    var data1 = {\n        'program_id':pid, \n        'year': year\n    }\n\n    var data={\n        'select_year': data1\n    }\n\n    action_data1=action_data;\n    action_data1['div']=\"select_month\";\n    get_ajax(action_data, data);\n}\n\n\nfunction program_action(type, id = 0) {\n\n    delete_type = 0;\n    if (type == \"insert\") {\n        data_key = \"insert_program\";\n        val = 0;\n    } else if (type == \"update\") {\n        data_key = \"update_program\";\n        val = id;\n    } else {\n        data_key = \"delete_program\";\n        val = id;\n        delete_type = 1;\n    }\n\n    if (delete_type == 0) {\n        data_val = get_data(id);\n        error = filter_data(data_val);\n    } else {\n        var data_val = {\n            'id': val\n        }\n        error = 0;\n    }\n\n    var data = {\n        [data_key]: data_val\n    }\n\n    if (error == 0) {\n        action_data['load'] = 1;\n        //console.log(data);\n\n        loader(modal_body);\n        get_ajax(action_data, data);\n    }\n}\n\n\nfunction get_data(id) {\n\ttype=get_value(\"program_type\");\n\tfee=get_value(\"fee\");\n\tfee=(fee==\"\")?0:fee;\n\tmonthly_fee=get_value(\"monthly_fee\");\n\tmonthly_fee=(type==1)?0:monthly_fee;\n\tmonthly_fee=(monthly_fee==\"\")?0:monthly_fee;\n\n    var data_val = {\n        'id': id,\n        'name': get_value(\"name\"),\n        'start': get_value(\"start\"),\n        'end': get_value(\"end\"),\n        'type': type,\n        'fee':fee,\n        'monthly_fee':monthly_fee,\n        'batch':get_checkbox_value('batch[]'),\n        'subject':get_checkbox_value('subject[]')\n    }\n\n    return data_val;\n}\n\nfunction program_type_select(){\n\ttype=document.getElementById('program_type').value;\n    fee_div=document.getElementById('fee_area');\n    monthly_fee_div=document.getElementById('monthly_fee_area');\n    if(type==1){\n      fee_div.style.display='block';\n      monthly_fee_div.style.display='none';\n    }\n    else if(type==2){\n      fee_div.style.display='block';\n      monthly_fee_div.style.display='block';\n    }\n    else{\n      fee_div.style.display='none';\n      monthly_fee_div.style.display='none';\n    }\n}\n\n\nfunction set_payment(id){\n    data_key=\"set_payment_list\";\n\n    modal_open(\"lg\", \"Set Monthly Payment\");\n    loader(\"modal_lg_body\");\n    action_data1=action_data;\n    action_data1['div']=\"modal_lg_body\";\n    \n    var data1 = {\n        'id': id\n    }\n\n    var data = {\n        [data_key]: data1\n    }\n\n    get_ajax(action_data1, data);\n\n}\n\nfunction update_payment_input(id,fee){\n   div=\"update_payment_area_\"+id;\n   data_key=\"payment_update_area\";\n   var data1={\n      'id':id,\n      'fee':fee\n   }\n\n   action_data1=action_data;\n   action_data1['div']=div;\n\n   loader(div,110);\n   var data = {\n        [data_key]: data1\n    }\n   get_ajax(action_data1, data);\n}\n\n\nfunction update_payment_save(id){\n  fee=\"fee_input_\"+id;\n  div=\"update_payment_area_\"+id;\n  data_key=\"payment_update_save\";\n\n  fee=get_value(fee);\n\n  if(fee==\"\"){\n    alert(\"Please Enter Fee\");\n    return;\n  }\n\n   var data1={\n      'id':id,\n      'fee':fee\n   }\n\n   action_data1=action_data;\n   action_data1['div']=div;\n\n   loader(div,110);\n   var data = {\n        [data_key]: data1\n    }\n\n   get_ajax(action_data1, data);\n\n\n}\n\nfunction set_payment_btn(id){\n    data_key=\"set_payment_list\";\n    \n    action_data1=action_data;\n    action_data1['div']=\"modal_lg_body\";\n    \n    year=get_value(\"select_year\");\n    month=get_value(\"select_month\");\n\n    if(year==-1){\n        alert(\"Select Year\");\n        return;\n    }\n    if(month==-1){\n        alert(\"Select Month\");\n        return;\n    }\n\n    loader(\"modal_lg_body\");\n\n    var data2={\n       'month': month,\n       'year': year\n    }\n\n    var data1 = {\n        'id': id,\n        'insert': data2\n    }\n\n    var data = {\n        [data_key]: data1\n    }\n\n    get_ajax(action_data1, data);\n}\n\nfunction filter_data(data) {\n    name = data['name'];\n    start = data['start'];\n    end = data['end'];\n\n\n    error = 0;\n    if (name == \"\") {\n        alert(\"Enter program Name\");\n        error = 1;\n    } else if (start == \"\") {\n        alert(\"Enter program Start Time\");\n        error = 1;\n    } else if (end == \"\") {\n        alert(\"Enter program End Time\");\n        error = 1;\n    }\n    else if(data['type']==-1){\n    \talert(\"Select Program Type\");\n        error = 1;\n    }\n    \n    \n    return error;\n}"
  },
  {
    "path": "page/report/attend_report.php",
    "content": "<script type=\"text/javascript\" src=\"page/report/js/attend_report.js\"></script>\n\n<div class=\"row\">\n    \n        <div class=\"dropdown\" style=\"\">\n          \n          <div class=\"col-md-3\">\n            <select onchange=\"select_program()\" class=\"select\" id=\"program_select\" name=\"options\">\n                <option value=\"-1\">Select Program</option>\n                <?php $program_ob->select_program(); ?>\n            </select>\n          </div>\n\n          <div class=\"col-md-3\" id=\"batch_select\">\n            <select class=\"select\" id=\"batch_select_id\">\n                <option value=\"-1\">Select Batch</option>\n            </select>\n            <br/>\n            <div id='loader_select'></div>\n          </div>\n          <div class=\"col-md-2\" id=\"year_select1\">\n            <select class=\"select\" onclick=\"select_year()\" id=\"year_select\">\n                <option value=\"-1\">Select Year</option>\n            </select>\n            <br/>\n            <div id='loader_select'></div>\n          </div>\n          <div class=\"col-md-2\" id=\"month_select1\">\n            <select class=\"select\" id=\"month_select\">\n                <option value=\"-1\">Select Month</option>\n            </select>\n            <br/>\n            <div id='loader_select'></div>\n          </div>\n        \n          <div class=\"col-md-2\">\n            <button class=\"btn_select\" onclick=\"attend_report()\">View Report</button>\n          </div>\n    </div> \n</div>\n<div id=\"report_area\"></div>\n \n\n<style type=\"text/css\">\n\t.btn_attend{\n        padding: 20px;\n        font-size: 20px;\n        background-color: var(--bg-color);\n        color: var(--font-color);\n        border-width: 0px;\n    }\n    .btn_attend:hover{\n       font-size: 21px;\n       padding: 19px;\n    }\n    .btn_area{\n       align-content: center;\n       margin-top: 10px;\n    }\n\n .select {\n  position: relative;\n  display: block;\n  height: 3.4em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n\n.select::after {\n  content: '\\25BC';\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding: 0 1em;\n  background: #34495e;\n  pointer-events: none;\n}\n.select:hover::after {\n  color: #f39c12;\n}\n.select::after {\n  -webkit-transition: .25s all ease;\n  -o-transition: .25s all ease;\n  transition: .25s all ease;\n}\n\n.btn_select{\n  position: relative;\n  display: block;\n  height: 3.5em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n</style>"
  },
  {
    "path": "page/report/css/payment_report.css",
    "content": "\n.select {\n  position: relative;\n  display: block;\n  height: 3.4em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n.input_date{\n    width: 100%;\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    margin: 0.5em 0em 1em 0em;\n    height: 3.5em;\n    padding: 10px;\n    border-width: 0px;\n    border-radius: .25em;\n}\n.btn_select{\n  position: relative;\n  display: block;\n  height: 3.5em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}"
  },
  {
    "path": "page/report/expence_report.php",
    "content": "<link rel=\"stylesheet\" type=\"text/css\" href=\"page/report/css/payment_report.css\">\n<script type=\"text/javascript\" src=\"page/report/js/expence_report.js\"></script>\n\n<div class=\"row\">\n\t\n\t<div class=\"col-md-2\"></div>\n\t<div class=\"col-md-3\">\n        <input type=\"date\" id=\"date1\" value=\"\" class=\"input_date\" name=\"\">\n     </div>\n    <div class=\"col-md-3\">\n        <input type=\"date\" id=\"date2\" value=\"\" class=\"input_date\" name=\"\">\n    </div>\n      <div class=\"col-md-2\">\n            <button class=\"btn_select\" onclick=\"view_expence_report()\">View Report</button>\n       </div>\n       <div class=\"col-md-2\"></div>\n\n</div>\n\n\n<div id=\"report_response\">\n\n</div>\n\n"
  },
  {
    "path": "page/report/income_report.php",
    "content": "<link rel=\"stylesheet\" type=\"text/css\" href=\"page/report/css/payment_report.css\">\n<script type=\"text/javascript\" src=\"page/report/js/income_report.js\"></script>\n\n<div class=\"row\">\n\t\n\t<div class=\"col-md-2\"></div>\n\t<div class=\"col-md-3\">\n        <input type=\"date\" id=\"date1\" value=\"\" class=\"input_date\" name=\"\">\n     </div>\n    <div class=\"col-md-3\">\n        <input type=\"date\" id=\"date2\" value=\"\" class=\"input_date\" name=\"\">\n    </div>\n      <div class=\"col-md-2\">\n            <button class=\"btn_select\" onclick=\"view_income_report()\">View Report</button>\n       </div>\n       <div class=\"col-md-2\"></div>\n\n</div>\n\n\n<div id=\"report_response\">\n\n</div>\n\n"
  },
  {
    "path": "page/report/js/attend_report.js",
    "content": "url = \"report_action.php\";\nmodal_body = \"modal_lg_body\";\nmodal = \"lg\";\n\nvar program_id,batch_id;\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\n\nfunction attend_report(){\n   \n   program_id=get_value(\"program_select\");\n   batch_id=get_value(\"batch_select_id\");\n   year=get_value(\"year_select\");\n   month=get_value(\"month_select\");\n   \n   error=\"\";\n   if(program_id==\"\" || program_id==-1){\n    error=\"Please Select Program\";\n   }\n   else if(batch_id==\"\" || batch_id==-1){\n    error=\"Please Select Batch\";\n   }\n   else if(year==\"\" || year==-1){\n    error=\"Please Select Year\";\n   }\n   else if(month==\"\" || month==-1){\n    error=\"Please Select Month\";\n   }\n   if(error!=\"\"){\n    alert(error);\n    return;\n   }\n\n   var data1={\n    \"program_id\": program_id,\n    \"batch_id\": batch_id,\n    \"year\": year,\n    \"month\": month\n   }\n\n   var data = {\n        \"attend_report\": data1\n    }\n    //modal_open(modal, \"Attendence Report\");\n    loader(\"report_area\");\n    get_ajax(get_action_data(\"report_area\"), data);\n}\n\nfunction select_program(){\n\tprogram_id=get_value(\"program_select\");\n    var data = {\n        \"select_program\": program_id\n    } \n    \n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           set_html(\"batch_select_id\",response);\n           year_set(program_id);\n        }\n    });\n}\n\nfunction year_set(program_id){\n    \n\n    var data = {\n        \"year_set\": program_id\n    }\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           set_html(\"year_select\",response);\n        }\n    });\n}\n\nfunction select_year(){\n    \n    year=get_value(\"year_select\");\n    \n    var data1={\n        'year': year,\n        'program_id': program_id\n    }\n\n    var data = {\n        \"select_year\": data1\n    }\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           set_html(\"month_select\",response);\n        }\n    });\n}"
  },
  {
    "path": "page/report/js/expence_report.js",
    "content": "url = \"report_action.php\";\nmodal_body = \"modal_md_body\";\nmodal = \"md\";\n\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\nfunction view_expence_report(){\n  \n  date1=get_value(\"date1\");\n  date2=get_value(\"date2\");\n  var error=\"\";\n  if(date1==\"\")error=\"Please Select Date1\";\n  if(date2==\"\")error=\"Please Select Date2\";\n  if(date1>date2)error=\"Date1 must be smaller then Date2\";\n  if(error!=\"\"){\n    alert(error);\n    return;\n  }\n  var data1 = {\n    \"date1\": get_value(\"date1\"),\n    \"date2\": get_value(\"date2\")\n  }\n\n  var data = {\n        \"view_expence_report\": data1\n    }\n\n    \n    loader(\"report_response\");\n    get_ajax(get_action_data(\"report_response\"), data);\n}\n"
  },
  {
    "path": "page/report/js/income_report.js",
    "content": "url = \"report_action.php\";\nmodal_body = \"modal_md_body\";\nmodal = \"md\";\n\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\nfunction view_income_report(){\n  \n  date1=get_value(\"date1\");\n  date2=get_value(\"date2\");\n  var error=\"\";\n  if(date1==\"\")error=\"Please Select Date1\";\n  if(date2==\"\")error=\"Please Select Date2\";\n  if(date1>date2)error=\"Date1 must be smaller then Date2\";\n  if(error!=\"\"){\n    alert(error);\n    return;\n  }\n  var data1 = {\n    \"date1\": get_value(\"date1\"),\n    \"date2\": get_value(\"date2\")\n  }\n\n  var data = {\n        \"view_income_report\": data1\n    }\n\n    \n    loader(\"report_response\");\n    get_ajax(get_action_data(\"report_response\"), data);\n}\n"
  },
  {
    "path": "page/report/js/payment_report.js",
    "content": "url = \"report_action.php\";\nmodal_body = \"modal_md_body\";\nmodal = \"md\";\n\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\nfunction view_payment_report(){\n  \n  date1=get_value(\"date1\");\n  date2=get_value(\"date2\");\n  var error=\"\";\n  if(date1==\"\")error=\"Please Select Date1\";\n  if(date2==\"\")error=\"Please Select Date2\";\n  if(date1>date2)error=\"Date1 must be smaller then Date2\";\n  if(error!=\"\"){\n    alert(error);\n    return;\n  }\n  var data1 = {\n    \"program_id\": get_value(\"program_select\"),\n    \"type\": get_value(\"type_select\"),\n    \"date1\": get_value(\"date1\"),\n    \"date2\": get_value(\"date2\")\n  }\n\n  var data = {\n        \"view_payment_report\": data1\n    }\n\n    \n    loader(\"report_response\");\n    get_ajax(get_action_data(\"report_response\"), data);\n}\n"
  },
  {
    "path": "page/report/js/profit_report.js",
    "content": "url = \"report_action.php\";\nmodal_body = \"modal_md_body\";\nmodal = \"md\";\n\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\nfunction view_profit_report(){\n  \n  date1=get_value(\"date1\");\n  date2=get_value(\"date2\");\n  var error=\"\";\n  if(date1==\"\")error=\"Please Select Date1\";\n  if(date2==\"\")error=\"Please Select Date2\";\n  if(date1>date2)error=\"Date1 must be smaller then Date2\";\n  if(error!=\"\"){\n    alert(error);\n    return;\n  }\n  var data1 = {\n    \"date1\": get_value(\"date1\"),\n    \"date2\": get_value(\"date2\")\n  }\n\n  var data = {\n        \"view_profit_report\": data1\n    }\n\n    \n    loader(\"report_response\");\n    get_ajax(get_action_data(\"report_response\"), data);\n}\n"
  },
  {
    "path": "page/report/payment_report.php",
    "content": "<link rel=\"stylesheet\" type=\"text/css\" href=\"page/report/css/payment_report.css\">\n<script type=\"text/javascript\" src=\"page/report/js/payment_report.js\"></script>\n\n<div class=\"row\">\n\t<div class=\"col-md-1\"></div>\n\t<div class=\"col-md-2\">\n\t\t<select class=\"select\" id=\"program_select\">\n\t\t\t<option value=\"0\">All Program</option>\n\t\t\t<?php $program_ob->select_program(); ?>\n\t\t</select>\n\t</div>\n\t<div class=\"col-md-2\">\n\t\t<select class=\"select\"  id=\"type_select\">\n\t\t\t<option value=\"0\">Any Type</option>\n\t\t\t<option value=\"1\">Admission Fee</option>\n\t\t\t<option value=\"2\">Monthly Fee</option>\n\t\t\t<option value=\"3\">Extra Fee</option>\n\t\t</select>\n\t</div>\n\t<div class=\"col-md-2\">\n        <input type=\"date\" id=\"date1\" value=\"\" class=\"input_date\" name=\"\">\n     </div>\n    <div class=\"col-md-2\">\n        <input type=\"date\" id=\"date2\" value=\"\" class=\"input_date\" name=\"\">\n    </div>\n      <div class=\"col-md-2\">\n            <button class=\"btn_select\" onclick=\"view_payment_report()\">View Report</button>\n       </div>\n\n</div>\n\n\n<div id=\"report_response\">\n\n</div>\n\n"
  },
  {
    "path": "page/report/profit_report.php",
    "content": "<link rel=\"stylesheet\" type=\"text/css\" href=\"page/report/css/payment_report.css\">\n<script type=\"text/javascript\" src=\"page/report/js/profit_report.js\"></script>\n\n<div class=\"row\">\n\t\n\t<div class=\"col-md-2\"></div>\n\t<div class=\"col-md-3\">\n        <input type=\"date\" id=\"date1\" value=\"\" class=\"input_date\" name=\"\">\n     </div>\n    <div class=\"col-md-3\">\n        <input type=\"date\" id=\"date2\" value=\"\" class=\"input_date\" name=\"\">\n    </div>\n      <div class=\"col-md-2\">\n            <button class=\"btn_select\" onclick=\"view_profit_report()\">View Report</button>\n       </div>\n       <div class=\"col-md-2\"></div>\n\n</div>\n\n\n<div id=\"report_response\">\n\n</div>\n\n"
  },
  {
    "path": "page/result/add_result.js",
    "content": "  \n\n  var room = 1;\n\n  function add_btn() {\n      room++;\n\n      var objTo = document.getElementById('result')\n      var divtest = document.createElement(\"div\");\n\n      divtest.setAttribute(\"class\", \"form-group removeclass\" + room);\n      var rdiv = 'removeclass' + room;\n      divtest.innerHTML = '<div class=\"form-group removeclass\"><div class=\"row\" style=\"margin-bottom: -13px;\"><div class=\"col-sm-1 nopadding\"></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"student_id_' + room + '\" name=\"student_id_save[]\" required=\"\" placeholder=\"Student ID\"></div></div> <div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"mcq_save_'+ room +'\" step=\"0.01\" value=\"0\" name=\"mcq[]\" placeholder=\"MCQ Mark\"></div></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"number\" class=\"form-control\" id=\"written_save_'+ room +'\" step=\"0.01\" name=\"written[]\" value=\"0\" placeholder=\"Written Mark\"></div></div><div class=\"col-sm-2 nopadding\"><div class=\"input-group-btn\"> <button class=\"btn btn-danger\" type=\"button\" onclick=\"remove_education_fields(' + room + ');\"> <span class=\"glyphicon glyphicon-minus\" aria-hidden=\"true\"></span> </button></div></div></div></div>';\n      objTo.appendChild(divtest)\n  }\n\n\n  function add_btn_hwritten() {\n      room++;\n\n      var objTo = document.getElementById('result')\n      var divtest = document.createElement(\"div\");\n\n      divtest.setAttribute(\"class\", \"form-group removeclass\" + room);\n      var rdiv = 'removeclass' + room;\n      divtest.innerHTML = '<div class=\"form-group removeclass\"><div class=\"row\" style=\"margin-bottom: -13px;\"><div class=\"col-sm-1 nopadding\"></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"student_id_' + room + '\" name=\"student_id_save[]\" required=\"\" placeholder=\"Student ID\"></div></div> <div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"mcq_save_'+ room +'\" step=\"0.01\" value=\"0\" name=\"mcq[]\" placeholder=\"MCQ Mark\"></div></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"number\" class=\"form-control\" id=\"written_save_'+ room +'\" step=\"0.01\" name=\"written[]\" readonly value=\"0\" placeholder=\"Written Mark\"></div></div><div class=\"col-sm-2 nopadding\"><div class=\"input-group-btn\"> <button class=\"btn btn-danger\" type=\"button\" onclick=\"remove_education_fields(' + room + ');\"> <span class=\"glyphicon glyphicon-minus\" aria-hidden=\"true\"></span> </button></div></div></div></div>';\n      objTo.appendChild(divtest)\n  }\n\n  function add_btn_hmcq() {\n\n     room++;\n\n      var objTo = document.getElementById('result')\n      var divtest = document.createElement(\"div\");\n\n      divtest.setAttribute(\"class\", \"form-group removeclass\" + room);\n      var rdiv = 'removeclass' + room;\n      divtest.innerHTML = '<div class=\"form-group removeclass\"><div class=\"row\" style=\"margin-bottom: -13px;\"><div class=\"col-sm-1 nopadding\"></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"student_id_' + room + '\" name=\"student_id_save[]\" required=\"\" placeholder=\"Student ID\"></div></div> <div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"mcq_save_'+ room +'\" readonly step=\"0.01\" value=\"0\" name=\"mcq[]\" placeholder=\"MCQ Mark\"></div></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"number\" class=\"form-control\" id=\"written_save_'+ room +'\" step=\"0.01\" name=\"written[]\" value=\"0\" placeholder=\"Written Mark\"></div></div><div class=\"col-sm-2 nopadding\"><div class=\"input-group-btn\"> <button class=\"btn btn-danger\" type=\"button\" onclick=\"remove_education_fields(' + room + ');\"> <span class=\"glyphicon glyphicon-minus\" aria-hidden=\"true\"></span> </button></div></div></div></div>';\n      objTo.appendChild(divtest)\n  }\n\n\n  function remove_education_fields(rid) {\n      $('.removeclass' + rid).remove();\n  }\n\n\n\n\nfunction save_student_result(){\n\nvar student_id_info=[];\nvar mcq_save=[];\nvar written_save=[];\n  for(i=1; i<=room; i++){\n\n  student_id=\"student_id_\"+i;\n  student_id=document.getElementById(student_id).value;\n if(student_id==\"\" || student_id<10000)continue;\n\n  student_id_info[i]=student_id;\n\n  mcq=\"mcq_save_\"+i;\n  mcq=document.getElementById(mcq).value;\n  mcq_save[i]=mcq;\n\n  written=\"written_save_\"+i;\n  written=document.getElementById(written).value;\n  written_save[i]=written;\n\n  //alert(written_save[i]);\n  //alert(mcq_save[i]);\n}\n\n\n\nexam_id = document.getElementById(\"exam_select\").value;\nprogram_id = document.getElementById(\"program_select\").value;\n\n$.ajax({\n          type: 'GET',\n          url: 'add_result_action.php',\n          data: {\n              save_student_result: student_id_info,\n              save_mcq: mcq_save,\n              save_written: written_save,\n              count_student:room,\n              exam_id_save:exam_id,\n              program_id_save: program_id\n          },\n          beforeSend: function() {\n              loader(\"result_add_body\");\n          },\n          success: function(response) {\n              //alert(\"Yay!\");\n              //alert(response);\n              close_loader(\"result_add_body\");\n              show_result();\n              success('Sucessfully Add Exam Result');\n              //document.getElementById(\"exam_select\").innerHTML = response;\n\n          }\n      });\n\n\n}\n\n\n\n\n  function test() {\n      $.ajax({\n          type: 'POST',\n          url: 'add_result_action.php',\n          data: {\n              test: 1\n          },\n          beforeSend: function() {\n              //loader(\"loading\");\n          },\n          success: function(response) {\n              //alert(\"Yay!\");\n              document.getElementById(\"exam_body\").innerHTML = response;\n\n          }\n      });\n  }\n \n\n  function program() {\n      pid = document.getElementById(\"program_select\").value;\n      $.ajax({\n          type: 'POST',\n          url: 'add_result_action.php',\n          data: {\n              program_select: pid\n          },\n          beforeSend: function() {\n              //loader(\"loading\");\n          },\n          success: function(response) {\n              //alert(\"Yay!\");\n              document.getElementById(\"subject_select\").innerHTML = response;\n              document.getElementById(\"exam_select\").innerHTML = \"<option value=''>--Select Exam--</option>\";\n              document.getElementById(\"exam_body\").innerHTML=\"\";\n          }\n      });\n\n  }\n\n  function  exam() {\n    document.getElementById(\"exam_body\").innerHTML=\"\";\n    show_result(\"yes\");\n  }\n\n  function subject() {\n      subject_id = document.getElementById(\"subject_select\").value;\n      program_id = document.getElementById(\"program_select\").value;\n      //alert(subject_id);\n      $.ajax({\n          type: 'POST',\n          url: 'add_result_action.php',\n          data: {\n              subject_select: subject_id,\n              program_select_sub: program_id\n          },\n          success: function(response) {\n              //alert(\"Yay!\");\n              document.getElementById(\"exam_select\").innerHTML = response;\n              document.getElementById(\"exam_body\").innerHTML=\"\";\n\n          }\n      });\n\n  }\n\n  function add_result() {\n      program_id = document.getElementById(\"program_select\").value;\n      exam_id = document.getElementById(\"exam_select\").value;\n      subject_id = document.getElementById(\"subject_select\").value;\n      if (exam_id == 0) {\n          alert(\"Please Select Exam\");\n          return;\n      }\n\n      $.ajax({\n          type: 'POST',\n          url: 'add_result_action.php',\n          data: {\n              add_result: exam_id,\n              subject_id_add: subject_id,\n              program_id_add: program_id\n\n          },\n          beforeSend: function() {\n              loader(\"exam_body\");\n          },\n          success: function(response) {\n              //alert(\"Yay!\");\n              room=1;\n              document.getElementById(\"exam_body\").innerHTML = response;\n\n          }\n      });\n\n  }\n\n  function show_result(loader_msg) {\n\n      program_id = document.getElementById(\"program_select\").value;\n      exam_id = document.getElementById(\"exam_select\").value;\n      subject_id = document.getElementById(\"subject_select\").value;\n      if (exam_id == 0) {\n          alert(\"Please Select Exam\");\n          return;\n      }\n\n      $.ajax({\n          type: 'POST',\n          url: 'add_result_action.php',\n          data: {\n              show_result: exam_id,\n              subject_id_show: subject_id,\n              program_id_show: program_id\n\n          },\n          beforeSend: function() {\n              if(loader_msg==\"yes\")loader(\"exam_body\");\n          },\n          success: function(response) {\n              //alert(\"Yay!\");\n              document.getElementById(\"exam_body\").innerHTML = response;\n\n          }\n      });\n\n  }\n\n  function update_result(id){\n//alert(\"SAfd\");\n    mcq=\"update_mcq_\"+id;\n    mcq=document.getElementById(mcq).value;\n    written=\"update_written_\"+id;\n    written=document.getElementById(written).value;\n\n    $.ajax({\n          type: 'POST',\n          url: 'add_result_action.php',\n          data: {\n              update_mark: id,\n              update_mcq: mcq,\n              update_written: written\n          },\n\n          beforeSend: function() {\n              loader(\"ranklist_body\");\n          },\n          success: function(response) {\n              //alert(\"Yay!\");\n              close_loader(\"ranklist_body\");\n             show_result(\"no\");\n             hideModal();\n             success('Sucessfully Update Exam Result');\n\n          }\n      });\n\n  }\n\n\n\n\nfunction delete_result(id){\n\n  $.ajax({\n          type: 'POST',\n          url: 'add_result_action.php',\n          data: {\n              delete_mark: id\n\n          },\n          beforeSend: function() {\n              loader(\"ranklist_body\");\n          },\n          success: function(response) {\n              //alert(\"Yay!\");\n\n             show_result();\n             hideModal();\n             success('Sucessfully Delete Exam Result');\n\n          }\n      });\n}\n\n\n\nfunction send_sms(){\n  \n    program_id = document.getElementById(\"program_select\").value;\n    exam_id = document.getElementById(\"exam_select\").value;\n    subject_id = document.getElementById(\"subject_select\").value;\n    if (exam_id == 0) {\n          alert(\"Please Select Exam\");\n          return;\n    }\n\n      $.ajax({\n          type: 'POST',\n          url: 'add_result_action.php',\n          data: {\n              send_sms_exam: exam_id,\n              send_sms_subject: subject_id,\n              send_sms_program: program_id\n          },\n\n          beforeSend: function() {\n              loader(\"exam_body\");\n          },\n\n          success: function(response) {\n              //alert(\"Yay!\");\n              document.getElementById(\"exam_body\").innerHTML = response;\n\n          }\n      });\n\n}\n\n\nfunction send_sms_sending(){\n\n      receive_by=document.getElementById(\"receive_by\").value;\n      exam_id = document.getElementById(\"exam_select\").value;\n      \n      if (exam_id == 0) {\n          alert(\"Please Select Exam\");\n          return;\n      }\n      if(receive_by==0){\n        alert(\"Please Select Receiver\");\n        return;\n      }\n\n      $.ajax({\n          type: 'POST',\n          url: 'add_result_action.php',\n          data: {\n              send_sms_sending: exam_id,\n              send_sms_sending_receive: receive_by\n          },\n\n          beforeSend: function() {\n              loader(\"sms_body\");\n          },\n\n          success: function(response) {\n              //alert(\"Yay!\");\n              success('Sucessfully Send SMS');\n              document.getElementById(\"sms_body\").innerHTML = response;\n\n          }\n      });\n\n}\n\n\nfunction loader(divname){\n  document.getElementById(divname).innerHTML = \"<center><img style='margin-top:35px' src='upload/site_content/processing1.gif' /></center>\";\n}\nfunction close_loader(divname){\n  document.getElementById(divname).innerHTML = \"\";\n}"
  },
  {
    "path": "page/result/add_result.php",
    "content": "\n<style type=\"text/css\">\n  .top-alert { \n  position: fixed;\n  top: 0px;\n  width: 100%;\n  z-index: 100000;\n  left: 0;\n  padding: 50px;\n  display: inline-block;\n  text-align: center;\n}\n.top-alert .alert {\n  width: auto !important;\n  height: 100%;\n  display: inline;\n  position: relative;\n  margin: 0;\n}\n.top-alert .alert .close {\n  position: absolute;\n  top: 11px;\n  right: 10px;\n  color: inherit;\n}\n\n.alert-purple { border-color: #694D9F;background: #694D9F;color: #fff; }\n.alert-info-alt { border-color: #B4E1E4;background: #81c7e1;color: #fff; }\n.alert-danger-alt { border-color: #B63E5A;background: #E26868;color: #fff; }\n.alert-warning-alt { border-color: #F3F3EB;background: #E9CEAC;color: #fff; }\n.alert-success-alt { \n  border-color: #19B99A;\n  background: #20A286;\n  color: #fff; \n  padding: 20px;\n  float: right;\n  border-radius: 15px;\n}\n.glyphicon { margin-right:10px; }\n.alert a {color: gold;}\n\n\n\n  .button_result{\n    background: var(--bg-color);\n    width: 31%;\n    border-width: 0px;\n    border-radius: 3%;\n    color: var(--font-color);\n    padding: 20px;\n    font-weight: bold;\n  }\n\n\n</style>\n\n\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/result/result.css\">\n<script type=\"text/javascript\" src=\"page/result/js/result.js\"></script>\n\n  <div class=\"row\">\n    \n    \n        <div class=\"dropdown\" style=\"padding: 50px\">\n\n          <div class=\"col-md-7\" style=\"margin-right: -25px; margin-left: 25px;\">\n            <select onchange=\"select_program()\" class=\"select\" id=\"select_program\" name=\"options\">\n              <option value=\"0\">--Select Program--</option>\n        <?php  foreach ($program as $key => $value) {\n              $id=$value['id'];\n              $name=$value['name'];\n                 ?>\n                <option value=\"<?php echo \"$id\"; ?>\"><?php echo \"$name\"; ?></option>\n               <?php } ?>\n            </select>\n            <a id=\"batch_div\">\n            <select class=\"dropdown-select-version select\" name=\"options\" id=\"select_subject\" onchange =\"select_subject()\">\n                <option value=\"0\"> --Select Subject-- </option>\n            </select>\n         </a>   \n         <a id=\"student_div\">\n            <select class=\"dropdown-select-version select\" name=\"options\" id=\"select_exam\">\n                <option value=\"0\"> --Select Exam-- </option>\n            </select>\n        </a>\n        </div>\n        <div class=\"col-md-5\">\n \n             <button id=\"btnn\"  onclick=\"add_result()\" class=\"button_result\" style=\"margin-right: 4px;\" title=\"Add Result\" alt=\"Download\"><span style=\"margin-right: 2px;\" class=\"glyphicon glyphicon-plus\"></span>Add Result</button>\n\n             <button id=\"btnn\"  onclick=\"show_result('yes')\" class=\"button_result\" style=\"\" title=\"Show Result\" alt=\"Show Result\"><span style=\"margin-right: 4px;\" class=\"glyphicon glyphicon-th-list\"></span>Show Result</button>\n\n             <button id=\"btnn\"  onclick=\"send_sms_form()\" class=\"button_result\" style=\"\" title=\"Send SMS\" alt=\"Download\"><span style=\"margin-right: 6px;\" class=\"glyphicon glyphicon-envelope\"></span>Send SMS</button>\n          </div>\n        </div>\n  </div>\n\n \n\n\n\n<div id=\"exam_body\">\n\n</div>\n\n"
  },
  {
    "path": "page/result/js/result.js",
    "content": "\nurl=\"result_action.php\";\nmodal_body=\"modal_md_body\";\nmodal=\"md\";\ndiv_body=\"exam_body\";\nvar program_id,subject_id,exam_id;\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\n  var room = 1;\n\n  function add_btn() {\n      room++;\n\n      var objTo = document.getElementById('result')\n      var divtest = document.createElement(\"div\");\n\n      divtest.setAttribute(\"class\", \"form-group removeclass\" + room);\n      var rdiv = 'removeclass' + room;\n      divtest.innerHTML = '<div class=\"form-group removeclass\"><div class=\"row\" style=\"margin-bottom: -13px;\"><div class=\"col-sm-1 nopadding\"></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"student_id_' + room + '\" name=\"student_id_save[]\" required=\"\" placeholder=\"Student ID\"></div></div> <div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"mcq_save_'+ room +'\" step=\"0.01\" value=\"0\" name=\"mcq[]\" placeholder=\"MCQ Mark\"></div></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"number\" class=\"form-control\" id=\"written_save_'+ room +'\" step=\"0.01\" name=\"written[]\" value=\"0\" placeholder=\"Written Mark\"></div></div><div class=\"col-sm-2 nopadding\"><div class=\"input-group-btn\"> <button class=\"btn btn-danger\" type=\"button\" onclick=\"remove_education_fields(' + room + ');\"> <span class=\"glyphicon glyphicon-minus\" aria-hidden=\"true\"></span> </button></div></div></div></div>';\n      objTo.appendChild(divtest)\n  }\n\n\n\n\n\n\n\n  function add_btn_hwritten() {\n      room++;\n\n      var objTo = document.getElementById('result')\n      var divtest = document.createElement(\"div\");\n\n      divtest.setAttribute(\"class\", \"form-group removeclass\" + room);\n      var rdiv = 'removeclass' + room;\n      divtest.innerHTML = '<div class=\"form-group removeclass\"><div class=\"row\" style=\"margin-bottom: -13px;\"><div class=\"col-sm-1 nopadding\"></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"student_id_' + room + '\" name=\"student_id_save[]\" required=\"\" placeholder=\"Student ID\"></div></div> <div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"mcq_save_'+ room +'\" step=\"0.01\" value=\"0\" name=\"mcq[]\" placeholder=\"MCQ Mark\"></div></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"number\" class=\"form-control\" id=\"written_save_'+ room +'\" step=\"0.01\" name=\"written[]\" readonly value=\"0\" placeholder=\"Written Mark\"></div></div><div class=\"col-sm-2 nopadding\"><div class=\"input-group-btn\"> <button class=\"btn btn-danger\" type=\"button\" onclick=\"remove_education_fields(' + room + ');\"> <span class=\"glyphicon glyphicon-minus\" aria-hidden=\"true\"></span> </button></div></div></div></div>';\n      objTo.appendChild(divtest)\n  }\n\n  function add_btn_hmcq() {\n\n     room++;\n\n      var objTo = document.getElementById('result')\n      var divtest = document.createElement(\"div\");\n\n      divtest.setAttribute(\"class\", \"form-group removeclass\" + room);\n      var rdiv = 'removeclass' + room;\n      divtest.innerHTML = '<div class=\"form-group removeclass\"><div class=\"row\" style=\"margin-bottom: -13px;\"><div class=\"col-sm-1 nopadding\"></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"student_id_' + room + '\" name=\"student_id_save[]\" required=\"\" placeholder=\"Student ID\"></div></div> <div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"text\" class=\"form-control\" id=\"mcq_save_'+ room +'\" readonly step=\"0.01\" value=\"0\" name=\"mcq[]\" placeholder=\"MCQ Mark\"></div></div><div class=\"col-sm-3 nopadding\"><div class=\"form-group\"> <input type=\"number\" class=\"form-control\" id=\"written_save_'+ room +'\" step=\"0.01\" name=\"written[]\" value=\"0\" placeholder=\"Written Mark\"></div></div><div class=\"col-sm-2 nopadding\"><div class=\"input-group-btn\"> <button class=\"btn btn-danger\" type=\"button\" onclick=\"remove_education_fields(' + room + ');\"> <span class=\"glyphicon glyphicon-minus\" aria-hidden=\"true\"></span> </button></div></div></div></div>';\n      objTo.appendChild(divtest)\n  }\n\n\n  function remove_education_fields(rid) {\n      $('.removeclass' + rid).remove();\n  }\n\n\nfunction save_student_result(){\n\nvar student_id_info=[];\nvar mcq_save=[];\nvar written_save=[];\n\n  for(i=1; i<=room; i++){\n\n  student_id=\"student_id_\"+i;\n  student_id=get_value(student_id);\n\n if(student_id==\"\" || student_id<10000)continue;\n\n  student_id_info[i]=student_id;\n\n  mcq=\"mcq_save_\"+i;\n  mcq=document.getElementById(mcq).value;\n  mcq_save[i]=mcq;\n\n  written=\"written_save_\"+i;\n  written=document.getElementById(written).value;\n  written_save[i]=written;\n\n}\n\n\n    var exam_id=get_value(\"select_exam\");\n\n    var data1={\n        'exam_id': exam_id,\n        'student_list': student_id_info,\n        'mcq': mcq_save,\n        'written': written_save\n    }\n\n    var data={\n      'save_result': data1\n    }\n    \n    loader(div_body);\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        beforeSend: function() {\n        },\n        success: function(response) {\n            success(\"Result Successfully Save\");\n            show_result();\n        }\n    });\n\n}\n\n\nfunction select_program(){\n    id=get_value(\"select_program\");\n   var data={\n      \"program_select\": id\n   }\n\n   $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        beforeSend: function() {\n        },\n        success: function(response) {\n            set_html(\"select_subject\",response);\n            set_html(\"select_exam\",\"<option value='0'> --Select Exam-- </option>\");\n        }\n    });\n\n}\n\nfunction select_subject(){\n  var program_id=get_value(\"select_program\");\n  var subject_id=get_value(\"select_subject\");\n\n   var data1={\n    \"subject_id\":subject_id,\n    \"program_id\":program_id\n   }\n\n   var data={\n      \"select_subject\": data1\n   }\n\n   $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        beforeSend: function() {\n        },\n        success: function(response) {\n            set_html(\"select_exam\",response);\n        }\n    });\n}\n\n\nfunction add_result(){\n   program_id=get_value(\"select_program\");\n   subject_id=get_value(\"select_subject\");\n   exam_id=get_value(\"select_exam\");\n   check_error=check_select_error(program_id,subject_id,exam_id);\n   if(check_error==1)return;\n   \n\n   var data={\n    \"add_result\": exam_id\n   }\n   loader(div_body);\n   get_ajax(get_action_data(div_body),data);\n}\n\nfunction show_result(){\n    program_id=get_value(\"select_program\");\n    subject_id=get_value(\"select_subject\");\n    exam_id=get_value(\"select_exam\");\n   check_error=check_select_error(program_id,subject_id,exam_id);\n   if(check_error==1)return;\n   \n\n   var data={\n    \"show_result\": exam_id\n   }\n   loader(div_body);\n   get_ajax(get_action_data(div_body),data);\n}\n\nfunction update_result(id){\n    mcq=get_value(\"mcq\");\n    written=get_value(\"written\");\n    mcq=(mcq==\"\")?0:mcq;\n    written=(written==\"\")?0:written;\n    total=parseInt(mcq)+parseInt(written);\n    var data_val={\n        'id':parseInt(id),\n        'mcq':mcq,\n        'written':written,\n        'total':total,\n        'sms': 0\n    }\n    var data={\n      \"update_result\": data_val\n    }\n\n    loader(modal_body);\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        beforeSend: function() {\n        },\n        success: function(response) {\n          success(\"Result Update Success\");\n          modal_open(modal,\"\",\"close\");\n          show_result();\n            \n        }\n    });\n}\n\nfunction delete_result(result_id){\n  \n  var data={\n    'delete_result': result_id\n  }\n  loader(modal_body);\n  $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        beforeSend: function() {\n        },\n        success: function(response) {\n          success(\"Result Delete Success\");\n          modal_open(modal,\"\",\"close\");\n          show_result();\n            \n        }\n    });\n\n}\n\nfunction update_result_form(result_id){\n   \n   var data={\n    \"update_result_form\": result_id\n   }\n   \n   modal_open(modal,\"Update Result\");\n   loader(modal_body);\n   get_ajax(get_action_data(modal_body),data);\n}\n\nfunction delete_result_form(result_id){\n   \n   var data={\n    \"delete_result_form\": result_id\n   }\n   \n   modal_open(modal,\"Delete Result\");\n   loader(modal_body);\n   get_ajax(get_action_data(modal_body),data);\n}\n\nfunction send_sms(exam_id){\n  receiver=get_value(\"receive_by\");\n  if(receiver==-1){\n    alert(\"Please Select Receiver\");\n    return;\n  }\n\n\n  loader(\"sms_body\");\n\n  var data1={\n    'exam_id': exam_id,\n    \"receiver\": receiver\n  }\n\n  var data={\n    \"send_sms\": data1\n  }\n\n  $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        beforeSend: function() {\n        },\n        success: function(response) {\n          set_html(\"sms_body\",response);     \n        }\n    });\n\n}\n\n\nfunction send_sms_form(){\n   \n   program_id=get_value(\"select_program\");\n   subject_id=get_value(\"select_subject\");\n   exam_id=get_value(\"select_exam\");\n   check_error=check_select_error(program_id,subject_id,exam_id);\n   if(check_error==1)return;\n   \n\n   var data={\n    \"send_sms_form\": exam_id\n   }\n   loader(div_body);\n   get_ajax(get_action_data(div_body),data);\n}\n\n\nfunction check_select_error(program_id,subject_id,exam_id){\n error=0;\n if(program_id==\"\" || program_id==0)error=1;\n else if(subject_id==\"\" || subject_id==0)error=2;\n else if(exam_id==\"\" || exam_id==0)error=3;\n\n var error_text=\"Please Select \";\n if(error==1)error_text=error_text+\"Program\";\n else if(error==2)error_text=error_text+\"Subject\";\n else if(error==3)error_text=error_text+\"Exam\";\n\n if(error>0)alert(error_text);\n return (error==0)?0:1;\n}\n\n"
  },
  {
    "path": "page/result/public_result.php",
    "content": "\n<style type=\"text/css\">\n\t.select,\n.download-target {\n  width: 15em;\n}\n.select {\n  position: relative;\n  display: block;\n  height: 3em;\n  line-height: 3;\n  background: #2c3e50;\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 1em 0;\n}\nselect {\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0 0 0 .5em;\n  color: #fff;\n  cursor: pointer;\n}\nselect::-ms-expand {\n  display: none;\n}\n.select::after {\n  content: '\\25BC';\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding: 0 1em;\n  background: #34495e;\n  pointer-events: none;\n}\n.select:hover::after {\n  color: #f39c12;\n}\n.select::after {\n  -webkit-transition: .25s all ease;\n  -o-transition: .25s all ease;\n  transition: .25s all ease;\n}\n\n.input_box{\n\tposition: relative;\n  display: block;\n  height: 3em;\n  color: #ffffff;\n  padding: 10px;\n  font-weight: bold;\n  line-height: 3;\n  background: #2c3e50;\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n}\n</style>\n\n<style type=\"text/css\">\n    \n</style>\n\n<body>\n   \n\n    <div class=\"container\" style=\"background: transparent; max-width: 1140px;\">\n        <div class=\"body-content\" style=\"margin: 0 auto; max-width: 970px;\">\n            <br />\n            <div class=\"customMessage text-center\">\n            </div>\n\n\n\n\n<div class=\"header_box text-center\">\n            Exam Details\n        </div>\n<form action=\"/Result\" id=\"resultCheck\" method=\"post\">   \n\n <div class=\"box_body\">\n        \n        <div class=\"panel-body\">\n            <div class=\"col-md-12 col-sm-12 col-xs-12\">\n                <div class=\"form-horizontal\">\n                    <div class=\"form-group\">\n                        <label class=\"control-label col-md-4 col-sm-4\" for=\"PrnNo\"><b>Program Roll :</b></label>\n                        <div class=\"col-md-4 col-sm-4 col-xs-10\">\n                            <input class=\"form-control text-box single-line\" data-val=\"true\" data-val-required=\"The Program Roll : field is required.\" id=\"id\" maxlength=\"11\" name=\"PrnNo\" onkeyup =\"roll_find()\" type=\"text\" value=\"\" />\n                            \n                            <span class=\"field-validation-valid text-danger\" data-valmsg-for=\"PrnNo\" data-valmsg-replace=\"true\"></span>\n                        </div>\n                        <span class=\"loading\" id=\"loading\" style=\"float: left; margin-right: 5px;\"></span>\n                    </div>\n                    <div class=\"form-group\">\n                        <label class=\"control-label col-md-4 col-sm-4\" for=\"SelectedCourse\"><b>Subject :</b></label>\n                        <div class=\"col-md-4 col-sm-4 col-xs-10\">\n                            <select class=\"form-control\" onchange =\"exam_find()\" id=\"select_subject\" name=\"SelectedCourse\" required=\"required\"><option value=\"\">--Select Subject--</option>\n</select>\n                            <span class=\"field-validation-valid text-danger\" data-valmsg-for=\"SelectedCourse\" data-valmsg-replace=\"true\"></span>\n                        </div>\n                    </div>\n                    <div class=\"form-group\">\n                        <label class=\"control-label col-md-4 col-sm-4\" for=\"ExamId\"><b>Exam :</b></label>\n                        <div class=\"col-md-4 col-sm-4 col-xs-10\">\n                            <select class=\"form-control\" data-val=\"true\" data-val-number=\"The field Exam : must be a number.\" data-val-required=\"The Exam : field is required.\" id=\"select_exam\" onchange =\"result_find()\" name=\"ExamId\" required=\"required\"><option value=\"\">--Select Exam--</option>\n</select>\n                            <span class=\"field-validation-valid text-danger\" data-valmsg-for=\"ExamId\" data-valmsg-replace=\"true\"></span>\n                        </div>\n                    </div>\n                    <div class=\"form-group\">\n                        <div class=\"col-md-offset-4 col-md-4 col-sm-offset-4 col-sm-4 col-xs-10\">\n                            <input type=\"button\" onclick=\"show_result()\" value=\"Submit\" class=\"btn btn-primary\" id=\"displayResult\" />\n                        </div>\n                        \n                        \n                    </div>\n                </div>\n            </div>\n        </div>\n\n    </div>\n</form>\n\n\n\n\n<div id=\"result\">\n\n\n    </div>\n    </div>\n   \n\n\n\n\n</div>"
  },
  {
    "path": "page/result/result.css",
    "content": ".header_box{\n        background-color: var(--bg-color);\n        padding: 10px;\n        font-weight: bold;\n        color: var(--font-color);\n        font-size: 16px;\n    }\n    .box_body{\n        background-color: #EEEEEE;\n        border: 1px solid var(--bg-color);\n\n        padding: 20px;\n    }\n    .head_id{\n        background-color: #414959;\n        padding: 15px;\n        margin-left: 80px;: \n        \n    } \n\n    .box_overview{\n        background-color: #ffffff;\n        padding: 15px;\n        font-weight: bold;\n        font-size: 20px;\n    }\n\n        .select,\n.download-target {\n  width: 15em;\n\n}\n.select {\n  position: relative;\n  display: block;\n  height: 3em;\n \n  width: 32%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\nselect {\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0 0 0 .5em;\n  color: #fff;\n  cursor: pointer;\n}\nselect::-ms-expand {\n  display: none;\n}\n.select::after {\n  content: '\\25BC';\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding: 0 1em;\n  background: #34495e;\n  pointer-events: none;\n}\n.select:hover::after {\n  color: #f39c12;\n}\n.select::after {\n  -webkit-transition: .25s all ease;\n  -o-transition: .25s all ease;\n  transition: .25s all ease;\n}\n\n.img{\n    height: 40px;\n    width: 30px;\n}\n \n"
  },
  {
    "path": "page/result/result.js",
    "content": "function roll_find(){\n\n id=document.getElementById(\"id\").value;\n\n\n\n $.ajax({\n        type: 'POST',\n        url: 'result_action.php',\n        data: {\n            student_id: id\n        },\n        beforeSend: function() {\n          loader(\"loading\");\n        },\n        success: function(response) {\n           //alert(\"Yay!\");\n            document.getElementById(\"select_subject\").innerHTML =response;\n            document.getElementById(\"select_exam\").innerHTML =\"<option value='0'>--Select Exam--</option>\";\n            close_loader(\"loading\");\n        }\n    });\n}\n\n\nfunction exam_find(){\n    sub_id=document.getElementById(\"select_subject\").value;\n    student_id_select=document.getElementById(\"id\").value;\n     $.ajax({\n        type: 'POST',\n        url: 'result_action.php',\n        data: {\n            subject_id_select: sub_id,\n            student_id_select:student_id_select\n        },\n       \n        success: function(response) {\n            //alert(\"Yay!\");\n            document.getElementById(\"select_exam\").innerHTML =response;\n           \n            //id_cheak(id);\n        }\n    });\n\n}\n\n\nfunction show_result(){\n    result_exam=document.getElementById(\"select_exam\").value;\n    student_id_result=document.getElementById(\"id\").value;\n\n if(result_exam==0){\n    alert(\"Please Select Exam\");\n    return;\n }\n\n     $.ajax({\n        type: 'POST',\n        url: 'result_action.php',\n        data: {\n            result_exam: result_exam,\n            student_id_result:student_id_result\n        },\n        beforeSend: function() {\n          loader(\"result\");\n        },\n      \n        success: function(response) {\n            //alert(\"Yay!\");\n            close_loader(\"result\")\n            document.getElementById(\"result\").innerHTML =response;\n            \n            //id_cheak(id);\n        }\n    });\n}\n\nfunction id_cheak(id){\n\n\t$.ajax({\n        type: 'POST',\n        url: 'result_action.php',\n        data: {\n            id_cheak: id\n        },\n        success: function(response) {\n            //alert(\"Yay!\");\n            document.getElementById(\"cheikh\").innerHTML =response;\n        }\n    });\n}\n\n\nfunction loader(divname){\n\tdocument.getElementById(divname).innerHTML = \"<img src='https://public.udvash.com/Content/Image/ajax-loader.gif' />\";\n}\nfunction close_loader(divname){\n\tdocument.getElementById(divname).innerHTML = \"\";\n}"
  },
  {
    "path": "page/result/result_list.php",
    "content": ""
  },
  {
    "path": "page/setting/js/setting.js",
    "content": "url = \"setting_action.php\";\nmodal_body = \"modal_lg_body\";\nmodal = \"lg\";\n\nvar program_id,batch_id,date;\n\n$(document).ready(function (e) {\n  $(\"#update_info\").on('submit',(function(e) {\n    document.getElementById(\"update_btn\").disabled=true;\n    document.getElementById(\"update_btn\").innerHTML=\"<div class='lds-dual-ring'></div>\";\n    e.preventDefault();\n    $.ajax({\n      url: url,\n      type: \"POST\",        \n      data: new FormData(this), \n      contentType: false,  \n      cache: false,             \n      processData:false,      \n      success: function(data){\n          success('Successfully Update Site Info');\n          document.getElementById(\"update_btn\").disabled=false;\n          set_html(\"update_btn\",\"<span class='glyphicon glyphicon-refresh'></span> Update Information\");\n          //document.getElementById(\"res\").innerHTML=data;\n         // window.location.href = '';\n          \n      }\n  });\n})); \n\n});\n\nfunction reset_main_logo(){\n    var data = {\n        \"reset_main_logo\": 1\n    }\n    document.getElementById(\"reset_main_logo\").innerHTML=\"<div class='lds-dual-ring'></div>\";\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           window.location.href = '';  \n        }\n    }); \n\n}\n\nfunction reset_logo(){\n    var data = {\n        \"reset_logo\": 1\n    }\n    document.getElementById(\"reset_logo\").innerHTML=\"<div class='lds-dual-ring'></div>\";\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           window.location.href = '';  \n        }\n    }); \n\n}\n\n"
  },
  {
    "path": "page/setting/setting.php",
    "content": "\n<script type=\"text/javascript\" src=\"page/setting/js/setting.js\"></script>\n\n\n<style type=\"text/css\">\n   \n.box_header,.box{\n  background-color: var(--bg-color);\n  color: #ffffff;\n  padding: 15px;\n  box-shadow:  4px 4px 5px 6px #ccc; \n}\n.box_under_body{\n  padding: 15px;\n  background-color: #dfe6e9;\n}\n.box_under_body,.box_header{\n  border-style: solid;\n  border-width: 1px;\n  border-color: var(--bg-color);\n}\n.upload_body{\n  background-color: var(--bg-color);\n  padding: 15px;\n  color: var(--font-color);\n}\n.box_btn{\n  background-color: var(--bg-color);\n  padding: 15px;\n  color: var(--font-color);\n  border-width: 0px;\n  margin-top: 20px;\n  width: 30%;\n}\n.img_up{\n  height: 80px;\n  width: 75px;\n  border-radius: 5px;\n  margin-top: 15px;\n  border-style: solid;\n  border-color: #ffffff;\n  border-width: 2px;\n}\n.img_up1{\n  height: 100px;\n  width: 100%;\n  border-radius: 5px;\n  margin-top: 15px;\n  border-style: solid;\n  border-color: #ffffff;\n  border-width: 2px;\n}\n</style>\n\n\n<div id=\"output\"></div>\n<div class=\"row\" id=\"add_body\">\n  <div class=\"col-xs-10 col-sm-12\"> \n    <div class=\"boxz\" >\n        <div style=\"\" class=\"box_bodyy\" >\n        <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\"></div>\n        <form action=\"\" id=\"update_info\" method=\"post\" enctype=\"multipart/form-data\">\n  \n\n        <div class=\"row\">\n          <div class=\"col-md-8 border\">\n            <div class=\"box_header\">\n            <div class=\"panel-title\">Genaral Setting</div>                   \n            </div>\n            <div class=\"box_under_body\">   \n            <?php\n\n            //$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n      \n            $site->form_input(\"Institute Full Name\",\"name\",\"name\",\"text\",\"exclamation-sign\",\"$db->site_name\",\"\",\"yes\");\n            $site->form_input(\"Institute Sort Name\",\"sort_name\",\"sort_name\",\"text\",\"exclamation-sign\",\"$db->sort_name\",\"\",\"yes\");\n            $site->form_input(\"Institute Address\",\"address\",\"address\",\"text\",\"exclamation-sign\",\"$db->address\",\"\",\"yes\");\n            $site->form_input(\"Institute Phone\",\"phone\",\"phone\",\"text\",\"exclamation-sign\",\"$db->phone\",\"\",\"yes\");\n            $site->form_input(\"Institute Email\",\"email\",\"email\",\"text\",\"exclamation-sign\",\"$db->email\",\"\",\"yes\");\n            \n            ?>\n\n\n       \n\n          </div>\n        </div>\n       \n\n<!-- Start Academic Information -->\n          <div class=\"col-md-4\">\n            <div class=\"form-group upload_body\" style=\"\">\n                  <label class=\"control-label\" for=\"inputName\"><b>Upload Institute Full Logo</b></label>\n                  <div class=\"input-group\">\n                    <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-camera\"></i></span>\n                    <input type=\"file\" class=\"form-control\" id=\"image\" name=\"main_logo\" accept=\"main_logo/*\"  onchange=\"loadFile(event)\" />\n                    <br/>\n                  </div>\n                  <div id=\"err_product_image\" class=\"error\"></div>\n                  <img id=\"add_thumbnil\" class=\"img_up1\" style=\"\"  src=\"<?php echo $db->main_logo; ?>\" alt=\"image\"/>\n                  <div id=\"reset_main_logo\" onclick=\"reset_main_logo()\" style=\"cursor: pointer;background-color: var(--bg-color); color: var(--font-color)\"><span class='glyphicon glyphicon-refresh'></span></div>\n            </div> \n\n                <script>\n                  var loadFile = function(event) {\n                      var reader = new FileReader();\n                      reader.onload = function(){\n                      var output = document.getElementById('add_thumbnil');\n                      output.src = reader.result;\n                    };\n                    reader.readAsDataURL(event.target.files[0]);\n                  };\n                </script> \n\n\n              <div class=\"form-group upload_body\" style=\"\">\n                  <label class=\"control-label\" for=\"inputName\"><b>Upload Institute Small Logo</b></label>\n                  <div class=\"input-group\">\n                    <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-camera\"></i></span>\n                    <input type=\"file\" class=\"form-control\" id=\"logo\" name=\"logo\" accept=\"logo/*\"  onchange=\"loadFile1(event)\" />\n                    <br/>\n                  </div>\n                  <div id=\"err_product_image\" class=\"error\"></div>\n                  <img id=\"add_thumbnil1\" class=\"img_up\" style=\"\"  src=\"<?php echo $db->logo; ?>\" alt=\"image\"/>\n                  <div id=\"reset_logo\" onclick=\"reset_logo()\" style=\"cursor: pointer;background-color: var(--bg-color); color: var(--font-color)\"><span class='glyphicon glyphicon-refresh'></span></div>\n            </div> \n\n                <script>\n                  var loadFile1 = function(event) {\n                      var reader = new FileReader();\n                      reader.onload = function(){\n                      var output = document.getElementById('add_thumbnil1');\n                      output.src = reader.result;\n                    };\n                    reader.readAsDataURL(event.target.files[0]);\n                  };\n                </script> \n          </div>\n\n                            \n        </div>\n        <center>\n        <button class=\"box_btn\" name=\"insert\" type=\"submit\" id=\"update_btn\" style=\"\"><span class='glyphicon glyphicon-refresh'></span> Update Information</button>\n        </center>\n      </form>\n\n<!-- end body -->\n        </div>\n</div>\n</div>\n\n</div>\n\n<div id=\"res\"></div>\n<style type=\"text/css\">\n  /*animation loder*/\n.lds-dual-ring {\n  display: inline-block;\n  width: 50px;\n  height: 50px;\n}\n.lds-dual-ring:after {\n  content: \" \";\n  display: block;\n  width: 46px;\n  height: 46px;\n  margin: 1px;\n  border-radius: 50%;\n  border: 5px solid #fff;\n  border-color: #fff transparent #fff transparent;\n  animation: lds-dual-ring 1.2s linear infinite;\n}\n@keyframes lds-dual-ring {\n  0% {\n    transform: rotate(0deg);\n  }\n  50% {\n    transform: rotate(300deg);\n  }\n  100% {\n    transform: rotate(600deg);\n  }\n}\n\n .top-alert { \n  position: fixed;\n  top: 0px;\n  width: 100%;\n  z-index: 100000;\n  left: 0;\n  padding: 50px;\n  display: inline-block;\n  text-align: center;\n}\n.top-alert .alert {\n  width: auto !important;\n  height: 100%;\n  display: inline;\n  position: relative;\n  margin: 0;\n}\n.top-alert .alert .close {\n  position: absolute;\n  top: 11px;\n  right: 10px;\n  color: inherit;\n}\n\n.alert-purple { border-color: #694D9F;background: #694D9F;color: #fff; }\n.alert-info-alt { border-color: #B4E1E4;background: #81c7e1;color: #fff; }\n.alert-danger-alt { border-color: #B63E5A;background: #E26868;color: #fff; }\n.alert-warning-alt { border-color: #F3F3EB;background: #E9CEAC;color: #fff; }\n.alert-success-alt { \n  border-color: #19B99A;\n  background: #20A286;\n  color: #fff; \n  padding: 20px;\n  float: right;\n  border-radius: 15px;\n}\n\n.alert a {color: gold;}\n\n</style>"
  },
  {
    "path": "page/sms/js/sms_script.js",
    "content": "\nurl=\"sms_action.php\";\nmodal_body=\"modal_sm_body\";\nmodal=\"sm\";\n\nvar action_data={\n    'url':url,\n    'div':modal_body,\n    'load':0\n};\n \nfunction get_sms_form(type,id=0){\n  if(type==\"insert\"){\n    header=\"Add SMS\";\n    data_key=\"get_sms_form\";\n    val=1;\n  }\n  else if(type==\"update\"){\n    header=\"Update SMS\";\n    data_key=\"update_sms_form\";\n    val=id;\n  }\n  else{\n    header=\"Delete SMS\";\n    data_key=\"delete_sms_form\";\n    val=id;\n  }\n\n  modal_open(modal,header);\n  loader(modal_body);\n\n  var data={\n    [data_key]:val\n  }\n\n  get_ajax(action_data,data);\n}\n\n\nfunction sms_action(type,id=0){\n  \n  delete_type=0;\n  if(type==\"insert\"){\n    data_key=\"insert_sms\";\n    val=0;\n  }\n  else if(type==\"update\"){\n    data_key=\"update_sms\";\n    val=id;\n  }\n  else{\n    data_key=\"delete_sms\";\n    val=id;\n    delete_type=1;\n  }\n\n  if(delete_type==0){\n    var data_val={\n        'id':val,\n        'total_sms':get_value(\"total_sms\"),\n        'start':get_value(\"date1\"),\n        'end':get_value(\"date2\"),\n        'pay':get_value(\"pay\")\n    }\n    error=filter_data(data_val);\n  }\n  else{\n    var data_val={\n      'id':val\n    }\n    error=0;\n  }\n    \n    var data={\n        [data_key]:data_val\n    }\n    \n    if(error==0){\n         action_data['load']=1;\n         loader(modal_body);\n         get_ajax(action_data,data);\n    }\n}\n\n\n\n\nfunction filter_data(data){\n    total_sms=data['total_sms'];\n    total_pay=data['total_pay'];\n    date1=data['start'];\n    date2=data['end'];\n    pay=data['pay'];\n    error=0;\n    if(total_sms==\"\"){\n        alert(\"Total SMS Field Empty\");\n        error=1;\n    }\n    else if(date1==\"\"){\n        alert(\"Buy Date Field Empty\");\n        error=1;\n    }\n    else if(date2==\"\"){\n        alert(\"Expire Date Field Empty\");\n        error=1;\n    }\n    else if(pay==\"\"){\n        alert(\"Total Pay Field Empty\");\n        error=1;\n    }\n    return error;\n}\n"
  },
  {
    "path": "page/sms/pending_sms_list.php",
    "content": "<link rel=\"stylesheet\" type=\"text/css\" href=\"page/index/style.css\">\n\n<?php\n\t$color=array();\n\t$color[0]=\"#2c3e50\";\n\t$color[1]=\"#c0392b\";\n\t$color[2]=\"#8e44ad\";\n\t$color[3]=\"#27ae60\";\n\t$color[4]=\"#16a085\";\n\n\t$pending_sms_list=$sms->get_pending_sms_list();\n\t$total_package=count($pending_sms_list);\n?>\n\n\n\n<script type=\"text/javascript\">\n\tvar package_id=[];\n\tvar package_serial=1;\n\tvar ok=0;\n\tvar total_package=<?php echo \"$total_package\"; ?>;\n\tvar alert_msg=0\n\tfunction process_img(){\n\t\treturn \"<img src='https://www.wire2air.com/images/animated_horizontal_email2sms1.gif' class='img_processing'>\";\n\t}\n\n\tfunction processing_bar(){\n\t\tpercent=(package_serial*100)/total_package;\n\t\tpercent=Math.ceil(percent);\n\t\tset_html(\"percent_msg\",percent+\"%\");\n\t\tpro_bar=document.getElementById('sms_progress_bar');\n\t\tpro_bar.style=\"width:\"+percent+\"%;\";\n\t}\n\n\tfunction success_sms(){\n\t\treturn \"<strong>Sucessfully Send Package \"+package_serial+\"<strong>\";\n\t}\n\n\tfunction processing_sms(){\n\t\tdiv=\"pending_list_\"+package_serial;\n\t\tvalue=document.getElementById(div).innerHTML;\n\t\tset_html(\"send_area\",value);\n\t\tdocument.getElementById(div).style.display=\"none\";\n\t\tstatus_div=\"status_\"+package_serial;\n\t\tset_html(status_div,process_img());\n\n\t\tvar package=package_id[package_serial];\n\t\tvar data = {\n        \t\"send_pending_sms\": package\n    \t}\n\t\t$.ajax({\n        type: 'POST',\n        url: \"sms_action.php\",\n        data:data,\n        success: function(response) {\n        \tconsole.log(response);\n           complate_div=\"complate_list_\"+package_serial;\n\t\t\tset_html(complate_div,value);\n\t\t\tset_html(\"send_area\",success_sms());\n\t\t\tset_html(status_div,\"\");\n\t\t\tprocessing_bar();\n\t\t\tif(package_serial>=total_package){\n\t\t\t\tok=0;\n\t\t        package_serial++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpackage_serial++;\n\t\t\tprocessing_sms();\n        }\n    \t});  \n\n\n\t}\n\n\tfunction send_permission(){\n\n\t\tok=1;\n\t\tif(total_package==0){\n\t\t\talert(\"You Have No Pending Package\");\n\t\t\treturn;\n\t\t}\n\t\tdocument.getElementById(\"btn_area\").innerHTML=\"\";\n\t\tprocessing_sms();\n\t}\n\tsetInterval(function(){ \n\t\tif(ok==0 && total_package!=0 && alert_msg==0 && package_serial>total_package){\n\t\t\talert(\"All SMS Sucessfully Send\");\n\t\t\talert_msg=1;\n\t\t}\n\t}, 1500);\n</script>\n\n\n\n<div class=\"row\">\n\t<div class=\"col-md-5\">\n\t\t<div id=\"btn_area\">\n\t\t\t<center><button class=\"button\" onclick=\"send_permission()\">Start Sending SMS</button></center>\n\t\t</div>\n\t\t<div class=\"dashboard_box\">\n            <div class=\"box_header\">Complete Percent</div>\n            <div class=\"box_body\" id=\"processing_area\">\n            \t<center><h1 id=\"percent_msg\">0%</h1></center>\n            \t<div class=\"progress\">\n  \t\t\t\t\t<div id=\"sms_progress_bar\" class=\"progress-bar progress-bar-success progress_color\" role=\"progressbar\" aria-valuenow=\"40\"\n  \t\t\t\t\taria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:0%\"></div>\n\t\t\t\t</div>\n\n            </div>\n        </div>\n\t\t<div class=\"dashboard_box\">\n            <div class=\"box_header\">Complete Mesasge</div>\n            <div class=\"box_body\" id=\"complete_area\">\n            \t<?php for($i=$total_package; $i>=1; $i--){\n            \t\techo \"<div id='complate_list_$i'></div>\";\n            \t}\n            \t?>\n            </div>\n        </div>\n\t\t\n\t</div>\n\t<div class=\"col-md-7\">\n\t\t<div class=\"dashboard_box\">\n            <div class=\"box_header\">Sending Mesasge</div>\n            <div class=\"box_body\" id=\"send_area\">\n            \t\n            </div>\n        </div>\n\t\t<div class=\"dashboard_box\">\n                <div class=\"box_header\">Pending SMS List</div>\n                <div class=\"box_body\">\n                \t <div class=\"pull-rightt\" style=\"margin-top: -10px;\"></div>\n                \n                \t<div class=\"pending_msg_list\">\n                \t<?php \n                \t$i=0;\n                \tforeach ($pending_sms_list as $key => $value) {\n          \t\t\t\t$i++;\n          \t\t\t\t$id=$value['id'];\n          \t\t\t?>\n          \t\t\t<script type=\"text/javascript\">\n          \t\t\t\tpackage_id[<?php echo $i; ?>]=<?php echo \"$id\"; ?>\n          \t\t\t</script>\n          \t\t\t<?php\t\n          \t\t\t\t$number_list=$value['number_list'];\n          \t\t\t\t$message=$value['message'];\n                \t\t\n                \t\t$div_color=$color[$i%5];\n                \t\t?>\n                \t\t<div  id=\"<?php echo \"pending_list_$i\" ?>\">\t\n                \t\t<div class=\"msg_body\">\n                \t\t\t<span style=\"background-color: <?php echo $div_color; ?>\" class=\"serial\"><?php echo \"$i\"; ?></span>\n                \t\t\t<span class=\"number_list\">\n                \t\t\t\t<textarea class=\"number_list_text\"><?php echo \"$number_list\"; ?></textarea>\n                \t\t\t\t<textarea class=\"number_list_text\"><?php echo \"$message\"; ?></textarea>\n                \t\t\t</span>\n                \t\t\t<span class=\"status\" id=\"<?php echo \"status_$i\" ?>\">\n                \t\t\t\t\n                \t\t\t</span>\n                \t\t</div>\n                \t\t</div>\n                \t<?php } ?>\n                \t</div>\n                </div>\n            </div>\n\t</div>\n</div>\n\n<style type=\"text/css\">\n\t.msg_body{\n\t\tbackground-color: #ffffff;\n\t\tborder: 1px solid #D1D5DA;\n\t\tborder-radius: 10px;\n\t\tpadding: 10px;\n\t\tmargin-bottom: 4px;\n\t\toverflow: hidden;\n\t}\n\t.number_list_text{\n\t\twidth: 180px;\n\t\theight: 40px;\n\t}\n\t.serial{\n\t\tpadding: 10px;\n\t\tfont-size: 20px;\n\t\tfont-weight: bold;\n\t\tmargin-left: -5px;\n\t\tborder-radius: 10px 0px 10px 0px;\n\t\tcolor: #ffffff;\n\t}\n\t.processing{\n\t\tpadding: 0px;\n\t\tmargin-left: 40px;\n\t}\n\t.img_processing{\n\t\theight: 50px;\n\t\twidth: 160px;\n\t}\n\t.progress_color{\n\t\tbackground-color: var(--bg-color);\n\t}\n</style>\n"
  },
  {
    "path": "page/sms/sms_dashboard.php",
    "content": "\n\n<script type=\"text/javascript\" src=\"page/sms/js/sms_script.js\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/index/style.css\">\n\n<?php\n\n\n$info=$sms->sms_balance();\n\n?>\n\n <div class=\"row\" style=\"\">\n\n                    <div class=\"col-lg-3 col-sm-6\">\n                        <div class=\"circle-tile\">\n                            <a href=\"#\">\n                                <div class=\"circle-tile-heading dark-blue\">\n                                    <i class=\"fa fa-users fa-fw fa-3x\"></i>\n                                </div>\n                            </a>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <div class=\"circle-tile-description text-faded\">\n                                    Total SMS\n                                </div>\n                                <div class=\"circle-tile-number text-faded\">\n                                    <?php echo $info['total_sms']; ?>\n                                    <span id=\"sparklineA\"></span>\n                                </div>\n                                <a href=\"#\" class=\"circle-tile-footer\">More Info <i class=\"fa fa-chevron-circle-right\"></i></a>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3 col-sm-6\">\n                        <div class=\"circle-tile\">\n                            <a href=\"#\">\n                                <div class=\"circle-tile-heading dark-blue\">\n                                    <i class=\"fa fa-money fa-fw fa-3x\"></i>\n                                </div>\n                            </a>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <div class=\"circle-tile-description text-faded\">\n                                    Total Send\n                                </div>\n                                <div class=\"circle-tile-number text-faded\">\n                                    <?php echo $info['total_send']; ?>\n                                </div>\n                                <a href=\"#\" class=\"circle-tile-footer\">More Info <i class=\"fa fa-chevron-circle-right\"></i></a>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3 col-sm-6\">\n                        <div class=\"circle-tile\">\n                            <a href=\"#\">\n                                <div class=\"circle-tile-heading dark-blue\">\n                                    <i class=\"fa fa-bell fa-fw fa-3x\"></i>\n                                </div>\n                            </a>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <div class=\"circle-tile-description text-faded\">\n                                    Total Expire\n                                </div>\n                                <div class=\"circle-tile-number text-faded\">\n                                    <?php echo $info['ex']; ?>\n                                </div>\n                                <a href=\"#\" class=\"circle-tile-footer\">More Info <i class=\"fa fa-chevron-circle-right\"></i></a>\n                            </div>\n                        </div>\n                    </div> \n                    <div class=\"col-lg-3 col-sm-6\">\n                        <div class=\"circle-tile\">\n                            <a href=\"#\">\n                                <div class=\"circle-tile-heading dark-blue\">\n                                    <i class=\"fa fa-bell fa-fw fa-3x\"></i>\n                                </div>\n                            </a>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <div class=\"circle-tile-description text-faded\">\n                                    Total Balance\n                                </div>\n                                <div class=\"circle-tile-number text-faded\">\n                                    <?php echo $info['balance']; ?>\n                                </div>\n                                <a href=\"#\" class=\"circle-tile-footer\">More Info <i class=\"fa fa-chevron-circle-right\"></i></a>\n                            </div>\n                        </div>\n                    </div>\n        </div>\n\n\n    <div class=\"row\" style=\"margin-top: -35px;\">\n    \t<script type=\"text/javascript\">\n    \t\t$(document).ready(function() {\n   \t\t\t\t $('table.display').DataTable();\n\t\t\t} );\n    \t</script>\n    \t\n \n        <div class=\"col-md-6\">\n            <div class=\"dashboard_box\">\n                <div class=\"box_header\">Buy SMS List</div>\n                <div class=\"box_body\">\n                \t <div class=\"pull-rightt\" style=\"margin-top: -20px;\">\n\t\t\t\t\t\t<center>\n                            <button class=\"button\" onclick=\"get_sms_form('insert')\">+ Add SMS</button></center>\n\t\t\t\t\t</div>\n                \n                \t<table id=\"\" class=\"display\" width=\"100%\">\n                \t\t<thead style=\"width: 100%;\">\n                \t\t<tr>\n                \t\t\t<td class=\"td_list1\"></td>\n                \t\t\t<td class=\"td_list1\">#</td>\n                \t\t\t<td class=\"td_list1\">Total Buy SMS</td>\n                \t\t\t<td class=\"td_list1\">Total Use</td>\n                \t\t\t<td class=\"td_list1\">Buy Date</td>\n                \t\t\t<td class=\"td_list1\">Expire Date</td>\n                \t\t\t<td class=\"td_list1\">Add By</td>\n                            <td class=\"td_list1\">Status</td>\n                \t\t\t<td class=\"td_list1\">Action</td>\n                \t\t</tr>\n                \t</thead> \n                \t<tbody>\n                \t\t<?php \n\n\t\t\t\t\t\t$info=$sms->get_buy_sms_list();\n                \t\tforeach ($info as $key => $value) {\n                            $id=$value['id'];\n                \t\t\t$end=$value['end'];\n                \t\t\t$now=strtotime($db->date());\n                \t\t\t$now=date(\"Y-m-d\", $now);\n                \t\t\t$status=\"<font color='red'>Expired</font>\";\n                \t\t\tif($end>=$now)$status=\"<font color='green'>Active</font>\";\n                \t\t ?>\n \n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"td_list2\"></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['id']; ?></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['total_sms']; ?></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['total_send']; ?></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['start']; ?></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['end']; ?></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['user']; ?></td>\n                            <td class=\"td_list2\"><?php echo $status; ?></td>\n                \t\t\t<td class=\"td_list2\">\n                                <button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Update\" data-title=\"Update\" onclick=\"get_sms_form('update',<?php echo \"$id\"; ?>)\" >\n                                <span class=\"glyphicon glyphicon-pencil\"></span>\n                                </button>\n                                 <button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" onclick=\"get_sms_form('delete',<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button>         \n                            </td>\n                \t\t</tr>\n                \t\t<?php } ?>\n                \t\t</tbody>\n                \t</table>\n                </div>\n            </div>\n        </div>\n        <div class=\"col-md-6\">\n            <div class=\"dashboard_box\">\n                <div class=\"box_header\">Send SMS List</div>\n                <div class=\"box_body\">\n                \t<table id=\"\" class=\"display\" width=\"100%\">\n                \t\t<thead style=\"width: 100%;\">\n                \t\t<tr>\n                \t\t\t<td class=\"td_list1\"></td>\n                \t\t\t<td class=\"td_list1\">#</td>\n                \t\t\t<td class=\"td_list1\">Phone Number</td>\n                \t\t\t<td class=\"td_list1\">Message</td>\n                \t\t\t<td class=\"td_list1\">Time</td>\n                \t\t\t<td class=\"td_list1\">Sender</td>\n                \t\t</tr>\n                \t</thead>\n                \t<tbody>\n                \t\t<?php \n\n                        \n                \t\t$info=$sms->get_send_sms_list();\n                        $c=0;\n                \t\tforeach ($info as $key => $value) {\n                          $date=$value['date'];\n                          $date=$site->timeAgo($date);\n                \t\t $c++;\n                         if($c==500)break;\n                         ?>\n \n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"td_list2\"></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['id']; ?></td>\n                \t\t\t<td class=\"td_list2\"><textarea><?php echo $value['number']; ?></textarea></td class=\"td_list1\">\n                \t\t\t<td class=\"td_list2\">\n                \t\t\t\t<textarea><?php echo $value['message']; ?></textarea>\n                \t\t\t\t</td>\n                \t\t\t<td class=\"td_list2\"><?php echo $date; ?></td>\n                \t\t\t<td class=\"td_list2\"><?php echo $value['user']; ?></td class=\"td_list1\">\n                \t\t</tr>\n                \t\t<?php } ?>\n                \t\t</tbody>\n                \t</table>\n                </div>\n            </div>\n        </div>\n        \n\n    </div>    \n\n<style type=\"text/css\">\n    thead{\n    \tbackground-color: #EFF0F2;\n    \tborder-width: 0px;\n    }\n\t.td_list1{\n\t\tbackground-color: #EFF0F2;\n\t\tcolor: #000000;\n\t\tpadding: 10px;\n\t\tfont-weight: bold;\n\t\tborder: 1px solid #C6C9D1;\n\t\ttext-align: center;\n\t}\n\t.td_list2{\n\t\tbackground-color: #ffffff;\n\t\tcolor: #000000;\n\t\tpadding: 8px;\n\t\tborder: 1px solid #C6C9D1;\n\t\ttext-align: center;\n\t}\n</style>"
  },
  {
    "path": "page/sms/sms_google_graph_api.php",
    "content": "\n<?php \n\n$bg_color=\"#000000\";\n\n?>\n     <script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>\n     <script type=\"text/javascript\">\n    google.charts.load(\"current\", {packages:['corechart']});\n    google.charts.setOnLoadCallback(drawChart);\n    function drawChart() {\n      var data = google.visualization.arrayToDataTable([\n        [\"Submission Date\", \"Total Submission\", { role: \"style\" } ],\n        [\"08 Dec\", 40, \"#00b894\"],\n        [\"07 Dec\", 10, \"#0984e3\"],\n        [\"06 Dec\", 0, \"#6c5ce7\"],\n        [\"05 Dec\", 0, \"#d63031\"],\n        [\"04 Dec\", 0, \"#e84393\"],\n        [\"03 Dec\",0 , \"#e17055\"],\n        [\"02 Dec\", 330, \"#ffaf40\"],\n        [\"01 Dec\", 0, \"#0fbcf9\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"],\n        [\"30 Nov\", 0, \"#f53b57\"]\n      ]);\n\n      var view = new google.visualization.DataView(data);\n      view.setColumns([0, 1,\n                       { calc: \"stringify\",\n                         sourceColumn: 1,\n                         type: \"string\",\n                         role: \"annotation\" },\n                       2]);\n\n      var options = {\n        chartArea:{left:20,top:15,bottom:30,right:5,width:\"100%\",height:\"90%\"},\n        'backgroundColor': {\n                'fill': '#ffffff',\n                'opacity': 100\n            },     \n        bar: {groupWidth: \"95%\"},\n        legend: { position: \"none\" },\n      };\n      var chart = new google.visualization.ColumnChart(document.getElementById(\"columnchart_values\"));\n      chart.draw(view, options);\n  }\n  </script>\n\n<script type=\"text/javascript\">\n       google.charts.load('current', {'packages':['line', 'corechart']});\n      google.charts.setOnLoadCallback(drawChart);\n\n    function drawChart() {\n\n      var button = document.getElementById('change-chart');\n      var chartDiv = document.getElementById('chart_div');\n\n      var data = new google.visualization.DataTable();\n      data.addColumn('date', 'Month');\n      data.addColumn('number', \"Average Temperature\");\n\n      data.addRows([\n        [new Date(2014, 0),  0],\n        [new Date(2014, 1),   .4],\n        [new Date(2014, 2),   .5],\n        [new Date(2014, 3),  2.9],\n        [new Date(2014, 4),  6.3],\n        [new Date(2014, 5),    9],\n        [new Date(2014, 6), 10.6],\n        [new Date(2014, 7), 10.3],\n        [new Date(2014, 8),  7.4],\n        [new Date(2014, 9),  4.4],\n        [new Date(2014, 10), 1.1],\n        [new Date(2014, 11), .2]\n      ]);\n\n      var materialOptions = {\n        chart: {\n          //title: 'Average Temperatures and Daylight in Iceland Throughout the Year'\n        },\n        width: '100%',\n        height: 250,\n        series: {\n          // Gives each series an axis name that matches the Y-axis below.\n          0: {axis: 'Temps'},\n          1: {axis: 'Daylight'}\n        },\n        axes: {\n          // Adds labels to each axis; they don't have to match the axis names.\n          y: {\n            Temps: {label: 'Temps (Celsius)'},\n            Daylight: {label: 'Daylight'}\n          }\n        }\n        'backgroundColor': {\n                'fill': '#ffffff',\n                'opacity': 100\n            },     \n        bar: {groupWidth: \"95%\"},\n\n\n      };\n\n     \n\n      function drawMaterialChart() {\n        var materialChart = new google.charts.Line(chartDiv);\n        materialChart.draw(data, materialOptions);\n        button.innerText = 'Change to Classic';\n        button.onclick = drawClassicChart;\n      }\n\n\n      drawMaterialChart();\n\n    }\n  </script>"
  },
  {
    "path": "page/student/aaa.js",
    "content": ""
  },
  {
    "path": "page/student/add_student/add_student.php",
    "content": "\n<script src=\"page/student/js_script/student_action.js\" type=\"text/javascript\"></script>\n\n<style type=\"text/css\">\n   \n.box_header,.box{\n  background-color: var(--bg-color);\n  color: #ffffff;\n  padding: 15px;\n  box-shadow:  4px 4px 5px 6px #ccc; \n}\n.box_under_body{\n  padding: 15px;\n  background-color: #dfe6e9;\n}\n.box_under_body,.box_header{\n  border-style: solid;\n  border-width: 1px;\n  border-color: var(--bg-color);\n}\n.upload_body{\n  background-color: var(--bg-color);\n  padding: 15px;\n  color: var(--font-color);\n}\n.box_btn{\n  background-color: var(--bg-color);\n  padding: 15px;\n  color: var(--font-color);\n  border-width: 0px;\n  margin-top: 20px;\n  width: 30%;\n}\n.img_up{\n  height: 140px;\n  width: 135px;\n  margin-top: 15px;\n  border-style: solid;\n  border-color: #ffffff;\n  border-width: 2px;\n}\n</style>\n\n\n<div id=\"output\"></div>\n<div class=\"row\" id=\"add_body\">\n  <div class=\"col-xs-10 col-sm-12\"> \n    <div class=\"boxz\" >\n        <div style=\"\" class=\"box_bodyy\" >\n        <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\"></div>\n        <form action=\"\" id=\"add_student\" method=\"post\" enctype=\"multipart/form-data\">\n  \n\n        <div class=\"row\">\n          <div class=\"col-md-6 border\">\n            <div class=\"box_header\">\n            <div class=\"panel-title\">Personal Information</div>                   \n            </div>\n            <div class=\"box_under_body\">  \n            <?php\n\n            //$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n      \n            $site->form_input(\"Student Full Name\",\"insert_name\",\"name\");\n            $site->form_input(\"Student Nick Name\",\"nick\",\"nick\");\n            $site->form_input(\"Father Name\",\"father_name\",\"father_name\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n            $site->form_input(\"Mother Name\",\"mother_name\",\"mother_name\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n            $site->form_input(\"Sudent mobile\",\"student_mobile\",\"student_mobile\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n            $site->form_input(\"Father mobile\",\"father_mobile\",\"number\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n            $site->form_input(\"Mother mobile\",\"mother_mobile\",\"mobile\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n            $site->form_input(\"Email\",\"email\",\"mobile\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n            $site->form_input(\"Birthday\",\"birthday\",\"mobile\",\"date\",\"exclamation-sign\",\"\",\"\",\"no\");\n            ?>\n\n\n            <div class='form-group'>\n              <label class='control-label' for='inputName'><b>Religion</b></label>\n              <div class='input-group'>\n                <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n                <select class='form-control'  name='religion' id='brand_add' class='cs-select cs-skin-border' required=\"\">\n                  <option value=\"Muslim\">Muslim</option>\n                  <option value=\"Hindu\">Hindu</option>\n                  <option value=\"Buddo\">Buddo</option>\n                  <option value=\"Cristan\">Cristan</option>\n                </select>\n              </div>\n            </div>\n\n            <div class='form-group'>\n              <label class='control-label' for='inputName'><b>Gender</b></label>\n              <div class='input-group'>\n                <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n                <select class='form-control'  name='gender' id='brand_add' class='cs-select cs-skin-border' required=\"\">\n                  <option value=\"Male\">Male</option>\n                  <option value=\"Female\">Female</option>\n                </select>\n              </div>\n            </div>\n\n\n            <?php\n              $site->form_input(\"Address\",\"address\",\"address\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n            ?> \n\n          </div>\n        </div>\n       \n\n<!-- Start Academic Information -->\n          <div class=\"col-md-6\">\n            <div class=\"form-group upload_body\" style=\"\">\n                  <label class=\"control-label\" for=\"inputName\"><b>Upload Student Photo</b></label>\n                  <div class=\"input-group\">\n                    <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-camera\"></i></span>\n                    <input type=\"file\" class=\"form-control\" id=\"image\" name=\"image\" accept=\"image/*\"  onchange=\"loadFile(event)\" />\n                    <br/>\n                  </div>\n                  <div id=\"err_product_image\" class=\"error\"></div>\n                  <img id=\"add_thumbnil\" class=\"img_up\" style=\"\"  src=\"<?php echo \"upload/student_photo/avatar.png\";?>\" alt=\"image\"/>\n            </div> \n\n                <script>\n                  var loadFile = function(event) {\n                      var reader = new FileReader();\n                      reader.onload = function(){\n                      var output = document.getElementById('add_thumbnil');\n                      output.src = reader.result;\n                    };\n                    reader.readAsDataURL(event.target.files[0]);\n                  };\n                </script> \n            <div class=\"box_header\">\n                <div class=\"panel-title\">Academic Information</div>             \n            </div>     \n            <div class=\"box_under_body\">\n              <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\">\n              </div>       \n              <?php \n\n                $site->form_input(\"School Name\",\"school_name\",\"school_name\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n                $site->form_input(\"SSC Rool Number\",\"ssc_rool\",\"ssc_rool\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n                $site->form_input(\"SSC Registration Number\",\"ssc_reg\",\"ssc_reg\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n                $site->form_input(\"SSC Board Name\",\"ssc_board\",\"ssc_board\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n\n              ?>\n\n\n              <div class='form-group'>\n                <label class='control-label' for='inputName'><b>SSC Result</b></label>\n                <div class='input-group'>\n                  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span>     \n                  <input class='form-control' data-error='' id='ssc_result' value='' step=\"0.01\" placeholder='Enter SSC Result'  type='number' name='ssc_result'  />\n                </div>  \n                <div id='err_product_date' class='error'></div>\n              </div>\n            </div>  \n          </div>\n\n                            \n        </div>\n        <center>\n        <button class=\"box_btn\" name=\"insert\" type=\"submit\" id=\"insert_btn\" style=\"\"><span class=\"glyphicon glyphicon-floppy-save\"></span>Save Information</button>\n        </center>\n      </form>\n\n<!-- end body -->\n        </div>\n</div>\n</div>\n\n</div>\n"
  },
  {
    "path": "page/student/add_student.php",
    "content": "<?php include \"add_student/add_student.php\"; ?>"
  },
  {
    "path": "page/student/index.php",
    "content": "<script language=\"JavaScript\" src=\"https://code.jquery.com/jquery-1.11.1.min.js\" type=\"text/javascript\"></script>\n<script language=\"JavaScript\" src=\"https://cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js\" type=\"text/javascript\"></script>\n<script language=\"JavaScript\" src=\"https://cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.js\" type=\"text/javascript\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css\">\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.css\">\n<body>\n<div class=\"container\">\n\t<div class=\"row\">\n\t\t<h2 class=\"text-center\">Bootstrap styling for Datatable</h2>\n\t</div>\n    \n        <div class=\"row\">\n\t\t\n            <div class=\"col-md-12\">\n            \n            \n<table id=\"datatable\" class=\"table table-striped table-bordered\" cellspacing=\"0\" width=\"100%\">\n    \t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>Name</th>\n\t\t\t\t\t\t\t<th>Position</th>\n\t\t\t\t\t\t\t<th>Office</th>\n\t\t\t\t\t\t\t<th>Age</th>\n\t\t\t\t\t\t\t<th>Start date</th>\n\t\t\t\t\t\t\t<th>Salary</th>\n                                <th>Edit</th>\n                                 <th>Delete</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\n\t\t\t\t\t<tfoot>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>Name</th>\n\t\t\t\t\t\t\t<th>Position</th>\n\t\t\t\t\t\t\t<th>Office</th>\n\t\t\t\t\t\t\t<th>Age</th>\n\t\t\t\t\t\t\t<th>Start date</th>\n\t\t\t\t\t\t\t<th>Salary</th>\n                             <th>Edit</th>\n                                 <th>Delete</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tfoot>\n\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n                            <tr>\n\t\t\t\t\t\t\t<td>Tiger Nixon</td>\n\t\t\t\t\t\t\t<td>System Architect</td>\n\t\t\t\t\t\t\t<td>Edinburgh</td>\n\t\t\t\t\t\t\t<td>61</td>\n\t\t\t\t\t\t\t<td>2011/04/25</td>\n\t\t\t\t\t\t\t<td>$320,800</td>\n                            <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></td>\n    <td><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\n\t\n\t</div>\n\t</div>\n</div>\n\n<div class=\"modal fade\" id=\"edit\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"edit\" aria-hidden=\"true\">\n      <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n          <div class=\"modal-header\">\n        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n        <h4 class=\"modal-title custom_align\" id=\"Heading\">Edit Your Detail</h4>\n      </div>\n          <div class=\"modal-body\">\n          <div class=\"form-group\">\n        <input class=\"form-control \" type=\"text\" placeholder=\"Tiger Nixon\">\n        </div>\n        <div class=\"form-group\">\n        \n        <input class=\"form-control \" type=\"text\" placeholder=\"System Architect\">\n        </div>\n        <div class=\"form-group\">\n        \n        \n      <input class=\"form-control \" type=\"text\" placeholder=\"Edinburgh\">\n        \n        </div>\n      </div>\n          <div class=\"modal-footer \">\n        <button type=\"button\" class=\"btn btn-warning btn-lg\" style=\"width: 100%;\"><span class=\"glyphicon glyphicon-ok-sign\"></span> Update</button>\n      </div>\n        </div>\n    <!-- /.modal-content --> \n  </div>\n      <!-- /.modal-dialog --> \n    </div>\n    \n    \n    \n    <div class=\"modal fade\" id=\"delete\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"edit\" aria-hidden=\"true\">\n      <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n          <div class=\"modal-header\">\n        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n        <h4 class=\"modal-title custom_align\" id=\"Heading\">Delete this entry</h4>\n      </div>\n          <div class=\"modal-body\">\n       \n       <div class=\"alert alert-danger\"><span class=\"glyphicon glyphicon-warning-sign\"></span> Are you sure you want to delete this Record?</div>\n       \n      </div>\n        <div class=\"modal-footer \">\n        <button type=\"button\" class=\"btn btn-success\" ><span class=\"glyphicon glyphicon-ok-sign\"></span> Yes</button>\n        <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\"><span class=\"glyphicon glyphicon-remove\"></span> No</button>\n      </div>\n        </div>\n    <!-- /.modal-content --> \n  </div>\n      <!-- /.modal-dialog --> \n    </div>\n    </body>"
  },
  {
    "path": "page/student/js_script/student_action.js",
    "content": "$(document).ready(function (e) {\n  $(\"#add_student\").on('submit',(function(e) {\n    \n    e.preventDefault();\n    $.ajax({\n      url: \"student_action.php\",\n      type: \"POST\",        \n      data: new FormData(this), \n      contentType: false,  \n      cache: false,             \n      processData:false,      \n      beforeSend: function() {\n      \tdocument.getElementById('add_body').style.display=\"none\";\n      \tloader(\"output\");\n      }, \n      success: function(data){\n      \tdocument.getElementById(\"add_student\").reset();\n      \tvar data = JSON.parse(data);\n      \twindow.location.href = 'student_profile.php?get_id='+data.id;     \n    }\n  });\n})); \n\n\n\nfunction loader(divname){\n  document.getElementById(divname).innerHTML = \"<center><img style='margin-top:35px' src='upload/site_content/processing1.gif' /></center>\";\n}\n\n});\n\n"
  },
  {
    "path": "page/student/profile.css",
    "content": ".profile_box_header{\n\tbackground-color: #000000;\n\tcolor: #ffffff;\n\tpadding: 15px;\n\tfont-weight: bold;\n}\n \n\n/****** Searchable container */\n\n.title{\n margin-left:20px\n}\n\n \n\ntable{\n  margin-top: 10px;\n}\n  table, th, td {\n    border: 2px solid #D7DDE2;\n    background-color: #ffffff;\n    border-collapse: collapse;\n    padding: 5px;\n    }\n    th{\n      font-size: 15px;\n    }\n\n\n.searchable-container{\n    margin-top:40px;\n}\n\n.glyphicon-lg{\n    font-size:4em\n}\n.info-block{\n    border-right:5px solid #E6E6E6;margin-bottom:25px\n}\n.info-block .square-box {\n    width:120px;\n    min-height:120px;\n    margin-right:22px;\n    text-align:center!important;\n    background-color:#676767;\n    padding:20px 0\n}\n.info-block:hover .info-block.block-info {\n    border-color:#20819e\n}\n\n.info-block.block-info .square-box {\n    background-color:#5bc0de;\n    color:#FFF\n}\n\n\n\n\n\n\n/*   */\n\n\n\n.btn-compose-email {\n    padding: 10px 0px;\n    margin-bottom: 20px;\n}\n\n.btn-danger {\n    background-color: #E9573F;\n    border-color: #E9573F;\n    color: white;\n}\n\n.panel-teal .panel-heading {\n    background-color: #37BC9B;\n    border: 1px solid #36b898;\n    color: white;\n}\n\n.panel .panel-heading {\n    padding: 5px;\n    border-top-right-radius: 3px;\n    border-top-left-radius: 3px;\n    border-bottom: 1px solid #DDD;\n    -moz-border-radius: 0px;\n    -webkit-border-radius: 0px;\n    border-radius: 0px;\n}\n\n.panel .panel-heading .panel-title {\n    padding: 10px;\n    font-size: 17px;\n}\n\nform .form-group {\n    \n    margin-left: 0px !important;\n    margin-right: 0px !important;\n}\n\n.inner-all {\n    padding: 10px;\n}\n\n/* ========================================================================\n * MAIL\n * ======================================================================== */\n.nav-email > li:first-child + li:active {\n  margin-top: 0px;\n}\n.nav-email > li + li {\n  margin-top: 1px;\n}\n.nav-email li {\n  background-color: white;\n}\n.nav-email li.active {\n  background-color: transparent;\n}\n.nav-email li.active .label {\n  background-color: white;\n  color: black;\n}\n.nav-email li a {\n  color: black;\n  -moz-border-radius: 0px;\n  -webkit-border-radius: 0px;\n  border-radius: 0px;\n}\n.nav-email li a:hover {\n  background-color: #EEEEEE;\n}\n.nav-email li a i {\n  margin-right: 5px;\n}\n.nav-email li a .label {\n  margin-top: -1px;\n}\n\n.table-email tr:first-child td {\n  border-top: none;\n}\n.table-email tr td {\n  vertical-align: top !important;\n}\n.table-email tr td:first-child, .table-email tr td:nth-child(2) {\n  text-align: center;\n  width: 35px;\n}\n.table-email tr.unread, .table-email tr.selected {\n  background-color: #EEEEEE;\n}\n.table-email .media {\n  margin: 0px;\n  padding: 0px;\n  position: relative;\n}\n.table-email .media h4 {\n  margin: 0px;\n  font-size: 14px;\n  line-height: normal;\n}\n.table-email .media-object {\n  width: 35px;\n  -moz-border-radius: 2px;\n  -webkit-border-radius: 2px;\n  border-radius: 2px;\n}\n.table-email .media-meta, .table-email .media-attach {\n  font-size: 11px;\n  color: #999;\n  position: absolute;\n  right: 10px;\n}\n.table-email .media-meta {\n  top: 0px;\n}\n.table-email .media-attach {\n  bottom: 0px;\n}\n.table-email .media-attach i {\n  margin-right: 10px;\n}\n.table-email .media-attach i:last-child {\n  margin-right: 0px;\n}\n.table-email .email-summary {\n  margin: 0px 110px 0px 0px;\n}\n.table-email .email-summary strong {\n  color: #333;\n}\n.table-email .email-summary span {\n  line-height: 1;\n}\n.table-email .email-summary span.label {\n  padding: 1px 5px 2px;\n}\n.table-email .ckbox {\n  line-height: 0px;\n  margin-left: 8px;\n}\n.table-email .star {\n  margin-left: 6px;\n}\n.table-email .star.star-checked i {\n  color: goldenrod;\n}\n\n.nav-email-subtitle {\n  font-size: 15px;\n  text-transform: uppercase;\n  color: #333;\n  margin-bottom: 15px;\n  margin-top: 30px;\n}\n\n.compose-mail {\n  position: relative;\n  padding: 15px;\n}\n.compose-mail textarea {\n  width: 100%;\n  padding: 10px;\n  border: 1px solid #DDD;\n}\n\n.view-mail {\n  padding: 10px;\n  font-weight: 300;\n}\n\n.attachment-mail {\n  padding: 10px;\n  width: 100%;\n  display: inline-block;\n  margin: 20px 0px;\n  border-top: 1px solid #EFF2F7;\n}\n.attachment-mail p {\n  margin-bottom: 0px;\n}\n.attachment-mail a {\n  color: #32323A;\n}\n.attachment-mail ul {\n  padding: 0px;\n}\n.attachment-mail ul li {\n  float: left;\n  width: 200px;\n  margin-right: 15px;\n  margin-top: 15px;\n  list-style: none;\n}\n.attachment-mail ul li a.atch-thumb img {\n  width: 200px;\n  margin-bottom: 10px;\n}\n.attachment-mail ul li a.name span {\n  float: right;\n  color: #767676;\n}\n\n@media (max-width: 640px) {\n  .compose-mail-wrapper .compose-mail {\n    padding: 0px;\n  }\n}\n@media (max-width: 360px) {\n  .mail-wrapper .panel-sub-heading {\n    text-align: center;\n  }\n  .mail-wrapper .panel-sub-heading .pull-left, .mail-wrapper .panel-sub-heading .pull-right {\n    float: none !important;\n    display: block;\n  }\n  .mail-wrapper .panel-sub-heading .pull-right {\n    margin-top: 10px;\n  }\n  .mail-wrapper .panel-sub-heading img {\n    display: block;\n    margin-left: auto;\n    margin-right: auto;\n    margin-bottom: 10px;\n  }\n  .mail-wrapper .panel-footer {\n    text-align: center;\n  }\n  .mail-wrapper .panel-footer .pull-right {\n    float: none !important;\n    margin-left: auto;\n    margin-right: auto;\n  }\n  .mail-wrapper .attachment-mail ul {\n    padding: 0px;\n  }\n  .mail-wrapper .attachment-mail ul li {\n    width: 100%;\n  }\n  .mail-wrapper .attachment-mail ul li a.atch-thumb img {\n    width: 100% !important;\n  }\n  .mail-wrapper .attachment-mail ul li .links {\n    margin-bottom: 20px;\n  }\n\n  .compose-mail-wrapper .search-mail input {\n    width: 130px;\n  }\n  .compose-mail-wrapper .panel-sub-heading {\n    padding: 10px 7px;\n  }\n}\n\n\n\n\n\n\n\n\n\n\n/*font Awesome http://fontawesome.io*/\n@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css);\n/*Comment List styles*/\n.comment-list .row {\n  margin-bottom: 0px;\n}\n.comment-list .panel .panel-heading {\n  padding: 4px 15px;\n  position: absolute;\n  border:none;\n  /*Panel-heading border radius*/\n  border-top-right-radius:0px;\n  top: 1px;\n}\n.comment-list .panel .panel-heading.right {\n  border-right-width: 0px;\n  /*Panel-heading border radius*/\n  border-top-left-radius:0px;\n  right: 16px;\n}\n.comment-list .panel .panel-heading .panel-body {\n  padding-top: 6px;\n}\n.comment-list figcaption {\n  /*For wrapping text in thumbnail*/\n  word-wrap: break-word;\n}\n/* Portrait tablets and medium desktops */\n@media (min-width: 768px) {\n  .comment-list .arrow:after, .comment-list .arrow:before {\n    content: \"\";\n    position: absolute;\n    width: 0;\n    height: 0;\n    border-style: solid;\n    border-color: transparent;\n  }\n  .comment-list .panel.arrow.left:after, .comment-list .panel.arrow.left:before {\n    border-left: 0;\n  }\n  /*****Left Arrow*****/\n  /*Outline effect style*/\n  .comment-list .panel.arrow.left:before {\n    left: 0px;\n    top: 30px;\n    /*Use boarder color of panel*/\n    border-right-color: inherit;\n    border-width: 16px;\n  }\n  /*Background color effect*/\n  .comment-list .panel.arrow.left:after {\n    left: 1px;\n    top: 31px;\n    /*Change for different outline color*/\n    border-right-color: #FFFFFF;\n    border-width: 15px;\n  }\n  /*****Right Arrow*****/\n  /*Outline effect style*/\n  .comment-list .panel.arrow.right:before {\n    right: -16px;\n    top: 30px;\n    /*Use boarder color of panel*/\n    border-left-color: inherit;\n    border-width: 16px;\n  }\n  /*Background color effect*/\n  .comment-list .panel.arrow.right:after {\n    right: -14px;\n    top: 31px;\n    /*Change for different outline color*/\n    border-left-color: #FFFFFF;\n    border-width: 15px;\n  }\n}\n.comment-list .comment-post {\n  margin-top: 6px;\n}\n\n\n\n/* Profile container */\n.profile {\n  margin: 20px 0;\n}\n\n/* Profile sidebar */\n.profile-sidebar {\n  padding: 20px 0 10px 0;\n  background: #fff;\n}\n\n.profile-userpic img {\n  float: none;\n  margin: 0 auto;\n  width: 120px;\n  height: 130px;\n  -webkit-border-radius: 5% !important;\n  -moz-border-radius: 5% !important;\n  border-radius: 5% !important;\n}\n\n.profile-usertitle {\n  text-align: center;\n  margin-top: 20px;\n}\n\n.profile-usertitle-name {\n  color: #5a7391;\n  font-size: 16px;\n  font-weight: 600;\n  margin-bottom: 7px;\n}\n\n.profile-usertitle-job {\n  text-transform: uppercase;\n  color: #5b9bd1;\n  font-size: 12px;\n  font-weight: 600;\n  margin-bottom: 15px;\n}\n\n.profile-userbuttons {\n  text-align: center;\n  margin-top: 10px;\n}\n\n.profile-userbuttons .btn {\n  text-transform: uppercase;\n  font-size: 11px;\n  font-weight: 600;\n  padding: 6px 15px;\n  margin-right: 5px;\n}\n\n.profile-userbuttons .btn:last-child {\n  margin-right: 0px;\n}\n    \n.profile-usermenu {\n  margin-top: 30px;\n}\n\n.profile-usermenu ul li {\n  border-bottom: 1px solid #f0f4f7;\n}\n\n.profile-usermenu ul li:last-child {\n  border-bottom: none;\n}\n\n.profile-usermenu ul li a {\n  color: #93a3b5;\n  font-size: 14px;\n  font-weight: 400;\n}\n\n.profile-usermenu ul li a i {\n  margin-right: 8px;\n  font-size: 14px;\n}\n\n.profile-usermenu ul li a:hover {\n  background-color: #fafcfd;\n  color: #5b9bd1;\n}\n\n.profile-usermenu ul li.active {\n  border-bottom: none;\n}\n\n.profile-usermenu ul li.active a {\n  color: #5b9bd1;\n  background-color: #f6f9fb;\n  border-left: 2px solid #5b9bd1;\n  margin-left: -2px;\n}\n\n/* Profile Content */\n.profile-content {\n  padding: 20px;\n  background: #fff;\n  min-height: 460px;\n}\n\n\n \n\n"
  },
  {
    "path": "page/student/profile.js",
    "content": "  function select(className){\n\n    clear(className);\n    title=title_name(className);\n    set_header_title(title);\n    ajax_enjin(className);\n\n  }\n\n  function ajax_enjin(className){\n\n        $.ajax({\n        type: 'POST',\n        url: 'student_profile_action.php',\n        data: {\n            test: className\n        },\n        beforeSend: function() {\n          //document.getElementById(\"result\").innerHTML=\"Submitting\";\n        },\n        success: function(response) {\n           //alert(\"Yay!\");\n            document.getElementById(\"panel_body\").innerHTML=response; \n        }\n    });\n\n  }\n\n\n\n  function clear(className){\n  \tdocument.getElementById(\"exam\").className=\"\";\n    document.getElementById(\"personal\").className = \"\";\n    document.getElementById(\"payment\").className = \"\";\n    document.getElementById(\"attends\").className = \"\";\n    document.getElementById(className).className = \"active\";\n  }\n\n  function set_header_title(title){\n     document.getElementById(\"panel_title\").innerHTML=title;\n\n  }\n\n  function title_name(className){\n  \ttitle=\"\";\n  \tif(className==\"exam\")title=\"Exam Result\";\n  \telse if(className==\"personal\")title=\"Personal Information\";\n\n  \treturn title;\n  }\n\n  function key(){\n  \t//alert(\"sdaf\");\n  \tper=document.getElementById(\"select_level\").value;\n    var country = document.getElementById(\"select_level\");\n    country.options[country.options.selectedIndex].selected = false;\n\n  \ttext=document.getElementById(\"editor\").value;\n\n  \tvar myElement = document.getElementById('editor');\n    var startPosition = myElement.selectionStart;\n    var endPosition = myElement.selectionEnd;\n\n    var text1 = text.substring(0, startPosition);\n\n    len=text.length;\n    var text2= text.substring(startPosition, len);\n\n    \n    len1=text1+per;\n    len1=len1.length;\n  \ttext=text1+per+text2;\n    document.getElementById(\"editor\").value=text;\n\n    setCaretToPos(myElement, len1);\n    count_len();\n\n  }\n\n  function count_len(){\n    \n  \ttext=document.getElementById(\"editor\").value;\n  \tlen=text.length;\n  \tdocument.getElementById(\"len\").innerHTML=len;\n  }\n\n  function test(){\n  \talert(\"sdaf\");\n  }\n\n\n  function setSelectionRange(input, selectionStart, selectionEnd) {\n  if (input.setSelectionRange) {\n    input.focus();\n    input.setSelectionRange(selectionStart, selectionEnd);\n  }\n  else if (input.createTextRange) {\n    var range = input.createTextRange();\n    range.collapse(true);\n    range.moveEnd('character', selectionEnd);\n    range.moveStart('character', selectionStart);\n    range.select();\n  }\n}\n\nfunction setCaretToPos (input, pos) {\n  setSelectionRange(input, pos, pos);\n}\n\nfunction loader(divname){\n  document.getElementById(divname).innerHTML = \"<img src='https://public.udvash.com/Content/Image/ajax-loader.gif' />\";\n}\nfunction close_loader(divname){\n  document.getElementById(divname).innerHTML = \"Sucess\";\n}\n\n\n\n  function send_sms(){\n   \n  text=document.getElementById(\"editor\").value;\n  id=document.getElementById('student_id').value;\n  recever=document.getElementById(\"recever\").value;\n\nif(recever==0){\n  alert(\"Please Select Recever\");\n  document.getElementById(\"sms_res\").innerHTML=0; \n  document.getElementById(\"sms_res\").innerHTML=\"\"; \n  return;\n}\nif(text==\"\"){\n  alert(\"Please Fill SMS Box\");\n  document.getElementById(\"sms_res\").innerHTML=0; \n  document.getElementById(\"sms_res\").innerHTML=\"\"; \n  return;\n}\n\n\n   $.ajax({\n        type: 'POST',\n        url: 'student_profile_action.php',\n        data: {\n            send_sms: text,\n            id: id,\n            recever:recever\n        },\n        beforeSend: function() {\n          loader(\"loader\");\n        },\n        success: function(response) {\n           //alert(\"Yay!\");\n           close_loader('loader');\n            document.getElementById(\"sms_res\").innerHTML=\"\"; \n        }\n    });\n\n}\n"
  },
  {
    "path": "page/student/student_list/css/style.css",
    "content": "\n\n\n.select {\n  position: relative;\n  display: block;\n  height: 3.4em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n\n.select::after {\n  content: '\\25BC';\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding: 0 1em;\n  background: #34495e;\n  pointer-events: none;\n}\n.select:hover::after {\n  color: #f39c12;\n}\n.select::after {\n  -webkit-transition: .25s all ease;\n  -o-transition: .25s all ease;\n  transition: .25s all ease;\n}\n\n.img{\n    height: 40px;\n    width: 30px;\n}\n\n.btn_select{\n  position: relative;\n  display: block;\n  height: 3.5em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n\n.header_box{\n        background-color: #C6C9D1;\n        color: var(--font-color);\n        padding-top: 0px;\n        padding-left: 15px;\n        margin-bottom: -17px;\n        border-width: 0px;\n    }\n    .box_body{\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-color: var(--bg-color);\n        border-width: 2px;\n        border-radius: 4px;\n        color: #000000;\n\n    }\n    .head_id{\n        background-color: var(--bg-color);\n        color: var(--font-color);\n        padding: 15px;\n        margin-left: 80px;: \n        \n    }\n\n    .box_overview{\n        \n        padding: 15px;\n        font-weight: bold;\n        font-size: 20px;\n    }\n    .panel_li{\n    \tbackground-color: var(--bg-color);\n    \tmargin: 3px;\n    }\n\n\n/*student list tab option*/\n\n.panel.with-nav-tabs .panel-heading{\n    padding: 5px 5px 0 5px;\n}\n.panel.with-nav-tabs .nav-tabs{\n    border-bottom: none;\n}\n.panel.with-nav-tabs .nav-justified{\n    margin-bottom: 0px;\n}\n/********************************************************************/\n\n/*** PANEL PRIMARY ***/\n.with-nav-tabs.panel-primary .nav-tabs > li > a,\n.with-nav-tabs.panel-primary .nav-tabs > li > a:hover,\n.with-nav-tabs.panel-primary .nav-tabs > li > a:focus {\n    color: var(--font-color);\n    background-color: var(--bg-color);\n    height: 50px;\n    width: auto;\n    margin-bottom: 7px;\n    border-radius: 5px 5px 0px 0px;\n\n\n}\n.with-nav-tabs.panel-primary .nav-tabs > .open > a,\n.with-nav-tabs.panel-primary .nav-tabs > .open > a:hover,\n.with-nav-tabs.panel-primary .nav-tabs > .open > a:focus,\n.with-nav-tabs.panel-primary .nav-tabs > li > a:hover,\n.with-nav-tabs.panel-primary .nav-tabs > li > a:focus {\n    color: var(--font-color);\n    background-color: var(--bg-color);\n    margin-bottom: 0px;\n    border-color: transparent;\n    margin-bottom: -1px;\n\n}\n.with-nav-tabs.panel-primary .nav-tabs > li.active > a,\n.with-nav-tabs.panel-primary .nav-tabs > li.active > a:hover,\n.with-nav-tabs.panel-primary .nav-tabs > li.active > a:focus {\n    color: #000000;\n    font-weight: bold;\n    background-color: #f5f5f5;\n    border-style: solid;\n    border-color: var(--bg-color);\n    border-width: 2px 2px 0px 2px;\n    margin-bottom: 2px;\n   \n}\n\n\n.tab-pane{\n\tcolor: #000000;\n\tcursor: unset;\n}\n\n/*table style*/\n.batch_td1{\n    padding: 10px;\n      border-style: solid;\n      border-width: 1px;\n      font-weight: bold;\n      font-family: \"Big Caslon\";\n      border-color: #C6C9D1;\n      text-align: center;\n  }\n  .batch_td2{\n    background-color: #ffffff;\n    border-color: #C6C9D1;\n    padding: 15px;\n    text-align: center;\n    font-weight: normal;\n    border-style: solid;\n    border-width: 1px;\n  }\n  .batch_td3{\n    background-color: #ffffff;\n    border-color: #C6C9D1;\n    padding: 10px;\n    font-weight: normal;\n    border-style: solid;\n    border-width: 1px;\n  }\n  .program_td{\n    padding: 10px;\n    width: 28%;\n      border-style: solid;\n      border-width: 1px;\n      font-weight: bold;\n      font-family: \"Big Caslon\";\n      border-color: #C6C9D1;\n    \n  }\n  .batch_td1,.program_td{\n    background-color: var(--bg-color);\n    color: var(--font-color);\n  }\n  .student_td_1{\n    padding: 20px;\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    border-style: solid;\n      border-width: 1px;\n      font-weight: bold;\n      text-align: center;\n      font-family: \"Big Caslon\";\n      border-color: #C6C9D1;\n  }\n  .student_td_2{\n    padding: 10px;\n    border-style: solid;\n      border-width: 1px;\n      font-weight: normal;\n      text-align: center;\n      font-family: \"Big Caslon\";\n      border-color: #C6C9D1;\n  }\n  .tr_list{\n    cursor: pointer;\n    padding: 15px;\n    background-color: #ffffff;\n  }\n  .tr_list:hover{\n    background-color: #eeeeee;\n    color: #000000;\n  }\n  .img{\n    height: 50px;\n    width: 45px;\n  }"
  },
  {
    "path": "page/student/student_list/js/payment_script.js",
    "content": "\nvar payment_type=1,payment_month=0,payment_year=0;\n\nfunction select_payment_type(){\n\ttype=get_value(\"payment_type\");\n\tvar div,data;\n\tif(type==1){\n\t\tdiv=\"payment_panel_body\";\n\t\tpayment_year=0;\n\t\tpayment_month=0;\n\t\tpayment_type=1;\n\t\tshow_payment_panel();\n\t\tset_html(\"payment_month_area\",\"\");\n\t}\n\telse if(type==2){\n\t\tdiv=\"payment_month_area\";\n\t\tvar data={\n    \t\t\"select_monthly_program\": program_id\n    \t}\n    \tset_html(\"payment_panel_body\",\"\");\n\t}\n\telse{\n\t\tset_html(\"payment_month_area\",\"\");\n\t\tset_html(\"payment_panel_body\",\"\");\n\t\treturn;\n\t}\n\tloader(div);\n\t\n    get_ajax(get_action_data(div), data);\n}\n\nfunction select_payment_year(){\n\tyear=get_value(\"payment_year\");\n\n\tvar data1={\n\t\t\"year\": year,\n\t\t\"program_id\": program_id\n\t}\n\n\tvar data={\n    \t\t\"select_payment_year\": data1\n    }\n\tget_ajax(get_action_data(\"payment_month\"), data);\n}\n \nfunction select_payment_month(){\n\tmonth=get_value(\"payment_month\");\n\tif(month==-1){\n\t\tset_html(\"payment_panel_body\",\"\");\n\t}\n\telse{\n\t\tpayment_year=get_value(\"payment_year\");\n\t\tpayment_month=get_value(\"payment_month\");\n\t\tpayment_type=2;\n\t\tshow_payment_panel();\n\t}\n}\n\n\nfunction show_payment_panel(){\n\tdiv=\"payment_panel_body\";\n\t\tvar data={\n    \t\t\"payment_panel\": program_id\n    \t}\n\n    \tloader(div);\n    \t$.ajax({\n        \ttype: 'POST',\n        \turl: url,\n        \tdata:data,\n        \tsuccess: function(response) {\n           \t\tset_html(div,response);\n           \t\tget_payment_option(\"payment_option_overview\");\n           \n        \t}\n    \t});  \n}\n\nfunction get_payment_option(category) {\n\tvar data1={\n\t\t\"payment_type\": payment_type,\n\t\t\"year\": payment_year,\n\t\t\"month\": payment_month,\n\t\t\"program_id\":program_id,\n\t\t\"batch_id\": batch_id\n\t}\n\tvar data={};\n\tdata[category]= data1;\n\tloader(\"payment_overview_body\");\n\tget_ajax(get_action_data(\"payment_overview_body\"), data);\n\t\n}\n\nfunction get_list_payment(status){\n\tvar data1={\n\t\t\"payment_type\": payment_type,\n\t\t\"year\": payment_year,\n\t\t\"month\": payment_month,\n\t\t\"program_id\":program_id,\n\t\t\"batch_id\": batch_id,\n\t\t\"status\": status\n\t}\n\theader=status+\" Student List\";\n\tset_html(\"payment_overview_header\",header);\n\tvar data={};\n\tdata[\"get_list_payment\"]= data1;\n\n\tloader(\"payment_overview_body\");\n\tget_ajax(get_action_data(\"payment_overview_body\"), data);\n}\n\nfunction view_payment_history(payment_id){\n\tmodal_open(\"lg\", \"Payment Received History\");\n\tloader(\"modal_lg_body\");\n    var data={\n    \t\"view_payment_history\": payment_id\n    }\n    get_ajax(get_action_data(\"modal_lg_body\"), data);\n}\n\nfunction program_overview_send_sms(){\n\tvar status=get_value(\"sms_payment_type\");\n\tvar receiver=get_value(\"select_receiver\");\n\tvar last_payment_date=get_value(\"last_payment_date\");\n\tif(status==0){\n\t\talert(\"Select Payment Status Type\");\n\t\treturn;\n\t}\n\telse if(receiver==-1){\n\t\talert(\"Select Receiver\");\n\t\treturn;\n\t}\n\tvar data1={\n\t\t\"payment_type\": payment_type,\n\t\t\"year\": payment_year,\n\t\t\"month\": payment_month,\n\t\t\"program_id\":program_id,\n\t\t\"batch_id\": batch_id,\n\t\t\"status\": status,\n\t\t\"receiver\": receiver,\n\t\t\"last_payment_date\": last_payment_date\n\t}\n\tvar data={\n    \t\"program_overview_send_sms\": data1\n    }\n    loader(\"sms_info_area\");\n    get_ajax(get_action_data(\"sms_info_area\"), data);\n}"
  },
  {
    "path": "page/student/student_list/js/script.js",
    "content": "\nurl = \"student_list_action.php\";\nmodal_body = \"modal_md_body\";\nmodal = \"md\";\nbody=\"program_dashboard\";\ntab_body=\"box_body\";\nvar program_id,batch_id;\n\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\nfunction program_select(){\n\tpid=get_value(\"program_select\");\n\tvar data={\n\t\t\"program_select\": pid\n\t}\n\n\tget_ajax(get_action_data(\"batch_select\"), data);\n}\n\n\nfunction view_program(){\n\tpid=get_value(\"program_select\");\n\tbid=get_value(\"batch_select\");\n\tif(pid==0 || pid==\"\"){\n      alert(\"Please Select Program\");\n      return;\n\t}\n\tprogram_id=pid;\n\tbatch_id=bid;\n\n\tvar data1 = {\n\t\t\"program_id\": program_id,\n\t\t\"batch_id\": batch_id\n\t}\n\n\tvar data={\n\t\t\"view_program\": data1\n\t}\n\n\tloader(body);\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           set_html(body,response);\n           get_action(\"program_overview\");\n        }\n    });  \n}\n\nfunction get_action(action){\n\tvar data1={\n\t\t\"program_id\": program_id,\n\t\t\"batch_id\": batch_id\n\t}\n\tvar data={};\n\tdata[action]= data1;\n\t\n \tloader(tab_body);\n\tget_ajax(get_action_data(tab_body), data);\n}\n\nfunction view_student(id){\n\tmodal_open(\"lg\", \"Student Information\");\n    reload_profile(id);\n}\n\n\nfunction reload_profile(id){\n   loader(\"modal_lg_body\");\n    var data={\n    \t\"view_student\": id\n    }\n    get_ajax(get_action_data(\"modal_lg_body\"), data);\n\t\n}\n\n"
  },
  {
    "path": "page/student/student_list/student_list.php",
    "content": " \n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/student/student_list/css/style.css\">\n<script type=\"text/javascript\" src=\"page/student/student_list/js/script.js\"></script>\n<script type=\"text/javascript\" src=\"page/student/student_list/js/payment_script.js\"></script>\n\n <div class=\"row\">\n    \n        <div class=\"dropdown\" style=\"\">\n          <div class=\"col-md-2\"></div>\n          <div class=\"col-md-3\">\n            <select onchange=\"program_select()\" class=\"select\" id=\"program_select\" name=\"options\">\n            \t<option value=\"0\">Select Program</option>\n            \t<?php $program_ob->select_program(); ?>\n            </select>\n          </div>\n\n          <div class=\"col-md-3\">\n            <select class=\"select\" id=\"batch_select\" name=\"options\">\n            \t<option value=\"0\">Select Batch</option>\n            </select>\n          </div>\n          <div class=\"col-md-2\">\n          \t<button class=\"btn_select\" onclick=\"view_program()\">View Program</button>\n          </div>\n    </div>\n</div> \n\n<div style=\"padding: 10px;\"></div>\n\n\n\n<div id=\"program_dashboard\">\t</div>\n\n"
  },
  {
    "path": "page/student/student_list.js",
    "content": "\n\nfunction program(){\n\tprogram_id=document.getElementById('program_select').value;\n\n\tif(program_id==0){\n\t\tdocument.getElementById(\"batch\").innerHTML = \"<option>Select Batch</option>\";\n\t\treturn;\n\t} \n\t $.ajax({\n          type: 'POST',\n          url: 'student_list_action.php',\n          data: {\n              program_select: program_id              \n          },\n          beforeSend: function() {\n              \n          },\n          success: function(response) {\n           document.getElementById(\"batch_select\").innerHTML = response;\n          }\n      });\n}\n\n\nfunction view(){\n\tprogram_id=document.getElementById('program_select').value;\n\n\tif(program_id==0){\n\t\talert(\"Please Select Program\");\n\t\tdocument.getElementById(\"program_dashboard\").innerHTML = \"\";\n\t\treturn;\n\t}\n\n\t$.ajax({\n          type: 'POST',\n          url: 'student_list_action.php',\n          data: {\n              view: program_id\n          },\n          beforeSend: function() {\n              loader(\"program_dashboard\");\n          },\n          success: function(response) {\n           document.getElementById(\"program_dashboard\").innerHTML = response;\n           overview();\n          }\n      });\n\n}\n\nfunction overview(){\n    \n\tprogram_id=document.getElementById('program_select').value;\n  batch_id=document.getElementById('batch_select_id').value;\n\t\n\t$.ajax({\n          type: 'POST',\n          url: 'student_list_action.php',\n          data: {\n              overview: program_id,\n              batch_id_ov: batch_id\n          },\n          beforeSend: function() {\n              loader(\"overview_body\");\n          },\n          success: function(response) {\n           document.getElementById(\"overview_body\").innerHTML = response;\n          }\n      });\n}\n\nfunction student_list(){\n    program_id=document.getElementById('program_select').value;\n    batch_id=document.getElementById('batch_select_id').value;\n\n  $.ajax({\n          type: 'POST',\n          url: 'student_list_action.php',\n          data: {\n              student_list: program_id,\n              batch_id: batch_id\n          },\n          beforeSend: function() {\n              loader(\"student_body\");\n          },\n          success: function(response) {\n           document.getElementById(\"student_body\").innerHTML = response;\n           \n          }\n      });\n}\n\nfunction get_id_card(){\n\n  program_id=document.getElementById('program_select').value;\n  batch_id=document.getElementById('batch_select_id').value;\n\n  $.ajax({\n          type: 'POST',\n          url: 'student_list_action.php',\n          data: {\n              get_id_card: program_id,\n              batch_id: batch_id\n          },\n          beforeSend: function() {\n              loader(\"id_card_body\");\n          },\n          success: function(response) {\n           document.getElementById(\"id_card_body\").innerHTML = response;\n          }\n      });\n}\n\nfunction go_to_profile(id){\n    st=\"student_profile.php?get_id=\";\n    url=st+id;\n    var win = window.open(url, '_blank');\n    win.focus();\n}\n\nfunction set_header(name){\n document.getElementById('profile_option').innerHTML=name;\n}\n\n\nfunction close_loader(divname){\n  document.getElementById(divname).innerHTML = \"\";\n}"
  },
  {
    "path": "page/student/student_list.php",
    "content": "\n<style type=\"text/css\">\n\n.student_add .modal-dialog{max-width: 800px; width: 100%;}\n        .pre-cost{text-decoration: line-through; color: #a5a5a5;}\n        .space-ten{padding: 10px 0;}\n\n\n\ntbody> tr.odd td,tr{ \n    background: #ffffff;\n    cursor: pointer;\n}\n\ntbody tr.odd:hover td,tr:hover { \n    background: #D5D6D7;\n}\n\ntable{\n  border-width: 2px;\n  border-color: #2E363F;\n  border-style: solid;\n}\n \n</style>\n\n<center>\n\n\n<div class=\"btn-toolbar list-toolbar\">\n    <button class=\"btn btn-primary\" data-title=\"Add Product\" data-toggle=\"modal\" data-target=\"#myModal\"><i class=\"fa fa-plus\"></i>Add Student</button>\n    <a href=\"export.php\"><i class=\"fa fa-plus\"></i>Export</a>\n    \n</div>\n</center>\n<table id=\"datatable\" class=\"table table-striped table-bordered\" cellspacing=\"0\" width=\"100%\">\n            <thead>\n            <tr style=\"background-color: var(--bg-color); color: var(--font-color)\">\n              <th><center>Student Photo</center></th>\n              <th><center>Student Id</center></th>\n              <th><center>Student Name</center></th>\n            \n              <th><center>Student Mobile</center></th>\n              \n              <th><center>Program Name</center></th>\n              <th><center>Batch Name</center></th>\n              <th><center>Action</center></th>\n              \n            </tr>\n          </thead>\n          <tbody style=\"background-color: #ffffff\">\n\n<?php \n\nforeach ($student as $key => $value) {\n  $name=$value['name'];\n  $nick=$value['nick'];\n  $id=$value['id'];\n  $fater_name=$value['father_name'];\n  $mother_name=$value['mother_name'];\n  $student_mobile=$value['personal_mobile'];\n  $photo=$value['photo'];\n  $program_id=$value['program'];\n  $program_name=$program[$program_id]['name'];\n  $batch_id=$value['batch'];\n  $batch_name=$batch[$batch_id]['name'];\n\n  \n?>\n            <tr style=\"\" >\n               <style type=\"text/css\">\n                 .img{\n                  height: 50px;\n                  width: 50px;\n                 }\n               </style>\n              <td onclick=\"profile(<?php echo \"$id\"; ?>)\"><center><?php echo \"<img src='$photo' class='img'>\"; ?></center></td>\n              <td onclick=\"profile(<?php echo \"$id\"; ?>)\"><center><?php echo \"$id\"; ?></center></td>\n              <td onclick=\"profile(<?php echo \"$id\"; ?>)\"><center><?php echo \"$name ($nick)\"; ?></center></td>\n              \n\n              \n              <td onclick=\"profile(<?php echo \"$id\"; ?>)\"><center><?php echo \"$student_mobile\"; ?></center></td>\n             \n              <td onclick=\"profile(<?php echo \"$id\"; ?>)\"><center><?php echo \"$program_name\"; ?></center></td>\n              <td onclick=\"profile(<?php echo \"$id\"; ?>)\"><center><?php echo \"$batch_name\"; ?></center></td>\n\n                \n                <td><div class=\"btn-toolbar list-toolbar\"><center>\n\n          <button class=\"btn btn-primary btn-xs\" onclick=\"edit_student(<?php echo \"$id\"; ?>)\" style=\"margin-right: 4px;\" title=\"Edit\" data-title=\"Add Product\" data-toggle=\"modal\" data-target=\"#student_edit_<?php echo \"$id\"; ?>\" ><span class=\"glyphicon glyphicon-pencil\"></span></button>\n\n          <button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete<?php echo\"$id\"; ?>\" ><span class=\"glyphicon glyphicon-trash\"></span></button>\n\n        </center></div></td>\n    \n            </tr>\n\n\n<!-- starting edit model -->\n <div class=\"modal fade student_add\" id=\"student_edit_<?php echo \"$id\"; ?>\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n   <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n        \n        <div style=\"padding: 0px;\" class=\"modal-body\" style=\"background-color: #ecf0f1\">\n            <?php \n       $student_ob->student_edit_form($id);\n          ?>\n        </div>\n      </div>\n    </div>\n</div>\n\n<!-- Start Delete Model -->\n<div class=\"modal small fade\" id=\"delete<?php echo\"$id\"; ?>\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n        <div class=\"modal-header\">\n            <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n            <h3 id=\"myModalLabel\">Delete Confirmation</h3>\n        </div>\n        <div class=\"modal-body\">\n            <p class=\"error-text\"><i class=\"fa fa-warning modal-icon\"></i>Are you sure you want to delete the Student?<br>This cannot be undone.</p>\n        </div>\n        <div class=\"modal-footer\">\n          <form action=\"student_action.php\" method=\"POST\">\n            <input type=\"text\" name=\"id\" value=\"<?php echo \"$id\"; ?>\" hidden=\"\">\n             <input type=\"text\" name=\"name\" value=\"<?php echo \"$name\"; ?>\" hidden=\"\">\n              <input type=\"text\" name=\"code\" value=\"<?php echo \"$id\"; ?>\" hidden=\"\">\n            <button class=\"btn btn-default\" data-dismiss=\"modal\" aria-hidden=\"true\">Cancel</button>\n            <button class=\"btn btn-danger\" type=\"submit\" name=\"delete\">Delete</button>\n            </form>\n        </div>\n      </div>\n    </div>\n</div>\n<!-- End Delete Model -->\n\n<!-- Start Edit Model-->\n\n\n            <!-- end edit model -->\n\n<?php } ?>\n          </tbody>\n        </table>\n\n<!-- start Add model -->\n\n  <div class=\"modal fade student_add\" id=\"myModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n        \n        <div style=\"padding: 0px;\" class=\"modal-body\" style=\"background-color: #ecf0f1\">\n            <?php include \"page/student/add_student.php\"; ?>\n        </div>\n       \n      </div>\n    </div>\n</div>\n\n <div class=\"modal fade student_add\" id=\"student_edit\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n   <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n        \n        <div style=\"padding: 0px;\" class=\"modal-body\" style=\"background-color: #ecf0f1\">\n            <?php \n       $student_ob->student_edit_form(10001);\n          ?>\n        </div>\n      </div>\n    </div>\n</div>\n\n<script>\n  \n\n  function profile(id){\n    st=\"student_profile.php?get_id=\";\n    url=st+id;\n    var win = window.open(url, '_blank');\n    win.focus();\n  }\n</script>\n"
  },
  {
    "path": "page/student/student_list1.php",
    "content": "\n\n<?php include \"student_list/student_list.php\";  ?>\n\n"
  },
  {
    "path": "page/student/student_profile/css/payment.css",
    "content": ""
  },
  {
    "path": "page/student/student_profile/css/profile.css",
    "content": ".panel_profile,.about_profile{\n  margin-left: 30px;\n}\n.panel_profile_body,.about_profile_body{\n  height: auto;\n  padding: 10px;\n  background-color: #ffffff;\n  border-radius: 0px 0px 5px 5px;\n  border-color: #DDDDDD;\n  border-width: 1px;\n  border-style: solid;\n} \n.about_profile_body{\n  box-shadow: 10px 5px 8px 5px #888888;\n}\n\n.profile_header{\n  background-color: var(--bg-color);\n  color: var(--font-color);\n  padding: 15px;\n  border-radius: 10px 10px 0px 0px;\n}\n\n.panel_profile{\n    margin-left: 15px;\n}\n\n.img_side{\n    height: 160px;\n    width: 154px;\n    border-width: 1px;\n    border-color: var(--bg-color);\n    border-style: solid;\n    border-radius: 10%;\n}\n\n.info_side{\n    font-weight: bold;\n\n}\n\n.btn_header{\n    padding: 15px;\n    background-color: var(--bg-color);\n    color: var(--font-color);\n}\n.btn_box{\n    text-align: center;\n    padding: 40px;\n    height: 100px;\n    width: 100px;\n    background-color: var(--bg-color);\n    color: var(--font-color);\n}\n\n   .buttons{\npadding: 5px 0;\nfont-weight: bold;\n}\n.nb-btn-circle{\n  cursor: pointer;\ntext-decoration: none;\noutline: none!important;\nposition: relative;\ndisplay: inline-block;\nheight: 80px;\nwidth: 80px;\nmargin: 0 10px 10px 0;\ncolor: #555;\nborder: 1px solid #ddd;\nborder-radius: 20%;\nbox-shadow: 5px 5px 5px rgba(0, 0, 0, .5);\nbackground-color: #fff;\nbackground-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));\nbackground-image: -webkit-linear-gradient(top, #ffffff, #eeeeee);\nbackground-image: -moz-linear-gradient(top, #ffffff, #eeeeee);\nbackground-image: -ms-linear-gradient(top, #ffffff, #eeeeee);\nbackground-image: -o-linear-gradient(top, #ffffff, #eeeeee);\nbackground-image: linear-gradient(to bottom, #ffffff, #eeeeee);\ntransition:all 0.3s ease-in-out;\n}\n.nb-btn-circle:hover{\nbackground: var(--bg-color);\nborder-color: var(--bg-color);\ncolor: var(--font-color);\n} \n.nb-btn-circle:focus{\nbackground: var(--bg-color)!important;\nborder-color: var(--bg-color)!important;\ncolor: var(--font-color)!important;\n} \n\n\n\n.nb-btn-circle .fa {\nfloat: left;\nheight: 24px;\nwidth: 100%;\nmargin: 18px 0 2px 0;\nfont-size: 24px;\nline-height: 26px;\ntext-align: center;\n}\n.nb-btn-circle p{\nfloat: left;\nwidth: 100%;\nmargin: 0;\nfont-size: 11px;\ntext-align: center;\n}\n.nb-btn-circle .indicator-dot {\nposition: absolute;\ntop: 0px;\nright: 0px;\nheight: 16px;\nwidth: 16px;\nfont-size: 10px;\nfont-weight: bold;\ntext-align: center;\nline-height: 14px;\nborder-radius: 50%;\n-webkit-border-radius: 50%;\n-khtml-border-radius: 50%;\n-moz-border-radius: 50%;\ncolor: #fff;\nbackground-color: #D9534F;\nbackground-image: none;\n}\n\n\n\n.nb-btn-circle1 {\ntext-decoration: none;\noutline: none!important;\nposition: relative;\ndisplay: inline-block;\nheight: 80px;\nwidth: 80px;\nmargin: 0 10px 10px 0;\ncolor: #ffffff;\nborder: 1px solid #3B5999;\nbackground-color: #3B5999;\ntransition:all 0.9s ease-in-out;\n}\n\n.td_profile1,.td_profile2{\n  border-width: 1px;\n  border-color: #DDDDDD;\n  border-style: solid;\n  padding: 7px;\n}\n.td_profile1{\n  width: 100px;\n  background-color: var(--bg-color);\n  color: var(--font-color);\n}\n\n.nb-btn-circle1:hover{\nbackground: #ffffff;\nborder-color: #ffffff;\ncolor: #000000;\n}\n\n.nb-btn-circle1:focus{\ncolor: #ffffff;\n}\n\n\n \n.nb-btn-circle1 .indicator-dot {\nposition: absolute;\ntop: 0px;\nright: 0px;\nheight: 16px;\nwidth: 16px;\nfont-size: 10px;\nfont-weight: bold;\ntext-align: center;\nline-height: 14px;\nborder-radius: 50%;\n-webkit-border-radius: 50%;\n-khtml-border-radius: 50%;\n-moz-border-radius: 50%;\ncolor: #fff;\nbackground-color: #ffffff;\nbackground-image: none;\n}\n\n .top-alert { \n  position: fixed;\n  top: 0px;\n  width: 100%;\n  z-index: 100000;\n  left: 0;\n  padding: 50px;\n  display: inline-block;\n  text-align: center;\n}\n.top-alert .alert {\n  width: auto !important;\n  height: 100%;\n  display: inline;\n  position: relative;\n  margin: 0;\n}\n.top-alert .alert .close {\n  position: absolute;\n  top: 11px;\n  right: 10px;\n  color: inherit;\n}\n\n.alert-purple { border-color: #694D9F;background: #694D9F;color: #fff; }\n.alert-info-alt { border-color: #B4E1E4;background: #81c7e1;color: #fff; }\n.alert-danger-alt { border-color: #B63E5A;background: #E26868;color: #fff; }\n.alert-warning-alt { border-color: #F3F3EB;background: #E9CEAC;color: #fff; }\n.alert-success-alt { \n  border-color: #19B99A;\n  background: #20A286;\n  color: #fff; \n  padding: 20px;\n  float: right;\n  border-radius: 15px;\n}\n\n.alert a {color: gold;}\n\n"
  },
  {
    "path": "page/student/student_profile/js/info.js",
    "content": "$(document).ready(function (e) {\n  $(\"#update_student\").on('submit',(function(e) {\n    alert(\"d\");\n    e.preventDefault();\n    $.ajax({\n      url: \"student_action1.php\",\n      type: \"POST\",        \n      data: new FormData(this), \n      contentType: false,  \n      cache: false,             \n      processData:false,      \n      beforeSend: function() {\n      \tdocument.getElementById('add_body').style.display=\"none\";\n      \tloader(\"output\");\n      },\n      success: function(data){\n      \tdocument.getElementById(\"add_student\").reset();\n      \tvar data = JSON.parse(data);\n      \twindow.location.href = 'student_profile.php?get_id='+data.id;\n        \n    }\n  });\n}));\n\n});\n\nfunction info() {\n  bar_url=\"student_profile.php?get_id=\"+student_id+\"&tab=info\";\n   window.history.pushState('', '', bar_url);\n  set_html(\"profile_option\",\"Info Panel\");\n\n  var data = {\n        \"get_student_info\": student_id\n    }\n\n    loader(body);\n    get_ajax(get_action_data(body), data);\n}\n\nfunction update_profile_form(){\n\tvar data = {\n        \"update_profile_form\": student_id\n    }\n\n    modal_open(\"lg\", \"Payment\");\n    loader(\"modal_lg_body\");\n    get_ajax(get_action_data(\"modal_lg_body\"), data);\n}"
  },
  {
    "path": "page/student/student_profile/js/payment.js",
    "content": "url = \"student_profile_action.php\";\nmodal_body = \"modal_md_body\";\nmodal = \"md\";\n\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\nfunction payment() {\n   bar_url=\"student_profile.php?get_id=\"+student_id+\"&tab=payment\";\n   window.history.pushState('', '', bar_url);\n\n   set_html(\"profile_option\",\"Payment Panel\");\n\n    var data = {\n        \"get_payment_list\": student_id\n    }\n\n    loader(body);\n    get_ajax(get_action_data(body), data);\n}\n\nfunction select_payment_program() {\n\n    var data = {\n        \"select_program\": get_value(\"select_payment_program\")\n    }\n    div = document.getElementById(\"select_payment_type\");\n    div.innerHTML = \"<option value='-1'>Select Payment Type</option>\";\n    get_ajax(get_action_data(\"select_payment_type\"), data);\n}\n\n\nfunction view_payment() {\n\n    program_id = get_value(\"select_payment_program\");\n    type = get_value(\"select_payment_type\");\n    error = \"\";\n    if (program_id == -1) error = \"Select Program\";\n    else if (type == -1) error = \"Select Payment Type\";\n\n    if (error != \"\") {\n        alert(error);\n        return;\n    }\n\n    var data1 = {\n        \"student_id\": student_id,\n        \"program_id\": program_id,\n        \"type\": type\n    }\n\n    var data = {\n        \"view_payment\": data1\n    }\n\n    loader(\"payment_body_panel\");\n    get_ajax(get_action_data(\"payment_body_panel\"), data);\n}\n\nfunction view_payment_panel(payment_id) {\n    \n    \n\n    var data = {\n        \"payment_panel\": payment_id\n    }\n    \n    loader(\"payment_body_panel\");\n    get_ajax(get_action_data(\"payment_body_panel\"), data);\n}\n\nfunction set_payment(program_id, year, month,type) {\n \n    var data1 = {\n        \"student_id\": student_id,\n        \"program_id\": program_id,\n        \"year\": year,\n        \"month\": month,\n        \"type\" : type\n    }\n    var data = {\n        \"set_payment\": data1\n    }\n    modal_open(modal, \"Payment\");\n    loader(modal_body);\n    get_ajax(get_action_data(), data);\n}\n\n\nfunction save_set_fee(program_id,month,year,type){\n    \n    fee=get_value(\"set_student_fee_value\");\n    if(fee==\"\"){\n    \talert(\"Please Input Payment Fee\");\n    \treturn;\n    }\n\n    var data1={\n        \"student_id\": student_id,\n        \"program_id\": program_id,\n        \"month\": month,\n        \"year\": year,\n        \"total_fee\": fee,\n        \"type\": type \n    }\n\n    var data = {\n        \"save_set_fee_data\": data1\n    }\n\n    loader(modal_body);\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n\n           modal_open(modal, \"Payment\",\"close\");\n           success('Payment successfully Set');\n           view_payment();\n        }\n    });    \n}\n\nfunction add_extra_payment_form(){\n    var data = {\n        \"add_extra_payment_form\": 1\n    }\n    \n    modal_open(\"sm\", \"Add Extra Payment Fee\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\n\nfunction add_extra_fee(){\n  note=\"\";\n  if(type==3)note=get_value(\"note\");\n\n  fee=get_value(\"payment_fee\");\n  if(fee==\"\"){\n    alert(\"Enter Payment Fee\");\n    return;\n  }\n  else if(note==\"\" && type==3){\n    alert(\"Enter Name Of Payment\");\n    return;\n  }\n  var data1={\n    'program_id': program_id,\n    'student_id': student_id,\n    'type': 3,\n    'total_fee': fee,\n    'note': note\n  }\n\n  var data = {\n        \"add_extra_fee\": data1\n   }\n\n  loader(\"modal_sm_body\");\n\n  $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) { \n           view_payment();\n           modal_open(\"sm\", \"Payment\",\"close\");\n           success('Payment successfully Update');\n        }\n    }); \n}\n\n\nfunction update_payment_form(payment_id){\n   var data = {\n        \"update_payment_form\": payment_id\n    }\n    \n    modal_open(\"sm\", \"Update Payment Fee\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\n\nfunction add_pay_form(payment_id){\n   \n   var data = {\n        \"add_pay_form\": payment_id\n    }\n    \n    modal_open(\"sm\", \"Add Payment\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\nfunction update_payment(payment_id,type){\n  note=\"\";\n  if(type==3)note=get_value(\"note\");\n\n  fee=get_value(\"payment_fee\");\n  if(fee==\"\"){\n  \talert(\"Enter Payment Fee\");\n  \treturn;\n  }\n  else if(note==\"\" && type==3){\n    alert(\"Enter Name Of Payment\");\n    return;\n  }\n  var data1={\n  \t'id': payment_id,\n  \t'total_fee': fee,\n    'note': note\n  }\n\n  var data = {\n        \"update_payment\": data1\n   }\n  loader(\"modal_sm_body\");\n   $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\t\n        \tview_payment_panel(payment_id);\n            modal_open(\"sm\", \"Payment\",\"close\");\n            success('Payment successfully Update');\n        }\n    }); \n}\n\nfunction save_pay_ammount(payment_id){\n  fee=get_value(\"pay\");\n  if(fee==\"\"){\n  \talert(\"Enter Payment Ammount\");\n  \treturn;\n  }\n  var data1={\n  \t'payment_id': payment_id,\n  \t'pay': fee\n  }\n\n  var data = {\n        \"save_payment\": data1\n   }\n  loader(\"modal_sm_body\");\n   $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\t\n        \tview_payment_panel(payment_id);\n            modal_open(\"sm\", \"Payment\",\"close\");\n            success('Payment Successfully Add');\n        }\n    }); \n}\n\nfunction payment_panel() {\n    var data = {\n        \"payment_panel\": student_id\n    }\n    \n    loader(body);\n    get_ajax(get_action_data(body), data);\n}\n\nfunction delete_payment_form(pay_id,payment_id){\n   var data1={\n   \t \"id\": pay_id,\n   \t \"payment_id\": payment_id\n   }\n\n   var data = {\n        \"delete_payment_form\": data1\n    }\n    \n    modal_open(\"sm\", \"Update Payment Fee\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\nfunction delete_payment(pay_id,payment_id){\n   var data = {\n        \"delete_payment\": pay_id\n    }\n    \n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\t\n            view_payment_panel(payment_id);\n            modal_open(\"sm\", \"Payment\",\"close\");\n            success('Payment Successfully Delete');\n        }\n    });\n}\n\nfunction print_money_recept(id){\n\tvar data = {\n        \"print_money_recept\": id\n    }\n    \n    modal_open(\"lg\", \"Print Payment Recept\");\n    loader(\"modal_lg_body\");\n    get_ajax(get_action_data(\"modal_lg_body\"), data);\n}\nfunction send_sms_page(id){\n\n    var data1 = {\n      \"student_id\": student_id,\n      \"payment_id\": id\n    }\n  \n    var data = {\n        \"send_sms_page\": data1\n    }\n    \n    modal_open(\"sm\", \"Send Payment Info\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\nfunction send_sms(){\n  message=get_value(\"message\");\n  receiver=get_value(\"select_receiver\");\n  if(receiver==-1){\n    alert(\"Select Receiver\");\n    return;\n  }\n  var data1 = {\n      \"student_id\": student_id,\n      \"message\": message,\n      \"receiver\": receiver\n  }\n  var data = {\n        \"send_sms\": data1\n  }\n\n  var msg_loading='<center><b>Message Sending Processing...Please Do Not Refresh Page or do not close tab</b></center>'\n  set_html(\"message_sending\",msg_loading);\n  loader(\"message_body\",\"120\");\n  get_ajax(get_action_data(\"modal_sm_body\"), data);\n\n}"
  },
  {
    "path": "page/student/student_profile/js/profile1.js",
    "content": "\nid=document.getElementById(\"student_id\").value;\n\nfunction personal_info(){\n\tset_header(\"Personal Info\");\n\tget_data(\"personal_info\");\n}\n\nfunction program(){\n\tset_header(\"Program\");\n\tget_data(\"program\");\n}\n\nfunction payment(){\n\tset_header(\"Payment\");\n\tget_data(\"payment\");\n}\n\nfunction result(){\n\tset_header(\"Result\");\n\tget_data(\"result\");\n}\nfunction message(){\n\tset_header(\"Message\");\n\tget_data(\"message\");\n}\n\nfunction add_program(){\n\n      $.ajax({\n          type: 'POST',\n          url: 'student_profile_action.php',\n          data: {\n              add_program: id\n          },\n          beforeSend: function() {\n              loader(\"add_program_body\");\n          },\n          success: function(response) {\n              document.getElementById(\"add_program_body\").innerHTML = response;\n          }\n      });\n}\n\n\nfunction view_payment_month_info(){\n  $.ajax({\n          type: 'POST',\n          url: 'student_profile_action.php',\n          data: {\n              view_payment_month_info: 1\n          },\n          beforeSend: function() {\n              loader(\"panel_profile_body\");\n          },\n          success: function(response) {\n              document.getElementById(\"panel_profile_body\").innerHTML = response;\n          }\n      });\n}\n\nfunction get_data(per){\n\n      $.ajax({\n          type: 'POST',\n          url: 'student_profile_action.php',\n          data: {\n              student_profile: per,\n              student_id: id\n          },\n          beforeSend: function() {\n              loader(\"panel_profile_body\");\n          },\n          success: function(response) {\n              document.getElementById(\"panel_profile_body\").innerHTML = response;\n          }\n      });\n}\n\n\nfunction save_program(){\n  program_id=document.getElementById(\"select_program1\").value;\n  program_id=parseInt(program_id);\n  batch_id=document.getElementById(\"select_batch\").value;\n  batch_id=parseInt(batch_id);\n  fee1=document.getElementById(\"fee\").value;\n  fee=parseInt(fee1);\n  if(batch_id==-1){\n    alert(\"Please Select Batch\");\n    return;\n  }\n  if(fee1==\"\"){\n    alert(\"Please Fill Fee Box\");\n    return;\n  }\n\n  $('#add_program').modal('hide');\n  //open_dilog_view_program(15);\n\n  $.ajax({\n          type: 'POST',\n          url: 'student_profile_action.php',\n          data: {\n              save_program: id,\n              program_id: program_id,\n              batch_id: batch_id,\n              fee: fee\n          },\n          beforeSend: function() {\n              loader(\"add_program_body\");\n          },\n          success: function(response) {\n            program();\n            success(\"Successfully Add New Program\");\n             // document.getElementById(\"add_program_body\").innerHTML = response;\n          }\n      });\n\n  \n}\n\nfunction open_dilog_delete(id){\n  $('#delete_program').modal('show');\n  document.getElementById(\"delete_id\").value=id;\n}\nfunction delete_program(){\n  \n  program_id=document.getElementById(\"delete_id\").value;\n  $('#delete_program').modal('hide');\n   $.ajax({\n          type: 'POST',\n          url: 'student_profile_action.php',\n          data: {\n              delete_program: program_id\n          },\n          beforeSend: function() {\n              \n          },\n          success: function(response) {\n               program();\n               success(\"Successfully Delete Program\");\n\n          }\n      });\n\n   \n}\n\nfunction edit_program(admit_id){\n  $('#edit_program').modal('show');\n  edit_program_action(admit_id,\"no update\");\n}\n\nfunction edit_program_action(admit_id,msg=\"\"){\n\n   $.ajax({\n          type: 'POST',\n          url: 'student_profile_action.php',\n          data: {\n              edit_program: admit_id\n          },\n          beforeSend: function() {\n              loader(\"edit_program_body\");\n          },\n          success: function(response) {\n              document.getElementById(\"edit_program_body\").innerHTML = response;\n          }\n      });\n\n    if(msg==\"updatee\")\n      document.getElementById(\"msg\").innerHTML=\"<center>Secesscessfully Update</center>\";\n    else \n      document.getElementById(\"msg\").innerHTML=\"\";\n\n  }\n\n\nfunction update_program(admit_id){\n\nbatch_id=document.getElementById(\"edit_batch_id\").value;\nfee1=document.getElementById(\"edit_fee\").value;\nfee=parseInt(fee1);\nif(batch_id==-1){\n alert(\"Please Select Batch\");\n  return;\n}\nif(fee1==\"\"){\n  alert(\"Please Fill Fee Box\");\n  return;\n}\n$('#edit_program').modal('hide');\n   $.ajax({\n          type: 'POST',\n          url: 'student_profile_action.php',\n          data: {\n              update_program: admit_id,\n              update_batch_id:batch_id,\n              update_fee: fee\n          },\n          beforeSend: function() {\n              loader(\"panel_profile_body\");\n          },\n          success: function(response) {\n              //document.getElementById(\"edit_program_body\").innerHTML = response;\n              //edit_program_action(admit_id,\"update\");\n              \n              program();\n              success(\"Successfully Updated Program\");\n\n          }\n      });\n\n}\nfunction open_dilog_view_program(program_id){\n  $('#view_program').modal('show');\n  $.ajax({\n          type: 'POST',\n          url: 'student_profile_action.php',\n          data: {\n              view_program: program_id\n          },\n          beforeSend: function() {\n              loader(\"view_program_body\");\n          },\n          success: function(response) {\n              document.getElementById(\"view_program_body\").innerHTML = response;\n          }\n      });\n}\n\nfunction add_batch(){\n\n  program_id=document.getElementById(\"select_program1\").value;\n  program_id=parseInt(program_id);\n  if(program_id==-1){\n    document.getElementById(\"add_batch_field\").innerHTML = \"\";\n  return;\n  }\n\n      $.ajax({\n          type: 'POST',\n          url: 'student_profile_action.php',\n          data: {\n              add_batch: program_id\n          },\n          beforeSend: function() {\n              loader(\"add_batch_field\");\n          },\n          success: function(response) {\n              document.getElementById(\"add_batch_field\").innerHTML = response;\n          }\n      });\n}\n\n\nfunction set_header(name){\n document.getElementById('profile_option').innerHTML=name;\n}\n\nfunction loader(divname){\n  document.getElementById(divname).innerHTML = \"<center><img style='margin-top:35px' src='http://localhost/project/youth/upload/site_content/processing1.gif' /></center>\";\n}\nfunction close_loader(divname){\n  document.getElementById(divname).innerHTML = \"\";\n}\n\n\nwindow.success = function(msg) {\n    var dom = '<div class=\"top-alert\"><div class=\"alert alert-success-alt alert-dismissable fade in \" role=\"alert\"><i class=\"glyphicon glyphicon-ok\"></i> ' + msg + '<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button></div></div>';\n    var jdom = $(dom);\n    jdom.hide();\n  $(\"body\").append(jdom);\n  jdom.fadeIn();\n  setTimeout(function() {\n    jdom.fadeOut(function() {\n      jdom.remove();\n    });\n  }, 2000);\n}\n\n//setInterval(personal_info, 2000);\nsetTimeout(personal_info, 100);\n\n"
  },
  {
    "path": "page/student/student_profile/js/profile_data.js",
    "content": "var student_id;\n\nvar body=\"panel_profile_body\";\n\nfunction set_profile_data(id){\n   student_id=id;\n}\n\n"
  },
  {
    "path": "page/student/student_profile/js/program.js",
    "content": "\nfunction program() {\n  bar_url=\"student_profile.php?get_id=\"+student_id+\"&tab=program\";\n   window.history.pushState('', '', bar_url);\n  set_html(\"profile_option\",\"Program Panel\");\n\n  var data = {\n        \"get_program_list\": student_id\n    }\n\n    loader(body);\n    get_ajax(get_action_data(body), data);\n\n}\n\nfunction add_program(){\n\t\n\tvar data = {\n        \"add_program\": student_id\n    }\n    \n    modal_open(\"sm\", \"Add Program\");\n    \n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\nfunction edit_program_area(id){\n  \n  var data = {\n        \"edit_program_area\": id\n    }\n    \n    modal_open(\"sm\", \"Add Program\");\n    \n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\nfunction update_program(admit_id){\n  \n  batch_id=get_value(\"edit_batch_id\");\n  if(batch_id==-1){\n        alert(\"Select Program Batch\");\n    return;\n  }\n  var data1={\n      \"admit_id\":admit_id,\n      \"batch_id\":batch_id\n  }\n\n  var data={\n    \"update_program\":data1\n  }\n\n  loader(\"modal_sm_body\");\n  $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           modal_open(\"sm\", \"Program Update Success\",\"close\");\n           success(response);\n           program();\n        }\n    });\n}\n\n\nfunction delete_program_form(id){\n  var data={\n    \"delete_program_form\":id\n  }\n  modal_open(\"sm\", \"Delete Program\");\n    \n  loader(\"modal_sm_body\");\n  get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\nfunction delete_program(id){\n  var data={\n    \"delete_program\":id\n  }\n  loader(\"modal_sm_body\");\n  $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           modal_open(\"sm\", \"Program Update Success\",\"close\");\n           success(response);\n           program();\n        }\n    });\n\n}\n\nfunction add_batch(){\n\tprogram_id=get_value(\"select_program\");\n\tif(program_id==-1){\n\t\tdocument.getElementById(\"add_batch_field\").innerHTML=\"\";\n\t\treturn;\n\t}\n\tvar data = {\n        \"add_batch_field\": program_id\n    }\n\n    loader(\"add_batch_field\");\n    get_ajax(get_action_data(\"add_batch_field\"), data);\n}\n\nfunction save_add_program(){\n\tprogram_id=get_value(\"select_program\");\n\tbatch_id=get_value(\"add_batch\");\n\tif(batch_id==-1){\n        alert(\"Select Program Batch\");\n\t\treturn;\n\t}\n\tvar data1={\n      \"program_id\":program_id,\n      \"batch_id\":batch_id,\n      \"student_id\":student_id\n\t}\n\n\tvar data={\n\t\t\"save_add_program\":data1\n\t}\n  loader(\"modal_sm_body\");\n\t$.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n           modal_open(\"sm\", \"Payment\",\"close\");\n           //document.getElementById(\"res\").innerHTML=response;\n           success(response);\n           program();\n        }\n    });\n}\n\nfunction view_program(admit_id){\n  \n  var data = {\n        \"view_program\": admit_id\n    }\n    \n    modal_open(\"lg\", \"Program Information\");\n    loader(\"modal_lg_body\");\n\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {\n          set_html(\"modal_lg_body\",response)\n           program_view_info(admit_id);\n        }\n    });\n}\n\nfunction program_id_card(admit_id){\n  \n  var data = {\n        \"program_id_card\": admit_id\n    }\n    \n    loader(\"view_program_body\");\n    get_ajax(get_action_data(\"view_program_body\"), data);\n}\n\nfunction program_view_info(admit_id){\n  \n  var data = {\n        \"program_view_info\": admit_id\n    }\n    \n    loader(\"view_program_body\");\n    get_ajax(get_action_data(\"view_program_body\"), data);\n}\n\nfunction send_admission_sms(admit_id){\n  \n  var receiver=get_value(\"select_receiver\");\n\n  if(receiver==-1){\n    alert(\"Please Select Receiver\");\n    return;\n  }\n\n  var data1 = {\n    \"admit_id\": admit_id,\n    \"receiver\": receiver\n  }\n\n  var data = {\n        \"send_admission_sms\": data1\n    }\n\n  var msg_loading='<center><b>Message Sending Processing...Please Do Not Refresh Page or do not close tab</b></center>'\n  set_html(\"message_sending\",msg_loading);\n  loader(\"message_body\",\"140\");\n\n  get_ajax(get_action_data(\"view_program_body\"), data);\n}\n\nfunction send_admission_sms_area(admit_id){\n  \n  var data = {\n        \"send_admission_sms_area\": admit_id\n    }\n    \n    loader(\"view_program_body\");\n    get_ajax(get_action_data(\"view_program_body\"), data);\n}\n\nfunction admission_recept(admit_id){\n  \n  var data = {\n        \"admission_recept\": admit_id\n    }\n    \n    loader(\"view_program_body\");\n    get_ajax(get_action_data(\"view_program_body\"), data);\n}\n\n function printDiv(divName) {\n        \n    var printContents = document.getElementById(divName).innerHTML;\n    var originalContents = document.body.innerHTML;\n    document.body.innerHTML = printContents;\n    window.print();\n    document.body.innerHTML = originalContents;\n    \n        \n  }\n\n"
  },
  {
    "path": "page/student/student_profile/profile.php",
    "content": "\n\n\n\n<?php\n\nif(isset($_GET['get_id'])){\n$flag=0;\n$id=$_GET['get_id'];\nforeach ($student as $key => $info) {\n  $sid=$info['id'];\n $photo=$info['photo'];\n $name=$info['name'];\n $nick=$info['nick'];\n\n\nif($sid==$id){\n$flag=1;\n\n ?>\n <script type=\"text/javascript\">\n   $(document).ready(function() {\n           $('table.display').DataTable();\n      } );\n </script>\n\n\n<div class=\"row\">\n  <div class=\"col-md-3 about_profile\">\n    <div class=\"profile_header\">Profile</div>\n    \n  <div class=\"about_profile_body\" style=\"text-align: center;\">\n    <img src=\"<?php echo \"$photo\" ?>\" class=\"img_side\">\n    <div class=\"info_side\">\n      <div style=\"margin-top: 10px;\"></div>\n      <table width=\"100%\">\n        <tr>\n          <td class=\"td_profile1\">Full Name:</td>\n          <td class=\"td_profile2\"><?php echo \"$name\" ?><br/></td>\n        </tr>\n         <tr>\n          <td class=\"td_profile1\">Nick:</td>\n          <td class=\"td_profile2\"><?php echo \"$nick\" ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_profile1\">ID:</td>\n          <td class=\"td_profile2\"><?php echo \"$id\" ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_profile1\">ID Code:</td>\n          <td class=\"td_profile2\">\n            <img src=\"barcode.php?text=<?php echo \"$id\" ?>\" style=\"width: 100%\" />\n          </td>\n        </tr>\n      </table>\n      \n    </div>\n\n  </div>\n</div>\n\n  <div class=\"col-md-8 panel_profile\">\n    \n    <div style=\"position: static;\">\n<section class=\"buttons\">\n<div class=\"containerr\">\n<div class=\"row\">\n<div class=\"col-sm-12\">\n<div class=\"text-center\" style=\"\">\n\n<div onclick=\"info()\" class=\"nb-btn-circle\">\n   <i class=\"fa fa-home\"></i>\n   <p>Info</p>\n</div>\n\n<div onclick=\"program()\" class=\"nb-btn-circle\">\n   <i class=\"fa fa-home\"></i>\n   <p>Program</p>\n</div>\n\n<div onclick=\"payment()\" class=\"nb-btn-circle\">\n   <i class=\"fa fa-home\"></i>\n   <p>Payment</p>\n</div>\n\n<div onclick=\"result()\" class=\"nb-btn-circle\">\n   <i class=\"fa fa-home\"></i>\n   <p>Result</p>\n</div>\n\n<div onclick=\"message()\" class=\"nb-btn-circle\">\n   <i class=\"fa fa-home\"></i>\n   <p>Message</p>\n</div>\n\n</div>\n\n</div>\n</div>\n</div>\n</section>\n</div>\n\n    <div class=\"profile_header\" id=\"profile_option\">\n    </div>\n    <div class=\"panel_profile_body\" id=\"panel_profile_body\"></div>\n  </div>\n  \n</div>\n\n<input type=\"text\" value=\"<?php echo \"$id\" ?>\" id=\"student_id\" hidden=\"\">\n <?php include \"profile_lib.php\"; ?>\n<script type=\"text/javascript\">\n  set_profile_data(<?php echo $id; ?>);\n</script>\n\n<?php\n\nif(isset($_GET['tab'])){\n  $tab=$_GET['tab'];\n  if($tab==\"payment\")echo \"<script>payment()</script>\";\n  else if($tab==\"program\")echo \"<script>program()</script>\";\n  else echo \"<script>info()</script>\";\n}\nelse echo \"<script>info()</script>\";\n\n?>\n\n\n<?php\n\n\n?>\n\n<div class=\"modal fade student_add\" id=\"student_profile_update\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n   <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n        \n        <div style=\"padding: 0px;\" class=\"modal-body\" style=\"background-color: #ecf0f1\">\n            <?php $student_ob->student_edit_form($id); ?>\n          ?>\n        </div>\n      </div>\n    </div>\n</div>\n\n<script type=\"text/javascript\">\n   function print(divName){\n    var printContents = document.getElementById(divName).innerHTML;\n    w=1150;\n    h=750;\n    var left = (screen.width/2)-(w/2);\n    var top = (screen.height/2)-(h/2);\n    myWindow=window.open('', '', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);;\n    myWindow.document.write(printContents);\n    myWindow.document.close();\n    myWindow.focus();\n    myWindow.print();\n    myWindow.close();\n  }\n</script>\n\n<?php\n\n}\n\n}\n\n}\nif($flag==0) include \"404.php\";\n\n ?>\n\n\n\n"
  },
  {
    "path": "page/student/student_profile/profile_lib.php",
    "content": "\n\n<?php\n\n$js_path=\"page/student/student_profile/js\";\n$css_path=\"page/student/student_profile/css\";\n\n?>\n<!-- Profile Lib -->\n\n<!-- css file -->\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"<?php echo \"$css_path\" ?>/profile.css\">\n\n<!-- js script file -->\n<script type=\"text/javascript\" src=\"<?php echo \"$js_path\" ?>/profile_data.js\"></script>\n<script type=\"text/javascript\" src=\"<?php echo \"$js_path\" ?>/payment.js\"></script>\n<script type=\"text/javascript\" src=\"<?php echo \"$js_path\" ?>/program.js\"></script>\n<script type=\"text/javascript\" src=\"<?php echo \"$js_path\" ?>/info.js\"></script>\n"
  },
  {
    "path": "page/student/student_profile_panel.php",
    "content": "<?php include \"student_profile/profile.php\"; ?>"
  },
  {
    "path": "page/student/text_editor.css",
    "content": ".editor_box{\n\tborder-top-width: 0px;\n\tborder-color: #000000;\n\tborder-style: solid;\n\tborder-bottom-width: 0px;\n}\n.editor_header{\n\tpadding: 10px;\n\tbackground-color: #595959;\n}\n\n.editor_area{\n\t\n\theight: 190px;\n\twidth: 100%;\n\tresize: vertical;\n\tpadding: 12px;\n\tbackground-color: #E2DEDE;\n\tcolor: #000000;\n\tfont-family: cursive;\n\tborder-width: 1px;\n\tborder-color: #B7B7B7;\n\tborder-style: solid;\n\tfont-size: 16px;\n\tfont-weight: bold;\n}\n\n\n\n.btn-group .dropdown-menu a{\n    color:#fff;\n}\n\n.btn-default .dropdown-menu {\n  color: #000 !important;\n}\n.btn-default .dropdown-menu li > a:hover,\n.btn-default .dropdown-menu li > a:focus {\n  background-color: #000 !important;\n  color:#fff !important;\n}\n.btn-group-primary .dropdown-menu {\n  background-color: #3784c5 !important;\n}\n.btn-group-primary .dropdown-menu li > a:hover,\n.btn-group-primary .dropdown-menu li > a:focus {\n  background-color: #428bca !important;\n}\n.btn-group-success .dropdown-menu {\n  background-color: #51b351 !important;\n}\n.btn-group-success .dropdown-menu li > a:hover,\n.btn-group-success .dropdown-menu li > a:focus {\n  background-color: #5cb85c !important;\n}\n.btn-group-info .dropdown-menu {\n  background-color: #4ebbdb !important;\n}\n.btn-group-info .dropdown-menu li > a:hover,\n.btn-group-info .dropdown-menu li > a:focus {\n  background-color: #5bc0de !important;\n}\n.btn-group-warning .dropdown-menu {\n  background-color: #efa640 !important;\n}\n.btn-group-warning .dropdown-menu li > a:hover,\n.btn-group-warning .dropdown-menu li > a:focus {\n  background-color: #f0ad4e !important;\n}\n.btn-group-danger .dropdown-menu {\n  background-color: #d64742 !important;\n}\n.btn-group-danger .dropdown-menu li > a:hover,\n.btn-group-danger .dropdown-menu li > a:focus {\n  background-color: #d9534f !important;\n\n"
  },
  {
    "path": "page/subject/add_subject.php",
    "content": "\n  <div class=\"row\">\n      <div class=\"col-xs-12 col-sm-12\">  \n          <form  action=\"subject_action.php\" autocomplete=\"off\" method=\"POST\">\n      \n  <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Subject Name</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"date\" value=\"\" placeholder=\"Enter Subject Name\"  type=\"text\" name=\"name\"  required=\"\" />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\"></div>\n  </div>\n\n  <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Subject Code</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"date\" value=\"\" placeholder=\"Enter Subject Code\"  type=\"text\" name=\"code\"  required=\"\" />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\"></div>\n  </div>\n          <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save</button>\n        </form>\n      </div>\n</div>\n   \n\n \n"
  },
  {
    "path": "page/subject/subject_list.php",
    "content": "\n<script type=\"text/javascript\" src=\"page/subject/subject_script.js\"></script>\n<center>\n<div class=\"btn-toolbar list-toolbar\">\n    \n     <button class=\"btn btn-primary\" data-title=\"Add Product\" onclick=\"get_subject_form('insert')\"><i class=\"fa fa-plus\"></i> Add Subject</button>\n</div>\n</center>\n<table id=\"datatable\" class=\"table table-striped table-bordered\" cellspacing=\"0\" width=\"100%\">\n            <thead style=\"\">\n            <tr>\n              <th><center></center></th>\n              <th><center>Subject Name</center></th>\n              <th><center>Subject Code</center></th>\n              <th><center>Action</center></th>\n              \n            </tr>\n          </thead>\n          <tbody>\n\n<?php \n \nforeach ($subject as $key => $value) {\n  $subject_name=$value['name'];\n  $subject_code=$value['code'];\n  $id=$value['id'];\n?>\n            <tr>\n             <td style=\"width: 2px;\"><center></center></td>\n              <td><center><?php echo \"$subject_name\"; ?></center></td>\n              <td><center><?php echo \"$subject_code\"; ?></center></td>\n                \n                <td>\n                  <div class=\"btn-toolbar list-toolbar\">\n                    <center>\n                      <button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Update\" data-title=\"Update\" onclick=\"get_subject_form('update',<?php echo \"$id\"; ?>)\" >\n                        <span class=\"glyphicon glyphicon-pencil\"></span>\n                      </button>\n                        <button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" onclick=\"get_subject_form('delete',<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button>\n                      </center>\n                    </div>\n                  </td>\n            </tr>\n            <!-- end edit model -->\n\n<?php } ?>\n          </tbody>\n        </table>\n\n<!-- start Add model -->\n"
  },
  {
    "path": "page/subject/subject_script.js",
    "content": "\nurl=\"subject_action.php\";\nmodal_body=\"modal_sm_body\";\nmodal=\"sm\";\n\nvar action_data={\n  \t'url':url,\n  \t'div':modal_body,\n  \t'load':0\n};\n \nfunction get_subject_form(type,id=0){\n  if(type==\"insert\"){\n  \theader=\"Add Subject\";\n  \tdata_key=\"get_subject_form\";\n    val=1;\n  }\n  else if(type==\"update\"){\n  \theader=\"Update Subject\";\n  \tdata_key=\"update_subject_form\";\n    val=id;\n  }\n  else{\n    header=\"Delete Subject\";\n    data_key=\"delete_subject_form\";\n    val=id;\n  }\n\n  modal_open(modal,header);\n  loader(modal_body);\n\n  var data={\n    [data_key]:val\n  }\n\n  get_ajax(action_data,data);\n}\n\n\nfunction subject_action(type,id=0){\n  \n  delete_type=0;\n  if(type==\"insert\"){\n    data_key=\"insert_subject\";\n    val=0;\n  }\n  else if(type==\"update\"){\n    data_key=\"update_subject\";\n    val=id;\n  }\n  else{\n    data_key=\"delete_subject\";\n    val=id;\n    delete_type=1;\n  }\n\n  if(delete_type==0){\n    var data_val={\n      'id':val,\n    \t'sub_name':get_value(\"sub_name\"),\n    \t'sub_code':get_value(\"sub_code\")\n    }\n    error=filter_data(data_val);\n  }\n  else{\n    var data_val={\n      'id':val\n    }\n    error=0;\n  }\n    \n    var data={\n    \t[data_key]:data_val\n    }\n\t\n\tif(error==0){\n         action_data['load']=1;\n         loader(modal_body);\n         get_ajax(action_data,data);\n\t}\n}\n\n\n\n\nfunction filter_data(data){\n\tname=data['sub_name'];\n\tcode=data['sub_code'];\n\terror=0;\n\tif(name==\"\"){\n\t\talert(\"Enter Subject Name\");\n        error=1;\n\t}\n\telse if(code==\"\"){\n\t\talert(\"Enter Subject Code\");\n\t\terror=1;\n\t}\n\treturn error;\n}\n"
  },
  {
    "path": "page/template/data_table.php",
    "content": "<center>\n<div class=\"btn-toolbar list-toolbar\">\n    <button class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i>Add Subject</button>\n    <button class=\"btn btn-default\">Import</button>\n    <button class=\"btn btn-default\">Export</button>\n  <div class=\"btn-group\">\n  </div>\n</div>\n</center>\n<table id=\"datatable\" class=\"table table-striped table-bordered\" cellspacing=\"0\" width=\"100%\">\n            <thead style=\"background-color: #ecf0f1\">\n            <tr>\n              <th><center>Subject Name</center></th>\n              <th><center>Subject Code</center></th>\n              <th><center>Edit</center></th>\n              <th><center>Delete</center></th>\n            </tr>\n          </thead>\n          <tbody>\n\n<?php \n\nforeach ($subject as $key => $value) {\n  $subject_name=$value['name'];\n  $subject_code=$value['code'];\n?>\n            <tr>\n               \n              <td><center><?php echo \"$subject_name\"; ?></center></td>\n              <td><center><?php echo \"$subject_code\"; ?></center></td>\n                <td><center><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Edit\"><button class=\"btn btn-primary btn-xs\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit\" ><span class=\"glyphicon glyphicon-pencil\"></span></button></p></center></td>\n    <td><center><p data-placement=\"top\" data-toggle=\"tooltip\" title=\"Delete\"><button class=\"btn btn-danger btn-xs\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete\" ><span class=\"glyphicon glyphicon-trash\"></span></button></p></center></td>\n    \n            </tr>\n<?php } ?>\n          </tbody>\n        </table>\n\n\n\n  "
  },
  {
    "path": "page/theme/add_theme.php",
    "content": "<script src=\"tool/color_picker/jscolor.js\"></script>\n\n<style type=\"text/css\">\n\t.get-in-touch {\nposition: relative;\nmargin: 0 auto;\npadding: 30px;\nmax-width: 500px;\nmargin-top: 50px;\nborder-radius: 2px;\nbackground: rgb(255, 255, 255) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAGCAYAAACFIR03AAAAV0lEQVR42tXOMRWAQAwE0RWFDRTg5d47Jeg4Q9gI06RbqlwKil/P6LpXbDCf85AxEBtMGjKG/jyPUHUerfP4nEeoOo/Wedj5pOo8Wudh55Oq82idh51PLxpvled7kLAXAAAAAElFTkSuQmCC) repeat-x;\nbox-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);\n}\n\n.get-in-touch input[type=text],.get-in-touch input[type=email], .get-in-touch textarea {\nbackground: rgb(235, 241, 245);\ncolor: rgb(36, 39, 41);\n}\n.get-in-touch  input:focus, .get-in-touch  textarea:focus {\noutline: 0;\nbackground: #FFF;\n}\n</style>\n\n\n    <div class=\"row\">\n        <div class=\"col-md-10\">\n            <form action=\"theme_action.php\" method=\"post\" class=\"form\">\n            <div class=\"get-in-touch\">\n                <h3 class=\"text-center\">\n                    Add New Theme</h3>\n                <div class=\"form-group\">\n                \t<label for=\"exampleInputEmail1\">Theme Name</label>\n                    <input type=\"text\" class=\"form-control\" name=\"name\" id=\"name\" placeholder=\"Name\" required/>\n                </div>\n\n                <div class=\"form-group\">\n                \t<label for=\"exampleInputEmail1\">bg_color</label>\n                     <input class=\"jscolor form-control\" name=\"bg_color\" value=\"EDE6EC\" required=\"\">\n                </div>\n                <div class=\"form-group\">\n                \t<label for=\"exampleInputEmail1\">sidebar_hover</label>\n                    <input class=\"jscolor form-control\" name=\"sidebar_hover\" value=\"EDE6EC\" required=\"\">\n                </div>\n                <div class=\"form-group\">\n                \t<label for=\"exampleInputEmail1\">sidebar_list</label>\n                    <input class=\"jscolor form-control\" name=\"sidebar_list\" value=\"EDE6EC\" required=\"\">\n                </div>\n                <div class=\"form-group\">\n                \t<label for=\"exampleInputEmail1\">sidebar_list_hover</label>\n                    <input class=\"jscolor form-control\" name=\"sidebar_list_hover\" value=\"EDE6EC\" required=\"\">\n                </div>\n                <div class=\"form-group\">\n                \t<label for=\"exampleInputEmail1\">font_color</label>\n                    <input class=\"jscolor form-control\" name=\"font_color\" value=\"EDE6EC\" required=\"\">\n                </div>\n                <input type=\"submit\" class=\"btn btn-danger btn-sm btn-block\" name=\"insert\" value=\"Save\">\n                \n            </div>\n            </form>\n        </div>\n    </div>\n\n"
  },
  {
    "path": "page/theme/theme.php",
    "content": "\n<script type=\"text/javascript\">\n\tfunction add_theme(){\n\t\tvar x = document.getElementById(\"add_theme\");\n\t\tper=x.style.display;\n     \tif(per==\"none\")x.style.display = \"block\";\n     \telse x.style.display = \"none\";\n\t}\n\tfunction  edit_theme(id) {\n\t\tdiv_id=\"edit_area_\"+id;\n\t\tvar x = document.getElementById(div_id);\n\t\tper=x.style.display;\n     \tif(per==\"none\")x.style.display = \"block\";\n     \telse x.style.display = \"none\";\n\t}\n</script>\n\n<button class=\"btn btn-primary\" onclick=\"add_theme()\"><i class=\"fa fa-plus\"></i>Add Theme</button>\n\n<div id=\"add_theme\" style=\"display: none;\">\n    <?php include \"add_theme.php\"; ?>   \n</div>\n\n<div class=\"row\" style=\"\">\n\t\n<?php\n\n$uid=$login_user['id'];\n$theme=$login_user['theme'];\nforeach ($theme_info as $key => $value) {\n\t$bg_color=$value['bg_color'];\n\t$font_color=$value['font_color'];\n\t$name=$value['name'];\n\t$id=$value['id'];\n\n?>\n<style type=\"text/css\">\n\t\n\t.header_theme{\n      \n      height: 150px;\n      padding-top: 60px;\n\n      font-weight: bold;\n      cursor: pointer;\n      font-size: 20px;\n      border-radius: 5% 5% 0% 0%;\n\t}\n\t.img_src{\n\t\twidth: 60px;\n\t\theight: 60px;\n\t}\n\t.active{\n\t\twidth: 100%;\n        background-color: #27ae60;\n\t}\n\t.edit{\n      \n        background-color: #2980b9;\n\t}\n\t.delete{\n        \n        background-color: #e74c3c;\n\t}\n\t.edit,.delete,.active{\n\t\tpadding: 5px;\n\t\tcursor: pointer;\n\t\tfont-weight: bold;\n\t\tcolor: #ffffff;\n\t}\n\t\n\n</style>\n<script type=\"text/javascript\">\n\tfunction fun(uid,theme_id){\n\n\t\t$.ajax({\n          type: 'POST',\n          url: 'theme_action.php',\n          data: {\n              update: uid,\n              theme: theme_id\n          },\n          beforeSend: function() {\n              //loader(\"loading\");\n          },\n          success: function(response) {\n             location.reload();\n   \n          }\n      });\n\t}\n</script>\n\n<form action=\"\" method=\"post\">\n<input type=\"text\" name=\"\" id=\"color_id\" hidden=\"\">\n\t<div class=\"col-md-3 col-sm-3\" style=\"margin-top: 15px; margin-right: 0px;\">\n\t\t<div class=\"theme\">\n\t\t\t<div class=\"header_theme\" style=\"background-color: <?php echo \"$bg_color\"; ?>; color: <?php echo \"$font_color\"; ?>\"onclick=\"fun(<?php echo \"$uid,$id\"; ?>)\" >\n\t\t\t<center>\t\n\t\t\t<?php echo \"$name\"; ?>\n\t\t\t<?php\n           if($theme==$id){\n           \t?>\n           \t\n           \t<span style=\"font-size: 40px\" class=\"glyphicon glyphicon-ok-circle\" aria-hidden=\"true\"></span>\n\n           \n           <?php\n\t\t\t}\n\t\t\t?>\n\t\t</center>\t\n\t\t\n\t\t\t</div>\n\t\t\n\t\t\t<div class=\"col-md-6 col-sm-6 edit\" onclick=\"edit_theme(<?php echo \"$id\"; ?>)\">Edit</div>\n\n\t\t\t<div class=\"col-md-6 col-sm-6 delete\">Delete</div>\n\n\n\t\t\t<div id=\"edit_area_<?php echo \"$id\"; ?>\" class=\"col-md-12\" style=\"display: none;\">\n\t\t\t\tdsaf\n\t\t\t\tsdaff\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n</form>\n\n\n<?php } ?>\n\n</div>\n\n\n\n\n"
  },
  {
    "path": "page/theme/theme_list.php",
    "content": "<div class=\"row\" style=\"\">\n\t\n<?php\n\n$uid=$login_user['id'];\n$theme=$login_user['theme'];\nforeach ($theme_info as $key => $value) {\n\t$bg_color=$value['bg_color'];\n\t$font_color=$value['font_color'];\n\t$name=$value['name'];\n\t$id=$value['id'];\n\n?>\n<style type=\"text/css\">\n\t\n\t.header_theme{\n      \n      height: 150px;\n      padding-top: 60px;\n\n      font-weight: bold;\n      cursor: pointer;\n      font-size: 20px;\n      border-radius: 100%;\n\t}\n\t.img_src{\n\t\twidth: 60px;\n\t\theight: 60px;\n\t}\n\t.active{\n\t\t\n\t}\n\t.edit{\n      \n        background-color: #2980b9;\n\t}\n\t.delete{\n        \n        background-color: #e74c3c;\n\t}\n\t.edit,.delete,.active{\n\t\tpadding: 5px;\n\t\tcursor: pointer;\n\t\tfont-weight: bold;\n\t\tcolor: #ffffff;\n\t}\n\t\n\n</style>\n\n<div id=\"response_theme\"></div>\n<script type=\"text/javascript\">\n\tfunction themes_select(uid,theme_id){\n\n\t\t$.ajax({\n          type: 'POST',\n          url: 'theme_action.php',\n          data: {\n              update: uid,\n              theme: theme_id\n          },\n          beforeSend: function() {\n              //loader(\"loading\");\n          },\n          success: function(response) {\n             //location.reload();\n             set_html(\"response_theme\",response);\n   \n          }\n      });\n\t}\n</script>\n\n\n<input type=\"text\" name=\"\" id=\"color_id\" hidden=\"\">\n\t<div class=\"col-md-3 col-sm-3\" style=\"margin-top: 15px; margin-right: 0px;\">\n\t\t<div class=\"theme\">\n\t\t\t<div class=\"header_theme\" style=\"background-color: <?php echo \"$bg_color\"; ?>; color: <?php echo \"$font_color\"; ?>\"onclick=\"themes_select(<?php echo \"$uid,$id\"; ?>)\" >\n\t\t\t<center>\t\n\t\t\t\n\t\t\t<?php if($theme==$id){ ?>\n           \t<span style=\"font-size: 40px\" class=\"glyphicon glyphicon-ok-circle\" aria-hidden=\"true\"></span>\n           <?php } ?>\n\t\t</center>\t\n\t\t\n\t\t\t</div>\n\t\t\n\t\t\n\t\t</div>\n\t</div>\n\n\n\n<?php } ?>\n\n</div>\n\n\n\n\n"
  },
  {
    "path": "page/user/add_user.php",
    "content": "\n<style type=\"text/css\">\n\t.img_up{\n  height: 140px;\n  width: 135px;\n  margin-top: 15px;\n  border-style: solid;\n  border-color: #ffffff;\n  border-width: 2px;\n}\n.box_btn{\n  background-color: var(--bg-color);\n  padding: 15px;\n  color: var(--font-color);\n  border-width: 0px;\n  margin-top: 20px;\n  width: 70%;\n}\n\n</style>\n\n\n<form action=\"\" id=\"add_profile\" method=\"post\" enctype=\"multipart/form-data\">\n\t<input type=\"text\" id=\"up_id\" name=\"up_id\" hidden=\"\">\n\n\t\t\t<div class='form-group'>\n                <label class='control-label' for='inputName'><b>User Name</b></label>\n                <div class='input-group'>\n                  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span>     \n                  <input class='form-control' data-error='' id='up_uname' value='' placeholder=''  type='text' name='uname'/>\n                </div>  \n                <div id='err_product_date' class='error'></div>\n              </div>\n<?php\n//$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n\t\t$site->form_input(\"Full Name\",\"fname\",\"up_full_name\");\n\t\t$site->form_input(\"Email\",\"email\",\"up_email\");\n\t\t$site->form_input(\"Phone\",\"phone\",\"up_phone\",\"number\");\n\t\t$site->form_input(\"Address\",\"address\",\"up_address\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n\n?>\n\n\t\t\t<div class='form-group'>\n              <label class='control-label' for='inputName'><b>Gender</b></label>\n              <div class='input-group'>\n                <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n                <select class='form-control'  name='gender' id='up_gender' class='cs-select cs-skin-border' required=\"\">\n                  <option value=\"Male\">Male</option>\n                  <option value=\"Female\">Female</option>\n                </select>\n              </div>\n            </div>\n\n            <div class=\"form-group upload_body\" style=\"\">\n                  <label class=\"control-label\" for=\"inputName\"><b>Upload Photo</b></label>\n                  <div class=\"input-group\">\n                    <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-camera\"></i></span>\n                    <input type=\"file\" class=\"form-control\" id=\"image\" name=\"image\" accept=\"image/*\"  onchange=\"loadFile(event)\" />\n                    <br/>\n                  </div>\n                  <div id=\"err_product_image\" class=\"error\"></div>\n                  <img id=\"add_thumbnil\" class=\"img_up\" style=\"\"  src=\"<?php echo \"upload/student_photo/avatar.png\";?>\" alt=\"image\"/>\n            </div> \n\n                <script>\n                  var loadFile = function(event) {\n                      var reader = new FileReader();\n                      reader.onload = function(){\n                      var output = document.getElementById('add_thumbnil');\n                      output.src = reader.result;\n                    };\n                    reader.readAsDataURL(event.target.files[0]);\n                  };\n                </script> \n\n                 <center>\n        <button class=\"box_btn\" name=\"insert\" type=\"submit\" id=\"update_btn\" style=\"\"><span class=\"glyphicon glyphicon-floppy-save\"></span>Update Information</button>\n        </center>\n</form>\n"
  },
  {
    "path": "page/user/edit_profile.php",
    "content": "\n<style type=\"text/css\">\n\t.img_up{\n  height: 140px;\n  width: 135px;\n  margin-top: 15px;\n  border-style: solid;\n  border-color: #ffffff;\n  border-width: 2px;\n}\n.box_btn{\n  background-color: var(--bg-color);\n  padding: 15px;\n  color: var(--font-color);\n  border-width: 0px;\n  margin-top: 20px;\n  width: 70%;\n}\n\n</style>\n\n<div id=\"loader_update\"></div>\n<div style=\"padding: 5px;display: none;\" id=\"update_modal_area\">\n<form action=\"\" id=\"update_profile\" method=\"post\" enctype=\"multipart/form-data\">\n\t<input type=\"text\" id=\"up_id\" name=\"up_id\" hidden=\"\">\n\n\t\t\t<div class='form-group'>\n                <label class='control-label' for='inputName'><b>User Name</b></label>\n                <div class='input-group'>\n                  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span>     \n                  <input class='form-control' data-error='' id='up_uname' value='' placeholder=''  type='text' name='uname' readonly/>\n                </div>  \n                <div id='err_product_date' class='error'></div>\n              </div>\n<?php\n//$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n\t\t$site->form_input(\"Full Name\",\"fname\",\"up_full_name\");\n\t\t$site->form_input(\"Email\",\"email\",\"up_email\");\n\t\t$site->form_input(\"Phone\",\"phone\",\"up_phone\",\"number\");\n\t\t$site->form_input(\"Address\",\"address\",\"up_address\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n\n?>\n\n\t\t\t<div class='form-group'>\n              <label class='control-label' for='inputName'><b>Gender</b></label>\n              <div class='input-group'>\n                <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n                <select class='form-control'  name='gender' id='up_gender' class='cs-select cs-skin-border' required=\"\">\n                  <option value=\"Male\">Male</option>\n                  <option value=\"Female\">Female</option>\n                </select>\n              </div>\n            </div>\n\n            <div class=\"form-group upload_body\" style=\"\">\n                  <label class=\"control-label\" for=\"inputName\"><b>Upload Photo</b></label>\n                  <div class=\"input-group\">\n                    <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-camera\"></i></span>\n                    <input type=\"file\" class=\"form-control\" id=\"image\" name=\"image\" accept=\"image/*\"  onchange=\"loadFile(event)\" />\n                    <br/>\n                  </div>\n                  <div id=\"err_product_image\" class=\"error\"></div>\n                  <img id=\"add_thumbnil\" class=\"img_up\" style=\"\"  src=\"<?php echo \"upload/student_photo/avatar.png\";?>\" alt=\"image\"/>\n            </div> \n\n                <script>\n                  var loadFile = function(event) {\n                      var reader = new FileReader();\n                      reader.onload = function(){\n                      var output = document.getElementById('add_thumbnil');\n                      output.src = reader.result;\n                    };\n                    reader.readAsDataURL(event.target.files[0]);\n                  };\n                </script> \n\n                 <center>\n        <button class=\"box_btn\" name=\"insert\" type=\"submit\" id=\"update_btn\" style=\"\"><span class=\"glyphicon glyphicon-floppy-save\"></span>Update Information</button>\n        </center>\n\n\n\n</form>\n</div>"
  },
  {
    "path": "page/user/user_add_script.js",
    "content": "$(document).ready(function (e) {\n  set_update_area();\n  $(\"#update_profile\").on('submit',(function(e) {\n    e.preventDefault();\n    $.ajax({\n      url: \"user_action.php\",\n      type: \"POST\",        \n      data: new FormData(this), \n      contentType: false,  \n      cache: false,             \n      processData:false,      \n      beforeSend: function() {\n        document.getElementById(\"update_btn\").disabled=true;\n        document.getElementById(\"update_btn\").innerHTML=\"<div class='lds-dual-ring'></div>\";      \n      },\n      success: function(data){\n        var data = JSON.parse(data);\n        window.location.href = 'user_info.php?user_id='+data.id;\n    }\n     });\n  })); \n\n});"
  },
  {
    "path": "page/user/user_info.js",
    "content": "$(document).ready(function (e) {\n  //set_update_area();\n  $(\"#update_profile\").on('submit',(function(e) {\n    e.preventDefault();\n    $.ajax({\n      url: \"user_action.php\",\n      type: \"POST\",        \n      data: new FormData(this), \n      contentType: false,  \n      cache: false,             \n      processData:false,      \n      beforeSend: function() {\n        document.getElementById(\"update_btn\").disabled=true;\n        document.getElementById(\"update_btn\").innerHTML=\"<div class='lds-dual-ring'></div>\";      \n      },\n      success: function(data){\n        var data = JSON.parse(data);\n        window.location.href = 'user_info.php?user_id='+data.id;\n    }\n     });\n  })); \n\n});\n\nfunction update_password(){\n  \n  $('#update_password').modal('show');\n\n  load_old_pass();\n}\n\nfunction get_user_data(){\n  uid=document.getElementById('uid').value;\n  $.ajax({\n          type: 'POST',\n          url: 'user_action.php',\n          data: {\n              get_user_data: uid\n          },\n          beforeSend: function() {\n              \n          },\n          success: function(data) {\n\n              var data = JSON.parse(data);\n              set_data_field(data);\n          }\n      });\n}\n\nfunction set_data_field(data){\n  uid=document.getElementById('uid').value;\n  set_data(\"up_id\",uid);\n  set_data(\"up_uname\",data.uname);\n  set_data(\"up_full_name\",data.fname);\n  set_data(\"up_email\",data.email);\n  set_data(\"up_phone\",data.phone);\n  var element = document.getElementById(\"up_gender\");\n    element.value = data.gender;\n  set_data(\"up_address\",data.address);\n  document.getElementById(\"add_thumbnil\").src=data.photo;\n  \n}\n\nfunction set_data(id,text){\n  document.getElementById(id).value=text;\n}\n\nfunction set_update_area(){\n  uid=document.getElementById('uid').value;\n  lid=document.getElementById('login_id').value;\n  if(uid==lid)document.getElementById('update_area').style.display=\"block\";\n}\n\nfunction load_old_pass(){\n   $.ajax({\n          type: 'POST',\n          url: 'user_action.php',\n          data: {\n              pass_field: \"old\"\n          },\n          beforeSend: function() {\n              loader(\"update_password_body\");\n          },\n          success: function(response) {\n              document.getElementById(\"update_password_body\").innerHTML = response;\n          }\n      });\n}\n\n\nfunction next_step_press(){\n  old_pass1=document.getElementById(\"old_pass\").value;\n  uid=document.getElementById('uid').value;\n  $.ajax({\n          type: 'POST',\n          url: 'user_action.php',\n          data: {\n              uid:uid,\n              old_pass: old_pass1\n          },\n          beforeSend: function() {\n              loader(\"update_password_body\");\n          },\n          success: function(data) {\n            var data = JSON.parse(data);\n            \n            if(data.msg==1){\n              document.getElementById(\"incorrect_pass\").style.display=\"none\";\n              load_new_pass();\n            }\n            else{\n              load_old_pass();\n              document.getElementById(\"incorrect_pass\").style.display=\"block\";\n\n            }\n          }\n      });\n}\n\nfunction load_new_pass(){\n   $.ajax({\n          type: 'POST',\n          url: 'user_action.php',\n          data: {\n              pass_field: \"new\"\n          },\n          beforeSend: function() {\n              loader(\"update_password_body\");\n          },\n          success: function(response) {\n              document.getElementById(\"update_password_body\").innerHTML = response;\n          }\n      });\n}\n\nfunction save_password(){\n  uid=document.getElementById('uid').value;\n  pass=document.getElementById('new_pass1').value;\n  pass2=document.getElementById('new_pass2').value;\n  if(pass!=pass2){\n    document.getElementById(\"update_pass_btn\").disabled=\"true\";\n    return;\n  }\n\n   $.ajax({\n          type: 'POST',\n          url: 'user_action.php',\n          data: {\n              pass_user:uid,\n              save_password: pass\n          },\n          beforeSend: function() {\n              loader(\"update_password_body\");\n          },\n          success: function(response) {\n              $('#update_password').modal('hide');\n              success(\"Password Is Successfully Updated\");\n          }\n      });\n}\n\nfunction new_pass_in(){\n  var btn = document.getElementById(\"update_pass_btn\");\n  pass1=document.getElementById(\"new_pass1\").value;\n  pass2=document.getElementById(\"new_pass2\").value;\n  val=pass1+pass2;\n  if(pass1==\"\" && pass2==\"\") btn.disabled = true;\n  else if(pass1!=pass2) btn.disabled = true;\n  else btn.disabled = false;\n}\n\nfunction update_profile(){\n  loader(\"loader_update\");\n$('#update_profile_modal').modal('show');\n get_user_data();\n close_loader(\"loader_update\");\n document.getElementById(\"update_modal_area\").style.display=\"block\";\n \n}\n\n\nfunction loader(divname){\n  document.getElementById(divname).innerHTML = \"<center><img style='margin-top:35px' src='upload/site_content/processing1.gif' /></center>\";\n}\nfunction close_loader(divname){\n  document.getElementById(divname).innerHTML = \"\";\n}\n\nwindow.success = function(msg) {\n    var dom = '<div class=\"top-alert\"><div class=\"alert alert-success-alt alert-dismissable fade in \" role=\"alert\"><i class=\"glyphicon glyphicon-ok\"></i> ' + msg + '<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button></div></div>';\n    var jdom = $(dom);\n    jdom.hide();\n  $(\"body\").append(jdom);\n  jdom.fadeIn();\n  setTimeout(function() {\n    jdom.fadeOut(function() {\n      jdom.remove();\n    });\n  }, 2000);\n}"
  },
  {
    "path": "page/user/user_info.php",
    "content": "\n\n<?php\n\nif(isset($_GET['user_id'])){\n $uid=$_GET['user_id'];\n $cheikh=$user_ob->cheikh_user($uid);\n if($cheikh==1){\n$lid=$login_user['id'];\n$info=$user[$uid];\n$uname=$info['uname'];\n$fname=$info['fname'];\n$photo=$info['photo'];\n$email=$info['email'];\n$address=$info['address'];\n$gender=$info['gender'];\n$phone=$info['phone'];\n$permission=$info['permit'];\n\n?>\n\n<input type=\"number\" id=\"uid\" value=\"<?php echo \"$uid\"; ?>\" hidden>\n<input type=\"number\" id=\"login_id\" value=\"<?php echo \"$lid\"; ?>\" hidden>\n\n<script type=\"text/javascript\" src=\"page/user/user_info.js\"></script>\n\n <div class=\"row\">\n      <div class=\"col-md-5  toppad  pull-right col-md-offset-3 \">\n           \n      </div>\n        <div class=\"col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xs-offset-0 col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad  box\" >\n   \n          <div class=\"panel panel-info\">\n            <div class=\"panel_heading\">\n              <?php echo \"$uname\"; ?>\n            </div>\n            <div class=\"panel-bodyy\">\n              <div class=\"row info_box\" id=\"data_body\">\n                <div class=\"col-md-3 col-lg-3 \" align=\"center\"> \n                  <img id=\"photo\" alt=\"User Pic\" src=\"<?php echo \"$photo\"; ?>\" class=\"img_circle \"> \n                </div>\n                \n                <div class=\"col-md-9 col-lg-9\"> \n                  <table class=\"table table-user-information\">\n                    <tbody>\n                      <tr>\n                        <td>Full Name:</td>\n                        <td id=\"fname\"><?php echo \"$fname\"; ?></td>\n                      </tr>\n                      <tr>\n                        <td>Email:</td>\n                        <td id=\"email\"><?php echo \"$email\"; ?></td>\n                      </tr>\n                      <tr>\n                        <td>Phone</td>\n                        <td id=\"phone\"><?php echo \"$phone\"; ?></td>\n                      </tr>\n                   \n                         <tr>\n                             <tr>\n                        <td>Gender:</td>\n                        <td id=\"gender\"><?php echo \"$gender\"; ?></td>\n                      </tr>\n                        <tr>\n                        <td>Address:</td>\n                        <td id=\"address\"><?php echo \"$address\"; ?></td>\n                      </tr>\n                      <tr>\n                        <td>Permission:</td>\n                        <td id=\"permission\"><?php echo \"$permission\"; ?></td>\n                      </tr>\n                    </tbody>\n                  </table>\n                </div>\n              </div>\n            </div>\n\n         <?php if($user_id==$uid){ ?>   \n          <div id=\"update_area\" class=\"panel_footer\" style=\"display: block;\"> \n          <center>\n                         <div class=\"bottom\">\n            <ul class=\"ul_cla\">\n            <center>\n            <li class=\"li_cla\" onclick=\"update_profile()\" style=\"margin-left: 29%\">\n                    <div class=\"btn btn_custom  btn-twitter btn-sm\">\n                        <i class=\"fa fa-pencil\"></i>\n                    </div><br/>\n                    <div class=\"font_li\">Edit Profile</div>\n             </li>\n              <li class=\"li_cla\" onclick=\"update_password()\">     \n                    <div class=\"btn btn_custom  btn-sm\" rel=\"publisher\"\n                       >\n                        <i class=\"fa fa-lock\"></i>\n                    </div><br/>\n                    <div class=\"font_li\">Update Password</div>\n                </li>    \n                <li class=\"li_cla\">\n                  <div class=\"btn btn_custom btn-sm\" rel=\"publisher\">\n                        <i class=\"fa fa-flag\"></i>\n                    </div>\n                    <br/>\n                    <div class=\"font_li\">Activity</div>\n                  </li>\n                <li class=\"li_cla\">\n                <a class=\"btn btn_custom btn-sm\" rel=\"publisher\" href=\"logout.php\">\n                        <i class=\"glyphicon glyphicon-log-out\"></i>\n                    </a>\n                    <br/>\n                    <div class=\"font_li\">Logout</div>\n                </li>\n                </center>\n            </ul>        \n                </div>\n              </center>\n                    </div>\n\n            <?php } ?>        \n            \n          </div>\n        </div>\n      </div>\n\n<style type=\"text/css\">\n  \n\n.ul_cla {\n    list-style-type: none;\n    margin: 0;\n    padding: 0;\n    overflow: hidden;\n    }\n\n.li_cla {\n    float: left;\n    margin-left: 10px;\n    color: #000000;\n    font-size: 10px;\n    cursor: pointer;\n}\n\n\n.box{\n \n    padding: 5px 5px 0px 5px;\n    border: 1px solid #BFBFBF;\n    box-shadow: 30px 30px 15px #aaaaaa;\n}\n\n.info_box{\n padding-left: 15px;\n\n}\n\n .btn_custom {\n  padding: 5px;\n  height: 50px;\n  width: 50px;\n  border-radius: 50%;\n  font-size: 25px;\n  border-width: 1px;\n  border-color: #ffffff;\n  border-style: solid;\n  text-align: center;\n  color: var(--font-color);\n  background-color: var(--bg-color);\n }\n\n .btn_custom:hover{\n  padding: 5px;\n   height: 60px;\n   width: 60px;\n   border-radius: 50%;\n   font-size: 30px;\n   background-color: var(--bg-color);\n   color: #eeeeee;\n   text-align: center;\n }\n\n.panel_heading{\n  background-color: var(--bg-color);\n  padding: 15px;\n  color: var(--font-color);\n  \n  font-size: 20px;\n}\n\n.img_circle{\n  border-radius: 50%;\n  background-color: #000000;\n  margin-top: 50%;\n  height: 140px;\n  width: 140px;\n  border-style: solid;\n  border-width: 1px;\n  border-color: var(--bg-color);\n}\n\n.panel_footer{\n\n  border-width: 1px 0px 0px 0px;\n  border-style: solid;\n  border-color: var(--bg-color);\n  background-color: #dfe6e9;\n  height: 85px;\n  padding: 7px;\n  color: var(--font-color);\n  font-weight: bold;\n  font-size: 18px;\n}\n.modal_header{\n  background-color: var(--bg-color);\n  padding: 15px;\n  color: var(--font-color);\n  font-size: 18px;\n}\n.update_password_body{\n  background-color: #bdc3c7;\n  color: #000000;\n  padding: 10px;\n}\n.input_field{\n    padding: 5px;\n    width: 70%;\n    margin-bottom: 5px;\n    \n    font-size: 15px;\n  }\n  .text_in{\n    text-align: center;\n    font-weight: bold;\n    font-size: 15px;\n  }\n\n  .top-alert { \n  position: fixed;\n  top: 0px;\n  width: 100%;\n  z-index: 100000;\n  left: 0;\n  padding: 50px;\n  display: inline-block;\n  text-align: center;\n}\n.top-alert .alert {\n  width: auto !important;\n  height: 100%;\n  display: inline;\n  position: relative;\n  margin: 0;\n}\n.top-alert .alert .close {\n  position: absolute;\n  top: 11px;\n  right: 10px;\n  color: inherit;\n}\n\n.alert-purple { border-color: #694D9F;background: #694D9F;color: #fff; }\n.alert-info-alt { border-color: #B4E1E4;background: #81c7e1;color: #fff; }\n.alert-danger-alt { border-color: #B63E5A;background: #E26868;color: #fff; }\n.alert-warning-alt { border-color: #F3F3EB;background: #E9CEAC;color: #fff; }\n.alert-success-alt { \n  border-color: #19B99A;\n  background: #20A286;\n  color: #fff; \n  padding: 20px;\n  float: right;\n  border-radius: 15px;\n}\n\n.alert a {color: gold;}\n\n/*animation loder*/\n.lds-dual-ring {\n  display: inline-block;\n  width: 50px;\n  height: 50px;\n}\n.lds-dual-ring:after {\n  content: \" \";\n  display: block;\n  width: 46px;\n  height: 46px;\n  margin: 1px;\n  border-radius: 50%;\n  border: 5px solid #fff;\n  border-color: #fff transparent #fff transparent;\n  animation: lds-dual-ring 1.2s linear infinite;\n}\n@keyframes lds-dual-ring {\n  0% {\n    transform: rotate(0deg);\n  }\n  50% {\n    transform: rotate(300deg);\n  }\n  100% {\n    transform: rotate(600deg);\n  }\n}\n\n\n</style>\n\n<!-- Start Delete Model -->\n<div class=\"modal small fade\" id=\"update_password\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal_header\">\n            <button type=\"button\" class=\"close\" style=\"color: #ffffff\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n            Update Password\n    </div>\n    <div class=\"update_password_body\">\n      <div id=\"incorrect_pass\" style=\"text-align: center;display: none; color: red\">Your Current Password Is Incorrect</div>\n      <div id=\"update_password_msg\"></div>\n      <div id=\"update_password_body\"></div>\n    </div>\n\n    </div>\n</div>\n<!-- End Delete Model -->\n\n<?php } } ?>\n\n<!-- Start Delete Model -->\n<div class=\"modal fade\" id=\"update_profile_modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal_header\">\n            <button type=\"button\" class=\"close\" style=\"color: #ffffff\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n            Update Profile\n    </div>\n    <div class=\"update_password_body\">\n      <?php include 'page/user/edit_profile.php'; ?>\n    </div>\n\n    </div>\n</div>\n\n"
  },
  {
    "path": "page/user/user_list/css/style.css",
    "content": "\t.user_list_body{\n\t\tbackground-color: #ffffff;\n\t\tborder-radius: 5px;\n\t\t\n\t}\n\t.list_header{\n\t\tbackground-color: var(--bg-color);\n\t\tcolor: var(--font-color);\n\t\tpadding: 14px;\n\t\tborder-radius: 5px 5px 0px 0px;\n\t\tfont-weight: bold;\n\t\tfont-size: 15px;\n\n\t}\n\t.list_body{\n\t\theight: auto;\n\t\tpadding: 15px;\n\t}\n\n\t.nav-sidebar { \n    width: 100%;\n    padding: 8px 0; \n    border-right: 0px solid #ddd;\n}\n.nav_button{\n\tcursor: default;\n    background-color: var(--bg-color);\n  \tcolor: var(--font-color);\n    border-radius: 10px;\n    margin: 0px 0px 2px 0px; \n    padding: 13px;\n    cursor: pointer;\n    font-weight: bold;\n} \n\n.nav_button:hover{\n  background-color: rgba(0,0,0,0.6);\n  color: var(--font-color);\n}\n.user_active{\n  background-color: rgba(0,0,0,0.6);\n  color: var(--font-color);\n}\n\n.nav_button_active{\n  font-size: 16px;\n  background-color: var(--bg-color);\n  color: var(--font-color);\n}\n"
  },
  {
    "path": "page/user/user_list/js/user_list.js",
    "content": "\nurl=\"user_action.php\";\nmodal_body=\"list_body\";\nmodal=\"md\";\n\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': 0\n    }\n    return data;\n}\n\n\n\nfunction add_user(){\n  \n  \n  var data={\n  \t\"add_user\": 1\n  }\n\n  modal_open(modal, \"Add User\");\n  loader(\"modal_md_body\");\n  get_ajax(get_action_data(\"modal_md_body\"),data);\n}\n\nfunction get_user_list(type){\n  bar_url=\"user_list.php?type=\"+type;\n  window.history.pushState('', '', bar_url);\n  \n  var data={\n  \t\"get_user_list\": type\n  }\n  active_button();\n  header=\"<span class='glyphicon glyphicon-user'></span> \"+type+\" User List\";\n  set_html(\"list_header\",header);\n  loader(modal_body);\n  get_ajax(get_action_data(),data);\n\n}\n\n\nfunction active_button(){\n  // Get the container element\nvar btnContainer = document.getElementById(\"btn_sidebar\");\n\n// Get all buttons with class=\"btn\" inside the container\nvar btns = btnContainer.getElementsByClassName(\"nav_button\");\n\n\n// Loop through the buttons and add the active class to the current/clicked button\nfor (var i = 0; i < btns.length; i++) {\n  btns[i].addEventListener(\"click\", function() {\n    \n    var current = document.getElementsByClassName(\"user_active\");\n    if (current.length > 0) { \n      current[0].className = current[0].className.replace(\" user_active\", \"\");\n    }\n    \n    this.className += \" user_active\";\n  });\n}\n\n}"
  },
  {
    "path": "page/user/user_list/side_bar.php",
    "content": "\n\n<nav class=\"nav-sidebar\">\n      <ul class=\"nav\">\n                    \n        <li onclick=\"add_user()\" class=\"nav_button\"><span class='glyphicon glyphicon-plus'></span> Add User</li>\n        <div id=\"btn_sidebar\">\n        \t<li onclick=\"get_user_list('all')\" class=\"nav_button\"><span class=\"glyphicon glyphicon-user\"></span> All User List</li>\n        \t<li onclick=\"get_user_list('active')\"class=\"nav_button\"><span class=\"glyphicon glyphicon-user\"></span> Active User List</li>\n        \t<li onclick=\"get_user_list('deactive')\" class=\"nav_button\"><span class=\"glyphicon glyphicon-user\"></span> Deactive User List</li>\n        \t<li onclick=\"get_user_list('techserm')\" class=\"nav_button\"><span class=\"glyphicon glyphicon-user\"></span> TechSerm User List</li>\n        \t<li onclick=\"get_user_list('institute')\" class=\"nav_button\"><span class=\"glyphicon glyphicon-user\"></span> Institute User List</li>\n         </div>           \n        </ul> \n</nav>\n "
  },
  {
    "path": "page/user/user_list/user_list.php",
    "content": "\n<script type=\"text/javascript\" src=\"page/user/user_list/js/user_list.js\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/user/user_list/css/style.css\">\n<div class=\"row\">\n\t<div class=\"col-md-3\">\n\t\t<?php include \"side_bar.php\"; ?>\n\t</div>\n\t<div class=\"col-md-9\" style=\"margin-left: -10px;\">\n\t\t<div class=\"user_list_body\">\n\t\t\t<div class=\"list_header\" id=\"list_header\">\n\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class=\"list_body\" id=\"list_body\">\n\t\t\t\t\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t</div>\n</div>\n\n\n<?php\n\n$type=\"all\";\nif(isset($_GET['type'])){\n   $type=$_GET['type'];\n   if($type==\"active\" || $type==\"deactive\" ||$type==\"institute\" || $type==\"techserm\")$type=$type;\n   else $type=\"all\";\n\n}\n\n?>\n<script type=\"text/javascript\">get_user_list(\"<?php echo \"$type\"; ?>\")</script>\n\n\n<style type=\"text/css\">\n\t\n</style>"
  },
  {
    "path": "page/user/user_list.php",
    "content": "<?php include \"user_list/user_list.php\"; ?>"
  },
  {
    "path": "page/user/user_list1.php",
    "content": "\n \n<center>\n<div class=\"btn-toolbar list-toolbar\">\n    <button class=\"btn btn-primary\" data-title=\"Add Product\" data-toggle=\"modal\" data-target=\"#add_user\"><i class=\"fa fa-plus\"></i> Add User</button>\n</div>\n</center>\n\n<div class=\"row userMain\">\n    <?php \n       \n      foreach ($user as $key => $value) {\n        $id=$value['id'];\n        $uname=$value['uname'];\n        $fname=$value['fname'];\n        $photo=$value['photo'];\n    ?>\n       <div class=\"col-md-3 col-sm-4\">\n           <div class=\"userBlock\">\n               <div class=\"backgrounImg\">\n               </div>\n               <div class=\"userImg\">\n                   <img src=\"<?php echo $photo; ?>\">\n               </div>\n               <div class=\"userDescription\">\n                   <h5><?php echo $uname; ?></h5>\n                   <p><?php echo $fname; ?></p>\n                    \n                    <a href=\"user_info.php?user_id=<?php echo $id; ?>\">\n                        <button class=\"btn\">View Profile</button>\n                    </a>\n               </div>\n              \n           </div>\n       </div>\n       \n     <?php } ?>\n      \n\n\n</div>\n\n    <style type=\"text/css\">\n    @import url('https://fonts.googleapis.com/css?family=Open+Sans');\n\n.userMain{\n  margin-top: 60px;\n}\n\n.userMain .userBlock{\n    float: left;\n    width: 100%;\n    box-shadow: 0px 0px 23px -3px #ccc;\n    padding-bottom: 12px;\n    margin-bottom: 30px;\n    margin-top: 15px;\n    background:#fff;\n    border: 2px solid var(--bg-color);\n    \n\n}\n.userMain .userBlock .backgrounImg{\n    float: left;\n    overflow: hidden;\n    height: 77px;\n}\n\n.userMain .userBlock .userImg{\n    text-align: center;\n}\n.userMain .userBlock .userImg img{\n    width: 80px;\n    height: 80px;\n    margin-top: -39px;\n    border-radius: 100%;\n    border: 2px solid var(--bg-color);\n    \n} \n.userMain .userBlock .userDescription{\n    text-align: center;\n}\n.userMain .userBlock .userDescription h5{\n    margin-bottom: 2px;\n    font-weight: 600;\n}\n.userMain .userBlock .userDescription p{\n    margin-bottom: 5px;\n}\n.userMain .userBlock .userDescription .btn{\n    padding: 0px 23px 0px 23px;\n    height: 22px;\n    border-radius: 0;\n    font-size: 12px;\n    background: var(--bg-color);\n    color: var(--font-color);\n}\n.userMain .userBlock .userDescription .btn:hover{\n    \n    opacity:0.7;\n}\n\n.userMain .userBlock .followrs{\n    display: inline-flex;\n    margin-right: 10px;\n    border-right: 1px solid #ccc;\n    padding-right: 10px;\n}\n.userMain .userBlock .followrs .number{\n    font-size: 15px;\n    font-weight: bold;\n    margin-right: 5px;\n    margin-top: -1px;\n}\n    </style>"
  },
  {
    "path": "page/user/user_profile/css/style.css",
    "content": "\n/*nav button*/\n\n.nav_button{\n    cursor: default;\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    border-radius: 10px;\n    margin: 0px 0px 2px 0px; \n    padding: 13px;\n    cursor: pointer;\n    font-weight: bold;\n    width: 100%;\n} \n\n.nav_button:hover{\n  background-color: rgba(0,0,0,0.6);\n  color: var(--font-color);\n}\n.user_active{\n  background-color: rgba(0,0,0,0.6);\n  color: var(--font-color);\n}\n\n.nav_button_active{\n  font-size: 16px;\n  background-color: var(--bg-color);\n  color: var(--font-color);\n}\n\n\n/*------------------------------------------------*/\n/*    Profile Page\n/*------------------------------------------------*/\n.user-profile {\n  padding-bottom: 10px;\n  background-color: #ffffff;\n  \n  margin-top: -30px;\n}\n\n.profile-header-background {\n \n}\n.profile-header-background img {\n  width: 100%;\n  height: 210px;\n}\n\n.profile-info-left {\n  position: relative;\n  top: -92px;\n}\n.profile-info-left img.avatar {\n  border: 2px solid #fff;\n}\n.profile-info-left h2 {\n  font-family: \"josefinslab-semibold\";\n  margin-bottom: 30px;\n}\n.profile-info-left .section {\n  margin-top: 50px;\n}\n.profile-info-left .section h3 {\n  font-size: 1.1em;\n  font-weight: 700;\n  border-bottom: 1px solid #ccc;\n  padding-bottom: 10px;\n}\n.profile-info-left ul.list-social > li {\n  line-height: 2.3;\n}\n.profile-info-left ul.list-social > li i {\n  display: inline-block;\n  vertical-align: middle;\n  *vertical-align: auto;\n  *zoom: 1;\n  *display: inline;\n  position: relative;\n  top: 1px;\n  font-size: 16px;\n  min-width: 16px;\n  line-height: 1;\n}\n.profile-info-left ul.list-social > li a {\n  color: #696565;\n}\n\n.profile-info-right .tab-content {\n  padding: 30px 0;\n  background-color: transparent;\n}\n@media screen and (max-width: 768px) {\n  .profile-info-right {\n    position: relative;\n    top: -70px;\n  }\n}\n\n.user-follower,\n.user-following {\n  position: relative;\n  margin-bottom: 40px;\n}\n.user-follower img,\n.user-following img {\n  -moz-border-radius: 2px;\n  -webkit-border-radius: 2px;\n  border-radius: 2px;\n  width: 40px;\n}\n.user-follower a,\n.user-following a {\n  font-size: 1.1em;\n  line-height: 1;\n}\n.user-follower .username,\n.user-following .username {\n  font-size: 0.9em;\n  line-height: 1.5;\n}\n.user-follower .btn,\n.user-following .btn {\n  position: absolute;\n  top: 0;\n  right: 0;\n  min-width: 92px;\n}\n\n.btn-toggle-following {\n  background-color: #7bae16;\n  color: #fff;\n}\n.btn-toggle-following:hover {\n  background-color: #ef2020;\n  color: #fff;\n}\n.btn-toggle-following:hover span {\n  display: none;\n}\n.btn-toggle-following:hover:after {\n  content: 'Unfollow';\n  display: inline;\n}\n.btn-toggle-following:hover i:before {\n  content: '\\f129';\n}\n\n\n/* list icons */\n.list-icons-demo li {\n  margin-bottom: 20px;\n  text-align: center;\n}\n.list-icons-demo li i {\n  font-size: 24px;\n}\n\n.list-icons-demo2 li {\n  margin-bottom: 10px;\n}\n\n.activity-item {\n  overflow: visible;\n  position: relative;\n  margin: 15px 0;\n  border-top: 1px dashed #ccc;\n  padding-top: 15px;\n}\n.activity-item:first-child {\n  border-top: none;\n}\n.activity-item .avatar {\n  -moz-border-radius: 2px;\n  -webkit-border-radius: 2px;\n  border-radius: 2px;\n  width: 32px;\n}\n.activity-item > i {\n  font-size: 18px;\n  line-height: 1;\n}\n.activity-item .media-body {\n  position: relative;\n}\n.activity-item .activity-title {\n  margin-bottom: 0;\n  line-height: 1.3;\n}\n.activity-item .activity-attachment {\n  padding-top: 20px;\n}\n.activity-item .well {\n  -moz-border-radius: 0;\n  -webkit-border-radius: 0;\n  border-radius: 0;\n  -moz-box-shadow: none;\n  -webkit-box-shadow: none;\n  box-shadow: none;\n  border: none;\n  border-left: 2px solid #cfcfcf;\n  background: #fff;\n  margin-left: 20px;\n  font-size: 0.85em;\n}\n.activity-item .thumbnail {\n  display: inline;\n  border: none;\n  padding: 0;\n}\n.activity-item .thumbnail img {\n  -moz-border-radius: 2px;\n  -webkit-border-radius: 2px;\n  border-radius: 2px;\n  width: auto;\n  margin: 0;\n}\n.activity-item .activity-actions {\n  position: absolute;\n  top: 15px;\n  right: 0;\n}\n.activity-item .activity-actions .btn i {\n  margin: 0;\n}\n.activity-item .activity-actions .dropdown-menu > li > a {\n  font-size: 0.9em;\n  padding: 3px 10px;\n}\n.activity-item + .btn {\n  margin-bottom: 15px;\n}\n\n\n.nav-tabs > li > a {\n  -moz-border-radius-topleft: 2px;\n  -webkit-border-top-left-radius: 2px;\n  border-top-left-radius: 2px;\n  -moz-border-radius-topright: 2px;\n  -webkit-border-top-right-radius: 2px;\n  border-top-right-radius: 2px;\n}\n.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {\n  cursor: pointer;\n}\n\n.nav-pills > li > a {\n  -moz-border-radius: 2px;\n  -webkit-border-radius: 2px;\n  border-radius: 2px;\n}\n.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {\n  background-color: #1688ae;\n}\n\n.nav-tabs.tabs-iconized > li a,\n.nav-pills.tabs-iconized > li a {\n  padding-top: 0;\n  padding-bottom: 5px;\n}\n.nav-tabs.tabs-iconized > li i,\n.nav-pills.tabs-iconized > li i {\n  position: relative;\n  margin-right: 3px;\n  top: 4px;\n  font-size: 24px;\n}\n\n.tab-content {\n  padding: 30px 15px 15px 15px;\n  background-color: #fff;\n\n}\n\n.nav.nav-tabs-custom-colored > li > a {\n  border-color: #ccc;\n  border-bottom: transparent;\n}\n.nav.nav-tabs-custom-colored > li > a:hover, .nav.nav-tabs-custom-colored > li > a:focus {\n  background-color: #1688ae;\n}\n\n.nav-tabs.nav-tabs-custom-colored {\n  border-bottom-color: #1688ae;\n}\n.nav-tabs.nav-tabs-custom-colored > li {\n  z-index: 0;\n  margin-bottom: 0;\n  background-color: #fff;\n}\n.nav-tabs.nav-tabs-custom-colored > li > a {\n  -moz-border-radius-topleft: 2px;\n  -webkit-border-top-left-radius: 2px;\n  border-top-left-radius: 2px;\n  -moz-border-radius-topright: 2px;\n  -webkit-border-top-right-radius: 2px;\n  border-top-right-radius: 2px;\n  color: #696565;\n  margin-right: 0;\n}\n.nav-tabs.nav-tabs-custom-colored > li > a:hover, .nav-tabs.nav-tabs-custom-colored > li > a:focus {\n  color: #fff;\n  border-color: #1688ae;\n}\n.nav-tabs.nav-tabs-custom-colored > li.active > a, .nav-tabs.nav-tabs-custom-colored > li.active > a:hover, .nav-tabs.nav-tabs-custom-colored > li.active > a:focus {\n  color: #fff;\n  background-color: #1688ae;\n  border-color: #1688ae;\n  border-bottom: transparent;\n}\n.nav-tabs > li.active {\n  z-index: 1;\n}\n\n.nav-pills-custom-minimal {\n  border-bottom: 1px solid #ccc;\n}\n.nav-pills-custom-minimal > li > a {\n  -moz-border-radius: 0;\n  -webkit-border-radius: 0;\n  border-radius: 0;\n  padding: 10px;\n  border-top: 4px solid transparent;\n  color: #696565;\n}\n.nav-pills-custom-minimal > li > a:hover, .nav-pills-custom-minimal > li > a:focus {\n  background-color: transparent;\n  color: #4f4c4c;\n}\n.nav-pills-custom-minimal > li.active > a, .nav-pills-custom-minimal > li.active > a:hover, .nav-pills-custom-minimal > li.active > a:focus {\n  background-color: transparent;\n  border-top-color: var(--bg-color);\n  color: #696565;\n}\n.nav-pills-custom-minimal > li + li {\n  margin-left: 30px;\n}\n@media screen and (max-width: 480px) {\n  .nav-pills-custom-minimal > li + li {\n    margin-left: 0;\n  }\n}\n.nav-pills-custom-minimal.custom-minimal-bottom > li a {\n  border-top: none;\n  border-bottom: 4px solid transparent;\n}\n.nav-pills-custom-minimal.custom-minimal-bottom > li.active > a, .nav-pills-custom-minimal.custom-minimal-bottom > li.active > a:hover, .nav-pills-custom-minimal.custom-minimal-bottom > li.active > a:focus {\n  border-bottom-color: var(--bg-color);\n}\n\n.action-buttons{\n  padding: 25px;\n  margin-top: -30px;\n  \n}\n\n .top-alert { \n  position: fixed;\n  top: 0px;\n  width: 100%;\n  z-index: 100000;\n  left: 0;\n  padding: 50px;\n  display: inline-block;\n  text-align: center;\n}\n.top-alert .alert {\n  width: auto !important;\n  height: 100%;\n  display: inline;\n  position: relative;\n  margin: 0;\n}\n.top-alert .alert .close {\n  position: absolute;\n  top: 11px;\n  right: 10px;\n  color: inherit;\n}\n\n.alert-purple { border-color: #694D9F;background: #694D9F;color: #fff; }\n.alert-info-alt { border-color: #B4E1E4;background: #81c7e1;color: #fff; }\n.alert-danger-alt { border-color: #B63E5A;background: #E26868;color: #fff; }\n.alert-warning-alt { border-color: #F3F3EB;background: #E9CEAC;color: #fff; }\n.alert-success-alt { \n  border-color: #19B99A;\n  background: #20A286;\n  color: #fff; \n  padding: 20px;\n  float: right;\n  border-radius: 15px;\n}\n\n.alert a {color: gold;}"
  },
  {
    "path": "page/user/user_profile/js/user_profile.js",
    "content": "url = \"user_action.php\";\nmodal_body = \"modal_md_body\";\nmodal = \"md\";\nvar div_body=\"user_detail_body\";\nvar user_id;\nvar photo_info = -1;\n\n$(document).ready(function() {\n\n    $(document).on('change', '#file', function() {\n        photo_info = document.getElementById(\"file\").files[0].name;\n    });\n\n\n});\n\n\nvar loadFile = function(event) {\n                      var reader = new FileReader();\n                      reader.onload = function(){\n                      var output = document.getElementById('add_profile_pic');\n                      output.src = reader.result;\n                    };\n                    reader.readAsDataURL(event.target.files[0]);\n                  };\n\n\nfunction upload_profile_photo() {\n\n    if (photo_info == -1) {\n        alert(\"Please Select Photo\");\n        return;\n    }\n\n    var name = photo_info;\n    var form_data = new FormData();\n    var ext = name.split('.').pop().toLowerCase();\n\n    if (jQuery.inArray(ext, ['gif', 'png', 'jpg', 'jpeg']) == -1) {\n        alert(\"Invalid Image File\");\n        return;\n    }\n\n    var oFReader = new FileReader();\n    oFReader.readAsDataURL(document.getElementById(\"file\").files[0]);\n    var f = document.getElementById(\"file\").files[0];\n    var fsize = f.size || f.fileSize;\n\n    if (fsize > 2000000) {\n        alert(\"Image File Size is very big\");\n        return;\n    }\n\n    form_data.append('user_id', user_id);\n    form_data.append(\"file\", document.getElementById('file').files[0]);\n    \n    loader(\"profile_upload_area\");\n\n    $.ajax({\n        url: url,\n        method: \"POST\",\n        data: form_data,\n        contentType: false,\n        cache: false,\n        processData: false,\n\n        beforeSend: function() {\n            $('#uploaded_image').html(\"<label class='text-success'>Image Uploading...</label>\");\n        },\n\n        success: function(data) {\n            success(\"Successfully Update Profile Picture\");\n            window.location.href = \"\";\n\n        }\n\n    });\n\n\n}\n\nfunction get_action_data(_div = modal_body, _load = 0, _url = url) {\n    var data = {\n        'url': _url,\n        'div': _div,\n        'load': _load\n    }\n    return data;\n}\n\n\nfunction set_user_id(id) {\n    user_id = id;\n}\n\n\nfunction change_profile_photo() {\n\n    var data = {\n        \"profile_photo_form\": user_id\n    }\n\n    modal_open(\"sm\", \"Update Profile Picture\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n\n}\n\n\nfunction update_profile_form() {\n\n    var data = {\n        \"update_profile_form\": user_id\n    }\n\n    modal_open(\"md\", \"Update Profile\");\n    loader(\"modal_md_body\");\n    get_ajax(get_action_data(\"modal_md_body\"), data);\n}\n\n\n\nfunction update_user_status_form(){\n    var data = {\n        \"update_user_status_form\": user_id\n    }\n\n    modal_open(\"sm\", \"Update User Status\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\nfunction update_user_status(status){\n    var data1 = {\n        \"user_id\": user_id,\n        \"status\": status\n    }\n    var data = {\n        \"update_user_status\": data1\n    }\n    loader(\"modal_sm_body\");\n    $.ajax({\n        type: 'POST',\n        url: url,\n        data:data,\n        success: function(response) {   \n           update_user_status_form();\n        }\n    });\n    \n}\n\nfunction update_user_role_form(){\n    var data = {\n        \"update_user_role_form\": user_id\n    }\n\n    modal_open(\"sm\", \"Update User Role\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n\nfunction update_user_role(){\n    role=get_value(\"select_update_user_role\");\n    if(role==-1){\n        alert(\"Please Select Role\");\n        return;\n    }\n    var data1 = {\n        \"user_id\": user_id,\n        \"role\": role\n    }\n    var data = {\n        \"update_user_role\": data1\n    }\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\",1), data);\n}\n\nfunction update_profile_info(){\n    fname=get_value('fname');\n    email=get_value('email');\n    address=get_value('address');\n    phone=get_value('phone');\n   \n    error=\"\";\n    if(fname==\"\")error=\"Enter Full Name\";\n    else if(email==\"\")error=\"Enter Email\";\n    else if(address==\"\")error=\"Enter Address\";\n    else if(phone==\"\")error=\"Enter Phone\";\n    \n    if(error!=\"\"){\n        alert(error);\n        return;\n    }\n\n    var data1={\n        'id': user_id,\n        'fname': fname,\n        'email': email,\n        'address': address,\n        'phone': phone\n    }\n    var data={\n        'update_profile_info': data1\n    }\n\n    loader(\"modal_md_body\");\n    get_ajax(action_data=get_action_data(\"modal_md_body\",1), data);\n\n}\n\n\nfunction user_info() {\n\n    var data = {\n        \"user_info\": user_id\n    }\n    loader(div_body);\n    get_ajax(get_action_data(div_body), data);\n\n}\n\nfunction user_activity(page=1) {\n   \n    var data1={\n       \"page\": page,\n       \"user_id\": user_id\n    }\n\n    var data = {\n        \"user_activity\": data1\n    }\n\n    loader(div_body);\n    get_ajax(get_action_data(div_body), data);\n\n}\n\nfunction change_profile_photo() {\n\n    var data = {\n        \"profile_photo_form\": user_id\n    }\n\n    modal_open(\"sm\", \"Update Profile Picture\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n\n}\n\n\nfunction change_password_form(){\n    var data = {\n        \"change_password_form\": user_id\n    }\n\n    modal_open(\"sm\", \"Update Password\");\n    loader(\"modal_sm_body\");\n    get_ajax(get_action_data(\"modal_sm_body\"), data);\n}\n"
  },
  {
    "path": "page/user/user_profile/js/user_top_bar_script.php",
    "content": ""
  },
  {
    "path": "page/user/user_profile/profile_side_bar.php",
    "content": "\n\n\n<?php if($uid==$login_user_id || $role<$user_role){ ?>        \n<li onclick=\"update_profile_form()\" class=\"nav_button\"><span class=\"glyphicon glyphicon-pencil\"></span> Update Profile</li>\n\n<li onclick=\"change_password_form()\"class=\"nav_button\"><span class=\"glyphicon glyphicon-lock\"></span> Change Password</li> \n<li onclick=\"update_user_role_form()\" class=\"nav_button\"><span class=\"glyphicon glyphicon-flag\"></span> Update Role</li>\n<li onclick=\"update_user_status_form()\" class=\"nav_button\"><span class=\"glyphicon glyphicon-ban-circle\"></span> Change Status</li>\n<li onclick=\"change_profile_photo()\" class=\"nav_button\"><span class=\"glyphicon glyphicon-picture\"></span> Update Profile Picture</li>\n\n<?php } if($uid==$login_user_id){ ?>\n<a href=\"logout.php\"><li class=\"nav_button\"><span class=\"glyphicon glyphicon-log-out\"></span> Logout</li></a>\n<?php } ?>\n\n  "
  },
  {
    "path": "page/user/user_profile/user_profile.php",
    "content": "<?php\n\n$user_not_found=1;\nif(isset($_GET['user_id'])){\n    $uid=$_GET['user_id'];\n   if(isset($user[$uid])){\n        $user_not_found=0;\n        $info=$user[$uid];\n        $user_role=$info['permit'];\n        $user_category=$user_ob->get_user_permission($user_role);\n        include \"user_profile_ui.php\";\n   }\n}\n\nif($user_not_found==1)echo \"\n\n<script>\nalert('User Is Not Found');\nwindow.location.href = 'user_list.php';\n\n</script>\n\n\";\n\n\n\n?>"
  },
  {
    "path": "page/user/user_profile/user_profile_ui.php",
    "content": "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"page/user/user_profile/css/style.css\">\n<script type=\"text/javascript\" src=\"page/user/user_profile/js/user_profile.js\"></script>\n\n<div class=\"row\">\n    <div class=\"col-md-12\">\n    <div class=\"user-profile\" style=\"background-color: #E8EAF6\">\n        <div class=\"profile-header-background\">\n            <div class=\"profile_background\"></div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-md-3\">\n                <div class=\"profile-info-left\">\n                    <div class=\"text-center\">\n                        <img id=\"load_profile_photo\" style=\"height: 180px; width: 180px;\" src=\"<?php echo $info['photo']; ?>\" alt=\"Avatar\"  class=\"avatar img-circle\">\n                        <h2><?php echo $info['uname']; ?>\n                            <br/>\n                            <font style=\"font-size: 16px;font-weight: bold;\"><span class=\"glyphicon glyphicon-flag\"></span> <?php echo \"$user_category\"; ?></font>\n                        </h2>\n\n                    \n                    </div>\n                    <div class=\"action-buttons\">\n                        <div class=\"row\">\n                            <nav class=\"nav-sidebar\">\n                                  <ul class=\"nav\">\n                                                \n                                    <?php include \"profile_side_bar.php\"; ?>       \n                                    </ul> \n                            </nav>\n                        </div>\n                    </div>\n                   \n                </div>\n            </div>\n            <div class=\"col-md-9\">\n                <div class=\"profile-info-right\">\n                    <ul class=\"nav nav-pills nav-pills-custom-minimal custom-minimal-bottom\">\n                        <li class=\"active\" onclick=\"user_info()\"><a href=\"#activities\" data-toggle=\"tab\">INFO</a></li>\n                        <li onclick=\"user_activity()\"> <a href=\"#followers\" data-toggle=\"tab\">ACTIVITY</a></li>\n                        <li onclick=\"user_info()\"><a href=\"#following\" data-toggle=\"tab\">LOGIN ACTIVITY</a></li>\n                    </ul>\n                    <div style=\"background-color: #ffffff; margin-left: 0px; padding: 15px;height: auto;\" class=\"tab-content\" id=\"user_detail_body\">\n                        \n                    </div>\n                    <!-- end tab content -->\n                </div>\n                <!-- end profile info right -->\n            </div>\n            <!-- end col-md-9 -->\n        </div>\n    </div>\n</div>\n</div>\n\n<style type=\"text/css\">\n    .profile_background{\n\n        background-image: url(upload/site_content/user_background.jpg);\n        background-size: cover;\n        color: var(--bg-color);\n        height: 130px;\n        font-size: 60px;\n        padding-top: 20px;\n        padding-right: 10px;\n        text-align: center;\n        text-shadow: 0 0 2px var(--bg-color);\n    }\n</style>\n\n<script type=\"text/javascript\">\n     set_user_id(<?php echo $uid; ?>);\n     user_info();\n</script>"
  },
  {
    "path": "page/user/user_profile.php",
    "content": "<?php include \"user_profile/user_profile.php\"; ?>"
  },
  {
    "path": "page_action/account/account.php",
    "content": "<?php\n\n$path=\"page_action/account/\";\n$file=array();\narray_push($file, \"expence.php\");\narray_push($file, \"income.php\");\n\nforeach ($file as $key => $value) {\n\t$file_name=\"$path$value\";\n\tinclude $file_name;\n}\n\n?>"
  },
  {
    "path": "page_action/account/expence.php",
    "content": "<?php\n\nif(isset($_POST['insert_expence'])){\n\t$info=$_POST['insert_expence'];\n\tunset($info['id']);\n\t$info['date']=$db->date();\n\t$info['add_by']=$user_id;\n\t$db->sql_action(\"expence\",\"insert\",$info,\"no\");\n}\n\nif(isset($_POST['delete_expence'])){\n  $info=$_POST['delete_expence'];    \n  $db->sql_action(\"expence\",\"delete\",$info);\n}\n\nif(isset($_POST['update_expence'])){\n\t$info=$_POST['update_expence'];\n\t$db->sql_action(\"expence\",\"update\",$info,\"no\");  \n}\n\nif(isset($_POST['get_expence_form'])){\n\n\t$site->form_input(\"Expence Name\",\"expence_name\",\"expence_name\",\"text\",\"exclamation-sign\",\"\",\"\");\n\t$site->form_input(\"Ammount\",\"amount\",\"amount\",\"number\",\"exclamation-sign\",\"\",\"\");\n\t?>\n\t<b>Note</b><br/>\n   <textarea class=\"textarea_design\" id=\"note\"></textarea>\n   <br/>\n   <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"expence_action('insert')\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save Expence</button>\n\t<?php\n}\n\nif(isset($_POST['update_expence_form'])){\n  $id=$_POST['update_expence_form'];\n  $info=$account->get_separate_expance($id);\n  $expence_name=$info['name'];\n  $ammount=$info['amount'];\n  $notes=$info['notes'];\n  $site->form_input(\"Expence Name\",\"expence_name\",\"expence_name\",\"text\",\"exclamation-sign\",\"$expence_name\",\"\");\n  $site->form_input(\"Ammount\",\"amount\",\"amount\",\"number\",\"exclamation-sign\",\"$ammount\",\"\");\n ?>\n\t<b>Note</b><br/>\n   <textarea class=\"textarea_design\" id=\"note\"><?php echo \"$notes\"; ?></textarea>\n   <br/>\n   <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"expence_action('update',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save Expence</button>\n\n<?php\n}\nif(isset($_POST['delete_expence_form'])){\n  $id=$_POST['delete_expence_form'];\n  ?>\n\n  <center>\n    <h3>Are You Want To Delete This Expence</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"expence_action('delete',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n  </center>\n\n  <?php\n}\n\n\n?>\n\n<style type=\"text/css\">\n\t.textarea_design{\n\t\twidth: 100%;\n\t\theight: 80px;\n\t\tpadding: 5px;\n\t\tmargin-bottom: 5px;\n\t}\n</style>"
  },
  {
    "path": "page_action/account/income.php",
    "content": "<?php\n\nif(isset($_POST['insert_income'])){\n\t$info=$_POST['insert_income'];\n\tunset($info['id']);\n\t$info['date']=$db->date();\n\t$info['add_by']=$user_id;\n\t$db->sql_action(\"income\",\"insert\",$info,\"no\");\n}\n\nif(isset($_POST['delete_income'])){\n  $info=$_POST['delete_income'];    \n  $db->sql_action(\"income\",\"delete\",$info);\n}\n\nif(isset($_POST['update_income'])){\n\t$info=$_POST['update_income'];\n\t$db->sql_action(\"income\",\"update\",$info,\"no\");\n}\n\nif(isset($_POST['get_income_form'])){\n\n\t$site->form_input(\"income Name\",\"income_name\",\"income_name\",\"text\",\"exclamation-sign\",\"\",\"\");\n\t$site->form_input(\"Ammount\",\"amount\",\"amount\",\"number\",\"exclamation-sign\",\"\",\"\");\n\t?>\n\t<b>Note</b><br/>\n   <textarea class=\"textarea_design\" id=\"note\"></textarea>\n   <br/>\n   <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"income_action('insert')\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save income</button>\n\t<?php\n}\n\nif(isset($_POST['update_income_form'])){\n  $id=$_POST['update_income_form'];\n  $info=$account->get_separate_income($id);\n  $income_name=$info['name'];\n  $ammount=$info['amount'];\n  $notes=$info['notes'];\n  $site->form_input(\"income Name\",\"income_name\",\"income_name\",\"text\",\"exclamation-sign\",\"$income_name\",\"\");\n  $site->form_input(\"Ammount\",\"amount\",\"amount\",\"number\",\"exclamation-sign\",\"$ammount\",\"\");\n ?>\n\t<b>Note</b><br/>\n   <textarea class=\"textarea_design\" id=\"note\"><?php echo \"$notes\"; ?></textarea>\n   <br/>\n   <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"income_action('update',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save income</button>\n\n<?php\n}\nif(isset($_POST['delete_income_form'])){\n  $id=$_POST['delete_income_form'];\n  ?>\n\n  <center>\n    <h3>Are You Want To Delete This income</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"income_action('delete',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n  </center>\n\n  <?php\n}\n\n\n?>\n\n<style type=\"text/css\">\n\t.textarea_design{\n\t\twidth: 100%;\n\t\theight: 80px;\n\t\tpadding: 5px;\n\t\tmargin-bottom: 5px;\n\t}\n</style>"
  },
  {
    "path": "page_action/attend/attend_action.php",
    "content": "<?php\n\nif(isset($_POST['select_program'])){\n\t$program_id=$_POST['select_program'];\n\techo \"<option value='-1'>Select Batch</option>\";\n    $program_ob->select_batch_option($program_id);\n}\n\nif(isset($_POST['save_attend'])){\n\t$info=$_POST['save_attend'];\n\t$program_id=$info['program_id'];\n    $batch_id=$info['batch_id'];\n\t$date=$info['date'];\n\t$attend_list=$info['student_list'];\n\tforeach ($attend_list as $key => $value) {\n\t\t$student_id=$value['student_id'];\n\t\t$status=$value['status'];\n\t\t$data=array();\n        $data['student_id']=$student_id;\n        $data['program_id']=$program_id;\n        $data['date']=$date;\n        $data['status']=$status;\n        $data['batch_id']=$batch_id;\n        $ch_info=$attend_ob->get_attendence_info($program_id,$batch_id,$student_id,$date); \n        $action=\"insert\";\n        if($ch_info!=-1){\n        \t$action=\"update\";\n        \t$data['id']=$ch_info['id'];\n        }\n        $db->sql_action(\"student_attendence\",$action,$data,\"no\");\n\t}\n\t\n}\n\nif(isset($_POST['take_attend'])){\n\t$info=$_POST['take_attend'];\n\t$program_id=$info['program_id'];\n\t$batch_id=$info['batch_id'];\n\t$batch_name=$batch[$batch_id]['name'];\n\t$program_name=$program[$program_id]['name'];\n\t$student_list= $student_ob->get_student_list($program_id,$batch_id);\n    \n    $date=$info['date'];\n    $db_date=$date;\n    $date=date(\"d F Y\",strtotime($date));\n    $data=json_encode($info);\n\t?>\n\n<div class=\"row\">\n\t\n\t<div class=\"col-md-12\">\n\t<div class=\"attend_area\">\n  \t<div class=\"daily_attend_headerr\">\n\n\n<font class=\"report_title\">\n\t\t<center>\n\t\t\tDaily Attendence <br/>\n\t\t</center>\n\t\t</font>\n\t\t<center>\n\t\t\t<font class=\"report_description\">\n\t\t\t\tDate: <?php echo \"$date\"; ?>\n\t\t\t</font>\t\n\t\t</center>\n\n<div style=\"float: left;\">Program: <?php echo \"$program_name\"; ?></div>\n<div style=\"float: right;\">Batch: <?php echo \"$batch_name\"; ?></div>\n\n</div>\n<table style=\"width: 100%\">\n\t<tr class=\"attend_tr\">\n\t\t<td class=\"attend_td1\" style=\"width: 140px\">Student ID</td>\n\t\t<td class=\"attend_td1\">Student Name</td>\n\t\t<td class=\"attend_td1\" style=\"width: 200px\">Attendance</td>\n\t</tr>\n\t<?php \n       foreach ($student_list as $key => $value) {\n            $id=$value['student_id'];\n      \t\t$value1=$value;\n      \t\t$value=$student[$id];\n      \t\t$name=$value['name'];\n        \t$img=$value['photo'];\n            $ch_info=$attend_ob->get_attendence_info($program_id,$batch_id,$id,$db_date);\n            $ch1=\"\";\n            $ch2=\"\";\n            if($ch_info!=-1){\n            \tif($ch_info['status']==1)$ch1=\"checked\";\n            \telse $ch2=\"checked\";\n            }\n       ?>\n\n\t<tr class=\"attend_tr\">\n\t\t<td class=\"attend_td2\"><?php echo \"$id\"; ?></td>\n\t\t<td class=\"attend_td2\"><?php echo \"$name\"; ?></td>\n\t\t<td class=\"attend_td2\">\n\t\t\t<input type=\"radio\" name=\"attend[<?php echo \"$id\" ?>]\" value=\"1\" <?php echo $ch1; ?>>Present \n\t\t\t<input type=\"radio\" name=\"attend[<?php echo \"$id\" ?>]\" value=\"0\" <?php echo $ch2; ?>>Absent</td>\n\t</tr>\n    <?php } ?>\n</table>\n<div style=\"margin-top: 10px\"></div>\n\n<center><button class=\"btn_attend\" onclick='save_attend(<?php echo $data; ?>)'>Save Attendence</button></center>\n</div>\n</div> \n\n<?php\n\n}\n\nif(isset($_POST['attend_report'])){\n\t$info=$_POST['attend_report'];\n\t$program_id=$info['program_id'];\n\t$batch_id=$info['batch_id'];\n\t$date=$info['date'];\n\t$status=$info['status'];\n\t$attend_list=array();\n\tif($status==1)$attend_list=$attend_ob->get_present_list($program_id,$batch_id,$date);\n\telse if($status==0)$attend_list=$attend_ob->get_absent_list($program_id,$batch_id,$date);\n\telse $attend_list=$attend_ob->get_absent_present_list($program_id,$batch_id,$date);\n\n\t$date1=date(\"d M Y\", strtotime($date));\n\t$program_name=$program[$program_id]['name'];\n\t$batch_name=$batch[$batch_id]['name'];\n\n?>\n\n<div class=\"row\">\n\n\t<div class=\"col-md-4\">\n        <button class=\"btn_select\" onclick=\"attend_report(2)\">Present And Absent Report</button>\n \t</div>\n \t<div class=\"col-md-4\">\n        <button class=\"btn_select\" onclick=\"attend_report(1)\">Present Report</button>\n \t</div>\n \t<div class=\"col-md-4\">\n        <button class=\"btn_select\" onclick=\"attend_report(0)\">Absent Report</button>\n \t</div>\n</div>\n<div class=\"pull-right\">\n\t<button class=\"button\" onclick=\"print('attend_report_area')\">Print Report</button>\n</div>\n\n\n\n<div class=\"attend_area\" id=\"attend_report_area\">\n\n<style type=\"text/css\">\n\t.attend_report_td1{\n\t\tpadding: 12px 0px 12px 0px;\n\t\tbackground-color: #EFF0F2;\n\t\tcolor: #000000;\n\t\tfont-weight: bold;\n\t\tborder: 1px solid #C6C9D1;\n\t\tfont-size: 16px;\n\t\ttext-align: center;\n\t}\n\t.attend_report_td2{\n\t\tpadding: 6px 2px 6px 2px;\n\t\ttext-align: center;\t\t\n\t\tcolor: #000000;\n\t\tborder: 1px solid #C6C9D1;\n\t\tfont-family: \"Palatino Linotype\", \"Book Antiqua\", Palatino, serif;\n\t}\n\ttable {\n  border-collapse: collapse;\n}\n\n .report_title{\n \tfont-size: 18px;\n \tcolor: #1A2229;\n \tfont-family: Verdana, Geneva, sans-serif;\n }\n .report_description{\n \tcolor: #1A2229;\n \tfont-size: 14px;\n \tfont-family: Verdana, Geneva, sans-serif;\n }  \n</style>\n\n\n<?php $site->header_info_area(); ?>\n\n\t\t<font class=\"report_title\">\n\t\t\t<center>\n\t\t\t\tDaily Attendence Report<br/>\n\t\t\t</center>\n\t\t</font>\n\t\t<center>\n\t\t\t<font class=\"report_description\">\n\t\t\t\tDate: <?php echo \"$date1\"; ?>\n\t\t\t</font>\t\n\t\t</center>\n\n<div style=\"float: left;\">Program: <?php echo \"$program_name\"; ?></div>\n<div style=\"float: right;\">Batch: <?php echo \"$batch_name\"; ?></div>\n\n<table style=\"width: 100%\">\n\t<tr class=\"attend_tr\">\n\t\t<td class=\"attend_report_td1\" style=\"width: 140px\">Student ID</td>\n\t\t<td class=\"attend_report_td1\">Student Name</td>\n\t\t<td class=\"attend_report_td1\" style=\"width: 200px\">Attendance</td>\n\t</tr>\n    <?php \n       \n       foreach ($attend_list as $key => $value) {\n       \t$student_id=$value['student_id'];\n       \t$student_name=(!isset($student[$student_id]['name']))?\"-\":$student[$student_id]['name'];\n       \t$status=($value['status']==1)?\"Present\":\"Absent\";\n    ?>\n    <tr class=\"attend_tr\">\n    \t<td class=\"attend_report_td2\"><?php echo \"$student_id\"; ?></td>\n    \t<td class=\"attend_report_td2\"><?php echo \"$student_name\"; ?></td>\n    \t<td class=\"attend_report_td2\"><?php echo \"$status\"; ?></td>\n    </tr>\n\n\t<?php } ?>\n\n</table>\n</div>\n\n\n<?php\n\n\n}\n\nif(isset($_POST['attend_sms'])){\n\t$info=$_POST['attend_sms'];\n\n?>\n\n<div class=\"row\">\n\t<div class=\"col-md-2\"></div>\n\t<div class=\"col-md-4\">\n\t\t<select class='form-control' id='attend_type'>\n        \t<option value='-1'> --Select Attendence Type-- </option>\n       \t\t<option value='2'> Absent And Present All Student</option>\n        \t<option value='0'> Absent Student</option>\n        \t<option value='1'> Present Student</option>\n    \t</select>\n\t</div>\n\t<div class=\"col-md-4\">\n\t\t<select class='form-control' id='select_receiver'>\n        \t<option value='-1'> --Select Recever-- </option>\n       \t\t<option value='all'> ALL </option>\n        \t<option value='st'> Student </option>\n        \t<option value='ga'> Guardians </option>\n    \t</select>\n\t</div>\n\t<div class=\"col-md-2\"></div>\n\t<div class=\"col-md-4\"></div>\n\t<div class=\"col-md-3\"><button class=\"btn_select\" onclick=\"send_attend_sms()\">Send Attendence SMS</button></div>\n</div>\n\n<?php\n\n}\n\nif(isset($_POST['send_attend_sms'])){\n\t$info=$_POST['send_attend_sms'];\n\t$program_id=$info['program_id'];\n\t$batch_id=$info['batch_id'];\n\t$date=$info['date'];\n\t$status=$info['type'];\n\t$receiver=$info['receiver'];\n\n\t$attend_list=array();\n\tif($status==1)$attend_list=$attend_ob->get_present_list($program_id,$batch_id,$date);\n\telse if($status==0)$attend_list=$attend_ob->get_absent_list($program_id,$batch_id,$date);\n\telse $attend_list=$attend_ob->get_absent_present_list($program_id,$batch_id,$date);\n    \n\t$program_name=$program[$program_id]['name'];\n\t$batch_name=$batch[$batch_id]['name'];\n\n    $date1=date(\"d M Y l\", strtotime($date));\n\n\t$list=array();\n\tforeach ($attend_list as $key => $value) {\n\t\t$student_id=$value['student_id'];\n\t\t$student_name=$student[$student_id]['nick'];\n\t\t$student_status=$value['status'];\n\t\t$not=($student_status==1)?\"Present\":\"Absent\";\n\n\t\t$c_name=$db->msg;\n\t\t$message=\"Dear $student_name, \\nYou are $not in '$date1' Class. Please Attend All Class.\\n\\n$c_name\";\n\t    $mobile_number_list=$sms->get_student_mobile_number($student_id,$receiver);\n\t    foreach ($mobile_number_list as $key => $value1) {\n\t    \t$number=$value1;\n\t    \t$res=$sms->make_sms_array($value1,$message);\n    \t\tarray_push($list, $res);\n\t    }\n\t}\n\t//$site->myprint_r($list);\n\t$sms->send_sms($list);\n}\n\nif(isset($_POST['attend_panel'])){\n ?>\n\n<div class=\"row\">\n<div class=\"col-md-12 col-sm-12 col-lg-12\">\n\t\n        <div class=\"panel with-nav-tabs panel-primary animated slideInDown\">\n            <div class=\"header_box\">\n                <ul class=\"nav nav-tabs\">\n                    <li class=\"active\"><a href=\"#tab1primary\" data-toggle=\"tab\" onclick=\"take_attend()\">Take Attendence</a></li>\n                    <li onclick=\"attend_report()\"><a href=\"#tab2primary\" data-toggle=\"tab\">Attendence Report</a></li>\n                    <li onclick=\"attend_sms()\"><a href=\"#tab3primary\" data-toggle=\"tab\">Send Attendence SMS</a></li>\n                </ul>\n            </div>\n  \t<div class=\"box_body\">\n      \t<div class=\"tab-content\">\n        \t<div style=\"\" class=\"tab-pane fade in active\" onclick=\"student()\" id=\"tab1primary\">\n        \t\t<div id=\"take_attend\"></div>\n        \t</div>\n        \t<div class=\"tab-pane fade\" id=\"tab2primary\">\n        \t\t<div id=\"attend_report\"></div>\n        \t</div>\n        \t<div class=\"tab-pane fade\" id=\"tab3primary\">\n        \t\t<div id=\"attend_sms\"></div>\n        \t</div>                  \n      \t</div>\n \t</div>\n\n </div>\n</div>\n</div>\n<?php\n}\n\n?>\n\n<style type=\"text/css\">\n\n\t.info_area{\n    \tpadding: 2px 0px 8px 0px;\n    }\n \t.report_title{\n \t\tfont-size: 18px;\n \t\tcolor: #000000;\n \t\tfont-family: Verdana, Geneva, sans-serif;\n \t}\n \t.report_description{\n \t\tcolor: #000000;\n \t\tfont-size: 14px;\n \t\tfont-family: Verdana, Geneva, sans-serif;\n \t}  \n\n\t.attend_td1{\n\t\tpadding: 12px 0px 12px 0px;\n\t\tbackground-color: #EFF0F2;\n\t\tcolor: #000000;\n\t\tfont-weight: bold;\n\t\tborder: 1px solid #C6C9D1;\n\t\tfont-size: 16px;\n\t\ttext-align: center;\n\t}\n\t.attend_td2{\n\t\tpadding: 6px 2px 6px 2px;\n\t\ttext-align: center;\t\t\n\t\tcolor: #000000;\n\t\tborder: 1px solid #C6C9D1;\n\t\tfont-family: \"Palatino Linotype\", \"Book Antiqua\", Palatino, serif;\n\t}\n\t.present_class{\n       background-color: #CDFFD8;\n\t}\n\t.absent_class{\n\t\tbackground-color: #FFDCE0;\n\t}\n\t.img_td{\n\t\theight: 40px;\n\t\twidth: 40px;\n\t\tborder:1px solid #eeeeee;\n        border-radius: 5px;\n        cursor: pointer;\n\t}\n\t.attend_area{\n\t\tbackground-color: #ffffff;\n\t\tpadding: 15px;\n\t\tborder-radius: 5px;\n\t}\n\t\n\t.daily_attend_header{\n\t\tcolor: #868686;\n\t\tmargin-bottom: 10px;\n\t\tfont-family: 'Trocchi', serif;\n\t\tpadding: 10px 10px 10px 10px;\n\t}\n\t\n\t@page {\n  \t\tsize: landscape;\n  \t\tmargin: 1;\n  \t\ttable { page-break-after:auto }\n  \t\ttr    { page-break-inside:avoid; page-break-after:auto }\n  \t\ttd    { page-break-inside:avoid; page-break-after:auto }\n  \t\tthead { display:table-header-group }\n  \t\ttfoot { display:table-footer-group }\n\t}\n\n\t/* start panel css */\n\n\t.header_box{\n        background-color: var(--bg-color);\n        color: var(--font-color);\n        padding-top: 15px;\n        padding-left: 15px;\n        margin-bottom: -17px;\n    }\n    .box_body{\n        background-color: #E1E2E1;\n        padding: 20px;\n        border-color: var(--bg-color);\n        border-width: 1px;\n        color: #000000;\n\n    }\n    .head_id{\n        background-color: var(--bg-color);\n        color: var(--font-color);\n        padding: 15px;\n        margin-left: 80px;: \n        \n    }\n\n    .box_overview{\n        background-color: #ffffff;\n        padding: 15px;\n        font-weight: bold;\n        font-size: 20px;\n    }\n    .overview_body{\n    \tbackground-color: #ffffff;\n    }\t\n\n\n.panel.with-nav-tabs .panel-heading{\n    padding: 5px 5px 0 5px;\n}\n.panel.with-nav-tabs .nav-tabs{\n    border-bottom: none;\n}\n.panel.with-nav-tabs .nav-justified{\n    margin-bottom: -1px;\n}\n/********************************************************************/\n\n/*** PANEL PRIMARY ***/\n.with-nav-tabs.panel-primary .nav-tabs > li > a,\n.with-nav-tabs.panel-primary .nav-tabs > li > a:hover,\n.with-nav-tabs.panel-primary .nav-tabs > li > a:focus {\n    color: #fff;\n\n}\n.with-nav-tabs.panel-primary .nav-tabs > .open > a,\n.with-nav-tabs.panel-primary .nav-tabs > .open > a:hover,\n.with-nav-tabs.panel-primary .nav-tabs > .open > a:focus,\n.with-nav-tabs.panel-primary .nav-tabs > li > a:hover,\n.with-nav-tabs.panel-primary .nav-tabs > li > a:focus {\n    color: #fff;\n    background-color: rgba(0,0,0,0.4);\n    padding: 17px;\n    margin-bottom: 0px;\n    border-color: transparent;\n}\n.with-nav-tabs.panel-primary .nav-tabs > li.active > a,\n.with-nav-tabs.panel-primary .nav-tabs > li.active > a:hover,\n.with-nav-tabs.panel-primary .nav-tabs > li.active > a:focus {\n    color: #000000;\n    font-weight: bold;\n    background-color: #E1E2E1;\n    margin-bottom: 2px;\n    padding: 17px;\n   \n}\n\n\n.tab-pane{\n\tcolor: #000000;\n\tcursor: unset;\n}\n\n\n</style>\n"
  },
  {
    "path": "page_action/attend/attend_report.php",
    "content": "<?php\n\nif(isset($_POST['select_program'])){\n\t$program_id=$_POST['select_program'];\n\techo \"<option value='-1'>Select Batch</option>\";\n    $program_ob->select_batch_option($program_id);\n}\n\n\nif(isset($_POST['attend_report'])){\n  $year=2018;\n  $month=12;\n  $program_id=8;\n  $day = cal_days_in_month(CAL_GREGORIAN,$month,$year);\n  $date1=\"$year-$month-01\";\n  $date2=\"$year-$month-$day\";\n  $info=$report->get_student_attend_info($date1,$date2,$program_id);\n  \n  $student_list=$info['student_list'];\n  $info_index=$info['info_index'];\n  //$site->myprint_r($info_index);\n  $program_name=$program[$program_id]['name'];\n\n\t?>\n\n<div class=\"attend_area\">\t\n <?php $site->header_info_area(); ?>\n\n<div class=\"row  info_area\">\n\t<div class=\"col-md-12\">\n\t\t<font class=\"report_title\">\n\t\t\t<center>\n\t\t\t\tMonthly Attendence Report<br/>\n\t\t\t</center>\n\t\t</font>\n\t\t<center>\n\t\t\t<font class=\"report_description\">\n\t\t\t\t<?php echo \"January 2019\"; ?><br/>\n\t\t\t</font>\t\n\t\t</center>\n\t\t<font class=\"report_description\">\n\t\t\t<div style=\"float: left;\"><b>Program: </b><?php echo \"$program_name\"; ?> </div>\n\t\t\t<div style=\"float: right;\"><b>Batch:</b> All Batch</div>\n\t\t</font>\n\t</div>\n\n</div>\n<table width=\"100%\" style=\"background-color: #ffffff\">\n\t<thead style=\"border-width: 0px;\">\n\t<tr class=\"attend_tr\">\n\t\t<td class=\"attend_td1\" style=\"width: 70px\">ID</td>\n\t\t<td class=\"attend_td1\" style=\"width: 140px\">Name</td>\n\t\t<?php for($i=1; $i<=$day; $i++){ ?>\n\t\t<td class=\"attend_td1\" style=\"width: 15px\"><?php echo \"$i\"; ?></td>\n\t    <?php } ?>\n\t    <td class=\"attend_td1\" style=\"width: 25px\">T.P.</td>\n\t    <td class=\"attend_td1\" style=\"width: 25px\">T.A.</td>\t\t\n\t</tr>\n\t</thead>\n\n\t<tbody>\n\n\t<?php\n       \n      foreach ($student_list as $key => $value) {\n      \t$student_id=$value;\n\n      \t$student_name=$student[$student_id]['name'];\n        \n       \t?>\n\n\t\t<tr class=\"attend_tr\">\n\t\t\t<td class=\"attend_td2\" style=\"width: 70px;background-color: #f7f7f7;color: #000000\"><b><?php echo \"$student_id\"; ?></b></td>\n\t\t\t<td class=\"attend_td2\" style=\"width: 130px;background-color: #f7f7f7;color: #000000\"><b><?php echo \"$student_name\"; ?></b></td>\n\t\t\t<?php \n             \n             $present=0;\n             $absent=0;\n\t\t\tfor($i=1; $i<=$day; $i++){\n\n                $att_cls=\"\";\n                $att=\"\";\n                $status=-1;\n               \n                if(isset($info_index[$student_id][$i])){\n                  $status=$info_index[$student_id][$i];\n                }\n                \n                \n                if($status==0){\n                    $absent++;\n                \t$att_cls=\"absent_class\";\n                \t$att=\"A\";\n                }\n                else if($status==-1)$pr=\"\";\n                else {\n                \t$present++;\n                \t$att_cls=\"present_class\";\n                \t$att=\"P\";\n                }\n\t\t\t ?>\n\t\t\t<td class=\"attend_td2 <?php echo $att_cls; ?>\" style=\"\"><b><?php echo \"$att\"; ?></b></td>\n\t    \t<?php } ?>\n\t    \t<td class=\"attend_td2\" style=\"width: 10px; background-color: #f7f7f7;color: #000000\"><b><?php echo \"$present\"; ?></b></td>\n\t    \t<td class=\"attend_td2\" style=\"width: 10px; background-color: #f7f7f7;color: #000000\"><b><?php echo \"$absent\"; ?></b></td>\t\t\n\t\t</tr>\n\t</tbody>\n       \t<?php\n       }\n\n\t?>\n</table>\n\n\n</div>\n\n<?php\n}\n\n?>"
  },
  {
    "path": "page_action/batch_page_action.php",
    "content": "<?php\ninclude \"layout/header_script.php\";\n\n$info=array();\n\nif(isset($_POST['insert_batch'])){\n\n\t$info=$_POST['insert_batch'];\n  unset($info['id']);\n  $db->sql_action(\"batch\",\"insert\",$info);\n\t\n}\n\nelse if(isset($_POST['update_batch'])){\n  $info=$_POST['update_batch'];\n  $db->sql_action(\"batch\",\"update\",$info);\n}\n\nelse if(isset($_POST['delete_batch'])){\n\n\t$info=$_POST['delete_batch'];\n\t$db->sql_action(\"batch\",\"delete\",$info);\n}\n\nif(isset($_POST['add_batch_form'])){\n   $day=\"\";\n   //$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n    $site->form_input(\"Batch Name\",\"insert_name\",\"batch_name\");\n    $site->form_input(\"Start Batch Time\",\"insert_name\",\"batch_start\",\"text\",\"exclamation-sign\",\"\",\"Ex: 8:00 AM\");\n    $site->form_input(\"End Batch Time\",\"insert_name\",\"batch_end\",\"text\",\"exclamation-sign\",\"\",\"Ex: 10:00 AM\");\n    ?>\n      \n      <?php $batch_ob->selectd_day($day); ?>\n      <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"batch_action('insert')\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save</button>\n \n<?php\n\n} \n\nif(isset($_POST['update_batch_form'])){\n  $id=$_POST['update_batch_form'];\n  $info=$batch[$id];\n  $name=$info['name'];\n  $start=$info['start'];\n  $end=$info['end'];\n  $day=$info['day'];\n  $site->form_input(\"Batch Name\",\"insert_name\",\"batch_name\",\"text\",\"exclamation-sign\",\"$name\",\"\");\n  $site->form_input(\"Start Batch Time\",\"insert_name\",\"batch_start\",\"text\",\"exclamation-sign\",\"$start\",\"Ex: 8:00 AM\");\n  $site->form_input(\"End Batch Time\",\"insert_name\",\"batch_end\",\"text\",\"exclamation-sign\",\"$end\",\"Ex: 10:00 AM\");\n  $batch_ob->selectd_day($day);\n\n?>\n  <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"batch_action('update',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Update Batch</button>\n\n<?php\n\n}\n\nif(isset($_POST['delete_batch_form'])){\n  $id=$_POST['delete_batch_form'];\n  ?>\n\n  <center>\n    <h3>Are You Want To Delete This Batch</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"batch_action('delete',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n  </center>\n\n  <?php\n}\n\n?>\n\n<style type=\"text/css\">\n  .day_header{\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    padding: 5px;\n    font-size: 17px;\n    border-radius: 5px 5px 0px 0px;\n  }\n  .day_body{\n    margin-bottom: 10px;\n    padding: 15px;\n    font-size: 15px;\n    border-width: 1px;\n    border-color: var(--bg-color);\n    border-style: solid;\n  }\n</style>"
  },
  {
    "path": "page_action/dashboard/dashboard_action.php",
    "content": "<?php\n\nif(isset($_POST['live_site_action'])){\n\t?>\n\n<table id=\"\" class=\"display\" width=\"100%\">\n                        <thead style=\"width: 100%;\">\n                        <tr>\n                            <td class=\"td_list1\">#</td>\n                            <td class=\"td_list1\">User Name</td>\n                            <td class=\"td_list1\">Table Name</td>\n                            <td class=\"td_list1\">Action</td>\n                            <td class=\"td_list1\">IP</td>\n                            <td class=\"td_list1\">Browser</td>\n                            <td class=\"td_list1\">Date</td>\n                            <td class=\"td_list1\">View Activity</td>\n                            \n                        </tr>\n                    </thead>\n                    <tbody>\n                        <?php \n                         \n                        $info=$site_activity->site_activity_list(1000);\n                        $c=0;\n                        foreach ($info as $key => $value) {\n                            $id=$value['id'];\n                            $user_id=$value['user_id'];\n                            $user_name=$user[$user_id]['uname'];\n                            $ago=$value['date'];\n                            $ago=$site->timeAgo($ago);\n                            if($c==10)break;\n                            //if($user_name==\"hamza05\")continue;\n                            $c++;\n                         ?>\n \n                        <tr>\n                            <td class=\"td_list2\">\n                  \t\t\t\t<?php echo $value['id']; ?> \n                            </td>\n                            <td class=\"td_list2\"><?php echo $user_name; ?></td>\n                            <td class=\"td_list2\">\n                                <?php echo $value['table_name']; ?>    \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $value['action_type']; ?>    \n                            </td>\n                            \n                            <td class=\"td_list2\">\n                                <?php echo $value['ip']; ?>    \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $value['browser']; ?>    \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $ago; ?>   \n                            </td>\n                            <td class=\"td_list2\">\n                                <button onclick=\"get_activity_info(<?php echo \"$id\"; ?>)\" class=\"btn btn-danger btn-xs\">View Activity</button>   \n                            </td>\n\n                        </tr>\n                        <?php } ?>\n                        </tbody>\n                    </table>\n\n\t<?php\n}\n\nif(isset($_POST['get_activity_info'])){\n\t$id=$_POST['get_activity_info'];\n\t$site_activity->get_activity_detail($id);\n?>\n<center>\n<button onclick=\"reload_activity(<?php echo \"$id\"; ?>)\">reload</button>\n<button onclick=\"print('activity_detail')\">Print</button>\n</center>\n<?php\n}\n\n\n?>\n"
  },
  {
    "path": "page_action/exam/exam_action.php",
    "content": "<?php\n\nif(isset($_POST['insert_exam'])){\n  $info=$_POST['insert_exam'];\n  unset($info['id']);\n  $info['add_by']=$user_id;\n  $info['date']=$db->date();\n  $db->sql_action(\"exam\",\"insert\",$info,\"no\");\n}\nif(isset($_POST['update_exam'])){\n  $info=$_POST['update_exam'];\n  print_r($info);\n  $db->sql_action(\"exam\",\"update\",$info,\"no\");\n}\nif(isset($_POST['delete_exam'])){\n  $info=$_POST['delete_exam'];\n  $db->sql_action(\"exam\",\"delete\",$info,\"no\");\n}\n\n\nif(isset($_POST['get_exam_form'])){\n  ?>\n<div class='form-group'>\n  <label class='control-label' for='inputName'><b>Select Program</b></label>\n  <div class='input-group'>\n  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n\n<select class='form-control'  name='add_program_select' id='program_select' class='cs-select cs-skin-border' onchange=\"select_program()\"  required=\"\">\n  <option value=\"0\">Select Program</option>\n  <?php $program_ob->select_program(); ?>\n</select>\n</div></div>\n\n<div class='form-group'>\n  <label class='control-label' for='inputName'><b>Select Subject</b></label>\n  <div class='input-group'>\n  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n\n<select class='form-control'  name='subject' id='select_subject' class='cs-select cs-skin-border' onchange=\"\"  required=\"\">\n</select>\n</div>\n</div></div>\n<?php\n\n$site->form_input(\"Exam Name\",\"exam_name\",\"exam_name\",\"text\");\n$site->form_input(\"MCQ Mark\",\"mcq\",\"mcq\",\"number\");\n$site->form_input(\"Written Mark\",\"written\",\"written\",\"number\");\n$site->form_input(\"Exam Date\",\"exam_date\",\"exam_date\",\"date\");\n\n?>\n\n <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"exam_action('insert')\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save Exam</button>\n\n<?php\n\n}\n\n\nif(isset($_POST['update_exam_form'])){\n $id=$_POST['update_exam_form'];\n $info=$exam[$id];\n $exam_name=$info['exam_name'];\n $program_id=$info['program_id'];\n $subject_id=$info['sub_id'];\n $mcq=$info['mcq'];\n $written=$info['written'];\n $date=$info['exam_date'];\n\n  ?>\n\n<div class='form-group'>\n  <label class='control-label' for='inputName'><b>Select Program</b></label>\n  <div class='input-group'>\n  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n\n<select class='form-control'  name='add_program_select' id='program_select' class='cs-select cs-skin-border' onchange=\"select_program()\"  required=\"\">\n  <option value=\"0\">Select Program</option>\n  <?php $program_ob->select_program($program_id); ?>\n</select>\n</div></div>\n\n<div class='form-group'>\n  <label class='control-label' for='inputName'><b>Select Subject</b></label>\n  <div class='input-group'>\n  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n\n<select class='form-control'  name='subject' id='select_subject' class='cs-select cs-skin-border' onchange=\"\"  required=\"\">\n  <?php $program_ob->option_subject($program_id,$subject_id); ?>\n</select>\n</div>\n</div></div>\n\n  <?php\n\n  $site->form_input(\"Exam Name\",\"exam_name\",\"exam_name\",\"text\",\"exclamation-sign\",\"$exam_name\");\n  $site->form_input(\"MCQ Mark\",\"mcq\",\"mcq\",\"number\",\"exclamation-sign\",\"$mcq\");\n  $site->form_input(\"Written Mark\",\"written\",\"written\",\"number\",\"exclamation-sign\",\"$written\");\n  $site->form_input(\"Exam Date\",\"exam_date\",\"exam_date\",\"date\",\"exclamation-sign\",\"$date\");\n\n?>\n\n<button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"exam_action('update',<?php echo $id; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save Exam</button>\n\n<?php\n\n}\n\n\n\n\nelse if(isset($_POST['delete'])){\n\n       $info['id']=$_POST['id'];\n       $db->sql_action(\"exam\",\"delete\",$info);\n}\n\n\nelse if(isset($_POST['select_subject1'])){\n  $program_id=$_POST['select_subject'];\n\n  echo \"<select class='form-control'  name='subject' id='subject' class='cs-select cs-skin-border' onchange=''  required=''>\";\n  foreach ($program[$program_id]['subject'] as $key => $value) {\n    $id=$value['id'];\n    $name=$subject[$id]['name'];\n    ?>\n  <option value=\"<?php echo \"$id\"; ?>\"><?php echo \"$name\"; ?></option>\n    <?php\n  }\n  echo \"</select>\";\n}\n\n\nelse if(isset($_POST['program_select'])){\n\n  $program_id=$_POST['program_select'];\n\n  foreach ($program[$program_id]['subject'] as $key => $value) {\n    $id=$value['id'];\n    $name=$subject[$id]['name'];\n    echo \"<option value='$id'>$name</option>\";\n  }\n \n}\n\n\nif(isset($_POST['delete_exam_form'])){\n  $id=$_POST['delete_exam_form'];\n  ?>\n\n  <center>\n    <h3>Are You Want To Delete This Expence</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"exam_action('delete',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n  </center>\n\n  <?php\n}\n\n\n\n?>"
  },
  {
    "path": "page_action/exam/exam_category/exam_category_action.php",
    "content": "<?php\n\nif(isset($_POST['update_exam_category'])){\n\t$info=$_POST['update_exam_category'];\n\t$db->sql_action(\"exam_category\",\"update\",$info,\"no\");\n}\nif(isset($_POST['delete_exam_category'])){\n\t$info=$_POST['delete_exam_category'];\n\t$db->sql_action(\"exam_category\",\"delete\",$info,\"no\");\n}\n\nif(isset($_POST['insert_exam_category'])){\n\t$info=$_POST['insert_exam_category'];\n\t$info['add_by']=$login_user_id;\n\t$info['date']=$db->date();\n\tunset($info['id']);\n\t$db->sql_action(\"exam_category\",\"insert\",$info,\"no\");\n}\n\nif(isset($_POST['get_exam_category_form'])){\n\t$site->form_input(\"Category Name\",\"exam_category_name\",\"exam_category_name\",\"text\",\"exclamation-sign\",\"\",\"\");\n\techo \"<b>Select Program</b>\";\n\techo \"<select class='form-control' id='select_program'>\";\n\t\techo \"<option value='-1'>Select Program</option>\";\n\t\t$program_ob->select_program();\n\techo \"</select>\";\n\t?>\n\t<br/>\n   <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"exam_category_action('insert')\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save Category</button>\n<?php\n\n}\n\nif(isset($_POST['update_exam_category_form'])){\n\t$id=$_POST['update_exam_category_form'];\n\n\t$info=$exam->get_exam_category($id);\n\t$info=$info[0];\n\t$category_name=$info['category_name'];\n\t$program_id=$info['program_id'];\n\t$site->form_input(\"Category Name\",\"exam_category_name\",\"exam_category_name\",\"text\",\"exclamation-sign\",\"$category_name\",\"\");\n\n\techo \"<b>Select Program</b>\";\n\techo \"<select class='form-control' id='select_program'>\";\n\t\techo \"<option value='-1'>Select Program</option>\";\n\t\t$program_ob->select_program($program_id);\n\techo \"</select>\";\n\t?>\n\t<br/>\n   <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"exam_category_action('update',<?php echo $id; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Update Category</button>\n<?php\n\n}\n\nif(isset($_POST['delete_exam_category_form'])){\n\t$id=$_POST['delete_exam_category_form'];\n\t?>\n\t<center>\n    <h3>Are You Want To Delete This Category</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"exam_category_action('delete',<?php echo $id; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete Category</button>\n\n  </center>\t\t\n\n<?php\n}\n\n?>"
  },
  {
    "path": "page_action/exam/exam_panel/exam_panel.php",
    "content": "<?php \n\n\n\n\n?>"
  },
  {
    "path": "page_action/exam_panel/css/style.css",
    "content": ".exam_panel_box{\n\n\t}\n\t.exam_panel_left{\n\t\tbackground-color: #ffffff;\n\t\theight: auto;\n\t\tborder-radius: 5px 5px 5px 5px;\n\t\tmargin-bottom: 10px;\n\t}\n\t.exam_panel_right{\n\t\tbackground-color: #ffffff;\n\t\theight: auto;\n\t\tborder-radius: 5px 5px 5px 5px;\n\t}\n\t.panel_title{\n\t\tfont-size: 20px;\n\t\ttext-align: center;\n\t\tpadding: 7px;\n\t\tfont-weight: bold;\n\t\tcolor: var(--font-color);\n\t\tbackground-color: var(--bg-color);\n\t\tborder-radius: 5px 5px 0px 0px;\n\t}\n\t.panel_left_option{\n\t\t\n\t}\n\t.panel_option_link{\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tcolor: #8E8C9D;\n\t\tcursor: pointer;\n\t\tfont-family:sans-serif;\n\t\tpadding: 10px 5px 10px 15px;\n\t}\n\t.panel_option_link:hover{\n\t\tbackground-color: #f5f5f5;\n\t\tcolor: var(--bg-color);\n\t\tborder: 1px solid var(--bg-color);\n\t\tborder-width: 0px 0px 0px 5px;\n\t}\n\t.icon_class{\n\t\tposition: relative;\n  \t\ttop: 4px;\n  \t\tleft: 1px;\n  \t\tfont-size: 20px;\n\t}\n\t.no-gutter > [class*='col-'] {\n    \tpadding-right:1;\n    \tpadding-left: 1;\n\t}\n\t.exam_panel_body{\n\t\tpadding: 5px;\n\t}\n"
  },
  {
    "path": "page_action/exam_panel/exam_category_panel/admit_card.php",
    "content": "<?php\n\nif(isset($_POST['admit_card'])){\n\nfunction span_mark($mark,$total){\n\techo \"<span class='mark_box'>$mark<b>/</b><span class='total_mark_box'>$total</span></span>\";\n}\n\n$total_exam=10;\n\n$total_topics=1;\n$width=40/$total_topics;\n\t\n?>\n\n\n\n<button class=\"btn\" onclick=\"print('admit_card')\">Print</button>\n\n<div id=\"admit_card\">\n<table cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" align=\"center\">\n    <tr>\n    \t<td class=\"td1\" style=\"width: 5%; background-color: #8395a7\"></td>\n    \t<td class=\"td1\" style=\"width: 5%; background-color: #8395a7\">#</td>\n        <td class=\"td1\" style=\"width: 25%; background-color: #8395a7\">Exam Name</td>\n\n         <?php for($k=0; $k<$total_topics; $k++){ ?>\n        \t<td class=\"td1\" style=\"width: <?php echo $width; ?>%; background-color: #c8d6e5\">MCQ</td>\n        <?php } ?>\n        \n        \n\n        <td class=\"td1\" style=\"width: 10%; background-color: #8395a7\">Total</td>\n        <td class=\"td1\" style=\"width: 10%; background-color: #8395a7\">GPA</td>\n        <td class=\"td1\" style=\"width: 10%; background-color: #8395a7\">Grade</td>\n    </tr>\n<?php for($i=0; $i<4; $i++){ ?>\n\n    <tr>\n        <td class='rotate' rowspan=\"<?php echo $total_exam+1; ?>\"><div>Barshik Porikka Barshik Porikka</div></td>\n    </tr>\n    <?php for($j=0; $j<$total_exam; $j++){ ?>\n    <tr <?php if($j==($total_exam-1))echo \"class='border_bottom_bold'\"; ?>>\n        <td class=\"td2\"><?php echo \"$j\"; ?></td>\n        <td class=\"td2 border_right_bold\">Bangla 1</td>\n\n        <?php for($k=0; $k<$total_topics; $k++){ ?>\n        \t<td><?php span_mark(40,50); ?></td>\n        <?php } ?>\n\n        <td class=\"td2 border_left_bold\">85</td>\n        <td class=\"td2\">5.00</td>\n        <td class=\"td2\">A+</td>\n    </tr>\n\n    <?php } ?>\n    \n   <?php } ?>\n    \n</table>\n<style>\n\ttd {\n    \tborder: 1px #cfd1d6 solid;\n    \tpadding: 7px;\n    \ttext-align: center;\n\t}\n\t.mark_box{\n\t\tbackground-color: #eeeeee;\n\t\tpadding: 5px;\n\t\tborder-radius: 5px;\n\t}\n\t.total_mark_box{\n\t\tbackground-color: #eeeeee;\n\t}\n\t.td1{\n\t\tbackground-color: #eeeeee;\n\t\tpadding: 8px;\n\t\tborder-color: #b7bcc9!important;\n\t}\n\t.td2{\n\t\tbackground-color: #f5f5f5;\n\t}\n\t.border_right_bold{\n\t\tborder-right: 2px solid #b7bcc9;\n\t}\n\t.border_left_bold{\n\t\tborder-left: 2px solid #b7bcc9;\n\t}\n\t.border_bottom_bold{\n\t\tborder-bottom: 2px solid #b7bcc9;\n\t}\n.rotate {\n  text-align: center;\n  white-space: nowrap;\n  vertical-align: middle;\n  width: 3em;\n  color: #ffffff;\n  font-weight: bold;\n  background-color: #576574;\n  border: 2px #b7bcc9 solid;\n  border-width: 0px 0px 2px 0px;\n\n\n}\n.rotate div {\n    \t -moz-transform: rotate(-90.0deg);  /* FF3.5+ */\n       \t-o-transform: rotate(-90.0deg);  /* Opera 10.5 */\n  \t\t-webkit-transform: rotate(-90.0deg);  /* Saf3.1+, Chrome */\n         -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0.083)\"; /* IE8 */\n         margin-left: -10em;\n         margin-right: -10em;\n         height: auto;\n}\n      </style>\n\n</div>\n<?php\n\n}\n\n\n\n?>"
  },
  {
    "path": "page_action/exam_panel/exam_category_panel/category_dashboard.php",
    "content": "<?php\n\nif(isset($_POST['program_select'])){\n\t$program_id=$_POST['program_select'];\n\techo \"<option value='-1'>Select Exam Category</option>\";\n\t$exam->get_exam_category_option($program_id);\n}\n\nif(isset($_POST['view_exam_panel'])){\n$category_id=$_POST['view_exam_panel'];\nneed_css();\n?>\n<div class=\"exam_panel_box\">\n\t<div class=\"row no-gutter\">\n\t\t<div class=\"col-md-3\">\n\t\t\t<div class=\"exam_panel_left\">\n\t\t\t\t<div class=\"panel_title\">Exam Panel</div>\n\t\t\t\t<div class=\"panel_left_option\">\n\t\t\t\t\t<div class=\"panel_option_link\" onclick=\"get_dashboard()\"><span class=\"glyphicon glyphicon-list-alt icon_class\"></span> Exam Dashboard</div>\n\t\t\t\t\t<div class=\"panel_option_link\" onclick=\"admit_card()\"><span class=\"glyphicon glyphicon-flag icon_class\"></span> Exam Admit Card</div>\n\t\t\t\t\t<div class=\"panel_option_link\" onclick=\"get_exam_list()\"><span class=\"glyphicon glyphicon-flag icon_class\"></span> Exam List</div>\n\t\t\t\t\t<div class=\"panel_option_link\"><span class=\"glyphicon glyphicon-pencil icon_class\"></span> Result Report</div>\n\t\t\t\t\t<div class=\"panel_option_link\"><span class=\"glyphicon glyphicon-list-alt icon_class\"></span> Add Result</div>\n\t\t\t\t\t<div class=\"panel_option_link\"><span class=\"glyphicon glyphicon-list-alt icon_class\"></span> Link</div>\n\t\t\t\t\t\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-md-9\">\n\t\t\t<div class=\"exam_panel_right\">\n\t\t\t\t<div class=\"panel_title\" id=\"panel_title\"></div>\n\t\t\t\t<div class=\"exam_panel_body\" id=\"exam_panel_body\">\n\t\t\t\t\t<center>\n\t\t\t\t\t\t<input type=\"number\" id=\"total\" name=\"\">\n\t\t\t\t\t\t<button class=\"btn\" onclick=\"add_result()\">Add Result</button>\t\n\t\t\t\t\t\t<button class=\"btn\" onclick=\"save_result()\">Save Result</button>\t\n\t\t\t\t\t</center>\n\t\t\t\t\t<div id=\"add_result\">\n\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n\n<?php } \n\nfunction need_css(){\n?>\n\n<style type=\"text/css\">\n\t.exam_panel_box{\n\n\t}\n\t.exam_panel_left{\n\t\tbackground-color: #ffffff;\n\t\theight: auto;\n\t\tborder-radius: 5px 5px 5px 5px;\n\t\tmargin-bottom: 10px;\n\t}\n\t.exam_panel_right{\n\t\tbackground-color: #ffffff;\n\t\theight: auto;\n\t\tborder-radius: 5px 5px 5px 5px;\n\t}\n\t.panel_title{\n\t\tfont-size: 20px;\n\t\ttext-align: center;\n\t\tpadding: 7px;\n\t\tfont-weight: bold;\n\t\tcolor: var(--font-color);\n\t\tbackground-color: var(--bg-color);\n\t\tborder-radius: 5px 5px 0px 0px;\n\t}\n\t.panel_left_option{\n\t\t\n\t}\n\t.panel_option_link{\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tcolor: #474747;\n\t\tcursor: pointer;\n\t\tfont-family:sans-serif;\n\t\tpadding: 10px 5px 10px 15px;\n\t}\n\t.panel_option_link:hover{\n\t\tbackground-color: #f5f5f5;\n\t\tcolor: var(--bg-color);\n\t\tborder: 1px solid var(--bg-color);\n\t\tborder-width: 0px 0px 0px 5px;\n\t}\n\t.icon_class{\n\t\tposition: relative;\n  \t\ttop: 4px;\n  \t\tleft: 1px;\n  \t\tfont-size: 20px;\n\t}\n\t.no-gutter > [class*='col-'] {\n    \tpadding-right:1;\n    \tpadding-left: 1;\n\t}\n\t.exam_panel_body{\n\t\tpadding: 5px;\n\t}\n\n</style>\n\n<?php } ?>"
  },
  {
    "path": "page_action/exam_panel/exam_category_panel/exam_list.php",
    "content": "<?php\n\nif(isset($_POST['get_exam_list'])){\n\t$category_id=$_POST['get_exam_list'];\n\t?>\n<div style=\"margin-bottom: 10px; text-align: center;\">\n\t<button class=\"btn btn-danger\">Add Exam</button>\n</div>\n\n<table class=\"table_class\">\n\t<tr>\n\t\t<td class=\"td1_class\">#</td>\n\t\t<td class=\"td1_class\">Exam Name</td>\n\t\t<td class=\"td1_class\">Subject Name</td>\n\t\t<td class=\"td1_class\">Total Mark</td>\n\t\t<td class=\"td1_class\">Action</td>\n\t</tr>\n\t<?php for($i=0; $i<15; $i++){ ?>\n\t<tr>\n\t\t<td class=\"td2_class\">1</td>\n\t\t<td class=\"td2_class\">Phy 1</td>\n\t\t<td class=\"td2_class\">Physics</td>\n\t\t<td class=\"td2_class\">15</td>\n\t\t<td class=\"td2_class\">\n\t\t\t<button class=\"btn btn-danger btn-xs\" onclick=\"view_exam(1)\">View Panel</button>\n\t\t\t<button class=\"btn btn-danger btn-xs\">Edit</button>\n\t\t\t<button class=\"btn btn-danger btn-xs\">Delete</button>\n\t\t</td>\n\t</tr>\n\t<?php } ?>\n</table>\n\n<style type=\"text/css\">\n\n.td1_class{\n\tbackground-color: #EFF0F2;\n\tcolor: #000000;\n\tpadding: 10px;\n\tfont-weight: bold;\n}\n\n.td2_class{\n\tbackground-color: #ffffff;\n\tpadding: 7px;\n}\n.td1_class,.td2_class{\n\ttext-align: center;\n\tborder: 1px solid #C6C9D1;\n}\n.btn_small{\n\n}\n</style>\n\n<?php\n\n}\n\n?>"
  },
  {
    "path": "page_action/exam_panel/exam_category_panel/include_file.php",
    "content": "<?php\n\n$path=\"page_action/exam_panel/exam_category_panel/\";\n$file=array();\narray_push($file, \"category_dashboard.php\");\narray_push($file, \"exam_list.php\");\n\nforeach ($file as $key => $value) {\n\t$file_name=\"$path$value\";\n\tinclude $file_name;\n}\n\n\n?>"
  },
  {
    "path": "page_action/exam_panel/exam_control_panel/add_result.php",
    "content": "<?php\n\nif(isset($_POST['check_id'])){\n\t$student_id=$_POST['check_id'];\n\n\t$data=array();\n\t$error=\"not_found\";\n\n\tif(isset($student[$student_id])){\n\t\t$error=\"found\";\n\t}\n\t$data['error']=$error;\n\t$data=json_encode($data);\n\techo \"$data\";\n}\n\nif(isset($_POST['add_result'])){\n\t$number=$_POST['add_result'];\n\tif($number<=0 || $number==\"\"){\n\t\techo \"Please Select Result Type\";\n\t\treturn;\n\t}\n\t$percent=80/$number;\n\n?>\n\n<table width=\"100%\">\n\t<tr>\n\t\t<td class=\"add_result_td1\" style=\"width: 5%\">#</td>\n\t\t<td class=\"add_result_td1\" style=\"width: 20%\">Student ID</td>\n\t\t<?php \n\t\t\tfor($i=0; $i<$number; $i++){ \n\t\t\t\techo \"<td class='add_result_td1' style='width: $percent%'>$i</td>\";\n\t\t\t}\n\t\t?>\n\t</tr>\n\t<?php for($j=1; $j<30; $j++){ ?>\n\t<tr class=\"add_result_body_tr\">\n\t\t<td class=\"add_result_body_td2\" style=\"width: 5%;\" id=\"check_<?php echo $j; ?>\">\n\t\t\t\n\t\t</td>\n\t\t<td class=\"add_result_body_td2\" style=\"width: 20%\">\n\t\t\t<input onkeyup=\"check_id(<?php echo $j; ?>)\" class='add_result_input' id=\"student_id_<?php echo $j; ?>\" type='number' placeholder=''>\n\t\t</td>\n\t\t<?php \n\t\t\tfor($i=0; $i<$number; $i++){ \n\t\t\t\techo \"<td class='add_result_body_td2' style='width: $percent%'><input class='add_result_input' placeholder='' type='number'></td>\";\n\t\t\t}\n\t\t?>\n\t</tr>\n\t<?php } ?>\n</table>\n\n<style type=\"text/css\">\n\t.add_result_td1{\n\t\tbackground-color: #EFF0F2;\n\t\tpadding: 10px;\n\t\ttext-align: center;\n\t\tfont-weight: bold;\n\t\tborder: 1px #C6C9D1 solid;\n\t}\n\t.add_result_input{\n\n\t\theight: 100%;\n\t\tpadding: 6px;\n\t\twidth: 100%;\n\t\tfont-size: 15px;\n\t\tfont-weight: bold;\n\t\tborder-radius: 0px;\n\t\tcolor: #7C7C7C;\n\t\tborder: 0px solid #7C7C7C;\n\t\tfont-family: \"Lucida Sans Unicode\", \"Lucida Grande\", Sans-Serif;\n\t\toutline: none;\n\t}\n\t\n\t.add_result_body_td2{\n\t\ttext-align: center;\n\t\tborder: 1px solid #C6C9D1;\n\t}\n\t.add_result_body_tr:hover .add_result_input{\n\t\tbackground-color: #f5f5f5;\n\t}\n\t.add_result_body_tr:hover {\n\t\tbackground-color: #f5f5f5;\n\t}\n\t.icon{\n\t\tfont-size: 18px;\n\t\tfont-weight: bold;\n\t}\n</style>\n<?php\n\n}\n\n?>"
  },
  {
    "path": "page_action/exam_panel/exam_control_panel/exam_dashboard.php",
    "content": "<?php\nif(isset($_POST['view_exam'])){\n?>\n<div class=\"row\">\n    <div class=\"col-md-3\">asdf</div>\n    <div class=\"col-md-9\">asdf</div>\n</div>\n<button class=\"btn btn-danger btn-xs\" onclick=\"view_exam(1)\">View Panel</button>\n<div class=\"row\" style=\"padding: 15px;\">\n\t\t<div class=\"col-md-12\">\n            <div class=\"panel panel-primary\">\n                <div class=\"panel-heading\">\n                    <h3 class=\"panel-title\" id=\"exam_panel_title\">Panel title</h3>\n                    <span class=\"pull-right\">\n                        <!-- Tabs -->\n                        <ul class=\"nav panel-tabs\">\n                            <li class=\"active\">\n                                <a href=\"\" onclick=\"exam_control('exam_overview')\" data-toggle=\"tab\">\n                                    <span class=\"glyphicon glyphicon-list-alt icon_class\">    \n                                    </span> <br/>\n                                    Exam Overview\n                                </a>\n                            </li>\n                            <li class=\"\">\n                                <a href=\"\" onclick=\"exam_control('exam_report')\"  data-toggle=\"tab\">\n                                    <span class=\"glyphicon glyphicon-list-alt icon_class\">    \n                                    </span> <br/>\n                                    Result Report\n                                </a>\n                            </li>\n                            <li class=\"\">\n                                <a href=\"#tab1\" onclick=\"exam_control('add_result')\" data-toggle=\"tab\">\n                                    <span class=\"glyphicon glyphicon-list-alt icon_class\">    \n                                    </span> <br/>\n                                    Add Result\n                                </a>\n                            </li>\n                            <li class=\"\">\n                                <a href=\"#tab1\" data-toggle=\"tab\">\n                                    <span class=\"glyphicon glyphicon-list-alt icon_class\">    \n                                    </span> <br/>\n                                    SMS Result\n                                </a>\n                            </li>\n                        </ul>\n                    </span>\n                </div>\n                <div class=\"panel-body\" id=\"exam_control_panel_body\">\n                    \n                      \n                </div>\n            </div>\n        </div>\n\t</div>\n\n<style type=\"text/css\">\n\t/*Panel tabs*/\n.panel-title{\n    padding-top: 5px;\n    font-size: 22px;\n    font-weight: bold;\n}\n.panel-heading{\n    height: 62px;\n}\n.panel-tabs {\n    position: relative;\n    bottom: 44px;\n    font-size: 14px;\n}\n\n.panel-tabs > li {\n    float: left;\n    text-align: center;\n}\n\n.panel-tabs > li > a {\n    font-size: 14px;\n    border: 0px solid transparent;\n    font-weight: bold;\n    margin-top: 5px;\n    margin-right: 4px;\n    \n}\n\n.panel-tabs > li > a:hover {\n    color: #fff;\n    cursor: pointer;\n    font-size: 14px;\n    height: 60px;\n    margin-top: 5px;\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    border-bottom-color: transparent;\n    \n}\n\n.panel-tabs > li.active > a,\n.panel-tabs > li.active > a:hover,\n.panel-tabs > li.active > a:focus {\n    color: #fff;\n    cursor: default;\n    font-size: 14px;\n    height: 60px;\n    margin-top: 0px;\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    border-bottom-color: transparent;\n}\n</style>\n\n<?php\n\n}\n\n?>\n\n"
  },
  {
    "path": "page_action/exam_panel/exam_control_panel/include_file.php",
    "content": "<?php\n\n$path=\"page_action/exam_panel/exam_control_panel/\";\n$file=array();\narray_push($file, \"overview.php\");\narray_push($file, \"exam_dashboard.php\");\n\n\n\nforeach ($file as $key => $value) {\n\t$file_name=\"$path$value\";\n\tinclude $file_name;\n}\n\n\n?>"
  },
  {
    "path": "page_action/exam_panel/exam_control_panel/overview.php",
    "content": "<?php\n\n\n\n\nif(isset($_POST['exam_overview'])){\n\n?>\n\n<div class=\"row\">\n\t<div class=\"col-md-4\">\n\t\t\n\t\t<div class=\"div_he\">\n\t\t\tMark Distribuation\n\t\t\tasdf\n\t\t</div>\n\t</div>\n\t<div class=\"col-md-8\">\n\t\t\n\t\t<div class=\"div_he\">\n\t\t\tMark Distribuation\n\t\t\tasdf\n\n\t\t</div>\n\t\t<div class=\"cls_right\">\n\t\t\t<center>\n\t\t\t\t<button class=\"btn\">Add Mark</button>\n\t\t\t</center>\n\t\t\t<table width=\"100%\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td>#</td>\n\t\t\t\t\t<td>Name</td>\n\t\t\t\t\t<td>Mark</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</div>\n\t</div>\n</div>\n<style type=\"text/css\">\n\t.div_he{\n\t\tbackground-color: #ECECEC;\n\t\ttext-align: center;\n\t\tpadding: 5px;\n\t\tcolor: #000000;\n\t\tfont-weight: bold;\n\n\t}\n\t.cls_right{\n\t\tpadding: 10px;\n\t\tborder: 1px solid #ECECEC;\n\t}\n\t\n</style>\n\n<?php\n\n}\n\n\n?>"
  },
  {
    "path": "page_action/exam_panel/exam_panel.php",
    "content": "<?php\n\ninclude \"page_action/exam_panel/exam_category_panel/include_file.php\";\ninclude \"page_action/exam_panel/exam_control_panel/include_file.php\";\n\n\n?>"
  },
  {
    "path": "page_action/id_card/edit_id_card/edit_id_card_action.php",
    "content": "<?php\n\nif(isset($_POST['load_id_card'])){\n  $info=$student_ob->get_admit_program_info(15);\n  $data=array();\n  array_push($data, $info);\n  \n ?>\n <div id=\"print_area\">\n  <?php  $id_card->get_id_card($data); ?>\n</div>\n\n <?php\n}\nif(isset($_POST['click_option'])){\n\t$option_name=$_POST['click_option'];\n\n?>\n\n <div class=\"wrapperr\">\n    <div class=\"box\">\n      <div id=\"task1\" class=\"task\" draggable=\"true\">\n         task 1\n      </div>\n      <div id=\"task2\" class=\"task\" draggable=\"true\">\n         task 2\n      </div>\n      <div id=\"task3\" class=\"task\" draggable=\"true\">\n         task 3\n      </div>\n    </div>\n    \n    <div class=\"box\">\n    </div>\n  </div>\n\n<div class=\"row\">\n\t<div class=\"col-md-6\">\n\t\t<div class=\"option_header\">Select Option</div>\n\t\t<div class=\"option_area wrapper1\" ondrop=\"ondrop(event)\">\n\t\t\t<div class=\"option_btn\" draggable=\"true\" ondragstart=\"drag(event)\" \n\t\t\t>Name1</div>\n\t\t\t<div class=\"option_btn task1\">Name</div>\n\t\t\t<div class=\"option_btn task1\">Name</div>\n\t\t\t<div class=\"option_btn task1\">Name</div>\n\t\t\t<div class=\"option_btn task1\">Name</div>\n\t\t\t<div class=\"option_btn task1\">Name</div>\n\t\t\t<div class=\"option_btn task1\">Name</div>\n\t\t</div>\n\t</div>\n\t<div class=\"col-md-6\">\n\t\t<div class=\"option_header\">Select Option</div>\n\t\t<div class=\"option_area\" id=\"drag1\" draggable=\"true\" ondragstart=\"drag(event)\">\n\t\t\t\n\n\t\t</div>\n\t</div>\n</div>\n\t\n\n\n\n<style type=\"text/css\">\n\t.option_area{\n\t\tbackground-color: #ffffff;\n\t\tborder: 1px dashed #eeeeee;\n\t\tpadding: 15px;\n\t}\n\t.option_header{\n\t\tbackground-color: #eeeeee;\n\t\tpadding: 5px;\n\t}\n\t.option_btn{\n\t\tpadding: 8px;\n\t\tbackground-color: #f5f5f5;\n\t\tcursor: pointer;\n\t\tborder: 1px dashed #eeeeee;\n\t\tmargin-bottom: 5px;\n\t}\n\t.option_btn:hover{\n\t\tbackground-color: #eeeeee;\n\t}\n</style>\n<!-- <input type=\"range\" min=\"1\" max=\"100\" value=\"50\" class=\"slider\" id=\"myRange\"> -->\n\n<?php\n\n}\n\n\n?>"
  },
  {
    "path": "page_action/install/install.php",
    "content": "<?php\ninclude \"script/install/install.php\";\n\n$install     = new install();\n$config_file = $install->config_file;\n\nif (isset($_POST['view_install_page'])) {\n    viewInstallPage();\n}\n\nfunction viewInstallPage(){\n    $install     = new install();\n    $config_file = $install->config_file;\n    $step = $install->step_install();\n\n    if($step == 2){\n        successfullyInstall();\n    }\n    else if ($step == 1) {\n        form_step1();\n    }\n\n}\n\nif (isset($_POST['install_first_step'])) {\n\n    $info = $_POST['install_first_step'];\n    $host = $info['hostname'];\n    $user = $info['db_user'];\n    $pass = $info['db_pass'];\n    $db   = $info['db_name'];\n\n    $db_config = \"\n    <?php\n        define('db_host', '$host');\n        define('db_user', '$user');\n        define('db_pass', '$pass');\n        define('db_name', '$db');\n    ?>\n    \";\n\n    $conn = mysqli_connect($host, $user, $pass, $db) or die(\"Unable to Connect to 'host'\");\n    if ($conn) {\n        file_put_contents($config_file, $db_config, FILE_APPEND | LOCK_EX);\n        form_step2();\n    } else {\n        echo \"System Install Failed\";\n    }\n\n}\n\nfunction form_step1()\n{\n    ?>\n\n<h3 class=\"register-heading\">Setup Database</h3>\n    <div class=\"row register-form\">\n        <div class=\"col-md-12\">\n\n        <div class=\"formLabel\">Host Name</div>\n        <input type=\"text\" class=\"inputField\" id=\"hostname\" placeholder=\"Hostname\" value=\"\" />\n\n        <div class=\"formLabel\">Database User</div>\n        <input type=\"text\" class=\"inputField\" id=\"db_user\" placeholder=\"Database User\" value=\"\" />\n        \n        <div class=\"formLabel\">Database Password</div>\n        <input type=\"text\" class=\"inputField\" id=\"db_pass\" placeholder=\"Database Password\" value=\"\" />\n\n        <div class=\"formLabel\">Database Name</div>\n        <input type=\"text\" class=\"inputField\" id=\"db_name\"  placeholder=\"Database Name\" value=\"\" />\n\n     <center>\n        <button class=\"btnRegister\" onclick=\"install_first_step()\">Install</button>\n   </center>\n    </div>\n</div>\n<?php\n}\n\nfunction successfullyInstall(){\n?>\n    <style type=\"text/css\">\n    .loginArea {\n        margin-top: 80px;\n    }\n    i{\n        color: #67B869;\n        font-size: 6em;\n        margin-bottom: 20px;\n    }\n</style>\n<center>\n    <div style=\"margin-top: 30px;\"></div>\n    <font size=\"30px;\" color=\"#67B869\">Success!</font><br/>\n    Install Successfully Done<br/><br/>\n    <i class=\"fas fa-check-circle\"></i><br/>\n<b>User Name :</b> admin<br/>\n<b>Password :</b> admin<br/><br/>\n<br/>\n<a href=\"login.php\"><button class=\"btn btn-success\" style=\"font-size: 15px;\">Login Account</button></a>\n</center>\n<?php\n}\n\nfunction form_step2()\n{\n    $install     = new install();\n    $sql         = $install->get_file_data(\"sql/install_sql.sql\");\n\n    $config_file = $install->config_file;\n    include \"$config_file\";\n    $host = db_host;\n    $user = db_user;\n    $pass = db_pass;\n    $db   = db_name;\n    $conn = mysqli_connect($host, $user, $pass, $db);\n\n    $templine = '';\n// Read in entire file\n    $lines = file(\"sql/install_sql.sql\");\n// Loop through each line\n    foreach ($lines as $line) {\n// Skip it if it's a comment\n        if (substr($line, 0, 2) == '--' || $line == '') {\n            continue;\n        }\n\n// Add this line to the current segment\n        $templine .= $line;\n// If it has a semicolon at the end, it's the end of the query\n        if (substr(trim($line), -1, 1) == ';') {\n            // Perform the query\n            mysqli_query($conn, $templine);\n            // Reset temp variable to empty\n            $templine = '';\n        }\n    }\n    viewInstallPage();\n\n}\n\n?>\n\n"
  },
  {
    "path": "page_action/nav_bar/chat_system.php",
    "content": "<?php\n\nif(isset($_POST['send_message_chat'])){\n\t$info=array();\n\t$info=$_POST['send_message_chat'];\n\t$info['user_id']=$login_user_id;\n\t$info['date']=$db->date();\n\t$db->sql_action(\"chat\",\"insert\",$info,\"no\");\n\t\n}\n\n\nif(isset($_POST['load_chat_body_data'])){\n\n   $info=$chat->get_chat_list();\n   foreach ($info as $key => $value) {\n   \t $id=$value['id'];\n   \t $user_id=$value['user_id'];\n   \t $message=$value['message'];\n     $user_role=$user[$user_id]['permit'];\n     $data=$value;\n     if($role>=6){\n        if($user_role>=6)login_user_chat($user[$user_id],$data); \n        else non_login_user_chat($user[$user_id],$data); \n     }\n     else {\n     \tif($user_role<=6)login_user_chat($user[$user_id],$data); \n        else non_login_user_chat($user[$user_id],$data); \n     }\n\n   }\n\n\t\n\n}\n\nif(isset($_POST['live_chat_nav'])){\n\tchat_css();\n?>\n\n<div class=\"row bootstrap snippets\" style=\"margin: -20px -35px -35px -35px\">\n <div class=\"col-md-12\">\n      <!-- DIRECT CHAT SUCCESS -->\n      <div class=\"box box-primary direct-chat direct-chat-primary\">\n       \n        <!-- /.box-header -->\n        <div class=\"box-body\">\n          <!-- Conversations are loaded here -->\n          <div class=\"direct-chat-messages\" id=\"message_body\">\n            \n             \n\n          </div>\n          <!--/.direct-chat-messages-->\n    \n          \n          <!-- /.direct-chat-pane -->\n        </div>\n        <!-- /.box-body -->\n        <div class=\"box-footer\">\n          \n            <div class=\"input-group\">\n              <input type=\"text\" id=\"message\" autocomplete=\"off\" name=\"message\" placeholder=\"Type Message ...\" class=\"form-control\">\n                  <span class=\"input-group-btn\">\n                    <button onclick=\"send_message_chat()\" type=\"submit\" class=\"btn btn-success btn-flat\">Send</button>\n                  </span>\n            </div>\n          \n        </div>\n        <!-- /.box-footer-->\n      </div>\n      <!--/.direct-chat -->\n    </div>\n\n</div>\n\n<?php\n\n}\n\nfunction non_login_user_chat($user,$data){\n\t$user_id=$data['user_id'];\n\t$user_name=$user['uname'];\n\t$photo=$user['photo'];\n\t$date1=$data['date'];\n\t$date=date('d M Y h:i a', strtotime($date1));\n\t$message=$data['message'];\n\t?>\n <div class=\"direct-chat-msg left\">\n              <div class=\"direct-chat-info clearfix\">\n                <span class=\"direct-chat-name pull-left\"><a href=\"user_info.php?user_id=<?php echo $user_id; ?>\" target=\"_blank\"><?php echo \"$user_name\"; ?></a></span>\n                <span class=\"direct-chat-timestamp pull-right\"title=\"<?php echo $date1; ?>\"><?php echo \"$date\"; ?></span>\n              </div>\n              <!-- /.direct-chat-info -->\n              <a href=\"user_info.php?user_id=<?php echo $user_id; ?>\" target=\"_blank\"><img class=\"direct-chat-img\" src=\"<?php echo $photo; ?>\" alt=\"Message User Image\"><!-- /.direct-chat-img -->\n              <div class=\"direct-chat-text\">\n                <?php echo \"$message\"; ?>\n              </div>\n              <!-- /.direct-chat-text -->\n    </div>\n\n<?php\t\n}\n\n\nfunction login_user_chat($user,$data){\n\t$user_id=$data['user_id'];\n\t$user_name=$user['uname'];\n\t$photo=$user['photo'];\n\t$date1=$data['date'];\n\t$user_role=$user['permit'];\n\t$date=date('d M Y h:i a', strtotime($date1));\n\t$message=$data['message'];\n\n\t?>\n\n<!-- Message to the right -->\n            <div class=\"direct-chat-msg right\">\n              <div class=\"direct-chat-info clearfix\">\n                <span class=\"direct-chat-name pull-right\"><a href=\"user_info.php?user_id=<?php echo $user_id; ?>\" target=\"_blank\"><?php echo \"$user_name\"; ?></a></span>\n                \n                <span class=\"direct-chat-timestamp pull-left\" title=\"<?php echo $date1; ?>\"><?php echo \"$date\"; ?></span>\n              </div>\n              <!-- /.direct-chat-info -->\n              <a href=\"user_info.php?user_id=<?php echo $user_id; ?>\" target=\"_blank\"><img class=\"direct-chat-img\" src=\"<?php echo $photo; ?>\" alt=\"Message User Image\"></a><!-- /.direct-chat-img -->\n              <div class=\"direct-chat-text\">\n                <?php echo \"$message\"; ?>\n                      \n              </div>\n              <!-- /.direct-chat-text -->\n            </div>\n            <!-- /.direct-chat-msg -->\n\n<?php\n\n}\n\nfunction chat_css(){\n\n?>\n\n<style type=\"text/css\">\n\t.box {\n    position: relative;\n    border-radius: 3px;\n    background: #ffffff;\n    border-top: 0px solid #d2d6de;\n    margin-bottom: 0px;\n    width: 100%; \n    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);\n}\n.box.box-primary {\n    border-top-color: var(--bg-color);\n    color: var(--font-color);\n}\n.box.box-info {\n    border-top-color: #00c0ef;\n}\n.box.box-danger {\n    border-top-color: #dd4b39;\n}\n.box.box-warning {\n    border-top-color: #f39c12;\n}\n.box.box-success {\n    border-top-color: #00a65a;\n}\n.box.box-default {\n    border-top-color: #d2d6de;\n}\n.box.collapsed-box .box-body, .box.collapsed-box .box-footer {\n    display: none;\n}\n.box .nav-stacked>li {\n    border-bottom: 1px solid #f4f4f4;\n    margin: 0;\n}\n.box .nav-stacked>li:last-of-type {\n    border-bottom: none;\n}\n.box.height-control .box-body {\n    max-height: 300px;\n    overflow: auto;\n}\n.box .border-right {\n    border-right: 1px solid #f4f4f4;\n}\n.box .border-left {\n    border-left: 1px solid #f4f4f4;\n}\n.box.box-solid {\n    border-top: 0;\n}\n.box.box-solid>.box-header .btn.btn-default {\n    background: transparent;\n}\n.box.box-solid>.box-header .btn:hover, .box.box-solid>.box-header a:hover {\n    background: rgba(0, 0, 0, 0.1);\n}\n.box.box-solid.box-default {\n    border: 1px solid #d2d6de;\n}\n.box.box-solid.box-default>.box-header {\n    color: #444;\n    background: #d2d6de;\n    background-color: #d2d6de;\n}\n.box.box-solid.box-default>.box-header a, .box.box-solid.box-default>.box-header .btn {\n    color: #444;\n}\n.box.box-solid.box-primary {\n    border: 1px solid var(--bg-color);\n}\n.box.box-solid.box-primary>.box-header {\n    color: var(--font-color);\n    background: var(--bg-color);\n    background-color: var(--bg-color);\n}\n.box.box-solid.box-primary>.box-header a, .box.box-solid.box-primary>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid.box-info {\n    border: 1px solid #00c0ef;\n}\n.box.box-solid.box-info>.box-header {\n    color: #fff;\n    background: #00c0ef;\n    background-color: #00c0ef;\n}\n.box.box-solid.box-info>.box-header a, .box.box-solid.box-info>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid.box-danger {\n    border: 1px solid #dd4b39;\n}\n.box.box-solid.box-danger>.box-header {\n    color: #fff;\n    background: #dd4b39;\n    background-color: #dd4b39;\n}\n.box.box-solid.box-danger>.box-header a, .box.box-solid.box-danger>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid.box-warning {\n    border: 1px solid #f39c12;\n}\n.box.box-solid.box-warning>.box-header {\n    color: #fff;\n    background: #f39c12;\n    background-color: #f39c12;\n}\n.box.box-solid.box-warning>.box-header a, .box.box-solid.box-warning>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid.box-success {\n    border: 1px solid #00a65a;\n}\n.box.box-solid.box-success>.box-header {\n    color: #fff;\n    background: #00a65a;\n    background-color: #00a65a;\n}\n.box.box-solid.box-success>.box-header a, .box.box-solid.box-success>.box-header .btn {\n    color: #fff;\n}\n.box.box-solid>.box-header>.box-tools .btn {\n    border: 0;\n    box-shadow: none;\n}\n.box.box-solid[class*='bg']>.box-header {\n    color: #fff;\n}\n.box .box-group>.box {\n    margin-bottom: 5px;\n}\n.box .knob-label {\n    text-align: center;\n    color: #333;\n    font-weight: 100;\n    font-size: 12px;\n    margin-bottom: 0.3em;\n}\n.box>.overlay, .overlay-wrapper>.overlay, .box>.loading-img, .overlay-wrapper>.loading-img {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%}\n.box .overlay, .overlay-wrapper .overlay {\n    z-index: 50;\n    background: rgba(255, 255, 255, 0.7);\n    border-radius: 3px;\n}\n.box .overlay>.fa, .overlay-wrapper .overlay>.fa {\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    margin-left: -15px;\n    margin-top: -15px;\n    color: #000;\n    font-size: 30px;\n}\n.box .overlay.dark, .overlay-wrapper .overlay.dark {\n    background: rgba(0, 0, 0, 0.5);\n}\n.box-header:before, .box-body:before, .box-footer:before, .box-header:after, .box-body:after, .box-footer:after {\n    content: \" \";\n    display: table;\n}\n.box-header:after, .box-body:after, .box-footer:after {\n    clear: both;\n}\n.box-header {\n    color: #444;\n    display: block;\n    padding: 10px;\n    position: relative;\n}\n.box-header.with-border {\n    border-bottom: 1px solid #f4f4f4;\n}\n.collapsed-box .box-header.with-border {\n    border-bottom: none;\n}\n.box-header>.fa, .box-header>.glyphicon, .box-header>.ion, .box-header .box-title {\n    display: inline-block;\n    font-size: 18px;\n    margin: 0;\n    line-height: 1;\n}\n.box-header>.fa, .box-header>.glyphicon, .box-header>.ion {\n    margin-right: 5px;\n}\n.box-header>.box-tools {\n    position: absolute;\n    right: 10px;\n    top: 5px;\n}\n.box-header>.box-tools [data-toggle=\"tooltip\"] {\n    position: relative;\n}\n.box-header>.box-tools.pull-right .dropdown-menu {\n    right: 0;\n    left: auto;\n}\n.btn-box-tool {\n    padding: 5px;\n    font-size: 12px;\n    background: transparent;\n    color: #97a0b3;\n}\n.open .btn-box-tool, .btn-box-tool:hover {\n    color: #606c84;\n}\n.btn-box-tool.btn:active {\n    box-shadow: none;\n}\n.box-body {\n    border-top-left-radius: 0;\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 3px;\n    border-bottom-left-radius: 3px;\n    padding: 10px;\n}\n.no-header .box-body {\n    border-top-right-radius: 3px;\n    border-top-left-radius: 3px;\n}\n.box-body>.table {\n    margin-bottom: 0;\n}\n.box-body .fc {\n    margin-top: 5px;\n}\n.box-body .full-width-chart {\n    margin: -19px;\n}\n.box-body.no-padding .full-width-chart {\n    margin: -9px;\n}\n.box-body .box-pane {\n    border-top-left-radius: 0;\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 0;\n    border-bottom-left-radius: 3px;\n}\n.box-body .box-pane-right {\n    border-top-left-radius: 0;\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 3px;\n    border-bottom-left-radius: 0;\n}\n.box-footer {\n    border-top-left-radius: 0;\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 3px;\n    border-bottom-left-radius: 3px;\n    border-top: 1px solid #f4f4f4;\n    padding: 10px;\n    background-color: #fff;\n}\n.direct-chat .box-body {\n    border-bottom-right-radius: 0;\n    border-bottom-left-radius: 0;\n    position: relative;\n    overflow-x: hidden;\n    padding: 0;\n}\n.direct-chat.chat-pane-open .direct-chat-contacts {\n    -webkit-transform: translate(0,  0);\n    -ms-transform: translate(0,  0);\n    -o-transform: translate(0,  0);\n    transform: translate(0,  0);\n}\n.direct-chat-messages {\n    -webkit-transform: translate(0,  0);\n    -ms-transform: translate(0,  0);\n    -o-transform: translate(0,  0);\n    transform: translate(0,  0);\n    padding: 10px;\n    height: 350px;\n    overflow: auto;\n}\n.direct-chat-msg, .direct-chat-text {\n    display: block;\n}\n.direct-chat-msg {\n    margin-bottom: 10px;\n}\n.direct-chat-msg:before, .direct-chat-msg:after {\n    content: \" \";\n    display: table;\n}\n.direct-chat-msg:after {\n    clear: both;\n}\n.direct-chat-messages, .direct-chat-contacts {\n    -webkit-transition: -webkit-transform .5s ease-in-out;\n    -moz-transition: -moz-transform .5s ease-in-out;\n    -o-transition: -o-transform .5s ease-in-out;\n    transition: transform .5s ease-in-out;\n}\n.direct-chat-text {\n    border-radius: 5px;\n    position: relative;\n    padding: 5px 10px;\n    background: #d2d6de;\n    border: 1px solid #d2d6de;\n    margin: 5px 0 0 50px;\n    color: #444;\n}\n.direct-chat-text:after, .direct-chat-text:before {\n    position: absolute;\n    right: 100%;\n    top: 15px;\n    border: solid transparent;\n    border-right-color: #d2d6de;\n    content: ' ';\n    height: 0;\n    width: 0;\n    pointer-events: none;\n}\n.direct-chat-text:after {\n    border-width: 5px;\n    margin-top: -5px;\n}\n.direct-chat-text:before {\n    border-width: 6px;\n    margin-top: -6px;\n}\n.right .direct-chat-text {\n    margin-right: 50px;\n    margin-left: 0;\n}\n.right .direct-chat-text:after, .right .direct-chat-text:before {\n    right: auto;\n    left: 100%;\n    border-right-color: transparent;\n    border-left-color: #d2d6de;\n}\n.direct-chat-img {\n    border-radius: 50%;\n    float: left;\n    width: 40px;\n    height: 40px;\n}\n.right .direct-chat-img {\n    float: right;\n}\n.direct-chat-info {\n    display: block;\n    margin-bottom: 2px;\n    font-size: 12px;\n}\n.direct-chat-name {\n    font-weight: 600;\n}\n.direct-chat-timestamp {\n    color: #999;\n}\n.direct-chat-contacts-open .direct-chat-contacts {\n    -webkit-transform: translate(0,  0);\n    -ms-transform: translate(0,  0);\n    -o-transform: translate(0,  0);\n    transform: translate(0,  0);\n}\n.direct-chat-contacts {\n    -webkit-transform: translate(101%,  0);\n    -ms-transform: translate(101%,  0);\n    -o-transform: translate(101%,  0);\n    transform: translate(101%,  0);\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    height: 250px;\n    width: 100%;\n    background: #222d32;\n    color: #fff;\n    overflow: auto;\n}\n.contacts-list>li {\n    border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n    padding: 10px;\n    margin: 0;\n}\n.contacts-list>li:before, .contacts-list>li:after {\n    content: \" \";\n    display: table;\n}\n.contacts-list>li:after {\n    clear: both;\n}\n.contacts-list>li:last-of-type {\n    border-bottom: none;\n}\n.contacts-list-img {\n    border-radius: 50%;\n    width: 40px;\n    float: left;\n}\n.contacts-list-info {\n    margin-left: 45px;\n    color: #fff;\n}\n.contacts-list-name, .contacts-list-status {\n    display: block;\n}\n.contacts-list-name {\n    font-weight: 600;\n}\n.contacts-list-status {\n    font-size: 12px;\n}\n.contacts-list-date {\n    color: #aaa;\n    font-weight: normal;\n}\n.contacts-list-msg {\n    color: #999;\n}\n.direct-chat-danger .right>.direct-chat-text {\n    background: #dd4b39;\n    border-color: #dd4b39;\n    color: #fff;\n}\n.direct-chat-danger .right>.direct-chat-text:after, .direct-chat-danger .right>.direct-chat-text:before {\n    border-left-color: #dd4b39;\n}\n.direct-chat-primary .right>.direct-chat-text {\n    background: var(--bg-color);\n    border-color: var(--bg-color);\n    color: var(--font-color);\n}\n.direct-chat-primary .right>.direct-chat-text:after, .direct-chat-primary .right>.direct-chat-text:before {\n    border-left-color: var(--bg-color);\n}\n.direct-chat-warning .right>.direct-chat-text {\n    background: #f39c12;\n    border-color: #f39c12;\n    color: #fff;\n}\n.direct-chat-warning .right>.direct-chat-text:after, .direct-chat-warning .right>.direct-chat-text:before {\n    border-left-color: #f39c12;\n}\n.direct-chat-info .right>.direct-chat-text {\n    background: #00c0ef;\n    border-color: #00c0ef;\n    color: #fff;\n}\n.direct-chat-info .right>.direct-chat-text:after, .direct-chat-info .right>.direct-chat-text:before {\n    border-left-color: #00c0ef;\n}\n.direct-chat-success .right>.direct-chat-text {\n    background: #00a65a;\n    border-color: #00a65a;\n    color: #fff;\n}\n.direct-chat-success .right>.direct-chat-text:after, .direct-chat-success .right>.direct-chat-text:before {\n    border-left-color: #00a65a;\n}\n</style>\n\n<?php } ?>\n"
  },
  {
    "path": "page_action/nav_bar/nav_bar.php",
    "content": "<?php\ninclude \"page_action/nav_bar/chat_system.php\";\ninclude \"page_action/nav_bar/sql_editor.php\";\ninclude \"page_action/nav_bar/theme.php\";\n\n\n\nif(isset($_POST['student_info_nav_bar'])){\n\tneed_css();\n\t?>\n\n\t\t\t<a href=\"add_student.php\">\n            <button class=\"btn_tab_under\"><i class=\"fa fa-plus\"></i> Add Student</button>\n            </a>\n            <button class=\"btn_tab_under\" onclick=\"nav_bar_student_action(1)\"><i class=\"fa fa-search\t\"></i> Find Student</button>\n            <button class=\"btn_tab_under\" onclick=\"nav_bar_student_action(2)\"><i class=\"fa fa-usd\"></i> Payment Receive</button>\n\n\t<?php \n}\n\nif(isset($_POST['nav_bar_student_action'])){\n\t$per=$_POST['nav_bar_student_action'];\n\t$btn=($per==1)?\"View Student\":\"Receive Payment\";\n\tneed_css();\n?>\n    <input type=\"text\" class=\"input_style\" placeholder=\"Enter Student ID\" name=\"\" id=\"student_id\">\n    <button class=\"btn_tab_under\" onclick=\"nav_bar_student_final_action(<?php echo $per; ?>)\"><?php echo $btn; ?></button>\n\n<?php\n\n}\n\nif(isset($_POST['check_student_id'])){\n\t$id=$_POST['check_student_id'];\n    $info=array();\n\t$info['status']=0;\n\tif(isset($student[$id]))$info['status']=1;\n    $info=json_encode($info);\n    echo \"$info\";\n}\n\nif(isset($_POST['sms_state_nav'])){\n\t$info=$sms->sms_balance();\n\t$total_send=$info['total_send'];\n\t$total_balance=$info['balance'];\n\n\t$sms_send_data=$graph->get_last_sms_data(7);\n\t$info=json_decode($sms_send_data,true);\n\t$today_send=0;\n\t$week_sms_send=0;\n\tforeach ($info as $key => $value) {\n\t\t$val=$value['y'];\n\t\t$today_send=$val;\n\t\t$week_sms_send+=$val;\n\t}\n\n\t\n\tneed_css();\n\t?>\n<div class=\"row\">\n\t<div class=\"col-lg-6 col-sm-6\">\n\t    <div class=\"circle-tile\">\n\t            <div class=\"circle-tile-heading dark-blue\">\n\t                <i class=\"fa fa-tasks fa-fw fa-3x\"></i>\n\t            </div>\n\t       \n\t        <div class=\"circle-tile-content dark-blue\">\n\t            <div class=\"circle-tile-description text-faded\">\n\t                Total Send\n\t            </div>\n\t            <div class=\"circle-tile-number text-faded\">\n\t                <?php echo \"$total_send\"; ?>\n\t                <span id=\"sparklineB\"></span>\n\t            </div>\n\t            \n\t        </div>\n\t    </div>\n\t</div>\n\t<div class=\"col-lg-6 col-sm-6\">\n\t    <div class=\"circle-tile\">\n\t            <div class=\"circle-tile-heading dark-blue\">\n\t                <i class=\"fa fa-tasks fa-fw fa-3x\"></i>\n\t            </div>\n\t       \n\t        <div class=\"circle-tile-content dark-blue\">\n\t            <div class=\"circle-tile-description text-faded\">\n\t                Total Balance\n\t            </div>\n\t            <div class=\"circle-tile-number text-faded\">\n\t                <?php echo \"$total_balance\"; ?>\n\t                <span id=\"sparklineB\"></span>\n\t            </div>\n\t            \n\t        </div>\n\t    </div>\n\t</div>\n\t<div class=\"col-lg-6 col-sm-6\">\n\t    <div class=\"circle-tile\">\n\t            <div class=\"circle-tile-heading dark-blue\">\n\t                <i class=\"fa fa-tasks fa-fw fa-3x\"></i>\n\t            </div>\n\t       \n\t        <div class=\"circle-tile-content dark-blue\">\n\t            <div class=\"circle-tile-description text-faded\">\n\t                Today Total Send\n\t            </div>\n\t            <div class=\"circle-tile-number text-faded\">\n\t                <?php echo \"$today_send\"; ?>\n\t                <span id=\"sparklineB\"></span>\n\t            </div>\n\t            \n\t        </div>\n\t    </div>\n\t</div>\n\t<div class=\"col-lg-6 col-sm-6\">\n\t    <div class=\"circle-tile\">\n\t            <div class=\"circle-tile-heading dark-blue\">\n\t                <i class=\"fa fa-tasks fa-fw fa-3x\"></i>\n\t            </div>\n\t       \n\t        <div class=\"circle-tile-content dark-blue\">\n\t            <div class=\"circle-tile-description text-faded\">\n\t                This Week Total Send\n\t            </div>\n\t            <div class=\"circle-tile-number text-faded\">\n\t                <?php echo \"$week_sms_send\"; ?>\n\t                <span id=\"sparklineB\"></span>\n\t            </div>\n\t            \n\t        </div>\n\t    </div>\n\t</div>\n</div>\n<?php\n\n}\n\n\nfunction need_css(){\n\n?>\n\n<style type=\"text/css\">\n\t.btn_tab_under{\n\t\tbackground-color: var(--bg-color);\n\t\tcolor: var(--font-color);\n\t\tpadding: 15px 5px 15px 5px;\n\t\tmargin-top: 5px;\n\t\twidth: 100%;\n\t\tborder-width: 0px;\n\t}\n\t.input_style{\n\t\tpadding: 10px 5px 10px  5px;\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t}\n\n\n    @media (min-width: 768px){\n.circle-tile {\n    margin-bottom: 30px;\n}\n}\n\n.circle-tile {\n    margin-bottom: 15px;\n    text-align: center;\n}\n\n.circle-tile-heading {\n    position: relative;\n    width: 80px;\n    height: 80px;\n    margin: 0 auto -40px;\n    border: 3px solid rgba(255,255,255,0.3);\n    border-radius: 100%;\n    color: #fff;\n    transition: all ease-in-out .3s;\n}\n\n/* -- Background Helper Classes */\n\n/* Use these to cuztomize the background color of a div. These are used along with tiles, or any other div you want to customize. */\n\n .dark-blue {\n    background-color: var(--bg-color);\n}\n\n.green {\n    background-color: #16a085;\n}\n\n.blue {\n    background-color: #2980b9;\n}\n\n.orange {\n    background-color: #f39c12;\n}\n\n.red {\n    background-color: #e74c3c;\n}\n\n.purple {\n    background-color: #8e44ad;\n}\n\n.dark-gray {\n    background-color: #7f8c8d;\n}\n\n.gray {\n    background-color: #95a5a6;\n}\n\n.light-gray {\n    background-color: #bdc3c7;\n}\n\n.yellow {\n    background-color: #f1c40f;\n}\n\n/* -- Text Color Helper Classes */\n\n .text-dark-blue {\n    color: #34495e;\n}\n\n.text-green {\n    color: #16a085;\n}\n\n.text-blue {\n    color: #2980b9;\n}\n\n.text-orange {\n    color: #f39c12;\n}\n\n.text-red {\n    color: #e74c3c;\n}\n\n.text-purple {\n    color: #8e44ad;\n}\n\n.text-faded {\n    color: rgba(255,255,255,0.7);\n}\n\n\n\n.circle-tile-heading .fa {\n    line-height: 80px;\n}\n\n.circle-tile-content {\n    padding-top: 50px;\n}\n.circle-tile-description {\n    text-transform: uppercase;\n}\n\n.text-faded {\n    color: rgba(255,255,255,0.7);\n}\n\n.circle-tile-number {\n    padding: 5px 0 15px;\n    font-size: 26px;\n    font-weight: 700;\n    line-height: 1;\n}\n\n.circle-tile-footer {\n    display: block;\n    padding: 5px;\n    color: rgba(255,255,255,0.5);\n    background-color: rgba(0,0,0,0.1);\n    transition: all ease-in-out .3s;\n}\n\n.circle-tile-footer:hover {\n    text-decoration: none;\n    color: rgba(255,255,255,0.5);\n    background-color: rgba(0,0,0,0.2);\n}\n</style>\n\n\n<?php } ?>"
  },
  {
    "path": "page_action/nav_bar/sql_editor.php",
    "content": "<?php\n\nif(isset($_POST['sql_editor_run'])){\n\t\n\t$sql=$_POST['sql_editor_run'];\n\tif($sql==\"\"){\n\t\techo \"<font style='color: red'><b>Query Is Empty.</b></font>\";\n\t\treturn;\n\t}\n\n\t$result=$db->select($sql);\n\tif($result==false){\n\t\techo \"<font style='color: red'><b>Query Is Not Valid.</b></font>\";\n\t}\n\telse{\n\t\t$info=$db->get_sql_array($sql);\n\t\t\n\t\techo \"<pre class='data_array'>\";\n\t\t\tprint_r($info);\n\t\techo \"</pre>\";\n\t}\n\t\n\t\n}\n\nif(isset($_POST['sql_editor'])){\n\n?>\n\n<div class=\"row\">\n\t<div class=\"col-md-5\">\n\t\t<div class=\"sql_header\">Write SQL Query</div>\n\t\t<textarea placeholder=\"Write SQL Query Here\" class=\"sql_editor\" id=\"sql_editor\"></textarea>\n\t\t<div class=\"sql_btn_area pull-right\">\n\t\t\t<a target=\"_blank\" href=\"https://www.w3schools.com/sql/default.asp\"><button class=\"sql_btn\" onclick=\"\"><span class=\"glyphicon glyphicon-flag\" aria-hidden=\"true\"></span> Read Documentation</button></a>\n\t\t\t<button class=\"sql_btn\" onclick=\"sql_editor_run()\"><span class=\"glyphicon glyphicon-play\" aria-hidden=\"true\"></span> Run</button>\n\t\t\t<button class=\"sql_btn\" onclick=\"sql_editor()\"><span class=\"glyphicon glyphicon-refresh\" aria-hidden=\"true\"></span> Reload</button>\n\t\t</div>\n\t</div>\n\t<div class=\"col-md-7\">\n\t\t<div class=\"sql_header\">Query Output</div>\n\t\t<div class=\"sql_editor_output\" id=\"sql_editor_output\"></div>\n\t\t<div class=\"sql_btn_area pull-right\">\n\t\t\t<button class=\"sql_btn\" onclick=\"print('sql_editor_output')\"><span class=\"glyphicon glyphicon-save\" aria-hidden=\"true\"></span> Download Data</button>\n\t\t\t<button class=\"sql_btn\" onclick=\"print('sql_editor_output')\"><span class=\"glyphicon glyphicon-print\" aria-hidden=\"true\"></span> Print Data</button>\n\t\t</div>\n\t</div>\n</div>\n\n<style type=\"text/css\">\n\t.sql_editor_output{\n\t\theight: 370px;\n\t\t\n\t\tbackground-color: #F5F5F5;\n\t\tpadding: 5px;\n\t\tborder: 1px solid var(--bg-color);\n\t\t\n\t}\n\t\n\t.data_array{\n\t\tcolor: #333333;\n\t\tfont-size: 13px;\n\t\tborder-width: 0px;\n\t\theight: 100%;\n\t\toverflow: scroll;\n\t}\n\n\t.sql_editor{\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\theight: 370px;\n\t\tpadding: 10px;\n\t\tfont-size: 20px;\n\t\tfont-weight: bold;\n\t\tresize: none;\n\t\tborder: 1px solid var(--bg-color);\n\t\tbackground-color: #F5F5F5;\n\t\tcolor: #1e272e;\n\t}\n\t.sql_editor:focus{\n\t\toutline: none;\n\t\tborder: 1px solid var(--bg-color);\n\t}\n\t.sql_header{\n\t\tpadding: 10px;\n\t\tbackground-color:var(--bg-color);\n\t\tcolor: var(--font-color);\n\t\tfont-weight: bold;\n\t}\n\t.sql_btn{\n\t\tpadding: 10px;\n\t\tfont-weight: bold;\n\t\tbackground-color: var(--bg-color);\n\t\tcolor: var(--font-color);\n\t\tborder-width: 0px;\n\t\tborder-radius: 5px;\n\t}\n\t.sql_btn_area{\n\t\tpadding: 5px;\n\t}\n\n</style>\n\n<?php\n\n}"
  },
  {
    "path": "page_action/nav_bar/theme.php",
    "content": "<?php\n\nif(isset($_POST['get_theme_list'])){\n\n$theme_list=$theme->get_theme_info();\n//print_r($theme_list);\n$login_user_theme=$login_user['theme'];\n\n?>\n\n\n<div class=\"row\">\n\t<?php foreach ($theme_list as $key => $value) { \n\t\t$name=$value['name'];\n\t\t$theme_id=$value['id'];\n\t\t$bg_color=$value['bg_color'];\n\t\t$font_color=$value['font_color'];\n\t\t$style=\"background-color: $bg_color; color: $font_color\";\n\t\t$active_class=($login_user_theme==$theme_id)?\"theme_class_active\":\"hover_cls\";\n\n\t?>\n\n\t\t<div class=\"col-md-3\">\n\t\t\t<div onclick=\"change_theme(<?php echo \"$theme_id\"; ?>)\" style=\"<?php echo $style; ?>\" class=\"theme_cls <?php echo $active_class; ?>\">\n\t\t\t\t<?php if($login_user_theme==$theme_id){ ?>\n\t\t\t\t\t<span style=\"font-size: 40px\" class=\"glyphicon glyphicon-ok-circle\" aria-hidden=\"true\"></span>\n\t\t\t\t<br/>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php echo \"$name\"; ?>\n\t\t\t</div>\n\t\t</div>\n\n\t<?php } ?>\n</div>\n\n<style type=\"text/css\">\n\t.theme_cls{\n\t\tborder: 1px solid #E8E8E8;\n\t\tpadding: 15px;\n\t\theight: 90px;\n\t\tfont-size: 20px;\n\t\tmargin-bottom: 5px;\n\t\tcursor: pointer;\n\t\ttext-align: center;\n\t\tfont-weight: bold;\n\t\tborder-radius: 10px;\n\t}\n\t.hover_cls:hover{\n\t\tfont-size: 21px;\n\t}\n\t.theme_class_active{\n\t\t\n\t}\n</style>\n\n<?php\n\n}\nif(isset($_POST['change_theme'])){\n\t$theme_id=$_POST['change_theme'];\n\t$data['id']=$login_user['id'];\n\t$data['theme']=$theme_id;\n\t$db->sql_action(\"user\",\"update\",$data);\n\t$ut_info=$theme->get_theme($theme_id);\n    $bg_color=$ut_info['bg_color'];\n    $font_color=$ut_info['font_color'];\n\t?>\n<style type=\"text/css\">\n\t\t:root {\n            --bg-color: <?php echo \"$bg_color\"; ?>;\n            --font-color: <?php echo \"$font_color\"; ?>;\n        } \n\n</style>\n<?php\n\n}\n\n\n?>\n"
  },
  {
    "path": "page_action/notice/notice.php",
    "content": "<?php\n\nif(isset($_POST['select_program'])){\n\t$program_id=$_POST['select_program'];\n\techo \"<option value='0'>Select All Batch</option>\";\n    $program_ob->select_batch_option($program_id);\n}\n\nif(isset($_POST['insert_notice'])){\n\t$info=$_POST['insert_notice'];\n\tunset($info['id']);\n\t$info['date']=$db->date();\n\t$info['add_by']=$user_id;\n\t$db->sql_action(\"notice\",\"insert\",$info,\"no\");\n}\n\nif(isset($_POST['delete_notice'])){\n  $info=$_POST['delete_notice'];    \n  $db->sql_action(\"notice\",\"delete\",$info);\n}\n\nif(isset($_POST['update_notice'])){\n\t$info=$_POST['update_notice'];\n\t$db->sql_action(\"notice\",\"update\",$info,\"no\");\n}\n\n\nif(isset($_POST['get_notice_form'])){\n\n\t?>\n <div class=\"editor_boxx\">\n \t<div>\n    <b>Notice Title</b>\n\t<input type=\"text\" placeholder=\"Enter Notice Title\" name=\"\" id=\"title\" style=\"padding: 10px;width: 100%\">\n</div>\n<br/>\n  <div class=\"editor_header\">\n <select class=\"form-control\" style=\"background: var(--bg-color); color: var(--font-color)\" id=\"select_level\" onchange=\"key()\" style=\"\" >\n  <option value=\"\" selected=\"\">Select Action</option>\n  <?php $sms->get_syntext(); ?>\n</select>\n\n \n  </div>\n  <div class=\"editor_body\">\n  \n  <textarea id=\"editor\" onkeyup=\"count_len()\" class=\"editor_area\" rows=\"7\" cols=\"7\" placeholder=\"\"></textarea>\n  </div>\n  \n  <div style=\"padding: 15px;\">\n  \t<li><b>Total Text Length: <span id=\"len_text\">0</span></b></li>\n    <li><b>Total SMS: <span id=\"len_sms\">0</span></b></li>\n  </div>\n  <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"notice_action('insert')\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save SMS</button>\n</div>\n\n\t<?php\n}\n\nif(isset($_POST['update_notice_form'])){\n  $id=$_POST['update_notice_form'];\n  $info=$notice_info[$id];\n  $description=$info['description'];\n  $title=$info['title'];\n  $len=strlen($description);\n  $len_msg=ceil($len/160);\n\n?>\n<div class=\"editor_boxx\">\n \t<div>\n    <b>Notice Title</b>\n\t<input type=\"text\" placeholder=\"Enter Notice Title\" name=\"\" value=\"<?php echo \"$title\" ?>\" id=\"title\" style=\"padding: 10px;width: 100%\">\n</div>\n<br/>\n  <div class=\"editor_header\">\n <select class=\"form-control\" style=\"background: var(--bg-color); color: var(--font-color)\" id=\"select_level\" onchange=\"key()\" style=\"\" >\n  <option value=\"\" selected=\"\">Select Action</option>\n  <?php $sms->get_syntext(); ?>\n</select>\n\n \n  </div>\n  <div class=\"editor_body\">\n  \n  <textarea id=\"editor\" onkeyup=\"count_len()\" class=\"editor_area\" rows=\"7\" cols=\"7\" placeholder=\"\"><?php echo \"$description\"; ?></textarea>\n  </div>\n  \n  <div style=\"padding: 15px;\">\n  \t<li><b>Total Text Length: <span id=\"len_text\"><?php echo \"$len\"; ?></span></b></li>\n    <li><b>Total SMS: <span id=\"len_sms\"><?php echo \"$len_msg\"; ?></span></b></li>\n  </div>\n  <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"notice_action('update',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Update Notice</button>\n</div>\n\n<?php\n\n}\n\nif(isset($_POST['delete_notice_form'])){\n  $id=$_POST['delete_notice_form'];\n  ?>\n\n  <center>\n    <h3>Are You Want To Delete This Notice</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"notice_action('delete',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Delete Notice</button>\n  </center>\n\n  <?php\n}\n\nif(isset($_POST['send_sms_form'])){\n  $id=$_POST['send_sms_form'];\n  ?>\n<div class=\"row\">\n\t\t<div class=\"col-md-4\">\n            <select onchange=\"select_program()\" class=\"select1\" id=\"program_select\" name=\"options\">\n                <option value=\"-1\">Select Program</option>\n                <?php $program_ob->select_program(); ?>\n            </select>\n         </div>\n         \n          <div class=\"col-md-4\" id=\"batch_select\">\n            <select class=\"select1\" id=\"batch_select_id\">\n                <option value=\"0\">Select All Batch</option>\n            </select>\n            <br/>\n            <div id='loader_select'></div>\n         </div>\n          <div class=\"col-md-4\" id=\"\">\n            <select class=\"select1\" id=\"recever\">\n                <?php $sms->get_sms_recever_only_option(); ?>\n            </select>\n            <br/>\n            \n         </div>\n\t\n\t<div class=\"col-md-12\"></div>\n\t<div style=\"margin-top: 10px;\"></div>\n\t<button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"send_sms(<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-send\"></span> Send SMS</button>\n\n\t<div id=\"res_sms\"></div>\n</div>  \n\t<?php\n}\n\nif(isset($_POST['send_sms'])){\n\t$data=$_POST['send_sms'];\n\t$program_id=$data['program_id'];\n\t$batch_id=$data['batch_id'];\n\t$notice_id=$data['notice_id'];\n\t$recever=$data['recever'];\n\t$msg=$notice_info[$notice_id]['description'];\n\t\n\t$info= $student_ob->get_student_list($program_id,$batch_id);\n\t$list=array();\n\tforeach ($info as $key => $value) {\n\t\t$student_id=$value['student_id'];\n\t\t$message=$sms->get_sms($student_id,$msg);\n\t    $mobile_number_list=$sms->get_student_mobile_number($student_id,$recever);\n\t    foreach ($mobile_number_list as $key => $value1) {\n\t    \t$number=$value1;\n\t    \t$res=$sms->make_sms_array($value1,$message);\n    \t\tarray_push($list, $res);\n\t    }\n\t}\n\t$sms->send_sms($list);\n}\n\n\n?>\n\n<style type=\"text/css\">\n\t.editor_box{\n\tborder-top-width: 0px;\n\tborder-color: #000000;\n\tborder-style: solid;\n\tborder-bottom-width: 0px;\n}\n.editor_header{\n\tpadding: 10px;\n\tbackground-color: #C6C9D1;\n}\n\n.editor_area{\n\t\n\theight: 190px;\n\twidth: 100%;\n\tresize: vertical;\n\tpadding: 12px;\n\tbackground-color: #ffffff;\n\tcolor: #424242;\n\tfont-family: cursive;\n\tborder-width: 1px;\n\tborder-color: #B7B7B7;\n\tborder-style: solid;\n\tfont-size: 16px;\n\tfont-weight: bold;\n}\n\n.select1 {\n  position: relative;\n  display: block;\n  height: 3.4em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n\n.select1::after {\n  content: '\\25BC';\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding: 0 1em;\n  background: #34495e;\n  pointer-events: none;\n}\n.select1:hover::after {\n  color: #f39c12;\n}\n.select1::after {\n  -webkit-transition: .25s all ease;\n  -o-transition: .25s all ease;\n  transition: .25s all ease;\n}\n\n</style>"
  },
  {
    "path": "page_action/program_page_action.php",
    "content": "<?php\n\n\nif(isset($_POST['insert_program'])){\n\n\t  $info=$_POST['insert_program'];\n    unset($info['id']);\n    $info['add_by']=$user_id;\n    $info['date']=$db->date();\n    $db->sql_action(\"program\",\"insert\",$info);\n\t\n}\n\nelse if(isset($_POST['update_program'])){\n    \n  $info=$_POST['update_program'];\n  $db->sql_action(\"program\",\"update\",$info);\n\t\n}\n\nelse if(isset($_POST['delete_program'])){\n$info=$_POST['delete_program'];\n$db->sql_action(\"program\",\"delete\",$info);\n\n}\n\nif(isset($_POST['add_program_form'])){\n\n  //$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n  $site->form_input(\"Program Name\",\"insert_name\",\"name\");\n  $site->form_input(\"Program Start\",\"insert_name\",\"start\",\"date\");\n  $site->form_input(\"Program End\",\"insert_name\",\"end\",\"date\");\n  \n  echo \"<div class='form-group'>\n        <label class='control-label' for='inputName'><b>Select Program Type</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span>     \n            <select class='form-control' onchange='program_type_select()' id='program_type'>\n            <option value='-1'>Select Program Type</option>\n            <option value='1'>Package Program</option>\n            <option value='2'>Monthly Program</option></select>\n            </div></div>\";\n  echo \"<div id='fee_area' style='display: none'>\";         \n  $site->form_input(\"Admission Fee\",\"insert_name\",\"fee\",\"number\");\n  echo \"</div><div id='monthly_fee_area' style='display: none'>\";  \n  $site->form_input(\"Monthly Fee\",\"insert_name\",\"monthly_fee\",\"number\");\n  echo \"</div>\";\n\n  echo \"<div class='select_area_header'>Select Batch</div><div class='select_area_body'>\";\n  $program_ob->select_batch();\n echo \"</div><div class='select_area_header'>Select Subject</div><div class='select_area_body'>\";\n  $program_ob->select_subject();\n echo \"</div><br />\";\n\n?>\n\n<button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"program_action('insert')\"><span class=\"glyphicon glyphicon-floppy-save\" ></span> Save Program</button>\n\n<?php\n\n}\n\nif(isset($_POST['update_program_form'])){\n  $id=$_POST['update_program_form'];\n  $info=$program[$id];\n  $type=$info['type'];\n  $select_type1=($type==1)?\"selected\":\"\";\n  $select_type2=($type==2)?\"selected\":\"\";\n  $display=($type==2)?\"block\":\"none\";\n  //$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n\n  $site->form_input(\"Program Name\",\"insert_name\",\"name\",\"text\",\"exclamation-sign\",$info['name']);\n  $site->form_input(\"Program Start\",\"insert_name\",\"start\",\"date\",\"exclamation-sign\",$info['start']);\n  $site->form_input(\"Program End\",\"insert_name\",\"end\",\"date\",\"exclamation-sign\",$info['end']);\n  \n  echo \"<div class='form-group'>\n        <label class='control-label' for='inputName'><b>Select Program Type</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span>     \n            <select class='form-control' onchange='program_type_select()' id='program_type'>\n            <option value='-1'>Select Program Type</option>\n            <option value='1' $select_type1>Package Program</option>\n            <option value='2' $select_type2>Monthly Program</option></select>\n            </div></div>\";\n  echo \"<div id='fee_area' style='display: block'>\";         \n  $site->form_input(\"Admission Fee\",\"insert_name\",\"fee\",\"number\",\"exclamation-sign\",$info['fee']);\n  echo \"</div><div id='monthly_fee_area' style='display: $display'>\";  \n  $site->form_input(\"Monthly Fee\",\"insert_name\",\"monthly_fee\",\"number\",\"exclamation-sign\",$info['monthly_fee']);\n  echo \"</div>\";\n\n  echo \"<div class='select_area_header'>Select Batch</div><div class='select_area_body'>\";\n  $program_ob->select_batch($id);\n echo \"</div><div class='select_area_header'>Select Subject</div><div class='select_area_body'>\";\n  $program_ob->select_subject($id);\n echo \"</div><br />\";\n\n?>\n\n<button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"program_action('update',<?php echo $id; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Update Program</button>\n\n<?php\n}\nif(isset($_POST['delete_program_form'])){\n  $id=$_POST['delete_program_form'];\n  ?>\n\n  <center>\n    <h3>Are You Want To Delete This Program</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"program_action('delete',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n  </center>\n\n  <?php\n}\n\nif(isset($_POST['select_year'])){\n  $info=$_POST['select_year'];\n  $year=$info['year'];\n  $pid=$info['program_id'];\n  if($year!=-1){\n        $set_payment_ob->get_program_payment_month_option($program[$pid],$year); \n  }\n  else echo \"<option value='-1'>Select Month</option>\";\n}\nif(isset($_POST['set_payment_list'])){\n  $info=$_POST['set_payment_list'];\n  $pid=$info['id'];\n  if($program[$pid]['type']==1){\n    echo \"<center><h1>The Program Is Package Program</h1></center>\";\n    return;\n  }\n  $payment_list_info=$set_payment_ob->get_set_payment_list_by_id($pid,$program[$pid]);\n  \n\n  if(isset($info['insert'])){\n    $info1=$info['insert'];\n    $year=$info1['year'];\n    $month=$info1['month'];\n    $fee=$program[$pid]['monthly_fee'];\n    $check=$set_payment_ob->check_insert($pid,$year,$month);\n    if($check==1){\n        echo \"<b>This Month Fee Already Set.You Can Update This Fee</b>\";\n    }\n    else{\n      echo \"<b>Sucessfully Added New Monthly Fee</b>\";\n      $data['program_id']=$pid;\n      $data['year']=$year;\n      $data['month']=$month;\n      $data['fee']=$fee;\n      $data['add_by']=$user_id;\n      $data['last_update']=$user_id;\n    $db->sql_action(\"set_payment\",\"insert\",$data,\"no\");\n    }\n  }\n  $payment_list_info=$set_payment_ob->get_set_payment_list_by_id($pid);\n  \n   ?>\n\n   <div class=\"row\">\n    <div class=\"select_area_headerr\" style=\"\"><b></b></div>\n  <div class=\"select_area_body\" style=\"border-width: 0px; padding: 20px;\">\n    <center>\n      <div class=\"col-md-3\"></div>\n  <div class=\"col-md-3\">\n    <select class=\"form-control\" id=\"select_year\" onchange=\"select_year(<?php echo $pid; ?>)\">\n      <?php $set_payment_ob->get_program_payment_year_option($program[$pid]); ?>\n    </select>\n  </div>\n  <div class=\"col-md-3\">\n    <select class=\"form-control\" id=\"select_month\">\n      <option value='-1'>Select Month</option>\n    </select>\n  </div>\n  </center>\n  </div>\n</div>\n<div style=\"margin-top: 10px;\"></div>\n<center>\n<button class=\"btn_set\" onclick=\"set_payment_btn(<?php echo \"$pid\"; ?>)\">Set Payment</button>\n</center>\n\n<div class=\"row\">\n  <div class=\"select_area_headerr\" style=\"\"><b></b></div>\n  <div class=\"select_area_body\" style=\"border-width: 0px;\">\n  <?php foreach ($payment_list_info as $key => $value) {\n    $month_name=$value['month_name'];\n    $status=\"primary\";\n    $id=$value['id'];\n    $fee=$value['fee'];\n    $year=$value['year'];\n    $add_uname=$value['add_by'];\n    $add_uname=$user[$add_uname]['uname'];\n    $update_uname=$value['last_update'];\n    $update_uname=$user[$update_uname]['uname'];\n  ?>\n     <div class=\"col-md-4\">\n<div style=\"background-color: #f5f5f5\" class=\"offer offer-<?php echo $status; ?>\">\n        \n\n        <div class=\"offer-content\">\n          <center>\n          <h3 class=\"lead\">\n             <label class=\"label\" style=\"background-color: var(--bg-color)\"> <?php echo \"$month_name\"; ?></label> <label  style=\"background-color: var(--bg-color)\" class=\"label\"> <?php echo \"$year\"; ?></label>\n          </h3>\n        </center>\n\n          <div id=\"update_payment_area_<?php echo $id; ?>\">\n            <table width=\"100%\">\n              <tr>\n                <td class=\"cls_td_set_payment_1\">Fee</td>\n                <td class=\"cls_td_set_payment_2\"><?php echo \"$fee\"; ?></td>\n              </tr>\n              <tr>\n                <td class=\"cls_td_set_payment_1\">Add By:</td>\n                <td class=\"cls_td_set_payment_2\"><?php echo \"$add_uname\"; ?></td>\n              </tr>\n              <tr>\n                <td class=\"cls_td_set_payment_1\">Last Update:</td>\n                <td class=\"cls_td_set_payment_2\"><?php echo \"$update_uname\"; ?></td>\n              </tr>\n            </table>\n            \n            <div style=\"margin-top: 10px;\"></div>\n            <center><button class=\"btn btn-md btn-block btn_payment_update\" onclick=\"update_payment_input(<?php echo \"$id,$fee\"; ?>)\"><b>Update</b></button></center> \n          </div>\n\n        </div> \n\n     </div>\n</div>\n\n      <?php } ?>\n</div>\n</div>\n\n   <?php\n}\n\nif(isset($_POST['payment_update_area'])){\n   $info=$_POST['payment_update_area'];\n   $id=$info['id'];\n   $fee=$info['fee'];\n   \n\n?>\n    <b>Fee:</b> <input id=\"fee_input_<?php echo $id; ?>\" type=\"number\" value=\"<?php echo \"$fee\" ?>\" name=\"\">\n    <div style=\"margin-top: 10px;\"></div>\n    <center>\n      <button class=\"btn btn-md btn-block btn_payment_update\" onclick=\"update_payment_save(<?php echo $id; ?>)\"><b>Update Fee</b></button>\n    </center> \n\n<?php\n}\n\nif(isset($_POST['payment_update_save'])){\n  $info=$_POST['payment_update_save'];\n   $id=$info['id'];\n   $fee1=$info['fee'];\n   $data['fee']=$fee1;\n   $data['id']=$id;\n   $data['last_update']=$user_id;\n   if($fee1==$set_payment_info[$id]['fee'])unset($data['last_update']);\n   \n   $db->sql_action(\"set_payment\",\"update\",$data,\"no\");\n\n   $set_payment_info=$set_payment_ob->get_set_payment_list();\n   $value=$set_payment_info[$id];\n   $fee=$value['fee'];\n   $add_uname=$value['add_by'];\n   $add_uname=$user[$add_uname]['uname'];\n   $update_uname=$value['last_update'];\n   $update_uname=$user[$update_uname]['uname'];\n  ?>\n             <table width=\"100%\">\n              <tr>\n                <td class=\"cls_td_set_payment_1\">Fee</td>\n                <td class=\"cls_td_set_payment_2\"><?php echo \"$fee\"; ?></td>\n              </tr>\n              <tr>\n                <td class=\"cls_td_set_payment_1\">Add By:</td>\n                <td class=\"cls_td_set_payment_2\"><?php echo \"$add_uname\"; ?></td>\n              </tr>\n              <tr>\n                <td class=\"cls_td_set_payment_1\">Last Update:</td>\n                <td class=\"cls_td_set_payment_2\"><?php echo \"$update_uname\"; ?></td>\n              </tr>\n            </table>\n           \n            <div style=\"margin-top: 10px;\"></div>\n            <center><button class=\"btn btn-md btn-block btn_payment_update\" onclick=\"update_payment_input(<?php echo \"$id,$fee\"; ?>)\"><b>Update</b></button></center> \n\n  <?php\n}\n\nif(isset($_POST['payment_info'])){\n   ?>\n\n   <div class=\"row\">\n    <div class=\"select_area_headerr\" style=\"\"><b>Select Month</b></div>\n  <div class=\"select_area_body\" style=\"border-width: 0px; padding: 20px;\">\n  <div class=\"col-md-3\">\n    <select class=\"form-control\">\n      <option>Select Program</option>\n    </select>\n  </div>\n  <div class=\"col-md-3\">\n    <select class=\"form-control\">\n      <option>Select Year</option>\n    </select>\n  </div>\n  <div class=\"col-md-3\">\n    <select class=\"form-control\">\n      <option>Select Type</option>\n    </select>\n  </div>\n  <center><button>View Payment</button></center>\n  </div>\n</div>\n\n\n<div class=\"row\">\n  <div class=\"select_area_headerr\" style=\"\"><b>Month List</b></div>\n  <div class=\"select_area_body\" style=\"border-width: 0px;\">\n  <?php for($i=0; $i<10; $i++){\n   $status=($i%2==0)?\"success\":\"danger\";\n\n  ?>\n     <div class=\"col-md-4\">\n<div style=\"background-color: #f5f5f5\" class=\"offer offer-<?php echo $status; ?>\">\n        <div class=\"shape\">\n          <div class=\"shape-text\">\n            Paid              \n          </div>\n        </div>\n\n        <div class=\"offer-content\">\n          <h3 class=\"lead\">\n             <label class=\"label label-<?php echo $status; ?>\"> January</label> <label class=\"label label-<?php echo $status; ?>\"> 2018</label>\n          </h3>\n          <p>\n            <b>Total Payment: 500<br/>\n            <b>Total Pay: 300<br/>\n            <b>Total Due: 200<br/>\n            <b>Pay Date: 12 apr 2018<br/></b>\n            <center><button class=\"btn btn-md btn-block\" onclick=\"view_payment_month_info()\"><b>View</b></button></center> \n                    </p> \n                 </div> \n     </div>\n</div>\n\n      <?php } ?>\n</div>\n</div>\n<?php }\n?>\n<style type=\"text/css\">\n.btn_payment_update{\n  background-color: var(--bg-color);\n  color: var(--font-color);\n}\n.btn_payment_update:hover{\n  background-color: var(--bg-color);\n  font-size: 16px;\n  color: var(--font-color);\n}\n.cls_td_set_payment_1,.cls_td_set_payment_2{\n  padding: 5px;\n  border-width: 1px 0px 0px 0px;\n  border-color: #DDDDDD;\n  border-style: solid;\n}\n.cls_td_set_payment_1{\n  width: 100px;\n  background-color: var(--bg-color);\n  color: var(--font-color);\n  text-align: right;\n}\n.btn_set{\n  background-color: var(--bg-color);\n  color: var(--font-color);\n  padding: 15px;\n  border-width: 0px;\n  border-radius: 5px;\n  \n}\n\n.offer:hover {\n      -webkit-transform: scale(1.1); \n      -moz-transform: scale(1.1); \n      -ms-transform: scale(1.1); \n      -o-transform: scale(1.1); \n      transform:rotate scale(1.1); \n      -webkit-transition: all 0.4s ease-in-out; \n      -moz-transition: all 0.4s ease-in-out; \n      -o-transition: all 0.4s ease-in-out;\n      transition: all 0.4s ease-in-out;\n  }\n.shape{    \n    border-style: solid; border-width: 0 70px 40px 0; float:right; height: 0px; width: 0px;\n  -ms-transform:rotate(360deg); /* IE 9 */\n  -o-transform: rotate(360deg);  /* Opera 10.5 */\n  -webkit-transform:rotate(360deg); /* Safari and Chrome */\n  transform:rotate(360deg);\n}\n.offer{\n  height: 220px;\n  background:#fff; border:2px solid #ddd; \n  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);\n   margin: 15px 0; overflow:hidden;\n}\n\n.offer-radius{\n  border-radius:7px;\n}\n\n.offer-primary {  border-color: var(--bg-color); }\n\n\n\n.shape-text{\n  color:#fff; font-size:12px; font-weight:bold; position:relative; right:-40px; top:2px; white-space: nowrap;\n  -ms-transform:rotate(30deg); /* IE 9 */\n  -o-transform: rotate(360deg);  /* Opera 10.5 */\n  -webkit-transform:rotate(30deg); /* Safari and Chrome */\n  transform:rotate(30deg);\n} \n.offer-content{\n  padding:0px 20px 5px;\n}\n\n\n\n  .select_area_header{\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    padding: 5px;\n    font-size: 15px;\n    font-weight: bold;\n    border-radius: 3px 3px 0px 0px;\n  }\n  .select_area_body{\n    margin-bottom: 5px;\n    padding: 15px;\n    font-size: 15px;\n    border-width: 2px;\n    border-color: var(--bg-color);\n    border-style: solid;\n  }\n</style>\n"
  },
  {
    "path": "page_action/report/attend_report.php",
    "content": "<?php\nif(isset($_POST['select_program'])){\n\t$program_id=$_POST['select_program'];\n\techo \"<option value='0'>Select All Batch</option>\";\n    $program_ob->select_batch_option($program_id);\n}\n\nif(isset($_POST['year_set'])){\n\t$program_id=$_POST['year_set'];\n\t$set_payment_ob->get_program_payment_year_option($program[$program_id]);\n} \nif(isset($_POST['select_year'])){\n  $info=$_POST['select_year'];\n  $year=$info['year'];\n  $pid=$info['program_id'];\n  if($year!=-1){\n        $set_payment_ob->get_program_payment_month_option($program[$pid],$year); \n  }\n  else echo \"<option value='-1'>Select Month</option>\";\n}\n\n\nif(isset($_POST['attend_report'])){\n  $info=$_POST['attend_report'];\n  $year=$info['year'];\n  $month=$info['month'];\n  $program_id=$info['program_id'];\n  $batch_id=$info['batch_id'];\n  $day = cal_days_in_month(CAL_GREGORIAN,$month,$year);\n  $date1=\"$year-$month-01\";\n  $date2=\"$year-$month-$day\";\n  $month_name=\"$year-$month-1\";\n  $month_name=date(\"F Y\",strtotime($month_name));\n  $info=$report->get_student_attend_info($date1,$date2,$program_id,$batch_id);\n  \n  $student_list=$info['student_list'];\n  $info_index=$info['info_index'];\n  //$site->myprint_r($info_index);\n  $program_name=\"All Program\";\n  if(isset($program[$program_id]['name']))$program_name=$program[$program_id]['name'];\n  $batch_name=\"All Batch\";\n  if(isset($batch[$batch_id]['name']))$batch_name=$batch[$batch_id]['name'];\n\n\t?>\n<div class=\"pull-right\">\n<button class=\"button\" onclick=\"print('attend_area')\">Print Report</button>\n</div>\n<div class=\"attend_area\" id=\"attend_area\">\t\n <?php $site->header_info_area(); ?>\n\n<div class=\"row  info_area\">\n\t<div class=\"col-md-12\">\n\t\t<font class=\"report_title\">\n\t\t\t<center>\n\t\t\t\tMonthly Attendence Report<br/>\n\t\t\t</center>\n\t\t</font>\n\t\t<center>\n\t\t\t<font class=\"report_description\">\n\t\t\t\t<?php echo \"$month_name\"; ?><br/>\n\t\t\t</font>\t\n\t\t</center>\n\t\t<font class=\"report_description\">\n\t\t\t<div style=\"float: left;\"><b>Program: </b><?php echo \"$program_name\"; ?> </div>\n\t\t\t<div style=\"float: right;\"><b>Batch: </b><?php echo \"$batch_name\"; ?></div>\n\t\t</font>\n\t</div>\n\n</div>\n<table width=\"100%\" style=\"background-color: #ffffff\">\n\t<thead style=\"border-width: 0px;\">\n\t<tr class=\"attend_tr\">\n\t\t<td class=\"attend_td1\" style=\"width: 70px\">ID</td>\n\t\t<td class=\"attend_td1\" style=\"width: 140px\">Name</td>\n\t\t<?php for($i=1; $i<=$day; $i++){ ?>\n\t\t<td class=\"attend_td1\" style=\"width: 15px\"><?php echo \"$i\"; ?></td>\n\t    <?php } ?>\n\t    <td class=\"attend_td1\" style=\"width: 25px\">T.P.</td>\n\t    <td class=\"attend_td1\" style=\"width: 25px\">T.A.</td>\t\t\n\t</tr>\n\t</thead>\n\n\t<tbody>\n\n\t<?php\n       \n      foreach ($student_list as $key => $value) {\n      \t$student_id=$value;\n\n      \t$student_name=$student[$student_id]['name'];\n        \n       \t?>\n\n\t\t<tr class=\"attend_tr\">\n\t\t\t<td class=\"attend_td2\" style=\"width: 70px;background-color: #f7f7f7;color: #000000\"><b><?php echo \"$student_id\"; ?></b></td>\n\t\t\t<td class=\"attend_td2\" style=\"width: 130px;background-color: #f7f7f7;color: #000000\"><b><?php echo \"$student_name\"; ?></b></td>\n\t\t\t<?php \n             \n             $present=0;\n             $absent=0;\n\t\t\tfor($i=1; $i<=$day; $i++){\n\n                $att_cls=\"\";\n                $att=\"\";\n                $status=-1;\n               \n                if(isset($info_index[$student_id][$i])){\n                  $status=$info_index[$student_id][$i];\n                }\n                \n                \n                if($status==0){\n                    $absent++;\n                \t$att_cls=\"absent_class\";\n                \t$att=\"A\";\n                }\n                else if($status==-1)$pr=\"\";\n                else {\n                \t$present++;\n                \t$att_cls=\"present_class\";\n                \t$att=\"P\";\n                }\n\t\t\t ?>\n\t\t\t<td class=\"attend_td2 <?php echo $att_cls; ?>\" style=\"\"><b><?php echo \"$att\"; ?></b></td>\n\t    \t<?php } ?>\n\t    \t<td class=\"attend_td2\" style=\"width: 10px; background-color: #f7f7f7;color: #000000\"><b><?php echo \"$present\"; ?></b></td>\n\t    \t<td class=\"attend_td2\" style=\"width: 10px; background-color: #f7f7f7;color: #000000\"><b><?php echo \"$absent\"; ?></b></td>\t\t\n\t\t</tr>\n\t</tbody>\n       \t<?php\n       }\n\n\t?>\n</table>\n\n\n\n<?php\n}\n\n?>\n\n<style type=\"text/css\">\n\n.attend_area{\n\t\tbackground-color: #ffffff;\n\t\tpadding: 15px;\n\t\tborder-radius: 5px;\n\t}\n\t.report_title{\n \tfont-size: 18px;\n \tcolor: #1A2229;\n \tfont-family: Verdana, Geneva, sans-serif;\n }\n .report_description{\n \tcolor: #1A2229;\n \tfont-size: 14px;\n \tfont-family: Verdana, Geneva, sans-serif;\n }  \n\t.attend_table{\n\n\t}\n\t.attend_td1{\n\t\tpadding: 8px 0px 8px 0px;\n\t\tbackground-color: #EFF0F2;\n\t\tcolor: #000000;\n\t\tfont-weight: bold;\n\t\tborder: 1px solid #C6C9D1;\n\t\tfont-size: 12px;\n\t\ttext-align: center;\n\t}\n\t.attend_td2{\n\t\tpadding: 6px 2px 6px 2px;\n\t\ttext-align: center;\n\t\tfont-size: 10px;\n\t\tcolor: #5C6765;\n\t\tborder: 1px solid #C6C9D1;\n\t\tfont-family: \"Palatino Linotype\", \"Book Antiqua\", Palatino, serif;\n\t}\n\t.present_class{\n       background-color: #CDFFD8;\n\n\t}\n\t.absent_class{\n\t\tbackground-color: #FFDCE0;\n\t}\n\t@page {\n  \t\tsize: landscape;\n\t}\n</style>\n\n\n</div>"
  },
  {
    "path": "page_action/report/expense_report.php",
    "content": "<?php\n\nif(isset($_POST['view_expence_report'])){\n\n$info=$_POST['view_expence_report'];\n\n$date1=$info['date1'];\n$date2=$info['date2'];\n\n$data['date1']=$date1;\n$data['date2']=date('Y-m-d', strtotime($date2 . ' +1 day'));\n$info=$report->get_expence_report($data);\n$date1=date(\"d M Y\", strtotime($date1));\n$date2=date(\"d M Y\", strtotime($date2));\n\n?>\n\n<div class=\"pull-right\">\n<button class=\"button\" onclick=\"print('report_body')\">Print Report</button>\n</div>\n<div id=\"report_body\">\n\t<style type=\"text/css\">\n    .payment_report{\n    \tbackground-color: #ffffff;\n    \tpadding: 15px;\n    \tborder-radius: 4px;\n    }\n\t.payment_report .td1{\n\t\tpadding: 15px 2px 15px 2px;\n\t\tborder: 1px solid #eeeeee;\n\t\ttext-align: center;\n\t\tfont-weight: bold;\n\t\tfont-size: 12px;\n\t\tcolor: #1A2229;\n\t\tfont-family: Verdana, Geneva, sans-serif;\n\t\tbackground-color: #f5f5f5;\n\t}\n\t.payment_report .td2{\n\t\tpadding: 10px 2px 10px 2px;\n\t\tfont-size: 12px;\n\t\tborder: 1px solid #eeeeee;\n\t\ttext-align: center;\n\t\tfont-family: \"Trebuchet MS\", Helvetica, sans-serif;\n\t\tcolor: #1A2229;\n\t}\n\t@media print \n\t{\n    \t@page {\n      \tsize: A4; /* DIN A4 standard, Europe */\n      \tmargin:0;\n      \tcontent: counter(page);\n    }\n\n    html, body {\n        width: 210mm;\n        /* height: 297mm; */\n        height: 282mm;\n        font-size: 11px;\n        background: #FFF;\n        overflow:visible;\n    }\n    body {\n        padding-top:0mm;\n    }\n\n\n}\n\n.info_area{\n    \tpadding: 2px 0px 8px 0px;\n    }\n\n .report_title{\n \tfont-size: 18px;\n \tcolor: #1A2229;\n \tfont-family: Verdana, Geneva, sans-serif;\n }\n .report_description{\n \tcolor: #1A2229;\n \tfont-size: 14px;\n \tfont-family: Verdana, Geneva, sans-serif;\n }   \n\t\n</style>\n<div class=\"payment_report\">\n<?php $site->header_info_area(); ?>\n\n\n<div class=\"row  info_area\">\n\t<div class=\"col-md-12\">\n\t\t<font class=\"report_title\">\n\t\t\t<center>\n\t\t\t\tExpence Report<br/>\n\t\t\t</center>\n\t\t</font>\n\t\t<center>\n\t\t\t<font class=\"report_description\">\n\t\t\t\t<?php echo \"$date1 - $date2\"; ?><br/>\n\t\t\t</font>\t\n\t\t</center>\n\t</div>\n</div>\n<div style=\"margin-top: 5px;\"></div>\n<table width=\"100%\">\n\t<tr>\n\t\t<td class=\"td1\">#</td>\n\t\t<td class=\"td1\">Date</td>\n\t\t<td class=\"td1\">Expence Name</td>\n\t\t<td class=\"td1\">Notes</td>\n\t\t<td class=\"td1\">Add By</td>\n\t\t<td class=\"td1\">Amount</td>\n\t</tr>\n\t<?php \n    $sum=0;\n    foreach ($info as $key => $value) {\n     \n     $sum+=$value['amount'];\n     $date=date(\"d M Y h:i:A\", strtotime($value['date']));\n     $user_id=$value['add_by'];\n     $user_name=$user[$user_id]['uname'];\n\t?>\n\t<tr>\n\t\t<td class=\"td2\"><?php echo $value['id']; ?></td>\n\t\t<td class=\"td2\"><?php echo $date; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['name']; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['notes']; ?></td>\n\t\t<td class=\"td2\"><?php echo $user_name; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['amount']; ?> Tk</td>\n\t\t\n\t</tr>\n\n\t<?php } ?>\n\t<tr>\n\t\t\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td style=\"text-align: right;padding: 15px;\"><b>Total Payment</b></td>\n\t\t<td class=\"td2\"><b style=\"font-size: 15px;\"><?php echo \"$sum\"; ?> Tk</b></td>\n\t</tr>\n</table>\n\n</div>\n</div>\n\n\n\t<?php\n}\n\n\n\n?>"
  },
  {
    "path": "page_action/report/income_report.php",
    "content": "<?php\n\nif(isset($_POST['view_income_report'])){\n\n$info=$_POST['view_income_report'];\n\n$date1=$info['date1'];\n$date2=$info['date2'];\n\n$data['date1']=$date1;\n$data['date2']=date('Y-m-d', strtotime($date2 . ' +1 day'));\n$info=$report->get_income_report($data);\n\n$date1=date(\"d M Y\", strtotime($date1));\n$date2=date(\"d M Y\", strtotime($date2));\n\n?>\n\n<div class=\"pull-right\">\n<button class=\"button\" onclick=\"print('report_body')\">Print Report</button>\n</div>\n<div id=\"report_body\">\n\t<style type=\"text/css\">\n    .payment_report{\n    \tbackground-color: #ffffff;\n    \tpadding: 15px;\n    \tborder-radius: 4px;\n    }\n\t.payment_report .td1{\n\t\tpadding: 15px 2px 15px 2px;\n\t\tborder: 1px solid #eeeeee;\n\t\ttext-align: center;\n\t\tfont-weight: bold;\n\t\tfont-size: 12px;\n\t\tcolor: #1A2229;\n\t\tfont-family: Verdana, Geneva, sans-serif;\n\t\tbackground-color: #f5f5f5;\n\t}\n\t.payment_report .td2{\n\t\tpadding: 10px 2px 10px 2px;\n\t\tfont-size: 12px;\n\t\tborder: 1px solid #eeeeee;\n\t\ttext-align: center;\n\t\tfont-family: \"Trebuchet MS\", Helvetica, sans-serif;\n\t\tcolor: #1A2229;\n\t}\n\t@media print \n\t{\n    \t@page {\n      \tsize: A4; /* DIN A4 standard, Europe */\n      \tmargin:0;\n      \tcontent: counter(page);\n    }\n\n    html, body {\n        width: 210mm;\n        /* height: 297mm; */\n        height: 282mm;\n        font-size: 11px;\n        background: #FFF;\n        overflow:visible;\n    }\n    body {\n        padding-top:0mm;\n    }\n\n\n}\n\n.info_area{\n    \tpadding: 2px 0px 8px 0px;\n    }\n\n .report_title{\n \tfont-size: 18px;\n \tcolor: #1A2229;\n \tfont-family: Verdana, Geneva, sans-serif;\n }\n .report_description{\n \tcolor: #1A2229;\n \tfont-size: 14px;\n \tfont-family: Verdana, Geneva, sans-serif;\n }   \n\t\n</style>\n<div class=\"payment_report\">\n<?php $site->header_info_area(); ?>\n\n\n<div class=\"row  info_area\">\n\t<div class=\"col-md-12\">\n\t\t<font class=\"report_title\">\n\t\t\t<center>\n\t\t\t\tIncome Report<br/>\n\t\t\t</center>\n\t\t</font>\n\t\t<center>\n\t\t\t<font class=\"report_description\">\n\t\t\t\t<?php echo \"$date1 - $date2\"; ?><br/>\n\t\t\t</font>\t\n\t\t</center>\n\t</div>\n</div>\n<div style=\"margin-top: 5px;\"></div>\n<table width=\"100%\">\n\t<tr>\n\t\t<td class=\"td1\">#</td>\n\t\t<td class=\"td1\">Date</td>\n\t\t<td class=\"td1\">Income Name</td>\n\t\t<td class=\"td1\">Notes</td>\n\t\t<td class=\"td1\">Add By</td>\n\t\t<td class=\"td1\">Amount</td>\n\t</tr>\n\t<?php \n    $sum=0;\n    foreach ($info as $key => $value) {\n     \n     $sum+=$value['amount'];\n     $date=date(\"d M Y h:i:A\", strtotime($value['date']));\n     $user_id=$value['add_by'];\n     $user_name=$user[$user_id]['uname'];\n\t?>\n\t<tr>\n\t\t<td class=\"td2\"><?php echo $value['id']; ?></td>\n\t\t<td class=\"td2\"><?php echo $date; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['name']; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['notes']; ?></td>\n\t\t<td class=\"td2\"><?php echo $user_name; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['amount']; ?> Tk</td>\n\t\t\n\t</tr>\n\n\t<?php } ?>\n\t<tr>\n\t\t\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td style=\"text-align: right;padding: 15px;\"><b>Total Payment</b></td>\n\t\t<td class=\"td2\"><b style=\"font-size: 15px;\"><?php echo \"$sum\"; ?> Tk</b></td>\n\t</tr>\n</table>\n\n</div>\n</div>\n\n\n\t<?php\n}\n\n\n\n?>"
  },
  {
    "path": "page_action/report/payment_report.php",
    "content": "<?php\n\nif(isset($_POST['view_payment_report'])){\n\n$info=$_POST['view_payment_report'];\n\n$date1=$info['date1'];\n$date2=$info['date2'];\n$program_id=$info['program_id'];\n$type=$info['type'];\n\n$data['program_id']=$program_id;\n$data['type']=$type;\n$data['date1']=$date1;\n$data['date2']=date('Y-m-d', strtotime($date2 . ' +1 day'));\n$program_name=($program_id==0)?\"All Program\":$program[$program_id]['name'];\n\nif($type==0)$type_string=\"ALL Type Fee\";\nelse if($type==1)$type_string=\"Admission Fee\";\nelse if($type==2)$type_string=\"Monthly Fee\";\nelse if($type==3)$type_string=\"Extra Fee\";\n\n$date1=date(\"d M Y\", strtotime($date1));\n$date2=date(\"d M Y\", strtotime($date2));\n\n\n$info=$report->get_payment_report_list($data);\n?>\n\n<div class=\"pull-right\">\n<button class=\"button\" onclick=\"print('report_body')\">Print Report</button>\n</div>\n<div id=\"report_body\">\n\t<style type=\"text/css\">\n\ttable {\n  border-collapse: collapse;\n}\n    .payment_report{\n    \tbackground-color: #ffffff;\n    \tpadding: 15px;\n    \tborder-radius: 4px;\n    }\n\t.payment_report .td1{\n\t\tpadding: 15px 2px 15px 2px;\n\t\tborder: 1px solid #eeeeee;\n\t\ttext-align: center;\n\t\tfont-weight: bold;\n\t\tfont-size: 12px;\n\t\tcolor: #1A2229;\n\t\tfont-family: Verdana, Geneva, sans-serif;\n\t\tbackground-color: #f5f5f5;\n\t}\n\t.payment_report .td2{\n\t\tpadding: 10px 2px 10px 2px;\n\t\tfont-size: 12px;\n\t\tborder: 1px solid #eeeeee;\n\t\ttext-align: center;\n\t\tfont-family: \"Trebuchet MS\", Helvetica, sans-serif;\n\t\tcolor: #1A2229;\n\t}\n\t@media print \n\t{\n\n    \t@page {\n      \tsize: A4; /* DIN A4 standard, Europe */\n      \tmargin:0;\n      \tcontent: counter(page);\n    }\n\n    html, body {\n        width: 210mm;\n        /* height: 297mm; */\n        height: 282mm;\n        font-size: 11px;\n        background: #FFF;\n        overflow:visible;\n    }\n    body {\n        padding-top:0mm;\n    }\n\n\n}\n\n.info_area{\n    \tpadding: 2px 0px 8px 0px;\n    }\n\n .report_title{\n \tfont-size: 18px;\n \tcolor: #1A2229;\n \tfont-family: Verdana, Geneva, sans-serif;\n }\n .report_description{\n \tcolor: #1A2229;\n \tfont-size: 14px;\n \tfont-family: Verdana, Geneva, sans-serif;\n }   \n\t\n</style>\n<div class=\"payment_report\">\n<?php $site->header_info_area(); ?>\n\n\n<div class=\"row  info_area\">\n\t<div class=\"col-md-12\">\n\t\t<font class=\"report_title\">\n\t\t\t<center>\n\t\t\t\tPayment Report<br/>\n\t\t\t</center>\n\t\t</font>\n\t\t<center>\n\t\t\t<font class=\"report_description\">\n\t\t\t\t<?php echo \"$date1 - $date2\"; ?><br/>\n\t\t\t\t<?php echo \"$type_string\"; ?>\n\t\t\t</font>\t\n\t\t</center>\n\t<div style=\"float: left;\"><b>Program: </b><?php echo \"$program_name\"; ?> </div>\n\t<div style=\"float: right;\"><b>Batch:</b> All Batch</div>\n\t</div>\n</div>\n<div style=\"margin-top: 5px;\"></div>\n<table width=\"100%\">\n\t<thead style=\"border-width: 0px;\">\n\t<tr>\n\t\t<td class=\"td1\">#</td>\n\t\t<td class=\"td1\">Date</td>\n\t\t<td class=\"td1\">Name</td>\n\t\t<td class=\"td1\">Program Name</td>\n\t\t<td class=\"td1\">Pyament Type</td>\n\t\t<td class=\"td1\">Year</td>\n\t\t<td class=\"td1\">Month</td>\n\t\t<td class=\"td1\">Receive By</td>\n\t\t<td class=\"td1\" style=\"width: 100px\">Pay</td>\n\t</tr>\n\t</thead>\n\t<tbody>\n\t<?php \n    $sum=0;\n    foreach ($info as $key => $value) {\n    $type=$value['type'];\n\n    if($value['type']==2){\n      $value['month']=$set_payment_ob->get_month_name($value['month']);\n     }\n     else{\n      $value['month']=\"-\";\n      $value['year']=\"-\";\n     }\n\n     $type=($value['type']==1)?\"Admission Fee\":\"Monthly Fee\";\n     if($value['type']==3)$type=$value['note'];\n     $sum+=$value['pay'];\n     $pay_date=date(\"d M Y h:i:A\", strtotime($value['date']));\n     $student_name=$value['student_name'];\n     $student_id=$value['student_id'];\n\t?>\n\t<tr>\n\t\t<td class=\"td2\"><?php echo $value['id']; ?></td>\n\t\t<td class=\"td2\"><?php echo $pay_date; ?></td>\n\t\t<td class=\"td2\"><?php echo \"$student_name ($student_id)\"; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['program_name']; ?></td>\n\t\t<td class=\"td2\"><?php echo $type; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['year']; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['month']; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['add_by']; ?></td>\n\t\t<td class=\"td2\"><?php echo $value['pay']; ?> Tk</td>\n\t\t\n\t</tr>\n\n\t<?php } ?>\n\t<tr>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td style=\"text-align: right;padding: 15px;\"><b>Total Payment</b></td>\n\t\t<td class=\"td2\"><b style=\"font-size: 15px;\"><?php echo \"$sum\"; ?> Tk</b></td>\n\t</tr>\n\t</tbody>\n</table>\n\n</div>\n</div>\n\n\n\t<?php\n}\n\n\n\n?>"
  },
  {
    "path": "page_action/report/profit_report.php",
    "content": "<?php\n\nif(isset($_POST['view_profit_report'])){\n\n$info=$_POST['view_profit_report'];\n\n$date1=$info['date1'];\n$date2=$info['date2'];\n\n$data['date1']=$date1;\n$data['date2']=date('Y-m-d', strtotime($date2 . ' +1 day'));\n$info=$report->get_profit_report($data);\n$date1=date(\"d M Y\", strtotime($date1));\n$date2=date(\"d M Y\", strtotime($date2));\n\n?>\n\n<div class=\"pull-right\">\n<button class=\"button\" onclick=\"print('report_body')\">Print Report</button>\n</div>\n<div id=\"report_body\">\n\t<style type=\"text/css\">\n    .payment_report{\n    \tbackground-color: #ffffff;\n    \tpadding: 15px;\n    \tborder-radius: 4px;\n    }\n\t.payment_report .td1{\n\t\tpadding: 15px 2px 15px 2px;\n\t\tborder: 1px solid #eeeeee;\n\t\ttext-align: center;\n\t\tfont-weight: bold;\n\t\tfont-size: 12px;\n\t\tcolor: #1A2229;\n\t\tfont-family: Verdana, Geneva, sans-serif;\n\t\tbackground-color: #f5f5f5;\n\t}\n\t.payment_report .td2{\n\t\tpadding: 10px 2px 10px 2px;\n\t\tfont-size: 12px;\n\t\tborder: 1px solid #eeeeee;\n\t\ttext-align: center;\n\t\tfont-family: \"Trebuchet MS\", Helvetica, sans-serif;\n\t\tcolor: #1A2229;\n\t}\n\t@media print \n\t{\n    \t@page {\n      \tsize: A4; /* DIN A4 standard, Europe */\n      \tmargin:0;\n      \tcontent: counter(page);\n    }\n\n    html, body {\n        width: 210mm;\n        /* height: 297mm; */\n        height: 282mm;\n        font-size: 11px;\n        background: #FFF;\n        overflow:visible;\n    }\n    body {\n        padding-top:0mm;\n    }\n\n\n}\n\n.info_area{\n    \tpadding: 2px 0px 8px 0px;\n    }\n\n .report_title{\n \tfont-size: 18px;\n \tcolor: #1A2229;\n \tfont-family: Verdana, Geneva, sans-serif;\n }\n .report_description{\n \tcolor: #1A2229;\n \tfont-size: 14px;\n \tfont-family: Verdana, Geneva, sans-serif;\n }   \n\t\n</style>\n<div class=\"payment_report\">\n<?php $site->header_info_area(); ?>\n\n\n<div class=\"row  info_area\">\n\t<div class=\"col-md-12\">\n\t\t<font class=\"report_title\">\n\t\t\t<center>\n\t\t\t\tProfit Report<br/>\n\t\t\t</center>\n\t\t</font>\n\t\t<center>\n\t\t\t<font class=\"report_description\">\n\t\t\t\t<?php echo \"$date1 - $date2\"; ?><br/>\n\t\t\t</font>\t\n\t\t</center>\n\t</div>\n</div>\n<div style=\"margin-top: 5px;\"></div>\n<table width=\"100%\">\n\t<tr>\n\t\t<td class=\"td1\">Option Name</td>\n\t\t<td class=\"td1\">Amount</td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td2\">Total Student Payment</td>\n\t\t<td class=\"td2\"><?php echo $info['total_payment']; ?> Tk</td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td2\">Total Expense</td>\n\t\t<td class=\"td2\"><?php echo $info['total_expence']; ?> Tk</td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td2\">Total Income</td>\n\t\t<td class=\"td2\"><?php echo $info['total_income']; ?> Tk</td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"\" style=\"font-size: 15px;text-align: right; padding-right: 10px\"><b>Total Profit</b></td>\n\t\t<td class=\"td2\"><b style=\"font-size: 15px;\"><?php echo $info['total_profit']; ?> Tk</b></td>\n\t</tr>\n\t\n</table>\n\n</div>\n</div>\n\n\n\t<?php\n}\n\n\n\n?>"
  },
  {
    "path": "page_action/report/report.php",
    "content": "<?php\n\n$path=\"page_action/report/\";\n$file=array();\narray_push($file, \"expense_report.php\");\narray_push($file, \"payment_report.php\");\narray_push($file, \"profit_report.php\");\narray_push($file, \"attend_report.php\");\narray_push($file, \"income_report.php\");\n\nforeach ($file as $key => $value) {\n\t$file_name=\"$path$value\";\n\tinclude $file_name;\n}\n\n\n?>\n\n<style type=\"text/css\">\n\t@page {\n  \t\tmargin: 1;\n  \t\ttable { page-break-after:auto }\n  \t\ttr    { page-break-inside:avoid; page-break-after:auto }\n  \t\ttd    { page-break-inside:avoid; page-break-after:auto }\n  \t\tthead { display:table-header-group }\n  \t\ttfoot { display:table-footer-group }\n\t}\n</style>"
  },
  {
    "path": "page_action/result/add_result.php",
    "content": "<?php\n\nif(isset($_POST['program_select'])){\n//subject list return\n  $program_id=$_POST['program_select'];\n  echo \"<option value=''>--Select Subject--</option>\";\n  $program_ob->option_subject($program_id);\n\n}\nelse if(isset($_POST['subject_select'])){\n//exam list return\n  $subject_id=$_POST['subject_select'];\n  $program_id=$_POST['program_select_sub'];\n   echo \"<option value=''>--Select Exam--</option>\";\n   foreach ($exam as $key => $value) {\n        $id=$value['id'];\n        $name=$value['exam_name'];\n        $pro=$value['program_id'];\n        $sub=$value['subject_id'];\n       if($pro==$program_id && $sub==$subject_id){\n          echo \"<option value='$id'>$name</option>\";\n        }\n    }\n\n}\n\nelse if(isset($_GET['save_student_result'])){\n  $student_id=$_GET['save_student_result'];\n  $total_student=$_GET['count_student'];\n  $mcq_arry=$_GET['save_mcq'];\n  $written_arry=$_GET['save_written'];\n  $program_id=$_GET['program_id_save'];\n  $exam_id=$_GET['exam_id_save'];\n  $date=date(\"Y-m-d\");\n  $add_by=$login_user['id'];\n\nfor ($i=1; $i<=$total_student ; $i++) {\n  $mcq=$mcq_arry[$i];\n  $written=$written_arry[$i];\n  if($mcq==\"\")$mcq=0;\n  if($written==\"\")$written=0;\n  $total=$mcq+$written;\n\n  $info['student_id']=$student_id[$i]; \n  $info['mcq']=$mcq; \n  $info['written']=$written;\n  $info['total']=$total;\n  $info['exam_id']=$exam_id;\n  $info['date']=$date;\n  $info['add_by']=$add_by;  \n  $per=$result->permission_for_save($info['student_id'],$exam_id,$program_id);\n  \n  if($per==0)continue;\n  $db->sql_action(\"result\",\"insert\",$info,$msg=\"no\");\n\n}\n \n}\n\nelse if(isset($_POST['add_result'])){\n\n$exam_id=$_POST['add_result'];\n$subject_id=$_POST['subject_id_add'];\n$program_id=$_POST['program_id_add'];\n$exam_name=$exam[$exam_id]['exam_name'];\n$subject_name=$subject[$subject_id]['name'];\n$program_name=$program[$program_id]['name'];\n\n$mcq=$exam[$exam_id]['mcq'];\n$written=$exam[$exam_id]['written'];\n$total=$exam[$exam_id]['total'];\n$date=$exam[$exam_id]['date'];\n$flag=0;\nif($mcq!=\"N/A\" && $written!=\"N/A\")$flag=1;\n  ?>\n\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n            Exam Details\n     </div>\n\n <div class=\"box_body\">\n  <center>\n    <div style=\"font-weight: bold;font-size: 16px;\">\n    <?php echo \"$program_name\"; ?><br/>\n        <?php echo \"$subject_name\"; ?><br/>\n        <?php echo \"$exam_name\"; ?><br/>\n        \n      </div>\n\n\n<table style=\"width: 100%\">\n  <center></center>\n  <tr>\n    <th><center>MCQ Marks</center></th>\n    <th><center>Written Marks</center></th>\n    <th><center>Total Marks</center></th>\n    <th><center>Exam Date</center></th>\n  </tr>\n  <tr>\n    <td><center> <?php echo \"$mcq\"; ?></center></td>\n    <td><center> <?php echo \"$written\"; ?></center></td>\n    <td><center> <?php echo \"$total\"; ?></center></td>\n    <td><center> <?php echo \"$date\"; ?></center></td>\n    \n  </tr>\n</table>\n\n  </center>\n </div>\n\n<div  id=\"result_add_body\">\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n            Result Details\n     </div>\n<div class=\"box_body\" style=\"overflow: auto;\">\n \n  <input type=\"text\" name=\"exam_id_save\" value=\"<?php echo \"$exam_id\"; ?>\" hidden=\"\">\n\n  <input type=\"text\" name=\"program_id_save\" value=\"<?php echo \"$program_id\"; ?>\" hidden=\"\">\n\n<div class=\"form-group\" style=\"\">\n  <div class=\"row\">\n   <center><b><div class=\"col-sm-2 col-md-1 \"></div><div class=\"col-sm-3 nopadding\"><b>Student ID</b></div>\n   <b><div class=\"col-sm-3 nopadding\"><b>MCQ Mark</b></div>\n    <div class=\"col-sm-3 nopadding\">Written Mark </div><div class=\"col-sm-2 nopadding\"></div></b></center>\n  </div>\n <div class=\"form-group removeclass\">\n<div class=\"row\" style=\"\">\n  <div class=\"col-sm-2 col-md-1 \"></div>\n    <div class=\"col-sm-3 col-md-3 nopadding\">\n      <div class=\"form-group\"> \n      <input type=\"number\" class=\"form-control\" id=\"student_id_1\" name=\"student_id_save[]\" value=\"\" required=\"\" placeholder=\"Student ID\">\n      </div>\n    </div>\n\n    <div class=\"col-sm-3 col-md-3 nopadding\">\n      <div class=\"form-group\"> \n        <input type=\"number\"  step=\"0.01\" class=\"form-control\" id=\"mcq_save_1\" name=\"mcq[]\" value=\"0\" <?php if($mcq==\"N/A\")echo \"readonly\"; ?> placeholder=\"MCQ Mark\">\n      </div>\n    </div>\n\n    <div class=\"col-sm-3 col-md-3 nopadding\">\n      <div class=\"form-group\"> \n        <input type=\"number\"  step=\"0.01\" class=\"form-control\" id=\"written_save_1\" name=\"written[]\" value=\"0\" <?php if($written==\"N/A\")echo \"readonly\"; ?> placeholder=\"Written Mark\">\n      </div>\n    </div>\n\n    <div class=\"col-sm-2 col-md-2 nopadding\">\n      <div class=\"input-group-btn\"> \n        <button class=\"btn btn-success\" type=\"button\"\n<?php if($flag==1)echo \"onclick='add_btn()'\";\n      else if($written==\"N/A\")echo \"onclick='add_btn_hwritten()'\";\n      else if($mcq==\"N/A\")echo \"onclick='add_btn_hmcq()'\";\n\n ?>\n\n       >\n\n          <span class=\"glyphicon glyphicon-plus\" aria-hidden=\"true\"></span> </button>\n      </div>\n    </div>\n\n  </div>\n\n<div id=\"result\">\n</div>\n</div>\n\n</div>\n<center>\n  <div id=\"responce_1\"></div>\n<button class=\"btn btn-lg btn-primary btn-block\" style=\"width: 50%;\" name=\"save_result\" onclick=\"save_student_result()\" type=\"submit\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save</button>\n</center>\n\n </div>\n</div>\n\n  <?php\n}\n\nelse if(isset($_POST['show_result'])){\n\n  $exam_id=$_POST['show_result'];\n$subject_id=$_POST['subject_id_show'];\n$program_id=$_POST['program_id_show'];\n$exam_name=$exam[$exam_id]['exam_name'];\n$subject_name=$subject[$subject_id]['name'];\n$program_name=$program[$program_id]['name'];\n\n$mcq_exam=$exam[$exam_id]['mcq'];\n$written_exam=$exam[$exam_id]['written'];\n$total=$exam[$exam_id]['total'];\n$date=$exam[$exam_id]['date'];\n$flag=0;\nif($mcq_exam!=\"N/A\" && $written_exam!=\"N/A\")$flag=1;\n  ?>\n\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n            Exam Details\n     </div>\n\n <div class=\"box_body\">\n  <center>\n    <div style=\"font-weight: bold;font-size: 16px;\">\n    <?php echo \"$program_name\"; ?><br/>\n        <?php echo \"$subject_name\"; ?><br/>\n        <?php echo \"$exam_name\"; ?><br/>\n        \n      </div>\n\n\n<table style=\"width: 100%\">\n  <center></center>\n  <tr>\n    <th><center>MCQ Marks</center></th>\n    <th><center>Written Marks</center></th>\n    <th><center>Total Marks</center></th>\n    <th><center>Exam Date</center></th>\n  </tr>\n  <tr>\n    <td><center> <?php echo \"$mcq_exam\"; ?></center></td>\n    <td><center> <?php echo \"$written_exam\"; ?></center></td>\n    <td><center> <?php echo \"$total\"; ?></center></td>\n    <td><center> <?php echo \"$date\"; ?></center></td>\n    \n  </tr>\n</table>\n\n  </center>\n </div>\n\n\n<div id=\"\">\n\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n            Exam Ranklist\n     </div>\n\n <div class=\"box_body\" id=\"ranklist_body\">\n\n<!-- start datatable -->\n \n<table id=\"datatable\" class=\"table table-striped table-bordered\" cellspacing=\"0\" width=\"100%\">\n            \n            <tr>\n              <th>Rank</th>\n              <th><center>Student Photo</center></th>\n              <th><center>Student Id</center></th>\n              <th><center>Student Name</center></th>\n              <th><center>MCQ Mark</center></th>\n              <th><center>Written Mark</center></th>\n              <th><center>Total Mark</center></th>\n              <th><center>Batch Rank</center></th>\n              <th><center>Action</center></th>\n            </tr>\n         \n          <tbody>\n\n<?php \n\n$result_info=$result->get_result_info();\nforeach ($result_info[$exam_id] as $key => $value) {\n  $subject_name=$value['id'];\n  $subject_code=$value['total'];\n  \n  $student_id=$value['student_id'];\n  $center_merit=$value['center_merit'];\n  $student_name=$student[$student_id]['name'];\n  $mcq=$value['mcq'];\n  $written=$value['written'];\n  $total=$value['total'];\n  $batch_merit=$value['batch_merit'];\n  $photo=$student[$student_id]['photo'];\n\n  if($mcq_exam==\"N/A\")$mcq=\"N/A\";\n  if($written_exam==\"N/A\")$written=\"N/A\";\n\n  $id=$value['id'];\n?>\n            <tr>\n\n              <td><center><?php echo \"$center_merit\"; ?></center></td>\n              <td><center><img src=\"<?php echo \"$photo\"; ?>\" style=\"height: 60px; width: 50px;\" class=\"img\"></center></td>\n              <td><center><?php echo \"$student_id\"; ?></center></td>\n              <td><center><?php echo \"$student_name\"; ?></center></td>\n              \n              <td><center><?php echo \"$mcq\"; ?></center></td>\n              <td><center><?php echo \"$written\"; ?></center></td>\n              <td><center><?php echo \"$total\"; ?></center></td>\n              <td><center><?php echo \"$batch_merit\"; ?></center></td>\n                \n                <td><div class=\"btn-toolbar list-toolbar\"><center><button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Edit\" data-title=\"Edit\" data-toggle=\"modal\" data-target=\"#edit<?php echo \"$id\"; ?>\" ><span class=\"glyphicon glyphicon-pencil\"></span></button><button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" data-toggle=\"modal\" data-target=\"#delete<?php echo\"$id\"; ?>\" ><span class=\"glyphicon glyphicon-trash\"></span></button></center></div></td>\n    \n            </tr>\n\n\n<!-- Start Delete Model -->\n<div class=\"modal small fade\" id=\"delete<?php echo\"$id\"; ?>\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n        <div class=\"modal-header\">\n            <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n            <h3 id=\"myModalLabel\">Delete Confirmation</h3>\n        </div>\n        <div class=\"modal-body\">\n            <p class=\"error-text\"><i class=\"fa fa-warning modal-icon\"></i>Are you sure you want to delete the Subject?<br>This cannot be undone.</p>\n        </div>\n        <div class=\"modal-footer\">\n          \n          \n            <button class=\"btn btn-default\" data-dismiss=\"modal\" aria-hidden=\"true\">Cancel</button>\n            <button class=\"btn btn-danger\" onclick=\"delete_result(<?php echo \"$id\"; ?>)\" type=\"submit\" name=\"delete\">Delete</button>\n           \n        </div>\n      </div>\n    </div>\n</div>\n<!-- End Delete Model -->\n\n<!-- Start Edit Model-->\n\n<div class=\"modal large fade\" id=\"edit<?php echo \"$id\"; ?>\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n        <div class=\"modal-header\" style=\"background-color: #414959; color: #ffffff\">\n            <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n            <h4 id=\"myModalLabel\"><?php echo \"$student_id\"; ?></h4>\n        </div>\n        <div class=\"modal-body\" style=\"background-color: #ecf0f1\">\n           <!-- start Body -->\n\n  <div class=\"row\">\n      <div class=\"col-xs-12 col-sm-12\">  \n          \n      <input type=\"text\" name=\"id\" value=\"<?php echo \"$id\"; ?>\" hidden=\"\">\n  <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>MCQ Mark</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"update_mcq_<?php echo \"$id\"; ?>\" value=\"<?php echo \"$mcq\"; ?>\" placeholder=\"N/A\" <?php if($mcq==\"N/A\")echo \"readonly\"; ?>  type=\"number\" step=\"0.01\" name=\"name\"  required=\"\" />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\"></div>\n  </div>\n\n  <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Written Mark</b></label>\n    <div class=\"input-group\">\n        <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-exclamation-sign\"></i></span>     \n        <input class=\"form-control\" data-error=\"Please enter name field.\" id=\"update_written_<?php echo \"$id\"; ?>\" value=\"<?php echo \"$written\"; ?>\" placeholder=\"N/A\" <?php if($written==\"N/A\")echo \"readonly\"; ?>  type=\"number\" step=\"0.01\" name=\"code\"  required=\"\" />\n    </div>  \n    <div id=\"err_product_date\" class=\"error\"></div>\n  </div>\n          <button class=\"btn btn-lg btn-primary btn-block\" onclick=\"update_result(<?php echo \"$id\"; ?>)\" name=\"update\" type=\"submit\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Update</button>\n        \n      </div>\n</div>\n           <!-- end Body -->\n        </div>\n      </div>\n    </div>\n</div>\n\n            <!-- end edit model -->\n\n<?php } ?>\n          </tbody>\n        </table>\n\n\n<!-- end datatable -->\n </div>\n</div>\n\n <?php\n}\n\nelse if(isset($_POST['update_mark'])){\n\n  $id=$_POST['update_mark'];\n  $mcq=$_POST['update_mcq'];\n  if($mcq==\"\")$mcq=0;\n  $written=$_POST['update_written'];\n  if($written==\"\")$written=0;\n  $total=$mcq+$written;\n  $info['id']=$id;\n  $info['mcq']=$mcq;\n  $info['written']=$written;\n  $info['total']=$total;\n  $db->sql_action(\"result\",\"update\",$info,\"no\");\n\n}\n\nelse if(isset($_POST['delete_mark'])){\n   $id=$_POST['delete_mark'];\n   $info['id']=$id;\n   $db->sql_action(\"result\",\"delete\",$info,\"no\");\n}\n\n\nelse if(isset($_POST['send_sms_exam'])){\n  $exam_id=$_POST['send_sms_exam'];\n  $subject_id=$_POST['send_sms_subject'];\n  $program_id=$_POST['send_sms_program'];\n\n  $exam_name=$exam[$exam_id]['exam_name'];\n$subject_name=$subject[$subject_id]['name'];\n$program_name=$program[$program_id]['name'];\n\n$mcq=$exam[$exam_id]['mcq'];\n$written=$exam[$exam_id]['written'];\n$total=$exam[$exam_id]['total'];\n$date=$exam[$exam_id]['date'];\n$flag=0;\n\n\n\nif($mcq!=\"N/A\" && $written!=\"N/A\")$flag=1;\n  ?>\n\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n            Exam Details\n     </div>\n\n <div class=\"box_body\">\n  <center>\n    <div style=\"font-weight: bold;font-size: 16px;\">\n        <?php echo \"$program_name\"; ?><br/>\n        <?php echo \"$subject_name\"; ?><br/>\n        <?php echo \"$exam_name\"; ?><br/>\n        \n      </div>\n\n\n<table style=\"width: 100%\">\n  <center></center>\n  <tr>\n    <th><center>MCQ Marks</center></th>\n    <th><center>Written Marks</center></th>\n    <th><center>Total Marks</center></th>\n    <th><center>Exam Date</center></th>\n  </tr>\n  <tr>\n    <td><center> <?php echo \"$mcq\"; ?></center></td>\n    <td><center> <?php echo \"$written\"; ?></center></td>\n    <td><center> <?php echo \"$total\"; ?></center></td>\n    <td><center> <?php echo \"$date\"; ?></center></td>\n    \n  </tr>\n</table>\n\n  </center>\n </div>\n\n\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n          Sending Exam SMS\n     </div>\n\n <div class=\"box_body\" id=\"sms_body\">\n  <center>\n\n<div class=\"dropdown\">\n  \n            <select class=\"dropdown-select-version select\" name=\"options\" id=\"receive_by\" onchange =\"\">\n                <option value=\"0\"> --Select Recever-- </option>\n                <option value=\"a\"> ALL </option>\n                <option value=\"s\"> Student </option>\n                <option value=\"g\"> Guardians </option>\n\n            </select>\n\n             <button id=\"btnn\"  onclick=\"send_sms_sending()\" class=\"button_result\" style=\"\" title=\"Send SMS\" alt=\"Download\"><span style=\"margin-right: 6px;\" class=\"glyphicon glyphicon-envelope\"></span>Send SMS</button>\n        </div>\n\n  <div id=\"message_detail\">\n    \n  </div>\n\n\n  </center>\n</div>\n\n <?php\n}\n\nelse if(isset($_POST['send_sms_sending'])){\n  $exam_id=$_POST['send_sms_sending'];\n  $receive_by=$_POST['send_sms_sending_receive'];\n  $info=$result->get_avilable_sms_user($exam_id);\n  $exam_name=$exam[$exam_id]['exam_name'];\n  $exam_total=$exam[$exam_id]['total'];\n  //$site->myprint_r($info);\n  $total_student=0;\n  $total_number=0;\n  foreach ($info as $key => $value) {\n     $id=$value['id'];\n     $total=$value['total'];\n     $student_id=$value['student_id'];\n     $msg=$result->result_sms($value);\n     \n     $up_info['id']=$id;\n     $up_info['sms']=1;\n     \n     $total_student++;\n     $total_number+=$sms->send_sms_student($student_id,$msg,$receive_by);\n     $db->sql_action(\"result\",\"update\",$up_info,$msg=\"no\");\n  }\n\n  echo \"<br/><br/>The System sent  Exam Message Total \".$total_student.\" Students And Total\".$total_number.\" Number\";\n\n\n}\n\n?>\n\n<style type=\"text/css\">\ntable{\n  margin-top: 10px;\n}\n  table, th, td {\n    border: 2px solid #D7DDE2;\n    background-color: #ffffff;\n    border-collapse: collapse;\n    padding: 5px;\n    }\n    th{\n      font-size: 15px;\n    }\n\n \n</style>"
  },
  {
    "path": "page_action/result/result_action.php",
    "content": "<?php\n\nif(isset($_POST['program_select'])){\n\n\t$program_id=$_POST['program_select'];\n  echo \"<option value='0'> --Select Subject-- </option>\";\n  foreach ($program[$program_id]['subject'] as $key => $value) {\n    $id=$value['id'];\n    $name=$subject[$id]['name'];\n    echo \"<option value='$id'>$name</option>\";\n  }\n}\n\nif(isset($_POST['select_subject'])){\n\t$info=$_POST['select_subject'];\n\t$program_id=$info['program_id'];\n\t$subject_id=$info['subject_id'];\n\techo \"<option value='0'> --Select Exam-- </option>\";\n\t$result->get_exam_list_option($program_id,$subject_id);\n}\n\nif(isset($_POST['update_result'])){\n\t$info=$_POST['update_result'];\n\t$db->sql_action(\"result\",\"update\",$info,\"no\");\n}\nif(isset($_POST['delete_result'])){\n\t$id=$_POST['delete_result'];\n\t$info['id']=$id;\n\t$db->sql_action(\"result\",\"delete\",$info,\"no\");\n}\n\nif(isset($_POST['save_result'])){\n\t$info=$_POST['save_result'];\n\t$exam_id=$info['exam_id'];\n\t$student_list=$info['student_list'];\n\t$mcq_list=$info['mcq'];\n\t$written_list=$info['written'];\n\t$exam_add_list=$result->get_student_add_exam_list($exam_id);\n\t\n\tif(!isset($student_list))return;\n\n\tforeach ($student_list as $key => $value) {\n\t\t$student_id=$value;\n\t\t$mcq=$mcq_list[$key];\n\t\t$written=$written_list[$key];\n\t\tif($mcq==\"\")$mcq=0;\n  \t\tif($written==\"\")$written=0;\n  \t\t$total=$mcq+$written;\n\n\t\tif(!isset($student[$student_id]))continue;\n\t\tif (in_array($student_id, $exam_add_list))continue;\n\n\t\t$data['exam_id']=$exam_id;\n\t\t$data['student_id']=$student_id;\n\t\t$data['mcq']=$mcq;\n\t\t$data['written']=$written;\n\t\t$data['total']=$total;\n\t\t$data['add_by']=$user_id;\n\t\t$data['date']=$db->date();\n\t\t$data['sms']=0;\n\t\t\n\t\t$db->sql_action(\"result\",\"insert\",$data,\"no\");\n\t}\n\n\t$site->myprint_r($info);\t\t\t\t\n}\n\nif(isset($_POST['update_result_form'])){\n\t$id=$_POST['update_result_form'];\n    $info=$result->get_separeate_result($id);\n    $mcq=$info['mcq'];\n    $written=$info['written'];\n    $site->form_input(\"MCQ\",\"mcq\",\"mcq\",\"text\",\"exclamation-sign\",\"$mcq\",\"\");\n    $site->form_input(\"Written\",\"written\",\"written\",\"number\",\"exclamation-sign\",\"$written\",\"\");\n   echo \";\n    <button class='btn btn-lg btn-primary btn-block' name='insert' type='submit' onclick='update_result($id)'><span class='glyphicon glyphicon-floppy-save'></span> Save Result</button>\n    \";\n\n}\n\nif(isset($_POST['delete_result_form'])){\n   $id=$_POST['delete_result_form'];\n   ?>\n <center>\n    <h3>Are You Want To Delete This Result</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"delete_result(<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n  </center>\n\n\n  <?php \n}\n\nif(isset($_POST['add_result'])){\n\t$exam_id=$_POST['add_result'];\n    \n\t$subject_id=$exam[$exam_id]['sub_id'];\n\t$program_id=$exam[$exam_id]['program_id'];\n\t$exam_name=$exam[$exam_id]['exam_name'];\n\n\t$mcq=$exam[$exam_id]['mcq'];\n\t$written=$exam[$exam_id]['written'];\n\t$total=$exam[$exam_id]['total'];\n\t$date=$exam[$exam_id]['date'];\n\n\t$subject_name=$subject[$subject_id]['name'];\n\t$program_name=$program[$program_id]['name'];\n\t$flag=0;\nif($mcq!=\"N/A\" && $written!=\"N/A\")$flag=1;\n    exam_header($exam,$program,$subject,$exam_id);\n  ?>\n\n\n\n<div  id=\"result_add_body\">\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n            Result Details\n     </div>\n<div class=\"box_body\" style=\"overflow: auto;\">\n \n  <input type=\"text\" name=\"exam_id_save\" value=\"<?php echo \"$exam_id\"; ?>\" hidden=\"\">\n\n  <input type=\"text\" name=\"program_id_save\" value=\"<?php echo \"$program_id\"; ?>\" hidden=\"\">\n\n<div class=\"form-group\" style=\"\">\n  <div class=\"row\">\n   <center><b><div class=\"col-sm-2 col-md-1 \"></div><div class=\"col-sm-3 nopadding\"><b>Student ID</b></div>\n   <b><div class=\"col-sm-3 nopadding\"><b>MCQ Mark</b></div>\n    <div class=\"col-sm-3 nopadding\">Written Mark </div><div class=\"col-sm-2 nopadding\"></div></b></center>\n  </div>\n <div class=\"form-group removeclass\">\n<div class=\"row\" style=\"\">\n  <div class=\"col-sm-2 col-md-1 \"></div>\n    <div class=\"col-sm-3 col-md-3 nopadding\">\n      <div class=\"form-group\"> \n      <input type=\"number\" class=\"form-control\" id=\"student_id_1\" name=\"student_id_save[]\" value=\"\" required=\"\" placeholder=\"Student ID\">\n      </div>\n    </div>\n\n    <div class=\"col-sm-3 col-md-3 nopadding\">\n      <div class=\"form-group\"> \n        <input type=\"number\"  step=\"0.01\" class=\"form-control\" id=\"mcq_save_1\" name=\"mcq[]\" value=\"0\" <?php if($mcq==\"N/A\")echo \"readonly\"; ?> placeholder=\"MCQ Mark\">\n      </div>\n    </div>\n\n    <div class=\"col-sm-3 col-md-3 nopadding\">\n      <div class=\"form-group\"> \n        <input type=\"number\"  step=\"0.01\" class=\"form-control\" id=\"written_save_1\" name=\"written[]\" value=\"0\" <?php if($written==\"N/A\")echo \"readonly\"; ?> placeholder=\"Written Mark\">\n      </div>\n    </div>\n\n    <div class=\"col-sm-2 col-md-2 nopadding\">\n      <div class=\"input-group-btn\"> \n        <button class=\"btn btn-success\" type=\"button\"\n\t\t<?php if($flag==1)echo \"onclick='add_btn()'\";\n      \t\telse if($written==\"N/A\")echo \"onclick='add_btn_hwritten()'\";\n      \t\telse if($mcq==\"N/A\")echo \"onclick='add_btn_hmcq()'\";\n \t\t?>\n       >\n\n          <span class=\"glyphicon glyphicon-plus\" aria-hidden=\"true\"></span> </button>\n      </div>\n    </div>\n\n  </div>\n\n<div id=\"result\">\n</div>\n</div>\n\n</div>\n<center>\n  <div id=\"responce_1\"></div>\n<button class=\"btn btn-lg btn-primary btn-block\" style=\"width: 50%;\" name=\"save_result\" onclick=\"save_student_result()\" type=\"submit\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save</button>\n</center>\n\n </div>\n</div>\n\n\n <?php \n}\nif(isset($_POST['show_result'])){\n\t$exam_id=$_POST['show_result'];\n    exam_header($exam,$program,$subject,$exam_id);\n    ?>\n\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n            Exam Ranklist\n     </div>\n\n <div class=\"box_body\" id=\"ranklist_body\">\n\n<!-- start datatable -->\n \n<table id=\"datatable\" class=\"table table-striped table-bordered\" cellspacing=\"0\" width=\"100%\">\n            \n            <tr>\n              <th>Rank</th>\n              <th><center>Student Id</center></th>\n              <th><center>Student Name</center></th>\n              <th><center>Batch Name Name</center></th>\n              <th><center>MCQ Mark</center></th>\n              <th><center>Written Mark</center></th>\n              <th><center>Total Mark</center></th>\n              <th><center>Batch Rank</center></th>\n              <th><center>Action</center></th>\n            </tr>\n         \n          <tbody>\n\n<?php \n$result_info=$result->get_exam_result($exam_id);\n\nforeach ($result_info as $key => $value) {\n  \n  $student_id=$value['student_id'];\n  $center_merit=$value['center_merit'];\n  $student_name=$value['student_name'];\n  \n  $mcq=$value['mcq'];\n  $written=$value['written'];\n\n  $total=$value['total'];\n  $batch_merit=$value['batch_marit'];\n\n  $id=$value['id'];\n?>\n            <tr>\n\n              <td><center><?php echo \"$center_merit\"; ?></center></td>\n              <td><center><?php echo \"$student_id\"; ?></center></td>\n              <td><center><?php echo \"$student_name\"; ?></center></td>\n              <td><center><?php echo $value['batch_name']; ?></center></td>\n              <td><center><?php echo \"$mcq\"; ?></center></td>\n              <td><center><?php echo \"$written\"; ?></center></td>\n              <td><center><?php echo \"$total\"; ?></center></td>\n              <td><center><?php echo \"$batch_merit\"; ?></center></td>\n                \n             <td><div class=\"btn-toolbar list-toolbar\"><center>\n             \t<button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px;\" title=\"Edit\" onclick=\"update_result_form(<?php echo $id; ?>)\" ><span class=\"glyphicon glyphicon-pencil\"></span></button>\n\n             \t<button class=\"btn btn-danger btn-xs\" title=\"Delete\" data-title=\"Delete\" onclick=\"delete_result_form(<?php echo $id; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button></center></div></td>\n    \n            </tr>\n\n<?php } ?>\n          </tbody>\n        </table>\n\n\n<!-- end datatable -->\n </div>\n\n    <?php\n\n}\n\n\nif(isset($_POST['send_sms'])){\n\t\n\t$info=$_POST['send_sms'];\n\t$exam_id=$info['exam_id'];\n\t$receiver=$info['receiver'];\n\t$pending_sms_list=$result->get_sms_pending_id($exam_id);\n    \n    $sms_list=array();\n\n\tforeach ($pending_sms_list as $key => $value) {\n\t\t$id=$value['id'];\n\t\t$student_id=$value['student_id'];\n\t\t$nick=$student[$student_id]['nick'];\n\n\t\t$exam_id=$value['exam_id'];\n\t\t$exam_name=$exam[$exam_id]['exam_name'];\n    \t$exam_mcq=$exam[$exam_id]['mcq'];\n    \t$exam_written=$exam[$exam_id]['written'];\n    \t$exam_total=$exam[$exam_id]['total'];\n\n    \t$mcq=$value['mcq'];\n    \t$written=$value['written'];\n    \t$msg=\"Dear $nick,\\nYour obtained marks for the exam '$exam_name' is,\\n\\n\";\n    \tif($exam_mcq!=\"N/A\")$msg.=\"MCQ: $mcq/$exam_mcq\\n\";\n        if($exam_written!=\"N/A\")$msg.=\"Written: $written/$exam_written\\n\";\n        $msg.=\"\\n$db->msg\";\n\n        $mobile_number_list=$sms->get_student_mobile_number($student_id,$receiver);\n\n\t    foreach ($mobile_number_list as $key => $value1) {\n\t    \t$number=$value1;\n\t    \t$res=$sms->make_sms_array($value1,$msg);\n    \t\tarray_push($sms_list, $res);\n\t    }\n        \n        $data=array();\n        $data['id']=$id;\n        $data['sms']=1;\n        $db->sql_action(\"result\",\"update\",$data,\"no\");\n\t}\n\n\t// /$site->myprint_r($sms_list);\n\t$sms->send_sms($sms_list);\n}\n\n\nif(isset($_POST['send_sms_form'])){\n $exam_id=$_POST['send_sms_form'];\n exam_header($exam,$program,$subject,$exam_id);\n ?>\n\n\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n          Sending Exam SMS\n     </div>\n\n <div class=\"box_body\" id=\"sms_body\">\n  <center>\n\n<div class=\"dropdown\">\n  \n            <select class=\"dropdown-select-version select\" name=\"options\" id=\"receive_by\" onchange =\"\">\n                <?php $sms->get_sms_recever_only_option(); ?>\n            </select>\n\n\n             <button id=\"btnn\"  onclick=\"send_sms(<?php echo $exam_id; ?>)\" class=\"button_result\" style=\"\" title=\"Send SMS\" alt=\"Download\"><span style=\"margin-right: 6px;\" class=\"glyphicon glyphicon-envelope\"></span>Send SMS</button>\n        </div>\n\n  <div id=\"message_detail\">\n    \n  </div>\n\n\n  </center>\n</div>\n\n\n\t<?php\n}\n\n\nfunction exam_header($exam,$program,$subject,$exam_id){\n\t$subject_id=$exam[$exam_id]['sub_id'];\n\t$program_id=$exam[$exam_id]['program_id'];\n\t$exam_name=$exam[$exam_id]['exam_name'];\n\n\t$mcq=$exam[$exam_id]['mcq'];\n\t$written=$exam[$exam_id]['written'];\n\t$total=$exam[$exam_id]['total'];\n\t$date=$exam[$exam_id]['date'];\n\n\t$subject_name=$subject[$subject_id]['name'];\n\t$program_name=$program[$program_id]['name'];\n?>\n\n<div class=\"header_box text-center\" style=\"margin-top: 25px;\">\n            Exam Details\n</div>\n\n <div class=\"box_body\">\n  <center>\n    <div style=\"font-weight: bold;font-size: 16px;\">\n    <?php echo \"$program_name\"; ?><br/>\n        <?php echo \"$subject_name\"; ?><br/>\n        <?php echo \"$exam_name\"; ?><br/>\n        \n      </div>\n\n\n<table style=\"width: 100%\">\n  <center></center>\n  <tr>\n    <th><center>MCQ Marks</center></th>\n    <th><center>Written Marks</center></th>\n    <th><center>Total Marks</center></th>\n    <th><center>Exam Date</center></th>\n  </tr>\n  <tr>\n    <td><center> <?php echo \"$mcq\"; ?></center></td>\n    <td><center> <?php echo \"$written\"; ?></center></td>\n    <td><center> <?php echo \"$total\"; ?></center></td>\n    <td><center> <?php echo \"$date\"; ?></center></td>\n    \n  </tr>\n</table>\n\n  </center>\n </div>\n\n<?php\n}\n\n\n?>\n\n<style type=\"text/css\">\ntable{\n  margin-top: 10px;\n}\n  table, th, td {\n    border: 2px solid #D7DDE2;\n    background-color: #ffffff;\n    border-collapse: collapse;\n    padding: 5px;\n    }\n    th{\n      font-size: 15px;\n    }\n\n \n</style>"
  },
  {
    "path": "page_action/setting/setting.php",
    "content": "<?php\n\n\nif(isset($_POST['add'])){\n\t$no=$_POST['add'];\n\t$no1=$no+1;\n\techo \"\n\t<input type='text' value='$no'>\n\t<button onclick='delete_res($no)'>-</button>\n\t<div id='add$no1'></div>\n\n\t\";\n}\n\nif(isset($_POST['name'])){\n\t$info=$_POST;\n\n    $db_info=$setting->genaral_setting_info();\n    \n\tforeach ($db_info as $key => $value) {\n        $option_name=$value['option_name'];\n        $option_value=$value['option_value'];\n        $id=$value['id'];\n        \n\t\tif(isset($info[$option_name])){\n\t\t\tif($info[$option_name]!=$option_value){\n\t\t\t\t\n\t\t\t\t$data=array();\n\t\t\t\t$data['id']=$id;\n\t\t\t\t$data['option_name']=$option_name;\n\t\t\t\t$data['option_value']=$info[$option_name];\n\t\t\t\t$db->sql_action(\"setting\",\"update\",$data);\n\n\t\t\t}\n\t\t}\n\t}\n\n\n\t//image option\n\n   if(isset($_FILES['main_logo'])){\n \n      $errors= array();\n      $file_name = $_FILES['main_logo']['name'];\n      $file_size = $_FILES['main_logo']['size'];\n      $file_tmp = $_FILES['main_logo']['tmp_name'];\n      $file_type = $_FILES['main_logo']['type'];\n      $f_type=$_FILES['main_logo']['type'];\n      $file_ext=(explode('.',$file_name));\n      $file_ext=end($file_ext);\n      \n      \n\n      $imagename=\"avatar.png\";\n      $expensions= array(\"jpeg\",\"jpg\",\"png\",\"JPEG\",\"PNG\",\"JPG\");\n      \n      if(in_array($file_ext,$expensions)== false){\n         $errors[]=\"extension not allowed, please choose a JPEG or PNG file.\";\n      }\n      \n      if($file_size > 2097152) {\n         $errors[]='File size must be excately 2 MB';\n      }\n      \n      if(empty($errors)==true) {\n         move_uploaded_file($file_tmp,\"upload/custom_content/\".\"main_logo\".'.'.$file_ext);\n         $imagename=\"main_logo.$file_ext\";\n         $data=array();\n         $data['id']=4;\n         $data['option_value']=$imagename;\n         $db->sql_action(\"setting\",\"update\",$data);\n\n      }else{\n         //print_r($errors);\n      }\n\n\n   }     \n  //end image option\n//image option\n\n   if(isset($_FILES['logo'])){\n \n      $errors= array();\n      $file_name = $_FILES['logo']['name'];\n      $file_size = $_FILES['logo']['size'];\n      $file_tmp = $_FILES['logo']['tmp_name'];\n      $file_type = $_FILES['logo']['type'];\n      $f_type=$_FILES['logo']['type'];\n      $file_ext=(explode('.',$file_name));\n      $file_ext=end($file_ext);\n      \n      \n\n      $imagename=\"avatar.png\";\n      $expensions= array(\"jpeg\",\"jpg\",\"png\",\"JPEG\",\"PNG\",\"JPG\");\n      \n      if(in_array($file_ext,$expensions)== false){\n         $errors[]=\"extension not allowed, please choose a JPEG or PNG file.\";\n      }\n      \n      if($file_size > 2097152) {\n         $errors[]='File size must be excately 2 MB';\n      }\n      \n      if(empty($errors)==true) {\n         move_uploaded_file($file_tmp,\"upload/custom_content/\".\"logo\".'.'.$file_ext);\n         $imagename=\"logo.$file_ext\";\n         $data=array();\n         $data['id']=5;\n         $data['option_value']=$imagename;\n         $db->sql_action(\"setting\",\"update\",$data);\n\n      }else{\n         //print_r($errors);\n      }\n\n\n   }     \n  //end image option\n    \n\n\n}\n\nif(isset($_POST['reset_logo'])){\n\t$data['id']=5;\n    $data['option_value']=\"techserm_small_logo.png\";\n    $db->sql_action(\"setting\",\"update\",$data);\n}\nif(isset($_POST['reset_main_logo'])){\n\t$data['id']=4;\n    $data['option_value']=\"techserm_full_logo.jpg\";\n    $db->sql_action(\"setting\",\"update\",$data);\n}\n\n\n?>"
  },
  {
    "path": "page_action/sms/sms_action.php",
    "content": "<?php\n\nif(isset($_POST['send_pending_sms'])){\n    $id=$_POST['send_pending_sms'];\n    $sms->send_pending_sms($id);\n}\n\nif(isset($_POST['insert_sms'])){\n\t$info=$_POST['insert_sms'];\n\tunset($info['id']);\n\t$info['date']=$db->date();\n\t$info['add_by']=$user_id;\n\t$db->sql_action(\"sms_add\",\"insert\",$info,\"no\");\n}\n\nif(isset($_POST['delete_sms'])){\n  $info=$_POST['delete_sms'];\n  print_r($info);    \n  $db->sql_action(\"sms_add\",\"delete\",$info,\"no\");\n}\n\nif(isset($_POST['update_sms'])){\n\t$info=$_POST['update_sms'];\n\t$db->sql_action(\"sms_add\",\"update\",$info,\"no\");\n}\n\nif(isset($_POST['get_sms_form'])){\n\n  if($user_permit>4){\n    echo \"<b>You Can Not Permit This Option.If You Need SMS then Please Connect TechSerm Authority</b>\";\n    return;\n  }\n  \n\t$site->form_input(\"Total Buy SMS\",\"total_sms\",\"total_sms\",\"number\",\"exclamation-sign\",\"\",\"\");\n\t$site->form_input(\"Buy Date\",\"date1\",\"date1\",\"date\",\"exclamation-sign\",\"\",\"\");\n  $site->form_input(\"Expire Date\",\"date2\",\"date2\",\"date\",\"exclamation-sign\",\"\",\"\");\n  $site->form_input(\"Total Pay\",\"pay\",\"pay\",\"number\",\"exclamation-sign\",\"\",\"\");\n\t?>\n   <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"sms_action('insert')\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save SMS</button>\n\t<?php\n}\n\nif(isset($_POST['update_sms_form'])){\n  $id=$_POST['update_sms_form'];\n  $info=$sms->get_separate_sms_buy($id);\n\n  $total_sms=$info['total_sms'];\n  $pay=$info['pay'];\n  $start=$info['start'];\n  $end=$info['end'];\n \n  $use=$info['total_send'];\n  if($user_permit>4){\n    echo \"<b>You Can Not Permit This Option.If You Need SMS then Please Connect TechSerm Authority</b>\";\n    return;\n  }\n  \n  $site->form_input(\"Total Buy SMS\",\"total_sms\",\"total_sms\",\"number\",\"exclamation-sign\",\"$total_sms\",\"\");\n  $site->form_input(\"Buy Date\",\"date1\",\"date1\",\"date\",\"exclamation-sign\",\"$start\",\"\");\n  $site->form_input(\"Expire Date\",\"date2\",\"date2\",\"date\",\"exclamation-sign\",\"$end\",\"\");\n  $site->form_input(\"Total Pay\",\"pay\",\"pay\",\"number\",\"exclamation-sign\",\"$pay\",\"\");\n ?>\n\n   <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"sms_action('update',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Update SMS</button>\n\n<?php\n}\nif(isset($_POST['delete_sms_form'])){\n  $id=$_POST['delete_sms_form'];\n  $info=$sms->get_separate_sms_buy($id);\n  $use=$info['total_send'];\n  if($user_permit>4){\n    echo \"<b>You Can Not Permit This Option.If You Need SMS then Please Connect TechSerm Authority</b>\";\n    return;\n  }\n  if($use>0){\n    echo \"<b>Your Package Already Send Some SMS.So You Can Not Delete This Package</b>\";\n    return;\n  }\n  ?>\n\n  <center>\n    <h3>Are You Want To Delete This SMS Package</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"sms_action('delete',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n  </center>\n\n  <?php\n}\n\n\n?>"
  },
  {
    "path": "page_action/student_list/basic_list.php",
    "content": "<?php\n\n\nif (isset($_POST['program_select'])) {\n\t$program_id=$_POST['program_select'];\n\techo \"<option value='0'>Select All Batch</option>\";\n\t$program_ob->select_batch_option($program_id);\n}\n\n\nif(isset($_POST['view_program'])){\n\n?> \n<div class=\"row\">\n<div class=\"col-md-12 col-sm-12 col-lg-12\">\n        <div style=\"border-width: 0px; background-color: #C6C9D1\" class=\"panel with-nav-tabs panel-primary animated slideInDown\">\n            <div class=\"header_box\">\n                <ul class=\"nav nav-tabs\" style=\"border-width: 0px;\">\n                    <li class=\"active\">\n                      <a href=\"#tab1primary\" data-toggle=\"tab\" onclick=\"get_action('program_overview')\">\n                      <span class=\"glyphicon glyphicon-eye-open\"></span> Program Overview\n                      </a>\n                    </li>\n                    <li class=\"\" onclick=\"get_action('student_list')\"><a href=\"#tab2primary\" data-toggle=\"tab\"><span class=\"glyphicon glyphicon-th-list\"></span> Student List</a></li>\n                    <li class=\"\" onclick=\"get_action('id_card')\"><a href=\"#tab3primary\" data-toggle=\"tab\"><span class=\"glyphicon glyphicon-compressed\"></span> Student ID Card</a></li>\n                    <li class=\"\" onclick=\"get_action('payment')\"><a href=\"#tab3primary\" data-toggle=\"tab\"><span class=\"glyphicon glyphicon-usd\"></span> Student Payment</a></li>\n                </ul>\n            </div>\n  <div class=\"box_body\" id=\"box_body\">\n      \n </div>\n\n </div>\n</div>\n</div>\n<?php\t\n}\n\n\n?>"
  },
  {
    "path": "page_action/student_list/payment_option.php",
    "content": "<?php\n\nif(isset($_POST['payment_option_overview'])){\n\t$data=$_POST['payment_option_overview'];\n    \n    $program_id=$data['program_id'];\n    $batch_id=$data['batch_id'];\n    $batch_name=($batch_id==0)?\"All Batch\":$batch[$batch_id]['name'];\n    $type=$data['payment_type'];\n\n    $payment_type=\"Admission Payment\";\n    $month=\"-\";\n    $year=\"-\";\n\n    if($type==2){\n    \t$payment_type=\"Monthly Payment\";\n    \t$year=$data['year'];\n    \t$month=$set_payment_ob->get_month_name($data['month']);\n    }\n\n    \n  \t$info=$payment->program_payment_info($data);\n  \t\n\tover_view_css();\n    get_program_overview_percent_css(75);\n     echo \"<div class='row'>\";\n\n     ?>\n     <div class=\"col-md-7\">\n     \t<table width=\"100%\">\n     \t\t<tr>\n     \t\t\t<td class=\"payment_td_1\">Program Name: </td>\n     \t\t\t<td class=\"payment_td_2\"><?php echo $program[$program_id]['name']; ?></td>\n     \t\t</tr>\n     \t\t<tr>\n     \t\t\t<td class=\"payment_td_1\">Batch Name: </td>\n     \t\t\t<td class=\"payment_td_2\"><?php echo \"$batch_name\"; ?></td>\n     \t\t</tr>\n     \t\t<tr>\n     \t\t\t<td class=\"payment_td_1\">Payment Type: </td>\n     \t\t\t<td class=\"payment_td_2\"><?php echo \"$payment_type\"; ?></td>\n     \t\t</tr>\n     \t\t<tr>\n     \t\t\t<td class=\"payment_td_1\">Year: </td>\n     \t\t\t<td class=\"payment_td_2\"><?php echo \"$year\"; ?></td>\n     \t\t</tr>\n     \t\t<tr>\n     \t\t\t<td class=\"payment_td_1\">Month: </td>\n     \t\t\t<td class=\"payment_td_2\"><?php echo \"$month\"; ?></td>\n     \t\t</tr>\n\n     \t</table>\n     </div>\n    <div class=\"col-md-5\">\n    \t<div class=\"payment_overvirw_info \" style=\"align-content: center;margin-bottom: 15px\">\n    \t\t<center>\n    \t\t\t<span style=\"margin-top: 85px;\"></span>\n    \t\t\t<span style=\"font-size: 80px;\"><?php echo $info['paid_percent']; ?></span><span style=\"font-size: 60px\">%</span>\n    \t\t\t<div style=\" margin-top: -22px;\"></div>\n    \t\t\t<span style=\"font-size: 14px;\">Payment Completed</span>\n    \t\t</center>\n           \n     \t</div>\n    </div>\n    <?php\n  \t make_dive_payment(\"Total Student\",$info['total_student'],\"fa fa-users\");\n  \t make_dive_payment(\"Total paid student\",$info['paid_student'],\"fa fa-users\");\n  \t make_dive_payment(\"Total due student\",$info['due_student'],\"fa fa-users\");\n  \t make_dive_payment(\"total fee (Tk)\",$info['total_fee'],\"fa fa-inr\");\n  \t make_dive_payment(\"total Pay (Tk)\",$info['total_pay'],\"fa fa-eur\");\n  \t make_dive_payment(\"total due (Tk)\",$info['total_due'],\"fa fa-gbp\");\n    echo \"</div>\";\n\n}\n\n\n\nif(isset($_POST['program_overview_send_sms'])){\n\t$data=$_POST['program_overview_send_sms'];\n\t$info=$payment->get_set_payment_list($data);\n\t$status=$data['status'];\n\t$receiver=$data['receiver'];\n\t\n\t$type=$data['payment_type'];\n\t$program_id=$data['program_id'];\n\t$program_name=$program[$program_id]['name'];\n\n\t$last_payment_date1=$data['last_payment_date'];\n\t$last_payment_date=date(\"d M Y\", strtotime($last_payment_date1));\n    $within=($last_payment_date1==\"\")?\"\":\" within $last_payment_date\";\n\n    if($type==2){\n    \t$month=$data['month'];\n    \t$year=$data['year'];\n    \t$month_name=$set_payment_ob->get_month_name($month);\n    }\n    $msg_f=$db->msg;\n\n    $sms_list=array();\n\t\n\tforeach ($info as $key => $value) {\n\t\t$p_status=$value['status'];\n\t\t$fee=$value['total_fee'];\n\t\t$due=$value['total_due'];\n\t\t$student_id=$value['student_id'];\n\t\t$student_name=$student[$student_id]['nick'];\n\t\tif($p_status==$status || $status==\"All\"){\n\t\t\t$msg=\"Dear $student_name,\\n\";\n\t\t\tif($type==1){\n\t\t\t\t$msg.=\"Your admission fee $fee tk for '$program_name'\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$msg.=\"Your monthly fee $fee tk for '$month_name-$year' in '$program_name'\";\n\t\t\t}\n\n\t\t\tif($p_status==\"Paid\"){\n\t\t\t\t$msg.=\" is sucessfully completed.\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$msg.=\" is not completed. Your due amount $due tk. Please pay your due amount$within.\";\n\t\t\t}\n\n\t\t\t$msg.=\"\\n\\n$msg_f\";\n\n\t\t\t$mobile_number_list=$sms->get_student_mobile_number($student_id,$receiver);\n\t    \t\tforeach ($mobile_number_list as $key => $value1) {\n\t    \t\t$number=$value1;\n\t    \t\t$res=$sms->make_sms_array($value1,$msg);\n    \t\t\tarray_push($sms_list, $res);\n\t    \t}\n\t\t}\n\t}\n\n\t$site->myprint_r($sms_list);\n\t$sms->send_sms($sms_list);\n}\n\nif(isset($_POST['payment_status_sms'])){\n\tover_view_css();\n\t?>\n\n<div style=\"height: 180px;padding-top: 40px;\">\n<div class=\"row\">\n\t\n\t<div class=\"col-md-4\">\n\t\t<b>Select Payment Type</b>\n\t\t<select class=\"form-control\" id=\"sms_payment_type\">\n\t\t\t<option value=\"0\">Select Payment Status Type</option>\n\t\t\t<option value=\"All\">Paid And Due All Student</option>\n\t\t\t<option value=\"Paid\">Paid Student</option>\n\t\t\t<option value=\"Due\">Due Student</option>\n\t\t</select>\n\t</div>\n\t<div class=\"col-md-4\">\n\t\t<b>Select Last Date Of Payment</b>\n\t\t<input type=\"date\" class=\"form-control\" id=\"last_payment_date\" name=\"\">\n\t</div>\n\t<div class=\"col-md-4\">\n\t\t <?php $sms->get_sms_recever_option(); ?>\n\t</div>\n\t<div class=\"col-md-4\"></div>\n\t<div class=\"col-md-4\" style=\"margin-top: 15px;\">\n\t\t<button class=\"btn_send_sms\" onclick=\"program_overview_send_sms()\">Send SMS</button>\n\t</div>\n</div>\n</div>\n\n<div id=\"sms_info_area\"></div>\n\n<?php\n\n}\n\nif(isset($_POST['get_list_payment'])){\n  $data=$_POST['get_list_payment'];\n  $status=$data['status'];\n\n  $info=$payment->get_set_payment_list($data);\n\n  get_payment_status_list($site,$student,$info,$status,$program,$batch);\n}\n\n\n\n\nfunction get_payment_status_list($site,$student,$payment_list,$status_per,$program,$batch){\n\tneed_student_list_css();\n\t\n\t?>\n\t<button class=\"btn btn-primary hidden-print pull-right\" onclick=\"print('print_area')\"><span class=\"glyphicon glyphicon-print\" aria-hidden=\"true\"></span> Print</button>\n<div id=\"print_area\">\n<?php need_student_list_css();\n\t$site->header_info_area();\n?>\n<div class=\"header_area\">\n\t<?php echo \"$status_per Student List\"; ?>\n\n</div>\n    <table width=\"100%\" style=\"border-collapse: collapse;\">\n        <tr>\n        \t<td class=\"student_list_td1\">Status</td>\n        \t<td class=\"student_list_td1\">Student ID</td>\n        \t<td class=\"student_list_td1\">Student Name</td>\n        \t<td class=\"student_list_td1\">Total Fee</td>\n        \t<td class=\"student_list_td1\">Total Pay</td>\n        \t<td class=\"student_list_td1\">Total Due</td>\n        \t\n        </tr>\n        <?php foreach ($payment_list as $key => $value) {\n             $student_id=$value['student_id'];\n             $status=$value['status'];\n             $payment_id=$value['payment_id'];\n             if($status_per!=$status && $status_per!=\"All\")continue;\n             $color=($status==\"Paid\")?\"#CDFFD8\":\"#FFDCE0\";\n         ?>\n         <tr class=\"tr_list\"  onclick=\"view_payment_history(<?php echo \"$payment_id\"; ?>)\">\n         \t<td class=\"student_list_td2 status\" style=\"background-color: <?php  echo \"$color\";?>\"><?php echo $value['status']; ?></td>\n        \t<td class=\"student_list_td2\"><?php echo $value['student_id']; ?></td>\n        \t<td class=\"student_list_td2\"><?php echo $student[$student_id]['name']; ?></td>\n        \t<td class=\"student_list_td2\"><?php echo $value['total_fee']; ?></td>\n        \t<td class=\"student_list_td2\"><?php echo $value['total_pay']; ?></td>\n        \t<td class=\"student_list_td2\"><?php echo $value['total_due']; ?></td>\n        \t\n        </tr>\n\n        <?php } ?>\n    \t\n    </table>\n\n</div>\n<?php \n\n}\n\nfunction make_dive_payment($name,$number,$icon){\n\n?>\n\n<div class=\"col-md-4\">\n                        <div class=\"circle-tile\">\n                            \n                            <div class=\"circle-tile-heading dark-blue\">\n                                    <i class=\"<?php echo $icon; ?> fa-fw fa-3x\"></i>\n                            </div>\n                            <div class=\"circle-tile-content dark-blue\">\n                                <div class=\"circle-tile-description text-faded\">\n                                    <?php echo \"$name\"; ?>\n                                </div>\n                                <div class=\"circle-tile-number text-faded\">\n                                    <?php echo \"$number\"; ?>\n                                    <span id=\"sparklineA\"></span>\n                                </div>\n                                \n                            </div>\n                        </div>\n  </div>\n\n<?php } ?>\n\n<?php function over_view_css(){ ?>\n\n<style type=\"text/css\">\n\n\n.btn_send_sms{\n\tbackground-color: var(--bg-color);\n\tcolor: var(--font-color);\n\tborder-width: 0px;\n\twidth: 100%;\n\tpadding: 8px;\n\tborder-radius: 10px;\n}\n.btn_send_sms:hover{\n\tfont-size: 16px;\n}\n.btn_send_sms:focus{\n\toutline: none;\n}\n.payment_td_1{\n\tbackground-color: var(--bg-color);\n\tpadding: 8px;\n\twidth: 160px;\n\tcolor: var(--font-color);\n\tborder: 1px solid #C6C9D1;\n\ttext-align: right;\n}\n\n.payment_td_2{\n\tborder:1px solid #C6C9D1;\n\tpadding: 8px;\n}\n\n.payment_overvirw_info{\n\tbackground-color: var(--bg-color);\n\theight: 180px;\n\tmargin-bottom: 10px;\n\tpadding-top: 20px;\n\tmargin-top: 5px;\n\tcolor: var(--font-color);\n\tborder-radius: 200px;\n}\n.percent{\n\ttext-align: center;\n\t\n\tfont-size: 40px;\n\n}\n\n.progress_custom{\n\theight: 40px !important;\n\tmargin-top: 20px;\n\tbackground-color: #F1F1F1;\n\n}\n.bar_custom{\n\tbackground-color: var(--bg-color);\n\tpadding: 10px;\n\tfont-size: 17px;\n\tborder-radius: 2px;\n\tborder-width: 0px 0px 2px 2px;\n\tborder-color: \n}\n\n.dashboard_box{\n    margin-top: 20px;\n}\n.dashboard_box .box_header{\n   background-color: var(--bg-color);\n   color: var(--font-color);\n   padding: 10px;\n}\n.dashboard_box .box_body{\n   height: auto;\n   border-width: 0px 1px 1px 1px;\n   border-color: var(--bg-color);\n}\n\n\n    @media (min-width: 768px){\n.circle-tile {\n    margin-bottom: 30px;\n}\n}\n\n.circle-tile {\n    margin-bottom: 15px;\n    text-align: center;\n}\n\n.circle-tile-heading {\n    position: relative;\n    width: 80px;\n    height: 80px;\n    margin: 0 auto -40px;\n    border: 3px solid rgba(255,255,255,0.3);\n    border-radius: 100%;\n    color: #fff;\n    transition: all ease-in-out .3s;\n}\n\n/* -- Background Helper Classes */\n\n/* Use these to cuztomize the background color of a div. These are used along with tiles, or any other div you want to customize. */\n\n .dark-blue {\n    background-color: var(--bg-color);\n}\n\n.green {\n    background-color: #16a085;\n}\n\n.blue {\n    background-color: #2980b9;\n}\n\n.orange {\n    background-color: #f39c12;\n}\n\n.red {\n    background-color: #e74c3c;\n}\n\n.purple {\n    background-color: #8e44ad;\n}\n\n.dark-gray {\n    background-color: #7f8c8d;\n}\n\n.gray {\n    background-color: #95a5a6;\n}\n\n.light-gray {\n    background-color: #bdc3c7;\n}\n\n.yellow {\n    background-color: #f1c40f;\n}\n\n/* -- Text Color Helper Classes */\n\n .text-dark-blue {\n    color: #34495e;\n}\n\n.text-green {\n    color: #16a085;\n}\n\n.text-blue {\n    color: #2980b9;\n}\n\n.text-orange {\n    color: #f39c12;\n}\n\n.text-red {\n    color: #e74c3c;\n}\n\n.text-purple {\n    color: #8e44ad;\n}\n\n.text-faded {\n    color: rgba(255,255,255,0.7);\n}\n\n\n\n.circle-tile-heading .fa {\n    line-height: 80px;\n}\n\n.circle-tile-content {\n    padding-top: 50px;\n}\n.circle-tile-description {\n    text-transform: uppercase;\n}\n\n.text-faded {\n    color: rgba(255,255,255,0.7);\n}\n\n.circle-tile-number {\n    padding: 5px 0 15px;\n    font-size: 26px;\n    font-weight: 700;\n    line-height: 1;\n}\n\n.circle-tile-footer {\n    display: block;\n    padding: 5px;\n    color: rgba(255,255,255,0.5);\n    background-color: rgba(0,0,0,0.1);\n    transition: all ease-in-out .3s;\n}\n\n.circle-tile-footer:hover {\n    text-decoration: none;\n    color: rgba(255,255,255,0.5);\n    background-color: rgba(0,0,0,0.2);\n}\n</style>\n\n<?php } ?>\n\n<?php function get_program_overview_percent_css($percent){ ?>\n<style type=\"text/css\">\n\t.progress{\n    width: 150px;\n    height: 150px;\n    line-height: 150px;\n    background: none;\n    margin: 0 auto;\n    box-shadow: none;\n    position: relative;\n}\n.progress:after{\n    content: \"\";\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    border: 12px solid #fff;\n    position: absolute;\n    top: 0;\n    left: 0;\n}\n.progress > span{\n    width: 50%;\n    height: 100%;\n    overflow: hidden;\n    position: absolute;\n    top: 0;\n    z-index: 1;\n}\n.progress .progress-left{\n    left: 0;\n}\n.progress .progress-bar{\n    width: 100%;\n    height: 100%;\n    background: none;\n    border-width: 12px;\n    border-style: solid;\n    position: absolute;\n    top: 0;\n}\n.progress .progress-left .progress-bar{\n    left: 100%;\n    border-top-right-radius: 80px;\n    border-bottom-right-radius: 80px;\n    border-left: 0;\n    -webkit-transform-origin: center left;\n    transform-origin: center left;\n}\n.progress .progress-right{\n    right: 0;\n}\n.progress .progress-right .progress-bar{\n    left: -100%;\n    border-top-left-radius: 80px;\n    border-bottom-left-radius: 80px;\n    border-right: 0;\n    -webkit-transform-origin: center right;\n    transform-origin: center right;\n    animation: loading-1 1.8s linear forwards;\n}\n.progress .progress-value{\n    width: 90%;\n    height: 90%;\n    border-radius: 50%;\n    background: #44484b;\n    font-size: 24px;\n    color: #fff;\n    line-height: 135px;\n    text-align: center;\n    position: absolute;\n    top: 5%;\n    left: 5%;\n}\n.progress.blue .progress-bar{\n    border-color: #049dff;\n}\n.progress.blue .progress-left .progress-bar{\n    animation: loading-2 1.5s linear forwards 1.8s;\n}\n.progress.yellow .progress-bar{\n    border-color: #fdba04;\n}\n.progress.yellow .progress-left .progress-bar{\n    animation: loading-3 1s linear forwards 1.8s;\n}\n.progress.pink .progress-bar{\n    border-color: #ed687c;\n}\n.progress.pink .progress-left .progress-bar{\n    animation: loading-4 0.4s linear forwards 1.8s;\n}\n.progress.green .progress-bar{\n    border-color: #1abc9c;\n}\n.progress.green .progress-left .progress-bar{\n    animation: loading-5 1.2s linear forwards 1.8s;\n}\n@keyframes loading-1{\n    0%{\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100%{\n        -webkit-transform: rotate(180deg);\n        transform: rotate(180deg);\n    }\n}\n@keyframes loading-2{\n    0%{\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100%{\n        -webkit-transform: rotate(144deg);\n        transform: rotate(144deg);\n    }\n}\n@keyframes loading-3{\n    0%{\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100%{\n        -webkit-transform: rotate(90deg);\n        transform: rotate(90deg);\n    }\n}\n@keyframes loading-4{\n    0%{\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100%{\n        -webkit-transform: rotate(36deg);\n        transform: rotate(36deg);\n    }\n}\n@keyframes loading-5{\n    0%{\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100%{\n        -webkit-transform: rotate(126deg);\n        transform: rotate(126deg);\n    }\n}\n@media only screen and (max-width: 990px){\n    .progress{ margin-bottom: 20px; }\n}\n\n</style>\n\n<?php }?>"
  },
  {
    "path": "page_action/student_list/payment_overview.php",
    "content": "<?php\n\nif(isset($_POST['select_payment_year'])){\n\t$info=$_POST['select_payment_year'];\n\t$program_id=$info['program_id'];\n\t$year=$info['year'];\n\tif($year!=-1){\n        $set_payment_ob->get_program_payment_month_option($program[$program_id],$year); \n    }\n   else echo \"<option value='-1'>Select Month</option>\";\n\t\n}\n\n\nif(isset($_POST['payment'])){\n\t$info=$_POST['payment'];\n\t$program_id=$info['program_id'];\n\t$program_type=$program[$program_id]['type'];\n?> \n<div class=\"row\">\n\t<div class=\"col-md-1\"></div>\n\t<div class=\"col-md-3\">\n\t\t<select class=\"form-control\" id=\"payment_type\" onchange=\"select_payment_type()\">\n\t\t\t<option value=\"-1\">Select Payment Type</option>\n\t\t\t<option value=\"1\">Admission Fee</option>\n\t\t<?php if($program_type==2){ ?>\t<option value=\"2\">Monthly Fee</option> <?php } ?>\n\t\t</select>\n\t</div>\n\t<div id=\"payment_month_area\">\n\t\t\n\t</div>\n\t\n</div> \n\n<div id=\"payment_panel_body\" style=\"margin-top: 15px;\"></div>\n\n<?php\t\n}\n\nif(isset($_POST['select_monthly_program'])){\n\t$program_id=$_POST['select_monthly_program'];\n\t?>\n\t<div class=\"col-md-3\">\n\t\t<select class=\"form-control\" id=\"payment_year\" onchange=\"select_payment_year()\">\n\t\t\t<?php $set_payment_ob->get_program_payment_year_option($program[$program_id]); ?>\n\t\t</select>\n\t</div>\n\t<div class=\"col-md-3\">\n\t\t<select class=\"form-control\" id=\"payment_month\" onchange=\"select_payment_month()\">\n\t\t\t<option value=\"-1\">Select Payment Type</option>\n\t\t</select>\n\t</div>\n\n<?php\n\n}\n\nif(isset($_POST['payment_panel'])){\n\tpayment_overview_css();\n?>\n\t<div class=\"row\">\n  \t<div class=\"col-md-3\">\n  \t\t<div class=\"payment_btn_area\">\n  \t\t\t<button class=\"payment_overview_btn\" onclick=\"get_payment_option('payment_option_overview')\">Payment Overview</button><br/>\n  \t\t\t<button class=\"payment_overview_btn\" onclick=\"get_payment_option('payment_option_status')\">Payment Status</button><br/>\n  \t\t\t<button class=\"payment_overview_btn\" onclick=\"get_list_payment('All')\">Paid And Due Student List</button><br/>\n  \t\t\t<button class=\"payment_overview_btn\" onclick=\"get_list_payment('Paid')\">Paid Student List</button><br/>\n  \t\t\t<button class=\"payment_overview_btn\" onclick=\"get_list_payment('Due')\">Due Student List</button><br/>\n  \t\t\t<button class=\"payment_overview_btn\" onclick=\"get_payment_option('payment_status_sms')\">Payment Status SMS</button>\n  \t\t</div>\n  \t</div>\n  \t<div class=\"col-md-9\">\n  \t\t<div class=\"payment_overview_header\" id=\"payment_overview_header\">Payment Overview</div>\n  \t\t<div class=\"payment_overview_body\" id=\"payment_overview_body\">\n  \t\t\t\n  \t\t</div>\n  \t</div>\n  </div>\n\n <?php \n}\n\nif(isset($_POST['payment_option_status'])){\n\t$data=$_POST['payment_option_status'];\n    echo \"<h1>This System Working</h1>\";\n\t$payment_status_list=$payment->get_payment_status_list($data);\n}\n\nfunction payment_overview_css(){\n\n?>\n\n<style type=\"text/css\">\n\t\n.payment_overview_btn{\n\twidth: 100%;\n\tbackground-color: var(--bg-color);\n   \tcolor: var(--font-color);\n\tpadding: 12px 3px 12px 3px;\n\tfont-weight: bold;\n\tfont-size: 15px;\n\tmargin-bottom: 2px;\n\tborder-radius: 10px;\n\tborder-width: 0px;\n}\n.payment_overview_body{\n\tbackground-color: #ffffff;\n\theight: auto;\n\tborder: 1px solid #C6C9D1;\n\tpadding: 10px;\n}\n.payment_overview_header{\n   background-color: var(--bg-color);\n   color: var(--font-color);\n   padding: 15px;\n   border-radius: 5px 5px 0px 0px;\n   font-weight: bold;\n}\n.payment_btn_area{\n\tmargin-top: 15px;\n}\n\n.payment_overview_btn:hover{\n  font-size: 16px;\n}\n\n.payment_overview_btn:focus{\n  outline: none;\n   border: none;\n}\n\n</style>\n\n<?php } ?>"
  },
  {
    "path": "page_action/student_list/program_overview.php",
    "content": "<?php\n\nif(isset($_POST['program_overview'])){\n\t$info=$_POST['program_overview'];\n\t\n\t$program_id=$info['program_id'];\n\t$program=$program[$program_id];\n\t$program_name=$program['name'];\n\n\t$batch_id=$info['batch_id'];\n\t$subject=$program['subject_string'];\n\n\t$admission_fee=$program['fee'];\n    $subject=$program['subject_string'];\n\t//$site->myprint_r($program);\n\tif($batch_id==0){\n       $batch_name=$program['batch_string'];\n\t}\n\telse{\n\t\t$batch=$batch[$batch_id];\n        $batch_name=$batch['name'];\n\t}\n   $batch_id=($batch_id==-1)?0:$batch_id;\n   $total_student=$student_ob->get_total_student($program_id,$batch_id);\n  ?>\n\n<div class=\"row\">\n\t<div class=\"col-md-6\">\n\t\t<table style=\"width: 100%\">\n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td class=\"program_td\">Program Name</td>\n\t\t\t\t<td class=\"batch_td3\"><?php echo \"$program_name\"; ?></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=\"program_td\">Batch Name</td>\n\t\t\t\t<td class=\"batch_td3\"><?php echo \"$batch_name\"; ?></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=\"program_td\">Subject</td>\n\t\t\t\t<td class=\"batch_td3\"><?php echo \"$subject\"; ?></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=\"program_td\">Total Student</td>\n\t\t\t\t<td class=\"batch_td3\"><?php echo \"$total_student\"; ?></td>\n\t\t\t</tr>\n\t\t\n\t\t</table>\t\n\t</div>\n\t<div class=\"col-md-6\">\n\t\t<table style=\"width: 100%\">\n\t\t\t<tr>\n\t\t\t\t\n\t\t\t\t<td class=\"batch_td1\">Batch Name</td>\n\t\t\t\t<td class=\"batch_td1\">Batch Day</td>\n\t\t\t\t<td class=\"batch_td1\">Batch Time</td>\n\t\t\t</tr>\n\t<?php \n        foreach ($program['batch'] as $key => $value) {\n            $id=$value['id'];\n            if($batch_id!=0){\n                if($batch_id!=$id)continue;\n            }\n            $name=$value['name'];\n            $day=$value['day_string'];\n            $start=$value['start'];\n            $end=$value['end'];\n\t?>\n\t\t\t<tr>\n\t\t\t\t\n\t\t\t\t<td class=\"batch_td2\"><?php echo \"$name\"; ?></td>\n\t\t\t\t<td class=\"batch_td2\"><?php echo \"$day\"; ?></td>\n\t\t\t\t<td class=\"batch_td2\"><?php echo \"($start - $end)\"; ?></td>\n\t\t\t</tr>\n\t\t\t<?php } ?>\n\t\t</table>\n\t</div>\n\t\n</div>\n\n<?php\n\n}\n\nif(isset($_POST['id_card'])){\n\t$info=$_POST['id_card'];\n\t$program_id=$info['program_id'];\n  \t$batch_id=$info['batch_id'];\n\n  \t$info= $student_ob->get_student_list($program_id,$batch_id);\n\n  \t?>\n<button class=\"btn btn-primary hidden-print pull-right\" onclick=\"print('print_area')\"><span class=\"glyphicon glyphicon-print\" aria-hidden=\"true\"></span> Print</button>\n  \t<?php\n  \techo \"<div id='print_area' style='margin-top: 40px;'>\";\n  \t$id_card->get_id_card($info);\n  \techo \"</div></div>\";\n?>\n<?php\n\n}\n\n?>\n\n"
  },
  {
    "path": "page_action/student_list/student_list.php",
    "content": "<?php\n\ninclude \"basic_list.php\";\ninclude \"program_overview.php\";\ninclude \"student_list_content.php\";\ninclude \"payment_overview.php\";\ninclude \"payment_option.php\";\ninclude \"student_payment_history.php\";\n\n\n?>"
  },
  {
    "path": "page_action/student_list/student_list_content.php",
    "content": "<?php\n\nif(isset($_POST['student_list'])){\n\t$info=$_POST['student_list'];\n\t$program_id=$info['program_id'];\n\t$batch_id=$info['batch_id'];\n\t$info= $student_ob->get_student_list($program_id,$batch_id);\n\t\n\t\n   ?>\n   <button class=\"btn btn-primary hidden-print pull-right\" onclick=\"print('print_area')\"><span class=\"glyphicon glyphicon-print\" aria-hidden=\"true\"></span> Print</button>\n<div id=\"print_area\">\n<?php need_student_list_css();\n\t$site->header_info_area();\n?>\n<table id=\"datatable\" style=\"width: 100%\">\n\t<tr>\n\t\t<td class=\"student_list_td1\">Admit ID</td>\n\t\t<td class=\"student_list_td1\">Student ID</td>\n\t\t<td class=\"student_list_td1\">Student Name</td>\n\t\t<td class=\"student_list_td1\">Batch Name</td>\n\t\t<td class=\"student_list_td1\">Mobile</td>\n\t\t<td class=\"student_list_td1\">Admit Date</td>\n\t\t\n\t</tr>\n\t<?php \n      foreach ($info as $key => $value) {\n\n      \t$admit_id=$value['id'];\n      \t$admit_date=$db->date_to_string($value['admit_date']);\n      \t$id=$value['student_id'];\n      \t$value1=$value;\n      \t$value=$student[$id];\n      \t$name=$value['name'];\n      \t$father_name=$value['father_name'];\n      \t$mother_name=$value['mother_name'];\n        \n        $father_mobile=$value['father_mobile'];\n  \t\t$father_mobile=(strlen($father_mobile)<11)?\"\":$father_mobile;\n  \t\t$mother_mobile=$value['mother_mobile'];\n  \t\t$mother_mobile=(strlen($mother_mobile)<11)?\"\":$mother_mobile;\n\n  \t\t$mobile=$father_mobile.(($mother_mobile==\"\")?\"\":\", \".$mother_mobile);\n  \t\t$mobile=($mobile==\"\")?\"-\":$mobile;\n\n        $img=$value['photo'];\n        $nick=$value['nick'];\n        $batch_id=$value1['batch_id'];\n        $batch_name=$batch[$batch_id]['name'];\n\t ?>\n\t\n\t<tr class=\"tr_list\" onclick=\"view_student(<?php echo \"$id\"; ?>)\">\n\t\t<td class=\"student_list_td2\"><?php echo \"$admit_id\"; ?></td>\n\t\t<td class=\"student_list_td2\"><?php echo \"$id\"; ?></td>\n\t\t<td class=\"student_list_td2\"><?php echo \"$name ($nick)\"; ?></td>\n\t\t<td class=\"student_list_td2\"><?php echo \"$batch_name\"; ?></td>\n\t\t<td class=\"student_list_td2\"><?php echo \"$mobile\"; ?></td>\n\t\t<td class=\"student_list_td2\"><?php echo \"$admit_date\"; ?></td>\n\t</tr>\n\t\n    <?php } ?>\n</table>\n</div>\n<?php\n}\n\nif(isset($_POST['view_student'])){\n\t$student_id=$_POST['view_student'];\n\t$student_ob->get_student_profile($student_id);\n?>\n <button onclick=\"reload_profile(<?php echo \"$student_id\"; ?>)\" title='Reload Profile' class=\"btn btn_profile\" ><span class=\"glyphicon glyphicon-repeat\"></span></button>\n<?php\n\n }\n\nfunction need_student_list_css(){\n\n?>\n\n<style type=\"text/css\">\n.header_area{\n\tfont-size: 16px;\n\ttext-align: center;\n\tfont-weight: bold;\n\tmargin-bottom: 5px;\n}\n\t.student_list_td1{\n\t\tbackground-color: #EFF0F2;\n\t\tborder: 1px #C6C9D1 solid;\n\t\tpadding: 15px;\n\t\tfont-weight: bold;\n\t\ttext-align: center;\n\t}\n\t.student_list_td2{\n\t\tborder: 1px #C6C9D1 solid;\n\t\tpadding: 10px;\n\t\ttext-align: center;\n\t}\n\n\t@media print \n\t{\n\n    @page {\n    \tsize: A4;\n  \t\tmargin: 0;\n  \t\ttable { page-break-after:auto,border-collapse: collapse; }\n  \t\ttr    { page-break-inside:avoid; page-break-after:auto;visibility: collapse;}\n  \t\ttd    { page-break-inside:avoid; page-break-after:auto }\n  \t\tthead { display:table-header-group }\n  \t\ttfoot { display:table-footer-group }\n\t\t}\n\t\t\n\t}\n\n\t.status{\n\t\tfont-size: 14px;\n\t\tfont-weight: bold;\n\t}\n</style>\n\n<?php } \n\n\n\n?>"
  },
  {
    "path": "page_action/student_list/student_payment_history.php",
    "content": "<?php\n\n\nif(isset($_POST['view_payment_history'])){\n  \n  need_payment_panel_css();\n  $payment_id=$_POST['view_payment_history'];\n  $condition=\"id=$payment_id\";\n\n  if($payment_id==0){\n    echo \"<center><h1>Can Not Set Any Payment.Please Go To This Student Profile and Set Payment.</h1></center>\";\n\n    return;\n  }\n  $data=array();\n  $data=$program_ob->get_payment_month_status($data,$condition);\n \n\n  $payment_info=$data['payment_id_info'];\n  $program_id=$payment_info['program_id'];\n  \n  $program_name=$program_ob->get_separate_program_info(\"name\",$program_id);\n  $program_name=$program_name['name'];\n\n  $type=$payment_info['type'];\n\n  $month=\"-\";\n  $year=\"-\";\n  $type_status=($type==1)?\"Admission Fee\":$payment_info['note'];\n\n  if($type==2){\n   $month=$payment_info['month'];\n   $month=$set_payment_ob->get_month_name($month);\n   $year=$payment_info['year'];\n   $type_status=\"Monthly\";\n  }\n\n  $fee=$payment_info['total_fee'];\n  $total_pay=$data['total_pay'];\n  $due=$data['due'];\n\n  $status=\"Due\";\n  $status_color=\"c_unpaid\";\n  if($due<=0){\n    $status=\"Paid\";\n    $status_color=\"c_paid\";\n  }\n   \n  $payment_list=$set_payment_ob->get_payment_list($payment_id); \n\n?>\n\n <div class=\"row\">\n \n\n<div class=\"col-md-12 margin-bottom-30\">\n        <!-- BEGIN Portlet PORTLET-->\n        <div class=\"portlet\">\n          <div class=\"portlet-title\">\n            <div class=\"caption\">\n              <i class=\"glyphicon glyphicon-calendar\"></i>\n              <span class=\"caption-subject\"> Payment History</span>\n              \n              <span class=\"payment_status_img <?php echo $status_color; ?>\" style=\"padding: 0px 10px 0px 10px;\">\n                <?php echo \"$status\"; ?>\n              </span>\n            </div>\n           \n          </div>\n          <div class=\"portlet-body\">\n             <div class=\"row\" style=\"\">\n               <div class=\"col-md-4\">\n                 <table width=\"100%\">\n                  <tr>\n                    <td class=\"td_profile1\" style=\"width: 125px;\">Program Name:</td>\n                    <td class=\"td_profile2\"><?php echo \"$program_name\" ?><br/></td>\n                  </tr>\n                   <tr>\n                    <td class=\"td_profile1\">Payment Type:</td>\n                    <td class=\"td_profile2\"><?php echo \"$type_status\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1\">Year:</td>\n                    <td class=\"td_profile2\"><?php echo \"$year\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1\">Month:</td>\n                    <td class=\"td_profile2\"><?php echo \"$month\" ?></td>\n                  </tr>\n                  \n                 \n                </table>\n               </div>\n               <div class=\"col-md-8\">\n                  <table width=\"100%\">\n                    <tr style=\"text-align: center;\">\n                      <td class=\"td_list1\">#</td>\n                      <td class=\"td_list1\">Pay</td>\n                      <td class=\"td_list1\">Date</td>\n                      <td class=\"td_list1\">Receive By</td>\n                    </tr>\n                    <?php \n\n                  foreach ($payment_list as $key => $value) {\n                     $id=$value['id'];\n                     $pay=$value['pay'];\n                     $date=$value['date'];\n                     $add_by=$value['add_by'];\n                     $uname=$user[$add_by]['uname'];\n\n\n                    ?>\n                    <tr style=\"text-align: center;\">\n                      <td class=\"td_list2\"><?php echo \"$id\"; ?></td>\n                      <td class=\"td_list2\"><?php echo \"$pay\"; ?></td>\n                      <td class=\"td_list2\"><?php echo \"$date\"; ?></td>\n                      <td class=\"td_list2\"><?php echo \"$uname\"; ?></td>\n                     \n                    </tr>\n                     <?php } ?>\n                  </table>\n                  <div class=\"row\">\n                    <div class=\"col-md-3\"></div>\n                    <div class=\"col-md-9\">\n\n                  <table width=\"100%\">\n                    <tr>\n                    <td style=\"padding: 10px;\"></td>\n                    <td></td>\n                  </tr>\n                   <tr>\n                    <td class=\"td_profile1 td_fee\" style=\"width: 150px;\">Total Fee:</td>\n                    <td class=\"td_profile2\"><?php echo \" <b>$fee</b> tk\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1 td_fee\">Total Pay:</td>\n                    <td class=\"td_profile2\"><?php echo \" <b>$total_pay</b> tk\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1 td_fee\">Total Due:</td>\n                    <td class=\"td_profile2\"><?php echo \" <b>$due</b> tk\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1 td_fee\">Payment Status:</td>\n                    <td class=\"td_profile2\"><?php echo \" $status\"; ?></td>\n                  </tr>\n\n                  </table>\n                  </div>\n                  </div>\n               </div>\n               \n              </div>\n          </div>\n        </div>\n        <!-- END Portlet PORTLET-->\n      </div>\n</div>\n<?php\n}\n\nfunction need_payment_panel_css(){\n?>\n\n<style type=\"text/css\">\n:root {\n    --paid: #218c74; \n    --unpaid: #b33939; \n}\n  .sms_text_area{\n  height: 150px;\n  width: 100%;\n}\n.td_profile1,.td_profile2{\n  border-width: 1px;\n  border-color: #DDDDDD;\n  border-style: solid;\n  padding: 7px;\n}\n.td_profile1{\n  width: 100px;\n  background-color: var(--bg-color);\n  color: var(--font-color);\n}\n/*payment field*/\n.fee_input{\n  padding: 5px;\n  width: 100%;\n  margin-bottom: 5px;\n}\n.td_fee{\n  text-align: right;\n  font-weight: bold;\n}\n.payment_status_img{\n  width: 150px;\n  margin-bottom: 10px;\n  text-align: center;\n  border-radius: 15px;\n  font-size: 20px;\n  font-weight: bold;\n  font-family: \"Lucida Sans Unicode\", \"Lucida Grande\", sans-serif;\n  color: #fff;\n}\n\n/* Portlet */\n.portlet {\n  background: #fff;\n  padding: 20px;\n}\n\n.portlet.portlet-gray {\n  background: #f7f7f7;\n}\n\n.portlet.portlet-bordered {\n  border: 1px solid #eee;\n}\n\n/* Portlet Title */\n.portlet-title {\n  padding: 0;\n    min-height: 40px;\n    border-bottom: 1px solid #eee;\n    margin-bottom: 18px;\n}\n\n.caption {\n  float: left;\n  display: inline-block;\n  font-size: 18px;\n  line-height: 18px;\n}\n\n.caption.caption-green .caption-subject,\n.caption.caption-green i {\n  color: #4db3a2;\n  font-weight: 200;\n}\n\n.caption.caption-red .caption-subject,\n.caption.caption-red i {\n  color: #e26a6a;\n  font-weight: 200;\n}\n\n.caption.caption-purple .caption-subject,\n.caption.caption-purple i {\n  color: #8775a7;\n  font-weight: 400;\n}\n\n.caption i {\n  color: #777;\n  font-size: 15px;\n  font-weight: 300;\n  margin-top: 3px;\n}\n\n.caption-subject {\n  color: #666;\n  font-size: 16px;\n  font-weight: 600;\n}\n\n\n/* Actions */\n.actions {\n  float: right;\n    display: inline-block;\n}\n\n.actions a {\n  margin-left: 3px;\n}\n\n.actions .btn {\n  color: #666;\n  padding: 3px 9px;\n  font-size: 13px;\n    line-height: 1.5;\n    background-color: #fff;\n    border-color: #ccc;\n    border-radius: 50px;\n}\n\n.actions .btn i {\n  font-size: 12px;\n}\n\n.actions .btn:hover {\n  background: #f2f2f2;\n}\n/* Btn Circle */\n.actions .btn.btn-circle {\n  width: 28px;\n  height: 28px;\n  padding: 3px 7px;\n  text-align: center;\n}\n\n.actions .btn.btn-circle i {\n  font-size: 11px;\n}\n\n/* Btn Grey Salsa */\n.actions .btn.grey-salsa {\n  border: none;\n  margin-left: 3px;\n  box-shadow: none;\n  border-radius: 50px !important;\n}\n\n.actions .btn.grey-salsa.active {\n  color: #fafcfb;\n  background: #8e9bae;\n}\n  .actions .grey-salsa.btn:hover,\n  .actions .grey-salsa.btn:focus,\n  .actions .grey-salsa.btn:active,\n  .actions .grey-salsa.btn.active {\n  color: #fafcfb;\n  background: #97a3b4;\n}\n\n\n/*payment panel css*/\n\n.payment_panel_body{\n  background-color: #ffffff;\n  border-top: 1px solid #000000;\n  padding: 18px;\n}\n\n.process{\n  display:table;\n  width:100%;\n  position:relative; \n  background:#ECF0F1;\n  padding:5px;\n  border-radius:0px;\n}\n.process-row{\n  display:table-row\n}\n.process-step button[disabled]{\n  opacity:1 !important;\n  filter: alpha(opacity=100) !important\n}\n.process-row:before{\n  top:40px;\n  bottom:0;\n  position:absolute;\n  content:\" \";\n  width:100%;\n  height:0px;\n  background-color:#ccc;\n  z-order:0\n}\n.process-step{\n  display:table-cell;\n  text-align:center;\n  position:relative\n}\n.process-step p{margin-top:4px}\n.btn-circle{\n  width:60px;\n  height:60px;\n  text-align:center;\n  font-size:12px;\n  border-radius:50%\n}\n\n.payment{\n   padding: 5px;\n}\n.payment_header{\n  background-color: var(--bg-color);\n  color: var(--font-color);\n  padding: 15px;\n}\n.payment_body{\n   padding: 0px;\n   border-width: 1px;\n   border-color: var(--bg-color);\n   border-style: solid;\n}\n\n/*end payment panel css*/\n\n\n.payment_next_box{\n  border: 1px solid var(--unpaid);\n}\n.payment_next_body{\n  padding: 15px;\n}\n.payment_input{\n  padding: 5px;\n  font-weight: bold;\n}\n.cls_payment_td_paid,.cls_payment_td_paid2{\n  padding: 15px;\n  border-width: 1px;\n  border-style: solid;\n  border-color: #DDDDDD;\n}\n.cls_payment_td_paid{\n  width: 170px;\n  color: #fff;\n  text-align: right;\n}\n\n.btn_view{color: #ffffff;}\n.btn_view:hover{font-size: 16px;color: #ffffff;}\n.btn_view:focus{color: #ffffff;}\n  \n  .view_btn{\n    background-color: var(--bg-color);\n    padding: 10px;\n    color: #ffffff;\n    border-width: 0px;\n    border-radius: 5px;\n  }\n  .td_list1{\n       padding: 10px;\n       background-color: var(--bg-color);\n       color: var(--font-color);\n       border: 1px solid #DDDDDD; \n    }\n    .td_list2{\n       padding: 8px;\n       background-color: #ffffff;\n       color: #000000;\n       border: 1px solid #DDDDDD; \n    }\n\n.cls_td_paid,.cls_td_unpaid,.cls_td_set_payment_2{\n  padding: 5px;\n  border-width: 1px 0px 0px 0px;\n  border-color: #DDDDDD;\n  border-style: solid;\n}\n\n.cls_td_paid,.cls_td_unpaid{\n  width: 120px;\n  color: var(--font-color);\n  text-align: right;\n}\n.c_paid{\n  background-color: var(--paid);\n}\n.c_unpaid{\n  background-color: var(--unpaid);\n}\n\n\n    .shape{    \n    border-style: solid; border-width: 0 70px 40px 0; float:right; height: 0px; width: 0px;\n  -ms-transform:rotate(360deg); /* IE 9 */\n  -o-transform: rotate(360deg);  /* Opera 10.5 */\n  -webkit-transform:rotate(360deg); /* Safari and Chrome */\n  transform:rotate(360deg);\n}\n.offer{\n  height: 220px;\n  background:#f5f5f5; border:2px solid #ddd; \n  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);\n   margin: 15px 0; overflow:hidden;\n}\n   .offer:hover {\n      -webkit-transform: scale(1.1); \n      -moz-transform: scale(1.1); \n      -ms-transform: scale(1.1); \n      -o-transform: scale(1.1); \n      transform:rotate scale(1.1); \n      -webkit-transition: all 0.4s ease-in-out; \n      -moz-transition: all 0.4s ease-in-out; \n      -o-transition: all 0.4s ease-in-out;\n      transition: all 0.4s ease-in-out;\n  }\n.shape {\n  border-color: rgba(255,255,255,0) #d9534f rgba(255,255,255,0) rgba(255,255,255,0);\n}\n\n.offer-radius{  border-radius:7px;  }\n\n.label_paid{ background-color: var(--paid); }\n\n.label_unpaid{ background-color: var(--unpaid); }\n\n.offer_unpaid { border-color: var(--unpaid); }\n\n.offer_unpaid .shape{\n  border-color: transparent var(--unpaid); transparent transparent;\n}\n\n.offer_paid {  border-color: var(--paid); }\n\n.offer_paid .shape{\n  border-color: transparent var(--paid); transparent transparent;\n}\n\n.shape-text{\n  color:#fff; font-size:12px; font-weight:bold; position:relative; right:-40px; top:2px; white-space: nowrap;\n  -ms-transform:rotate(30deg); /* IE 9 */\n  -o-transform: rotate(360deg);  /* Opera 10.5 */\n  -webkit-transform:rotate(30deg); /* Safari and Chrome */\n  transform:rotate(30deg);\n} \n\n.offer-content{\n  padding:0 20px 0px;\n}\n</style>\n\n<?php\n} \n\n?>"
  },
  {
    "path": "page_action/student_profile/info.php",
    "content": " <?php\n\n if(isset($_POST['get_student_info'])){\n \t$student_id=$_POST['get_student_info']; \n \t$info=$student_ob->get_info($student_id);\n \t?>\n\n<div class=\"row\">\n<div class=\"col-md-0\"></div>\n<div class=\"col-md-12\">\n\n\t<div class=\"text-right\"><button class=\"button\" onclick=\"edit_student(<?php echo \"$id\"; ?>)\" style=\"margin-right: 4px; padding: 10px\" title=\"Edit\" data-title=\"Add Product\" data-toggle=\"modal\" data-target=\"#student_profile_update\"><span class=\"glyphicon glyphicon-pencil\"></span> Update Student Information</button></div>\n<table width=\"100%\">\n\t<tr>\n\t\t<td class=\"td_info1\">Full Name: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['name']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Nick Name: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['nick']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Student Photo: </td>\n\t\t<td class=\"td_info2\"><img src=\"<?php echo $info['photo']; ?>\" class=\"info_img\" /></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Student ID: </td>\n\t\t<td class=\"td_info2\"><?php echo $student_id; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Student ID Barcode: </td>\n\t\t<td class=\"td_info2\"><img src=\"barcode.php?text=<?php echo $student_id; ?>\" class=\"info_barcode\" /></td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td class=\"td_info1\">Father Name: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['father_name']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Mother Name: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['mother_name']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Email: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['email']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Student Mobile: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['personal_mobile']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Father Mobile: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['father_mobile']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Mother Mobile: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['mother_mobile']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Birthday: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['birth_day']; ?></td>\n\t</tr>\n    <tr>\n\t\t<td class=\"td_info1\">Religion: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['religion']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Gender: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['gender']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">Address: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['address']; ?></td>\n\t</tr>\n\t<tr>\n\t\t<td class=\"td_info1\">School/College: </td>\n\t\t<td class=\"td_info2\"><?php echo $info['school']; ?></td>\n\t</tr>\n\t\n    \n</table>\n</div>\n</div>\n \t<?php\n }\n if(isset($_POST['update_profile_form'])){\n \t$student_id=$_POST['update_profile_form'];\n\n \t$info=$student[$student_id];\n\t$name=$info['name'];\n\t$nick=$info['nick'];\n\t$father_name=$info['father_name'];\n\t$mother_name=$info['mother_name'];\n\t$student_mobile=$info['personal_mobile'];\n\t$father_mobile=$info['father_mobile'];\n\t$mother_mobile=$info['mother_mobile'];\n\t$birthday=$info['birth_day'];\n\t$gender=$info['gender'];\n\t$religion=$info['religion'];\n\t$email=$info['email'];\n\t$image=$info['photo'];\n\t\n\t$school=$info['school'];\n\t$ssc_rool=$info['ssc_rool'];\n\t$ssc_reg=$info['ssc_reg'];\n\t$ssc_board=$info['ssc_board'];\n\t$ssc_result=$info['ssc_result'];\n  \t$address=$info['address'];\n  \t$batch=$info['batch'];\n  \t$program_id=$info['program'];\n \t?>\n  <div class=\"row\">\n      <div class=\"col-xs-12 col-sm-12\"> \n <div class=\"box\" >\n\n  \n<div class=\"box_header\">\n        <div class=\"panel-title\">Personal Information</div>                   \n    </div>  \n\n<div style=\"padding-top:30px\" class=\"box_body\" >\n    <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\"></div>\n    <form action=\"student_action.php\" id=\"update_student\" method=\"post\" enctype=\"multipart/form-data\">\n      <input type=\"number\" name=\"student_id\" value=\"<?php echo \"$id\"; ?>\" hidden>\n      <?php\n\n      //$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n      \n       $site->form_input(\"Student Full Name\",\"name\",\"name\",\"text\",\"exclamation-sign\",\"$name\",\"\",\"yes\");\n\n      $site->form_input(\"Student Nick Name\",\"nick\",\"nick\",\"text\",\"exclamation-sign\",\"$nick\",\"\",\"yes\");\n\n      $site->form_input(\"Father Name\",\"father_name\",\"father_name\",\"text\",\"exclamation-sign\",\"$father_name\",\"\",\"no\");\n      $site->form_input(\"Mother Name\",\"mother_name\",\"mother_name\",\"text\",\"exclamation-sign\",\"$mother_name\",\"\",\"no\");\n      $site->form_input(\"Sudent mobile\",\"student_mobile\",\"student_mobile\",\"number\",\"exclamation-sign\",\"$student_mobile\",\"\",\"no\");\n\n      $site->form_input(\"Father mobile\",\"father_mobile\",\"number\",\"number\",\"exclamation-sign\",\"$father_mobile\",\"\",\"no\");\n\n      $site->form_input(\"Mother mobile\",\"mother_mobile\",\"mobile\",\"number\",\"exclamation-sign\",\"$mother_mobile\",\"\",\"no\");\n\n      $site->form_input(\"Email\",\"email\",\"mobile\",\"text\",\"exclamation-sign\",\"$email\",\"\",\"no\");\n      $site->form_input(\"Birthday\",\"birthday\",\"mobile\",\"date\",\"exclamation-sign\",\"$birthday\",\"\",\"yes\");\n\n      ?>\n\n\n<div class='form-group'>\n        <label class='control-label' for='inputName'><b>Religion</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n<select class='form-control'  name='religion' id='brand_add' class='cs-select cs-skin-border' required=\"\">\n\n  <option value=\"Muslim\" <?php if($religion==\"Muslim\")echo \"selected\"; ?>>Muslim</option>\n  <option value=\"Hindu\" <?php if($religion==\"Hindu\")echo \"selected\"; ?>>Hindu</option>\n  <option value=\"Buddo\" <?php if($religion==\"Buddo\")echo \"selected\"; ?>>Buddo</option>\n  <option value=\"Cristan\" <?php if($religion==\"Cristan\")echo \"selected\"; ?>>Cristan</option>\n</select>\n</div></div>\n\n<div class='form-group'>\n        <label class='control-label' for='inputName'><b>Gender</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n<select class='form-control'  name='gender' id='brand_add' class='cs-select cs-skin-border' required=\"\">\n  <option value=\"Male\" <?php if($gender==\"Male\")echo \"selected\"; ?>>Male</option>\n  <option value=\"Female\" <?php if($gender==\"Female\")echo \"selected\"; ?>>Female</option>\n  \n</select>\n</div></div>\n\n\n      <?php\n      \n       $site->form_input(\"Address\",\"address\",\"address\",\"text\",\"exclamation-sign\",\"$address\",\"\",\"no\");\n\n       ?>   \n  <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Upload Student Photo</b></label>\n    <div class=\"input-group\">\n      <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-camera\"></i></span>\n      <input type=\"file\" class=\"form-control\" id=\"image\" name=\"image\" accept=\"image/*\"  onchange=\"document.getElementById('edit_thumbnil_<?php echo $id; ?>').src = window.URL.createObjectURL(this.files[0])\" />\n        <br/>\n    </div>\n    <div id=\"err_product_image\" class=\"error\"></div>\n  <img id=\"edit_thumbnil_<?php echo $id; ?>\" style=\"width:20%; margin-top:10px;\"  src=\"<?php echo \"$image\";?>\" alt=\"image\"/>\n</div> \n     \n</div>  \n\n<!-- Start Academic Information -->\n\n<div class=\"box_header\">\n        <div class=\"panel-title\">Academic Information</div>                   \n    </div>     \n\n<div style=\"padding-top:30px\" class=\"box_body\" >\n    <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\"></div>\n                                 \n        \n       <?php \n\n    $site->form_input(\"School Name\",\"school_name\",\"school_name\",\"text\",\"exclamation-sign\",\"$school\",\"\",\"no\");\n    $site->form_input(\"SSC Rool Number\",\"ssc_rool\",\"ssc_rool\",\"number\",\"exclamation-sign\",\"$ssc_rool\",\"\",\"no\");\n    $site->form_input(\"SSC Registration Number\",\"ssc_reg\",\"ssc_reg\",\"number\",\"exclamation-sign\",\"$ssc_reg\",\"\",\"no\");\n    $site->form_input(\"SSC Board Name\",\"ssc_board\",\"ssc_board\",\"text\",\"exclamation-sign\",\"$ssc_board\",\"\",\"no\");\n    \n  ?>\n<div class='form-group'>\n        <label class='control-label' for='inputName'><b>SSC Result</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span>     \n            <input class='form-control' data-error='' id='ssc_result' value='<?php echo \"$ssc_result\" ?>' step=\"0.01\" placeholder='Enter SSC Result'  type='number' name='ssc_result'  />\n        </div>  \n        <div id='err_product_date' class='error'></div>\n</div>\n          \n</div>  \n\n       <button class=\"box_btn\" name=\"update\" type=\"submit\" style=\"\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Update Information</button>                  \n    \n</form>\n\n<!-- end body -->\n        </div>\n</div>\n</div>\n\n \t<?php\n }\n\n\n ?>\n\n <style type=\"text/css\">\n \t\n\n \t.td_info1,.td_info2{\n  \t\tborder-width: 1px 1px 1px 1px;\n  \t\tborder-color: #DDDDDD;\n  \t\tborder-style: solid;\n  \t\tpadding: 10px;\n        font-weight: bold;\n        font-size: 14px;\n        \n\t}\n\t.td_info1{\n\t\t\n  \t\twidth: 200px;\n  \t\ttext-align: right;\n  \t\tbackground-color: #eff0f2;\n  \t\tcolor: #588AB4;\n        \n  \t\tfont-family: Tahoma, Geneva, sans-serif;\n\t}\n\t.td_info2{\n        color: #60595E;\n\t\tfont-family: \"Trebuchet MS\", Helvetica, sans-serif;\n\t}\n\t.info_img{\n\t\theight: 70px;\n\t\twidth: 80px;\n\t\tborder: 1px solid #DDDDDD;\n\t\tborder-radius: 5px;\n\t}\n\t.info_barcode{\n\t\twidth: 120px;\n\t    height: 30px;\n\t}\n </style>"
  },
  {
    "path": "page_action/student_profile/payment.php",
    "content": "<?php \n\nif(isset($_POST['save_set_fee_data'])){\n  $info=$_POST['save_set_fee_data'];\n  $info['add_by']=$user_id;\n  $info['date']=$db->date();\n  $db->sql_action(\"student_payment\",\"insert\",$info,\"no\");\n  echo \"Fee Sucessfully Set.\";\n}\n\nif(isset($_POST['add_extra_fee'])){\n  $info=$_POST['add_extra_fee'];\n  $info['add_by']=$user_id;\n  $info['date']=$db->date();\n  $db->sql_action(\"student_payment\",\"insert\",$info,\"no\");\n  echo \"Fee Sucessfully Set.\";\n}\n\nif(isset($_POST['save_payment'])){\n  $info=$_POST['save_payment'];\n\n  $info['add_by']=$user_id;\n  $info['date']=$db->date();\n\n  $db->sql_action(\"receive_payment\",\"insert\",$info,\"no\");\n  echo \"Fee Sucessfully Set.\";\n}\n\nif(isset($_POST['select_program'])){\n  $pid=$_POST['select_program'];\n  echo \"<option value=-1>Select Payment Type</option>\";\n  $program_ob->get_program_type_option($pid);\n  echo \"<option value=3>Extra Payment</option>\";\n}\n\nif(isset($_POST['update_payment'])){\n  $info=$_POST['update_payment'];\n  $db->sql_action(\"student_payment\",\"update\",$info,\"no\");\n}\n\nif(isset($_POST['update_payment_form'])){\n  $payment_id=$_POST['update_payment_form'];\n  $condition=\"id=$payment_id\";\n  $data=array();\n  $data=$program_ob->get_payment_month_status($data,$condition);\n  $fee=$data['total_fee'];\n  $type=$data['payment_id_info']['type'];\n  $note=$data['payment_id_info']['note'];\n  if($type==3)echo \"<input class='fee_input' id='note' type='text' value='$note'>\";\n  echo \"<input class='fee_input' id='payment_fee' type='number' value='$fee'>\";\n  echo \"<div style='margin-top: 5px;'>\";\n  echo \"<center><button class='view_btn' onclick='update_payment($payment_id,$type)'>Update Payment</button></center>\";\n}\n\nif(isset($_POST['add_extra_payment_form'])){\n  echo \"<input class='fee_input' placeholder='Enter Extra Payment Name' id='note' type='text' value=''>\";\n  echo \"<input class='fee_input' placeholder='Enter Fee' id='payment_fee' type='number' value=''>\";\n\n  echo \"<center><button class='view_btn' onclick='add_extra_fee()'>Add Extra Fee</button></center>\";\n\n}\n\n\nif(isset($_POST['add_pay_form'])){\n  $payment_id=$_POST['add_pay_form'];\n  $condition=\"id=$payment_id\";\n  $data=array();\n  $data=$program_ob->get_payment_month_status($data,$condition);\n  $total_fee=$data['total_fee'];\n  $due=$data['due'];\n\n  echo \"<input class='fee_input' id='pay' placeholder='Enter Pay Ammount' type='number' plaser>\";\n  echo \"<div style='margin-top: 5px;'>\";\n  echo \"<center><button class='view_btn' onclick='save_pay_ammount($payment_id)'>Receive Payment</button></center>\";\n}\n\nif(isset($_POST['delete_payment_form'])){\n  $info=$_POST['delete_payment_form'];\n  $id=$info['id'];\n  $payment_id=$info['payment_id'];\n  ?>\n\n    <center>\n    <h3>Are You Want To Delete This Payment</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"delete_payment(<?php echo \"$id,$payment_id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n\n  </center>\n\n  <?php\n} \n\nif(isset($_POST['delete_payment'])){\n  $info['id']=$_POST['delete_payment'];;\n  $db->sql_action(\"receive_payment\",\"delete\",$info,\"no\");\n}\n\nif(isset($_POST['get_payment_list'])){\n  $student_id=$_POST['get_payment_list'];\n  $condition=\"student_id=$student_id\";\n  \n  $info=$set_payment_ob->get_payment_receive_list($condition);\n\n\t?>\n\n<div class=\"row\">\n  \t<div class=\"select_area_body\" style=\"border-width: 0px; padding: 20px;\">\n \t\t<div class=\"col-md-1\"></div>\n  \t\t<div class=\"col-md-4\">\n    \t\t<select class=\"form-control\" id=\"select_payment_program\" onchange=\"select_payment_program()\">\n      \t\t\t<option value=\"-1\">Select Program</option>\n              <?php $student_ob->get_student_program_option($student_id); ?>\n    \t\t</select>\n  \t\t</div>\n  \t\t<div class=\"col-md-4\">\n    \t\t<select class=\"form-control\" id=\"select_payment_type\">\n      \t\t\t<option value='-1'>Select Payment Type</option>  \n    \t\t</select>\n  \t\t</div>\n  \t\t<div class=\"col-md-3\" style=\"\">\n    \t\t<button class=\"view_btn\" onclick=\"view_payment()\">View Payment</button>\n  \t\t</div>\n  \t\t<br/>\n\t</div>\n</div>\n\n<div style=\"margin-top: 10px;\"></div>\n<div id=\"payment_body_panel\">\n  \n<table width=\"100%\">\n\t<tr style=\"text-align: center;\">\n\t\t<td class=\"td_list1\">#</td>\n\t\t<td class=\"td_list1\">Program Name</td>\n    <td class=\"td_list1\">Type</td>\n    <td class=\"td_list1\">Month</td>\n    <td class=\"td_list1\">Year</td>\n\t\t<td class=\"td_list1\">Pay</td>\n\t\t<td class=\"td_list1\">Receive By</td>\n\t\t<td class=\"td_list1\">Date</td>\n\t\t<td class=\"td_list1\">Action</td>\n\t</tr>\n\t<?php \n\n   foreach ($info as $key => $value) {\n     $id=$value['id'];\n     $pay=$value['pay'];\n     $date=$value['date'];\n     $add_by=$value['add_by'];\n     $program_name=$value['name'];\n     $type=$value['type'];\n     \n     $month=$value['month'];\n\n     $month_name=\"-\";\n     $year=\"-\";\n     $type_string=\"Admission Fee\";\n\n     if($type==3)$type_string=$value['note'];\n     if($type==2){\n       $year=$value['year'];\n       $type_string=\"Monthly\";\n       $month_name=$set_payment_ob->get_month_name($month);\n     }\n     $uname=$user[$add_by]['uname'];\n   ?>\n\t<tr style=\"text-align: center;\">\n\t\t<td class=\"td_list2\"><?php echo \"$id\"; ?></td>\n\t\t<td class=\"td_list2\"><?php echo \"$program_name\"; ?></td>\n    <td class=\"td_list2\"><?php echo \"$type_string\"; ?></td>\n    <td class=\"td_list2\"><?php echo \"$month_name\"; ?></td>\n    <td class=\"td_list2\"><?php echo \"$year\"; ?></td>\n\t\t<td class=\"td_list2\"><?php echo \"$pay tk\"; ?></td>\n\t\t<td class=\"td_list2\"><?php echo \"$uname\"; ?></td>\n\t\t<td class=\"td_list2\"><?php echo \"$date\"; ?></td>\n\t\t<td class=\"td_list2\">\n        <button class=\"btn btn-danger btn-xs\" title=\"Print Money Recept\" onclick=\"print_money_recept(<?php echo \"$id\"; ?>)\" ><span class=\"glyphicon glyphicon-print\"></span></button>\n        <button class=\"btn btn-danger btn-xs\" title=\"Send Payment Receive SMS\" onclick=\"send_sms_page('<?php echo \"$id\"; ?>')\" ><span class=\"glyphicon glyphicon-send\"></span></button>\n\n    </td>\n\t</tr>\n    <?php } ?>\n\n</table>\n</div>\n<?php \n\n}\n\n\nif(isset($_POST['view_payment'])){\n  $info=$_POST['view_payment'];\n  \n  $student_id=$info['student_id'];\n  $program_id=$info['program_id'];\n  $type=$info['type'];\n\n  $info=array();\n  \n  if($type==1){\n    $res[\"month_name\"]=\"Admission Fee\";\n    $fee=$program_ob->get_separate_program_info(\"fee\",$program_id);\n    $fee=$fee['fee'];\n    $res['fee']=$fee;\n    $info=array();\n    $info[0]=$res;\n  }\n  else if($type==2)$info=$set_payment_ob->get_student_payment_list($student_id,$program_id);\n  else $info=$set_payment_ob->get_student_payment_list_type($program_id,$student_id,3);\n  //$site->myprint_r($info);\n\n  if($type==3)echo \"<center><button style='width: 130px;padding: 5px;' class='btn btn-lg btn-primary btn-block' onclick='add_extra_payment_form()'>Add Extra Fee</button></center>\";\n  \n\t?>\n\n<div class=\"row\">\n  <div class=\"select_area_body\" style=\"border-width: 0px; padding: 20px;\">\n  <?php \n\n\n      \n  foreach ($info as $key => $value) {\n    \n    $month_name=(isset($value['month_name']))?$value['month_name']:$value['note'];\n    $month_name=(strlen($month_name)>22)?$site->make_name($month_name,22).\"...\":$month_name;\n    \n    $year=(isset($value['year']))?$value['year']:\"0\";;\n    $fee=(isset($value['fee']))?$value['fee']:\"0\";\n    $month=(isset($value['month']))?$value['month']:\"0\";\n    \n    $data=array();\n    $data['student_id']=$student_id;\n    $data['program_id']=$program_id;\n    $data['year']=$year;\n    $data['month']=$month;\n    $data['type']=$type;\n    \n    $con=($type==3)?\"id=\".$value['id']:\"\";\n    $data=$program_ob->get_payment_month_status($data,$con);\n    //$site->myprint_r($data);\n\n    $paid=0; \n\n    $total_fee=\"-\"; \n    $total_pay=\"-\";\n    $due=\"-\";\n    $status_msg=\"Due\";\n    $btn_text=\"Set Payment\"; \n    $btn_onclick=\"set_payment($program_id,$year,$month,$type)\";\n   \n\n    if($data!=-1){\n        $paid=$data['paid'];\n        $total_fee=$data['total_fee'];\n        $total_pay=$data['total_pay'];\n        $due=$data['due'];\n        if($due<=0)$status_msg=\"Paid\";\n        $btn_text=\"View\";\n        $payment_id=($type==3)?$value['id']:$data['payment_id'];\n        $btn_onclick=\"view_payment_panel($payment_id)\";\n   }\n\n\n\n    $status=\"paid\";\n  \t$td_cls=\"c_paid\";\n\n  \tif($paid==0){\n    \t$status=\"unpaid\";\n  \t\t$td_cls=\"c_unpaid\";\n  \t}\n\n  \n  ?>\n     <div class=\"col-md-6\">\n<div class=\"offer offer_<?php echo $status; ?>\">\n        <div class=\"shape\">\n          <div class=\"shape-text\">\n            <?php echo \"$status_msg\"; ?>              \n          </div>\n        </div>\n\n        <div class=\"offer-content\">\n          <h3 class=\"lead\">\n             <label class=\"label label_<?php echo $status; ?>\"> <?php echo $month_name; ?></label>\n              <label class=\"label label_<?php echo $status; ?>\"> <?php echo $year; ?></label>\n          </h3>\n\n          <table width=\"100%\">\n              <tr>\n                <td class=\"cls_td_paid <?php echo $td_cls; ?>\">Total Payment:</td>\n                <td class=\"cls_td_set_payment_2\"><?php echo $total_fee; ?></td>\n              </tr>\n              <tr>\n                <td class=\"cls_td_paid <?php echo $td_cls; ?>\">Total Pay:</td>\n                <td class=\"cls_td_set_payment_2\"><?php echo \"$total_pay\"; ?></td>\n              </tr>\n              <tr>\n                <td class=\"cls_td_paid <?php echo $td_cls; ?>\">Total Due:</td>\n                <td class=\"cls_td_set_payment_2\"><?php echo \"$due\"; ?></td>\n              </tr>\n              \n            </table>\n          <div style=\"margin-top: 8px;\"></div>\n            <center><button class=\"btn btn-md btn-block btn_view <?php echo $td_cls; ?>\" onclick=\"<?php echo \"$btn_onclick\"; ?>\"><b><?php echo \"$btn_text\"; ?></b></button></center> \n                 \n                 </div> \n     </div>\n</div>\n\n      <?php } ?>\n</div>\n</div>\n\n\t<?php\n}\n\nif(isset($_POST['set_payment'])){\n  $info=$_POST['set_payment'];\n  \n  $student_id=$info['student_id'];\n\n  $program_id=$info['program_id'];\n  $program_name=$program_ob->get_separate_program_info(\"*\",$program_id);\n  \n  $fee=$program_name['fee'];\n  $program_name=$program_name['name'];\n\n  $type=$info['type'];\n\n  if($type==2){\n    $year=$info['year'];\n    $month=$info['month'];\n    $type_string=\"Monthly\";\n    $month_name=$set_payment_ob->get_month_name($month);\n    $condition=\"program_id=$program_id and month=$month and year=$year\";\n    $fee=$set_payment_ob->get_set_payment_by_id($condition,\"fee\");\n    $fee=$fee['fee'];\n    $save_fee=\"$program_id,$month,$year,2\";\n  }\n  else{\n    $year=\"\";\n    $month_name=\"\";\n    $month=\"\";\n    $type_string=\"Admission Fee\";\n    $condition=\"program_id=$program_id and type=$type\";\n    $save_fee=\"$program_id,0,0,1\";\n  }\n  \n\n\t?>\n\n<div class=\"row\">\n\t<div class=\"col-md-1\"></div>\n\t<div class=\"col-md-10\">\n\t\t<div class=\"payment_next_box\">\n        <div class=\"payment_next_body\">\n           <table width=\"100%\">\n             <tr>\n                <td class=\"cls_payment_td_paid c_unpaid\">Program Name:</td>\n                <td class=\"cls_payment_td_paid2\"><?php echo \"$program_name\"; ?></td>\n              </tr>\n               <tr>\n                <td class=\"cls_payment_td_paid c_unpaid\">Payment Type:</td>\n                <td class=\"cls_payment_td_paid2\"><?php echo \"$type_string\"; ?></td>\n              </tr>\n              <tr>\n                <td class=\"cls_payment_td_paid c_unpaid\">Payment Year:</td>\n                <td class=\"cls_payment_td_paid2\"><?php echo \"$year\"; ?></td>\n              </tr>\n              <tr>\n                <td class=\"cls_payment_td_paid c_unpaid\">Payment Month:</td>\n                <td class=\"cls_payment_td_paid2\"><?php echo \"$month_name\"; ?></td>\n              </tr>\n              <tr>\n                <td class=\"cls_payment_td_paid c_unpaid\">Total Fee</td>\n                <td class=\"cls_payment_td_paid2\"><input id=\"set_student_fee_value\" class=\"payment_input\" type=\"number\" value=\"<?php echo $fee; ?>\"></td>\n              </tr>\n\n\n           </table>\n        </div>\n        <button style=\"border-radius: 0px; padding: 10px;\" class=\"btn btn-md btn-block btn_view c_unpaid\" onclick=\"save_set_fee(<?php echo \"$save_fee\"; ?>)\">Save Set Fee</button>\n    </div>\n\t</div>\n\t<div class=\"col-md-3\"></div>\n</div>\n\n\n\t<?php\n}\n\n\n\nif(isset($_POST['payment_panel'])){\n  $payment_id=$_POST['payment_panel'];\n  $condition=\"id=$payment_id\";\n\n  $data=array();\n  $data=$program_ob->get_payment_month_status($data,$condition);\n \n\n  $payment_info=$data['payment_id_info'];\n  $program_id=$payment_info['program_id'];\n  \n  $program_name=$program_ob->get_separate_program_info(\"name\",$program_id);\n  $program_name=$program_name['name'];\n\n  $type=$payment_info['type'];\n\n  $month=\"-\";\n  $year=\"-\";\n  $type_status=($type==1)?\"Admission Fee\":$payment_info['note'];\n\n  if($type==2){\n   $month=$payment_info['month'];\n   $month=$set_payment_ob->get_month_name($month);\n   $year=$payment_info['year'];\n   $type_status=\"Monthly\";\n  }\n\n  $fee=$payment_info['total_fee'];\n  $total_pay=$data['total_pay'];\n  $due=$data['due'];\n\n  $status=\"Due\";\n  $status_color=\"c_unpaid\";\n  if($due<=0){\n    $status=\"Paid\";\n    $status_color=\"c_paid\";\n  }\n   \n  $payment_list=$set_payment_ob->get_payment_list($payment_id); \n\n?>\n\n <div class=\"row\">\n \n\n<div class=\"col-md-12 margin-bottom-30\">\n        <!-- BEGIN Portlet PORTLET-->\n        <div class=\"portlet\">\n          <div class=\"portlet-title\">\n            <div class=\"caption\">\n              <i class=\"glyphicon glyphicon-calendar\"></i>\n              <span class=\"caption-subject\"> Payment Panel</span>\n              \n              <span class=\"payment_status_img <?php echo $status_color; ?>\" style=\"padding: 0px 10px 0px 10px;\">\n                <?php echo \"$status\"; ?>\n              </span>\n            </div>\n            <div class=\"actions\">\n              <a title=\"Reload Panel\" href=\"javascript:;\" onclick=\"view_payment_panel(<?php echo \"$payment_id\"; ?>)\" class=\"btn\">\n                <i class=\"glyphicon glyphicon-refresh\"></i>\n              </a>\n              <a href=\"javascript:;\" onclick=\"update_payment_form(<?php echo \"$payment_id\"; ?>)\" class=\"btn\">\n                <i class=\"glyphicon glyphicon-euro\"></i>\n                Update Fee\n              </a>\n              <a href=\"javascript:;\" onclick=\"add_pay_form(<?php echo \"$payment_id\"; ?>)\" class=\"btn\">\n                <i class=\"glyphicon glyphicon-plus\"></i>\n                Receive Payment\n              </a>\n             \n            </div>\n          </div>\n          <div class=\"portlet-body\">\n             <div class=\"row\" style=\"\">\n               <div class=\"col-md-5\">\n                 <table width=\"100%\">\n                  <tr>\n                    <td class=\"td_profile1\" style=\"width: 125px;\">Program Name:</td>\n                    <td class=\"td_profile2\"><?php echo \"$program_name\" ?><br/></td>\n                  </tr>\n                   <tr>\n                    <td class=\"td_profile1\">Payment Type:</td>\n                    <td class=\"td_profile2\"><?php echo \"$type_status\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1\">Year:</td>\n                    <td class=\"td_profile2\"><?php echo \"$year\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1\">Month:</td>\n                    <td class=\"td_profile2\"><?php echo \"$month\" ?></td>\n                  </tr>\n                  \n                 \n                </table>\n               </div>\n               <div class=\"col-md-7\">\n                  <table width=\"100%\">\n                    <tr style=\"text-align: center;\">\n                      <td class=\"td_list1\">#</td>\n                      <td class=\"td_list1\">Pay</td>\n                      <td class=\"td_list1\">Date</td>\n                      <td class=\"td_list1\">Receive By</td>\n                      <td class=\"td_list1\">Action</td>\n                    </tr>\n                    <?php \n\n                  foreach ($payment_list as $key => $value) {\n                     $id=$value['id'];\n                     $pay=$value['pay'];\n                     $date=$value['date'];\n                     $add_by=$value['add_by'];\n                     $uname=$user[$add_by]['uname'];\n\n\n                    ?>\n                    <tr style=\"text-align: center;\">\n                      <td class=\"td_list2\"><?php echo \"$id\"; ?></td>\n                      <td class=\"td_list2\"><?php echo \"$pay\"; ?></td>\n                      <td class=\"td_list2\"><?php echo \"$date\"; ?></td>\n                      <td class=\"td_list2\"><?php echo \"$uname\"; ?></td>\n                      <td class=\"td_list2\">\n                        <button class=\"btn btn-danger btn-xs\" title=\"Delete\" onclick=\"delete_payment_form(<?php echo \"$id,$payment_id\"; ?>)\" ><span class=\"glyphicon glyphicon-trash\"></span></button>\n                        <button class=\"btn btn-danger btn-xs\" title=\"Print Money Recept\" onclick=\"print_money_recept('<?php echo \"$id\"; ?>')\" ><span class=\"glyphicon glyphicon-print\"></span></button>\n                        <button class=\"btn btn-danger btn-xs\" title=\"Send Payment Receive SMS\" onclick=\"send_sms_page('<?php echo \"$id\"; ?>')\"><span class=\"glyphicon glyphicon-send\"></span></button>\n                      </td>\n                    </tr>\n                     <?php } ?>\n                  </table>\n                  <div class=\"row\">\n                    <div class=\"col-md-3\"></div>\n                    <div class=\"col-md-9\">\n\n                  <table width=\"100%\">\n                    <tr>\n                    <td style=\"padding: 10px;\"></td>\n                    <td></td>\n                  </tr>\n                   <tr>\n                    <td class=\"td_profile1 td_fee\" style=\"width: 150px;\">Total Fee:</td>\n                    <td class=\"td_profile2\"><?php echo \"<b>$fee</b> tk\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1 td_fee\">Total Pay:</td>\n                    <td class=\"td_profile2\"><?php echo \"<b>$total_pay</b> tk\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1 td_fee\">Total Due:</td>\n                    <td class=\"td_profile2\"><?php echo \"<b>$due</b> tk\" ?></td>\n                  </tr>\n                  <tr>\n                    <td class=\"td_profile1 td_fee\">Payment Status:</td>\n                    <td class=\"td_profile2\"><?php echo \"$status\"; ?></td>\n                  </tr>\n\n                  </table>\n                  </div>\n                  </div>\n               </div>\n               \n              </div>\n          </div>\n        </div>\n        <!-- END Portlet PORTLET-->\n      </div>\n</div>\n<?php\n}\n\n if(isset($_POST['print_money_recept'])){\n  $payment_id=$_POST['print_money_recept'];\n  \n?>\n<div id=\"print_recept_area\">\n  <?php $set_payment_ob->get_money_recept($payment_id); ?>\n</div>\n\n<center><a onclick=\"print('print_recept_area')\" class='btn btn-default'> <i class='glyphicon glyphicon-print'></i> Print Money Recept</a></center>\n\n<?php  \n}\n\nif(isset($_POST['send_sms_page'])){\n  $data=$_POST['send_sms_page'];\n  $payment_id=$data['payment_id'];\n  $message=$set_payment_ob->money_recept_sms($payment_id);\n  \n   \n?>\n\n<div id=\"message_body\">\n  <textarea class=\"sms_text_area\" id=\"message\" readonly=\"\"><?php echo \"$message\"; ?> </textarea>\n      <?php $sms->get_sms_recever_option(); ?>\n  <center>\n    <button class='btn btn-default' onclick='send_sms()'>Send SMS</button>\n  </center>\n</div>\n<div id=\"message_sending\"></div>\n<?php\n\n}\n\nif(isset($_POST['send_sms'])){\n  $info=$_POST['send_sms'];\n  $message=$info['message'];\n  $receiver=$info['receiver'];\n  $student_id=$info['student_id'];\n  $info=$sms->get_student_mobile_number($student_id,$receiver);\n  $list=array();\n  foreach ($info as $key => $value) {\n    $res=$sms->make_sms_array($value,$message);\n    array_push($list, $res);\n  }\n\n  $sms->send_sms($list);\n\n}\n  \n\n?>\n\n<style type=\"text/css\">\n:root {\n    --paid: #218c74; \n    --unpaid: #b33939; \n}\n\n.sms_text_area{\n  height: 150px;\n  width: 100%;\n}\n\n/*payment field*/\n.fee_input{\n  padding: 5px;\n  width: 100%;\n  margin-bottom: 5px;\n}\n.td_fee{\n  text-align: right;\n  font-weight: bold;\n}\n.payment_status_img{\n  width: 150px;\n  margin-bottom: 10px;\n  text-align: center;\n  border-radius: 15px;\n  font-size: 20px;\n  font-weight: bold;\n  font-family: \"Lucida Sans Unicode\", \"Lucida Grande\", sans-serif;\n  color: #fff;\n}\n\n/* Portlet */\n.portlet {\n  background: #fff;\n  padding: 20px;\n}\n\n.portlet.portlet-gray {\n  background: #f7f7f7;\n}\n\n.portlet.portlet-bordered {\n  border: 1px solid #eee;\n}\n\n/* Portlet Title */\n.portlet-title {\n  padding: 0;\n    min-height: 40px;\n    border-bottom: 1px solid #eee;\n    margin-bottom: 18px;\n}\n\n.caption {\n  float: left;\n  display: inline-block;\n  font-size: 18px;\n  line-height: 18px;\n}\n\n.caption.caption-green .caption-subject,\n.caption.caption-green i {\n  color: #4db3a2;\n  font-weight: 200;\n}\n\n.caption.caption-red .caption-subject,\n.caption.caption-red i {\n  color: #e26a6a;\n  font-weight: 200;\n}\n\n.caption.caption-purple .caption-subject,\n.caption.caption-purple i {\n  color: #8775a7;\n  font-weight: 400;\n}\n\n.caption i {\n  color: #777;\n  font-size: 15px;\n  font-weight: 300;\n  margin-top: 3px;\n}\n\n.caption-subject {\n  color: #666;\n  font-size: 16px;\n  font-weight: 600;\n}\n\n\n/* Actions */\n.actions {\n  float: right;\n    display: inline-block;\n}\n\n.actions a {\n  margin-left: 3px;\n}\n\n.actions .btn {\n  color: #666;\n  padding: 3px 9px;\n  font-size: 13px;\n    line-height: 1.5;\n    background-color: #fff;\n    border-color: #ccc;\n    border-radius: 50px;\n}\n\n.actions .btn i {\n  font-size: 12px;\n}\n\n.actions .btn:hover {\n  background: #f2f2f2;\n}\n/* Btn Circle */\n.actions .btn.btn-circle {\n  width: 28px;\n  height: 28px;\n  padding: 3px 7px;\n  text-align: center;\n}\n\n.actions .btn.btn-circle i {\n  font-size: 11px;\n}\n\n/* Btn Grey Salsa */\n.actions .btn.grey-salsa {\n  border: none;\n  margin-left: 3px;\n  box-shadow: none;\n  border-radius: 50px !important;\n}\n\n.actions .btn.grey-salsa.active {\n  color: #fafcfb;\n  background: #8e9bae;\n}\n  .actions .grey-salsa.btn:hover,\n  .actions .grey-salsa.btn:focus,\n  .actions .grey-salsa.btn:active,\n  .actions .grey-salsa.btn.active {\n  color: #fafcfb;\n  background: #97a3b4;\n}\n\n\n/*payment panel css*/\n\n.payment_panel_body{\n  background-color: #ffffff;\n  border-top: 1px solid #000000;\n  padding: 18px;\n}\n\n.process{\n  display:table;\n  width:100%;\n  position:relative; \n  background:#ECF0F1;\n  padding:5px;\n  border-radius:0px;\n}\n.process-row{\n  display:table-row\n}\n.process-step button[disabled]{\n  opacity:1 !important;\n  filter: alpha(opacity=100) !important\n}\n.process-row:before{\n  top:40px;\n  bottom:0;\n  position:absolute;\n  content:\" \";\n  width:100%;\n  height:0px;\n  background-color:#ccc;\n  z-order:0\n}\n.process-step{\n  display:table-cell;\n  text-align:center;\n  position:relative\n}\n.process-step p{margin-top:4px}\n.btn-circle{\n  width:60px;\n  height:60px;\n  text-align:center;\n  font-size:12px;\n  border-radius:50%\n}\n\n.payment{\n   padding: 5px;\n}\n.payment_header{\n  background-color: var(--bg-color);\n  color: var(--font-color);\n  padding: 15px;\n}\n.payment_body{\n   padding: 0px;\n   border-width: 1px;\n   border-color: var(--bg-color);\n   border-style: solid;\n}\n\n/*end payment panel css*/\n\n\n.payment_next_box{\n  border: 1px solid var(--unpaid);\n}\n.payment_next_body{\n  padding: 15px;\n}\n.payment_input{\n  padding: 5px;\n  font-weight: bold;\n}\n.cls_payment_td_paid,.cls_payment_td_paid2{\n  padding: 15px;\n  border-width: 1px;\n  border-style: solid;\n  border-color: #DDDDDD;\n}\n.cls_payment_td_paid{\n  width: 170px;\n  color: #fff;\n  text-align: right;\n}\n\n.btn_view{color: #ffffff;}\n.btn_view:hover{font-size: 16px;color: #ffffff;}\n.btn_view:focus{color: #ffffff;}\n\t\n\t.view_btn{\n\t\tbackground-color: var(--bg-color);\n\t\tpadding: 10px;\n\t\tcolor: #ffffff;\n\t\tborder-width: 0px;\n\t\tborder-radius: 5px;\n\t}\n\t.td_list1{\n       padding: 10px;\n       background-color: var(--bg-color);\n       color: var(--font-color);\n       border: 1px solid #DDDDDD; \n    }\n    .td_list2{\n       padding: 8px;\n       background-color: #ffffff;\n       color: #000000;\n       border: 1px solid #DDDDDD; \n    }\n\n.cls_td_paid,.cls_td_unpaid,.cls_td_set_payment_2{\n  padding: 5px;\n  border-width: 1px 0px 0px 0px;\n  border-color: #DDDDDD;\n  border-style: solid;\n}\n\n.cls_td_paid,.cls_td_unpaid{\n  width: 120px;\n  color: var(--font-color);\n  text-align: right;\n}\n.c_paid{\n\tbackground-color: var(--paid);\n}\n.c_unpaid{\n\tbackground-color: var(--unpaid);\n}\n\n\n    .shape{    \n    border-style: solid; border-width: 0 70px 40px 0; float:right; height: 0px; width: 0px;\n  -ms-transform:rotate(360deg); /* IE 9 */\n  -o-transform: rotate(360deg);  /* Opera 10.5 */\n  -webkit-transform:rotate(360deg); /* Safari and Chrome */\n  transform:rotate(360deg);\n}\n.offer{\n  height: 220px;\n  background:#f5f5f5; border:2px solid #ddd; \n  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);\n   margin: 15px 0; overflow:hidden;\n}\n   .offer:hover {\n    \t-webkit-transform: scale(1.1); \n    \t-moz-transform: scale(1.1); \n    \t-ms-transform: scale(1.1); \n    \t-o-transform: scale(1.1); \n    \ttransform:rotate scale(1.1); \n    \t-webkit-transition: all 0.4s ease-in-out; \n    \t-moz-transition: all 0.4s ease-in-out; \n    \t-o-transition: all 0.4s ease-in-out;\n    \ttransition: all 0.4s ease-in-out;\n \t}\n.shape {\n  border-color: rgba(255,255,255,0) #d9534f rgba(255,255,255,0) rgba(255,255,255,0);\n}\n\n.offer-radius{\tborder-radius:7px;\t}\n\n.label_paid{ background-color: var(--paid); }\n\n.label_unpaid{ background-color: var(--unpaid); }\n\n.offer_unpaid { border-color: var(--unpaid); }\n\n.offer_unpaid .shape{\n  border-color: transparent var(--unpaid); transparent transparent;\n}\n\n.offer_paid {  border-color: var(--paid); }\n\n.offer_paid .shape{\n  border-color: transparent var(--paid); transparent transparent;\n}\n\n.shape-text{\n  color:#fff; font-size:12px; font-weight:bold; position:relative; right:-40px; top:2px; white-space: nowrap;\n  -ms-transform:rotate(30deg); /* IE 9 */\n  -o-transform: rotate(360deg);  /* Opera 10.5 */\n  -webkit-transform:rotate(30deg); /* Safari and Chrome */\n  transform:rotate(30deg);\n} \n\n.offer-content{\n  padding:0 20px 0px;\n}\n\n</style>\n"
  },
  {
    "path": "page_action/student_profile/profile.php",
    "content": "\n<?php\nif(isset($_POST['student_profile'])){\n  $per=$_POST['student_profile'];\n  $id=$_POST['student_id'];\n  $ob=$student_ob->get_program_list(452);\n  \n  if($per==\"personal_info\")student_info($id,$student,$student_ob);\n  else if($per==\"program\")program($student,$batch,$program,$id,$user);\n  else if($per==\"payment\"){\n    payment_month();\n  }\n}\n\nif(isset($_POST['view_payment_month_info'])){\n  payment();\n}\n\nif(isset($_POST['send_sms'])){\n  $text=$_POST['send_sms'];\n  $student_id=$_POST['id'];\n  $receive_by=$_POST['recever'];\n  $msg=$sms->get_sms($student_id,$text);\n  $sms->send_sms_student($student_id,$msg,$receive_by);\n}\nif(isset($_POST['add_program'])){\n  $id=$_POST['add_program'];\n  add_program($student_ob,$id);\n}\n\nif(isset($_POST['add_batch'])){\n  $program_id=$_POST['add_batch'];\n  add_batch($program_ob,$program_id);\n}\nif(isset($_POST['save_program'])){\n  $info['student_id']=$_POST['save_program'];\n  $info['program_id']=$_POST['program_id'];\n  $info['batch_id']=$_POST['batch_id'];\n  $info['fee']=$_POST['fee'];\n  $info['admit_date']=date('Y-m-d H:i:s');;\n  $info['admit_by']=$login_user['id'];\n  $site->myprint_r($info); \n  $db->sql_action(\"admit_program\",\"insert\",$info,$msg=\"no\");\n}\n\nif(isset($_POST['delete_program'])){\n  $info['id']=$_POST['delete_program'];\n  $db->sql_action(\"admit_program\",\"delete\",$info,$msg=\"no\");\n}\n\nif(isset($_POST['view_program'])){\n  $admit_id=$_POST['view_program'];\n  view_program($admit_id);\n}\n\nif(isset($_POST['update_program'])){\n   $info['id']=$_POST['update_program'];\n   $info['batch_id']=$_POST['update_batch_id'];\n   $info['fee']=$_POST['update_fee'];\n   $db->sql_action(\"admit_program\",\"update\",$info,$msg=\"no\");\n}\n\n\nif(isset($_POST['edit_program'])){\n  $id=$_POST['edit_program'];\n  $info=$student_ob->get_program_list();\n  $program_id=$info[$id]['program_id'];\n  $name=$program[$program_id]['name'];\n  $batch_id=$info[$id]['batch_id'];\n  $fee=$info[$id]['fee'];\n \n?>\n\n\n<b class=\"txt\">Select Batch</b>\n  <select class=\"select\" id=\"edit_batch_id\">\n     <option value=\"-1\">Select <?php echo \"$name\"; ?> Batch</option>\n      <?php $program_ob->select_program_batch($program_id,$batch_id); ?>\n  </select>\n  <b class=\"txt\">Fee</b>\n  <input type=\"number\" required class=\"select\" style=\"padding: 10px;\" value=\"<?php echo \"$fee\" ?>\" id='edit_fee' name=\"\">\n   <center> \n    <button class=\"save_btn\" onclick=\"update_program(<?php echo \"$id\"; ?>)\">Update Program</button>\n\n<?php\n  \n}\n\nfunction student_info($id,$student,$student_ob){\n   $info=$student[$id];\n   \n   $name=$info['name'];\n   $nick=$info['nick'];\n   $father_name=$info['father_name'];\n   $mother_name=$info['mother_name'];\n   $personal_mobile=$info['personal_mobile'];\n   $father_mobile=$info['father_mobile'];\n   $mother_mobile=$info['mother_mobile'];\n   $birthday=$info['birth_day'];\n   $religion=$info['religion'];\n   $address=$info['address'];\n   $school=$info['school'];\n\n?>\n\n<div style=\"text-align: right;margin-bottom: 10px;\">\n<button class=\"btn btn-primary btn-xs\" onclick=\"edit_student(<?php echo \"$id\"; ?>)\" style=\"margin-right: 4px; padding: 10px\" title=\"Edit\" data-title=\"Add Product\" data-toggle=\"modal\" data-target=\"#student_edit_<?php echo \"$id\"; ?>\" ><span class=\"glyphicon glyphicon-pencil\"></span>Edit Student Information</button>\n\n</div> \n<div class=\"panel panel-default\">\n  \n<style type=\"text/css\">\n  .td_class{\n    width: 20%;\n    padding: 25px;\n    font-weight: bold;\n  }\n</style>\n\n  <table class=\"table table-bordered\">\n    <tbody> \n\n        <tr>\n          <td class=\"td_class\">Full Name :</td>\n          <td><?php echo \"$name\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">Nick Name:</td>\n          <td><?php echo \"$nick\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">Student Id:</td>\n          <td><?php echo \"$id\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">Father Name: </td>\n          <td><?php echo \"$father_name\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">Mother Name: </td>\n          <td><?php echo \"$mother_name\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">Student Mobile:</td>\n          <td><?php echo \"$personal_mobile\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">Father Mobile: </td>\n          <td><?php echo \"$father_mobile\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">Mother Mobile: </td>\n          <td><?php echo \"$mother_mobile\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">Birthday: </td>\n          <td><?php echo \"$birthday\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">Address: </td>\n          <td><?php echo \"$address\"; ?></td>\n        </tr>\n        <tr>\n          <td class=\"td_class\">School/College: </td>\n          <td><?php echo \"$school\"; ?></td>\n        </tr>\n\n\n    </tbody>\n  </table>\n        \n  </div>\n\n<?php\n }\n\nfunction program($student,$batch,$program,$id,$user){\n  ?>\n<div style=\"text-align: right;margin-bottom: 10px;\">\n<button class=\"btn btn-primary btn-xs\" onclick=\"add_program()\" style=\"margin-right: 4px; padding: 10px\" title=\"Edit\" data-title=\"Add Product\" data-toggle=\"modal\" data-target=\"#add_program\"><span class=\"glyphicon glyphicon-pencil\"></span> Add Program</button>\n\n</div>\n<table style=\"width: 100%\">\n  <tr>\n    <td class=\"program_td\">Admit ID</td>\n    <td class=\"program_td\">Program Name</td>\n    <td class=\"program_td\">Batch Name</td>\n    \n    <td class=\"program_td\">Fee</td>\n    <td class=\"program_td\">Admission Date</td>\n    <td class=\"program_td\">Admit By</td>\n    <td class=\"program_td\">Action</td>\n  </tr>\n<?php\n\n foreach ($student[$id]['program_list'] as $key => $value) {\n\n  $id=$value['id'];\n  $program_id=$value['program_id'];\n  if(!isset($program[$program_id]))continue;\n  $program_name=$program[$program_id]['name'];\n  $batch_id=$value['batch_id'];\n  $batch_name=$batch[$batch_id]['name'];\n  $day=$batch[$batch_id]['day_string'];\n  $start=$batch[$batch_id]['start'];\n  $end=$batch[$batch_id]['end'];\n  $fee=$value['fee'].\" TK\";\n  $admit_date=$value['admit_date'];\n  $admit_by=$value['admit_by'];\n  $uname=$user[$admit_by]['uname'];\n\n  ?>  \n  <tr>\n    <td class=\"program_td_body\"><?php echo \"$id\"; ?></td>\n    <td class=\"program_td_body\"><?php echo \"$program_name\"; ?></td>\n    <td class=\"program_td_body\"><?php echo \"$batch_name\"; ?></td>\n    \n    <td class=\"program_td_body\"><?php echo \"$fee\"; ?></td>\n    <td class=\"program_td_body\"><?php echo \"$admit_date\"; ?></td>\n    <td class=\"program_td_body\"><?php echo \"$uname\"; ?></td>\n    <td class=\"program_td_body\" style=\"width: 100px;\">\n      <div class=\"btn-toolbar list-toolbar\"><center>\n      \n      <button style=\"\" title=\"view\" class=\"btn btn-primary btn-xs\"><span class=\"glyphicon glyphicon-eye-open\" onclick=\"open_dilog_view_program(<?php echo \"$id\"; ?>)\"></span></button>\n      <button style=\"\" title=\"Edit\" onclick=\"edit_program(<?php echo \"$id\"; ?>)\"  class=\"btn btn-primary btn-xs\"><span class=\"glyphicon glyphicon-pencil\"></span></button>\n      <button class=\"btn btn-danger btn-xs\" title=\"Delete\"  onclick=\"open_dilog_delete(<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span></button>\n    </center></div>\n    </td>\n  </tr>\n <?php } ?>\n</table>\n\n<?php\n\n }\n\n function add_program($program_ob,$student_id){\n  ?>\n\n  <b class=\"txt\">Select Program</b>\n    <select class=\"select\" id=\"select_program1\" onchange=\"add_batch()\">\n      <option value=\"-1\"> Select Program </option>\n      <?php $program_ob->select_program_by_student($student_id); ?>\n    </select>\n<div id=\"add_batch_field\"></div>  \n\n   </center>\n<?php\n }\n\n function add_batch($program_ob,$program_id){\n   \n\n   $info=$program_ob->get_program_info();\n  // print_r($info);\n   $info=$info[$program_id];\n   $fee=$info['fee'];\n   $name=$info['name'];\n   ?>\n <b class=\"txt\">Select Batch</b>\n  <select class=\"select\" id=\"select_batch\">\n     <option value=\"-1\">Select <?php echo \"$name\"; ?> Batch</option>\n      <?php $program_ob->select_batch_option($program_id); ?>\n  </select>\n  <b class=\"txt\">Fee</b>\n  <input type=\"number\" required class=\"select\" style=\"padding: 10px;\" value=\"<?php echo \"$fee\" ?>\" id='fee' name=\"\">\n   <center> \n    <button class=\"save_btn\" onclick=\"save_program()\">Add Program</button>\n<?php\n }\n\n function view_program($admit_id){\n  ?>\n<div class=\"row\">\n  <div class=\"col-xs-12 col-md-12\">\n    <div class=\"panel panel-default\">\n      <div class=\"panel-heading resume-heading\">\n        <div class=\"row\">\n          <div class=\"col-lg-12\">\n\n            <div class=\"col-xs-12 col-sm-3\">\n              <figure>\n                <img style=\"height: 150px; width: 150px\" class=\"img_info\" alt=\"\" src=\"http://localhost/project/youth/upload/student_photo/10008.jpeg\">\n              </figure>\n              <figure style=\"margin-top: 15px;\">\n                <img style=\"height: 30px; width: 150px\" class=\"\" alt=\"\" src=\"barcode.php?10039\">\n              </figure>\n\n            </div>\n\n            <div class=\"col-xs-12 col-sm-9\">\n              <ul class=\"list-group\" style=\"font-weight: bold;\">\n                <li class=\"list-group-item\">Name: Musfiq</li>\n                <li class=\"list-group-item\">ID: 10039</li>\n                <li class=\"list-group-item\">Program: Medical </li>\n                <li class=\"list-group-item\">Batch: Normal</li>\n                <li class=\"list-group-item\">Batch Time: 4.00 AM-5.00 AM</li>\n                <li class=\"list-group-item\">Batch Day: Saturday</li>\n                <li class=\"list-group-item\">Admission Fee: 5000 TK</li>\n                <li class=\"list-group-item\">Duration: May 2018</li>\n                <li class=\"list-group-item\">Admit By- Rahim</li>\n              </ul>\n            </div>\n          </div>\n        </div>\n      </div>\n      \n     \n      \n    </div>\n\n  </div>\n</div>\n<?php  \n }\n\n function payment_month(){\n  ?>\n\n<div class=\"row\">\n  <div style=\"background-color: #f5f5f5;padding: 10px;\">\n  <div class=\"col-md-3\">\n    <select class=\"form-control\">\n      <option>Select Program</option>\n    </select>\n  </div>\n  <div class=\"col-md-3\">\n    <select class=\"form-control\">\n      <option>Select Year</option>\n    </select>\n  </div>\n  <div class=\"col-md-3\">\n    <select class=\"form-control\">\n      <option>Select Type</option>\n    </select>\n  </div>\n  <center><button>View Month</button></center>\n  </div>\n</div>\n\n<div class=\"row\">\n  \n  <?php for($i=0; $i<10; $i++){\n   $status=($i%2==0)?\"success\":\"danger\";\n\n  ?>\n     <div class=\"col-md-4\">\n<div style=\"background-color: #f5f5f5\" class=\"offer offer-<?php echo $status; ?>\">\n        <div class=\"shape\">\n          <div class=\"shape-text\">\n            Paid              \n          </div>\n        </div>\n\n        <div class=\"offer-content\">\n          <h3 class=\"lead\">\n             <label class=\"label label-<?php echo $status; ?>\"> January</label> <label class=\"label label-<?php echo $status; ?>\"> 2018</label>\n          </h3>\n          <p>\n            <b>Total Payment:</b> 500<br/>\n            <b>Total Pay:</b> 300<br/>\n            <b>Total Due:</b> 200<br/>\n            <b>Pay Date:</b> 12 apr 2018<br/>\n            <center><button class=\"btn btn-md btn-block\" onclick=\"view_payment_month_info()\"><b>View</b></button></center> \n                    </p> \n                 </div> \n     </div>\n</div>\n\n      <?php } ?>\n</div>\n\n<?php\n}\nfunction payment(){\n?>\n\n\n <div class=\"row\">\n  <div class=\"col-md-12\">\n  <div class=\"payment\">\n  <div class=\"payment_header\">January, 2018</div>\n  <div class=\"payment_body\">\n  <div class=\"process\">\n   <div class=\"process-row nav nav-tabs\">\n    <div class=\"process-step\">\n     <button type=\"button\" class=\"btn btn-default btn-circle\" data-toggle=\"tab\" href=\"#menu1\"><i class=\"fa fa-car fa-2x\"></i></button>\n     <p>Payment Info</p>\n    </div>\n    <div class=\"process-step\">\n     <button type=\"button\" class=\"btn btn-default btn-circle\" data-toggle=\"tab\" href=\"#menu2\"><i class=\"fa fa-file-text-o fa-3x\"></i></button>\n     <p>Add Payment</p>\n    </div>\n    <div class=\"process-step\">\n     <button type=\"button\" class=\"btn btn-default btn-circle\" data-toggle=\"tab\" href=\"#menu3\"><i class=\"fa fa-image fa-3x\"></i></button>\n     <p>Payment History</p>\n    </div>\n   </div>\n  </div>\n  </div>\n</div>\n</div>\n</div>\n\n<?php } ?>\n\n\n\n\n\n\n<style type=\"text/css\">\n  .student_add .modal-dialog{max-width: 800px; width: 100%;}\n  .program_add .modal-dialog{max-width: 450px; width: 100%;}\n  \n.process-step .btn:focus{\n  outline:none\n\n}\n\n.shape{    \n    border-style: solid; border-width: 0 70px 40px 0; float:right; height: 0px; width: 0px;\n  -ms-transform:rotate(360deg); /* IE 9 */\n  -o-transform: rotate(360deg);  /* Opera 10.5 */\n  -webkit-transform:rotate(360deg); /* Safari and Chrome */\n  transform:rotate(360deg);\n}\n.offer{\n  background:#fff; border:2px solid #ddd; \n  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);\n   margin: 15px 0; overflow:hidden;\n}\n.offer:hover {\n    -webkit-transform: scale(1.1); \n    -moz-transform: scale(1.1); \n    -ms-transform: scale(1.1); \n    -o-transform: scale(1.1); \n    transform:rotate scale(1.1); \n    -webkit-transition: all 0.4s ease-in-out; \n-moz-transition: all 0.4s ease-in-out; \n-o-transition: all 0.4s ease-in-out;\ntransition: all 0.4s ease-in-out;\n    }\n.shape {\n  border-color: rgba(255,255,255,0) #d9534f rgba(255,255,255,0) rgba(255,255,255,0);\n}\n.offer-radius{\n  border-radius:7px;\n}\n.offer-danger { border-color: #d9534f; }\n.offer-danger .shape{\n  border-color: transparent #d9534f transparent transparent;\n}\n.offer-success {  border-color: #5cb85c; }\n.offer-success .shape{\n  border-color: transparent #5cb85c transparent transparent;\n}\n\n.offer-primary {  border-color: #428bca; }\n.offer-primary .shape{\n  border-color: transparent #428bca transparent transparent;\n}\n.offer-info { border-color: #5bc0de; }\n.offer-info .shape{\n  border-color: transparent #5bc0de transparent transparent;\n}\n.offer-warning {  border-color: #f0ad4e; }\n.offer-warning .shape{\n  border-color: transparent #f0ad4e transparent transparent;\n}\n\n.shape-text{\n  color:#fff; font-size:12px; font-weight:bold; position:relative; right:-40px; top:2px; white-space: nowrap;\n  -ms-transform:rotate(30deg); /* IE 9 */\n  -o-transform: rotate(360deg);  /* Opera 10.5 */\n  -webkit-transform:rotate(30deg); /* Safari and Chrome */\n  transform:rotate(30deg);\n} \n.offer-content{\n  padding:0 20px 0px;\n}\n\n\n.process{\n  display:table;\n  width:100%;\n  position:relative; \n  background:#E1E6EC;\n  padding:10px;\n  border-radius:0px;\n}\n.process-row{\n  display:table-row\n}\n.process-step button[disabled]{\n  opacity:1 !important;\n  filter: alpha(opacity=100) !important\n}\n.process-row:before{\n  top:40px;\n  bottom:0;\n  position:absolute;\n  content:\" \";\n  width:100%;\n  height:0px;\n  background-color:#ccc;\n  z-order:0\n}\n.process-step{\n  display:table-cell;\n  text-align:center;\n  position:relative\n}\n.process-step p{margin-top:4px}\n.btn-circle{\n  width:60px;\n  height:60px;\n  text-align:\n  center;\n  font-size:12px;\n  border-radius:50%\n}\n\n.payment{\n   padding: 5px;\n}\n.payment_header{\n  background-color: var(--bg-color);\n  color: var(--font-color);\n  padding: 15px;\n}\n.payment_body{\n   padding: 0px;\n   border-width: 1px;\n   border-color: var(--bg-color);\n   border-style: solid;\n}\n\n  .bg-gradient {\nbackground: #C9D6FF;\nbackground: -webkit-linear-gradient(to right, #E2E2E2, #C9D6FF); \nbackground: linear-gradient(to right, #E2E2E2, #C9D6FF);\n\n} \n.card-body{\n  margin-top: 10px;\nborder-width: 0px 1px 0px 1px;\n  border-style: solid;\n  border-color: #E1E6EC;\n  padding-left: 5px;\n}\n.btn_payment{\n  background-color: var(--bg-color);\n    color: var(--font-color);\n}\n.text-light{\n  text-align: center;\n  color: #ffffff;\n  font-size: 20px;\n}\n.pricing-divider {\nborder-radius: 20px;\nbackground: #C64545;\npadding: 1em 0 4em;\nposition: relative;\n\n}\n.blue .pricing-divider{\n background-color: var(--bg-color);\n    color: var(--font-color);\n}\n.green .pricing-divider {\nbackground: #1AA85C; \n}\n.red b {\n  color:#C64545\n}\n.blue b {\n  color:#2D5772\n}\n.green b {\n  color:#1AA85C\n}\n.pricing-divider-img {\n  position: absolute;\n  bottom: -2px;\n  left: 0;\n  width: 100%;\n  height: 40px;\n}\n.deco-layer {\n  -webkit-transition: -webkit-transform 0.5s;\n  transition: transform 0.5s;\n}\n.btn-custom  {\n  background-color: var(--bg-color);\n  color: var(--font-color);\n  border-radius:20px\n}\n.btn-custom:hover{\n  background-color: #374B60;\n  color: var(--font-color);\n  font-size: 18px;\n}\n\n.img-float {\n  width:50px; position:absolute;top:-3.5rem;right:1rem\n}\n\n.princing-item {\n  transition: all 150ms ease-out;\n  margin-bottom: 15px;\n\n}\n.princing-item:hover {\n  transform: scale(1.05);\n}\n.princing-item:hover .deco-layer--1 {\n  -webkit-transform: translate3d(15px, 0, 0);\n  transform: translate3d(15px, 0, 0);\n}\n.princing-item:hover .deco-layer--2 {\n  -webkit-transform: translate3d(-15px, 0, 0);\n  transform: translate3d(-15px, 0, 0);\n}\n.payment_month_header{\n    background-color: #555555;\n    color: var(--font-color);\n    padding: 5px;\n    text-align: center;\n    font-weight: bold;\n}\n\n.program_td{\n    padding: 10px;\n    border-style: solid;\n    border-width: 1px;\n    background-color: #EFF0F1;\n    font-weight: bold;\n    font-family: \"Big Caslon\";\n    border-color: #C6C9D1;\n    text-align: center;\n  }\n  .img_info{\n    border-radius: 5%;\n    border-color: #ffffff;\n    border-width: 2px;\n    border-style: solid;\n  }\n  .txt{\n    margin-bottom: -15px;\n  }\n  .program_td_body{\n    padding: 10px;\n    border-style: solid;\n    border-width: 1px;\n    background-color: #ffffff;\n    border-color: #C6C9D1;\n  }\n  .select{\n    position: relative;\n    display: block;\n    height: 3em;\n    line-height: 3;\n    width: 100%;\n    overflow: hidden;\n    border-radius: .25em;\n    display: inline-block;\n    display: -webkit-inline-box;\n    border: 1px solid #667780;\n    margin: 1em 0;\n  }\n  .save_btn{\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    padding: 10px;\n    width: 70%;\n    border-width: 0px;\n  }\n</style>\n\n"
  },
  {
    "path": "page_action/student_profile/program.php",
    "content": "<?php\n\nif(isset($_POST['get_program_list'])){\n \n  $id=$_POST['get_program_list'];\n?>\n<div style=\"text-align: right;margin-bottom: 10px;\">\n<button class=\"btn btn-primary btn-xs\" onclick=\"add_program()\" style=\"margin-right: 4px; padding: 10px\" title=\"Add Program\" data-title=\"Add Program\" ><span class=\"glyphicon glyphicon-plus\"></span> Add Program</button>\n\n\n</div>\n<table class=\"display\" style=\"width: 100%\">\n  <thead>\n  <tr>\n    <td class=\"program_td\">Admit ID</td>\n    <td class=\"program_td\">Program Name</td>\n    <td class=\"program_td\">Batch Name</td>\n    <td class=\"program_td\">Admission Date</td>\n    <td class=\"program_td\">Admit By</td>\n    <td class=\"program_td\">Action</td>\n  </tr>\n  </thead>\n  <tbody>\n<?php\n\n foreach ($student[$id]['program_list'] as $key => $value) {\n\n  $id=$value['id'];\n  $program_id=$value['program_id'];\n  if(!isset($program[$program_id]))continue;\n  $program_name=$program[$program_id]['name'];\n  $batch_id=$value['batch_id'];\n  $batch_name=$batch[$batch_id]['name'];\n  $day=$batch[$batch_id]['day_string'];\n  $start=$batch[$batch_id]['start'];\n  $end=$batch[$batch_id]['end'];\n  $admit_date=$value['admit_date'];\n  $admit_by=$value['admit_by'];\n  $uname=$user[$admit_by]['uname'];\n\n  ?>  \n  <tr>\n    <td class=\"program_td_body\"><?php echo \"$id\"; ?></td>\n    <td class=\"program_td_body\"><?php echo \"$program_name\"; ?></td>\n    <td class=\"program_td_body\"><?php echo \"$batch_name\"; ?></td>\n    <td class=\"program_td_body\"><?php echo \"$admit_date\"; ?></td>\n    <td class=\"program_td_body\"><?php echo \"$uname\"; ?></td>\n    <td class=\"program_td_body\" style=\"width: 100px;\">\n      <div class=\"btn-toolbar list-toolbar\"><center>\n      \n      <button style=\"\" title=\"view\" class=\"btn btn-primary btn-xs\"><span class=\"glyphicon glyphicon-eye-open\" onclick=\"view_program(<?php echo \"$id\"; ?>)\"></span></button>\n      <button style=\"\" title=\"Edit\" onclick=\"edit_program_area(<?php echo \"$id\"; ?>)\"  class=\"btn btn-primary btn-xs\"><span class=\"glyphicon glyphicon-pencil\"></span></button>\n      <button class=\"btn btn-danger btn-xs\" title=\"Delete\"  onclick=\"delete_program_form(<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span></button>\n    </center></div>\n    </td>\n  </tr>\n <?php } ?>\n </tbody>\n</table>\n\n<?php\n\n }\n\n if(isset($_POST['add_program'])){\n  $student_id=$_POST['add_program'];\n  \n  ?>\n<b class=\"txt\">Select Program</b>\n    <select class=\"select\" id=\"select_program\" onchange=\"add_batch()\">\n      <option value=\"-1\"> Select Program </option>\n      <?php $student_ob->select_program_by_student($student_id); ?>\n    </select>\n <div id=\"add_batch_field\"></div>  \n\n  <?php\n }\n\n if(isset($_POST['add_batch_field'])){\n   $program_id=$_POST['add_batch_field'];\n?>\n<b class=\"txt\">Select Batch</b>\n<select id=\"add_batch\" class=\"select\">\n   <option value=\"-1\">Select Batch</option>\n   <?php $program_ob->select_batch_option($program_id); ?>\n</select>\n<center>\n<button class=\"btn btn-primary btn-xs\" onclick=\"save_add_program()\" style=\"margin-right: 4px; padding: 10px\" title=\"Add Program\" data-title=\"Add Program\" ><span class=\"glyphicon glyphicon-plus\"></span> Add Program</button>\n</center>\n<div id=\"res\"></div>\n\n<?php\n }\n\n if(isset($_POST['save_add_program'])){\n  $data=$_POST['save_add_program'];\n  $program_id=$data['program_id'];\n  $student_id=$data['student_id'];\n  $batch_id=$data['batch_id'];\n  \n\n  $info['program_id']=$program_id;\n  $info['student_id']=$student_id;\n  $info['batch_id']=$batch_id;\n\n  $info['admit_by']=$user_id;\n  $info['admit_date']=$db->date();\n\n  $sql=\"select COUNT(*) as total_row from admit_program where student_id=$student_id and program_id=$program_id\";\n\n  $res=$db->get_sql_array($sql);\n  $total_row=$res[0]['total_row'];\n  \n  if($total_row==0){\n    $db->sql_action(\"admit_program\",\"insert\",$info,\"no\");\n    echo \"Sucessfully Add New Program\";\n  }\n  else{\n    echo \"Program Aready Added\";\n  }\n }\n\nif(isset($_POST['edit_program_area'])){\n$admit_id=$_POST['edit_program_area'];\n$info=$student_ob->get_admit_program_info($admit_id);\n$program_id=$info['program_id'];\n$batch_id=$info['batch_id'];\n$program_name=$info['program_name'];\n\n?>\n\n<b class=\"txt\">Select Batch</b>\n  <select class=\"select\" id=\"edit_batch_id\">\n     <option value=\"-1\">Select <?php echo \"$program_name\"; ?> Batch</option>\n      <?php $program_ob->select_program_batch($program_id,$batch_id); ?>\n  </select>\n   <center> \n    <button class=\"btn btn-primary btn-xs\" style=\"margin-right: 4px; padding: 10px\" title=\"Update Program\" onclick=\"update_program(<?php echo \"$admit_id\"; ?>)\">Update Program</button>\n\n<?php\n}\n\n\nif(isset($_POST['update_program'])){\n  $info=$_POST['update_program'];\n  $data['id']=$info['admit_id'];\n  $data['batch_id']=$info['batch_id'];\n  $db->sql_action(\"admit_program\",\"update\",$data,\"no\");\n  echo \"Sucessfully Update Batch\";\n}\n\nif(isset($_POST['delete_program'])){\n  $id=$_POST['delete_program'];\n  $data['id']=$id;\n  $db->sql_action(\"admit_program\",\"delete\",$data,\"no\");\n  echo \"Program Sucessfully Delete\";\n}\n\n\nif(isset($_POST['delete_program_form'])){\n  $admit_id=$_POST['delete_program_form'];\n  \n  ?>\n\n    <center>\n    <h3>Are You Want To Delete This Payment</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"delete_program(<?php echo \"$admit_id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n\n  </center>\n\n  <?php\n} \n\nif(isset($_POST['view_program'])){\n  $admit_id=$_POST['view_program'];\n  ?>\n\n  <div class=\"row\">\n    <div class=\"col-md-9\">\n      <div class=\"view_program_body\" id=\"view_program_body\">\n        \n      </div>\n       \n    </div>\n    <div class=\"col-md-3\">\n      <center>\n      <button class=\"view_program_btn\" onclick=\"program_view_info(<?php echo $admit_id; ?>)\">Admission Info</button>\n      <button class=\"view_program_btn\" onclick=\"send_admission_sms_area(<?php echo $admit_id; ?>)\">Send Admission SMS</button>\n      <button class=\"view_program_btn\" onclick=\"program_id_card(<?php echo $admit_id; ?>)\">ID Card</button>\n      <button class=\"view_program_btn\" onclick=\"admission_recept(<?php echo $admit_id; ?>)\">Admission Recept</button>\n      </center>\n    </div>\n  </div>\n<?php\n\n}\n\nif(isset($_POST['program_id_card'])){\n  $id=$_POST['program_id_card'];\n  $info=$student_ob->get_admit_program_info($id);\n  $data=array();\n  array_push($data, $info);\n  \n ?>\n <div id=\"print_area\">\n  <?php  $id_card->get_id_card($data); ?>\n</div>\n<button onclick=\"print('print_area')\">Print</button>\n <?php\n}\n\nif(isset($_POST['program_view_info'])){\n  $id=$_POST['program_view_info'];\n  $info=$student_ob->get_admit_program_info($id);\n  $student_id=$info['student_id'];\n  $program_id=$info['program_id'];\n  $batch_id=$info['batch_id'];\n  $student_name=$student[$student_id]['name'];\n  $program_name=$program[$program_id]['name'];\n  $batch_name=$batch[$batch_id]['name'];\n  $batch_day=$batch[$batch_id]['day_string'];\n  $batch_time=$batch[$batch_id]['start'].\" - \".$batch[$batch_id]['end'];\n  $program_start=$program[$program_id]['start'];\n\n  ?>\n   <table width=\"100%\">\n     <tr>\n       <td class=\"td_view1\">Student Name:</td>\n       <td class=\"td_view2\"><?php echo $student_name; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Student ID:</td>\n       <td class=\"td_view2\"><?php echo $student_id; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Program Name:</td>\n       <td class=\"td_view2\"><?php echo $program_name; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Batch Name:</td>\n       <td class=\"td_view2\"><?php echo $batch_name; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Program Start:</td>\n       <td class=\"td_view2\"><?php echo $program_start; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Program End:</td>\n       <td class=\"td_view2\"><?php echo $program[$program_id]['end']; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Batch Day:</td>\n       <td class=\"td_view2\"><?php echo $batch_day; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Batch Time:</td>\n       <td class=\"td_view2\"><?php echo $batch_time; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Admission Date:</td>\n       <td class=\"td_view2\"><?php echo $info['admit_date']; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Admit By:</td>\n       <td class=\"td_view2\"><?php echo $info['admit_by'] ?></td>\n     </tr>\n   </table>\n\n\n  <?php\n}\n\nif(isset($_POST['admission_recept'])){\n   $id=$_POST['admission_recept'];\n  $info=$student_ob->get_admit_program_info($id);\n  $student_id=$info['student_id'];\n  $program_id=$info['program_id'];\n  $batch_id=$info['batch_id'];\n  $student_name=$student[$student_id]['name'];\n  $program_name=$program[$program_id]['name'];\n  $batch_name=$batch[$batch_id]['name'];\n  $batch_day=$batch[$batch_id]['day_string'];\n  $batch_time=$batch[$batch_id]['start'].\" - \".$batch[$batch_id]['end'];\n  $program_start=$program[$program_id]['start'];\n  ?>\n  \n<div id=\"print_area\">\n  <?php $site->header_info_area(); ?>\n  <table width=\"100%\">\n     <tr>\n       <td class=\"td_view1\">Student Name:</td>\n       <td class=\"td_view2\"><?php echo $student_name; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Student ID:</td>\n       <td class=\"td_view2\"><?php echo $student_id; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Program Name:</td>\n       <td class=\"td_view2\"><?php echo $program_name; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Batch Name:</td>\n       <td class=\"td_view2\"><?php echo $batch_name; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Program Start:</td>\n       <td class=\"td_view2\"><?php echo $program_start; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Program End:</td>\n       <td class=\"td_view2\"><?php echo $program[$program_id]['end']; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Batch Day:</td>\n       <td class=\"td_view2\"><?php echo $batch_day; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Batch Time:</td>\n       <td class=\"td_view2\"><?php echo $batch_time; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Admission Date:</td>\n       <td class=\"td_view2\"><?php echo $info['admit_date']; ?></td>\n     </tr>\n     <tr>\n       <td class=\"td_view1\">Admit By:</td>\n       <td class=\"td_view2\"><?php echo $info['admit_by'] ?></td>\n     </tr>\n   </table>\n\n</div>\n<button onclick=\"print('print_area')\">Print</button>\n<?php\n} \n\nif(isset($_POST['send_admission_sms_area'])){\n  $admit_id=$_POST['send_admission_sms_area'];\n  ?>\n  <center>\n  <div style=\"width: 250px\" id=\"message_body\">\n    <?php $sms->get_sms_recever_option(); ?>\n      <button class='btn btn-default' style=\"margin-top: 5px;\" onclick='send_admission_sms(<?php echo \"$admit_id\"; ?>)'>Send SMS</button>\n  </div>\n  <div id=\"message_sending\"></div>\n  </center>\n<?php\n}\n\nif(isset($_POST['send_admission_sms'])){\n $info=$_POST['send_admission_sms'];\n $admit_id=$info['admit_id'];\n $receiver=$info['receiver'];\n $info=$student_ob->get_admit_program_info($admit_id);\n $student_id=$info['student_id'];\n  $program_id=$info['program_id'];\n  $batch_id=$info['batch_id'];\n  $student_name=$student[$student_id]['nick'];\n  $program_name=$program[$program_id]['name'];\n  $batch_name=$batch[$batch_id]['name'];\n  $batch_day=$batch[$batch_id]['day_sort_string'];\n  $batch_time=$batch[$batch_id]['start'].\" - \".$batch[$batch_id]['end'];\n  $site_msg=$db->msg;\n  $message=\"Dear $student_name,\\nCongratulation. You got admitted to our '$program_name' Program.\\n\nYour ID: $student_id\nBatch: $batch_name\nTime: $batch_day ($batch_time)\n\n$site_msg\n\";\n\n  $info=$sms->get_student_mobile_number($student_id,$receiver);\n  $list=array();\n  foreach ($info as $key => $value) {\n    $res=$sms->make_sms_array($value,$message);\n    array_push($list, $res);\n  }\n  $sms->send_sms($list);\n}\n?>\n <style type=\"text/css\">\n \n\n\n .td_view1,.td_view2{\n  padding: 10px;\n  border: 1px solid #C6C9D1;\n }\n .td_view1{\n  background-color: #f5f5f5;\n  font-weight: bold;\n  text-align: right;\n  width: 220px;\n }\n\n .view_program_btn{\n   background-color: var(--bg-color);\n   color: var(--font-color);\n   padding: 15px;\n   width: 170px;\n   border-width: 0px;\n   margin-top: 5px;\n   border-radius: 5px;\n }\n  .view_program_body{\n    background-color: #ffffff;\n    border: 1px solid #DDDDDD;\n    padding: 10px;\n  }\n\n   .program_td{\n    padding: 10px;\n    border-style: solid;\n    border-width: 1px;\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    font-weight: bold;\n    font-family: \"Big Caslon\";\n    border-color: #C6C9D1;\n    text-align: center;\n  }\n  .program_td_body{\n    text-align: center;\n    padding: 5px;\n    border-style: solid;\n    border-width: 1px;\n    background-color: #ffffff;\n    border-color: #C6C9D1;\n  }\n   .select{\n    position: relative;\n    display: block;\n    height: 3em;\n    line-height: 3;\n    width: 100%;\n    overflow: hidden;\n    border-radius: .25em;\n    display: inline-block;\n    display: -webkit-inline-box;\n    border: 1px solid #667780;\n    margin: 1em 0;\n  }\n </style>"
  },
  {
    "path": "page_action/subject_page_action.php",
    "content": "<?php \n\ninclude \"layout/header_script.php\";\n\nif(isset($_POST['insert_subject'])){\n  $data=$_POST['insert_subject'];\n  $info=$data;\n  unset($info['id']);\n  $db->sql_action(\"subject\",\"insert\",$info);\n}\n\n\nelse if(isset($_POST['update_subject'])){\n  $info=$_POST['update_subject'];   \n  $db->sql_action(\"subject\",\"update\",$info);\n}\n\nif(isset($_POST['delete_subject'])){\n  $info=$_POST['delete_subject'];    \n  $db->sql_action(\"subject\",\"delete\",$info);\n}\n\nif(isset($_POST['get_subject_form'])){\n  ?>\n <div class=\"row\">\n    <div class=\"col-xs-12 col-sm-12\">  \n      <?php\n    //$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n       $site->form_input(\"Subject Name\",\"insert_name\",\"sub_name\");\n       $site->form_input(\"Subject Code\",\"insert_name\",\"sub_code\");\n    ?> \n        <div id=\"err_product_date\" class=\"error\"></div>\n        <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"subject_action('insert')\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save</button>\n\n    </div>\n</div>\n  <?php\n}\n\nif(isset($_POST['update_subject_form'])){\n  $id=$_POST['update_subject_form'];\n  $name=$subject[$id]['name'];\n  $code=$subject[$id]['code'];\n?>\n\n<div class=\"row\">\n    <div class=\"col-xs-12 col-sm-12\">  \n      <?php\n       $site->form_input(\"Subject Name\",\"insert_name\",\"sub_name\",\"text\",\"exclamation-sign\",$name);\n       $site->form_input(\"Subject Code\",\"insert_name\",\"sub_code\",\"text\",\"exclamation-sign\",$code);\n    ?> \n        <div id=\"err_product_date\" class=\"error\"></div>\n        <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"subject_action('update',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Update</button>\n\n    </div>\n</div>\n<?php\n}\n\nif(isset($_POST['delete_subject_form'])){\n  $id=$_POST['delete_subject_form'];\n  ?>\n\n  <center>\n    <h3>Are You Want To Delete This Subject</h3><br/>\n    <button class=\"btn btn-lg btn-primary btn-block\" name=\"insert\" type=\"submit\" onclick=\"subject_action('delete',<?php echo \"$id\"; ?>)\"><span class=\"glyphicon glyphicon-trash\"></span> Delete</button>\n  </center>\n\n  <?php\n}\n\n\n\n\n?>"
  },
  {
    "path": "page_action/user/user.php",
    "content": "<?php \n\n$path=\"page_action/user/\";\n$file=array();\n\narray_push($file, \"user_profile.php\");\narray_push($file, \"user_list.php\");\narray_push($file, \"user_profile_body.php\");\n\n\nforeach ($file as $key => $value) {\n\t$file_name=\"$path$value\";\n\tinclude $file_name;\n}\n\n\n?>"
  },
  {
    "path": "page_action/user/user_list.php",
    "content": "<?php\n\nif(isset($_POST['get_user_list'])){\n\t$get_list_type=$_POST['get_user_list'];\n\t$user_list=$user_ob->get_user_permission_list($get_list_type);\n?>\n\n\n<style type=\"text/css\">\n    @import url('https://fonts.googleapis.com/css?family=Open+Sans');\n\n.userMain{\n  margin-top: 30px;\n}\n\n.userMain .userBlock{\n    float: left;\n    width: 100%;\n    box-shadow: 0px 0px 23px -3px #ccc;\n    padding-bottom: 12px;\n    margin-bottom: 30px;\n    margin-top: 15px;\n    background:#fff;\n    border: 2px solid var(--bg-color);\n    \n\n}\n.userMain .userBlock .backgrounImg{\n    float: left;\n    overflow: hidden;\n    height: 77px;\n}\n\n.userMain .userBlock .userImg{\n    text-align: center;\n}\n.userMain .userBlock .userImg img{\n    width: 80px;\n    height: 80px;\n    margin-top: -39px;\n    border-radius: 100%;\n    border: 2px solid var(--bg-color);\n    \n} \n.userMain .userBlock .userDescription{\n    text-align: center;\n}\n.userMain .userBlock .userDescription h5{\n    margin-bottom: 2px;\n    font-weight: 600;\n}\n.userMain .userBlock .userDescription p{\n    margin-bottom: 5px;\n}\n.userMain .userBlock .userDescription .btn{\n    padding: 0px 23px 0px 23px;\n    height: 22px;\n    border-radius: 0;\n    font-size: 12px;\n    background: var(--bg-color);\n    color: var(--font-color);\n}\n.userMain .userBlock .userDescription .btn:hover{\n    \n    opacity:0.7;\n}\n\n.userMain .userBlock .followrs{\n    display: inline-flex;\n    margin-right: 10px;\n    border-right: 1px solid #ccc;\n    padding-right: 10px;\n}\n.userMain .userBlock .followrs .number{\n    font-size: 15px;\n    font-weight: bold;\n    margin-right: 5px;\n    margin-top: -1px;\n}\n    </style>\n\n<div class=\"row userMain\">\n    <?php \n       \n      foreach ($user_list as $key => $value) {\n        $id=$value['id'];\n        $info=$user[$id];\n        $uname=$info['uname'];\n        $fname=$info['fname'];\n        $photo=$info['photo'];\n        $permit=$info['permit'];\n        $status=$info['status'];\n        $status_text=\"<span class='glyphicon glyphicon-ok' title='Active'></span>\";\n        if($status==0)$status_text=\"<span class='glyphicon glyphicon-remove' title='Deactive'></span>\";\n       \n\n        $permission=$user_ob->get_user_permission($permit);\n        \n    ?>\n       <div class=\"col-md-4 col-sm-4\">\n           <div class=\"userBlock\">\n               <div class=\"backgrounImg\">\n               </div>\n               <div class=\"userImg\">\n                   <img src=\"<?php echo $photo; ?>\">\n               </div>\n               <div class=\"userDescription\">\n                   <h5><?php echo $uname; ?> <?php echo \"$status_text\"; ?></h5>\n                   <p>\n                   \t<?php echo $fname; ?>\n                   \t<br/>\n                   <b><span class='glyphicon glyphicon-flag' title='Active'></span>\t<?php echo $permission; ?></b>\n                   </p>\n                    \n                    <a href=\"user_info.php?user_id=<?php echo $id; ?>\">\n                        <button class=\"btn\">View Profile</button>\n                    </a>\n               </div>\n              \n           </div>\n       </div> \n     <?php } ?>    \n</div>\n\n\n\n<?php\t\n\n}\n\nif(isset($_POST['add_user'])){\n  $site->form_input(\"User Name\",\"fname\",\"up_full_name\",\"text\",\"exclamation-sign\",\"\",\"<b>You Can Only Use '-'<b>\",\"yes\");\n  $site->form_input(\"Full Name\",\"fname\",\"up_full_name\",\"text\",\"exclamation-sign\",\"\",\"\",\"yes\");\n  $site->form_input(\"Email\",\"email\",\"up_email\",\"text\",\"exclamation-sign\",\"\",\"\",\"yes\");\n\t$site->form_input(\"Phone\",\"phone\",\"up_phone\",\"number\",\"text\",\"exclamation-sign\",\"\",\"\",\"yes\");\n\t$site->form_input(\"Address\",\"address\",\"up_address\",\"text\",\"exclamation-sign\",\"\",\"\",\"yes\");\n\t$site->form_input(\"Phone\",\"phone\",\"phone\",\"text\",\"exclamation-sign\",\"\",\"\",\"yes\");\n\t$site->form_input(\"Password\",\"address\",\"up_address\",\"password\",\"exclamation-sign\",\"\",\"\",\"yes\");\n\n}\n\n?>\n\n"
  },
  {
    "path": "page_action/user/user_profile.php",
    "content": "<?php\n\n\nif (isset($_POST['load_profile_photo'])) {\n    $uid     = $_POST['load_profile_photo'];\n    $picture = $user[$uid]['photo'];\n    echo \"$picture\";\n}\n\nelse if (isset($_FILES[\"file\"][\"name\"])) {\n    $user_id = $_POST['user_id'];\n    \n    $test     = explode('.', $_FILES[\"file\"][\"name\"]);\n    $ext      = end($test);\n    $name     = \"user_$user_id.$ext\";\n    $location = './upload/user_photo/' . $name;\n    move_uploaded_file($_FILES[\"file\"][\"tmp_name\"], $location);\n    \n    $info['id']    = $user_id;\n    $info['photo'] = $name;\n    $db->sql_action(\"user\", \"update\", $info, $msg = \"no\");\n    \n}\n\n\nelse if (isset($_POST['old_pass'])) {\n    $uid         = $_POST['uid'];\n    $pass        = $_POST['old_pass'];\n    $pass_user   = $user[$uid]['pass'];\n    $pass        = hash('sha256', $pass);\n    $data['msg'] = 0;\n    if ($pass == $pass_user)\n        $data['msg'] = 1;\n    $data = json_encode($data);\n    echo \"$data\";\n}\n\nelse if (isset($_POST['pass_field'])) {\n    $per = $_POST['pass_field'];\n    if ($per == \"old\")\n        old_field();\n    else\n        new_field();\n}\n\nelse if (isset($_POST['get_user_data'])) {\n    $id   = $_POST['get_user_data'];\n    $data = $user[$id];\n    $data = json_encode($data);\n    echo \"$data\";\n}\n\nelse if (isset($_POST['save_password'])) {\n    $pass         = $_POST['save_password'];\n    $uid          = $_POST['pass_user'];\n    $pass         = hash('sha256', $pass);\n    $info['id']   = $uid;\n    $info['pass'] = $pass;\n    $db->sql_action(\"user\", \"update\", $info, $msg = \"no\");\n}\n\n\nif (isset($_POST['profile_photo_form'])) {\n    $uid = $_POST['profile_photo_form'];\n    $picture = $user[$uid]['photo'];\n    picture_upload_form($picture);\n    \n}\n\nif(isset($_POST['update_profile_form'])){\n  $id=$_POST['update_profile_form'];\n  $info=$user[$id];\n  user_update_form($info,$site);\n}\n\nif(isset($_POST['update_profile_info'])){\n  $info=$_POST['update_profile_info'];\n  $db->sql_action(\"user\", \"update\", $info, $msg = \"no\");\n  echo \"Sucess\";\n}\n\nif(isset($_POST['update_user_status_form'])){\n  $user_id=$_POST['update_user_status_form'];\n  $user_status=$user[$user_id]['status'];\n  $btn_status=($user_status==0)?1:0;\n  $text=($user_status==0)?\"Active User\":\"Deactive User\";\n  $icon=($user_status==0)?\"glyphicon glyphicon-ok-circle\":\"glyphicon glyphicon-ban-circle\";\n  echo \"<button onclick='update_user_status($btn_status)' class='btn btn-primary' style='margin-top: 10px;width: 100%'><span class='$icon'></span> $text</button>\";\n\n  ?>\n\n <?php \n}\n\nif(isset($_POST['update_user_status'])){\n\n  $info=$_POST['update_user_status'];\n  $user_id=$info['user_id'];\n  $status=$info['status'];\n  $data['id']=$user_id;\n  $data['status']=$status;\n\n  print_r($data);\n  $db->sql_action(\"user\", \"update\", $data, $msg = \"no\");\n}\n\nif(isset($_POST['update_user_role_form'])){\n  $user_id=$_POST['update_user_role_form'];\n  $user_role=$user[$user_id]['permit'];\n\n  ?>\n  <select class=\"form-control\" id=\"select_update_user_role\">\n    <?php $user_ob->get_user_can_update_option($user_role,$login_user_role); ?>\n  </select>\n  <button id=\"btn_update_role\" class=\"btn btn-primary\" style='margin-top: 10px;width: 100%' onclick=\"update_user_role()\">Update Role</button>\n  <?php \n}\nif(isset($_POST['update_user_role'])){\n  $info=$_POST['update_user_role'];\n  $user_role=$info['role'];\n  $user_id=$info['user_id'];\n  $user_role=max($login_user_role,$user_role);\n  $data=array();\n  $data['id']=$user_id;\n  $data['permit']=$user_role;\n  $db->sql_action(\"user\", \"update\", $data, $msg = \"no\");\n}\n\n \nfunction old_field()\n{\n?>\n   <center>\n      <input type=\"Password\" placeholder=\"Enter Current Password\" class=\"input_field\" name=\"\" id=\"old_pass\"><br/>\n      <button class=\"btn btn-primary\" onclick=\"next_step_press()\">Next</button>\n    </center>\n\n<?php\n}\n\nfunction new_field()\n{\n?>\n\n    <center>\n      <input type=\"Password\" placeholder=\"Enter New Password\" class=\"input_field\" onkeyup=\"new_pass_in()\" name=\"\" id=\"new_pass1\"><br/>\n      <input type=\"Password\" placeholder=\"Confirm Password\" class=\"input_field\" onkeyup =\"new_pass_in()\"  name=\"\" id=\"new_pass2\"><br/>\n      <button class=\"btn btn-primary\" onclick=\"save_password()\" id=\"update_pass_btn\" disabled=\"\">Update</button>\n    </center>\n\n<?php\n}\n\nfunction picture_upload_form($picture)\n{\n?>\n   \n    <div id=\"profile_upload_area\">\n    <center>\n  \n      <br />\n      <span id=\"uploaded_image\">\n      <img id=\"add_profile_pic\" class=\"preview_img img-circle\" src=\"<?php\n    echo $picture;\n?>\">\n      </span>\n      <br />\n      <input type=\"file\" name=\"file\" id=\"file\" onchange=\"loadFile(event)\"  />\n      <button style=\"margin-top: 10px;width: 100%\" class=\"btn btn-primary\" onclick=\"upload_profile_photo()\" id=\"update_pass_btn\">Upload Profile Photo</button>\n\n      </center>\n    </div>\n    \n    <style type=\"text/css\">\n      .preview_img{\n        height: 150px;\n        width: 150px;\n        border: 2px solid var(--bg-color); \n      }\n    </style>\n\n<?php\n}\n\nfunction user_update_form($info,$site){\n  $fname=$info['fname'];\n  $email=$info['email'];\n  $phone=$info['phone'];\n  $address=$info['address'];\n\n  $site->form_input(\"Full Name\",\"fname\",\"fname\",\"text\",\"exclamation-sign\",\"$fname\",\"\",\"yes\");\n  $site->form_input(\"Email\",\"email\",\"email\",\"text\",\"exclamation-sign\",\"$email\",\"\",\"yes\");\n  $site->form_input(\"Address\",\"address\",\"address\",\"text\",\"exclamation-sign\",\"$address\",\"\",\"yes\");\n  $site->form_input(\"Phone\",\"phone\",\"phone\",\"number\",\"exclamation-sign\",\"$phone\",\"\",\"yes\");\n  echo \"<button style='width: 100%' class='btn btn-primary' onclick='update_profile_info()' id='update_pass_btn'><b>Update Profile</b></button>\";\n}\n\n?>\n"
  },
  {
    "path": "page_action/user/user_profile_body.php",
    "content": "\n<?php\n\nif(isset($_POST['user_info'])){\n  \n  // dasdf\n\n  $id=$_POST['user_info'];\n  $info=$user[$id];\n  $user_name=$info['uname'];\n  $permit=$info['permit'];\n  $user_role=$user_ob->get_user_permission($permit);\n   need_css();\n  ?>\n\n  <table class=\"\" style=\"width: 100%\">\n  \t<tr>\n  \t\t<td class=\"td_list1\" style=\"width: 20%; text-align: right;\">\n  \t\t\tUser Name:\n  \t\t</td>\n  \t\t<td class=\"td_list2\" style=\"text-align: left;\">\n  \t\t\t<?php echo $info['uname']; ?>\n  \t\t</td>\n  \t</tr>\n  \t<tr>\n  \t\t<td class=\"td_list1\" style=\"width: 20%; text-align: right;\">\n  \t\t\tFull Name: \n  \t\t</td>\n  \t\t<td class=\"td_list2\" style=\"text-align: left;\">\n  \t\t\t<?php echo $info['fname']; ?>\n  \t\t</td>\n  \t</tr>\n  \t<tr>\n  \t\t<td class=\"td_list1\" style=\"width: 20%; text-align: right;\">\n  \t\t\tRole:\n  \t\t</td>\n  \t\t<td class=\"td_list2\" style=\"text-align: left;\">\n  \t\t\t<?php echo \"$user_role\"; ?>\n  \t\t</td>\n  \t</tr>\n  \t<tr>\n  \t\t<td class=\"td_list1\" style=\"width: 20%; text-align: right;\">\n  \t\t\tPhone:\n  \t\t</td>\n  \t\t<td class=\"td_list2\" style=\"text-align: left;\">\n  \t\t\t<?php echo $info['phone']; ?>\n  \t\t</td>\n  \t</tr>\n  \t<tr>\n  \t\t<td class=\"td_list1\" style=\"width: 20%; text-align: right;\">\n  \t\t\tEmail:\n  \t\t</td>\n  \t\t<td class=\"td_list2\" style=\"text-align: left;\">\n  \t\t\t<?php echo $info['email']; ?>\n  \t\t</td>\n  \t</tr>\n    <tr>\n  \t\t<td class=\"td_list1\" style=\"width: 20%; text-align: right;\">\n  \t\t\tGender:\n  \t\t</td>\n  \t\t<td class=\"td_list2\" style=\"text-align: left;\">\n  \t\t\t<?php echo $info['gender']; ?>\n  \t\t</td>\n  \t</tr>\n  \t <tr>\n  \t\t<td class=\"td_list1\" style=\"width: 20%; text-align: right;\">\n  \t\t\tAddress:\n  \t\t</td>\n  \t\t<td class=\"td_list2\" style=\"text-align: left;\">\n  \t\t\t<?php echo $info['address']; ?>\n  \t\t</td>\n  \t</tr>\n\n  </table>\n\n\n  <?php\n\n}\n\nelse if(isset($_POST['user_activity'])){\n  \n  $info=$_POST['user_activity'];\n  $user_id=$info['user_id'];\n  $page=$info['page'];\n  \n  \n  $toal_index=12000;\n  $page_limit=10;\n  $total_page=ceil($toal_index/$page_limit);\n  \n  $due_page=$total_page-$page;\n  $plus=($due_page>=3)?3:$due_page;\n  \n  \n  $start_page=1;\n  $diff=$page-$start_page;\n\n  $end_page=10;\n  \n  need_css();\n  \n\n?>\n\n   <table id=\"\" class=\"display\" width=\"100%\">\n        <thead style=\"width: 100%;\">\n                        <tr>\n                            <td class=\"td_list1\">#</td>\n                            <td class=\"td_list1\">User Name</td>\n                            <td class=\"td_list1\">Table Name</td>\n                            <td class=\"td_list1\">Action</td>\n                            <td class=\"td_list1\">IP</td>\n                            <td class=\"td_list1\">Browser</td>\n                            <td class=\"td_list1\">Date</td>\n                            <td class=\"td_list1\">View Activity</td>\n                            \n                        </tr>\n         </thead>\n            <tbody>\n        <?php           \n                        $info=$site_activity->get_user_activity($user_id);\n                        \n                        $c=0;\n                        foreach ($info as $key => $value) {\n                            $id=$value['id'];\n                            $user_id=$value['user_id'];\n                            $user_name=$user[$user_id]['uname'];\n                            $ago=$value['date'];\n                            $ago=$site->timeAgo($ago);\n                            if($c==10)break;\n                            \n                            $c++;\n                         ?>\n \n                        <tr>\n                            <td class=\"td_list2\">\n                  \t\t\t\t<?php echo $value['id']; ?> \n                            </td>\n                            <td class=\"td_list2\"><?php echo $user_name; ?></td>\n                            <td class=\"td_list2\">\n                                <?php echo $value['table_name']; ?>    \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $value['action_type']; ?>    \n                            </td>\n                            \n                            <td class=\"td_list2\">\n                                <?php echo $value['ip']; ?>    \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $value['browser']; ?>    \n                            </td>\n                            <td class=\"td_list2\">\n                                <?php echo $ago; ?>   \n                            </td>\n                            <td class=\"td_list2\">\n                                <button onclick=\"get_activity_info(<?php echo \"$id\"; ?>)\" class=\"btn btn-danger btn-xs\">View Activity</button>   \n                            </td>\n\n                        </tr>\n                        <?php } ?>\n                        </tbody>\n                    </table>\n\n<div style=\"margin-top: 10px;\"></div>\n<center>\n    <?php\n\n    for ($i=$start_page; $i <=$end_page ; $i++) {\n  \t\t$cla=\"\";\n    \tif($i==$page)$cla=\"active_page_btn\"; \n     \t\techo \"<button class='btn_page $cla' onclick='user_activity($i)'> $i </button>\";\n  \t}\n\n    ?>\n</center>\n\n\t<?php\n}\n\nelse if(isset($_POST['user_login_activity'])){\n\n}\n\nelse if(isset($_POST['user_payment'])){\n\n}\n\n\nfunction need_css(){\n?>\n\n<style type=\"text/css\">\n\t.active_page_btn{\n\t\tbackground-color: var(--bg-color);\n\t\tcolor: var(--font-color);\n\t\tfont-size: 18px;\n\t}\n\t.btn_page{\n       height: 40px;\n       width: 40px;\n       margin-left: 2px;\n       border-radius: 100%;\n       font-weight: bold;\n\t}\n\t.btn_page:hover{\n\t\tbackground-color: var(--bg-color);\n\t\tcolor: var(--font-color);\n\t\t\n\t}\n\t.btn_page:focus{\n\t\toutline:0;\n\t}\n\t\n\n\tthead{\n        background-color: #EFF0F2;\n        border-width: 0px;\n    }\n\n\t.td_list1{\n        background-color: #EFF0F2;\n        color: #000000;\n        padding: 10px;\n        font-weight: bold;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n    .td_list2{\n        background-color: #ffffff;\n        color: #000000;\n        padding: 8px;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n    }\n    .td_info_list1{\n    \tbackground-color: #EFF0F2;\n    }\n</style>\n\n\n\n<?php } ?>"
  },
  {
    "path": "payment.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/payment/payment.php\";\ninclude \"layout/footer.php\";\n?>"
  },
  {
    "path": "pending_sms_list.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/sms/pending_sms_list.php\";\ninclude \"layout/footer.php\";\n\n\n?>"
  },
  {
    "path": "practice.php",
    "content": "<html>\n<head>\n</head>\n<body>\n    <canvas id=\"canvas\" style=\"height: 600px; width: 100%;\">\n    \t\n    </canvas>\n    \n</body>\n</html>\n\n<script type=\"text/javascript\">\n\tvar canvas=document.getElementById('canvas');\n\tvar ctx=canvas.getContext(\"2d\");\n\tvar r_w=9;\n\tvar balls= [\n\t           {x: 0, y:32 ,dx:1,dy:2,color:\"#ED350A\"},\n\t           {x: 0, y:1 ,dx:2,dy:2,color:\"#ED350A\"},\n\t           {x: 0, y:2 ,dx:2,dy:2,color:\"#ED350A\"},\n\t           {x: 0, y:3 ,dx:2,dy:2,color:\"#ED350A\"},\n\t           {x: 0, y:4 ,dx:2,dy:2,color:\"#ED350A\"},\n\t          ];\n\n\tvar road=[\n\t \t\t\t[0,30,300,r_w],[15,30,r_w,30],[15,60,100,r_w],\n\n\t \t\t];\n\n \n    var x=0;\n    c=0;\n    var flag=0;\n    function animation() {\n    \tclear_data(flag);\n    \tflag=1;\n    \tvar ball=balls[c];\n    \tif(ball.x>=300 || ball.x<0)ball.dx=-ball.dx;\n    \tif(ball.y>=120 || ball.y<0)ball.dy=-ball.dy;\n    \t\n    \tctx.fillStyle=\"red\";\n    \tctx.fillRect(ball.x,ball.y,5,5);\n    \tball.x+=ball.dx;\n    \t//ball.y+=ball.dy;\n    \t//c++;\n    }\n\n    function clear_data(flag){\n    \tclear_road();\n    \tif(flag==0){\n    \t  set_filed();\n    \t  set_home();\n       }\n    \tset_road();\n        //set_filed();\n    \t\n    }\n\n   function clear_road(){\n   \tfor(i=0; i<road.length; i++){\t\n     ctx.clearRect(road[i][0],road[i][1],road[i][2],road[i][3]);\n    }\n  }\n\n    function set_home(){\n    \t//ctx.clearRect(120,80,30,30);\n    \tctx.fillStyle=\"#ED350A\";\n        //ctx.fillRect(120,80,30,30);\n       set_image(120,80,'upload/site_content/tree1.jpg',30,30);\n \n    }\n\n    function set_filed(){\n    \tfor(i=0; i<=300; i+=10){\n    \t\tfor(j=0; j<=150; j+=10){\n           set_image(i,j,'upload/site_content/bg.jpg',10,10);\n    \t\t\tctx.fillRect(i,j,5,5);\n    \t\t}\n    \t}\n    }\n\n    function set_road(){\n     for(i=0; i<road.length; i++){\t\n    \tctx.fillStyle=\"#0A5B80\";\n    \tctx.fillRect(road[i][0],road[i][1],road[i][2],road[i][3]);\n      }\n      set_image(56,0,'upload/site_content/tree1.png',15,15);\n    }\n\n\n    function set_image(x,y,src,height,width){\n    \tvar imageObj = new Image();\n        imageObj.onload = function() {\n          ctx.drawImage(imageObj, x, y, height, width);\n         };\n       imageObj.src = src;\n    }\n    //animation();\n    setInterval(animation, 100);\n\n    \n\n</script>"
  },
  {
    "path": "print_page.php",
    "content": "\n \n<?php\n\ninclude \"layout/header_script.php\";\ninclude \"page/print_page/print_page.php\";\n\n?>\n\n<script type=\"text/javascript\">\n  \n\n    print_page();\n    function print_page(){\n      window.print();\n      window.close();\n    }\n\n</script>"
  },
  {
    "path": "profit_report.php",
    "content": "<?php\ninclude 'layout/header.php';\ninclude \"page/report/profit_report.php\";\ninclude \"layout/footer.php\";\n\n?>"
  },
  {
    "path": "program_action.php",
    "content": "<?php\n\ninclude \"layout/header_script.php\";\ninclude \"page_action/program_page_action.php\";\n\n?>"
  },
  {
    "path": "program_list.php",
    "content": "<?php \n\ninclude \"layout/header.php\";\ninclude \"page/program/program_list.php\";\ninclude \"layout/footer.php\";\n\n\n?>"
  },
  {
    "path": "report.php",
    "content": "<?php\ninclude 'layout/header.php';\n\n$page=\"404.php\";\n$rep_page=array();\n$rep_page['expence_report']=\"expence_report.php\";\n$rep_page['profit_report']=\"profit_report.php\";\n$rep_page['attendence_report']=\"attend_report.php\";\n$rep_page['payment_report']=\"payment_report.php\";\n$rep_page['income_report']=\"income_report.php\";\n\nif(isset($_GET['type'])){\n\t\n\t$type=$_GET['type'];\n\t\n    if(array_key_exists($type,$rep_page)){\n    \t$page=$rep_page[$type];\n    \t$page=\"page/report/$page\";\n    }\n}\n\ninclude \"$page\";\ninclude \"layout/footer.php\";\n\n?>"
  },
  {
    "path": "report_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\ninclude \"page_action/report/report.php\";\n\n\n?>"
  },
  {
    "path": "result.php",
    "content": "<?php\n\n\n\ninclude \"layout/header.php\";\ninclude \"page/result/public_result.php\";\ninclude \"layout/footer.php\";\n\n\n?>\n\n <script language=\"JavaScript\" src=\"page/result/result.js\" type=\"text/javascript\"></script>"
  },
  {
    "path": "result_action.php",
    "content": "<?php\ninclude 'layout/header_script.php';\ninclude \"page_action/result/result_action.php\";\n\n?>"
  },
  {
    "path": "result_list.php",
    "content": ""
  },
  {
    "path": "script/account/account.php",
    "content": "<?php\n\n\nclass account {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\n  public function expence_list(){\n    $sql=\"select expence.*,user.uname as user from expence\n    INNER JOIN user ON expence.add_by=user.id  ORDER BY expence.id DESC\n    \";\n  \t$info=$this->db->get_sql_array($sql);\n  \treturn $info;\n  }\n\n  public function income_list(){\n    $sql=\"select income.*,user.uname as user from income\n    INNER JOIN user ON income.add_by=user.id  ORDER BY income.id DESC\n    \";\n    $info=$this->db->get_sql_array($sql);\n    return $info;\n  }\n\n\n  public function get_separate_expance($id){\n    $sql=\"select * from expence where id=$id\";\n    $info=$this->db->get_sql_array($sql);\n    return $info[0];\n  }\n  public function get_separate_income($id){\n    $sql=\"select * from income where id=$id\";\n    $info=$this->db->get_sql_array($sql);\n    return $info[0];\n  }\n\n  public function expence_category(){\n  \t$sql=\"select * from expence_category\";\n  \t$info=$this->db->get_sql_array($sql);\n  \treturn $info;\n  }\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/api/api.php",
    "content": "<?php\n\n\nclass api {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/attendence/attendence.php",
    "content": "<?php\n\n\nclass attendence {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n public function get_attendence_info($program_id,$batch_id,$student_id,$date){\n \t$date=date('Y-m-d', strtotime($date));\n \t$sql=\"select * from student_attendence where program_id=$program_id and student_id=$student_id and batch_id=$batch_id and date='$date'\";\n \t$info=$this->db->get_sql_array($sql);\n    if(isset($info[0]))return $info[0];\n\n    return -1;\n }\n\n public function get_present_list($program_id,$batch_id,$date){\n \t$date=date('Y-m-d', strtotime($date));\n \t$sql=\"select * from student_attendence where program_id=$program_id and batch_id=$batch_id and date='$date' and status=1\";\n \t$info=$this->db->get_sql_array($sql);\n    return $info;\n }\n\n public function get_absent_list($program_id,$batch_id,$date){\n \t$date=date('Y-m-d', strtotime($date));\n \t$sql=\"select * from student_attendence where program_id=$program_id and batch_id=$batch_id and date='$date' and status=0\";\n \t$info=$this->db->get_sql_array($sql);\n    return $info;\n }\n\n public function get_absent_present_list($program_id,$batch_id,$date){\n \t$date=date('Y-m-d', strtotime($date));\n \t$sql=\"select * from student_attendence where program_id=$program_id and batch_id=$batch_id and date='$date'\";\n \t$info=$this->db->get_sql_array($sql);\n    return $info;\n }\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/batch/batch.php",
    "content": "<?php\n\n/**\n*\n*/\n\nclass batch\n{\n\t\n\t public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     \n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n public function day($st){\n \t$day=array();\n \tfor($i=0; $i<strlen($st); $i++){\n \t\tif($st[$i]!=','){\n\n \t\t\tif($st[$i]=='1')$day[1]=\"Saturday\";\n \t\t    else if($st[$i]=='2')$day[2]=\"Sunday\";\n \t\t    else if($st[$i]=='3')$day[3]=\"Monday\";\n \t\t    else if($st[$i]=='4')$day[4]=\"Tuesday\";\n \t\t    else if($st[$i]=='5')$day[5]=\"Wednesday\";\n \t\t    else if($st[$i]=='6')$day[6]=\"Thursday\";\n \t\t    else if($st[$i]=='7')$day[7]=\"Friday\"; \n \n \t\t}\n \t}\n \treturn $day;\n }\n public function day_sort($st){\n  $day=array();\n  for($i=0; $i<strlen($st); $i++){\n    if($st[$i]!=','){\n\n      if($st[$i]=='1')$day[1]=\"Sat\";\n        else if($st[$i]=='2')$day[2]=\"Sun\";\n        else if($st[$i]=='3')$day[3]=\"Mon\";\n        else if($st[$i]=='4')$day[4]=\"Tue\";\n        else if($st[$i]=='5')$day[5]=\"Wed\";\n        else if($st[$i]=='6')$day[6]=\"Thu\";\n        else if($st[$i]=='7')$day[7]=\"Fri\"; \n \n    }\n  }\n  return $day;\n }\n\n public function day_index(){\n      $day[1]=\"Saturday\";\n      $day[2]=\"Sunday\";\n      $day[3]=\"Monday\";\n      $day[4]=\"Tuesday\";\n      $day[5]=\"Wednesday\";\n      $day[6]=\"Thursday\";\n      $day[7]=\"Friday\";\n      return $day;\n }\n\npublic function day_so_index(){\n      $day[1]=\"Sat\";\n      $day[2]=\"Sun\";\n      $day[3]=\"Mon\";\n      $day[4]=\"Tue\";\n      $day[5]=\"Wed\";\n      $day[6]=\"Thu\";\n      $day[7]=\"Fri\";\n      return $day;\n }\n\n\npublic function num_array($st){\n  $num=explode(',', $st);\n  return $num;\n } \n\n public function convert_arr($arr){\n //convert arr to string ex:a[2]={1,2} output: st=\"1,2\";\n   $st=\"\";\n   $st=implode(',', $arr);\n   return $st;\n } \n\n  public function batch_info(){\n      $info=array();\n      $sub=array();\n     $sql=\"select * from batch ORDER BY id DESC\";\n     $res=$this->select($sql);\n     while ($row=mysqli_fetch_array($res)) {\n     \t$id=$row['id'];\n     \t$sub[\"id\"]=$row['id'];\n     \t$sub[\"name\"]=$row['name'];\n     \t$sub[\"start\"]=$row['start'];\n     \t$sub[\"end\"]=$row['end'];\n      $sub['day_sort']=$this->day_sort($row['day']);\n     \t$sub[\"day\"]=$this->day($row['day']);\n      $sub[\"day_string\"]=$this->convert_arr($sub[\"day\"]);\n      $sub['day_sort_string']=$this->convert_arr($sub['day_sort']);;\n      $sub[\"day\"]=$row['day'];\n      $info[$id]=$sub;\n     }\n\t return $info;\n  }\n\n  public function selectd_day($st){\n         $arr=$this->num_array($st);\n         $day_index=$this->day_index();\n         $mark=array();\n         for($i=1; $i<=7; $i++)$mark[$i]=0;\n\n         for($i=0; $i<sizeof($arr); $i++){\n             $mark[$arr[$i]]=1;\n         }\n\n         echo \"<div class='day_header'>Select Day</div>\n    <div class='day_body'>\";\n\n         for($i=1; $i<=7; $i++){\n           $day=$day_index[$i];\n           if($mark[$i]==1){\n             echo \"<b><input type='checkbox' name='batch_day[]' value='$i' checked> $day<br></b>\";\n           }\n           else{\n             echo \"<b><input type='checkbox' name='batch_day[]' value='$i'> $day<br></b>\";\n           }\n\n         }\n\n         echo \"</div>\";\n  }\n\n\n  public function get_batch_name($batch_id){\n  $info=$this->batch_info();\n  if($batch_id==0)$res=\"\";\n  else $res=\"'\".$info[$batch_id]['name'].\"'\";\n  return $res;\n}\n\n}\n\n?>"
  },
  {
    "path": "script/chat/chat.php",
    "content": "<?php\n\n\nclass chat {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     $this->user_ob=new user();\n\t $this->user=$this->user_ob->get_user_info();\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\npublic function get_chat_list(){\n\t$sql=\"select * from chat\";\n\t$info=$this->db->get_sql_array($sql);\n\treturn $info;\n}\n\npublic function get_chat_last_list($per){\n\t$sql=\"select * from chat ORDER BY id DESC\";\n\t$info=$this->db->get_sql_array($sql);\n    $user_info=$this->user;\n    \n    $c=0;\n\n    foreach ($info as $key => $value) {\n    \t$user_id=$value['user_id'];\n    \t$permit=$user_info[$user_id]['permit'];\n        if($per==\"techserm\" && $permit>5)$c++;\n        else if($per==\"ins\" && $permit<=5)$c++;\n        else break;\n    }\n\n return $c;\n}\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/contest/contest.php",
    "content": "<?php\n\n/**\n*\n*/\n\nclass contest\n{\n\t\n\t public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     \n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n\n\n\n  public function submission_info(){\n      $info=array();\n      $sub=array();\n     $sql=\"select * from submission\";\n     $res=$this->select($sql);\n     while ($row=mysqli_fetch_array($res)) {\n           $id=$row['id'];\n           $sub['id']=$id;\n           $sub['user']=$row['user'];\n           $sub['pid']=$row['pid'];\n           $sub['status']=$row['status'];\n           $sub['date']=$row['date'];\n          $info[$id]=$sub;\n     }\n\t return $info;\n  }\n\npublic function user(){\n   $info=$this->submission_info();\n   $user_id=array();\n   $visit=array();\n   for($i=0; $i<50; $i++)$visit[$i]=0;\n   $user_array=array();\n   foreach ($info as $key => $value) {\n      $uid=$value['user'];\n      if($visit[$uid]==0){\n          $visit[$uid]=1;\n          array_push($user_array, $uid);\n      }\n   }\n   return $user_array;\n}\n\n\n\n\n\n\n}\n\n?>"
  },
  {
    "path": "script/exam/exam.js",
    "content": "function select_program() {\n\t\nprogram_id=document.getElementById(\"add_program_select\").value;\n//alert(program_id);\n\n    $.ajax({\n      type: 'POST',\n        url: 'exam_action.php',\n        data: {\n            select_subject: program_id\n        },\n        success: function(response) {\n          //alert(\"Yay!\");\n            document.getElementById(\"subject_field\").innerHTML =response;\n            \n        }\n    });\n\n}\n\nfunction select_program_id(id){\n\tdiv_sub=\"subject_field_\"+id;\n\tdiv_pro=\"update_program_id_\"+id;\n\tprogram_id=document.getElementById(div_pro).value;\n\tmake=\"update_select_subject_\"+id;\n   // alert(program_id);\n\n    $.ajax({\n      type: 'POST',\n        url: 'exam_action.php',\n        data: {\n            select_subject_id: program_id,\n            select_id:id\n        },\n        success: function(response) {\n          //alert(\"Yay!\");\n\n            document.getElementById(make).innerHTML =response;\n\n            document.getElementById(div_id).value=\"\";\n            \n            \n        }\n    });\n}\n\n\nfunction select_subject(id){\n\n\tdiv_id=\"update_subject_id_\"+id;\n\tsub_id=\"update_select_subject_\"+id;\n\n\tsubject_id=document.getElementById(sub_id).value;\n\t//alert(subject_id);\n\tdocument.getElementById(div_id).value=subject_id;\n}\n\nfunction total(){\n\tmcq=document.getElementById(\"mcq\").value;\n\twritten=document.getElementById(\"written\").value;\n\ttotal=mcq+written;\n\tdocument.getElementById(\"total\").value=total;\n}\n\nfunction test(id){\n\talert(\"saf\");\n\tm_id=\"test_\"+id;\n\tdocument.getElementById(m_id).innerHTML=\"<option>hamza</option>\";\n}"
  },
  {
    "path": "script/exam/exam.php",
    "content": "<?php\n\n\nclass exam_old {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\n\n\n\npublic function get_exam_info(){\n\t$sql=\"select * from exam  ORDER BY id DESC\";\n\t$info=$this->db->get_sql_array($sql);\n\t$res=array();\n\tforeach ($info as $key => $value) {\n\t\t$id=$value['id'];\n\t\t$mcq=$value['mcq'];\n        if($mcq==0 || $mcq==\"\")$value['mcq']=\"N/A\";\n        $written=$value['written'];\n        if($written==0 || $written==\"\")$value['written']=\"N/A\";\n        $res[$id]=$value;\n\t}\n\n  \treturn $res;\n}\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/exam/exam_category.php",
    "content": "<?php\n\n\nclass exam {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\n  public function get_exam_category($category_id=0,$program_id=0){\n  \t\n    $where_category=($category_id==0)?\"\":\"exam_category.id=$category_id\";\n    $where_program=($program_id==0)?\"\":\"exam_category.program_id=$program_id\";\n    if($where_program!=\"\")\n      $where_program=($where_category==\"\")?$where_program:\" and $where_program\";\n\n    $where=($program_id==0 && $category_id==0)?\"\":\"where $where_category $where_program\";\n\n  \t$sql=\"\n  \tselect \n  \texam_category.*,\n  \tprogram.name as program_name,program.id as program_id,\n  \tuser.uname as add_by\n  \tfrom exam_category\n  \tINNER JOIN program ON program.id=exam_category.program_id\n  \tINNER JOIN user ON user.id=exam_category.add_by\n  \t$where\n  \tORDER BY exam_category.id DESC\n  \t\n  \t\";\n\n  \t$info=$this->db->get_sql_array($sql);\n  \treturn $info;\n  }\n\n  public function get_exam_category_option($program_id){\n    $option_list=$this->get_exam_category(0,$program_id); \n    foreach ($option_list as $key => $value) {\n      $category_id=$value['id'];\n      $category_name=$value['category_name'];\n      echo \"<option value='$category_id'>$category_name</option>\";\n    }\n  }\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/graph/graph.php",
    "content": "<?php\n\n\nclass graph {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\npublic function get_last_sms_data($days){\n\t\n\t$data=array();\n    $today=$this->db->date();\n\n\tfor ($i=$days-1; $i>=0; $i--)\n\t{\n\t\t$date=date('Y-m-d', strtotime($today .\" +$i days ago\"));\n\t\t$date1=date('Y-m-d', strtotime($date .\" -1 days ago\"));\n\n    \t$sql=\"select SUM(len) as total_sms from sms_list\n    \t\twhere (date BETWEEN CAST('$date' AS DATE) AND CAST('$date1' AS DATE))\n    \t\";\n    \t\n    \t$info=$this->db->get_sql_array($sql);\n        \n        $data1=array();\n        $total_data=(int)$info[0]['total_sms'];\n        \n        $data1['y']=$total_data;\n    \t$data1['label']=date('d M Y', strtotime($date));\n    \tarray_push($data, $data1);\n\t}\n\n\t$data=json_encode($data);\n\treturn $data;\n}\n\npublic function get_site_activity_data($days){\n\t$data=array();\n    $today=$this->db->date();\n\n\tfor ($i=$days-1; $i>=0; $i--)\n\t{\n\t\t$date=date('Y-m-d', strtotime($today .\" +$i days ago\"));\n\t\t$date1=date('Y-m-d', strtotime($date .\" -1 days ago\"));\n\n    \t$sql=\"select COUNT(*) as total_data from site_activity\n    \t\twhere (date BETWEEN CAST('$date' AS DATE) AND CAST('$date1' AS DATE))\n    \t\";\n    \t$info=$this->db->get_sql_array($sql);\n        \n        $data1=array();\n        $total_data=(int)$info[0]['total_data'];\n        \n        $data1['y']=$total_data;\n    \t$data1['label']=date('d M Y (l)', strtotime($date));\n    \tarray_push($data, $data1);\n\t}\n\n\t$data=json_encode($data);\n\treturn $data;\n}\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/id_card/id.php",
    "content": "<?php\n\n\nclass id_card {\n   \n\n//starting connection\n\npublic $student;\npublic $program;\npublic $batch;\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n    $batch_ob=new batch();\n    $this->batch=$batch_ob->batch_info();\n\n\t$program_ob=new program();\n\t$this->site=new site_content();\n\t$this->program=$program_ob->get_program_info();\n\n    $this->student_ob=new student();\n    $this->student=$this->student_ob->get_student_info();\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\npublic function get_printable_id($program_id,$batch_id,$student_id){\n\t$visit_program=array();\n\t$visit_batch=array();\n\t$visit_student=array();\n\n\tfor($i=0; $i<300007; $i++){\n\t\t$visit_program[$i]=0;\n\t    $visit_batch[$i]=0;\n\t    $visit_student[$i]=0;\n\t}\n\n\tforeach ($this->program as $key => $value) {\n\t\t$id=$value['id'];\n\t\tif($id==$program_id || $program_id==0){\n\t\t\t$visit_program[$id]=1;\n\t\t}\n\t}\n\n   foreach ($this->batch as $key => $value) {\n\t\t$id=$value['id'];\n\t\tif($id==$batch_id || $batch_id==0){\n\t\t\t$visit_batch[$id]=1;\n\t\t}\n\t}\n\n\t\n\tforeach ($this->student as $key => $value) {\n\t\t$id=$value['id'];\n\t\t$batch1=$value['batch'];\n\t\t$program1=$value['program'];\n\t\tif($visit_program[$program1]==1){\n\t\t\tif($visit_batch[$batch1]==1){\n\t\t\t\tif($id==$student_id || $student_id==0){\n\t\t\t\t\t$visit_student[$id]=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n return $visit_student;\n}\n\npublic function make_name($name){\n  $name=substr($name, 0, 17);\n  return $name;\n}\n\npublic function get_separate_id_card($student_id,$program_id,$batch_id){\n  \n\n}\n\npublic function get_id_card($type=\"single\"){\n\t$float=\"\";\n\tif($type!=\"single\")$float=\"float: left;\";\n ?>\n\n<div class=\"id_card\">\n<div class=\"card_box\">\n  <div class=\"card_header\">\n  \t<div class=\"font_name\">\n  \t\t<?php echo $this->db->site_name; ?>\t\n  \t</div>\n  \t\t<b>Address: </b><?php echo $this->db->address; ?><br/>\t\n  \t\t<b>Phone: </b><?php echo $this->db->phone; ?><br/>\n  \t\t<b>Email: </b><?php echo $this->db->email; ?>\n  </div>\n\n  <div class=\"box_body\">\n    <img src=\"<?php echo \"upload/student_photo/10051.jpg\"; ?>\" class=\"img_card\" align=\"right\">\n    <div class=\"title\">ID Card</div>\n        <div class=\"field\">\n          <div class=\"name_field\">\n      <div class=\"id_field\">Student Name : </div> <div class=\"inf\"><b><?php echo \"name\"; ?></b></div>\n      </div><div class=\"name_field\">\n      <div class=\"id_field\">Id Number : </div> <div class=\"inf\"><b><?php echo \"id\"; ?></b></div>\n      </div>\n\n      <div class=\"name_field\">    \n      <div class=\"id_field\">Program :</div>\n      <div class=\"inf\"><b><?php echo \"program_name\"; ?></b></div>\n      </div>\n\n      <div class=\"name_field\">    \n      <div class=\"id_field\">Batch :</div> <div class=\"inf\"><b><?php echo \"batch_name (start - end)\"; ?></b></div>\n      </div>\n      <div class=\"name_field\">    \n      <div class=\"id_field\">Duration :</div> <div class=\"inf\"><b><?php echo \"duration\"; ?></b></div>\n      </div>\n    </div>\n    \n  </div> \n</div>\n </div>\n<style type=\"text/css\">\n\t\n\n.id_card .box1{\n  height: auto;\n  overflow: auto;\n  padding: 15px;\n  overflow: auto;\n  margin-left: 50px;\n\n}\n.id_card .card_box{\n\toverflow: hidden;\n\tbackground: #eeeeee;\n\theight: 260px;\n\twidth: 350px;\n\tborder-radius: 0px;\n\tborder-style: solid;\n\tborder-color: #2E363F;\n\tborder-width: 2px;\n\t<?php echo \"$float\"; ?>\n\tmargin-right: 10px;\n\tmargin-bottom: 15px;\n\tpage-break-before: auto; /* 'always,' 'avoid,' 'left,' 'inherit,' or 'right' */\n    page-break-after: auto; /* 'always,' 'avoid,' 'left,' 'inherit,' or 'right' */\n    page-break-inside: avoid; \n}\n\n.id_card .card_header{\n\tbackground-color: #2E363F;\n\tpadding: 5px;\n\tcolor: #f5f5f5;\n\tfont-size: 12px;\n}\n\n.id_card .font_name{\n\tfont-size: 18px;\n\tmargin-left: 0px;\n\tfont-weight: bold;\n}\n\n.id_card .img_card{\n\theight: 100px;\n\twidth: 80px;\n\toverflow: visible;\n\tmargin-top: -35px;\n\tmargin-right: 5px;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tborder-radius: 2px;\n\tfloat: right;\n}\n\n.id_card .title{\n\tbackground-color: #2E363F;\n\theight: 20px;\n\twidth: 100px;\n\tmargin-top: 0px;\n\tborder-radius: 0% 0% 100px 100px;\n\tfont-weight: bold;\n\ttext-align: center;\n\tfont-size: 15px;\n\tmargin-left: 33%;\n\tpadding: 2px;\n\tcolor: #ffffff; \n\tmargin-bottom: 7px;\n\t\n\n}\n\n.id_card .id_field{\n\tbackground-color: #BDC1CB; \n\twidth: 98px;\n\tfont-size: 12px;\n\tfont-weight: bold;\n\tfloat: left;\n\tpadding: 1px;\n\tmargin-right: 5px;\n\n}\n\n.id_card .inf{\n\tmargin-right: 5px;\n\tfont-size: 14px;\n}\n\t\n.id_card .barcode{\n   text-align: center;\n   height: 30px;\n   width: 200px;\n   margin-top: 5px;\n}\t\n\n.id_card .barcode_div{\n\tborder-style: solid;\n\tborder-width: 1px 0px 0px 0px;\n\tborder-color: #BDC1CB;\n\tmargin-top: 5px;\n\n}\n\n.id_card .box_body{\n\n}\n\n.id_card .name_field{\n\tmargin-bottom: 0px;\n}\n\n</style>\n\n<?php\n}\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/id_card/id_card.js",
    "content": "function program(){\n\nprogram_id=document.getElementById(\"program_select\").value;\n\n  $.ajax({\n        type: 'POST',\n        url: 'id_card_action.php',\n        data: {\n            select_program: program_id\n        },\n        success: function(response) {\n          //alert(\"Yay!\");\n            \n            document.getElementById(\"batch_div\").innerHTML =response;\n            student_update();\n            batch();\n            preview_id_card();\n        }\n    });\n}\n\nfunction student_update(){\n\n   program_id=document.getElementById(\"program_select\").value;\n   batch_id=document.getElementById(\"batch_select\").value;\n   student_id=document.getElementById(\"student_select\").value;\n//test();\n   //alert(\"gjf\");\n   preview_id_card();\n  \n}\n\nfunction update_random(){\n  \n}\n\n\nfunction batch(){\n\n  program_id=document.getElementById(\"program_select\").value;\n  batch_id=document.getElementById(\"batch_select\").value;\n\n   $.ajax({\n        type: 'POST',\n        url: 'id_card_action.php',\n        data: {\n            select_batch: batch_id,\n            program_id:program_id\n        },\n        success: function(response) {\n           //alert(\"Yay!\");\n            generate_button(program_id,batch_id,0);\n            document.getElementById(\"student_div\").innerHTML =response;\n            student_update();\n            preview_id_card();\n\n            \n        }\n    });\n}\n\nfunction test(){\n  alert(\"asf\");\n}\n\nfunction generate_button(program_id,batch_id,student_id){\n  program_id=\"program=\"+program_id+\"&\";\n  student_id=\"student=\"+student_id;\n  batch_id=\"batch=\"+batch_id+\"&\"\n  link=\"print_id_card.php?\"+program_id+batch_id+student_id;\n\n   //alert(link);\n  \n}\n\nfunction get_link(){\n\n program_id=document.getElementById(\"program_select\").value;\n batch_id=document.getElementById(\"batch_select\").value;\n student_id=document.getElementById(\"student_select\").value;\n\n  program_id=\"program=\"+program_id+\"&\";\n  student_id=\"student=\"+student_id;\n  batch_id=\"batch=\"+batch_id+\"&\"\n  link=\"print_id_card.php?\"+program_id+batch_id+student_id;\nreturn link;\n}\n\n\nfunction preview_id_card(){\n  program_id=document.getElementById(\"program_select\").value;\n  batch_id=document.getElementById(\"batch_select\").value;\n  student_id=document.getElementById(\"student_select\").value;\n  $.ajax({\n        type: 'POST',\n        url: 'id_card_action.php',\n        data: {\n            preview_id_card: program_id,\n            batch_id:batch_id,\n            student_id:student_id\n        },\n        beforeSend: function() {\n              loader(\"preview_id_card\");\n          },\n        success: function(response) {\n          //alert(\"Yay!\");\n            close_loader(\"preview_id_card\");\n            document.getElementById(\"preview_id_card\").innerHTML =response;\n            \n            \n        }\n    });\n\n\n}\n\nfunction print_id_card(){\n\nlink=get_link();\n//alert(\"hey\");\n window.open(link, 'newwindow', 'width=900,height=600'); \n              return false;\n}\n\nfunction loader(divname){\n  document.getElementById(divname).innerHTML = \"<center><img style='margin-top:35px' src='upload/site_content/processing1.gif' /></center>\";\n}\nfunction close_loader(divname){\n  document.getElementById(divname).innerHTML = \"\";\n}"
  },
  {
    "path": "script/id_card/id_card.php",
    "content": "<?php\n\n\nclass id_card {\n   \n\n//starting connection\n\npublic $student;\npublic $program;\npublic $batch;\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     $batch_ob=new batch();\n     $this->batch=$batch_ob->batch_info();\n     $this->site=new site_content();\n\t$program_ob=new program();\n\t$this->program=$program_ob->get_program_info();\n\n    $this->student_ob=new student();\n    $this->student=$this->student_ob->get_student_info();\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\npublic function make_string($name,$size){\n  $len=strlen($name);\n  if($len<=$size)return $name;\n  $name=substr($name, 0, $size-2);\n  return $name.\"..\";\n}\n\n\npublic function get_id_card($data){\n\n\n$this->id_card_css();\n\necho \"<div class='row' style=''>\";\n$c=0;\n $student_info=$this->student;\nforeach ($data as $key => $info) {\n  $c++;\n  $student_id=$info['student_id'];\n  $student_info1=$student_info[$student_id];\n\n  $program_id=$info['program_id'];\n  $batch_id=$info['batch_id'];\n\n  $student_name=$this->student[$student_id]['name'];\n  $program_name=\"MD.Anawar Bin Kalif MD.Anawar Bin Kalif Bin Kalif Bin Kalif\";\n  $batch_name=$this->batch[$batch_id]['name'];\n  $batch_day=$this->batch[$batch_id]['day_string'];\n  $batch_time=$this->batch[$batch_id]['start'].\" - \".$this->batch[$batch_id]['end'];\n  $start=$this->program[$program_id]['start'];\n  $end=$this->program[$program_id]['end'];\n  $start=date(\"M Y\",strtotime($start));\n  $end=date(\"M Y\",strtotime($end));\n  if($start==$end)$duration=$start;\n  else $duration=\"$start - $end\";\n\n\n  $photo=$student_info1['photo'];\n\n  $father_name=$student_info1['father_name'];\n  $father_name=$this->make_string($father_name,30);\n  $father_name=($father_name==\"\")?\"-\":$father_name;\n\n  $mother_name=$student_info1['mother_name'];\n  $mother_name=$this->make_string($mother_name,30);\n  $mother_name=($mother_name==\"\")?\"-\":$mother_name;\n\n  $father_mobile=$student_info1['father_mobile'];\n  $father_mobile=(strlen($father_mobile)<11)?\"\":$father_mobile;\n  $mother_mobile=$student_info1['mother_mobile'];\n  $mother_mobile=(strlen($mother_mobile)<11)?\"\":$mother_mobile;\n\n  $mobile=$father_mobile.(($mother_mobile==\"\")?\"\":\", \".$mother_mobile);\n  $mobile=$this->make_string($mobile,30);\n  $mobile=($mobile==\"\")?\"-\":$mobile;\n\n  $address=$student_info1['address'];\n  $address=$this->make_string($address,45);\n  $address=($address==\"\")?\"-\":$address;\n\n  $student_name=$this->make_string($student_name,27);\n  $program_name1=$this->make_string($program_name,45);\n  $program_name=$this->make_string($program_name,30);\n  \n  $batch_time=$this->make_string($batch_time,34);\n  $barcode=$this->site->barcode($student_id);\n  \n  $title=$this->db->site_name;\n  $title=$this->make_string($title,34);\n  $in_add=$this->db->address;\n  $in_add=$this->make_string($in_add,42);\n\n  $margin_right=($c%2==1)?\"margin_id_card\":\"\";\n\n ?>\n\n\n\n\t\n<div class=\"col-md-4 id_card <?php echo \"$margin_right\"; ?>\" style='float: left;' id=\"\" style=\"\">\n\n\n<div class=\"card_box\">\n  <div class=\"card_header\">\n  \t<div style=\"float: left; margin-right: 5px;\">\n  \t\t<img src=\"<?php echo $this->db->logo; ?>\" class=\"card_logo\">\n  \t</div>\n  \t<div style=\"\">\n  \t\t<div class=\"font_name\">\n  \t\t\t<?php echo \"$title\"; ?>\t\n  \t\t</div>\n  \t\t<b></b><i class=\"fa fa-map-marker\"></i> <?php echo $in_add; ?><br/>\n  \t\t<b></b><i class=\"fa fa-phone\"></i> Phone: </b><?php echo $this->db->phone; ?>\n  \t</div>\t\n  </div>\n\n  <div class=\"id_box_body\">\n    <img id=\"img_card\" src=\"<?php echo \"$photo\"; ?>\" class=\"img-tumb img_card\" align=\"right\">\n    <div class=\"id_title\">ID Card</div>\n    <div style=\"margin-top: 8px;\"></div>\n      <div class=\"field\">\n        \n      \t<div class=\"name_field\">\n      \t\t<span class=\"id_field\">Student Name : </span> <span class=\"inf\"><?php echo \"$student_name\"; ?></span>\n      \t</div>\n    \n\t      <div class=\"name_field\">\n\t      \t<span class=\"id_field\">Student ID : </span> <span class=\"inf\"><?php echo \"$student_id\"; ?></span>\n\t      </div> \n\n\t      <div class=\"name_field\">    \n\t      \t<span class=\"id_field\">Father Name :</span>\n\t      \t<span class=\"inf\"><?php echo \"$father_name\"; ?></span>\n\t      </div>\n\t      <div class=\"name_field\">    \n\t      \t<span class=\"id_field\">Mother Name :</span>\n\t      \t<span class=\"inf\"><?php echo \"$mother_name\"; ?></span>\n\t      </div>\n\n\t      <div class=\"name_field\">    \n\t      <span class=\"id_field\">Mobile :</span> <span class=\"inf\"><?php echo \"$mobile\"; ?></span>\n\t      </div>\n\t      <div class=\"name_field\">    \n\t      <span class=\"id_field\">Address :</span> <span class=\"inf\"><?php echo \"$address\"; ?></span>\n\t      </div>\n        <div class=\"field1\"></div>\n    </div>\n  </div>\n\n \n \t<div class=\"card_footer\">\n    \t<center>\n  \t\t<img src=\"<?php echo $barcode; ?>\" class=\"barcode\">\n  \t\t\n  \t\t</center>\n  \t</div>\n\n</div>\n\n\n\n </div>\n\n<!-- end id card -->\n\n\n<?php  \n}\n\necho \"</div>\";\n\n}\n\n\npublic function id_card_css(){\n\t\n?>\n<style type=\"text/css\">\n\n@import \"style/lib/font-awesome/css/font-awesome.css\";\n .id_card{ \n \theight: auto;\n }\n\n @media print {\n \t\n   .margin_id_card{\n       margin-right: 15px;\n   }\n\n    @page {\n     \tsize: A4; /* DIN A4 standard, Europe */\n      \tmargin:none !important;\n      \tcontent: counter(page);\n    }\n }\n .img-tumb{\n  display: inline-block;\n  max-width: 100%;\n  height: auto;\n  padding: 4px;\n  line-height: 1.42857143;\n  background-color: #ffffff;\n  border: 1px solid #ddd;\n  border-radius: 4px;\n  -webkit-transition: all .2s ease-in-out;\n          transition: all .2s ease-in-out;\n }\t\n\n .img_card{\n  height: 75px;\n  width: 65px;\n  overflow: visible;\n  margin-top: 5px;\n  margin-right: 5px;\n  \n  float: right;\n}\n\n .box1{\n  height: auto;\n  overflow: auto;\n  padding: 15px;\n  overflow: auto;\n  margin-left: 50px;\n\n}\n\n.field1 {\n   background: url(<?php echo $this->db->logo; ?>) no-repeat;\n   margin-top: -110px;\n   margin-left: 125px;\n   background-size: 100% 100%;\n   height: 110px;\n   width: 120px;\n   \n   opacity: 0.1;\n\n  \n}\n\n\n.card_box{\n\toverflow: hidden;\n\tbackground: #eeeeee;\n\theight: 260px;\n\twidth: 374px;\n\tborder-radius: 0px;\n\tborder-style: solid;\n\tborder-color: #2E363F;\n\tborder-width: \n    float: left;\n    \n\tmargin-bottom: 15px;\n\tpage-break-before: auto; /* 'always,' 'avoid,' 'left,' 'inherit,' or 'right' */\n    page-break-after: auto; /* 'always,' 'avoid,' 'left,' 'inherit,' or 'right' */\n    page-break-inside: avoid; \n}\n.card_header{\n\tbackground-color: #2E363F;\n\tpadding: 5px;\n\tcolor: #EEEEEE;\n\theight: 60px;\n\tfont-family: \"Palatino Linotype\", \"Book Antiqua\", Palatino, serif;\n    overflow: hidden;\n\tfont-size: 13px;\n}\n.font_name{\n\tfont-size: 18px;\n\tmargin-left: 0px;\n\tfont-weight: bold;\n    font-family: \"Palatino Linotype\", \"Book Antiqua\", Palatino, serif;\n\tcolor: #ffffff;\n} \n\n.id_title{\n\tbackground-color: #2E363F;\n\theight: 20px;\n\twidth: 100px;\n\tmargin-top: 0px;\n\tborder-radius: 0% 0% 100px 100px;\n\tfont-family: \"Palatino Linotype\", \"Book Antiqua\", Palatino, serif;\n\tfont-weight: bold;\n\ttext-align: center;\n\tfont-size: 15px;\n\tmargin-left: 33%;\n\tpadding: 2px;\n\tcolor: #ffffff; \n\tmargin-bottom: 7px;\n}\n.card_footer{\n\t\n\tborder-width: 1px 0px 0px 0px;\n\tborder-color: #bdc3c7;\n\tborder-style: solid;\n\tcolor: #ffffff; \n\toverflow: hidden;\n\theight: 35px;\n\tfont-size: 13px;\n}\n\n.id_field{\n\tbackground-color: #BDC1CB; \n\twidth: 100px;\n\tfont-size: 12px;\n\tfont-weight: bold;\n\tfloat: left;\n\tpadding: 1px 1px 1px 1px;\n\ttext-align: right;\n\tmargin-right: 5px;\n\tdisplay: block\n\n}\n\n.inf{\n\twidth: 100px;\n\tfont-size: 12px;\n\tfont-weight: bold;\n\tpadding: 1px 1px 1px 1px;\n\t\n}\n\t\n.barcode{\n   text-align: center;\n   height: 30px;\n   width: 200px;\n   margin-top: 5px;\n}\t\n\n.barcode_div{\n\tborder-style: solid;\n\tborder-width: 1px 0px 0px 0px;\n\tborder-color: #BDC1CB;\n\tmargin-top: 5px;\n\n}\n\n.id_box_body{\n    height: 143px;\n    margin-bottom: 5px;\n    overflow: hidden;\n    \n}\n\n.name_field{\n\tmargin-bottom: 3px;\n}\n.card_logo{\n\theight: 60px;\n\twidth: 50px;\n}\n\n</style>\n\n<?php\n}\n\n\n}\n\n\n\n\n?>\n\n"
  },
  {
    "path": "script/install/install.php",
    "content": "<?php\n\n\nclass install {\n   \npublic $config_file=\"config/db.php\";\n\n public function __construct(){   \n     //$this->step_install();\n }\n\n public function step_install(){\n \t$res=$this->check_config_file();\n \tif($res==0)return 1;\n \treturn 2;\n }\n\n public function check_config_file(){\n \t\n\t$st=$this->get_file_data($this->config_file);\n\t$len=strlen($st);\n\tif($len>0)return 1;\n\treturn 0;\n }\n\n public function get_file_data($file_name){\n\t$data=file_get_contents($file_name);\n    $line=explode(\"\\n\",$data);\n\t$st=\"\";\n\tforeach($line as $newline){\n    \t$st=$st.$newline;\n\t}\n\treturn $st;\n }\n\n\n\n\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/notice/notice.php",
    "content": "<?php\n\nclass notice {\n   \n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\npublic function get_notice_info(){\n       $sql=\"select * from notice ORDER BY id DESC\";\n       $info=array();\n       $res=$this->select($sql);\n       while ($row=mysqli_fetch_array($res)) {\n       \t $id=$row['id'];\n       \t $sub_res['id']=$id;\n       \t $sub_res['title']=$row['title'];\n       \t $sub_res['description']=$row['description'];\n       \t $sub_res['date']=$row['date'];\n       \t $sub_res['add_by']=$row['add_by'];\n       \t $info[$id]=$sub_res;\n       }\n\n    return $info;\n}\n\npublic function test(){\n  echo \"hey\";\n}\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/payment/payment.js",
    "content": "function save_payment(){\n\ttotal=document.getElementById('total').value;\n\tpaid=document.getElementById(\"paid\").value;\n    due=document.getElementById(\"due_ammount\").value;\n    id=document.getElementById(\"id\").value;\n    date=document.getElementById(\"date\").value;\n    if(due==\"\"){\n    \talert(\"Fill Due Ammount Field\");\n    }\n    else if(paid==\"\"){\n       alert(\"Fill Paid Ammount Field\");\n    }\n    else if(due>0 && date==\"\"){\n    \talert(\"Fill Next Payment Date\");\n    }\n    else {\n       save(total,paid,due,date,id);\n    }\n}\n\nfunction save(total,paid,due,date,id){\n\n     $.ajax({\n        type: 'POST',\n        url: 'payment_action.php',\n        data: {\n            total: total,\n            paid: paid,\n            due: due,\n            date:date,\n            id: id\n        },\n        beforeSend: function() {\n          loader(\"sucess_payment\");\n        },\n        success: function(response) {\n           clear_val();\n           success('Payment Is successfully Taken');\n           document.getElementById(\"delete_msg\").innerHTML=\"\";\n           document.getElementById(\"sucess_payment\").innerHTML =response;\n           document.getElementById(\"meney_receipt\").innerHTML=\"<button class='btn btn-primary' id='print_money_receipt()'>Print Last Money Receipt</button>\";\n           update_field();\n        } \n    });\n}\n\n\n\nfunction paid_fun(){\n\ttotal=document.getElementById('total').value;\n\tpaid=document.getElementById(\"paid\").value;\n\tdue=total-paid;\n   if(paid<0){\n     alert(\"Paid Ammount Cannot Be negative\");\n     document.getElementById(\"due_ammount\").value=\"\";\n   }\n   else if(due<0){\n   \talert(\"Paid Ammount must Be smaller or equal then total ammount\");\n   \tdocument.getElementById(\"due_ammount\").value=\"\";\n   }\n   else{\n   \tdocument.getElementById(\"due_ammount\").value=due;\n   }\n}\n\nfunction clear_val(){\n\tdocument.getElementById(\"paid\").value=\"\";\n    document.getElementById(\"due_ammount\").value=\"\";\n    document.getElementById(\"date\").value=\"\";\n}\n\nfunction send_sms(id){\n\tpayment_id=document.getElementById(\"payment_id\").value;\n\t$.ajax({\n        type: 'POST',\n        url: 'payment_action.php',\n        data: {\n            send_sms: payment_id,\n            send_id: id\n        },\n        beforeSend: function() {\n          document.getElementById(\"Sending\").disabled = true;\n          document.getElementById(\"res\").innerHTML =\"<i class='fa fa-spinner fa-spin'></i> Sending\";\n          \n        },\n        success: function(response) {\n           //clear_val();\n            document.getElementById(\"res\").innerHTML =\"Sucessfully Send SMS\";\n            document.getElementById(\"Sending\").disabled = true;\n          \n          \n        }\n    });\n}\n \nfunction update_field(){\n\tid=document.getElementById(\"id\").value;\n\ttable_info(id);\n\tpayable_ammount(id);\n\tdue_ammount(id);\n}\n\nfunction payable_ammount(id){\n\t$.ajax({\n        type: 'POST',\n        url: 'payment_action.php',\n        data: {\n            payable_id: id\n        },\n        beforeSend: function() {\n          //document.getElementById(\"Sending\").innerHTML=\"Sending\";\n        },\n        success: function(response) {\n          document.getElementById(\"overview_paid\").innerHTML=response; \n        }\n    });\n}\n\nfunction due_ammount(id){\n\t$.ajax({\n        type: 'POST',\n        url: 'payment_action.php',\n        data: {\n            due_id: id\n        },\n        beforeSend: function() {\n          //document.getElementById(\"Sending\").innerHTML=\"Sending\";\n        },\n        success: function(response) {\n          document.getElementById(\"overview_due\").innerHTML=response;\n          document.getElementById(\"total\").value=response;\n          document.getElementById(\"due_ammount\").value=response;\n          \n        }\n    });\n}\n\nfunction table_info(student_id){\n\n  $.ajax({\n        type: 'POST',\n        url: 'payment_action.php',\n        data: {\n            table_info: student_id\n        },\n        success: function(response) {\n        document.getElementById(\"table_info\").innerHTML=response;  \n        }\n    });\n}\n  \nfunction delete_table(id){\n\tmodel_name=\"dalete\"+id;\n\t$.ajax({\n        type: 'POST',\n        url: 'payment_action.php',\n        data: {\n            delete_table: id\n        },\n        beforeSend: function() {\n          //document.getElementById(\"Sending\").innerHTML=\"Sending\";\n        },\n        success: function(response) {\n           hideModal()\n           update_field();\n           document.getElementById(\"delete_msg\").innerHTML=\"Sucessfully Payment Id Deleted\";\n        }\n    });\n}\n\nfunction hideModal(){\n  $(\".modal\").removeClass(\"in\");\n  $(\".modal-backdrop\").remove();\n  $('body').removeClass('modal-open');\n  $('body').css('padding-right', '');\n  $(\".modal\").hide();\n}\n\n\nfunction print_money_receipt(){\n\n  success('Payment Is successfully Taken');\n  \n}\n\nfunction loader(divname){\n  document.getElementById(divname).innerHTML = \"<center><img style='margin-top:35px' src='upload/site_content/processing1.gif' /></center>\";\n}\nfunction close_loader(divname){\n  document.getElementById(divname).innerHTML = \"\";\n}\n\nwindow.success = function(msg) {\n    var dom = '<div class=\"top-alert\"><div class=\"alert alert-success-alt alert-dismissable fade in \" role=\"alert\"><i class=\"glyphicon glyphicon-ok\"></i> ' + msg + '<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button></div></div>';\n    var jdom = $(dom);\n    jdom.hide();\n  $(\"body\").append(jdom);\n  jdom.fadeIn();\n  setTimeout(function() {\n    jdom.fadeOut(function() {\n      jdom.remove();\n    });\n  }, 2000);\n}\n"
  },
  {
    "path": "script/payment/payment.php",
    "content": "<?php\n\n\nclass payment {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     $this->student_ob=new student();\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\npublic function get_set_payment_list($data){\n\n  $program_id=$data['program_id'];\n  $batch_id=$data['batch_id'];\n  $type=$data['payment_type'];\n  $month=$data['month'];\n  $year=$data['year'];\n\n\n  $student_list=$this->make_student_list($program_id,$batch_id);\n  $student_main_list=$student_list;\n\n  $student_list=implode(',', $student_list);\n  $student_list=($student_list!=\"\")?\"student_id IN( $student_list)\":\"student_id=-1\";\n  \n  $sql=\"\n  select  \n    student_payment.student_id,\n    receive_payment.payment_id, \n    student_payment.total_fee,   \n    sum(receive_payment.pay) as total_pay ,\n    student_payment.total_fee-sum(receive_payment.pay) as total_due,\n    IF(student_payment.total_fee <=  sum(receive_payment.pay), 'Paid', 'Due') AS status\n    \n    from student_payment\n\n    INNER JOIN \n      ( select id, payment_id, sum(pay) as pay  from receive_payment GROUP by id)\n    receive_payment ON receive_payment.payment_id=student_payment.id \n    \n    where \n    program_id=$program_id and type=$type and month=$month and year=$year and $student_list \n    GROUP by payment_id\n  \";\n\n\n  $payment_list=$this->db->get_sql_array($sql);\n\n  $info=array();\n  foreach ($payment_list as $key => $value) {\n    $student_id=$value['student_id'];\n    $info[$student_id]=$value;\n  }\n\n  $info=$this->process_student_payment_list($student_main_list,$info,$program_id,$type);\n  return $info;\n}\n\npublic function make_student_list($program_id,$batch_id){\n  $student_list= $this->student_ob->get_student_list($program_id,$batch_id);\n  $student_new_list=array();\n  foreach ($student_list as $key => $value) {\n    array_push($student_new_list, $value['student_id']);\n  }\nreturn $student_new_list;\n}\n\npublic function process_student_payment_list($student_list,$payment_list,$program_id,$type){\n  $info=array();\n  $payment_id=-1;\n  \n  $sql=\"select * from program where id=$program_id\";\n  $program_info=$this->db->get_sql_array($sql);\n  $program_info=$program_info[0];\n  $total_fee=($type==1)?$program_info['fee']:$program_info['monthly_fee'];\n\n  foreach ($student_list as $key => $value) {\n    $student_id=$value;\n    $data=array();\n    if(isset($payment_list[$student_id]))$data=$payment_list[$student_id];\n    else {\n      $data['student_id']=$student_id;\n      $data['payment_id']=0;\n      $data['total_fee']=$total_fee;\n      $data['total_pay']=0;\n      $data['total_due']=$total_fee;\n      $data['status']=\"Due\";\n    }\n    $info[$student_id]=$data;\n  }\n\n  return $info;\n}\n\npublic function program_payment_info($data){\n  $info=$this->get_set_payment_list($data);\n  $total_student=count($info);\n  $paid_student=0;\n  \n  $total_fee=0;\n  $total_pay=0;\n  foreach ($info as $key => $value) {\n    $total_fee+=$value['total_fee'];\n    $total_pay+=$value['total_pay'];\n    $paid_student+=($value['status']==\"Paid\")?1:0;\n  }\n  $res=array();\n  $res['total_student']=$total_student;\n  $res['paid_student']=$paid_student;\n  $res['due_student']=$total_student-$paid_student;\n  $res['total_fee']=$total_fee;\n  $res['total_pay']=$total_pay;\n  $res['total_due']=$total_fee-$total_pay;\n  $res['paid_percent']=($total_pay/$total_fee)*100;\n  $res['paid_percent']=floor($res['paid_percent']);\n\n  return $res;\n\n}\n\npublic function get_payment_status_list($data){\n  $program_id=$data['program_id'];\n  $batch_id=$data['batch_id'];\n  $type=$data['payment_type'];\n  $month=$data['month'];\n  $year=$data['year'];\n\n  $student_list=$this->make_student_list($program_id,$batch_id);\n  \n  \n}\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/payment/set_payment.php",
    "content": "<?php\n\n\nclass set_payment {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     $this->program_ob=new program();\n     $this->program_info=$this->program_ob->get_program_info();\n     $this->student_ob=new student();\n     $this->site=new site_content();\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\n  public function get_set_payment_list(){\n  \t $sql=\"select * from set_payment ORDER BY id DESC\";\n     $res=$this->select($sql);\n     $info=array();\n     while($row=mysqli_fetch_array($res)) {\n       $sub=$this->db->process_mysql_array($row);\n       $id=$sub['id'];\n       $sub['month_name']=$this->get_month_name($sub['month']);\n       $info[$id]=$sub;\n     }\n\n    return $info;\n  }\n\n\n\n  public function get_month_name($month){\n  \t\n  \t$month_array=array(\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\");\n  \treturn $month_array[$month-1];\n  }\n\n  public function get_set_payment_list_by_id($program_id){\n  \t\n    $sql=\"select * from set_payment where program_id=$program_id ORDER BY id DESC\";\n    $info=$this->db->get_sql_array($sql);\n    $res=array();\n  \tforeach ($info as $key => $value) {\n      $per=$this->check_date_interver($program_id,$value['year'],$value['month']);\n      $value['month_name']=$this->get_month_name($value['month']);\n      if($per==1)array_push($res, $value);\n  \t}\n\n  \treturn $res;\n  }\n\n  public function get_student_payment_list($student_id,$program_id){\n      $info=$this->get_set_payment_list_by_id($program_id);\n      return $info;\n  }\n\n  public function get_student_payment_list_type($program_id,$student_id,$type=0){\n      $con=\"\";\n      if($type!=0)$con=\"and type=$type\";\n      $sql=\"select * from student_payment where program_id=$program_id and student_id=$student_id $con ORDER BY id DESC\";\n      $info=$this->db->get_sql_array($sql);\n      return $info;\n  } \n\n  public function receive_payment_info($payment_id){\n     $sql=\"\n    \n    select \n    receive_payment.date,receive_payment.payment_id,receive_payment.pay,receive_payment.id,\n    student.name as student_name,student.id as student_id,student.nick,\n    program.name as program_name,\n    student_payment.year,student_payment.month,student_payment.type,student_payment.note,\n    student_payment.total_fee,\n    user.uname as add_by\n    from receive_payment  \n    INNER JOIN student_payment ON student_payment.id=receive_payment.payment_id \n    INNER JOIN program ON program.id=student_payment.program_id \n    INNER JOIN student ON student.id=student_payment.student_id \n    INNER JOIN user ON user.id=receive_payment.add_by \n    WHERE receive_payment.id=$payment_id\n\n    \";\n\n     $info=$this->db->get_sql_array($sql);\n     if(!isset($info[0]))return -1;\n     $info=$info[0];\n\n\n     $payment_save_id=$info['payment_id'];\n     $sql=\"select SUM(pay) as due from receive_payment where payment_id=$payment_save_id and id<$payment_id\";\n     $info1=$this->db->get_sql_array($sql);\n     $total_pay=$info1[0]['due'];\n     $total_pay=($total_pay==\"\")?0:$total_pay;\n     $fee=$info['total_fee'];\n     $due=$fee-($total_pay+$info['pay']);\n     $info['total_pay']=$total_pay;\n     $info['due']=$due;\n\n     if($info['type']==2){\n      $info['month']=$this->get_month_name($info['month']);\n     }\n     else{\n      $info['month']=\"-\";\n      $info['year']=\"-\";\n     }\n     $type=$info['type'];\n     $info['type']=($info['type']==1)?\"Admission Fee\":\"Monthly Fee\";\n     \n     if($type==3)$info['type']=$info['note'];\n\n     $info['status']=($due<=0)?\"Paid\":\"Due\";\n     return $info;\n  }\n\n  public function get_set_payment_by_id($condition,$data=\"*\"){\n    $sql=\"select $data from set_payment where  $condition\";\n    $info=$this->db->get_sql_array($sql);\n    $info=$info[0];\n    return $info;\n  }\n  \n  public function get_payment_list($payment_id){\n    $sql=\"select * from receive_payment where  payment_id=$payment_id ORDER BY id DESC\";\n    $info=$this->db->get_sql_array($sql);\n    return $info;\n  }\n\n public function get_payment_receive_list($condition){\n  $sql=\"select id from student_payment where  $condition ORDER by id DESC\";\n  $info=$this->db->get_sql_array($sql);\n  $res=array();\n  $condition=\"\";\n  foreach ($info as $key => $value) {\n    $payment_id=$value['id'];\n    array_push($res, $payment_id);\n  }\n  $condition=implode(',',$res);\n  if($condition==\"\")return $info;\n\n  $sql=\"\n    select receive_payment.*,student_payment.program_id,student_payment.month,student_payment.year,student_payment.type,student_payment.note,program.name\n    from receive_payment \n    INNER JOIN student_payment ON receive_payment.payment_id=student_payment.id \n    INNER JOIN program ON program.id=student_payment.program_id\n    where receive_payment.payment_id IN ($condition) ORDER by receive_payment.id DESC\";\n  \n\n  $info=$this->db->get_sql_array($sql);\n\n  $sql=\"select id from student_payment where  $condition ORDER by id DESC\";\n\n  return $info;\n }\n\n\n\n\n public function check_date_interver($program_id,$year,$month){\n  $p_info=$this->program_ob->get_separate_program_info(\"start,end\",$program_id);\n  $start=$p_info['start'];\n  $end=$p_info['end'];\n     $info=$this->get_month_list($start,$end);\n     foreach ($info as $key => $value) {\n        $year1=$key;\n        foreach ($value as $key => $value1) {\n           $month1=$value1;\n           if($year1==$year && $month1==$month)return 1;\n        }\n     }\n     return 0;\n }\n\n  public function get_month_list($start,$end){\n     \n     $start=explode('-', $start);\n     $end=explode('-', $end);\n\n     $start_year=$start[0];\n     $start_month=$start[1];\n\n     $end_year=$end[0];\n     $end_month=$end[1];\n     $res=array();\n     if($start_year==$end_year){\n      $res1=array();\n     \tfor($i=$start_month; $i<=$end_month; $i++){\n            array_push($res1, (int)$i);\n     \t}\n\n       $res[$start_year]=$res1;\n     }\n     else{\n     \t  $res1=array();\n        for($i=$start_month; $i<=12; $i++){\n          array_push($res1, $i);\n     \t  }\n\n        $res[$start_year]=$res1;\n\n     \t  for($i=$start_year+1; $i<$end_year; $i++){\n     \t\t   $res1=array();\n           for($j=1; $j<=12; $j++){\n              array_push($res1, $j);\n           }\n           $res[$i]=$res1;\n        }\n          $res1=array();\n     \t  for($i=1; $i<=$end_month; $i++){\n            array_push($res1, $i);\n     \t  }\n        $res[$end_year]=$res1;\n\n     }\n\n     return $res;\n\n  }\n\n  public function get_program_payment_year_option($program_info){\n       $info=$this->get_month_list($program_info['start'],$program_info['end']);\n       echo \"<option value='-1'>Select Year</option>\";\n       foreach ($info as $key => $value) {\n         echo \"<option value='$key'>$key</option>\";\n       }\n  }\n\n  public function get_program_payment_month_option($program_info,$year){\n\n    $info=$this->get_month_list($program_info['start'],$program_info['end']);\n    $info=$info[$year];\n    echo \"<option value='-1'>Select Month</option>\";\n    foreach ($info as $key => $value) {\n      $month_name=$this->get_month_name($value);\n       echo \"<option value='$value'>$month_name</option>\";\n    }\n\n  }\n\n\n  public function check_insert($pid,$year,$month){\n      $info=$this->get_set_payment_list_by_id($pid);\n      foreach ($info as $key => $value) {\n         $year1=$value['year'];\n         $month1=$value['month'];\n         if($year1==$year && $month1==$month)return 1;\n      }\n      return 0;\n  }\n\n  public function money_recept_sms($id){\n    $info=$this->receive_payment_info($id);\n    $nick=$info['nick'];\n    $program_name=$info['program_name'];\n    $month=$info['month'];\n    $year=$info['year'];\n    $payment_id=$info['id'];\n    $pay=$info['pay'];\n    $due=$info['due'];\n    $type=$info['type'];\n  \n    $month_status=$type;\n\n    if($type==\"Monthly Fee\"){\n      $month_status=\"Monthly Fee '$month-$year'\";\n    }\n\n    $site_msg=$this->db->msg;\n\n    $msg=\"Dear $nick,\\nYour Payment $pay Tk for '$month_status' in '$program_name' is Successfully Taken.\\nYour Payment ID: $payment_id\\n\\n$site_msg\";\n    return $msg;\n  }\n\n  public function get_money_recept($id){\n    $info=$this->receive_payment_info($id);\n    if($info==-1){\n      echo \"Soory Money Recept Not Found\";\n      return;\n    }\n\n   $type=$info['type'];\n   $max_len=30;\n   $student_name=$info['student_name'];\n   $program_name=$info['program_name'];\n\n   $student_name=(strlen($student_name)>=$max_len)?$this->site->make_name($student_name,$max_len).\"...\":$student_name;\n   $program_name=(strlen($program_name)>=$max_len)?$this->site->make_name($program_name,$max_len).\"...\":$program_name;\n   $type=(strlen($type)>=$max_len)?$this->site->make_name($type,$max_len).\"...\":$type;\n    ?>\n  <style type=\"text/css\">\n    \n.money_recept .title_logo{\n  font-size: 18px;\n  font-weight: bold;\n  color: #2D2D2D;\n}\n.money_recept .comments{\n  border-width: 0px 0px 1px 0px;\n  border-style:solid;\n  border-color: #000000;\n  width: 300px;\n  padding: 5px;\n  height: 40px;\n  margin-top: 5px;\n}\n.money_recept .title_detail{\n  font-size: 14px;\n}\n.money_recept .payment_recept_body{\n  padding: 5px;\n}\n.money_recept .payment_recept_body table{\n  border: 0px solid #000000;\n}\n.money_recept .td_name,.td_value{\n  padding: 3px 2px 2px 5px;\n  border: 0px solid #000000;\n}\n.money_recept .td_name{\n text-align: right;\n font-weight: bold;\n}\n\n.money_recept{\n  width: 100%;\n  height: 357px;\n  \n  background-color: #ffffff;\n  border: 1px solid #2D2D2D;\n  border-radius: 5px;\n  color: #464646;\n  font-size: 14px;\n  font-family: 'Trebuchet MS', Helvetica, sans-serif;\n  margin-bottom: 15px;\n  overflow: hidden;\n}\n.money_recept .barcode_recept{\n  height: 30px;\n  width: 150px;\n}\n.money_recept .money_logo{\n  height: 100px;\n  width: 90px;\n}\n.money_recept .money_recept_header{\n  background: url('http://www.designbolts.com/wp-content/uploads/2012/12/White-Linen-Seamless-Pattern-For-Website-Backgrounds.jpg');\n  border-width: 0px 0px 1px 0px;\n  border-style:  solid;\n  border-color: #2D2D2D;\n  height: 130px;\n  width: 100%;\n  padding: 2px;\n  overflow: hidden;\n}\n.money_recept .left_header{\n  float: left;\n  width:65%;\n  padding: 3px 0px 0px 30px;\n}\n.money_recept .right_header{\n  padding: 20px 15px 15px 15px;\n}\n\n.money_recept .left_body{\n padding-right: 15px;\n  float: left;\n  width:50%;\n}\n.money_recept .right_body{\n\n}\n  </style>\n  <div class='money_recept'>\n  <div class='money_recept_header' >\n    <center><b>Payment Recept</b></center>\n    <div class='left_header'>\n      <table style='background-color: none'>\n        <tr>\n          <td style='padding-right: 15px; background-color: none'>\n            <img class='money_logo' src='<?php echo $this->db->logo; ?>'>\n          </td>\n          <td style='background-color: none'>\n            <font class='title_logo'><?php echo $this->db->site_name; ?></font><br/>\n            <font class='title_detail'>\n              <?php echo $this->db->address; ?><br/>\n              <?php echo $this->db->phone; ?><br/>\n              <?php echo $this->db->email; ?>\n            </font>\n          </td>\n        </tr>\n      </table>\n      \n    </div>\n    <div class='right_header'>\n      \n      <b>Recept No:</b> <u><?php echo $info['id']; ?></u><br/>\n      <b>Recept Date:</b> <?php echo $info['date']; ?><br/>\n      <b>Receive By:</b> <?php echo $info['add_by']; ?><br/>\n    </div>\n  </div>\n  <div class='payment_recept_body'>\n     <div class='left_body'>\n      <table>\n        <tr>\n          <td class='td_name'>Student ID: </td>\n          <td class='td_value'><?php echo $info['student_id']; ?></td>\n        </tr>\n        <tr>\n          <td class='td_name'>Name: </td>\n          <td class='td_value'><?php echo $student_name; ?></td>\n        </tr>\n        \n        <tr>\n          <td class='td_name'>Program Name: </td>\n          <td class='td_value'><?php echo $program_name; ?></td>\n        </tr>\n        <tr>\n          <td class='td_name'>Type: </td>\n          <td class='td_value'><?php echo $type; ?></td>\n        </tr>\n        <tr>\n          <td class='td_name'>Year: </td>\n          <td class='td_value'><?php echo $info['year']; ?></td>\n        </tr>\n        <tr>\n          <td class='td_name'>Month: </td>\n          <td class='td_value'><?php echo $info['month']; ?></td>\n        </tr>\n      </table>\n     \n     </div>\n     <div class='right_body'>\n      <table>\n        <tr>\n          <td class='td_name'>Total Fee: </td>\n          <td class='td_value'><?php echo $info['total_fee']; ?> tk</td>\n        </tr>\n        <tr>\n          <td class='td_name'>Previous Total Pay: </td>\n          <td class='td_value'><?php echo $info['total_pay']; ?> tk</td>\n        </tr>\n        \n        <tr>\n          <td class='td_name'>Pay: </td>\n          <td class='td_value'><?php echo $info['pay']; ?> tk</td>\n        </tr>\n        <tr>\n          <td class='td_name'>Total Due: </td>\n          <td class='td_value'><?php echo $info['due']; ?> tk</td>\n        </tr>\n        <tr>\n          <td class='td_name'>Status: </td>\n          <td class='td_value'><?php echo $info['status']; ?></td>\n        </tr>\n        <tr>\n          \n        </tr>\n      </table>\n      \n     </div>\n     <div style=\"margin-top: 0px; float: center\">\n<center><div class='comments'></div>\n     <b>Signature</b></center>\n     </div> \n  </div>\n\n</div>\n\n    <?php\n  }\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/program/program.php",
    "content": "<?php\n\n\nclass program {\n   \n\n//starting connection\n\npublic $batch=array();\npublic $subject=array();\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     $this->batch=new batch();\n     $this->batch=$this->batch->batch_info();\n     $this->subject=new subject();\n     $this->subject=$this->subject->get_subject_info();\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n}\n\n public function num_array($st){\n \t$num=explode(',', $st);\n \treturn $num;\n } \n\n public function in_batch($in){\n \t$info=array();\n        foreach ($in as $key => $in) {\n        \t$id=$in;\n        \tforeach ($this->batch as $key => $batch) {\n        \t\t$id1=$batch['id'];\n        \t\tif($id1==$id){\n        \t\t\t$info[$id]=$batch;\n        \t\t}\n        \t}\n        }\n        return $info;\n }\n\n public function in_subject($in){\n \t$info=array();\n        foreach ($in as $key => $in) {\n        \t$id=$in;\n        \t\n        \tforeach ($this->subject as $key => $batch) {\n        \t\t$id1=$batch['id'];\n        \t\tif($id1==$id){\n        \t\t\t$info[$id]=$batch;\n        \t\t}\n        \t}\n        }\n        return $info;\n }\n\n public function convert_arr($arr){\n //convert arr to string ex:a[2]={1,2} output: st=\"1,2\";\n   $st=\"\";\n   $c=0;\n   $si=sizeof($arr);\n   foreach ($arr as $key => $value) {\n      $c++;\n      $s=$value['name'];\n      $st=$st.$s;\n     if($si!=$c) $st=$st.' , ';\n   }\nreturn $st;\n } \n\n public function get_program_info(){\n    $info=array();\n    $sub=array();\n    $sql=\"select * from program  ORDER BY id DESC\";\n    $res=$this->select($sql);\n    while ($row=mysqli_fetch_array($res)) {\n    \t$id=$row['id'];\n        $sub[\"id\"]=$row['id'];\n        $sub[\"name\"]=$row['name'];\n        $sub['start']=$row['start'];\n        $sub['end']=$row['end'];\n        $sub['subject']=$this->in_subject($this->num_array($row['subject']));\n        $sub['subject_string']=$this->convert_arr($sub['subject']);\n        $sub['batch']=$this->in_batch($this->num_array($row['batch']));\n        $sub['batch_string']=$this->convert_arr($sub['batch']);\n        $sub['fee']=$row['fee'];\n        $sub['date']=$row['date'];\n        $sub['type']=$row['type'];\n        $sub['monthly_fee']=$row['monthly_fee'];\n        $sub['type_string']=($sub['type']==1)?\"Package\":\"Monthly\";\n        $sub['add_by']=$row['add_by'];\n        $info[$id]=$sub;\n    }\n\nreturn $info;\n } \n \n\npublic function get_separate_program_info($select_value=\"*\",$program_id){\n  $sql=\"select $select_value from program where id=$program_id\";\n  $info=$this->db->get_sql_array($sql);\n  if(isset($info[0]))$info=$info[0];\n  return $info;\n}\n\npublic function get_program_type_option($program_id){\n   $info=$this->get_separate_program_info(\"type\",$program_id);\n   $type=$info['type'];\n   if($type==1 || $type==2)echo \"<option value='1'>Admission Fee</option>\";\n   if($type==2)echo \"<option value='2'>Monthly Fee</option>\";\n}\n\nfunction get_payment_month_status($info,$condition=\"\"){\n\n  if($condition==\"\"){\n    $student_id=$info['student_id'];\n    $year=(int)$info['year'];\n    $month=$info['month'];\n    $program_id=$info['program_id'];\n    $type=$info['type'];\n\n    if($type==1){\n      $condition=\"student_id=$student_id and program_id=$program_id and type=1\";\n   }\n   \n    else{\n      $condition=\"student_id=$student_id and program_id=$program_id and month=$month and year=$year\";\n }\n}\n\n  \n  $sql=\"select * from student_payment where $condition\";\n  \n  $info=$this->db->get_sql_array($sql);\n  if(!isset($info[0]))return -1;\n  \n  $res=array();\n\n  $info=$info[0];\n\n  $res['payment_id_info']=$info;\n  \n  $payment_id=$info['id'];\n  $total_fee=$info['total_fee'];\n  $pay=0;\n\n  $sql=\"select SUM(pay) from receive_payment where payment_id=$payment_id\";\n  \n  $info=$this->db->get_sql_array($sql);\n  $info=$info[0];\n  if($info[\"SUM(pay)\"]!=\"\")$pay=$info[\"SUM(pay)\"];\n\n  $paid=0;\n  $due=$total_fee-$pay;\n  if($due<=0)$paid=1;\n  $res['total_fee']=$total_fee;\n  $res['paid']=$paid;\n  $res['total_pay']=$pay;\n  $res['due']=$due;\n  $res['payment_id']=$payment_id;\n\n \nreturn $res;\n\n}\n\n\nfunction sum_of_payment(){\n  $sql=\"SELECT SUM(pay) FROM receive_payment where date='2018-11-15 00:00:00'\";\n  $info=$this->db->get_sql_array($sql);\n}\n\n\npublic function conver_string_table_id($st,$table){\n  $sql=\"select * from batch where id in($st)\";\n  $info=$this->db->get_sql_array($sql);\n  echo \"<pre>\";\n  print_r($info);\n  echo \"</pre>\";\n}\n\n\npublic function select_subject($pro_id=-1){\n       $subject=$this->subject;\n       $info=$this->get_program_info();\n     \n      $mark=array();\n      foreach ($subject as $key => $value) {\n          $id=$value['id'];\n          $mark[$id]=0;\n      }\n\n     if($pro_id!=-1){\n         foreach ($info[$pro_id]['subject'] as $key => $value) {\n             $id=$value['id'];\n             $mark[$id]=1;\n         }\n     }\n\n       foreach ($subject as $key => $value) {\n        $id=$value['id'];\n        $name=$value['name'];\n        if($mark[$id]==0){\n           echo \"<input type='checkbox' name='subject[]' value='$id'> $name<br>\";\n        }\n        else{\n             echo \"<input type='checkbox' name='subject[]' value='$id' checked> $name<br>\";\n\n        }\n    \n       }\n}\n\npublic function select_batch($pro_id=-1){\n       \n       $batch=$this->batch;\n       $info=$this->get_program_info();\n     \n      $mark=array();\n      foreach ($batch as $key => $value) {\n          $id=$value['id'];\n          $mark[$id]=0;\n      }\n\n     if($pro_id!=-1){\n         foreach ($info[$pro_id]['batch'] as $key => $value) {\n             $id=$value['id'];\n             $mark[$id]=1;\n         }\n     }\n        foreach ($batch as $key => $value) {\n         $id=$value['id'];\n         $name=$value['name']; \n         $start=$value['start'];\n         $end=$value['end'];\n         if($mark[$id]==0){\n           echo \"<input type='checkbox' name='batch[]' value='$id'> $name ( $start - $end )<br>\";\n       }\n       else{\n        echo \"<input type='checkbox' name='batch[]' value='$id' checked> $name ( $start - $end )<br>\";\n       }\n    }\n}\n\n\n\npublic function select_program($program_id=0){\n  $selected=\"\";\n   $info=$this->get_program_info();\n   foreach ($info as $key => $value) {\n      $id=$value['id'];\n      $name=$value['name'];\n      if($program_id==$id)$selected=\"selected\";\n      else $selected=\"\";\n      echo \"<option value='$id' $selected> $name </option>\";\n   }\n}\n\npublic function option_subject($program_id,$subject_id=0){\n  $selected=\"\";\n  $program=$this->get_program_info();\n  $subject=$this->subject;\n  foreach ($program[$program_id]['subject'] as $key => $value) {\n    $id=$value['id'];\n    $name=$subject[$id]['name'];\n    if($id==$subject_id)$selected=\"selected\";\n      else $selected=\"\";\n    echo \"<option value='$id' $selected>$name</option>\";\n  }\n}\n\n\n\npublic function get_program_batch($program_id){\n  $sql=\"select batch from program where id=$program_id\";\n  $info=$this->db->get_sql_array($sql);\n  $info=array_unique(explode(',', $info[0]['batch']));\n  $res=array();\n  foreach ($info as $key => $value) {\n    $sql=\"select * from batch where id=$value\";\n    $sub=$this->db->get_sql_array($sql);\n    array_push($res, $sub[0]);\n  }\n  return $res;\n}\n\n\n\npublic function get_select_option_batch($program_id){\n  $info=$this->get_program_batch($program_id);\n  print_r($info);\n  foreach ($info as $key => $value) {\n    $id=$value['id'];\n    $name=$value['name'];\n    echo \"<option value='$id'>$name</option>\";\n  }\n}\n\n\n \npublic function select_batch_option($pro_id){\n   $info=$this->get_program_info();\n   foreach ($info[$pro_id]['batch'] as $key => $value) {\n      $id=$value['id'];\n      $name=$value['name'];\n      $start=$value['start'];\n      $end=$value['end'];\n      echo \"<option value='$id'>$name ( $start - $end )</option>\";\n   }\n\n\n}\n\npublic function select_program_batch($program_id,$batch_id){\n  $info=$this->get_program_info();\n  echo \"hey\";\n   foreach ($info[$program_id]['batch'] as $key => $value) {\n      $id=$value['id'];\n      $name=$value['name'];\n      $start=$value['start'];\n      $end=$value['end'];\n      $st=($batch_id==$id)?\"selected\":\"\";\n      echo \"<option value='$id' $st>$name ( $start - $end )</option>\";\n   }\n}\n\n\npublic function get_program_name($program_id){\n  $info=$this->get_program_info();\n  if($program_id==0)$res=\"\";\n  else $res=\"'\".$info[$program_id]['name'].\"'\";\n  return $res;\n}\n\n\npublic function test(){\n   echo \"test\";\n}\n\n\n\n//end dabtabase connection\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/program/program_form.php",
    "content": "<?php\n\n\nclass program_form\n{\n\t\n\t\n}\n\n\n?>"
  },
  {
    "path": "script/report/report.php",
    "content": "<?php\n\n\nclass report {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n  public function get_payment_report_list($data){\n    $date1=$data['date1'];\n\t $date2=$data['date2'];\n\t $program_id=$data['program_id'];\n\t $type=$data['type'];\n    $q_program=\"\";\n    $q_type=\"\";\n    $where=\"\";\n\n    if($program_id!=0)$q_program=\"student_payment.program_id=$program_id\";\n    if($type!=0)$q_type=\"student_payment.type=$type\";\n    \n    if($q_program!=\"\" && $q_type!=\"\"){\n    \t$where=\"and $q_program and $q_type\";\n    }\n    else if($q_program!=\"\")$where=\"and $q_program\";\n    else if($q_type!=\"\")$where=\"and $q_type\";\n    \n    $sql=\"\n    select \n    receive_payment.date,receive_payment.payment_id,receive_payment.pay,receive_payment.id,\n    student.name as student_name,student.id as student_id,student.nick,\n    program.name as program_name,\n    student_payment.year,student_payment.month,student_payment.type,student_payment.note,\n    student_payment.total_fee,\n    user.uname as add_by\n    from receive_payment  \n    INNER JOIN student_payment ON student_payment.id=receive_payment.payment_id \n    INNER JOIN program ON program.id=student_payment.program_id \n    INNER JOIN student ON student.id=student_payment.student_id \n    INNER JOIN user ON user.id=receive_payment.add_by\n    where (receive_payment.date BETWEEN CAST('$date1' AS DATE) AND CAST('$date2' AS DATE)) $where\n    ORDER BY receive_payment.id ASC\n    \n    \";\n    $info=$this->db->get_sql_array($sql);\n\n   return $info;\n  }\n\n   public function get_month_name($month){\n  \t\n  \t$month_array=array(\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\");\n  \treturn $month_array[$month-1];\n  }\n\n  public function get_expence_report($data){\n    $date1=$data['date1'];\n    $date2=$data['date2'];\n    $sql=\"select expence.* from expence\n    where (expence.date BETWEEN CAST('$date1' AS DATE) AND CAST('$date2' AS DATE))\n    \";\n\n    $info=$this->db->get_sql_array($sql);\n    return $info;\n  }\n\npublic function get_income_report($data){\n    $date1=$data['date1'];\n    $date2=$data['date2'];\n    $sql=\"select income.* from income\n    where (income.date BETWEEN CAST('$date1' AS DATE) AND CAST('$date2' AS DATE))\n    \";\n\n    $info=$this->db->get_sql_array($sql);\n    return $info;\n  }\n\n  public function get_profit_report($data){\n    $ex_rep=$this->get_expence_report($data);\n    $data['program_id']=0;\n    $data['type']=0;\n    $pay_rep=$this->get_payment_report_list($data);\n    $total_expence=0;\n    foreach ($ex_rep as $key => $value) {\n      $total_expence+=$value['amount'];\n    }\n\n    $total_income=0;\n    $in_report=$this->get_income_report($data);\n    foreach ($in_report as $key => $value) {\n      $total_income+=$value['amount'];\n    }\n    \n    $total_payment=0;\n    foreach ($pay_rep as $key => $value) {\n      $total_payment+=$value['pay'];\n    }\n    $info['total_expence']=$total_expence;\n    $info['total_payment']=$total_payment;\n    $info['total_income']=$total_income;\n    $info['total_profit']=($total_payment+$total_income)-$total_expence;\nreturn $info;\n  }\n\n  public function get_student_attend_info($date1,$date2,$program_id,$batch_id=0){\n    $b_sql=\"\";\n    if($batch_id!=0){\n       $b_sql=\"and batch_id=$batch_id\";\n    }\n    $p_sql=\"\";\n    if($program_id!=0){\n      $p_sql=\"and program_id=$program_id\";\n    }\n\n    $sql=\"select * from student_attendence\n    where (date BETWEEN CAST('$date1' AS DATE) AND CAST('$date2' AS DATE)) $p_sql $b_sql\";\n    $info=$this->db->get_sql_array($sql);\n    $student_list=array();\n    $info_index=array();\n    foreach ($info as $key => $value) {\n      $student_id=$value['student_id'];\n      $status=$value['status'];\n      $date=$value['date'];\n      array_push($student_list, $student_id);\n      $day=date(\"d\", strtotime($date));\n      $info_index[$student_id][(int)$day]=$status;\n    }\n    $student_list=array_unique($student_list);\n\n    $res=array();\n    $res['student_list']=$student_list;\n    $res['info_index']=$info_index;\n    \n    return $res;\n  }\n\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/result/result.php",
    "content": "<?php\n\n\nclass result {\n   \n\n\npublic $student;\npublic $student_ob;\npublic $exam;\n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     $this->student_ob=new student();\n     $this->student=$this->student_ob->get_student_info();\n     $this->exam=new exam();\n     $this->exam=$this->exam->get_exam_info();\n\n }\n\n public function select($query){\n \t$batch=$this->result=$this->db->select($query);\n   return $batch;\n  }\n\n\npublic function get_exam_list($program_id,$subject_id){\n  $sql=\"select * from exam where program_id=$program_id and sub_id=$subject_id\";\n  return $info=$this->db->get_sql_array($sql);\n}\n\npublic function get_sms_pending_id($exam_id){\n   $sql=\"select * from result where exam_id=$exam_id and sms=0\";\n   return $info=$this->db->get_sql_array($sql);\n}\n\npublic function get_exam_list_option($program_id,$subject_id){\n  $info=$this->get_exam_list($program_id,$subject_id);\n\n  foreach ($info as $key => $value) {\n    $id=$value['id'];\n    $name=$value['exam_name'];\n    echo \"<option value='$id'>$name</option>\";\n  }\n}\n\npublic function get_separeate_result($result_id){\n  $sql=\"select * from result where id=$result_id\";\n  $info=$this->db->get_sql_array($sql);\n  return $info[0];\n}\n\npublic function get_student_add_exam_list($exam_id){\n  $sql=\"select student_id from result where exam_id=$exam_id\";\n  $info=$this->db->get_sql_array($sql);\n  $list=array();\n  foreach ($info as $key => $value) {\n    $id=$value['student_id'];\n    array_push($list, $id);\n  }\n\n  return $list;\n}\n\npublic function get_exam_result($exam_id){\n\n$sql=\"\n\nSELECT result.*,\nexam.exam_name,student.name as student_name,program.name as program_name,batch.name as batch_name,batch.id as batch_id\nFROM `result`  \nINNER JOIN student ON student.id=result.student_id\nINNER JOIN exam ON exam.id=result.exam_id\nINNER JOIN admit_program ON admit_program.student_id=result.student_id AND admit_program.program_id=exam.program_id\nINNER JOIN batch ON batch.id=admit_program.batch_id\nINNER JOIN program ON program.id=exam.program_id\nWHERE result.exam_id=$exam_id\nORDER BY result.total desc\n\n\";\n\n$info=$this->db->get_sql_array($sql);\n$info1=array();\n\n$rank=0;\n\nfor ($i=0; $i <100007 ; $i++)$batch_merit[$i]=0;\n\nforeach ($info as $key => $value) {\n  $id=$value['id'];\n  $batch_id=$value['batch_id'];\n  $rank++;\n  $batch_merit[$batch_id]++;\n\n  $info1[$id]=$value;\n  $info1[$id]['center_merit']=$rank;\n  $info1[$id]['batch_marit']=$batch_merit[$batch_id];\n}\n\n\nreturn $info1;\n}  \n\n\n \n\npublic function batch_return($id){\n\treturn $this->student[$id]['batch'];\n}\n\n  public function get_result_info1($exam_id1){\n\n   $sql=\"SELECT * FROM result ORDER BY total DESC\";\n   $res=$this->select($sql);\n   $sub_array=array();\n   $info=array();\n   $c=0;\n   $batch_merit=array();\n\nfor ($i=0; $i <100007 ; $i++) { \n\t$batch_merit[$i]=0;\n}\n\n   while ($row=mysqli_fetch_array($res)) {\n\n   \t   $id=$row['student_id'];\n   \t   \n   \t   //echo \"$c<br/>\";\n   \t   $exam_id=$row['exam_id'];\n   \t   $sub_array['exam_id']=$exam_id;\n       $sub_array['id']=$row['id'];\n       $sub_array['student_id']=$row['student_id'];\n       $sub_array['mcq']=$row['mcq'];\n       $sub_array['written']=$row['written'];\n       $sub_array['total']=$row['total'];\n       $sub_array['date']=$row['date'];\n       $sub_array['add_by']=$row['add_by'];\n       $sub_array['sms']=$row['sms'];\n       $batch_id=$this->batch_return($row['student_id']);\n      if($exam_id==$exam_id1){\n        $c++;\n        $batch_merit[$batch_id]++;\n        $sub_array['center_merit']=$c;\n        $sub_array['batch_merit']=$batch_merit[$batch_id];\n      \t$info[$id]=$sub_array;\n      }\n   }\nreturn $info;\n  }\n\n\n\n\n\n  public function get_result_info(){\n\n  $info=array();\n  foreach ($this->exam as $key => $value) {\n  \t$id=$value['id'];\n  \t$sub_array=$this->get_result_info1($id);\n  \t$info[$id]=$sub_array;\n  }\n\nreturn $info;\n  }\n\n  public function get_result(){\n   $sql=\"SELECT * FROM result ORDER BY id DESC\";\n   $res=$this->select($sql);\n   $sub_array=array();\n   $info=array();\n\n\n   while ($row=mysqli_fetch_array($res)) {\n       $id=$row['id'];\n       $student_id=$row['student_id'];\n       $exam_id=$row['exam_id'];\n       $sub_array['exam_id']=$exam_id;\n       $sub_array['id']=$row['id'];\n       $sub_array['student_id']=$row['student_id'];\n       $sub_array['mcq']=$row['mcq'];\n       $sub_array['written']=$row['written'];\n       $sub_array['total']=$row['total'];\n       $sub_array['date']=$row['date'];\n       $sub_array['add_by']=$row['add_by'];\n       $sub_array['sms']=$row['sms'];\n       $info[$id]=$sub_array;\n     }\n     return $info;\n  }\n\n//end dabtabase connection\n\npublic function search_array($arr,$id){\n\t$flag=0;\n\t//print_r($arr);\n\t//echo \"<br/>\";\n\tforeach ($arr as $key => $value) {\n\t\t$id1=$key;\n\t\tif($id1==$id){\n\t\t\t$flag=1;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn $flag;\n}\n\n\npublic function student_result($student_id,$exam_id){\n\t$info=$this->get_result_info();\n\t$res=array();\n\t$flag=$this->search_array($info,$exam_id);\n\tif($flag==1){\n\t\t$res=$info[$exam_id];\n\t  $flag=$this->search_array($res,$student_id);\n\t  if($flag==1){\n\t  \treturn $res[$student_id];\n\t  }\n\t}\n\n\treturn -1;\n}\n\n\npublic function best_mark($exam_id){\n  $info=$this->get_result_info();\n  $res=$info[$exam_id];\n  $best=0;\n  foreach ($res as $key => $value) {\n    $best=$value['total'];\n    break;\n  }\n  return $best;\n}\n\n  public function permission_for_save($student_id,$exam_id,$program_id){\n\n  \t   $info=$this->student;\n  \t   $exam_info=$this->get_result_info();\n  \t \n      if($student_id<1000 ||  $student_id==\"\")return 0;\n     // search student find\n     \n     $flag=0;\n      foreach ($info as $key => $value) {\n        $sid=$value['id'];\n        if($sid==$student_id){\n          $flag=1;\n          break;\n        }\n      }\n\n  \t  if($flag==0)return $flag;\n\n\n    // search student id is given exam   \n  \t   $flag=1;\n  \t   foreach ($exam_info[$exam_id] as $key => $value) {\n  \t   \t $id=$value['student_id'];\n  \t   \t if($id==$student_id){\n  \t   \t \t$flag=0;\n  \t   \t \tbreak;\n  \t   \t }\n  \t   }\n\n     if($flag==0)return $flag;\n\n     $flag=0;\n     $pro_id=$info[$student_id]['program'];\n     if($pro_id==$program_id)$flag=1;\n\n  \treturn $flag;\n\n  }\n\n  public function get_avilable_sms_user($exam_id){\n      $exam_info=$this->get_result_info1($exam_id);\n      $info=array();\n      foreach ($exam_info as $key => $value) {\n        $id=$value['id'];\n        $sms=$value['sms'];\n        if($sms==0){\n          $info[$id]=$value;\n      }\n        }\n        return $info;\n  }\n\n  public function result_sms($value){\n    $student_id=$value['student_id'];\n    $exam_id=$value['exam_id'];\n    $mcq=$value['mcq'];\n    $written=$value['written'];\n    $total=$value['total'];\n\n    $nick=$this->student[$student_id]['nick'];\n    $exam_info=$this->exam;\n    \n    $exam_name=$exam_info[$exam_id]['exam_name'];\n    $exam_mcq=$exam_info[$exam_id]['mcq'];\n    $exam_written=$exam_info[$exam_id]['written'];\n    $exam_total=$exam_info[$exam_id]['total'];\n\n    $msg=\"Dear \".$nick.\",\\n\";\n    $msg.=\"Your obtained marks for the exam '\".$exam_name.\"' is \\n\";\n\n    if($exam_mcq!=\"N/A\")$msg.=\"MCQ: \".$mcq.\"/\".$exam_mcq.\"\\n\";\n    if($exam_written!=\"N/A\")$msg.=\"Written: \".$written.\"/\".$exam_written.\"\\n\";\n\n    $msg.=\"Total: \".$total.\"/\".$exam_total.\"\\n\";\n    $msg.=\"\\n YOUTH\";\n\n    return $msg;\n  }\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/setting/setting.php",
    "content": "<?php\n\n\nclass setting {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\npublic function genaral_setting_info(){\n\t$sql=\"select * from setting\";\n    $info=$this->db->get_sql_array($sql);\n    $data=array();\n    foreach ($info as $key => $value) {\n    \t$option_name=$value['option_name'];\n    \t$option_value=$value['option_value'];\n        $res=array();\n    \t$res['id']=$value['id'];\n    \t$res['option_value']=$option_value;\n    \t$res['option_name']=$option_name;\n    \tarray_push($data, $res);\n    }\nreturn $data;\n} \n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/site_activity/site_activity.php",
    "content": "<?php\n\n\nclass site_activity {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     $this->site=new site_content();\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\n  public function get_site_activity(){\n  \t$sql=\"select * from site_activity ORDER BY id DESC\";\n  \t$info=$this->db->get_sql_array($sql);\n  \treturn $info;\n  }\n\n  public function site_activity_list($total=10){\n  \t$info=$this->get_site_activity();\n  \t$res=array();\n  \t$c=0;\n  \tforeach ($info as $key => $value) {\n  \t\t$c++;\n  \t\tif($c>$total)break;\n  \t\tarray_push($res, $value);\n  \t}\n  \treturn $res;\n  }\n  public function get_separate_activity($id){\n    $sql=\"\n    select site_activity.*,user.uname as user_name,user.photo as user_photo from site_activity \n    INNER JOIN user ON site_activity.user_id=user.id\n    where site_activity.id=$id\";\n    $info=$this->db->get_sql_array($sql);\n    return $info[0];\n  }\n\n  public function get_user_activity($uid){\n    $sql=\"\n    select * from site_activity where user_id=$uid ORDER BY id DESC\";\n    $info=$this->db->get_sql_array($sql);\n    return $info;\n  }\n\n  public function get_activity_detail($id){\n    $info=$this->get_separate_activity($id);\n    $user_id=$info['user_id'];\n    $table_name=$info['table_name'];\n    $action_type=$info['action_type'];\n    $ip=$info['ip'];\n    $browser=$info['browser'];\n    $data1=$info['previous_data'];\n    $data2=$info['present_data'];\n    \n    $user_name=$info['user_name'];\n    $user_photo=$info['user_photo'];\n    $date=strtotime($info['date']);\n    $date=date(\"j M Y, h:i:s A\",$date);\n\n    ?>\n<div class=\"row\" id=\"activity_detail\">\n  <div class=\"col-md-12 act_header_title\">Activity Statics</div>\n  <div class=\"col-md-12\" style=\"background-color: #ffffff;padding: 5px\">\n    <div class=\"col-md-2\">\n      <img src=\"upload/user_photo/<?php echo $user_photo; ?>\" class=\"activity_img\">\n    </div>\n    <div class=\"col-md-10\" style=\"margin-top: 5px;\">\n      <table width=\"100%\">\n        <tr>\n          <td class=\"act_td1\">Activity Id</td>\n          <td class=\"act_td1\">User Name</td>\n          <td class=\"act_td1\">Table Name</td>\n          <td class=\"act_td1\">Action Type</td>\n          <td class=\"act_td1\">Action Time</td>\n          <td class=\"act_td1\">IP</td>\n          <td class=\"act_td1\">Browser</td>\n        </tr>\n        <tr>\n          <td class=\"act_td2\"><?php echo \"$id\"; ?></td>\n          <td class=\"act_td2\">\n            <a href=\"user_info.php?user_id=<?php echo $user_id; ?>\" target=\"_blank\"><?php echo \"$user_name\"; ?></a>\n              \n          </td>\n          <td class=\"act_td2\"><?php echo \"$table_name\"; ?></td>\n          <td class=\"act_td2\"><?php echo \"$action_type\"; ?></td>\n          <td class=\"act_td2\"><?php echo \"$date\"; ?></td>\n          <td class=\"act_td2\"><?php echo \"$ip\"; ?></td>\n          <td class=\"act_td2\"><?php echo \"$browser\"; ?></td>\n        </tr>\n      </table>\n    </div>\n  </div>\n\n  <?php $this->data_compare($data1,$data2); ?>\n  \n</div>\n\n<style type=\"text/css\">\n  .activity_img{\n    height: 120px;\n    width: 130px;\n    border: 2px solid #ffffff;\n    border-radius: 20px;\n  }\n  .act_td1{\n       background-color: #EFF0F2;\n        color: #000000;\n        padding: 10px;\n        font-weight: bold;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n  }\n  .act_td2{\n       background-color: #ffffff;\n        color: #000000;\n        padding: 10px;\n        border: 1px solid #C6C9D1;\n        text-align: center;\n  }\n  \n</style>\n    <?php\n    \n  }\n\n\n  public function data_compare($data1,$data2){\n    $info1=json_decode($data1,true);\n    $info2=json_decode($data2,true);\n    \n    ?>\n\n<div class=\"col-md-12 act_header_title\">Data Compare</div>\n <div class=\"row\">\n    <div class=\"col-md-6\">\n      <div class=\"act_header1\">Previous Data</div>\n      <div class=\"present_data\">\n        <?php \n\n        //$this->site->myprint_r($info1); \n        $c=0;\n        $not_match=0;\n        $total=0;\n        if($info1!=\"\"){\n          foreach ($info1 as $key => $value) {\n            $c++;\n            $cmp=($info1[$key]!=$info2[$key])?0:1;\n            $not_match+=$cmp;\n            $total++;\n            $this->set_key_and_data($c,$key,$value,$cmp);   \n          }\n        }\n        ?>\n      </div>\n    </div>\n    <div class=\"col-md-6\" style=\"margin-left: -30px;\">\n      <div class=\"act_header1\">Updated Data</div>\n      <div class=\"present_data\">\n        <?php \n\n        //$this->site->myprint_r($info1); \n        $c=0;\n        if($info2!=\"\"){\n        foreach ($info2 as $key => $value) {\n          $c++;\n          $cmp=($info1[$key]!=$info2[$key])?0:1;\n          $css_class=($cmp==1)?\"data_match\":\"data_diff\";\n          $this->set_key_and_data($c,$key,$value,$cmp);\n        }\n      }\n        ?>\n      </div>\n    </div>\n    <div class=\"col-md-12\">\n      <center>\n      <li>Total Data: <span class=\"\"><b><?php echo \"$total\"; ?></b></span></li>\n      <li>Total Match: <span class=\"data_match\"><?php echo \"$not_match\"; ?></span></li>\n      <li>Total Not Match: <span class=\"data_diff\"><?php echo $total-$not_match; ?></span></li>\n    </center>\n</div>   \n\n<style type=\"text/css\">\n  .act_header_title{\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    padding: 5px;\n    text-align: center;\n    font-weight: bold;\n  }\n  .act_header1{\n    background-color: #EFF0F2!important;\n    color: #000000;\n    padding: 10px;\n    text-align: center;\n    font-weight: bold;\n    border-width: 0px 2px 0px 0px;\n    border-style: solid;\n    border-color: #C6C9D1;\n  }\n  .present_data{\n    background-color: #ffffff;\n    padding: 15px;\n    border-width: 0px 2px 0px 0px;\n    border-style: solid;\n    border-color: #C6C9D1;\n  }\n  .data_match,.data_diff{\n    padding: 3px;\n    color: #ffffff;\n    font-weight: bold;\n    border-radius: 2px;\n  }\n  .data_match{\n    background-color: green;\n  }\n  .data_diff{\n    background-color: red;\n  }\n  .data_line,.data_line_diff{\n    padding: 3px;\n    font-weight: bold;\n  }\n  .data_line{\n    background-color: yellow;\n    \n  }\n  .data_line_diff{\n    background-color: red;\n    color: #ffffff;\n  }\n  .line_data{\n    padding: 2px;\n    margin-top: 0px;\n    font-family: \"Trebuchet MS\", Helvetica, sans-serif;\n  }\n  \n</style>\n\n\n  <?php\n  }\n\n  public function set_key_and_data($line,$key,$value,$cmp){\n    $css_class=($cmp==1)?\"data_match\":\"data_diff\";\n    $line_css=($cmp==1)?\"data_line\":\"data_line_diff\";\n   ?>\n   <div class='line_data'>\n      <span class=\"<?php echo $line_css; ?>\"><?php echo $line; ?></span>\n      <span class='<?php echo $css_class; ?>'>\n        [<?php echo $key; ?>]\n      </span>\n      <b style=\"font-size: 15px;\">=></b> \n      <?php echo $value; ?>\n   </div>\n   <?php \n    \n  }\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/site_content/calender.php",
    "content": "<?php\n\n\n\nclass    fun\n{\n  \n  public function test_fun(){\n    echo \"hello fun\";\n  }\n  \n}\n\n?>"
  },
  {
    "path": "script/site_content/form.php",
    "content": "<?php\n\n\n\n\nclass form {\n\n\npublic function requerd($level,$name,$id,$icon,$value,$ex,$pla,$type){\n  echo \"<div class='form-group'>\n        <label class='control-label' for='inputName'><b>$level</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-$icon'></i></span>     \n            <input autocomplete='false' class='form-control' data-error='Please enter name field.' id='$id' value='$value' placeholder='$pla'  type='$type' name='$name'  required='' />\n        </div>  \n        <div id='err_product_date' class='error'>$ex</div>\n</div>\";\n}\n\npublic function not_requred($level,$name,$id,$icon,$value,$ex,$pla,$type){\n  echo \"<div class='form-group'>\n        <label class='control-label' for='inputName'><b>$level</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-$icon'></i></span>     \n            <input  class='form-control' data-error='Please enter name field.' id='$id' value='$value' placeholder='$pla'  type='$type' autocomplete='off' name='$name'  />\n        </div>  \n        <div id='err_product_date' class='error'>$ex</div>\n</div>\";\n}\n\n\npublic function form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\"){\n  \n  $pla=\"Enter \".$level;\n\n       if($req==\"yes\"){\n        $this->requerd($level,$name,$id,$icon,$value,$ex,$pla,$type);\n       }\n       else if($req==\"no\"){\n        $this->not_requred($level,$name,$id,$icon,$value,$ex,$pla,$type);\n       }\n\n  \n}\n\npublic function test(){\n  echo \"string\";\n}\n\n}\n\n\n/**\n* \n*/\n\n\n?>\n\n"
  },
  {
    "path": "script/site_content/site_config.php",
    "content": "<?php\n\n\ninclude \"script/site_content/form.php\";\n\n\n\nclass site_config extends form{}\n\n\n?>"
  },
  {
    "path": "script/site_content/site_content.php",
    "content": "<?php\n\ninclude \"script/site_content/site_config.php\";\n\n/**\n * \n */\n\n\nclass site_content extends site_config\n{\n    \n    \n    //starting connection\n    \n    public function __construct()\n    {\n        \n        $this->db         = new database();\n        $this->conn       = $this->db->conn;\n        $this->barcode_ob = new \\Picqer\\Barcode\\BarcodeGeneratorPNG();\n        \n        \n    }\n    \n    public function select($query)\n    {\n        return $this->result = $this->db->select($query);\n    }\n    \n    public function barcode($text, $image = \"PNG\", $type = \"TYPE_CODE_128\")\n    {\n        $barcode    = \"data:image/png;base64,\";\n        $barcode_ob = $this->barcode_ob;\n        $barcode .= base64_encode($barcode_ob->getBarcode($text, $barcode_ob::TYPE_CODE_128));\n        return $barcode;\n    }\n    \n    \n    public function get_md5($st)\n    {\n        $en = \"techserm\";\n        $st = $st . $en;\n        $st = md5($st);\n        $st = $en . $st;\n        $st = hash('sha256', $st);\n        \n        return $st;\n    }\n    \n    public function get_encode($st)\n    {\n        for ($i = 0; $i < 100001; $i++) {\n            $st1 = $this->get_md5($i);\n            if ($st1 == $st)\n                return $i;\n        }\n        return -1;\n    }\n    \n    \n    public function url_name()\n    {\n        $list_name = array(\n            \"student_list\" => \"Student List\",\n            \"add_student\" => \"Add Student\",\n            \"subject_list\" => \"Subject List\",\n            \"batch_list\" => \"Batch List\",\n            \"exam_list\" => \"Exam List\",\n            \"index\" => \"Dashboard\",\n            \"sms_dashboard\" => \"SMS Dashboard\",\n            \"setting\" => \"Setting\",\n            \"notice\" => \"Notice\"\n        );\n        \n        return $list_name;\n    }\n    \n    \n    public function get_page_name()\n    {\n        $link = \"http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n        $list_name = $this->url_name();\n        $page_name = \"\";\n        foreach ($list_name as $key => $value) {\n            if (strpos($link, $key)) {\n                $page_name = $value;\n                break;\n            }\n        }\n        \n        $page_name .= ($page_name == \"\") ? \"\" : \" || \";\n        $page_name .= $this->db->site_name;\n        return $page_name;\n    }\n    \n    \n    public function timeAgo($timestamp)\n    {\n        \n        $datetime1 = new DateTime(\"now\");\n        $datetime2 = date_create($timestamp);\n        $diff      = date_diff($datetime1, $datetime2);\n        \n        $timemsg = '';\n        if ($diff->y > 0) {\n            $timemsg = $diff->y . ' year' . ($diff->y > 1 ? \"'s\" : '');\n            \n        } else if ($diff->m > 0) {\n            $timemsg = $diff->m . ' month' . ($diff->m > 1 ? \"'s\" : '');\n        } else if ($diff->d > 0) {\n            $timemsg = $diff->d . ' day' . ($diff->d > 1 ? \"'s\" : '');\n        } else if ($diff->h > 0) {\n            $timemsg = $diff->h . ' hour' . ($diff->h > 1 ? \"'s\" : '');\n        } else if ($diff->i > 0) {\n            $timemsg = $diff->i . ' minute' . ($diff->i > 1 ? \"'s\" : '');\n        } else if ($diff->s > 0) {\n            $timemsg = $diff->s . ' second' . ($diff->s > 1 ? \"'s\" : '');\n        }\n        \n        $timemsg = $timemsg . ' ago';\n        return $timemsg;\n    }\n    \n    public function welcome_time($user_name)\n    {\n        $welcome  = '';\n        $time     = (int) date(\"H\");\n        $timezone = date(\"e\");\n        if ($time >= \"19\" || $time <= \"5\") {\n            $welcome = \"Good Night\";\n        } else if ($time < \"12\") {\n            $welcome = \"Good Morning\";\n        } else if ($time >= \"12\" && $time < \"17\") {\n            $welcome = \"Good Afternoon\";\n        } else if ($time >= \"17\" && $time < \"19\") {\n            $welcome = \"Good Evening\";\n        }\n        \n        return $welcome . \", $user_name\";\n    }\n    \n    public function myprint_r($my_array)\n    {\n        echo \"<pre>\";\n        print_r($my_array);\n        echo \"</pre>\";\n    }\n    \n    public function array_to_string($arr)\n    {\n        $st = \"\";\n        $st = implode(',', $arr);\n        return $st;\n    }\n    \n    public function day()\n    {\n        $day[1] = \"Stuurday\";\n        $day[2] = \"Sunday\";\n        $day[3] = \"Sunday\";\n        $day[4] = \"Sunday\";\n        $day[5] = \"Sunday\";\n        $day[6] = \"Sunday\";\n        $day[7] = \"Sunday\";\n        return $day;\n    }\n    \n    public function get_user_id()\n    {\n        $id = 5;\n        return $id;\n    }\n    \n    public function get_user_name($uid)\n    {\n        $uname = \"hamza\";\n        return $uname;\n    }\n    \n    public function make_name($name, $len = 17)\n    {\n        $name = substr($name, 0, $len);\n        return $name;\n    }\n    \n    public function header_info_area()\n    {\n?>\n  <div class=\"school_header_area\">\n      <img class=\"header_area_logo\" src=\"<?php echo $this->db->logo;?>\"><br/>\n      <span class=\"school_title\"><?php\n        echo $this->db->site_name;?></span><br/>\n      <span class=\"glyphicon glyphicon-map-marker\"></span> <?php echo $this->db->address;?><br/>\n      <span class=\"glyphicon glyphicon-phone\"></span> Phone: <?php\n        echo $this->db->phone;\n?> | <span class=\"glyphicon glyphicon-envelope\"></span> Email: <?php\n        echo $this->db->email;\n?>    </div>\n    <style type=\"text/css\">\n      .school_header_area{\n      text-align: center;\n      font-size: 14px; \n      padding-bottom: 10px;\n      color: #000000;\n      border-width: 0px 0px 1px 0px;\n      border-color: #eeeeee;\n      border-style: solid;\n      margin-bottom: 5px;\n    \n      }\n  .school_title{\n    font-size: 25px;\n    font-family: 'Trocchi', serif;\n    font-weight: bold;\n  }\n  .header_area_logo{\n          height: 60px;\n          width: 60px;\n  }\n  \n    </style>\n\n  <?php\n    }\n    \n    \n}\n\n\n?>\n\n"
  },
  {
    "path": "script/sms/sms.php",
    "content": "<?php\n\n/**\n *\n */\n\nclass sms\n{\n    \n    public $student;\n    public $student_ob;\n    public $login_user;\n    \n    public function __construct($user_id)\n    {\n        \n        $this->db         = new database();\n        $this->login_user = $this->db->login_user;\n        $this->conn       = $this->db->conn;\n        $this->student_ob = new student();\n        \n        $this->login_user=$user_id;\n    }\n    \n    public function select($query)\n    {\n        return $this->result = $this->db->select($query);\n    }\n    \n    public function get_buy_sms_list()\n    {\n        $sql  = \"select sms_add.*,user.uname as user from sms_add INNER JOIN user ON user.id=add_by ORDER BY sms_add.id DESC\";\n        $info = $this->db->get_sql_array($sql);\n        return $info;\n    }\n    \n    public function get_send_sms_list()\n    {\n        $sql  = \"select sms_list.*,user.uname as user from sms_list INNER JOIN user ON user.id=sender ORDER BY sms_list.id DESC\";\n        $info = $this->db->get_sql_array($sql);\n        return $info;\n    }\n    \n    public function get_separate_sms_buy($id){\n        $sql  = \"select * from sms_add where id=$id\";\n        $info = $this->db->get_sql_array($sql);\n        return $info[0];\n    }\n\n    public function send_sms($sms_list)\n    {\n        \n        $data = $this->check_sms_balance_list($sms_list);\n        if ($data['per'] == 0)return;\n\n        $total      = $data['total'];\n        $start_time = strtotime($this->db->date());\n        $check_getway=$this->check_getway_database();\n        \n        if($check_getway==-1){\n            echo \"<b style='color:red'>You Can not add any gateway.Please Add Any Gateway For Send SMS</b>\";\n            return;\n        }\n\n        $this->sms_dist($total);\n        $this->send_mobile_phone($sms_list);\n        $end_time = strtotime($this->db->date());\n        $diff     = $end_time - $start_time;\n        \n        echo \"<b style='color:green'>All SMS Successfully Send.\n        <li>Total SMS Send: $total</li>\n        <li>Total Time: $diff Second</li></b>\";\n    }\n\n    public function check_sms_balance_list($sms_list)\n    {\n        \n        $total = 0;\n        foreach ($sms_list as $key => $value) {\n            $len = $value['len'];\n            $total += $len;\n        }\n        $info          = $this->sms_balance();\n        $balance       = $info['balance'];\n        $data['total'] = $total;\n        $data['per']   = ($total > $balance) ? 0 : 1;\n        \n        if($data['per']==0){\n            $need=$total-$balance;\n            echo \"<b style='color:red'>Insufficient Balance.\n            <li>Your Total SMS: $total sms</li>\n            <li>Your Balance: $balance sms</li>\n            <li>Your Need: $need sms</li>\n            Please Recharge Your Balance And Again Send SMS.Contact TechSerm Authority For Recharge Your Balance.</b>\";\n        }\n\n        return $data;\n    }\n\n    public function sms_balance()\n    {\n        $now             = $this->db->date();\n        $sql             = \"select SUM(total_sms) as total_sms ,SUM(total_send) as total_send from sms_add WHERE '$now' BETWEEN start AND end\";\n        $info            = $this->db->get_sql_array($sql);\n        $info            = $info[0];\n        $info['balance'] = $info['total_sms'] - $info['total_send'];\n        $balance         = $info['balance'];\n        \n        $sql                = \"select SUM(total_sms) as total_sms,SUM(total_send) as total_send from sms_add\";\n        $info               = $this->db->get_sql_array($sql);\n        $info               = $info[0];\n        $total_sms          = $info['total_sms'];\n        $total_send         = $info['total_send'];\n        $ex                 = ($total_sms - ($total_send + $balance));\n        $data['total_sms']  = $total_sms;\n        $data['total_send'] = $total_send;\n        $data['ex']         = $ex;\n        $data['balance']    = $balance;\n        return $data;\n    }\n\n    public function check_getway_database(){\n        $sql     = \"select * from sms_setting\";\n        $info    = $this->db->get_sql_array($sql);\n        if(!isset($info[0]))return -1;\n        return 1;\n    }\n\n    \n\n    public function sms_dist($total)\n    {\n        $now  = $this->db->date();\n        $sql  = \"select id,total_sms,total_send from sms_add WHERE '$now' BETWEEN start AND end ORDER BY end ASC\";\n        $info = $this->db->get_sql_array($sql);\n        \n        $data = array();\n        foreach ($info as $key => $value) {\n            $id         = $value['id'];\n            $total_sms  = $value['total_sms'];\n            $total_send = $value['total_send'];\n            $due        = $total_sms - $total_send;\n            if ($total <= 0)\n                break;\n            if ($due <= 0)\n                continue;\n            $use = ($due >= $total) ? $total : $due;\n            $total -= $use;\n            $res['id']         = $id;\n            $res['total_send'] = $use + $total_send;\n            array_push($data, $res);\n        }\n        \n        foreach ($data as $key => $value) {\n            $this->db->sql_action(\"sms_add\", \"update\", $value, \"no\");\n        }\n        \n    }\n\n    public function get_gateway_info(){\n        $sql     = \"select * from sms_setting\";\n        $gateway_info    = $this->db->get_sql_array($sql);\n        $gateway_info    = $gateway_info[0];\n        return $gateway_info;\n    }\n    \n    public function send_mobile_phone($sms_list)\n    {\n        \n        $sms_list=$this->make_sms_list_package($sms_list);\n        \n        $gateway_info=$this->get_gateway_info();\n        $gateway = $gateway_info['gateway'];\n        $token   = $gateway_info['token'];\n\n        $this->insert_sms_database($sms_list,$gateway_info);\n        \n        foreach ($sms_list as $key => $value) {\n            $data            = array();\n            $data['to']      = $value['to'];\n            $data['message'] = $value['message'];\n            $data['gateway'] = $gateway;\n            $data['token']   = $token;\n            $this->save_pending_sms($data);\n        }\n        \n    }\n\n    public function make_sms_list_package($sms_list){\n\n        /**make sms package\n            017,014,013=>hello user1\n            018,015,018=>hello user2\n        */\n        $final_sms_list=array();\n        $c=0;\n        $visit_index=array();\n        foreach ($sms_list as $key => $value) {\n            $msg=$value['message'];\n            $in=$key;\n            if(isset($visit_index[$in]))continue;\n            \n            $to_list=array();\n            foreach ($sms_list as $key => $value1) {\n                $msg1=$value1['message'];\n                $number=$value1['to'];\n                \n                if($msg==$msg1){\n                    $visit_index[$key]=1;\n                    array_push($to_list, $number);\n                }\n            }\n            $to_list=implode(',', $to_list);\n            $data=$this->make_sms_array($to_list,$msg);\n            array_push($final_sms_list, $data);\n            \n        }\n        return $final_sms_list;\n    }\n\n    public function insert_sms_database($sms_list,$gateway_info)\n    {\n        \n        $gateway = $gateway_info['gateway'];\n        $token   = $gateway_info['token'];\n\n        foreach ($sms_list as $key => $value) {\n            $info            = array();\n            $info['number']  = $value['to'];\n            $info['message'] = mysqli_real_escape_string($this->db->conn, $value['message']);\n            $info['len']     = $value['len'];\n            $info['gateway'] = $gateway;\n            $info['date']    = $this->db->date();\n            $info['token']   = $token;\n            $info['sender']  = $this->login_user;\n            $this->db->sql_action(\"sms_list\", \"insert\", $info, \"no\");\n        }\n        return 1;\n    }\n\n    public function save_pending_sms($info){\n        $data=array();\n        $data['number_list']=$info['to'];\n        $data['message']=mysqli_real_escape_string($this->db->conn, $info['message']);\n        $this->db->sql_action(\"pending_sms\", \"insert\", $data, \"no\");\n    }\n\n    public function get_pending_sms_list(){\n        $sql=\"select * from pending_sms\";\n        $info = $this->db->get_sql_array($sql);\n        return $info;\n    }\n\n    public function send_pending_sms($pending_id){\n        $sql=\"select * from pending_sms where id=$pending_id\";\n        $info = $this->db->get_sql_array($sql);\n        if(count($info)==0)return;\n        $data=$this->get_gateway_info();\n        $data['to']=$info[0]['number_list'];\n        $data['message']=$info[0]['message'];\n        $this->send_sms_getway($data);\n        $del_data=array();\n        $del_data['id']=$info[0]['id'];\n        $this->db->sql_action(\"pending_sms\", \"delete\", $del_data, \"no\");\n    }\n\n    public function send_sms_getway($info)\n    {\n        \n        $to      = $info['to'];\n        $message = $info['message'];\n        $token   = $info['token'];\n        $url     = $info['gateway'];\n\n        $data = array(\n            'to' => \"$to\",\n            'message' => \"$message\",\n            'token' => \"$token\"\n        );\n\n        $ch   = curl_init(); // Initialize cURL\n        curl_setopt($ch, CURLOPT_URL, $url);\n        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));\n        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n        $smsresult = curl_exec($ch);\n        \n    }\n\n\n    public function make_sms_array($number, $text)\n    {\n        $len = strlen($text);\n        $len = ceil($len / 160);\n\n        $total_number=explode(',', $number);\n        $total_number=count($total_number);\n        $len=$len*$total_number;\n        $res = array(\n            \"to\" => $number,\n            \"message\" => $text,\n            \"len\" => $len\n        );\n        return $res;\n    }\n    \n    public function valid_mobile($number)\n    {\n        if($number==\"\")return 0;\n      return (strlen($number)==11)?1:0;\n    }\n    \n    \n    public function get_sms_recever_option()\n    {\n\n        echo \" \n              <b>Select Recever</b>\n              <select class='form-control' id='select_receiver'>\n                <option value='-1'> --Select Recever-- </option>\n                <option value='all'> ALL </option>\n                <option value='st'> Student </option>\n                <option value='ga'> Guardians </option>\n              </select> \n              \n\n                \";\n    }\n\n\n   public function get_sms_recever_only_option()\n    {\n\n        echo \" \n             \n                <option value='-1'> --Select Recever-- </option>\n                <option value='all'> ALL </option>\n                <option value='st'> Student </option>\n                <option value='ga'> Guardians </option>\n                \";\n    }\n\n\n    \n\n    public function get_student_mobile_number($student_id,$per){\n     \n      $con=\"personal_mobile,father_mobile,mother_mobile\";\n      $sql=\"select $con from student where id=$student_id\";\n      $info=$this->db->get_sql_array($sql);\n      $info=$info[0];\n      $list=array();\n      $personal_mobile=$info['personal_mobile'];\n      $father_mobile=$info['father_mobile'];\n      $mother_mobile=$info['mother_mobile'];\n      if($per==\"st\" || $per==\"all\" && $this->valid_mobile($personal_mobile)==1)array_push($list, $personal_mobile);\n        if($per==\"ga\" || $per==\"all\"){\n      \n      if($this->valid_mobile($father_mobile)==1)array_push($list, $father_mobile);\n      if($this->valid_mobile($mother_mobile)==1)array_push($list, $mother_mobile);\n          \n      }\n\n\n      return $list;\n    }\n\n\n    \n    public function get_syn()\n    {\n        $info                     = array();\n        $info['{{student_name}}'] = \"Student Name\";\n        $info['{{nick_name}}']    = \"Nick Name\";\n        $info['{{id}}']           = \"Student Id\";\n        $info['{{student_pass}}'] = \"Student Password\";\n        return $info;\n    }\n    \n    public function get_syntext()\n    {\n        $info = $this->get_syn();\n        foreach ($info as $key => $value) {\n            echo \"<option value='$key'>$value</option>\";\n        }\n    }\n\n     public function syn_info($id)\n    {\n      \n        $st_info=$this->student_ob->get_info($id);\n        $info['{{student_name}}'] = $st_info['name'];\n        $info['{{nick_name}}']    = $st_info['nick'];\n        $info['{{id}}']           = $st_info['id'];\n\n        \n        return $info;\n    }\n    \n    public function get_sms($student_id, $text)\n    {\n        $info = $this->syn_info($student_id);\n        $syn  = $this->get_syn();\n        foreach ($syn as $key => $value) {\n            $syn_val  = $key;\n            $info_val = (isset($info[$key]))?$info[$key]:\"\";\n            $text     = str_replace($syn_val, $info_val, $text);\n        }\n        \n        return $text;\n    }\n    \n    public function test()\n    {\n        echo \"hello\";\n    }\n    \n    \n    \n}\n\n?>"
  },
  {
    "path": "script/student/add_ajax.js",
    "content": "\nfunction select_program(){\n\nprogram_id=document.getElementById(\"program\").value;\n\n\n\n $.ajax({\n        type: 'POST',\n        url: 'student_add_ajax.php',\n        data: {\n            select_program: program_id\n        },\n        success: function(response) {\n          //alert(\"Yay!\");\n            document.getElementById(\"batch\").innerHTML =response;\n            total_pament(program_id);\n        }\n    });\n\n}\n \nfunction total_pament(pid){\n     $.ajax({\n        type: 'POST',\n        url: 'student_add_ajax.php',\n        data: {\n            total_pament: pid\n        },\n        success: function(response) {\n          //alert(\"Yay!\");\n            document.getElementById(\"total\").value =response;\n            cal_advanced()\n        }\n    });\n}\n\n\nfunction cal_advanced(){\n      $ad=document.getElementById(\"advenced\").value;\n      $total=document.getElementById(\"total\").value;\n      $due=$total-$ad;\n      document.getElementById(\"due\").value=$due;\n}\n\n\nfunction test(argument) {\n\talert(\"work\");\n}\n\nfunction attend(){\n\n  id=document.getElementById(\"id\").value;\n\n $.ajax({\n        type: 'POST',\n        url: 'student_add_ajax.php',\n        data: {\n            attend: id\n        },\n        beforeSend: function() {\n          document.getElementById(\"load\").innerHTML=\"Saving\";\n        },\n        success: function(response) {\n            //alert(\"Yay!\");\n            document.getElementById(\"id\").value=\"\";\n            document.getElementById(\"load\").innerHTML=\"Save Attendence\";\n            document.getElementById(\"msg\").innerHTML =response;\n            \n            \n            \n        }\n    });\n\n}\n\nfunction loader(){\n    document.getElementById(\"looding\").innerHTML=\"<div class='loader'></div>\";\n}\nfunction close_loader(){\n    document.getElementById(\"looding\").innerHTML=\"\";\n}\n\nfunction edit_student(id){\n     $.ajax({\n        type: 'POST',\n        url: 'student_add_ajax.php',\n        data: {\n            edit_student: id\n        },\n        beforeSend: function() {\n          //document.getElementById(\"load\").innerHTML=\"Saving\";\n        },\n        success: function(response) {\n            //alert(\"Yaysd!\");\n            document.getElementById(\"edit_body\").innerHTML=response;\n \n        }\n    });\n}\n\n"
  },
  {
    "path": "script/student/student.php",
    "content": "<?php\n\n/**\n*\n*/\ninclude 'script/student/student_edit.php';\n\nclass student extends student_edit\n{\n  public $db;\n  public $program_ob;\n  public $student_list;\n\t\n\t public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     $this->program_ob=new program();\n     $this->student_list=$this->get_student_info1();\n     \n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\npublic function valid_number($val){\n  return ($val!=0)?\"{$val}\": \"\";\n}\npublic function valid_mobile_number($val){\n  return (strlen($val)>=11)?$val: \"\";\n}\n\n public function get_student_info(){\n      return $this->student_list;\n }\n\n  public function get_student_info1(){\n    $info=array();\n    $sub=array();\n    $sql=\"select * from student ORDER BY id DESC;\";\n     $res=$this->select($sql);\n     while ($row=mysqli_fetch_array($res)) {\n      $url=\"upload/student_photo/\";\n      $id=$row['id'];\n      $sub['id']=$id;\n      $sub[\"name\"]=$row['name'];\n      $sub['nick']=$row['nick'];\n      $sub['father_name']=$row['father_name'];\n      $sub[\"mother_name\"]=$row['mother_name'];\n      $sub[\"personal_mobile\"]=$this->valid_mobile_number($row['personal_mobile']);\n      $sub[\"father_mobile\"]=$this->valid_mobile_number($row['father_mobile']);\n      $sub[\"mother_mobile\"]=$this->valid_mobile_number($row['mother_mobile']);\n\n      $sub[\"email\"]=$row['email'];\n      $sub[\"birth_day\"]=$row['birth_day'];\n      $sub[\"gender\"]=$row['gender'];\n      $sub[\"religion\"]=$row['religion'];\n      $sub[\"address\"]=$row['address'];\n      $sub['photo']=$url.$row['photo'];\n      \n      $sub[\"school\"]=$row['school'];\n      $sub[\"ssc_rool\"]=$this->valid_number($row['ssc_rool']);\n      $sub[\"ssc_reg\"]=$this->valid_number($row['ssc_reg']);\n      $sub[\"ssc_board\"]=$row['ssc_board'];\n      $sub[\"ssc_result\"]=$this->valid_number($row['ssc_result']);\n      $sub['program_list']=$this->get_separate_program_list($id);\n      \n      $sub[\"date\"]=$row['date'];\n\n      $info[$id]=$sub;\n     }\n   return $info;\n  }\n\n\npublic function get_info($student_id){\n  $sql=\"select * from student where id=$student_id\";\n  $info=$this->db->get_sql_array($sql);\n  $info=$info[0];\n  $url=\"upload/student_photo/\";\n  $info['photo']=$url.$info['photo'];\n  \n  return $info;\n}\n\npublic function get_admit_program_info($admit_id){\n  $sql=\"\n  select \n  admit_program.*,student.name as student_name,\n  program.name as program_name, batch.name as batch_name,\n  user.uname as admit_by\n  from admit_program\n  INNER JOIN program ON program.id=admit_program.program_id \n  INNER JOIN student ON student.id=admit_program.student_id \n  INNER JOIN user ON user.id=admit_program.admit_by \n  INNER JOIN batch ON batch.id=admit_program.batch_id \n  WHERE admit_program.id=$admit_id\n  \";\n  $info=$this->db->get_sql_array($sql);\n  return $info[0];\n}\n\n\npublic function stuednt_admission_sms($admit_id){\n  \n  $info=$this->get_admit_program_info($admit_id);\n\n  $sms=\"Dear student_name,\\nCongratulation for admit our program_name.\\nYour ID: 10007\\nBatch: Protassa\\nBatch Time: Mon,Wed,Fry(10-11)\\n\\nBest Wish.\n\n  TechSerm\n  01991223020\n  \";\n  return $sms;\n}\n\npublic function get_mobile_number($student_id,$per){\n  $con=\"\";\n  if($per==\"all\")$con=\"personal_mobile,father_mobile,mother_mobile\";\n  else if($per==\"ga\")$con=\"father_mobile,mother_mobile\";\n  else if($per==\"st\")$con=\"personal_mobile\";\n  $sql=\"select $con from student where id=$student_id\";\n  $info=$this->db->get_sql_array($sql);\n return $info;\n}\n\n\npublic function get_student_list($program_id,$batch_id=0){\n  if($batch_id==0)$sql=\"select * from admit_program where program_id=$program_id\";\n  else $sql=\"select * from admit_program where program_id=$program_id and batch_id=$batch_id\";\n  $info=$this->db->get_sql_array($sql);\n return $info;\n}\n\n\npublic function process_array($info){\n  $res=array();\n  $c=0;\n  foreach ($info as $key => $value) {\n    if($c%2==1)$res[$key]=$value;\n    $c++;\n  }\n  return $res;\n}\n\npublic function get_separate_program_list($student_id){\n   $info=array();\n   $sub=array();\n   $sql=\"select * from admit_program where student_id=$student_id ORDER BY id DESC;\";\n   $res=$this->select($sql);\n   while($row=mysqli_fetch_array($res)){\n      $id=$row['id'];\n      $info[$id]=$this->process_array($row);\n   }\n\nreturn $info;\n}\n\n\n\npublic function get_admit_program_option($student_id){\n   $sql=\"select * from admit_program  where student_id= '$student_id'\";\n   $info=$this->db->get_sql_array($sql);\n   return $info;\n}\n\n\npublic function get_student_program_info($student_id){\n  $sql=\"select admit_program.program_id,program.name from admit_program LEFT JOIN program ON admit_program.program_id = program.id WHERE admit_program.student_id='$student_id'\";\n  $info=$this->db->get_sql_array($sql);\n  return $info;\n}\n\npublic function get_student_program_option($student_id){\n  $info=$this->get_student_program_info($student_id);\n  foreach ($info as $key => $value) {\n        $program_id=$value['program_id'];\n        $program_name=$value['name'];\n        echo \"<option value='$program_id'>$program_name</option>\";\n  }\n  return $info;\n}\n\npublic function get_program_list(){\n   $info=array();\n   $sub=array();\n   $sql=\"select * from admit_program ORDER BY id DESC\";\n   $res=$this->select($sql);\n   while($row=mysqli_fetch_array($res)){\n      $id=$row['id'];\n      $info[$id]=$this->process_array($row);\n   }\n\nreturn $info;\n}\n\n\npublic function cheikh_student($program_id,$student_id){\n  $info=$this->get_student_info();\n  $info=$info[$student_id]['program_list'];\n\n  foreach ($info as $key => $value) {\n     $id=$value['program_id'];\n     if($program_id==$id)return 1;\n  }\n  return 0;\n}\n\npublic function select_pending_program_by_student($student_id){\n  $sql=\"select DISTINCT(program_id) from admit_program where student_id=$student_id\"; \n  $info=$this->db->get_sql_array($sql);\n  $admit_program=array();\n  foreach ($info as $key => $value){\n    array_push($admit_program, $value);\n  }\n \n  $people = array(3,20,2);\n  $criminals = array( 2, 4, 8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);\n  $fastfind = array_diff($people,$criminals);\n   echo \"<pre>\";\n   print_r($fastfind);\n   echo \"</pre>\";\n}\n\n\npublic function select_program_by_student($s_id){\n   $info=$this->program_ob->get_program_info();\n   \n   foreach ($info as $key => $value) {\n      $id=(int)$value['id'];\n      $student_id1=(int)$s_id;\n      $per=$this->cheikh_student($id,$student_id1);\n      if($per==0){\n        $name=$value['name'];\n        echo \"<option value='$id'> $name </option>\";\n      }\n   }\n}\n\n  public function new_id(){\n\n  $arr=array();\n  $c=0;\n  $info=$this->get_student_info();\n   foreach ($info as $key => $value) {\n     $id=$value['id'];\n     array_push($arr, $id);\n     $c++;\n   }\n   if($c==0)return 10001;\n   else {\n    rsort($arr);\n    return $arr[0]+1;\n   }\n   \n  }\n\n  public function cheikh_student_program($student_id,$program_id){\n    $info=$this->get_student_info();\n    $info=$info[$student_id]['program_list'];\n    foreach ($info as $key => $value) {\n      $id=$value['program_id'];\n      if($id==$program_id)return 1;\n    }\n    return 0;\n  }\n\n\n  public function cheikh_student_batch($student_id,$program_id,$batch_id){\n    $info=$this->get_student_info();\n    $info=$info[$student_id]['program_list'];\n    foreach ($info as $key => $value) {\n      $id=$value['program_id'];\n      $batch=$value['batch_id'];\n      if($id==$program_id){\n        if($batch_id==$batch)return 1;\n      }\n    }\n    return 0;\n  }\n\n\n  public function get_batch($batch_id){\n    $info=$this->get_student_info();\n    $res_info=array();\n    foreach ($info as $key => $value) {\n      $id=$value['id'];\n      $batch=$value['batch'];\n      if($batch==$batch_id){\n        $res_info[$id]=$value;\n      }\n    }\n    return $res_info;\n  }\n\n\n\n\npublic function get_total_student($program_id,$batch_id){\n  $info=$this->get_student_list($program_id,$batch_id);\n  return count($info);\n}\n\npublic function find_student($student_id){\n  $info=$this->get_student_info();\n  $flag=0;\n  foreach ($info as $key => $value) {\n    $id=$value['id'];\n    if($id==$student_id){\n      $flag=1;\n      break;\n    }\n  }\n  return $flag;\n}\n\n\n\n\n}\n\n?>\n\n"
  },
  {
    "path": "script/student/student_edit.php",
    "content": "<?php\n\n/**\n* \n*/\n\nclass student_edit {\n   \n\n//starting connection\npublic $student_ob;\npublic $student;\npublic $program;\n\n\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     $this->student_ob=new student();\n     $this->student=$this->student_ob->get_student_info();\n     \n } \n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\n\npublic function get_student_profile($student_id){\n  $info=$this->get_student_info();\n  $info=$info[$student_id];\n  $site_ob=new site_content();\n  $barcode=$site_ob->barcode($student_id);\n?>\n\n<div style=\"margin-top: 70px;\"></div>\n<div class=\"row\">\n  <div class=\"col-md-1\"></div>\n    <div class=\"col-md-12\">\n      <div class=\"avatar\">\n        <center>\n          <img src=\"<?php echo $info['photo']; ?>\" class=\"img-circle img-thumbnail student_photo\"><br/>\n          <div class=\"profile_info_area\">\n            <?php echo $info['name']; ?><br/>\n            ID: <?php echo $info['id']; ?><br/>\n            <img class=\"barcode_profile\" src=\"<?php echo \"$barcode\" ?>\">\n          </div>\n          <a href=\"student_profile.php?get_id=<?php echo $student_id; ?>&tab=info\" target=\"_blank\"><button title='View Profile' class=\"btn btn_profile\" >View Profile</button></a>\n          <a href=\"student_profile.php?get_id=<?php echo $student_id; ?>&tab=program\" target=\"_blank\"><button title='View Program' class=\"btn btn_profile\" >View Program</button></a>\n          <a href=\"student_profile.php?get_id=<?php echo $student_id; ?>&tab=payment\" target=\"_blank\"><button title='View Payment' class=\"btn btn_profile\" >View Payment</button></a>\n         \n        </center>\n        <div style=\"margin-top: 10px;\"></div>\n      <div class=\"row\">\n        <div class=\"col-md-1\"></div>\n        <div class=\"col-md-10\">\n          <table style=\"width: 100%\">\n            <tr>\n              <td class=\"td_profile td_profile1\">Full Names: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['name']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Nick Name: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['nick']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Student ID: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['id']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Father Name: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['father_name']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Mother Name: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['mother_name']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Student Mobile: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['personal_mobile']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Father Mobile: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['father_mobile']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Mother Mobile: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['mother_mobile']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Birthday: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['birth_day']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Religion: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['religion']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Gender: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['gender']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">Address: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['address']; ?></td>\n            </tr>\n            <tr>\n              <td class=\"td_profile td_profile1\">School/College: </td>\n              <td class=\"td_profile td_profile2\"><?php echo $info['school']; ?></td>\n            </tr>\n          </table>\n        </div>\n      </div>\n\n      </div>\n\n        \n    </div>    \n  \n</div>\n\n\n\n\n<style type=\"text/css\">\n.profile_info_area{\n  font-size: 17px;\n  margin-bottom: 8px;\n}\n.barcode_profile{\n  height: 30px;\n  width: 170px;\n}\n\n.student_photo{\n    height: 150px;\n    width: 150px;\n    margin-top: -75px;\n  }\n  .avatar{\n    background-color: #ffffff;\n    height: auto;\n    border-radius: 5px;\n    border: 1px solid #B8B9B7;\n    color: #4A4A4A;\n    padding: 5px;\n    \n    font-weight: bold;\n  }\n\n\n  .td_profile1,.td_profile2{\n    border-width: 1px;\n    border-color: #DDDDDD;\n    border-style: solid;\n    padding: 10px;\n  }\n\n.td_profile1{\n  width: 230px;\n  text-align: right;\n  background-color: #ECF0F1;\n  color: #4A4A4A;\n}\n.btn_profile{\n  background-color: var(--bg-color);\n  color: var(--font-color);\n  font-weight: bold;\n}\n.btn_profile:hover{\n  font-size: 15px;\n  color: var(--font-color);\n}\n.btn_profile:focus{\n  font-size: 15px;\n  color: var(--font-color);\n}\n</style>\n\n<?php\n\n}\n\npublic function test_edit(){\n\techo \"hello\";\n}\n\npublic function student_edit_form($id){\n\t$site=new site_content();;\n\t\n\t$student=$this->get_student_info();\n\t$info=$student[$id];\n\t$name=$info['name'];\n\t$nick=$info['nick'];\n\t$father_name=$info['father_name'];\n\t$mother_name=$info['mother_name'];\n\t$student_mobile=$info['personal_mobile'];\n\t$father_mobile=$info['father_mobile'];\n\t$mother_mobile=$info['mother_mobile'];\n\t$birthday=$info['birth_day'];\n\t$gender=$info['gender'];\n\t$religion=$info['religion'];\n\t$email=$info['email'];\n\t$image=$info['photo'];\n\t\n\t$school=$info['school'];\n\t$ssc_rool=$info['ssc_rool'];\n\t$ssc_reg=$info['ssc_reg'];\n\t$ssc_board=$info['ssc_board'];\n\t$ssc_result=$info['ssc_result'];\n  $address=$info['address'];\n\n\t?>\n<style type=\"text/css\">\n    .my_red{\n      background-color: #414959;\n    }\n    .box_header{\n        background-color: var(--bg-color);\n        color: var(--font-color);\n        padding: 15px;\n        border-width: 0px;\n        border-style: solid;\n        border-color: var(--bg-color);\n\n    }\n    .box{\n        border-width: 1px;\n        border-style: solid;\n        border-color: var(--bg-color);\n    }\n\n    .box_body{\n        padding: 15px;\n        background-color: #DDDEE3;\n    }\n    .box_btn{\n        background-color: #674172;\n        padding: 15px;\n        width: 100%;\n        color: #ffffff;\n        border-width: 0px;\n        font-size: 19px;\n    }\n\n</style>\n \n     <div class=\"row\">\n      <div class=\"col-xs-12 col-sm-12\"> \n <div class=\"box\" >\n\n  \n<div class=\"box_header\">\n        <div class=\"panel-title\">Personal Information</div>                   \n    </div>  \n\n<div style=\"padding-top:30px\" class=\"box_body\" >\n    <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\"></div>\n    <form action=\"student_action.php\" method=\"post\" enctype=\"multipart/form-data\">\n      <input type=\"number\" name=\"student_id\" value=\"<?php echo \"$id\"; ?>\" hidden>\n      <?php\n\n      //$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n      \n       $site->form_input(\"Student Full Name\",\"name\",\"name\",\"text\",\"exclamation-sign\",\"$name\",\"\",\"yes\");\n\n      $site->form_input(\"Student Nick Name\",\"nick\",\"nick\",\"text\",\"exclamation-sign\",\"$nick\",\"\",\"yes\");\n\n      $site->form_input(\"Father Name\",\"father_name\",\"father_name\",\"text\",\"exclamation-sign\",\"$father_name\",\"\",\"no\");\n      $site->form_input(\"Mother Name\",\"mother_name\",\"mother_name\",\"text\",\"exclamation-sign\",\"$mother_name\",\"\",\"no\");\n      $site->form_input(\"Sudent mobile\",\"student_mobile\",\"student_mobile\",\"number\",\"exclamation-sign\",\"$student_mobile\",\"\",\"no\");\n\n      $site->form_input(\"Father mobile\",\"father_mobile\",\"number\",\"number\",\"exclamation-sign\",\"$father_mobile\",\"\",\"no\");\n\n      $site->form_input(\"Mother mobile\",\"mother_mobile\",\"mobile\",\"number\",\"exclamation-sign\",\"$mother_mobile\",\"\",\"no\");\n\n      $site->form_input(\"Email\",\"email\",\"mobile\",\"text\",\"exclamation-sign\",\"$email\",\"\",\"no\");\n      $site->form_input(\"Birthday\",\"birthday\",\"mobile\",\"date\",\"exclamation-sign\",\"$birthday\",\"\",\"yes\");\n\n      ?>\n\n\n<div class='form-group'>\n        <label class='control-label' for='inputName'><b>Religion</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n<select class='form-control'  name='religion' id='brand_add' class='cs-select cs-skin-border' required=\"\">\n\n  <option value=\"Muslim\" <?php if($religion==\"Muslim\")echo \"selected\"; ?>>Muslim</option>\n  <option value=\"Hindu\" <?php if($religion==\"Hindu\")echo \"selected\"; ?>>Hindu</option>\n  <option value=\"Buddo\" <?php if($religion==\"Buddo\")echo \"selected\"; ?>>Buddo</option>\n  <option value=\"Cristan\" <?php if($religion==\"Cristan\")echo \"selected\"; ?>>Cristan</option>\n</select>\n</div></div>\n\n<div class='form-group'>\n        <label class='control-label' for='inputName'><b>Gender</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n<select class='form-control'  name='gender' id='brand_add' class='cs-select cs-skin-border' required=\"\">\n  <option value=\"Male\" <?php if($gender==\"Male\")echo \"selected\"; ?>>Male</option>\n  <option value=\"Female\" <?php if($gender==\"Female\")echo \"selected\"; ?>>Female</option>\n  \n</select>\n</div></div>\n\n\n      <?php\n      \n       $site->form_input(\"Address\",\"address\",\"address\",\"text\",\"exclamation-sign\",\"$address\",\"\",\"no\");\n\n       ?>   \n  <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Upload Student Photo</b></label>\n    <div class=\"input-group\">\n      <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-camera\"></i></span>\n      <input type=\"file\" class=\"form-control\" id=\"image\" name=\"image\" accept=\"image/*\"  onchange=\"document.getElementById('edit_thumbnil_<?php echo $id; ?>').src = window.URL.createObjectURL(this.files[0])\" />\n        <br/>\n    </div>\n    <div id=\"err_product_image\" class=\"error\"></div>\n  <img id=\"edit_thumbnil_<?php echo $id; ?>\" style=\"width:20%; margin-top:10px;\"  src=\"<?php echo \"$image\";?>\" alt=\"image\"/>\n</div> \n     \n</div>  \n\n<!-- Start Academic Information -->\n\n<div class=\"box_header\">\n        <div class=\"panel-title\">Academic Information</div>                   \n    </div>     \n\n<div style=\"padding-top:30px\" class=\"box_body\" >\n    <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\"></div>\n                                 \n        \n       <?php \n\n    $site->form_input(\"School Name\",\"school_name\",\"school_name\",\"text\",\"exclamation-sign\",\"$school\",\"\",\"no\");\n    $site->form_input(\"SSC Rool Number\",\"ssc_rool\",\"ssc_rool\",\"number\",\"exclamation-sign\",\"$ssc_rool\",\"\",\"no\");\n    $site->form_input(\"SSC Registration Number\",\"ssc_reg\",\"ssc_reg\",\"number\",\"exclamation-sign\",\"$ssc_reg\",\"\",\"no\");\n    $site->form_input(\"SSC Board Name\",\"ssc_board\",\"ssc_board\",\"text\",\"exclamation-sign\",\"$ssc_board\",\"\",\"no\");\n    \n  ?>\n<div class='form-group'>\n        <label class='control-label' for='inputName'><b>SSC Result</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span>     \n            <input class='form-control' data-error='' id='ssc_result' value='<?php echo \"$ssc_result\" ?>' step=\"0.01\" placeholder='Enter SSC Result'  type='number' name='ssc_result'  />\n        </div>  \n        <div id='err_product_date' class='error'></div>\n</div>\n          \n</div>  \n\n<!-- End Academic Information -->\n\n<!-- Start Academic Information -->\n\n<!-- End Academic Information -->\n\n       <button class=\"box_btn\" name=\"update\" type=\"submit\" style=\"\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Update Information</button>                  \n    \n</form>\n\n<!-- end body -->\n        </div>\n</div>\n</div>\n\t<?php\n}\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/subject/subject.php",
    "content": "<?php\n\n/**\n*\n*/\n\nclass subject\n{\n\t\n\t public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n     \n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n\n\n\n  public function get_subject_info(){\n      $info=array();\n      $sub=array();\n     $sql=\"select * from subject ORDER BY id DESC\";\n     $res=$this->select($sql);\n     while ($row=mysqli_fetch_array($res)) {\n     \t$id=$row['id'];\n      $sub['id']=$id;\n     \t$sub[\"name\"]=$row['sub_name'];\n     \t$sub[\"code\"]=$row['sub_code'];\n     \n      $info[$id]=$sub;\n     }\n\t return $info;\n  }\n\n\n public function get_new_subject_id(){\n    $info=$this->get_subject_info();\n    $sub_id=array();\n    array_push($sub_id, 0);\n  foreach ($info as $key => $value) {\n    $id=$value['id'];\n    array_push($sub_id, $id);\n  }\n  rsort($sub_id);\n  return $sub_id[0]+1;\n  }\n\n  \n\n \n}\n\n?>"
  },
  {
    "path": "script/template_class/template_class.php",
    "content": "<?php\n\n\nclass class_name {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/theme/index.php",
    "content": ""
  },
  {
    "path": "script/theme/theme.php",
    "content": "<?php\n\n\nclass theme {\n   \n\n//starting connection\n\n public function __construct(){\n     \n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n  public function get_theme_info(){\n    $info=array();\n    $sub=array();\n    $sql=\"select * from theme\";\n     $res=$this->select($sql);\n     while ($row=mysqli_fetch_array($res)) {\n      $id=$row['id'];\n      $sub['id']=$id;\n      $sub['name']=$row['name'];\n      $sub['bg_color']=$row['bg_color'];\n      $sub['font_color']=$row['font_color']; \n      $sub['date']=$row['date'];\n      $sub['added_by']=$row['added_by'];\n      $info[$id]=$sub;\n     }\n    \n   return $info;\n  }\n\n  public function get_theme($theme_id){\n    $info=$this->get_theme_info();\n    $flag=0;\n    foreach ($info as $key => $value) {\n    \t$id=$value['id'];\n    \tif($id==$theme_id){\n    \t\t$flag=1;\n    \t\tbreak;\n    \t}\n    }\n    if($flag==0)$theme_id=1;\n    \n    return $info[$theme_id];\n  }\n\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "script/user/user.php",
    "content": "<?php\n\n\nclass user {\n   \n\n//starting connection\npublic $login_user_id;\n public function __construct($id=\"\"){\n     $this->login_user_id=$id;\n     $this->db=new database();\n     $this->conn=$this->db->conn;\n\n }\n\n public function select($query){\n   return $this->result=$this->db->select($query);\n  }\n\n//end dabtabase connection\n\npublic function get_user_info(){\n\t$info=array();\n\t$sql=\"select * from user\";\n\t$res=$this->select($sql);\n\twhile ($row=mysqli_fetch_array($res)) {\n\t\t$id=$row['id'];\n\t\t$sub=$this->db->process_mysql_array($row);\n\t\t$sub['photo_orginal']=$row['photo'];\n\t\t$sub['phone']='0'.$sub['phone'];\n\t\t$sub['photo']=\"upload/user_photo/\".$sub['photo'];\n\t\t$info[$id]=$sub;\n\t}\n\treturn $info;\n}\n\n\npublic function cheikh_user($uid){\n\t$info=$this->get_user_info();\n    foreach ($info as $key => $value) {\n    \t$id=$value['id'];\n    \tif($uid==$id)return 1;\n    }\n    return 0;\n}\n \npublic function get_login_user(){\n\t$info=$this->get_user_info();\n\treturn $info[$this->login_user_id];\n}\n\npublic function get_browser($browser){\n\tif(strpos($browser, 'MSIE') !== FALSE)\n   \t\t$browser='Internet explorer';\n \telseif(strpos($browser, 'Trident') !== FALSE)\n    \t$browser='Internet explorer';\n \telseif(strpos($browser, 'Firefox') !== FALSE)\n   \t\t$browser='Mozilla Firefox';\n \telseif(strpos($browser, 'Chrome') !== FALSE)\n   \t\t$browser='Google Chrome';\n \telseif(strpos($browser, 'Opera Mini') !== FALSE)\n   \t\t$browser=\"Opera Mini\";\n \telseif(strpos($browser, 'Opera') !== FALSE)\n   \t\t$browser=\"Opera\";\n \telseif(strpos($browser, 'Safari') !== FALSE)\n   \t\t$browser=\"Safari\";\n \telse\n   \t\t$browser='Something else';\n\treturn $browser;\n}\n\npublic function get_user_permission_list($permit){\n   \n   $sql=\"\";\n   if($permit==\"deactive\")$sql=\"where status=0\";\n   if($permit==\"active\")$sql=\"where status=1\";\n   if($permit==\"institute\")$sql=\"where permit>5\";\n   if($permit==\"techserm\")$sql=\"where permit <=5\";\n   $sql=($sql!=\"\")?\"$sql and permit <8\":\"where permit<8\";\n   $sql=\"select id from user $sql\";\n   $info=$this->db->get_sql_array($sql);\n   return $info;\n}\n\npublic function user_permission_list(){\n  $per=array();\n  $sort_name=$this->db->sort_name;\n  $per[1]=\"TechSerm Super Admin\";\n  $per[2]=\"TechSerm Admin\";\n  $per[3]=\"TechSerm Manager\";\n  $per[4]=\"TechSerm Engineer\";\n  \n  $per[6]=\"$sort_name Admin\";\n  $per[7]=\"$sort_name Accountant\";\n  $per[8]=\"$sort_name Teacher\";\n\nreturn $per;\n}\n\npublic function get_user_can_update_option($user_role,$login_user_role){\n  $list=$this->user_permission_list();\n  $option_list=\"<option value='-1'>Select User Role</option>\";\n  foreach ($list as $key => $value) {\n    $role=$key;\n    $select=\"\";\n    if($user_role<$login_user_role)continue;\n    if($login_user_role>=$role)continue;\n    if($role==$user_role)$select=\"selected\";\n    $option_list.=\"<option value='$role' $select>$value</option>\";\n  }\n  echo \"$option_list\";\n  return $option_list;\n}\n\npublic function get_user_permission($permission){\n  $get_per=$this->user_permission_list();\n  return $get_per[$permission];\n}\n\n\n\n}\n\n\n?>\n\n"
  },
  {
    "path": "setting.php",
    "content": "<?php\n\ninclude 'layout/header.php';\ninclude 'page/setting/setting.php';\ninclude 'layout/footer.php';\n\n\n?>\n"
  },
  {
    "path": "setting_action.php",
    "content": " <?php\n\ninclude \"layout/header_script.php\";\ninclude \"page_action/setting/setting.php\";\n\n?>"
  },
  {
    "path": "sms_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\ninclude \"page_action/sms/sms_action.php\";\n\n\n\n\n?>"
  },
  {
    "path": "sms_dashboard.php",
    "content": "\n\n<?php\n\ninclude 'layout/header.php';\ninclude \"page/sms/sms_dashboard.php\";\ninclude \"layout/footer.php\";\n?>\n"
  },
  {
    "path": "sql/install_sql.sql",
    "content": "-- phpMyAdmin SQL Dump\n-- version 4.6.4\n-- https://www.phpmyadmin.net/\n--\n-- Host: 127.0.0.1\n-- Generation Time: Aug 27, 2019 at 12:42 AM\n-- Server version: 5.7.14\n-- PHP Version: 5.6.25\n\nSET SQL_MODE = \"NO_AUTO_VALUE_ON_ZERO\";\nSET time_zone = \"+00:00\";\n\n\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n/*!40101 SET NAMES utf8mb4 */;\n\n--\n-- Database: `youth`\n--\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `admit_program`\n--\n\nCREATE TABLE `admit_program` (\n  `id` int(11) NOT NULL,\n  `student_id` int(11) NOT NULL,\n  `program_id` int(11) NOT NULL,\n  `batch_id` int(11) NOT NULL,\n  `admit_date` datetime NOT NULL,\n  `admit_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `batch`\n--\n\nCREATE TABLE `batch` (\n  `id` int(11) NOT NULL,\n  `name` text NOT NULL,\n  `start` text,\n  `end` text NOT NULL,\n  `day` text\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `chat`\n--\n\nCREATE TABLE `chat` (\n  `id` int(11) NOT NULL,\n  `user_id` int(11) NOT NULL,\n  `message` text NOT NULL,\n  `date` datetime NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `class`\n--\n\nCREATE TABLE `class` (\n  `classid` int(11) NOT NULL,\n  `classname` text NOT NULL,\n  `subject_code` text\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `exam`\n--\n\nCREATE TABLE `exam` (\n  `id` int(11) NOT NULL,\n  `program_id` int(11) NOT NULL,\n  `sub_id` int(11) NOT NULL,\n  `exam_name` text NOT NULL,\n  `total` int(11) DEFAULT NULL,\n  `mcq` int(11) DEFAULT NULL,\n  `written` int(11) DEFAULT NULL,\n  `exam_date` date NOT NULL,\n  `date` timestamp NULL DEFAULT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `exam_category`\n--\n\nCREATE TABLE `exam_category` (\n  `id` int(11) NOT NULL,\n  `category_name` text NOT NULL,\n  `program_id` int(11) NOT NULL,\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `exam_list`\n--\n\nCREATE TABLE `exam_list` (\n  `id` int(11) NOT NULL,\n  `exam_name` text NOT NULL,\n  `category_id` int(11) NOT NULL,\n  `subject_name` int(11) NOT NULL,\n  `exam_date` datetime NOT NULL,\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `exam_mark`\n--\n\nCREATE TABLE `exam_mark` (\n  `id` int(11) NOT NULL,\n  `exam_id` int(11) NOT NULL,\n  `mark_category_id` int(11) NOT NULL,\n  `total_mark` int(11) NOT NULL DEFAULT '0',\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `expence`\n--\n\nCREATE TABLE `expence` (\n  `id` int(11) NOT NULL,\n  `name` text NOT NULL,\n  `amount` int(11) NOT NULL,\n  `notes` text,\n  `add_by` int(11) NOT NULL,\n  `date` datetime NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `expence_category`\n--\n\nCREATE TABLE `expence_category` (\n  `id` int(11) NOT NULL,\n  `category_name` text NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `income`\n--\n\nCREATE TABLE `income` (\n  `id` int(11) NOT NULL,\n  `name` text NOT NULL,\n  `amount` int(11) NOT NULL,\n  `notes` text,\n  `add_by` int(11) NOT NULL,\n  `date` datetime NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `mark_category`\n--\n\nCREATE TABLE `mark_category` (\n  `id` int(11) NOT NULL,\n  `name` text NOT NULL,\n  `add_by` int(11) NOT NULL,\n  `date` datetime NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `notice`\n--\n\nCREATE TABLE `notice` (\n  `id` int(11) NOT NULL,\n  `title` text NOT NULL,\n  `description` text NOT NULL,\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `payment`\n--\n\nCREATE TABLE `payment` (\n  `id` int(11) NOT NULL,\n  `student_id` int(11) NOT NULL,\n  `paid` double NOT NULL,\n  `next_date` date DEFAULT NULL,\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `pending_sms`\n--\n\nCREATE TABLE `pending_sms` (\n  `id` int(11) NOT NULL,\n  `number_list` text NOT NULL,\n  `message` text NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `program`\n--\n\nCREATE TABLE `program` (\n  `id` int(11) NOT NULL,\n  `name` text NOT NULL,\n  `start` date DEFAULT NULL,\n  `end` date DEFAULT NULL,\n  `subject` text,\n  `batch` text,\n  `fee` double DEFAULT NULL,\n  `type` int(11) NOT NULL DEFAULT '1',\n  `monthly_fee` int(11) NOT NULL DEFAULT '0',\n  `add_by` int(11) DEFAULT NULL,\n  `date` datetime NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `receive_payment`\n--\n\nCREATE TABLE `receive_payment` (\n  `id` int(11) NOT NULL,\n  `payment_id` int(11) NOT NULL,\n  `pay` int(11) NOT NULL,\n  `sms` int(11) NOT NULL DEFAULT '0',\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `result`\n--\n\nCREATE TABLE `result` (\n  `id` int(11) NOT NULL,\n  `exam_id` int(11) NOT NULL,\n  `student_id` int(11) NOT NULL,\n  `mcq` double DEFAULT NULL,\n  `written` double DEFAULT NULL,\n  `total` double NOT NULL,\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL,\n  `sms` int(11) NOT NULL DEFAULT '0'\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `setting`\n--\n\nCREATE TABLE `setting` (\n  `id` int(11) NOT NULL,\n  `option_name` text,\n  `option_value` text\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n\n--  \n-- Dumping data for table `setting` \n--  \n\nINSERT INTO `setting` (`id`, `option_name`, `option_value`) VALUES  \n(1, 'site_name', 'Open Source Student Management System'),  \n(2, 'sort_name', 'EMS'), \n(3, 'address', 'Dhaka, Bangladesh'), \n(4, 'main_logo', 'techserm_full_logo.jpg'),  \n(5, 'logo', 'techserm_small_logo.png'),  \n(6, 'phone', '-'),  \n(7, 'email', 'sk.amirhamza@gmail.com'),  \n(8, 'msg', 'EMS');  \n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `set_payment`\n--\n\nCREATE TABLE `set_payment` (\n  `id` int(11) NOT NULL,\n  `program_id` int(11) NOT NULL,\n  `year` int(11) NOT NULL,\n  `month` int(11) NOT NULL,\n  `fee` int(11) NOT NULL,\n  `add_by` int(11) NOT NULL,\n  `last_update` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `site_activity`\n--\n\nCREATE TABLE `site_activity` (\n  `id` int(11) NOT NULL,\n  `user_id` int(11) NOT NULL,\n  `table_name` text NOT NULL,\n  `action_type` text NOT NULL,\n  `table_id` text NOT NULL,\n  `ip` text,\n  `browser` text,\n  `previous_data` text,\n  `present_data` text,\n  `login` int(11) DEFAULT '0',\n  `date` datetime NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `sms_add`\n--\n\nCREATE TABLE `sms_add` (\n  `id` int(11) NOT NULL,\n  `total_sms` int(11) NOT NULL,\n  `pay` int(11) NOT NULL,\n  `total_send` int(11) NOT NULL DEFAULT '0',\n  `start` date NOT NULL,\n  `end` date NOT NULL,\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `sms_list`\n--\n\nCREATE TABLE `sms_list` (\n  `id` int(11) NOT NULL,\n  `number` text NOT NULL,\n  `message` text NOT NULL,\n  `len` int(11) NOT NULL,\n  `date` datetime NOT NULL,\n  `gateway` text NOT NULL,\n  `token` text NOT NULL,\n  `sender` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `sms_setting`\n--\n\nCREATE TABLE `sms_setting` (\n  `id` int(11) NOT NULL,\n  `gateway` text NOT NULL,\n  `token` text NOT NULL,\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `student`\n--\n\nCREATE TABLE `student` (\n  `id` int(11) NOT NULL,\n  `name` text NOT NULL,\n  `father_name` text NOT NULL,\n  `mother_name` text NOT NULL,\n  `email` text,\n  `photo` text NOT NULL,\n  `personal_mobile` text,\n  `father_mobile` text,\n  `mother_mobile` text,\n  `nick` text NOT NULL,\n  `address` text,\n  `birth_day` date DEFAULT NULL,\n  `gender` text,\n  `religion` text,\n  `school` text,\n  `ssc_rool` int(11) DEFAULT NULL,\n  `ssc_reg` int(11) DEFAULT NULL,\n  `ssc_board` text,\n  `ssc_result` double DEFAULT NULL,\n  `date` datetime DEFAULT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `student_attendence`\n--\n\nCREATE TABLE `student_attendence` (\n  `id` int(11) NOT NULL,\n  `student_id` int(11) NOT NULL,\n  `program_id` int(11) NOT NULL,\n  `batch_id` int(11) NOT NULL,\n  `status` int(11) NOT NULL,\n  `date` date NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `student_id`\n--\n\nCREATE TABLE `student_id` (\n  `id` int(11) NOT NULL,\n  `date` date NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `student_payment`\n--\n\nCREATE TABLE `student_payment` (\n  `id` int(11) NOT NULL,\n  `student_id` int(11) NOT NULL,\n  `program_id` int(11) NOT NULL,\n  `type` int(11) NOT NULL,\n  `year` int(11) DEFAULT NULL,\n  `month` int(11) DEFAULT NULL,\n  `total_fee` int(11) NOT NULL,\n  `note` text,\n  `date` datetime NOT NULL,\n  `add_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `subject`\n--\n\nCREATE TABLE `subject` (\n  `id` int(11) NOT NULL,\n  `sub_name` text NOT NULL,\n  `sub_code` text\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `theme`\n--\n\nCREATE TABLE `theme` (\n  `id` int(11) NOT NULL,\n  `name` text NOT NULL,\n  `bg_color` text NOT NULL,\n  `sidebar_hover` text NOT NULL,\n  `sidebar_list` text NOT NULL,\n  `sidebar_list_hover` text NOT NULL,\n  `font_color` text NOT NULL,\n  `date` date NOT NULL,\n  `added_by` int(11) NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n--\n-- Dumping data for table `theme`\n--\n\nINSERT INTO `theme` (`id`, `name`, `bg_color`, `sidebar_hover`, `sidebar_list`, `sidebar_list_hover`, `font_color`, `date`, `added_by`) VALUES\n(1, 'Default', '#2E363F', '#2A2D35', '#394152', '#313847', '#ffffff', '2018-06-13', 1),\n(2, 'Red', '#CF0A2F', '#93021E', '#B54B5F', '#E33A5A', '#ffffff', '2018-06-13', 3),\n(3, 'Blue', '#AB2567', '#AB2567', '#AB2567', '#AB2567', '#ffffff', '2018-06-13', 3),\n(4, 'Green', '#088730', '#088730', '#4CAB41', '#1BAB2F', '#FFFFFF', '2018-06-13', 3),\n(5, 'Yello', '#AB9803', '#AB9803', '#A3AB2E', '#AB9C37', '#000000', '2018-06-13', 3),\n(6, 'Black', '#0F0000', '#1C0611', '#260817', '#2B091A', '#FFFFFF', '2018-06-13', 3),\n(7, 'Orange', '#E74C3C', '#C0392B', '#E67E22', '#D35400', '#FFFFFF', '2018-06-13', 3),\n(9, 'Pink', '#ED5FE9', '#ED3BA1', '#ED98D4', '#ED72CD', '#FFFFFF', '2018-06-13', 3),\n(10, 'Blue1', '#564C9E', '#724EED', '#907EED', '#5867ED', '#FFFFFF', '2018-06-14', 3),\n(23, 'CYAN', '#005154', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#FFFFFF', '2019-01-16', 3),\n(22, 'Web Dark', '#235A6B', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#FFFFFF', '2019-01-16', 3),\n(21, 'Web', '#378BA6', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#FFFFFF', '2019-01-16', 3),\n(14, 'Deep Rose', '#C44569', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#FFFFFF', '2018-06-21', 3),\n(15, 'Purple Corallite', '#574B90', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#FFFFFF', '2018-06-21', 3),\n(17, 'Red Color', '#A32929', '#6DEDC2', '#EDE6EC', '#EDE6EC', '#EDE6EC', '2018-10-08', 3),\n(19, 'Google color', '#673AB7', '#EDC5D2', '#EDEDED', '#EDE6EC', '#FFFFFF', '2018-11-21', 3),\n(20, 'Google Red', '#DB4437', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#FFFFFF', '2018-11-21', 3),\n(24, 'new theme', '#331F77', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#FFFFFF', '2019-01-21', 3),\n(25, 'apply', '#ED3B19', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#FFFFFF', '2019-02-01', 3),\n(26, 'dark blue', '#001E4C', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#FFFFFF', '2019-02-08', 3),\n(27, 'Copy Theme 1', '#2C293E', '#EDE6EC', '#EDE6EC', '#EDE6EC', '#EDEDED', '2019-04-28', 3);\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `user`\n--\n\nCREATE TABLE `user` (\n  `id` int(11) NOT NULL,\n  `uname` text NOT NULL,\n  `fname` text,\n  `photo` text NOT NULL,\n  `gender` text NOT NULL,\n  `email` text,\n  `phone` int(11) DEFAULT NULL,\n  `address` text,\n  `pass` varchar(100) NOT NULL,\n  `permit` int(11) NOT NULL DEFAULT '0',\n  `status` int(11) NOT NULL DEFAULT '1',\n  `theme` int(11) NOT NULL DEFAULT '1'\n) ENGINE=MyISAM DEFAULT CHARSET=latin1;\n\n--\n-- Dumping data for table `user`\n--\n\nINSERT INTO `user` (`id`, `uname`, `fname`, `photo`, `gender`, `email`, `phone`, `address`, `pass`, `permit`, `status`, `theme`) VALUES\n(1, 'admin', 'Admin', 'avatar.png', 'Male', 'admin@gmail.com', 012345678910, 'Bangladesh', '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918', 1, 1, 1);\n--\n-- Indexes for dumped tables\n--\n\n--\n-- Indexes for table `admit_program`\n--\nALTER TABLE `admit_program`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `batch`\n--\nALTER TABLE `batch`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `chat`\n--\nALTER TABLE `chat`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `class`\n--\nALTER TABLE `class`\n  ADD PRIMARY KEY (`classid`);\n\n--\n-- Indexes for table `exam`\n--\nALTER TABLE `exam`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `exam_category`\n--\nALTER TABLE `exam_category`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `exam_list`\n--\nALTER TABLE `exam_list`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `exam_mark`\n--\nALTER TABLE `exam_mark`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `expence`\n--\nALTER TABLE `expence`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `expence_category`\n--\nALTER TABLE `expence_category`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `income`\n--\nALTER TABLE `income`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `mark_category`\n--\nALTER TABLE `mark_category`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `notice`\n--\nALTER TABLE `notice`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `payment`\n--\nALTER TABLE `payment`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `pending_sms`\n--\nALTER TABLE `pending_sms`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `program`\n--\nALTER TABLE `program`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `receive_payment`\n--\nALTER TABLE `receive_payment`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `result`\n--\nALTER TABLE `result`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `setting`\n--\nALTER TABLE `setting`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `set_payment`\n--\nALTER TABLE `set_payment`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `site_activity`\n--\nALTER TABLE `site_activity`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `sms_add`\n--\nALTER TABLE `sms_add`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `sms_list`\n--\nALTER TABLE `sms_list`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `sms_setting`\n--\nALTER TABLE `sms_setting`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `student`\n--\nALTER TABLE `student`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `student_attendence`\n--\nALTER TABLE `student_attendence`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `student_id`\n--\nALTER TABLE `student_id`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `student_payment`\n--\nALTER TABLE `student_payment`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `subject`\n--\nALTER TABLE `subject`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `theme`\n--\nALTER TABLE `theme`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- Indexes for table `user`\n--\nALTER TABLE `user`\n  ADD PRIMARY KEY (`id`);\n\n--\n-- AUTO_INCREMENT for dumped tables\n--\n\n--\n-- AUTO_INCREMENT for table `admit_program`\n--\nALTER TABLE `admit_program`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `batch`\n--\nALTER TABLE `batch`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `chat`\n--\nALTER TABLE `chat`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `class`\n--\nALTER TABLE `class`\n  MODIFY `classid` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `exam`\n--\nALTER TABLE `exam`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `exam_category`\n--\nALTER TABLE `exam_category`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `exam_list`\n--\nALTER TABLE `exam_list`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `exam_mark`\n--\nALTER TABLE `exam_mark`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `expence`\n--\nALTER TABLE `expence`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `expence_category`\n--\nALTER TABLE `expence_category`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `income`\n--\nALTER TABLE `income`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `mark_category`\n--\nALTER TABLE `mark_category`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `notice`\n--\nALTER TABLE `notice`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `payment`\n--\nALTER TABLE `payment`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `pending_sms`\n--\nALTER TABLE `pending_sms`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `program`\n--\nALTER TABLE `program`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `receive_payment`\n--\nALTER TABLE `receive_payment`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `result`\n--\nALTER TABLE `result`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `setting`\n--\nALTER TABLE `setting`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `set_payment`\n--\nALTER TABLE `set_payment`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `site_activity`\n--\nALTER TABLE `site_activity`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `sms_add`\n--\nALTER TABLE `sms_add`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `sms_list`\n--\nALTER TABLE `sms_list`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `sms_setting`\n--\nALTER TABLE `sms_setting`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `student`\n--\nALTER TABLE `student`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `student_attendence`\n--\nALTER TABLE `student_attendence`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `student_id`\n--\nALTER TABLE `student_id`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `student_payment`\n--\nALTER TABLE `student_payment`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `subject`\n--\nALTER TABLE `subject`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `theme`\n--\nALTER TABLE `theme`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n--\n-- AUTO_INCREMENT for table `user`\n--\nALTER TABLE `user`\n  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\n/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;\n/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n"
  },
  {
    "path": "sql/sql.sql",
    "content": ""
  },
  {
    "path": "student/app/app.js",
    "content": "var app = angular.module(\"myApp\", [\"ngRoute\"]);\n\n\napp.config(function($routeProvider) {\n  $routeProvider\n  \n  .when(\"/\", {\n    \n    templateUrl : \"views/dashboard.html\",\n    controller : \"dashboard\"\n\n  })\n\n\n  .when(\"/batch_info\", {\n\n    templateUrl : \"views/batch_info.html\",\n    controller : \"get_batch_info\" \n  })\n\n  .when(\"/student_info\", {\n    templateUrl : \"views/student_info.html\",\n    controller : \"get_student_info\"\n  })\n\n  .when(\"/program_info\", {\n    templateUrl : \"views/program_info.html\",\n    controller : \"get_program_info\"\n  })\n\n  .when(\"/login\", {\n    templateUrl : \"views/login.html\",\n    controller : \"login\"\n  })\n\n  .when(\"/send_sms\",{\n    templateUrl: \"views/send_sms\",\n    controller: \"send_sms\"\n  })\n\n  .otherwise({\n    redirectTo: \"/login\"\n  });\n\n});\n\n"
  },
  {
    "path": "student/app/lib/angular-route.js",
    "content": "/**\n * @license AngularJS v1.6.9\n * (c) 2010-2018 Google, Inc. http://angularjs.org\n * License: MIT\n */\n(function(window, angular) {'use strict';\n\n/* global shallowCopy: true */\n\n/**\n * Creates a shallow copy of an object, an array or a primitive.\n *\n * Assumes that there are no proto properties for objects.\n */\nfunction shallowCopy(src, dst) {\n  if (isArray(src)) {\n    dst = dst || [];\n\n    for (var i = 0, ii = src.length; i < ii; i++) {\n      dst[i] = src[i];\n    }\n  } else if (isObject(src)) {\n    dst = dst || {};\n\n    for (var key in src) {\n      if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {\n        dst[key] = src[key];\n      }\n    }\n  }\n\n  return dst || src;\n}\n\n/* global shallowCopy: false */\n\n// `isArray` and `isObject` are necessary for `shallowCopy()` (included via `src/shallowCopy.js`).\n// They are initialized inside the `$RouteProvider`, to ensure `window.angular` is available.\nvar isArray;\nvar isObject;\nvar isDefined;\nvar noop;\n\n/**\n * @ngdoc module\n * @name ngRoute\n * @description\n *\n * The `ngRoute` module provides routing and deeplinking services and directives for AngularJS apps.\n *\n * ## Example\n * See {@link ngRoute.$route#examples $route} for an example of configuring and using `ngRoute`.\n *\n */\n/* global -ngRouteModule */\nvar ngRouteModule = angular.\n  module('ngRoute', []).\n  info({ angularVersion: '1.6.9' }).\n  provider('$route', $RouteProvider).\n  // Ensure `$route` will be instantiated in time to capture the initial `$locationChangeSuccess`\n  // event (unless explicitly disabled). This is necessary in case `ngView` is included in an\n  // asynchronously loaded template.\n  run(instantiateRoute);\nvar $routeMinErr = angular.$$minErr('ngRoute');\nvar isEagerInstantiationEnabled;\n\n\n/**\n * @ngdoc provider\n * @name $routeProvider\n * @this\n *\n * @description\n *\n * Used for configuring routes.\n *\n * ## Example\n * See {@link ngRoute.$route#examples $route} for an example of configuring and using `ngRoute`.\n *\n * ## Dependencies\n * Requires the {@link ngRoute `ngRoute`} module to be installed.\n */\nfunction $RouteProvider() {\n  isArray = angular.isArray;\n  isObject = angular.isObject;\n  isDefined = angular.isDefined;\n  noop = angular.noop;\n\n  function inherit(parent, extra) {\n    return angular.extend(Object.create(parent), extra);\n  }\n\n  var routes = {};\n\n  /**\n   * @ngdoc method\n   * @name $routeProvider#when\n   *\n   * @param {string} path Route path (matched against `$location.path`). If `$location.path`\n   *    contains redundant trailing slash or is missing one, the route will still match and the\n   *    `$location.path` will be updated to add or drop the trailing slash to exactly match the\n   *    route definition.\n   *\n   *    * `path` can contain named groups starting with a colon: e.g. `:name`. All characters up\n   *        to the next slash are matched and stored in `$routeParams` under the given `name`\n   *        when the route matches.\n   *    * `path` can contain named groups starting with a colon and ending with a star:\n   *        e.g.`:name*`. All characters are eagerly stored in `$routeParams` under the given `name`\n   *        when the route matches.\n   *    * `path` can contain optional named groups with a question mark: e.g.`:name?`.\n   *\n   *    For example, routes like `/color/:color/largecode/:largecode*\\/edit` will match\n   *    `/color/brown/largecode/code/with/slashes/edit` and extract:\n   *\n   *    * `color: brown`\n   *    * `largecode: code/with/slashes`.\n   *\n   *\n   * @param {Object} route Mapping information to be assigned to `$route.current` on route\n   *    match.\n   *\n   *    Object properties:\n   *\n   *    - `controller` – `{(string|Function)=}` – Controller fn that should be associated with\n   *      newly created scope or the name of a {@link angular.Module#controller registered\n   *      controller} if passed as a string.\n   *    - `controllerAs` – `{string=}` – An identifier name for a reference to the controller.\n   *      If present, the controller will be published to scope under the `controllerAs` name.\n   *    - `template` – `{(string|Function)=}` – html template as a string or a function that\n   *      returns an html template as a string which should be used by {@link\n   *      ngRoute.directive:ngView ngView} or {@link ng.directive:ngInclude ngInclude} directives.\n   *      This property takes precedence over `templateUrl`.\n   *\n   *      If `template` is a function, it will be called with the following parameters:\n   *\n   *      - `{Array.<Object>}` - route parameters extracted from the current\n   *        `$location.path()` by applying the current route\n   *\n   *      One of `template` or `templateUrl` is required.\n   *\n   *    - `templateUrl` – `{(string|Function)=}` – path or function that returns a path to an html\n   *      template that should be used by {@link ngRoute.directive:ngView ngView}.\n   *\n   *      If `templateUrl` is a function, it will be called with the following parameters:\n   *\n   *      - `{Array.<Object>}` - route parameters extracted from the current\n   *        `$location.path()` by applying the current route\n   *\n   *      One of `templateUrl` or `template` is required.\n   *\n   *    - `resolve` - `{Object.<string, Function>=}` - An optional map of dependencies which should\n   *      be injected into the controller. If any of these dependencies are promises, the router\n   *      will wait for them all to be resolved or one to be rejected before the controller is\n   *      instantiated.\n   *      If all the promises are resolved successfully, the values of the resolved promises are\n   *      injected and {@link ngRoute.$route#$routeChangeSuccess $routeChangeSuccess} event is\n   *      fired. If any of the promises are rejected the\n   *      {@link ngRoute.$route#$routeChangeError $routeChangeError} event is fired.\n   *      For easier access to the resolved dependencies from the template, the `resolve` map will\n   *      be available on the scope of the route, under `$resolve` (by default) or a custom name\n   *      specified by the `resolveAs` property (see below). This can be particularly useful, when\n   *      working with {@link angular.Module#component components} as route templates.<br />\n   *      <div class=\"alert alert-warning\">\n   *        **Note:** If your scope already contains a property with this name, it will be hidden\n   *        or overwritten. Make sure, you specify an appropriate name for this property, that\n   *        does not collide with other properties on the scope.\n   *      </div>\n   *      The map object is:\n   *\n   *      - `key` – `{string}`: a name of a dependency to be injected into the controller.\n   *      - `factory` - `{string|Function}`: If `string` then it is an alias for a service.\n   *        Otherwise if function, then it is {@link auto.$injector#invoke injected}\n   *        and the return value is treated as the dependency. If the result is a promise, it is\n   *        resolved before its value is injected into the controller. Be aware that\n   *        `ngRoute.$routeParams` will still refer to the previous route within these resolve\n   *        functions.  Use `$route.current.params` to access the new route parameters, instead.\n   *\n   *    - `resolveAs` - `{string=}` - The name under which the `resolve` map will be available on\n   *      the scope of the route. If omitted, defaults to `$resolve`.\n   *\n   *    - `redirectTo` – `{(string|Function)=}` – value to update\n   *      {@link ng.$location $location} path with and trigger route redirection.\n   *\n   *      If `redirectTo` is a function, it will be called with the following parameters:\n   *\n   *      - `{Object.<string>}` - route parameters extracted from the current\n   *        `$location.path()` by applying the current route templateUrl.\n   *      - `{string}` - current `$location.path()`\n   *      - `{Object}` - current `$location.search()`\n   *\n   *      The custom `redirectTo` function is expected to return a string which will be used\n   *      to update `$location.url()`. If the function throws an error, no further processing will\n   *      take place and the {@link ngRoute.$route#$routeChangeError $routeChangeError} event will\n   *      be fired.\n   *\n   *      Routes that specify `redirectTo` will not have their controllers, template functions\n   *      or resolves called, the `$location` will be changed to the redirect url and route\n   *      processing will stop. The exception to this is if the `redirectTo` is a function that\n   *      returns `undefined`. In this case the route transition occurs as though there was no\n   *      redirection.\n   *\n   *    - `resolveRedirectTo` – `{Function=}` – a function that will (eventually) return the value\n   *      to update {@link ng.$location $location} URL with and trigger route redirection. In\n   *      contrast to `redirectTo`, dependencies can be injected into `resolveRedirectTo` and the\n   *      return value can be either a string or a promise that will be resolved to a string.\n   *\n   *      Similar to `redirectTo`, if the return value is `undefined` (or a promise that gets\n   *      resolved to `undefined`), no redirection takes place and the route transition occurs as\n   *      though there was no redirection.\n   *\n   *      If the function throws an error or the returned promise gets rejected, no further\n   *      processing will take place and the\n   *      {@link ngRoute.$route#$routeChangeError $routeChangeError} event will be fired.\n   *\n   *      `redirectTo` takes precedence over `resolveRedirectTo`, so specifying both on the same\n   *      route definition, will cause the latter to be ignored.\n   *\n   *    - `[reloadOnSearch=true]` - `{boolean=}` - reload route when only `$location.search()`\n   *      or `$location.hash()` changes.\n   *\n   *      If the option is set to `false` and url in the browser changes, then\n   *      `$routeUpdate` event is broadcasted on the root scope.\n   *\n   *    - `[caseInsensitiveMatch=false]` - `{boolean=}` - match routes without being case sensitive\n   *\n   *      If the option is set to `true`, then the particular route can be matched without being\n   *      case sensitive\n   *\n   * @returns {Object} self\n   *\n   * @description\n   * Adds a new route definition to the `$route` service.\n   */\n  this.when = function(path, route) {\n    //copy original route object to preserve params inherited from proto chain\n    var routeCopy = shallowCopy(route);\n    if (angular.isUndefined(routeCopy.reloadOnSearch)) {\n      routeCopy.reloadOnSearch = true;\n    }\n    if (angular.isUndefined(routeCopy.caseInsensitiveMatch)) {\n      routeCopy.caseInsensitiveMatch = this.caseInsensitiveMatch;\n    }\n    routes[path] = angular.extend(\n      routeCopy,\n      path && pathRegExp(path, routeCopy)\n    );\n\n    // create redirection for trailing slashes\n    if (path) {\n      var redirectPath = (path[path.length - 1] === '/')\n            ? path.substr(0, path.length - 1)\n            : path + '/';\n\n      routes[redirectPath] = angular.extend(\n        {redirectTo: path},\n        pathRegExp(redirectPath, routeCopy)\n      );\n    }\n\n    return this;\n  };\n\n  /**\n   * @ngdoc property\n   * @name $routeProvider#caseInsensitiveMatch\n   * @description\n   *\n   * A boolean property indicating if routes defined\n   * using this provider should be matched using a case insensitive\n   * algorithm. Defaults to `false`.\n   */\n  this.caseInsensitiveMatch = false;\n\n   /**\n    * @param path {string} path\n    * @param opts {Object} options\n    * @return {?Object}\n    *\n    * @description\n    * Normalizes the given path, returning a regular expression\n    * and the original path.\n    *\n    * Inspired by pathRexp in visionmedia/express/lib/utils.js.\n    */\n  function pathRegExp(path, opts) {\n    var insensitive = opts.caseInsensitiveMatch,\n        ret = {\n          originalPath: path,\n          regexp: path\n        },\n        keys = ret.keys = [];\n\n    path = path\n      .replace(/([().])/g, '\\\\$1')\n      .replace(/(\\/)?:(\\w+)(\\*\\?|[?*])?/g, function(_, slash, key, option) {\n        var optional = (option === '?' || option === '*?') ? '?' : null;\n        var star = (option === '*' || option === '*?') ? '*' : null;\n        keys.push({ name: key, optional: !!optional });\n        slash = slash || '';\n        return ''\n          + (optional ? '' : slash)\n          + '(?:'\n          + (optional ? slash : '')\n          + (star && '(.+?)' || '([^/]+)')\n          + (optional || '')\n          + ')'\n          + (optional || '');\n      })\n      .replace(/([/$*])/g, '\\\\$1');\n\n    ret.regexp = new RegExp('^' + path + '$', insensitive ? 'i' : '');\n    return ret;\n  }\n\n  /**\n   * @ngdoc method\n   * @name $routeProvider#otherwise\n   *\n   * @description\n   * Sets route definition that will be used on route change when no other route definition\n   * is matched.\n   *\n   * @param {Object|string} params Mapping information to be assigned to `$route.current`.\n   * If called with a string, the value maps to `redirectTo`.\n   * @returns {Object} self\n   */\n  this.otherwise = function(params) {\n    if (typeof params === 'string') {\n      params = {redirectTo: params};\n    }\n    this.when(null, params);\n    return this;\n  };\n\n  /**\n   * @ngdoc method\n   * @name $routeProvider#eagerInstantiationEnabled\n   * @kind function\n   *\n   * @description\n   * Call this method as a setter to enable/disable eager instantiation of the\n   * {@link ngRoute.$route $route} service upon application bootstrap. You can also call it as a\n   * getter (i.e. without any arguments) to get the current value of the\n   * `eagerInstantiationEnabled` flag.\n   *\n   * Instantiating `$route` early is necessary for capturing the initial\n   * {@link ng.$location#$locationChangeStart $locationChangeStart} event and navigating to the\n   * appropriate route. Usually, `$route` is instantiated in time by the\n   * {@link ngRoute.ngView ngView} directive. Yet, in cases where `ngView` is included in an\n   * asynchronously loaded template (e.g. in another directive's template), the directive factory\n   * might not be called soon enough for `$route` to be instantiated _before_ the initial\n   * `$locationChangeSuccess` event is fired. Eager instantiation ensures that `$route` is always\n   * instantiated in time, regardless of when `ngView` will be loaded.\n   *\n   * The default value is true.\n   *\n   * **Note**:<br />\n   * You may want to disable the default behavior when unit-testing modules that depend on\n   * `ngRoute`, in order to avoid an unexpected request for the default route's template.\n   *\n   * @param {boolean=} enabled - If provided, update the internal `eagerInstantiationEnabled` flag.\n   *\n   * @returns {*} The current value of the `eagerInstantiationEnabled` flag if used as a getter or\n   *     itself (for chaining) if used as a setter.\n   */\n  isEagerInstantiationEnabled = true;\n  this.eagerInstantiationEnabled = function eagerInstantiationEnabled(enabled) {\n    if (isDefined(enabled)) {\n      isEagerInstantiationEnabled = enabled;\n      return this;\n    }\n\n    return isEagerInstantiationEnabled;\n  };\n\n\n  this.$get = ['$rootScope',\n               '$location',\n               '$routeParams',\n               '$q',\n               '$injector',\n               '$templateRequest',\n               '$sce',\n               '$browser',\n      function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce, $browser) {\n\n    /**\n     * @ngdoc service\n     * @name $route\n     * @requires $location\n     * @requires $routeParams\n     *\n     * @property {Object} current Reference to the current route definition.\n     * The route definition contains:\n     *\n     *   - `controller`: The controller constructor as defined in the route definition.\n     *   - `locals`: A map of locals which is used by {@link ng.$controller $controller} service for\n     *     controller instantiation. The `locals` contain\n     *     the resolved values of the `resolve` map. Additionally the `locals` also contain:\n     *\n     *     - `$scope` - The current route scope.\n     *     - `$template` - The current route template HTML.\n     *\n     *     The `locals` will be assigned to the route scope's `$resolve` property. You can override\n     *     the property name, using `resolveAs` in the route definition. See\n     *     {@link ngRoute.$routeProvider $routeProvider} for more info.\n     *\n     * @property {Object} routes Object with all route configuration Objects as its properties.\n     *\n     * @description\n     * `$route` is used for deep-linking URLs to controllers and views (HTML partials).\n     * It watches `$location.url()` and tries to map the path to an existing route definition.\n     *\n     * Requires the {@link ngRoute `ngRoute`} module to be installed.\n     *\n     * You can define routes through {@link ngRoute.$routeProvider $routeProvider}'s API.\n     *\n     * The `$route` service is typically used in conjunction with the\n     * {@link ngRoute.directive:ngView `ngView`} directive and the\n     * {@link ngRoute.$routeParams `$routeParams`} service.\n     *\n     * @example\n     * This example shows how changing the URL hash causes the `$route` to match a route against the\n     * URL, and the `ngView` pulls in the partial.\n     *\n     * <example name=\"$route-service\" module=\"ngRouteExample\"\n     *          deps=\"angular-route.js\" fixBase=\"true\">\n     *   <file name=\"index.html\">\n     *     <div ng-controller=\"MainController\">\n     *       Choose:\n     *       <a href=\"Book/Moby\">Moby</a> |\n     *       <a href=\"Book/Moby/ch/1\">Moby: Ch1</a> |\n     *       <a href=\"Book/Gatsby\">Gatsby</a> |\n     *       <a href=\"Book/Gatsby/ch/4?key=value\">Gatsby: Ch4</a> |\n     *       <a href=\"Book/Scarlet\">Scarlet Letter</a><br/>\n     *\n     *       <div ng-view></div>\n     *\n     *       <hr />\n     *\n     *       <pre>$location.path() = {{$location.path()}}</pre>\n     *       <pre>$route.current.templateUrl = {{$route.current.templateUrl}}</pre>\n     *       <pre>$route.current.params = {{$route.current.params}}</pre>\n     *       <pre>$route.current.scope.name = {{$route.current.scope.name}}</pre>\n     *       <pre>$routeParams = {{$routeParams}}</pre>\n     *     </div>\n     *   </file>\n     *\n     *   <file name=\"book.html\">\n     *     controller: {{name}}<br />\n     *     Book Id: {{params.bookId}}<br />\n     *   </file>\n     *\n     *   <file name=\"chapter.html\">\n     *     controller: {{name}}<br />\n     *     Book Id: {{params.bookId}}<br />\n     *     Chapter Id: {{params.chapterId}}\n     *   </file>\n     *\n     *   <file name=\"script.js\">\n     *     angular.module('ngRouteExample', ['ngRoute'])\n     *\n     *      .controller('MainController', function($scope, $route, $routeParams, $location) {\n     *          $scope.$route = $route;\n     *          $scope.$location = $location;\n     *          $scope.$routeParams = $routeParams;\n     *      })\n     *\n     *      .controller('BookController', function($scope, $routeParams) {\n     *          $scope.name = 'BookController';\n     *          $scope.params = $routeParams;\n     *      })\n     *\n     *      .controller('ChapterController', function($scope, $routeParams) {\n     *          $scope.name = 'ChapterController';\n     *          $scope.params = $routeParams;\n     *      })\n     *\n     *     .config(function($routeProvider, $locationProvider) {\n     *       $routeProvider\n     *        .when('/Book/:bookId', {\n     *         templateUrl: 'book.html',\n     *         controller: 'BookController',\n     *         resolve: {\n     *           // I will cause a 1 second delay\n     *           delay: function($q, $timeout) {\n     *             var delay = $q.defer();\n     *             $timeout(delay.resolve, 1000);\n     *             return delay.promise;\n     *           }\n     *         }\n     *       })\n     *       .when('/Book/:bookId/ch/:chapterId', {\n     *         templateUrl: 'chapter.html',\n     *         controller: 'ChapterController'\n     *       });\n     *\n     *       // configure html5 to get links working on jsfiddle\n     *       $locationProvider.html5Mode(true);\n     *     });\n     *\n     *   </file>\n     *\n     *   <file name=\"protractor.js\" type=\"protractor\">\n     *     it('should load and compile correct template', function() {\n     *       element(by.linkText('Moby: Ch1')).click();\n     *       var content = element(by.css('[ng-view]')).getText();\n     *       expect(content).toMatch(/controller: ChapterController/);\n     *       expect(content).toMatch(/Book Id: Moby/);\n     *       expect(content).toMatch(/Chapter Id: 1/);\n     *\n     *       element(by.partialLinkText('Scarlet')).click();\n     *\n     *       content = element(by.css('[ng-view]')).getText();\n     *       expect(content).toMatch(/controller: BookController/);\n     *       expect(content).toMatch(/Book Id: Scarlet/);\n     *     });\n     *   </file>\n     * </example>\n     */\n\n    /**\n     * @ngdoc event\n     * @name $route#$routeChangeStart\n     * @eventType broadcast on root scope\n     * @description\n     * Broadcasted before a route change. At this  point the route services starts\n     * resolving all of the dependencies needed for the route change to occur.\n     * Typically this involves fetching the view template as well as any dependencies\n     * defined in `resolve` route property. Once  all of the dependencies are resolved\n     * `$routeChangeSuccess` is fired.\n     *\n     * The route change (and the `$location` change that triggered it) can be prevented\n     * by calling `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on}\n     * for more details about event object.\n     *\n     * @param {Object} angularEvent Synthetic event object.\n     * @param {Route} next Future route information.\n     * @param {Route} current Current route information.\n     */\n\n    /**\n     * @ngdoc event\n     * @name $route#$routeChangeSuccess\n     * @eventType broadcast on root scope\n     * @description\n     * Broadcasted after a route change has happened successfully.\n     * The `resolve` dependencies are now available in the `current.locals` property.\n     *\n     * {@link ngRoute.directive:ngView ngView} listens for the directive\n     * to instantiate the controller and render the view.\n     *\n     * @param {Object} angularEvent Synthetic event object.\n     * @param {Route} current Current route information.\n     * @param {Route|Undefined} previous Previous route information, or undefined if current is\n     * first route entered.\n     */\n\n    /**\n     * @ngdoc event\n     * @name $route#$routeChangeError\n     * @eventType broadcast on root scope\n     * @description\n     * Broadcasted if a redirection function fails or any redirection or resolve promises are\n     * rejected.\n     *\n     * @param {Object} angularEvent Synthetic event object\n     * @param {Route} current Current route information.\n     * @param {Route} previous Previous route information.\n     * @param {Route} rejection The thrown error or the rejection reason of the promise. Usually\n     * the rejection reason is the error that caused the promise to get rejected.\n     */\n\n    /**\n     * @ngdoc event\n     * @name $route#$routeUpdate\n     * @eventType broadcast on root scope\n     * @description\n     * The `reloadOnSearch` property has been set to false, and we are reusing the same\n     * instance of the Controller.\n     *\n     * @param {Object} angularEvent Synthetic event object\n     * @param {Route} current Current/previous route information.\n     */\n\n    var forceReload = false,\n        preparedRoute,\n        preparedRouteIsUpdateOnly,\n        $route = {\n          routes: routes,\n\n          /**\n           * @ngdoc method\n           * @name $route#reload\n           *\n           * @description\n           * Causes `$route` service to reload the current route even if\n           * {@link ng.$location $location} hasn't changed.\n           *\n           * As a result of that, {@link ngRoute.directive:ngView ngView}\n           * creates new scope and reinstantiates the controller.\n           */\n          reload: function() {\n            forceReload = true;\n\n            var fakeLocationEvent = {\n              defaultPrevented: false,\n              preventDefault: function fakePreventDefault() {\n                this.defaultPrevented = true;\n                forceReload = false;\n              }\n            };\n\n            $rootScope.$evalAsync(function() {\n              prepareRoute(fakeLocationEvent);\n              if (!fakeLocationEvent.defaultPrevented) commitRoute();\n            });\n          },\n\n          /**\n           * @ngdoc method\n           * @name $route#updateParams\n           *\n           * @description\n           * Causes `$route` service to update the current URL, replacing\n           * current route parameters with those specified in `newParams`.\n           * Provided property names that match the route's path segment\n           * definitions will be interpolated into the location's path, while\n           * remaining properties will be treated as query params.\n           *\n           * @param {!Object<string, string>} newParams mapping of URL parameter names to values\n           */\n          updateParams: function(newParams) {\n            if (this.current && this.current.$$route) {\n              newParams = angular.extend({}, this.current.params, newParams);\n              $location.path(interpolate(this.current.$$route.originalPath, newParams));\n              // interpolate modifies newParams, only query params are left\n              $location.search(newParams);\n            } else {\n              throw $routeMinErr('norout', 'Tried updating route when with no current route');\n            }\n          }\n        };\n\n    $rootScope.$on('$locationChangeStart', prepareRoute);\n    $rootScope.$on('$locationChangeSuccess', commitRoute);\n\n    return $route;\n\n    /////////////////////////////////////////////////////\n\n    /**\n     * @param on {string} current url\n     * @param route {Object} route regexp to match the url against\n     * @return {?Object}\n     *\n     * @description\n     * Check if the route matches the current url.\n     *\n     * Inspired by match in\n     * visionmedia/express/lib/router/router.js.\n     */\n    function switchRouteMatcher(on, route) {\n      var keys = route.keys,\n          params = {};\n\n      if (!route.regexp) return null;\n\n      var m = route.regexp.exec(on);\n      if (!m) return null;\n\n      for (var i = 1, len = m.length; i < len; ++i) {\n        var key = keys[i - 1];\n\n        var val = m[i];\n\n        if (key && val) {\n          params[key.name] = val;\n        }\n      }\n      return params;\n    }\n\n    function prepareRoute($locationEvent) {\n      var lastRoute = $route.current;\n\n      preparedRoute = parseRoute();\n      preparedRouteIsUpdateOnly = preparedRoute && lastRoute && preparedRoute.$$route === lastRoute.$$route\n          && angular.equals(preparedRoute.pathParams, lastRoute.pathParams)\n          && !preparedRoute.reloadOnSearch && !forceReload;\n\n      if (!preparedRouteIsUpdateOnly && (lastRoute || preparedRoute)) {\n        if ($rootScope.$broadcast('$routeChangeStart', preparedRoute, lastRoute).defaultPrevented) {\n          if ($locationEvent) {\n            $locationEvent.preventDefault();\n          }\n        }\n      }\n    }\n\n    function commitRoute() {\n      var lastRoute = $route.current;\n      var nextRoute = preparedRoute;\n\n      if (preparedRouteIsUpdateOnly) {\n        lastRoute.params = nextRoute.params;\n        angular.copy(lastRoute.params, $routeParams);\n        $rootScope.$broadcast('$routeUpdate', lastRoute);\n      } else if (nextRoute || lastRoute) {\n        forceReload = false;\n        $route.current = nextRoute;\n\n        var nextRoutePromise = $q.resolve(nextRoute);\n\n        $browser.$$incOutstandingRequestCount();\n\n        nextRoutePromise.\n          then(getRedirectionData).\n          then(handlePossibleRedirection).\n          then(function(keepProcessingRoute) {\n            return keepProcessingRoute && nextRoutePromise.\n              then(resolveLocals).\n              then(function(locals) {\n                // after route change\n                if (nextRoute === $route.current) {\n                  if (nextRoute) {\n                    nextRoute.locals = locals;\n                    angular.copy(nextRoute.params, $routeParams);\n                  }\n                  $rootScope.$broadcast('$routeChangeSuccess', nextRoute, lastRoute);\n                }\n              });\n          }).catch(function(error) {\n            if (nextRoute === $route.current) {\n              $rootScope.$broadcast('$routeChangeError', nextRoute, lastRoute, error);\n            }\n          }).finally(function() {\n            // Because `commitRoute()` is called from a `$rootScope.$evalAsync` block (see\n            // `$locationWatch`), this `$$completeOutstandingRequest()` call will not cause\n            // `outstandingRequestCount` to hit zero.  This is important in case we are redirecting\n            // to a new route which also requires some asynchronous work.\n\n            $browser.$$completeOutstandingRequest(noop);\n          });\n      }\n    }\n\n    function getRedirectionData(route) {\n      var data = {\n        route: route,\n        hasRedirection: false\n      };\n\n      if (route) {\n        if (route.redirectTo) {\n          if (angular.isString(route.redirectTo)) {\n            data.path = interpolate(route.redirectTo, route.params);\n            data.search = route.params;\n            data.hasRedirection = true;\n          } else {\n            var oldPath = $location.path();\n            var oldSearch = $location.search();\n            var newUrl = route.redirectTo(route.pathParams, oldPath, oldSearch);\n\n            if (angular.isDefined(newUrl)) {\n              data.url = newUrl;\n              data.hasRedirection = true;\n            }\n          }\n        } else if (route.resolveRedirectTo) {\n          return $q.\n            resolve($injector.invoke(route.resolveRedirectTo)).\n            then(function(newUrl) {\n              if (angular.isDefined(newUrl)) {\n                data.url = newUrl;\n                data.hasRedirection = true;\n              }\n\n              return data;\n            });\n        }\n      }\n\n      return data;\n    }\n\n    function handlePossibleRedirection(data) {\n      var keepProcessingRoute = true;\n\n      if (data.route !== $route.current) {\n        keepProcessingRoute = false;\n      } else if (data.hasRedirection) {\n        var oldUrl = $location.url();\n        var newUrl = data.url;\n\n        if (newUrl) {\n          $location.\n            url(newUrl).\n            replace();\n        } else {\n          newUrl = $location.\n            path(data.path).\n            search(data.search).\n            replace().\n            url();\n        }\n\n        if (newUrl !== oldUrl) {\n          // Exit out and don't process current next value,\n          // wait for next location change from redirect\n          keepProcessingRoute = false;\n        }\n      }\n\n      return keepProcessingRoute;\n    }\n\n    function resolveLocals(route) {\n      if (route) {\n        var locals = angular.extend({}, route.resolve);\n        angular.forEach(locals, function(value, key) {\n          locals[key] = angular.isString(value) ?\n              $injector.get(value) :\n              $injector.invoke(value, null, null, key);\n        });\n        var template = getTemplateFor(route);\n        if (angular.isDefined(template)) {\n          locals['$template'] = template;\n        }\n        return $q.all(locals);\n      }\n    }\n\n    function getTemplateFor(route) {\n      var template, templateUrl;\n      if (angular.isDefined(template = route.template)) {\n        if (angular.isFunction(template)) {\n          template = template(route.params);\n        }\n      } else if (angular.isDefined(templateUrl = route.templateUrl)) {\n        if (angular.isFunction(templateUrl)) {\n          templateUrl = templateUrl(route.params);\n        }\n        if (angular.isDefined(templateUrl)) {\n          route.loadedTemplateUrl = $sce.valueOf(templateUrl);\n          template = $templateRequest(templateUrl);\n        }\n      }\n      return template;\n    }\n\n    /**\n     * @returns {Object} the current active route, by matching it against the URL\n     */\n    function parseRoute() {\n      // Match a route\n      var params, match;\n      angular.forEach(routes, function(route, path) {\n        if (!match && (params = switchRouteMatcher($location.path(), route))) {\n          match = inherit(route, {\n            params: angular.extend({}, $location.search(), params),\n            pathParams: params});\n          match.$$route = route;\n        }\n      });\n      // No route matched; fallback to \"otherwise\" route\n      return match || routes[null] && inherit(routes[null], {params: {}, pathParams:{}});\n    }\n\n    /**\n     * @returns {string} interpolation of the redirect path with the parameters\n     */\n    function interpolate(string, params) {\n      var result = [];\n      angular.forEach((string || '').split(':'), function(segment, i) {\n        if (i === 0) {\n          result.push(segment);\n        } else {\n          var segmentMatch = segment.match(/(\\w+)(?:[?*])?(.*)/);\n          var key = segmentMatch[1];\n          result.push(params[key]);\n          result.push(segmentMatch[2] || '');\n          delete params[key];\n        }\n      });\n      return result.join('');\n    }\n  }];\n}\n\ninstantiateRoute.$inject = ['$injector'];\nfunction instantiateRoute($injector) {\n  if (isEagerInstantiationEnabled) {\n    // Instantiate `$route`\n    $injector.get('$route');\n  }\n}\n\nngRouteModule.provider('$routeParams', $RouteParamsProvider);\n\n\n/**\n * @ngdoc service\n * @name $routeParams\n * @requires $route\n * @this\n *\n * @description\n * The `$routeParams` service allows you to retrieve the current set of route parameters.\n *\n * Requires the {@link ngRoute `ngRoute`} module to be installed.\n *\n * The route parameters are a combination of {@link ng.$location `$location`}'s\n * {@link ng.$location#search `search()`} and {@link ng.$location#path `path()`}.\n * The `path` parameters are extracted when the {@link ngRoute.$route `$route`} path is matched.\n *\n * In case of parameter name collision, `path` params take precedence over `search` params.\n *\n * The service guarantees that the identity of the `$routeParams` object will remain unchanged\n * (but its properties will likely change) even when a route change occurs.\n *\n * Note that the `$routeParams` are only updated *after* a route change completes successfully.\n * This means that you cannot rely on `$routeParams` being correct in route resolve functions.\n * Instead you can use `$route.current.params` to access the new route's parameters.\n *\n * @example\n * ```js\n *  // Given:\n *  // URL: http://server.com/index.html#/Chapter/1/Section/2?search=moby\n *  // Route: /Chapter/:chapterId/Section/:sectionId\n *  //\n *  // Then\n *  $routeParams ==> {chapterId:'1', sectionId:'2', search:'moby'}\n * ```\n */\nfunction $RouteParamsProvider() {\n  this.$get = function() { return {}; };\n}\n\nngRouteModule.directive('ngView', ngViewFactory);\nngRouteModule.directive('ngView', ngViewFillContentFactory);\n\n\n/**\n * @ngdoc directive\n * @name ngView\n * @restrict ECA\n *\n * @description\n * `ngView` is a directive that complements the {@link ngRoute.$route $route} service by\n * including the rendered template of the current route into the main layout (`index.html`) file.\n * Every time the current route changes, the included view changes with it according to the\n * configuration of the `$route` service.\n *\n * Requires the {@link ngRoute `ngRoute`} module to be installed.\n *\n * @animations\n * | Animation                        | Occurs                              |\n * |----------------------------------|-------------------------------------|\n * | {@link ng.$animate#enter enter}  | when the new element is inserted to the DOM |\n * | {@link ng.$animate#leave leave}  | when the old element is removed from to the DOM  |\n *\n * The enter and leave animation occur concurrently.\n *\n * @scope\n * @priority 400\n * @param {string=} onload Expression to evaluate whenever the view updates.\n *\n * @param {string=} autoscroll Whether `ngView` should call {@link ng.$anchorScroll\n *                  $anchorScroll} to scroll the viewport after the view is updated.\n *\n *                  - If the attribute is not set, disable scrolling.\n *                  - If the attribute is set without value, enable scrolling.\n *                  - Otherwise enable scrolling only if the `autoscroll` attribute value evaluated\n *                    as an expression yields a truthy value.\n * @example\n    <example name=\"ngView-directive\" module=\"ngViewExample\"\n             deps=\"angular-route.js;angular-animate.js\"\n             animations=\"true\" fixBase=\"true\">\n      <file name=\"index.html\">\n        <div ng-controller=\"MainCtrl as main\">\n          Choose:\n          <a href=\"Book/Moby\">Moby</a> |\n          <a href=\"Book/Moby/ch/1\">Moby: Ch1</a> |\n          <a href=\"Book/Gatsby\">Gatsby</a> |\n          <a href=\"Book/Gatsby/ch/4?key=value\">Gatsby: Ch4</a> |\n          <a href=\"Book/Scarlet\">Scarlet Letter</a><br/>\n\n          <div class=\"view-animate-container\">\n            <div ng-view class=\"view-animate\"></div>\n          </div>\n          <hr />\n\n          <pre>$location.path() = {{main.$location.path()}}</pre>\n          <pre>$route.current.templateUrl = {{main.$route.current.templateUrl}}</pre>\n          <pre>$route.current.params = {{main.$route.current.params}}</pre>\n          <pre>$routeParams = {{main.$routeParams}}</pre>\n        </div>\n      </file>\n\n      <file name=\"book.html\">\n        <div>\n          controller: {{book.name}}<br />\n          Book Id: {{book.params.bookId}}<br />\n        </div>\n      </file>\n\n      <file name=\"chapter.html\">\n        <div>\n          controller: {{chapter.name}}<br />\n          Book Id: {{chapter.params.bookId}}<br />\n          Chapter Id: {{chapter.params.chapterId}}\n        </div>\n      </file>\n\n      <file name=\"animations.css\">\n        .view-animate-container {\n          position:relative;\n          height:100px!important;\n          background:white;\n          border:1px solid black;\n          height:40px;\n          overflow:hidden;\n        }\n\n        .view-animate {\n          padding:10px;\n        }\n\n        .view-animate.ng-enter, .view-animate.ng-leave {\n          transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;\n\n          display:block;\n          width:100%;\n          border-left:1px solid black;\n\n          position:absolute;\n          top:0;\n          left:0;\n          right:0;\n          bottom:0;\n          padding:10px;\n        }\n\n        .view-animate.ng-enter {\n          left:100%;\n        }\n        .view-animate.ng-enter.ng-enter-active {\n          left:0;\n        }\n        .view-animate.ng-leave.ng-leave-active {\n          left:-100%;\n        }\n      </file>\n\n      <file name=\"script.js\">\n        angular.module('ngViewExample', ['ngRoute', 'ngAnimate'])\n          .config(['$routeProvider', '$locationProvider',\n            function($routeProvider, $locationProvider) {\n              $routeProvider\n                .when('/Book/:bookId', {\n                  templateUrl: 'book.html',\n                  controller: 'BookCtrl',\n                  controllerAs: 'book'\n                })\n                .when('/Book/:bookId/ch/:chapterId', {\n                  templateUrl: 'chapter.html',\n                  controller: 'ChapterCtrl',\n                  controllerAs: 'chapter'\n                });\n\n              $locationProvider.html5Mode(true);\n          }])\n          .controller('MainCtrl', ['$route', '$routeParams', '$location',\n            function MainCtrl($route, $routeParams, $location) {\n              this.$route = $route;\n              this.$location = $location;\n              this.$routeParams = $routeParams;\n          }])\n          .controller('BookCtrl', ['$routeParams', function BookCtrl($routeParams) {\n            this.name = 'BookCtrl';\n            this.params = $routeParams;\n          }])\n          .controller('ChapterCtrl', ['$routeParams', function ChapterCtrl($routeParams) {\n            this.name = 'ChapterCtrl';\n            this.params = $routeParams;\n          }]);\n\n      </file>\n\n      <file name=\"protractor.js\" type=\"protractor\">\n        it('should load and compile correct template', function() {\n          element(by.linkText('Moby: Ch1')).click();\n          var content = element(by.css('[ng-view]')).getText();\n          expect(content).toMatch(/controller: ChapterCtrl/);\n          expect(content).toMatch(/Book Id: Moby/);\n          expect(content).toMatch(/Chapter Id: 1/);\n\n          element(by.partialLinkText('Scarlet')).click();\n\n          content = element(by.css('[ng-view]')).getText();\n          expect(content).toMatch(/controller: BookCtrl/);\n          expect(content).toMatch(/Book Id: Scarlet/);\n        });\n      </file>\n    </example>\n */\n\n\n/**\n * @ngdoc event\n * @name ngView#$viewContentLoaded\n * @eventType emit on the current ngView scope\n * @description\n * Emitted every time the ngView content is reloaded.\n */\nngViewFactory.$inject = ['$route', '$anchorScroll', '$animate'];\nfunction ngViewFactory($route, $anchorScroll, $animate) {\n  return {\n    restrict: 'ECA',\n    terminal: true,\n    priority: 400,\n    transclude: 'element',\n    link: function(scope, $element, attr, ctrl, $transclude) {\n        var currentScope,\n            currentElement,\n            previousLeaveAnimation,\n            autoScrollExp = attr.autoscroll,\n            onloadExp = attr.onload || '';\n\n        scope.$on('$routeChangeSuccess', update);\n        update();\n\n        function cleanupLastView() {\n          if (previousLeaveAnimation) {\n            $animate.cancel(previousLeaveAnimation);\n            previousLeaveAnimation = null;\n          }\n\n          if (currentScope) {\n            currentScope.$destroy();\n            currentScope = null;\n          }\n          if (currentElement) {\n            previousLeaveAnimation = $animate.leave(currentElement);\n            previousLeaveAnimation.done(function(response) {\n              if (response !== false) previousLeaveAnimation = null;\n            });\n            currentElement = null;\n          }\n        }\n\n        function update() {\n          var locals = $route.current && $route.current.locals,\n              template = locals && locals.$template;\n\n          if (angular.isDefined(template)) {\n            var newScope = scope.$new();\n            var current = $route.current;\n\n            // Note: This will also link all children of ng-view that were contained in the original\n            // html. If that content contains controllers, ... they could pollute/change the scope.\n            // However, using ng-view on an element with additional content does not make sense...\n            // Note: We can't remove them in the cloneAttchFn of $transclude as that\n            // function is called before linking the content, which would apply child\n            // directives to non existing elements.\n            var clone = $transclude(newScope, function(clone) {\n              $animate.enter(clone, null, currentElement || $element).done(function onNgViewEnter(response) {\n                if (response !== false && angular.isDefined(autoScrollExp)\n                  && (!autoScrollExp || scope.$eval(autoScrollExp))) {\n                  $anchorScroll();\n                }\n              });\n              cleanupLastView();\n            });\n\n            currentElement = clone;\n            currentScope = current.scope = newScope;\n            currentScope.$emit('$viewContentLoaded');\n            currentScope.$eval(onloadExp);\n          } else {\n            cleanupLastView();\n          }\n        }\n    }\n  };\n}\n\n// This directive is called during the $transclude call of the first `ngView` directive.\n// It will replace and compile the content of the element with the loaded template.\n// We need this directive so that the element content is already filled when\n// the link function of another directive on the same element as ngView\n// is called.\nngViewFillContentFactory.$inject = ['$compile', '$controller', '$route'];\nfunction ngViewFillContentFactory($compile, $controller, $route) {\n  return {\n    restrict: 'ECA',\n    priority: -400,\n    link: function(scope, $element) {\n      var current = $route.current,\n          locals = current.locals;\n\n      $element.html(locals.$template);\n\n      var link = $compile($element.contents());\n\n      if (current.controller) {\n        locals.$scope = scope;\n        var controller = $controller(current.controller, locals);\n        if (current.controllerAs) {\n          scope[current.controllerAs] = controller;\n        }\n        $element.data('$ngControllerController', controller);\n        $element.children().data('$ngControllerController', controller);\n      }\n      scope[current.resolveAs || '$resolve'] = locals;\n\n      link(scope);\n    }\n  };\n}\n\n\n})(window, window.angular);"
  },
  {
    "path": "student/content/css/style.css",
    "content": "\n:root {\n      --bg-color: #6c5ce7;\n      --ui-pink: #B53471;\n      --ui-blue: #1B1464;\n      --ui-red: #EA2027;\n      --ui-green: #006266;\n      --ui-font-white: #f1f2f6;\n} \n\n\nbody{\n    background-color: #dfe6e9;\n    font-size: 16px;\n}\n\n.site_body_area{\n\tbackground-color:#00b894;\n}\n\n.footer{\n    padding: 5px;\n    font-weight: bold;\n    font-size: 17px;\n    text-align: center;\n    color: var(--ui-font-white);\n    background-color: var(--ui-green);\n}\n.header_dashboard{\n    padding: 10px;\n    font-size: 25px;\n    font-weight: bold;\n    color: var(--ui-font-white);\n    background-color: var(--ui-green);\n}\n\n.left_panel_body{\n    padding: 15px;\n    background-color: #EFEFEF;\n    height: 100%;\n    height: 534px;\n    overflow-y: scroll;\n}\n\n.left_panel_body::-webkit-scrollbar {\n    width: 4px;\n    background-color: #b2bec3;\n} \n.left_panel_body::-webkit-scrollbar-thumb {\n    width: 12px;\n    background-color: #a29bfe;\n}\n\n.right_panel_body{\n    background-color: #F8F7F5;\n    height: 534px;\n    overflow-y: scroll;\n    padding: 10px;\n    font-size: 18px;\n    border: 0px solid #000000;\n}\n\n.right_panel_body::-webkit-scrollbar {\n    width: 8px;\n    background-color: var(--ui-pink);\n} \n.right_panel_body::-webkit-scrollbar-thumb {\n    width: 12px;\n    background-color: var(--ui-green);\n}\n\n\n.nopadding {\n   padding: 0 !important;\n   margin: 0 !important;\n}\n\n.side_btn{\n    background-color: #F65F54;\n    color: var(--ui-font-white);\n    text-align: center;\n    cursor: pointer;\n    font-size: 14px!important;\n    border-radius: 5%;\n    padding: 5px;\n    margin-top: 10px;\n}\n.side_btn:hover{\n    background-color: #000000;\n}\n\n.btn_span{\n    font-size: 60px;\n    top: 30px;\n}\n\n.side_btn_name{\n    font-size: 20px;\n    top: 100px;\n}\n\n.img_profile{\n    height: 80px;\n    width: 80px;\n}"
  },
  {
    "path": "student/content/mdb/README.txt",
    "content": "Material Design for Bootstrap\n\nVersion: MDB Free 4.7.0\n\nDocumentation:\nhttps://mdbootstrap.com/\n\nGetting started:\nhttps://mdbootstrap.com/docs/jquery/getting-started/download/\n\nTutorials:\nMDB-Bootstrap: https://mdbootstrap.com/education/bootstrap/\nMDB-Wordpress: https://mdbootstrap.com/education/wordpress/\n\nTemplates:\nhttps://mdbootstrap.com/templates/\n\nLicense:\nhttps://mdbootstrap.com/general/license/\n\nSupport:\nhttps://mdbootstrap.com/forums/forum/support/\n\nContact:\noffice@mdbootstrap.com\n\n"
  },
  {
    "path": "student/content/mdb/css/addons/datatables-select.css",
    "content": "/*\n * MDBootstrap integration with Datatables\n * Learn more: https://mdbootstrap.com/docs/jquery/tables/datatables/\n * About MDBootstrap: https://mdbootstrap.com/\n *\n * This combined file was created taking that code from this webstie:\n\n *  https://cdn.datatables.net/select/1.2.7/css/select.dataTables.min.css\n *\n *\n * To rebuild or modify this file with the latest versions of the included\n * software please visit:\n *   https://datatables.net/download/#bs4/dt-1.10.18\n *\n * Included libraries:\n *   DataTables 1.10.18\n */\ntable.dataTable tbody > tr.selected, table.dataTable tbody > tr > .selected {\n  background-color: #B0BED9; }\n\ntable.dataTable.stripe tbody > tr.odd.selected, table.dataTable.stripe tbody > tr.odd > .selected {\n  background-color: #acbad4; }\n\ntable.dataTable.display tbody > tr.odd.selected, table.dataTable.display tbody > tr.odd > .selected {\n  background-color: #acbad4; }\n\ntable.dataTable.hover tbody > tr.selected:hover, table.dataTable.hover tbody > tr > .selected:hover {\n  background-color: #aab7d1; }\n\ntable.dataTable.display tbody > tr.selected:hover, table.dataTable.display tbody > tr > .selected:hover {\n  background-color: #aab7d1; }\n\ntable.dataTable.order-column tbody > tr.selected > .sorting_1, table.dataTable.order-column tbody > tr.selected > .sorting_2, table.dataTable.order-column tbody > tr.selected > .sorting_3 {\n  background-color: #acbad5; }\n\ntable.dataTable.order-column tbody > tr > .selected {\n  background-color: #acbad5; }\n\ntable.dataTable.display tbody > tr.selected > .sorting_1, table.dataTable.display tbody > tr.selected > .sorting_2, table.dataTable.display tbody > tr.selected > .sorting_3 {\n  background-color: #acbad5; }\n\ntable.dataTable.display tbody > tr > .selected {\n  background-color: #acbad5; }\n\ntable.dataTable.display tbody > tr.odd.selected > .sorting_1 {\n  background-color: #a6b4cd; }\n\ntable.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_1 {\n  background-color: #a6b4cd; }\n\ntable.dataTable.display tbody > tr.odd.selected > .sorting_2, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_2 {\n  background-color: #a8b5cf; }\n\ntable.dataTable.display tbody > tr.odd.selected > .sorting_3, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_3 {\n  background-color: #a9b7d1; }\n\ntable.dataTable.display tbody > tr.even.selected > .sorting_1, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_1 {\n  background-color: #acbad5; }\n\ntable.dataTable.display tbody > tr.even.selected > .sorting_2, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_2 {\n  background-color: #aebcd6; }\n\ntable.dataTable.display tbody > tr.even.selected > .sorting_3, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_3 {\n  background-color: #afbdd8; }\n\ntable.dataTable.display tbody > tr.odd > .selected, table.dataTable.order-column.stripe tbody > tr.odd > .selected {\n  background-color: #a6b4cd; }\n\ntable.dataTable.display tbody > tr.even > .selected, table.dataTable.order-column.stripe tbody > tr.even > .selected {\n  background-color: #acbad5; }\n\ntable.dataTable.display tbody > tr.selected:hover > .sorting_1, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_1 {\n  background-color: #a2aec7; }\n\ntable.dataTable.display tbody > tr.selected:hover > .sorting_2, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_2 {\n  background-color: #a3b0c9; }\n\ntable.dataTable.display tbody > tr.selected:hover > .sorting_3, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_3 {\n  background-color: #a5b2cb; }\n\ntable.dataTable.display tbody > tr:hover > .selected, table.dataTable.display tbody > tr > .selected:hover {\n  background-color: #a2aec7; }\n\ntable.dataTable.order-column.hover tbody > tr:hover > .selected, table.dataTable.order-column.hover tbody > tr > .selected:hover {\n  background-color: #a2aec7; }\n\ntable.dataTable tbody td.select-checkbox, table.dataTable tbody th.select-checkbox {\n  position: relative; }\n\ntable.dataTable tbody td.select-checkbox:before, table.dataTable tbody td.select-checkbox:after {\n  display: block;\n  position: absolute;\n  top: 1.2em;\n  left: 50%;\n  width: 12px;\n  height: 12px;\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box; }\n\ntable.dataTable tbody th.select-checkbox:before, table.dataTable tbody th.select-checkbox:after {\n  display: block;\n  position: absolute;\n  top: 1.2em;\n  left: 50%;\n  width: 12px;\n  height: 12px;\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box; }\n\ntable.dataTable tbody td.select-checkbox:before, table.dataTable tbody th.select-checkbox:before {\n  content: ' ';\n  margin-top: 4px;\n  margin-left: -6px;\n  border: 1px solid black;\n  -webkit-border-radius: 3px;\n  border-radius: 3px; }\n\ntable.dataTable tr.selected td.select-checkbox:after, table.dataTable tr.selected th.select-checkbox:after {\n  content: '\\2714';\n  margin-top: 0px;\n  margin-left: -4px;\n  text-align: center;\n  text-shadow: 1px 1px #B0BED9, -1px -1px #B0BED9, 1px -1px #B0BED9, -1px 1px #B0BED9; }\n\ndiv.dataTables_wrapper span.select-info, div.dataTables_wrapper span.select-item {\n  margin-left: 0.5em; }\n\n@media screen and (max-width: 640px) {\n  div.dataTables_wrapper span.select-info, div.dataTables_wrapper span.select-item {\n    margin-left: 0;\n    display: block; } }\n"
  },
  {
    "path": "student/content/mdb/css/addons/datatables.css",
    "content": "/*\n * MDBootstrap integration with Datatables\n * Learn more: https://mdbootstrap.com/docs/jquery/tables/datatables/\n * About MDBootstrap: https://mdbootstrap.com/\n *\n * This combined file was created by the DataTables downloader builder:\n *   https://datatables.net/download\n *\n * To rebuild or modify this file with the latest versions of the included\n * software please visit:\n *   https://datatables.net/download/#bs4/dt-1.10.18\n *\n * Included libraries:\n *   DataTables 1.10.18\n */\n table.dataTable thead {\n  cursor: pointer; }\n  table.dataTable thead > tr > th:active, table.dataTable thead > tr > td:active {\n    outline: none; }\n\ndiv.dataTables_wrapper div.dataTables_length.d-flex.flex-row label {\n  margin-top: 1.2rem;\n  margin-right: 1rem; }\n\ndiv.dataTables_wrapper div.dataTables_length.d-flex.flex-row .select-wrapper.mdb-select span, div.dataTables_wrapper div.dataTables_length.d-flex.flex-row .select-wrapper.mdb-select .select-dropdown {\n  margin-top: 1rem; }\n\ndiv.dataTables_wrapper div.dataTables_length label {\n  text-align: left;\n  font-weight: normal;\n  padding-top: .5rem;\n  padding-bottom: .5rem; }\n\ndiv.dataTables_wrapper div.dataTables_filter label {\n  text-align: left;\n  font-weight: normal;\n  padding-top: .5rem;\n  padding-bottom: .5rem; }\n\ndiv.dataTables_wrapper div.dataTables_length select, div.dataTables_wrapper div.dataTables_length input {\n  width: auto; }\n\ndiv.dataTables_wrapper div.dataTables_filter {\n  text-align: right; }\n  div.dataTables_wrapper div.dataTables_filter select {\n    width: auto; }\n  div.dataTables_wrapper div.dataTables_filter input {\n    width: auto;\n    margin-left: .5rem;\n    display: inline-block; }\n\ndiv.dataTables_wrapper div.dataTables_info {\n  font-weight: normal;\n  padding-top: 1rem;\n  padding-bottom: 1rem; }\n\ndiv.dataTables_wrapper div.dataTables_paginate {\n  font-weight: normal;\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n  text-align: right;\n  margin: 0; }\n  div.dataTables_wrapper div.dataTables_paginate ul.pagination {\n    -webkit-box-pack: end;\n    -webkit-justify-content: flex-end;\n    -ms-flex-pack: end;\n    justify-content: flex-end; }\n    div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link:focus {\n      background-color: #4285f4; }\n    div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item .page-link:focus {\n      -webkit-box-shadow: none;\n      box-shadow: none; }\n\n@media (max-width: 767px) {\n  div.dataTables_wrapper div .dataTables_length, div.dataTables_wrapper div .dataTables_filter, div.dataTables_wrapper div .dataTables_info, div.dataTables_wrapper div .dataTables_paginate ul.pagination {\n    text-align: center;\n    -webkit-box-pack: center;\n    -webkit-justify-content: center;\n    -ms-flex-pack: center;\n    justify-content: center; } }\n\n.bs-select select {\n  display: inline-block !important; }\n\ntable.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting {\n  padding-right: 30px; }\n\ntable.dataTable thead > tr > td.sorting_asc, table.dataTable thead > tr > td.sorting_desc, table.dataTable thead > tr > td.sorting {\n  padding-right: 30px; }\n\ntable.dataTable thead > tr > th:active, table.dataTable thead > tr > td:active {\n  outline: none; }\n\ntable.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc_disabled, table.dataTable thead .sorting_desc_disabled {\n  cursor: pointer;\n  position: relative; }\n\ntable.dataTable thead .sorting:before, table.dataTable thead .sorting:after {\n  position: absolute;\n  bottom: 0.9em;\n  display: block;\n  opacity: 0.3; }\n\ntable.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_asc:after {\n  position: absolute;\n  bottom: 0.9em;\n  display: block;\n  opacity: 0.3; }\n\ntable.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_desc:after {\n  position: absolute;\n  bottom: 0.9em;\n  display: block;\n  opacity: 0.3; }\n\ntable.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_asc_disabled:after {\n  position: absolute;\n  bottom: 0.9em;\n  display: block;\n  opacity: 0.3; }\n\ntable.dataTable thead .sorting_desc_disabled:before, table.dataTable thead .sorting_desc_disabled:after {\n  position: absolute;\n  bottom: 0.9em;\n  display: block;\n  opacity: 0.3; }\n\ntable.dataTable thead .sorting:before, table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_desc_disabled:before {\n  right: 1em;\n  content: \"\\f0de\";\n  font-family: 'Font Awesome\\ 5 Free';\n  font-weight: 900;\n  font-size: 1rem; }\n\ntable.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after, table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc_disabled:after {\n  right: 0.5em;\n  content: \"\\f0dd\";\n  font-family: 'Font Awesome\\ 5 Free';\n  font-weight: 900;\n  right: 16px;\n  font-size: 1rem; }\n\ntable.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_desc:after {\n  opacity: 1; }\n\ntable.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_desc_disabled:after {\n  opacity: 0; }\n"
  },
  {
    "path": "student/content/mdb/css/bootstrap.css",
    "content": "/*!\n * Bootstrap v4.2.1 (https://getbootstrap.com/)\n * Copyright 2011-2018 The Bootstrap Authors\n * Copyright 2011-2018 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n:root {\n  --blue: #007bff;\n  --indigo: #6610f2;\n  --purple: #6f42c1;\n  --pink: #e83e8c;\n  --red: #dc3545;\n  --orange: #fd7e14;\n  --yellow: #ffc107;\n  --green: #28a745;\n  --teal: #20c997;\n  --cyan: #17a2b8;\n  --white: #fff;\n  --gray: #6c757d;\n  --gray-dark: #343a40;\n  --primary: #007bff;\n  --secondary: #6c757d;\n  --success: #28a745;\n  --info: #17a2b8;\n  --warning: #ffc107;\n  --danger: #dc3545;\n  --light: #f8f9fa;\n  --dark: #343a40;\n  --breakpoint-xs: 0;\n  --breakpoint-sm: 576px;\n  --breakpoint-md: 768px;\n  --breakpoint-lg: 992px;\n  --breakpoint-xl: 1200px;\n  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n}\n\n*,\n*::before,\n*::after {\n  box-sizing: border-box;\n}\n\nhtml {\n  font-family: sans-serif;\n  line-height: 1.15;\n  -webkit-text-size-adjust: 100%;\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\narticle, aside, figcaption, figure, footer, header, hgroup, main, nav, section {\n  display: block;\n}\n\nbody {\n  margin: 0;\n  font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n  font-size: 1rem;\n  font-weight: 400;\n  line-height: 1.5;\n  color: #212529;\n  text-align: left;\n  background-color: #fff;\n}\n\n[tabindex=\"-1\"]:focus {\n  outline: 0 !important;\n}\n\nhr {\n  box-sizing: content-box;\n  height: 0;\n  overflow: visible;\n}\n\nh1, h2, h3, h4, h5, h6 {\n  margin-top: 0;\n  margin-bottom: 0.5rem;\n}\n\np {\n  margin-top: 0;\n  margin-bottom: 1rem;\n}\n\nabbr[title],\nabbr[data-original-title] {\n  text-decoration: underline;\n  -webkit-text-decoration: underline dotted;\n  text-decoration: underline dotted;\n  cursor: help;\n  border-bottom: 0;\n  text-decoration-skip-ink: none;\n}\n\naddress {\n  margin-bottom: 1rem;\n  font-style: normal;\n  line-height: inherit;\n}\n\nol,\nul,\ndl {\n  margin-top: 0;\n  margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n  margin-bottom: 0;\n}\n\ndt {\n  font-weight: 700;\n}\n\ndd {\n  margin-bottom: .5rem;\n  margin-left: 0;\n}\n\nblockquote {\n  margin: 0 0 1rem;\n}\n\nb,\nstrong {\n  font-weight: bolder;\n}\n\nsmall {\n  font-size: 80%;\n}\n\nsub,\nsup {\n  position: relative;\n  font-size: 75%;\n  line-height: 0;\n  vertical-align: baseline;\n}\n\nsub {\n  bottom: -.25em;\n}\n\nsup {\n  top: -.5em;\n}\n\na {\n  color: #007bff;\n  text-decoration: none;\n  background-color: transparent;\n}\n\na:hover {\n  color: #0056b3;\n  text-decoration: underline;\n}\n\na:not([href]):not([tabindex]) {\n  color: inherit;\n  text-decoration: none;\n}\n\na:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {\n  color: inherit;\n  text-decoration: none;\n}\n\na:not([href]):not([tabindex]):focus {\n  outline: 0;\n}\n\npre,\ncode,\nkbd,\nsamp {\n  font-family: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n  font-size: 1em;\n}\n\npre {\n  margin-top: 0;\n  margin-bottom: 1rem;\n  overflow: auto;\n}\n\nfigure {\n  margin: 0 0 1rem;\n}\n\nimg {\n  vertical-align: middle;\n  border-style: none;\n}\n\nsvg {\n  overflow: hidden;\n  vertical-align: middle;\n}\n\ntable {\n  border-collapse: collapse;\n}\n\ncaption {\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n  color: #6c757d;\n  text-align: left;\n  caption-side: bottom;\n}\n\nth {\n  text-align: inherit;\n}\n\nlabel {\n  display: inline-block;\n  margin-bottom: 0.5rem;\n}\n\nbutton {\n  border-radius: 0;\n}\n\nbutton:focus {\n  outline: 1px dotted;\n  outline: 5px auto -webkit-focus-ring-color;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n  margin: 0;\n  font-family: inherit;\n  font-size: inherit;\n  line-height: inherit;\n}\n\nbutton,\ninput {\n  overflow: visible;\n}\n\nbutton,\nselect {\n  text-transform: none;\n}\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n  -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n  padding: 0;\n  border-style: none;\n}\n\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n  box-sizing: border-box;\n  padding: 0;\n}\n\ninput[type=\"date\"],\ninput[type=\"time\"],\ninput[type=\"datetime-local\"],\ninput[type=\"month\"] {\n  -webkit-appearance: listbox;\n}\n\ntextarea {\n  overflow: auto;\n  resize: vertical;\n}\n\nfieldset {\n  min-width: 0;\n  padding: 0;\n  margin: 0;\n  border: 0;\n}\n\nlegend {\n  display: block;\n  width: 100%;\n  max-width: 100%;\n  padding: 0;\n  margin-bottom: .5rem;\n  font-size: 1.5rem;\n  line-height: inherit;\n  color: inherit;\n  white-space: normal;\n}\n\nprogress {\n  vertical-align: baseline;\n}\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n  height: auto;\n}\n\n[type=\"search\"] {\n  outline-offset: -2px;\n  -webkit-appearance: none;\n}\n\n[type=\"search\"]::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n\n::-webkit-file-upload-button {\n  font: inherit;\n  -webkit-appearance: button;\n}\n\noutput {\n  display: inline-block;\n}\n\nsummary {\n  display: list-item;\n  cursor: pointer;\n}\n\ntemplate {\n  display: none;\n}\n\n[hidden] {\n  display: none !important;\n}\n\nh1, h2, h3, h4, h5, h6,\n.h1, .h2, .h3, .h4, .h5, .h6 {\n  margin-bottom: 0.5rem;\n  font-family: inherit;\n  font-weight: 500;\n  line-height: 1.2;\n  color: inherit;\n}\n\nh1, .h1 {\n  font-size: 2.5rem;\n}\n\nh2, .h2 {\n  font-size: 2rem;\n}\n\nh3, .h3 {\n  font-size: 1.75rem;\n}\n\nh4, .h4 {\n  font-size: 1.5rem;\n}\n\nh5, .h5 {\n  font-size: 1.25rem;\n}\n\nh6, .h6 {\n  font-size: 1rem;\n}\n\n.lead {\n  font-size: 1.25rem;\n  font-weight: 300;\n}\n\n.display-1 {\n  font-size: 6rem;\n  font-weight: 300;\n  line-height: 1.2;\n}\n\n.display-2 {\n  font-size: 5.5rem;\n  font-weight: 300;\n  line-height: 1.2;\n}\n\n.display-3 {\n  font-size: 4.5rem;\n  font-weight: 300;\n  line-height: 1.2;\n}\n\n.display-4 {\n  font-size: 3.5rem;\n  font-weight: 300;\n  line-height: 1.2;\n}\n\nhr {\n  margin-top: 1rem;\n  margin-bottom: 1rem;\n  border: 0;\n  border-top: 1px solid rgba(0, 0, 0, 0.1);\n}\n\nsmall,\n.small {\n  font-size: 80%;\n  font-weight: 400;\n}\n\nmark,\n.mark {\n  padding: 0.2em;\n  background-color: #fcf8e3;\n}\n\n.list-unstyled {\n  padding-left: 0;\n  list-style: none;\n}\n\n.list-inline {\n  padding-left: 0;\n  list-style: none;\n}\n\n.list-inline-item {\n  display: inline-block;\n}\n\n.list-inline-item:not(:last-child) {\n  margin-right: 0.5rem;\n}\n\n.initialism {\n  font-size: 90%;\n  text-transform: uppercase;\n}\n\n.blockquote {\n  margin-bottom: 1rem;\n  font-size: 1.25rem;\n}\n\n.blockquote-footer {\n  display: block;\n  font-size: 80%;\n  color: #6c757d;\n}\n\n.blockquote-footer::before {\n  content: \"\\2014\\00A0\";\n}\n\n.img-fluid {\n  max-width: 100%;\n  height: auto;\n}\n\n.img-thumbnail {\n  padding: 0.25rem;\n  background-color: #fff;\n  border: 1px solid #dee2e6;\n  border-radius: 0.25rem;\n  max-width: 100%;\n  height: auto;\n}\n\n.figure {\n  display: inline-block;\n}\n\n.figure-img {\n  margin-bottom: 0.5rem;\n  line-height: 1;\n}\n\n.figure-caption {\n  font-size: 90%;\n  color: #6c757d;\n}\n\ncode {\n  font-size: 87.5%;\n  color: #e83e8c;\n  word-break: break-word;\n}\n\na > code {\n  color: inherit;\n}\n\nkbd {\n  padding: 0.2rem 0.4rem;\n  font-size: 87.5%;\n  color: #fff;\n  background-color: #212529;\n  border-radius: 0.2rem;\n}\n\nkbd kbd {\n  padding: 0;\n  font-size: 100%;\n  font-weight: 700;\n}\n\npre {\n  display: block;\n  font-size: 87.5%;\n  color: #212529;\n}\n\npre code {\n  font-size: inherit;\n  color: inherit;\n  word-break: normal;\n}\n\n.pre-scrollable {\n  max-height: 340px;\n  overflow-y: scroll;\n}\n\n.container {\n  width: 100%;\n  padding-right: 15px;\n  padding-left: 15px;\n  margin-right: auto;\n  margin-left: auto;\n}\n\n@media (min-width: 576px) {\n  .container {\n    max-width: 540px;\n  }\n}\n\n@media (min-width: 768px) {\n  .container {\n    max-width: 720px;\n  }\n}\n\n@media (min-width: 992px) {\n  .container {\n    max-width: 960px;\n  }\n}\n\n@media (min-width: 1200px) {\n  .container {\n    max-width: 1140px;\n  }\n}\n\n.container-fluid {\n  width: 100%;\n  padding-right: 15px;\n  padding-left: 15px;\n  margin-right: auto;\n  margin-left: auto;\n}\n\n.row {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  margin-right: -15px;\n  margin-left: -15px;\n}\n\n.no-gutters {\n  margin-right: 0;\n  margin-left: 0;\n}\n\n.no-gutters > .col,\n.no-gutters > [class*=\"col-\"] {\n  padding-right: 0;\n  padding-left: 0;\n}\n\n.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,\n.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,\n.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,\n.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,\n.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,\n.col-xl-auto {\n  position: relative;\n  width: 100%;\n  padding-right: 15px;\n  padding-left: 15px;\n}\n\n.col {\n  -ms-flex-preferred-size: 0;\n  flex-basis: 0;\n  -ms-flex-positive: 1;\n  flex-grow: 1;\n  max-width: 100%;\n}\n\n.col-auto {\n  -ms-flex: 0 0 auto;\n  flex: 0 0 auto;\n  width: auto;\n  max-width: 100%;\n}\n\n.col-1 {\n  -ms-flex: 0 0 8.333333%;\n  flex: 0 0 8.333333%;\n  max-width: 8.333333%;\n}\n\n.col-2 {\n  -ms-flex: 0 0 16.666667%;\n  flex: 0 0 16.666667%;\n  max-width: 16.666667%;\n}\n\n.col-3 {\n  -ms-flex: 0 0 25%;\n  flex: 0 0 25%;\n  max-width: 25%;\n}\n\n.col-4 {\n  -ms-flex: 0 0 33.333333%;\n  flex: 0 0 33.333333%;\n  max-width: 33.333333%;\n}\n\n.col-5 {\n  -ms-flex: 0 0 41.666667%;\n  flex: 0 0 41.666667%;\n  max-width: 41.666667%;\n}\n\n.col-6 {\n  -ms-flex: 0 0 50%;\n  flex: 0 0 50%;\n  max-width: 50%;\n}\n\n.col-7 {\n  -ms-flex: 0 0 58.333333%;\n  flex: 0 0 58.333333%;\n  max-width: 58.333333%;\n}\n\n.col-8 {\n  -ms-flex: 0 0 66.666667%;\n  flex: 0 0 66.666667%;\n  max-width: 66.666667%;\n}\n\n.col-9 {\n  -ms-flex: 0 0 75%;\n  flex: 0 0 75%;\n  max-width: 75%;\n}\n\n.col-10 {\n  -ms-flex: 0 0 83.333333%;\n  flex: 0 0 83.333333%;\n  max-width: 83.333333%;\n}\n\n.col-11 {\n  -ms-flex: 0 0 91.666667%;\n  flex: 0 0 91.666667%;\n  max-width: 91.666667%;\n}\n\n.col-12 {\n  -ms-flex: 0 0 100%;\n  flex: 0 0 100%;\n  max-width: 100%;\n}\n\n.order-first {\n  -ms-flex-order: -1;\n  order: -1;\n}\n\n.order-last {\n  -ms-flex-order: 13;\n  order: 13;\n}\n\n.order-0 {\n  -ms-flex-order: 0;\n  order: 0;\n}\n\n.order-1 {\n  -ms-flex-order: 1;\n  order: 1;\n}\n\n.order-2 {\n  -ms-flex-order: 2;\n  order: 2;\n}\n\n.order-3 {\n  -ms-flex-order: 3;\n  order: 3;\n}\n\n.order-4 {\n  -ms-flex-order: 4;\n  order: 4;\n}\n\n.order-5 {\n  -ms-flex-order: 5;\n  order: 5;\n}\n\n.order-6 {\n  -ms-flex-order: 6;\n  order: 6;\n}\n\n.order-7 {\n  -ms-flex-order: 7;\n  order: 7;\n}\n\n.order-8 {\n  -ms-flex-order: 8;\n  order: 8;\n}\n\n.order-9 {\n  -ms-flex-order: 9;\n  order: 9;\n}\n\n.order-10 {\n  -ms-flex-order: 10;\n  order: 10;\n}\n\n.order-11 {\n  -ms-flex-order: 11;\n  order: 11;\n}\n\n.order-12 {\n  -ms-flex-order: 12;\n  order: 12;\n}\n\n.offset-1 {\n  margin-left: 8.333333%;\n}\n\n.offset-2 {\n  margin-left: 16.666667%;\n}\n\n.offset-3 {\n  margin-left: 25%;\n}\n\n.offset-4 {\n  margin-left: 33.333333%;\n}\n\n.offset-5 {\n  margin-left: 41.666667%;\n}\n\n.offset-6 {\n  margin-left: 50%;\n}\n\n.offset-7 {\n  margin-left: 58.333333%;\n}\n\n.offset-8 {\n  margin-left: 66.666667%;\n}\n\n.offset-9 {\n  margin-left: 75%;\n}\n\n.offset-10 {\n  margin-left: 83.333333%;\n}\n\n.offset-11 {\n  margin-left: 91.666667%;\n}\n\n@media (min-width: 576px) {\n  .col-sm {\n    -ms-flex-preferred-size: 0;\n    flex-basis: 0;\n    -ms-flex-positive: 1;\n    flex-grow: 1;\n    max-width: 100%;\n  }\n  .col-sm-auto {\n    -ms-flex: 0 0 auto;\n    flex: 0 0 auto;\n    width: auto;\n    max-width: 100%;\n  }\n  .col-sm-1 {\n    -ms-flex: 0 0 8.333333%;\n    flex: 0 0 8.333333%;\n    max-width: 8.333333%;\n  }\n  .col-sm-2 {\n    -ms-flex: 0 0 16.666667%;\n    flex: 0 0 16.666667%;\n    max-width: 16.666667%;\n  }\n  .col-sm-3 {\n    -ms-flex: 0 0 25%;\n    flex: 0 0 25%;\n    max-width: 25%;\n  }\n  .col-sm-4 {\n    -ms-flex: 0 0 33.333333%;\n    flex: 0 0 33.333333%;\n    max-width: 33.333333%;\n  }\n  .col-sm-5 {\n    -ms-flex: 0 0 41.666667%;\n    flex: 0 0 41.666667%;\n    max-width: 41.666667%;\n  }\n  .col-sm-6 {\n    -ms-flex: 0 0 50%;\n    flex: 0 0 50%;\n    max-width: 50%;\n  }\n  .col-sm-7 {\n    -ms-flex: 0 0 58.333333%;\n    flex: 0 0 58.333333%;\n    max-width: 58.333333%;\n  }\n  .col-sm-8 {\n    -ms-flex: 0 0 66.666667%;\n    flex: 0 0 66.666667%;\n    max-width: 66.666667%;\n  }\n  .col-sm-9 {\n    -ms-flex: 0 0 75%;\n    flex: 0 0 75%;\n    max-width: 75%;\n  }\n  .col-sm-10 {\n    -ms-flex: 0 0 83.333333%;\n    flex: 0 0 83.333333%;\n    max-width: 83.333333%;\n  }\n  .col-sm-11 {\n    -ms-flex: 0 0 91.666667%;\n    flex: 0 0 91.666667%;\n    max-width: 91.666667%;\n  }\n  .col-sm-12 {\n    -ms-flex: 0 0 100%;\n    flex: 0 0 100%;\n    max-width: 100%;\n  }\n  .order-sm-first {\n    -ms-flex-order: -1;\n    order: -1;\n  }\n  .order-sm-last {\n    -ms-flex-order: 13;\n    order: 13;\n  }\n  .order-sm-0 {\n    -ms-flex-order: 0;\n    order: 0;\n  }\n  .order-sm-1 {\n    -ms-flex-order: 1;\n    order: 1;\n  }\n  .order-sm-2 {\n    -ms-flex-order: 2;\n    order: 2;\n  }\n  .order-sm-3 {\n    -ms-flex-order: 3;\n    order: 3;\n  }\n  .order-sm-4 {\n    -ms-flex-order: 4;\n    order: 4;\n  }\n  .order-sm-5 {\n    -ms-flex-order: 5;\n    order: 5;\n  }\n  .order-sm-6 {\n    -ms-flex-order: 6;\n    order: 6;\n  }\n  .order-sm-7 {\n    -ms-flex-order: 7;\n    order: 7;\n  }\n  .order-sm-8 {\n    -ms-flex-order: 8;\n    order: 8;\n  }\n  .order-sm-9 {\n    -ms-flex-order: 9;\n    order: 9;\n  }\n  .order-sm-10 {\n    -ms-flex-order: 10;\n    order: 10;\n  }\n  .order-sm-11 {\n    -ms-flex-order: 11;\n    order: 11;\n  }\n  .order-sm-12 {\n    -ms-flex-order: 12;\n    order: 12;\n  }\n  .offset-sm-0 {\n    margin-left: 0;\n  }\n  .offset-sm-1 {\n    margin-left: 8.333333%;\n  }\n  .offset-sm-2 {\n    margin-left: 16.666667%;\n  }\n  .offset-sm-3 {\n    margin-left: 25%;\n  }\n  .offset-sm-4 {\n    margin-left: 33.333333%;\n  }\n  .offset-sm-5 {\n    margin-left: 41.666667%;\n  }\n  .offset-sm-6 {\n    margin-left: 50%;\n  }\n  .offset-sm-7 {\n    margin-left: 58.333333%;\n  }\n  .offset-sm-8 {\n    margin-left: 66.666667%;\n  }\n  .offset-sm-9 {\n    margin-left: 75%;\n  }\n  .offset-sm-10 {\n    margin-left: 83.333333%;\n  }\n  .offset-sm-11 {\n    margin-left: 91.666667%;\n  }\n}\n\n@media (min-width: 768px) {\n  .col-md {\n    -ms-flex-preferred-size: 0;\n    flex-basis: 0;\n    -ms-flex-positive: 1;\n    flex-grow: 1;\n    max-width: 100%;\n  }\n  .col-md-auto {\n    -ms-flex: 0 0 auto;\n    flex: 0 0 auto;\n    width: auto;\n    max-width: 100%;\n  }\n  .col-md-1 {\n    -ms-flex: 0 0 8.333333%;\n    flex: 0 0 8.333333%;\n    max-width: 8.333333%;\n  }\n  .col-md-2 {\n    -ms-flex: 0 0 16.666667%;\n    flex: 0 0 16.666667%;\n    max-width: 16.666667%;\n  }\n  .col-md-3 {\n    -ms-flex: 0 0 25%;\n    flex: 0 0 25%;\n    max-width: 25%;\n  }\n  .col-md-4 {\n    -ms-flex: 0 0 33.333333%;\n    flex: 0 0 33.333333%;\n    max-width: 33.333333%;\n  }\n  .col-md-5 {\n    -ms-flex: 0 0 41.666667%;\n    flex: 0 0 41.666667%;\n    max-width: 41.666667%;\n  }\n  .col-md-6 {\n    -ms-flex: 0 0 50%;\n    flex: 0 0 50%;\n    max-width: 50%;\n  }\n  .col-md-7 {\n    -ms-flex: 0 0 58.333333%;\n    flex: 0 0 58.333333%;\n    max-width: 58.333333%;\n  }\n  .col-md-8 {\n    -ms-flex: 0 0 66.666667%;\n    flex: 0 0 66.666667%;\n    max-width: 66.666667%;\n  }\n  .col-md-9 {\n    -ms-flex: 0 0 75%;\n    flex: 0 0 75%;\n    max-width: 75%;\n  }\n  .col-md-10 {\n    -ms-flex: 0 0 83.333333%;\n    flex: 0 0 83.333333%;\n    max-width: 83.333333%;\n  }\n  .col-md-11 {\n    -ms-flex: 0 0 91.666667%;\n    flex: 0 0 91.666667%;\n    max-width: 91.666667%;\n  }\n  .col-md-12 {\n    -ms-flex: 0 0 100%;\n    flex: 0 0 100%;\n    max-width: 100%;\n  }\n  .order-md-first {\n    -ms-flex-order: -1;\n    order: -1;\n  }\n  .order-md-last {\n    -ms-flex-order: 13;\n    order: 13;\n  }\n  .order-md-0 {\n    -ms-flex-order: 0;\n    order: 0;\n  }\n  .order-md-1 {\n    -ms-flex-order: 1;\n    order: 1;\n  }\n  .order-md-2 {\n    -ms-flex-order: 2;\n    order: 2;\n  }\n  .order-md-3 {\n    -ms-flex-order: 3;\n    order: 3;\n  }\n  .order-md-4 {\n    -ms-flex-order: 4;\n    order: 4;\n  }\n  .order-md-5 {\n    -ms-flex-order: 5;\n    order: 5;\n  }\n  .order-md-6 {\n    -ms-flex-order: 6;\n    order: 6;\n  }\n  .order-md-7 {\n    -ms-flex-order: 7;\n    order: 7;\n  }\n  .order-md-8 {\n    -ms-flex-order: 8;\n    order: 8;\n  }\n  .order-md-9 {\n    -ms-flex-order: 9;\n    order: 9;\n  }\n  .order-md-10 {\n    -ms-flex-order: 10;\n    order: 10;\n  }\n  .order-md-11 {\n    -ms-flex-order: 11;\n    order: 11;\n  }\n  .order-md-12 {\n    -ms-flex-order: 12;\n    order: 12;\n  }\n  .offset-md-0 {\n    margin-left: 0;\n  }\n  .offset-md-1 {\n    margin-left: 8.333333%;\n  }\n  .offset-md-2 {\n    margin-left: 16.666667%;\n  }\n  .offset-md-3 {\n    margin-left: 25%;\n  }\n  .offset-md-4 {\n    margin-left: 33.333333%;\n  }\n  .offset-md-5 {\n    margin-left: 41.666667%;\n  }\n  .offset-md-6 {\n    margin-left: 50%;\n  }\n  .offset-md-7 {\n    margin-left: 58.333333%;\n  }\n  .offset-md-8 {\n    margin-left: 66.666667%;\n  }\n  .offset-md-9 {\n    margin-left: 75%;\n  }\n  .offset-md-10 {\n    margin-left: 83.333333%;\n  }\n  .offset-md-11 {\n    margin-left: 91.666667%;\n  }\n}\n\n@media (min-width: 992px) {\n  .col-lg {\n    -ms-flex-preferred-size: 0;\n    flex-basis: 0;\n    -ms-flex-positive: 1;\n    flex-grow: 1;\n    max-width: 100%;\n  }\n  .col-lg-auto {\n    -ms-flex: 0 0 auto;\n    flex: 0 0 auto;\n    width: auto;\n    max-width: 100%;\n  }\n  .col-lg-1 {\n    -ms-flex: 0 0 8.333333%;\n    flex: 0 0 8.333333%;\n    max-width: 8.333333%;\n  }\n  .col-lg-2 {\n    -ms-flex: 0 0 16.666667%;\n    flex: 0 0 16.666667%;\n    max-width: 16.666667%;\n  }\n  .col-lg-3 {\n    -ms-flex: 0 0 25%;\n    flex: 0 0 25%;\n    max-width: 25%;\n  }\n  .col-lg-4 {\n    -ms-flex: 0 0 33.333333%;\n    flex: 0 0 33.333333%;\n    max-width: 33.333333%;\n  }\n  .col-lg-5 {\n    -ms-flex: 0 0 41.666667%;\n    flex: 0 0 41.666667%;\n    max-width: 41.666667%;\n  }\n  .col-lg-6 {\n    -ms-flex: 0 0 50%;\n    flex: 0 0 50%;\n    max-width: 50%;\n  }\n  .col-lg-7 {\n    -ms-flex: 0 0 58.333333%;\n    flex: 0 0 58.333333%;\n    max-width: 58.333333%;\n  }\n  .col-lg-8 {\n    -ms-flex: 0 0 66.666667%;\n    flex: 0 0 66.666667%;\n    max-width: 66.666667%;\n  }\n  .col-lg-9 {\n    -ms-flex: 0 0 75%;\n    flex: 0 0 75%;\n    max-width: 75%;\n  }\n  .col-lg-10 {\n    -ms-flex: 0 0 83.333333%;\n    flex: 0 0 83.333333%;\n    max-width: 83.333333%;\n  }\n  .col-lg-11 {\n    -ms-flex: 0 0 91.666667%;\n    flex: 0 0 91.666667%;\n    max-width: 91.666667%;\n  }\n  .col-lg-12 {\n    -ms-flex: 0 0 100%;\n    flex: 0 0 100%;\n    max-width: 100%;\n  }\n  .order-lg-first {\n    -ms-flex-order: -1;\n    order: -1;\n  }\n  .order-lg-last {\n    -ms-flex-order: 13;\n    order: 13;\n  }\n  .order-lg-0 {\n    -ms-flex-order: 0;\n    order: 0;\n  }\n  .order-lg-1 {\n    -ms-flex-order: 1;\n    order: 1;\n  }\n  .order-lg-2 {\n    -ms-flex-order: 2;\n    order: 2;\n  }\n  .order-lg-3 {\n    -ms-flex-order: 3;\n    order: 3;\n  }\n  .order-lg-4 {\n    -ms-flex-order: 4;\n    order: 4;\n  }\n  .order-lg-5 {\n    -ms-flex-order: 5;\n    order: 5;\n  }\n  .order-lg-6 {\n    -ms-flex-order: 6;\n    order: 6;\n  }\n  .order-lg-7 {\n    -ms-flex-order: 7;\n    order: 7;\n  }\n  .order-lg-8 {\n    -ms-flex-order: 8;\n    order: 8;\n  }\n  .order-lg-9 {\n    -ms-flex-order: 9;\n    order: 9;\n  }\n  .order-lg-10 {\n    -ms-flex-order: 10;\n    order: 10;\n  }\n  .order-lg-11 {\n    -ms-flex-order: 11;\n    order: 11;\n  }\n  .order-lg-12 {\n    -ms-flex-order: 12;\n    order: 12;\n  }\n  .offset-lg-0 {\n    margin-left: 0;\n  }\n  .offset-lg-1 {\n    margin-left: 8.333333%;\n  }\n  .offset-lg-2 {\n    margin-left: 16.666667%;\n  }\n  .offset-lg-3 {\n    margin-left: 25%;\n  }\n  .offset-lg-4 {\n    margin-left: 33.333333%;\n  }\n  .offset-lg-5 {\n    margin-left: 41.666667%;\n  }\n  .offset-lg-6 {\n    margin-left: 50%;\n  }\n  .offset-lg-7 {\n    margin-left: 58.333333%;\n  }\n  .offset-lg-8 {\n    margin-left: 66.666667%;\n  }\n  .offset-lg-9 {\n    margin-left: 75%;\n  }\n  .offset-lg-10 {\n    margin-left: 83.333333%;\n  }\n  .offset-lg-11 {\n    margin-left: 91.666667%;\n  }\n}\n\n@media (min-width: 1200px) {\n  .col-xl {\n    -ms-flex-preferred-size: 0;\n    flex-basis: 0;\n    -ms-flex-positive: 1;\n    flex-grow: 1;\n    max-width: 100%;\n  }\n  .col-xl-auto {\n    -ms-flex: 0 0 auto;\n    flex: 0 0 auto;\n    width: auto;\n    max-width: 100%;\n  }\n  .col-xl-1 {\n    -ms-flex: 0 0 8.333333%;\n    flex: 0 0 8.333333%;\n    max-width: 8.333333%;\n  }\n  .col-xl-2 {\n    -ms-flex: 0 0 16.666667%;\n    flex: 0 0 16.666667%;\n    max-width: 16.666667%;\n  }\n  .col-xl-3 {\n    -ms-flex: 0 0 25%;\n    flex: 0 0 25%;\n    max-width: 25%;\n  }\n  .col-xl-4 {\n    -ms-flex: 0 0 33.333333%;\n    flex: 0 0 33.333333%;\n    max-width: 33.333333%;\n  }\n  .col-xl-5 {\n    -ms-flex: 0 0 41.666667%;\n    flex: 0 0 41.666667%;\n    max-width: 41.666667%;\n  }\n  .col-xl-6 {\n    -ms-flex: 0 0 50%;\n    flex: 0 0 50%;\n    max-width: 50%;\n  }\n  .col-xl-7 {\n    -ms-flex: 0 0 58.333333%;\n    flex: 0 0 58.333333%;\n    max-width: 58.333333%;\n  }\n  .col-xl-8 {\n    -ms-flex: 0 0 66.666667%;\n    flex: 0 0 66.666667%;\n    max-width: 66.666667%;\n  }\n  .col-xl-9 {\n    -ms-flex: 0 0 75%;\n    flex: 0 0 75%;\n    max-width: 75%;\n  }\n  .col-xl-10 {\n    -ms-flex: 0 0 83.333333%;\n    flex: 0 0 83.333333%;\n    max-width: 83.333333%;\n  }\n  .col-xl-11 {\n    -ms-flex: 0 0 91.666667%;\n    flex: 0 0 91.666667%;\n    max-width: 91.666667%;\n  }\n  .col-xl-12 {\n    -ms-flex: 0 0 100%;\n    flex: 0 0 100%;\n    max-width: 100%;\n  }\n  .order-xl-first {\n    -ms-flex-order: -1;\n    order: -1;\n  }\n  .order-xl-last {\n    -ms-flex-order: 13;\n    order: 13;\n  }\n  .order-xl-0 {\n    -ms-flex-order: 0;\n    order: 0;\n  }\n  .order-xl-1 {\n    -ms-flex-order: 1;\n    order: 1;\n  }\n  .order-xl-2 {\n    -ms-flex-order: 2;\n    order: 2;\n  }\n  .order-xl-3 {\n    -ms-flex-order: 3;\n    order: 3;\n  }\n  .order-xl-4 {\n    -ms-flex-order: 4;\n    order: 4;\n  }\n  .order-xl-5 {\n    -ms-flex-order: 5;\n    order: 5;\n  }\n  .order-xl-6 {\n    -ms-flex-order: 6;\n    order: 6;\n  }\n  .order-xl-7 {\n    -ms-flex-order: 7;\n    order: 7;\n  }\n  .order-xl-8 {\n    -ms-flex-order: 8;\n    order: 8;\n  }\n  .order-xl-9 {\n    -ms-flex-order: 9;\n    order: 9;\n  }\n  .order-xl-10 {\n    -ms-flex-order: 10;\n    order: 10;\n  }\n  .order-xl-11 {\n    -ms-flex-order: 11;\n    order: 11;\n  }\n  .order-xl-12 {\n    -ms-flex-order: 12;\n    order: 12;\n  }\n  .offset-xl-0 {\n    margin-left: 0;\n  }\n  .offset-xl-1 {\n    margin-left: 8.333333%;\n  }\n  .offset-xl-2 {\n    margin-left: 16.666667%;\n  }\n  .offset-xl-3 {\n    margin-left: 25%;\n  }\n  .offset-xl-4 {\n    margin-left: 33.333333%;\n  }\n  .offset-xl-5 {\n    margin-left: 41.666667%;\n  }\n  .offset-xl-6 {\n    margin-left: 50%;\n  }\n  .offset-xl-7 {\n    margin-left: 58.333333%;\n  }\n  .offset-xl-8 {\n    margin-left: 66.666667%;\n  }\n  .offset-xl-9 {\n    margin-left: 75%;\n  }\n  .offset-xl-10 {\n    margin-left: 83.333333%;\n  }\n  .offset-xl-11 {\n    margin-left: 91.666667%;\n  }\n}\n\n.table {\n  width: 100%;\n  margin-bottom: 1rem;\n  background-color: transparent;\n}\n\n.table th,\n.table td {\n  padding: 0.75rem;\n  vertical-align: top;\n  border-top: 1px solid #dee2e6;\n}\n\n.table thead th {\n  vertical-align: bottom;\n  border-bottom: 2px solid #dee2e6;\n}\n\n.table tbody + tbody {\n  border-top: 2px solid #dee2e6;\n}\n\n.table .table {\n  background-color: #fff;\n}\n\n.table-sm th,\n.table-sm td {\n  padding: 0.3rem;\n}\n\n.table-bordered {\n  border: 1px solid #dee2e6;\n}\n\n.table-bordered th,\n.table-bordered td {\n  border: 1px solid #dee2e6;\n}\n\n.table-bordered thead th,\n.table-bordered thead td {\n  border-bottom-width: 2px;\n}\n\n.table-borderless th,\n.table-borderless td,\n.table-borderless thead th,\n.table-borderless tbody + tbody {\n  border: 0;\n}\n\n.table-striped tbody tr:nth-of-type(odd) {\n  background-color: rgba(0, 0, 0, 0.05);\n}\n\n.table-hover tbody tr:hover {\n  background-color: rgba(0, 0, 0, 0.075);\n}\n\n.table-primary,\n.table-primary > th,\n.table-primary > td {\n  background-color: #b8daff;\n}\n\n.table-primary th,\n.table-primary td,\n.table-primary thead th,\n.table-primary tbody + tbody {\n  border-color: #7abaff;\n}\n\n.table-hover .table-primary:hover {\n  background-color: #9fcdff;\n}\n\n.table-hover .table-primary:hover > td,\n.table-hover .table-primary:hover > th {\n  background-color: #9fcdff;\n}\n\n.table-secondary,\n.table-secondary > th,\n.table-secondary > td {\n  background-color: #d6d8db;\n}\n\n.table-secondary th,\n.table-secondary td,\n.table-secondary thead th,\n.table-secondary tbody + tbody {\n  border-color: #b3b7bb;\n}\n\n.table-hover .table-secondary:hover {\n  background-color: #c8cbcf;\n}\n\n.table-hover .table-secondary:hover > td,\n.table-hover .table-secondary:hover > th {\n  background-color: #c8cbcf;\n}\n\n.table-success,\n.table-success > th,\n.table-success > td {\n  background-color: #c3e6cb;\n}\n\n.table-success th,\n.table-success td,\n.table-success thead th,\n.table-success tbody + tbody {\n  border-color: #8fd19e;\n}\n\n.table-hover .table-success:hover {\n  background-color: #b1dfbb;\n}\n\n.table-hover .table-success:hover > td,\n.table-hover .table-success:hover > th {\n  background-color: #b1dfbb;\n}\n\n.table-info,\n.table-info > th,\n.table-info > td {\n  background-color: #bee5eb;\n}\n\n.table-info th,\n.table-info td,\n.table-info thead th,\n.table-info tbody + tbody {\n  border-color: #86cfda;\n}\n\n.table-hover .table-info:hover {\n  background-color: #abdde5;\n}\n\n.table-hover .table-info:hover > td,\n.table-hover .table-info:hover > th {\n  background-color: #abdde5;\n}\n\n.table-warning,\n.table-warning > th,\n.table-warning > td {\n  background-color: #ffeeba;\n}\n\n.table-warning th,\n.table-warning td,\n.table-warning thead th,\n.table-warning tbody + tbody {\n  border-color: #ffdf7e;\n}\n\n.table-hover .table-warning:hover {\n  background-color: #ffe8a1;\n}\n\n.table-hover .table-warning:hover > td,\n.table-hover .table-warning:hover > th {\n  background-color: #ffe8a1;\n}\n\n.table-danger,\n.table-danger > th,\n.table-danger > td {\n  background-color: #f5c6cb;\n}\n\n.table-danger th,\n.table-danger td,\n.table-danger thead th,\n.table-danger tbody + tbody {\n  border-color: #ed969e;\n}\n\n.table-hover .table-danger:hover {\n  background-color: #f1b0b7;\n}\n\n.table-hover .table-danger:hover > td,\n.table-hover .table-danger:hover > th {\n  background-color: #f1b0b7;\n}\n\n.table-light,\n.table-light > th,\n.table-light > td {\n  background-color: #fdfdfe;\n}\n\n.table-light th,\n.table-light td,\n.table-light thead th,\n.table-light tbody + tbody {\n  border-color: #fbfcfc;\n}\n\n.table-hover .table-light:hover {\n  background-color: #ececf6;\n}\n\n.table-hover .table-light:hover > td,\n.table-hover .table-light:hover > th {\n  background-color: #ececf6;\n}\n\n.table-dark,\n.table-dark > th,\n.table-dark > td {\n  background-color: #c6c8ca;\n}\n\n.table-dark th,\n.table-dark td,\n.table-dark thead th,\n.table-dark tbody + tbody {\n  border-color: #95999c;\n}\n\n.table-hover .table-dark:hover {\n  background-color: #b9bbbe;\n}\n\n.table-hover .table-dark:hover > td,\n.table-hover .table-dark:hover > th {\n  background-color: #b9bbbe;\n}\n\n.table-active,\n.table-active > th,\n.table-active > td {\n  background-color: rgba(0, 0, 0, 0.075);\n}\n\n.table-hover .table-active:hover {\n  background-color: rgba(0, 0, 0, 0.075);\n}\n\n.table-hover .table-active:hover > td,\n.table-hover .table-active:hover > th {\n  background-color: rgba(0, 0, 0, 0.075);\n}\n\n.table .thead-dark th {\n  color: #fff;\n  background-color: #212529;\n  border-color: #32383e;\n}\n\n.table .thead-light th {\n  color: #495057;\n  background-color: #e9ecef;\n  border-color: #dee2e6;\n}\n\n.table-dark {\n  color: #fff;\n  background-color: #212529;\n}\n\n.table-dark th,\n.table-dark td,\n.table-dark thead th {\n  border-color: #32383e;\n}\n\n.table-dark.table-bordered {\n  border: 0;\n}\n\n.table-dark.table-striped tbody tr:nth-of-type(odd) {\n  background-color: rgba(255, 255, 255, 0.05);\n}\n\n.table-dark.table-hover tbody tr:hover {\n  background-color: rgba(255, 255, 255, 0.075);\n}\n\n@media (max-width: 575.98px) {\n  .table-responsive-sm {\n    display: block;\n    width: 100%;\n    overflow-x: auto;\n    -webkit-overflow-scrolling: touch;\n    -ms-overflow-style: -ms-autohiding-scrollbar;\n  }\n  .table-responsive-sm > .table-bordered {\n    border: 0;\n  }\n}\n\n@media (max-width: 767.98px) {\n  .table-responsive-md {\n    display: block;\n    width: 100%;\n    overflow-x: auto;\n    -webkit-overflow-scrolling: touch;\n    -ms-overflow-style: -ms-autohiding-scrollbar;\n  }\n  .table-responsive-md > .table-bordered {\n    border: 0;\n  }\n}\n\n@media (max-width: 991.98px) {\n  .table-responsive-lg {\n    display: block;\n    width: 100%;\n    overflow-x: auto;\n    -webkit-overflow-scrolling: touch;\n    -ms-overflow-style: -ms-autohiding-scrollbar;\n  }\n  .table-responsive-lg > .table-bordered {\n    border: 0;\n  }\n}\n\n@media (max-width: 1199.98px) {\n  .table-responsive-xl {\n    display: block;\n    width: 100%;\n    overflow-x: auto;\n    -webkit-overflow-scrolling: touch;\n    -ms-overflow-style: -ms-autohiding-scrollbar;\n  }\n  .table-responsive-xl > .table-bordered {\n    border: 0;\n  }\n}\n\n.table-responsive {\n  display: block;\n  width: 100%;\n  overflow-x: auto;\n  -webkit-overflow-scrolling: touch;\n  -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n\n.table-responsive > .table-bordered {\n  border: 0;\n}\n\n.form-control {\n  display: block;\n  width: 100%;\n  height: calc(2.25rem + 2px);\n  padding: 0.375rem 0.75rem;\n  font-size: 1rem;\n  font-weight: 400;\n  line-height: 1.5;\n  color: #495057;\n  background-color: #fff;\n  background-clip: padding-box;\n  border: 1px solid #ced4da;\n  border-radius: 0.25rem;\n  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .form-control {\n    transition: none;\n  }\n}\n\n.form-control::-ms-expand {\n  background-color: transparent;\n  border: 0;\n}\n\n.form-control:focus {\n  color: #495057;\n  background-color: #fff;\n  border-color: #80bdff;\n  outline: 0;\n  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.form-control::-webkit-input-placeholder {\n  color: #6c757d;\n  opacity: 1;\n}\n\n.form-control::-moz-placeholder {\n  color: #6c757d;\n  opacity: 1;\n}\n\n.form-control:-ms-input-placeholder {\n  color: #6c757d;\n  opacity: 1;\n}\n\n.form-control::-ms-input-placeholder {\n  color: #6c757d;\n  opacity: 1;\n}\n\n.form-control::placeholder {\n  color: #6c757d;\n  opacity: 1;\n}\n\n.form-control:disabled, .form-control[readonly] {\n  background-color: #e9ecef;\n  opacity: 1;\n}\n\nselect.form-control:focus::-ms-value {\n  color: #495057;\n  background-color: #fff;\n}\n\n.form-control-file,\n.form-control-range {\n  display: block;\n  width: 100%;\n}\n\n.col-form-label {\n  padding-top: calc(0.375rem + 1px);\n  padding-bottom: calc(0.375rem + 1px);\n  margin-bottom: 0;\n  font-size: inherit;\n  line-height: 1.5;\n}\n\n.col-form-label-lg {\n  padding-top: calc(0.5rem + 1px);\n  padding-bottom: calc(0.5rem + 1px);\n  font-size: 1.25rem;\n  line-height: 1.5;\n}\n\n.col-form-label-sm {\n  padding-top: calc(0.25rem + 1px);\n  padding-bottom: calc(0.25rem + 1px);\n  font-size: 0.875rem;\n  line-height: 1.5;\n}\n\n.form-control-plaintext {\n  display: block;\n  width: 100%;\n  padding-top: 0.375rem;\n  padding-bottom: 0.375rem;\n  margin-bottom: 0;\n  line-height: 1.5;\n  color: #212529;\n  background-color: transparent;\n  border: solid transparent;\n  border-width: 1px 0;\n}\n\n.form-control-plaintext.form-control-sm, .form-control-plaintext.form-control-lg {\n  padding-right: 0;\n  padding-left: 0;\n}\n\n.form-control-sm {\n  height: calc(1.8125rem + 2px);\n  padding: 0.25rem 0.5rem;\n  font-size: 0.875rem;\n  line-height: 1.5;\n  border-radius: 0.2rem;\n}\n\n.form-control-lg {\n  height: calc(2.875rem + 2px);\n  padding: 0.5rem 1rem;\n  font-size: 1.25rem;\n  line-height: 1.5;\n  border-radius: 0.3rem;\n}\n\nselect.form-control[size], select.form-control[multiple] {\n  height: auto;\n}\n\ntextarea.form-control {\n  height: auto;\n}\n\n.form-group {\n  margin-bottom: 1rem;\n}\n\n.form-text {\n  display: block;\n  margin-top: 0.25rem;\n}\n\n.form-row {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  margin-right: -5px;\n  margin-left: -5px;\n}\n\n.form-row > .col,\n.form-row > [class*=\"col-\"] {\n  padding-right: 5px;\n  padding-left: 5px;\n}\n\n.form-check {\n  position: relative;\n  display: block;\n  padding-left: 1.25rem;\n}\n\n.form-check-input {\n  position: absolute;\n  margin-top: 0.3rem;\n  margin-left: -1.25rem;\n}\n\n.form-check-input:disabled ~ .form-check-label {\n  color: #6c757d;\n}\n\n.form-check-label {\n  margin-bottom: 0;\n}\n\n.form-check-inline {\n  display: -ms-inline-flexbox;\n  display: inline-flex;\n  -ms-flex-align: center;\n  align-items: center;\n  padding-left: 0;\n  margin-right: 0.75rem;\n}\n\n.form-check-inline .form-check-input {\n  position: static;\n  margin-top: 0;\n  margin-right: 0.3125rem;\n  margin-left: 0;\n}\n\n.valid-feedback {\n  display: none;\n  width: 100%;\n  margin-top: 0.25rem;\n  font-size: 80%;\n  color: #28a745;\n}\n\n.valid-tooltip {\n  position: absolute;\n  top: 100%;\n  z-index: 5;\n  display: none;\n  max-width: 100%;\n  padding: 0.25rem 0.5rem;\n  margin-top: .1rem;\n  font-size: 0.875rem;\n  line-height: 1.5;\n  color: #fff;\n  background-color: rgba(40, 167, 69, 0.9);\n  border-radius: 0.25rem;\n}\n\n.was-validated .form-control:valid, .form-control.is-valid {\n  border-color: #28a745;\n  padding-right: 2.25rem;\n  background-repeat: no-repeat;\n  background-position: center right calc(2.25rem / 4);\n  background-size: calc(2.25rem / 2) calc(2.25rem / 2);\n  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\");\n}\n\n.was-validated .form-control:valid:focus, .form-control.is-valid:focus {\n  border-color: #28a745;\n  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);\n}\n\n.was-validated .form-control:valid ~ .valid-feedback,\n.was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback,\n.form-control.is-valid ~ .valid-tooltip {\n  display: block;\n}\n\n.was-validated textarea.form-control:valid, textarea.form-control.is-valid {\n  padding-right: 2.25rem;\n  background-position: top calc(2.25rem / 4) right calc(2.25rem / 4);\n}\n\n.was-validated .custom-select:valid, .custom-select.is-valid {\n  border-color: #28a745;\n  padding-right: 3.4375rem;\n  background: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\") no-repeat right 0.75rem center/8px 10px, url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\") no-repeat center right 1.75rem/1.125rem 1.125rem;\n}\n\n.was-validated .custom-select:valid:focus, .custom-select.is-valid:focus {\n  border-color: #28a745;\n  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);\n}\n\n.was-validated .custom-select:valid ~ .valid-feedback,\n.was-validated .custom-select:valid ~ .valid-tooltip, .custom-select.is-valid ~ .valid-feedback,\n.custom-select.is-valid ~ .valid-tooltip {\n  display: block;\n}\n\n.was-validated .form-control-file:valid ~ .valid-feedback,\n.was-validated .form-control-file:valid ~ .valid-tooltip, .form-control-file.is-valid ~ .valid-feedback,\n.form-control-file.is-valid ~ .valid-tooltip {\n  display: block;\n}\n\n.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label {\n  color: #28a745;\n}\n\n.was-validated .form-check-input:valid ~ .valid-feedback,\n.was-validated .form-check-input:valid ~ .valid-tooltip, .form-check-input.is-valid ~ .valid-feedback,\n.form-check-input.is-valid ~ .valid-tooltip {\n  display: block;\n}\n\n.was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label {\n  color: #28a745;\n}\n\n.was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before {\n  border-color: #28a745;\n}\n\n.was-validated .custom-control-input:valid ~ .valid-feedback,\n.was-validated .custom-control-input:valid ~ .valid-tooltip, .custom-control-input.is-valid ~ .valid-feedback,\n.custom-control-input.is-valid ~ .valid-tooltip {\n  display: block;\n}\n\n.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before {\n  border-color: #34ce57;\n  background-color: #34ce57;\n}\n\n.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before {\n  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);\n}\n\n.was-validated .custom-control-input:valid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.is-valid:focus:not(:checked) ~ .custom-control-label::before {\n  border-color: #28a745;\n}\n\n.was-validated .custom-file-input:valid ~ .custom-file-label, .custom-file-input.is-valid ~ .custom-file-label {\n  border-color: #28a745;\n}\n\n.was-validated .custom-file-input:valid ~ .valid-feedback,\n.was-validated .custom-file-input:valid ~ .valid-tooltip, .custom-file-input.is-valid ~ .valid-feedback,\n.custom-file-input.is-valid ~ .valid-tooltip {\n  display: block;\n}\n\n.was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label {\n  border-color: #28a745;\n  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);\n}\n\n.invalid-feedback {\n  display: none;\n  width: 100%;\n  margin-top: 0.25rem;\n  font-size: 80%;\n  color: #dc3545;\n}\n\n.invalid-tooltip {\n  position: absolute;\n  top: 100%;\n  z-index: 5;\n  display: none;\n  max-width: 100%;\n  padding: 0.25rem 0.5rem;\n  margin-top: .1rem;\n  font-size: 0.875rem;\n  line-height: 1.5;\n  color: #fff;\n  background-color: rgba(220, 53, 69, 0.9);\n  border-radius: 0.25rem;\n}\n\n.was-validated .form-control:invalid, .form-control.is-invalid {\n  border-color: #dc3545;\n  padding-right: 2.25rem;\n  background-repeat: no-repeat;\n  background-position: center right calc(2.25rem / 4);\n  background-size: calc(2.25rem / 2) calc(2.25rem / 2);\n  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E\");\n}\n\n.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus {\n  border-color: #dc3545;\n  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);\n}\n\n.was-validated .form-control:invalid ~ .invalid-feedback,\n.was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback,\n.form-control.is-invalid ~ .invalid-tooltip {\n  display: block;\n}\n\n.was-validated textarea.form-control:invalid, textarea.form-control.is-invalid {\n  padding-right: 2.25rem;\n  background-position: top calc(2.25rem / 4) right calc(2.25rem / 4);\n}\n\n.was-validated .custom-select:invalid, .custom-select.is-invalid {\n  border-color: #dc3545;\n  padding-right: 3.4375rem;\n  background: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\") no-repeat right 0.75rem center/8px 10px, url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E\") no-repeat center right 1.75rem/1.125rem 1.125rem;\n}\n\n.was-validated .custom-select:invalid:focus, .custom-select.is-invalid:focus {\n  border-color: #dc3545;\n  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);\n}\n\n.was-validated .custom-select:invalid ~ .invalid-feedback,\n.was-validated .custom-select:invalid ~ .invalid-tooltip, .custom-select.is-invalid ~ .invalid-feedback,\n.custom-select.is-invalid ~ .invalid-tooltip {\n  display: block;\n}\n\n.was-validated .form-control-file:invalid ~ .invalid-feedback,\n.was-validated .form-control-file:invalid ~ .invalid-tooltip, .form-control-file.is-invalid ~ .invalid-feedback,\n.form-control-file.is-invalid ~ .invalid-tooltip {\n  display: block;\n}\n\n.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label {\n  color: #dc3545;\n}\n\n.was-validated .form-check-input:invalid ~ .invalid-feedback,\n.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback,\n.form-check-input.is-invalid ~ .invalid-tooltip {\n  display: block;\n}\n\n.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label {\n  color: #dc3545;\n}\n\n.was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before {\n  border-color: #dc3545;\n}\n\n.was-validated .custom-control-input:invalid ~ .invalid-feedback,\n.was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.is-invalid ~ .invalid-feedback,\n.custom-control-input.is-invalid ~ .invalid-tooltip {\n  display: block;\n}\n\n.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before {\n  border-color: #e4606d;\n  background-color: #e4606d;\n}\n\n.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before {\n  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);\n}\n\n.was-validated .custom-control-input:invalid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.is-invalid:focus:not(:checked) ~ .custom-control-label::before {\n  border-color: #dc3545;\n}\n\n.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label {\n  border-color: #dc3545;\n}\n\n.was-validated .custom-file-input:invalid ~ .invalid-feedback,\n.was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback,\n.custom-file-input.is-invalid ~ .invalid-tooltip {\n  display: block;\n}\n\n.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label {\n  border-color: #dc3545;\n  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);\n}\n\n.form-inline {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-flow: row wrap;\n  flex-flow: row wrap;\n  -ms-flex-align: center;\n  align-items: center;\n}\n\n.form-inline .form-check {\n  width: 100%;\n}\n\n@media (min-width: 576px) {\n  .form-inline label {\n    display: -ms-flexbox;\n    display: flex;\n    -ms-flex-align: center;\n    align-items: center;\n    -ms-flex-pack: center;\n    justify-content: center;\n    margin-bottom: 0;\n  }\n  .form-inline .form-group {\n    display: -ms-flexbox;\n    display: flex;\n    -ms-flex: 0 0 auto;\n    flex: 0 0 auto;\n    -ms-flex-flow: row wrap;\n    flex-flow: row wrap;\n    -ms-flex-align: center;\n    align-items: center;\n    margin-bottom: 0;\n  }\n  .form-inline .form-control {\n    display: inline-block;\n    width: auto;\n    vertical-align: middle;\n  }\n  .form-inline .form-control-plaintext {\n    display: inline-block;\n  }\n  .form-inline .input-group,\n  .form-inline .custom-select {\n    width: auto;\n  }\n  .form-inline .form-check {\n    display: -ms-flexbox;\n    display: flex;\n    -ms-flex-align: center;\n    align-items: center;\n    -ms-flex-pack: center;\n    justify-content: center;\n    width: auto;\n    padding-left: 0;\n  }\n  .form-inline .form-check-input {\n    position: relative;\n    margin-top: 0;\n    margin-right: 0.25rem;\n    margin-left: 0;\n  }\n  .form-inline .custom-control {\n    -ms-flex-align: center;\n    align-items: center;\n    -ms-flex-pack: center;\n    justify-content: center;\n  }\n  .form-inline .custom-control-label {\n    margin-bottom: 0;\n  }\n}\n\n.btn {\n  display: inline-block;\n  font-weight: 400;\n  color: #212529;\n  text-align: center;\n  vertical-align: middle;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  background-color: transparent;\n  border: 1px solid transparent;\n  padding: 0.375rem 0.75rem;\n  font-size: 1rem;\n  line-height: 1.5;\n  border-radius: 0.25rem;\n  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .btn {\n    transition: none;\n  }\n}\n\n.btn:hover {\n  color: #212529;\n  text-decoration: none;\n}\n\n.btn:focus, .btn.focus {\n  outline: 0;\n  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.btn.disabled, .btn:disabled {\n  opacity: 0.65;\n}\n\n.btn:not(:disabled):not(.disabled) {\n  cursor: pointer;\n}\n\na.btn.disabled,\nfieldset:disabled a.btn {\n  pointer-events: none;\n}\n\n.btn-primary {\n  color: #fff;\n  background-color: #007bff;\n  border-color: #007bff;\n}\n\n.btn-primary:hover {\n  color: #fff;\n  background-color: #0069d9;\n  border-color: #0062cc;\n}\n\n.btn-primary:focus, .btn-primary.focus {\n  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);\n}\n\n.btn-primary.disabled, .btn-primary:disabled {\n  color: #fff;\n  background-color: #007bff;\n  border-color: #007bff;\n}\n\n.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,\n.show > .btn-primary.dropdown-toggle {\n  color: #fff;\n  background-color: #0062cc;\n  border-color: #005cbf;\n}\n\n.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,\n.show > .btn-primary.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);\n}\n\n.btn-secondary {\n  color: #fff;\n  background-color: #6c757d;\n  border-color: #6c757d;\n}\n\n.btn-secondary:hover {\n  color: #fff;\n  background-color: #5a6268;\n  border-color: #545b62;\n}\n\n.btn-secondary:focus, .btn-secondary.focus {\n  box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);\n}\n\n.btn-secondary.disabled, .btn-secondary:disabled {\n  color: #fff;\n  background-color: #6c757d;\n  border-color: #6c757d;\n}\n\n.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active,\n.show > .btn-secondary.dropdown-toggle {\n  color: #fff;\n  background-color: #545b62;\n  border-color: #4e555b;\n}\n\n.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus,\n.show > .btn-secondary.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);\n}\n\n.btn-success {\n  color: #fff;\n  background-color: #28a745;\n  border-color: #28a745;\n}\n\n.btn-success:hover {\n  color: #fff;\n  background-color: #218838;\n  border-color: #1e7e34;\n}\n\n.btn-success:focus, .btn-success.focus {\n  box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5);\n}\n\n.btn-success.disabled, .btn-success:disabled {\n  color: #fff;\n  background-color: #28a745;\n  border-color: #28a745;\n}\n\n.btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active,\n.show > .btn-success.dropdown-toggle {\n  color: #fff;\n  background-color: #1e7e34;\n  border-color: #1c7430;\n}\n\n.btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus,\n.show > .btn-success.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5);\n}\n\n.btn-info {\n  color: #fff;\n  background-color: #17a2b8;\n  border-color: #17a2b8;\n}\n\n.btn-info:hover {\n  color: #fff;\n  background-color: #138496;\n  border-color: #117a8b;\n}\n\n.btn-info:focus, .btn-info.focus {\n  box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5);\n}\n\n.btn-info.disabled, .btn-info:disabled {\n  color: #fff;\n  background-color: #17a2b8;\n  border-color: #17a2b8;\n}\n\n.btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active,\n.show > .btn-info.dropdown-toggle {\n  color: #fff;\n  background-color: #117a8b;\n  border-color: #10707f;\n}\n\n.btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus,\n.show > .btn-info.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5);\n}\n\n.btn-warning {\n  color: #212529;\n  background-color: #ffc107;\n  border-color: #ffc107;\n}\n\n.btn-warning:hover {\n  color: #212529;\n  background-color: #e0a800;\n  border-color: #d39e00;\n}\n\n.btn-warning:focus, .btn-warning.focus {\n  box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5);\n}\n\n.btn-warning.disabled, .btn-warning:disabled {\n  color: #212529;\n  background-color: #ffc107;\n  border-color: #ffc107;\n}\n\n.btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active,\n.show > .btn-warning.dropdown-toggle {\n  color: #212529;\n  background-color: #d39e00;\n  border-color: #c69500;\n}\n\n.btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus,\n.show > .btn-warning.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5);\n}\n\n.btn-danger {\n  color: #fff;\n  background-color: #dc3545;\n  border-color: #dc3545;\n}\n\n.btn-danger:hover {\n  color: #fff;\n  background-color: #c82333;\n  border-color: #bd2130;\n}\n\n.btn-danger:focus, .btn-danger.focus {\n  box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.5);\n}\n\n.btn-danger.disabled, .btn-danger:disabled {\n  color: #fff;\n  background-color: #dc3545;\n  border-color: #dc3545;\n}\n\n.btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active,\n.show > .btn-danger.dropdown-toggle {\n  color: #fff;\n  background-color: #bd2130;\n  border-color: #b21f2d;\n}\n\n.btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus,\n.show > .btn-danger.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.5);\n}\n\n.btn-light {\n  color: #212529;\n  background-color: #f8f9fa;\n  border-color: #f8f9fa;\n}\n\n.btn-light:hover {\n  color: #212529;\n  background-color: #e2e6ea;\n  border-color: #dae0e5;\n}\n\n.btn-light:focus, .btn-light.focus {\n  box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5);\n}\n\n.btn-light.disabled, .btn-light:disabled {\n  color: #212529;\n  background-color: #f8f9fa;\n  border-color: #f8f9fa;\n}\n\n.btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active,\n.show > .btn-light.dropdown-toggle {\n  color: #212529;\n  background-color: #dae0e5;\n  border-color: #d3d9df;\n}\n\n.btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus,\n.show > .btn-light.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5);\n}\n\n.btn-dark {\n  color: #fff;\n  background-color: #343a40;\n  border-color: #343a40;\n}\n\n.btn-dark:hover {\n  color: #fff;\n  background-color: #23272b;\n  border-color: #1d2124;\n}\n\n.btn-dark:focus, .btn-dark.focus {\n  box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);\n}\n\n.btn-dark.disabled, .btn-dark:disabled {\n  color: #fff;\n  background-color: #343a40;\n  border-color: #343a40;\n}\n\n.btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active,\n.show > .btn-dark.dropdown-toggle {\n  color: #fff;\n  background-color: #1d2124;\n  border-color: #171a1d;\n}\n\n.btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus,\n.show > .btn-dark.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);\n}\n\n.btn-outline-primary {\n  color: #007bff;\n  border-color: #007bff;\n}\n\n.btn-outline-primary:hover {\n  color: #fff;\n  background-color: #007bff;\n  border-color: #007bff;\n}\n\n.btn-outline-primary:focus, .btn-outline-primary.focus {\n  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);\n}\n\n.btn-outline-primary.disabled, .btn-outline-primary:disabled {\n  color: #007bff;\n  background-color: transparent;\n}\n\n.btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active,\n.show > .btn-outline-primary.dropdown-toggle {\n  color: #fff;\n  background-color: #007bff;\n  border-color: #007bff;\n}\n\n.btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus,\n.show > .btn-outline-primary.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);\n}\n\n.btn-outline-secondary {\n  color: #6c757d;\n  border-color: #6c757d;\n}\n\n.btn-outline-secondary:hover {\n  color: #fff;\n  background-color: #6c757d;\n  border-color: #6c757d;\n}\n\n.btn-outline-secondary:focus, .btn-outline-secondary.focus {\n  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);\n}\n\n.btn-outline-secondary.disabled, .btn-outline-secondary:disabled {\n  color: #6c757d;\n  background-color: transparent;\n}\n\n.btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled).active,\n.show > .btn-outline-secondary.dropdown-toggle {\n  color: #fff;\n  background-color: #6c757d;\n  border-color: #6c757d;\n}\n\n.btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus,\n.show > .btn-outline-secondary.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);\n}\n\n.btn-outline-success {\n  color: #28a745;\n  border-color: #28a745;\n}\n\n.btn-outline-success:hover {\n  color: #fff;\n  background-color: #28a745;\n  border-color: #28a745;\n}\n\n.btn-outline-success:focus, .btn-outline-success.focus {\n  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);\n}\n\n.btn-outline-success.disabled, .btn-outline-success:disabled {\n  color: #28a745;\n  background-color: transparent;\n}\n\n.btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active,\n.show > .btn-outline-success.dropdown-toggle {\n  color: #fff;\n  background-color: #28a745;\n  border-color: #28a745;\n}\n\n.btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus,\n.show > .btn-outline-success.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);\n}\n\n.btn-outline-info {\n  color: #17a2b8;\n  border-color: #17a2b8;\n}\n\n.btn-outline-info:hover {\n  color: #fff;\n  background-color: #17a2b8;\n  border-color: #17a2b8;\n}\n\n.btn-outline-info:focus, .btn-outline-info.focus {\n  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);\n}\n\n.btn-outline-info.disabled, .btn-outline-info:disabled {\n  color: #17a2b8;\n  background-color: transparent;\n}\n\n.btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active,\n.show > .btn-outline-info.dropdown-toggle {\n  color: #fff;\n  background-color: #17a2b8;\n  border-color: #17a2b8;\n}\n\n.btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus,\n.show > .btn-outline-info.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);\n}\n\n.btn-outline-warning {\n  color: #ffc107;\n  border-color: #ffc107;\n}\n\n.btn-outline-warning:hover {\n  color: #212529;\n  background-color: #ffc107;\n  border-color: #ffc107;\n}\n\n.btn-outline-warning:focus, .btn-outline-warning.focus {\n  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);\n}\n\n.btn-outline-warning.disabled, .btn-outline-warning:disabled {\n  color: #ffc107;\n  background-color: transparent;\n}\n\n.btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning:not(:disabled):not(.disabled).active,\n.show > .btn-outline-warning.dropdown-toggle {\n  color: #212529;\n  background-color: #ffc107;\n  border-color: #ffc107;\n}\n\n.btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus,\n.show > .btn-outline-warning.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);\n}\n\n.btn-outline-danger {\n  color: #dc3545;\n  border-color: #dc3545;\n}\n\n.btn-outline-danger:hover {\n  color: #fff;\n  background-color: #dc3545;\n  border-color: #dc3545;\n}\n\n.btn-outline-danger:focus, .btn-outline-danger.focus {\n  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);\n}\n\n.btn-outline-danger.disabled, .btn-outline-danger:disabled {\n  color: #dc3545;\n  background-color: transparent;\n}\n\n.btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger:not(:disabled):not(.disabled).active,\n.show > .btn-outline-danger.dropdown-toggle {\n  color: #fff;\n  background-color: #dc3545;\n  border-color: #dc3545;\n}\n\n.btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus,\n.show > .btn-outline-danger.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);\n}\n\n.btn-outline-light {\n  color: #f8f9fa;\n  border-color: #f8f9fa;\n}\n\n.btn-outline-light:hover {\n  color: #212529;\n  background-color: #f8f9fa;\n  border-color: #f8f9fa;\n}\n\n.btn-outline-light:focus, .btn-outline-light.focus {\n  box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);\n}\n\n.btn-outline-light.disabled, .btn-outline-light:disabled {\n  color: #f8f9fa;\n  background-color: transparent;\n}\n\n.btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light:not(:disabled):not(.disabled).active,\n.show > .btn-outline-light.dropdown-toggle {\n  color: #212529;\n  background-color: #f8f9fa;\n  border-color: #f8f9fa;\n}\n\n.btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus,\n.show > .btn-outline-light.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);\n}\n\n.btn-outline-dark {\n  color: #343a40;\n  border-color: #343a40;\n}\n\n.btn-outline-dark:hover {\n  color: #fff;\n  background-color: #343a40;\n  border-color: #343a40;\n}\n\n.btn-outline-dark:focus, .btn-outline-dark.focus {\n  box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);\n}\n\n.btn-outline-dark.disabled, .btn-outline-dark:disabled {\n  color: #343a40;\n  background-color: transparent;\n}\n\n.btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled).active,\n.show > .btn-outline-dark.dropdown-toggle {\n  color: #fff;\n  background-color: #343a40;\n  border-color: #343a40;\n}\n\n.btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus,\n.show > .btn-outline-dark.dropdown-toggle:focus {\n  box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);\n}\n\n.btn-link {\n  font-weight: 400;\n  color: #007bff;\n}\n\n.btn-link:hover {\n  color: #0056b3;\n  text-decoration: underline;\n}\n\n.btn-link:focus, .btn-link.focus {\n  text-decoration: underline;\n  box-shadow: none;\n}\n\n.btn-link:disabled, .btn-link.disabled {\n  color: #6c757d;\n  pointer-events: none;\n}\n\n.btn-lg, .btn-group-lg > .btn {\n  padding: 0.5rem 1rem;\n  font-size: 1.25rem;\n  line-height: 1.5;\n  border-radius: 0.3rem;\n}\n\n.btn-sm, .btn-group-sm > .btn {\n  padding: 0.25rem 0.5rem;\n  font-size: 0.875rem;\n  line-height: 1.5;\n  border-radius: 0.2rem;\n}\n\n.btn-block {\n  display: block;\n  width: 100%;\n}\n\n.btn-block + .btn-block {\n  margin-top: 0.5rem;\n}\n\ninput[type=\"submit\"].btn-block,\ninput[type=\"reset\"].btn-block,\ninput[type=\"button\"].btn-block {\n  width: 100%;\n}\n\n.fade {\n  transition: opacity 0.15s linear;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .fade {\n    transition: none;\n  }\n}\n\n.fade:not(.show) {\n  opacity: 0;\n}\n\n.collapse:not(.show) {\n  display: none;\n}\n\n.collapsing {\n  position: relative;\n  height: 0;\n  overflow: hidden;\n  transition: height 0.35s ease;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .collapsing {\n    transition: none;\n  }\n}\n\n.dropup,\n.dropright,\n.dropdown,\n.dropleft {\n  position: relative;\n}\n\n.dropdown-toggle::after {\n  display: inline-block;\n  margin-left: 0.255em;\n  vertical-align: 0.255em;\n  content: \"\";\n  border-top: 0.3em solid;\n  border-right: 0.3em solid transparent;\n  border-bottom: 0;\n  border-left: 0.3em solid transparent;\n}\n\n.dropdown-toggle:empty::after {\n  margin-left: 0;\n}\n\n.dropdown-menu {\n  position: absolute;\n  top: 100%;\n  left: 0;\n  z-index: 1000;\n  display: none;\n  float: left;\n  min-width: 10rem;\n  padding: 0.5rem 0;\n  margin: 0.125rem 0 0;\n  font-size: 1rem;\n  color: #212529;\n  text-align: left;\n  list-style: none;\n  background-color: #fff;\n  background-clip: padding-box;\n  border: 1px solid rgba(0, 0, 0, 0.15);\n  border-radius: 0.25rem;\n}\n\n.dropdown-menu-right {\n  right: 0;\n  left: auto;\n}\n\n@media (min-width: 576px) {\n  .dropdown-menu-sm-right {\n    right: 0;\n    left: auto;\n  }\n}\n\n@media (min-width: 768px) {\n  .dropdown-menu-md-right {\n    right: 0;\n    left: auto;\n  }\n}\n\n@media (min-width: 992px) {\n  .dropdown-menu-lg-right {\n    right: 0;\n    left: auto;\n  }\n}\n\n@media (min-width: 1200px) {\n  .dropdown-menu-xl-right {\n    right: 0;\n    left: auto;\n  }\n}\n\n.dropdown-menu-left {\n  right: auto;\n  left: 0;\n}\n\n@media (min-width: 576px) {\n  .dropdown-menu-sm-left {\n    right: auto;\n    left: 0;\n  }\n}\n\n@media (min-width: 768px) {\n  .dropdown-menu-md-left {\n    right: auto;\n    left: 0;\n  }\n}\n\n@media (min-width: 992px) {\n  .dropdown-menu-lg-left {\n    right: auto;\n    left: 0;\n  }\n}\n\n@media (min-width: 1200px) {\n  .dropdown-menu-xl-left {\n    right: auto;\n    left: 0;\n  }\n}\n\n.dropup .dropdown-menu {\n  top: auto;\n  bottom: 100%;\n  margin-top: 0;\n  margin-bottom: 0.125rem;\n}\n\n.dropup .dropdown-toggle::after {\n  display: inline-block;\n  margin-left: 0.255em;\n  vertical-align: 0.255em;\n  content: \"\";\n  border-top: 0;\n  border-right: 0.3em solid transparent;\n  border-bottom: 0.3em solid;\n  border-left: 0.3em solid transparent;\n}\n\n.dropup .dropdown-toggle:empty::after {\n  margin-left: 0;\n}\n\n.dropright .dropdown-menu {\n  top: 0;\n  right: auto;\n  left: 100%;\n  margin-top: 0;\n  margin-left: 0.125rem;\n}\n\n.dropright .dropdown-toggle::after {\n  display: inline-block;\n  margin-left: 0.255em;\n  vertical-align: 0.255em;\n  content: \"\";\n  border-top: 0.3em solid transparent;\n  border-right: 0;\n  border-bottom: 0.3em solid transparent;\n  border-left: 0.3em solid;\n}\n\n.dropright .dropdown-toggle:empty::after {\n  margin-left: 0;\n}\n\n.dropright .dropdown-toggle::after {\n  vertical-align: 0;\n}\n\n.dropleft .dropdown-menu {\n  top: 0;\n  right: 100%;\n  left: auto;\n  margin-top: 0;\n  margin-right: 0.125rem;\n}\n\n.dropleft .dropdown-toggle::after {\n  display: inline-block;\n  margin-left: 0.255em;\n  vertical-align: 0.255em;\n  content: \"\";\n}\n\n.dropleft .dropdown-toggle::after {\n  display: none;\n}\n\n.dropleft .dropdown-toggle::before {\n  display: inline-block;\n  margin-right: 0.255em;\n  vertical-align: 0.255em;\n  content: \"\";\n  border-top: 0.3em solid transparent;\n  border-right: 0.3em solid;\n  border-bottom: 0.3em solid transparent;\n}\n\n.dropleft .dropdown-toggle:empty::after {\n  margin-left: 0;\n}\n\n.dropleft .dropdown-toggle::before {\n  vertical-align: 0;\n}\n\n.dropdown-menu[x-placement^=\"top\"], .dropdown-menu[x-placement^=\"right\"], .dropdown-menu[x-placement^=\"bottom\"], .dropdown-menu[x-placement^=\"left\"] {\n  right: auto;\n  bottom: auto;\n}\n\n.dropdown-divider {\n  height: 0;\n  margin: 0.5rem 0;\n  overflow: hidden;\n  border-top: 1px solid #e9ecef;\n}\n\n.dropdown-item {\n  display: block;\n  width: 100%;\n  padding: 0.25rem 1.5rem;\n  clear: both;\n  font-weight: 400;\n  color: #212529;\n  text-align: inherit;\n  white-space: nowrap;\n  background-color: transparent;\n  border: 0;\n}\n\n.dropdown-item:first-child {\n  border-top-left-radius: calc(0.25rem - 1px);\n  border-top-right-radius: calc(0.25rem - 1px);\n}\n\n.dropdown-item:last-child {\n  border-bottom-right-radius: calc(0.25rem - 1px);\n  border-bottom-left-radius: calc(0.25rem - 1px);\n}\n\n.dropdown-item:hover, .dropdown-item:focus {\n  color: #16181b;\n  text-decoration: none;\n  background-color: #f8f9fa;\n}\n\n.dropdown-item.active, .dropdown-item:active {\n  color: #fff;\n  text-decoration: none;\n  background-color: #007bff;\n}\n\n.dropdown-item.disabled, .dropdown-item:disabled {\n  color: #6c757d;\n  pointer-events: none;\n  background-color: transparent;\n}\n\n.dropdown-menu.show {\n  display: block;\n}\n\n.dropdown-header {\n  display: block;\n  padding: 0.5rem 1.5rem;\n  margin-bottom: 0;\n  font-size: 0.875rem;\n  color: #6c757d;\n  white-space: nowrap;\n}\n\n.dropdown-item-text {\n  display: block;\n  padding: 0.25rem 1.5rem;\n  color: #212529;\n}\n\n.btn-group,\n.btn-group-vertical {\n  position: relative;\n  display: -ms-inline-flexbox;\n  display: inline-flex;\n  vertical-align: middle;\n}\n\n.btn-group > .btn,\n.btn-group-vertical > .btn {\n  position: relative;\n  -ms-flex: 1 1 auto;\n  flex: 1 1 auto;\n}\n\n.btn-group > .btn:hover,\n.btn-group-vertical > .btn:hover {\n  z-index: 1;\n}\n\n.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active,\n.btn-group-vertical > .btn:focus,\n.btn-group-vertical > .btn:active,\n.btn-group-vertical > .btn.active {\n  z-index: 1;\n}\n\n.btn-toolbar {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  -ms-flex-pack: start;\n  justify-content: flex-start;\n}\n\n.btn-toolbar .input-group {\n  width: auto;\n}\n\n.btn-group > .btn:not(:first-child),\n.btn-group > .btn-group:not(:first-child) {\n  margin-left: -1px;\n}\n\n.btn-group > .btn:not(:last-child):not(.dropdown-toggle),\n.btn-group > .btn-group:not(:last-child) > .btn {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n.btn-group > .btn:not(:first-child),\n.btn-group > .btn-group:not(:first-child) > .btn {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.dropdown-toggle-split {\n  padding-right: 0.5625rem;\n  padding-left: 0.5625rem;\n}\n\n.dropdown-toggle-split::after,\n.dropup .dropdown-toggle-split::after,\n.dropright .dropdown-toggle-split::after {\n  margin-left: 0;\n}\n\n.dropleft .dropdown-toggle-split::before {\n  margin-right: 0;\n}\n\n.btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split {\n  padding-right: 0.375rem;\n  padding-left: 0.375rem;\n}\n\n.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split {\n  padding-right: 0.75rem;\n  padding-left: 0.75rem;\n}\n\n.btn-group-vertical {\n  -ms-flex-direction: column;\n  flex-direction: column;\n  -ms-flex-align: start;\n  align-items: flex-start;\n  -ms-flex-pack: center;\n  justify-content: center;\n}\n\n.btn-group-vertical > .btn,\n.btn-group-vertical > .btn-group {\n  width: 100%;\n}\n\n.btn-group-vertical > .btn:not(:first-child),\n.btn-group-vertical > .btn-group:not(:first-child) {\n  margin-top: -1px;\n}\n\n.btn-group-vertical > .btn:not(:last-child):not(.dropdown-toggle),\n.btn-group-vertical > .btn-group:not(:last-child) > .btn {\n  border-bottom-right-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.btn-group-vertical > .btn:not(:first-child),\n.btn-group-vertical > .btn-group:not(:first-child) > .btn {\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n}\n\n.btn-group-toggle > .btn,\n.btn-group-toggle > .btn-group > .btn {\n  margin-bottom: 0;\n}\n\n.btn-group-toggle > .btn input[type=\"radio\"],\n.btn-group-toggle > .btn input[type=\"checkbox\"],\n.btn-group-toggle > .btn-group > .btn input[type=\"radio\"],\n.btn-group-toggle > .btn-group > .btn input[type=\"checkbox\"] {\n  position: absolute;\n  clip: rect(0, 0, 0, 0);\n  pointer-events: none;\n}\n\n.input-group {\n  position: relative;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  -ms-flex-align: stretch;\n  align-items: stretch;\n  width: 100%;\n}\n\n.input-group > .form-control,\n.input-group > .form-control-plaintext,\n.input-group > .custom-select,\n.input-group > .custom-file {\n  position: relative;\n  -ms-flex: 1 1 auto;\n  flex: 1 1 auto;\n  width: 1%;\n  margin-bottom: 0;\n}\n\n.input-group > .form-control + .form-control,\n.input-group > .form-control + .custom-select,\n.input-group > .form-control + .custom-file,\n.input-group > .form-control-plaintext + .form-control,\n.input-group > .form-control-plaintext + .custom-select,\n.input-group > .form-control-plaintext + .custom-file,\n.input-group > .custom-select + .form-control,\n.input-group > .custom-select + .custom-select,\n.input-group > .custom-select + .custom-file,\n.input-group > .custom-file + .form-control,\n.input-group > .custom-file + .custom-select,\n.input-group > .custom-file + .custom-file {\n  margin-left: -1px;\n}\n\n.input-group > .form-control:focus,\n.input-group > .custom-select:focus,\n.input-group > .custom-file .custom-file-input:focus ~ .custom-file-label {\n  z-index: 3;\n}\n\n.input-group > .custom-file .custom-file-input:focus {\n  z-index: 4;\n}\n\n.input-group > .form-control:not(:last-child),\n.input-group > .custom-select:not(:last-child) {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n.input-group > .form-control:not(:first-child),\n.input-group > .custom-select:not(:first-child) {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.input-group > .custom-file {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-align: center;\n  align-items: center;\n}\n\n.input-group > .custom-file:not(:last-child) .custom-file-label,\n.input-group > .custom-file:not(:last-child) .custom-file-label::after {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n.input-group > .custom-file:not(:first-child) .custom-file-label {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.input-group-prepend,\n.input-group-append {\n  display: -ms-flexbox;\n  display: flex;\n}\n\n.input-group-prepend .btn,\n.input-group-append .btn {\n  position: relative;\n  z-index: 2;\n}\n\n.input-group-prepend .btn:focus,\n.input-group-append .btn:focus {\n  z-index: 3;\n}\n\n.input-group-prepend .btn + .btn,\n.input-group-prepend .btn + .input-group-text,\n.input-group-prepend .input-group-text + .input-group-text,\n.input-group-prepend .input-group-text + .btn,\n.input-group-append .btn + .btn,\n.input-group-append .btn + .input-group-text,\n.input-group-append .input-group-text + .input-group-text,\n.input-group-append .input-group-text + .btn {\n  margin-left: -1px;\n}\n\n.input-group-prepend {\n  margin-right: -1px;\n}\n\n.input-group-append {\n  margin-left: -1px;\n}\n\n.input-group-text {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-align: center;\n  align-items: center;\n  padding: 0.375rem 0.75rem;\n  margin-bottom: 0;\n  font-size: 1rem;\n  font-weight: 400;\n  line-height: 1.5;\n  color: #495057;\n  text-align: center;\n  white-space: nowrap;\n  background-color: #e9ecef;\n  border: 1px solid #ced4da;\n  border-radius: 0.25rem;\n}\n\n.input-group-text input[type=\"radio\"],\n.input-group-text input[type=\"checkbox\"] {\n  margin-top: 0;\n}\n\n.input-group-lg > .form-control:not(textarea),\n.input-group-lg > .custom-select {\n  height: calc(2.875rem + 2px);\n}\n\n.input-group-lg > .form-control,\n.input-group-lg > .custom-select,\n.input-group-lg > .input-group-prepend > .input-group-text,\n.input-group-lg > .input-group-append > .input-group-text,\n.input-group-lg > .input-group-prepend > .btn,\n.input-group-lg > .input-group-append > .btn {\n  padding: 0.5rem 1rem;\n  font-size: 1.25rem;\n  line-height: 1.5;\n  border-radius: 0.3rem;\n}\n\n.input-group-sm > .form-control:not(textarea),\n.input-group-sm > .custom-select {\n  height: calc(1.8125rem + 2px);\n}\n\n.input-group-sm > .form-control,\n.input-group-sm > .custom-select,\n.input-group-sm > .input-group-prepend > .input-group-text,\n.input-group-sm > .input-group-append > .input-group-text,\n.input-group-sm > .input-group-prepend > .btn,\n.input-group-sm > .input-group-append > .btn {\n  padding: 0.25rem 0.5rem;\n  font-size: 0.875rem;\n  line-height: 1.5;\n  border-radius: 0.2rem;\n}\n\n.input-group-lg > .custom-select,\n.input-group-sm > .custom-select {\n  padding-right: 1.75rem;\n}\n\n.input-group > .input-group-prepend > .btn,\n.input-group > .input-group-prepend > .input-group-text,\n.input-group > .input-group-append:not(:last-child) > .btn,\n.input-group > .input-group-append:not(:last-child) > .input-group-text,\n.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group > .input-group-append:last-child > .input-group-text:not(:last-child) {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n.input-group > .input-group-append > .btn,\n.input-group > .input-group-append > .input-group-text,\n.input-group > .input-group-prepend:not(:first-child) > .btn,\n.input-group > .input-group-prepend:not(:first-child) > .input-group-text,\n.input-group > .input-group-prepend:first-child > .btn:not(:first-child),\n.input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.custom-control {\n  position: relative;\n  display: block;\n  min-height: 1.5rem;\n  padding-left: 1.5rem;\n}\n\n.custom-control-inline {\n  display: -ms-inline-flexbox;\n  display: inline-flex;\n  margin-right: 1rem;\n}\n\n.custom-control-input {\n  position: absolute;\n  z-index: -1;\n  opacity: 0;\n}\n\n.custom-control-input:checked ~ .custom-control-label::before {\n  color: #fff;\n  border-color: #007bff;\n  background-color: #007bff;\n}\n\n.custom-control-input:focus ~ .custom-control-label::before {\n  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {\n  border-color: #80bdff;\n}\n\n.custom-control-input:not(:disabled):active ~ .custom-control-label::before {\n  color: #fff;\n  background-color: #b3d7ff;\n  border-color: #b3d7ff;\n}\n\n.custom-control-input:disabled ~ .custom-control-label {\n  color: #6c757d;\n}\n\n.custom-control-input:disabled ~ .custom-control-label::before {\n  background-color: #e9ecef;\n}\n\n.custom-control-label {\n  position: relative;\n  margin-bottom: 0;\n  vertical-align: top;\n}\n\n.custom-control-label::before {\n  position: absolute;\n  top: 0.25rem;\n  left: -1.5rem;\n  display: block;\n  width: 1rem;\n  height: 1rem;\n  pointer-events: none;\n  content: \"\";\n  background-color: #fff;\n  border: #adb5bd solid 1px;\n}\n\n.custom-control-label::after {\n  position: absolute;\n  top: 0.25rem;\n  left: -1.5rem;\n  display: block;\n  width: 1rem;\n  height: 1rem;\n  content: \"\";\n  background-repeat: no-repeat;\n  background-position: center center;\n  background-size: 50% 50%;\n}\n\n.custom-checkbox .custom-control-label::before {\n  border-radius: 0.25rem;\n}\n\n.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {\n  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e\");\n}\n\n.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {\n  border-color: #007bff;\n  background-color: #007bff;\n}\n\n.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after {\n  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e\");\n}\n\n.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {\n  background-color: rgba(0, 123, 255, 0.5);\n}\n\n.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before {\n  background-color: rgba(0, 123, 255, 0.5);\n}\n\n.custom-radio .custom-control-label::before {\n  border-radius: 50%;\n}\n\n.custom-radio .custom-control-input:checked ~ .custom-control-label::after {\n  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e\");\n}\n\n.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {\n  background-color: rgba(0, 123, 255, 0.5);\n}\n\n.custom-switch {\n  padding-left: 2.25rem;\n}\n\n.custom-switch .custom-control-label::before {\n  left: -2.25rem;\n  width: 1.75rem;\n  pointer-events: all;\n  border-radius: 0.5rem;\n}\n\n.custom-switch .custom-control-label::after {\n  top: calc(0.25rem + 2px);\n  left: calc(-2.25rem + 2px);\n  width: calc(1rem - 4px);\n  height: calc(1rem - 4px);\n  background-color: #adb5bd;\n  border-radius: 0.5rem;\n  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out;\n  transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n  transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .custom-switch .custom-control-label::after {\n    transition: none;\n  }\n}\n\n.custom-switch .custom-control-input:checked ~ .custom-control-label::after {\n  background-color: #fff;\n  -webkit-transform: translateX(0.75rem);\n  transform: translateX(0.75rem);\n}\n\n.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before {\n  background-color: rgba(0, 123, 255, 0.5);\n}\n\n.custom-select {\n  display: inline-block;\n  width: 100%;\n  height: calc(2.25rem + 2px);\n  padding: 0.375rem 1.75rem 0.375rem 0.75rem;\n  font-weight: 400;\n  line-height: 1.5;\n  color: #495057;\n  vertical-align: middle;\n  background: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\") no-repeat right 0.75rem center/8px 10px;\n  background-color: #fff;\n  border: 1px solid #ced4da;\n  border-radius: 0.25rem;\n  -webkit-appearance: none;\n  -moz-appearance: none;\n  appearance: none;\n}\n\n.custom-select:focus {\n  border-color: #80bdff;\n  outline: 0;\n  box-shadow: 0 0 0 0.2rem rgba(128, 189, 255, 0.5);\n}\n\n.custom-select:focus::-ms-value {\n  color: #495057;\n  background-color: #fff;\n}\n\n.custom-select[multiple], .custom-select[size]:not([size=\"1\"]) {\n  height: auto;\n  padding-right: 0.75rem;\n  background-image: none;\n}\n\n.custom-select:disabled {\n  color: #6c757d;\n  background-color: #e9ecef;\n}\n\n.custom-select::-ms-expand {\n  opacity: 0;\n}\n\n.custom-select-sm {\n  height: calc(1.8125rem + 2px);\n  padding-top: 0.25rem;\n  padding-bottom: 0.25rem;\n  padding-left: 0.5rem;\n  font-size: 0.875rem;\n}\n\n.custom-select-lg {\n  height: calc(2.875rem + 2px);\n  padding-top: 0.5rem;\n  padding-bottom: 0.5rem;\n  padding-left: 1rem;\n  font-size: 1.25rem;\n}\n\n.custom-file {\n  position: relative;\n  display: inline-block;\n  width: 100%;\n  height: calc(2.25rem + 2px);\n  margin-bottom: 0;\n}\n\n.custom-file-input {\n  position: relative;\n  z-index: 2;\n  width: 100%;\n  height: calc(2.25rem + 2px);\n  margin: 0;\n  opacity: 0;\n}\n\n.custom-file-input:focus ~ .custom-file-label {\n  border-color: #80bdff;\n  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.custom-file-input:disabled ~ .custom-file-label {\n  background-color: #e9ecef;\n}\n\n.custom-file-input:lang(en) ~ .custom-file-label::after {\n  content: \"Browse\";\n}\n\n.custom-file-input ~ .custom-file-label[data-browse]::after {\n  content: attr(data-browse);\n}\n\n.custom-file-label {\n  position: absolute;\n  top: 0;\n  right: 0;\n  left: 0;\n  z-index: 1;\n  height: calc(2.25rem + 2px);\n  padding: 0.375rem 0.75rem;\n  font-weight: 400;\n  line-height: 1.5;\n  color: #495057;\n  background-color: #fff;\n  border: 1px solid #ced4da;\n  border-radius: 0.25rem;\n}\n\n.custom-file-label::after {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  z-index: 3;\n  display: block;\n  height: 2.25rem;\n  padding: 0.375rem 0.75rem;\n  line-height: 1.5;\n  color: #495057;\n  content: \"Browse\";\n  background-color: #e9ecef;\n  border-left: inherit;\n  border-radius: 0 0.25rem 0.25rem 0;\n}\n\n.custom-range {\n  width: 100%;\n  height: calc(1rem + 0.4rem);\n  padding: 0;\n  background-color: transparent;\n  -webkit-appearance: none;\n  -moz-appearance: none;\n  appearance: none;\n}\n\n.custom-range:focus {\n  outline: none;\n}\n\n.custom-range:focus::-webkit-slider-thumb {\n  box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.custom-range:focus::-moz-range-thumb {\n  box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.custom-range:focus::-ms-thumb {\n  box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.custom-range::-moz-focus-outer {\n  border: 0;\n}\n\n.custom-range::-webkit-slider-thumb {\n  width: 1rem;\n  height: 1rem;\n  margin-top: -0.25rem;\n  background-color: #007bff;\n  border: 0;\n  border-radius: 1rem;\n  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .custom-range::-webkit-slider-thumb {\n    transition: none;\n  }\n}\n\n.custom-range::-webkit-slider-thumb:active {\n  background-color: #b3d7ff;\n}\n\n.custom-range::-webkit-slider-runnable-track {\n  width: 100%;\n  height: 0.5rem;\n  color: transparent;\n  cursor: pointer;\n  background-color: #dee2e6;\n  border-color: transparent;\n  border-radius: 1rem;\n}\n\n.custom-range::-moz-range-thumb {\n  width: 1rem;\n  height: 1rem;\n  background-color: #007bff;\n  border: 0;\n  border-radius: 1rem;\n  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n  -moz-appearance: none;\n  appearance: none;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .custom-range::-moz-range-thumb {\n    transition: none;\n  }\n}\n\n.custom-range::-moz-range-thumb:active {\n  background-color: #b3d7ff;\n}\n\n.custom-range::-moz-range-track {\n  width: 100%;\n  height: 0.5rem;\n  color: transparent;\n  cursor: pointer;\n  background-color: #dee2e6;\n  border-color: transparent;\n  border-radius: 1rem;\n}\n\n.custom-range::-ms-thumb {\n  width: 1rem;\n  height: 1rem;\n  margin-top: 0;\n  margin-right: 0.2rem;\n  margin-left: 0.2rem;\n  background-color: #007bff;\n  border: 0;\n  border-radius: 1rem;\n  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n  appearance: none;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .custom-range::-ms-thumb {\n    transition: none;\n  }\n}\n\n.custom-range::-ms-thumb:active {\n  background-color: #b3d7ff;\n}\n\n.custom-range::-ms-track {\n  width: 100%;\n  height: 0.5rem;\n  color: transparent;\n  cursor: pointer;\n  background-color: transparent;\n  border-color: transparent;\n  border-width: 0.5rem;\n}\n\n.custom-range::-ms-fill-lower {\n  background-color: #dee2e6;\n  border-radius: 1rem;\n}\n\n.custom-range::-ms-fill-upper {\n  margin-right: 15px;\n  background-color: #dee2e6;\n  border-radius: 1rem;\n}\n\n.custom-range:disabled::-webkit-slider-thumb {\n  background-color: #adb5bd;\n}\n\n.custom-range:disabled::-webkit-slider-runnable-track {\n  cursor: default;\n}\n\n.custom-range:disabled::-moz-range-thumb {\n  background-color: #adb5bd;\n}\n\n.custom-range:disabled::-moz-range-track {\n  cursor: default;\n}\n\n.custom-range:disabled::-ms-thumb {\n  background-color: #adb5bd;\n}\n\n.custom-control-label::before,\n.custom-file-label,\n.custom-select {\n  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .custom-control-label::before,\n  .custom-file-label,\n  .custom-select {\n    transition: none;\n  }\n}\n\n.nav {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  padding-left: 0;\n  margin-bottom: 0;\n  list-style: none;\n}\n\n.nav-link {\n  display: block;\n  padding: 0.5rem 1rem;\n}\n\n.nav-link:hover, .nav-link:focus {\n  text-decoration: none;\n}\n\n.nav-link.disabled {\n  color: #6c757d;\n  pointer-events: none;\n  cursor: default;\n}\n\n.nav-tabs {\n  border-bottom: 1px solid #dee2e6;\n}\n\n.nav-tabs .nav-item {\n  margin-bottom: -1px;\n}\n\n.nav-tabs .nav-link {\n  border: 1px solid transparent;\n  border-top-left-radius: 0.25rem;\n  border-top-right-radius: 0.25rem;\n}\n\n.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {\n  border-color: #e9ecef #e9ecef #dee2e6;\n}\n\n.nav-tabs .nav-link.disabled {\n  color: #6c757d;\n  background-color: transparent;\n  border-color: transparent;\n}\n\n.nav-tabs .nav-link.active,\n.nav-tabs .nav-item.show .nav-link {\n  color: #495057;\n  background-color: #fff;\n  border-color: #dee2e6 #dee2e6 #fff;\n}\n\n.nav-tabs .dropdown-menu {\n  margin-top: -1px;\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n}\n\n.nav-pills .nav-link {\n  border-radius: 0.25rem;\n}\n\n.nav-pills .nav-link.active,\n.nav-pills .show > .nav-link {\n  color: #fff;\n  background-color: #007bff;\n}\n\n.nav-fill .nav-item {\n  -ms-flex: 1 1 auto;\n  flex: 1 1 auto;\n  text-align: center;\n}\n\n.nav-justified .nav-item {\n  -ms-flex-preferred-size: 0;\n  flex-basis: 0;\n  -ms-flex-positive: 1;\n  flex-grow: 1;\n  text-align: center;\n}\n\n.tab-content > .tab-pane {\n  display: none;\n}\n\n.tab-content > .active {\n  display: block;\n}\n\n.navbar {\n  position: relative;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  -ms-flex-align: center;\n  align-items: center;\n  -ms-flex-pack: justify;\n  justify-content: space-between;\n  padding: 0.5rem 1rem;\n}\n\n.navbar > .container,\n.navbar > .container-fluid {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  -ms-flex-align: center;\n  align-items: center;\n  -ms-flex-pack: justify;\n  justify-content: space-between;\n}\n\n.navbar-brand {\n  display: inline-block;\n  padding-top: 0.3125rem;\n  padding-bottom: 0.3125rem;\n  margin-right: 1rem;\n  font-size: 1.25rem;\n  line-height: inherit;\n  white-space: nowrap;\n}\n\n.navbar-brand:hover, .navbar-brand:focus {\n  text-decoration: none;\n}\n\n.navbar-nav {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  padding-left: 0;\n  margin-bottom: 0;\n  list-style: none;\n}\n\n.navbar-nav .nav-link {\n  padding-right: 0;\n  padding-left: 0;\n}\n\n.navbar-nav .dropdown-menu {\n  position: static;\n  float: none;\n}\n\n.navbar-text {\n  display: inline-block;\n  padding-top: 0.5rem;\n  padding-bottom: 0.5rem;\n}\n\n.navbar-collapse {\n  -ms-flex-preferred-size: 100%;\n  flex-basis: 100%;\n  -ms-flex-positive: 1;\n  flex-grow: 1;\n  -ms-flex-align: center;\n  align-items: center;\n}\n\n.navbar-toggler {\n  padding: 0.25rem 0.75rem;\n  font-size: 1.25rem;\n  line-height: 1;\n  background-color: transparent;\n  border: 1px solid transparent;\n  border-radius: 0.25rem;\n}\n\n.navbar-toggler:hover, .navbar-toggler:focus {\n  text-decoration: none;\n}\n\n.navbar-toggler:not(:disabled):not(.disabled) {\n  cursor: pointer;\n}\n\n.navbar-toggler-icon {\n  display: inline-block;\n  width: 1.5em;\n  height: 1.5em;\n  vertical-align: middle;\n  content: \"\";\n  background: no-repeat center center;\n  background-size: 100% 100%;\n}\n\n@media (max-width: 575.98px) {\n  .navbar-expand-sm > .container,\n  .navbar-expand-sm > .container-fluid {\n    padding-right: 0;\n    padding-left: 0;\n  }\n}\n\n@media (min-width: 576px) {\n  .navbar-expand-sm {\n    -ms-flex-flow: row nowrap;\n    flex-flow: row nowrap;\n    -ms-flex-pack: start;\n    justify-content: flex-start;\n  }\n  .navbar-expand-sm .navbar-nav {\n    -ms-flex-direction: row;\n    flex-direction: row;\n  }\n  .navbar-expand-sm .navbar-nav .dropdown-menu {\n    position: absolute;\n  }\n  .navbar-expand-sm .navbar-nav .nav-link {\n    padding-right: 0.5rem;\n    padding-left: 0.5rem;\n  }\n  .navbar-expand-sm > .container,\n  .navbar-expand-sm > .container-fluid {\n    -ms-flex-wrap: nowrap;\n    flex-wrap: nowrap;\n  }\n  .navbar-expand-sm .navbar-collapse {\n    display: -ms-flexbox !important;\n    display: flex !important;\n    -ms-flex-preferred-size: auto;\n    flex-basis: auto;\n  }\n  .navbar-expand-sm .navbar-toggler {\n    display: none;\n  }\n}\n\n@media (max-width: 767.98px) {\n  .navbar-expand-md > .container,\n  .navbar-expand-md > .container-fluid {\n    padding-right: 0;\n    padding-left: 0;\n  }\n}\n\n@media (min-width: 768px) {\n  .navbar-expand-md {\n    -ms-flex-flow: row nowrap;\n    flex-flow: row nowrap;\n    -ms-flex-pack: start;\n    justify-content: flex-start;\n  }\n  .navbar-expand-md .navbar-nav {\n    -ms-flex-direction: row;\n    flex-direction: row;\n  }\n  .navbar-expand-md .navbar-nav .dropdown-menu {\n    position: absolute;\n  }\n  .navbar-expand-md .navbar-nav .nav-link {\n    padding-right: 0.5rem;\n    padding-left: 0.5rem;\n  }\n  .navbar-expand-md > .container,\n  .navbar-expand-md > .container-fluid {\n    -ms-flex-wrap: nowrap;\n    flex-wrap: nowrap;\n  }\n  .navbar-expand-md .navbar-collapse {\n    display: -ms-flexbox !important;\n    display: flex !important;\n    -ms-flex-preferred-size: auto;\n    flex-basis: auto;\n  }\n  .navbar-expand-md .navbar-toggler {\n    display: none;\n  }\n}\n\n@media (max-width: 991.98px) {\n  .navbar-expand-lg > .container,\n  .navbar-expand-lg > .container-fluid {\n    padding-right: 0;\n    padding-left: 0;\n  }\n}\n\n@media (min-width: 992px) {\n  .navbar-expand-lg {\n    -ms-flex-flow: row nowrap;\n    flex-flow: row nowrap;\n    -ms-flex-pack: start;\n    justify-content: flex-start;\n  }\n  .navbar-expand-lg .navbar-nav {\n    -ms-flex-direction: row;\n    flex-direction: row;\n  }\n  .navbar-expand-lg .navbar-nav .dropdown-menu {\n    position: absolute;\n  }\n  .navbar-expand-lg .navbar-nav .nav-link {\n    padding-right: 0.5rem;\n    padding-left: 0.5rem;\n  }\n  .navbar-expand-lg > .container,\n  .navbar-expand-lg > .container-fluid {\n    -ms-flex-wrap: nowrap;\n    flex-wrap: nowrap;\n  }\n  .navbar-expand-lg .navbar-collapse {\n    display: -ms-flexbox !important;\n    display: flex !important;\n    -ms-flex-preferred-size: auto;\n    flex-basis: auto;\n  }\n  .navbar-expand-lg .navbar-toggler {\n    display: none;\n  }\n}\n\n@media (max-width: 1199.98px) {\n  .navbar-expand-xl > .container,\n  .navbar-expand-xl > .container-fluid {\n    padding-right: 0;\n    padding-left: 0;\n  }\n}\n\n@media (min-width: 1200px) {\n  .navbar-expand-xl {\n    -ms-flex-flow: row nowrap;\n    flex-flow: row nowrap;\n    -ms-flex-pack: start;\n    justify-content: flex-start;\n  }\n  .navbar-expand-xl .navbar-nav {\n    -ms-flex-direction: row;\n    flex-direction: row;\n  }\n  .navbar-expand-xl .navbar-nav .dropdown-menu {\n    position: absolute;\n  }\n  .navbar-expand-xl .navbar-nav .nav-link {\n    padding-right: 0.5rem;\n    padding-left: 0.5rem;\n  }\n  .navbar-expand-xl > .container,\n  .navbar-expand-xl > .container-fluid {\n    -ms-flex-wrap: nowrap;\n    flex-wrap: nowrap;\n  }\n  .navbar-expand-xl .navbar-collapse {\n    display: -ms-flexbox !important;\n    display: flex !important;\n    -ms-flex-preferred-size: auto;\n    flex-basis: auto;\n  }\n  .navbar-expand-xl .navbar-toggler {\n    display: none;\n  }\n}\n\n.navbar-expand {\n  -ms-flex-flow: row nowrap;\n  flex-flow: row nowrap;\n  -ms-flex-pack: start;\n  justify-content: flex-start;\n}\n\n.navbar-expand > .container,\n.navbar-expand > .container-fluid {\n  padding-right: 0;\n  padding-left: 0;\n}\n\n.navbar-expand .navbar-nav {\n  -ms-flex-direction: row;\n  flex-direction: row;\n}\n\n.navbar-expand .navbar-nav .dropdown-menu {\n  position: absolute;\n}\n\n.navbar-expand .navbar-nav .nav-link {\n  padding-right: 0.5rem;\n  padding-left: 0.5rem;\n}\n\n.navbar-expand > .container,\n.navbar-expand > .container-fluid {\n  -ms-flex-wrap: nowrap;\n  flex-wrap: nowrap;\n}\n\n.navbar-expand .navbar-collapse {\n  display: -ms-flexbox !important;\n  display: flex !important;\n  -ms-flex-preferred-size: auto;\n  flex-basis: auto;\n}\n\n.navbar-expand .navbar-toggler {\n  display: none;\n}\n\n.navbar-light .navbar-brand {\n  color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus {\n  color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-light .navbar-nav .nav-link {\n  color: rgba(0, 0, 0, 0.5);\n}\n\n.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {\n  color: rgba(0, 0, 0, 0.7);\n}\n\n.navbar-light .navbar-nav .nav-link.disabled {\n  color: rgba(0, 0, 0, 0.3);\n}\n\n.navbar-light .navbar-nav .show > .nav-link,\n.navbar-light .navbar-nav .active > .nav-link,\n.navbar-light .navbar-nav .nav-link.show,\n.navbar-light .navbar-nav .nav-link.active {\n  color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-light .navbar-toggler {\n  color: rgba(0, 0, 0, 0.5);\n  border-color: rgba(0, 0, 0, 0.1);\n}\n\n.navbar-light .navbar-toggler-icon {\n  background-image: url(\"data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\");\n}\n\n.navbar-light .navbar-text {\n  color: rgba(0, 0, 0, 0.5);\n}\n\n.navbar-light .navbar-text a {\n  color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus {\n  color: rgba(0, 0, 0, 0.9);\n}\n\n.navbar-dark .navbar-brand {\n  color: #fff;\n}\n\n.navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus {\n  color: #fff;\n}\n\n.navbar-dark .navbar-nav .nav-link {\n  color: rgba(255, 255, 255, 0.5);\n}\n\n.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus {\n  color: rgba(255, 255, 255, 0.75);\n}\n\n.navbar-dark .navbar-nav .nav-link.disabled {\n  color: rgba(255, 255, 255, 0.25);\n}\n\n.navbar-dark .navbar-nav .show > .nav-link,\n.navbar-dark .navbar-nav .active > .nav-link,\n.navbar-dark .navbar-nav .nav-link.show,\n.navbar-dark .navbar-nav .nav-link.active {\n  color: #fff;\n}\n\n.navbar-dark .navbar-toggler {\n  color: rgba(255, 255, 255, 0.5);\n  border-color: rgba(255, 255, 255, 0.1);\n}\n\n.navbar-dark .navbar-toggler-icon {\n  background-image: url(\"data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\");\n}\n\n.navbar-dark .navbar-text {\n  color: rgba(255, 255, 255, 0.5);\n}\n\n.navbar-dark .navbar-text a {\n  color: #fff;\n}\n\n.navbar-dark .navbar-text a:hover, .navbar-dark .navbar-text a:focus {\n  color: #fff;\n}\n\n.card {\n  position: relative;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  min-width: 0;\n  word-wrap: break-word;\n  background-color: #fff;\n  background-clip: border-box;\n  border: 1px solid rgba(0, 0, 0, 0.125);\n  border-radius: 0.25rem;\n}\n\n.card > hr {\n  margin-right: 0;\n  margin-left: 0;\n}\n\n.card > .list-group:first-child .list-group-item:first-child {\n  border-top-left-radius: 0.25rem;\n  border-top-right-radius: 0.25rem;\n}\n\n.card > .list-group:last-child .list-group-item:last-child {\n  border-bottom-right-radius: 0.25rem;\n  border-bottom-left-radius: 0.25rem;\n}\n\n.card-body {\n  -ms-flex: 1 1 auto;\n  flex: 1 1 auto;\n  padding: 1.25rem;\n}\n\n.card-title {\n  margin-bottom: 0.75rem;\n}\n\n.card-subtitle {\n  margin-top: -0.375rem;\n  margin-bottom: 0;\n}\n\n.card-text:last-child {\n  margin-bottom: 0;\n}\n\n.card-link:hover {\n  text-decoration: none;\n}\n\n.card-link + .card-link {\n  margin-left: 1.25rem;\n}\n\n.card-header {\n  padding: 0.75rem 1.25rem;\n  margin-bottom: 0;\n  color: inherit;\n  background-color: rgba(0, 0, 0, 0.03);\n  border-bottom: 1px solid rgba(0, 0, 0, 0.125);\n}\n\n.card-header:first-child {\n  border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;\n}\n\n.card-header + .list-group .list-group-item:first-child {\n  border-top: 0;\n}\n\n.card-footer {\n  padding: 0.75rem 1.25rem;\n  background-color: rgba(0, 0, 0, 0.03);\n  border-top: 1px solid rgba(0, 0, 0, 0.125);\n}\n\n.card-footer:last-child {\n  border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);\n}\n\n.card-header-tabs {\n  margin-right: -0.625rem;\n  margin-bottom: -0.75rem;\n  margin-left: -0.625rem;\n  border-bottom: 0;\n}\n\n.card-header-pills {\n  margin-right: -0.625rem;\n  margin-left: -0.625rem;\n}\n\n.card-img-overlay {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  padding: 1.25rem;\n}\n\n.card-img {\n  width: 100%;\n  border-radius: calc(0.25rem - 1px);\n}\n\n.card-img-top {\n  width: 100%;\n  border-top-left-radius: calc(0.25rem - 1px);\n  border-top-right-radius: calc(0.25rem - 1px);\n}\n\n.card-img-bottom {\n  width: 100%;\n  border-bottom-right-radius: calc(0.25rem - 1px);\n  border-bottom-left-radius: calc(0.25rem - 1px);\n}\n\n.card-deck {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-direction: column;\n  flex-direction: column;\n}\n\n.card-deck .card {\n  margin-bottom: 15px;\n}\n\n@media (min-width: 576px) {\n  .card-deck {\n    -ms-flex-flow: row wrap;\n    flex-flow: row wrap;\n    margin-right: -15px;\n    margin-left: -15px;\n  }\n  .card-deck .card {\n    display: -ms-flexbox;\n    display: flex;\n    -ms-flex: 1 0 0%;\n    flex: 1 0 0%;\n    -ms-flex-direction: column;\n    flex-direction: column;\n    margin-right: 15px;\n    margin-bottom: 0;\n    margin-left: 15px;\n  }\n}\n\n.card-group {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-direction: column;\n  flex-direction: column;\n}\n\n.card-group > .card {\n  margin-bottom: 15px;\n}\n\n@media (min-width: 576px) {\n  .card-group {\n    -ms-flex-flow: row wrap;\n    flex-flow: row wrap;\n  }\n  .card-group > .card {\n    -ms-flex: 1 0 0%;\n    flex: 1 0 0%;\n    margin-bottom: 0;\n  }\n  .card-group > .card + .card {\n    margin-left: 0;\n    border-left: 0;\n  }\n  .card-group > .card:first-child {\n    border-top-right-radius: 0;\n    border-bottom-right-radius: 0;\n  }\n  .card-group > .card:first-child .card-img-top,\n  .card-group > .card:first-child .card-header {\n    border-top-right-radius: 0;\n  }\n  .card-group > .card:first-child .card-img-bottom,\n  .card-group > .card:first-child .card-footer {\n    border-bottom-right-radius: 0;\n  }\n  .card-group > .card:last-child {\n    border-top-left-radius: 0;\n    border-bottom-left-radius: 0;\n  }\n  .card-group > .card:last-child .card-img-top,\n  .card-group > .card:last-child .card-header {\n    border-top-left-radius: 0;\n  }\n  .card-group > .card:last-child .card-img-bottom,\n  .card-group > .card:last-child .card-footer {\n    border-bottom-left-radius: 0;\n  }\n  .card-group > .card:only-child {\n    border-radius: 0.25rem;\n  }\n  .card-group > .card:only-child .card-img-top,\n  .card-group > .card:only-child .card-header {\n    border-top-left-radius: 0.25rem;\n    border-top-right-radius: 0.25rem;\n  }\n  .card-group > .card:only-child .card-img-bottom,\n  .card-group > .card:only-child .card-footer {\n    border-bottom-right-radius: 0.25rem;\n    border-bottom-left-radius: 0.25rem;\n  }\n  .card-group > .card:not(:first-child):not(:last-child):not(:only-child) {\n    border-radius: 0;\n  }\n  .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-top,\n  .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom,\n  .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-header,\n  .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-footer {\n    border-radius: 0;\n  }\n}\n\n.card-columns .card {\n  margin-bottom: 0.75rem;\n}\n\n@media (min-width: 576px) {\n  .card-columns {\n    -webkit-column-count: 3;\n    -moz-column-count: 3;\n    column-count: 3;\n    -webkit-column-gap: 1.25rem;\n    -moz-column-gap: 1.25rem;\n    column-gap: 1.25rem;\n    orphans: 1;\n    widows: 1;\n  }\n  .card-columns .card {\n    display: inline-block;\n    width: 100%;\n  }\n}\n\n.accordion .card {\n  overflow: hidden;\n}\n\n.accordion .card:not(:first-of-type) .card-header:first-child {\n  border-radius: 0;\n}\n\n.accordion .card:not(:first-of-type):not(:last-of-type) {\n  border-bottom: 0;\n  border-radius: 0;\n}\n\n.accordion .card:first-of-type {\n  border-bottom: 0;\n  border-bottom-right-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.accordion .card:last-of-type {\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n}\n\n.accordion .card .card-header {\n  margin-bottom: -1px;\n}\n\n.breadcrumb {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  padding: 0.75rem 1rem;\n  margin-bottom: 1rem;\n  list-style: none;\n  background-color: #e9ecef;\n  border-radius: 0.25rem;\n}\n\n.breadcrumb-item + .breadcrumb-item {\n  padding-left: 0.5rem;\n}\n\n.breadcrumb-item + .breadcrumb-item::before {\n  display: inline-block;\n  padding-right: 0.5rem;\n  color: #6c757d;\n  content: \"/\";\n}\n\n.breadcrumb-item + .breadcrumb-item:hover::before {\n  text-decoration: underline;\n}\n\n.breadcrumb-item + .breadcrumb-item:hover::before {\n  text-decoration: none;\n}\n\n.breadcrumb-item.active {\n  color: #6c757d;\n}\n\n.pagination {\n  display: -ms-flexbox;\n  display: flex;\n  padding-left: 0;\n  list-style: none;\n  border-radius: 0.25rem;\n}\n\n.page-link {\n  position: relative;\n  display: block;\n  padding: 0.5rem 0.75rem;\n  margin-left: -1px;\n  line-height: 1.25;\n  color: #007bff;\n  background-color: #fff;\n  border: 1px solid #dee2e6;\n}\n\n.page-link:hover {\n  z-index: 2;\n  color: #0056b3;\n  text-decoration: none;\n  background-color: #e9ecef;\n  border-color: #dee2e6;\n}\n\n.page-link:focus {\n  z-index: 2;\n  outline: 0;\n  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.page-link:not(:disabled):not(.disabled) {\n  cursor: pointer;\n}\n\n.page-item:first-child .page-link {\n  margin-left: 0;\n  border-top-left-radius: 0.25rem;\n  border-bottom-left-radius: 0.25rem;\n}\n\n.page-item:last-child .page-link {\n  border-top-right-radius: 0.25rem;\n  border-bottom-right-radius: 0.25rem;\n}\n\n.page-item.active .page-link {\n  z-index: 1;\n  color: #fff;\n  background-color: #007bff;\n  border-color: #007bff;\n}\n\n.page-item.disabled .page-link {\n  color: #6c757d;\n  pointer-events: none;\n  cursor: auto;\n  background-color: #fff;\n  border-color: #dee2e6;\n}\n\n.pagination-lg .page-link {\n  padding: 0.75rem 1.5rem;\n  font-size: 1.25rem;\n  line-height: 1.5;\n}\n\n.pagination-lg .page-item:first-child .page-link {\n  border-top-left-radius: 0.3rem;\n  border-bottom-left-radius: 0.3rem;\n}\n\n.pagination-lg .page-item:last-child .page-link {\n  border-top-right-radius: 0.3rem;\n  border-bottom-right-radius: 0.3rem;\n}\n\n.pagination-sm .page-link {\n  padding: 0.25rem 0.5rem;\n  font-size: 0.875rem;\n  line-height: 1.5;\n}\n\n.pagination-sm .page-item:first-child .page-link {\n  border-top-left-radius: 0.2rem;\n  border-bottom-left-radius: 0.2rem;\n}\n\n.pagination-sm .page-item:last-child .page-link {\n  border-top-right-radius: 0.2rem;\n  border-bottom-right-radius: 0.2rem;\n}\n\n.badge {\n  display: inline-block;\n  padding: 0.25em 0.4em;\n  font-size: 75%;\n  font-weight: 700;\n  line-height: 1;\n  text-align: center;\n  white-space: nowrap;\n  vertical-align: baseline;\n  border-radius: 0.25rem;\n}\n\na.badge:hover, a.badge:focus {\n  text-decoration: none;\n}\n\n.badge:empty {\n  display: none;\n}\n\n.btn .badge {\n  position: relative;\n  top: -1px;\n}\n\n.badge-pill {\n  padding-right: 0.6em;\n  padding-left: 0.6em;\n  border-radius: 10rem;\n}\n\n.badge-primary {\n  color: #fff;\n  background-color: #007bff;\n}\n\na.badge-primary:hover, a.badge-primary:focus {\n  color: #fff;\n  background-color: #0062cc;\n}\n\n.badge-secondary {\n  color: #fff;\n  background-color: #6c757d;\n}\n\na.badge-secondary:hover, a.badge-secondary:focus {\n  color: #fff;\n  background-color: #545b62;\n}\n\n.badge-success {\n  color: #fff;\n  background-color: #28a745;\n}\n\na.badge-success:hover, a.badge-success:focus {\n  color: #fff;\n  background-color: #1e7e34;\n}\n\n.badge-info {\n  color: #fff;\n  background-color: #17a2b8;\n}\n\na.badge-info:hover, a.badge-info:focus {\n  color: #fff;\n  background-color: #117a8b;\n}\n\n.badge-warning {\n  color: #212529;\n  background-color: #ffc107;\n}\n\na.badge-warning:hover, a.badge-warning:focus {\n  color: #212529;\n  background-color: #d39e00;\n}\n\n.badge-danger {\n  color: #fff;\n  background-color: #dc3545;\n}\n\na.badge-danger:hover, a.badge-danger:focus {\n  color: #fff;\n  background-color: #bd2130;\n}\n\n.badge-light {\n  color: #212529;\n  background-color: #f8f9fa;\n}\n\na.badge-light:hover, a.badge-light:focus {\n  color: #212529;\n  background-color: #dae0e5;\n}\n\n.badge-dark {\n  color: #fff;\n  background-color: #343a40;\n}\n\na.badge-dark:hover, a.badge-dark:focus {\n  color: #fff;\n  background-color: #1d2124;\n}\n\n.jumbotron {\n  padding: 2rem 1rem;\n  margin-bottom: 2rem;\n  background-color: #e9ecef;\n  border-radius: 0.3rem;\n}\n\n@media (min-width: 576px) {\n  .jumbotron {\n    padding: 4rem 2rem;\n  }\n}\n\n.jumbotron-fluid {\n  padding-right: 0;\n  padding-left: 0;\n  border-radius: 0;\n}\n\n.alert {\n  position: relative;\n  padding: 0.75rem 1.25rem;\n  margin-bottom: 1rem;\n  border: 1px solid transparent;\n  border-radius: 0.25rem;\n}\n\n.alert-heading {\n  color: inherit;\n}\n\n.alert-link {\n  font-weight: 700;\n}\n\n.alert-dismissible {\n  padding-right: 4rem;\n}\n\n.alert-dismissible .close {\n  position: absolute;\n  top: 0;\n  right: 0;\n  padding: 0.75rem 1.25rem;\n  color: inherit;\n}\n\n.alert-primary {\n  color: #004085;\n  background-color: #cce5ff;\n  border-color: #b8daff;\n}\n\n.alert-primary hr {\n  border-top-color: #9fcdff;\n}\n\n.alert-primary .alert-link {\n  color: #002752;\n}\n\n.alert-secondary {\n  color: #383d41;\n  background-color: #e2e3e5;\n  border-color: #d6d8db;\n}\n\n.alert-secondary hr {\n  border-top-color: #c8cbcf;\n}\n\n.alert-secondary .alert-link {\n  color: #202326;\n}\n\n.alert-success {\n  color: #155724;\n  background-color: #d4edda;\n  border-color: #c3e6cb;\n}\n\n.alert-success hr {\n  border-top-color: #b1dfbb;\n}\n\n.alert-success .alert-link {\n  color: #0b2e13;\n}\n\n.alert-info {\n  color: #0c5460;\n  background-color: #d1ecf1;\n  border-color: #bee5eb;\n}\n\n.alert-info hr {\n  border-top-color: #abdde5;\n}\n\n.alert-info .alert-link {\n  color: #062c33;\n}\n\n.alert-warning {\n  color: #856404;\n  background-color: #fff3cd;\n  border-color: #ffeeba;\n}\n\n.alert-warning hr {\n  border-top-color: #ffe8a1;\n}\n\n.alert-warning .alert-link {\n  color: #533f03;\n}\n\n.alert-danger {\n  color: #721c24;\n  background-color: #f8d7da;\n  border-color: #f5c6cb;\n}\n\n.alert-danger hr {\n  border-top-color: #f1b0b7;\n}\n\n.alert-danger .alert-link {\n  color: #491217;\n}\n\n.alert-light {\n  color: #818182;\n  background-color: #fefefe;\n  border-color: #fdfdfe;\n}\n\n.alert-light hr {\n  border-top-color: #ececf6;\n}\n\n.alert-light .alert-link {\n  color: #686868;\n}\n\n.alert-dark {\n  color: #1b1e21;\n  background-color: #d6d8d9;\n  border-color: #c6c8ca;\n}\n\n.alert-dark hr {\n  border-top-color: #b9bbbe;\n}\n\n.alert-dark .alert-link {\n  color: #040505;\n}\n\n@-webkit-keyframes progress-bar-stripes {\n  from {\n    background-position: 1rem 0;\n  }\n  to {\n    background-position: 0 0;\n  }\n}\n\n@keyframes progress-bar-stripes {\n  from {\n    background-position: 1rem 0;\n  }\n  to {\n    background-position: 0 0;\n  }\n}\n\n.progress {\n  display: -ms-flexbox;\n  display: flex;\n  height: 1rem;\n  overflow: hidden;\n  font-size: 0.75rem;\n  background-color: #e9ecef;\n  border-radius: 0.25rem;\n}\n\n.progress-bar {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  -ms-flex-pack: center;\n  justify-content: center;\n  color: #fff;\n  text-align: center;\n  white-space: nowrap;\n  background-color: #007bff;\n  transition: width 0.6s ease;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .progress-bar {\n    transition: none;\n  }\n}\n\n.progress-bar-striped {\n  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n  background-size: 1rem 1rem;\n}\n\n.progress-bar-animated {\n  -webkit-animation: progress-bar-stripes 1s linear infinite;\n  animation: progress-bar-stripes 1s linear infinite;\n}\n\n.media {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-align: start;\n  align-items: flex-start;\n}\n\n.media-body {\n  -ms-flex: 1;\n  flex: 1;\n}\n\n.list-group {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  padding-left: 0;\n  margin-bottom: 0;\n}\n\n.list-group-item-action {\n  width: 100%;\n  color: #495057;\n  text-align: inherit;\n}\n\n.list-group-item-action:hover, .list-group-item-action:focus {\n  color: #495057;\n  text-decoration: none;\n  background-color: #f8f9fa;\n}\n\n.list-group-item-action:active {\n  color: #212529;\n  background-color: #e9ecef;\n}\n\n.list-group-item {\n  position: relative;\n  display: block;\n  padding: 0.75rem 1.25rem;\n  margin-bottom: -1px;\n  background-color: #fff;\n  border: 1px solid rgba(0, 0, 0, 0.125);\n}\n\n.list-group-item:first-child {\n  border-top-left-radius: 0.25rem;\n  border-top-right-radius: 0.25rem;\n}\n\n.list-group-item:last-child {\n  margin-bottom: 0;\n  border-bottom-right-radius: 0.25rem;\n  border-bottom-left-radius: 0.25rem;\n}\n\n.list-group-item:hover, .list-group-item:focus {\n  z-index: 1;\n  text-decoration: none;\n}\n\n.list-group-item.disabled, .list-group-item:disabled {\n  color: #6c757d;\n  pointer-events: none;\n  background-color: #fff;\n}\n\n.list-group-item.active {\n  z-index: 2;\n  color: #fff;\n  background-color: #007bff;\n  border-color: #007bff;\n}\n\n.list-group-flush .list-group-item {\n  border-right: 0;\n  border-left: 0;\n  border-radius: 0;\n}\n\n.list-group-flush .list-group-item:last-child {\n  margin-bottom: -1px;\n}\n\n.list-group-flush:first-child .list-group-item:first-child {\n  border-top: 0;\n}\n\n.list-group-flush:last-child .list-group-item:last-child {\n  margin-bottom: 0;\n  border-bottom: 0;\n}\n\n.list-group-item-primary {\n  color: #004085;\n  background-color: #b8daff;\n}\n\n.list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus {\n  color: #004085;\n  background-color: #9fcdff;\n}\n\n.list-group-item-primary.list-group-item-action.active {\n  color: #fff;\n  background-color: #004085;\n  border-color: #004085;\n}\n\n.list-group-item-secondary {\n  color: #383d41;\n  background-color: #d6d8db;\n}\n\n.list-group-item-secondary.list-group-item-action:hover, .list-group-item-secondary.list-group-item-action:focus {\n  color: #383d41;\n  background-color: #c8cbcf;\n}\n\n.list-group-item-secondary.list-group-item-action.active {\n  color: #fff;\n  background-color: #383d41;\n  border-color: #383d41;\n}\n\n.list-group-item-success {\n  color: #155724;\n  background-color: #c3e6cb;\n}\n\n.list-group-item-success.list-group-item-action:hover, .list-group-item-success.list-group-item-action:focus {\n  color: #155724;\n  background-color: #b1dfbb;\n}\n\n.list-group-item-success.list-group-item-action.active {\n  color: #fff;\n  background-color: #155724;\n  border-color: #155724;\n}\n\n.list-group-item-info {\n  color: #0c5460;\n  background-color: #bee5eb;\n}\n\n.list-group-item-info.list-group-item-action:hover, .list-group-item-info.list-group-item-action:focus {\n  color: #0c5460;\n  background-color: #abdde5;\n}\n\n.list-group-item-info.list-group-item-action.active {\n  color: #fff;\n  background-color: #0c5460;\n  border-color: #0c5460;\n}\n\n.list-group-item-warning {\n  color: #856404;\n  background-color: #ffeeba;\n}\n\n.list-group-item-warning.list-group-item-action:hover, .list-group-item-warning.list-group-item-action:focus {\n  color: #856404;\n  background-color: #ffe8a1;\n}\n\n.list-group-item-warning.list-group-item-action.active {\n  color: #fff;\n  background-color: #856404;\n  border-color: #856404;\n}\n\n.list-group-item-danger {\n  color: #721c24;\n  background-color: #f5c6cb;\n}\n\n.list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.list-group-item-action:focus {\n  color: #721c24;\n  background-color: #f1b0b7;\n}\n\n.list-group-item-danger.list-group-item-action.active {\n  color: #fff;\n  background-color: #721c24;\n  border-color: #721c24;\n}\n\n.list-group-item-light {\n  color: #818182;\n  background-color: #fdfdfe;\n}\n\n.list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus {\n  color: #818182;\n  background-color: #ececf6;\n}\n\n.list-group-item-light.list-group-item-action.active {\n  color: #fff;\n  background-color: #818182;\n  border-color: #818182;\n}\n\n.list-group-item-dark {\n  color: #1b1e21;\n  background-color: #c6c8ca;\n}\n\n.list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.list-group-item-action:focus {\n  color: #1b1e21;\n  background-color: #b9bbbe;\n}\n\n.list-group-item-dark.list-group-item-action.active {\n  color: #fff;\n  background-color: #1b1e21;\n  border-color: #1b1e21;\n}\n\n.close {\n  float: right;\n  font-size: 1.5rem;\n  font-weight: 700;\n  line-height: 1;\n  color: #000;\n  text-shadow: 0 1px 0 #fff;\n  opacity: .5;\n}\n\n.close:hover {\n  color: #000;\n  text-decoration: none;\n}\n\n.close:not(:disabled):not(.disabled) {\n  cursor: pointer;\n}\n\n.close:not(:disabled):not(.disabled):hover, .close:not(:disabled):not(.disabled):focus {\n  opacity: .75;\n}\n\nbutton.close {\n  padding: 0;\n  background-color: transparent;\n  border: 0;\n  -webkit-appearance: none;\n  -moz-appearance: none;\n  appearance: none;\n}\n\na.close.disabled {\n  pointer-events: none;\n}\n\n.toast {\n  max-width: 350px;\n  overflow: hidden;\n  font-size: 0.875rem;\n  background-color: rgba(255, 255, 255, 0.85);\n  background-clip: padding-box;\n  border: 1px solid rgba(0, 0, 0, 0.1);\n  border-radius: 0.25rem;\n  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);\n  -webkit-backdrop-filter: blur(10px);\n  backdrop-filter: blur(10px);\n  opacity: 0;\n}\n\n.toast:not(:last-child) {\n  margin-bottom: 0.75rem;\n}\n\n.toast.showing {\n  opacity: 1;\n}\n\n.toast.show {\n  display: block;\n  opacity: 1;\n}\n\n.toast.hide {\n  display: none;\n}\n\n.toast-header {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-align: center;\n  align-items: center;\n  padding: 0.25rem 0.75rem;\n  color: #6c757d;\n  background-color: rgba(255, 255, 255, 0.85);\n  background-clip: padding-box;\n  border-bottom: 1px solid rgba(0, 0, 0, 0.05);\n}\n\n.toast-body {\n  padding: 0.75rem;\n}\n\n.modal-open {\n  overflow: hidden;\n}\n\n.modal-open .modal {\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n\n.modal {\n  position: fixed;\n  top: 0;\n  left: 0;\n  z-index: 1050;\n  display: none;\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n  outline: 0;\n}\n\n.modal-dialog {\n  position: relative;\n  width: auto;\n  margin: 0.5rem;\n  pointer-events: none;\n}\n\n.modal.fade .modal-dialog {\n  transition: -webkit-transform 0.3s ease-out;\n  transition: transform 0.3s ease-out;\n  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;\n  -webkit-transform: translate(0, -50px);\n  transform: translate(0, -50px);\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .modal.fade .modal-dialog {\n    transition: none;\n  }\n}\n\n.modal.show .modal-dialog {\n  -webkit-transform: none;\n  transform: none;\n}\n\n.modal-dialog-centered {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-align: center;\n  align-items: center;\n  min-height: calc(100% - (0.5rem * 2));\n}\n\n.modal-dialog-centered::before {\n  display: block;\n  height: calc(100vh - (0.5rem * 2));\n  content: \"\";\n}\n\n.modal-content {\n  position: relative;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  width: 100%;\n  pointer-events: auto;\n  background-color: #fff;\n  background-clip: padding-box;\n  border: 1px solid rgba(0, 0, 0, 0.2);\n  border-radius: 0.3rem;\n  outline: 0;\n}\n\n.modal-backdrop {\n  position: fixed;\n  top: 0;\n  left: 0;\n  z-index: 1040;\n  width: 100vw;\n  height: 100vh;\n  background-color: #000;\n}\n\n.modal-backdrop.fade {\n  opacity: 0;\n}\n\n.modal-backdrop.show {\n  opacity: 0.5;\n}\n\n.modal-header {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-align: start;\n  align-items: flex-start;\n  -ms-flex-pack: justify;\n  justify-content: space-between;\n  padding: 1rem 1rem;\n  border-bottom: 1px solid #e9ecef;\n  border-top-left-radius: 0.3rem;\n  border-top-right-radius: 0.3rem;\n}\n\n.modal-header .close {\n  padding: 1rem 1rem;\n  margin: -1rem -1rem -1rem auto;\n}\n\n.modal-title {\n  margin-bottom: 0;\n  line-height: 1.5;\n}\n\n.modal-body {\n  position: relative;\n  -ms-flex: 1 1 auto;\n  flex: 1 1 auto;\n  padding: 1rem;\n}\n\n.modal-footer {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-align: center;\n  align-items: center;\n  -ms-flex-pack: end;\n  justify-content: flex-end;\n  padding: 1rem;\n  border-top: 1px solid #e9ecef;\n  border-bottom-right-radius: 0.3rem;\n  border-bottom-left-radius: 0.3rem;\n}\n\n.modal-footer > :not(:first-child) {\n  margin-left: .25rem;\n}\n\n.modal-footer > :not(:last-child) {\n  margin-right: .25rem;\n}\n\n.modal-scrollbar-measure {\n  position: absolute;\n  top: -9999px;\n  width: 50px;\n  height: 50px;\n  overflow: scroll;\n}\n\n@media (min-width: 576px) {\n  .modal-dialog {\n    max-width: 500px;\n    margin: 1.75rem auto;\n  }\n  .modal-dialog-centered {\n    min-height: calc(100% - (1.75rem * 2));\n  }\n  .modal-dialog-centered::before {\n    height: calc(100vh - (1.75rem * 2));\n  }\n  .modal-sm {\n    max-width: 300px;\n  }\n}\n\n@media (min-width: 992px) {\n  .modal-lg,\n  .modal-xl {\n    max-width: 800px;\n  }\n}\n\n@media (min-width: 1200px) {\n  .modal-xl {\n    max-width: 1140px;\n  }\n}\n\n.tooltip {\n  position: absolute;\n  z-index: 1070;\n  display: block;\n  margin: 0;\n  font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n  font-style: normal;\n  font-weight: 400;\n  line-height: 1.5;\n  text-align: left;\n  text-align: start;\n  text-decoration: none;\n  text-shadow: none;\n  text-transform: none;\n  letter-spacing: normal;\n  word-break: normal;\n  word-spacing: normal;\n  white-space: normal;\n  line-break: auto;\n  font-size: 0.875rem;\n  word-wrap: break-word;\n  opacity: 0;\n}\n\n.tooltip.show {\n  opacity: 0.9;\n}\n\n.tooltip .arrow {\n  position: absolute;\n  display: block;\n  width: 0.8rem;\n  height: 0.4rem;\n}\n\n.tooltip .arrow::before {\n  position: absolute;\n  content: \"\";\n  border-color: transparent;\n  border-style: solid;\n}\n\n.bs-tooltip-top, .bs-tooltip-auto[x-placement^=\"top\"] {\n  padding: 0.4rem 0;\n}\n\n.bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^=\"top\"] .arrow {\n  bottom: 0;\n}\n\n.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^=\"top\"] .arrow::before {\n  top: 0;\n  border-width: 0.4rem 0.4rem 0;\n  border-top-color: #000;\n}\n\n.bs-tooltip-right, .bs-tooltip-auto[x-placement^=\"right\"] {\n  padding: 0 0.4rem;\n}\n\n.bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^=\"right\"] .arrow {\n  left: 0;\n  width: 0.4rem;\n  height: 0.8rem;\n}\n\n.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^=\"right\"] .arrow::before {\n  right: 0;\n  border-width: 0.4rem 0.4rem 0.4rem 0;\n  border-right-color: #000;\n}\n\n.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^=\"bottom\"] {\n  padding: 0.4rem 0;\n}\n\n.bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^=\"bottom\"] .arrow {\n  top: 0;\n}\n\n.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^=\"bottom\"] .arrow::before {\n  bottom: 0;\n  border-width: 0 0.4rem 0.4rem;\n  border-bottom-color: #000;\n}\n\n.bs-tooltip-left, .bs-tooltip-auto[x-placement^=\"left\"] {\n  padding: 0 0.4rem;\n}\n\n.bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^=\"left\"] .arrow {\n  right: 0;\n  width: 0.4rem;\n  height: 0.8rem;\n}\n\n.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^=\"left\"] .arrow::before {\n  left: 0;\n  border-width: 0.4rem 0 0.4rem 0.4rem;\n  border-left-color: #000;\n}\n\n.tooltip-inner {\n  max-width: 200px;\n  padding: 0.25rem 0.5rem;\n  color: #fff;\n  text-align: center;\n  background-color: #000;\n  border-radius: 0.25rem;\n}\n\n.popover {\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: 1060;\n  display: block;\n  max-width: 276px;\n  font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n  font-style: normal;\n  font-weight: 400;\n  line-height: 1.5;\n  text-align: left;\n  text-align: start;\n  text-decoration: none;\n  text-shadow: none;\n  text-transform: none;\n  letter-spacing: normal;\n  word-break: normal;\n  word-spacing: normal;\n  white-space: normal;\n  line-break: auto;\n  font-size: 0.875rem;\n  word-wrap: break-word;\n  background-color: #fff;\n  background-clip: padding-box;\n  border: 1px solid rgba(0, 0, 0, 0.2);\n  border-radius: 0.3rem;\n}\n\n.popover .arrow {\n  position: absolute;\n  display: block;\n  width: 1rem;\n  height: 0.5rem;\n  margin: 0 0.3rem;\n}\n\n.popover .arrow::before, .popover .arrow::after {\n  position: absolute;\n  display: block;\n  content: \"\";\n  border-color: transparent;\n  border-style: solid;\n}\n\n.bs-popover-top, .bs-popover-auto[x-placement^=\"top\"] {\n  margin-bottom: 0.5rem;\n}\n\n.bs-popover-top .arrow, .bs-popover-auto[x-placement^=\"top\"] .arrow {\n  bottom: calc((0.5rem + 1px) * -1);\n}\n\n.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^=\"top\"] .arrow::before,\n.bs-popover-top .arrow::after,\n.bs-popover-auto[x-placement^=\"top\"] .arrow::after {\n  border-width: 0.5rem 0.5rem 0;\n}\n\n.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^=\"top\"] .arrow::before {\n  bottom: 0;\n  border-top-color: rgba(0, 0, 0, 0.25);\n}\n\n\n.bs-popover-top .arrow::after,\n.bs-popover-auto[x-placement^=\"top\"] .arrow::after {\n  bottom: 1px;\n  border-top-color: #fff;\n}\n\n.bs-popover-right, .bs-popover-auto[x-placement^=\"right\"] {\n  margin-left: 0.5rem;\n}\n\n.bs-popover-right .arrow, .bs-popover-auto[x-placement^=\"right\"] .arrow {\n  left: calc((0.5rem + 1px) * -1);\n  width: 0.5rem;\n  height: 1rem;\n  margin: 0.3rem 0;\n}\n\n.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^=\"right\"] .arrow::before,\n.bs-popover-right .arrow::after,\n.bs-popover-auto[x-placement^=\"right\"] .arrow::after {\n  border-width: 0.5rem 0.5rem 0.5rem 0;\n}\n\n.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^=\"right\"] .arrow::before {\n  left: 0;\n  border-right-color: rgba(0, 0, 0, 0.25);\n}\n\n\n.bs-popover-right .arrow::after,\n.bs-popover-auto[x-placement^=\"right\"] .arrow::after {\n  left: 1px;\n  border-right-color: #fff;\n}\n\n.bs-popover-bottom, .bs-popover-auto[x-placement^=\"bottom\"] {\n  margin-top: 0.5rem;\n}\n\n.bs-popover-bottom .arrow, .bs-popover-auto[x-placement^=\"bottom\"] .arrow {\n  top: calc((0.5rem + 1px) * -1);\n}\n\n.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^=\"bottom\"] .arrow::before,\n.bs-popover-bottom .arrow::after,\n.bs-popover-auto[x-placement^=\"bottom\"] .arrow::after {\n  border-width: 0 0.5rem 0.5rem 0.5rem;\n}\n\n.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^=\"bottom\"] .arrow::before {\n  top: 0;\n  border-bottom-color: rgba(0, 0, 0, 0.25);\n}\n\n\n.bs-popover-bottom .arrow::after,\n.bs-popover-auto[x-placement^=\"bottom\"] .arrow::after {\n  top: 1px;\n  border-bottom-color: #fff;\n}\n\n.bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^=\"bottom\"] .popover-header::before {\n  position: absolute;\n  top: 0;\n  left: 50%;\n  display: block;\n  width: 1rem;\n  margin-left: -0.5rem;\n  content: \"\";\n  border-bottom: 1px solid #f7f7f7;\n}\n\n.bs-popover-left, .bs-popover-auto[x-placement^=\"left\"] {\n  margin-right: 0.5rem;\n}\n\n.bs-popover-left .arrow, .bs-popover-auto[x-placement^=\"left\"] .arrow {\n  right: calc((0.5rem + 1px) * -1);\n  width: 0.5rem;\n  height: 1rem;\n  margin: 0.3rem 0;\n}\n\n.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^=\"left\"] .arrow::before,\n.bs-popover-left .arrow::after,\n.bs-popover-auto[x-placement^=\"left\"] .arrow::after {\n  border-width: 0.5rem 0 0.5rem 0.5rem;\n}\n\n.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^=\"left\"] .arrow::before {\n  right: 0;\n  border-left-color: rgba(0, 0, 0, 0.25);\n}\n\n\n.bs-popover-left .arrow::after,\n.bs-popover-auto[x-placement^=\"left\"] .arrow::after {\n  right: 1px;\n  border-left-color: #fff;\n}\n\n.popover-header {\n  padding: 0.5rem 0.75rem;\n  margin-bottom: 0;\n  font-size: 1rem;\n  color: inherit;\n  background-color: #f7f7f7;\n  border-bottom: 1px solid #ebebeb;\n  border-top-left-radius: calc(0.3rem - 1px);\n  border-top-right-radius: calc(0.3rem - 1px);\n}\n\n.popover-header:empty {\n  display: none;\n}\n\n.popover-body {\n  padding: 0.5rem 0.75rem;\n  color: #212529;\n}\n\n.carousel {\n  position: relative;\n}\n\n.carousel.pointer-event {\n  -ms-touch-action: pan-y;\n  touch-action: pan-y;\n}\n\n.carousel-inner {\n  position: relative;\n  width: 100%;\n  overflow: hidden;\n}\n\n.carousel-inner::after {\n  display: block;\n  clear: both;\n  content: \"\";\n}\n\n.carousel-item {\n  position: relative;\n  display: none;\n  float: left;\n  width: 100%;\n  margin-right: -100%;\n  -webkit-backface-visibility: hidden;\n  backface-visibility: hidden;\n  transition: -webkit-transform 0.6s ease-in-out;\n  transition: transform 0.6s ease-in-out;\n  transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .carousel-item {\n    transition: none;\n  }\n}\n\n.carousel-item.active,\n.carousel-item-next,\n.carousel-item-prev {\n  display: block;\n}\n\n.carousel-item-next:not(.carousel-item-left),\n.active.carousel-item-right {\n  -webkit-transform: translateX(100%);\n  transform: translateX(100%);\n}\n\n.carousel-item-prev:not(.carousel-item-right),\n.active.carousel-item-left {\n  -webkit-transform: translateX(-100%);\n  transform: translateX(-100%);\n}\n\n.carousel-fade .carousel-item {\n  opacity: 0;\n  transition-property: opacity;\n  -webkit-transform: none;\n  transform: none;\n}\n\n.carousel-fade .carousel-item.active,\n.carousel-fade .carousel-item-next.carousel-item-left,\n.carousel-fade .carousel-item-prev.carousel-item-right {\n  z-index: 1;\n  opacity: 1;\n}\n\n.carousel-fade .active.carousel-item-left,\n.carousel-fade .active.carousel-item-right {\n  z-index: 0;\n  opacity: 0;\n  transition: 0s 0.6s opacity;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .carousel-fade .active.carousel-item-left,\n  .carousel-fade .active.carousel-item-right {\n    transition: none;\n  }\n}\n\n.carousel-control-prev,\n.carousel-control-next {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  z-index: 1;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-align: center;\n  align-items: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n  width: 15%;\n  color: #fff;\n  text-align: center;\n  opacity: 0.5;\n  transition: opacity 0.15s ease;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .carousel-control-prev,\n  .carousel-control-next {\n    transition: none;\n  }\n}\n\n.carousel-control-prev:hover, .carousel-control-prev:focus,\n.carousel-control-next:hover,\n.carousel-control-next:focus {\n  color: #fff;\n  text-decoration: none;\n  outline: 0;\n  opacity: 0.9;\n}\n\n.carousel-control-prev {\n  left: 0;\n}\n\n.carousel-control-next {\n  right: 0;\n}\n\n.carousel-control-prev-icon,\n.carousel-control-next-icon {\n  display: inline-block;\n  width: 20px;\n  height: 20px;\n  background: transparent no-repeat center center;\n  background-size: 100% 100%;\n}\n\n.carousel-control-prev-icon {\n  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e\");\n}\n\n.carousel-control-next-icon {\n  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e\");\n}\n\n.carousel-indicators {\n  position: absolute;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 15;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-pack: center;\n  justify-content: center;\n  padding-left: 0;\n  margin-right: 15%;\n  margin-left: 15%;\n  list-style: none;\n}\n\n.carousel-indicators li {\n  box-sizing: content-box;\n  -ms-flex: 0 1 auto;\n  flex: 0 1 auto;\n  width: 30px;\n  height: 3px;\n  margin-right: 3px;\n  margin-left: 3px;\n  text-indent: -999px;\n  cursor: pointer;\n  background-color: #fff;\n  background-clip: padding-box;\n  border-top: 10px solid transparent;\n  border-bottom: 10px solid transparent;\n  opacity: .5;\n  transition: opacity 0.6s ease;\n}\n\n@media screen and (prefers-reduced-motion: reduce) {\n  .carousel-indicators li {\n    transition: none;\n  }\n}\n\n.carousel-indicators .active {\n  opacity: 1;\n}\n\n.carousel-caption {\n  position: absolute;\n  right: 15%;\n  bottom: 20px;\n  left: 15%;\n  z-index: 10;\n  padding-top: 20px;\n  padding-bottom: 20px;\n  color: #fff;\n  text-align: center;\n}\n\n@-webkit-keyframes spinner-border {\n  to {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes spinner-border {\n  to {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n.spinner-border {\n  display: inline-block;\n  width: 2rem;\n  height: 2rem;\n  vertical-align: text-bottom;\n  border: 0.25em solid currentColor;\n  border-right-color: transparent;\n  border-radius: 50%;\n  -webkit-animation: spinner-border .75s linear infinite;\n  animation: spinner-border .75s linear infinite;\n}\n\n.spinner-border-sm {\n  width: 1rem;\n  height: 1rem;\n  border-width: 0.2em;\n}\n\n@-webkit-keyframes spinner-grow {\n  0% {\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n  50% {\n    opacity: 1;\n  }\n}\n\n@keyframes spinner-grow {\n  0% {\n    -webkit-transform: scale(0);\n    transform: scale(0);\n  }\n  50% {\n    opacity: 1;\n  }\n}\n\n.spinner-grow {\n  display: inline-block;\n  width: 2rem;\n  height: 2rem;\n  vertical-align: text-bottom;\n  background-color: currentColor;\n  border-radius: 50%;\n  opacity: 0;\n  -webkit-animation: spinner-grow .75s linear infinite;\n  animation: spinner-grow .75s linear infinite;\n}\n\n.spinner-grow-sm {\n  width: 1rem;\n  height: 1rem;\n}\n\n.align-baseline {\n  vertical-align: baseline !important;\n}\n\n.align-top {\n  vertical-align: top !important;\n}\n\n.align-middle {\n  vertical-align: middle !important;\n}\n\n.align-bottom {\n  vertical-align: bottom !important;\n}\n\n.align-text-bottom {\n  vertical-align: text-bottom !important;\n}\n\n.align-text-top {\n  vertical-align: text-top !important;\n}\n\n.bg-primary {\n  background-color: #007bff !important;\n}\n\na.bg-primary:hover, a.bg-primary:focus,\nbutton.bg-primary:hover,\nbutton.bg-primary:focus {\n  background-color: #0062cc !important;\n}\n\n.bg-secondary {\n  background-color: #6c757d !important;\n}\n\na.bg-secondary:hover, a.bg-secondary:focus,\nbutton.bg-secondary:hover,\nbutton.bg-secondary:focus {\n  background-color: #545b62 !important;\n}\n\n.bg-success {\n  background-color: #28a745 !important;\n}\n\na.bg-success:hover, a.bg-success:focus,\nbutton.bg-success:hover,\nbutton.bg-success:focus {\n  background-color: #1e7e34 !important;\n}\n\n.bg-info {\n  background-color: #17a2b8 !important;\n}\n\na.bg-info:hover, a.bg-info:focus,\nbutton.bg-info:hover,\nbutton.bg-info:focus {\n  background-color: #117a8b !important;\n}\n\n.bg-warning {\n  background-color: #ffc107 !important;\n}\n\na.bg-warning:hover, a.bg-warning:focus,\nbutton.bg-warning:hover,\nbutton.bg-warning:focus {\n  background-color: #d39e00 !important;\n}\n\n.bg-danger {\n  background-color: #dc3545 !important;\n}\n\na.bg-danger:hover, a.bg-danger:focus,\nbutton.bg-danger:hover,\nbutton.bg-danger:focus {\n  background-color: #bd2130 !important;\n}\n\n.bg-light {\n  background-color: #f8f9fa !important;\n}\n\na.bg-light:hover, a.bg-light:focus,\nbutton.bg-light:hover,\nbutton.bg-light:focus {\n  background-color: #dae0e5 !important;\n}\n\n.bg-dark {\n  background-color: #343a40 !important;\n}\n\na.bg-dark:hover, a.bg-dark:focus,\nbutton.bg-dark:hover,\nbutton.bg-dark:focus {\n  background-color: #1d2124 !important;\n}\n\n.bg-white {\n  background-color: #fff !important;\n}\n\n.bg-transparent {\n  background-color: transparent !important;\n}\n\n.border {\n  border: 1px solid #dee2e6 !important;\n}\n\n.border-top {\n  border-top: 1px solid #dee2e6 !important;\n}\n\n.border-right {\n  border-right: 1px solid #dee2e6 !important;\n}\n\n.border-bottom {\n  border-bottom: 1px solid #dee2e6 !important;\n}\n\n.border-left {\n  border-left: 1px solid #dee2e6 !important;\n}\n\n.border-0 {\n  border: 0 !important;\n}\n\n.border-top-0 {\n  border-top: 0 !important;\n}\n\n.border-right-0 {\n  border-right: 0 !important;\n}\n\n.border-bottom-0 {\n  border-bottom: 0 !important;\n}\n\n.border-left-0 {\n  border-left: 0 !important;\n}\n\n.border-primary {\n  border-color: #007bff !important;\n}\n\n.border-secondary {\n  border-color: #6c757d !important;\n}\n\n.border-success {\n  border-color: #28a745 !important;\n}\n\n.border-info {\n  border-color: #17a2b8 !important;\n}\n\n.border-warning {\n  border-color: #ffc107 !important;\n}\n\n.border-danger {\n  border-color: #dc3545 !important;\n}\n\n.border-light {\n  border-color: #f8f9fa !important;\n}\n\n.border-dark {\n  border-color: #343a40 !important;\n}\n\n.border-white {\n  border-color: #fff !important;\n}\n\n.rounded {\n  border-radius: 0.25rem !important;\n}\n\n.rounded-top {\n  border-top-left-radius: 0.25rem !important;\n  border-top-right-radius: 0.25rem !important;\n}\n\n.rounded-right {\n  border-top-right-radius: 0.25rem !important;\n  border-bottom-right-radius: 0.25rem !important;\n}\n\n.rounded-bottom {\n  border-bottom-right-radius: 0.25rem !important;\n  border-bottom-left-radius: 0.25rem !important;\n}\n\n.rounded-left {\n  border-top-left-radius: 0.25rem !important;\n  border-bottom-left-radius: 0.25rem !important;\n}\n\n.rounded-circle {\n  border-radius: 50% !important;\n}\n\n.rounded-pill {\n  border-radius: 50rem !important;\n}\n\n.rounded-0 {\n  border-radius: 0 !important;\n}\n\n.clearfix::after {\n  display: block;\n  clear: both;\n  content: \"\";\n}\n\n.d-none {\n  display: none !important;\n}\n\n.d-inline {\n  display: inline !important;\n}\n\n.d-inline-block {\n  display: inline-block !important;\n}\n\n.d-block {\n  display: block !important;\n}\n\n.d-table {\n  display: table !important;\n}\n\n.d-table-row {\n  display: table-row !important;\n}\n\n.d-table-cell {\n  display: table-cell !important;\n}\n\n.d-flex {\n  display: -ms-flexbox !important;\n  display: flex !important;\n}\n\n.d-inline-flex {\n  display: -ms-inline-flexbox !important;\n  display: inline-flex !important;\n}\n\n@media (min-width: 576px) {\n  .d-sm-none {\n    display: none !important;\n  }\n  .d-sm-inline {\n    display: inline !important;\n  }\n  .d-sm-inline-block {\n    display: inline-block !important;\n  }\n  .d-sm-block {\n    display: block !important;\n  }\n  .d-sm-table {\n    display: table !important;\n  }\n  .d-sm-table-row {\n    display: table-row !important;\n  }\n  .d-sm-table-cell {\n    display: table-cell !important;\n  }\n  .d-sm-flex {\n    display: -ms-flexbox !important;\n    display: flex !important;\n  }\n  .d-sm-inline-flex {\n    display: -ms-inline-flexbox !important;\n    display: inline-flex !important;\n  }\n}\n\n@media (min-width: 768px) {\n  .d-md-none {\n    display: none !important;\n  }\n  .d-md-inline {\n    display: inline !important;\n  }\n  .d-md-inline-block {\n    display: inline-block !important;\n  }\n  .d-md-block {\n    display: block !important;\n  }\n  .d-md-table {\n    display: table !important;\n  }\n  .d-md-table-row {\n    display: table-row !important;\n  }\n  .d-md-table-cell {\n    display: table-cell !important;\n  }\n  .d-md-flex {\n    display: -ms-flexbox !important;\n    display: flex !important;\n  }\n  .d-md-inline-flex {\n    display: -ms-inline-flexbox !important;\n    display: inline-flex !important;\n  }\n}\n\n@media (min-width: 992px) {\n  .d-lg-none {\n    display: none !important;\n  }\n  .d-lg-inline {\n    display: inline !important;\n  }\n  .d-lg-inline-block {\n    display: inline-block !important;\n  }\n  .d-lg-block {\n    display: block !important;\n  }\n  .d-lg-table {\n    display: table !important;\n  }\n  .d-lg-table-row {\n    display: table-row !important;\n  }\n  .d-lg-table-cell {\n    display: table-cell !important;\n  }\n  .d-lg-flex {\n    display: -ms-flexbox !important;\n    display: flex !important;\n  }\n  .d-lg-inline-flex {\n    display: -ms-inline-flexbox !important;\n    display: inline-flex !important;\n  }\n}\n\n@media (min-width: 1200px) {\n  .d-xl-none {\n    display: none !important;\n  }\n  .d-xl-inline {\n    display: inline !important;\n  }\n  .d-xl-inline-block {\n    display: inline-block !important;\n  }\n  .d-xl-block {\n    display: block !important;\n  }\n  .d-xl-table {\n    display: table !important;\n  }\n  .d-xl-table-row {\n    display: table-row !important;\n  }\n  .d-xl-table-cell {\n    display: table-cell !important;\n  }\n  .d-xl-flex {\n    display: -ms-flexbox !important;\n    display: flex !important;\n  }\n  .d-xl-inline-flex {\n    display: -ms-inline-flexbox !important;\n    display: inline-flex !important;\n  }\n}\n\n@media print {\n  .d-print-none {\n    display: none !important;\n  }\n  .d-print-inline {\n    display: inline !important;\n  }\n  .d-print-inline-block {\n    display: inline-block !important;\n  }\n  .d-print-block {\n    display: block !important;\n  }\n  .d-print-table {\n    display: table !important;\n  }\n  .d-print-table-row {\n    display: table-row !important;\n  }\n  .d-print-table-cell {\n    display: table-cell !important;\n  }\n  .d-print-flex {\n    display: -ms-flexbox !important;\n    display: flex !important;\n  }\n  .d-print-inline-flex {\n    display: -ms-inline-flexbox !important;\n    display: inline-flex !important;\n  }\n}\n\n.embed-responsive {\n  position: relative;\n  display: block;\n  width: 100%;\n  padding: 0;\n  overflow: hidden;\n}\n\n.embed-responsive::before {\n  display: block;\n  content: \"\";\n}\n\n.embed-responsive .embed-responsive-item,\n.embed-responsive iframe,\n.embed-responsive embed,\n.embed-responsive object,\n.embed-responsive video {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  border: 0;\n}\n\n.embed-responsive-21by9::before {\n  padding-top: 42.857143%;\n}\n\n.embed-responsive-16by9::before {\n  padding-top: 56.25%;\n}\n\n.embed-responsive-3by4::before {\n  padding-top: 133.333333%;\n}\n\n.embed-responsive-1by1::before {\n  padding-top: 100%;\n}\n\n.flex-row {\n  -ms-flex-direction: row !important;\n  flex-direction: row !important;\n}\n\n.flex-column {\n  -ms-flex-direction: column !important;\n  flex-direction: column !important;\n}\n\n.flex-row-reverse {\n  -ms-flex-direction: row-reverse !important;\n  flex-direction: row-reverse !important;\n}\n\n.flex-column-reverse {\n  -ms-flex-direction: column-reverse !important;\n  flex-direction: column-reverse !important;\n}\n\n.flex-wrap {\n  -ms-flex-wrap: wrap !important;\n  flex-wrap: wrap !important;\n}\n\n.flex-nowrap {\n  -ms-flex-wrap: nowrap !important;\n  flex-wrap: nowrap !important;\n}\n\n.flex-wrap-reverse {\n  -ms-flex-wrap: wrap-reverse !important;\n  flex-wrap: wrap-reverse !important;\n}\n\n.flex-fill {\n  -ms-flex: 1 1 auto !important;\n  flex: 1 1 auto !important;\n}\n\n.flex-grow-0 {\n  -ms-flex-positive: 0 !important;\n  flex-grow: 0 !important;\n}\n\n.flex-grow-1 {\n  -ms-flex-positive: 1 !important;\n  flex-grow: 1 !important;\n}\n\n.flex-shrink-0 {\n  -ms-flex-negative: 0 !important;\n  flex-shrink: 0 !important;\n}\n\n.flex-shrink-1 {\n  -ms-flex-negative: 1 !important;\n  flex-shrink: 1 !important;\n}\n\n.justify-content-start {\n  -ms-flex-pack: start !important;\n  justify-content: flex-start !important;\n}\n\n.justify-content-end {\n  -ms-flex-pack: end !important;\n  justify-content: flex-end !important;\n}\n\n.justify-content-center {\n  -ms-flex-pack: center !important;\n  justify-content: center !important;\n}\n\n.justify-content-between {\n  -ms-flex-pack: justify !important;\n  justify-content: space-between !important;\n}\n\n.justify-content-around {\n  -ms-flex-pack: distribute !important;\n  justify-content: space-around !important;\n}\n\n.align-items-start {\n  -ms-flex-align: start !important;\n  align-items: flex-start !important;\n}\n\n.align-items-end {\n  -ms-flex-align: end !important;\n  align-items: flex-end !important;\n}\n\n.align-items-center {\n  -ms-flex-align: center !important;\n  align-items: center !important;\n}\n\n.align-items-baseline {\n  -ms-flex-align: baseline !important;\n  align-items: baseline !important;\n}\n\n.align-items-stretch {\n  -ms-flex-align: stretch !important;\n  align-items: stretch !important;\n}\n\n.align-content-start {\n  -ms-flex-line-pack: start !important;\n  align-content: flex-start !important;\n}\n\n.align-content-end {\n  -ms-flex-line-pack: end !important;\n  align-content: flex-end !important;\n}\n\n.align-content-center {\n  -ms-flex-line-pack: center !important;\n  align-content: center !important;\n}\n\n.align-content-between {\n  -ms-flex-line-pack: justify !important;\n  align-content: space-between !important;\n}\n\n.align-content-around {\n  -ms-flex-line-pack: distribute !important;\n  align-content: space-around !important;\n}\n\n.align-content-stretch {\n  -ms-flex-line-pack: stretch !important;\n  align-content: stretch !important;\n}\n\n.align-self-auto {\n  -ms-flex-item-align: auto !important;\n  align-self: auto !important;\n}\n\n.align-self-start {\n  -ms-flex-item-align: start !important;\n  align-self: flex-start !important;\n}\n\n.align-self-end {\n  -ms-flex-item-align: end !important;\n  align-self: flex-end !important;\n}\n\n.align-self-center {\n  -ms-flex-item-align: center !important;\n  align-self: center !important;\n}\n\n.align-self-baseline {\n  -ms-flex-item-align: baseline !important;\n  align-self: baseline !important;\n}\n\n.align-self-stretch {\n  -ms-flex-item-align: stretch !important;\n  align-self: stretch !important;\n}\n\n@media (min-width: 576px) {\n  .flex-sm-row {\n    -ms-flex-direction: row !important;\n    flex-direction: row !important;\n  }\n  .flex-sm-column {\n    -ms-flex-direction: column !important;\n    flex-direction: column !important;\n  }\n  .flex-sm-row-reverse {\n    -ms-flex-direction: row-reverse !important;\n    flex-direction: row-reverse !important;\n  }\n  .flex-sm-column-reverse {\n    -ms-flex-direction: column-reverse !important;\n    flex-direction: column-reverse !important;\n  }\n  .flex-sm-wrap {\n    -ms-flex-wrap: wrap !important;\n    flex-wrap: wrap !important;\n  }\n  .flex-sm-nowrap {\n    -ms-flex-wrap: nowrap !important;\n    flex-wrap: nowrap !important;\n  }\n  .flex-sm-wrap-reverse {\n    -ms-flex-wrap: wrap-reverse !important;\n    flex-wrap: wrap-reverse !important;\n  }\n  .flex-sm-fill {\n    -ms-flex: 1 1 auto !important;\n    flex: 1 1 auto !important;\n  }\n  .flex-sm-grow-0 {\n    -ms-flex-positive: 0 !important;\n    flex-grow: 0 !important;\n  }\n  .flex-sm-grow-1 {\n    -ms-flex-positive: 1 !important;\n    flex-grow: 1 !important;\n  }\n  .flex-sm-shrink-0 {\n    -ms-flex-negative: 0 !important;\n    flex-shrink: 0 !important;\n  }\n  .flex-sm-shrink-1 {\n    -ms-flex-negative: 1 !important;\n    flex-shrink: 1 !important;\n  }\n  .justify-content-sm-start {\n    -ms-flex-pack: start !important;\n    justify-content: flex-start !important;\n  }\n  .justify-content-sm-end {\n    -ms-flex-pack: end !important;\n    justify-content: flex-end !important;\n  }\n  .justify-content-sm-center {\n    -ms-flex-pack: center !important;\n    justify-content: center !important;\n  }\n  .justify-content-sm-between {\n    -ms-flex-pack: justify !important;\n    justify-content: space-between !important;\n  }\n  .justify-content-sm-around {\n    -ms-flex-pack: distribute !important;\n    justify-content: space-around !important;\n  }\n  .align-items-sm-start {\n    -ms-flex-align: start !important;\n    align-items: flex-start !important;\n  }\n  .align-items-sm-end {\n    -ms-flex-align: end !important;\n    align-items: flex-end !important;\n  }\n  .align-items-sm-center {\n    -ms-flex-align: center !important;\n    align-items: center !important;\n  }\n  .align-items-sm-baseline {\n    -ms-flex-align: baseline !important;\n    align-items: baseline !important;\n  }\n  .align-items-sm-stretch {\n    -ms-flex-align: stretch !important;\n    align-items: stretch !important;\n  }\n  .align-content-sm-start {\n    -ms-flex-line-pack: start !important;\n    align-content: flex-start !important;\n  }\n  .align-content-sm-end {\n    -ms-flex-line-pack: end !important;\n    align-content: flex-end !important;\n  }\n  .align-content-sm-center {\n    -ms-flex-line-pack: center !important;\n    align-content: center !important;\n  }\n  .align-content-sm-between {\n    -ms-flex-line-pack: justify !important;\n    align-content: space-between !important;\n  }\n  .align-content-sm-around {\n    -ms-flex-line-pack: distribute !important;\n    align-content: space-around !important;\n  }\n  .align-content-sm-stretch {\n    -ms-flex-line-pack: stretch !important;\n    align-content: stretch !important;\n  }\n  .align-self-sm-auto {\n    -ms-flex-item-align: auto !important;\n    align-self: auto !important;\n  }\n  .align-self-sm-start {\n    -ms-flex-item-align: start !important;\n    align-self: flex-start !important;\n  }\n  .align-self-sm-end {\n    -ms-flex-item-align: end !important;\n    align-self: flex-end !important;\n  }\n  .align-self-sm-center {\n    -ms-flex-item-align: center !important;\n    align-self: center !important;\n  }\n  .align-self-sm-baseline {\n    -ms-flex-item-align: baseline !important;\n    align-self: baseline !important;\n  }\n  .align-self-sm-stretch {\n    -ms-flex-item-align: stretch !important;\n    align-self: stretch !important;\n  }\n}\n\n@media (min-width: 768px) {\n  .flex-md-row {\n    -ms-flex-direction: row !important;\n    flex-direction: row !important;\n  }\n  .flex-md-column {\n    -ms-flex-direction: column !important;\n    flex-direction: column !important;\n  }\n  .flex-md-row-reverse {\n    -ms-flex-direction: row-reverse !important;\n    flex-direction: row-reverse !important;\n  }\n  .flex-md-column-reverse {\n    -ms-flex-direction: column-reverse !important;\n    flex-direction: column-reverse !important;\n  }\n  .flex-md-wrap {\n    -ms-flex-wrap: wrap !important;\n    flex-wrap: wrap !important;\n  }\n  .flex-md-nowrap {\n    -ms-flex-wrap: nowrap !important;\n    flex-wrap: nowrap !important;\n  }\n  .flex-md-wrap-reverse {\n    -ms-flex-wrap: wrap-reverse !important;\n    flex-wrap: wrap-reverse !important;\n  }\n  .flex-md-fill {\n    -ms-flex: 1 1 auto !important;\n    flex: 1 1 auto !important;\n  }\n  .flex-md-grow-0 {\n    -ms-flex-positive: 0 !important;\n    flex-grow: 0 !important;\n  }\n  .flex-md-grow-1 {\n    -ms-flex-positive: 1 !important;\n    flex-grow: 1 !important;\n  }\n  .flex-md-shrink-0 {\n    -ms-flex-negative: 0 !important;\n    flex-shrink: 0 !important;\n  }\n  .flex-md-shrink-1 {\n    -ms-flex-negative: 1 !important;\n    flex-shrink: 1 !important;\n  }\n  .justify-content-md-start {\n    -ms-flex-pack: start !important;\n    justify-content: flex-start !important;\n  }\n  .justify-content-md-end {\n    -ms-flex-pack: end !important;\n    justify-content: flex-end !important;\n  }\n  .justify-content-md-center {\n    -ms-flex-pack: center !important;\n    justify-content: center !important;\n  }\n  .justify-content-md-between {\n    -ms-flex-pack: justify !important;\n    justify-content: space-between !important;\n  }\n  .justify-content-md-around {\n    -ms-flex-pack: distribute !important;\n    justify-content: space-around !important;\n  }\n  .align-items-md-start {\n    -ms-flex-align: start !important;\n    align-items: flex-start !important;\n  }\n  .align-items-md-end {\n    -ms-flex-align: end !important;\n    align-items: flex-end !important;\n  }\n  .align-items-md-center {\n    -ms-flex-align: center !important;\n    align-items: center !important;\n  }\n  .align-items-md-baseline {\n    -ms-flex-align: baseline !important;\n    align-items: baseline !important;\n  }\n  .align-items-md-stretch {\n    -ms-flex-align: stretch !important;\n    align-items: stretch !important;\n  }\n  .align-content-md-start {\n    -ms-flex-line-pack: start !important;\n    align-content: flex-start !important;\n  }\n  .align-content-md-end {\n    -ms-flex-line-pack: end !important;\n    align-content: flex-end !important;\n  }\n  .align-content-md-center {\n    -ms-flex-line-pack: center !important;\n    align-content: center !important;\n  }\n  .align-content-md-between {\n    -ms-flex-line-pack: justify !important;\n    align-content: space-between !important;\n  }\n  .align-content-md-around {\n    -ms-flex-line-pack: distribute !important;\n    align-content: space-around !important;\n  }\n  .align-content-md-stretch {\n    -ms-flex-line-pack: stretch !important;\n    align-content: stretch !important;\n  }\n  .align-self-md-auto {\n    -ms-flex-item-align: auto !important;\n    align-self: auto !important;\n  }\n  .align-self-md-start {\n    -ms-flex-item-align: start !important;\n    align-self: flex-start !important;\n  }\n  .align-self-md-end {\n    -ms-flex-item-align: end !important;\n    align-self: flex-end !important;\n  }\n  .align-self-md-center {\n    -ms-flex-item-align: center !important;\n    align-self: center !important;\n  }\n  .align-self-md-baseline {\n    -ms-flex-item-align: baseline !important;\n    align-self: baseline !important;\n  }\n  .align-self-md-stretch {\n    -ms-flex-item-align: stretch !important;\n    align-self: stretch !important;\n  }\n}\n\n@media (min-width: 992px) {\n  .flex-lg-row {\n    -ms-flex-direction: row !important;\n    flex-direction: row !important;\n  }\n  .flex-lg-column {\n    -ms-flex-direction: column !important;\n    flex-direction: column !important;\n  }\n  .flex-lg-row-reverse {\n    -ms-flex-direction: row-reverse !important;\n    flex-direction: row-reverse !important;\n  }\n  .flex-lg-column-reverse {\n    -ms-flex-direction: column-reverse !important;\n    flex-direction: column-reverse !important;\n  }\n  .flex-lg-wrap {\n    -ms-flex-wrap: wrap !important;\n    flex-wrap: wrap !important;\n  }\n  .flex-lg-nowrap {\n    -ms-flex-wrap: nowrap !important;\n    flex-wrap: nowrap !important;\n  }\n  .flex-lg-wrap-reverse {\n    -ms-flex-wrap: wrap-reverse !important;\n    flex-wrap: wrap-reverse !important;\n  }\n  .flex-lg-fill {\n    -ms-flex: 1 1 auto !important;\n    flex: 1 1 auto !important;\n  }\n  .flex-lg-grow-0 {\n    -ms-flex-positive: 0 !important;\n    flex-grow: 0 !important;\n  }\n  .flex-lg-grow-1 {\n    -ms-flex-positive: 1 !important;\n    flex-grow: 1 !important;\n  }\n  .flex-lg-shrink-0 {\n    -ms-flex-negative: 0 !important;\n    flex-shrink: 0 !important;\n  }\n  .flex-lg-shrink-1 {\n    -ms-flex-negative: 1 !important;\n    flex-shrink: 1 !important;\n  }\n  .justify-content-lg-start {\n    -ms-flex-pack: start !important;\n    justify-content: flex-start !important;\n  }\n  .justify-content-lg-end {\n    -ms-flex-pack: end !important;\n    justify-content: flex-end !important;\n  }\n  .justify-content-lg-center {\n    -ms-flex-pack: center !important;\n    justify-content: center !important;\n  }\n  .justify-content-lg-between {\n    -ms-flex-pack: justify !important;\n    justify-content: space-between !important;\n  }\n  .justify-content-lg-around {\n    -ms-flex-pack: distribute !important;\n    justify-content: space-around !important;\n  }\n  .align-items-lg-start {\n    -ms-flex-align: start !important;\n    align-items: flex-start !important;\n  }\n  .align-items-lg-end {\n    -ms-flex-align: end !important;\n    align-items: flex-end !important;\n  }\n  .align-items-lg-center {\n    -ms-flex-align: center !important;\n    align-items: center !important;\n  }\n  .align-items-lg-baseline {\n    -ms-flex-align: baseline !important;\n    align-items: baseline !important;\n  }\n  .align-items-lg-stretch {\n    -ms-flex-align: stretch !important;\n    align-items: stretch !important;\n  }\n  .align-content-lg-start {\n    -ms-flex-line-pack: start !important;\n    align-content: flex-start !important;\n  }\n  .align-content-lg-end {\n    -ms-flex-line-pack: end !important;\n    align-content: flex-end !important;\n  }\n  .align-content-lg-center {\n    -ms-flex-line-pack: center !important;\n    align-content: center !important;\n  }\n  .align-content-lg-between {\n    -ms-flex-line-pack: justify !important;\n    align-content: space-between !important;\n  }\n  .align-content-lg-around {\n    -ms-flex-line-pack: distribute !important;\n    align-content: space-around !important;\n  }\n  .align-content-lg-stretch {\n    -ms-flex-line-pack: stretch !important;\n    align-content: stretch !important;\n  }\n  .align-self-lg-auto {\n    -ms-flex-item-align: auto !important;\n    align-self: auto !important;\n  }\n  .align-self-lg-start {\n    -ms-flex-item-align: start !important;\n    align-self: flex-start !important;\n  }\n  .align-self-lg-end {\n    -ms-flex-item-align: end !important;\n    align-self: flex-end !important;\n  }\n  .align-self-lg-center {\n    -ms-flex-item-align: center !important;\n    align-self: center !important;\n  }\n  .align-self-lg-baseline {\n    -ms-flex-item-align: baseline !important;\n    align-self: baseline !important;\n  }\n  .align-self-lg-stretch {\n    -ms-flex-item-align: stretch !important;\n    align-self: stretch !important;\n  }\n}\n\n@media (min-width: 1200px) {\n  .flex-xl-row {\n    -ms-flex-direction: row !important;\n    flex-direction: row !important;\n  }\n  .flex-xl-column {\n    -ms-flex-direction: column !important;\n    flex-direction: column !important;\n  }\n  .flex-xl-row-reverse {\n    -ms-flex-direction: row-reverse !important;\n    flex-direction: row-reverse !important;\n  }\n  .flex-xl-column-reverse {\n    -ms-flex-direction: column-reverse !important;\n    flex-direction: column-reverse !important;\n  }\n  .flex-xl-wrap {\n    -ms-flex-wrap: wrap !important;\n    flex-wrap: wrap !important;\n  }\n  .flex-xl-nowrap {\n    -ms-flex-wrap: nowrap !important;\n    flex-wrap: nowrap !important;\n  }\n  .flex-xl-wrap-reverse {\n    -ms-flex-wrap: wrap-reverse !important;\n    flex-wrap: wrap-reverse !important;\n  }\n  .flex-xl-fill {\n    -ms-flex: 1 1 auto !important;\n    flex: 1 1 auto !important;\n  }\n  .flex-xl-grow-0 {\n    -ms-flex-positive: 0 !important;\n    flex-grow: 0 !important;\n  }\n  .flex-xl-grow-1 {\n    -ms-flex-positive: 1 !important;\n    flex-grow: 1 !important;\n  }\n  .flex-xl-shrink-0 {\n    -ms-flex-negative: 0 !important;\n    flex-shrink: 0 !important;\n  }\n  .flex-xl-shrink-1 {\n    -ms-flex-negative: 1 !important;\n    flex-shrink: 1 !important;\n  }\n  .justify-content-xl-start {\n    -ms-flex-pack: start !important;\n    justify-content: flex-start !important;\n  }\n  .justify-content-xl-end {\n    -ms-flex-pack: end !important;\n    justify-content: flex-end !important;\n  }\n  .justify-content-xl-center {\n    -ms-flex-pack: center !important;\n    justify-content: center !important;\n  }\n  .justify-content-xl-between {\n    -ms-flex-pack: justify !important;\n    justify-content: space-between !important;\n  }\n  .justify-content-xl-around {\n    -ms-flex-pack: distribute !important;\n    justify-content: space-around !important;\n  }\n  .align-items-xl-start {\n    -ms-flex-align: start !important;\n    align-items: flex-start !important;\n  }\n  .align-items-xl-end {\n    -ms-flex-align: end !important;\n    align-items: flex-end !important;\n  }\n  .align-items-xl-center {\n    -ms-flex-align: center !important;\n    align-items: center !important;\n  }\n  .align-items-xl-baseline {\n    -ms-flex-align: baseline !important;\n    align-items: baseline !important;\n  }\n  .align-items-xl-stretch {\n    -ms-flex-align: stretch !important;\n    align-items: stretch !important;\n  }\n  .align-content-xl-start {\n    -ms-flex-line-pack: start !important;\n    align-content: flex-start !important;\n  }\n  .align-content-xl-end {\n    -ms-flex-line-pack: end !important;\n    align-content: flex-end !important;\n  }\n  .align-content-xl-center {\n    -ms-flex-line-pack: center !important;\n    align-content: center !important;\n  }\n  .align-content-xl-between {\n    -ms-flex-line-pack: justify !important;\n    align-content: space-between !important;\n  }\n  .align-content-xl-around {\n    -ms-flex-line-pack: distribute !important;\n    align-content: space-around !important;\n  }\n  .align-content-xl-stretch {\n    -ms-flex-line-pack: stretch !important;\n    align-content: stretch !important;\n  }\n  .align-self-xl-auto {\n    -ms-flex-item-align: auto !important;\n    align-self: auto !important;\n  }\n  .align-self-xl-start {\n    -ms-flex-item-align: start !important;\n    align-self: flex-start !important;\n  }\n  .align-self-xl-end {\n    -ms-flex-item-align: end !important;\n    align-self: flex-end !important;\n  }\n  .align-self-xl-center {\n    -ms-flex-item-align: center !important;\n    align-self: center !important;\n  }\n  .align-self-xl-baseline {\n    -ms-flex-item-align: baseline !important;\n    align-self: baseline !important;\n  }\n  .align-self-xl-stretch {\n    -ms-flex-item-align: stretch !important;\n    align-self: stretch !important;\n  }\n}\n\n.float-left {\n  float: left !important;\n}\n\n.float-right {\n  float: right !important;\n}\n\n.float-none {\n  float: none !important;\n}\n\n@media (min-width: 576px) {\n  .float-sm-left {\n    float: left !important;\n  }\n  .float-sm-right {\n    float: right !important;\n  }\n  .float-sm-none {\n    float: none !important;\n  }\n}\n\n@media (min-width: 768px) {\n  .float-md-left {\n    float: left !important;\n  }\n  .float-md-right {\n    float: right !important;\n  }\n  .float-md-none {\n    float: none !important;\n  }\n}\n\n@media (min-width: 992px) {\n  .float-lg-left {\n    float: left !important;\n  }\n  .float-lg-right {\n    float: right !important;\n  }\n  .float-lg-none {\n    float: none !important;\n  }\n}\n\n@media (min-width: 1200px) {\n  .float-xl-left {\n    float: left !important;\n  }\n  .float-xl-right {\n    float: right !important;\n  }\n  .float-xl-none {\n    float: none !important;\n  }\n}\n\n.overflow-auto {\n  overflow: auto !important;\n}\n\n.overflow-hidden {\n  overflow: hidden !important;\n}\n\n.position-static {\n  position: static !important;\n}\n\n.position-relative {\n  position: relative !important;\n}\n\n.position-absolute {\n  position: absolute !important;\n}\n\n.position-fixed {\n  position: fixed !important;\n}\n\n.position-sticky {\n  position: -webkit-sticky !important;\n  position: sticky !important;\n}\n\n.fixed-top {\n  position: fixed;\n  top: 0;\n  right: 0;\n  left: 0;\n  z-index: 1030;\n}\n\n.fixed-bottom {\n  position: fixed;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 1030;\n}\n\n@supports ((position: -webkit-sticky) or (position: sticky)) {\n  .sticky-top {\n    position: -webkit-sticky;\n    position: sticky;\n    top: 0;\n    z-index: 1020;\n  }\n}\n\n.sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border: 0;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  position: static;\n  width: auto;\n  height: auto;\n  overflow: visible;\n  clip: auto;\n  white-space: normal;\n}\n\n.shadow-sm {\n  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;\n}\n\n.shadow {\n  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;\n}\n\n.shadow-lg {\n  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;\n}\n\n.shadow-none {\n  box-shadow: none !important;\n}\n\n.w-25 {\n  width: 25% !important;\n}\n\n.w-50 {\n  width: 50% !important;\n}\n\n.w-75 {\n  width: 75% !important;\n}\n\n.w-100 {\n  width: 100% !important;\n}\n\n.w-auto {\n  width: auto !important;\n}\n\n.h-25 {\n  height: 25% !important;\n}\n\n.h-50 {\n  height: 50% !important;\n}\n\n.h-75 {\n  height: 75% !important;\n}\n\n.h-100 {\n  height: 100% !important;\n}\n\n.h-auto {\n  height: auto !important;\n}\n\n.mw-100 {\n  max-width: 100% !important;\n}\n\n.mh-100 {\n  max-height: 100% !important;\n}\n\n.min-vw-100 {\n  min-width: 100vw !important;\n}\n\n.min-vh-100 {\n  min-height: 100vh !important;\n}\n\n.vw-100 {\n  width: 100vw !important;\n}\n\n.vh-100 {\n  height: 100vh !important;\n}\n\n.m-0 {\n  margin: 0 !important;\n}\n\n.mt-0,\n.my-0 {\n  margin-top: 0 !important;\n}\n\n.mr-0,\n.mx-0 {\n  margin-right: 0 !important;\n}\n\n.mb-0,\n.my-0 {\n  margin-bottom: 0 !important;\n}\n\n.ml-0,\n.mx-0 {\n  margin-left: 0 !important;\n}\n\n.m-1 {\n  margin: 0.25rem !important;\n}\n\n.mt-1,\n.my-1 {\n  margin-top: 0.25rem !important;\n}\n\n.mr-1,\n.mx-1 {\n  margin-right: 0.25rem !important;\n}\n\n.mb-1,\n.my-1 {\n  margin-bottom: 0.25rem !important;\n}\n\n.ml-1,\n.mx-1 {\n  margin-left: 0.25rem !important;\n}\n\n.m-2 {\n  margin: 0.5rem !important;\n}\n\n.mt-2,\n.my-2 {\n  margin-top: 0.5rem !important;\n}\n\n.mr-2,\n.mx-2 {\n  margin-right: 0.5rem !important;\n}\n\n.mb-2,\n.my-2 {\n  margin-bottom: 0.5rem !important;\n}\n\n.ml-2,\n.mx-2 {\n  margin-left: 0.5rem !important;\n}\n\n.m-3 {\n  margin: 1rem !important;\n}\n\n.mt-3,\n.my-3 {\n  margin-top: 1rem !important;\n}\n\n.mr-3,\n.mx-3 {\n  margin-right: 1rem !important;\n}\n\n.mb-3,\n.my-3 {\n  margin-bottom: 1rem !important;\n}\n\n.ml-3,\n.mx-3 {\n  margin-left: 1rem !important;\n}\n\n.m-4 {\n  margin: 1.5rem !important;\n}\n\n.mt-4,\n.my-4 {\n  margin-top: 1.5rem !important;\n}\n\n.mr-4,\n.mx-4 {\n  margin-right: 1.5rem !important;\n}\n\n.mb-4,\n.my-4 {\n  margin-bottom: 1.5rem !important;\n}\n\n.ml-4,\n.mx-4 {\n  margin-left: 1.5rem !important;\n}\n\n.m-5 {\n  margin: 3rem !important;\n}\n\n.mt-5,\n.my-5 {\n  margin-top: 3rem !important;\n}\n\n.mr-5,\n.mx-5 {\n  margin-right: 3rem !important;\n}\n\n.mb-5,\n.my-5 {\n  margin-bottom: 3rem !important;\n}\n\n.ml-5,\n.mx-5 {\n  margin-left: 3rem !important;\n}\n\n.p-0 {\n  padding: 0 !important;\n}\n\n.pt-0,\n.py-0 {\n  padding-top: 0 !important;\n}\n\n.pr-0,\n.px-0 {\n  padding-right: 0 !important;\n}\n\n.pb-0,\n.py-0 {\n  padding-bottom: 0 !important;\n}\n\n.pl-0,\n.px-0 {\n  padding-left: 0 !important;\n}\n\n.p-1 {\n  padding: 0.25rem !important;\n}\n\n.pt-1,\n.py-1 {\n  padding-top: 0.25rem !important;\n}\n\n.pr-1,\n.px-1 {\n  padding-right: 0.25rem !important;\n}\n\n.pb-1,\n.py-1 {\n  padding-bottom: 0.25rem !important;\n}\n\n.pl-1,\n.px-1 {\n  padding-left: 0.25rem !important;\n}\n\n.p-2 {\n  padding: 0.5rem !important;\n}\n\n.pt-2,\n.py-2 {\n  padding-top: 0.5rem !important;\n}\n\n.pr-2,\n.px-2 {\n  padding-right: 0.5rem !important;\n}\n\n.pb-2,\n.py-2 {\n  padding-bottom: 0.5rem !important;\n}\n\n.pl-2,\n.px-2 {\n  padding-left: 0.5rem !important;\n}\n\n.p-3 {\n  padding: 1rem !important;\n}\n\n.pt-3,\n.py-3 {\n  padding-top: 1rem !important;\n}\n\n.pr-3,\n.px-3 {\n  padding-right: 1rem !important;\n}\n\n.pb-3,\n.py-3 {\n  padding-bottom: 1rem !important;\n}\n\n.pl-3,\n.px-3 {\n  padding-left: 1rem !important;\n}\n\n.p-4 {\n  padding: 1.5rem !important;\n}\n\n.pt-4,\n.py-4 {\n  padding-top: 1.5rem !important;\n}\n\n.pr-4,\n.px-4 {\n  padding-right: 1.5rem !important;\n}\n\n.pb-4,\n.py-4 {\n  padding-bottom: 1.5rem !important;\n}\n\n.pl-4,\n.px-4 {\n  padding-left: 1.5rem !important;\n}\n\n.p-5 {\n  padding: 3rem !important;\n}\n\n.pt-5,\n.py-5 {\n  padding-top: 3rem !important;\n}\n\n.pr-5,\n.px-5 {\n  padding-right: 3rem !important;\n}\n\n.pb-5,\n.py-5 {\n  padding-bottom: 3rem !important;\n}\n\n.pl-5,\n.px-5 {\n  padding-left: 3rem !important;\n}\n\n.m-n1 {\n  margin: -0.25rem !important;\n}\n\n.mt-n1,\n.my-n1 {\n  margin-top: -0.25rem !important;\n}\n\n.mr-n1,\n.mx-n1 {\n  margin-right: -0.25rem !important;\n}\n\n.mb-n1,\n.my-n1 {\n  margin-bottom: -0.25rem !important;\n}\n\n.ml-n1,\n.mx-n1 {\n  margin-left: -0.25rem !important;\n}\n\n.m-n2 {\n  margin: -0.5rem !important;\n}\n\n.mt-n2,\n.my-n2 {\n  margin-top: -0.5rem !important;\n}\n\n.mr-n2,\n.mx-n2 {\n  margin-right: -0.5rem !important;\n}\n\n.mb-n2,\n.my-n2 {\n  margin-bottom: -0.5rem !important;\n}\n\n.ml-n2,\n.mx-n2 {\n  margin-left: -0.5rem !important;\n}\n\n.m-n3 {\n  margin: -1rem !important;\n}\n\n.mt-n3,\n.my-n3 {\n  margin-top: -1rem !important;\n}\n\n.mr-n3,\n.mx-n3 {\n  margin-right: -1rem !important;\n}\n\n.mb-n3,\n.my-n3 {\n  margin-bottom: -1rem !important;\n}\n\n.ml-n3,\n.mx-n3 {\n  margin-left: -1rem !important;\n}\n\n.m-n4 {\n  margin: -1.5rem !important;\n}\n\n.mt-n4,\n.my-n4 {\n  margin-top: -1.5rem !important;\n}\n\n.mr-n4,\n.mx-n4 {\n  margin-right: -1.5rem !important;\n}\n\n.mb-n4,\n.my-n4 {\n  margin-bottom: -1.5rem !important;\n}\n\n.ml-n4,\n.mx-n4 {\n  margin-left: -1.5rem !important;\n}\n\n.m-n5 {\n  margin: -3rem !important;\n}\n\n.mt-n5,\n.my-n5 {\n  margin-top: -3rem !important;\n}\n\n.mr-n5,\n.mx-n5 {\n  margin-right: -3rem !important;\n}\n\n.mb-n5,\n.my-n5 {\n  margin-bottom: -3rem !important;\n}\n\n.ml-n5,\n.mx-n5 {\n  margin-left: -3rem !important;\n}\n\n.m-auto {\n  margin: auto !important;\n}\n\n.mt-auto,\n.my-auto {\n  margin-top: auto !important;\n}\n\n.mr-auto,\n.mx-auto {\n  margin-right: auto !important;\n}\n\n.mb-auto,\n.my-auto {\n  margin-bottom: auto !important;\n}\n\n.ml-auto,\n.mx-auto {\n  margin-left: auto !important;\n}\n\n@media (min-width: 576px) {\n  .m-sm-0 {\n    margin: 0 !important;\n  }\n  .mt-sm-0,\n  .my-sm-0 {\n    margin-top: 0 !important;\n  }\n  .mr-sm-0,\n  .mx-sm-0 {\n    margin-right: 0 !important;\n  }\n  .mb-sm-0,\n  .my-sm-0 {\n    margin-bottom: 0 !important;\n  }\n  .ml-sm-0,\n  .mx-sm-0 {\n    margin-left: 0 !important;\n  }\n  .m-sm-1 {\n    margin: 0.25rem !important;\n  }\n  .mt-sm-1,\n  .my-sm-1 {\n    margin-top: 0.25rem !important;\n  }\n  .mr-sm-1,\n  .mx-sm-1 {\n    margin-right: 0.25rem !important;\n  }\n  .mb-sm-1,\n  .my-sm-1 {\n    margin-bottom: 0.25rem !important;\n  }\n  .ml-sm-1,\n  .mx-sm-1 {\n    margin-left: 0.25rem !important;\n  }\n  .m-sm-2 {\n    margin: 0.5rem !important;\n  }\n  .mt-sm-2,\n  .my-sm-2 {\n    margin-top: 0.5rem !important;\n  }\n  .mr-sm-2,\n  .mx-sm-2 {\n    margin-right: 0.5rem !important;\n  }\n  .mb-sm-2,\n  .my-sm-2 {\n    margin-bottom: 0.5rem !important;\n  }\n  .ml-sm-2,\n  .mx-sm-2 {\n    margin-left: 0.5rem !important;\n  }\n  .m-sm-3 {\n    margin: 1rem !important;\n  }\n  .mt-sm-3,\n  .my-sm-3 {\n    margin-top: 1rem !important;\n  }\n  .mr-sm-3,\n  .mx-sm-3 {\n    margin-right: 1rem !important;\n  }\n  .mb-sm-3,\n  .my-sm-3 {\n    margin-bottom: 1rem !important;\n  }\n  .ml-sm-3,\n  .mx-sm-3 {\n    margin-left: 1rem !important;\n  }\n  .m-sm-4 {\n    margin: 1.5rem !important;\n  }\n  .mt-sm-4,\n  .my-sm-4 {\n    margin-top: 1.5rem !important;\n  }\n  .mr-sm-4,\n  .mx-sm-4 {\n    margin-right: 1.5rem !important;\n  }\n  .mb-sm-4,\n  .my-sm-4 {\n    margin-bottom: 1.5rem !important;\n  }\n  .ml-sm-4,\n  .mx-sm-4 {\n    margin-left: 1.5rem !important;\n  }\n  .m-sm-5 {\n    margin: 3rem !important;\n  }\n  .mt-sm-5,\n  .my-sm-5 {\n    margin-top: 3rem !important;\n  }\n  .mr-sm-5,\n  .mx-sm-5 {\n    margin-right: 3rem !important;\n  }\n  .mb-sm-5,\n  .my-sm-5 {\n    margin-bottom: 3rem !important;\n  }\n  .ml-sm-5,\n  .mx-sm-5 {\n    margin-left: 3rem !important;\n  }\n  .p-sm-0 {\n    padding: 0 !important;\n  }\n  .pt-sm-0,\n  .py-sm-0 {\n    padding-top: 0 !important;\n  }\n  .pr-sm-0,\n  .px-sm-0 {\n    padding-right: 0 !important;\n  }\n  .pb-sm-0,\n  .py-sm-0 {\n    padding-bottom: 0 !important;\n  }\n  .pl-sm-0,\n  .px-sm-0 {\n    padding-left: 0 !important;\n  }\n  .p-sm-1 {\n    padding: 0.25rem !important;\n  }\n  .pt-sm-1,\n  .py-sm-1 {\n    padding-top: 0.25rem !important;\n  }\n  .pr-sm-1,\n  .px-sm-1 {\n    padding-right: 0.25rem !important;\n  }\n  .pb-sm-1,\n  .py-sm-1 {\n    padding-bottom: 0.25rem !important;\n  }\n  .pl-sm-1,\n  .px-sm-1 {\n    padding-left: 0.25rem !important;\n  }\n  .p-sm-2 {\n    padding: 0.5rem !important;\n  }\n  .pt-sm-2,\n  .py-sm-2 {\n    padding-top: 0.5rem !important;\n  }\n  .pr-sm-2,\n  .px-sm-2 {\n    padding-right: 0.5rem !important;\n  }\n  .pb-sm-2,\n  .py-sm-2 {\n    padding-bottom: 0.5rem !important;\n  }\n  .pl-sm-2,\n  .px-sm-2 {\n    padding-left: 0.5rem !important;\n  }\n  .p-sm-3 {\n    padding: 1rem !important;\n  }\n  .pt-sm-3,\n  .py-sm-3 {\n    padding-top: 1rem !important;\n  }\n  .pr-sm-3,\n  .px-sm-3 {\n    padding-right: 1rem !important;\n  }\n  .pb-sm-3,\n  .py-sm-3 {\n    padding-bottom: 1rem !important;\n  }\n  .pl-sm-3,\n  .px-sm-3 {\n    padding-left: 1rem !important;\n  }\n  .p-sm-4 {\n    padding: 1.5rem !important;\n  }\n  .pt-sm-4,\n  .py-sm-4 {\n    padding-top: 1.5rem !important;\n  }\n  .pr-sm-4,\n  .px-sm-4 {\n    padding-right: 1.5rem !important;\n  }\n  .pb-sm-4,\n  .py-sm-4 {\n    padding-bottom: 1.5rem !important;\n  }\n  .pl-sm-4,\n  .px-sm-4 {\n    padding-left: 1.5rem !important;\n  }\n  .p-sm-5 {\n    padding: 3rem !important;\n  }\n  .pt-sm-5,\n  .py-sm-5 {\n    padding-top: 3rem !important;\n  }\n  .pr-sm-5,\n  .px-sm-5 {\n    padding-right: 3rem !important;\n  }\n  .pb-sm-5,\n  .py-sm-5 {\n    padding-bottom: 3rem !important;\n  }\n  .pl-sm-5,\n  .px-sm-5 {\n    padding-left: 3rem !important;\n  }\n  .m-sm-n1 {\n    margin: -0.25rem !important;\n  }\n  .mt-sm-n1,\n  .my-sm-n1 {\n    margin-top: -0.25rem !important;\n  }\n  .mr-sm-n1,\n  .mx-sm-n1 {\n    margin-right: -0.25rem !important;\n  }\n  .mb-sm-n1,\n  .my-sm-n1 {\n    margin-bottom: -0.25rem !important;\n  }\n  .ml-sm-n1,\n  .mx-sm-n1 {\n    margin-left: -0.25rem !important;\n  }\n  .m-sm-n2 {\n    margin: -0.5rem !important;\n  }\n  .mt-sm-n2,\n  .my-sm-n2 {\n    margin-top: -0.5rem !important;\n  }\n  .mr-sm-n2,\n  .mx-sm-n2 {\n    margin-right: -0.5rem !important;\n  }\n  .mb-sm-n2,\n  .my-sm-n2 {\n    margin-bottom: -0.5rem !important;\n  }\n  .ml-sm-n2,\n  .mx-sm-n2 {\n    margin-left: -0.5rem !important;\n  }\n  .m-sm-n3 {\n    margin: -1rem !important;\n  }\n  .mt-sm-n3,\n  .my-sm-n3 {\n    margin-top: -1rem !important;\n  }\n  .mr-sm-n3,\n  .mx-sm-n3 {\n    margin-right: -1rem !important;\n  }\n  .mb-sm-n3,\n  .my-sm-n3 {\n    margin-bottom: -1rem !important;\n  }\n  .ml-sm-n3,\n  .mx-sm-n3 {\n    margin-left: -1rem !important;\n  }\n  .m-sm-n4 {\n    margin: -1.5rem !important;\n  }\n  .mt-sm-n4,\n  .my-sm-n4 {\n    margin-top: -1.5rem !important;\n  }\n  .mr-sm-n4,\n  .mx-sm-n4 {\n    margin-right: -1.5rem !important;\n  }\n  .mb-sm-n4,\n  .my-sm-n4 {\n    margin-bottom: -1.5rem !important;\n  }\n  .ml-sm-n4,\n  .mx-sm-n4 {\n    margin-left: -1.5rem !important;\n  }\n  .m-sm-n5 {\n    margin: -3rem !important;\n  }\n  .mt-sm-n5,\n  .my-sm-n5 {\n    margin-top: -3rem !important;\n  }\n  .mr-sm-n5,\n  .mx-sm-n5 {\n    margin-right: -3rem !important;\n  }\n  .mb-sm-n5,\n  .my-sm-n5 {\n    margin-bottom: -3rem !important;\n  }\n  .ml-sm-n5,\n  .mx-sm-n5 {\n    margin-left: -3rem !important;\n  }\n  .m-sm-auto {\n    margin: auto !important;\n  }\n  .mt-sm-auto,\n  .my-sm-auto {\n    margin-top: auto !important;\n  }\n  .mr-sm-auto,\n  .mx-sm-auto {\n    margin-right: auto !important;\n  }\n  .mb-sm-auto,\n  .my-sm-auto {\n    margin-bottom: auto !important;\n  }\n  .ml-sm-auto,\n  .mx-sm-auto {\n    margin-left: auto !important;\n  }\n}\n\n@media (min-width: 768px) {\n  .m-md-0 {\n    margin: 0 !important;\n  }\n  .mt-md-0,\n  .my-md-0 {\n    margin-top: 0 !important;\n  }\n  .mr-md-0,\n  .mx-md-0 {\n    margin-right: 0 !important;\n  }\n  .mb-md-0,\n  .my-md-0 {\n    margin-bottom: 0 !important;\n  }\n  .ml-md-0,\n  .mx-md-0 {\n    margin-left: 0 !important;\n  }\n  .m-md-1 {\n    margin: 0.25rem !important;\n  }\n  .mt-md-1,\n  .my-md-1 {\n    margin-top: 0.25rem !important;\n  }\n  .mr-md-1,\n  .mx-md-1 {\n    margin-right: 0.25rem !important;\n  }\n  .mb-md-1,\n  .my-md-1 {\n    margin-bottom: 0.25rem !important;\n  }\n  .ml-md-1,\n  .mx-md-1 {\n    margin-left: 0.25rem !important;\n  }\n  .m-md-2 {\n    margin: 0.5rem !important;\n  }\n  .mt-md-2,\n  .my-md-2 {\n    margin-top: 0.5rem !important;\n  }\n  .mr-md-2,\n  .mx-md-2 {\n    margin-right: 0.5rem !important;\n  }\n  .mb-md-2,\n  .my-md-2 {\n    margin-bottom: 0.5rem !important;\n  }\n  .ml-md-2,\n  .mx-md-2 {\n    margin-left: 0.5rem !important;\n  }\n  .m-md-3 {\n    margin: 1rem !important;\n  }\n  .mt-md-3,\n  .my-md-3 {\n    margin-top: 1rem !important;\n  }\n  .mr-md-3,\n  .mx-md-3 {\n    margin-right: 1rem !important;\n  }\n  .mb-md-3,\n  .my-md-3 {\n    margin-bottom: 1rem !important;\n  }\n  .ml-md-3,\n  .mx-md-3 {\n    margin-left: 1rem !important;\n  }\n  .m-md-4 {\n    margin: 1.5rem !important;\n  }\n  .mt-md-4,\n  .my-md-4 {\n    margin-top: 1.5rem !important;\n  }\n  .mr-md-4,\n  .mx-md-4 {\n    margin-right: 1.5rem !important;\n  }\n  .mb-md-4,\n  .my-md-4 {\n    margin-bottom: 1.5rem !important;\n  }\n  .ml-md-4,\n  .mx-md-4 {\n    margin-left: 1.5rem !important;\n  }\n  .m-md-5 {\n    margin: 3rem !important;\n  }\n  .mt-md-5,\n  .my-md-5 {\n    margin-top: 3rem !important;\n  }\n  .mr-md-5,\n  .mx-md-5 {\n    margin-right: 3rem !important;\n  }\n  .mb-md-5,\n  .my-md-5 {\n    margin-bottom: 3rem !important;\n  }\n  .ml-md-5,\n  .mx-md-5 {\n    margin-left: 3rem !important;\n  }\n  .p-md-0 {\n    padding: 0 !important;\n  }\n  .pt-md-0,\n  .py-md-0 {\n    padding-top: 0 !important;\n  }\n  .pr-md-0,\n  .px-md-0 {\n    padding-right: 0 !important;\n  }\n  .pb-md-0,\n  .py-md-0 {\n    padding-bottom: 0 !important;\n  }\n  .pl-md-0,\n  .px-md-0 {\n    padding-left: 0 !important;\n  }\n  .p-md-1 {\n    padding: 0.25rem !important;\n  }\n  .pt-md-1,\n  .py-md-1 {\n    padding-top: 0.25rem !important;\n  }\n  .pr-md-1,\n  .px-md-1 {\n    padding-right: 0.25rem !important;\n  }\n  .pb-md-1,\n  .py-md-1 {\n    padding-bottom: 0.25rem !important;\n  }\n  .pl-md-1,\n  .px-md-1 {\n    padding-left: 0.25rem !important;\n  }\n  .p-md-2 {\n    padding: 0.5rem !important;\n  }\n  .pt-md-2,\n  .py-md-2 {\n    padding-top: 0.5rem !important;\n  }\n  .pr-md-2,\n  .px-md-2 {\n    padding-right: 0.5rem !important;\n  }\n  .pb-md-2,\n  .py-md-2 {\n    padding-bottom: 0.5rem !important;\n  }\n  .pl-md-2,\n  .px-md-2 {\n    padding-left: 0.5rem !important;\n  }\n  .p-md-3 {\n    padding: 1rem !important;\n  }\n  .pt-md-3,\n  .py-md-3 {\n    padding-top: 1rem !important;\n  }\n  .pr-md-3,\n  .px-md-3 {\n    padding-right: 1rem !important;\n  }\n  .pb-md-3,\n  .py-md-3 {\n    padding-bottom: 1rem !important;\n  }\n  .pl-md-3,\n  .px-md-3 {\n    padding-left: 1rem !important;\n  }\n  .p-md-4 {\n    padding: 1.5rem !important;\n  }\n  .pt-md-4,\n  .py-md-4 {\n    padding-top: 1.5rem !important;\n  }\n  .pr-md-4,\n  .px-md-4 {\n    padding-right: 1.5rem !important;\n  }\n  .pb-md-4,\n  .py-md-4 {\n    padding-bottom: 1.5rem !important;\n  }\n  .pl-md-4,\n  .px-md-4 {\n    padding-left: 1.5rem !important;\n  }\n  .p-md-5 {\n    padding: 3rem !important;\n  }\n  .pt-md-5,\n  .py-md-5 {\n    padding-top: 3rem !important;\n  }\n  .pr-md-5,\n  .px-md-5 {\n    padding-right: 3rem !important;\n  }\n  .pb-md-5,\n  .py-md-5 {\n    padding-bottom: 3rem !important;\n  }\n  .pl-md-5,\n  .px-md-5 {\n    padding-left: 3rem !important;\n  }\n  .m-md-n1 {\n    margin: -0.25rem !important;\n  }\n  .mt-md-n1,\n  .my-md-n1 {\n    margin-top: -0.25rem !important;\n  }\n  .mr-md-n1,\n  .mx-md-n1 {\n    margin-right: -0.25rem !important;\n  }\n  .mb-md-n1,\n  .my-md-n1 {\n    margin-bottom: -0.25rem !important;\n  }\n  .ml-md-n1,\n  .mx-md-n1 {\n    margin-left: -0.25rem !important;\n  }\n  .m-md-n2 {\n    margin: -0.5rem !important;\n  }\n  .mt-md-n2,\n  .my-md-n2 {\n    margin-top: -0.5rem !important;\n  }\n  .mr-md-n2,\n  .mx-md-n2 {\n    margin-right: -0.5rem !important;\n  }\n  .mb-md-n2,\n  .my-md-n2 {\n    margin-bottom: -0.5rem !important;\n  }\n  .ml-md-n2,\n  .mx-md-n2 {\n    margin-left: -0.5rem !important;\n  }\n  .m-md-n3 {\n    margin: -1rem !important;\n  }\n  .mt-md-n3,\n  .my-md-n3 {\n    margin-top: -1rem !important;\n  }\n  .mr-md-n3,\n  .mx-md-n3 {\n    margin-right: -1rem !important;\n  }\n  .mb-md-n3,\n  .my-md-n3 {\n    margin-bottom: -1rem !important;\n  }\n  .ml-md-n3,\n  .mx-md-n3 {\n    margin-left: -1rem !important;\n  }\n  .m-md-n4 {\n    margin: -1.5rem !important;\n  }\n  .mt-md-n4,\n  .my-md-n4 {\n    margin-top: -1.5rem !important;\n  }\n  .mr-md-n4,\n  .mx-md-n4 {\n    margin-right: -1.5rem !important;\n  }\n  .mb-md-n4,\n  .my-md-n4 {\n    margin-bottom: -1.5rem !important;\n  }\n  .ml-md-n4,\n  .mx-md-n4 {\n    margin-left: -1.5rem !important;\n  }\n  .m-md-n5 {\n    margin: -3rem !important;\n  }\n  .mt-md-n5,\n  .my-md-n5 {\n    margin-top: -3rem !important;\n  }\n  .mr-md-n5,\n  .mx-md-n5 {\n    margin-right: -3rem !important;\n  }\n  .mb-md-n5,\n  .my-md-n5 {\n    margin-bottom: -3rem !important;\n  }\n  .ml-md-n5,\n  .mx-md-n5 {\n    margin-left: -3rem !important;\n  }\n  .m-md-auto {\n    margin: auto !important;\n  }\n  .mt-md-auto,\n  .my-md-auto {\n    margin-top: auto !important;\n  }\n  .mr-md-auto,\n  .mx-md-auto {\n    margin-right: auto !important;\n  }\n  .mb-md-auto,\n  .my-md-auto {\n    margin-bottom: auto !important;\n  }\n  .ml-md-auto,\n  .mx-md-auto {\n    margin-left: auto !important;\n  }\n}\n\n@media (min-width: 992px) {\n  .m-lg-0 {\n    margin: 0 !important;\n  }\n  .mt-lg-0,\n  .my-lg-0 {\n    margin-top: 0 !important;\n  }\n  .mr-lg-0,\n  .mx-lg-0 {\n    margin-right: 0 !important;\n  }\n  .mb-lg-0,\n  .my-lg-0 {\n    margin-bottom: 0 !important;\n  }\n  .ml-lg-0,\n  .mx-lg-0 {\n    margin-left: 0 !important;\n  }\n  .m-lg-1 {\n    margin: 0.25rem !important;\n  }\n  .mt-lg-1,\n  .my-lg-1 {\n    margin-top: 0.25rem !important;\n  }\n  .mr-lg-1,\n  .mx-lg-1 {\n    margin-right: 0.25rem !important;\n  }\n  .mb-lg-1,\n  .my-lg-1 {\n    margin-bottom: 0.25rem !important;\n  }\n  .ml-lg-1,\n  .mx-lg-1 {\n    margin-left: 0.25rem !important;\n  }\n  .m-lg-2 {\n    margin: 0.5rem !important;\n  }\n  .mt-lg-2,\n  .my-lg-2 {\n    margin-top: 0.5rem !important;\n  }\n  .mr-lg-2,\n  .mx-lg-2 {\n    margin-right: 0.5rem !important;\n  }\n  .mb-lg-2,\n  .my-lg-2 {\n    margin-bottom: 0.5rem !important;\n  }\n  .ml-lg-2,\n  .mx-lg-2 {\n    margin-left: 0.5rem !important;\n  }\n  .m-lg-3 {\n    margin: 1rem !important;\n  }\n  .mt-lg-3,\n  .my-lg-3 {\n    margin-top: 1rem !important;\n  }\n  .mr-lg-3,\n  .mx-lg-3 {\n    margin-right: 1rem !important;\n  }\n  .mb-lg-3,\n  .my-lg-3 {\n    margin-bottom: 1rem !important;\n  }\n  .ml-lg-3,\n  .mx-lg-3 {\n    margin-left: 1rem !important;\n  }\n  .m-lg-4 {\n    margin: 1.5rem !important;\n  }\n  .mt-lg-4,\n  .my-lg-4 {\n    margin-top: 1.5rem !important;\n  }\n  .mr-lg-4,\n  .mx-lg-4 {\n    margin-right: 1.5rem !important;\n  }\n  .mb-lg-4,\n  .my-lg-4 {\n    margin-bottom: 1.5rem !important;\n  }\n  .ml-lg-4,\n  .mx-lg-4 {\n    margin-left: 1.5rem !important;\n  }\n  .m-lg-5 {\n    margin: 3rem !important;\n  }\n  .mt-lg-5,\n  .my-lg-5 {\n    margin-top: 3rem !important;\n  }\n  .mr-lg-5,\n  .mx-lg-5 {\n    margin-right: 3rem !important;\n  }\n  .mb-lg-5,\n  .my-lg-5 {\n    margin-bottom: 3rem !important;\n  }\n  .ml-lg-5,\n  .mx-lg-5 {\n    margin-left: 3rem !important;\n  }\n  .p-lg-0 {\n    padding: 0 !important;\n  }\n  .pt-lg-0,\n  .py-lg-0 {\n    padding-top: 0 !important;\n  }\n  .pr-lg-0,\n  .px-lg-0 {\n    padding-right: 0 !important;\n  }\n  .pb-lg-0,\n  .py-lg-0 {\n    padding-bottom: 0 !important;\n  }\n  .pl-lg-0,\n  .px-lg-0 {\n    padding-left: 0 !important;\n  }\n  .p-lg-1 {\n    padding: 0.25rem !important;\n  }\n  .pt-lg-1,\n  .py-lg-1 {\n    padding-top: 0.25rem !important;\n  }\n  .pr-lg-1,\n  .px-lg-1 {\n    padding-right: 0.25rem !important;\n  }\n  .pb-lg-1,\n  .py-lg-1 {\n    padding-bottom: 0.25rem !important;\n  }\n  .pl-lg-1,\n  .px-lg-1 {\n    padding-left: 0.25rem !important;\n  }\n  .p-lg-2 {\n    padding: 0.5rem !important;\n  }\n  .pt-lg-2,\n  .py-lg-2 {\n    padding-top: 0.5rem !important;\n  }\n  .pr-lg-2,\n  .px-lg-2 {\n    padding-right: 0.5rem !important;\n  }\n  .pb-lg-2,\n  .py-lg-2 {\n    padding-bottom: 0.5rem !important;\n  }\n  .pl-lg-2,\n  .px-lg-2 {\n    padding-left: 0.5rem !important;\n  }\n  .p-lg-3 {\n    padding: 1rem !important;\n  }\n  .pt-lg-3,\n  .py-lg-3 {\n    padding-top: 1rem !important;\n  }\n  .pr-lg-3,\n  .px-lg-3 {\n    padding-right: 1rem !important;\n  }\n  .pb-lg-3,\n  .py-lg-3 {\n    padding-bottom: 1rem !important;\n  }\n  .pl-lg-3,\n  .px-lg-3 {\n    padding-left: 1rem !important;\n  }\n  .p-lg-4 {\n    padding: 1.5rem !important;\n  }\n  .pt-lg-4,\n  .py-lg-4 {\n    padding-top: 1.5rem !important;\n  }\n  .pr-lg-4,\n  .px-lg-4 {\n    padding-right: 1.5rem !important;\n  }\n  .pb-lg-4,\n  .py-lg-4 {\n    padding-bottom: 1.5rem !important;\n  }\n  .pl-lg-4,\n  .px-lg-4 {\n    padding-left: 1.5rem !important;\n  }\n  .p-lg-5 {\n    padding: 3rem !important;\n  }\n  .pt-lg-5,\n  .py-lg-5 {\n    padding-top: 3rem !important;\n  }\n  .pr-lg-5,\n  .px-lg-5 {\n    padding-right: 3rem !important;\n  }\n  .pb-lg-5,\n  .py-lg-5 {\n    padding-bottom: 3rem !important;\n  }\n  .pl-lg-5,\n  .px-lg-5 {\n    padding-left: 3rem !important;\n  }\n  .m-lg-n1 {\n    margin: -0.25rem !important;\n  }\n  .mt-lg-n1,\n  .my-lg-n1 {\n    margin-top: -0.25rem !important;\n  }\n  .mr-lg-n1,\n  .mx-lg-n1 {\n    margin-right: -0.25rem !important;\n  }\n  .mb-lg-n1,\n  .my-lg-n1 {\n    margin-bottom: -0.25rem !important;\n  }\n  .ml-lg-n1,\n  .mx-lg-n1 {\n    margin-left: -0.25rem !important;\n  }\n  .m-lg-n2 {\n    margin: -0.5rem !important;\n  }\n  .mt-lg-n2,\n  .my-lg-n2 {\n    margin-top: -0.5rem !important;\n  }\n  .mr-lg-n2,\n  .mx-lg-n2 {\n    margin-right: -0.5rem !important;\n  }\n  .mb-lg-n2,\n  .my-lg-n2 {\n    margin-bottom: -0.5rem !important;\n  }\n  .ml-lg-n2,\n  .mx-lg-n2 {\n    margin-left: -0.5rem !important;\n  }\n  .m-lg-n3 {\n    margin: -1rem !important;\n  }\n  .mt-lg-n3,\n  .my-lg-n3 {\n    margin-top: -1rem !important;\n  }\n  .mr-lg-n3,\n  .mx-lg-n3 {\n    margin-right: -1rem !important;\n  }\n  .mb-lg-n3,\n  .my-lg-n3 {\n    margin-bottom: -1rem !important;\n  }\n  .ml-lg-n3,\n  .mx-lg-n3 {\n    margin-left: -1rem !important;\n  }\n  .m-lg-n4 {\n    margin: -1.5rem !important;\n  }\n  .mt-lg-n4,\n  .my-lg-n4 {\n    margin-top: -1.5rem !important;\n  }\n  .mr-lg-n4,\n  .mx-lg-n4 {\n    margin-right: -1.5rem !important;\n  }\n  .mb-lg-n4,\n  .my-lg-n4 {\n    margin-bottom: -1.5rem !important;\n  }\n  .ml-lg-n4,\n  .mx-lg-n4 {\n    margin-left: -1.5rem !important;\n  }\n  .m-lg-n5 {\n    margin: -3rem !important;\n  }\n  .mt-lg-n5,\n  .my-lg-n5 {\n    margin-top: -3rem !important;\n  }\n  .mr-lg-n5,\n  .mx-lg-n5 {\n    margin-right: -3rem !important;\n  }\n  .mb-lg-n5,\n  .my-lg-n5 {\n    margin-bottom: -3rem !important;\n  }\n  .ml-lg-n5,\n  .mx-lg-n5 {\n    margin-left: -3rem !important;\n  }\n  .m-lg-auto {\n    margin: auto !important;\n  }\n  .mt-lg-auto,\n  .my-lg-auto {\n    margin-top: auto !important;\n  }\n  .mr-lg-auto,\n  .mx-lg-auto {\n    margin-right: auto !important;\n  }\n  .mb-lg-auto,\n  .my-lg-auto {\n    margin-bottom: auto !important;\n  }\n  .ml-lg-auto,\n  .mx-lg-auto {\n    margin-left: auto !important;\n  }\n}\n\n@media (min-width: 1200px) {\n  .m-xl-0 {\n    margin: 0 !important;\n  }\n  .mt-xl-0,\n  .my-xl-0 {\n    margin-top: 0 !important;\n  }\n  .mr-xl-0,\n  .mx-xl-0 {\n    margin-right: 0 !important;\n  }\n  .mb-xl-0,\n  .my-xl-0 {\n    margin-bottom: 0 !important;\n  }\n  .ml-xl-0,\n  .mx-xl-0 {\n    margin-left: 0 !important;\n  }\n  .m-xl-1 {\n    margin: 0.25rem !important;\n  }\n  .mt-xl-1,\n  .my-xl-1 {\n    margin-top: 0.25rem !important;\n  }\n  .mr-xl-1,\n  .mx-xl-1 {\n    margin-right: 0.25rem !important;\n  }\n  .mb-xl-1,\n  .my-xl-1 {\n    margin-bottom: 0.25rem !important;\n  }\n  .ml-xl-1,\n  .mx-xl-1 {\n    margin-left: 0.25rem !important;\n  }\n  .m-xl-2 {\n    margin: 0.5rem !important;\n  }\n  .mt-xl-2,\n  .my-xl-2 {\n    margin-top: 0.5rem !important;\n  }\n  .mr-xl-2,\n  .mx-xl-2 {\n    margin-right: 0.5rem !important;\n  }\n  .mb-xl-2,\n  .my-xl-2 {\n    margin-bottom: 0.5rem !important;\n  }\n  .ml-xl-2,\n  .mx-xl-2 {\n    margin-left: 0.5rem !important;\n  }\n  .m-xl-3 {\n    margin: 1rem !important;\n  }\n  .mt-xl-3,\n  .my-xl-3 {\n    margin-top: 1rem !important;\n  }\n  .mr-xl-3,\n  .mx-xl-3 {\n    margin-right: 1rem !important;\n  }\n  .mb-xl-3,\n  .my-xl-3 {\n    margin-bottom: 1rem !important;\n  }\n  .ml-xl-3,\n  .mx-xl-3 {\n    margin-left: 1rem !important;\n  }\n  .m-xl-4 {\n    margin: 1.5rem !important;\n  }\n  .mt-xl-4,\n  .my-xl-4 {\n    margin-top: 1.5rem !important;\n  }\n  .mr-xl-4,\n  .mx-xl-4 {\n    margin-right: 1.5rem !important;\n  }\n  .mb-xl-4,\n  .my-xl-4 {\n    margin-bottom: 1.5rem !important;\n  }\n  .ml-xl-4,\n  .mx-xl-4 {\n    margin-left: 1.5rem !important;\n  }\n  .m-xl-5 {\n    margin: 3rem !important;\n  }\n  .mt-xl-5,\n  .my-xl-5 {\n    margin-top: 3rem !important;\n  }\n  .mr-xl-5,\n  .mx-xl-5 {\n    margin-right: 3rem !important;\n  }\n  .mb-xl-5,\n  .my-xl-5 {\n    margin-bottom: 3rem !important;\n  }\n  .ml-xl-5,\n  .mx-xl-5 {\n    margin-left: 3rem !important;\n  }\n  .p-xl-0 {\n    padding: 0 !important;\n  }\n  .pt-xl-0,\n  .py-xl-0 {\n    padding-top: 0 !important;\n  }\n  .pr-xl-0,\n  .px-xl-0 {\n    padding-right: 0 !important;\n  }\n  .pb-xl-0,\n  .py-xl-0 {\n    padding-bottom: 0 !important;\n  }\n  .pl-xl-0,\n  .px-xl-0 {\n    padding-left: 0 !important;\n  }\n  .p-xl-1 {\n    padding: 0.25rem !important;\n  }\n  .pt-xl-1,\n  .py-xl-1 {\n    padding-top: 0.25rem !important;\n  }\n  .pr-xl-1,\n  .px-xl-1 {\n    padding-right: 0.25rem !important;\n  }\n  .pb-xl-1,\n  .py-xl-1 {\n    padding-bottom: 0.25rem !important;\n  }\n  .pl-xl-1,\n  .px-xl-1 {\n    padding-left: 0.25rem !important;\n  }\n  .p-xl-2 {\n    padding: 0.5rem !important;\n  }\n  .pt-xl-2,\n  .py-xl-2 {\n    padding-top: 0.5rem !important;\n  }\n  .pr-xl-2,\n  .px-xl-2 {\n    padding-right: 0.5rem !important;\n  }\n  .pb-xl-2,\n  .py-xl-2 {\n    padding-bottom: 0.5rem !important;\n  }\n  .pl-xl-2,\n  .px-xl-2 {\n    padding-left: 0.5rem !important;\n  }\n  .p-xl-3 {\n    padding: 1rem !important;\n  }\n  .pt-xl-3,\n  .py-xl-3 {\n    padding-top: 1rem !important;\n  }\n  .pr-xl-3,\n  .px-xl-3 {\n    padding-right: 1rem !important;\n  }\n  .pb-xl-3,\n  .py-xl-3 {\n    padding-bottom: 1rem !important;\n  }\n  .pl-xl-3,\n  .px-xl-3 {\n    padding-left: 1rem !important;\n  }\n  .p-xl-4 {\n    padding: 1.5rem !important;\n  }\n  .pt-xl-4,\n  .py-xl-4 {\n    padding-top: 1.5rem !important;\n  }\n  .pr-xl-4,\n  .px-xl-4 {\n    padding-right: 1.5rem !important;\n  }\n  .pb-xl-4,\n  .py-xl-4 {\n    padding-bottom: 1.5rem !important;\n  }\n  .pl-xl-4,\n  .px-xl-4 {\n    padding-left: 1.5rem !important;\n  }\n  .p-xl-5 {\n    padding: 3rem !important;\n  }\n  .pt-xl-5,\n  .py-xl-5 {\n    padding-top: 3rem !important;\n  }\n  .pr-xl-5,\n  .px-xl-5 {\n    padding-right: 3rem !important;\n  }\n  .pb-xl-5,\n  .py-xl-5 {\n    padding-bottom: 3rem !important;\n  }\n  .pl-xl-5,\n  .px-xl-5 {\n    padding-left: 3rem !important;\n  }\n  .m-xl-n1 {\n    margin: -0.25rem !important;\n  }\n  .mt-xl-n1,\n  .my-xl-n1 {\n    margin-top: -0.25rem !important;\n  }\n  .mr-xl-n1,\n  .mx-xl-n1 {\n    margin-right: -0.25rem !important;\n  }\n  .mb-xl-n1,\n  .my-xl-n1 {\n    margin-bottom: -0.25rem !important;\n  }\n  .ml-xl-n1,\n  .mx-xl-n1 {\n    margin-left: -0.25rem !important;\n  }\n  .m-xl-n2 {\n    margin: -0.5rem !important;\n  }\n  .mt-xl-n2,\n  .my-xl-n2 {\n    margin-top: -0.5rem !important;\n  }\n  .mr-xl-n2,\n  .mx-xl-n2 {\n    margin-right: -0.5rem !important;\n  }\n  .mb-xl-n2,\n  .my-xl-n2 {\n    margin-bottom: -0.5rem !important;\n  }\n  .ml-xl-n2,\n  .mx-xl-n2 {\n    margin-left: -0.5rem !important;\n  }\n  .m-xl-n3 {\n    margin: -1rem !important;\n  }\n  .mt-xl-n3,\n  .my-xl-n3 {\n    margin-top: -1rem !important;\n  }\n  .mr-xl-n3,\n  .mx-xl-n3 {\n    margin-right: -1rem !important;\n  }\n  .mb-xl-n3,\n  .my-xl-n3 {\n    margin-bottom: -1rem !important;\n  }\n  .ml-xl-n3,\n  .mx-xl-n3 {\n    margin-left: -1rem !important;\n  }\n  .m-xl-n4 {\n    margin: -1.5rem !important;\n  }\n  .mt-xl-n4,\n  .my-xl-n4 {\n    margin-top: -1.5rem !important;\n  }\n  .mr-xl-n4,\n  .mx-xl-n4 {\n    margin-right: -1.5rem !important;\n  }\n  .mb-xl-n4,\n  .my-xl-n4 {\n    margin-bottom: -1.5rem !important;\n  }\n  .ml-xl-n4,\n  .mx-xl-n4 {\n    margin-left: -1.5rem !important;\n  }\n  .m-xl-n5 {\n    margin: -3rem !important;\n  }\n  .mt-xl-n5,\n  .my-xl-n5 {\n    margin-top: -3rem !important;\n  }\n  .mr-xl-n5,\n  .mx-xl-n5 {\n    margin-right: -3rem !important;\n  }\n  .mb-xl-n5,\n  .my-xl-n5 {\n    margin-bottom: -3rem !important;\n  }\n  .ml-xl-n5,\n  .mx-xl-n5 {\n    margin-left: -3rem !important;\n  }\n  .m-xl-auto {\n    margin: auto !important;\n  }\n  .mt-xl-auto,\n  .my-xl-auto {\n    margin-top: auto !important;\n  }\n  .mr-xl-auto,\n  .mx-xl-auto {\n    margin-right: auto !important;\n  }\n  .mb-xl-auto,\n  .my-xl-auto {\n    margin-bottom: auto !important;\n  }\n  .ml-xl-auto,\n  .mx-xl-auto {\n    margin-left: auto !important;\n  }\n}\n\n.text-monospace {\n  font-family: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n}\n\n.text-justify {\n  text-align: justify !important;\n}\n\n.text-wrap {\n  white-space: normal !important;\n}\n\n.text-nowrap {\n  white-space: nowrap !important;\n}\n\n.text-truncate {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.text-left {\n  text-align: left !important;\n}\n\n.text-right {\n  text-align: right !important;\n}\n\n.text-center {\n  text-align: center !important;\n}\n\n@media (min-width: 576px) {\n  .text-sm-left {\n    text-align: left !important;\n  }\n  .text-sm-right {\n    text-align: right !important;\n  }\n  .text-sm-center {\n    text-align: center !important;\n  }\n}\n\n@media (min-width: 768px) {\n  .text-md-left {\n    text-align: left !important;\n  }\n  .text-md-right {\n    text-align: right !important;\n  }\n  .text-md-center {\n    text-align: center !important;\n  }\n}\n\n@media (min-width: 992px) {\n  .text-lg-left {\n    text-align: left !important;\n  }\n  .text-lg-right {\n    text-align: right !important;\n  }\n  .text-lg-center {\n    text-align: center !important;\n  }\n}\n\n@media (min-width: 1200px) {\n  .text-xl-left {\n    text-align: left !important;\n  }\n  .text-xl-right {\n    text-align: right !important;\n  }\n  .text-xl-center {\n    text-align: center !important;\n  }\n}\n\n.text-lowercase {\n  text-transform: lowercase !important;\n}\n\n.text-uppercase {\n  text-transform: uppercase !important;\n}\n\n.text-capitalize {\n  text-transform: capitalize !important;\n}\n\n.font-weight-light {\n  font-weight: 300 !important;\n}\n\n.font-weight-lighter {\n  font-weight: lighter !important;\n}\n\n.font-weight-normal {\n  font-weight: 400 !important;\n}\n\n.font-weight-bold {\n  font-weight: 700 !important;\n}\n\n.font-weight-bolder {\n  font-weight: bolder !important;\n}\n\n.font-italic {\n  font-style: italic !important;\n}\n\n.text-white {\n  color: #fff !important;\n}\n\n.text-primary {\n  color: #007bff !important;\n}\n\na.text-primary:hover, a.text-primary:focus {\n  color: #0056b3 !important;\n}\n\n.text-secondary {\n  color: #6c757d !important;\n}\n\na.text-secondary:hover, a.text-secondary:focus {\n  color: #494f54 !important;\n}\n\n.text-success {\n  color: #28a745 !important;\n}\n\na.text-success:hover, a.text-success:focus {\n  color: #19692c !important;\n}\n\n.text-info {\n  color: #17a2b8 !important;\n}\n\na.text-info:hover, a.text-info:focus {\n  color: #0f6674 !important;\n}\n\n.text-warning {\n  color: #ffc107 !important;\n}\n\na.text-warning:hover, a.text-warning:focus {\n  color: #ba8b00 !important;\n}\n\n.text-danger {\n  color: #dc3545 !important;\n}\n\na.text-danger:hover, a.text-danger:focus {\n  color: #a71d2a !important;\n}\n\n.text-light {\n  color: #f8f9fa !important;\n}\n\na.text-light:hover, a.text-light:focus {\n  color: #cbd3da !important;\n}\n\n.text-dark {\n  color: #343a40 !important;\n}\n\na.text-dark:hover, a.text-dark:focus {\n  color: #121416 !important;\n}\n\n.text-body {\n  color: #212529 !important;\n}\n\n.text-muted {\n  color: #6c757d !important;\n}\n\n.text-black-50 {\n  color: rgba(0, 0, 0, 0.5) !important;\n}\n\n.text-white-50 {\n  color: rgba(255, 255, 255, 0.5) !important;\n}\n\n.text-hide {\n  font: 0/0 a;\n  color: transparent;\n  text-shadow: none;\n  background-color: transparent;\n  border: 0;\n}\n\n.text-decoration-none {\n  text-decoration: none !important;\n}\n\n.text-reset {\n  color: inherit !important;\n}\n\n.visible {\n  visibility: visible !important;\n}\n\n.invisible {\n  visibility: hidden !important;\n}\n\n@media print {\n  *,\n  *::before,\n  *::after {\n    text-shadow: none !important;\n    box-shadow: none !important;\n  }\n  a:not(.btn) {\n    text-decoration: underline;\n  }\n  abbr[title]::after {\n    content: \" (\" attr(title) \")\";\n  }\n  pre {\n    white-space: pre-wrap !important;\n  }\n  pre,\n  blockquote {\n    border: 1px solid #adb5bd;\n    page-break-inside: avoid;\n  }\n  thead {\n    display: table-header-group;\n  }\n  tr,\n  img {\n    page-break-inside: avoid;\n  }\n  p,\n  h2,\n  h3 {\n    orphans: 3;\n    widows: 3;\n  }\n  h2,\n  h3 {\n    page-break-after: avoid;\n  }\n  @page {\n    size: a3;\n  }\n  body {\n    min-width: 992px !important;\n  }\n  .container {\n    min-width: 992px !important;\n  }\n  .navbar {\n    display: none;\n  }\n  .badge {\n    border: 1px solid #000;\n  }\n  .table {\n    border-collapse: collapse !important;\n  }\n  .table td,\n  .table th {\n    background-color: #fff !important;\n  }\n  .table-bordered th,\n  .table-bordered td {\n    border: 1px solid #dee2e6 !important;\n  }\n  .table-dark {\n    color: inherit;\n  }\n  .table-dark th,\n  .table-dark td,\n  .table-dark thead th,\n  .table-dark tbody + tbody {\n    border-color: #dee2e6;\n  }\n  .table .thead-dark th {\n    color: inherit;\n    border-color: #dee2e6;\n  }\n}\n/*# sourceMappingURL=bootstrap.css.map */"
  },
  {
    "path": "student/content/mdb/css/mdb.css",
    "content": "/*!\n * Material Design for Bootstrap 4\n * Version: MDB FREE 4.7.0\n *\n *\n * Copyright: Material Design for Bootstrap\n * https://mdbootstrap.com/\n *\n * Read the license: https://mdbootstrap.com/general/license/\n *\n *\n * Documentation: https://mdbootstrap.com/\n *\n * Getting started: https://mdbootstrap.com/docs/jquery/getting-started/download/\n *\n * Tutorials: https://mdbootstrap.com/education/bootstrap/\n *\n * Templates: https://mdbootstrap.com/templates/\n *\n * Support: https://mdbootstrap.com/support/\n *\n * Contact: office@mdbootstrap.com\n *\n * Attribution: Animate CSS, Twitter Bootstrap, Materialize CSS, Normalize CSS, Waves JS, WOW JS, Toastr, Chart.js , Hammer.js\n *\n */\n/*** Global ***/\n.mdb-color.lighten-5 {\n  background-color: #d0d6e2 !important; }\n\n.mdb-color.lighten-4 {\n  background-color: #b1bace !important; }\n\n.mdb-color.lighten-3 {\n  background-color: #929fba !important; }\n\n.mdb-color.lighten-2 {\n  background-color: #7283a7 !important; }\n\n.mdb-color.lighten-1 {\n  background-color: #59698d !important; }\n\n.mdb-color {\n  background-color: #45526e !important; }\n\n.mdb-color-text {\n  color: #45526e !important; }\n\n.rgba-mdb-color-slight,\n.rgba-mdb-color-slight:after {\n  background-color: rgba(69, 82, 110, 0.1); }\n\n.rgba-mdb-color-light,\n.rgba-mdb-color-light:after {\n  background-color: rgba(69, 82, 110, 0.3); }\n\n.rgba-mdb-color-strong,\n.rgba-mdb-color-strong:after {\n  background-color: rgba(69, 82, 110, 0.7); }\n\n.mdb-color.darken-1 {\n  background-color: #3b465e !important; }\n\n.mdb-color.darken-2 {\n  background-color: #2e3951 !important; }\n\n.mdb-color.darken-3 {\n  background-color: #1c2a48 !important; }\n\n.mdb-color.darken-4 {\n  background-color: #1c2331 !important; }\n\n.red.lighten-5 {\n  background-color: #ffebee !important; }\n\n.red.lighten-4 {\n  background-color: #ffcdd2 !important; }\n\n.red.lighten-3 {\n  background-color: #ef9a9a !important; }\n\n.red.lighten-2 {\n  background-color: #e57373 !important; }\n\n.red.lighten-1 {\n  background-color: #ef5350 !important; }\n\n.red {\n  background-color: #f44336 !important; }\n\n.red-text {\n  color: #f44336 !important; }\n\n.rgba-red-slight,\n.rgba-red-slight:after {\n  background-color: rgba(244, 67, 54, 0.1); }\n\n.rgba-red-light,\n.rgba-red-light:after {\n  background-color: rgba(244, 67, 54, 0.3); }\n\n.rgba-red-strong,\n.rgba-red-strong:after {\n  background-color: rgba(244, 67, 54, 0.7); }\n\n.red.darken-1 {\n  background-color: #e53935 !important; }\n\n.red.darken-2 {\n  background-color: #d32f2f !important; }\n\n.red.darken-3 {\n  background-color: #c62828 !important; }\n\n.red.darken-4 {\n  background-color: #b71c1c !important; }\n\n.red.accent-1 {\n  background-color: #ff8a80 !important; }\n\n.red.accent-2 {\n  background-color: #ff5252 !important; }\n\n.red.accent-3 {\n  background-color: #ff1744 !important; }\n\n.red.accent-4 {\n  background-color: #d50000 !important; }\n\n.pink.lighten-5 {\n  background-color: #fce4ec !important; }\n\n.pink.lighten-4 {\n  background-color: #f8bbd0 !important; }\n\n.pink.lighten-3 {\n  background-color: #f48fb1 !important; }\n\n.pink.lighten-2 {\n  background-color: #f06292 !important; }\n\n.pink.lighten-1 {\n  background-color: #ec407a !important; }\n\n.pink {\n  background-color: #e91e63 !important; }\n\n.pink-text {\n  color: #e91e63 !important; }\n\n.rgba-pink-slight,\n.rgba-pink-slight:after {\n  background-color: rgba(233, 30, 99, 0.1); }\n\n.rgba-pink-light,\n.rgba-pink-light:after {\n  background-color: rgba(233, 30, 99, 0.3); }\n\n.rgba-pink-strong,\n.rgba-pink-strong:after {\n  background-color: rgba(233, 30, 99, 0.7); }\n\n.pink.darken-1 {\n  background-color: #d81b60 !important; }\n\n.pink.darken-2 {\n  background-color: #c2185b !important; }\n\n.pink.darken-3 {\n  background-color: #ad1457 !important; }\n\n.pink.darken-4 {\n  background-color: #880e4f !important; }\n\n.pink.accent-1 {\n  background-color: #ff80ab !important; }\n\n.pink.accent-2 {\n  background-color: #ff4081 !important; }\n\n.pink.accent-3 {\n  background-color: #f50057 !important; }\n\n.pink.accent-4 {\n  background-color: #c51162 !important; }\n\n.purple.lighten-5 {\n  background-color: #f3e5f5 !important; }\n\n.purple.lighten-4 {\n  background-color: #e1bee7 !important; }\n\n.purple.lighten-3 {\n  background-color: #ce93d8 !important; }\n\n.purple.lighten-2 {\n  background-color: #ba68c8 !important; }\n\n.purple.lighten-1 {\n  background-color: #ab47bc !important; }\n\n.purple {\n  background-color: #9c27b0 !important; }\n\n.purple-text {\n  color: #9c27b0 !important; }\n\n.rgba-purple-slight,\n.rgba-purple-slight:after {\n  background-color: rgba(156, 39, 176, 0.1); }\n\n.rgba-purple-light,\n.rgba-purple-light:after {\n  background-color: rgba(156, 39, 176, 0.3); }\n\n.rgba-purple-strong,\n.rgba-purple-strong:after {\n  background-color: rgba(156, 39, 176, 0.7); }\n\n.purple.darken-1 {\n  background-color: #8e24aa !important; }\n\n.purple.darken-2 {\n  background-color: #7b1fa2 !important; }\n\n.purple.darken-3 {\n  background-color: #6a1b9a !important; }\n\n.purple.darken-4 {\n  background-color: #4a148c !important; }\n\n.purple.accent-1 {\n  background-color: #ea80fc !important; }\n\n.purple.accent-2 {\n  background-color: #e040fb !important; }\n\n.purple.accent-3 {\n  background-color: #d500f9 !important; }\n\n.purple.accent-4 {\n  background-color: #aa00ff !important; }\n\n.deep-purple.lighten-5 {\n  background-color: #ede7f6 !important; }\n\n.deep-purple.lighten-4 {\n  background-color: #d1c4e9 !important; }\n\n.deep-purple.lighten-3 {\n  background-color: #b39ddb !important; }\n\n.deep-purple.lighten-2 {\n  background-color: #9575cd !important; }\n\n.deep-purple.lighten-1 {\n  background-color: #7e57c2 !important; }\n\n.deep-purple {\n  background-color: #673ab7 !important; }\n\n.deep-purple-text {\n  color: #673ab7 !important; }\n\n.rgba-deep-purple-slight,\n.rgba-deep-purple-slight:after {\n  background-color: rgba(103, 58, 183, 0.1); }\n\n.rgba-deep-purple-light,\n.rgba-deep-purple-light:after {\n  background-color: rgba(103, 58, 183, 0.3); }\n\n.rgba-deep-purple-strong,\n.rgba-deep-purple-strong:after {\n  background-color: rgba(103, 58, 183, 0.7); }\n\n.deep-purple.darken-1 {\n  background-color: #5e35b1 !important; }\n\n.deep-purple.darken-2 {\n  background-color: #512da8 !important; }\n\n.deep-purple.darken-3 {\n  background-color: #4527a0 !important; }\n\n.deep-purple.darken-4 {\n  background-color: #311b92 !important; }\n\n.deep-purple.accent-1 {\n  background-color: #b388ff !important; }\n\n.deep-purple.accent-2 {\n  background-color: #7c4dff !important; }\n\n.deep-purple.accent-3 {\n  background-color: #651fff !important; }\n\n.deep-purple.accent-4 {\n  background-color: #6200ea !important; }\n\n.indigo.lighten-5 {\n  background-color: #e8eaf6 !important; }\n\n.indigo.lighten-4 {\n  background-color: #c5cae9 !important; }\n\n.indigo.lighten-3 {\n  background-color: #9fa8da !important; }\n\n.indigo.lighten-2 {\n  background-color: #7986cb !important; }\n\n.indigo.lighten-1 {\n  background-color: #5c6bc0 !important; }\n\n.indigo {\n  background-color: #3f51b5 !important; }\n\n.indigo-text {\n  color: #3f51b5 !important; }\n\n.rgba-indigo-slight,\n.rgba-indigo-slight:after {\n  background-color: rgba(63, 81, 181, 0.1); }\n\n.rgba-indigo-light,\n.rgba-indigo-light:after {\n  background-color: rgba(63, 81, 181, 0.3); }\n\n.rgba-indigo-strong,\n.rgba-indigo-strong:after {\n  background-color: rgba(63, 81, 181, 0.7); }\n\n.indigo.darken-1 {\n  background-color: #3949ab !important; }\n\n.indigo.darken-2 {\n  background-color: #303f9f !important; }\n\n.indigo.darken-3 {\n  background-color: #283593 !important; }\n\n.indigo.darken-4 {\n  background-color: #1a237e !important; }\n\n.indigo.accent-1 {\n  background-color: #8c9eff !important; }\n\n.indigo.accent-2 {\n  background-color: #536dfe !important; }\n\n.indigo.accent-3 {\n  background-color: #3d5afe !important; }\n\n.indigo.accent-4 {\n  background-color: #304ffe !important; }\n\n.blue.lighten-5 {\n  background-color: #e3f2fd !important; }\n\n.blue.lighten-4 {\n  background-color: #bbdefb !important; }\n\n.blue.lighten-3 {\n  background-color: #90caf9 !important; }\n\n.blue.lighten-2 {\n  background-color: #64b5f6 !important; }\n\n.blue.lighten-1 {\n  background-color: #42a5f5 !important; }\n\n.blue {\n  background-color: #2196f3 !important; }\n\n.blue-text {\n  color: #2196f3 !important; }\n\n.rgba-blue-slight,\n.rgba-blue-slight:after {\n  background-color: rgba(33, 150, 243, 0.1); }\n\n.rgba-blue-light,\n.rgba-blue-light:after {\n  background-color: rgba(33, 150, 243, 0.3); }\n\n.rgba-blue-strong,\n.rgba-blue-strong:after {\n  background-color: rgba(33, 150, 243, 0.7); }\n\n.blue.darken-1 {\n  background-color: #1e88e5 !important; }\n\n.blue.darken-2 {\n  background-color: #1976d2 !important; }\n\n.blue.darken-3 {\n  background-color: #1565c0 !important; }\n\n.blue.darken-4 {\n  background-color: #0d47a1 !important; }\n\n.blue.accent-1 {\n  background-color: #82b1ff !important; }\n\n.blue.accent-2 {\n  background-color: #448aff !important; }\n\n.blue.accent-3 {\n  background-color: #2979ff !important; }\n\n.blue.accent-4 {\n  background-color: #2962ff !important; }\n\n.light-blue.lighten-5 {\n  background-color: #e1f5fe !important; }\n\n.light-blue.lighten-4 {\n  background-color: #b3e5fc !important; }\n\n.light-blue.lighten-3 {\n  background-color: #81d4fa !important; }\n\n.light-blue.lighten-2 {\n  background-color: #4fc3f7 !important; }\n\n.light-blue.lighten-1 {\n  background-color: #29b6f6 !important; }\n\n.light-blue {\n  background-color: #03a9f4 !important; }\n\n.light-blue-text {\n  color: #03a9f4 !important; }\n\n.rgba-light-blue-slight,\n.rgba-light-blue-slight:after {\n  background-color: rgba(3, 169, 244, 0.1); }\n\n.rgba-light-blue-light,\n.rgba-light-blue-light:after {\n  background-color: rgba(3, 169, 244, 0.3); }\n\n.rgba-light-blue-strong,\n.rgba-light-blue-strong:after {\n  background-color: rgba(3, 169, 244, 0.7); }\n\n.light-blue.darken-1 {\n  background-color: #039be5 !important; }\n\n.light-blue.darken-2 {\n  background-color: #0288d1 !important; }\n\n.light-blue.darken-3 {\n  background-color: #0277bd !important; }\n\n.light-blue.darken-4 {\n  background-color: #01579b !important; }\n\n.light-blue.accent-1 {\n  background-color: #80d8ff !important; }\n\n.light-blue.accent-2 {\n  background-color: #40c4ff !important; }\n\n.light-blue.accent-3 {\n  background-color: #00b0ff !important; }\n\n.light-blue.accent-4 {\n  background-color: #0091ea !important; }\n\n.cyan.lighten-5 {\n  background-color: #e0f7fa !important; }\n\n.cyan.lighten-4 {\n  background-color: #b2ebf2 !important; }\n\n.cyan.lighten-3 {\n  background-color: #80deea !important; }\n\n.cyan.lighten-2 {\n  background-color: #4dd0e1 !important; }\n\n.cyan.lighten-1 {\n  background-color: #26c6da !important; }\n\n.cyan {\n  background-color: #00bcd4 !important; }\n\n.cyan-text {\n  color: #00bcd4 !important; }\n\n.rgba-cyan-slight,\n.rgba-cyan-slight:after {\n  background-color: rgba(0, 188, 212, 0.1); }\n\n.rgba-cyan-light,\n.rgba-cyan-light:after {\n  background-color: rgba(0, 188, 212, 0.3); }\n\n.rgba-cyan-strong,\n.rgba-cyan-strong:after {\n  background-color: rgba(0, 188, 212, 0.7); }\n\n.cyan.darken-1 {\n  background-color: #00acc1 !important; }\n\n.cyan.darken-2 {\n  background-color: #0097a7 !important; }\n\n.cyan.darken-3 {\n  background-color: #00838f !important; }\n\n.cyan.darken-4 {\n  background-color: #006064 !important; }\n\n.cyan.accent-1 {\n  background-color: #84ffff !important; }\n\n.cyan.accent-2 {\n  background-color: #18ffff !important; }\n\n.cyan.accent-3 {\n  background-color: #00e5ff !important; }\n\n.cyan.accent-4 {\n  background-color: #00b8d4 !important; }\n\n.teal.lighten-5 {\n  background-color: #e0f2f1 !important; }\n\n.teal.lighten-4 {\n  background-color: #b2dfdb !important; }\n\n.teal.lighten-3 {\n  background-color: #80cbc4 !important; }\n\n.teal.lighten-2 {\n  background-color: #4db6ac !important; }\n\n.teal.lighten-1 {\n  background-color: #26a69a !important; }\n\n.teal {\n  background-color: #009688 !important; }\n\n.teal-text {\n  color: #009688 !important; }\n\n.rgba-teal-slight,\n.rgba-teal-slight:after {\n  background-color: rgba(0, 150, 136, 0.1); }\n\n.rgba-teal-light,\n.rgba-teal-light:after {\n  background-color: rgba(0, 150, 136, 0.3); }\n\n.rgba-teal-strong,\n.rgba-teal-strong:after {\n  background-color: rgba(0, 150, 136, 0.7); }\n\n.teal.darken-1 {\n  background-color: #00897b !important; }\n\n.teal.darken-2 {\n  background-color: #00796b !important; }\n\n.teal.darken-3 {\n  background-color: #00695c !important; }\n\n.teal.darken-4 {\n  background-color: #004d40 !important; }\n\n.teal.accent-1 {\n  background-color: #a7ffeb !important; }\n\n.teal.accent-2 {\n  background-color: #64ffda !important; }\n\n.teal.accent-3 {\n  background-color: #1de9b6 !important; }\n\n.teal.accent-4 {\n  background-color: #00bfa5 !important; }\n\n.green.lighten-5 {\n  background-color: #e8f5e9 !important; }\n\n.green.lighten-4 {\n  background-color: #c8e6c9 !important; }\n\n.green.lighten-3 {\n  background-color: #a5d6a7 !important; }\n\n.green.lighten-2 {\n  background-color: #81c784 !important; }\n\n.green.lighten-1 {\n  background-color: #66bb6a !important; }\n\n.green {\n  background-color: #4caf50 !important; }\n\n.green-text {\n  color: #4caf50 !important; }\n\n.rgba-green-slight,\n.rgba-green-slight:after {\n  background-color: rgba(76, 175, 80, 0.1); }\n\n.rgba-green-light,\n.rgba-green-light:after {\n  background-color: rgba(76, 175, 80, 0.3); }\n\n.rgba-green-strong,\n.rgba-green-strong:after {\n  background-color: rgba(76, 175, 80, 0.7); }\n\n.green.darken-1 {\n  background-color: #43a047 !important; }\n\n.green.darken-2 {\n  background-color: #388e3c !important; }\n\n.green.darken-3 {\n  background-color: #2e7d32 !important; }\n\n.green.darken-4 {\n  background-color: #1b5e20 !important; }\n\n.green.accent-1 {\n  background-color: #b9f6ca !important; }\n\n.green.accent-2 {\n  background-color: #69f0ae !important; }\n\n.green.accent-3 {\n  background-color: #00e676 !important; }\n\n.green.accent-4 {\n  background-color: #00c853 !important; }\n\n.light-green.lighten-5 {\n  background-color: #f1f8e9 !important; }\n\n.light-green.lighten-4 {\n  background-color: #dcedc8 !important; }\n\n.light-green.lighten-3 {\n  background-color: #c5e1a5 !important; }\n\n.light-green.lighten-2 {\n  background-color: #aed581 !important; }\n\n.light-green.lighten-1 {\n  background-color: #9ccc65 !important; }\n\n.light-green {\n  background-color: #8bc34a !important; }\n\n.light-green-text {\n  color: #8bc34a !important; }\n\n.rgba-light-green-slight,\n.rgba-light-green-slight:after {\n  background-color: rgba(139, 195, 74, 0.1); }\n\n.rgba-light-green-light,\n.rgba-light-green-light:after {\n  background-color: rgba(139, 195, 74, 0.3); }\n\n.rgba-light-green-strong,\n.rgba-light-green-strong:after {\n  background-color: rgba(139, 195, 74, 0.7); }\n\n.light-green.darken-1 {\n  background-color: #7cb342 !important; }\n\n.light-green.darken-2 {\n  background-color: #689f38 !important; }\n\n.light-green.darken-3 {\n  background-color: #558b2f !important; }\n\n.light-green.darken-4 {\n  background-color: #33691e !important; }\n\n.light-green.accent-1 {\n  background-color: #ccff90 !important; }\n\n.light-green.accent-2 {\n  background-color: #b2ff59 !important; }\n\n.light-green.accent-3 {\n  background-color: #76ff03 !important; }\n\n.light-green.accent-4 {\n  background-color: #64dd17 !important; }\n\n.lime.lighten-5 {\n  background-color: #f9fbe7 !important; }\n\n.lime.lighten-4 {\n  background-color: #f0f4c3 !important; }\n\n.lime.lighten-3 {\n  background-color: #e6ee9c !important; }\n\n.lime.lighten-2 {\n  background-color: #dce775 !important; }\n\n.lime.lighten-1 {\n  background-color: #d4e157 !important; }\n\n.lime {\n  background-color: #cddc39 !important; }\n\n.lime-text {\n  color: #cddc39 !important; }\n\n.rgba-lime-slight,\n.rgba-lime-slight:after {\n  background-color: rgba(205, 220, 57, 0.1); }\n\n.rgba-lime-light,\n.rgba-lime-light:after {\n  background-color: rgba(205, 220, 57, 0.3); }\n\n.rgba-lime-strong,\n.rgba-lime-strong:after {\n  background-color: rgba(205, 220, 57, 0.7); }\n\n.lime.darken-1 {\n  background-color: #c0ca33 !important; }\n\n.lime.darken-2 {\n  background-color: #afb42b !important; }\n\n.lime.darken-3 {\n  background-color: #9e9d24 !important; }\n\n.lime.darken-4 {\n  background-color: #827717 !important; }\n\n.lime.accent-1 {\n  background-color: #f4ff81 !important; }\n\n.lime.accent-2 {\n  background-color: #eeff41 !important; }\n\n.lime.accent-3 {\n  background-color: #c6ff00 !important; }\n\n.lime.accent-4 {\n  background-color: #aeea00 !important; }\n\n.yellow.lighten-5 {\n  background-color: #fffde7 !important; }\n\n.yellow.lighten-4 {\n  background-color: #fff9c4 !important; }\n\n.yellow.lighten-3 {\n  background-color: #fff59d !important; }\n\n.yellow.lighten-2 {\n  background-color: #fff176 !important; }\n\n.yellow.lighten-1 {\n  background-color: #ffee58 !important; }\n\n.yellow {\n  background-color: #ffeb3b !important; }\n\n.yellow-text {\n  color: #ffeb3b !important; }\n\n.rgba-yellow-slight,\n.rgba-yellow-slight:after {\n  background-color: rgba(255, 235, 59, 0.1); }\n\n.rgba-yellow-light,\n.rgba-yellow-light:after {\n  background-color: rgba(255, 235, 59, 0.3); }\n\n.rgba-yellow-strong,\n.rgba-yellow-strong:after {\n  background-color: rgba(255, 235, 59, 0.7); }\n\n.yellow.darken-1 {\n  background-color: #fdd835 !important; }\n\n.yellow.darken-2 {\n  background-color: #fbc02d !important; }\n\n.yellow.darken-3 {\n  background-color: #f9a825 !important; }\n\n.yellow.darken-4 {\n  background-color: #f57f17 !important; }\n\n.yellow.accent-1 {\n  background-color: #ffff8d !important; }\n\n.yellow.accent-2 {\n  background-color: #ffff00 !important; }\n\n.yellow.accent-3 {\n  background-color: #ffea00 !important; }\n\n.yellow.accent-4 {\n  background-color: #ffd600 !important; }\n\n.amber.lighten-5 {\n  background-color: #fff8e1 !important; }\n\n.amber.lighten-4 {\n  background-color: #ffecb3 !important; }\n\n.amber.lighten-3 {\n  background-color: #ffe082 !important; }\n\n.amber.lighten-2 {\n  background-color: #ffd54f !important; }\n\n.amber.lighten-1 {\n  background-color: #ffca28 !important; }\n\n.amber {\n  background-color: #ffc107 !important; }\n\n.amber-text {\n  color: #ffc107 !important; }\n\n.rgba-amber-slight,\n.rgba-amber-slight:after {\n  background-color: rgba(255, 193, 7, 0.1); }\n\n.rgba-amber-light,\n.rgba-amber-light:after {\n  background-color: rgba(255, 193, 7, 0.3); }\n\n.rgba-amber-strong,\n.rgba-amber-strong:after {\n  background-color: rgba(255, 193, 7, 0.7); }\n\n.amber.darken-1 {\n  background-color: #ffb300 !important; }\n\n.amber.darken-2 {\n  background-color: #ffa000 !important; }\n\n.amber.darken-3 {\n  background-color: #ff8f00 !important; }\n\n.amber.darken-4 {\n  background-color: #ff6f00 !important; }\n\n.amber.accent-1 {\n  background-color: #ffe57f !important; }\n\n.amber.accent-2 {\n  background-color: #ffd740 !important; }\n\n.amber.accent-3 {\n  background-color: #ffc400 !important; }\n\n.amber.accent-4 {\n  background-color: #ffab00 !important; }\n\n.orange.lighten-5 {\n  background-color: #fff3e0 !important; }\n\n.orange.lighten-4 {\n  background-color: #ffe0b2 !important; }\n\n.orange.lighten-3 {\n  background-color: #ffcc80 !important; }\n\n.orange.lighten-2 {\n  background-color: #ffb74d !important; }\n\n.orange.lighten-1 {\n  background-color: #ffa726 !important; }\n\n.orange {\n  background-color: #ff9800 !important; }\n\n.orange-text {\n  color: #ff9800 !important; }\n\n.rgba-orange-slight,\n.rgba-orange-slight:after {\n  background-color: rgba(255, 152, 0, 0.1); }\n\n.rgba-orange-light,\n.rgba-orange-light:after {\n  background-color: rgba(255, 152, 0, 0.3); }\n\n.rgba-orange-strong,\n.rgba-orange-strong:after {\n  background-color: rgba(255, 152, 0, 0.7); }\n\n.orange.darken-1 {\n  background-color: #fb8c00 !important; }\n\n.orange.darken-2 {\n  background-color: #f57c00 !important; }\n\n.orange.darken-3 {\n  background-color: #ef6c00 !important; }\n\n.orange.darken-4 {\n  background-color: #e65100 !important; }\n\n.orange.accent-1 {\n  background-color: #ffd180 !important; }\n\n.orange.accent-2 {\n  background-color: #ffab40 !important; }\n\n.orange.accent-3 {\n  background-color: #ff9100 !important; }\n\n.orange.accent-4 {\n  background-color: #ff6d00 !important; }\n\n.deep-orange.lighten-5 {\n  background-color: #fbe9e7 !important; }\n\n.deep-orange.lighten-4 {\n  background-color: #ffccbc !important; }\n\n.deep-orange.lighten-3 {\n  background-color: #ffab91 !important; }\n\n.deep-orange.lighten-2 {\n  background-color: #ff8a65 !important; }\n\n.deep-orange.lighten-1 {\n  background-color: #ff7043 !important; }\n\n.deep-orange {\n  background-color: #ff5722 !important; }\n\n.deep-orange-text {\n  color: #ff5722 !important; }\n\n.rgba-deep-orange-slight,\n.rgba-deep-orange-slight:after {\n  background-color: rgba(255, 87, 34, 0.1); }\n\n.rgba-deep-orange-light,\n.rgba-deep-orange-light:after {\n  background-color: rgba(255, 87, 34, 0.3); }\n\n.rgba-deep-orange-strong,\n.rgba-deep-orange-strong:after {\n  background-color: rgba(255, 87, 34, 0.7); }\n\n.deep-orange.darken-1 {\n  background-color: #f4511e !important; }\n\n.deep-orange.darken-2 {\n  background-color: #e64a19 !important; }\n\n.deep-orange.darken-3 {\n  background-color: #d84315 !important; }\n\n.deep-orange.darken-4 {\n  background-color: #bf360c !important; }\n\n.deep-orange.accent-1 {\n  background-color: #ff9e80 !important; }\n\n.deep-orange.accent-2 {\n  background-color: #ff6e40 !important; }\n\n.deep-orange.accent-3 {\n  background-color: #ff3d00 !important; }\n\n.deep-orange.accent-4 {\n  background-color: #dd2c00 !important; }\n\n.brown.lighten-5 {\n  background-color: #efebe9 !important; }\n\n.brown.lighten-4 {\n  background-color: #d7ccc8 !important; }\n\n.brown.lighten-3 {\n  background-color: #bcaaa4 !important; }\n\n.brown.lighten-2 {\n  background-color: #a1887f !important; }\n\n.brown.lighten-1 {\n  background-color: #8d6e63 !important; }\n\n.brown {\n  background-color: #795548 !important; }\n\n.brown-text {\n  color: #795548 !important; }\n\n.rgba-brown-slight,\n.rgba-brown-slight:after {\n  background-color: rgba(121, 85, 72, 0.1); }\n\n.rgba-brown-light,\n.rgba-brown-light:after {\n  background-color: rgba(121, 85, 72, 0.3); }\n\n.rgba-brown-strong,\n.rgba-brown-strong:after {\n  background-color: rgba(121, 85, 72, 0.7); }\n\n.brown.darken-1 {\n  background-color: #6d4c41 !important; }\n\n.brown.darken-2 {\n  background-color: #5d4037 !important; }\n\n.brown.darken-3 {\n  background-color: #4e342e !important; }\n\n.brown.darken-4 {\n  background-color: #3e2723 !important; }\n\n.blue-grey.lighten-5 {\n  background-color: #eceff1 !important; }\n\n.blue-grey.lighten-4 {\n  background-color: #cfd8dc !important; }\n\n.blue-grey.lighten-3 {\n  background-color: #b0bec5 !important; }\n\n.blue-grey.lighten-2 {\n  background-color: #90a4ae !important; }\n\n.blue-grey.lighten-1 {\n  background-color: #78909c !important; }\n\n.blue-grey {\n  background-color: #607d8b !important; }\n\n.blue-grey-text {\n  color: #607d8b !important; }\n\n.rgba-blue-grey-slight,\n.rgba-blue-grey-slight:after {\n  background-color: rgba(96, 125, 139, 0.1); }\n\n.rgba-blue-grey-light,\n.rgba-blue-grey-light:after {\n  background-color: rgba(96, 125, 139, 0.3); }\n\n.rgba-blue-grey-strong,\n.rgba-blue-grey-strong:after {\n  background-color: rgba(96, 125, 139, 0.7); }\n\n.blue-grey.darken-1 {\n  background-color: #546e7a !important; }\n\n.blue-grey.darken-2 {\n  background-color: #455a64 !important; }\n\n.blue-grey.darken-3 {\n  background-color: #37474f !important; }\n\n.blue-grey.darken-4 {\n  background-color: #263238 !important; }\n\n.grey.lighten-5 {\n  background-color: #fafafa !important; }\n\n.grey.lighten-4 {\n  background-color: #f5f5f5 !important; }\n\n.grey.lighten-3 {\n  background-color: #eeeeee !important; }\n\n.grey.lighten-2 {\n  background-color: #e0e0e0 !important; }\n\n.grey.lighten-1 {\n  background-color: #bdbdbd !important; }\n\n.grey {\n  background-color: #9e9e9e !important; }\n\n.grey-text {\n  color: #9e9e9e !important; }\n\n.rgba-grey-slight,\n.rgba-grey-slight:after {\n  background-color: rgba(158, 158, 158, 0.1); }\n\n.rgba-grey-light,\n.rgba-grey-light:after {\n  background-color: rgba(158, 158, 158, 0.3); }\n\n.rgba-grey-strong,\n.rgba-grey-strong:after {\n  background-color: rgba(158, 158, 158, 0.7); }\n\n.grey.darken-1 {\n  background-color: #757575 !important; }\n\n.grey.darken-2 {\n  background-color: #616161 !important; }\n\n.grey.darken-3 {\n  background-color: #424242 !important; }\n\n.grey.darken-4 {\n  background-color: #212121 !important; }\n\n.black {\n  background-color: #000 !important; }\n\n.black-text, .btn.btn-link {\n  color: #000 !important; }\n\n.rgba-black-slight,\n.rgba-black-slight:after {\n  background-color: rgba(0, 0, 0, 0.1); }\n\n.rgba-black-light,\n.rgba-black-light:after {\n  background-color: rgba(0, 0, 0, 0.3); }\n\n.rgba-black-strong,\n.rgba-black-strong:after {\n  background-color: rgba(0, 0, 0, 0.7); }\n\n.white {\n  background-color: #fff !important; }\n\n.white-text {\n  color: #fff !important; }\n\n.rgba-white-slight,\n.rgba-white-slight:after {\n  background-color: rgba(255, 255, 255, 0.1); }\n\n.rgba-white-light,\n.rgba-white-light:after {\n  background-color: rgba(255, 255, 255, 0.3); }\n\n.rgba-white-strong,\n.rgba-white-strong:after {\n  background-color: rgba(255, 255, 255, 0.7); }\n\n.rgba-stylish-slight {\n  background-color: rgba(62, 69, 81, 0.1); }\n\n.rgba-stylish-light {\n  background-color: rgba(62, 69, 81, 0.3); }\n\n.rgba-stylish-strong {\n  background-color: rgba(62, 69, 81, 0.7); }\n\n.primary-color, ul.stepper li.active a .circle, ul.stepper li.completed a .circle {\n  background-color: #4285f4 !important; }\n\n.primary-color-dark {\n  background-color: #0d47a1 !important; }\n\n.secondary-color {\n  background-color: #aa66cc !important; }\n\n.secondary-color-dark {\n  background-color: #9933cc !important; }\n\n.default-color {\n  background-color: #2bbbad !important; }\n\n.default-color-dark {\n  background-color: #00695c !important; }\n\n.info-color {\n  background-color: #33b5e5 !important; }\n\n.info-color-dark {\n  background-color: #0099cc !important; }\n\n.success-color {\n  background-color: #00c851 !important; }\n\n.success-color-dark {\n  background-color: #007e33 !important; }\n\n.warning-color {\n  background-color: #ffbb33 !important; }\n\n.warning-color-dark {\n  background-color: #ff8800 !important; }\n\n.danger-color, ul.stepper li.warning a .circle {\n  background-color: #ff3547 !important; }\n\n.danger-color-dark {\n  background-color: #cc0000 !important; }\n\n.elegant-color {\n  background-color: #2e2e2e !important; }\n\n.elegant-color-dark {\n  background-color: #212121 !important; }\n\n.stylish-color {\n  background-color: #4b515d !important; }\n\n.stylish-color-dark {\n  background-color: #3e4551 !important; }\n\n.unique-color {\n  background-color: #3f729b !important; }\n\n.unique-color-dark {\n  background-color: #1c2331 !important; }\n\n.special-color {\n  background-color: #37474f !important; }\n\n.special-color-dark {\n  background-color: #263238 !important; }\n\n.purple-gradient {\n  background: -webkit-linear-gradient(50deg, #ff6ec4, #7873f5) !important;\n  background: -o-linear-gradient(50deg, #ff6ec4, #7873f5) !important;\n  background: linear-gradient(40deg, #ff6ec4, #7873f5) !important; }\n\n.peach-gradient {\n  background: -webkit-linear-gradient(50deg, #FFD86F, #FC6262) !important;\n  background: -o-linear-gradient(50deg, #FFD86F, #FC6262) !important;\n  background: linear-gradient(40deg, #FFD86F, #FC6262) !important; }\n\n.aqua-gradient {\n  background: -webkit-linear-gradient(50deg, #2096ff, #05ffa3) !important;\n  background: -o-linear-gradient(50deg, #2096ff, #05ffa3) !important;\n  background: linear-gradient(40deg, #2096ff, #05ffa3) !important; }\n\n.blue-gradient {\n  background: -webkit-linear-gradient(50deg, #45cafc, #303f9f) !important;\n  background: -o-linear-gradient(50deg, #45cafc, #303f9f) !important;\n  background: linear-gradient(40deg, #45cafc, #303f9f) !important; }\n\n.purple-gradient-rgba {\n  background: -webkit-linear-gradient(50deg, rgba(255, 110, 196, 0.9), rgba(120, 115, 245, 0.9)) !important;\n  background: -o-linear-gradient(50deg, rgba(255, 110, 196, 0.9), rgba(120, 115, 245, 0.9)) !important;\n  background: linear-gradient(40deg, rgba(255, 110, 196, 0.9), rgba(120, 115, 245, 0.9)) !important; }\n\n.peach-gradient-rgba {\n  background: -webkit-linear-gradient(50deg, rgba(255, 216, 111, 0.9), rgba(252, 98, 98, 0.9)) !important;\n  background: -o-linear-gradient(50deg, rgba(255, 216, 111, 0.9), rgba(252, 98, 98, 0.9)) !important;\n  background: linear-gradient(40deg, rgba(255, 216, 111, 0.9), rgba(252, 98, 98, 0.9)) !important; }\n\n.aqua-gradient-rgba {\n  background: -webkit-linear-gradient(50deg, rgba(32, 150, 255, 0.9), rgba(5, 255, 163, 0.9)) !important;\n  background: -o-linear-gradient(50deg, rgba(32, 150, 255, 0.9), rgba(5, 255, 163, 0.9)) !important;\n  background: linear-gradient(40deg, rgba(32, 150, 255, 0.9), rgba(5, 255, 163, 0.9)) !important; }\n\n.blue-gradient-rgba {\n  background: -webkit-linear-gradient(50deg, rgba(69, 202, 252, 0.9), rgba(48, 63, 159, 0.9)) !important;\n  background: -o-linear-gradient(50deg, rgba(69, 202, 252, 0.9), rgba(48, 63, 159, 0.9)) !important;\n  background: linear-gradient(40deg, rgba(69, 202, 252, 0.9), rgba(48, 63, 159, 0.9)) !important; }\n\n.dark-grey-text {\n  color: #4f4f4f !important; }\n  .dark-grey-text:hover, .dark-grey-text:focus {\n    color: #4f4f4f !important; }\n\n.hoverable {\n  -webkit-box-shadow: none;\n  box-shadow: none;\n  -webkit-transition: all 0.55s ease-in-out;\n  -o-transition: all 0.55s ease-in-out;\n  transition: all 0.55s ease-in-out; }\n  .hoverable:hover {\n    -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n    -webkit-transition: all 0.55s ease-in-out;\n    -o-transition: all 0.55s ease-in-out;\n    transition: all 0.55s ease-in-out; }\n\n.z-depth-0 {\n  -webkit-box-shadow: none !important;\n  box-shadow: none !important; }\n\n.z-depth-1 {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important; }\n\n.z-depth-1-half {\n  -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15) !important;\n  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15) !important; }\n\n.z-depth-2 {\n  -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;\n  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !important; }\n\n.z-depth-3 {\n  -webkit-box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19) !important;\n  box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19) !important; }\n\n.z-depth-4 {\n  -webkit-box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21) !important;\n  box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21) !important; }\n\n.z-depth-5 {\n  -webkit-box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22) !important;\n  box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22) !important; }\n\n.disabled,\n:disabled {\n  pointer-events: none !important; }\n\na {\n  cursor: pointer;\n  text-decoration: none;\n  color: #007bff;\n  -webkit-transition: all 0.2s ease-in-out;\n  -o-transition: all 0.2s ease-in-out;\n  transition: all 0.2s ease-in-out; }\n  a:hover {\n    text-decoration: none;\n    color: #0056b3;\n    -webkit-transition: all 0.2s ease-in-out;\n    -o-transition: all 0.2s ease-in-out;\n    transition: all 0.2s ease-in-out; }\n  a.disabled:hover, a:disabled:hover {\n    color: #007bff; }\n\na:not([href]):not([tabindex]), a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {\n  color: inherit;\n  text-decoration: none; }\n\n.img-fluid, .modal-dialog.cascading-modal.modal-avatar .modal-header,\n.video-fluid {\n  max-width: 100%;\n  height: auto; }\n\n.flex-center {\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n  -webkit-justify-content: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n  -ms-flex-align: center;\n  align-items: center;\n  height: 100%; }\n  .flex-center p {\n    margin: 0; }\n  .flex-center ul {\n    text-align: center; }\n    .flex-center ul li {\n      margin-bottom: 1rem; }\n      .flex-center ul li:last-of-type {\n        margin-bottom: 0; }\n\n.hr-light {\n  border-top: 1px solid #fff; }\n\n.hr-dark {\n  border-top: 1px solid #666; }\n\n.w-responsive {\n  width: 75%; }\n  @media (max-width: 740px) {\n    .w-responsive {\n      width: 100%; } }\n\n.collapsible-body {\n  display: none; }\n\n.jumbotron {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem;\n  background-color: #fff; }\n\n.bg-primary {\n  background-color: #4285f4 !important; }\n\na.bg-primary:hover, a.bg-primary:focus,\nbutton.bg-primary:hover,\nbutton.bg-primary:focus {\n  background-color: #1266f1 !important; }\n\n.border-primary {\n  border-color: #4285f4 !important; }\n\n.bg-danger {\n  background-color: #ff3547 !important; }\n\na.bg-danger:hover, a.bg-danger:focus,\nbutton.bg-danger:hover,\nbutton.bg-danger:focus {\n  background-color: #ff0219 !important; }\n\n.border-danger {\n  border-color: #ff3547 !important; }\n\n.bg-warning {\n  background-color: #ffbb33 !important; }\n\na.bg-warning:hover, a.bg-warning:focus,\nbutton.bg-warning:hover,\nbutton.bg-warning:focus {\n  background-color: #ffaa00 !important; }\n\n.border-warning {\n  border-color: #ffbb33 !important; }\n\n.bg-success {\n  background-color: #00c851 !important; }\n\na.bg-success:hover, a.bg-success:focus,\nbutton.bg-success:hover,\nbutton.bg-success:focus {\n  background-color: #00953c !important; }\n\n.border-success {\n  border-color: #00c851 !important; }\n\n.bg-info {\n  background-color: #33b5e5 !important; }\n\na.bg-info:hover, a.bg-info:focus,\nbutton.bg-info:hover,\nbutton.bg-info:focus {\n  background-color: #1a9bcb !important; }\n\n.border-info {\n  border-color: #33b5e5 !important; }\n\n.bg-default {\n  background-color: #2bbbad !important; }\n\na.bg-default:hover, a.bg-default:focus,\nbutton.bg-default:hover,\nbutton.bg-default:focus {\n  background-color: #219287 !important; }\n\n.border-default {\n  border-color: #2bbbad !important; }\n\n.bg-secondary {\n  background-color: #aa66cc !important; }\n\na.bg-secondary:hover, a.bg-secondary:focus,\nbutton.bg-secondary:hover,\nbutton.bg-secondary:focus {\n  background-color: #9540bf !important; }\n\n.border-secondary {\n  border-color: #aa66cc !important; }\n\n.bg-dark {\n  background-color: #212121 !important; }\n\na.bg-dark:hover, a.bg-dark:focus,\nbutton.bg-dark:hover,\nbutton.bg-dark:focus {\n  background-color: #080808 !important; }\n\n.border-dark {\n  border-color: #212121 !important; }\n\n.bg-light {\n  background-color: #e0e0e0 !important; }\n\na.bg-light:hover, a.bg-light:focus,\nbutton.bg-light:hover,\nbutton.bg-light:focus {\n  background-color: #c7c7c7 !important; }\n\n.border-light {\n  border-color: #e0e0e0 !important; }\n\n.card-img-100 {\n  width: 100px;\n  height: 100px; }\n\n.card-img-64 {\n  width: 64px;\n  height: 64px; }\n\n.mml-1 {\n  margin-left: -0.25rem !important; }\n\n.flex-1 {\n  -webkit-box-flex: 1;\n  -webkit-flex: 1;\n  -ms-flex: 1;\n  flex: 1; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: local(Roboto Thin), url(\"../font/roboto/Roboto-Thin.eot\");\n  src: url(\"../font/roboto/Roboto-Thin.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Thin.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Thin.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Thin.ttf\") format(\"truetype\");\n  font-weight: 200; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: local(Roboto Light), url(\"../font/roboto/Roboto-Light.eot\");\n  src: url(\"../font/roboto/Roboto-Light.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Light.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Light.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Light.ttf\") format(\"truetype\");\n  font-weight: 300; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: local(Roboto Regular), url(\"../font/roboto/Roboto-Regular.eot\");\n  src: url(\"../font/roboto/Roboto-Regular.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Regular.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Regular.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Regular.ttf\") format(\"truetype\");\n  font-weight: 400; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: url(\"../font/roboto/Roboto-Medium.eot\");\n  src: url(\"../font/roboto/Roboto-Medium.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Medium.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Medium.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Medium.ttf\") format(\"truetype\");\n  font-weight: 500; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: url(\"../font/roboto/Roboto-Bold.eot\");\n  src: url(\"../font/roboto/Roboto-Bold.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Bold.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Bold.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Bold.ttf\") format(\"truetype\");\n  font-weight: 700; }\n\nbody {\n  font-family: \"Roboto\", sans-serif;\n  font-weight: 300; }\n\nh1, h2, h3, h4, h5, h6 {\n  font-weight: 300; }\n\n.h1-responsive {\n  font-size: 150%; }\n\n.h2-responsive {\n  font-size: 145%; }\n\n.h3-responsive {\n  font-size: 135%; }\n\n.h4-responsive {\n  font-size: 135%; }\n\n.h5-responsive {\n  font-size: 135%; }\n\n@media (min-width: 576px) {\n  .h1-responsive {\n    font-size: 170%; }\n  .h2-responsive {\n    font-size: 140%; }\n  .h3-responsive {\n    font-size: 125%; }\n  .h4-responsive {\n    font-size: 125%; }\n  .h5-responsive {\n    font-size: 125%; } }\n\n@media (min-width: 768px) {\n  .h1-responsive {\n    font-size: 200%; }\n  .h2-responsive {\n    font-size: 170%; }\n  .h3-responsive {\n    font-size: 140%; }\n  .h4-responsive {\n    font-size: 125%; }\n  .h5-responsive {\n    font-size: 125%; } }\n\n@media (min-width: 992px) {\n  .h1-responsive {\n    font-size: 200%; }\n  .h2-responsive {\n    font-size: 170%; }\n  .h3-responsive {\n    font-size: 140%; }\n  .h4-responsive {\n    font-size: 125%; }\n  .h5-responsive {\n    font-size: 125%; } }\n\n@media (min-width: 1200px) {\n  .h1-responsive {\n    font-size: 250%; }\n  .h2-responsive {\n    font-size: 200%; }\n  .h3-responsive {\n    font-size: 170%; }\n  .h4-responsive {\n    font-size: 140%; }\n  .h5-responsive {\n    font-size: 125%; } }\n\n.divider-new {\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: row;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-box-pack: center;\n  -webkit-justify-content: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n  -ms-flex-align: center;\n  align-items: center;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  margin-top: 2.8rem;\n  margin-bottom: 2.8rem; }\n  .divider-new > h1, .divider-new h2, .divider-new h3, .divider-new h4, .divider-new h5, .divider-new h6 {\n    margin-bottom: 0; }\n  .divider-new:before, .divider-new:after {\n    content: \"\";\n    height: 1.5px;\n    -webkit-box-flex: 1;\n    -webkit-flex: 1;\n    -ms-flex: 1;\n    flex: 1;\n    height: 2px;\n    background: #c6c6c6; }\n  .divider-new:before {\n    margin: 0 0.5rem 0 0; }\n  .divider-new:after {\n    margin: 0 0 0 0.5rem; }\n\n.blockquote {\n  padding: 0.5rem 1rem;\n  border-left: .25rem solid #eceeef; }\n  .blockquote.text-right {\n    border-left: none;\n    border-right: .25rem solid #eceeef; }\n  .blockquote .bq-title {\n    margin-bottom: 0;\n    font-size: 1.5rem;\n    font-weight: 400; }\n  .blockquote p {\n    padding: 1rem 0;\n    font-size: 1.1rem; }\n\n.bq-primary {\n  border-left: 3px solid #4285f4 !important; }\n  .bq-primary .bq-title {\n    color: #4285f4 !important; }\n\n.bq-danger {\n  border-left: 3px solid #ff3547 !important; }\n  .bq-danger .bq-title {\n    color: #ff3547 !important; }\n\n.bq-warning {\n  border-left: 3px solid #ffbb33 !important; }\n  .bq-warning .bq-title {\n    color: #ffbb33 !important; }\n\n.bq-success {\n  border-left: 3px solid #00c851 !important; }\n  .bq-success .bq-title {\n    color: #00c851 !important; }\n\n.bq-info {\n  border-left: 3px solid #33b5e5 !important; }\n  .bq-info .bq-title {\n    color: #33b5e5 !important; }\n\n.text-primary {\n  color: #4285f4 !important; }\n\na.text-primary:hover, a.text-primary:focus {\n  color: #1266f1 !important; }\n\n.text-danger {\n  color: #ff3547 !important; }\n\na.text-danger:hover, a.text-danger:focus {\n  color: #ff0219 !important; }\n\n.text-warning {\n  color: #ffbb33 !important; }\n\na.text-warning:hover, a.text-warning:focus {\n  color: #ffaa00 !important; }\n\n.text-success {\n  color: #00c851 !important; }\n\na.text-success:hover, a.text-success:focus {\n  color: #00953c !important; }\n\n.text-info {\n  color: #33b5e5 !important; }\n\na.text-info:hover, a.text-info:focus {\n  color: #1a9bcb !important; }\n\n.text-default {\n  color: #2bbbad !important; }\n\na.text-default:hover, a.text-default:focus {\n  color: #219287 !important; }\n\n.text-secondary {\n  color: #aa66cc !important; }\n\na.text-secondary:hover, a.text-secondary:focus {\n  color: #9540bf !important; }\n\n.text-dark {\n  color: #212121 !important; }\n\na.text-dark:hover, a.text-dark:focus {\n  color: #080808 !important; }\n\n.text-light {\n  color: #e0e0e0 !important; }\n\na.text-light:hover, a.text-light:focus {\n  color: #c7c7c7 !important; }\n\n.font-small {\n  font-size: 0.9rem; }\n\n.view {\n  position: relative;\n  overflow: hidden;\n  cursor: default; }\n  .view .mask {\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    overflow: hidden;\n    width: 100%;\n    height: 100%;\n    background-attachment: fixed; }\n  .view img, .view video {\n    position: relative;\n    display: block; }\n  .view video.video-intro {\n    z-index: -100;\n    top: 50%;\n    left: 50%;\n    -webkit-transform: translateX(-50%) translateY(-50%);\n    -ms-transform: translateX(-50%) translateY(-50%);\n    transform: translateX(-50%) translateY(-50%);\n    -webkit-transition: 1s opacity;\n    -o-transition: 1s opacity;\n    transition: 1s opacity;\n    min-width: 100%;\n    min-height: 100%;\n    width: auto;\n    height: auto; }\n\n.overlay .mask {\n  opacity: 0;\n  -webkit-transition: all 0.4s ease-in-out;\n  -o-transition: all 0.4s ease-in-out;\n  transition: all 0.4s ease-in-out; }\n  .overlay .mask:hover {\n    opacity: 1; }\n\n.zoom img, .zoom video {\n  -webkit-transition: all 0.2s linear;\n  -o-transition: all 0.2s linear;\n  transition: all 0.2s linear; }\n\n.zoom:hover img, .zoom:hover video {\n  -webkit-transform: scale(1.1);\n  -ms-transform: scale(1.1);\n  transform: scale(1.1); }\n\n.pattern-1 {\n  background: url(\"../img/overlays/01.png\");\n  background-attachment: fixed; }\n\n.pattern-2 {\n  background: url(\"../img/overlays/02.png\");\n  background-attachment: fixed; }\n\n.pattern-3 {\n  background: url(\"../img/overlays/03.png\");\n  background-attachment: fixed; }\n\n.pattern-4 {\n  background: url(\"../img/overlays/04.png\");\n  background-attachment: fixed; }\n\n.pattern-5 {\n  background: url(\"../img/overlays/05.png\");\n  background-attachment: fixed; }\n\n.pattern-6 {\n  background: url(\"../img/overlays/06.png\");\n  background-attachment: fixed; }\n\n.pattern-7 {\n  background: url(\"../img/overlays/07.png\");\n  background-attachment: fixed; }\n\n.pattern-8 {\n  background: url(\"../img/overlays/08.png\");\n  background-attachment: fixed; }\n\n.pattern-9 {\n  background: url(\"../img/overlays/09.png\");\n  background-attachment: fixed; }\n\n/*!\n * Waves v0.7.6\n * http://fian.my.id/Waves\n *\n * Copyright 2014-2018 Alfiana E. Sibuea and other contributors\n * Released under the MIT license\n * https://github.com/fians/Waves/blob/master/LICENSE */\n.waves-effect {\n  position: relative;\n  cursor: pointer;\n  overflow: hidden;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  -webkit-tap-highlight-color: transparent; }\n  .waves-effect .waves-ripple {\n    position: absolute;\n    -webkit-border-radius: 50%;\n    border-radius: 50%;\n    width: 100px;\n    height: 100px;\n    margin-top: -50px;\n    margin-left: -50px;\n    opacity: 0;\n    background: rgba(0, 0, 0, 0.2);\n    background: -webkit-radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    background: -o-radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    background: radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    -webkit-transition: all 0.5s ease-out;\n    -o-transition: all 0.5s ease-out;\n    transition: all 0.5s ease-out;\n    -webkit-transition-property: -webkit-transform, opacity;\n    -o-transition-property: -o-transform, opacity;\n    -webkit-transition-property: opacity, -webkit-transform;\n    transition-property: opacity, -webkit-transform;\n    -o-transition-property: transform, opacity;\n    transition-property: transform, opacity;\n    transition-property: transform, opacity, -webkit-transform;\n    -webkit-transform: scale(0) translate(0, 0);\n    -ms-transform: scale(0) translate(0, 0);\n    transform: scale(0) translate(0, 0);\n    pointer-events: none; }\n  .waves-effect.waves-light .waves-ripple {\n    background: rgba(255, 255, 255, 0.4);\n    background: -webkit-radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    background: -o-radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    background: radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%); }\n  .waves-effect.waves-classic .waves-ripple {\n    background: rgba(0, 0, 0, 0.2); }\n  .waves-effect.waves-classic.waves-light .waves-ripple {\n    background: rgba(255, 255, 255, 0.4); }\n\n.waves-notransition {\n  -webkit-transition: none !important;\n  -o-transition: none !important;\n  transition: none !important; }\n\n.waves-button,\n.waves-circle {\n  -webkit-transform: translateZ(0);\n  -ms-transform: translateZ(0);\n  transform: translateZ(0);\n  -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); }\n\n.waves-button,\n.waves-button:hover,\n.waves-button:visited,\n.waves-button-input {\n  white-space: nowrap;\n  vertical-align: middle;\n  cursor: pointer;\n  border: none;\n  outline: none;\n  color: inherit;\n  background-color: rgba(0, 0, 0, 0);\n  font-size: 1em;\n  line-height: 1em;\n  text-align: center;\n  text-decoration: none;\n  z-index: 1; }\n\n.waves-button {\n  padding: 0.85em 1.1em;\n  -webkit-border-radius: 0.2em;\n  border-radius: 0.2em; }\n\n.waves-button-input {\n  margin: 0;\n  padding: 0.85em 1.1em; }\n\n.waves-input-wrapper {\n  display: inline-block;\n  position: relative;\n  vertical-align: middle;\n  -webkit-border-radius: 0.2em;\n  border-radius: 0.2em; }\n  .waves-input-wrapper.waves-button {\n    padding: 0; }\n  .waves-input-wrapper .waves-button-input {\n    position: relative;\n    top: 0;\n    left: 0;\n    z-index: 1; }\n\n.waves-circle {\n  text-align: center;\n  width: 2.5em;\n  height: 2.5em;\n  line-height: 2.5em;\n  -webkit-border-radius: 50%;\n  border-radius: 50%; }\n\n.waves-float {\n  -webkit-mask-image: none;\n  -webkit-box-shadow: 0px 1px 1.5px 1px rgba(0, 0, 0, 0.12);\n  box-shadow: 0px 1px 1.5px 1px rgba(0, 0, 0, 0.12);\n  -webkit-transition: all 300ms;\n  -o-transition: all 300ms;\n  transition: all 300ms; }\n  .waves-float:active {\n    -webkit-box-shadow: 0px 8px 20px 1px rgba(0, 0, 0, 0.3);\n    box-shadow: 0px 8px 20px 1px rgba(0, 0, 0, 0.3); }\n\n.waves-block {\n  display: block; }\n\na.waves-effect, a.waves-light {\n  display: inline-block; }\n\n/*!\n * animate.css -http://daneden.me/animate\n * Version - 3.7.0\n * Licensed under the MIT license - http://opensource.org/licenses/MIT\n *\n * Copyright (c) 2018 Daniel Eden\n */\n.animated {\n  -webkit-animation-duration: 1s;\n  animation-duration: 1s;\n  -webkit-animation-fill-mode: both;\n  animation-fill-mode: both; }\n  .animated.infinite {\n    -webkit-animation-iteration-count: infinite;\n    animation-iteration-count: infinite; }\n  .animated.delay-1s {\n    -webkit-animation-delay: 1s;\n    animation-delay: 1s; }\n  .animated.delay-2s {\n    -webkit-animation-delay: 2s;\n    animation-delay: 2s; }\n  .animated.delay-3s {\n    -webkit-animation-delay: 3s;\n    animation-delay: 3s; }\n  .animated.delay-4s {\n    -webkit-animation-delay: 4s;\n    animation-delay: 4s; }\n  .animated.delay-5s {\n    -webkit-animation-delay: 5s;\n    animation-delay: 5s; }\n  .animated.fast {\n    -webkit-animation-duration: 800ms;\n    animation-duration: 800ms; }\n  .animated.faster {\n    -webkit-animation-duration: 500ms;\n    animation-duration: 500ms; }\n  .animated.slow {\n    -webkit-animation-duration: 2s;\n    animation-duration: 2s; }\n  .animated.slower {\n    -webkit-animation-duration: 3s;\n    animation-duration: 3s; }\n\n@media (prefers-reduced-motion) {\n  .animated {\n    -webkit-animation: unset !important;\n    animation: unset !important;\n    -webkit-transition: none !important;\n    -o-transition: none !important;\n    transition: none !important; } }\n\n@-webkit-keyframes fadeIn {\n  from {\n    opacity: 0; }\n  to {\n    opacity: 1; } }\n\n@keyframes fadeIn {\n  from {\n    opacity: 0; }\n  to {\n    opacity: 1; } }\n\n.fadeIn {\n  -webkit-animation-name: fadeIn;\n  animation-name: fadeIn; }\n\n@-webkit-keyframes fadeInDown {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInDown {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInDown {\n  -webkit-animation-name: fadeInDown;\n  animation-name: fadeInDown; }\n\n@-webkit-keyframes fadeInLeft {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInLeft {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInLeft {\n  -webkit-animation-name: fadeInLeft;\n  animation-name: fadeInLeft; }\n\n@-webkit-keyframes fadeInRight {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInRight {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInRight {\n  -webkit-animation-name: fadeInRight;\n  animation-name: fadeInRight; }\n\n@-webkit-keyframes fadeInUp {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInUp {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInUp {\n  -webkit-animation-name: fadeInUp;\n  animation-name: fadeInUp; }\n\n@-webkit-keyframes fadeOut {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0; } }\n\n@keyframes fadeOut {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0; } }\n\n.fadeOut {\n  -webkit-animation-name: fadeOut;\n  animation-name: fadeOut; }\n\n@-webkit-keyframes fadeOutDown {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); } }\n\n@keyframes fadeOutDown {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); } }\n\n.fadeOutDown {\n  -webkit-animation-name: fadeOutDown;\n  animation-name: fadeOutDown; }\n\n@-webkit-keyframes fadeOutLeft {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); } }\n\n@keyframes fadeOutLeft {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); } }\n\n.fadeOutLeft {\n  -webkit-animation-name: fadeOutLeft;\n  animation-name: fadeOutLeft; }\n\n@-webkit-keyframes fadeOutRight {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); } }\n\n@keyframes fadeOutRight {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); } }\n\n.fadeOutRight {\n  -webkit-animation-name: fadeOutRight;\n  animation-name: fadeOutRight; }\n\n@-webkit-keyframes fadeOutUp {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); } }\n\n@keyframes fadeOutUp {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); } }\n\n.fadeOutUp {\n  -webkit-animation-name: fadeOutUp;\n  animation-name: fadeOutUp; }\n\n/*!\n * animate.css -http://daneden.me/animate\n * Version - 3.7.0\n * Licensed under the MIT license - http://opensource.org/licenses/MIT\n *\n * Copyright (c) 2018 Daniel Eden\n */\n@-webkit-keyframes bounce {\n  from,\n  20%,\n  53%,\n  80%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  40%,\n  43% {\n    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    -webkit-transform: translate3d(0, -30px, 0);\n    transform: translate3d(0, -30px, 0); }\n  70% {\n    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    -webkit-transform: translate3d(0, -15px, 0);\n    transform: translate3d(0, -15px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, -4px, 0);\n    transform: translate3d(0, -4px, 0); } }\n@keyframes bounce {\n  from,\n  20%,\n  53%,\n  80%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  40%,\n  43% {\n    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    -webkit-transform: translate3d(0, -30px, 0);\n    transform: translate3d(0, -30px, 0); }\n  70% {\n    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    -webkit-transform: translate3d(0, -15px, 0);\n    transform: translate3d(0, -15px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, -4px, 0);\n    transform: translate3d(0, -4px, 0); } }\n\n.bounce {\n  -webkit-animation-name: bounce;\n  animation-name: bounce;\n  -webkit-transform-origin: center bottom;\n  -ms-transform-origin: center bottom;\n  transform-origin: center bottom; }\n\n@-webkit-keyframes flash {\n  from,\n  50%,\n  to {\n    opacity: 1; }\n  25%,\n  75% {\n    opacity: 0; } }\n\n@keyframes flash {\n  from,\n  50%,\n  to {\n    opacity: 1; }\n  25%,\n  75% {\n    opacity: 0; } }\n\n.flash {\n  -webkit-animation-name: flash;\n  animation-name: flash; }\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n@-webkit-keyframes pulse {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  50% {\n    -webkit-transform: scale3d(1.05, 1.05, 1.05);\n    transform: scale3d(1.05, 1.05, 1.05); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n@keyframes pulse {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  50% {\n    -webkit-transform: scale3d(1.05, 1.05, 1.05);\n    transform: scale3d(1.05, 1.05, 1.05); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n.pulse {\n  -webkit-animation-name: pulse;\n  animation-name: pulse; }\n\n@-webkit-keyframes rubberBand {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  30% {\n    -webkit-transform: scale3d(1.25, 0.75, 1);\n    transform: scale3d(1.25, 0.75, 1); }\n  40% {\n    -webkit-transform: scale3d(0.75, 1.25, 1);\n    transform: scale3d(0.75, 1.25, 1); }\n  50% {\n    -webkit-transform: scale3d(1.15, 0.85, 1);\n    transform: scale3d(1.15, 0.85, 1); }\n  65% {\n    -webkit-transform: scale3d(0.95, 1.05, 1);\n    transform: scale3d(0.95, 1.05, 1); }\n  75% {\n    -webkit-transform: scale3d(1.05, 0.95, 1);\n    transform: scale3d(1.05, 0.95, 1); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n@keyframes rubberBand {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  30% {\n    -webkit-transform: scale3d(1.25, 0.75, 1);\n    transform: scale3d(1.25, 0.75, 1); }\n  40% {\n    -webkit-transform: scale3d(0.75, 1.25, 1);\n    transform: scale3d(0.75, 1.25, 1); }\n  50% {\n    -webkit-transform: scale3d(1.15, 0.85, 1);\n    transform: scale3d(1.15, 0.85, 1); }\n  65% {\n    -webkit-transform: scale3d(0.95, 1.05, 1);\n    transform: scale3d(0.95, 1.05, 1); }\n  75% {\n    -webkit-transform: scale3d(1.05, 0.95, 1);\n    transform: scale3d(1.05, 0.95, 1); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n.rubberBand {\n  -webkit-animation-name: rubberBand;\n  animation-name: rubberBand; }\n\n@-webkit-keyframes shake {\n  from,\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  10%,\n  30%,\n  50%,\n  70%,\n  90% {\n    -webkit-transform: translate3d(-10px, 0, 0);\n    transform: translate3d(-10px, 0, 0); }\n  20%,\n  40%,\n  60%,\n  80% {\n    -webkit-transform: translate3d(10px, 0, 0);\n    transform: translate3d(10px, 0, 0); } }\n\n@keyframes shake {\n  from,\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  10%,\n  30%,\n  50%,\n  70%,\n  90% {\n    -webkit-transform: translate3d(-10px, 0, 0);\n    transform: translate3d(-10px, 0, 0); }\n  20%,\n  40%,\n  60%,\n  80% {\n    -webkit-transform: translate3d(10px, 0, 0);\n    transform: translate3d(10px, 0, 0); } }\n\n.shake {\n  -webkit-animation-name: shake;\n  animation-name: shake; }\n\n@-webkit-keyframes headShake {\n  0% {\n    -webkit-transform: translateX(0);\n    transform: translateX(0); }\n  6.5% {\n    -webkit-transform: translateX(-6px) rotateY(-9deg);\n    transform: translateX(-6px) rotateY(-9deg); }\n  18.5% {\n    -webkit-transform: translateX(5px) rotateY(7deg);\n    transform: translateX(5px) rotateY(7deg); }\n  31.5% {\n    -webkit-transform: translateX(-3px) rotateY(-5deg);\n    transform: translateX(-3px) rotateY(-5deg); }\n  43.5% {\n    -webkit-transform: translateX(2px) rotateY(3deg);\n    transform: translateX(2px) rotateY(3deg); }\n  50% {\n    -webkit-transform: translateX(0);\n    transform: translateX(0); } }\n\n@keyframes headShake {\n  0% {\n    -webkit-transform: translateX(0);\n    transform: translateX(0); }\n  6.5% {\n    -webkit-transform: translateX(-6px) rotateY(-9deg);\n    transform: translateX(-6px) rotateY(-9deg); }\n  18.5% {\n    -webkit-transform: translateX(5px) rotateY(7deg);\n    transform: translateX(5px) rotateY(7deg); }\n  31.5% {\n    -webkit-transform: translateX(-3px) rotateY(-5deg);\n    transform: translateX(-3px) rotateY(-5deg); }\n  43.5% {\n    -webkit-transform: translateX(2px) rotateY(3deg);\n    transform: translateX(2px) rotateY(3deg); }\n  50% {\n    -webkit-transform: translateX(0);\n    transform: translateX(0); } }\n\n.headShake {\n  -webkit-animation-timing-function: ease-in-out;\n  animation-timing-function: ease-in-out;\n  -webkit-animation-name: headShake;\n  animation-name: headShake; }\n\n@-webkit-keyframes swing {\n  20% {\n    -webkit-transform: rotate3d(0, 0, 1, 15deg);\n    transform: rotate3d(0, 0, 1, 15deg); }\n  40% {\n    -webkit-transform: rotate3d(0, 0, 1, -10deg);\n    transform: rotate3d(0, 0, 1, -10deg); }\n  60% {\n    -webkit-transform: rotate3d(0, 0, 1, 5deg);\n    transform: rotate3d(0, 0, 1, 5deg); }\n  80% {\n    -webkit-transform: rotate3d(0, 0, 1, -5deg);\n    transform: rotate3d(0, 0, 1, -5deg); }\n  to {\n    -webkit-transform: rotate3d(0, 0, 1, 0deg);\n    transform: rotate3d(0, 0, 1, 0deg); } }\n\n@keyframes swing {\n  20% {\n    -webkit-transform: rotate3d(0, 0, 1, 15deg);\n    transform: rotate3d(0, 0, 1, 15deg); }\n  40% {\n    -webkit-transform: rotate3d(0, 0, 1, -10deg);\n    transform: rotate3d(0, 0, 1, -10deg); }\n  60% {\n    -webkit-transform: rotate3d(0, 0, 1, 5deg);\n    transform: rotate3d(0, 0, 1, 5deg); }\n  80% {\n    -webkit-transform: rotate3d(0, 0, 1, -5deg);\n    transform: rotate3d(0, 0, 1, -5deg); }\n  to {\n    -webkit-transform: rotate3d(0, 0, 1, 0deg);\n    transform: rotate3d(0, 0, 1, 0deg); } }\n\n.swing {\n  -webkit-transform-origin: top center;\n  -ms-transform-origin: top center;\n  transform-origin: top center;\n  -webkit-animation-name: swing;\n  animation-name: swing; }\n\n@-webkit-keyframes tada {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  10%,\n  20% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);\n    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }\n  30%,\n  50%,\n  70%,\n  90% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }\n  40%,\n  60%,\n  80% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n@keyframes tada {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  10%,\n  20% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);\n    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }\n  30%,\n  50%,\n  70%,\n  90% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }\n  40%,\n  60%,\n  80% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n.tada {\n  -webkit-animation-name: tada;\n  animation-name: tada; }\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n@-webkit-keyframes wobble {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  15% {\n    -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);\n    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); }\n  30% {\n    -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);\n    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); }\n  45% {\n    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);\n    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); }\n  60% {\n    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);\n    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); }\n  75% {\n    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);\n    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n@keyframes wobble {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  15% {\n    -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);\n    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); }\n  30% {\n    -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);\n    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); }\n  45% {\n    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);\n    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); }\n  60% {\n    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);\n    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); }\n  75% {\n    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);\n    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.wobble {\n  -webkit-animation-name: wobble;\n  animation-name: wobble; }\n\n@-webkit-keyframes jello {\n  from,\n  11.1%,\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  22.2% {\n    -webkit-transform: skewX(-12.5deg) skewY(-12.5deg);\n    transform: skewX(-12.5deg) skewY(-12.5deg); }\n  33.3% {\n    -webkit-transform: skewX(6.25deg) skewY(6.25deg);\n    transform: skewX(6.25deg) skewY(6.25deg); }\n  44.4% {\n    -webkit-transform: skewX(-3.125deg) skewY(-3.125deg);\n    transform: skewX(-3.125deg) skewY(-3.125deg); }\n  55.5% {\n    -webkit-transform: skewX(1.5625deg) skewY(1.5625deg);\n    transform: skewX(1.5625deg) skewY(1.5625deg); }\n  66.6% {\n    -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg);\n    transform: skewX(-0.78125deg) skewY(-0.78125deg); }\n  77.7% {\n    -webkit-transform: skewX(0.39062deg) skewY(0.39062deg);\n    transform: skewX(0.39062deg) skewY(0.39062deg); }\n  88.8% {\n    -webkit-transform: skewX(-0.19531deg) skewY(-0.19531deg);\n    transform: skewX(-0.19531deg) skewY(-0.19531deg); } }\n\n@keyframes jello {\n  from,\n  11.1%,\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  22.2% {\n    -webkit-transform: skewX(-12.5deg) skewY(-12.5deg);\n    transform: skewX(-12.5deg) skewY(-12.5deg); }\n  33.3% {\n    -webkit-transform: skewX(6.25deg) skewY(6.25deg);\n    transform: skewX(6.25deg) skewY(6.25deg); }\n  44.4% {\n    -webkit-transform: skewX(-3.125deg) skewY(-3.125deg);\n    transform: skewX(-3.125deg) skewY(-3.125deg); }\n  55.5% {\n    -webkit-transform: skewX(1.5625deg) skewY(1.5625deg);\n    transform: skewX(1.5625deg) skewY(1.5625deg); }\n  66.6% {\n    -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg);\n    transform: skewX(-0.78125deg) skewY(-0.78125deg); }\n  77.7% {\n    -webkit-transform: skewX(0.39062deg) skewY(0.39062deg);\n    transform: skewX(0.39062deg) skewY(0.39062deg); }\n  88.8% {\n    -webkit-transform: skewX(-0.19531deg) skewY(-0.19531deg);\n    transform: skewX(-0.19531deg) skewY(-0.19531deg); } }\n\n.jello {\n  -webkit-animation-name: jello;\n  animation-name: jello;\n  -webkit-transform-origin: center;\n  -ms-transform-origin: center;\n  transform-origin: center; }\n\n@-webkit-keyframes heartBeat {\n  0% {\n    -webkit-transform: scale(1);\n    transform: scale(1); }\n  14% {\n    -webkit-transform: scale(1.3);\n    transform: scale(1.3); }\n  28% {\n    -webkit-transform: scale(1);\n    transform: scale(1); }\n  42% {\n    -webkit-transform: scale(1.3);\n    transform: scale(1.3); }\n  70% {\n    -webkit-transform: scale(1);\n    transform: scale(1); } }\n\n@keyframes heartBeat {\n  0% {\n    -webkit-transform: scale(1);\n    transform: scale(1); }\n  14% {\n    -webkit-transform: scale(1.3);\n    transform: scale(1.3); }\n  28% {\n    -webkit-transform: scale(1);\n    transform: scale(1); }\n  42% {\n    -webkit-transform: scale(1.3);\n    transform: scale(1.3); }\n  70% {\n    -webkit-transform: scale(1);\n    transform: scale(1); } }\n\n.heartBeat {\n  -webkit-animation-name: heartBeat;\n  animation-name: heartBeat;\n  -webkit-animation-duration: 1.3s;\n  animation-duration: 1.3s;\n  -webkit-animation-timing-function: ease-in-out;\n  animation-timing-function: ease-in-out; }\n\n@-webkit-keyframes bounceIn {\n  from,\n  20%,\n  40%,\n  60%,\n  80%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  20% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1);\n    transform: scale3d(1.1, 1.1, 1.1); }\n  40% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9);\n    transform: scale3d(0.9, 0.9, 0.9); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(1.03, 1.03, 1.03);\n    transform: scale3d(1.03, 1.03, 1.03); }\n  80% {\n    -webkit-transform: scale3d(0.97, 0.97, 0.97);\n    transform: scale3d(0.97, 0.97, 0.97); }\n  to {\n    opacity: 1;\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n@keyframes bounceIn {\n  from,\n  20%,\n  40%,\n  60%,\n  80%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  20% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1);\n    transform: scale3d(1.1, 1.1, 1.1); }\n  40% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9);\n    transform: scale3d(0.9, 0.9, 0.9); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(1.03, 1.03, 1.03);\n    transform: scale3d(1.03, 1.03, 1.03); }\n  80% {\n    -webkit-transform: scale3d(0.97, 0.97, 0.97);\n    transform: scale3d(0.97, 0.97, 0.97); }\n  to {\n    opacity: 1;\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n.bounceIn {\n  -webkit-animation-duration: 0.75s;\n  animation-duration: 0.75s;\n  -webkit-animation-name: bounceIn;\n  animation-name: bounceIn; }\n\n@-webkit-keyframes bounceInDown {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -3000px, 0);\n    transform: translate3d(0, -3000px, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 25px, 0);\n    transform: translate3d(0, 25px, 0); }\n  75% {\n    -webkit-transform: translate3d(0, -10px, 0);\n    transform: translate3d(0, -10px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, 5px, 0);\n    transform: translate3d(0, 5px, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes bounceInDown {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -3000px, 0);\n    transform: translate3d(0, -3000px, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 25px, 0);\n    transform: translate3d(0, 25px, 0); }\n  75% {\n    -webkit-transform: translate3d(0, -10px, 0);\n    transform: translate3d(0, -10px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, 5px, 0);\n    transform: translate3d(0, 5px, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.bounceInDown {\n  -webkit-animation-name: bounceInDown;\n  animation-name: bounceInDown; }\n\n@-webkit-keyframes bounceInLeft {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: translate3d(-3000px, 0, 0);\n    transform: translate3d(-3000px, 0, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(25px, 0, 0);\n    transform: translate3d(25px, 0, 0); }\n  75% {\n    -webkit-transform: translate3d(-10px, 0, 0);\n    transform: translate3d(-10px, 0, 0); }\n  90% {\n    -webkit-transform: translate3d(5px, 0, 0);\n    transform: translate3d(5px, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes bounceInLeft {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: translate3d(-3000px, 0, 0);\n    transform: translate3d(-3000px, 0, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(25px, 0, 0);\n    transform: translate3d(25px, 0, 0); }\n  75% {\n    -webkit-transform: translate3d(-10px, 0, 0);\n    transform: translate3d(-10px, 0, 0); }\n  90% {\n    -webkit-transform: translate3d(5px, 0, 0);\n    transform: translate3d(5px, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.bounceInLeft {\n  -webkit-animation-name: bounceInLeft;\n  animation-name: bounceInLeft; }\n\n@-webkit-keyframes bounceInRight {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(3000px, 0, 0);\n    transform: translate3d(3000px, 0, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(-25px, 0, 0);\n    transform: translate3d(-25px, 0, 0); }\n  75% {\n    -webkit-transform: translate3d(10px, 0, 0);\n    transform: translate3d(10px, 0, 0); }\n  90% {\n    -webkit-transform: translate3d(-5px, 0, 0);\n    transform: translate3d(-5px, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes bounceInRight {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(3000px, 0, 0);\n    transform: translate3d(3000px, 0, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(-25px, 0, 0);\n    transform: translate3d(-25px, 0, 0); }\n  75% {\n    -webkit-transform: translate3d(10px, 0, 0);\n    transform: translate3d(10px, 0, 0); }\n  90% {\n    -webkit-transform: translate3d(-5px, 0, 0);\n    transform: translate3d(-5px, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.bounceInRight {\n  -webkit-animation-name: bounceInRight;\n  animation-name: bounceInRight; }\n\n@-webkit-keyframes bounceInUp {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 3000px, 0);\n    transform: translate3d(0, 3000px, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, -20px, 0);\n    transform: translate3d(0, -20px, 0); }\n  75% {\n    -webkit-transform: translate3d(0, 10px, 0);\n    transform: translate3d(0, 10px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, -5px, 0);\n    transform: translate3d(0, -5px, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes bounceInUp {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 3000px, 0);\n    transform: translate3d(0, 3000px, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, -20px, 0);\n    transform: translate3d(0, -20px, 0); }\n  75% {\n    -webkit-transform: translate3d(0, 10px, 0);\n    transform: translate3d(0, 10px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, -5px, 0);\n    transform: translate3d(0, -5px, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.bounceInUp {\n  -webkit-animation-name: bounceInUp;\n  animation-name: bounceInUp; }\n\n@-webkit-keyframes bounceOut {\n  20% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9);\n    transform: scale3d(0.9, 0.9, 0.9); }\n  50%,\n  55% {\n    opacity: 1;\n    -webkit-transform: scale3d(1.1, 1.1, 1.1);\n    transform: scale3d(1.1, 1.1, 1.1); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); } }\n\n@keyframes bounceOut {\n  20% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9);\n    transform: scale3d(0.9, 0.9, 0.9); }\n  50%,\n  55% {\n    opacity: 1;\n    -webkit-transform: scale3d(1.1, 1.1, 1.1);\n    transform: scale3d(1.1, 1.1, 1.1); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); } }\n\n.bounceOut {\n  -webkit-animation-duration: 0.75s;\n  animation-duration: 0.75s;\n  -webkit-animation-name: bounceOut;\n  animation-name: bounceOut; }\n\n@-webkit-keyframes bounceOutDown {\n  20% {\n    -webkit-transform: translate3d(0, 10px, 0);\n    transform: translate3d(0, 10px, 0); }\n  40%,\n  45% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, -20px, 0);\n    transform: translate3d(0, -20px, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); } }\n\n@keyframes bounceOutDown {\n  20% {\n    -webkit-transform: translate3d(0, 10px, 0);\n    transform: translate3d(0, 10px, 0); }\n  40%,\n  45% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, -20px, 0);\n    transform: translate3d(0, -20px, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); } }\n\n.bounceOutDown {\n  -webkit-animation-name: bounceOutDown;\n  animation-name: bounceOutDown; }\n\n@-webkit-keyframes bounceOutLeft {\n  20% {\n    opacity: 1;\n    -webkit-transform: translate3d(20px, 0, 0);\n    transform: translate3d(20px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); } }\n\n@keyframes bounceOutLeft {\n  20% {\n    opacity: 1;\n    -webkit-transform: translate3d(20px, 0, 0);\n    transform: translate3d(20px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); } }\n\n.bounceOutLeft {\n  -webkit-animation-name: bounceOutLeft;\n  animation-name: bounceOutLeft; }\n\n@-webkit-keyframes bounceOutRight {\n  20% {\n    opacity: 1;\n    -webkit-transform: translate3d(-20px, 0, 0);\n    transform: translate3d(-20px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); } }\n\n@keyframes bounceOutRight {\n  20% {\n    opacity: 1;\n    -webkit-transform: translate3d(-20px, 0, 0);\n    transform: translate3d(-20px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); } }\n\n.bounceOutRight {\n  -webkit-animation-name: bounceOutRight;\n  animation-name: bounceOutRight; }\n\n@-webkit-keyframes bounceOutUp {\n  20% {\n    -webkit-transform: translate3d(0, -10px, 0);\n    transform: translate3d(0, -10px, 0); }\n  40%,\n  45% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 20px, 0);\n    transform: translate3d(0, 20px, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); } }\n\n@keyframes bounceOutUp {\n  20% {\n    -webkit-transform: translate3d(0, -10px, 0);\n    transform: translate3d(0, -10px, 0); }\n  40%,\n  45% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 20px, 0);\n    transform: translate3d(0, 20px, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); } }\n\n.bounceOutUp {\n  -webkit-animation-name: bounceOutUp;\n  animation-name: bounceOutUp; }\n\n@-webkit-keyframes fadeInDownBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInDownBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInDownBig {\n  -webkit-animation-name: fadeInDownBig;\n  animation-name: fadeInDownBig; }\n\n@-webkit-keyframes fadeInLeftBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInLeftBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInLeftBig {\n  -webkit-animation-name: fadeInLeftBig;\n  animation-name: fadeInLeftBig; }\n\n@-webkit-keyframes fadeInRightBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInRightBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInRightBig {\n  -webkit-animation-name: fadeInRightBig;\n  animation-name: fadeInRightBig; }\n\n@-webkit-keyframes fadeInUpBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInUpBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInUpBig {\n  -webkit-animation-name: fadeInUpBig;\n  animation-name: fadeInUpBig; }\n\n@-webkit-keyframes fadeOutDownBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); } }\n\n@keyframes fadeOutDownBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); } }\n\n.fadeOutDownBig {\n  -webkit-animation-name: fadeOutDownBig;\n  animation-name: fadeOutDownBig; }\n\n@-webkit-keyframes fadeOutLeftBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); } }\n\n@keyframes fadeOutLeftBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); } }\n\n.fadeOutLeftBig {\n  -webkit-animation-name: fadeOutLeftBig;\n  animation-name: fadeOutLeftBig; }\n\n@-webkit-keyframes fadeOutRightBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); } }\n\n@keyframes fadeOutRightBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); } }\n\n.fadeOutRightBig {\n  -webkit-animation-name: fadeOutRightBig;\n  animation-name: fadeOutRightBig; }\n\n@-webkit-keyframes fadeOutUpBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); } }\n\n@keyframes fadeOutUpBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); } }\n\n.fadeOutUpBig {\n  -webkit-animation-name: fadeOutUpBig;\n  animation-name: fadeOutUpBig; }\n\n@-webkit-keyframes flip {\n  from {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);\n    -webkit-animation-timing-function: ease-out;\n    animation-timing-function: ease-out; }\n  40% {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n    -webkit-animation-timing-function: ease-out;\n    animation-timing-function: ease-out; }\n  50% {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  80% {\n    -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  to {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; } }\n\n@keyframes flip {\n  from {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);\n    -webkit-animation-timing-function: ease-out;\n    animation-timing-function: ease-out; }\n  40% {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n    -webkit-animation-timing-function: ease-out;\n    animation-timing-function: ease-out; }\n  50% {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  80% {\n    -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  to {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; } }\n\n.flip {\n  -webkit-backface-visibility: visible;\n  backface-visibility: visible;\n  -webkit-animation-name: flip;\n  animation-name: flip; }\n\n@-webkit-keyframes flipInX {\n  from {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in;\n    opacity: 0; }\n  40% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  60% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }\n  to {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); } }\n\n@keyframes flipInX {\n  from {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in;\n    opacity: 0; }\n  40% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  60% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }\n  to {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); } }\n\n.flipInX {\n  -webkit-backface-visibility: visible !important;\n  backface-visibility: visible !important;\n  -webkit-animation-name: flipInX;\n  animation-name: flipInX; }\n\n@-webkit-keyframes flipInY {\n  from {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in;\n    opacity: 0; }\n  40% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  60% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }\n  to {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); } }\n\n@keyframes flipInY {\n  from {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in;\n    opacity: 0; }\n  40% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  60% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }\n  to {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); } }\n\n.flipInY {\n  -webkit-backface-visibility: visible !important;\n  backface-visibility: visible !important;\n  -webkit-animation-name: flipInY;\n  animation-name: flipInY; }\n\n@-webkit-keyframes flipOutX {\n  from {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); }\n  30% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    opacity: 1; }\n  to {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    opacity: 0; } }\n\n@keyframes flipOutX {\n  from {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); }\n  30% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    opacity: 1; }\n  to {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    opacity: 0; } }\n\n.flipOutX {\n  -webkit-animation-duration: 0.75s;\n  animation-duration: 0.75s;\n  -webkit-animation-name: flipOutX;\n  animation-name: flipOutX;\n  -webkit-backface-visibility: visible !important;\n  backface-visibility: visible !important; }\n\n@-webkit-keyframes flipOutY {\n  from {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); }\n  30% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -15deg);\n    opacity: 1; }\n  to {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    opacity: 0; } }\n\n@keyframes flipOutY {\n  from {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); }\n  30% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -15deg);\n    opacity: 1; }\n  to {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    opacity: 0; } }\n\n.flipOutY {\n  -webkit-animation-duration: 0.75s;\n  animation-duration: 0.75s;\n  -webkit-backface-visibility: visible !important;\n  backface-visibility: visible !important;\n  -webkit-animation-name: flipOutY;\n  animation-name: flipOutY; }\n\n@-webkit-keyframes lightSpeedIn {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg);\n    transform: translate3d(100%, 0, 0) skewX(-30deg);\n    opacity: 0; }\n  60% {\n    -webkit-transform: skewX(20deg);\n    transform: skewX(20deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: skewX(-5deg);\n    transform: skewX(-5deg); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes lightSpeedIn {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg);\n    transform: translate3d(100%, 0, 0) skewX(-30deg);\n    opacity: 0; }\n  60% {\n    -webkit-transform: skewX(20deg);\n    transform: skewX(20deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: skewX(-5deg);\n    transform: skewX(-5deg); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.lightSpeedIn {\n  -webkit-animation-name: lightSpeedIn;\n  animation-name: lightSpeedIn;\n  -webkit-animation-timing-function: ease-out;\n  animation-timing-function: ease-out; }\n\n@-webkit-keyframes lightSpeedOut {\n  from {\n    opacity: 1; }\n  to {\n    -webkit-transform: translate3d(100%, 0, 0) skewX(30deg);\n    transform: translate3d(100%, 0, 0) skewX(30deg);\n    opacity: 0; } }\n\n@keyframes lightSpeedOut {\n  from {\n    opacity: 1; }\n  to {\n    -webkit-transform: translate3d(100%, 0, 0) skewX(30deg);\n    transform: translate3d(100%, 0, 0) skewX(30deg);\n    opacity: 0; } }\n\n.lightSpeedOut {\n  -webkit-animation-name: lightSpeedOut;\n  animation-name: lightSpeedOut;\n  -webkit-animation-timing-function: ease-in;\n  animation-timing-function: ease-in; }\n\n@-webkit-keyframes rotateIn {\n  from {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: rotate3d(0, 0, 1, -200deg);\n    transform: rotate3d(0, 0, 1, -200deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateIn {\n  from {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: rotate3d(0, 0, 1, -200deg);\n    transform: rotate3d(0, 0, 1, -200deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateIn {\n  -webkit-animation-name: rotateIn;\n  animation-name: rotateIn; }\n\n@-webkit-keyframes rotateInDownLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateInDownLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateInDownLeft {\n  -webkit-animation-name: rotateInDownLeft;\n  animation-name: rotateInDownLeft; }\n\n@-webkit-keyframes rotateInDownRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateInDownRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateInDownRight {\n  -webkit-animation-name: rotateInDownRight;\n  animation-name: rotateInDownRight; }\n\n@-webkit-keyframes rotateInUpLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateInUpLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateInUpLeft {\n  -webkit-animation-name: rotateInUpLeft;\n  animation-name: rotateInUpLeft; }\n\n@-webkit-keyframes rotateInUpRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -90deg);\n    transform: rotate3d(0, 0, 1, -90deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateInUpRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -90deg);\n    transform: rotate3d(0, 0, 1, -90deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateInUpRight {\n  -webkit-animation-name: rotateInUpRight;\n  animation-name: rotateInUpRight; }\n\n@-webkit-keyframes rotateOut {\n  from {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: rotate3d(0, 0, 1, 200deg);\n    transform: rotate3d(0, 0, 1, 200deg);\n    opacity: 0; } }\n\n@keyframes rotateOut {\n  from {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: rotate3d(0, 0, 1, 200deg);\n    transform: rotate3d(0, 0, 1, 200deg);\n    opacity: 0; } }\n\n.rotateOut {\n  -webkit-animation-name: rotateOut;\n  animation-name: rotateOut; }\n\n@-webkit-keyframes rotateOutDownLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; } }\n\n@keyframes rotateOutDownLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; } }\n\n.rotateOutDownLeft {\n  -webkit-animation-name: rotateOutDownLeft;\n  animation-name: rotateOutDownLeft; }\n\n@-webkit-keyframes rotateOutDownRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; } }\n\n@keyframes rotateOutDownRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; } }\n\n.rotateOutDownRight {\n  -webkit-animation-name: rotateOutDownRight;\n  animation-name: rotateOutDownRight; }\n\n@-webkit-keyframes rotateOutUpLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; } }\n\n@keyframes rotateOutUpLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; } }\n\n.rotateOutUpLeft {\n  -webkit-animation-name: rotateOutUpLeft;\n  animation-name: rotateOutUpLeft; }\n\n@-webkit-keyframes rotateOutUpRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 90deg);\n    transform: rotate3d(0, 0, 1, 90deg);\n    opacity: 0; } }\n\n@keyframes rotateOutUpRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 90deg);\n    transform: rotate3d(0, 0, 1, 90deg);\n    opacity: 0; } }\n\n.rotateOutUpRight {\n  -webkit-animation-name: rotateOutUpRight;\n  animation-name: rotateOutUpRight; }\n\n@-webkit-keyframes hinge {\n  0% {\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out; }\n  20%,\n  60% {\n    -webkit-transform: rotate3d(0, 0, 1, 80deg);\n    transform: rotate3d(0, 0, 1, 80deg);\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out; }\n  40%,\n  80% {\n    -webkit-transform: rotate3d(0, 0, 1, 60deg);\n    transform: rotate3d(0, 0, 1, 60deg);\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out;\n    opacity: 1; }\n  to {\n    -webkit-transform: translate3d(0, 700px, 0);\n    transform: translate3d(0, 700px, 0);\n    opacity: 0; } }\n\n@keyframes hinge {\n  0% {\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out; }\n  20%,\n  60% {\n    -webkit-transform: rotate3d(0, 0, 1, 80deg);\n    transform: rotate3d(0, 0, 1, 80deg);\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out; }\n  40%,\n  80% {\n    -webkit-transform: rotate3d(0, 0, 1, 60deg);\n    transform: rotate3d(0, 0, 1, 60deg);\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out;\n    opacity: 1; }\n  to {\n    -webkit-transform: translate3d(0, 700px, 0);\n    transform: translate3d(0, 700px, 0);\n    opacity: 0; } }\n\n.hinge {\n  -webkit-animation-duration: 2s;\n  animation-duration: 2s;\n  -webkit-animation-name: hinge;\n  animation-name: hinge; }\n\n@-webkit-keyframes jackInTheBox {\n  from {\n    opacity: 0;\n    -webkit-transform: scale(0.1) rotate(30deg);\n    transform: scale(0.1) rotate(30deg);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom; }\n  50% {\n    -webkit-transform: rotate(-10deg);\n    transform: rotate(-10deg); }\n  70% {\n    -webkit-transform: rotate(3deg);\n    transform: rotate(3deg); }\n  to {\n    opacity: 1;\n    -webkit-transform: scale(1);\n    transform: scale(1); } }\n\n@keyframes jackInTheBox {\n  from {\n    opacity: 0;\n    -webkit-transform: scale(0.1) rotate(30deg);\n    transform: scale(0.1) rotate(30deg);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom; }\n  50% {\n    -webkit-transform: rotate(-10deg);\n    transform: rotate(-10deg); }\n  70% {\n    -webkit-transform: rotate(3deg);\n    transform: rotate(3deg); }\n  to {\n    opacity: 1;\n    -webkit-transform: scale(1);\n    transform: scale(1); } }\n\n.jackInTheBox {\n  -webkit-animation-name: jackInTheBox;\n  animation-name: jackInTheBox; }\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n@-webkit-keyframes rollIn {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);\n    transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n@keyframes rollIn {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);\n    transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.rollIn {\n  -webkit-animation-name: rollIn;\n  animation-name: rollIn; }\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n@-webkit-keyframes rollOut {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);\n    transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } }\n@keyframes rollOut {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);\n    transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } }\n\n.rollOut {\n  -webkit-animation-name: rollOut;\n  animation-name: rollOut; }\n\n@-webkit-keyframes zoomIn {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  50% {\n    opacity: 1; } }\n\n@keyframes zoomIn {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  50% {\n    opacity: 1; } }\n\n.zoomIn {\n  -webkit-animation-name: zoomIn;\n  animation-name: zoomIn; }\n\n@-webkit-keyframes zoomInDown {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomInDown {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomInDown {\n  -webkit-animation-name: zoomInDown;\n  animation-name: zoomInDown; }\n\n@-webkit-keyframes zoomInLeft {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomInLeft {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomInLeft {\n  -webkit-animation-name: zoomInLeft;\n  animation-name: zoomInLeft; }\n\n@-webkit-keyframes zoomInRight {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomInRight {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomInRight {\n  -webkit-animation-name: zoomInRight;\n  animation-name: zoomInRight; }\n\n@-webkit-keyframes zoomInUp {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomInUp {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomInUp {\n  -webkit-animation-name: zoomInUp;\n  animation-name: zoomInUp; }\n\n@-webkit-keyframes zoomOut {\n  from {\n    opacity: 1; }\n  50% {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  to {\n    opacity: 0; } }\n\n@keyframes zoomOut {\n  from {\n    opacity: 1; }\n  50% {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  to {\n    opacity: 0; } }\n\n.zoomOut {\n  -webkit-animation-name: zoomOut;\n  animation-name: zoomOut; }\n\n@-webkit-keyframes zoomOutDown {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom;\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomOutDown {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom;\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomOutDown {\n  -webkit-animation-name: zoomOutDown;\n  animation-name: zoomOutDown; }\n\n@-webkit-keyframes zoomOutLeft {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0);\n    transform: scale(0.1) translate3d(-2000px, 0, 0);\n    -webkit-transform-origin: left center;\n    transform-origin: left center; } }\n\n@keyframes zoomOutLeft {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0);\n    transform: scale(0.1) translate3d(-2000px, 0, 0);\n    -webkit-transform-origin: left center;\n    transform-origin: left center; } }\n\n.zoomOutLeft {\n  -webkit-animation-name: zoomOutLeft;\n  animation-name: zoomOutLeft; }\n\n@-webkit-keyframes zoomOutRight {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale(0.1) translate3d(2000px, 0, 0);\n    transform: scale(0.1) translate3d(2000px, 0, 0);\n    -webkit-transform-origin: right center;\n    transform-origin: right center; } }\n\n@keyframes zoomOutRight {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale(0.1) translate3d(2000px, 0, 0);\n    transform: scale(0.1) translate3d(2000px, 0, 0);\n    -webkit-transform-origin: right center;\n    transform-origin: right center; } }\n\n.zoomOutRight {\n  -webkit-animation-name: zoomOutRight;\n  animation-name: zoomOutRight; }\n\n@-webkit-keyframes zoomOutUp {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom;\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomOutUp {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom;\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomOutUp {\n  -webkit-animation-name: zoomOutUp;\n  animation-name: zoomOutUp; }\n\n@-webkit-keyframes slideInDown {\n  from {\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes slideInDown {\n  from {\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.slideInDown {\n  -webkit-animation-name: slideInDown;\n  animation-name: slideInDown; }\n\n@-webkit-keyframes slideInLeft {\n  from {\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes slideInLeft {\n  from {\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.slideInLeft {\n  -webkit-animation-name: slideInLeft;\n  animation-name: slideInLeft; }\n\n@-webkit-keyframes slideInRight {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes slideInRight {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.slideInRight {\n  -webkit-animation-name: slideInRight;\n  animation-name: slideInRight; }\n\n@-webkit-keyframes slideInUp {\n  from {\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes slideInUp {\n  from {\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.slideInUp {\n  -webkit-animation-name: slideInUp;\n  animation-name: slideInUp; }\n\n@-webkit-keyframes slideOutDown {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); } }\n\n@keyframes slideOutDown {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); } }\n\n.slideOutDown {\n  -webkit-animation-name: slideOutDown;\n  animation-name: slideOutDown; }\n\n@-webkit-keyframes slideOutLeft {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); } }\n\n@keyframes slideOutLeft {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); } }\n\n.slideOutLeft {\n  -webkit-animation-name: slideOutLeft;\n  animation-name: slideOutLeft; }\n\n@-webkit-keyframes slideOutRight {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); } }\n\n@keyframes slideOutRight {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); } }\n\n.slideOutRight {\n  -webkit-animation-name: slideOutRight;\n  animation-name: slideOutRight; }\n\n@-webkit-keyframes slideOutUp {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); } }\n\n@keyframes slideOutUp {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); } }\n\n.slideOutUp {\n  -webkit-animation-name: slideOutUp;\n  animation-name: slideOutUp; }\n\n.btn {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  padding: 0.84rem 2.14rem;\n  font-size: 0.81rem;\n  -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n  -o-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n  margin: 0.375rem;\n  border: 0;\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem;\n  cursor: pointer;\n  text-transform: uppercase;\n  white-space: normal;\n  word-wrap: break-word;\n  color: #fff; }\n  .btn:hover, .btn:active, .btn:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    outline: 0; }\n  .btn:not([disabled]):not(.disabled):active, .btn:not([disabled]):not(.disabled).active {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn .fas, .btn .fab, .btn .far {\n    position: relative;\n    font-size: 0.9rem; }\n    .btn .fas.right, .btn .fab.right, .btn .far.right {\n      margin-left: 0.3rem; }\n    .btn .fas.left, .btn .fab.left, .btn .far.left {\n      margin-right: 0.3rem; }\n  .btn.btn-lg {\n    padding: 1rem 2.4rem;\n    font-size: 0.94rem; }\n    .btn.btn-lg .fas, .btn.btn-lg .fab, .btn.btn-lg .far {\n      font-size: 1rem; }\n  .btn.btn-md {\n    padding: 0.7rem 1.6rem;\n    font-size: 0.7rem; }\n    .btn.btn-md .fas, .btn.btn-md .fab, .btn.btn-md .far {\n      font-size: 0.8rem; }\n  .btn.btn-sm {\n    padding: 0.5rem 1.6rem;\n    font-size: 0.64rem; }\n    .btn.btn-sm .fas, .btn.btn-sm .fab, .btn.btn-sm .far {\n      font-size: 0.7rem; }\n  .btn.btn-tb {\n    padding: 0.3rem 1rem; }\n  .btn.disabled:active, .btn.disabled:focus, .btn.disabled:hover, .btn:disabled:active, .btn:disabled:focus, .btn:disabled:hover {\n    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); }\n  .btn.btn-block {\n    margin: inherit; }\n  .btn.btn-link {\n    -webkit-box-shadow: none;\n    box-shadow: none;\n    background-color: transparent; }\n    .btn.btn-link:active, .btn.btn-link:focus, .btn.btn-link:hover {\n      -webkit-box-shadow: none !important;\n      box-shadow: none !important;\n      background-color: transparent; }\n  .btn[class*=\"btn-outline-\"] {\n    padding-top: 0.7rem;\n    padding-bottom: 0.7rem; }\n    .btn[class*=\"btn-outline-\"].btn-lg {\n      padding-top: 0.88rem;\n      padding-bottom: 0.88rem; }\n    .btn[class*=\"btn-outline-\"].btn-md {\n      padding-top: 0.58rem;\n      padding-bottom: 0.58rem; }\n    .btn[class*=\"btn-outline-\"].btn-sm {\n      padding-top: 0.38rem;\n      padding-bottom: 0.38rem; }\n\n.btn-group .btn {\n  margin: 0; }\n\n.btn .fa-lg,\n.btn-floating .fa-lg {\n  font-size: 1.33333em  !important; }\n\n.btn .fa-xs,\n.btn-floating .fa-xs {\n  font-size: .75em !important; }\n\n.btn .fa-sm,\n.btn-floating .fa-sm {\n  font-size: .875em !important; }\n\n.btn .fa-1x,\n.btn-floating .fa-1x {\n  font-size: 1em !important; }\n\n.btn .fa-2x,\n.btn-floating .fa-2x {\n  font-size: 2em !important; }\n\n.btn .fa-3x,\n.btn-floating .fa-3x {\n  font-size: 3em !important; }\n\n.btn .fa-4x,\n.btn-floating .fa-4x {\n  font-size: 4em !important; }\n\n.btn .fa-5x,\n.btn-floating .fa-5x {\n  font-size: 5em !important; }\n\n.btn .fa-6x,\n.btn-floating .fa-6x {\n  font-size: 6em !important; }\n\n.btn .fa-7x,\n.btn-floating .fa-7x {\n  font-size: 7em !important; }\n\n.btn .fa-8x,\n.btn-floating .fa-8x {\n  font-size: 8em !important; }\n\n.btn .fa-9x,\n.btn-floating .fa-9x {\n  font-size: 9em !important; }\n\n.btn .fa-10x,\n.btn-floating .fa-10x {\n  font-size: 10em !important; }\n\n.btn-primary {\n  background-color: #4285f4 !important;\n  color: #fff !important; }\n  .btn-primary:hover {\n    background-color: #5a95f5; }\n  .btn-primary:focus, .btn-primary.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-primary:focus, .btn-primary:active, .btn-primary.active {\n    background-color: #0b51c5; }\n  .btn-primary.dropdown-toggle {\n    background-color: #4285f4 !important; }\n    .btn-primary.dropdown-toggle:hover, .btn-primary.dropdown-toggle:focus {\n      background-color: #5a95f5 !important; }\n  .btn-primary:not([disabled]):not(.disabled):active, .btn-primary:not([disabled]):not(.disabled).active,\n  .show > .btn-primary.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #0b51c5 !important; }\n  .btn-primary:not([disabled]):not(.disabled):active:focus, .btn-primary:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-primary.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.primary-ic {\n  color: #4285f4 !important; }\n  .primary-ic:hover, .primary-ic:focus {\n    color: #4285f4; }\n\n.btn-outline-primary {\n  border: 2px solid #4285f4 !important;\n  background-color: transparent !important;\n  color: #4285f4 !important; }\n  .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary:active:focus, .btn-outline-primary.active {\n    border-color: #4285f4 !important;\n    background-color: transparent !important;\n    color: #4285f4 !important; }\n  .btn-outline-primary:not([disabled]):not(.disabled):active, .btn-outline-primary:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-primary.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #4285f4 !important; }\n  .btn-outline-primary:not([disabled]):not(.disabled):active:focus, .btn-outline-primary:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-primary.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-danger {\n  background-color: #ff3547 !important;\n  color: #fff !important; }\n  .btn-danger:hover {\n    background-color: #ff4f5e; }\n  .btn-danger:focus, .btn-danger.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-danger:focus, .btn-danger:active, .btn-danger.active {\n    background-color: #ce0012; }\n  .btn-danger.dropdown-toggle {\n    background-color: #ff3547 !important; }\n    .btn-danger.dropdown-toggle:hover, .btn-danger.dropdown-toggle:focus {\n      background-color: #ff4f5e !important; }\n  .btn-danger:not([disabled]):not(.disabled):active, .btn-danger:not([disabled]):not(.disabled).active,\n  .show > .btn-danger.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #ce0012 !important; }\n  .btn-danger:not([disabled]):not(.disabled):active:focus, .btn-danger:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-danger.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.danger-ic {\n  color: #ff3547 !important; }\n  .danger-ic:hover, .danger-ic:focus {\n    color: #ff3547; }\n\n.btn-outline-danger {\n  border: 2px solid #ff3547 !important;\n  background-color: transparent !important;\n  color: #ff3547 !important; }\n  .btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active, .btn-outline-danger:active:focus, .btn-outline-danger.active {\n    border-color: #ff3547 !important;\n    background-color: transparent !important;\n    color: #ff3547 !important; }\n  .btn-outline-danger:not([disabled]):not(.disabled):active, .btn-outline-danger:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-danger.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ff3547 !important; }\n  .btn-outline-danger:not([disabled]):not(.disabled):active:focus, .btn-outline-danger:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-danger.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-warning {\n  background-color: #ffbb33 !important;\n  color: #fff !important; }\n  .btn-warning:hover {\n    background-color: #ffc44d; }\n  .btn-warning:focus, .btn-warning.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-warning:focus, .btn-warning:active, .btn-warning.active {\n    background-color: #cc8800; }\n  .btn-warning.dropdown-toggle {\n    background-color: #ffbb33 !important; }\n    .btn-warning.dropdown-toggle:hover, .btn-warning.dropdown-toggle:focus {\n      background-color: #ffc44d !important; }\n  .btn-warning:not([disabled]):not(.disabled):active, .btn-warning:not([disabled]):not(.disabled).active,\n  .show > .btn-warning.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #cc8800 !important; }\n  .btn-warning:not([disabled]):not(.disabled):active:focus, .btn-warning:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-warning.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.warning-ic {\n  color: #ffbb33 !important; }\n  .warning-ic:hover, .warning-ic:focus {\n    color: #ffbb33; }\n\n.btn-outline-warning {\n  border: 2px solid #ffbb33 !important;\n  background-color: transparent !important;\n  color: #ffbb33 !important; }\n  .btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active, .btn-outline-warning:active:focus, .btn-outline-warning.active {\n    border-color: #ffbb33 !important;\n    background-color: transparent !important;\n    color: #ffbb33 !important; }\n  .btn-outline-warning:not([disabled]):not(.disabled):active, .btn-outline-warning:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-warning.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ffbb33 !important; }\n  .btn-outline-warning:not([disabled]):not(.disabled):active:focus, .btn-outline-warning:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-warning.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-success {\n  background-color: #00c851 !important;\n  color: #fff !important; }\n  .btn-success:hover {\n    background-color: #00e25b; }\n  .btn-success:focus, .btn-success.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-success:focus, .btn-success:active, .btn-success.active {\n    background-color: #006228; }\n  .btn-success.dropdown-toggle {\n    background-color: #00c851 !important; }\n    .btn-success.dropdown-toggle:hover, .btn-success.dropdown-toggle:focus {\n      background-color: #00e25b !important; }\n  .btn-success:not([disabled]):not(.disabled):active, .btn-success:not([disabled]):not(.disabled).active,\n  .show > .btn-success.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #006228 !important; }\n  .btn-success:not([disabled]):not(.disabled):active:focus, .btn-success:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-success.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.success-ic {\n  color: #00c851 !important; }\n  .success-ic:hover, .success-ic:focus {\n    color: #00c851; }\n\n.btn-outline-success {\n  border: 2px solid #00c851 !important;\n  background-color: transparent !important;\n  color: #00c851 !important; }\n  .btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active, .btn-outline-success:active:focus, .btn-outline-success.active {\n    border-color: #00c851 !important;\n    background-color: transparent !important;\n    color: #00c851 !important; }\n  .btn-outline-success:not([disabled]):not(.disabled):active, .btn-outline-success:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-success.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #00c851 !important; }\n  .btn-outline-success:not([disabled]):not(.disabled):active:focus, .btn-outline-success:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-success.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-info {\n  background-color: #33b5e5 !important;\n  color: #fff !important; }\n  .btn-info:hover {\n    background-color: #4abde8; }\n  .btn-info:focus, .btn-info.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-info:focus, .btn-info:active, .btn-info.active {\n    background-color: #14799e; }\n  .btn-info.dropdown-toggle {\n    background-color: #33b5e5 !important; }\n    .btn-info.dropdown-toggle:hover, .btn-info.dropdown-toggle:focus {\n      background-color: #4abde8 !important; }\n  .btn-info:not([disabled]):not(.disabled):active, .btn-info:not([disabled]):not(.disabled).active,\n  .show > .btn-info.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #14799e !important; }\n  .btn-info:not([disabled]):not(.disabled):active:focus, .btn-info:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-info.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.info-ic {\n  color: #33b5e5 !important; }\n  .info-ic:hover, .info-ic:focus {\n    color: #33b5e5; }\n\n.btn-outline-info {\n  border: 2px solid #33b5e5 !important;\n  background-color: transparent !important;\n  color: #33b5e5 !important; }\n  .btn-outline-info:hover, .btn-outline-info:focus, .btn-outline-info:active, .btn-outline-info:active:focus, .btn-outline-info.active {\n    border-color: #33b5e5 !important;\n    background-color: transparent !important;\n    color: #33b5e5 !important; }\n  .btn-outline-info:not([disabled]):not(.disabled):active, .btn-outline-info:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-info.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #33b5e5 !important; }\n  .btn-outline-info:not([disabled]):not(.disabled):active:focus, .btn-outline-info:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-info.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-default {\n  background-color: #2bbbad !important;\n  color: #fff !important; }\n  .btn-default:hover {\n    background-color: #30cfc0; }\n  .btn-default:focus, .btn-default.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-default:focus, .btn-default:active, .btn-default.active {\n    background-color: #186860; }\n  .btn-default.dropdown-toggle {\n    background-color: #2bbbad !important; }\n    .btn-default.dropdown-toggle:hover, .btn-default.dropdown-toggle:focus {\n      background-color: #30cfc0 !important; }\n  .btn-default:not([disabled]):not(.disabled):active, .btn-default:not([disabled]):not(.disabled).active,\n  .show > .btn-default.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #186860 !important; }\n  .btn-default:not([disabled]):not(.disabled):active:focus, .btn-default:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-default.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.default-ic {\n  color: #2bbbad !important; }\n  .default-ic:hover, .default-ic:focus {\n    color: #2bbbad; }\n\n.btn-outline-default {\n  border: 2px solid #2bbbad !important;\n  background-color: transparent !important;\n  color: #2bbbad !important; }\n  .btn-outline-default:hover, .btn-outline-default:focus, .btn-outline-default:active, .btn-outline-default:active:focus, .btn-outline-default.active {\n    border-color: #2bbbad !important;\n    background-color: transparent !important;\n    color: #2bbbad !important; }\n  .btn-outline-default:not([disabled]):not(.disabled):active, .btn-outline-default:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-default.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #2bbbad !important; }\n  .btn-outline-default:not([disabled]):not(.disabled):active:focus, .btn-outline-default:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-default.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-secondary {\n  background-color: #aa66cc !important;\n  color: #fff !important; }\n  .btn-secondary:hover {\n    background-color: #b579d2; }\n  .btn-secondary:focus, .btn-secondary.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-secondary:focus, .btn-secondary:active, .btn-secondary.active {\n    background-color: #773399; }\n  .btn-secondary.dropdown-toggle {\n    background-color: #aa66cc !important; }\n    .btn-secondary.dropdown-toggle:hover, .btn-secondary.dropdown-toggle:focus {\n      background-color: #b579d2 !important; }\n  .btn-secondary:not([disabled]):not(.disabled):active, .btn-secondary:not([disabled]):not(.disabled).active,\n  .show > .btn-secondary.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #773399 !important; }\n  .btn-secondary:not([disabled]):not(.disabled):active:focus, .btn-secondary:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-secondary.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.secondary-ic {\n  color: #aa66cc !important; }\n  .secondary-ic:hover, .secondary-ic:focus {\n    color: #aa66cc; }\n\n.btn-outline-secondary {\n  border: 2px solid #aa66cc !important;\n  background-color: transparent !important;\n  color: #aa66cc !important; }\n  .btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active, .btn-outline-secondary:active:focus, .btn-outline-secondary.active {\n    border-color: #aa66cc !important;\n    background-color: transparent !important;\n    color: #aa66cc !important; }\n  .btn-outline-secondary:not([disabled]):not(.disabled):active, .btn-outline-secondary:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-secondary.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #aa66cc !important; }\n  .btn-outline-secondary:not([disabled]):not(.disabled):active:focus, .btn-outline-secondary:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-secondary.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-elegant {\n  background-color: #2e2e2e !important;\n  color: #fff !important; }\n  .btn-elegant:hover {\n    background-color: #3b3b3b; }\n  .btn-elegant:focus, .btn-elegant.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-elegant:focus, .btn-elegant:active, .btn-elegant.active {\n    background-color: black; }\n  .btn-elegant.dropdown-toggle {\n    background-color: #2e2e2e !important; }\n    .btn-elegant.dropdown-toggle:hover, .btn-elegant.dropdown-toggle:focus {\n      background-color: #3b3b3b !important; }\n  .btn-elegant:not([disabled]):not(.disabled):active, .btn-elegant:not([disabled]):not(.disabled).active,\n  .show > .btn-elegant.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: black !important; }\n  .btn-elegant:not([disabled]):not(.disabled):active:focus, .btn-elegant:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-elegant.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.elegant-ic {\n  color: #2e2e2e !important; }\n  .elegant-ic:hover, .elegant-ic:focus {\n    color: #2e2e2e; }\n\n.btn-outline-elegant {\n  border: 2px solid #2e2e2e !important;\n  background-color: transparent !important;\n  color: #2e2e2e !important; }\n  .btn-outline-elegant:hover, .btn-outline-elegant:focus, .btn-outline-elegant:active, .btn-outline-elegant:active:focus, .btn-outline-elegant.active {\n    border-color: #2e2e2e !important;\n    background-color: transparent !important;\n    color: #2e2e2e !important; }\n  .btn-outline-elegant:not([disabled]):not(.disabled):active, .btn-outline-elegant:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-elegant.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #2e2e2e !important; }\n  .btn-outline-elegant:not([disabled]):not(.disabled):active:focus, .btn-outline-elegant:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-elegant.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-unique {\n  background-color: #880e4f !important;\n  color: #fff !important; }\n  .btn-unique:hover {\n    background-color: #9f105c; }\n  .btn-unique:focus, .btn-unique.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-unique:focus, .btn-unique:active, .btn-unique.active {\n    background-color: #2c0419; }\n  .btn-unique.dropdown-toggle {\n    background-color: #880e4f !important; }\n    .btn-unique.dropdown-toggle:hover, .btn-unique.dropdown-toggle:focus {\n      background-color: #9f105c !important; }\n  .btn-unique:not([disabled]):not(.disabled):active, .btn-unique:not([disabled]):not(.disabled).active,\n  .show > .btn-unique.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #2c0419 !important; }\n  .btn-unique:not([disabled]):not(.disabled):active:focus, .btn-unique:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-unique.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.unique-ic {\n  color: #880e4f !important; }\n  .unique-ic:hover, .unique-ic:focus {\n    color: #880e4f; }\n\n.btn-outline-unique {\n  border: 2px solid #880e4f !important;\n  background-color: transparent !important;\n  color: #880e4f !important; }\n  .btn-outline-unique:hover, .btn-outline-unique:focus, .btn-outline-unique:active, .btn-outline-unique:active:focus, .btn-outline-unique.active {\n    border-color: #880e4f !important;\n    background-color: transparent !important;\n    color: #880e4f !important; }\n  .btn-outline-unique:not([disabled]):not(.disabled):active, .btn-outline-unique:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-unique.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #880e4f !important; }\n  .btn-outline-unique:not([disabled]):not(.disabled):active:focus, .btn-outline-unique:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-unique.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-dark-green {\n  background-color: #388e3c !important;\n  color: #fff !important; }\n  .btn-dark-green:hover {\n    background-color: #3fa044; }\n  .btn-dark-green:focus, .btn-dark-green.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-dark-green:focus, .btn-dark-green:active, .btn-dark-green.active {\n    background-color: #1b451d; }\n  .btn-dark-green.dropdown-toggle {\n    background-color: #388e3c !important; }\n    .btn-dark-green.dropdown-toggle:hover, .btn-dark-green.dropdown-toggle:focus {\n      background-color: #3fa044 !important; }\n  .btn-dark-green:not([disabled]):not(.disabled):active, .btn-dark-green:not([disabled]):not(.disabled).active,\n  .show > .btn-dark-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #1b451d !important; }\n  .btn-dark-green:not([disabled]):not(.disabled):active:focus, .btn-dark-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-dark-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.dark-green-ic {\n  color: #388e3c !important; }\n  .dark-green-ic:hover, .dark-green-ic:focus {\n    color: #388e3c; }\n\n.btn-outline-dark-green {\n  border: 2px solid #388e3c !important;\n  background-color: transparent !important;\n  color: #388e3c !important; }\n  .btn-outline-dark-green:hover, .btn-outline-dark-green:focus, .btn-outline-dark-green:active, .btn-outline-dark-green:active:focus, .btn-outline-dark-green.active {\n    border-color: #388e3c !important;\n    background-color: transparent !important;\n    color: #388e3c !important; }\n  .btn-outline-dark-green:not([disabled]):not(.disabled):active, .btn-outline-dark-green:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-dark-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #388e3c !important; }\n  .btn-outline-dark-green:not([disabled]):not(.disabled):active:focus, .btn-outline-dark-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-dark-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-mdb-color {\n  background-color: #59698d !important;\n  color: #fff !important; }\n  .btn-mdb-color:hover {\n    background-color: #63759d; }\n  .btn-mdb-color:focus, .btn-mdb-color.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-mdb-color:focus, .btn-mdb-color:active, .btn-mdb-color.active {\n    background-color: #323a4e; }\n  .btn-mdb-color.dropdown-toggle {\n    background-color: #59698d !important; }\n    .btn-mdb-color.dropdown-toggle:hover, .btn-mdb-color.dropdown-toggle:focus {\n      background-color: #63759d !important; }\n  .btn-mdb-color:not([disabled]):not(.disabled):active, .btn-mdb-color:not([disabled]):not(.disabled).active,\n  .show > .btn-mdb-color.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #323a4e !important; }\n  .btn-mdb-color:not([disabled]):not(.disabled):active:focus, .btn-mdb-color:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-mdb-color.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.mdb-color-ic {\n  color: #59698d !important; }\n  .mdb-color-ic:hover, .mdb-color-ic:focus {\n    color: #59698d; }\n\n.btn-outline-mdb-color {\n  border: 2px solid #59698d !important;\n  background-color: transparent !important;\n  color: #59698d !important; }\n  .btn-outline-mdb-color:hover, .btn-outline-mdb-color:focus, .btn-outline-mdb-color:active, .btn-outline-mdb-color:active:focus, .btn-outline-mdb-color.active {\n    border-color: #59698d !important;\n    background-color: transparent !important;\n    color: #59698d !important; }\n  .btn-outline-mdb-color:not([disabled]):not(.disabled):active, .btn-outline-mdb-color:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-mdb-color.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #59698d !important; }\n  .btn-outline-mdb-color:not([disabled]):not(.disabled):active:focus, .btn-outline-mdb-color:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-mdb-color.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-red {\n  background-color: #d32f2f !important;\n  color: #fff !important; }\n  .btn-red:hover {\n    background-color: #d74444; }\n  .btn-red:focus, .btn-red.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-red:focus, .btn-red:active, .btn-red.active {\n    background-color: #811b1b; }\n  .btn-red.dropdown-toggle {\n    background-color: #d32f2f !important; }\n    .btn-red.dropdown-toggle:hover, .btn-red.dropdown-toggle:focus {\n      background-color: #d74444 !important; }\n  .btn-red:not([disabled]):not(.disabled):active, .btn-red:not([disabled]):not(.disabled).active,\n  .show > .btn-red.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #811b1b !important; }\n  .btn-red:not([disabled]):not(.disabled):active:focus, .btn-red:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-red.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.red-ic {\n  color: #d32f2f !important; }\n  .red-ic:hover, .red-ic:focus {\n    color: #d32f2f; }\n\n.btn-outline-red {\n  border: 2px solid #d32f2f !important;\n  background-color: transparent !important;\n  color: #d32f2f !important; }\n  .btn-outline-red:hover, .btn-outline-red:focus, .btn-outline-red:active, .btn-outline-red:active:focus, .btn-outline-red.active {\n    border-color: #d32f2f !important;\n    background-color: transparent !important;\n    color: #d32f2f !important; }\n  .btn-outline-red:not([disabled]):not(.disabled):active, .btn-outline-red:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-red.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #d32f2f !important; }\n  .btn-outline-red:not([disabled]):not(.disabled):active:focus, .btn-outline-red:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-red.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-pink {\n  background-color: #ec407a !important;\n  color: #fff !important; }\n  .btn-pink:hover {\n    background-color: #ee578a; }\n  .btn-pink:focus, .btn-pink.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-pink:focus, .btn-pink:active, .btn-pink.active {\n    background-color: #b41249; }\n  .btn-pink.dropdown-toggle {\n    background-color: #ec407a !important; }\n    .btn-pink.dropdown-toggle:hover, .btn-pink.dropdown-toggle:focus {\n      background-color: #ee578a !important; }\n  .btn-pink:not([disabled]):not(.disabled):active, .btn-pink:not([disabled]):not(.disabled).active,\n  .show > .btn-pink.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #b41249 !important; }\n  .btn-pink:not([disabled]):not(.disabled):active:focus, .btn-pink:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-pink.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.pink-ic {\n  color: #ec407a !important; }\n  .pink-ic:hover, .pink-ic:focus {\n    color: #ec407a; }\n\n.btn-outline-pink {\n  border: 2px solid #ec407a !important;\n  background-color: transparent !important;\n  color: #ec407a !important; }\n  .btn-outline-pink:hover, .btn-outline-pink:focus, .btn-outline-pink:active, .btn-outline-pink:active:focus, .btn-outline-pink.active {\n    border-color: #ec407a !important;\n    background-color: transparent !important;\n    color: #ec407a !important; }\n  .btn-outline-pink:not([disabled]):not(.disabled):active, .btn-outline-pink:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-pink.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ec407a !important; }\n  .btn-outline-pink:not([disabled]):not(.disabled):active:focus, .btn-outline-pink:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-pink.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-purple {\n  background-color: #8e24aa !important;\n  color: #fff !important; }\n  .btn-purple:hover {\n    background-color: #a028bf; }\n  .btn-purple:focus, .btn-purple.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-purple:focus, .btn-purple:active, .btn-purple.active {\n    background-color: #481256; }\n  .btn-purple.dropdown-toggle {\n    background-color: #8e24aa !important; }\n    .btn-purple.dropdown-toggle:hover, .btn-purple.dropdown-toggle:focus {\n      background-color: #a028bf !important; }\n  .btn-purple:not([disabled]):not(.disabled):active, .btn-purple:not([disabled]):not(.disabled).active,\n  .show > .btn-purple.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #481256 !important; }\n  .btn-purple:not([disabled]):not(.disabled):active:focus, .btn-purple:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-purple.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.purple-ic {\n  color: #8e24aa !important; }\n  .purple-ic:hover, .purple-ic:focus {\n    color: #8e24aa; }\n\n.btn-outline-purple {\n  border: 2px solid #8e24aa !important;\n  background-color: transparent !important;\n  color: #8e24aa !important; }\n  .btn-outline-purple:hover, .btn-outline-purple:focus, .btn-outline-purple:active, .btn-outline-purple:active:focus, .btn-outline-purple.active {\n    border-color: #8e24aa !important;\n    background-color: transparent !important;\n    color: #8e24aa !important; }\n  .btn-outline-purple:not([disabled]):not(.disabled):active, .btn-outline-purple:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-purple.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #8e24aa !important; }\n  .btn-outline-purple:not([disabled]):not(.disabled):active:focus, .btn-outline-purple:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-purple.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-deep-purple {\n  background-color: #512da8 !important;\n  color: #fff !important; }\n  .btn-deep-purple:hover {\n    background-color: #5b32bc; }\n  .btn-deep-purple:focus, .btn-deep-purple.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-deep-purple:focus, .btn-deep-purple:active, .btn-deep-purple.active {\n    background-color: #2a1758; }\n  .btn-deep-purple.dropdown-toggle {\n    background-color: #512da8 !important; }\n    .btn-deep-purple.dropdown-toggle:hover, .btn-deep-purple.dropdown-toggle:focus {\n      background-color: #5b32bc !important; }\n  .btn-deep-purple:not([disabled]):not(.disabled):active, .btn-deep-purple:not([disabled]):not(.disabled).active,\n  .show > .btn-deep-purple.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #2a1758 !important; }\n  .btn-deep-purple:not([disabled]):not(.disabled):active:focus, .btn-deep-purple:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-deep-purple.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.deep-purple-ic {\n  color: #512da8 !important; }\n  .deep-purple-ic:hover, .deep-purple-ic:focus {\n    color: #512da8; }\n\n.btn-outline-deep-purple {\n  border: 2px solid #512da8 !important;\n  background-color: transparent !important;\n  color: #512da8 !important; }\n  .btn-outline-deep-purple:hover, .btn-outline-deep-purple:focus, .btn-outline-deep-purple:active, .btn-outline-deep-purple:active:focus, .btn-outline-deep-purple.active {\n    border-color: #512da8 !important;\n    background-color: transparent !important;\n    color: #512da8 !important; }\n  .btn-outline-deep-purple:not([disabled]):not(.disabled):active, .btn-outline-deep-purple:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-deep-purple.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #512da8 !important; }\n  .btn-outline-deep-purple:not([disabled]):not(.disabled):active:focus, .btn-outline-deep-purple:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-deep-purple.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-indigo {\n  background-color: #3f51b5 !important;\n  color: #fff !important; }\n  .btn-indigo:hover {\n    background-color: #4d5ec1; }\n  .btn-indigo:focus, .btn-indigo.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-indigo:focus, .btn-indigo:active, .btn-indigo.active {\n    background-color: #252f69; }\n  .btn-indigo.dropdown-toggle {\n    background-color: #3f51b5 !important; }\n    .btn-indigo.dropdown-toggle:hover, .btn-indigo.dropdown-toggle:focus {\n      background-color: #4d5ec1 !important; }\n  .btn-indigo:not([disabled]):not(.disabled):active, .btn-indigo:not([disabled]):not(.disabled).active,\n  .show > .btn-indigo.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #252f69 !important; }\n  .btn-indigo:not([disabled]):not(.disabled):active:focus, .btn-indigo:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-indigo.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.indigo-ic {\n  color: #3f51b5 !important; }\n  .indigo-ic:hover, .indigo-ic:focus {\n    color: #3f51b5; }\n\n.btn-outline-indigo {\n  border: 2px solid #3f51b5 !important;\n  background-color: transparent !important;\n  color: #3f51b5 !important; }\n  .btn-outline-indigo:hover, .btn-outline-indigo:focus, .btn-outline-indigo:active, .btn-outline-indigo:active:focus, .btn-outline-indigo.active {\n    border-color: #3f51b5 !important;\n    background-color: transparent !important;\n    color: #3f51b5 !important; }\n  .btn-outline-indigo:not([disabled]):not(.disabled):active, .btn-outline-indigo:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-indigo.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #3f51b5 !important; }\n  .btn-outline-indigo:not([disabled]):not(.disabled):active:focus, .btn-outline-indigo:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-indigo.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-blue {\n  background-color: #1976d2 !important;\n  color: #fff !important; }\n  .btn-blue:hover {\n    background-color: #2083e4; }\n  .btn-blue:focus, .btn-blue.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-blue:focus, .btn-blue:active, .btn-blue.active {\n    background-color: #0e4377; }\n  .btn-blue.dropdown-toggle {\n    background-color: #1976d2 !important; }\n    .btn-blue.dropdown-toggle:hover, .btn-blue.dropdown-toggle:focus {\n      background-color: #2083e4 !important; }\n  .btn-blue:not([disabled]):not(.disabled):active, .btn-blue:not([disabled]):not(.disabled).active,\n  .show > .btn-blue.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #0e4377 !important; }\n  .btn-blue:not([disabled]):not(.disabled):active:focus, .btn-blue:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-blue.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.blue-ic {\n  color: #1976d2 !important; }\n  .blue-ic:hover, .blue-ic:focus {\n    color: #1976d2; }\n\n.btn-outline-blue {\n  border: 2px solid #1976d2 !important;\n  background-color: transparent !important;\n  color: #1976d2 !important; }\n  .btn-outline-blue:hover, .btn-outline-blue:focus, .btn-outline-blue:active, .btn-outline-blue:active:focus, .btn-outline-blue.active {\n    border-color: #1976d2 !important;\n    background-color: transparent !important;\n    color: #1976d2 !important; }\n  .btn-outline-blue:not([disabled]):not(.disabled):active, .btn-outline-blue:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-blue.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #1976d2 !important; }\n  .btn-outline-blue:not([disabled]):not(.disabled):active:focus, .btn-outline-blue:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-blue.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-light-blue {\n  background-color: #82b1ff !important;\n  color: #fff !important; }\n  .btn-light-blue:hover {\n    background-color: #9cc1ff; }\n  .btn-light-blue:focus, .btn-light-blue.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-light-blue:focus, .btn-light-blue:active, .btn-light-blue.active {\n    background-color: #1c71ff; }\n  .btn-light-blue.dropdown-toggle {\n    background-color: #82b1ff !important; }\n    .btn-light-blue.dropdown-toggle:hover, .btn-light-blue.dropdown-toggle:focus {\n      background-color: #9cc1ff !important; }\n  .btn-light-blue:not([disabled]):not(.disabled):active, .btn-light-blue:not([disabled]):not(.disabled).active,\n  .show > .btn-light-blue.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #1c71ff !important; }\n  .btn-light-blue:not([disabled]):not(.disabled):active:focus, .btn-light-blue:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-light-blue.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.light-blue-ic {\n  color: #82b1ff !important; }\n  .light-blue-ic:hover, .light-blue-ic:focus {\n    color: #82b1ff; }\n\n.btn-outline-light-blue {\n  border: 2px solid #82b1ff !important;\n  background-color: transparent !important;\n  color: #82b1ff !important; }\n  .btn-outline-light-blue:hover, .btn-outline-light-blue:focus, .btn-outline-light-blue:active, .btn-outline-light-blue:active:focus, .btn-outline-light-blue.active {\n    border-color: #82b1ff !important;\n    background-color: transparent !important;\n    color: #82b1ff !important; }\n  .btn-outline-light-blue:not([disabled]):not(.disabled):active, .btn-outline-light-blue:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-light-blue.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #82b1ff !important; }\n  .btn-outline-light-blue:not([disabled]):not(.disabled):active:focus, .btn-outline-light-blue:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-light-blue.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-cyan {\n  background-color: #00bcd4 !important;\n  color: #fff !important; }\n  .btn-cyan:hover {\n    background-color: #00d3ee; }\n  .btn-cyan:focus, .btn-cyan.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-cyan:focus, .btn-cyan:active, .btn-cyan.active {\n    background-color: #00626e; }\n  .btn-cyan.dropdown-toggle {\n    background-color: #00bcd4 !important; }\n    .btn-cyan.dropdown-toggle:hover, .btn-cyan.dropdown-toggle:focus {\n      background-color: #00d3ee !important; }\n  .btn-cyan:not([disabled]):not(.disabled):active, .btn-cyan:not([disabled]):not(.disabled).active,\n  .show > .btn-cyan.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #00626e !important; }\n  .btn-cyan:not([disabled]):not(.disabled):active:focus, .btn-cyan:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-cyan.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.cyan-ic {\n  color: #00bcd4 !important; }\n  .cyan-ic:hover, .cyan-ic:focus {\n    color: #00bcd4; }\n\n.btn-outline-cyan {\n  border: 2px solid #00bcd4 !important;\n  background-color: transparent !important;\n  color: #00bcd4 !important; }\n  .btn-outline-cyan:hover, .btn-outline-cyan:focus, .btn-outline-cyan:active, .btn-outline-cyan:active:focus, .btn-outline-cyan.active {\n    border-color: #00bcd4 !important;\n    background-color: transparent !important;\n    color: #00bcd4 !important; }\n  .btn-outline-cyan:not([disabled]):not(.disabled):active, .btn-outline-cyan:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-cyan.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #00bcd4 !important; }\n  .btn-outline-cyan:not([disabled]):not(.disabled):active:focus, .btn-outline-cyan:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-cyan.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-teal {\n  background-color: #00796b !important;\n  color: #fff !important; }\n  .btn-teal:hover {\n    background-color: #009382; }\n  .btn-teal:focus, .btn-teal.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-teal:focus, .btn-teal:active, .btn-teal.active {\n    background-color: #001311; }\n  .btn-teal.dropdown-toggle {\n    background-color: #00796b !important; }\n    .btn-teal.dropdown-toggle:hover, .btn-teal.dropdown-toggle:focus {\n      background-color: #009382 !important; }\n  .btn-teal:not([disabled]):not(.disabled):active, .btn-teal:not([disabled]):not(.disabled).active,\n  .show > .btn-teal.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #001311 !important; }\n  .btn-teal:not([disabled]):not(.disabled):active:focus, .btn-teal:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-teal.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.teal-ic {\n  color: #00796b !important; }\n  .teal-ic:hover, .teal-ic:focus {\n    color: #00796b; }\n\n.btn-outline-teal {\n  border: 2px solid #00796b !important;\n  background-color: transparent !important;\n  color: #00796b !important; }\n  .btn-outline-teal:hover, .btn-outline-teal:focus, .btn-outline-teal:active, .btn-outline-teal:active:focus, .btn-outline-teal.active {\n    border-color: #00796b !important;\n    background-color: transparent !important;\n    color: #00796b !important; }\n  .btn-outline-teal:not([disabled]):not(.disabled):active, .btn-outline-teal:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-teal.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #00796b !important; }\n  .btn-outline-teal:not([disabled]):not(.disabled):active:focus, .btn-outline-teal:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-teal.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-green {\n  background-color: #388e3c !important;\n  color: #fff !important; }\n  .btn-green:hover {\n    background-color: #3fa044; }\n  .btn-green:focus, .btn-green.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-green:focus, .btn-green:active, .btn-green.active {\n    background-color: #1b451d; }\n  .btn-green.dropdown-toggle {\n    background-color: #388e3c !important; }\n    .btn-green.dropdown-toggle:hover, .btn-green.dropdown-toggle:focus {\n      background-color: #3fa044 !important; }\n  .btn-green:not([disabled]):not(.disabled):active, .btn-green:not([disabled]):not(.disabled).active,\n  .show > .btn-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #1b451d !important; }\n  .btn-green:not([disabled]):not(.disabled):active:focus, .btn-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.green-ic {\n  color: #388e3c !important; }\n  .green-ic:hover, .green-ic:focus {\n    color: #388e3c; }\n\n.btn-outline-green {\n  border: 2px solid #388e3c !important;\n  background-color: transparent !important;\n  color: #388e3c !important; }\n  .btn-outline-green:hover, .btn-outline-green:focus, .btn-outline-green:active, .btn-outline-green:active:focus, .btn-outline-green.active {\n    border-color: #388e3c !important;\n    background-color: transparent !important;\n    color: #388e3c !important; }\n  .btn-outline-green:not([disabled]):not(.disabled):active, .btn-outline-green:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #388e3c !important; }\n  .btn-outline-green:not([disabled]):not(.disabled):active:focus, .btn-outline-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-light-green {\n  background-color: #8bc34a !important;\n  color: #fff !important; }\n  .btn-light-green:hover {\n    background-color: #97c95d; }\n  .btn-light-green:focus, .btn-light-green.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-light-green:focus, .btn-light-green:active, .btn-light-green.active {\n    background-color: #577d2a; }\n  .btn-light-green.dropdown-toggle {\n    background-color: #8bc34a !important; }\n    .btn-light-green.dropdown-toggle:hover, .btn-light-green.dropdown-toggle:focus {\n      background-color: #97c95d !important; }\n  .btn-light-green:not([disabled]):not(.disabled):active, .btn-light-green:not([disabled]):not(.disabled).active,\n  .show > .btn-light-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #577d2a !important; }\n  .btn-light-green:not([disabled]):not(.disabled):active:focus, .btn-light-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-light-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.light-green-ic {\n  color: #8bc34a !important; }\n  .light-green-ic:hover, .light-green-ic:focus {\n    color: #8bc34a; }\n\n.btn-outline-light-green {\n  border: 2px solid #8bc34a !important;\n  background-color: transparent !important;\n  color: #8bc34a !important; }\n  .btn-outline-light-green:hover, .btn-outline-light-green:focus, .btn-outline-light-green:active, .btn-outline-light-green:active:focus, .btn-outline-light-green.active {\n    border-color: #8bc34a !important;\n    background-color: transparent !important;\n    color: #8bc34a !important; }\n  .btn-outline-light-green:not([disabled]):not(.disabled):active, .btn-outline-light-green:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-light-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #8bc34a !important; }\n  .btn-outline-light-green:not([disabled]):not(.disabled):active:focus, .btn-outline-light-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-light-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-lime {\n  background-color: #afb42b !important;\n  color: #fff !important; }\n  .btn-lime:hover {\n    background-color: #c3c930; }\n  .btn-lime:focus, .btn-lime.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-lime:focus, .btn-lime:active, .btn-lime.active {\n    background-color: #5f6217; }\n  .btn-lime.dropdown-toggle {\n    background-color: #afb42b !important; }\n    .btn-lime.dropdown-toggle:hover, .btn-lime.dropdown-toggle:focus {\n      background-color: #c3c930 !important; }\n  .btn-lime:not([disabled]):not(.disabled):active, .btn-lime:not([disabled]):not(.disabled).active,\n  .show > .btn-lime.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #5f6217 !important; }\n  .btn-lime:not([disabled]):not(.disabled):active:focus, .btn-lime:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-lime.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.lime-ic {\n  color: #afb42b !important; }\n  .lime-ic:hover, .lime-ic:focus {\n    color: #afb42b; }\n\n.btn-outline-lime {\n  border: 2px solid #afb42b !important;\n  background-color: transparent !important;\n  color: #afb42b !important; }\n  .btn-outline-lime:hover, .btn-outline-lime:focus, .btn-outline-lime:active, .btn-outline-lime:active:focus, .btn-outline-lime.active {\n    border-color: #afb42b !important;\n    background-color: transparent !important;\n    color: #afb42b !important; }\n  .btn-outline-lime:not([disabled]):not(.disabled):active, .btn-outline-lime:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-lime.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #afb42b !important; }\n  .btn-outline-lime:not([disabled]):not(.disabled):active:focus, .btn-outline-lime:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-lime.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-yellow {\n  background-color: #fbc02d !important;\n  color: #fff !important; }\n  .btn-yellow:hover {\n    background-color: #fbc846; }\n  .btn-yellow:focus, .btn-yellow.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-yellow:focus, .btn-yellow:active, .btn-yellow.active {\n    background-color: #be8904; }\n  .btn-yellow.dropdown-toggle {\n    background-color: #fbc02d !important; }\n    .btn-yellow.dropdown-toggle:hover, .btn-yellow.dropdown-toggle:focus {\n      background-color: #fbc846 !important; }\n  .btn-yellow:not([disabled]):not(.disabled):active, .btn-yellow:not([disabled]):not(.disabled).active,\n  .show > .btn-yellow.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #be8904 !important; }\n  .btn-yellow:not([disabled]):not(.disabled):active:focus, .btn-yellow:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-yellow.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.yellow-ic {\n  color: #fbc02d !important; }\n  .yellow-ic:hover, .yellow-ic:focus {\n    color: #fbc02d; }\n\n.btn-outline-yellow {\n  border: 2px solid #fbc02d !important;\n  background-color: transparent !important;\n  color: #fbc02d !important; }\n  .btn-outline-yellow:hover, .btn-outline-yellow:focus, .btn-outline-yellow:active, .btn-outline-yellow:active:focus, .btn-outline-yellow.active {\n    border-color: #fbc02d !important;\n    background-color: transparent !important;\n    color: #fbc02d !important; }\n  .btn-outline-yellow:not([disabled]):not(.disabled):active, .btn-outline-yellow:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-yellow.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #fbc02d !important; }\n  .btn-outline-yellow:not([disabled]):not(.disabled):active:focus, .btn-outline-yellow:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-yellow.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-amber {\n  background-color: #ffa000 !important;\n  color: #fff !important; }\n  .btn-amber:hover {\n    background-color: #ffaa1a; }\n  .btn-amber:focus, .btn-amber.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-amber:focus, .btn-amber:active, .btn-amber.active {\n    background-color: #996000; }\n  .btn-amber.dropdown-toggle {\n    background-color: #ffa000 !important; }\n    .btn-amber.dropdown-toggle:hover, .btn-amber.dropdown-toggle:focus {\n      background-color: #ffaa1a !important; }\n  .btn-amber:not([disabled]):not(.disabled):active, .btn-amber:not([disabled]):not(.disabled).active,\n  .show > .btn-amber.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #996000 !important; }\n  .btn-amber:not([disabled]):not(.disabled):active:focus, .btn-amber:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-amber.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.amber-ic {\n  color: #ffa000 !important; }\n  .amber-ic:hover, .amber-ic:focus {\n    color: #ffa000; }\n\n.btn-outline-amber {\n  border: 2px solid #ffa000 !important;\n  background-color: transparent !important;\n  color: #ffa000 !important; }\n  .btn-outline-amber:hover, .btn-outline-amber:focus, .btn-outline-amber:active, .btn-outline-amber:active:focus, .btn-outline-amber.active {\n    border-color: #ffa000 !important;\n    background-color: transparent !important;\n    color: #ffa000 !important; }\n  .btn-outline-amber:not([disabled]):not(.disabled):active, .btn-outline-amber:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-amber.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ffa000 !important; }\n  .btn-outline-amber:not([disabled]):not(.disabled):active:focus, .btn-outline-amber:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-amber.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-orange {\n  background-color: #f57c00 !important;\n  color: #fff !important; }\n  .btn-orange:hover {\n    background-color: #ff8910; }\n  .btn-orange:focus, .btn-orange.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-orange:focus, .btn-orange:active, .btn-orange.active {\n    background-color: #8f4800; }\n  .btn-orange.dropdown-toggle {\n    background-color: #f57c00 !important; }\n    .btn-orange.dropdown-toggle:hover, .btn-orange.dropdown-toggle:focus {\n      background-color: #ff8910 !important; }\n  .btn-orange:not([disabled]):not(.disabled):active, .btn-orange:not([disabled]):not(.disabled).active,\n  .show > .btn-orange.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #8f4800 !important; }\n  .btn-orange:not([disabled]):not(.disabled):active:focus, .btn-orange:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-orange.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.orange-ic {\n  color: #f57c00 !important; }\n  .orange-ic:hover, .orange-ic:focus {\n    color: #f57c00; }\n\n.btn-outline-orange {\n  border: 2px solid #f57c00 !important;\n  background-color: transparent !important;\n  color: #f57c00 !important; }\n  .btn-outline-orange:hover, .btn-outline-orange:focus, .btn-outline-orange:active, .btn-outline-orange:active:focus, .btn-outline-orange.active {\n    border-color: #f57c00 !important;\n    background-color: transparent !important;\n    color: #f57c00 !important; }\n  .btn-outline-orange:not([disabled]):not(.disabled):active, .btn-outline-orange:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-orange.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #f57c00 !important; }\n  .btn-outline-orange:not([disabled]):not(.disabled):active:focus, .btn-outline-orange:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-orange.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-deep-orange {\n  background-color: #ff7043 !important;\n  color: #fff !important; }\n  .btn-deep-orange:hover {\n    background-color: #ff835d; }\n  .btn-deep-orange:focus, .btn-deep-orange.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-deep-orange:focus, .btn-deep-orange:active, .btn-deep-orange.active {\n    background-color: #dc3500; }\n  .btn-deep-orange.dropdown-toggle {\n    background-color: #ff7043 !important; }\n    .btn-deep-orange.dropdown-toggle:hover, .btn-deep-orange.dropdown-toggle:focus {\n      background-color: #ff835d !important; }\n  .btn-deep-orange:not([disabled]):not(.disabled):active, .btn-deep-orange:not([disabled]):not(.disabled).active,\n  .show > .btn-deep-orange.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #dc3500 !important; }\n  .btn-deep-orange:not([disabled]):not(.disabled):active:focus, .btn-deep-orange:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-deep-orange.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.deep-orange-ic {\n  color: #ff7043 !important; }\n  .deep-orange-ic:hover, .deep-orange-ic:focus {\n    color: #ff7043; }\n\n.btn-outline-deep-orange {\n  border: 2px solid #ff7043 !important;\n  background-color: transparent !important;\n  color: #ff7043 !important; }\n  .btn-outline-deep-orange:hover, .btn-outline-deep-orange:focus, .btn-outline-deep-orange:active, .btn-outline-deep-orange:active:focus, .btn-outline-deep-orange.active {\n    border-color: #ff7043 !important;\n    background-color: transparent !important;\n    color: #ff7043 !important; }\n  .btn-outline-deep-orange:not([disabled]):not(.disabled):active, .btn-outline-deep-orange:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-deep-orange.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ff7043 !important; }\n  .btn-outline-deep-orange:not([disabled]):not(.disabled):active:focus, .btn-outline-deep-orange:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-deep-orange.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-brown {\n  background-color: #795548 !important;\n  color: #fff !important; }\n  .btn-brown:hover {\n    background-color: #896052; }\n  .btn-brown:focus, .btn-brown.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-brown:focus, .btn-brown:active, .btn-brown.active {\n    background-color: #392822; }\n  .btn-brown.dropdown-toggle {\n    background-color: #795548 !important; }\n    .btn-brown.dropdown-toggle:hover, .btn-brown.dropdown-toggle:focus {\n      background-color: #896052 !important; }\n  .btn-brown:not([disabled]):not(.disabled):active, .btn-brown:not([disabled]):not(.disabled).active,\n  .show > .btn-brown.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #392822 !important; }\n  .btn-brown:not([disabled]):not(.disabled):active:focus, .btn-brown:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-brown.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.brown-ic {\n  color: #795548 !important; }\n  .brown-ic:hover, .brown-ic:focus {\n    color: #795548; }\n\n.btn-outline-brown {\n  border: 2px solid #795548 !important;\n  background-color: transparent !important;\n  color: #795548 !important; }\n  .btn-outline-brown:hover, .btn-outline-brown:focus, .btn-outline-brown:active, .btn-outline-brown:active:focus, .btn-outline-brown.active {\n    border-color: #795548 !important;\n    background-color: transparent !important;\n    color: #795548 !important; }\n  .btn-outline-brown:not([disabled]):not(.disabled):active, .btn-outline-brown:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-brown.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #795548 !important; }\n  .btn-outline-brown:not([disabled]):not(.disabled):active:focus, .btn-outline-brown:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-brown.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-grey {\n  background-color: #616161 !important;\n  color: #fff !important; }\n  .btn-grey:hover {\n    background-color: #6e6e6e; }\n  .btn-grey:focus, .btn-grey.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-grey:focus, .btn-grey:active, .btn-grey.active {\n    background-color: #2e2e2e; }\n  .btn-grey.dropdown-toggle {\n    background-color: #616161 !important; }\n    .btn-grey.dropdown-toggle:hover, .btn-grey.dropdown-toggle:focus {\n      background-color: #6e6e6e !important; }\n  .btn-grey:not([disabled]):not(.disabled):active, .btn-grey:not([disabled]):not(.disabled).active,\n  .show > .btn-grey.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #2e2e2e !important; }\n  .btn-grey:not([disabled]):not(.disabled):active:focus, .btn-grey:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-grey.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.grey-ic {\n  color: #616161 !important; }\n  .grey-ic:hover, .grey-ic:focus {\n    color: #616161; }\n\n.btn-outline-grey {\n  border: 2px solid #616161 !important;\n  background-color: transparent !important;\n  color: #616161 !important; }\n  .btn-outline-grey:hover, .btn-outline-grey:focus, .btn-outline-grey:active, .btn-outline-grey:active:focus, .btn-outline-grey.active {\n    border-color: #616161 !important;\n    background-color: transparent !important;\n    color: #616161 !important; }\n  .btn-outline-grey:not([disabled]):not(.disabled):active, .btn-outline-grey:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-grey.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #616161 !important; }\n  .btn-outline-grey:not([disabled]):not(.disabled):active:focus, .btn-outline-grey:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-grey.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-blue-grey {\n  background-color: #78909c !important;\n  color: #fff !important; }\n  .btn-blue-grey:hover {\n    background-color: #879ca7; }\n  .btn-blue-grey:focus, .btn-blue-grey.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-blue-grey:focus, .btn-blue-grey:active, .btn-blue-grey.active {\n    background-color: #4a5b64; }\n  .btn-blue-grey.dropdown-toggle {\n    background-color: #78909c !important; }\n    .btn-blue-grey.dropdown-toggle:hover, .btn-blue-grey.dropdown-toggle:focus {\n      background-color: #879ca7 !important; }\n  .btn-blue-grey:not([disabled]):not(.disabled):active, .btn-blue-grey:not([disabled]):not(.disabled).active,\n  .show > .btn-blue-grey.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #4a5b64 !important; }\n  .btn-blue-grey:not([disabled]):not(.disabled):active:focus, .btn-blue-grey:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-blue-grey.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.blue-grey-ic {\n  color: #78909c !important; }\n  .blue-grey-ic:hover, .blue-grey-ic:focus {\n    color: #78909c; }\n\n.btn-outline-blue-grey {\n  border: 2px solid #78909c !important;\n  background-color: transparent !important;\n  color: #78909c !important; }\n  .btn-outline-blue-grey:hover, .btn-outline-blue-grey:focus, .btn-outline-blue-grey:active, .btn-outline-blue-grey:active:focus, .btn-outline-blue-grey.active {\n    border-color: #78909c !important;\n    background-color: transparent !important;\n    color: #78909c !important; }\n  .btn-outline-blue-grey:not([disabled]):not(.disabled):active, .btn-outline-blue-grey:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-blue-grey.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #78909c !important; }\n  .btn-outline-blue-grey:not([disabled]):not(.disabled):active:focus, .btn-outline-blue-grey:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-blue-grey.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-dark {\n  background-color: #212121 !important;\n  color: #fff !important; }\n  .btn-dark:hover {\n    background-color: #2e2e2e; }\n  .btn-dark:focus, .btn-dark.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-dark:focus, .btn-dark:active, .btn-dark.active {\n    background-color: black; }\n  .btn-dark.dropdown-toggle {\n    background-color: #212121 !important; }\n    .btn-dark.dropdown-toggle:hover, .btn-dark.dropdown-toggle:focus {\n      background-color: #2e2e2e !important; }\n  .btn-dark:not([disabled]):not(.disabled):active, .btn-dark:not([disabled]):not(.disabled).active,\n  .show > .btn-dark.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: black !important; }\n  .btn-dark:not([disabled]):not(.disabled):active:focus, .btn-dark:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-dark.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.dark-ic {\n  color: #212121 !important; }\n  .dark-ic:hover, .dark-ic:focus {\n    color: #212121; }\n\n.btn-outline-dark {\n  border: 2px solid #212121 !important;\n  background-color: transparent !important;\n  color: #212121 !important; }\n  .btn-outline-dark:hover, .btn-outline-dark:focus, .btn-outline-dark:active, .btn-outline-dark:active:focus, .btn-outline-dark.active {\n    border-color: #212121 !important;\n    background-color: transparent !important;\n    color: #212121 !important; }\n  .btn-outline-dark:not([disabled]):not(.disabled):active, .btn-outline-dark:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-dark.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #212121 !important; }\n  .btn-outline-dark:not([disabled]):not(.disabled):active:focus, .btn-outline-dark:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-dark.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-light {\n  background-color: #e0e0e0 !important;\n  color: #000 !important; }\n  .btn-light:hover {\n    background-color: #ededed; }\n  .btn-light:focus, .btn-light.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-light:focus, .btn-light:active, .btn-light.active {\n    background-color: #adadad; }\n  .btn-light.dropdown-toggle {\n    background-color: #e0e0e0 !important; }\n    .btn-light.dropdown-toggle:hover, .btn-light.dropdown-toggle:focus {\n      background-color: #ededed !important; }\n  .btn-light:not([disabled]):not(.disabled):active, .btn-light:not([disabled]):not(.disabled).active,\n  .show > .btn-light.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #adadad !important; }\n  .btn-light:not([disabled]):not(.disabled):active:focus, .btn-light:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-light.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.light-ic {\n  color: #e0e0e0 !important; }\n  .light-ic:hover, .light-ic:focus {\n    color: #e0e0e0; }\n\n.btn-outline-light {\n  border: 2px solid #e0e0e0 !important;\n  background-color: transparent !important;\n  color: #e0e0e0 !important; }\n  .btn-outline-light:hover, .btn-outline-light:focus, .btn-outline-light:active, .btn-outline-light:active:focus, .btn-outline-light.active {\n    border-color: #e0e0e0 !important;\n    background-color: transparent !important;\n    color: #e0e0e0 !important; }\n  .btn-outline-light:not([disabled]):not(.disabled):active, .btn-outline-light:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-light.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #e0e0e0 !important; }\n  .btn-outline-light:not([disabled]):not(.disabled):active:focus, .btn-outline-light:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-light.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-white {\n  background-color: #fff !important;\n  color: #000 !important; }\n  .btn-white:hover {\n    background-color: white; }\n  .btn-white:focus, .btn-white.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-white:focus, .btn-white:active, .btn-white.active {\n    background-color: #cccccc; }\n  .btn-white.dropdown-toggle {\n    background-color: #fff !important; }\n    .btn-white.dropdown-toggle:hover, .btn-white.dropdown-toggle:focus {\n      background-color: white !important; }\n  .btn-white:not([disabled]):not(.disabled):active, .btn-white:not([disabled]):not(.disabled).active,\n  .show > .btn-white.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #cccccc !important; }\n  .btn-white:not([disabled]):not(.disabled):active:focus, .btn-white:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-white.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.white-ic {\n  color: #fff !important; }\n  .white-ic:hover, .white-ic:focus {\n    color: #fff; }\n\n.btn-outline-white {\n  border: 2px solid #fff !important;\n  background-color: transparent !important;\n  color: #fff !important; }\n  .btn-outline-white:hover, .btn-outline-white:focus, .btn-outline-white:active, .btn-outline-white:active:focus, .btn-outline-white.active {\n    border-color: #fff !important;\n    background-color: transparent !important;\n    color: #fff !important; }\n  .btn-outline-white:not([disabled]):not(.disabled):active, .btn-outline-white:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-white.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #fff !important; }\n  .btn-outline-white:not([disabled]):not(.disabled):active:focus, .btn-outline-white:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-white.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-black {\n  background-color: #000 !important;\n  color: #fff !important; }\n  .btn-black:hover {\n    background-color: #0d0d0d; }\n  .btn-black:focus, .btn-black.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-black:focus, .btn-black:active, .btn-black.active {\n    background-color: black; }\n  .btn-black.dropdown-toggle {\n    background-color: #000 !important; }\n    .btn-black.dropdown-toggle:hover, .btn-black.dropdown-toggle:focus {\n      background-color: #0d0d0d !important; }\n  .btn-black:not([disabled]):not(.disabled):active, .btn-black:not([disabled]):not(.disabled).active,\n  .show > .btn-black.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: black !important; }\n  .btn-black:not([disabled]):not(.disabled):active:focus, .btn-black:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-black.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.black-ic {\n  color: #000 !important; }\n  .black-ic:hover, .black-ic:focus {\n    color: #000; }\n\n.btn-outline-black {\n  border: 2px solid #000 !important;\n  background-color: transparent !important;\n  color: #000 !important; }\n  .btn-outline-black:hover, .btn-outline-black:focus, .btn-outline-black:active, .btn-outline-black:active:focus, .btn-outline-black.active {\n    border-color: #000 !important;\n    background-color: transparent !important;\n    color: #000 !important; }\n  .btn-outline-black:not([disabled]):not(.disabled):active, .btn-outline-black:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-black.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #000 !important; }\n  .btn-outline-black:not([disabled]):not(.disabled):active:focus, .btn-outline-black:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-black.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.card {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  border: 0;\n  font-weight: 400; }\n  .card[class*=\"border\"] {\n    border: 1px solid #9e9e9e;\n    -webkit-box-shadow: none;\n    box-shadow: none; }\n  .card .card-body h1, .card .card-body h2, .card .card-body h3, .card .card-body h4, .card .card-body h5, .card .card-body h6 {\n    font-weight: 400; }\n  .card .card-body .card-title a {\n    -webkit-transition: 0.2s ease-in-out;\n    -o-transition: 0.2s ease-in-out;\n    transition: 0.2s ease-in-out; }\n    .card .card-body .card-title a:hover {\n      -webkit-transition: 0.2s ease-in-out;\n      -o-transition: 0.2s ease-in-out;\n      transition: 0.2s ease-in-out; }\n  .card .card-body .card-text {\n    color: #747373;\n    font-size: 0.9rem;\n    font-weight: 400; }\n\n.dropdown .dropdown-menu .dropdown-item:active {\n  background-color: #757575; }\n\n.md-form.input-group label {\n  top: 0;\n  margin-bottom: 0; }\n\n.md-form.input-group .input-group-text {\n  background-color: #e0e0e0; }\n  .md-form.input-group .input-group-text.md-addon {\n    border: none;\n    background-color: transparent;\n    font-weight: 500; }\n\n.md-form.input-group .form-control {\n  margin: 0;\n  padding: 0.375rem 0.75rem; }\n\n.input-default-wrapper {\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex; }\n  .input-default-wrapper .input-default-js {\n    width: 0.1px;\n    height: 0.1px;\n    opacity: 0;\n    overflow: hidden;\n    position: absolute;\n    z-index: -1; }\n    .input-default-wrapper .input-default-js:focus + label {\n      border-color: #80bdff;\n      outline: 0;\n      -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);\n      box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15); }\n    .input-default-wrapper .input-default-js + label {\n      -o-text-overflow: ellipsis;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      cursor: pointer;\n      display: inline-block;\n      overflow: hidden;\n      color: #000;\n      border: 1px solid rgba(33, 47, 41, 0.2);\n      background-color: transparent;\n      padding: 0; }\n      .input-default-wrapper .input-default-js + label span {\n        padding: 0.425rem .7rem;\n        color: #495057; }\n        .input-default-wrapper .input-default-js + label span:not(.span-browse) {\n          width: 200px;\n          display: inline-block;\n          -o-text-overflow: ellipsis;\n          text-overflow: ellipsis;\n          white-space: nowrap;\n          overflow: hidden;\n          vertical-align: top; }\n      .input-default-wrapper .input-default-js + label .span-browse {\n        height: 100%;\n        color: #000;\n        background-color: #E8EBEF;\n        border-left: 1px solid rgba(33, 47, 41, 0.2);\n        display: inline-block;\n        padding: 0.425rem .8rem;\n        color: #495057; }\n\n@media screen and (max-width: 50em) {\n  .input-default-js + label .span-browse {\n    display: block; } }\n\n.label-for-default-js {\n  width: 100%;\n  height: calc(2.25rem + 2px); }\n\n.navbar {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  font-weight: 300; }\n  .navbar form .md-form input {\n    margin: 0 5px 1px 8px; }\n  .navbar .breadcrumb {\n    margin: 0;\n    padding: 0.3rem 0 0 1rem;\n    background-color: inherit;\n    font-size: 15px;\n    font-weight: 300; }\n    .navbar .breadcrumb .breadcrumb-item {\n      color: #fff; }\n      .navbar .breadcrumb .breadcrumb-item.active {\n        color: rgba(255, 255, 255, 0.65); }\n      .navbar .breadcrumb .breadcrumb-item:before {\n        color: rgba(255, 255, 255, 0.65); }\n  .navbar .navbar-toggler {\n    outline: 0;\n    border-width: 0; }\n  .navbar .nav-flex-icons {\n    -webkit-box-orient: horizontal;\n    -webkit-box-direction: normal;\n    -webkit-flex-direction: row;\n    -ms-flex-direction: row;\n    flex-direction: row; }\n  @media (max-width: 992px) {\n    .navbar .container {\n      width: 100%; }\n      .navbar .container .navbar-toggler-right {\n        right: 0; } }\n  .navbar .nav-item .nav-link {\n    display: block; }\n    .navbar .nav-item .nav-link.disabled:active {\n      pointer-events: none; }\n    .navbar .nav-item .nav-link .fas, .navbar .nav-item .nav-link .fab, .navbar .nav-item .nav-link .far {\n      padding-right: 3px;\n      padding-left: 3px; }\n    @media (max-width: 992px) {\n      .navbar .nav-item .nav-link {\n        padding-right: 6px;\n        padding-left: 6px; } }\n  .navbar .dropdown-menu {\n    position: absolute !important;\n    margin-top: 0; }\n    .navbar .dropdown-menu a {\n      padding: 10px;\n      font-size: 0.9375rem;\n      font-weight: 300;\n      color: #000; }\n    @media (max-width: 600px) {\n      .navbar .dropdown-menu form {\n        width: 17rem; } }\n    @media (min-width: 600px) {\n      .navbar .dropdown-menu form {\n        width: 22rem; } }\n  .navbar.navbar-light .navbar-nav .nav-item .nav-link.disbled {\n    color: rgba(0, 0, 0, 0.3); }\n    .navbar.navbar-light .navbar-nav .nav-item .nav-link.disbled:hover {\n      color: rgba(0, 0, 0, 0.3); }\n  .navbar.navbar-light .navbar-toggler-icon {\n    background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\");\n    cursor: pointer; }\n  .navbar.navbar-light .breadcrumb .nav-item .nav-link,\n  .navbar.navbar-light .navbar-nav .nav-item .nav-link {\n    color: #000;\n    -webkit-transition: 0.35s;\n    -o-transition: 0.35s;\n    transition: 0.35s; }\n    .navbar.navbar-light .breadcrumb .nav-item .nav-link:hover,\n    .navbar.navbar-light .navbar-nav .nav-item .nav-link:hover {\n      color: rgba(0, 0, 0, 0.7); }\n  .navbar.navbar-light .breadcrumb .nav-item.active > .nav-link,\n  .navbar.navbar-light .navbar-nav .nav-item.active > .nav-link {\n    background-color: rgba(0, 0, 0, 0.1); }\n    .navbar.navbar-light .breadcrumb .nav-item.active > .nav-link:hover,\n    .navbar.navbar-light .navbar-nav .nav-item.active > .nav-link:hover {\n      color: #000; }\n  .navbar.navbar-light .navbar-toggler {\n    color: #000; }\n  .navbar.navbar-light form .md-form input {\n    border-bottom: 1px solid #000; }\n    .navbar.navbar-light form .md-form input:focus:not([readonly]) {\n      border-color: #4285f4; }\n  .navbar.navbar-light form .md-form .form-control {\n    color: #000; }\n    .navbar.navbar-light form .md-form .form-control::-webkit-input-placeholder {\n      color: #000;\n      font-weight: 300; }\n    .navbar.navbar-light form .md-form .form-control::-ms-input-placeholder {\n      color: #000;\n      font-weight: 300; }\n    .navbar.navbar-light form .md-form .form-control::placeholder {\n      color: #000;\n      font-weight: 300; }\n  .navbar.navbar-dark .navbar-nav .nav-item .nav-link.disbled {\n    color: rgba(255, 255, 255, 0.25); }\n    .navbar.navbar-dark .navbar-nav .nav-item .nav-link.disbled:hover {\n      color: rgba(255, 255, 255, 0.25); }\n  .navbar.navbar-dark .navbar-toggler-icon {\n    background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\");\n    cursor: pointer; }\n  .navbar.navbar-dark .breadcrumb .nav-item .nav-link,\n  .navbar.navbar-dark .navbar-nav .nav-item .nav-link {\n    color: #fff;\n    -webkit-transition: 0.35s;\n    -o-transition: 0.35s;\n    transition: 0.35s; }\n    .navbar.navbar-dark .breadcrumb .nav-item .nav-link:hover,\n    .navbar.navbar-dark .navbar-nav .nav-item .nav-link:hover {\n      color: rgba(255, 255, 255, 0.75); }\n  .navbar.navbar-dark .breadcrumb .nav-item.active > .nav-link,\n  .navbar.navbar-dark .navbar-nav .nav-item.active > .nav-link {\n    background-color: rgba(255, 255, 255, 0.1); }\n    .navbar.navbar-dark .breadcrumb .nav-item.active > .nav-link:hover,\n    .navbar.navbar-dark .navbar-nav .nav-item.active > .nav-link:hover {\n      color: #fff; }\n  .navbar.navbar-dark .navbar-toggler {\n    color: #fff; }\n  .navbar.navbar-dark form .md-form input {\n    border-bottom: 1px solid #fff; }\n    .navbar.navbar-dark form .md-form input:focus:not([readonly]) {\n      border-color: #4285f4; }\n  .navbar.navbar-dark form .md-form .form-control {\n    color: #fff; }\n    .navbar.navbar-dark form .md-form .form-control::-webkit-input-placeholder {\n      color: #fff;\n      font-weight: 300; }\n    .navbar.navbar-dark form .md-form .form-control::-ms-input-placeholder {\n      color: #fff;\n      font-weight: 300; }\n    .navbar.navbar-dark form .md-form .form-control::placeholder {\n      color: #fff;\n      font-weight: 300; }\n  @media (min-width: 600px) {\n    .navbar.scrolling-navbar {\n      -webkit-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;\n      -o-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;\n      transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;\n      padding-top: 12px;\n      padding-bottom: 12px; }\n      .navbar.scrolling-navbar .navbar-nav > li {\n        -webkit-transition-duration: 1s;\n        -o-transition-duration: 1s;\n        transition-duration: 1s; }\n      .navbar.scrolling-navbar.top-nav-collapse {\n        padding-top: 5px;\n        padding-bottom: 5px; } }\n\n.pagination .page-item.active .page-link {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  -webkit-transition: all 0.2s linear;\n  -o-transition: all 0.2s linear;\n  transition: all 0.2s linear;\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem;\n  background-color: #4285f4;\n  color: #fff; }\n  .pagination .page-item.active .page-link:hover {\n    background-color: #4285f4; }\n\n.pagination .page-item.disabled .page-link {\n  color: #868e96; }\n\n.pagination .page-item .page-link {\n  -webkit-transition: all 0.3s linear;\n  -o-transition: all 0.3s linear;\n  transition: all 0.3s linear;\n  outline: 0;\n  border: 0;\n  background-color: transparent;\n  font-size: 0.9rem;\n  color: #212529; }\n  .pagination .page-item .page-link:hover {\n    -webkit-transition: all 0.3s linear;\n    -o-transition: all 0.3s linear;\n    transition: all 0.3s linear;\n    -webkit-border-radius: 0.125rem;\n    border-radius: 0.125rem;\n    background-color: #eee; }\n  .pagination .page-item .page-link:focus {\n    background-color: transparent; }\n\n.pagination.pagination-lg .page-item .page-link {\n  font-size: 1rem; }\n\n.pagination.pagination-sm .page-item .page-link {\n  font-size: 0.8rem; }\n\n.pagination.pagination-circle .page-item .page-link {\n  margin-left: 2px;\n  margin-right: 2px;\n  -webkit-border-radius: 50%;\n  border-radius: 50%; }\n  .pagination.pagination-circle .page-item .page-link:hover {\n    -webkit-border-radius: 50%;\n    border-radius: 50%; }\n\n.pagination.pagination-circle .page-item.active .page-link {\n  -webkit-border-radius: 50%;\n  border-radius: 50%; }\n\n.pagination.pg-blue .page-item.active .page-link {\n  background-color: #4285f4; }\n  .pagination.pg-blue .page-item.active .page-link:hover {\n    background-color: #4285f4; }\n\n.pagination.pg-red .page-item.active .page-link {\n  background-color: #ff3547; }\n  .pagination.pg-red .page-item.active .page-link:hover {\n    background-color: #ff3547; }\n\n.pagination.pg-teal .page-item.active .page-link {\n  background-color: #2bbbad; }\n  .pagination.pg-teal .page-item.active .page-link:hover {\n    background-color: #2bbbad; }\n\n.pagination.pg-dark-grey .page-item.active .page-link {\n  background-color: #37474f; }\n  .pagination.pg-dark-grey .page-item.active .page-link:hover {\n    background-color: #37474f; }\n\n.pagination.pg-dark .page-item.active .page-link {\n  background-color: #2e2e2e; }\n  .pagination.pg-dark .page-item.active .page-link:hover {\n    background-color: #2e2e2e; }\n\n.pagination.pg-blue-grey .page-item.active .page-link {\n  background-color: #3f729b; }\n  .pagination.pg-blue-grey .page-item.active .page-link:hover {\n    background-color: #3f729b; }\n\n.pagination.pg-amber .page-item.active .page-link {\n  background-color: #ff6f00; }\n  .pagination.pg-amber .page-item.active .page-link:hover {\n    background-color: #ff6f00; }\n\n.pagination.pg-purple .page-item.active .page-link {\n  background-color: #5e35b1; }\n  .pagination.pg-purple .page-item.active .page-link:hover {\n    background-color: #5e35b1; }\n\n.badge {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem;\n  color: #fff !important; }\n\n.badge-pill {\n  -webkit-border-radius: 10rem;\n  border-radius: 10rem;\n  padding-right: 0.6em;\n  padding-left: 0.6em; }\n\n.badge-primary {\n  background-color: #4285f4 !important;\n  color: #fff !important; }\n\n.badge-danger {\n  background-color: #ff3547 !important;\n  color: #fff !important; }\n\n.badge-warning {\n  background-color: #ffbb33 !important;\n  color: #fff !important; }\n\n.badge-success {\n  background-color: #00c851 !important;\n  color: #fff !important; }\n\n.badge-info {\n  background-color: #33b5e5 !important;\n  color: #fff !important; }\n\n.badge-default {\n  background-color: #2bbbad !important;\n  color: #fff !important; }\n\n.badge-secondary {\n  background-color: #aa66cc !important;\n  color: #fff !important; }\n\n.badge-dark {\n  background-color: #212121 !important;\n  color: #fff !important; }\n\n.badge-light {\n  background-color: #e0e0e0 !important;\n  color: #000 !important; }\n\nbody.modal-open {\n  overflow: auto;\n  padding-right: 0 !important; }\n\nbody.scrollable {\n  overflow-y: auto; }\n\n.modal-dialog .modal-content {\n  -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n  border: 0;\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem; }\n  .modal-dialog .modal-content .modal-header {\n    -webkit-border-top-left-radius: 0.125rem;\n    border-top-left-radius: 0.125rem;\n    -webkit-border-top-right-radius: 0.125rem;\n    border-top-right-radius: 0.125rem; }\n\n.modal-dialog.cascading-modal {\n  margin-top: 10%; }\n  .modal-dialog.cascading-modal .close {\n    opacity: 1;\n    text-shadow: none;\n    color: #fff;\n    outline: 0; }\n  .modal-dialog.cascading-modal .modal-header {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    margin: -2rem 1rem 1rem 1rem;\n    border: none;\n    -webkit-border-radius: 0.125rem;\n    border-radius: 0.125rem;\n    padding: 1.5rem;\n    text-align: center; }\n    .modal-dialog.cascading-modal .modal-header .close {\n      margin-right: 1rem; }\n    .modal-dialog.cascading-modal .modal-header .title {\n      margin-bottom: 0;\n      width: 100%;\n      font-size: 1.25rem; }\n      .modal-dialog.cascading-modal .modal-header .title .fas, .modal-dialog.cascading-modal .modal-header .title .fab, .modal-dialog.cascading-modal .modal-header .title .far {\n        margin-right: 9px; }\n    .modal-dialog.cascading-modal .modal-header .social-buttons {\n      margin-top: 1.5rem; }\n      .modal-dialog.cascading-modal .modal-header .social-buttons a {\n        font-size: 1rem; }\n  .modal-dialog.cascading-modal .modal-c-tabs .md-tabs {\n    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n    margin: -1.5rem 1rem 0 1rem;\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -ms-flexbox;\n    display: flex; }\n    .modal-dialog.cascading-modal .modal-c-tabs .md-tabs li {\n      -webkit-box-flex: 1;\n      -webkit-flex: 1;\n      -ms-flex: 1;\n      flex: 1; }\n      .modal-dialog.cascading-modal .modal-c-tabs .md-tabs li a {\n        text-align: center; }\n  .modal-dialog.cascading-modal .modal-c-tabs .tab-content {\n    padding: 1.7rem 0 0 0; }\n  .modal-dialog.cascading-modal .modal-body,\n  .modal-dialog.cascading-modal .modal-footer {\n    padding-left: 2rem;\n    padding-right: 2rem;\n    color: #616161; }\n    .modal-dialog.cascading-modal .modal-body .additional-option,\n    .modal-dialog.cascading-modal .modal-footer .additional-option {\n      margin-top: 1rem;\n      text-align: center; }\n  .modal-dialog.cascading-modal.modal-avatar {\n    margin-top: 6rem; }\n    .modal-dialog.cascading-modal.modal-avatar .modal-header {\n      -webkit-box-shadow: none;\n      box-shadow: none;\n      margin: -6rem 0 -1rem; }\n      .modal-dialog.cascading-modal.modal-avatar .modal-header img {\n        width: 130px;\n        -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n        box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n        margin-left: auto;\n        margin-right: auto; }\n\n.modal-dialog.modal-notify .heading {\n  margin: 0;\n  padding: 0.3rem;\n  font-size: 1.15rem;\n  color: #fff; }\n\n.modal-dialog.modal-notify .modal-header {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  border: 0; }\n\n.modal-dialog.modal-notify .close {\n  opacity: 1; }\n\n.modal-dialog.modal-notify .modal-body {\n  padding: 1.5rem;\n  color: #616161; }\n\n.modal-dialog.modal-notify.modal-primary .modal-header {\n  background-color: #4285f4; }\n\n.modal-dialog.modal-notify.modal-primary .fas, .modal-dialog.modal-notify.modal-primary .fab, .modal-dialog.modal-notify.modal-primary .far {\n  color: #4285f4; }\n\n.modal-dialog.modal-notify.modal-primary .badge {\n  background-color: #4285f4; }\n\n.modal-dialog.modal-notify.modal-primary .btn .fas, .modal-dialog.modal-notify.modal-primary .btn .fab, .modal-dialog.modal-notify.modal-primary .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-primary .btn.btn-outline-primary .fas, .modal-dialog.modal-notify.modal-primary .btn.btn-outline-primary .fab, .modal-dialog.modal-notify.modal-primary .btn.btn-outline-primary .far {\n  color: #4285f4; }\n\n.modal-dialog.modal-notify.modal-danger .modal-header {\n  background-color: #ff3547; }\n\n.modal-dialog.modal-notify.modal-danger .fas, .modal-dialog.modal-notify.modal-danger .fab, .modal-dialog.modal-notify.modal-danger .far {\n  color: #ff3547; }\n\n.modal-dialog.modal-notify.modal-danger .badge {\n  background-color: #ff3547; }\n\n.modal-dialog.modal-notify.modal-danger .btn .fas, .modal-dialog.modal-notify.modal-danger .btn .fab, .modal-dialog.modal-notify.modal-danger .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-danger .btn.btn-outline-danger .fas, .modal-dialog.modal-notify.modal-danger .btn.btn-outline-danger .fab, .modal-dialog.modal-notify.modal-danger .btn.btn-outline-danger .far {\n  color: #ff3547; }\n\n.modal-dialog.modal-notify.modal-warning .modal-header {\n  background-color: #ffbb33; }\n\n.modal-dialog.modal-notify.modal-warning .fas, .modal-dialog.modal-notify.modal-warning .fab, .modal-dialog.modal-notify.modal-warning .far {\n  color: #ffbb33; }\n\n.modal-dialog.modal-notify.modal-warning .badge {\n  background-color: #ffbb33; }\n\n.modal-dialog.modal-notify.modal-warning .btn .fas, .modal-dialog.modal-notify.modal-warning .btn .fab, .modal-dialog.modal-notify.modal-warning .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-warning .btn.btn-outline-warning .fas, .modal-dialog.modal-notify.modal-warning .btn.btn-outline-warning .fab, .modal-dialog.modal-notify.modal-warning .btn.btn-outline-warning .far {\n  color: #ffbb33; }\n\n.modal-dialog.modal-notify.modal-success .modal-header {\n  background-color: #00c851; }\n\n.modal-dialog.modal-notify.modal-success .fas, .modal-dialog.modal-notify.modal-success .fab, .modal-dialog.modal-notify.modal-success .far {\n  color: #00c851; }\n\n.modal-dialog.modal-notify.modal-success .badge {\n  background-color: #00c851; }\n\n.modal-dialog.modal-notify.modal-success .btn .fas, .modal-dialog.modal-notify.modal-success .btn .fab, .modal-dialog.modal-notify.modal-success .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-success .btn.btn-outline-success .fas, .modal-dialog.modal-notify.modal-success .btn.btn-outline-success .fab, .modal-dialog.modal-notify.modal-success .btn.btn-outline-success .far {\n  color: #00c851; }\n\n.modal-dialog.modal-notify.modal-info .modal-header {\n  background-color: #33b5e5; }\n\n.modal-dialog.modal-notify.modal-info .fas, .modal-dialog.modal-notify.modal-info .fab, .modal-dialog.modal-notify.modal-info .far {\n  color: #33b5e5; }\n\n.modal-dialog.modal-notify.modal-info .badge {\n  background-color: #33b5e5; }\n\n.modal-dialog.modal-notify.modal-info .btn .fas, .modal-dialog.modal-notify.modal-info .btn .fab, .modal-dialog.modal-notify.modal-info .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-info .btn.btn-outline-info .fas, .modal-dialog.modal-notify.modal-info .btn.btn-outline-info .fab, .modal-dialog.modal-notify.modal-info .btn.btn-outline-info .far {\n  color: #33b5e5; }\n\n.modal {\n  padding-right: 0 !important; }\n  @media (min-width: 768px) {\n    .modal .modal-dialog.modal-top {\n      top: 0; }\n    .modal .modal-dialog.modal-left {\n      left: 0; }\n    .modal .modal-dialog.modal-right {\n      right: 0; }\n    .modal .modal-dialog.modal-bottom {\n      bottom: 0; }\n    .modal .modal-dialog.modal-top-left {\n      top: 10px;\n      left: 10px; }\n    .modal .modal-dialog.modal-top-right {\n      top: 10px;\n      right: 10px; }\n    .modal .modal-dialog.modal-bottom-left {\n      bottom: 10px;\n      left: 10px; }\n    .modal .modal-dialog.modal-bottom-right {\n      bottom: 10px;\n      right: 10px; } }\n  .modal.fade.top:not(.show) .modal-dialog {\n    -webkit-transform: translate3d(0, -25%, 0);\n    transform: translate3d(0, -25%, 0); }\n  .modal.fade.left:not(.show) .modal-dialog {\n    -webkit-transform: translate3d(-25%, 0, 0);\n    transform: translate3d(-25%, 0, 0); }\n  .modal.fade.right:not(.show) .modal-dialog {\n    -webkit-transform: translate3d(25%, 0, 0);\n    transform: translate3d(25%, 0, 0); }\n  .modal.fade.bottom:not(.show) .modal-dialog {\n    -webkit-transform: translate3d(0, 25%, 0);\n    transform: translate3d(0, 25%, 0); }\n  @media (min-width: 992px) {\n    .modal.modal-scrolling {\n      position: relative; }\n      .modal.modal-scrolling .modal-dialog {\n        position: fixed;\n        z-index: 1050; }\n    .modal.modal-content-clickable {\n      top: auto;\n      bottom: auto; }\n      .modal.modal-content-clickable .modal-dialog {\n        position: fixed; }\n    .modal .modal-fluid {\n      width: 100%;\n      max-width: 100%; }\n      .modal .modal-fluid .modal-content {\n        width: 100%; }\n    .modal .modal-frame {\n      position: absolute;\n      margin: 0;\n      width: 100%;\n      max-width: 100%; }\n      .modal .modal-frame.modal-bottom {\n        bottom: 0; }\n    .modal .modal-full-height {\n      position: absolute;\n      display: -webkit-box;\n      display: -webkit-flex;\n      display: -ms-flexbox;\n      display: flex;\n      margin: 0;\n      width: 400px;\n      min-height: 100%;\n      height: auto;\n      min-height: 100%;\n      top: 0;\n      right: 0; }\n      .modal .modal-full-height.modal-top, .modal .modal-full-height.modal-bottom {\n        display: block;\n        width: 100%;\n        max-width: 100%;\n        height: auto; }\n      .modal .modal-full-height.modal-top {\n        bottom: auto; }\n      .modal .modal-full-height.modal-bottom {\n        min-height: 0;\n        top: auto; }\n      .modal .modal-full-height .modal-content {\n        width: 100%; }\n      .modal .modal-full-height.modal-lg {\n        width: 90%;\n        max-width: 90%; } }\n    @media (min-width: 992px) and (min-width: 992px) {\n      .modal .modal-full-height.modal-lg {\n        width: 800px;\n        max-width: 800px; } }\n    @media (min-width: 992px) and (min-width: 1200px) {\n      .modal .modal-full-height.modal-lg {\n        width: 1000px;\n        max-width: 1000px; } }\n  @media (min-width: 992px) {\n    .modal .modal-side {\n      position: absolute;\n      bottom: 10px;\n      right: 10px;\n      margin: 0;\n      width: 400px; } }\n\n.carousel .carousel-control-prev-icon,\n.carousel .carousel-control-next-icon {\n  width: 20px;\n  height: 20px; }\n\n.carousel .carousel-control-prev-icon {\n  background-image: url(../img/svg/arrow_left.svg); }\n\n.carousel .carousel-control-next-icon {\n  background-image: url(../img/svg/arrow_right.svg); }\n\n.carousel .carousel-indicators li {\n  width: 0.625rem;\n  height: 0.625rem;\n  -webkit-border-radius: 50%;\n  border-radius: 50%;\n  cursor: pointer; }\n\n.carousel-fade .carousel-item {\n  opacity: 0;\n  -webkit-transition-duration: 0.6s;\n  -o-transition-duration: 0.6s;\n  transition-duration: 0.6s;\n  -webkit-transition-property: opacity;\n  -o-transition-property: opacity;\n  transition-property: opacity; }\n\n.carousel-fade .carousel-item.active,\n.carousel-fade .carousel-item-next.carousel-item-left,\n.carousel-fade .carousel-item-prev.carousel-item-right {\n  opacity: 1; }\n\n.carousel-fade .carousel-item-left.active,\n.carousel-fade .carousel-item-right.active {\n  opacity: 0; }\n\n.carousel-fade .carousel-item-next,\n.carousel-fade .carousel-item-prev,\n.carousel-fade .carousel-item.active,\n.carousel-fade .carousel-item-left.active,\n.carousel-fade .carousel-item-prev.active {\n  -webkit-transform: translateX(0);\n  -ms-transform: translateX(0);\n  transform: translateX(0); }\n  @supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) {\n    .carousel-fade .carousel-item-next,\n    .carousel-fade .carousel-item-prev,\n    .carousel-fade .carousel-item.active,\n    .carousel-fade .carousel-item-left.active,\n    .carousel-fade .carousel-item-prev.active {\n      -webkit-transform: translate3d(0, 0, 0);\n      transform: translate3d(0, 0, 0); } }\n\n.md-form {\n  position: relative;\n  margin-top: 1.5rem;\n  margin-bottom: 1.5rem; }\n  .md-form input[type=text],\n  .md-form input[type=password],\n  .md-form input[type=email],\n  .md-form input[type=url],\n  .md-form input[type=time],\n  .md-form input[type=date],\n  .md-form input[type=datetime-local],\n  .md-form input[type=tel],\n  .md-form input[type=number],\n  .md-form input[type=search-md],\n  .md-form input[type=search],\n  .md-form textarea.md-textarea {\n    -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n    transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n    -o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n    outline: none;\n    -webkit-box-shadow: none;\n    box-shadow: none;\n    border: none;\n    border-bottom: 1px solid #ced4da;\n    -webkit-border-radius: 0;\n    border-radius: 0;\n    -webkit-box-sizing: content-box;\n    box-sizing: content-box;\n    background-color: transparent; }\n    .md-form input[type=text]:focus:not([readonly]),\n    .md-form input[type=password]:focus:not([readonly]),\n    .md-form input[type=email]:focus:not([readonly]),\n    .md-form input[type=url]:focus:not([readonly]),\n    .md-form input[type=time]:focus:not([readonly]),\n    .md-form input[type=date]:focus:not([readonly]),\n    .md-form input[type=datetime-local]:focus:not([readonly]),\n    .md-form input[type=tel]:focus:not([readonly]),\n    .md-form input[type=number]:focus:not([readonly]),\n    .md-form input[type=search-md]:focus:not([readonly]),\n    .md-form input[type=search]:focus:not([readonly]),\n    .md-form textarea.md-textarea:focus:not([readonly]) {\n      -webkit-box-shadow: 0 1px 0 0 #4285f4;\n      box-shadow: 0 1px 0 0 #4285f4;\n      border-bottom: 1px solid #4285f4; }\n      .md-form input[type=text]:focus:not([readonly]) + label,\n      .md-form input[type=password]:focus:not([readonly]) + label,\n      .md-form input[type=email]:focus:not([readonly]) + label,\n      .md-form input[type=url]:focus:not([readonly]) + label,\n      .md-form input[type=time]:focus:not([readonly]) + label,\n      .md-form input[type=date]:focus:not([readonly]) + label,\n      .md-form input[type=datetime-local]:focus:not([readonly]) + label,\n      .md-form input[type=tel]:focus:not([readonly]) + label,\n      .md-form input[type=number]:focus:not([readonly]) + label,\n      .md-form input[type=search-md]:focus:not([readonly]) + label,\n      .md-form input[type=search]:focus:not([readonly]) + label,\n      .md-form textarea.md-textarea:focus:not([readonly]) + label {\n        color: #4285f4; }\n    .md-form input[type=text] + label:after,\n    .md-form input[type=password] + label:after,\n    .md-form input[type=email] + label:after,\n    .md-form input[type=url] + label:after,\n    .md-form input[type=time] + label:after,\n    .md-form input[type=date] + label:after,\n    .md-form input[type=datetime-local] + label:after,\n    .md-form input[type=tel] + label:after,\n    .md-form input[type=number] + label:after,\n    .md-form input[type=search-md] + label:after,\n    .md-form input[type=search] + label:after,\n    .md-form textarea.md-textarea + label:after {\n      content: \"\";\n      position: absolute;\n      top: 65px;\n      display: block;\n      opacity: 0;\n      -webkit-transition: 0.2s opacity ease-out, 0.2s color ease-out;\n      -o-transition: 0.2s opacity ease-out, 0.2s color ease-out;\n      transition: 0.2s opacity ease-out, 0.2s color ease-out; }\n    .md-form input[type=text].valid, .md-form input[type=text]:focus.valid,\n    .md-form input[type=password].valid,\n    .md-form input[type=password]:focus.valid,\n    .md-form input[type=email].valid,\n    .md-form input[type=email]:focus.valid,\n    .md-form input[type=url].valid,\n    .md-form input[type=url]:focus.valid,\n    .md-form input[type=time].valid,\n    .md-form input[type=time]:focus.valid,\n    .md-form input[type=date].valid,\n    .md-form input[type=date]:focus.valid,\n    .md-form input[type=datetime-local].valid,\n    .md-form input[type=datetime-local]:focus.valid,\n    .md-form input[type=tel].valid,\n    .md-form input[type=tel]:focus.valid,\n    .md-form input[type=number].valid,\n    .md-form input[type=number]:focus.valid,\n    .md-form input[type=search-md].valid,\n    .md-form input[type=search-md]:focus.valid,\n    .md-form input[type=search].valid,\n    .md-form input[type=search]:focus.valid,\n    .md-form textarea.md-textarea.valid,\n    .md-form textarea.md-textarea:focus.valid {\n      border-bottom: 1px solid #00c851;\n      -webkit-box-shadow: 0 1px 0 0 #00c851;\n      box-shadow: 0 1px 0 0 #00c851; }\n    .md-form input[type=text].valid + label:after, .md-form input[type=text]:focus.valid + label:after,\n    .md-form input[type=password].valid + label:after,\n    .md-form input[type=password]:focus.valid + label:after,\n    .md-form input[type=email].valid + label:after,\n    .md-form input[type=email]:focus.valid + label:after,\n    .md-form input[type=url].valid + label:after,\n    .md-form input[type=url]:focus.valid + label:after,\n    .md-form input[type=time].valid + label:after,\n    .md-form input[type=time]:focus.valid + label:after,\n    .md-form input[type=date].valid + label:after,\n    .md-form input[type=date]:focus.valid + label:after,\n    .md-form input[type=datetime-local].valid + label:after,\n    .md-form input[type=datetime-local]:focus.valid + label:after,\n    .md-form input[type=tel].valid + label:after,\n    .md-form input[type=tel]:focus.valid + label:after,\n    .md-form input[type=number].valid + label:after,\n    .md-form input[type=number]:focus.valid + label:after,\n    .md-form input[type=search-md].valid + label:after,\n    .md-form input[type=search-md]:focus.valid + label:after,\n    .md-form input[type=search].valid + label:after,\n    .md-form input[type=search]:focus.valid + label:after,\n    .md-form textarea.md-textarea.valid + label:after,\n    .md-form textarea.md-textarea:focus.valid + label:after {\n      content: attr(data-success);\n      color: #00c851;\n      opacity: 1; }\n    .md-form input[type=text].invalid, .md-form input[type=text]:focus.invalid,\n    .md-form input[type=password].invalid,\n    .md-form input[type=password]:focus.invalid,\n    .md-form input[type=email].invalid,\n    .md-form input[type=email]:focus.invalid,\n    .md-form input[type=url].invalid,\n    .md-form input[type=url]:focus.invalid,\n    .md-form input[type=time].invalid,\n    .md-form input[type=time]:focus.invalid,\n    .md-form input[type=date].invalid,\n    .md-form input[type=date]:focus.invalid,\n    .md-form input[type=datetime-local].invalid,\n    .md-form input[type=datetime-local]:focus.invalid,\n    .md-form input[type=tel].invalid,\n    .md-form input[type=tel]:focus.invalid,\n    .md-form input[type=number].invalid,\n    .md-form input[type=number]:focus.invalid,\n    .md-form input[type=search-md].invalid,\n    .md-form input[type=search-md]:focus.invalid,\n    .md-form input[type=search].invalid,\n    .md-form input[type=search]:focus.invalid,\n    .md-form textarea.md-textarea.invalid,\n    .md-form textarea.md-textarea:focus.invalid {\n      border-bottom: 1px solid #f44336;\n      -webkit-box-shadow: 0 1px 0 0 #f44336;\n      box-shadow: 0 1px 0 0 #f44336; }\n    .md-form input[type=text].invalid + label:after, .md-form input[type=text]:focus.invalid + label:after,\n    .md-form input[type=password].invalid + label:after,\n    .md-form input[type=password]:focus.invalid + label:after,\n    .md-form input[type=email].invalid + label:after,\n    .md-form input[type=email]:focus.invalid + label:after,\n    .md-form input[type=url].invalid + label:after,\n    .md-form input[type=url]:focus.invalid + label:after,\n    .md-form input[type=time].invalid + label:after,\n    .md-form input[type=time]:focus.invalid + label:after,\n    .md-form input[type=date].invalid + label:after,\n    .md-form input[type=date]:focus.invalid + label:after,\n    .md-form input[type=datetime-local].invalid + label:after,\n    .md-form input[type=datetime-local]:focus.invalid + label:after,\n    .md-form input[type=tel].invalid + label:after,\n    .md-form input[type=tel]:focus.invalid + label:after,\n    .md-form input[type=number].invalid + label:after,\n    .md-form input[type=number]:focus.invalid + label:after,\n    .md-form input[type=search-md].invalid + label:after,\n    .md-form input[type=search-md]:focus.invalid + label:after,\n    .md-form input[type=search].invalid + label:after,\n    .md-form input[type=search]:focus.invalid + label:after,\n    .md-form textarea.md-textarea.invalid + label:after,\n    .md-form textarea.md-textarea:focus.invalid + label:after {\n      content: attr(data-error);\n      color: #f44336;\n      opacity: 1; }\n    .md-form input[type=text].form-control.valid + label:after,\n    .md-form input[type=text].form-control:focus.valid + label:after,\n    .md-form input[type=password].form-control.valid + label:after,\n    .md-form input[type=password].form-control:focus.valid + label:after,\n    .md-form input[type=email].form-control.valid + label:after,\n    .md-form input[type=email].form-control:focus.valid + label:after,\n    .md-form input[type=url].form-control.valid + label:after,\n    .md-form input[type=url].form-control:focus.valid + label:after,\n    .md-form input[type=time].form-control.valid + label:after,\n    .md-form input[type=time].form-control:focus.valid + label:after,\n    .md-form input[type=date].form-control.valid + label:after,\n    .md-form input[type=date].form-control:focus.valid + label:after,\n    .md-form input[type=datetime-local].form-control.valid + label:after,\n    .md-form input[type=datetime-local].form-control:focus.valid + label:after,\n    .md-form input[type=tel].form-control.valid + label:after,\n    .md-form input[type=tel].form-control:focus.valid + label:after,\n    .md-form input[type=number].form-control.valid + label:after,\n    .md-form input[type=number].form-control:focus.valid + label:after,\n    .md-form input[type=search-md].form-control.valid + label:after,\n    .md-form input[type=search-md].form-control:focus.valid + label:after,\n    .md-form input[type=search].form-control.valid + label:after,\n    .md-form input[type=search].form-control:focus.valid + label:after,\n    .md-form textarea.md-textarea.form-control.valid + label:after,\n    .md-form textarea.md-textarea.form-control:focus.valid + label:after {\n      top: 3.56rem; }\n    .md-form input[type=text].form-control.invalid + label:after,\n    .md-form input[type=text].form-control:focus.invalid + label:after,\n    .md-form input[type=password].form-control.invalid + label:after,\n    .md-form input[type=password].form-control:focus.invalid + label:after,\n    .md-form input[type=email].form-control.invalid + label:after,\n    .md-form input[type=email].form-control:focus.invalid + label:after,\n    .md-form input[type=url].form-control.invalid + label:after,\n    .md-form input[type=url].form-control:focus.invalid + label:after,\n    .md-form input[type=time].form-control.invalid + label:after,\n    .md-form input[type=time].form-control:focus.invalid + label:after,\n    .md-form input[type=date].form-control.invalid + label:after,\n    .md-form input[type=date].form-control:focus.invalid + label:after,\n    .md-form input[type=datetime-local].form-control.invalid + label:after,\n    .md-form input[type=datetime-local].form-control:focus.invalid + label:after,\n    .md-form input[type=tel].form-control.invalid + label:after,\n    .md-form input[type=tel].form-control:focus.invalid + label:after,\n    .md-form input[type=number].form-control.invalid + label:after,\n    .md-form input[type=number].form-control:focus.invalid + label:after,\n    .md-form input[type=search-md].form-control.invalid + label:after,\n    .md-form input[type=search-md].form-control:focus.invalid + label:after,\n    .md-form input[type=search].form-control.invalid + label:after,\n    .md-form input[type=search].form-control:focus.invalid + label:after,\n    .md-form textarea.md-textarea.form-control.invalid + label:after,\n    .md-form textarea.md-textarea.form-control:focus.invalid + label:after {\n      top: 3.44rem; }\n    .md-form input[type=text].form-control-lg.valid + label:after,\n    .md-form input[type=text].form-control-lg:focus.valid + label:after,\n    .md-form input[type=password].form-control-lg.valid + label:after,\n    .md-form input[type=password].form-control-lg:focus.valid + label:after,\n    .md-form input[type=email].form-control-lg.valid + label:after,\n    .md-form input[type=email].form-control-lg:focus.valid + label:after,\n    .md-form input[type=url].form-control-lg.valid + label:after,\n    .md-form input[type=url].form-control-lg:focus.valid + label:after,\n    .md-form input[type=time].form-control-lg.valid + label:after,\n    .md-form input[type=time].form-control-lg:focus.valid + label:after,\n    .md-form input[type=date].form-control-lg.valid + label:after,\n    .md-form input[type=date].form-control-lg:focus.valid + label:after,\n    .md-form input[type=datetime-local].form-control-lg.valid + label:after,\n    .md-form input[type=datetime-local].form-control-lg:focus.valid + label:after,\n    .md-form input[type=tel].form-control-lg.valid + label:after,\n    .md-form input[type=tel].form-control-lg:focus.valid + label:after,\n    .md-form input[type=number].form-control-lg.valid + label:after,\n    .md-form input[type=number].form-control-lg:focus.valid + label:after,\n    .md-form input[type=search-md].form-control-lg.valid + label:after,\n    .md-form input[type=search-md].form-control-lg:focus.valid + label:after,\n    .md-form input[type=search].form-control-lg.valid + label:after,\n    .md-form input[type=search].form-control-lg:focus.valid + label:after,\n    .md-form textarea.md-textarea.form-control-lg.valid + label:after,\n    .md-form textarea.md-textarea.form-control-lg:focus.valid + label:after {\n      top: 4.1rem; }\n    .md-form input[type=text].form-control-lg.invalid + label:after,\n    .md-form input[type=text].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=password].form-control-lg.invalid + label:after,\n    .md-form input[type=password].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=email].form-control-lg.invalid + label:after,\n    .md-form input[type=email].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=url].form-control-lg.invalid + label:after,\n    .md-form input[type=url].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=time].form-control-lg.invalid + label:after,\n    .md-form input[type=time].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=date].form-control-lg.invalid + label:after,\n    .md-form input[type=date].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=datetime-local].form-control-lg.invalid + label:after,\n    .md-form input[type=datetime-local].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=tel].form-control-lg.invalid + label:after,\n    .md-form input[type=tel].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=number].form-control-lg.invalid + label:after,\n    .md-form input[type=number].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=search-md].form-control-lg.invalid + label:after,\n    .md-form input[type=search-md].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=search].form-control-lg.invalid + label:after,\n    .md-form input[type=search].form-control-lg:focus.invalid + label:after,\n    .md-form textarea.md-textarea.form-control-lg.invalid + label:after,\n    .md-form textarea.md-textarea.form-control-lg:focus.invalid + label:after {\n      top: 4rem; }\n    .md-form input[type=text].form-control-sm.valid + label:after,\n    .md-form input[type=text].form-control-sm:focus.valid + label:after,\n    .md-form input[type=password].form-control-sm.valid + label:after,\n    .md-form input[type=password].form-control-sm:focus.valid + label:after,\n    .md-form input[type=email].form-control-sm.valid + label:after,\n    .md-form input[type=email].form-control-sm:focus.valid + label:after,\n    .md-form input[type=url].form-control-sm.valid + label:after,\n    .md-form input[type=url].form-control-sm:focus.valid + label:after,\n    .md-form input[type=time].form-control-sm.valid + label:after,\n    .md-form input[type=time].form-control-sm:focus.valid + label:after,\n    .md-form input[type=date].form-control-sm.valid + label:after,\n    .md-form input[type=date].form-control-sm:focus.valid + label:after,\n    .md-form input[type=datetime-local].form-control-sm.valid + label:after,\n    .md-form input[type=datetime-local].form-control-sm:focus.valid + label:after,\n    .md-form input[type=tel].form-control-sm.valid + label:after,\n    .md-form input[type=tel].form-control-sm:focus.valid + label:after,\n    .md-form input[type=number].form-control-sm.valid + label:after,\n    .md-form input[type=number].form-control-sm:focus.valid + label:after,\n    .md-form input[type=search-md].form-control-sm.valid + label:after,\n    .md-form input[type=search-md].form-control-sm:focus.valid + label:after,\n    .md-form input[type=search].form-control-sm.valid + label:after,\n    .md-form input[type=search].form-control-sm:focus.valid + label:after,\n    .md-form textarea.md-textarea.form-control-sm.valid + label:after,\n    .md-form textarea.md-textarea.form-control-sm:focus.valid + label:after {\n      top: 3.2rem; }\n    .md-form input[type=text].form-control-sm.invalid + label:after,\n    .md-form input[type=text].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=password].form-control-sm.invalid + label:after,\n    .md-form input[type=password].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=email].form-control-sm.invalid + label:after,\n    .md-form input[type=email].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=url].form-control-sm.invalid + label:after,\n    .md-form input[type=url].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=time].form-control-sm.invalid + label:after,\n    .md-form input[type=time].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=date].form-control-sm.invalid + label:after,\n    .md-form input[type=date].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=datetime-local].form-control-sm.invalid + label:after,\n    .md-form input[type=datetime-local].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=tel].form-control-sm.invalid + label:after,\n    .md-form input[type=tel].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=number].form-control-sm.invalid + label:after,\n    .md-form input[type=number].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=search-md].form-control-sm.invalid + label:after,\n    .md-form input[type=search-md].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=search].form-control-sm.invalid + label:after,\n    .md-form input[type=search].form-control-sm:focus.invalid + label:after,\n    .md-form textarea.md-textarea.form-control-sm.invalid + label:after,\n    .md-form textarea.md-textarea.form-control-sm:focus.invalid + label:after {\n      top: 3.1rem; }\n  .md-form .was-validated input[type=text]:valid + label {\n    color: #00c851 !important; }\n  .md-form .was-validated input[type=text]:invalid + label {\n    color: #f44336 !important; }\n  .md-form .was-validated .form-control:valid:focus {\n    -webkit-box-shadow: 0 1px 0 0 #00c851 !important;\n    box-shadow: 0 1px 0 0 #00c851 !important; }\n  .md-form .was-validated .form-control:valid {\n    border-color: #00c851 !important; }\n  .md-form .was-validated .form-control:invalid:focus {\n    -webkit-box-shadow: 0 1px 0 0 #f44336 !important;\n    box-shadow: 0 1px 0 0 #f44336 !important; }\n  .md-form .was-validated .form-control:invalid {\n    border-color: #f44336 !important; }\n  .md-form .form-control {\n    margin: 0 0 0.5rem 0;\n    -webkit-border-radius: 0;\n    border-radius: 0;\n    padding: 0.3rem 0 0.55rem 0;\n    background-image: none;\n    background-color: transparent;\n    height: auto; }\n    .md-form .form-control:focus {\n      -webkit-box-shadow: none;\n      box-shadow: none;\n      background: transparent; }\n    .md-form .form-control:disabled, .md-form .form-control[readonly] {\n      border-bottom: 1px solid #bdbdbd;\n      background-color: transparent; }\n  .md-form .validate {\n    margin-bottom: 2.5rem; }\n  .md-form label {\n    font-size: 1rem; }\n    .md-form label.active {\n      font-size: 0.8rem; }\n  .md-form .prefix {\n    top: 0.25rem;\n    font-size: 1.75rem; }\n    .md-form .prefix ~ input,\n    .md-form .prefix ~ textarea {\n      margin-left: 2.5rem;\n      width: calc(100% - 2.5rem); }\n    .md-form .prefix ~ label {\n      margin-left: 2.5rem; }\n    .md-form .prefix ~ .form-text {\n      margin-left: 2.6rem; }\n  .md-form label {\n    position: absolute;\n    top: 0.65rem;\n    left: 0;\n    -webkit-transition: 0.2s ease-out;\n    -o-transition: 0.2s ease-out;\n    transition: 0.2s ease-out;\n    cursor: text;\n    color: #757575; }\n    .md-form label.active {\n      -webkit-transform: translateY(-140%);\n      -ms-transform: translateY(-140%);\n      transform: translateY(-140%); }\n  .md-form .prefix {\n    position: absolute;\n    -webkit-transition: color 0.2s;\n    -o-transition: color 0.2s;\n    transition: color 0.2s; }\n    .md-form .prefix.active {\n      color: #4285f4; }\n  .md-form.form-lg .validate {\n    margin-bottom: 2.8rem; }\n  .md-form.form-lg label {\n    font-size: 1.25rem; }\n    .md-form.form-lg label.active {\n      font-size: 0.95rem; }\n  .md-form.form-lg .prefix {\n    top: 0.4rem;\n    font-size: 2rem; }\n    .md-form.form-lg .prefix ~ input,\n    .md-form.form-lg .prefix ~ textarea {\n      margin-left: 3rem;\n      width: calc(100% - 3rem); }\n    .md-form.form-lg .prefix ~ label {\n      margin-left: 3rem; }\n    .md-form.form-lg .prefix ~ .form-text {\n      margin-left: 3.1rem; }\n  .md-form.form-sm .validate {\n    margin-bottom: 2.3rem; }\n  .md-form.form-sm label {\n    font-size: 0.875rem; }\n    .md-form.form-sm label.active {\n      font-size: 0.75rem; }\n  .md-form.form-sm .prefix {\n    top: 0.35rem;\n    font-size: 1.5rem; }\n    .md-form.form-sm .prefix ~ input,\n    .md-form.form-sm .prefix ~ textarea {\n      margin-left: 2rem;\n      width: calc(100% - 2rem); }\n    .md-form.form-sm .prefix ~ label {\n      margin-left: 2rem; }\n    .md-form.form-sm .prefix ~ .form-text {\n      margin-left: 2rem; }\n  .md-form textarea.md-textarea {\n    overflow-y: hidden;\n    padding: 1.5rem 0;\n    resize: none; }\n  .md-form textarea.md-textarea-auto {\n    padding: 0;\n    padding-top: 1.5rem; }\n  .md-form textarea ~ label.active {\n    color: #4285f4; }\n\n.md-form .form-control.is-invalid,\n.was-validated .md-form .form-control:invalid {\n  padding-right: 0; }\n\n.md-form .form-control.is-valid,\n.was-validated .md-form .form-control:valid {\n  padding-right: 0; }\n\n.needs-validation .md-form label {\n  left: .3rem; }\n\n.edge-header {\n  display: block;\n  height: 278px;\n  background-color: #ccc; }\n\n.free-bird {\n  margin-top: -100px; }\n\n.juicy-peach-gradient {\n  background-image: -webkit-gradient(linear, left top, right top, from(#ffecd2), to(#fcb69f));\n  background-image: -webkit-linear-gradient(left, #ffecd2 0%, #fcb69f 100%);\n  background-image: -o-linear-gradient(left, #ffecd2 0%, #fcb69f 100%);\n  background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%); }\n\n.young-passion-gradient {\n  background-image: -webkit-gradient(linear, left top, right top, from(#ff8177), color-stop(0%, #ff867a), color-stop(21%, #ff8c7f), color-stop(52%, #f99185), color-stop(78%, #cf556c), to(#b12a5b));\n  background-image: -webkit-linear-gradient(left, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%);\n  background-image: -o-linear-gradient(left, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%);\n  background-image: linear-gradient(to right, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%); }\n\n.lady-lips-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#ff9a9e), color-stop(99%, #fecfef), to(#fecfef));\n  background-image: -webkit-linear-gradient(bottom, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);\n  background-image: -o-linear-gradient(bottom, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);\n  background-image: linear-gradient(to top, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }\n\n.sunny-morning-gradient {\n  background-image: -webkit-linear-gradient(330deg, #f6d365 0%, #fda085 100%);\n  background-image: -o-linear-gradient(330deg, #f6d365 0%, #fda085 100%);\n  background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%); }\n\n.rainy-ashville-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#fbc2eb), to(#a6c1ee));\n  background-image: -webkit-linear-gradient(bottom, #fbc2eb 0%, #a6c1ee 100%);\n  background-image: -o-linear-gradient(bottom, #fbc2eb 0%, #a6c1ee 100%);\n  background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%); }\n\n.frozen-dreams-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#fdcbf1), color-stop(1%, #fdcbf1), to(#e6dee9));\n  background-image: -webkit-linear-gradient(bottom, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);\n  background-image: -o-linear-gradient(bottom, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);\n  background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%); }\n\n.warm-flame-gradient {\n  background-image: -webkit-linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);\n  background-image: -o-linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);\n  background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%); }\n\n.night-fade-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#a18cd1), to(#fbc2eb));\n  background-image: -webkit-linear-gradient(bottom, #a18cd1 0%, #fbc2eb 100%);\n  background-image: -o-linear-gradient(bottom, #a18cd1 0%, #fbc2eb 100%);\n  background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%); }\n\n.spring-warmth-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#fad0c4), to(#ffd1ff));\n  background-image: -webkit-linear-gradient(bottom, #fad0c4 0%, #ffd1ff 100%);\n  background-image: -o-linear-gradient(bottom, #fad0c4 0%, #ffd1ff 100%);\n  background-image: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%); }\n\n.winter-neva-gradient {\n  background-image: -webkit-linear-gradient(330deg, #a1c4fd 0%, #c2e9fb 100%);\n  background-image: -o-linear-gradient(330deg, #a1c4fd 0%, #c2e9fb 100%);\n  background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); }\n\n.dusty-grass-gradient {\n  background-image: -webkit-linear-gradient(330deg, #d4fc79 0%, #96e6a1 100%);\n  background-image: -o-linear-gradient(330deg, #d4fc79 0%, #96e6a1 100%);\n  background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%); }\n\n.tempting-azure-gradient {\n  background-image: -webkit-linear-gradient(330deg, #84fab0 0%, #8fd3f4 100%);\n  background-image: -o-linear-gradient(330deg, #84fab0 0%, #8fd3f4 100%);\n  background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); }\n\n.heavy-rain-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#cfd9df), to(#e2ebf0));\n  background-image: -webkit-linear-gradient(bottom, #cfd9df 0%, #e2ebf0 100%);\n  background-image: -o-linear-gradient(bottom, #cfd9df 0%, #e2ebf0 100%);\n  background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%); }\n\n.amy-crisp-gradient {\n  background-image: -webkit-linear-gradient(330deg, #a6c0fe 0%, #f68084 100%);\n  background-image: -o-linear-gradient(330deg, #a6c0fe 0%, #f68084 100%);\n  background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%); }\n\n.mean-fruit-gradient {\n  background-image: -webkit-linear-gradient(330deg, #fccb90 0%, #d57eeb 100%);\n  background-image: -o-linear-gradient(330deg, #fccb90 0%, #d57eeb 100%);\n  background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%); }\n\n.deep-blue-gradient {\n  background-image: -webkit-linear-gradient(330deg, #e0c3fc 0%, #8ec5fc 100%);\n  background-image: -o-linear-gradient(330deg, #e0c3fc 0%, #8ec5fc 100%);\n  background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); }\n\n.ripe-malinka-gradient {\n  background-image: -webkit-linear-gradient(330deg, #f093fb 0%, #f5576c 100%);\n  background-image: -o-linear-gradient(330deg, #f093fb 0%, #f5576c 100%);\n  background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%); }\n\n.cloudy-knoxville-gradient {\n  background-image: -webkit-linear-gradient(330deg, #fdfbfb 0%, #ebedee 100%);\n  background-image: -o-linear-gradient(330deg, #fdfbfb 0%, #ebedee 100%);\n  background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%); }\n\n.morpheus-den-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#30cfd0), to(#330867));\n  background-image: -webkit-linear-gradient(bottom, #30cfd0 0%, #330867 100%);\n  background-image: -o-linear-gradient(bottom, #30cfd0 0%, #330867 100%);\n  background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%); }\n\n.rare-wind-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#a8edea), to(#fed6e3));\n  background-image: -webkit-linear-gradient(bottom, #a8edea 0%, #fed6e3 100%);\n  background-image: -o-linear-gradient(bottom, #a8edea 0%, #fed6e3 100%);\n  background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%); }\n\n.near-moon-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#5ee7df), to(#b490ca));\n  background-image: -webkit-linear-gradient(bottom, #5ee7df 0%, #b490ca 100%);\n  background-image: -o-linear-gradient(bottom, #5ee7df 0%, #b490ca 100%);\n  background-image: linear-gradient(to top, #5ee7df 0%, #b490ca 100%); }\n\n.schedule-list .hr-bold {\n  border-top: 2px solid #212529; }\n\n.schedule-list .font-smaller {\n  font-size: .8rem; }\n\n.note {\n  padding: 10px;\n  border-left: 6px solid;\n  -webkit-border-radius: 5px;\n  border-radius: 5px; }\n  .note strong {\n    font-weight: 600; }\n  .note p {\n    font-weight: 500; }\n  .note.note-primary {\n    background-color: #dfeefd;\n    border-color: #176ac4; }\n  .note.note-secondary {\n    background-color: #e2e3e5;\n    border-color: #58595a; }\n  .note.note-success {\n    background-color: #e2f0e5;\n    border-color: #49a75f; }\n  .note.note-danger {\n    background-color: #fae7e8;\n    border-color: #e45460; }\n  .note.note-warning {\n    background-color: #faf4e0;\n    border-color: #c2a442; }\n  .note.note-info {\n    background-color: #e4f2f5;\n    border-color: #2492a5; }\n  .note.note-light {\n    background-color: #fefefe;\n    border-color: #0f0f0f; }\n\nfooter.page-footer {\n  bottom: 0;\n  color: #fff; }\n  footer.page-footer .container-fluid {\n    width: auto; }\n  footer.page-footer .footer-copyright {\n    overflow: hidden;\n    background-color: rgba(0, 0, 0, 0.2);\n    color: rgba(255, 255, 255, 0.6); }\n  footer.page-footer a {\n    color: #fff; }\n\n.media .media-left {\n  padding: 0 10px 10px 0; }\n  .media .media-left img {\n    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); }\n\n.list-group .list-group-item:first-child {\n  -webkit-border-top-left-radius: 0.125rem;\n  border-top-left-radius: 0.125rem;\n  -webkit-border-top-right-radius: 0.125rem;\n  border-top-right-radius: 0.125rem; }\n\n.list-group .list-group-item:last-child {\n  -webkit-border-bottom-left-radius: 0.125rem;\n  border-bottom-left-radius: 0.125rem;\n  -webkit-border-bottom-right-radius: 0.125rem;\n  border-bottom-right-radius: 0.125rem; }\n\n.list-group a,\n.list-group button {\n  -webkit-transition: 0.5s;\n  -o-transition: 0.5s;\n  transition: 0.5s; }\n  .list-group a:hover,\n  .list-group button:hover {\n    -webkit-transition: 0.5s;\n    -o-transition: 0.5s;\n    transition: 0.5s; }\n\ntable th {\n  font-size: 0.9rem;\n  font-weight: 400; }\n\ntable td {\n  font-size: 0.9rem;\n  font-weight: 300; }\n\ntable.table thead th {\n  border-top: none; }\n\ntable.table th,\ntable.table td {\n  padding-top: 1.1rem;\n  padding-bottom: 1rem; }\n\ntable.table a {\n  margin: 0;\n  color: #212529; }\n\ntable.table .label-table {\n  margin: 0;\n  padding: 0;\n  line-height: 0.94rem;\n  height: 0.94rem; }\n\ntable.table.btn-table td {\n  vertical-align: middle; }\n\ntable.table-hover tbody tr:hover {\n  -webkit-transition: 0.5s;\n  -o-transition: 0.5s;\n  transition: 0.5s;\n  background-color: rgba(0, 0, 0, 0.075); }\n\ntable .th-lg {\n  min-width: 9rem; }\n\ntable .th-sm {\n  min-width: 6rem; }\n\ntable.table-sm th,\ntable.table-sm td {\n  padding-top: 0.6rem;\n  padding-bottom: 0.6rem; }\n\n.table-scroll-vertical {\n  max-height: 300px;\n  overflow-y: auto; }\n\n.table-fixed {\n  table-layout: fixed; }\n\n.table-responsive > .table-bordered,\n.table-responsive-sm > .table-bordered,\n.table-responsive-md > .table-bordered,\n.table-responsive-lg > .table-bordered,\n.table-responsive-xl > .table-bordered {\n  border-top: 1px solid #dee2e6; }\n\nul.stepper {\n  counter-reset: section;\n  overflow-y: auto;\n  overflow-x: hidden;\n  margin: 1em -1.5rem;\n  padding: 0 1.5rem;\n  padding: 1.5rem; }\n  ul.stepper li a {\n    padding: 1.5rem;\n    text-align: center; }\n    ul.stepper li a .circle {\n      display: inline-block;\n      color: #fff;\n      -webkit-border-radius: 50%;\n      border-radius: 50%;\n      background: rgba(0, 0, 0, 0.38);\n      width: 1.75rem;\n      height: 1.75rem;\n      text-align: center;\n      line-height: 1.7rem;\n      margin-right: 0.5rem; }\n    ul.stepper li a .label {\n      display: inline-block;\n      color: rgba(0, 0, 0, 0.38); }\n  ul.stepper li.active a .label, ul.stepper li.completed a .label {\n    font-weight: 600;\n    color: rgba(0, 0, 0, 0.87); }\n\n.stepper-horizontal {\n  position: relative;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: justify;\n  -webkit-justify-content: space-between;\n  -ms-flex-pack: justify;\n  justify-content: space-between; }\n  .stepper-horizontal li {\n    -webkit-transition: 0.5s;\n    -o-transition: 0.5s;\n    transition: 0.5s;\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -ms-flexbox;\n    display: flex;\n    -webkit-box-align: center;\n    -webkit-align-items: center;\n    -ms-flex-align: center;\n    align-items: center;\n    -webkit-box-flex: 1;\n    -webkit-flex: 1;\n    -ms-flex: 1;\n    flex: 1;\n    position: relative; }\n    .stepper-horizontal li a .label {\n      margin-top: 0.63rem; }\n    .stepper-horizontal li:not(:last-child):after {\n      content: \"\";\n      position: relative;\n      -webkit-box-flex: 1;\n      -webkit-flex: 1;\n      -ms-flex: 1;\n      flex: 1;\n      margin: 0.5rem 0 0 0;\n      height: 1px;\n      background-color: rgba(0, 0, 0, 0.1); }\n    .stepper-horizontal li:not(:first-child):before {\n      content: \"\";\n      position: relative;\n      -webkit-box-flex: 1;\n      -webkit-flex: 1;\n      -ms-flex: 1;\n      flex: 1;\n      margin: 0.5rem 0 0 0;\n      height: 1px;\n      background-color: rgba(0, 0, 0, 0.1); }\n    .stepper-horizontal li:hover {\n      background-color: rgba(0, 0, 0, 0.06); }\n  @media (max-width: 47.9375rem) {\n    .stepper-horizontal {\n      -webkit-box-orient: vertical;\n      -webkit-box-direction: normal;\n      -webkit-flex-direction: column;\n      -ms-flex-direction: column;\n      flex-direction: column; }\n      .stepper-horizontal li {\n        -webkit-box-align: start;\n        -webkit-align-items: flex-start;\n        -ms-flex-align: start;\n        align-items: flex-start;\n        -webkit-box-orient: vertical;\n        -webkit-box-direction: normal;\n        -webkit-flex-direction: column;\n        -ms-flex-direction: column;\n        flex-direction: column; }\n        .stepper-horizontal li a .label {\n          -webkit-box-orient: vertical;\n          -webkit-box-direction: normal;\n          -webkit-flex-flow: column nowrap;\n          -ms-flex-flow: column nowrap;\n          flex-flow: column nowrap;\n          -webkit-box-ordinal-group: 3;\n          -webkit-order: 2;\n          -ms-flex-order: 2;\n          order: 2;\n          margin-top: 0.2rem; }\n        .stepper-horizontal li:not(:last-child):after {\n          content: \"\";\n          position: absolute;\n          width: 1px;\n          height: calc(100% - 40px);\n          left: 2.19rem;\n          top: 3.75rem; } }\n  .stepper-horizontal > li:not(:last-of-type) {\n    margin-bottom: 0 !important; }\n\n.stepper-vertical {\n  position: relative;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: column;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  -webkit-box-pack: justify;\n  -webkit-justify-content: space-between;\n  -ms-flex-pack: justify;\n  justify-content: space-between; }\n  .stepper-vertical li {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -ms-flexbox;\n    display: flex;\n    -webkit-box-align: start;\n    -webkit-align-items: flex-start;\n    -ms-flex-align: start;\n    align-items: flex-start;\n    -webkit-box-flex: 1;\n    -webkit-flex: 1;\n    -ms-flex: 1;\n    flex: 1;\n    -webkit-box-orient: vertical;\n    -webkit-box-direction: normal;\n    -webkit-flex-direction: column;\n    -ms-flex-direction: column;\n    flex-direction: column;\n    position: relative; }\n    .stepper-vertical li a {\n      -webkit-align-self: flex-start;\n      -ms-flex-item-align: start;\n      align-self: flex-start;\n      display: -webkit-box;\n      display: -webkit-flex;\n      display: -ms-flexbox;\n      display: flex;\n      position: relative; }\n      .stepper-vertical li a .circle {\n        -webkit-box-ordinal-group: 2;\n        -webkit-order: 1;\n        -ms-flex-order: 1;\n        order: 1; }\n      .stepper-vertical li a .label {\n        -webkit-box-orient: vertical;\n        -webkit-box-direction: normal;\n        -webkit-flex-flow: column nowrap;\n        -ms-flex-flow: column nowrap;\n        flex-flow: column nowrap;\n        -webkit-box-ordinal-group: 3;\n        -webkit-order: 2;\n        -ms-flex-order: 2;\n        order: 2;\n        margin-top: 0.2rem; }\n    .stepper-vertical li.completed a .label {\n      font-weight: 500; }\n    .stepper-vertical li .step-content {\n      display: block;\n      margin-top: 0;\n      margin-left: 3.13rem;\n      padding: 0.94rem; }\n      .stepper-vertical li .step-content p {\n        font-size: 0.88rem; }\n    .stepper-vertical li:not(:last-child):after {\n      content: \"\";\n      position: absolute;\n      width: 1px;\n      height: calc(100% - 40px);\n      left: 2.19rem;\n      top: 3.44rem;\n      background-color: rgba(0, 0, 0, 0.1); }\n\n.fast.spinner-border {\n  -webkit-animation: spinner-border .4s linear infinite;\n  animation: spinner-border .4s linear infinite; }\n\n.fast.spinner-grow {\n  -webkit-animation: spinner-grow .4s linear infinite;\n  animation: spinner-grow .4s linear infinite; }\n"
  },
  {
    "path": "student/content/mdb/css/mdb.lite.css",
    "content": "/*!\n * Material Design for Bootstrap 4\n * Version: MDB Lite 4.7.0\n *\n *\n * Copyright: Material Design for Bootstrap\n * https://mdbootstrap.com/\n *\n * Read the license: https://mdbootstrap.com/general/license/\n *\n *\n * Documentation: https://mdbootstrap.com/\n *\n * Getting started: https://mdbootstrap.com/docs/jquery/getting-started/download/\n *\n * Tutorials: https://mdbootstrap.com/education/bootstrap/\n *\n * Templates: https://mdbootstrap.com/templates/\n *\n * Support: https://mdbootstrap.com/support/\n *\n * Contact: office@mdbootstrap.com\n *\n * Attribution: Animate CSS, Twitter Bootstrap, Materialize CSS, Normalize CSS, Waves JS, WOW JS, Toastr, Chart.js , Hammer.js\n *\n */\n/*** Global ***/\n.mdb-color.lighten-5 {\n  background-color: #d0d6e2 !important; }\n\n.mdb-color.lighten-4 {\n  background-color: #b1bace !important; }\n\n.mdb-color.lighten-3 {\n  background-color: #929fba !important; }\n\n.mdb-color.lighten-2 {\n  background-color: #7283a7 !important; }\n\n.mdb-color.lighten-1 {\n  background-color: #59698d !important; }\n\n.mdb-color {\n  background-color: #45526e !important; }\n\n.mdb-color-text {\n  color: #45526e !important; }\n\n.rgba-mdb-color-slight,\n.rgba-mdb-color-slight:after {\n  background-color: rgba(69, 82, 110, 0.1); }\n\n.rgba-mdb-color-light,\n.rgba-mdb-color-light:after {\n  background-color: rgba(69, 82, 110, 0.3); }\n\n.rgba-mdb-color-strong,\n.rgba-mdb-color-strong:after {\n  background-color: rgba(69, 82, 110, 0.7); }\n\n.mdb-color.darken-1 {\n  background-color: #3b465e !important; }\n\n.mdb-color.darken-2 {\n  background-color: #2e3951 !important; }\n\n.mdb-color.darken-3 {\n  background-color: #1c2a48 !important; }\n\n.mdb-color.darken-4 {\n  background-color: #1c2331 !important; }\n\n.red.lighten-5 {\n  background-color: #ffebee !important; }\n\n.red.lighten-4 {\n  background-color: #ffcdd2 !important; }\n\n.red.lighten-3 {\n  background-color: #ef9a9a !important; }\n\n.red.lighten-2 {\n  background-color: #e57373 !important; }\n\n.red.lighten-1 {\n  background-color: #ef5350 !important; }\n\n.red {\n  background-color: #f44336 !important; }\n\n.red-text {\n  color: #f44336 !important; }\n\n.rgba-red-slight,\n.rgba-red-slight:after {\n  background-color: rgba(244, 67, 54, 0.1); }\n\n.rgba-red-light,\n.rgba-red-light:after {\n  background-color: rgba(244, 67, 54, 0.3); }\n\n.rgba-red-strong,\n.rgba-red-strong:after {\n  background-color: rgba(244, 67, 54, 0.7); }\n\n.red.darken-1 {\n  background-color: #e53935 !important; }\n\n.red.darken-2 {\n  background-color: #d32f2f !important; }\n\n.red.darken-3 {\n  background-color: #c62828 !important; }\n\n.red.darken-4 {\n  background-color: #b71c1c !important; }\n\n.red.accent-1 {\n  background-color: #ff8a80 !important; }\n\n.red.accent-2 {\n  background-color: #ff5252 !important; }\n\n.red.accent-3 {\n  background-color: #ff1744 !important; }\n\n.red.accent-4 {\n  background-color: #d50000 !important; }\n\n.pink.lighten-5 {\n  background-color: #fce4ec !important; }\n\n.pink.lighten-4 {\n  background-color: #f8bbd0 !important; }\n\n.pink.lighten-3 {\n  background-color: #f48fb1 !important; }\n\n.pink.lighten-2 {\n  background-color: #f06292 !important; }\n\n.pink.lighten-1 {\n  background-color: #ec407a !important; }\n\n.pink {\n  background-color: #e91e63 !important; }\n\n.pink-text {\n  color: #e91e63 !important; }\n\n.rgba-pink-slight,\n.rgba-pink-slight:after {\n  background-color: rgba(233, 30, 99, 0.1); }\n\n.rgba-pink-light,\n.rgba-pink-light:after {\n  background-color: rgba(233, 30, 99, 0.3); }\n\n.rgba-pink-strong,\n.rgba-pink-strong:after {\n  background-color: rgba(233, 30, 99, 0.7); }\n\n.pink.darken-1 {\n  background-color: #d81b60 !important; }\n\n.pink.darken-2 {\n  background-color: #c2185b !important; }\n\n.pink.darken-3 {\n  background-color: #ad1457 !important; }\n\n.pink.darken-4 {\n  background-color: #880e4f !important; }\n\n.pink.accent-1 {\n  background-color: #ff80ab !important; }\n\n.pink.accent-2 {\n  background-color: #ff4081 !important; }\n\n.pink.accent-3 {\n  background-color: #f50057 !important; }\n\n.pink.accent-4 {\n  background-color: #c51162 !important; }\n\n.purple.lighten-5 {\n  background-color: #f3e5f5 !important; }\n\n.purple.lighten-4 {\n  background-color: #e1bee7 !important; }\n\n.purple.lighten-3 {\n  background-color: #ce93d8 !important; }\n\n.purple.lighten-2 {\n  background-color: #ba68c8 !important; }\n\n.purple.lighten-1 {\n  background-color: #ab47bc !important; }\n\n.purple {\n  background-color: #9c27b0 !important; }\n\n.purple-text {\n  color: #9c27b0 !important; }\n\n.rgba-purple-slight,\n.rgba-purple-slight:after {\n  background-color: rgba(156, 39, 176, 0.1); }\n\n.rgba-purple-light,\n.rgba-purple-light:after {\n  background-color: rgba(156, 39, 176, 0.3); }\n\n.rgba-purple-strong,\n.rgba-purple-strong:after {\n  background-color: rgba(156, 39, 176, 0.7); }\n\n.purple.darken-1 {\n  background-color: #8e24aa !important; }\n\n.purple.darken-2 {\n  background-color: #7b1fa2 !important; }\n\n.purple.darken-3 {\n  background-color: #6a1b9a !important; }\n\n.purple.darken-4 {\n  background-color: #4a148c !important; }\n\n.purple.accent-1 {\n  background-color: #ea80fc !important; }\n\n.purple.accent-2 {\n  background-color: #e040fb !important; }\n\n.purple.accent-3 {\n  background-color: #d500f9 !important; }\n\n.purple.accent-4 {\n  background-color: #aa00ff !important; }\n\n.deep-purple.lighten-5 {\n  background-color: #ede7f6 !important; }\n\n.deep-purple.lighten-4 {\n  background-color: #d1c4e9 !important; }\n\n.deep-purple.lighten-3 {\n  background-color: #b39ddb !important; }\n\n.deep-purple.lighten-2 {\n  background-color: #9575cd !important; }\n\n.deep-purple.lighten-1 {\n  background-color: #7e57c2 !important; }\n\n.deep-purple {\n  background-color: #673ab7 !important; }\n\n.deep-purple-text {\n  color: #673ab7 !important; }\n\n.rgba-deep-purple-slight,\n.rgba-deep-purple-slight:after {\n  background-color: rgba(103, 58, 183, 0.1); }\n\n.rgba-deep-purple-light,\n.rgba-deep-purple-light:after {\n  background-color: rgba(103, 58, 183, 0.3); }\n\n.rgba-deep-purple-strong,\n.rgba-deep-purple-strong:after {\n  background-color: rgba(103, 58, 183, 0.7); }\n\n.deep-purple.darken-1 {\n  background-color: #5e35b1 !important; }\n\n.deep-purple.darken-2 {\n  background-color: #512da8 !important; }\n\n.deep-purple.darken-3 {\n  background-color: #4527a0 !important; }\n\n.deep-purple.darken-4 {\n  background-color: #311b92 !important; }\n\n.deep-purple.accent-1 {\n  background-color: #b388ff !important; }\n\n.deep-purple.accent-2 {\n  background-color: #7c4dff !important; }\n\n.deep-purple.accent-3 {\n  background-color: #651fff !important; }\n\n.deep-purple.accent-4 {\n  background-color: #6200ea !important; }\n\n.indigo.lighten-5 {\n  background-color: #e8eaf6 !important; }\n\n.indigo.lighten-4 {\n  background-color: #c5cae9 !important; }\n\n.indigo.lighten-3 {\n  background-color: #9fa8da !important; }\n\n.indigo.lighten-2 {\n  background-color: #7986cb !important; }\n\n.indigo.lighten-1 {\n  background-color: #5c6bc0 !important; }\n\n.indigo {\n  background-color: #3f51b5 !important; }\n\n.indigo-text {\n  color: #3f51b5 !important; }\n\n.rgba-indigo-slight,\n.rgba-indigo-slight:after {\n  background-color: rgba(63, 81, 181, 0.1); }\n\n.rgba-indigo-light,\n.rgba-indigo-light:after {\n  background-color: rgba(63, 81, 181, 0.3); }\n\n.rgba-indigo-strong,\n.rgba-indigo-strong:after {\n  background-color: rgba(63, 81, 181, 0.7); }\n\n.indigo.darken-1 {\n  background-color: #3949ab !important; }\n\n.indigo.darken-2 {\n  background-color: #303f9f !important; }\n\n.indigo.darken-3 {\n  background-color: #283593 !important; }\n\n.indigo.darken-4 {\n  background-color: #1a237e !important; }\n\n.indigo.accent-1 {\n  background-color: #8c9eff !important; }\n\n.indigo.accent-2 {\n  background-color: #536dfe !important; }\n\n.indigo.accent-3 {\n  background-color: #3d5afe !important; }\n\n.indigo.accent-4 {\n  background-color: #304ffe !important; }\n\n.blue.lighten-5 {\n  background-color: #e3f2fd !important; }\n\n.blue.lighten-4 {\n  background-color: #bbdefb !important; }\n\n.blue.lighten-3 {\n  background-color: #90caf9 !important; }\n\n.blue.lighten-2 {\n  background-color: #64b5f6 !important; }\n\n.blue.lighten-1 {\n  background-color: #42a5f5 !important; }\n\n.blue {\n  background-color: #2196f3 !important; }\n\n.blue-text {\n  color: #2196f3 !important; }\n\n.rgba-blue-slight,\n.rgba-blue-slight:after {\n  background-color: rgba(33, 150, 243, 0.1); }\n\n.rgba-blue-light,\n.rgba-blue-light:after {\n  background-color: rgba(33, 150, 243, 0.3); }\n\n.rgba-blue-strong,\n.rgba-blue-strong:after {\n  background-color: rgba(33, 150, 243, 0.7); }\n\n.blue.darken-1 {\n  background-color: #1e88e5 !important; }\n\n.blue.darken-2 {\n  background-color: #1976d2 !important; }\n\n.blue.darken-3 {\n  background-color: #1565c0 !important; }\n\n.blue.darken-4 {\n  background-color: #0d47a1 !important; }\n\n.blue.accent-1 {\n  background-color: #82b1ff !important; }\n\n.blue.accent-2 {\n  background-color: #448aff !important; }\n\n.blue.accent-3 {\n  background-color: #2979ff !important; }\n\n.blue.accent-4 {\n  background-color: #2962ff !important; }\n\n.light-blue.lighten-5 {\n  background-color: #e1f5fe !important; }\n\n.light-blue.lighten-4 {\n  background-color: #b3e5fc !important; }\n\n.light-blue.lighten-3 {\n  background-color: #81d4fa !important; }\n\n.light-blue.lighten-2 {\n  background-color: #4fc3f7 !important; }\n\n.light-blue.lighten-1 {\n  background-color: #29b6f6 !important; }\n\n.light-blue {\n  background-color: #03a9f4 !important; }\n\n.light-blue-text {\n  color: #03a9f4 !important; }\n\n.rgba-light-blue-slight,\n.rgba-light-blue-slight:after {\n  background-color: rgba(3, 169, 244, 0.1); }\n\n.rgba-light-blue-light,\n.rgba-light-blue-light:after {\n  background-color: rgba(3, 169, 244, 0.3); }\n\n.rgba-light-blue-strong,\n.rgba-light-blue-strong:after {\n  background-color: rgba(3, 169, 244, 0.7); }\n\n.light-blue.darken-1 {\n  background-color: #039be5 !important; }\n\n.light-blue.darken-2 {\n  background-color: #0288d1 !important; }\n\n.light-blue.darken-3 {\n  background-color: #0277bd !important; }\n\n.light-blue.darken-4 {\n  background-color: #01579b !important; }\n\n.light-blue.accent-1 {\n  background-color: #80d8ff !important; }\n\n.light-blue.accent-2 {\n  background-color: #40c4ff !important; }\n\n.light-blue.accent-3 {\n  background-color: #00b0ff !important; }\n\n.light-blue.accent-4 {\n  background-color: #0091ea !important; }\n\n.cyan.lighten-5 {\n  background-color: #e0f7fa !important; }\n\n.cyan.lighten-4 {\n  background-color: #b2ebf2 !important; }\n\n.cyan.lighten-3 {\n  background-color: #80deea !important; }\n\n.cyan.lighten-2 {\n  background-color: #4dd0e1 !important; }\n\n.cyan.lighten-1 {\n  background-color: #26c6da !important; }\n\n.cyan {\n  background-color: #00bcd4 !important; }\n\n.cyan-text {\n  color: #00bcd4 !important; }\n\n.rgba-cyan-slight,\n.rgba-cyan-slight:after {\n  background-color: rgba(0, 188, 212, 0.1); }\n\n.rgba-cyan-light,\n.rgba-cyan-light:after {\n  background-color: rgba(0, 188, 212, 0.3); }\n\n.rgba-cyan-strong,\n.rgba-cyan-strong:after {\n  background-color: rgba(0, 188, 212, 0.7); }\n\n.cyan.darken-1 {\n  background-color: #00acc1 !important; }\n\n.cyan.darken-2 {\n  background-color: #0097a7 !important; }\n\n.cyan.darken-3 {\n  background-color: #00838f !important; }\n\n.cyan.darken-4 {\n  background-color: #006064 !important; }\n\n.cyan.accent-1 {\n  background-color: #84ffff !important; }\n\n.cyan.accent-2 {\n  background-color: #18ffff !important; }\n\n.cyan.accent-3 {\n  background-color: #00e5ff !important; }\n\n.cyan.accent-4 {\n  background-color: #00b8d4 !important; }\n\n.teal.lighten-5 {\n  background-color: #e0f2f1 !important; }\n\n.teal.lighten-4 {\n  background-color: #b2dfdb !important; }\n\n.teal.lighten-3 {\n  background-color: #80cbc4 !important; }\n\n.teal.lighten-2 {\n  background-color: #4db6ac !important; }\n\n.teal.lighten-1 {\n  background-color: #26a69a !important; }\n\n.teal {\n  background-color: #009688 !important; }\n\n.teal-text {\n  color: #009688 !important; }\n\n.rgba-teal-slight,\n.rgba-teal-slight:after {\n  background-color: rgba(0, 150, 136, 0.1); }\n\n.rgba-teal-light,\n.rgba-teal-light:after {\n  background-color: rgba(0, 150, 136, 0.3); }\n\n.rgba-teal-strong,\n.rgba-teal-strong:after {\n  background-color: rgba(0, 150, 136, 0.7); }\n\n.teal.darken-1 {\n  background-color: #00897b !important; }\n\n.teal.darken-2 {\n  background-color: #00796b !important; }\n\n.teal.darken-3 {\n  background-color: #00695c !important; }\n\n.teal.darken-4 {\n  background-color: #004d40 !important; }\n\n.teal.accent-1 {\n  background-color: #a7ffeb !important; }\n\n.teal.accent-2 {\n  background-color: #64ffda !important; }\n\n.teal.accent-3 {\n  background-color: #1de9b6 !important; }\n\n.teal.accent-4 {\n  background-color: #00bfa5 !important; }\n\n.green.lighten-5 {\n  background-color: #e8f5e9 !important; }\n\n.green.lighten-4 {\n  background-color: #c8e6c9 !important; }\n\n.green.lighten-3 {\n  background-color: #a5d6a7 !important; }\n\n.green.lighten-2 {\n  background-color: #81c784 !important; }\n\n.green.lighten-1 {\n  background-color: #66bb6a !important; }\n\n.green {\n  background-color: #4caf50 !important; }\n\n.green-text {\n  color: #4caf50 !important; }\n\n.rgba-green-slight,\n.rgba-green-slight:after {\n  background-color: rgba(76, 175, 80, 0.1); }\n\n.rgba-green-light,\n.rgba-green-light:after {\n  background-color: rgba(76, 175, 80, 0.3); }\n\n.rgba-green-strong,\n.rgba-green-strong:after {\n  background-color: rgba(76, 175, 80, 0.7); }\n\n.green.darken-1 {\n  background-color: #43a047 !important; }\n\n.green.darken-2 {\n  background-color: #388e3c !important; }\n\n.green.darken-3 {\n  background-color: #2e7d32 !important; }\n\n.green.darken-4 {\n  background-color: #1b5e20 !important; }\n\n.green.accent-1 {\n  background-color: #b9f6ca !important; }\n\n.green.accent-2 {\n  background-color: #69f0ae !important; }\n\n.green.accent-3 {\n  background-color: #00e676 !important; }\n\n.green.accent-4 {\n  background-color: #00c853 !important; }\n\n.light-green.lighten-5 {\n  background-color: #f1f8e9 !important; }\n\n.light-green.lighten-4 {\n  background-color: #dcedc8 !important; }\n\n.light-green.lighten-3 {\n  background-color: #c5e1a5 !important; }\n\n.light-green.lighten-2 {\n  background-color: #aed581 !important; }\n\n.light-green.lighten-1 {\n  background-color: #9ccc65 !important; }\n\n.light-green {\n  background-color: #8bc34a !important; }\n\n.light-green-text {\n  color: #8bc34a !important; }\n\n.rgba-light-green-slight,\n.rgba-light-green-slight:after {\n  background-color: rgba(139, 195, 74, 0.1); }\n\n.rgba-light-green-light,\n.rgba-light-green-light:after {\n  background-color: rgba(139, 195, 74, 0.3); }\n\n.rgba-light-green-strong,\n.rgba-light-green-strong:after {\n  background-color: rgba(139, 195, 74, 0.7); }\n\n.light-green.darken-1 {\n  background-color: #7cb342 !important; }\n\n.light-green.darken-2 {\n  background-color: #689f38 !important; }\n\n.light-green.darken-3 {\n  background-color: #558b2f !important; }\n\n.light-green.darken-4 {\n  background-color: #33691e !important; }\n\n.light-green.accent-1 {\n  background-color: #ccff90 !important; }\n\n.light-green.accent-2 {\n  background-color: #b2ff59 !important; }\n\n.light-green.accent-3 {\n  background-color: #76ff03 !important; }\n\n.light-green.accent-4 {\n  background-color: #64dd17 !important; }\n\n.lime.lighten-5 {\n  background-color: #f9fbe7 !important; }\n\n.lime.lighten-4 {\n  background-color: #f0f4c3 !important; }\n\n.lime.lighten-3 {\n  background-color: #e6ee9c !important; }\n\n.lime.lighten-2 {\n  background-color: #dce775 !important; }\n\n.lime.lighten-1 {\n  background-color: #d4e157 !important; }\n\n.lime {\n  background-color: #cddc39 !important; }\n\n.lime-text {\n  color: #cddc39 !important; }\n\n.rgba-lime-slight,\n.rgba-lime-slight:after {\n  background-color: rgba(205, 220, 57, 0.1); }\n\n.rgba-lime-light,\n.rgba-lime-light:after {\n  background-color: rgba(205, 220, 57, 0.3); }\n\n.rgba-lime-strong,\n.rgba-lime-strong:after {\n  background-color: rgba(205, 220, 57, 0.7); }\n\n.lime.darken-1 {\n  background-color: #c0ca33 !important; }\n\n.lime.darken-2 {\n  background-color: #afb42b !important; }\n\n.lime.darken-3 {\n  background-color: #9e9d24 !important; }\n\n.lime.darken-4 {\n  background-color: #827717 !important; }\n\n.lime.accent-1 {\n  background-color: #f4ff81 !important; }\n\n.lime.accent-2 {\n  background-color: #eeff41 !important; }\n\n.lime.accent-3 {\n  background-color: #c6ff00 !important; }\n\n.lime.accent-4 {\n  background-color: #aeea00 !important; }\n\n.yellow.lighten-5 {\n  background-color: #fffde7 !important; }\n\n.yellow.lighten-4 {\n  background-color: #fff9c4 !important; }\n\n.yellow.lighten-3 {\n  background-color: #fff59d !important; }\n\n.yellow.lighten-2 {\n  background-color: #fff176 !important; }\n\n.yellow.lighten-1 {\n  background-color: #ffee58 !important; }\n\n.yellow {\n  background-color: #ffeb3b !important; }\n\n.yellow-text {\n  color: #ffeb3b !important; }\n\n.rgba-yellow-slight,\n.rgba-yellow-slight:after {\n  background-color: rgba(255, 235, 59, 0.1); }\n\n.rgba-yellow-light,\n.rgba-yellow-light:after {\n  background-color: rgba(255, 235, 59, 0.3); }\n\n.rgba-yellow-strong,\n.rgba-yellow-strong:after {\n  background-color: rgba(255, 235, 59, 0.7); }\n\n.yellow.darken-1 {\n  background-color: #fdd835 !important; }\n\n.yellow.darken-2 {\n  background-color: #fbc02d !important; }\n\n.yellow.darken-3 {\n  background-color: #f9a825 !important; }\n\n.yellow.darken-4 {\n  background-color: #f57f17 !important; }\n\n.yellow.accent-1 {\n  background-color: #ffff8d !important; }\n\n.yellow.accent-2 {\n  background-color: #ffff00 !important; }\n\n.yellow.accent-3 {\n  background-color: #ffea00 !important; }\n\n.yellow.accent-4 {\n  background-color: #ffd600 !important; }\n\n.amber.lighten-5 {\n  background-color: #fff8e1 !important; }\n\n.amber.lighten-4 {\n  background-color: #ffecb3 !important; }\n\n.amber.lighten-3 {\n  background-color: #ffe082 !important; }\n\n.amber.lighten-2 {\n  background-color: #ffd54f !important; }\n\n.amber.lighten-1 {\n  background-color: #ffca28 !important; }\n\n.amber {\n  background-color: #ffc107 !important; }\n\n.amber-text {\n  color: #ffc107 !important; }\n\n.rgba-amber-slight,\n.rgba-amber-slight:after {\n  background-color: rgba(255, 193, 7, 0.1); }\n\n.rgba-amber-light,\n.rgba-amber-light:after {\n  background-color: rgba(255, 193, 7, 0.3); }\n\n.rgba-amber-strong,\n.rgba-amber-strong:after {\n  background-color: rgba(255, 193, 7, 0.7); }\n\n.amber.darken-1 {\n  background-color: #ffb300 !important; }\n\n.amber.darken-2 {\n  background-color: #ffa000 !important; }\n\n.amber.darken-3 {\n  background-color: #ff8f00 !important; }\n\n.amber.darken-4 {\n  background-color: #ff6f00 !important; }\n\n.amber.accent-1 {\n  background-color: #ffe57f !important; }\n\n.amber.accent-2 {\n  background-color: #ffd740 !important; }\n\n.amber.accent-3 {\n  background-color: #ffc400 !important; }\n\n.amber.accent-4 {\n  background-color: #ffab00 !important; }\n\n.orange.lighten-5 {\n  background-color: #fff3e0 !important; }\n\n.orange.lighten-4 {\n  background-color: #ffe0b2 !important; }\n\n.orange.lighten-3 {\n  background-color: #ffcc80 !important; }\n\n.orange.lighten-2 {\n  background-color: #ffb74d !important; }\n\n.orange.lighten-1 {\n  background-color: #ffa726 !important; }\n\n.orange {\n  background-color: #ff9800 !important; }\n\n.orange-text {\n  color: #ff9800 !important; }\n\n.rgba-orange-slight,\n.rgba-orange-slight:after {\n  background-color: rgba(255, 152, 0, 0.1); }\n\n.rgba-orange-light,\n.rgba-orange-light:after {\n  background-color: rgba(255, 152, 0, 0.3); }\n\n.rgba-orange-strong,\n.rgba-orange-strong:after {\n  background-color: rgba(255, 152, 0, 0.7); }\n\n.orange.darken-1 {\n  background-color: #fb8c00 !important; }\n\n.orange.darken-2 {\n  background-color: #f57c00 !important; }\n\n.orange.darken-3 {\n  background-color: #ef6c00 !important; }\n\n.orange.darken-4 {\n  background-color: #e65100 !important; }\n\n.orange.accent-1 {\n  background-color: #ffd180 !important; }\n\n.orange.accent-2 {\n  background-color: #ffab40 !important; }\n\n.orange.accent-3 {\n  background-color: #ff9100 !important; }\n\n.orange.accent-4 {\n  background-color: #ff6d00 !important; }\n\n.deep-orange.lighten-5 {\n  background-color: #fbe9e7 !important; }\n\n.deep-orange.lighten-4 {\n  background-color: #ffccbc !important; }\n\n.deep-orange.lighten-3 {\n  background-color: #ffab91 !important; }\n\n.deep-orange.lighten-2 {\n  background-color: #ff8a65 !important; }\n\n.deep-orange.lighten-1 {\n  background-color: #ff7043 !important; }\n\n.deep-orange {\n  background-color: #ff5722 !important; }\n\n.deep-orange-text {\n  color: #ff5722 !important; }\n\n.rgba-deep-orange-slight,\n.rgba-deep-orange-slight:after {\n  background-color: rgba(255, 87, 34, 0.1); }\n\n.rgba-deep-orange-light,\n.rgba-deep-orange-light:after {\n  background-color: rgba(255, 87, 34, 0.3); }\n\n.rgba-deep-orange-strong,\n.rgba-deep-orange-strong:after {\n  background-color: rgba(255, 87, 34, 0.7); }\n\n.deep-orange.darken-1 {\n  background-color: #f4511e !important; }\n\n.deep-orange.darken-2 {\n  background-color: #e64a19 !important; }\n\n.deep-orange.darken-3 {\n  background-color: #d84315 !important; }\n\n.deep-orange.darken-4 {\n  background-color: #bf360c !important; }\n\n.deep-orange.accent-1 {\n  background-color: #ff9e80 !important; }\n\n.deep-orange.accent-2 {\n  background-color: #ff6e40 !important; }\n\n.deep-orange.accent-3 {\n  background-color: #ff3d00 !important; }\n\n.deep-orange.accent-4 {\n  background-color: #dd2c00 !important; }\n\n.brown.lighten-5 {\n  background-color: #efebe9 !important; }\n\n.brown.lighten-4 {\n  background-color: #d7ccc8 !important; }\n\n.brown.lighten-3 {\n  background-color: #bcaaa4 !important; }\n\n.brown.lighten-2 {\n  background-color: #a1887f !important; }\n\n.brown.lighten-1 {\n  background-color: #8d6e63 !important; }\n\n.brown {\n  background-color: #795548 !important; }\n\n.brown-text {\n  color: #795548 !important; }\n\n.rgba-brown-slight,\n.rgba-brown-slight:after {\n  background-color: rgba(121, 85, 72, 0.1); }\n\n.rgba-brown-light,\n.rgba-brown-light:after {\n  background-color: rgba(121, 85, 72, 0.3); }\n\n.rgba-brown-strong,\n.rgba-brown-strong:after {\n  background-color: rgba(121, 85, 72, 0.7); }\n\n.brown.darken-1 {\n  background-color: #6d4c41 !important; }\n\n.brown.darken-2 {\n  background-color: #5d4037 !important; }\n\n.brown.darken-3 {\n  background-color: #4e342e !important; }\n\n.brown.darken-4 {\n  background-color: #3e2723 !important; }\n\n.blue-grey.lighten-5 {\n  background-color: #eceff1 !important; }\n\n.blue-grey.lighten-4 {\n  background-color: #cfd8dc !important; }\n\n.blue-grey.lighten-3 {\n  background-color: #b0bec5 !important; }\n\n.blue-grey.lighten-2 {\n  background-color: #90a4ae !important; }\n\n.blue-grey.lighten-1 {\n  background-color: #78909c !important; }\n\n.blue-grey {\n  background-color: #607d8b !important; }\n\n.blue-grey-text {\n  color: #607d8b !important; }\n\n.rgba-blue-grey-slight,\n.rgba-blue-grey-slight:after {\n  background-color: rgba(96, 125, 139, 0.1); }\n\n.rgba-blue-grey-light,\n.rgba-blue-grey-light:after {\n  background-color: rgba(96, 125, 139, 0.3); }\n\n.rgba-blue-grey-strong,\n.rgba-blue-grey-strong:after {\n  background-color: rgba(96, 125, 139, 0.7); }\n\n.blue-grey.darken-1 {\n  background-color: #546e7a !important; }\n\n.blue-grey.darken-2 {\n  background-color: #455a64 !important; }\n\n.blue-grey.darken-3 {\n  background-color: #37474f !important; }\n\n.blue-grey.darken-4 {\n  background-color: #263238 !important; }\n\n.grey.lighten-5 {\n  background-color: #fafafa !important; }\n\n.grey.lighten-4 {\n  background-color: #f5f5f5 !important; }\n\n.grey.lighten-3 {\n  background-color: #eeeeee !important; }\n\n.grey.lighten-2 {\n  background-color: #e0e0e0 !important; }\n\n.grey.lighten-1 {\n  background-color: #bdbdbd !important; }\n\n.grey {\n  background-color: #9e9e9e !important; }\n\n.grey-text {\n  color: #9e9e9e !important; }\n\n.rgba-grey-slight,\n.rgba-grey-slight:after {\n  background-color: rgba(158, 158, 158, 0.1); }\n\n.rgba-grey-light,\n.rgba-grey-light:after {\n  background-color: rgba(158, 158, 158, 0.3); }\n\n.rgba-grey-strong,\n.rgba-grey-strong:after {\n  background-color: rgba(158, 158, 158, 0.7); }\n\n.grey.darken-1 {\n  background-color: #757575 !important; }\n\n.grey.darken-2 {\n  background-color: #616161 !important; }\n\n.grey.darken-3 {\n  background-color: #424242 !important; }\n\n.grey.darken-4 {\n  background-color: #212121 !important; }\n\n.black {\n  background-color: #000 !important; }\n\n.black-text, .btn.btn-link {\n  color: #000 !important; }\n\n.rgba-black-slight,\n.rgba-black-slight:after {\n  background-color: rgba(0, 0, 0, 0.1); }\n\n.rgba-black-light,\n.rgba-black-light:after {\n  background-color: rgba(0, 0, 0, 0.3); }\n\n.rgba-black-strong,\n.rgba-black-strong:after {\n  background-color: rgba(0, 0, 0, 0.7); }\n\n.white {\n  background-color: #fff !important; }\n\n.white-text {\n  color: #fff !important; }\n\n.rgba-white-slight,\n.rgba-white-slight:after {\n  background-color: rgba(255, 255, 255, 0.1); }\n\n.rgba-white-light,\n.rgba-white-light:after {\n  background-color: rgba(255, 255, 255, 0.3); }\n\n.rgba-white-strong,\n.rgba-white-strong:after {\n  background-color: rgba(255, 255, 255, 0.7); }\n\n.rgba-stylish-slight {\n  background-color: rgba(62, 69, 81, 0.1); }\n\n.rgba-stylish-light {\n  background-color: rgba(62, 69, 81, 0.3); }\n\n.rgba-stylish-strong {\n  background-color: rgba(62, 69, 81, 0.7); }\n\n.primary-color, ul.stepper li.active a .circle, ul.stepper li.completed a .circle {\n  background-color: #4285f4 !important; }\n\n.primary-color-dark {\n  background-color: #0d47a1 !important; }\n\n.secondary-color {\n  background-color: #aa66cc !important; }\n\n.secondary-color-dark {\n  background-color: #9933cc !important; }\n\n.default-color {\n  background-color: #2bbbad !important; }\n\n.default-color-dark {\n  background-color: #00695c !important; }\n\n.info-color {\n  background-color: #33b5e5 !important; }\n\n.info-color-dark {\n  background-color: #0099cc !important; }\n\n.success-color {\n  background-color: #00c851 !important; }\n\n.success-color-dark {\n  background-color: #007e33 !important; }\n\n.warning-color {\n  background-color: #ffbb33 !important; }\n\n.warning-color-dark {\n  background-color: #ff8800 !important; }\n\n.danger-color, ul.stepper li.warning a .circle {\n  background-color: #ff3547 !important; }\n\n.danger-color-dark {\n  background-color: #cc0000 !important; }\n\n.elegant-color {\n  background-color: #2e2e2e !important; }\n\n.elegant-color-dark {\n  background-color: #212121 !important; }\n\n.stylish-color {\n  background-color: #4b515d !important; }\n\n.stylish-color-dark {\n  background-color: #3e4551 !important; }\n\n.unique-color {\n  background-color: #3f729b !important; }\n\n.unique-color-dark {\n  background-color: #1c2331 !important; }\n\n.special-color {\n  background-color: #37474f !important; }\n\n.special-color-dark {\n  background-color: #263238 !important; }\n\n.purple-gradient {\n  background: -webkit-linear-gradient(50deg, #ff6ec4, #7873f5) !important;\n  background: -o-linear-gradient(50deg, #ff6ec4, #7873f5) !important;\n  background: linear-gradient(40deg, #ff6ec4, #7873f5) !important; }\n\n.peach-gradient {\n  background: -webkit-linear-gradient(50deg, #FFD86F, #FC6262) !important;\n  background: -o-linear-gradient(50deg, #FFD86F, #FC6262) !important;\n  background: linear-gradient(40deg, #FFD86F, #FC6262) !important; }\n\n.aqua-gradient {\n  background: -webkit-linear-gradient(50deg, #2096ff, #05ffa3) !important;\n  background: -o-linear-gradient(50deg, #2096ff, #05ffa3) !important;\n  background: linear-gradient(40deg, #2096ff, #05ffa3) !important; }\n\n.blue-gradient {\n  background: -webkit-linear-gradient(50deg, #45cafc, #303f9f) !important;\n  background: -o-linear-gradient(50deg, #45cafc, #303f9f) !important;\n  background: linear-gradient(40deg, #45cafc, #303f9f) !important; }\n\n.purple-gradient-rgba {\n  background: -webkit-linear-gradient(50deg, rgba(255, 110, 196, 0.9), rgba(120, 115, 245, 0.9)) !important;\n  background: -o-linear-gradient(50deg, rgba(255, 110, 196, 0.9), rgba(120, 115, 245, 0.9)) !important;\n  background: linear-gradient(40deg, rgba(255, 110, 196, 0.9), rgba(120, 115, 245, 0.9)) !important; }\n\n.peach-gradient-rgba {\n  background: -webkit-linear-gradient(50deg, rgba(255, 216, 111, 0.9), rgba(252, 98, 98, 0.9)) !important;\n  background: -o-linear-gradient(50deg, rgba(255, 216, 111, 0.9), rgba(252, 98, 98, 0.9)) !important;\n  background: linear-gradient(40deg, rgba(255, 216, 111, 0.9), rgba(252, 98, 98, 0.9)) !important; }\n\n.aqua-gradient-rgba {\n  background: -webkit-linear-gradient(50deg, rgba(32, 150, 255, 0.9), rgba(5, 255, 163, 0.9)) !important;\n  background: -o-linear-gradient(50deg, rgba(32, 150, 255, 0.9), rgba(5, 255, 163, 0.9)) !important;\n  background: linear-gradient(40deg, rgba(32, 150, 255, 0.9), rgba(5, 255, 163, 0.9)) !important; }\n\n.blue-gradient-rgba {\n  background: -webkit-linear-gradient(50deg, rgba(69, 202, 252, 0.9), rgba(48, 63, 159, 0.9)) !important;\n  background: -o-linear-gradient(50deg, rgba(69, 202, 252, 0.9), rgba(48, 63, 159, 0.9)) !important;\n  background: linear-gradient(40deg, rgba(69, 202, 252, 0.9), rgba(48, 63, 159, 0.9)) !important; }\n\n.dark-grey-text {\n  color: #4f4f4f !important; }\n  .dark-grey-text:hover, .dark-grey-text:focus {\n    color: #4f4f4f !important; }\n\n.hoverable {\n  -webkit-box-shadow: none;\n  box-shadow: none;\n  -webkit-transition: all 0.55s ease-in-out;\n  -o-transition: all 0.55s ease-in-out;\n  transition: all 0.55s ease-in-out; }\n  .hoverable:hover {\n    -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n    -webkit-transition: all 0.55s ease-in-out;\n    -o-transition: all 0.55s ease-in-out;\n    transition: all 0.55s ease-in-out; }\n\n.z-depth-0 {\n  -webkit-box-shadow: none !important;\n  box-shadow: none !important; }\n\n.z-depth-1 {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important; }\n\n.z-depth-1-half {\n  -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15) !important;\n  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15) !important; }\n\n.z-depth-2 {\n  -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;\n  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !important; }\n\n.z-depth-3 {\n  -webkit-box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19) !important;\n  box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19) !important; }\n\n.z-depth-4 {\n  -webkit-box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21) !important;\n  box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21) !important; }\n\n.z-depth-5 {\n  -webkit-box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22) !important;\n  box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22) !important; }\n\n.disabled,\n:disabled {\n  pointer-events: none !important; }\n\na {\n  cursor: pointer;\n  text-decoration: none;\n  color: #007bff;\n  -webkit-transition: all 0.2s ease-in-out;\n  -o-transition: all 0.2s ease-in-out;\n  transition: all 0.2s ease-in-out; }\n  a:hover {\n    text-decoration: none;\n    color: #0056b3;\n    -webkit-transition: all 0.2s ease-in-out;\n    -o-transition: all 0.2s ease-in-out;\n    transition: all 0.2s ease-in-out; }\n  a.disabled:hover, a:disabled:hover {\n    color: #007bff; }\n\na:not([href]):not([tabindex]), a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {\n  color: inherit;\n  text-decoration: none; }\n\n.img-fluid, .modal-dialog.cascading-modal.modal-avatar .modal-header,\n.video-fluid {\n  max-width: 100%;\n  height: auto; }\n\n.flex-center {\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n  -webkit-justify-content: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n  -ms-flex-align: center;\n  align-items: center;\n  height: 100%; }\n  .flex-center p {\n    margin: 0; }\n  .flex-center ul {\n    text-align: center; }\n    .flex-center ul li {\n      margin-bottom: 1rem; }\n      .flex-center ul li:last-of-type {\n        margin-bottom: 0; }\n\n.hr-light {\n  border-top: 1px solid #fff; }\n\n.hr-dark {\n  border-top: 1px solid #666; }\n\n.w-responsive {\n  width: 75%; }\n  @media (max-width: 740px) {\n    .w-responsive {\n      width: 100%; } }\n\n.collapsible-body {\n  display: none; }\n\n.jumbotron {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem;\n  background-color: #fff; }\n\n.bg-primary {\n  background-color: #4285f4 !important; }\n\na.bg-primary:hover, a.bg-primary:focus,\nbutton.bg-primary:hover,\nbutton.bg-primary:focus {\n  background-color: #1266f1 !important; }\n\n.border-primary {\n  border-color: #4285f4 !important; }\n\n.bg-danger {\n  background-color: #ff3547 !important; }\n\na.bg-danger:hover, a.bg-danger:focus,\nbutton.bg-danger:hover,\nbutton.bg-danger:focus {\n  background-color: #ff0219 !important; }\n\n.border-danger {\n  border-color: #ff3547 !important; }\n\n.bg-warning {\n  background-color: #ffbb33 !important; }\n\na.bg-warning:hover, a.bg-warning:focus,\nbutton.bg-warning:hover,\nbutton.bg-warning:focus {\n  background-color: #ffaa00 !important; }\n\n.border-warning {\n  border-color: #ffbb33 !important; }\n\n.bg-success {\n  background-color: #00c851 !important; }\n\na.bg-success:hover, a.bg-success:focus,\nbutton.bg-success:hover,\nbutton.bg-success:focus {\n  background-color: #00953c !important; }\n\n.border-success {\n  border-color: #00c851 !important; }\n\n.bg-info {\n  background-color: #33b5e5 !important; }\n\na.bg-info:hover, a.bg-info:focus,\nbutton.bg-info:hover,\nbutton.bg-info:focus {\n  background-color: #1a9bcb !important; }\n\n.border-info {\n  border-color: #33b5e5 !important; }\n\n.bg-default {\n  background-color: #2bbbad !important; }\n\na.bg-default:hover, a.bg-default:focus,\nbutton.bg-default:hover,\nbutton.bg-default:focus {\n  background-color: #219287 !important; }\n\n.border-default {\n  border-color: #2bbbad !important; }\n\n.bg-secondary {\n  background-color: #aa66cc !important; }\n\na.bg-secondary:hover, a.bg-secondary:focus,\nbutton.bg-secondary:hover,\nbutton.bg-secondary:focus {\n  background-color: #9540bf !important; }\n\n.border-secondary {\n  border-color: #aa66cc !important; }\n\n.bg-dark {\n  background-color: #212121 !important; }\n\na.bg-dark:hover, a.bg-dark:focus,\nbutton.bg-dark:hover,\nbutton.bg-dark:focus {\n  background-color: #080808 !important; }\n\n.border-dark {\n  border-color: #212121 !important; }\n\n.bg-light {\n  background-color: #e0e0e0 !important; }\n\na.bg-light:hover, a.bg-light:focus,\nbutton.bg-light:hover,\nbutton.bg-light:focus {\n  background-color: #c7c7c7 !important; }\n\n.border-light {\n  border-color: #e0e0e0 !important; }\n\n.card-img-100 {\n  width: 100px;\n  height: 100px; }\n\n.card-img-64 {\n  width: 64px;\n  height: 64px; }\n\n.mml-1 {\n  margin-left: -0.25rem !important; }\n\n.flex-1 {\n  -webkit-box-flex: 1;\n  -webkit-flex: 1;\n  -ms-flex: 1;\n  flex: 1; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: local(Roboto Thin), url(\"../font/roboto/Roboto-Thin.eot\");\n  src: url(\"../font/roboto/Roboto-Thin.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Thin.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Thin.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Thin.ttf\") format(\"truetype\");\n  font-weight: 200; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: local(Roboto Light), url(\"../font/roboto/Roboto-Light.eot\");\n  src: url(\"../font/roboto/Roboto-Light.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Light.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Light.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Light.ttf\") format(\"truetype\");\n  font-weight: 300; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: local(Roboto Regular), url(\"../font/roboto/Roboto-Regular.eot\");\n  src: url(\"../font/roboto/Roboto-Regular.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Regular.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Regular.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Regular.ttf\") format(\"truetype\");\n  font-weight: 400; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: url(\"../font/roboto/Roboto-Medium.eot\");\n  src: url(\"../font/roboto/Roboto-Medium.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Medium.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Medium.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Medium.ttf\") format(\"truetype\");\n  font-weight: 500; }\n\n@font-face {\n  font-family: \"Roboto\";\n  src: url(\"../font/roboto/Roboto-Bold.eot\");\n  src: url(\"../font/roboto/Roboto-Bold.eot?#iefix\") format(\"embedded-opentype\"), url(\"../font/roboto/Roboto-Bold.woff2\") format(\"woff2\"), url(\"../font/roboto/Roboto-Bold.woff\") format(\"woff\"), url(\"../font/roboto/Roboto-Bold.ttf\") format(\"truetype\");\n  font-weight: 700; }\n\nbody {\n  font-family: \"Roboto\", sans-serif;\n  font-weight: 300; }\n\nh1, h2, h3, h4, h5, h6 {\n  font-weight: 300; }\n\n.h1-responsive {\n  font-size: 150%; }\n\n.h2-responsive {\n  font-size: 145%; }\n\n.h3-responsive {\n  font-size: 135%; }\n\n.h4-responsive {\n  font-size: 135%; }\n\n.h5-responsive {\n  font-size: 135%; }\n\n@media (min-width: 576px) {\n  .h1-responsive {\n    font-size: 170%; }\n  .h2-responsive {\n    font-size: 140%; }\n  .h3-responsive {\n    font-size: 125%; }\n  .h4-responsive {\n    font-size: 125%; }\n  .h5-responsive {\n    font-size: 125%; } }\n\n@media (min-width: 768px) {\n  .h1-responsive {\n    font-size: 200%; }\n  .h2-responsive {\n    font-size: 170%; }\n  .h3-responsive {\n    font-size: 140%; }\n  .h4-responsive {\n    font-size: 125%; }\n  .h5-responsive {\n    font-size: 125%; } }\n\n@media (min-width: 992px) {\n  .h1-responsive {\n    font-size: 200%; }\n  .h2-responsive {\n    font-size: 170%; }\n  .h3-responsive {\n    font-size: 140%; }\n  .h4-responsive {\n    font-size: 125%; }\n  .h5-responsive {\n    font-size: 125%; } }\n\n@media (min-width: 1200px) {\n  .h1-responsive {\n    font-size: 250%; }\n  .h2-responsive {\n    font-size: 200%; }\n  .h3-responsive {\n    font-size: 170%; }\n  .h4-responsive {\n    font-size: 140%; }\n  .h5-responsive {\n    font-size: 125%; } }\n\n.divider-new {\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: row;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-box-pack: center;\n  -webkit-justify-content: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n  -ms-flex-align: center;\n  align-items: center;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  margin-top: 2.8rem;\n  margin-bottom: 2.8rem; }\n  .divider-new > h1, .divider-new h2, .divider-new h3, .divider-new h4, .divider-new h5, .divider-new h6 {\n    margin-bottom: 0; }\n  .divider-new:before, .divider-new:after {\n    content: \"\";\n    height: 1.5px;\n    -webkit-box-flex: 1;\n    -webkit-flex: 1;\n    -ms-flex: 1;\n    flex: 1;\n    height: 2px;\n    background: #c6c6c6; }\n  .divider-new:before {\n    margin: 0 0.5rem 0 0; }\n  .divider-new:after {\n    margin: 0 0 0 0.5rem; }\n\n.blockquote {\n  padding: 0.5rem 1rem;\n  border-left: .25rem solid #eceeef; }\n  .blockquote.text-right {\n    border-left: none;\n    border-right: .25rem solid #eceeef; }\n  .blockquote .bq-title {\n    margin-bottom: 0;\n    font-size: 1.5rem;\n    font-weight: 400; }\n  .blockquote p {\n    padding: 1rem 0;\n    font-size: 1.1rem; }\n\n.bq-primary {\n  border-left: 3px solid #4285f4 !important; }\n  .bq-primary .bq-title {\n    color: #4285f4 !important; }\n\n.bq-danger {\n  border-left: 3px solid #ff3547 !important; }\n  .bq-danger .bq-title {\n    color: #ff3547 !important; }\n\n.bq-warning {\n  border-left: 3px solid #ffbb33 !important; }\n  .bq-warning .bq-title {\n    color: #ffbb33 !important; }\n\n.bq-success {\n  border-left: 3px solid #00c851 !important; }\n  .bq-success .bq-title {\n    color: #00c851 !important; }\n\n.bq-info {\n  border-left: 3px solid #33b5e5 !important; }\n  .bq-info .bq-title {\n    color: #33b5e5 !important; }\n\n.text-primary {\n  color: #4285f4 !important; }\n\na.text-primary:hover, a.text-primary:focus {\n  color: #1266f1 !important; }\n\n.text-danger {\n  color: #ff3547 !important; }\n\na.text-danger:hover, a.text-danger:focus {\n  color: #ff0219 !important; }\n\n.text-warning {\n  color: #ffbb33 !important; }\n\na.text-warning:hover, a.text-warning:focus {\n  color: #ffaa00 !important; }\n\n.text-success {\n  color: #00c851 !important; }\n\na.text-success:hover, a.text-success:focus {\n  color: #00953c !important; }\n\n.text-info {\n  color: #33b5e5 !important; }\n\na.text-info:hover, a.text-info:focus {\n  color: #1a9bcb !important; }\n\n.text-default {\n  color: #2bbbad !important; }\n\na.text-default:hover, a.text-default:focus {\n  color: #219287 !important; }\n\n.text-secondary {\n  color: #aa66cc !important; }\n\na.text-secondary:hover, a.text-secondary:focus {\n  color: #9540bf !important; }\n\n.text-dark {\n  color: #212121 !important; }\n\na.text-dark:hover, a.text-dark:focus {\n  color: #080808 !important; }\n\n.text-light {\n  color: #e0e0e0 !important; }\n\na.text-light:hover, a.text-light:focus {\n  color: #c7c7c7 !important; }\n\n.font-small {\n  font-size: 0.9rem; }\n\n.view {\n  position: relative;\n  overflow: hidden;\n  cursor: default; }\n  .view .mask {\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    overflow: hidden;\n    width: 100%;\n    height: 100%;\n    background-attachment: fixed; }\n  .view img, .view video {\n    position: relative;\n    display: block; }\n  .view video.video-intro {\n    z-index: -100;\n    top: 50%;\n    left: 50%;\n    -webkit-transform: translateX(-50%) translateY(-50%);\n    -ms-transform: translateX(-50%) translateY(-50%);\n    transform: translateX(-50%) translateY(-50%);\n    -webkit-transition: 1s opacity;\n    -o-transition: 1s opacity;\n    transition: 1s opacity;\n    min-width: 100%;\n    min-height: 100%;\n    width: auto;\n    height: auto; }\n\n.overlay .mask {\n  opacity: 0;\n  -webkit-transition: all 0.4s ease-in-out;\n  -o-transition: all 0.4s ease-in-out;\n  transition: all 0.4s ease-in-out; }\n  .overlay .mask:hover {\n    opacity: 1; }\n\n.zoom img, .zoom video {\n  -webkit-transition: all 0.2s linear;\n  -o-transition: all 0.2s linear;\n  transition: all 0.2s linear; }\n\n.zoom:hover img, .zoom:hover video {\n  -webkit-transform: scale(1.1);\n  -ms-transform: scale(1.1);\n  transform: scale(1.1); }\n\n.pattern-1 {\n  background: url(\"../img/overlays/01.png\");\n  background-attachment: fixed; }\n\n.pattern-2 {\n  background: url(\"../img/overlays/02.png\");\n  background-attachment: fixed; }\n\n.pattern-3 {\n  background: url(\"../img/overlays/03.png\");\n  background-attachment: fixed; }\n\n.pattern-4 {\n  background: url(\"../img/overlays/04.png\");\n  background-attachment: fixed; }\n\n.pattern-5 {\n  background: url(\"../img/overlays/05.png\");\n  background-attachment: fixed; }\n\n.pattern-6 {\n  background: url(\"../img/overlays/06.png\");\n  background-attachment: fixed; }\n\n.pattern-7 {\n  background: url(\"../img/overlays/07.png\");\n  background-attachment: fixed; }\n\n.pattern-8 {\n  background: url(\"../img/overlays/08.png\");\n  background-attachment: fixed; }\n\n.pattern-9 {\n  background: url(\"../img/overlays/09.png\");\n  background-attachment: fixed; }\n\n/*!\n * Waves v0.7.6\n * http://fian.my.id/Waves\n *\n * Copyright 2014-2018 Alfiana E. Sibuea and other contributors\n * Released under the MIT license\n * https://github.com/fians/Waves/blob/master/LICENSE */\n.waves-effect {\n  position: relative;\n  cursor: pointer;\n  overflow: hidden;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  -webkit-tap-highlight-color: transparent; }\n  .waves-effect .waves-ripple {\n    position: absolute;\n    -webkit-border-radius: 50%;\n    border-radius: 50%;\n    width: 100px;\n    height: 100px;\n    margin-top: -50px;\n    margin-left: -50px;\n    opacity: 0;\n    background: rgba(0, 0, 0, 0.2);\n    background: -webkit-radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    background: -o-radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    background: radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    -webkit-transition: all 0.5s ease-out;\n    -o-transition: all 0.5s ease-out;\n    transition: all 0.5s ease-out;\n    -webkit-transition-property: -webkit-transform, opacity;\n    -o-transition-property: -o-transform, opacity;\n    -webkit-transition-property: opacity, -webkit-transform;\n    transition-property: opacity, -webkit-transform;\n    -o-transition-property: transform, opacity;\n    transition-property: transform, opacity;\n    transition-property: transform, opacity, -webkit-transform;\n    -webkit-transform: scale(0) translate(0, 0);\n    -ms-transform: scale(0) translate(0, 0);\n    transform: scale(0) translate(0, 0);\n    pointer-events: none; }\n  .waves-effect.waves-light .waves-ripple {\n    background: rgba(255, 255, 255, 0.4);\n    background: -webkit-radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    background: -o-radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%);\n    background: radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%); }\n  .waves-effect.waves-classic .waves-ripple {\n    background: rgba(0, 0, 0, 0.2); }\n  .waves-effect.waves-classic.waves-light .waves-ripple {\n    background: rgba(255, 255, 255, 0.4); }\n\n.waves-notransition {\n  -webkit-transition: none !important;\n  -o-transition: none !important;\n  transition: none !important; }\n\n.waves-button,\n.waves-circle {\n  -webkit-transform: translateZ(0);\n  -ms-transform: translateZ(0);\n  transform: translateZ(0);\n  -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); }\n\n.waves-button,\n.waves-button:hover,\n.waves-button:visited,\n.waves-button-input {\n  white-space: nowrap;\n  vertical-align: middle;\n  cursor: pointer;\n  border: none;\n  outline: none;\n  color: inherit;\n  background-color: rgba(0, 0, 0, 0);\n  font-size: 1em;\n  line-height: 1em;\n  text-align: center;\n  text-decoration: none;\n  z-index: 1; }\n\n.waves-button {\n  padding: 0.85em 1.1em;\n  -webkit-border-radius: 0.2em;\n  border-radius: 0.2em; }\n\n.waves-button-input {\n  margin: 0;\n  padding: 0.85em 1.1em; }\n\n.waves-input-wrapper {\n  display: inline-block;\n  position: relative;\n  vertical-align: middle;\n  -webkit-border-radius: 0.2em;\n  border-radius: 0.2em; }\n  .waves-input-wrapper.waves-button {\n    padding: 0; }\n  .waves-input-wrapper .waves-button-input {\n    position: relative;\n    top: 0;\n    left: 0;\n    z-index: 1; }\n\n.waves-circle {\n  text-align: center;\n  width: 2.5em;\n  height: 2.5em;\n  line-height: 2.5em;\n  -webkit-border-radius: 50%;\n  border-radius: 50%; }\n\n.waves-float {\n  -webkit-mask-image: none;\n  -webkit-box-shadow: 0px 1px 1.5px 1px rgba(0, 0, 0, 0.12);\n  box-shadow: 0px 1px 1.5px 1px rgba(0, 0, 0, 0.12);\n  -webkit-transition: all 300ms;\n  -o-transition: all 300ms;\n  transition: all 300ms; }\n  .waves-float:active {\n    -webkit-box-shadow: 0px 8px 20px 1px rgba(0, 0, 0, 0.3);\n    box-shadow: 0px 8px 20px 1px rgba(0, 0, 0, 0.3); }\n\n.waves-block {\n  display: block; }\n\na.waves-effect, a.waves-light {\n  display: inline-block; }\n\n/*!\n * animate.css -http://daneden.me/animate\n * Version - 3.7.0\n * Licensed under the MIT license - http://opensource.org/licenses/MIT\n *\n * Copyright (c) 2018 Daniel Eden\n */\n.animated {\n  -webkit-animation-duration: 1s;\n  animation-duration: 1s;\n  -webkit-animation-fill-mode: both;\n  animation-fill-mode: both; }\n  .animated.infinite {\n    -webkit-animation-iteration-count: infinite;\n    animation-iteration-count: infinite; }\n  .animated.delay-1s {\n    -webkit-animation-delay: 1s;\n    animation-delay: 1s; }\n  .animated.delay-2s {\n    -webkit-animation-delay: 2s;\n    animation-delay: 2s; }\n  .animated.delay-3s {\n    -webkit-animation-delay: 3s;\n    animation-delay: 3s; }\n  .animated.delay-4s {\n    -webkit-animation-delay: 4s;\n    animation-delay: 4s; }\n  .animated.delay-5s {\n    -webkit-animation-delay: 5s;\n    animation-delay: 5s; }\n  .animated.fast {\n    -webkit-animation-duration: 800ms;\n    animation-duration: 800ms; }\n  .animated.faster {\n    -webkit-animation-duration: 500ms;\n    animation-duration: 500ms; }\n  .animated.slow {\n    -webkit-animation-duration: 2s;\n    animation-duration: 2s; }\n  .animated.slower {\n    -webkit-animation-duration: 3s;\n    animation-duration: 3s; }\n\n@media (prefers-reduced-motion) {\n  .animated {\n    -webkit-animation: unset !important;\n    animation: unset !important;\n    -webkit-transition: none !important;\n    -o-transition: none !important;\n    transition: none !important; } }\n\n@-webkit-keyframes fadeIn {\n  from {\n    opacity: 0; }\n  to {\n    opacity: 1; } }\n\n@keyframes fadeIn {\n  from {\n    opacity: 0; }\n  to {\n    opacity: 1; } }\n\n.fadeIn {\n  -webkit-animation-name: fadeIn;\n  animation-name: fadeIn; }\n\n@-webkit-keyframes fadeInDown {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInDown {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInDown {\n  -webkit-animation-name: fadeInDown;\n  animation-name: fadeInDown; }\n\n@-webkit-keyframes fadeInLeft {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInLeft {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInLeft {\n  -webkit-animation-name: fadeInLeft;\n  animation-name: fadeInLeft; }\n\n@-webkit-keyframes fadeInRight {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInRight {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInRight {\n  -webkit-animation-name: fadeInRight;\n  animation-name: fadeInRight; }\n\n@-webkit-keyframes fadeInUp {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInUp {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInUp {\n  -webkit-animation-name: fadeInUp;\n  animation-name: fadeInUp; }\n\n@-webkit-keyframes fadeOut {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0; } }\n\n@keyframes fadeOut {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0; } }\n\n.fadeOut {\n  -webkit-animation-name: fadeOut;\n  animation-name: fadeOut; }\n\n@-webkit-keyframes fadeOutDown {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); } }\n\n@keyframes fadeOutDown {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); } }\n\n.fadeOutDown {\n  -webkit-animation-name: fadeOutDown;\n  animation-name: fadeOutDown; }\n\n@-webkit-keyframes fadeOutLeft {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); } }\n\n@keyframes fadeOutLeft {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); } }\n\n.fadeOutLeft {\n  -webkit-animation-name: fadeOutLeft;\n  animation-name: fadeOutLeft; }\n\n@-webkit-keyframes fadeOutRight {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); } }\n\n@keyframes fadeOutRight {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); } }\n\n.fadeOutRight {\n  -webkit-animation-name: fadeOutRight;\n  animation-name: fadeOutRight; }\n\n@-webkit-keyframes fadeOutUp {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); } }\n\n@keyframes fadeOutUp {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); } }\n\n.fadeOutUp {\n  -webkit-animation-name: fadeOutUp;\n  animation-name: fadeOutUp; }\n\n.btn {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  padding: 0.84rem 2.14rem;\n  font-size: 0.81rem;\n  -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n  -o-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n  margin: 0.375rem;\n  border: 0;\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem;\n  cursor: pointer;\n  text-transform: uppercase;\n  white-space: normal;\n  word-wrap: break-word;\n  color: #fff; }\n  .btn:hover, .btn:active, .btn:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    outline: 0; }\n  .btn:not([disabled]):not(.disabled):active, .btn:not([disabled]):not(.disabled).active {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn .fas, .btn .fab, .btn .far {\n    position: relative;\n    font-size: 0.9rem; }\n    .btn .fas.right, .btn .fab.right, .btn .far.right {\n      margin-left: 0.3rem; }\n    .btn .fas.left, .btn .fab.left, .btn .far.left {\n      margin-right: 0.3rem; }\n  .btn.btn-lg {\n    padding: 1rem 2.4rem;\n    font-size: 0.94rem; }\n    .btn.btn-lg .fas, .btn.btn-lg .fab, .btn.btn-lg .far {\n      font-size: 1rem; }\n  .btn.btn-md {\n    padding: 0.7rem 1.6rem;\n    font-size: 0.7rem; }\n    .btn.btn-md .fas, .btn.btn-md .fab, .btn.btn-md .far {\n      font-size: 0.8rem; }\n  .btn.btn-sm {\n    padding: 0.5rem 1.6rem;\n    font-size: 0.64rem; }\n    .btn.btn-sm .fas, .btn.btn-sm .fab, .btn.btn-sm .far {\n      font-size: 0.7rem; }\n  .btn.btn-tb {\n    padding: 0.3rem 1rem; }\n  .btn.disabled:active, .btn.disabled:focus, .btn.disabled:hover, .btn:disabled:active, .btn:disabled:focus, .btn:disabled:hover {\n    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); }\n  .btn.btn-block {\n    margin: inherit; }\n  .btn.btn-link {\n    -webkit-box-shadow: none;\n    box-shadow: none;\n    background-color: transparent; }\n    .btn.btn-link:active, .btn.btn-link:focus, .btn.btn-link:hover {\n      -webkit-box-shadow: none !important;\n      box-shadow: none !important;\n      background-color: transparent; }\n  .btn[class*=\"btn-outline-\"] {\n    padding-top: 0.7rem;\n    padding-bottom: 0.7rem; }\n    .btn[class*=\"btn-outline-\"].btn-lg {\n      padding-top: 0.88rem;\n      padding-bottom: 0.88rem; }\n    .btn[class*=\"btn-outline-\"].btn-md {\n      padding-top: 0.58rem;\n      padding-bottom: 0.58rem; }\n    .btn[class*=\"btn-outline-\"].btn-sm {\n      padding-top: 0.38rem;\n      padding-bottom: 0.38rem; }\n\n.btn-group .btn {\n  margin: 0; }\n\n.btn .fa-lg,\n.btn-floating .fa-lg {\n  font-size: 1.33333em  !important; }\n\n.btn .fa-xs,\n.btn-floating .fa-xs {\n  font-size: .75em !important; }\n\n.btn .fa-sm,\n.btn-floating .fa-sm {\n  font-size: .875em !important; }\n\n.btn .fa-1x,\n.btn-floating .fa-1x {\n  font-size: 1em !important; }\n\n.btn .fa-2x,\n.btn-floating .fa-2x {\n  font-size: 2em !important; }\n\n.btn .fa-3x,\n.btn-floating .fa-3x {\n  font-size: 3em !important; }\n\n.btn .fa-4x,\n.btn-floating .fa-4x {\n  font-size: 4em !important; }\n\n.btn .fa-5x,\n.btn-floating .fa-5x {\n  font-size: 5em !important; }\n\n.btn .fa-6x,\n.btn-floating .fa-6x {\n  font-size: 6em !important; }\n\n.btn .fa-7x,\n.btn-floating .fa-7x {\n  font-size: 7em !important; }\n\n.btn .fa-8x,\n.btn-floating .fa-8x {\n  font-size: 8em !important; }\n\n.btn .fa-9x,\n.btn-floating .fa-9x {\n  font-size: 9em !important; }\n\n.btn .fa-10x,\n.btn-floating .fa-10x {\n  font-size: 10em !important; }\n\n.btn-primary {\n  background-color: #4285f4 !important;\n  color: #fff !important; }\n  .btn-primary:hover {\n    background-color: #5a95f5; }\n  .btn-primary:focus, .btn-primary.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-primary:focus, .btn-primary:active, .btn-primary.active {\n    background-color: #0b51c5; }\n  .btn-primary.dropdown-toggle {\n    background-color: #4285f4 !important; }\n    .btn-primary.dropdown-toggle:hover, .btn-primary.dropdown-toggle:focus {\n      background-color: #5a95f5 !important; }\n  .btn-primary:not([disabled]):not(.disabled):active, .btn-primary:not([disabled]):not(.disabled).active,\n  .show > .btn-primary.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #0b51c5 !important; }\n  .btn-primary:not([disabled]):not(.disabled):active:focus, .btn-primary:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-primary.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.primary-ic {\n  color: #4285f4 !important; }\n  .primary-ic:hover, .primary-ic:focus {\n    color: #4285f4; }\n\n.btn-outline-primary {\n  border: 2px solid #4285f4 !important;\n  background-color: transparent !important;\n  color: #4285f4 !important; }\n  .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary:active:focus, .btn-outline-primary.active {\n    border-color: #4285f4 !important;\n    background-color: transparent !important;\n    color: #4285f4 !important; }\n  .btn-outline-primary:not([disabled]):not(.disabled):active, .btn-outline-primary:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-primary.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #4285f4 !important; }\n  .btn-outline-primary:not([disabled]):not(.disabled):active:focus, .btn-outline-primary:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-primary.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-danger {\n  background-color: #ff3547 !important;\n  color: #fff !important; }\n  .btn-danger:hover {\n    background-color: #ff4f5e; }\n  .btn-danger:focus, .btn-danger.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-danger:focus, .btn-danger:active, .btn-danger.active {\n    background-color: #ce0012; }\n  .btn-danger.dropdown-toggle {\n    background-color: #ff3547 !important; }\n    .btn-danger.dropdown-toggle:hover, .btn-danger.dropdown-toggle:focus {\n      background-color: #ff4f5e !important; }\n  .btn-danger:not([disabled]):not(.disabled):active, .btn-danger:not([disabled]):not(.disabled).active,\n  .show > .btn-danger.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #ce0012 !important; }\n  .btn-danger:not([disabled]):not(.disabled):active:focus, .btn-danger:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-danger.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.danger-ic {\n  color: #ff3547 !important; }\n  .danger-ic:hover, .danger-ic:focus {\n    color: #ff3547; }\n\n.btn-outline-danger {\n  border: 2px solid #ff3547 !important;\n  background-color: transparent !important;\n  color: #ff3547 !important; }\n  .btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active, .btn-outline-danger:active:focus, .btn-outline-danger.active {\n    border-color: #ff3547 !important;\n    background-color: transparent !important;\n    color: #ff3547 !important; }\n  .btn-outline-danger:not([disabled]):not(.disabled):active, .btn-outline-danger:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-danger.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ff3547 !important; }\n  .btn-outline-danger:not([disabled]):not(.disabled):active:focus, .btn-outline-danger:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-danger.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-warning {\n  background-color: #ffbb33 !important;\n  color: #fff !important; }\n  .btn-warning:hover {\n    background-color: #ffc44d; }\n  .btn-warning:focus, .btn-warning.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-warning:focus, .btn-warning:active, .btn-warning.active {\n    background-color: #cc8800; }\n  .btn-warning.dropdown-toggle {\n    background-color: #ffbb33 !important; }\n    .btn-warning.dropdown-toggle:hover, .btn-warning.dropdown-toggle:focus {\n      background-color: #ffc44d !important; }\n  .btn-warning:not([disabled]):not(.disabled):active, .btn-warning:not([disabled]):not(.disabled).active,\n  .show > .btn-warning.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #cc8800 !important; }\n  .btn-warning:not([disabled]):not(.disabled):active:focus, .btn-warning:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-warning.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.warning-ic {\n  color: #ffbb33 !important; }\n  .warning-ic:hover, .warning-ic:focus {\n    color: #ffbb33; }\n\n.btn-outline-warning {\n  border: 2px solid #ffbb33 !important;\n  background-color: transparent !important;\n  color: #ffbb33 !important; }\n  .btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active, .btn-outline-warning:active:focus, .btn-outline-warning.active {\n    border-color: #ffbb33 !important;\n    background-color: transparent !important;\n    color: #ffbb33 !important; }\n  .btn-outline-warning:not([disabled]):not(.disabled):active, .btn-outline-warning:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-warning.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ffbb33 !important; }\n  .btn-outline-warning:not([disabled]):not(.disabled):active:focus, .btn-outline-warning:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-warning.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-success {\n  background-color: #00c851 !important;\n  color: #fff !important; }\n  .btn-success:hover {\n    background-color: #00e25b; }\n  .btn-success:focus, .btn-success.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-success:focus, .btn-success:active, .btn-success.active {\n    background-color: #006228; }\n  .btn-success.dropdown-toggle {\n    background-color: #00c851 !important; }\n    .btn-success.dropdown-toggle:hover, .btn-success.dropdown-toggle:focus {\n      background-color: #00e25b !important; }\n  .btn-success:not([disabled]):not(.disabled):active, .btn-success:not([disabled]):not(.disabled).active,\n  .show > .btn-success.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #006228 !important; }\n  .btn-success:not([disabled]):not(.disabled):active:focus, .btn-success:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-success.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.success-ic {\n  color: #00c851 !important; }\n  .success-ic:hover, .success-ic:focus {\n    color: #00c851; }\n\n.btn-outline-success {\n  border: 2px solid #00c851 !important;\n  background-color: transparent !important;\n  color: #00c851 !important; }\n  .btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active, .btn-outline-success:active:focus, .btn-outline-success.active {\n    border-color: #00c851 !important;\n    background-color: transparent !important;\n    color: #00c851 !important; }\n  .btn-outline-success:not([disabled]):not(.disabled):active, .btn-outline-success:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-success.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #00c851 !important; }\n  .btn-outline-success:not([disabled]):not(.disabled):active:focus, .btn-outline-success:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-success.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-info {\n  background-color: #33b5e5 !important;\n  color: #fff !important; }\n  .btn-info:hover {\n    background-color: #4abde8; }\n  .btn-info:focus, .btn-info.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-info:focus, .btn-info:active, .btn-info.active {\n    background-color: #14799e; }\n  .btn-info.dropdown-toggle {\n    background-color: #33b5e5 !important; }\n    .btn-info.dropdown-toggle:hover, .btn-info.dropdown-toggle:focus {\n      background-color: #4abde8 !important; }\n  .btn-info:not([disabled]):not(.disabled):active, .btn-info:not([disabled]):not(.disabled).active,\n  .show > .btn-info.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #14799e !important; }\n  .btn-info:not([disabled]):not(.disabled):active:focus, .btn-info:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-info.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.info-ic {\n  color: #33b5e5 !important; }\n  .info-ic:hover, .info-ic:focus {\n    color: #33b5e5; }\n\n.btn-outline-info {\n  border: 2px solid #33b5e5 !important;\n  background-color: transparent !important;\n  color: #33b5e5 !important; }\n  .btn-outline-info:hover, .btn-outline-info:focus, .btn-outline-info:active, .btn-outline-info:active:focus, .btn-outline-info.active {\n    border-color: #33b5e5 !important;\n    background-color: transparent !important;\n    color: #33b5e5 !important; }\n  .btn-outline-info:not([disabled]):not(.disabled):active, .btn-outline-info:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-info.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #33b5e5 !important; }\n  .btn-outline-info:not([disabled]):not(.disabled):active:focus, .btn-outline-info:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-info.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-default {\n  background-color: #2bbbad !important;\n  color: #fff !important; }\n  .btn-default:hover {\n    background-color: #30cfc0; }\n  .btn-default:focus, .btn-default.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-default:focus, .btn-default:active, .btn-default.active {\n    background-color: #186860; }\n  .btn-default.dropdown-toggle {\n    background-color: #2bbbad !important; }\n    .btn-default.dropdown-toggle:hover, .btn-default.dropdown-toggle:focus {\n      background-color: #30cfc0 !important; }\n  .btn-default:not([disabled]):not(.disabled):active, .btn-default:not([disabled]):not(.disabled).active,\n  .show > .btn-default.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #186860 !important; }\n  .btn-default:not([disabled]):not(.disabled):active:focus, .btn-default:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-default.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.default-ic {\n  color: #2bbbad !important; }\n  .default-ic:hover, .default-ic:focus {\n    color: #2bbbad; }\n\n.btn-outline-default {\n  border: 2px solid #2bbbad !important;\n  background-color: transparent !important;\n  color: #2bbbad !important; }\n  .btn-outline-default:hover, .btn-outline-default:focus, .btn-outline-default:active, .btn-outline-default:active:focus, .btn-outline-default.active {\n    border-color: #2bbbad !important;\n    background-color: transparent !important;\n    color: #2bbbad !important; }\n  .btn-outline-default:not([disabled]):not(.disabled):active, .btn-outline-default:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-default.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #2bbbad !important; }\n  .btn-outline-default:not([disabled]):not(.disabled):active:focus, .btn-outline-default:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-default.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-secondary {\n  background-color: #aa66cc !important;\n  color: #fff !important; }\n  .btn-secondary:hover {\n    background-color: #b579d2; }\n  .btn-secondary:focus, .btn-secondary.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-secondary:focus, .btn-secondary:active, .btn-secondary.active {\n    background-color: #773399; }\n  .btn-secondary.dropdown-toggle {\n    background-color: #aa66cc !important; }\n    .btn-secondary.dropdown-toggle:hover, .btn-secondary.dropdown-toggle:focus {\n      background-color: #b579d2 !important; }\n  .btn-secondary:not([disabled]):not(.disabled):active, .btn-secondary:not([disabled]):not(.disabled).active,\n  .show > .btn-secondary.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #773399 !important; }\n  .btn-secondary:not([disabled]):not(.disabled):active:focus, .btn-secondary:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-secondary.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.secondary-ic {\n  color: #aa66cc !important; }\n  .secondary-ic:hover, .secondary-ic:focus {\n    color: #aa66cc; }\n\n.btn-outline-secondary {\n  border: 2px solid #aa66cc !important;\n  background-color: transparent !important;\n  color: #aa66cc !important; }\n  .btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active, .btn-outline-secondary:active:focus, .btn-outline-secondary.active {\n    border-color: #aa66cc !important;\n    background-color: transparent !important;\n    color: #aa66cc !important; }\n  .btn-outline-secondary:not([disabled]):not(.disabled):active, .btn-outline-secondary:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-secondary.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #aa66cc !important; }\n  .btn-outline-secondary:not([disabled]):not(.disabled):active:focus, .btn-outline-secondary:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-secondary.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-elegant {\n  background-color: #2e2e2e !important;\n  color: #fff !important; }\n  .btn-elegant:hover {\n    background-color: #3b3b3b; }\n  .btn-elegant:focus, .btn-elegant.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-elegant:focus, .btn-elegant:active, .btn-elegant.active {\n    background-color: black; }\n  .btn-elegant.dropdown-toggle {\n    background-color: #2e2e2e !important; }\n    .btn-elegant.dropdown-toggle:hover, .btn-elegant.dropdown-toggle:focus {\n      background-color: #3b3b3b !important; }\n  .btn-elegant:not([disabled]):not(.disabled):active, .btn-elegant:not([disabled]):not(.disabled).active,\n  .show > .btn-elegant.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: black !important; }\n  .btn-elegant:not([disabled]):not(.disabled):active:focus, .btn-elegant:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-elegant.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.elegant-ic {\n  color: #2e2e2e !important; }\n  .elegant-ic:hover, .elegant-ic:focus {\n    color: #2e2e2e; }\n\n.btn-outline-elegant {\n  border: 2px solid #2e2e2e !important;\n  background-color: transparent !important;\n  color: #2e2e2e !important; }\n  .btn-outline-elegant:hover, .btn-outline-elegant:focus, .btn-outline-elegant:active, .btn-outline-elegant:active:focus, .btn-outline-elegant.active {\n    border-color: #2e2e2e !important;\n    background-color: transparent !important;\n    color: #2e2e2e !important; }\n  .btn-outline-elegant:not([disabled]):not(.disabled):active, .btn-outline-elegant:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-elegant.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #2e2e2e !important; }\n  .btn-outline-elegant:not([disabled]):not(.disabled):active:focus, .btn-outline-elegant:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-elegant.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-unique {\n  background-color: #880e4f !important;\n  color: #fff !important; }\n  .btn-unique:hover {\n    background-color: #9f105c; }\n  .btn-unique:focus, .btn-unique.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-unique:focus, .btn-unique:active, .btn-unique.active {\n    background-color: #2c0419; }\n  .btn-unique.dropdown-toggle {\n    background-color: #880e4f !important; }\n    .btn-unique.dropdown-toggle:hover, .btn-unique.dropdown-toggle:focus {\n      background-color: #9f105c !important; }\n  .btn-unique:not([disabled]):not(.disabled):active, .btn-unique:not([disabled]):not(.disabled).active,\n  .show > .btn-unique.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #2c0419 !important; }\n  .btn-unique:not([disabled]):not(.disabled):active:focus, .btn-unique:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-unique.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.unique-ic {\n  color: #880e4f !important; }\n  .unique-ic:hover, .unique-ic:focus {\n    color: #880e4f; }\n\n.btn-outline-unique {\n  border: 2px solid #880e4f !important;\n  background-color: transparent !important;\n  color: #880e4f !important; }\n  .btn-outline-unique:hover, .btn-outline-unique:focus, .btn-outline-unique:active, .btn-outline-unique:active:focus, .btn-outline-unique.active {\n    border-color: #880e4f !important;\n    background-color: transparent !important;\n    color: #880e4f !important; }\n  .btn-outline-unique:not([disabled]):not(.disabled):active, .btn-outline-unique:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-unique.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #880e4f !important; }\n  .btn-outline-unique:not([disabled]):not(.disabled):active:focus, .btn-outline-unique:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-unique.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-dark-green {\n  background-color: #388e3c !important;\n  color: #fff !important; }\n  .btn-dark-green:hover {\n    background-color: #3fa044; }\n  .btn-dark-green:focus, .btn-dark-green.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-dark-green:focus, .btn-dark-green:active, .btn-dark-green.active {\n    background-color: #1b451d; }\n  .btn-dark-green.dropdown-toggle {\n    background-color: #388e3c !important; }\n    .btn-dark-green.dropdown-toggle:hover, .btn-dark-green.dropdown-toggle:focus {\n      background-color: #3fa044 !important; }\n  .btn-dark-green:not([disabled]):not(.disabled):active, .btn-dark-green:not([disabled]):not(.disabled).active,\n  .show > .btn-dark-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #1b451d !important; }\n  .btn-dark-green:not([disabled]):not(.disabled):active:focus, .btn-dark-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-dark-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.dark-green-ic {\n  color: #388e3c !important; }\n  .dark-green-ic:hover, .dark-green-ic:focus {\n    color: #388e3c; }\n\n.btn-outline-dark-green {\n  border: 2px solid #388e3c !important;\n  background-color: transparent !important;\n  color: #388e3c !important; }\n  .btn-outline-dark-green:hover, .btn-outline-dark-green:focus, .btn-outline-dark-green:active, .btn-outline-dark-green:active:focus, .btn-outline-dark-green.active {\n    border-color: #388e3c !important;\n    background-color: transparent !important;\n    color: #388e3c !important; }\n  .btn-outline-dark-green:not([disabled]):not(.disabled):active, .btn-outline-dark-green:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-dark-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #388e3c !important; }\n  .btn-outline-dark-green:not([disabled]):not(.disabled):active:focus, .btn-outline-dark-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-dark-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-mdb-color {\n  background-color: #59698d !important;\n  color: #fff !important; }\n  .btn-mdb-color:hover {\n    background-color: #63759d; }\n  .btn-mdb-color:focus, .btn-mdb-color.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-mdb-color:focus, .btn-mdb-color:active, .btn-mdb-color.active {\n    background-color: #323a4e; }\n  .btn-mdb-color.dropdown-toggle {\n    background-color: #59698d !important; }\n    .btn-mdb-color.dropdown-toggle:hover, .btn-mdb-color.dropdown-toggle:focus {\n      background-color: #63759d !important; }\n  .btn-mdb-color:not([disabled]):not(.disabled):active, .btn-mdb-color:not([disabled]):not(.disabled).active,\n  .show > .btn-mdb-color.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #323a4e !important; }\n  .btn-mdb-color:not([disabled]):not(.disabled):active:focus, .btn-mdb-color:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-mdb-color.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.mdb-color-ic {\n  color: #59698d !important; }\n  .mdb-color-ic:hover, .mdb-color-ic:focus {\n    color: #59698d; }\n\n.btn-outline-mdb-color {\n  border: 2px solid #59698d !important;\n  background-color: transparent !important;\n  color: #59698d !important; }\n  .btn-outline-mdb-color:hover, .btn-outline-mdb-color:focus, .btn-outline-mdb-color:active, .btn-outline-mdb-color:active:focus, .btn-outline-mdb-color.active {\n    border-color: #59698d !important;\n    background-color: transparent !important;\n    color: #59698d !important; }\n  .btn-outline-mdb-color:not([disabled]):not(.disabled):active, .btn-outline-mdb-color:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-mdb-color.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #59698d !important; }\n  .btn-outline-mdb-color:not([disabled]):not(.disabled):active:focus, .btn-outline-mdb-color:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-mdb-color.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-red {\n  background-color: #d32f2f !important;\n  color: #fff !important; }\n  .btn-red:hover {\n    background-color: #d74444; }\n  .btn-red:focus, .btn-red.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-red:focus, .btn-red:active, .btn-red.active {\n    background-color: #811b1b; }\n  .btn-red.dropdown-toggle {\n    background-color: #d32f2f !important; }\n    .btn-red.dropdown-toggle:hover, .btn-red.dropdown-toggle:focus {\n      background-color: #d74444 !important; }\n  .btn-red:not([disabled]):not(.disabled):active, .btn-red:not([disabled]):not(.disabled).active,\n  .show > .btn-red.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #811b1b !important; }\n  .btn-red:not([disabled]):not(.disabled):active:focus, .btn-red:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-red.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.red-ic {\n  color: #d32f2f !important; }\n  .red-ic:hover, .red-ic:focus {\n    color: #d32f2f; }\n\n.btn-outline-red {\n  border: 2px solid #d32f2f !important;\n  background-color: transparent !important;\n  color: #d32f2f !important; }\n  .btn-outline-red:hover, .btn-outline-red:focus, .btn-outline-red:active, .btn-outline-red:active:focus, .btn-outline-red.active {\n    border-color: #d32f2f !important;\n    background-color: transparent !important;\n    color: #d32f2f !important; }\n  .btn-outline-red:not([disabled]):not(.disabled):active, .btn-outline-red:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-red.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #d32f2f !important; }\n  .btn-outline-red:not([disabled]):not(.disabled):active:focus, .btn-outline-red:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-red.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-pink {\n  background-color: #ec407a !important;\n  color: #fff !important; }\n  .btn-pink:hover {\n    background-color: #ee578a; }\n  .btn-pink:focus, .btn-pink.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-pink:focus, .btn-pink:active, .btn-pink.active {\n    background-color: #b41249; }\n  .btn-pink.dropdown-toggle {\n    background-color: #ec407a !important; }\n    .btn-pink.dropdown-toggle:hover, .btn-pink.dropdown-toggle:focus {\n      background-color: #ee578a !important; }\n  .btn-pink:not([disabled]):not(.disabled):active, .btn-pink:not([disabled]):not(.disabled).active,\n  .show > .btn-pink.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #b41249 !important; }\n  .btn-pink:not([disabled]):not(.disabled):active:focus, .btn-pink:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-pink.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.pink-ic {\n  color: #ec407a !important; }\n  .pink-ic:hover, .pink-ic:focus {\n    color: #ec407a; }\n\n.btn-outline-pink {\n  border: 2px solid #ec407a !important;\n  background-color: transparent !important;\n  color: #ec407a !important; }\n  .btn-outline-pink:hover, .btn-outline-pink:focus, .btn-outline-pink:active, .btn-outline-pink:active:focus, .btn-outline-pink.active {\n    border-color: #ec407a !important;\n    background-color: transparent !important;\n    color: #ec407a !important; }\n  .btn-outline-pink:not([disabled]):not(.disabled):active, .btn-outline-pink:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-pink.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ec407a !important; }\n  .btn-outline-pink:not([disabled]):not(.disabled):active:focus, .btn-outline-pink:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-pink.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-purple {\n  background-color: #8e24aa !important;\n  color: #fff !important; }\n  .btn-purple:hover {\n    background-color: #a028bf; }\n  .btn-purple:focus, .btn-purple.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-purple:focus, .btn-purple:active, .btn-purple.active {\n    background-color: #481256; }\n  .btn-purple.dropdown-toggle {\n    background-color: #8e24aa !important; }\n    .btn-purple.dropdown-toggle:hover, .btn-purple.dropdown-toggle:focus {\n      background-color: #a028bf !important; }\n  .btn-purple:not([disabled]):not(.disabled):active, .btn-purple:not([disabled]):not(.disabled).active,\n  .show > .btn-purple.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #481256 !important; }\n  .btn-purple:not([disabled]):not(.disabled):active:focus, .btn-purple:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-purple.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.purple-ic {\n  color: #8e24aa !important; }\n  .purple-ic:hover, .purple-ic:focus {\n    color: #8e24aa; }\n\n.btn-outline-purple {\n  border: 2px solid #8e24aa !important;\n  background-color: transparent !important;\n  color: #8e24aa !important; }\n  .btn-outline-purple:hover, .btn-outline-purple:focus, .btn-outline-purple:active, .btn-outline-purple:active:focus, .btn-outline-purple.active {\n    border-color: #8e24aa !important;\n    background-color: transparent !important;\n    color: #8e24aa !important; }\n  .btn-outline-purple:not([disabled]):not(.disabled):active, .btn-outline-purple:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-purple.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #8e24aa !important; }\n  .btn-outline-purple:not([disabled]):not(.disabled):active:focus, .btn-outline-purple:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-purple.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-deep-purple {\n  background-color: #512da8 !important;\n  color: #fff !important; }\n  .btn-deep-purple:hover {\n    background-color: #5b32bc; }\n  .btn-deep-purple:focus, .btn-deep-purple.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-deep-purple:focus, .btn-deep-purple:active, .btn-deep-purple.active {\n    background-color: #2a1758; }\n  .btn-deep-purple.dropdown-toggle {\n    background-color: #512da8 !important; }\n    .btn-deep-purple.dropdown-toggle:hover, .btn-deep-purple.dropdown-toggle:focus {\n      background-color: #5b32bc !important; }\n  .btn-deep-purple:not([disabled]):not(.disabled):active, .btn-deep-purple:not([disabled]):not(.disabled).active,\n  .show > .btn-deep-purple.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #2a1758 !important; }\n  .btn-deep-purple:not([disabled]):not(.disabled):active:focus, .btn-deep-purple:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-deep-purple.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.deep-purple-ic {\n  color: #512da8 !important; }\n  .deep-purple-ic:hover, .deep-purple-ic:focus {\n    color: #512da8; }\n\n.btn-outline-deep-purple {\n  border: 2px solid #512da8 !important;\n  background-color: transparent !important;\n  color: #512da8 !important; }\n  .btn-outline-deep-purple:hover, .btn-outline-deep-purple:focus, .btn-outline-deep-purple:active, .btn-outline-deep-purple:active:focus, .btn-outline-deep-purple.active {\n    border-color: #512da8 !important;\n    background-color: transparent !important;\n    color: #512da8 !important; }\n  .btn-outline-deep-purple:not([disabled]):not(.disabled):active, .btn-outline-deep-purple:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-deep-purple.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #512da8 !important; }\n  .btn-outline-deep-purple:not([disabled]):not(.disabled):active:focus, .btn-outline-deep-purple:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-deep-purple.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-indigo {\n  background-color: #3f51b5 !important;\n  color: #fff !important; }\n  .btn-indigo:hover {\n    background-color: #4d5ec1; }\n  .btn-indigo:focus, .btn-indigo.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-indigo:focus, .btn-indigo:active, .btn-indigo.active {\n    background-color: #252f69; }\n  .btn-indigo.dropdown-toggle {\n    background-color: #3f51b5 !important; }\n    .btn-indigo.dropdown-toggle:hover, .btn-indigo.dropdown-toggle:focus {\n      background-color: #4d5ec1 !important; }\n  .btn-indigo:not([disabled]):not(.disabled):active, .btn-indigo:not([disabled]):not(.disabled).active,\n  .show > .btn-indigo.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #252f69 !important; }\n  .btn-indigo:not([disabled]):not(.disabled):active:focus, .btn-indigo:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-indigo.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.indigo-ic {\n  color: #3f51b5 !important; }\n  .indigo-ic:hover, .indigo-ic:focus {\n    color: #3f51b5; }\n\n.btn-outline-indigo {\n  border: 2px solid #3f51b5 !important;\n  background-color: transparent !important;\n  color: #3f51b5 !important; }\n  .btn-outline-indigo:hover, .btn-outline-indigo:focus, .btn-outline-indigo:active, .btn-outline-indigo:active:focus, .btn-outline-indigo.active {\n    border-color: #3f51b5 !important;\n    background-color: transparent !important;\n    color: #3f51b5 !important; }\n  .btn-outline-indigo:not([disabled]):not(.disabled):active, .btn-outline-indigo:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-indigo.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #3f51b5 !important; }\n  .btn-outline-indigo:not([disabled]):not(.disabled):active:focus, .btn-outline-indigo:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-indigo.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-blue {\n  background-color: #1976d2 !important;\n  color: #fff !important; }\n  .btn-blue:hover {\n    background-color: #2083e4; }\n  .btn-blue:focus, .btn-blue.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-blue:focus, .btn-blue:active, .btn-blue.active {\n    background-color: #0e4377; }\n  .btn-blue.dropdown-toggle {\n    background-color: #1976d2 !important; }\n    .btn-blue.dropdown-toggle:hover, .btn-blue.dropdown-toggle:focus {\n      background-color: #2083e4 !important; }\n  .btn-blue:not([disabled]):not(.disabled):active, .btn-blue:not([disabled]):not(.disabled).active,\n  .show > .btn-blue.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #0e4377 !important; }\n  .btn-blue:not([disabled]):not(.disabled):active:focus, .btn-blue:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-blue.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.blue-ic {\n  color: #1976d2 !important; }\n  .blue-ic:hover, .blue-ic:focus {\n    color: #1976d2; }\n\n.btn-outline-blue {\n  border: 2px solid #1976d2 !important;\n  background-color: transparent !important;\n  color: #1976d2 !important; }\n  .btn-outline-blue:hover, .btn-outline-blue:focus, .btn-outline-blue:active, .btn-outline-blue:active:focus, .btn-outline-blue.active {\n    border-color: #1976d2 !important;\n    background-color: transparent !important;\n    color: #1976d2 !important; }\n  .btn-outline-blue:not([disabled]):not(.disabled):active, .btn-outline-blue:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-blue.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #1976d2 !important; }\n  .btn-outline-blue:not([disabled]):not(.disabled):active:focus, .btn-outline-blue:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-blue.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-light-blue {\n  background-color: #82b1ff !important;\n  color: #fff !important; }\n  .btn-light-blue:hover {\n    background-color: #9cc1ff; }\n  .btn-light-blue:focus, .btn-light-blue.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-light-blue:focus, .btn-light-blue:active, .btn-light-blue.active {\n    background-color: #1c71ff; }\n  .btn-light-blue.dropdown-toggle {\n    background-color: #82b1ff !important; }\n    .btn-light-blue.dropdown-toggle:hover, .btn-light-blue.dropdown-toggle:focus {\n      background-color: #9cc1ff !important; }\n  .btn-light-blue:not([disabled]):not(.disabled):active, .btn-light-blue:not([disabled]):not(.disabled).active,\n  .show > .btn-light-blue.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #1c71ff !important; }\n  .btn-light-blue:not([disabled]):not(.disabled):active:focus, .btn-light-blue:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-light-blue.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.light-blue-ic {\n  color: #82b1ff !important; }\n  .light-blue-ic:hover, .light-blue-ic:focus {\n    color: #82b1ff; }\n\n.btn-outline-light-blue {\n  border: 2px solid #82b1ff !important;\n  background-color: transparent !important;\n  color: #82b1ff !important; }\n  .btn-outline-light-blue:hover, .btn-outline-light-blue:focus, .btn-outline-light-blue:active, .btn-outline-light-blue:active:focus, .btn-outline-light-blue.active {\n    border-color: #82b1ff !important;\n    background-color: transparent !important;\n    color: #82b1ff !important; }\n  .btn-outline-light-blue:not([disabled]):not(.disabled):active, .btn-outline-light-blue:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-light-blue.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #82b1ff !important; }\n  .btn-outline-light-blue:not([disabled]):not(.disabled):active:focus, .btn-outline-light-blue:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-light-blue.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-cyan {\n  background-color: #00bcd4 !important;\n  color: #fff !important; }\n  .btn-cyan:hover {\n    background-color: #00d3ee; }\n  .btn-cyan:focus, .btn-cyan.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-cyan:focus, .btn-cyan:active, .btn-cyan.active {\n    background-color: #00626e; }\n  .btn-cyan.dropdown-toggle {\n    background-color: #00bcd4 !important; }\n    .btn-cyan.dropdown-toggle:hover, .btn-cyan.dropdown-toggle:focus {\n      background-color: #00d3ee !important; }\n  .btn-cyan:not([disabled]):not(.disabled):active, .btn-cyan:not([disabled]):not(.disabled).active,\n  .show > .btn-cyan.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #00626e !important; }\n  .btn-cyan:not([disabled]):not(.disabled):active:focus, .btn-cyan:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-cyan.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.cyan-ic {\n  color: #00bcd4 !important; }\n  .cyan-ic:hover, .cyan-ic:focus {\n    color: #00bcd4; }\n\n.btn-outline-cyan {\n  border: 2px solid #00bcd4 !important;\n  background-color: transparent !important;\n  color: #00bcd4 !important; }\n  .btn-outline-cyan:hover, .btn-outline-cyan:focus, .btn-outline-cyan:active, .btn-outline-cyan:active:focus, .btn-outline-cyan.active {\n    border-color: #00bcd4 !important;\n    background-color: transparent !important;\n    color: #00bcd4 !important; }\n  .btn-outline-cyan:not([disabled]):not(.disabled):active, .btn-outline-cyan:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-cyan.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #00bcd4 !important; }\n  .btn-outline-cyan:not([disabled]):not(.disabled):active:focus, .btn-outline-cyan:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-cyan.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-teal {\n  background-color: #00796b !important;\n  color: #fff !important; }\n  .btn-teal:hover {\n    background-color: #009382; }\n  .btn-teal:focus, .btn-teal.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-teal:focus, .btn-teal:active, .btn-teal.active {\n    background-color: #001311; }\n  .btn-teal.dropdown-toggle {\n    background-color: #00796b !important; }\n    .btn-teal.dropdown-toggle:hover, .btn-teal.dropdown-toggle:focus {\n      background-color: #009382 !important; }\n  .btn-teal:not([disabled]):not(.disabled):active, .btn-teal:not([disabled]):not(.disabled).active,\n  .show > .btn-teal.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #001311 !important; }\n  .btn-teal:not([disabled]):not(.disabled):active:focus, .btn-teal:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-teal.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.teal-ic {\n  color: #00796b !important; }\n  .teal-ic:hover, .teal-ic:focus {\n    color: #00796b; }\n\n.btn-outline-teal {\n  border: 2px solid #00796b !important;\n  background-color: transparent !important;\n  color: #00796b !important; }\n  .btn-outline-teal:hover, .btn-outline-teal:focus, .btn-outline-teal:active, .btn-outline-teal:active:focus, .btn-outline-teal.active {\n    border-color: #00796b !important;\n    background-color: transparent !important;\n    color: #00796b !important; }\n  .btn-outline-teal:not([disabled]):not(.disabled):active, .btn-outline-teal:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-teal.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #00796b !important; }\n  .btn-outline-teal:not([disabled]):not(.disabled):active:focus, .btn-outline-teal:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-teal.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-green {\n  background-color: #388e3c !important;\n  color: #fff !important; }\n  .btn-green:hover {\n    background-color: #3fa044; }\n  .btn-green:focus, .btn-green.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-green:focus, .btn-green:active, .btn-green.active {\n    background-color: #1b451d; }\n  .btn-green.dropdown-toggle {\n    background-color: #388e3c !important; }\n    .btn-green.dropdown-toggle:hover, .btn-green.dropdown-toggle:focus {\n      background-color: #3fa044 !important; }\n  .btn-green:not([disabled]):not(.disabled):active, .btn-green:not([disabled]):not(.disabled).active,\n  .show > .btn-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #1b451d !important; }\n  .btn-green:not([disabled]):not(.disabled):active:focus, .btn-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.green-ic {\n  color: #388e3c !important; }\n  .green-ic:hover, .green-ic:focus {\n    color: #388e3c; }\n\n.btn-outline-green {\n  border: 2px solid #388e3c !important;\n  background-color: transparent !important;\n  color: #388e3c !important; }\n  .btn-outline-green:hover, .btn-outline-green:focus, .btn-outline-green:active, .btn-outline-green:active:focus, .btn-outline-green.active {\n    border-color: #388e3c !important;\n    background-color: transparent !important;\n    color: #388e3c !important; }\n  .btn-outline-green:not([disabled]):not(.disabled):active, .btn-outline-green:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #388e3c !important; }\n  .btn-outline-green:not([disabled]):not(.disabled):active:focus, .btn-outline-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-light-green {\n  background-color: #8bc34a !important;\n  color: #fff !important; }\n  .btn-light-green:hover {\n    background-color: #97c95d; }\n  .btn-light-green:focus, .btn-light-green.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-light-green:focus, .btn-light-green:active, .btn-light-green.active {\n    background-color: #577d2a; }\n  .btn-light-green.dropdown-toggle {\n    background-color: #8bc34a !important; }\n    .btn-light-green.dropdown-toggle:hover, .btn-light-green.dropdown-toggle:focus {\n      background-color: #97c95d !important; }\n  .btn-light-green:not([disabled]):not(.disabled):active, .btn-light-green:not([disabled]):not(.disabled).active,\n  .show > .btn-light-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #577d2a !important; }\n  .btn-light-green:not([disabled]):not(.disabled):active:focus, .btn-light-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-light-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.light-green-ic {\n  color: #8bc34a !important; }\n  .light-green-ic:hover, .light-green-ic:focus {\n    color: #8bc34a; }\n\n.btn-outline-light-green {\n  border: 2px solid #8bc34a !important;\n  background-color: transparent !important;\n  color: #8bc34a !important; }\n  .btn-outline-light-green:hover, .btn-outline-light-green:focus, .btn-outline-light-green:active, .btn-outline-light-green:active:focus, .btn-outline-light-green.active {\n    border-color: #8bc34a !important;\n    background-color: transparent !important;\n    color: #8bc34a !important; }\n  .btn-outline-light-green:not([disabled]):not(.disabled):active, .btn-outline-light-green:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-light-green.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #8bc34a !important; }\n  .btn-outline-light-green:not([disabled]):not(.disabled):active:focus, .btn-outline-light-green:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-light-green.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-lime {\n  background-color: #afb42b !important;\n  color: #fff !important; }\n  .btn-lime:hover {\n    background-color: #c3c930; }\n  .btn-lime:focus, .btn-lime.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-lime:focus, .btn-lime:active, .btn-lime.active {\n    background-color: #5f6217; }\n  .btn-lime.dropdown-toggle {\n    background-color: #afb42b !important; }\n    .btn-lime.dropdown-toggle:hover, .btn-lime.dropdown-toggle:focus {\n      background-color: #c3c930 !important; }\n  .btn-lime:not([disabled]):not(.disabled):active, .btn-lime:not([disabled]):not(.disabled).active,\n  .show > .btn-lime.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #5f6217 !important; }\n  .btn-lime:not([disabled]):not(.disabled):active:focus, .btn-lime:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-lime.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.lime-ic {\n  color: #afb42b !important; }\n  .lime-ic:hover, .lime-ic:focus {\n    color: #afb42b; }\n\n.btn-outline-lime {\n  border: 2px solid #afb42b !important;\n  background-color: transparent !important;\n  color: #afb42b !important; }\n  .btn-outline-lime:hover, .btn-outline-lime:focus, .btn-outline-lime:active, .btn-outline-lime:active:focus, .btn-outline-lime.active {\n    border-color: #afb42b !important;\n    background-color: transparent !important;\n    color: #afb42b !important; }\n  .btn-outline-lime:not([disabled]):not(.disabled):active, .btn-outline-lime:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-lime.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #afb42b !important; }\n  .btn-outline-lime:not([disabled]):not(.disabled):active:focus, .btn-outline-lime:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-lime.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-yellow {\n  background-color: #fbc02d !important;\n  color: #fff !important; }\n  .btn-yellow:hover {\n    background-color: #fbc846; }\n  .btn-yellow:focus, .btn-yellow.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-yellow:focus, .btn-yellow:active, .btn-yellow.active {\n    background-color: #be8904; }\n  .btn-yellow.dropdown-toggle {\n    background-color: #fbc02d !important; }\n    .btn-yellow.dropdown-toggle:hover, .btn-yellow.dropdown-toggle:focus {\n      background-color: #fbc846 !important; }\n  .btn-yellow:not([disabled]):not(.disabled):active, .btn-yellow:not([disabled]):not(.disabled).active,\n  .show > .btn-yellow.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #be8904 !important; }\n  .btn-yellow:not([disabled]):not(.disabled):active:focus, .btn-yellow:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-yellow.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.yellow-ic {\n  color: #fbc02d !important; }\n  .yellow-ic:hover, .yellow-ic:focus {\n    color: #fbc02d; }\n\n.btn-outline-yellow {\n  border: 2px solid #fbc02d !important;\n  background-color: transparent !important;\n  color: #fbc02d !important; }\n  .btn-outline-yellow:hover, .btn-outline-yellow:focus, .btn-outline-yellow:active, .btn-outline-yellow:active:focus, .btn-outline-yellow.active {\n    border-color: #fbc02d !important;\n    background-color: transparent !important;\n    color: #fbc02d !important; }\n  .btn-outline-yellow:not([disabled]):not(.disabled):active, .btn-outline-yellow:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-yellow.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #fbc02d !important; }\n  .btn-outline-yellow:not([disabled]):not(.disabled):active:focus, .btn-outline-yellow:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-yellow.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-amber {\n  background-color: #ffa000 !important;\n  color: #fff !important; }\n  .btn-amber:hover {\n    background-color: #ffaa1a; }\n  .btn-amber:focus, .btn-amber.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-amber:focus, .btn-amber:active, .btn-amber.active {\n    background-color: #996000; }\n  .btn-amber.dropdown-toggle {\n    background-color: #ffa000 !important; }\n    .btn-amber.dropdown-toggle:hover, .btn-amber.dropdown-toggle:focus {\n      background-color: #ffaa1a !important; }\n  .btn-amber:not([disabled]):not(.disabled):active, .btn-amber:not([disabled]):not(.disabled).active,\n  .show > .btn-amber.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #996000 !important; }\n  .btn-amber:not([disabled]):not(.disabled):active:focus, .btn-amber:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-amber.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.amber-ic {\n  color: #ffa000 !important; }\n  .amber-ic:hover, .amber-ic:focus {\n    color: #ffa000; }\n\n.btn-outline-amber {\n  border: 2px solid #ffa000 !important;\n  background-color: transparent !important;\n  color: #ffa000 !important; }\n  .btn-outline-amber:hover, .btn-outline-amber:focus, .btn-outline-amber:active, .btn-outline-amber:active:focus, .btn-outline-amber.active {\n    border-color: #ffa000 !important;\n    background-color: transparent !important;\n    color: #ffa000 !important; }\n  .btn-outline-amber:not([disabled]):not(.disabled):active, .btn-outline-amber:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-amber.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ffa000 !important; }\n  .btn-outline-amber:not([disabled]):not(.disabled):active:focus, .btn-outline-amber:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-amber.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-orange {\n  background-color: #f57c00 !important;\n  color: #fff !important; }\n  .btn-orange:hover {\n    background-color: #ff8910; }\n  .btn-orange:focus, .btn-orange.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-orange:focus, .btn-orange:active, .btn-orange.active {\n    background-color: #8f4800; }\n  .btn-orange.dropdown-toggle {\n    background-color: #f57c00 !important; }\n    .btn-orange.dropdown-toggle:hover, .btn-orange.dropdown-toggle:focus {\n      background-color: #ff8910 !important; }\n  .btn-orange:not([disabled]):not(.disabled):active, .btn-orange:not([disabled]):not(.disabled).active,\n  .show > .btn-orange.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #8f4800 !important; }\n  .btn-orange:not([disabled]):not(.disabled):active:focus, .btn-orange:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-orange.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.orange-ic {\n  color: #f57c00 !important; }\n  .orange-ic:hover, .orange-ic:focus {\n    color: #f57c00; }\n\n.btn-outline-orange {\n  border: 2px solid #f57c00 !important;\n  background-color: transparent !important;\n  color: #f57c00 !important; }\n  .btn-outline-orange:hover, .btn-outline-orange:focus, .btn-outline-orange:active, .btn-outline-orange:active:focus, .btn-outline-orange.active {\n    border-color: #f57c00 !important;\n    background-color: transparent !important;\n    color: #f57c00 !important; }\n  .btn-outline-orange:not([disabled]):not(.disabled):active, .btn-outline-orange:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-orange.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #f57c00 !important; }\n  .btn-outline-orange:not([disabled]):not(.disabled):active:focus, .btn-outline-orange:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-orange.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-deep-orange {\n  background-color: #ff7043 !important;\n  color: #fff !important; }\n  .btn-deep-orange:hover {\n    background-color: #ff835d; }\n  .btn-deep-orange:focus, .btn-deep-orange.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-deep-orange:focus, .btn-deep-orange:active, .btn-deep-orange.active {\n    background-color: #dc3500; }\n  .btn-deep-orange.dropdown-toggle {\n    background-color: #ff7043 !important; }\n    .btn-deep-orange.dropdown-toggle:hover, .btn-deep-orange.dropdown-toggle:focus {\n      background-color: #ff835d !important; }\n  .btn-deep-orange:not([disabled]):not(.disabled):active, .btn-deep-orange:not([disabled]):not(.disabled).active,\n  .show > .btn-deep-orange.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #dc3500 !important; }\n  .btn-deep-orange:not([disabled]):not(.disabled):active:focus, .btn-deep-orange:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-deep-orange.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.deep-orange-ic {\n  color: #ff7043 !important; }\n  .deep-orange-ic:hover, .deep-orange-ic:focus {\n    color: #ff7043; }\n\n.btn-outline-deep-orange {\n  border: 2px solid #ff7043 !important;\n  background-color: transparent !important;\n  color: #ff7043 !important; }\n  .btn-outline-deep-orange:hover, .btn-outline-deep-orange:focus, .btn-outline-deep-orange:active, .btn-outline-deep-orange:active:focus, .btn-outline-deep-orange.active {\n    border-color: #ff7043 !important;\n    background-color: transparent !important;\n    color: #ff7043 !important; }\n  .btn-outline-deep-orange:not([disabled]):not(.disabled):active, .btn-outline-deep-orange:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-deep-orange.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #ff7043 !important; }\n  .btn-outline-deep-orange:not([disabled]):not(.disabled):active:focus, .btn-outline-deep-orange:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-deep-orange.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-brown {\n  background-color: #795548 !important;\n  color: #fff !important; }\n  .btn-brown:hover {\n    background-color: #896052; }\n  .btn-brown:focus, .btn-brown.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-brown:focus, .btn-brown:active, .btn-brown.active {\n    background-color: #392822; }\n  .btn-brown.dropdown-toggle {\n    background-color: #795548 !important; }\n    .btn-brown.dropdown-toggle:hover, .btn-brown.dropdown-toggle:focus {\n      background-color: #896052 !important; }\n  .btn-brown:not([disabled]):not(.disabled):active, .btn-brown:not([disabled]):not(.disabled).active,\n  .show > .btn-brown.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #392822 !important; }\n  .btn-brown:not([disabled]):not(.disabled):active:focus, .btn-brown:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-brown.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.brown-ic {\n  color: #795548 !important; }\n  .brown-ic:hover, .brown-ic:focus {\n    color: #795548; }\n\n.btn-outline-brown {\n  border: 2px solid #795548 !important;\n  background-color: transparent !important;\n  color: #795548 !important; }\n  .btn-outline-brown:hover, .btn-outline-brown:focus, .btn-outline-brown:active, .btn-outline-brown:active:focus, .btn-outline-brown.active {\n    border-color: #795548 !important;\n    background-color: transparent !important;\n    color: #795548 !important; }\n  .btn-outline-brown:not([disabled]):not(.disabled):active, .btn-outline-brown:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-brown.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #795548 !important; }\n  .btn-outline-brown:not([disabled]):not(.disabled):active:focus, .btn-outline-brown:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-brown.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-grey {\n  background-color: #616161 !important;\n  color: #fff !important; }\n  .btn-grey:hover {\n    background-color: #6e6e6e; }\n  .btn-grey:focus, .btn-grey.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-grey:focus, .btn-grey:active, .btn-grey.active {\n    background-color: #2e2e2e; }\n  .btn-grey.dropdown-toggle {\n    background-color: #616161 !important; }\n    .btn-grey.dropdown-toggle:hover, .btn-grey.dropdown-toggle:focus {\n      background-color: #6e6e6e !important; }\n  .btn-grey:not([disabled]):not(.disabled):active, .btn-grey:not([disabled]):not(.disabled).active,\n  .show > .btn-grey.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #2e2e2e !important; }\n  .btn-grey:not([disabled]):not(.disabled):active:focus, .btn-grey:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-grey.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.grey-ic {\n  color: #616161 !important; }\n  .grey-ic:hover, .grey-ic:focus {\n    color: #616161; }\n\n.btn-outline-grey {\n  border: 2px solid #616161 !important;\n  background-color: transparent !important;\n  color: #616161 !important; }\n  .btn-outline-grey:hover, .btn-outline-grey:focus, .btn-outline-grey:active, .btn-outline-grey:active:focus, .btn-outline-grey.active {\n    border-color: #616161 !important;\n    background-color: transparent !important;\n    color: #616161 !important; }\n  .btn-outline-grey:not([disabled]):not(.disabled):active, .btn-outline-grey:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-grey.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #616161 !important; }\n  .btn-outline-grey:not([disabled]):not(.disabled):active:focus, .btn-outline-grey:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-grey.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-blue-grey {\n  background-color: #78909c !important;\n  color: #fff !important; }\n  .btn-blue-grey:hover {\n    background-color: #879ca7; }\n  .btn-blue-grey:focus, .btn-blue-grey.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-blue-grey:focus, .btn-blue-grey:active, .btn-blue-grey.active {\n    background-color: #4a5b64; }\n  .btn-blue-grey.dropdown-toggle {\n    background-color: #78909c !important; }\n    .btn-blue-grey.dropdown-toggle:hover, .btn-blue-grey.dropdown-toggle:focus {\n      background-color: #879ca7 !important; }\n  .btn-blue-grey:not([disabled]):not(.disabled):active, .btn-blue-grey:not([disabled]):not(.disabled).active,\n  .show > .btn-blue-grey.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #4a5b64 !important; }\n  .btn-blue-grey:not([disabled]):not(.disabled):active:focus, .btn-blue-grey:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-blue-grey.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.blue-grey-ic {\n  color: #78909c !important; }\n  .blue-grey-ic:hover, .blue-grey-ic:focus {\n    color: #78909c; }\n\n.btn-outline-blue-grey {\n  border: 2px solid #78909c !important;\n  background-color: transparent !important;\n  color: #78909c !important; }\n  .btn-outline-blue-grey:hover, .btn-outline-blue-grey:focus, .btn-outline-blue-grey:active, .btn-outline-blue-grey:active:focus, .btn-outline-blue-grey.active {\n    border-color: #78909c !important;\n    background-color: transparent !important;\n    color: #78909c !important; }\n  .btn-outline-blue-grey:not([disabled]):not(.disabled):active, .btn-outline-blue-grey:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-blue-grey.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #78909c !important; }\n  .btn-outline-blue-grey:not([disabled]):not(.disabled):active:focus, .btn-outline-blue-grey:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-blue-grey.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-dark {\n  background-color: #212121 !important;\n  color: #fff !important; }\n  .btn-dark:hover {\n    background-color: #2e2e2e; }\n  .btn-dark:focus, .btn-dark.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-dark:focus, .btn-dark:active, .btn-dark.active {\n    background-color: black; }\n  .btn-dark.dropdown-toggle {\n    background-color: #212121 !important; }\n    .btn-dark.dropdown-toggle:hover, .btn-dark.dropdown-toggle:focus {\n      background-color: #2e2e2e !important; }\n  .btn-dark:not([disabled]):not(.disabled):active, .btn-dark:not([disabled]):not(.disabled).active,\n  .show > .btn-dark.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: black !important; }\n  .btn-dark:not([disabled]):not(.disabled):active:focus, .btn-dark:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-dark.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.dark-ic {\n  color: #212121 !important; }\n  .dark-ic:hover, .dark-ic:focus {\n    color: #212121; }\n\n.btn-outline-dark {\n  border: 2px solid #212121 !important;\n  background-color: transparent !important;\n  color: #212121 !important; }\n  .btn-outline-dark:hover, .btn-outline-dark:focus, .btn-outline-dark:active, .btn-outline-dark:active:focus, .btn-outline-dark.active {\n    border-color: #212121 !important;\n    background-color: transparent !important;\n    color: #212121 !important; }\n  .btn-outline-dark:not([disabled]):not(.disabled):active, .btn-outline-dark:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-dark.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #212121 !important; }\n  .btn-outline-dark:not([disabled]):not(.disabled):active:focus, .btn-outline-dark:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-dark.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-light {\n  background-color: #e0e0e0 !important;\n  color: #000 !important; }\n  .btn-light:hover {\n    background-color: #ededed; }\n  .btn-light:focus, .btn-light.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-light:focus, .btn-light:active, .btn-light.active {\n    background-color: #adadad; }\n  .btn-light.dropdown-toggle {\n    background-color: #e0e0e0 !important; }\n    .btn-light.dropdown-toggle:hover, .btn-light.dropdown-toggle:focus {\n      background-color: #ededed !important; }\n  .btn-light:not([disabled]):not(.disabled):active, .btn-light:not([disabled]):not(.disabled).active,\n  .show > .btn-light.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #adadad !important; }\n  .btn-light:not([disabled]):not(.disabled):active:focus, .btn-light:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-light.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.light-ic {\n  color: #e0e0e0 !important; }\n  .light-ic:hover, .light-ic:focus {\n    color: #e0e0e0; }\n\n.btn-outline-light {\n  border: 2px solid #e0e0e0 !important;\n  background-color: transparent !important;\n  color: #e0e0e0 !important; }\n  .btn-outline-light:hover, .btn-outline-light:focus, .btn-outline-light:active, .btn-outline-light:active:focus, .btn-outline-light.active {\n    border-color: #e0e0e0 !important;\n    background-color: transparent !important;\n    color: #e0e0e0 !important; }\n  .btn-outline-light:not([disabled]):not(.disabled):active, .btn-outline-light:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-light.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #e0e0e0 !important; }\n  .btn-outline-light:not([disabled]):not(.disabled):active:focus, .btn-outline-light:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-light.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-white {\n  background-color: #fff !important;\n  color: #000 !important; }\n  .btn-white:hover {\n    background-color: white; }\n  .btn-white:focus, .btn-white.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-white:focus, .btn-white:active, .btn-white.active {\n    background-color: #cccccc; }\n  .btn-white.dropdown-toggle {\n    background-color: #fff !important; }\n    .btn-white.dropdown-toggle:hover, .btn-white.dropdown-toggle:focus {\n      background-color: white !important; }\n  .btn-white:not([disabled]):not(.disabled):active, .btn-white:not([disabled]):not(.disabled).active,\n  .show > .btn-white.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: #cccccc !important; }\n  .btn-white:not([disabled]):not(.disabled):active:focus, .btn-white:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-white.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.white-ic {\n  color: #fff !important; }\n  .white-ic:hover, .white-ic:focus {\n    color: #fff; }\n\n.btn-outline-white {\n  border: 2px solid #fff !important;\n  background-color: transparent !important;\n  color: #fff !important; }\n  .btn-outline-white:hover, .btn-outline-white:focus, .btn-outline-white:active, .btn-outline-white:active:focus, .btn-outline-white.active {\n    border-color: #fff !important;\n    background-color: transparent !important;\n    color: #fff !important; }\n  .btn-outline-white:not([disabled]):not(.disabled):active, .btn-outline-white:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-white.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #fff !important; }\n  .btn-outline-white:not([disabled]):not(.disabled):active:focus, .btn-outline-white:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-white.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.btn-black {\n  background-color: #000 !important;\n  color: #fff !important; }\n  .btn-black:hover {\n    background-color: #0d0d0d; }\n  .btn-black:focus, .btn-black.focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n  .btn-black:focus, .btn-black:active, .btn-black.active {\n    background-color: black; }\n  .btn-black.dropdown-toggle {\n    background-color: #000 !important; }\n    .btn-black.dropdown-toggle:hover, .btn-black.dropdown-toggle:focus {\n      background-color: #0d0d0d !important; }\n  .btn-black:not([disabled]):not(.disabled):active, .btn-black:not([disabled]):not(.disabled).active,\n  .show > .btn-black.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: black !important; }\n  .btn-black:not([disabled]):not(.disabled):active:focus, .btn-black:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-black.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.black-ic {\n  color: #000 !important; }\n  .black-ic:hover, .black-ic:focus {\n    color: #000; }\n\n.btn-outline-black {\n  border: 2px solid #000 !important;\n  background-color: transparent !important;\n  color: #000 !important; }\n  .btn-outline-black:hover, .btn-outline-black:focus, .btn-outline-black:active, .btn-outline-black:active:focus, .btn-outline-black.active {\n    border-color: #000 !important;\n    background-color: transparent !important;\n    color: #000 !important; }\n  .btn-outline-black:not([disabled]):not(.disabled):active, .btn-outline-black:not([disabled]):not(.disabled).active,\n  .show > .btn-outline-black.dropdown-toggle {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    background-color: transparent !important;\n    border-color: #000 !important; }\n  .btn-outline-black:not([disabled]):not(.disabled):active:focus, .btn-outline-black:not([disabled]):not(.disabled).active:focus,\n  .show > .btn-outline-black.dropdown-toggle:focus {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); }\n\n.card {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  border: 0;\n  font-weight: 400; }\n  .card[class*=\"border\"] {\n    border: 1px solid #9e9e9e;\n    -webkit-box-shadow: none;\n    box-shadow: none; }\n  .card .card-body h1, .card .card-body h2, .card .card-body h3, .card .card-body h4, .card .card-body h5, .card .card-body h6 {\n    font-weight: 400; }\n  .card .card-body .card-title a {\n    -webkit-transition: 0.2s ease-in-out;\n    -o-transition: 0.2s ease-in-out;\n    transition: 0.2s ease-in-out; }\n    .card .card-body .card-title a:hover {\n      -webkit-transition: 0.2s ease-in-out;\n      -o-transition: 0.2s ease-in-out;\n      transition: 0.2s ease-in-out; }\n  .card .card-body .card-text {\n    color: #747373;\n    font-size: 0.9rem;\n    font-weight: 400; }\n\n.dropdown .dropdown-menu .dropdown-item:active {\n  background-color: #757575; }\n\n.md-form.input-group label {\n  top: 0;\n  margin-bottom: 0; }\n\n.md-form.input-group .input-group-text {\n  background-color: #e0e0e0; }\n  .md-form.input-group .input-group-text.md-addon {\n    border: none;\n    background-color: transparent;\n    font-weight: 500; }\n\n.md-form.input-group .form-control {\n  margin: 0;\n  padding: 0.375rem 0.75rem; }\n\n.input-default-wrapper {\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex; }\n  .input-default-wrapper .input-default-js {\n    width: 0.1px;\n    height: 0.1px;\n    opacity: 0;\n    overflow: hidden;\n    position: absolute;\n    z-index: -1; }\n    .input-default-wrapper .input-default-js:focus + label {\n      border-color: #80bdff;\n      outline: 0;\n      -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);\n      box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15); }\n    .input-default-wrapper .input-default-js + label {\n      -o-text-overflow: ellipsis;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      cursor: pointer;\n      display: inline-block;\n      overflow: hidden;\n      color: #000;\n      border: 1px solid rgba(33, 47, 41, 0.2);\n      background-color: transparent;\n      padding: 0; }\n      .input-default-wrapper .input-default-js + label span {\n        padding: 0.425rem .7rem;\n        color: #495057; }\n        .input-default-wrapper .input-default-js + label span:not(.span-browse) {\n          width: 200px;\n          display: inline-block;\n          -o-text-overflow: ellipsis;\n          text-overflow: ellipsis;\n          white-space: nowrap;\n          overflow: hidden;\n          vertical-align: top; }\n      .input-default-wrapper .input-default-js + label .span-browse {\n        height: 100%;\n        color: #000;\n        background-color: #E8EBEF;\n        border-left: 1px solid rgba(33, 47, 41, 0.2);\n        display: inline-block;\n        padding: 0.425rem .8rem;\n        color: #495057; }\n\n@media screen and (max-width: 50em) {\n  .input-default-js + label .span-browse {\n    display: block; } }\n\n.label-for-default-js {\n  width: 100%;\n  height: calc(2.25rem + 2px); }\n\n.navbar {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  font-weight: 300; }\n  .navbar form .md-form input {\n    margin: 0 5px 1px 8px; }\n  .navbar .breadcrumb {\n    margin: 0;\n    padding: 0.3rem 0 0 1rem;\n    background-color: inherit;\n    font-size: 15px;\n    font-weight: 300; }\n    .navbar .breadcrumb .breadcrumb-item {\n      color: #fff; }\n      .navbar .breadcrumb .breadcrumb-item.active {\n        color: rgba(255, 255, 255, 0.65); }\n      .navbar .breadcrumb .breadcrumb-item:before {\n        color: rgba(255, 255, 255, 0.65); }\n  .navbar .navbar-toggler {\n    outline: 0;\n    border-width: 0; }\n  .navbar .nav-flex-icons {\n    -webkit-box-orient: horizontal;\n    -webkit-box-direction: normal;\n    -webkit-flex-direction: row;\n    -ms-flex-direction: row;\n    flex-direction: row; }\n  @media (max-width: 992px) {\n    .navbar .container {\n      width: 100%; }\n      .navbar .container .navbar-toggler-right {\n        right: 0; } }\n  .navbar .nav-item .nav-link {\n    display: block; }\n    .navbar .nav-item .nav-link.disabled:active {\n      pointer-events: none; }\n    .navbar .nav-item .nav-link .fas, .navbar .nav-item .nav-link .fab, .navbar .nav-item .nav-link .far {\n      padding-right: 3px;\n      padding-left: 3px; }\n    @media (max-width: 992px) {\n      .navbar .nav-item .nav-link {\n        padding-right: 6px;\n        padding-left: 6px; } }\n  .navbar .dropdown-menu {\n    position: absolute !important;\n    margin-top: 0; }\n    .navbar .dropdown-menu a {\n      padding: 10px;\n      font-size: 0.9375rem;\n      font-weight: 300;\n      color: #000; }\n    @media (max-width: 600px) {\n      .navbar .dropdown-menu form {\n        width: 17rem; } }\n    @media (min-width: 600px) {\n      .navbar .dropdown-menu form {\n        width: 22rem; } }\n  .navbar.navbar-light .navbar-nav .nav-item .nav-link.disbled {\n    color: rgba(0, 0, 0, 0.3); }\n    .navbar.navbar-light .navbar-nav .nav-item .nav-link.disbled:hover {\n      color: rgba(0, 0, 0, 0.3); }\n  .navbar.navbar-light .navbar-toggler-icon {\n    background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\");\n    cursor: pointer; }\n  .navbar.navbar-light .breadcrumb .nav-item .nav-link,\n  .navbar.navbar-light .navbar-nav .nav-item .nav-link {\n    color: #000;\n    -webkit-transition: 0.35s;\n    -o-transition: 0.35s;\n    transition: 0.35s; }\n    .navbar.navbar-light .breadcrumb .nav-item .nav-link:hover,\n    .navbar.navbar-light .navbar-nav .nav-item .nav-link:hover {\n      color: rgba(0, 0, 0, 0.7); }\n  .navbar.navbar-light .breadcrumb .nav-item.active > .nav-link,\n  .navbar.navbar-light .navbar-nav .nav-item.active > .nav-link {\n    background-color: rgba(0, 0, 0, 0.1); }\n    .navbar.navbar-light .breadcrumb .nav-item.active > .nav-link:hover,\n    .navbar.navbar-light .navbar-nav .nav-item.active > .nav-link:hover {\n      color: #000; }\n  .navbar.navbar-light .navbar-toggler {\n    color: #000; }\n  .navbar.navbar-light form .md-form input {\n    border-bottom: 1px solid #000; }\n    .navbar.navbar-light form .md-form input:focus:not([readonly]) {\n      border-color: #4285f4; }\n  .navbar.navbar-light form .md-form .form-control {\n    color: #000; }\n    .navbar.navbar-light form .md-form .form-control::-webkit-input-placeholder {\n      color: #000;\n      font-weight: 300; }\n    .navbar.navbar-light form .md-form .form-control::-ms-input-placeholder {\n      color: #000;\n      font-weight: 300; }\n    .navbar.navbar-light form .md-form .form-control::placeholder {\n      color: #000;\n      font-weight: 300; }\n  .navbar.navbar-dark .navbar-nav .nav-item .nav-link.disbled {\n    color: rgba(255, 255, 255, 0.25); }\n    .navbar.navbar-dark .navbar-nav .nav-item .nav-link.disbled:hover {\n      color: rgba(255, 255, 255, 0.25); }\n  .navbar.navbar-dark .navbar-toggler-icon {\n    background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\");\n    cursor: pointer; }\n  .navbar.navbar-dark .breadcrumb .nav-item .nav-link,\n  .navbar.navbar-dark .navbar-nav .nav-item .nav-link {\n    color: #fff;\n    -webkit-transition: 0.35s;\n    -o-transition: 0.35s;\n    transition: 0.35s; }\n    .navbar.navbar-dark .breadcrumb .nav-item .nav-link:hover,\n    .navbar.navbar-dark .navbar-nav .nav-item .nav-link:hover {\n      color: rgba(255, 255, 255, 0.75); }\n  .navbar.navbar-dark .breadcrumb .nav-item.active > .nav-link,\n  .navbar.navbar-dark .navbar-nav .nav-item.active > .nav-link {\n    background-color: rgba(255, 255, 255, 0.1); }\n    .navbar.navbar-dark .breadcrumb .nav-item.active > .nav-link:hover,\n    .navbar.navbar-dark .navbar-nav .nav-item.active > .nav-link:hover {\n      color: #fff; }\n  .navbar.navbar-dark .navbar-toggler {\n    color: #fff; }\n  .navbar.navbar-dark form .md-form input {\n    border-bottom: 1px solid #fff; }\n    .navbar.navbar-dark form .md-form input:focus:not([readonly]) {\n      border-color: #4285f4; }\n  .navbar.navbar-dark form .md-form .form-control {\n    color: #fff; }\n    .navbar.navbar-dark form .md-form .form-control::-webkit-input-placeholder {\n      color: #fff;\n      font-weight: 300; }\n    .navbar.navbar-dark form .md-form .form-control::-ms-input-placeholder {\n      color: #fff;\n      font-weight: 300; }\n    .navbar.navbar-dark form .md-form .form-control::placeholder {\n      color: #fff;\n      font-weight: 300; }\n  @media (min-width: 600px) {\n    .navbar.scrolling-navbar {\n      -webkit-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;\n      -o-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;\n      transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;\n      padding-top: 12px;\n      padding-bottom: 12px; }\n      .navbar.scrolling-navbar .navbar-nav > li {\n        -webkit-transition-duration: 1s;\n        -o-transition-duration: 1s;\n        transition-duration: 1s; }\n      .navbar.scrolling-navbar.top-nav-collapse {\n        padding-top: 5px;\n        padding-bottom: 5px; } }\n\n.pagination .page-item.active .page-link {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  -webkit-transition: all 0.2s linear;\n  -o-transition: all 0.2s linear;\n  transition: all 0.2s linear;\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem;\n  background-color: #4285f4;\n  color: #fff; }\n  .pagination .page-item.active .page-link:hover {\n    background-color: #4285f4; }\n\n.pagination .page-item.disabled .page-link {\n  color: #868e96; }\n\n.pagination .page-item .page-link {\n  -webkit-transition: all 0.3s linear;\n  -o-transition: all 0.3s linear;\n  transition: all 0.3s linear;\n  outline: 0;\n  border: 0;\n  background-color: transparent;\n  font-size: 0.9rem;\n  color: #212529; }\n  .pagination .page-item .page-link:hover {\n    -webkit-transition: all 0.3s linear;\n    -o-transition: all 0.3s linear;\n    transition: all 0.3s linear;\n    -webkit-border-radius: 0.125rem;\n    border-radius: 0.125rem;\n    background-color: #eee; }\n  .pagination .page-item .page-link:focus {\n    background-color: transparent; }\n\n.pagination.pagination-lg .page-item .page-link {\n  font-size: 1rem; }\n\n.pagination.pagination-sm .page-item .page-link {\n  font-size: 0.8rem; }\n\n.pagination.pagination-circle .page-item .page-link {\n  margin-left: 2px;\n  margin-right: 2px;\n  -webkit-border-radius: 50%;\n  border-radius: 50%; }\n  .pagination.pagination-circle .page-item .page-link:hover {\n    -webkit-border-radius: 50%;\n    border-radius: 50%; }\n\n.pagination.pagination-circle .page-item.active .page-link {\n  -webkit-border-radius: 50%;\n  border-radius: 50%; }\n\n.pagination.pg-blue .page-item.active .page-link {\n  background-color: #4285f4; }\n  .pagination.pg-blue .page-item.active .page-link:hover {\n    background-color: #4285f4; }\n\n.pagination.pg-red .page-item.active .page-link {\n  background-color: #ff3547; }\n  .pagination.pg-red .page-item.active .page-link:hover {\n    background-color: #ff3547; }\n\n.pagination.pg-teal .page-item.active .page-link {\n  background-color: #2bbbad; }\n  .pagination.pg-teal .page-item.active .page-link:hover {\n    background-color: #2bbbad; }\n\n.pagination.pg-dark-grey .page-item.active .page-link {\n  background-color: #37474f; }\n  .pagination.pg-dark-grey .page-item.active .page-link:hover {\n    background-color: #37474f; }\n\n.pagination.pg-dark .page-item.active .page-link {\n  background-color: #2e2e2e; }\n  .pagination.pg-dark .page-item.active .page-link:hover {\n    background-color: #2e2e2e; }\n\n.pagination.pg-blue-grey .page-item.active .page-link {\n  background-color: #3f729b; }\n  .pagination.pg-blue-grey .page-item.active .page-link:hover {\n    background-color: #3f729b; }\n\n.pagination.pg-amber .page-item.active .page-link {\n  background-color: #ff6f00; }\n  .pagination.pg-amber .page-item.active .page-link:hover {\n    background-color: #ff6f00; }\n\n.pagination.pg-purple .page-item.active .page-link {\n  background-color: #5e35b1; }\n  .pagination.pg-purple .page-item.active .page-link:hover {\n    background-color: #5e35b1; }\n\n.badge {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem;\n  color: #fff !important; }\n\n.badge-pill {\n  -webkit-border-radius: 10rem;\n  border-radius: 10rem;\n  padding-right: 0.6em;\n  padding-left: 0.6em; }\n\n.badge-primary {\n  background-color: #4285f4 !important;\n  color: #fff !important; }\n\n.badge-danger {\n  background-color: #ff3547 !important;\n  color: #fff !important; }\n\n.badge-warning {\n  background-color: #ffbb33 !important;\n  color: #fff !important; }\n\n.badge-success {\n  background-color: #00c851 !important;\n  color: #fff !important; }\n\n.badge-info {\n  background-color: #33b5e5 !important;\n  color: #fff !important; }\n\n.badge-default {\n  background-color: #2bbbad !important;\n  color: #fff !important; }\n\n.badge-secondary {\n  background-color: #aa66cc !important;\n  color: #fff !important; }\n\n.badge-dark {\n  background-color: #212121 !important;\n  color: #fff !important; }\n\n.badge-light {\n  background-color: #e0e0e0 !important;\n  color: #000 !important; }\n\nbody.modal-open {\n  overflow: auto;\n  padding-right: 0 !important; }\n\nbody.scrollable {\n  overflow-y: auto; }\n\n.modal-dialog .modal-content {\n  -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n  border: 0;\n  -webkit-border-radius: 0.125rem;\n  border-radius: 0.125rem; }\n  .modal-dialog .modal-content .modal-header {\n    -webkit-border-top-left-radius: 0.125rem;\n    border-top-left-radius: 0.125rem;\n    -webkit-border-top-right-radius: 0.125rem;\n    border-top-right-radius: 0.125rem; }\n\n.modal-dialog.cascading-modal {\n  margin-top: 10%; }\n  .modal-dialog.cascading-modal .close {\n    opacity: 1;\n    text-shadow: none;\n    color: #fff;\n    outline: 0; }\n  .modal-dialog.cascading-modal .modal-header {\n    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);\n    margin: -2rem 1rem 1rem 1rem;\n    border: none;\n    -webkit-border-radius: 0.125rem;\n    border-radius: 0.125rem;\n    padding: 1.5rem;\n    text-align: center; }\n    .modal-dialog.cascading-modal .modal-header .close {\n      margin-right: 1rem; }\n    .modal-dialog.cascading-modal .modal-header .title {\n      margin-bottom: 0;\n      width: 100%;\n      font-size: 1.25rem; }\n      .modal-dialog.cascading-modal .modal-header .title .fas, .modal-dialog.cascading-modal .modal-header .title .fab, .modal-dialog.cascading-modal .modal-header .title .far {\n        margin-right: 9px; }\n    .modal-dialog.cascading-modal .modal-header .social-buttons {\n      margin-top: 1.5rem; }\n      .modal-dialog.cascading-modal .modal-header .social-buttons a {\n        font-size: 1rem; }\n  .modal-dialog.cascading-modal .modal-c-tabs .md-tabs {\n    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n    margin: -1.5rem 1rem 0 1rem;\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -ms-flexbox;\n    display: flex; }\n    .modal-dialog.cascading-modal .modal-c-tabs .md-tabs li {\n      -webkit-box-flex: 1;\n      -webkit-flex: 1;\n      -ms-flex: 1;\n      flex: 1; }\n      .modal-dialog.cascading-modal .modal-c-tabs .md-tabs li a {\n        text-align: center; }\n  .modal-dialog.cascading-modal .modal-c-tabs .tab-content {\n    padding: 1.7rem 0 0 0; }\n  .modal-dialog.cascading-modal .modal-body,\n  .modal-dialog.cascading-modal .modal-footer {\n    padding-left: 2rem;\n    padding-right: 2rem;\n    color: #616161; }\n    .modal-dialog.cascading-modal .modal-body .additional-option,\n    .modal-dialog.cascading-modal .modal-footer .additional-option {\n      margin-top: 1rem;\n      text-align: center; }\n  .modal-dialog.cascading-modal.modal-avatar {\n    margin-top: 6rem; }\n    .modal-dialog.cascading-modal.modal-avatar .modal-header {\n      -webkit-box-shadow: none;\n      box-shadow: none;\n      margin: -6rem 0 -1rem; }\n      .modal-dialog.cascading-modal.modal-avatar .modal-header img {\n        width: 130px;\n        -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n        box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n        margin-left: auto;\n        margin-right: auto; }\n\n.modal-dialog.modal-notify .heading {\n  margin: 0;\n  padding: 0.3rem;\n  font-size: 1.15rem;\n  color: #fff; }\n\n.modal-dialog.modal-notify .modal-header {\n  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n  border: 0; }\n\n.modal-dialog.modal-notify .close {\n  opacity: 1; }\n\n.modal-dialog.modal-notify .modal-body {\n  padding: 1.5rem;\n  color: #616161; }\n\n.modal-dialog.modal-notify.modal-primary .modal-header {\n  background-color: #4285f4; }\n\n.modal-dialog.modal-notify.modal-primary .fas, .modal-dialog.modal-notify.modal-primary .fab, .modal-dialog.modal-notify.modal-primary .far {\n  color: #4285f4; }\n\n.modal-dialog.modal-notify.modal-primary .badge {\n  background-color: #4285f4; }\n\n.modal-dialog.modal-notify.modal-primary .btn .fas, .modal-dialog.modal-notify.modal-primary .btn .fab, .modal-dialog.modal-notify.modal-primary .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-primary .btn.btn-outline-primary .fas, .modal-dialog.modal-notify.modal-primary .btn.btn-outline-primary .fab, .modal-dialog.modal-notify.modal-primary .btn.btn-outline-primary .far {\n  color: #4285f4; }\n\n.modal-dialog.modal-notify.modal-danger .modal-header {\n  background-color: #ff3547; }\n\n.modal-dialog.modal-notify.modal-danger .fas, .modal-dialog.modal-notify.modal-danger .fab, .modal-dialog.modal-notify.modal-danger .far {\n  color: #ff3547; }\n\n.modal-dialog.modal-notify.modal-danger .badge {\n  background-color: #ff3547; }\n\n.modal-dialog.modal-notify.modal-danger .btn .fas, .modal-dialog.modal-notify.modal-danger .btn .fab, .modal-dialog.modal-notify.modal-danger .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-danger .btn.btn-outline-danger .fas, .modal-dialog.modal-notify.modal-danger .btn.btn-outline-danger .fab, .modal-dialog.modal-notify.modal-danger .btn.btn-outline-danger .far {\n  color: #ff3547; }\n\n.modal-dialog.modal-notify.modal-warning .modal-header {\n  background-color: #ffbb33; }\n\n.modal-dialog.modal-notify.modal-warning .fas, .modal-dialog.modal-notify.modal-warning .fab, .modal-dialog.modal-notify.modal-warning .far {\n  color: #ffbb33; }\n\n.modal-dialog.modal-notify.modal-warning .badge {\n  background-color: #ffbb33; }\n\n.modal-dialog.modal-notify.modal-warning .btn .fas, .modal-dialog.modal-notify.modal-warning .btn .fab, .modal-dialog.modal-notify.modal-warning .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-warning .btn.btn-outline-warning .fas, .modal-dialog.modal-notify.modal-warning .btn.btn-outline-warning .fab, .modal-dialog.modal-notify.modal-warning .btn.btn-outline-warning .far {\n  color: #ffbb33; }\n\n.modal-dialog.modal-notify.modal-success .modal-header {\n  background-color: #00c851; }\n\n.modal-dialog.modal-notify.modal-success .fas, .modal-dialog.modal-notify.modal-success .fab, .modal-dialog.modal-notify.modal-success .far {\n  color: #00c851; }\n\n.modal-dialog.modal-notify.modal-success .badge {\n  background-color: #00c851; }\n\n.modal-dialog.modal-notify.modal-success .btn .fas, .modal-dialog.modal-notify.modal-success .btn .fab, .modal-dialog.modal-notify.modal-success .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-success .btn.btn-outline-success .fas, .modal-dialog.modal-notify.modal-success .btn.btn-outline-success .fab, .modal-dialog.modal-notify.modal-success .btn.btn-outline-success .far {\n  color: #00c851; }\n\n.modal-dialog.modal-notify.modal-info .modal-header {\n  background-color: #33b5e5; }\n\n.modal-dialog.modal-notify.modal-info .fas, .modal-dialog.modal-notify.modal-info .fab, .modal-dialog.modal-notify.modal-info .far {\n  color: #33b5e5; }\n\n.modal-dialog.modal-notify.modal-info .badge {\n  background-color: #33b5e5; }\n\n.modal-dialog.modal-notify.modal-info .btn .fas, .modal-dialog.modal-notify.modal-info .btn .fab, .modal-dialog.modal-notify.modal-info .btn .far {\n  color: #fff; }\n\n.modal-dialog.modal-notify.modal-info .btn.btn-outline-info .fas, .modal-dialog.modal-notify.modal-info .btn.btn-outline-info .fab, .modal-dialog.modal-notify.modal-info .btn.btn-outline-info .far {\n  color: #33b5e5; }\n\n.modal {\n  padding-right: 0 !important; }\n  @media (min-width: 768px) {\n    .modal .modal-dialog.modal-top {\n      top: 0; }\n    .modal .modal-dialog.modal-left {\n      left: 0; }\n    .modal .modal-dialog.modal-right {\n      right: 0; }\n    .modal .modal-dialog.modal-bottom {\n      bottom: 0; }\n    .modal .modal-dialog.modal-top-left {\n      top: 10px;\n      left: 10px; }\n    .modal .modal-dialog.modal-top-right {\n      top: 10px;\n      right: 10px; }\n    .modal .modal-dialog.modal-bottom-left {\n      bottom: 10px;\n      left: 10px; }\n    .modal .modal-dialog.modal-bottom-right {\n      bottom: 10px;\n      right: 10px; } }\n  .modal.fade.top:not(.show) .modal-dialog {\n    -webkit-transform: translate3d(0, -25%, 0);\n    transform: translate3d(0, -25%, 0); }\n  .modal.fade.left:not(.show) .modal-dialog {\n    -webkit-transform: translate3d(-25%, 0, 0);\n    transform: translate3d(-25%, 0, 0); }\n  .modal.fade.right:not(.show) .modal-dialog {\n    -webkit-transform: translate3d(25%, 0, 0);\n    transform: translate3d(25%, 0, 0); }\n  .modal.fade.bottom:not(.show) .modal-dialog {\n    -webkit-transform: translate3d(0, 25%, 0);\n    transform: translate3d(0, 25%, 0); }\n  @media (min-width: 992px) {\n    .modal.modal-scrolling {\n      position: relative; }\n      .modal.modal-scrolling .modal-dialog {\n        position: fixed;\n        z-index: 1050; }\n    .modal.modal-content-clickable {\n      top: auto;\n      bottom: auto; }\n      .modal.modal-content-clickable .modal-dialog {\n        position: fixed; }\n    .modal .modal-fluid {\n      width: 100%;\n      max-width: 100%; }\n      .modal .modal-fluid .modal-content {\n        width: 100%; }\n    .modal .modal-frame {\n      position: absolute;\n      margin: 0;\n      width: 100%;\n      max-width: 100%; }\n      .modal .modal-frame.modal-bottom {\n        bottom: 0; }\n    .modal .modal-full-height {\n      position: absolute;\n      display: -webkit-box;\n      display: -webkit-flex;\n      display: -ms-flexbox;\n      display: flex;\n      margin: 0;\n      width: 400px;\n      min-height: 100%;\n      height: auto;\n      min-height: 100%;\n      top: 0;\n      right: 0; }\n      .modal .modal-full-height.modal-top, .modal .modal-full-height.modal-bottom {\n        display: block;\n        width: 100%;\n        max-width: 100%;\n        height: auto; }\n      .modal .modal-full-height.modal-top {\n        bottom: auto; }\n      .modal .modal-full-height.modal-bottom {\n        min-height: 0;\n        top: auto; }\n      .modal .modal-full-height .modal-content {\n        width: 100%; }\n      .modal .modal-full-height.modal-lg {\n        width: 90%;\n        max-width: 90%; } }\n    @media (min-width: 992px) and (min-width: 992px) {\n      .modal .modal-full-height.modal-lg {\n        width: 800px;\n        max-width: 800px; } }\n    @media (min-width: 992px) and (min-width: 1200px) {\n      .modal .modal-full-height.modal-lg {\n        width: 1000px;\n        max-width: 1000px; } }\n  @media (min-width: 992px) {\n    .modal .modal-side {\n      position: absolute;\n      bottom: 10px;\n      right: 10px;\n      margin: 0;\n      width: 400px; } }\n\n.carousel .carousel-control-prev-icon,\n.carousel .carousel-control-next-icon {\n  width: 20px;\n  height: 20px; }\n\n.carousel .carousel-control-prev-icon {\n  background-image: url(../img/svg/arrow_left.svg); }\n\n.carousel .carousel-control-next-icon {\n  background-image: url(../img/svg/arrow_right.svg); }\n\n.carousel .carousel-indicators li {\n  width: 0.625rem;\n  height: 0.625rem;\n  -webkit-border-radius: 50%;\n  border-radius: 50%;\n  cursor: pointer; }\n\n.carousel-fade .carousel-item {\n  opacity: 0;\n  -webkit-transition-duration: 0.6s;\n  -o-transition-duration: 0.6s;\n  transition-duration: 0.6s;\n  -webkit-transition-property: opacity;\n  -o-transition-property: opacity;\n  transition-property: opacity; }\n\n.carousel-fade .carousel-item.active,\n.carousel-fade .carousel-item-next.carousel-item-left,\n.carousel-fade .carousel-item-prev.carousel-item-right {\n  opacity: 1; }\n\n.carousel-fade .carousel-item-left.active,\n.carousel-fade .carousel-item-right.active {\n  opacity: 0; }\n\n.carousel-fade .carousel-item-next,\n.carousel-fade .carousel-item-prev,\n.carousel-fade .carousel-item.active,\n.carousel-fade .carousel-item-left.active,\n.carousel-fade .carousel-item-prev.active {\n  -webkit-transform: translateX(0);\n  -ms-transform: translateX(0);\n  transform: translateX(0); }\n  @supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) {\n    .carousel-fade .carousel-item-next,\n    .carousel-fade .carousel-item-prev,\n    .carousel-fade .carousel-item.active,\n    .carousel-fade .carousel-item-left.active,\n    .carousel-fade .carousel-item-prev.active {\n      -webkit-transform: translate3d(0, 0, 0);\n      transform: translate3d(0, 0, 0); } }\n\n.md-form {\n  position: relative;\n  margin-top: 1.5rem;\n  margin-bottom: 1.5rem; }\n  .md-form input[type=text],\n  .md-form input[type=password],\n  .md-form input[type=email],\n  .md-form input[type=url],\n  .md-form input[type=time],\n  .md-form input[type=date],\n  .md-form input[type=datetime-local],\n  .md-form input[type=tel],\n  .md-form input[type=number],\n  .md-form input[type=search-md],\n  .md-form input[type=search],\n  .md-form textarea.md-textarea {\n    -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n    transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n    -o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;\n    outline: none;\n    -webkit-box-shadow: none;\n    box-shadow: none;\n    border: none;\n    border-bottom: 1px solid #ced4da;\n    -webkit-border-radius: 0;\n    border-radius: 0;\n    -webkit-box-sizing: content-box;\n    box-sizing: content-box;\n    background-color: transparent; }\n    .md-form input[type=text]:focus:not([readonly]),\n    .md-form input[type=password]:focus:not([readonly]),\n    .md-form input[type=email]:focus:not([readonly]),\n    .md-form input[type=url]:focus:not([readonly]),\n    .md-form input[type=time]:focus:not([readonly]),\n    .md-form input[type=date]:focus:not([readonly]),\n    .md-form input[type=datetime-local]:focus:not([readonly]),\n    .md-form input[type=tel]:focus:not([readonly]),\n    .md-form input[type=number]:focus:not([readonly]),\n    .md-form input[type=search-md]:focus:not([readonly]),\n    .md-form input[type=search]:focus:not([readonly]),\n    .md-form textarea.md-textarea:focus:not([readonly]) {\n      -webkit-box-shadow: 0 1px 0 0 #4285f4;\n      box-shadow: 0 1px 0 0 #4285f4;\n      border-bottom: 1px solid #4285f4; }\n      .md-form input[type=text]:focus:not([readonly]) + label,\n      .md-form input[type=password]:focus:not([readonly]) + label,\n      .md-form input[type=email]:focus:not([readonly]) + label,\n      .md-form input[type=url]:focus:not([readonly]) + label,\n      .md-form input[type=time]:focus:not([readonly]) + label,\n      .md-form input[type=date]:focus:not([readonly]) + label,\n      .md-form input[type=datetime-local]:focus:not([readonly]) + label,\n      .md-form input[type=tel]:focus:not([readonly]) + label,\n      .md-form input[type=number]:focus:not([readonly]) + label,\n      .md-form input[type=search-md]:focus:not([readonly]) + label,\n      .md-form input[type=search]:focus:not([readonly]) + label,\n      .md-form textarea.md-textarea:focus:not([readonly]) + label {\n        color: #4285f4; }\n    .md-form input[type=text] + label:after,\n    .md-form input[type=password] + label:after,\n    .md-form input[type=email] + label:after,\n    .md-form input[type=url] + label:after,\n    .md-form input[type=time] + label:after,\n    .md-form input[type=date] + label:after,\n    .md-form input[type=datetime-local] + label:after,\n    .md-form input[type=tel] + label:after,\n    .md-form input[type=number] + label:after,\n    .md-form input[type=search-md] + label:after,\n    .md-form input[type=search] + label:after,\n    .md-form textarea.md-textarea + label:after {\n      content: \"\";\n      position: absolute;\n      top: 65px;\n      display: block;\n      opacity: 0;\n      -webkit-transition: 0.2s opacity ease-out, 0.2s color ease-out;\n      -o-transition: 0.2s opacity ease-out, 0.2s color ease-out;\n      transition: 0.2s opacity ease-out, 0.2s color ease-out; }\n    .md-form input[type=text].valid, .md-form input[type=text]:focus.valid,\n    .md-form input[type=password].valid,\n    .md-form input[type=password]:focus.valid,\n    .md-form input[type=email].valid,\n    .md-form input[type=email]:focus.valid,\n    .md-form input[type=url].valid,\n    .md-form input[type=url]:focus.valid,\n    .md-form input[type=time].valid,\n    .md-form input[type=time]:focus.valid,\n    .md-form input[type=date].valid,\n    .md-form input[type=date]:focus.valid,\n    .md-form input[type=datetime-local].valid,\n    .md-form input[type=datetime-local]:focus.valid,\n    .md-form input[type=tel].valid,\n    .md-form input[type=tel]:focus.valid,\n    .md-form input[type=number].valid,\n    .md-form input[type=number]:focus.valid,\n    .md-form input[type=search-md].valid,\n    .md-form input[type=search-md]:focus.valid,\n    .md-form input[type=search].valid,\n    .md-form input[type=search]:focus.valid,\n    .md-form textarea.md-textarea.valid,\n    .md-form textarea.md-textarea:focus.valid {\n      border-bottom: 1px solid #00c851;\n      -webkit-box-shadow: 0 1px 0 0 #00c851;\n      box-shadow: 0 1px 0 0 #00c851; }\n    .md-form input[type=text].valid + label:after, .md-form input[type=text]:focus.valid + label:after,\n    .md-form input[type=password].valid + label:after,\n    .md-form input[type=password]:focus.valid + label:after,\n    .md-form input[type=email].valid + label:after,\n    .md-form input[type=email]:focus.valid + label:after,\n    .md-form input[type=url].valid + label:after,\n    .md-form input[type=url]:focus.valid + label:after,\n    .md-form input[type=time].valid + label:after,\n    .md-form input[type=time]:focus.valid + label:after,\n    .md-form input[type=date].valid + label:after,\n    .md-form input[type=date]:focus.valid + label:after,\n    .md-form input[type=datetime-local].valid + label:after,\n    .md-form input[type=datetime-local]:focus.valid + label:after,\n    .md-form input[type=tel].valid + label:after,\n    .md-form input[type=tel]:focus.valid + label:after,\n    .md-form input[type=number].valid + label:after,\n    .md-form input[type=number]:focus.valid + label:after,\n    .md-form input[type=search-md].valid + label:after,\n    .md-form input[type=search-md]:focus.valid + label:after,\n    .md-form input[type=search].valid + label:after,\n    .md-form input[type=search]:focus.valid + label:after,\n    .md-form textarea.md-textarea.valid + label:after,\n    .md-form textarea.md-textarea:focus.valid + label:after {\n      content: attr(data-success);\n      color: #00c851;\n      opacity: 1; }\n    .md-form input[type=text].invalid, .md-form input[type=text]:focus.invalid,\n    .md-form input[type=password].invalid,\n    .md-form input[type=password]:focus.invalid,\n    .md-form input[type=email].invalid,\n    .md-form input[type=email]:focus.invalid,\n    .md-form input[type=url].invalid,\n    .md-form input[type=url]:focus.invalid,\n    .md-form input[type=time].invalid,\n    .md-form input[type=time]:focus.invalid,\n    .md-form input[type=date].invalid,\n    .md-form input[type=date]:focus.invalid,\n    .md-form input[type=datetime-local].invalid,\n    .md-form input[type=datetime-local]:focus.invalid,\n    .md-form input[type=tel].invalid,\n    .md-form input[type=tel]:focus.invalid,\n    .md-form input[type=number].invalid,\n    .md-form input[type=number]:focus.invalid,\n    .md-form input[type=search-md].invalid,\n    .md-form input[type=search-md]:focus.invalid,\n    .md-form input[type=search].invalid,\n    .md-form input[type=search]:focus.invalid,\n    .md-form textarea.md-textarea.invalid,\n    .md-form textarea.md-textarea:focus.invalid {\n      border-bottom: 1px solid #f44336;\n      -webkit-box-shadow: 0 1px 0 0 #f44336;\n      box-shadow: 0 1px 0 0 #f44336; }\n    .md-form input[type=text].invalid + label:after, .md-form input[type=text]:focus.invalid + label:after,\n    .md-form input[type=password].invalid + label:after,\n    .md-form input[type=password]:focus.invalid + label:after,\n    .md-form input[type=email].invalid + label:after,\n    .md-form input[type=email]:focus.invalid + label:after,\n    .md-form input[type=url].invalid + label:after,\n    .md-form input[type=url]:focus.invalid + label:after,\n    .md-form input[type=time].invalid + label:after,\n    .md-form input[type=time]:focus.invalid + label:after,\n    .md-form input[type=date].invalid + label:after,\n    .md-form input[type=date]:focus.invalid + label:after,\n    .md-form input[type=datetime-local].invalid + label:after,\n    .md-form input[type=datetime-local]:focus.invalid + label:after,\n    .md-form input[type=tel].invalid + label:after,\n    .md-form input[type=tel]:focus.invalid + label:after,\n    .md-form input[type=number].invalid + label:after,\n    .md-form input[type=number]:focus.invalid + label:after,\n    .md-form input[type=search-md].invalid + label:after,\n    .md-form input[type=search-md]:focus.invalid + label:after,\n    .md-form input[type=search].invalid + label:after,\n    .md-form input[type=search]:focus.invalid + label:after,\n    .md-form textarea.md-textarea.invalid + label:after,\n    .md-form textarea.md-textarea:focus.invalid + label:after {\n      content: attr(data-error);\n      color: #f44336;\n      opacity: 1; }\n    .md-form input[type=text].form-control.valid + label:after,\n    .md-form input[type=text].form-control:focus.valid + label:after,\n    .md-form input[type=password].form-control.valid + label:after,\n    .md-form input[type=password].form-control:focus.valid + label:after,\n    .md-form input[type=email].form-control.valid + label:after,\n    .md-form input[type=email].form-control:focus.valid + label:after,\n    .md-form input[type=url].form-control.valid + label:after,\n    .md-form input[type=url].form-control:focus.valid + label:after,\n    .md-form input[type=time].form-control.valid + label:after,\n    .md-form input[type=time].form-control:focus.valid + label:after,\n    .md-form input[type=date].form-control.valid + label:after,\n    .md-form input[type=date].form-control:focus.valid + label:after,\n    .md-form input[type=datetime-local].form-control.valid + label:after,\n    .md-form input[type=datetime-local].form-control:focus.valid + label:after,\n    .md-form input[type=tel].form-control.valid + label:after,\n    .md-form input[type=tel].form-control:focus.valid + label:after,\n    .md-form input[type=number].form-control.valid + label:after,\n    .md-form input[type=number].form-control:focus.valid + label:after,\n    .md-form input[type=search-md].form-control.valid + label:after,\n    .md-form input[type=search-md].form-control:focus.valid + label:after,\n    .md-form input[type=search].form-control.valid + label:after,\n    .md-form input[type=search].form-control:focus.valid + label:after,\n    .md-form textarea.md-textarea.form-control.valid + label:after,\n    .md-form textarea.md-textarea.form-control:focus.valid + label:after {\n      top: 3.56rem; }\n    .md-form input[type=text].form-control.invalid + label:after,\n    .md-form input[type=text].form-control:focus.invalid + label:after,\n    .md-form input[type=password].form-control.invalid + label:after,\n    .md-form input[type=password].form-control:focus.invalid + label:after,\n    .md-form input[type=email].form-control.invalid + label:after,\n    .md-form input[type=email].form-control:focus.invalid + label:after,\n    .md-form input[type=url].form-control.invalid + label:after,\n    .md-form input[type=url].form-control:focus.invalid + label:after,\n    .md-form input[type=time].form-control.invalid + label:after,\n    .md-form input[type=time].form-control:focus.invalid + label:after,\n    .md-form input[type=date].form-control.invalid + label:after,\n    .md-form input[type=date].form-control:focus.invalid + label:after,\n    .md-form input[type=datetime-local].form-control.invalid + label:after,\n    .md-form input[type=datetime-local].form-control:focus.invalid + label:after,\n    .md-form input[type=tel].form-control.invalid + label:after,\n    .md-form input[type=tel].form-control:focus.invalid + label:after,\n    .md-form input[type=number].form-control.invalid + label:after,\n    .md-form input[type=number].form-control:focus.invalid + label:after,\n    .md-form input[type=search-md].form-control.invalid + label:after,\n    .md-form input[type=search-md].form-control:focus.invalid + label:after,\n    .md-form input[type=search].form-control.invalid + label:after,\n    .md-form input[type=search].form-control:focus.invalid + label:after,\n    .md-form textarea.md-textarea.form-control.invalid + label:after,\n    .md-form textarea.md-textarea.form-control:focus.invalid + label:after {\n      top: 3.44rem; }\n    .md-form input[type=text].form-control-lg.valid + label:after,\n    .md-form input[type=text].form-control-lg:focus.valid + label:after,\n    .md-form input[type=password].form-control-lg.valid + label:after,\n    .md-form input[type=password].form-control-lg:focus.valid + label:after,\n    .md-form input[type=email].form-control-lg.valid + label:after,\n    .md-form input[type=email].form-control-lg:focus.valid + label:after,\n    .md-form input[type=url].form-control-lg.valid + label:after,\n    .md-form input[type=url].form-control-lg:focus.valid + label:after,\n    .md-form input[type=time].form-control-lg.valid + label:after,\n    .md-form input[type=time].form-control-lg:focus.valid + label:after,\n    .md-form input[type=date].form-control-lg.valid + label:after,\n    .md-form input[type=date].form-control-lg:focus.valid + label:after,\n    .md-form input[type=datetime-local].form-control-lg.valid + label:after,\n    .md-form input[type=datetime-local].form-control-lg:focus.valid + label:after,\n    .md-form input[type=tel].form-control-lg.valid + label:after,\n    .md-form input[type=tel].form-control-lg:focus.valid + label:after,\n    .md-form input[type=number].form-control-lg.valid + label:after,\n    .md-form input[type=number].form-control-lg:focus.valid + label:after,\n    .md-form input[type=search-md].form-control-lg.valid + label:after,\n    .md-form input[type=search-md].form-control-lg:focus.valid + label:after,\n    .md-form input[type=search].form-control-lg.valid + label:after,\n    .md-form input[type=search].form-control-lg:focus.valid + label:after,\n    .md-form textarea.md-textarea.form-control-lg.valid + label:after,\n    .md-form textarea.md-textarea.form-control-lg:focus.valid + label:after {\n      top: 4.1rem; }\n    .md-form input[type=text].form-control-lg.invalid + label:after,\n    .md-form input[type=text].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=password].form-control-lg.invalid + label:after,\n    .md-form input[type=password].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=email].form-control-lg.invalid + label:after,\n    .md-form input[type=email].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=url].form-control-lg.invalid + label:after,\n    .md-form input[type=url].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=time].form-control-lg.invalid + label:after,\n    .md-form input[type=time].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=date].form-control-lg.invalid + label:after,\n    .md-form input[type=date].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=datetime-local].form-control-lg.invalid + label:after,\n    .md-form input[type=datetime-local].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=tel].form-control-lg.invalid + label:after,\n    .md-form input[type=tel].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=number].form-control-lg.invalid + label:after,\n    .md-form input[type=number].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=search-md].form-control-lg.invalid + label:after,\n    .md-form input[type=search-md].form-control-lg:focus.invalid + label:after,\n    .md-form input[type=search].form-control-lg.invalid + label:after,\n    .md-form input[type=search].form-control-lg:focus.invalid + label:after,\n    .md-form textarea.md-textarea.form-control-lg.invalid + label:after,\n    .md-form textarea.md-textarea.form-control-lg:focus.invalid + label:after {\n      top: 4rem; }\n    .md-form input[type=text].form-control-sm.valid + label:after,\n    .md-form input[type=text].form-control-sm:focus.valid + label:after,\n    .md-form input[type=password].form-control-sm.valid + label:after,\n    .md-form input[type=password].form-control-sm:focus.valid + label:after,\n    .md-form input[type=email].form-control-sm.valid + label:after,\n    .md-form input[type=email].form-control-sm:focus.valid + label:after,\n    .md-form input[type=url].form-control-sm.valid + label:after,\n    .md-form input[type=url].form-control-sm:focus.valid + label:after,\n    .md-form input[type=time].form-control-sm.valid + label:after,\n    .md-form input[type=time].form-control-sm:focus.valid + label:after,\n    .md-form input[type=date].form-control-sm.valid + label:after,\n    .md-form input[type=date].form-control-sm:focus.valid + label:after,\n    .md-form input[type=datetime-local].form-control-sm.valid + label:after,\n    .md-form input[type=datetime-local].form-control-sm:focus.valid + label:after,\n    .md-form input[type=tel].form-control-sm.valid + label:after,\n    .md-form input[type=tel].form-control-sm:focus.valid + label:after,\n    .md-form input[type=number].form-control-sm.valid + label:after,\n    .md-form input[type=number].form-control-sm:focus.valid + label:after,\n    .md-form input[type=search-md].form-control-sm.valid + label:after,\n    .md-form input[type=search-md].form-control-sm:focus.valid + label:after,\n    .md-form input[type=search].form-control-sm.valid + label:after,\n    .md-form input[type=search].form-control-sm:focus.valid + label:after,\n    .md-form textarea.md-textarea.form-control-sm.valid + label:after,\n    .md-form textarea.md-textarea.form-control-sm:focus.valid + label:after {\n      top: 3.2rem; }\n    .md-form input[type=text].form-control-sm.invalid + label:after,\n    .md-form input[type=text].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=password].form-control-sm.invalid + label:after,\n    .md-form input[type=password].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=email].form-control-sm.invalid + label:after,\n    .md-form input[type=email].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=url].form-control-sm.invalid + label:after,\n    .md-form input[type=url].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=time].form-control-sm.invalid + label:after,\n    .md-form input[type=time].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=date].form-control-sm.invalid + label:after,\n    .md-form input[type=date].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=datetime-local].form-control-sm.invalid + label:after,\n    .md-form input[type=datetime-local].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=tel].form-control-sm.invalid + label:after,\n    .md-form input[type=tel].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=number].form-control-sm.invalid + label:after,\n    .md-form input[type=number].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=search-md].form-control-sm.invalid + label:after,\n    .md-form input[type=search-md].form-control-sm:focus.invalid + label:after,\n    .md-form input[type=search].form-control-sm.invalid + label:after,\n    .md-form input[type=search].form-control-sm:focus.invalid + label:after,\n    .md-form textarea.md-textarea.form-control-sm.invalid + label:after,\n    .md-form textarea.md-textarea.form-control-sm:focus.invalid + label:after {\n      top: 3.1rem; }\n  .md-form .was-validated input[type=text]:valid + label {\n    color: #00c851 !important; }\n  .md-form .was-validated input[type=text]:invalid + label {\n    color: #f44336 !important; }\n  .md-form .was-validated .form-control:valid:focus {\n    -webkit-box-shadow: 0 1px 0 0 #00c851 !important;\n    box-shadow: 0 1px 0 0 #00c851 !important; }\n  .md-form .was-validated .form-control:valid {\n    border-color: #00c851 !important; }\n  .md-form .was-validated .form-control:invalid:focus {\n    -webkit-box-shadow: 0 1px 0 0 #f44336 !important;\n    box-shadow: 0 1px 0 0 #f44336 !important; }\n  .md-form .was-validated .form-control:invalid {\n    border-color: #f44336 !important; }\n  .md-form .form-control {\n    margin: 0 0 0.5rem 0;\n    -webkit-border-radius: 0;\n    border-radius: 0;\n    padding: 0.3rem 0 0.55rem 0;\n    background-image: none;\n    background-color: transparent;\n    height: auto; }\n    .md-form .form-control:focus {\n      -webkit-box-shadow: none;\n      box-shadow: none;\n      background: transparent; }\n    .md-form .form-control:disabled, .md-form .form-control[readonly] {\n      border-bottom: 1px solid #bdbdbd;\n      background-color: transparent; }\n  .md-form .validate {\n    margin-bottom: 2.5rem; }\n  .md-form label {\n    font-size: 1rem; }\n    .md-form label.active {\n      font-size: 0.8rem; }\n  .md-form .prefix {\n    top: 0.25rem;\n    font-size: 1.75rem; }\n    .md-form .prefix ~ input,\n    .md-form .prefix ~ textarea {\n      margin-left: 2.5rem;\n      width: calc(100% - 2.5rem); }\n    .md-form .prefix ~ label {\n      margin-left: 2.5rem; }\n    .md-form .prefix ~ .form-text {\n      margin-left: 2.6rem; }\n  .md-form label {\n    position: absolute;\n    top: 0.65rem;\n    left: 0;\n    -webkit-transition: 0.2s ease-out;\n    -o-transition: 0.2s ease-out;\n    transition: 0.2s ease-out;\n    cursor: text;\n    color: #757575; }\n    .md-form label.active {\n      -webkit-transform: translateY(-140%);\n      -ms-transform: translateY(-140%);\n      transform: translateY(-140%); }\n  .md-form .prefix {\n    position: absolute;\n    -webkit-transition: color 0.2s;\n    -o-transition: color 0.2s;\n    transition: color 0.2s; }\n    .md-form .prefix.active {\n      color: #4285f4; }\n  .md-form.form-lg .validate {\n    margin-bottom: 2.8rem; }\n  .md-form.form-lg label {\n    font-size: 1.25rem; }\n    .md-form.form-lg label.active {\n      font-size: 0.95rem; }\n  .md-form.form-lg .prefix {\n    top: 0.4rem;\n    font-size: 2rem; }\n    .md-form.form-lg .prefix ~ input,\n    .md-form.form-lg .prefix ~ textarea {\n      margin-left: 3rem;\n      width: calc(100% - 3rem); }\n    .md-form.form-lg .prefix ~ label {\n      margin-left: 3rem; }\n    .md-form.form-lg .prefix ~ .form-text {\n      margin-left: 3.1rem; }\n  .md-form.form-sm .validate {\n    margin-bottom: 2.3rem; }\n  .md-form.form-sm label {\n    font-size: 0.875rem; }\n    .md-form.form-sm label.active {\n      font-size: 0.75rem; }\n  .md-form.form-sm .prefix {\n    top: 0.35rem;\n    font-size: 1.5rem; }\n    .md-form.form-sm .prefix ~ input,\n    .md-form.form-sm .prefix ~ textarea {\n      margin-left: 2rem;\n      width: calc(100% - 2rem); }\n    .md-form.form-sm .prefix ~ label {\n      margin-left: 2rem; }\n    .md-form.form-sm .prefix ~ .form-text {\n      margin-left: 2rem; }\n  .md-form textarea.md-textarea {\n    overflow-y: hidden;\n    padding: 1.5rem 0;\n    resize: none; }\n  .md-form textarea.md-textarea-auto {\n    padding: 0;\n    padding-top: 1.5rem; }\n  .md-form textarea ~ label.active {\n    color: #4285f4; }\n\n.md-form .form-control.is-invalid,\n.was-validated .md-form .form-control:invalid {\n  padding-right: 0; }\n\n.md-form .form-control.is-valid,\n.was-validated .md-form .form-control:valid {\n  padding-right: 0; }\n\n.needs-validation .md-form label {\n  left: .3rem; }\n\n.edge-header {\n  display: block;\n  height: 278px;\n  background-color: #ccc; }\n\n.free-bird {\n  margin-top: -100px; }\n\n.juicy-peach-gradient {\n  background-image: -webkit-gradient(linear, left top, right top, from(#ffecd2), to(#fcb69f));\n  background-image: -webkit-linear-gradient(left, #ffecd2 0%, #fcb69f 100%);\n  background-image: -o-linear-gradient(left, #ffecd2 0%, #fcb69f 100%);\n  background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%); }\n\n.young-passion-gradient {\n  background-image: -webkit-gradient(linear, left top, right top, from(#ff8177), color-stop(0%, #ff867a), color-stop(21%, #ff8c7f), color-stop(52%, #f99185), color-stop(78%, #cf556c), to(#b12a5b));\n  background-image: -webkit-linear-gradient(left, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%);\n  background-image: -o-linear-gradient(left, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%);\n  background-image: linear-gradient(to right, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%); }\n\n.lady-lips-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#ff9a9e), color-stop(99%, #fecfef), to(#fecfef));\n  background-image: -webkit-linear-gradient(bottom, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);\n  background-image: -o-linear-gradient(bottom, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);\n  background-image: linear-gradient(to top, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }\n\n.sunny-morning-gradient {\n  background-image: -webkit-linear-gradient(330deg, #f6d365 0%, #fda085 100%);\n  background-image: -o-linear-gradient(330deg, #f6d365 0%, #fda085 100%);\n  background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%); }\n\n.rainy-ashville-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#fbc2eb), to(#a6c1ee));\n  background-image: -webkit-linear-gradient(bottom, #fbc2eb 0%, #a6c1ee 100%);\n  background-image: -o-linear-gradient(bottom, #fbc2eb 0%, #a6c1ee 100%);\n  background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%); }\n\n.frozen-dreams-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#fdcbf1), color-stop(1%, #fdcbf1), to(#e6dee9));\n  background-image: -webkit-linear-gradient(bottom, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);\n  background-image: -o-linear-gradient(bottom, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);\n  background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%); }\n\n.warm-flame-gradient {\n  background-image: -webkit-linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);\n  background-image: -o-linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);\n  background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%); }\n\n.night-fade-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#a18cd1), to(#fbc2eb));\n  background-image: -webkit-linear-gradient(bottom, #a18cd1 0%, #fbc2eb 100%);\n  background-image: -o-linear-gradient(bottom, #a18cd1 0%, #fbc2eb 100%);\n  background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%); }\n\n.spring-warmth-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#fad0c4), to(#ffd1ff));\n  background-image: -webkit-linear-gradient(bottom, #fad0c4 0%, #ffd1ff 100%);\n  background-image: -o-linear-gradient(bottom, #fad0c4 0%, #ffd1ff 100%);\n  background-image: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%); }\n\n.winter-neva-gradient {\n  background-image: -webkit-linear-gradient(330deg, #a1c4fd 0%, #c2e9fb 100%);\n  background-image: -o-linear-gradient(330deg, #a1c4fd 0%, #c2e9fb 100%);\n  background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); }\n\n.dusty-grass-gradient {\n  background-image: -webkit-linear-gradient(330deg, #d4fc79 0%, #96e6a1 100%);\n  background-image: -o-linear-gradient(330deg, #d4fc79 0%, #96e6a1 100%);\n  background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%); }\n\n.tempting-azure-gradient {\n  background-image: -webkit-linear-gradient(330deg, #84fab0 0%, #8fd3f4 100%);\n  background-image: -o-linear-gradient(330deg, #84fab0 0%, #8fd3f4 100%);\n  background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); }\n\n.heavy-rain-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#cfd9df), to(#e2ebf0));\n  background-image: -webkit-linear-gradient(bottom, #cfd9df 0%, #e2ebf0 100%);\n  background-image: -o-linear-gradient(bottom, #cfd9df 0%, #e2ebf0 100%);\n  background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%); }\n\n.amy-crisp-gradient {\n  background-image: -webkit-linear-gradient(330deg, #a6c0fe 0%, #f68084 100%);\n  background-image: -o-linear-gradient(330deg, #a6c0fe 0%, #f68084 100%);\n  background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%); }\n\n.mean-fruit-gradient {\n  background-image: -webkit-linear-gradient(330deg, #fccb90 0%, #d57eeb 100%);\n  background-image: -o-linear-gradient(330deg, #fccb90 0%, #d57eeb 100%);\n  background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%); }\n\n.deep-blue-gradient {\n  background-image: -webkit-linear-gradient(330deg, #e0c3fc 0%, #8ec5fc 100%);\n  background-image: -o-linear-gradient(330deg, #e0c3fc 0%, #8ec5fc 100%);\n  background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); }\n\n.ripe-malinka-gradient {\n  background-image: -webkit-linear-gradient(330deg, #f093fb 0%, #f5576c 100%);\n  background-image: -o-linear-gradient(330deg, #f093fb 0%, #f5576c 100%);\n  background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%); }\n\n.cloudy-knoxville-gradient {\n  background-image: -webkit-linear-gradient(330deg, #fdfbfb 0%, #ebedee 100%);\n  background-image: -o-linear-gradient(330deg, #fdfbfb 0%, #ebedee 100%);\n  background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%); }\n\n.morpheus-den-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#30cfd0), to(#330867));\n  background-image: -webkit-linear-gradient(bottom, #30cfd0 0%, #330867 100%);\n  background-image: -o-linear-gradient(bottom, #30cfd0 0%, #330867 100%);\n  background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%); }\n\n.rare-wind-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#a8edea), to(#fed6e3));\n  background-image: -webkit-linear-gradient(bottom, #a8edea 0%, #fed6e3 100%);\n  background-image: -o-linear-gradient(bottom, #a8edea 0%, #fed6e3 100%);\n  background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%); }\n\n.near-moon-gradient {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(#5ee7df), to(#b490ca));\n  background-image: -webkit-linear-gradient(bottom, #5ee7df 0%, #b490ca 100%);\n  background-image: -o-linear-gradient(bottom, #5ee7df 0%, #b490ca 100%);\n  background-image: linear-gradient(to top, #5ee7df 0%, #b490ca 100%); }\n\n.schedule-list .hr-bold {\n  border-top: 2px solid #212529; }\n\n.schedule-list .font-smaller {\n  font-size: .8rem; }\n\n.note {\n  padding: 10px;\n  border-left: 6px solid;\n  -webkit-border-radius: 5px;\n  border-radius: 5px; }\n  .note strong {\n    font-weight: 600; }\n  .note p {\n    font-weight: 500; }\n  .note.note-primary {\n    background-color: #dfeefd;\n    border-color: #176ac4; }\n  .note.note-secondary {\n    background-color: #e2e3e5;\n    border-color: #58595a; }\n  .note.note-success {\n    background-color: #e2f0e5;\n    border-color: #49a75f; }\n  .note.note-danger {\n    background-color: #fae7e8;\n    border-color: #e45460; }\n  .note.note-warning {\n    background-color: #faf4e0;\n    border-color: #c2a442; }\n  .note.note-info {\n    background-color: #e4f2f5;\n    border-color: #2492a5; }\n  .note.note-light {\n    background-color: #fefefe;\n    border-color: #0f0f0f; }\n\nfooter.page-footer {\n  bottom: 0;\n  color: #fff; }\n  footer.page-footer .container-fluid {\n    width: auto; }\n  footer.page-footer .footer-copyright {\n    overflow: hidden;\n    background-color: rgba(0, 0, 0, 0.2);\n    color: rgba(255, 255, 255, 0.6); }\n  footer.page-footer a {\n    color: #fff; }\n\n.media .media-left {\n  padding: 0 10px 10px 0; }\n  .media .media-left img {\n    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);\n    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); }\n\n.list-group .list-group-item:first-child {\n  -webkit-border-top-left-radius: 0.125rem;\n  border-top-left-radius: 0.125rem;\n  -webkit-border-top-right-radius: 0.125rem;\n  border-top-right-radius: 0.125rem; }\n\n.list-group .list-group-item:last-child {\n  -webkit-border-bottom-left-radius: 0.125rem;\n  border-bottom-left-radius: 0.125rem;\n  -webkit-border-bottom-right-radius: 0.125rem;\n  border-bottom-right-radius: 0.125rem; }\n\n.list-group a,\n.list-group button {\n  -webkit-transition: 0.5s;\n  -o-transition: 0.5s;\n  transition: 0.5s; }\n  .list-group a:hover,\n  .list-group button:hover {\n    -webkit-transition: 0.5s;\n    -o-transition: 0.5s;\n    transition: 0.5s; }\n\ntable th {\n  font-size: 0.9rem;\n  font-weight: 400; }\n\ntable td {\n  font-size: 0.9rem;\n  font-weight: 300; }\n\ntable.table thead th {\n  border-top: none; }\n\ntable.table th,\ntable.table td {\n  padding-top: 1.1rem;\n  padding-bottom: 1rem; }\n\ntable.table a {\n  margin: 0;\n  color: #212529; }\n\ntable.table .label-table {\n  margin: 0;\n  padding: 0;\n  line-height: 0.94rem;\n  height: 0.94rem; }\n\ntable.table.btn-table td {\n  vertical-align: middle; }\n\ntable.table-hover tbody tr:hover {\n  -webkit-transition: 0.5s;\n  -o-transition: 0.5s;\n  transition: 0.5s;\n  background-color: rgba(0, 0, 0, 0.075); }\n\ntable .th-lg {\n  min-width: 9rem; }\n\ntable .th-sm {\n  min-width: 6rem; }\n\ntable.table-sm th,\ntable.table-sm td {\n  padding-top: 0.6rem;\n  padding-bottom: 0.6rem; }\n\n.table-scroll-vertical {\n  max-height: 300px;\n  overflow-y: auto; }\n\n.table-fixed {\n  table-layout: fixed; }\n\n.table-responsive > .table-bordered,\n.table-responsive-sm > .table-bordered,\n.table-responsive-md > .table-bordered,\n.table-responsive-lg > .table-bordered,\n.table-responsive-xl > .table-bordered {\n  border-top: 1px solid #dee2e6; }\n\nul.stepper {\n  counter-reset: section;\n  overflow-y: auto;\n  overflow-x: hidden;\n  margin: 1em -1.5rem;\n  padding: 0 1.5rem;\n  padding: 1.5rem; }\n  ul.stepper li a {\n    padding: 1.5rem;\n    text-align: center; }\n    ul.stepper li a .circle {\n      display: inline-block;\n      color: #fff;\n      -webkit-border-radius: 50%;\n      border-radius: 50%;\n      background: rgba(0, 0, 0, 0.38);\n      width: 1.75rem;\n      height: 1.75rem;\n      text-align: center;\n      line-height: 1.7rem;\n      margin-right: 0.5rem; }\n    ul.stepper li a .label {\n      display: inline-block;\n      color: rgba(0, 0, 0, 0.38); }\n  ul.stepper li.active a .label, ul.stepper li.completed a .label {\n    font-weight: 600;\n    color: rgba(0, 0, 0, 0.87); }\n\n.stepper-horizontal {\n  position: relative;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: justify;\n  -webkit-justify-content: space-between;\n  -ms-flex-pack: justify;\n  justify-content: space-between; }\n  .stepper-horizontal li {\n    -webkit-transition: 0.5s;\n    -o-transition: 0.5s;\n    transition: 0.5s;\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -ms-flexbox;\n    display: flex;\n    -webkit-box-align: center;\n    -webkit-align-items: center;\n    -ms-flex-align: center;\n    align-items: center;\n    -webkit-box-flex: 1;\n    -webkit-flex: 1;\n    -ms-flex: 1;\n    flex: 1;\n    position: relative; }\n    .stepper-horizontal li a .label {\n      margin-top: 0.63rem; }\n    .stepper-horizontal li:not(:last-child):after {\n      content: \"\";\n      position: relative;\n      -webkit-box-flex: 1;\n      -webkit-flex: 1;\n      -ms-flex: 1;\n      flex: 1;\n      margin: 0.5rem 0 0 0;\n      height: 1px;\n      background-color: rgba(0, 0, 0, 0.1); }\n    .stepper-horizontal li:not(:first-child):before {\n      content: \"\";\n      position: relative;\n      -webkit-box-flex: 1;\n      -webkit-flex: 1;\n      -ms-flex: 1;\n      flex: 1;\n      margin: 0.5rem 0 0 0;\n      height: 1px;\n      background-color: rgba(0, 0, 0, 0.1); }\n    .stepper-horizontal li:hover {\n      background-color: rgba(0, 0, 0, 0.06); }\n  @media (max-width: 47.9375rem) {\n    .stepper-horizontal {\n      -webkit-box-orient: vertical;\n      -webkit-box-direction: normal;\n      -webkit-flex-direction: column;\n      -ms-flex-direction: column;\n      flex-direction: column; }\n      .stepper-horizontal li {\n        -webkit-box-align: start;\n        -webkit-align-items: flex-start;\n        -ms-flex-align: start;\n        align-items: flex-start;\n        -webkit-box-orient: vertical;\n        -webkit-box-direction: normal;\n        -webkit-flex-direction: column;\n        -ms-flex-direction: column;\n        flex-direction: column; }\n        .stepper-horizontal li a .label {\n          -webkit-box-orient: vertical;\n          -webkit-box-direction: normal;\n          -webkit-flex-flow: column nowrap;\n          -ms-flex-flow: column nowrap;\n          flex-flow: column nowrap;\n          -webkit-box-ordinal-group: 3;\n          -webkit-order: 2;\n          -ms-flex-order: 2;\n          order: 2;\n          margin-top: 0.2rem; }\n        .stepper-horizontal li:not(:last-child):after {\n          content: \"\";\n          position: absolute;\n          width: 1px;\n          height: calc(100% - 40px);\n          left: 2.19rem;\n          top: 3.75rem; } }\n  .stepper-horizontal > li:not(:last-of-type) {\n    margin-bottom: 0 !important; }\n\n.stepper-vertical {\n  position: relative;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: column;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  -webkit-box-pack: justify;\n  -webkit-justify-content: space-between;\n  -ms-flex-pack: justify;\n  justify-content: space-between; }\n  .stepper-vertical li {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -ms-flexbox;\n    display: flex;\n    -webkit-box-align: start;\n    -webkit-align-items: flex-start;\n    -ms-flex-align: start;\n    align-items: flex-start;\n    -webkit-box-flex: 1;\n    -webkit-flex: 1;\n    -ms-flex: 1;\n    flex: 1;\n    -webkit-box-orient: vertical;\n    -webkit-box-direction: normal;\n    -webkit-flex-direction: column;\n    -ms-flex-direction: column;\n    flex-direction: column;\n    position: relative; }\n    .stepper-vertical li a {\n      -webkit-align-self: flex-start;\n      -ms-flex-item-align: start;\n      align-self: flex-start;\n      display: -webkit-box;\n      display: -webkit-flex;\n      display: -ms-flexbox;\n      display: flex;\n      position: relative; }\n      .stepper-vertical li a .circle {\n        -webkit-box-ordinal-group: 2;\n        -webkit-order: 1;\n        -ms-flex-order: 1;\n        order: 1; }\n      .stepper-vertical li a .label {\n        -webkit-box-orient: vertical;\n        -webkit-box-direction: normal;\n        -webkit-flex-flow: column nowrap;\n        -ms-flex-flow: column nowrap;\n        flex-flow: column nowrap;\n        -webkit-box-ordinal-group: 3;\n        -webkit-order: 2;\n        -ms-flex-order: 2;\n        order: 2;\n        margin-top: 0.2rem; }\n    .stepper-vertical li.completed a .label {\n      font-weight: 500; }\n    .stepper-vertical li .step-content {\n      display: block;\n      margin-top: 0;\n      margin-left: 3.13rem;\n      padding: 0.94rem; }\n      .stepper-vertical li .step-content p {\n        font-size: 0.88rem; }\n    .stepper-vertical li:not(:last-child):after {\n      content: \"\";\n      position: absolute;\n      width: 1px;\n      height: calc(100% - 40px);\n      left: 2.19rem;\n      top: 3.44rem;\n      background-color: rgba(0, 0, 0, 0.1); }\n\n.fast.spinner-border {\n  -webkit-animation: spinner-border .4s linear infinite;\n  animation: spinner-border .4s linear infinite; }\n\n.fast.spinner-grow {\n  -webkit-animation: spinner-grow .4s linear infinite;\n  animation: spinner-grow .4s linear infinite; }\n"
  },
  {
    "path": "student/content/mdb/css/modules/animations-extended.css",
    "content": "/*\n * MDBootstrap Animations Extended\n * Learn more: https://mdbootstrap.com/docs/jquery/css/animations/\n * About MDBootstrap: https://mdbootstrap.com/\n */\n/*!\n * animate.css -http://daneden.me/animate\n * Version - 3.7.0\n * Licensed under the MIT license - http://opensource.org/licenses/MIT\n *\n * Copyright (c) 2018 Daniel Eden\n */\n@-webkit-keyframes bounce {\n  from,\n  20%,\n  53%,\n  80%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  40%,\n  43% {\n    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    -webkit-transform: translate3d(0, -30px, 0);\n    transform: translate3d(0, -30px, 0); }\n  70% {\n    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    -webkit-transform: translate3d(0, -15px, 0);\n    transform: translate3d(0, -15px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, -4px, 0);\n    transform: translate3d(0, -4px, 0); } }\n@keyframes bounce {\n  from,\n  20%,\n  53%,\n  80%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  40%,\n  43% {\n    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    -webkit-transform: translate3d(0, -30px, 0);\n    transform: translate3d(0, -30px, 0); }\n  70% {\n    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    -webkit-transform: translate3d(0, -15px, 0);\n    transform: translate3d(0, -15px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, -4px, 0);\n    transform: translate3d(0, -4px, 0); } }\n\n.bounce {\n  -webkit-animation-name: bounce;\n  animation-name: bounce;\n  -webkit-transform-origin: center bottom;\n  -ms-transform-origin: center bottom;\n  transform-origin: center bottom; }\n\n@-webkit-keyframes flash {\n  from,\n  50%,\n  to {\n    opacity: 1; }\n  25%,\n  75% {\n    opacity: 0; } }\n\n@keyframes flash {\n  from,\n  50%,\n  to {\n    opacity: 1; }\n  25%,\n  75% {\n    opacity: 0; } }\n\n.flash {\n  -webkit-animation-name: flash;\n  animation-name: flash; }\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n@-webkit-keyframes pulse {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  50% {\n    -webkit-transform: scale3d(1.05, 1.05, 1.05);\n    transform: scale3d(1.05, 1.05, 1.05); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n@keyframes pulse {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  50% {\n    -webkit-transform: scale3d(1.05, 1.05, 1.05);\n    transform: scale3d(1.05, 1.05, 1.05); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n.pulse {\n  -webkit-animation-name: pulse;\n  animation-name: pulse; }\n\n@-webkit-keyframes rubberBand {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  30% {\n    -webkit-transform: scale3d(1.25, 0.75, 1);\n    transform: scale3d(1.25, 0.75, 1); }\n  40% {\n    -webkit-transform: scale3d(0.75, 1.25, 1);\n    transform: scale3d(0.75, 1.25, 1); }\n  50% {\n    -webkit-transform: scale3d(1.15, 0.85, 1);\n    transform: scale3d(1.15, 0.85, 1); }\n  65% {\n    -webkit-transform: scale3d(0.95, 1.05, 1);\n    transform: scale3d(0.95, 1.05, 1); }\n  75% {\n    -webkit-transform: scale3d(1.05, 0.95, 1);\n    transform: scale3d(1.05, 0.95, 1); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n@keyframes rubberBand {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  30% {\n    -webkit-transform: scale3d(1.25, 0.75, 1);\n    transform: scale3d(1.25, 0.75, 1); }\n  40% {\n    -webkit-transform: scale3d(0.75, 1.25, 1);\n    transform: scale3d(0.75, 1.25, 1); }\n  50% {\n    -webkit-transform: scale3d(1.15, 0.85, 1);\n    transform: scale3d(1.15, 0.85, 1); }\n  65% {\n    -webkit-transform: scale3d(0.95, 1.05, 1);\n    transform: scale3d(0.95, 1.05, 1); }\n  75% {\n    -webkit-transform: scale3d(1.05, 0.95, 1);\n    transform: scale3d(1.05, 0.95, 1); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n.rubberBand {\n  -webkit-animation-name: rubberBand;\n  animation-name: rubberBand; }\n\n@-webkit-keyframes shake {\n  from,\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  10%,\n  30%,\n  50%,\n  70%,\n  90% {\n    -webkit-transform: translate3d(-10px, 0, 0);\n    transform: translate3d(-10px, 0, 0); }\n  20%,\n  40%,\n  60%,\n  80% {\n    -webkit-transform: translate3d(10px, 0, 0);\n    transform: translate3d(10px, 0, 0); } }\n\n@keyframes shake {\n  from,\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  10%,\n  30%,\n  50%,\n  70%,\n  90% {\n    -webkit-transform: translate3d(-10px, 0, 0);\n    transform: translate3d(-10px, 0, 0); }\n  20%,\n  40%,\n  60%,\n  80% {\n    -webkit-transform: translate3d(10px, 0, 0);\n    transform: translate3d(10px, 0, 0); } }\n\n.shake {\n  -webkit-animation-name: shake;\n  animation-name: shake; }\n\n@-webkit-keyframes headShake {\n  0% {\n    -webkit-transform: translateX(0);\n    transform: translateX(0); }\n  6.5% {\n    -webkit-transform: translateX(-6px) rotateY(-9deg);\n    transform: translateX(-6px) rotateY(-9deg); }\n  18.5% {\n    -webkit-transform: translateX(5px) rotateY(7deg);\n    transform: translateX(5px) rotateY(7deg); }\n  31.5% {\n    -webkit-transform: translateX(-3px) rotateY(-5deg);\n    transform: translateX(-3px) rotateY(-5deg); }\n  43.5% {\n    -webkit-transform: translateX(2px) rotateY(3deg);\n    transform: translateX(2px) rotateY(3deg); }\n  50% {\n    -webkit-transform: translateX(0);\n    transform: translateX(0); } }\n\n@keyframes headShake {\n  0% {\n    -webkit-transform: translateX(0);\n    transform: translateX(0); }\n  6.5% {\n    -webkit-transform: translateX(-6px) rotateY(-9deg);\n    transform: translateX(-6px) rotateY(-9deg); }\n  18.5% {\n    -webkit-transform: translateX(5px) rotateY(7deg);\n    transform: translateX(5px) rotateY(7deg); }\n  31.5% {\n    -webkit-transform: translateX(-3px) rotateY(-5deg);\n    transform: translateX(-3px) rotateY(-5deg); }\n  43.5% {\n    -webkit-transform: translateX(2px) rotateY(3deg);\n    transform: translateX(2px) rotateY(3deg); }\n  50% {\n    -webkit-transform: translateX(0);\n    transform: translateX(0); } }\n\n.headShake {\n  -webkit-animation-timing-function: ease-in-out;\n  animation-timing-function: ease-in-out;\n  -webkit-animation-name: headShake;\n  animation-name: headShake; }\n\n@-webkit-keyframes swing {\n  20% {\n    -webkit-transform: rotate3d(0, 0, 1, 15deg);\n    transform: rotate3d(0, 0, 1, 15deg); }\n  40% {\n    -webkit-transform: rotate3d(0, 0, 1, -10deg);\n    transform: rotate3d(0, 0, 1, -10deg); }\n  60% {\n    -webkit-transform: rotate3d(0, 0, 1, 5deg);\n    transform: rotate3d(0, 0, 1, 5deg); }\n  80% {\n    -webkit-transform: rotate3d(0, 0, 1, -5deg);\n    transform: rotate3d(0, 0, 1, -5deg); }\n  to {\n    -webkit-transform: rotate3d(0, 0, 1, 0deg);\n    transform: rotate3d(0, 0, 1, 0deg); } }\n\n@keyframes swing {\n  20% {\n    -webkit-transform: rotate3d(0, 0, 1, 15deg);\n    transform: rotate3d(0, 0, 1, 15deg); }\n  40% {\n    -webkit-transform: rotate3d(0, 0, 1, -10deg);\n    transform: rotate3d(0, 0, 1, -10deg); }\n  60% {\n    -webkit-transform: rotate3d(0, 0, 1, 5deg);\n    transform: rotate3d(0, 0, 1, 5deg); }\n  80% {\n    -webkit-transform: rotate3d(0, 0, 1, -5deg);\n    transform: rotate3d(0, 0, 1, -5deg); }\n  to {\n    -webkit-transform: rotate3d(0, 0, 1, 0deg);\n    transform: rotate3d(0, 0, 1, 0deg); } }\n\n.swing {\n  -webkit-transform-origin: top center;\n  -ms-transform-origin: top center;\n  transform-origin: top center;\n  -webkit-animation-name: swing;\n  animation-name: swing; }\n\n@-webkit-keyframes tada {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  10%,\n  20% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);\n    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }\n  30%,\n  50%,\n  70%,\n  90% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }\n  40%,\n  60%,\n  80% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n@keyframes tada {\n  from {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); }\n  10%,\n  20% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);\n    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }\n  30%,\n  50%,\n  70%,\n  90% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }\n  40%,\n  60%,\n  80% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }\n  to {\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n.tada {\n  -webkit-animation-name: tada;\n  animation-name: tada; }\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n@-webkit-keyframes wobble {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  15% {\n    -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);\n    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); }\n  30% {\n    -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);\n    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); }\n  45% {\n    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);\n    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); }\n  60% {\n    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);\n    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); }\n  75% {\n    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);\n    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n@keyframes wobble {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  15% {\n    -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);\n    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); }\n  30% {\n    -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);\n    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); }\n  45% {\n    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);\n    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); }\n  60% {\n    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);\n    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); }\n  75% {\n    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);\n    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.wobble {\n  -webkit-animation-name: wobble;\n  animation-name: wobble; }\n\n@-webkit-keyframes jello {\n  from,\n  11.1%,\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  22.2% {\n    -webkit-transform: skewX(-12.5deg) skewY(-12.5deg);\n    transform: skewX(-12.5deg) skewY(-12.5deg); }\n  33.3% {\n    -webkit-transform: skewX(6.25deg) skewY(6.25deg);\n    transform: skewX(6.25deg) skewY(6.25deg); }\n  44.4% {\n    -webkit-transform: skewX(-3.125deg) skewY(-3.125deg);\n    transform: skewX(-3.125deg) skewY(-3.125deg); }\n  55.5% {\n    -webkit-transform: skewX(1.5625deg) skewY(1.5625deg);\n    transform: skewX(1.5625deg) skewY(1.5625deg); }\n  66.6% {\n    -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg);\n    transform: skewX(-0.78125deg) skewY(-0.78125deg); }\n  77.7% {\n    -webkit-transform: skewX(0.39062deg) skewY(0.39062deg);\n    transform: skewX(0.39062deg) skewY(0.39062deg); }\n  88.8% {\n    -webkit-transform: skewX(-0.19531deg) skewY(-0.19531deg);\n    transform: skewX(-0.19531deg) skewY(-0.19531deg); } }\n\n@keyframes jello {\n  from,\n  11.1%,\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  22.2% {\n    -webkit-transform: skewX(-12.5deg) skewY(-12.5deg);\n    transform: skewX(-12.5deg) skewY(-12.5deg); }\n  33.3% {\n    -webkit-transform: skewX(6.25deg) skewY(6.25deg);\n    transform: skewX(6.25deg) skewY(6.25deg); }\n  44.4% {\n    -webkit-transform: skewX(-3.125deg) skewY(-3.125deg);\n    transform: skewX(-3.125deg) skewY(-3.125deg); }\n  55.5% {\n    -webkit-transform: skewX(1.5625deg) skewY(1.5625deg);\n    transform: skewX(1.5625deg) skewY(1.5625deg); }\n  66.6% {\n    -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg);\n    transform: skewX(-0.78125deg) skewY(-0.78125deg); }\n  77.7% {\n    -webkit-transform: skewX(0.39062deg) skewY(0.39062deg);\n    transform: skewX(0.39062deg) skewY(0.39062deg); }\n  88.8% {\n    -webkit-transform: skewX(-0.19531deg) skewY(-0.19531deg);\n    transform: skewX(-0.19531deg) skewY(-0.19531deg); } }\n\n.jello {\n  -webkit-animation-name: jello;\n  animation-name: jello;\n  -webkit-transform-origin: center;\n  -ms-transform-origin: center;\n  transform-origin: center; }\n\n@-webkit-keyframes heartBeat {\n  0% {\n    -webkit-transform: scale(1);\n    transform: scale(1); }\n  14% {\n    -webkit-transform: scale(1.3);\n    transform: scale(1.3); }\n  28% {\n    -webkit-transform: scale(1);\n    transform: scale(1); }\n  42% {\n    -webkit-transform: scale(1.3);\n    transform: scale(1.3); }\n  70% {\n    -webkit-transform: scale(1);\n    transform: scale(1); } }\n\n@keyframes heartBeat {\n  0% {\n    -webkit-transform: scale(1);\n    transform: scale(1); }\n  14% {\n    -webkit-transform: scale(1.3);\n    transform: scale(1.3); }\n  28% {\n    -webkit-transform: scale(1);\n    transform: scale(1); }\n  42% {\n    -webkit-transform: scale(1.3);\n    transform: scale(1.3); }\n  70% {\n    -webkit-transform: scale(1);\n    transform: scale(1); } }\n\n.heartBeat {\n  -webkit-animation-name: heartBeat;\n  animation-name: heartBeat;\n  -webkit-animation-duration: 1.3s;\n  animation-duration: 1.3s;\n  -webkit-animation-timing-function: ease-in-out;\n  animation-timing-function: ease-in-out; }\n\n@-webkit-keyframes bounceIn {\n  from,\n  20%,\n  40%,\n  60%,\n  80%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  20% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1);\n    transform: scale3d(1.1, 1.1, 1.1); }\n  40% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9);\n    transform: scale3d(0.9, 0.9, 0.9); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(1.03, 1.03, 1.03);\n    transform: scale3d(1.03, 1.03, 1.03); }\n  80% {\n    -webkit-transform: scale3d(0.97, 0.97, 0.97);\n    transform: scale3d(0.97, 0.97, 0.97); }\n  to {\n    opacity: 1;\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n@keyframes bounceIn {\n  from,\n  20%,\n  40%,\n  60%,\n  80%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  20% {\n    -webkit-transform: scale3d(1.1, 1.1, 1.1);\n    transform: scale3d(1.1, 1.1, 1.1); }\n  40% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9);\n    transform: scale3d(0.9, 0.9, 0.9); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(1.03, 1.03, 1.03);\n    transform: scale3d(1.03, 1.03, 1.03); }\n  80% {\n    -webkit-transform: scale3d(0.97, 0.97, 0.97);\n    transform: scale3d(0.97, 0.97, 0.97); }\n  to {\n    opacity: 1;\n    -webkit-transform: scale3d(1, 1, 1);\n    transform: scale3d(1, 1, 1); } }\n\n.bounceIn {\n  -webkit-animation-duration: 0.75s;\n  animation-duration: 0.75s;\n  -webkit-animation-name: bounceIn;\n  animation-name: bounceIn; }\n\n@-webkit-keyframes bounceInDown {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -3000px, 0);\n    transform: translate3d(0, -3000px, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 25px, 0);\n    transform: translate3d(0, 25px, 0); }\n  75% {\n    -webkit-transform: translate3d(0, -10px, 0);\n    transform: translate3d(0, -10px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, 5px, 0);\n    transform: translate3d(0, 5px, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes bounceInDown {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -3000px, 0);\n    transform: translate3d(0, -3000px, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 25px, 0);\n    transform: translate3d(0, 25px, 0); }\n  75% {\n    -webkit-transform: translate3d(0, -10px, 0);\n    transform: translate3d(0, -10px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, 5px, 0);\n    transform: translate3d(0, 5px, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.bounceInDown {\n  -webkit-animation-name: bounceInDown;\n  animation-name: bounceInDown; }\n\n@-webkit-keyframes bounceInLeft {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: translate3d(-3000px, 0, 0);\n    transform: translate3d(-3000px, 0, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(25px, 0, 0);\n    transform: translate3d(25px, 0, 0); }\n  75% {\n    -webkit-transform: translate3d(-10px, 0, 0);\n    transform: translate3d(-10px, 0, 0); }\n  90% {\n    -webkit-transform: translate3d(5px, 0, 0);\n    transform: translate3d(5px, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes bounceInLeft {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  0% {\n    opacity: 0;\n    -webkit-transform: translate3d(-3000px, 0, 0);\n    transform: translate3d(-3000px, 0, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(25px, 0, 0);\n    transform: translate3d(25px, 0, 0); }\n  75% {\n    -webkit-transform: translate3d(-10px, 0, 0);\n    transform: translate3d(-10px, 0, 0); }\n  90% {\n    -webkit-transform: translate3d(5px, 0, 0);\n    transform: translate3d(5px, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.bounceInLeft {\n  -webkit-animation-name: bounceInLeft;\n  animation-name: bounceInLeft; }\n\n@-webkit-keyframes bounceInRight {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(3000px, 0, 0);\n    transform: translate3d(3000px, 0, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(-25px, 0, 0);\n    transform: translate3d(-25px, 0, 0); }\n  75% {\n    -webkit-transform: translate3d(10px, 0, 0);\n    transform: translate3d(10px, 0, 0); }\n  90% {\n    -webkit-transform: translate3d(-5px, 0, 0);\n    transform: translate3d(-5px, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes bounceInRight {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(3000px, 0, 0);\n    transform: translate3d(3000px, 0, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(-25px, 0, 0);\n    transform: translate3d(-25px, 0, 0); }\n  75% {\n    -webkit-transform: translate3d(10px, 0, 0);\n    transform: translate3d(10px, 0, 0); }\n  90% {\n    -webkit-transform: translate3d(-5px, 0, 0);\n    transform: translate3d(-5px, 0, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.bounceInRight {\n  -webkit-animation-name: bounceInRight;\n  animation-name: bounceInRight; }\n\n@-webkit-keyframes bounceInUp {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 3000px, 0);\n    transform: translate3d(0, 3000px, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, -20px, 0);\n    transform: translate3d(0, -20px, 0); }\n  75% {\n    -webkit-transform: translate3d(0, 10px, 0);\n    transform: translate3d(0, 10px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, -5px, 0);\n    transform: translate3d(0, -5px, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes bounceInUp {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 3000px, 0);\n    transform: translate3d(0, 3000px, 0); }\n  60% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, -20px, 0);\n    transform: translate3d(0, -20px, 0); }\n  75% {\n    -webkit-transform: translate3d(0, 10px, 0);\n    transform: translate3d(0, 10px, 0); }\n  90% {\n    -webkit-transform: translate3d(0, -5px, 0);\n    transform: translate3d(0, -5px, 0); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.bounceInUp {\n  -webkit-animation-name: bounceInUp;\n  animation-name: bounceInUp; }\n\n@-webkit-keyframes bounceOut {\n  20% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9);\n    transform: scale3d(0.9, 0.9, 0.9); }\n  50%,\n  55% {\n    opacity: 1;\n    -webkit-transform: scale3d(1.1, 1.1, 1.1);\n    transform: scale3d(1.1, 1.1, 1.1); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); } }\n\n@keyframes bounceOut {\n  20% {\n    -webkit-transform: scale3d(0.9, 0.9, 0.9);\n    transform: scale3d(0.9, 0.9, 0.9); }\n  50%,\n  55% {\n    opacity: 1;\n    -webkit-transform: scale3d(1.1, 1.1, 1.1);\n    transform: scale3d(1.1, 1.1, 1.1); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); } }\n\n.bounceOut {\n  -webkit-animation-duration: 0.75s;\n  animation-duration: 0.75s;\n  -webkit-animation-name: bounceOut;\n  animation-name: bounceOut; }\n\n@-webkit-keyframes bounceOutDown {\n  20% {\n    -webkit-transform: translate3d(0, 10px, 0);\n    transform: translate3d(0, 10px, 0); }\n  40%,\n  45% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, -20px, 0);\n    transform: translate3d(0, -20px, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); } }\n\n@keyframes bounceOutDown {\n  20% {\n    -webkit-transform: translate3d(0, 10px, 0);\n    transform: translate3d(0, 10px, 0); }\n  40%,\n  45% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, -20px, 0);\n    transform: translate3d(0, -20px, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); } }\n\n.bounceOutDown {\n  -webkit-animation-name: bounceOutDown;\n  animation-name: bounceOutDown; }\n\n@-webkit-keyframes bounceOutLeft {\n  20% {\n    opacity: 1;\n    -webkit-transform: translate3d(20px, 0, 0);\n    transform: translate3d(20px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); } }\n\n@keyframes bounceOutLeft {\n  20% {\n    opacity: 1;\n    -webkit-transform: translate3d(20px, 0, 0);\n    transform: translate3d(20px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); } }\n\n.bounceOutLeft {\n  -webkit-animation-name: bounceOutLeft;\n  animation-name: bounceOutLeft; }\n\n@-webkit-keyframes bounceOutRight {\n  20% {\n    opacity: 1;\n    -webkit-transform: translate3d(-20px, 0, 0);\n    transform: translate3d(-20px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); } }\n\n@keyframes bounceOutRight {\n  20% {\n    opacity: 1;\n    -webkit-transform: translate3d(-20px, 0, 0);\n    transform: translate3d(-20px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); } }\n\n.bounceOutRight {\n  -webkit-animation-name: bounceOutRight;\n  animation-name: bounceOutRight; }\n\n@-webkit-keyframes bounceOutUp {\n  20% {\n    -webkit-transform: translate3d(0, -10px, 0);\n    transform: translate3d(0, -10px, 0); }\n  40%,\n  45% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 20px, 0);\n    transform: translate3d(0, 20px, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); } }\n\n@keyframes bounceOutUp {\n  20% {\n    -webkit-transform: translate3d(0, -10px, 0);\n    transform: translate3d(0, -10px, 0); }\n  40%,\n  45% {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 20px, 0);\n    transform: translate3d(0, 20px, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); } }\n\n.bounceOutUp {\n  -webkit-animation-name: bounceOutUp;\n  animation-name: bounceOutUp; }\n\n@-webkit-keyframes fadeInDownBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInDownBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInDownBig {\n  -webkit-animation-name: fadeInDownBig;\n  animation-name: fadeInDownBig; }\n\n@-webkit-keyframes fadeInLeftBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInLeftBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInLeftBig {\n  -webkit-animation-name: fadeInLeftBig;\n  animation-name: fadeInLeftBig; }\n\n@-webkit-keyframes fadeInRightBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInRightBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInRightBig {\n  -webkit-animation-name: fadeInRightBig;\n  animation-name: fadeInRightBig; }\n\n@-webkit-keyframes fadeInUpBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes fadeInUpBig {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.fadeInUpBig {\n  -webkit-animation-name: fadeInUpBig;\n  animation-name: fadeInUpBig; }\n\n@-webkit-keyframes fadeOutDownBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); } }\n\n@keyframes fadeOutDownBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 2000px, 0);\n    transform: translate3d(0, 2000px, 0); } }\n\n.fadeOutDownBig {\n  -webkit-animation-name: fadeOutDownBig;\n  animation-name: fadeOutDownBig; }\n\n@-webkit-keyframes fadeOutLeftBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); } }\n\n@keyframes fadeOutLeftBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(-2000px, 0, 0);\n    transform: translate3d(-2000px, 0, 0); } }\n\n.fadeOutLeftBig {\n  -webkit-animation-name: fadeOutLeftBig;\n  animation-name: fadeOutLeftBig; }\n\n@-webkit-keyframes fadeOutRightBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); } }\n\n@keyframes fadeOutRightBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(2000px, 0, 0);\n    transform: translate3d(2000px, 0, 0); } }\n\n.fadeOutRightBig {\n  -webkit-animation-name: fadeOutRightBig;\n  animation-name: fadeOutRightBig; }\n\n@-webkit-keyframes fadeOutUpBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); } }\n\n@keyframes fadeOutUpBig {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -2000px, 0);\n    transform: translate3d(0, -2000px, 0); } }\n\n.fadeOutUpBig {\n  -webkit-animation-name: fadeOutUpBig;\n  animation-name: fadeOutUpBig; }\n\n@-webkit-keyframes flip {\n  from {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);\n    -webkit-animation-timing-function: ease-out;\n    animation-timing-function: ease-out; }\n  40% {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n    -webkit-animation-timing-function: ease-out;\n    animation-timing-function: ease-out; }\n  50% {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  80% {\n    -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  to {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; } }\n\n@keyframes flip {\n  from {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);\n    -webkit-animation-timing-function: ease-out;\n    animation-timing-function: ease-out; }\n  40% {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n    -webkit-animation-timing-function: ease-out;\n    animation-timing-function: ease-out; }\n  50% {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  80% {\n    -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  to {\n    -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; } }\n\n.flip {\n  -webkit-backface-visibility: visible;\n  backface-visibility: visible;\n  -webkit-animation-name: flip;\n  animation-name: flip; }\n\n@-webkit-keyframes flipInX {\n  from {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in;\n    opacity: 0; }\n  40% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  60% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }\n  to {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); } }\n\n@keyframes flipInX {\n  from {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in;\n    opacity: 0; }\n  40% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  60% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }\n  to {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); } }\n\n.flipInX {\n  -webkit-backface-visibility: visible !important;\n  backface-visibility: visible !important;\n  -webkit-animation-name: flipInX;\n  animation-name: flipInX; }\n\n@-webkit-keyframes flipInY {\n  from {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in;\n    opacity: 0; }\n  40% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  60% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }\n  to {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); } }\n\n@keyframes flipInY {\n  from {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in;\n    opacity: 0; }\n  40% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n    -webkit-animation-timing-function: ease-in;\n    animation-timing-function: ease-in; }\n  60% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }\n  to {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); } }\n\n.flipInY {\n  -webkit-backface-visibility: visible !important;\n  backface-visibility: visible !important;\n  -webkit-animation-name: flipInY;\n  animation-name: flipInY; }\n\n@-webkit-keyframes flipOutX {\n  from {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); }\n  30% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    opacity: 1; }\n  to {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    opacity: 0; } }\n\n@keyframes flipOutX {\n  from {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); }\n  30% {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    opacity: 1; }\n  to {\n    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    opacity: 0; } }\n\n.flipOutX {\n  -webkit-animation-duration: 0.75s;\n  animation-duration: 0.75s;\n  -webkit-animation-name: flipOutX;\n  animation-name: flipOutX;\n  -webkit-backface-visibility: visible !important;\n  backface-visibility: visible !important; }\n\n@-webkit-keyframes flipOutY {\n  from {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); }\n  30% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -15deg);\n    opacity: 1; }\n  to {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    opacity: 0; } }\n\n@keyframes flipOutY {\n  from {\n    -webkit-transform: perspective(400px);\n    transform: perspective(400px); }\n  30% {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, -15deg);\n    opacity: 1; }\n  to {\n    -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    opacity: 0; } }\n\n.flipOutY {\n  -webkit-animation-duration: 0.75s;\n  animation-duration: 0.75s;\n  -webkit-backface-visibility: visible !important;\n  backface-visibility: visible !important;\n  -webkit-animation-name: flipOutY;\n  animation-name: flipOutY; }\n\n@-webkit-keyframes lightSpeedIn {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg);\n    transform: translate3d(100%, 0, 0) skewX(-30deg);\n    opacity: 0; }\n  60% {\n    -webkit-transform: skewX(20deg);\n    transform: skewX(20deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: skewX(-5deg);\n    transform: skewX(-5deg); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes lightSpeedIn {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg);\n    transform: translate3d(100%, 0, 0) skewX(-30deg);\n    opacity: 0; }\n  60% {\n    -webkit-transform: skewX(20deg);\n    transform: skewX(20deg);\n    opacity: 1; }\n  80% {\n    -webkit-transform: skewX(-5deg);\n    transform: skewX(-5deg); }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.lightSpeedIn {\n  -webkit-animation-name: lightSpeedIn;\n  animation-name: lightSpeedIn;\n  -webkit-animation-timing-function: ease-out;\n  animation-timing-function: ease-out; }\n\n@-webkit-keyframes lightSpeedOut {\n  from {\n    opacity: 1; }\n  to {\n    -webkit-transform: translate3d(100%, 0, 0) skewX(30deg);\n    transform: translate3d(100%, 0, 0) skewX(30deg);\n    opacity: 0; } }\n\n@keyframes lightSpeedOut {\n  from {\n    opacity: 1; }\n  to {\n    -webkit-transform: translate3d(100%, 0, 0) skewX(30deg);\n    transform: translate3d(100%, 0, 0) skewX(30deg);\n    opacity: 0; } }\n\n.lightSpeedOut {\n  -webkit-animation-name: lightSpeedOut;\n  animation-name: lightSpeedOut;\n  -webkit-animation-timing-function: ease-in;\n  animation-timing-function: ease-in; }\n\n@-webkit-keyframes rotateIn {\n  from {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: rotate3d(0, 0, 1, -200deg);\n    transform: rotate3d(0, 0, 1, -200deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateIn {\n  from {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: rotate3d(0, 0, 1, -200deg);\n    transform: rotate3d(0, 0, 1, -200deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateIn {\n  -webkit-animation-name: rotateIn;\n  animation-name: rotateIn; }\n\n@-webkit-keyframes rotateInDownLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateInDownLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateInDownLeft {\n  -webkit-animation-name: rotateInDownLeft;\n  animation-name: rotateInDownLeft; }\n\n@-webkit-keyframes rotateInDownRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateInDownRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateInDownRight {\n  -webkit-animation-name: rotateInDownRight;\n  animation-name: rotateInDownRight; }\n\n@-webkit-keyframes rotateInUpLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateInUpLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateInUpLeft {\n  -webkit-animation-name: rotateInUpLeft;\n  animation-name: rotateInUpLeft; }\n\n@-webkit-keyframes rotateInUpRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -90deg);\n    transform: rotate3d(0, 0, 1, -90deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n@keyframes rotateInUpRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -90deg);\n    transform: rotate3d(0, 0, 1, -90deg);\n    opacity: 0; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n    opacity: 1; } }\n\n.rotateInUpRight {\n  -webkit-animation-name: rotateInUpRight;\n  animation-name: rotateInUpRight; }\n\n@-webkit-keyframes rotateOut {\n  from {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: rotate3d(0, 0, 1, 200deg);\n    transform: rotate3d(0, 0, 1, 200deg);\n    opacity: 0; } }\n\n@keyframes rotateOut {\n  from {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: center;\n    transform-origin: center;\n    -webkit-transform: rotate3d(0, 0, 1, 200deg);\n    transform: rotate3d(0, 0, 1, 200deg);\n    opacity: 0; } }\n\n.rotateOut {\n  -webkit-animation-name: rotateOut;\n  animation-name: rotateOut; }\n\n@-webkit-keyframes rotateOutDownLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; } }\n\n@keyframes rotateOutDownLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 45deg);\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0; } }\n\n.rotateOutDownLeft {\n  -webkit-animation-name: rotateOutDownLeft;\n  animation-name: rotateOutDownLeft; }\n\n@-webkit-keyframes rotateOutDownRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; } }\n\n@keyframes rotateOutDownRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; } }\n\n.rotateOutDownRight {\n  -webkit-animation-name: rotateOutDownRight;\n  animation-name: rotateOutDownRight; }\n\n@-webkit-keyframes rotateOutUpLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; } }\n\n@keyframes rotateOutUpLeft {\n  from {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: left bottom;\n    transform-origin: left bottom;\n    -webkit-transform: rotate3d(0, 0, 1, -45deg);\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0; } }\n\n.rotateOutUpLeft {\n  -webkit-animation-name: rotateOutUpLeft;\n  animation-name: rotateOutUpLeft; }\n\n@-webkit-keyframes rotateOutUpRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 90deg);\n    transform: rotate3d(0, 0, 1, 90deg);\n    opacity: 0; } }\n\n@keyframes rotateOutUpRight {\n  from {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    opacity: 1; }\n  to {\n    -webkit-transform-origin: right bottom;\n    transform-origin: right bottom;\n    -webkit-transform: rotate3d(0, 0, 1, 90deg);\n    transform: rotate3d(0, 0, 1, 90deg);\n    opacity: 0; } }\n\n.rotateOutUpRight {\n  -webkit-animation-name: rotateOutUpRight;\n  animation-name: rotateOutUpRight; }\n\n@-webkit-keyframes hinge {\n  0% {\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out; }\n  20%,\n  60% {\n    -webkit-transform: rotate3d(0, 0, 1, 80deg);\n    transform: rotate3d(0, 0, 1, 80deg);\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out; }\n  40%,\n  80% {\n    -webkit-transform: rotate3d(0, 0, 1, 60deg);\n    transform: rotate3d(0, 0, 1, 60deg);\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out;\n    opacity: 1; }\n  to {\n    -webkit-transform: translate3d(0, 700px, 0);\n    transform: translate3d(0, 700px, 0);\n    opacity: 0; } }\n\n@keyframes hinge {\n  0% {\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out; }\n  20%,\n  60% {\n    -webkit-transform: rotate3d(0, 0, 1, 80deg);\n    transform: rotate3d(0, 0, 1, 80deg);\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out; }\n  40%,\n  80% {\n    -webkit-transform: rotate3d(0, 0, 1, 60deg);\n    transform: rotate3d(0, 0, 1, 60deg);\n    -webkit-transform-origin: top left;\n    transform-origin: top left;\n    -webkit-animation-timing-function: ease-in-out;\n    animation-timing-function: ease-in-out;\n    opacity: 1; }\n  to {\n    -webkit-transform: translate3d(0, 700px, 0);\n    transform: translate3d(0, 700px, 0);\n    opacity: 0; } }\n\n.hinge {\n  -webkit-animation-duration: 2s;\n  animation-duration: 2s;\n  -webkit-animation-name: hinge;\n  animation-name: hinge; }\n\n@-webkit-keyframes jackInTheBox {\n  from {\n    opacity: 0;\n    -webkit-transform: scale(0.1) rotate(30deg);\n    transform: scale(0.1) rotate(30deg);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom; }\n  50% {\n    -webkit-transform: rotate(-10deg);\n    transform: rotate(-10deg); }\n  70% {\n    -webkit-transform: rotate(3deg);\n    transform: rotate(3deg); }\n  to {\n    opacity: 1;\n    -webkit-transform: scale(1);\n    transform: scale(1); } }\n\n@keyframes jackInTheBox {\n  from {\n    opacity: 0;\n    -webkit-transform: scale(0.1) rotate(30deg);\n    transform: scale(0.1) rotate(30deg);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom; }\n  50% {\n    -webkit-transform: rotate(-10deg);\n    transform: rotate(-10deg); }\n  70% {\n    -webkit-transform: rotate(3deg);\n    transform: rotate(3deg); }\n  to {\n    opacity: 1;\n    -webkit-transform: scale(1);\n    transform: scale(1); } }\n\n.jackInTheBox {\n  -webkit-animation-name: jackInTheBox;\n  animation-name: jackInTheBox; }\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n@-webkit-keyframes rollIn {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);\n    transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n@keyframes rollIn {\n  from {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);\n    transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); }\n  to {\n    opacity: 1;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.rollIn {\n  -webkit-animation-name: rollIn;\n  animation-name: rollIn; }\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n@-webkit-keyframes rollOut {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);\n    transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } }\n@keyframes rollOut {\n  from {\n    opacity: 1; }\n  to {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);\n    transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } }\n\n.rollOut {\n  -webkit-animation-name: rollOut;\n  animation-name: rollOut; }\n\n@-webkit-keyframes zoomIn {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  50% {\n    opacity: 1; } }\n\n@keyframes zoomIn {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  50% {\n    opacity: 1; } }\n\n.zoomIn {\n  -webkit-animation-name: zoomIn;\n  animation-name: zoomIn; }\n\n@-webkit-keyframes zoomInDown {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomInDown {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomInDown {\n  -webkit-animation-name: zoomInDown;\n  animation-name: zoomInDown; }\n\n@-webkit-keyframes zoomInLeft {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomInLeft {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomInLeft {\n  -webkit-animation-name: zoomInLeft;\n  animation-name: zoomInLeft; }\n\n@-webkit-keyframes zoomInRight {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomInRight {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomInRight {\n  -webkit-animation-name: zoomInRight;\n  animation-name: zoomInRight; }\n\n@-webkit-keyframes zoomInUp {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomInUp {\n  from {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  60% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomInUp {\n  -webkit-animation-name: zoomInUp;\n  animation-name: zoomInUp; }\n\n@-webkit-keyframes zoomOut {\n  from {\n    opacity: 1; }\n  50% {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  to {\n    opacity: 0; } }\n\n@keyframes zoomOut {\n  from {\n    opacity: 1; }\n  50% {\n    opacity: 0;\n    -webkit-transform: scale3d(0.3, 0.3, 0.3);\n    transform: scale3d(0.3, 0.3, 0.3); }\n  to {\n    opacity: 0; } }\n\n.zoomOut {\n  -webkit-animation-name: zoomOut;\n  animation-name: zoomOut; }\n\n@-webkit-keyframes zoomOutDown {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom;\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomOutDown {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom;\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomOutDown {\n  -webkit-animation-name: zoomOutDown;\n  animation-name: zoomOutDown; }\n\n@-webkit-keyframes zoomOutLeft {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0);\n    transform: scale(0.1) translate3d(-2000px, 0, 0);\n    -webkit-transform-origin: left center;\n    transform-origin: left center; } }\n\n@keyframes zoomOutLeft {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0);\n    transform: scale(0.1) translate3d(-2000px, 0, 0);\n    -webkit-transform-origin: left center;\n    transform-origin: left center; } }\n\n.zoomOutLeft {\n  -webkit-animation-name: zoomOutLeft;\n  animation-name: zoomOutLeft; }\n\n@-webkit-keyframes zoomOutRight {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale(0.1) translate3d(2000px, 0, 0);\n    transform: scale(0.1) translate3d(2000px, 0, 0);\n    -webkit-transform-origin: right center;\n    transform-origin: right center; } }\n\n@keyframes zoomOutRight {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale(0.1) translate3d(2000px, 0, 0);\n    transform: scale(0.1) translate3d(2000px, 0, 0);\n    -webkit-transform-origin: right center;\n    transform-origin: right center; } }\n\n.zoomOutRight {\n  -webkit-animation-name: zoomOutRight;\n  animation-name: zoomOutRight; }\n\n@-webkit-keyframes zoomOutUp {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom;\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n@keyframes zoomOutUp {\n  40% {\n    opacity: 1;\n    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }\n  to {\n    opacity: 0;\n    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);\n    -webkit-transform-origin: center bottom;\n    transform-origin: center bottom;\n    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } }\n\n.zoomOutUp {\n  -webkit-animation-name: zoomOutUp;\n  animation-name: zoomOutUp; }\n\n@-webkit-keyframes slideInDown {\n  from {\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes slideInDown {\n  from {\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.slideInDown {\n  -webkit-animation-name: slideInDown;\n  animation-name: slideInDown; }\n\n@-webkit-keyframes slideInLeft {\n  from {\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes slideInLeft {\n  from {\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.slideInLeft {\n  -webkit-animation-name: slideInLeft;\n  animation-name: slideInLeft; }\n\n@-webkit-keyframes slideInRight {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes slideInRight {\n  from {\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.slideInRight {\n  -webkit-animation-name: slideInRight;\n  animation-name: slideInRight; }\n\n@-webkit-keyframes slideInUp {\n  from {\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n@keyframes slideInUp {\n  from {\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0);\n    visibility: visible; }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); } }\n\n.slideInUp {\n  -webkit-animation-name: slideInUp;\n  animation-name: slideInUp; }\n\n@-webkit-keyframes slideOutDown {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); } }\n\n@keyframes slideOutDown {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0); } }\n\n.slideOutDown {\n  -webkit-animation-name: slideOutDown;\n  animation-name: slideOutDown; }\n\n@-webkit-keyframes slideOutLeft {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); } }\n\n@keyframes slideOutLeft {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0); } }\n\n.slideOutLeft {\n  -webkit-animation-name: slideOutLeft;\n  animation-name: slideOutLeft; }\n\n@-webkit-keyframes slideOutRight {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); } }\n\n@keyframes slideOutRight {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0); } }\n\n.slideOutRight {\n  -webkit-animation-name: slideOutRight;\n  animation-name: slideOutRight; }\n\n@-webkit-keyframes slideOutUp {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); } }\n\n@keyframes slideOutUp {\n  from {\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0); }\n  to {\n    visibility: hidden;\n    -webkit-transform: translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0); } }\n\n.slideOutUp {\n  -webkit-animation-name: slideOutUp;\n  animation-name: slideOutUp; }\n"
  },
  {
    "path": "student/content/mdb/css/style.css",
    "content": ""
  },
  {
    "path": "student/content/mdb/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n  <meta charset=\"utf-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n  <meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\">\n  <title>Material Design Bootstrap</title>\n  <!-- Font Awesome -->\n  <link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.6.3/css/all.css\">\n  <!-- Bootstrap core CSS -->\n  <link href=\"css/bootstrap.min.css\" rel=\"stylesheet\">\n  <!-- Material Design Bootstrap -->\n  <link href=\"css/mdb.min.css\" rel=\"stylesheet\">\n  <!-- Your custom styles (optional) -->\n  <link href=\"css/style.css\" rel=\"stylesheet\">\n</head>\n\n<body>\n\n  <div id=\"mdb-preloader\" class=\"flex-center\">\n    <div id=\"preloader-markup\"></div>\n  </div>\n\n  <!-- Start your project here-->\n  <div style=\"height: 100vh\">\n    <div class=\"flex-center flex-column\">\n\n      <h1 class=\"text-hide animated fadeIn mb-4\" style=\"background-image: url('https://mdbootstrap.com/img/logo/mdb-transparent-250px.png'); width: 250px; height: 90px;\">MDBootstrap</h1>\n      <h5 class=\"animated fadeIn mb-3\">Thank you for using our product. We're glad you're with us.</h5>\n\n      <p class=\"animated fadeIn text-muted\">MDB Team</p>\n    </div>\n  </div>\n  <!-- /Start your project here-->\n\n  <!-- SCRIPTS -->\n  <!-- JQuery -->\n  <script type=\"text/javascript\" src=\"js/jquery-3.3.1.min.js\"></script>\n  <!-- Bootstrap tooltips -->\n  <script type=\"text/javascript\" src=\"js/popper.min.js\"></script>\n  <!-- Bootstrap core JavaScript -->\n  <script type=\"text/javascript\" src=\"js/bootstrap.min.js\"></script>\n  <!-- MDB core JavaScript -->\n  <script type=\"text/javascript\" src=\"js/mdb.js\"></script>\n</body>\n\n</html>\n"
  },
  {
    "path": "student/content/mdb/js/addons/datatables-select.js",
    "content": "/*\n * MDBootstrap integration with Datatables\n * Learn more: https://mdbootstrap.com/docs/jquery/tables/datatables/\n * About MDBootstrap: https://mdbootstrap.com/\n *\n * Select for DataTables 1.2.7\n * 2015-2018 SpryMedia Ltd - datatables.net/license/mit\n */\n\n/**\n * @summary     Select for DataTables\n * @description A collection of API methods, events and buttons for DataTables\n *   that provides selection options of the items in a DataTable\n * @version     1.2.7\n * @file        dataTables.select.js\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\n * @contact     datatables.net/forums\n * @copyright   Copyright 2015-2018 SpryMedia Ltd.\n *\n * This source file is free software, available under the following license:\n *   MIT license - http://datatables.net/license/mit\n *\n * This source file is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\n *\n * For details please refer to: http://www.datatables.net/extensions/select\n */\n(function( factory ){\n\tif ( typeof define === 'function' && define.amd ) {\n\t\t// AMD\n\t\tdefine( ['jquery', 'datatables.net'], function ( $ ) {\n\t\t\treturn factory( $, window, document );\n\t\t} );\n\t}\n\telse if ( typeof exports === 'object' ) {\n\t\t// CommonJS\n\t\tmodule.exports = function (root, $) {\n\t\t\tif ( ! root ) {\n\t\t\t\troot = window;\n\t\t\t}\n\n\t\t\tif ( ! $ || ! $.fn.dataTable ) {\n\t\t\t\t$ = require('datatables.net')(root, $).$;\n\t\t\t}\n\n\t\t\treturn factory( $, root, root.document );\n\t\t};\n\t}\n\telse {\n\t\t// Browser\n\t\tfactory( jQuery, window, document );\n\t}\n}(function( $, window, document, undefined ) {\n'use strict';\nvar DataTable = $.fn.dataTable;\n\n\n// Version information for debugger\nDataTable.select = {};\n\nDataTable.select.version = '1.2.7';\n\nDataTable.select.init = function ( dt ) {\n\tvar ctx = dt.settings()[0];\n\tvar init = ctx.oInit.select;\n\tvar defaults = DataTable.defaults.select;\n\tvar opts = init === undefined ?\n\t\tdefaults :\n\t\tinit;\n\n\t// Set defaults\n\tvar items = 'row';\n\tvar style = 'api';\n\tvar blurable = false;\n\tvar info = true;\n\tvar selector = 'td, th';\n\tvar className = 'selected';\n\tvar setStyle = false;\n\n\tctx._select = {};\n\n\t// Initialisation customisations\n\tif ( opts === true ) {\n\t\tstyle = 'os';\n\t\tsetStyle = true;\n\t}\n\telse if ( typeof opts === 'string' ) {\n\t\tstyle = opts;\n\t\tsetStyle = true;\n\t}\n\telse if ( $.isPlainObject( opts ) ) {\n\t\tif ( opts.blurable !== undefined ) {\n\t\t\tblurable = opts.blurable;\n\t\t}\n\n\t\tif ( opts.info !== undefined ) {\n\t\t\tinfo = opts.info;\n\t\t}\n\n\t\tif ( opts.items !== undefined ) {\n\t\t\titems = opts.items;\n\t\t}\n\n\t\tif ( opts.style !== undefined ) {\n\t\t\tstyle = opts.style;\n\t\t\tsetStyle = true;\n\t\t}\n\n\t\tif ( opts.selector !== undefined ) {\n\t\t\tselector = opts.selector;\n\t\t}\n\n\t\tif ( opts.className !== undefined ) {\n\t\t\tclassName = opts.className;\n\t\t}\n\t}\n\n\tdt.select.selector( selector );\n\tdt.select.items( items );\n\tdt.select.style( style );\n\tdt.select.blurable( blurable );\n\tdt.select.info( info );\n\tctx._select.className = className;\n\n\n\t// Sort table based on selected rows. Requires Select Datatables extension\n\t$.fn.dataTable.ext.order['select-checkbox'] = function ( settings, col ) {\n\t\treturn this.api().column( col, {order: 'index'} ).nodes().map( function ( td ) {\n\t\t\tif ( settings._select.items === 'row' ) {\n\t\t\t\treturn $( td ).parent().hasClass( settings._select.className );\n\t\t\t} else if ( settings._select.items === 'cell' ) {\n\t\t\t\treturn $( td ).hasClass( settings._select.className );\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t};\n\n\t// If the init options haven't enabled select, but there is a selectable\n\t// class name, then enable\n\tif ( ! setStyle && $( dt.table().node() ).hasClass( 'selectable' ) ) {\n\t\tdt.select.style( 'os' );\n\t}\n};\n\n/*\n\nSelect is a collection of API methods, event handlers, event emitters and\nbuttons (for the `Buttons` extension) for DataTables. It provides the following\nfeatures, with an overview of how they are implemented:\n\n## Selection of rows, columns and cells. Whether an item is selected or not is\n   stored in:\n\n* rows: a `_select_selected` property which contains a boolean value of the\n  DataTables' `aoData` object for each row\n* columns: a `_select_selected` property which contains a boolean value of the\n  DataTables' `aoColumns` object for each column\n* cells: a `_selected_cells` property which contains an array of boolean values\n  of the `aoData` object for each row. The array is the same length as the\n  columns array, with each element of it representing a cell.\n\nThis method of using boolean flags allows Select to operate when nodes have not\nbeen created for rows / cells (DataTables' defer rendering feature).\n\n## API methods\n\nA range of API methods are available for triggering selection and de-selection\nof rows. Methods are also available to configure the selection events that can\nbe triggered by an end user (such as which items are to be selected). To a large\nextent, these of API methods *is* Select. It is basically a collection of helper\nfunctions that can be used to select items in a DataTable.\n\nConfiguration of select is held in the object `_select` which is attached to the\nDataTables settings object on initialisation. Select being available on a table\nis not optional when Select is loaded, but its default is for selection only to\nbe available via the API - so the end user wouldn't be able to select rows\nwithout additional configuration.\n\nThe `_select` object contains the following properties:\n\n```\n{\n\titems:string     - Can be `rows`, `columns` or `cells`. Defines what item\n\t                   will be selected if the user is allowed to activate row\n\t                   selection using the mouse.\n\tstyle:string     - Can be `none`, `single`, `multi` or `os`. Defines the\n\t                   interaction style when selecting items\n\tblurable:boolean - If row selection can be cleared by clicking outside of\n\t                   the table\n\tinfo:boolean     - If the selection summary should be shown in the table\n\t                   information elements\n}\n```\n\nIn addition to the API methods, Select also extends the DataTables selector\noptions for rows, columns and cells adding a `selected` option to the selector\noptions object, allowing the developer to select only selected items or\nunselected items.\n\n## Mouse selection of items\n\nClicking on items can be used to select items. This is done by a simple event\nhandler that will select the items using the API methods.\n\n */\n\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * Local functions\n */\n\n/**\n * Add one or more cells to the selection when shift clicking in OS selection\n * style cell selection.\n *\n * Cell range is more complicated than row and column as we want to select\n * in the visible grid rather than by index in sequence. For example, if you\n * click first in cell 1-1 and then shift click in 2-2 - cells 1-2 and 2-1\n * should also be selected (and not 1-3, 1-4. etc)\n *\n * @param  {DataTable.Api} dt   DataTable\n * @param  {object}        idx  Cell index to select to\n * @param  {object}        last Cell index to select from\n * @private\n */\nfunction cellRange( dt, idx, last )\n{\n\tvar indexes;\n\tvar columnIndexes;\n\tvar rowIndexes;\n\tvar selectColumns = function ( start, end ) {\n\t\tif ( start > end ) {\n\t\t\tvar tmp = end;\n\t\t\tend = start;\n\t\t\tstart = tmp;\n\t\t}\n\n\t\tvar record = false;\n\t\treturn dt.columns( ':visible' ).indexes().filter( function (i) {\n\t\t\tif ( i === start ) {\n\t\t\t\trecord = true;\n\t\t\t}\n\n\t\t\tif ( i === end ) { // not else if, as start might === end\n\t\t\t\trecord = false;\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn record;\n\t\t} );\n\t};\n\n\tvar selectRows = function ( start, end ) {\n\t\tvar indexes = dt.rows( { search: 'applied' } ).indexes();\n\n\t\t// Which comes first - might need to swap\n\t\tif ( indexes.indexOf( start ) > indexes.indexOf( end ) ) {\n\t\t\tvar tmp = end;\n\t\t\tend = start;\n\t\t\tstart = tmp;\n\t\t}\n\n\t\tvar record = false;\n\t\treturn indexes.filter( function (i) {\n\t\t\tif ( i === start ) {\n\t\t\t\trecord = true;\n\t\t\t}\n\n\t\t\tif ( i === end ) {\n\t\t\t\trecord = false;\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn record;\n\t\t} );\n\t};\n\n\tif ( ! dt.cells( { selected: true } ).any() && ! last ) {\n\t\t// select from the top left cell to this one\n\t\tcolumnIndexes = selectColumns( 0, idx.column );\n\t\trowIndexes = selectRows( 0 , idx.row );\n\t}\n\telse {\n\t\t// Get column indexes between old and new\n\t\tcolumnIndexes = selectColumns( last.column, idx.column );\n\t\trowIndexes = selectRows( last.row , idx.row );\n\t}\n\n\tindexes = dt.cells( rowIndexes, columnIndexes ).flatten();\n\n\tif ( ! dt.cells( idx, { selected: true } ).any() ) {\n\t\t// Select range\n\t\tdt.cells( indexes ).select();\n\t}\n\telse {\n\t\t// Deselect range\n\t\tdt.cells( indexes ).deselect();\n\t}\n}\n\n/**\n * Disable mouse selection by removing the selectors\n *\n * @param {DataTable.Api} dt DataTable to remove events from\n * @private\n */\nfunction disableMouseSelection( dt )\n{\n\tvar ctx = dt.settings()[0];\n\tvar selector = ctx._select.selector;\n\n\t$( dt.table().container() )\n\t\t.off( 'mousedown.dtSelect', selector )\n\t\t.off( 'mouseup.dtSelect', selector )\n\t\t.off( 'click.dtSelect', selector );\n\n\t$('body').off( 'click.dtSelect' + dt.table().node().id );\n}\n\n/**\n * Attach mouse listeners to the table to allow mouse selection of items\n *\n * @param {DataTable.Api} dt DataTable to remove events from\n * @private\n */\nfunction enableMouseSelection ( dt )\n{\n\tvar container = $( dt.table().container() );\n\tvar ctx = dt.settings()[0];\n\tvar selector = ctx._select.selector;\n\tvar matchSelection;\n\n\tcontainer\n\t\t.on( 'mousedown.dtSelect', selector, function(e) {\n\t\t\t// Disallow text selection for shift clicking on the table so multi\n\t\t\t// element selection doesn't look terrible!\n\t\t\tif ( e.shiftKey || e.metaKey || e.ctrlKey ) {\n\t\t\t\tcontainer\n\t\t\t\t\t.css( '-moz-user-select', 'none' )\n\t\t\t\t\t.one('selectstart.dtSelect', selector, function () {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} );\n\t\t\t}\n\n\t\t\tif ( window.getSelection ) {\n\t\t\t\tmatchSelection = window.getSelection();\n\t\t\t}\n\t\t} )\n\t\t.on( 'mouseup.dtSelect', selector, function() {\n\t\t\t// Allow text selection to occur again, Mozilla style (tested in FF\n\t\t\t// 35.0.1 - still required)\n\t\t\tcontainer.css( '-moz-user-select', '' );\n\t\t} )\n\t\t.on( 'click.dtSelect', selector, function ( e ) {\n\t\t\tvar items = dt.select.items();\n\t\t\tvar idx;\n\n\t\t\t// If text was selected (click and drag), then we shouldn't change\n\t\t\t// the row's selected state\n\t\t\tif ( window.getSelection ) {\n\t\t\t\tvar selection = window.getSelection();\n\n\t\t\t\t// If the element that contains the selection is not in the table, we can ignore it\n\t\t\t\t// This can happen if the developer selects text from the click event\n\t\t\t\tif ( ! selection.anchorNode || $(selection.anchorNode).closest('table')[0] === dt.table().node() ) {\n\t\t\t\t\tif ( selection !== matchSelection ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar ctx = dt.settings()[0];\n\t\t\tvar wrapperClass = dt.settings()[0].oClasses.sWrapper.replace(/ /g, '.');\n\n\t\t\t// Ignore clicks inside a sub-table\n\t\t\tif ( $(e.target).closest('div.'+wrapperClass)[0] != dt.table().container() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar cell = dt.cell( $(e.target).closest('td, th') );\n\n\t\t\t// Check the cell actually belongs to the host DataTable (so child\n\t\t\t// rows, etc, are ignored)\n\t\t\tif ( ! cell.any() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar event = $.Event('user-select.dt');\n\t\t\teventTrigger( dt, event, [ items, cell, e ] );\n\n\t\t\tif ( event.isDefaultPrevented() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar cellIndex = cell.index();\n\t\t\tif ( items === 'row' ) {\n\t\t\t\tidx = cellIndex.row;\n\t\t\t\ttypeSelect( e, dt, ctx, 'row', idx );\n\t\t\t}\n\t\t\telse if ( items === 'column' ) {\n\t\t\t\tidx = cell.index().column;\n\t\t\t\ttypeSelect( e, dt, ctx, 'column', idx );\n\t\t\t}\n\t\t\telse if ( items === 'cell' ) {\n\t\t\t\tidx = cell.index();\n\t\t\t\ttypeSelect( e, dt, ctx, 'cell', idx );\n\t\t\t}\n\n\t\t\tctx._select_lastCell = cellIndex;\n\t\t} );\n\n\t// Blurable\n\t$('body').on( 'click.dtSelect' + dt.table().node().id, function ( e ) {\n\t\tif ( ctx._select.blurable ) {\n\t\t\t// If the click was inside the DataTables container, don't blur\n\t\t\tif ( $(e.target).parents().filter( dt.table().container() ).length ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Ignore elements which have been removed from the DOM (i.e. paging\n\t\t\t// buttons)\n\t\t\tif ( $(e.target).parents('html').length === 0 ) {\n\t\t\t \treturn;\n\t\t\t}\n\n\t\t\t// Don't blur in Editor form\n\t\t\tif ( $(e.target).parents('div.DTE').length ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tclear( ctx, true );\n\t\t}\n\t} );\n}\n\n/**\n * Trigger an event on a DataTable\n *\n * @param {DataTable.Api} api      DataTable to trigger events on\n * @param  {boolean}      selected true if selected, false if deselected\n * @param  {string}       type     Item type acting on\n * @param  {boolean}      any      Require that there are values before\n *     triggering\n * @private\n */\nfunction eventTrigger ( api, type, args, any )\n{\n\tif ( any && ! api.flatten().length ) {\n\t\treturn;\n\t}\n\n\tif ( typeof type === 'string' ) {\n\t\ttype = type +'.dt';\n\t}\n\n\targs.unshift( api );\n\n\t$(api.table().node()).trigger( type, args );\n}\n\n/**\n * Update the information element of the DataTable showing information about the\n * items selected. This is done by adding tags to the existing text\n *\n * @param {DataTable.Api} api DataTable to update\n * @private\n */\nfunction info ( api )\n{\n\tvar ctx = api.settings()[0];\n\n\tif ( ! ctx._select.info || ! ctx.aanFeatures.i ) {\n\t\treturn;\n\t}\n\n\tif ( api.select.style() === 'api' ) {\n\t\treturn;\n\t}\n\n\tvar rows    = api.rows( { selected: true } ).flatten().length;\n\tvar columns = api.columns( { selected: true } ).flatten().length;\n\tvar cells   = api.cells( { selected: true } ).flatten().length;\n\n\tvar add = function ( el, name, num ) {\n\t\tel.append( $('<span class=\"select-item\"/>').append( api.i18n(\n\t\t\t'select.'+name+'s',\n\t\t\t{ _: '%d '+name+'s selected', 0: '', 1: '1 '+name+' selected' },\n\t\t\tnum\n\t\t) ) );\n\t};\n\n\t// Internal knowledge of DataTables to loop over all information elements\n\t$.each( ctx.aanFeatures.i, function ( i, el ) {\n\t\tel = $(el);\n\n\t\tvar output  = $('<span class=\"select-info\"/>');\n\t\tadd( output, 'row', rows );\n\t\tadd( output, 'column', columns );\n\t\tadd( output, 'cell', cells  );\n\n\t\tvar exisiting = el.children('span.select-info');\n\t\tif ( exisiting.length ) {\n\t\t\texisiting.remove();\n\t\t}\n\n\t\tif ( output.text() !== '' ) {\n\t\t\tel.append( output );\n\t\t}\n\t} );\n}\n\n/**\n * Initialisation of a new table. Attach event handlers and callbacks to allow\n * Select to operate correctly.\n *\n * This will occur _after_ the initial DataTables initialisation, although\n * before Ajax data is rendered, if there is ajax data\n *\n * @param  {DataTable.settings} ctx Settings object to operate on\n * @private\n */\nfunction init ( ctx ) {\n\tvar api = new DataTable.Api( ctx );\n\n\t// Row callback so that classes can be added to rows and cells if the item\n\t// was selected before the element was created. This will happen with the\n\t// `deferRender` option enabled.\n\t//\n\t// This method of attaching to `aoRowCreatedCallback` is a hack until\n\t// DataTables has proper events for row manipulation If you are reviewing\n\t// this code to create your own plug-ins, please do not do this!\n\tctx.aoRowCreatedCallback.push( {\n\t\tfn: function ( row, data, index ) {\n\t\t\tvar i, ien;\n\t\t\tvar d = ctx.aoData[ index ];\n\n\t\t\t// Row\n\t\t\tif ( d._select_selected ) {\n\t\t\t\t$( row ).addClass( ctx._select.className );\n\t\t\t}\n\n\t\t\t// Cells and columns - if separated out, we would need to do two\n\t\t\t// loops, so it makes sense to combine them into a single one\n\t\t\tfor ( i=0, ien=ctx.aoColumns.length ; i<ien ; i++ ) {\n\t\t\t\tif ( ctx.aoColumns[i]._select_selected || (d._selected_cells && d._selected_cells[i]) ) {\n\t\t\t\t\t$(d.anCells[i]).addClass( ctx._select.className );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tsName: 'select-deferRender'\n\t} );\n\n\t// On Ajax reload we want to reselect all rows which are currently selected,\n\t// if there is an rowId (i.e. a unique value to identify each row with)\n\tapi.on( 'preXhr.dt.dtSelect', function () {\n\t\t// note that column selection doesn't need to be cached and then\n\t\t// reselected, as they are already selected\n\t\tvar rows = api.rows( { selected: true } ).ids( true ).filter( function ( d ) {\n\t\t\treturn d !== undefined;\n\t\t} );\n\n\t\tvar cells = api.cells( { selected: true } ).eq(0).map( function ( cellIdx ) {\n\t\t\tvar id = api.row( cellIdx.row ).id( true );\n\t\t\treturn id ?\n\t\t\t\t{ row: id, column: cellIdx.column } :\n\t\t\t\tundefined;\n\t\t} ).filter( function ( d ) {\n\t\t\treturn d !== undefined;\n\t\t} );\n\n\t\t// On the next draw, reselect the currently selected items\n\t\tapi.one( 'draw.dt.dtSelect', function () {\n\t\t\tapi.rows( rows ).select();\n\n\t\t\t// `cells` is not a cell index selector, so it needs a loop\n\t\t\tif ( cells.any() ) {\n\t\t\t\tcells.each( function ( id ) {\n\t\t\t\t\tapi.cells( id.row, id.column ).select();\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t} );\n\n\t// Update the table information element with selected item summary\n\tapi.on( 'draw.dtSelect.dt select.dtSelect.dt deselect.dtSelect.dt info.dt', function () {\n\t\tinfo( api );\n\t} );\n\n\t// Clean up and release\n\tapi.on( 'destroy.dtSelect', function () {\n\t\tdisableMouseSelection( api );\n\t\tapi.off( '.dtSelect' );\n\t} );\n}\n\n/**\n * Add one or more items (rows or columns) to the selection when shift clicking\n * in OS selection style\n *\n * @param  {DataTable.Api} dt   DataTable\n * @param  {string}        type Row or column range selector\n * @param  {object}        idx  Item index to select to\n * @param  {object}        last Item index to select from\n * @private\n */\nfunction rowColumnRange( dt, type, idx, last )\n{\n\t// Add a range of rows from the last selected row to this one\n\tvar indexes = dt[type+'s']( { search: 'applied' } ).indexes();\n\tvar idx1 = $.inArray( last, indexes );\n\tvar idx2 = $.inArray( idx, indexes );\n\n\tif ( ! dt[type+'s']( { selected: true } ).any() && idx1 === -1 ) {\n\t\t// select from top to here - slightly odd, but both Windows and Mac OS\n\t\t// do this\n\t\tindexes.splice( $.inArray( idx, indexes )+1, indexes.length );\n\t}\n\telse {\n\t\t// reverse so we can shift click 'up' as well as down\n\t\tif ( idx1 > idx2 ) {\n\t\t\tvar tmp = idx2;\n\t\t\tidx2 = idx1;\n\t\t\tidx1 = tmp;\n\t\t}\n\n\t\tindexes.splice( idx2+1, indexes.length );\n\t\tindexes.splice( 0, idx1 );\n\t}\n\n\tif ( ! dt[type]( idx, { selected: true } ).any() ) {\n\t\t// Select range\n\t\tdt[type+'s']( indexes ).select();\n\t}\n\telse {\n\t\t// Deselect range - need to keep the clicked on row selected\n\t\tindexes.splice( $.inArray( idx, indexes ), 1 );\n\t\tdt[type+'s']( indexes ).deselect();\n\t}\n}\n\n/**\n * Clear all selected items\n *\n * @param  {DataTable.settings} ctx Settings object of the host DataTable\n * @param  {boolean} [force=false] Force the de-selection to happen, regardless\n *     of selection style\n * @private\n */\nfunction clear( ctx, force )\n{\n\tif ( force || ctx._select.style === 'single' ) {\n\t\tvar api = new DataTable.Api( ctx );\n\n\t\tapi.rows( { selected: true } ).deselect();\n\t\tapi.columns( { selected: true } ).deselect();\n\t\tapi.cells( { selected: true } ).deselect();\n\t}\n}\n\n/**\n * Select items based on the current configuration for style and items.\n *\n * @param  {object}             e    Mouse event object\n * @param  {DataTables.Api}     dt   DataTable\n * @param  {DataTable.settings} ctx  Settings object of the host DataTable\n * @param  {string}             type Items to select\n * @param  {int|object}         idx  Index of the item to select\n * @private\n */\nfunction typeSelect ( e, dt, ctx, type, idx )\n{\n\tvar style = dt.select.style();\n\tvar isSelected = dt[type]( idx, { selected: true } ).any();\n\n\tif ( style === 'os' ) {\n\t\tif ( e.ctrlKey || e.metaKey ) {\n\t\t\t// Add or remove from the selection\n\t\t\tdt[type]( idx ).select( ! isSelected );\n\t\t}\n\t\telse if ( e.shiftKey ) {\n\t\t\tif ( type === 'cell' ) {\n\t\t\t\tcellRange( dt, idx, ctx._select_lastCell || null );\n\t\t\t}\n\t\t\telse {\n\t\t\t\trowColumnRange( dt, type, idx, ctx._select_lastCell ?\n\t\t\t\t\tctx._select_lastCell[type] :\n\t\t\t\t\tnull\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// No cmd or shift click - deselect if selected, or select\n\t\t\t// this row only\n\t\t\tvar selected = dt[type+'s']( { selected: true } );\n\n\t\t\tif ( isSelected && selected.flatten().length === 1 ) {\n\t\t\t\tdt[type]( idx ).deselect();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tselected.deselect();\n\t\t\t\tdt[type]( idx ).select();\n\t\t\t}\n\t\t}\n\t} else if ( style == 'multi+shift' ) {\n\t\tif ( e.shiftKey ) {\n\t\t\tif ( type === 'cell' ) {\n\t\t\t\tcellRange( dt, idx, ctx._select_lastCell || null );\n\t\t\t}\n\t\t\telse {\n\t\t\t\trowColumnRange( dt, type, idx, ctx._select_lastCell ?\n\t\t\t\t\tctx._select_lastCell[type] :\n\t\t\t\t\tnull\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tdt[ type ]( idx ).select( ! isSelected );\n\t\t}\n\t}\n\telse {\n\t\tdt[ type ]( idx ).select( ! isSelected );\n\t}\n}\n\n\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * DataTables selectors\n */\n\n// row and column are basically identical just assigned to different properties\n// and checking a different array, so we can dynamically create the functions to\n// reduce the code size\n$.each( [\n\t{ type: 'row', prop: 'aoData' },\n\t{ type: 'column', prop: 'aoColumns' }\n], function ( i, o ) {\n\tDataTable.ext.selector[ o.type ].push( function ( settings, opts, indexes ) {\n\t\tvar selected = opts.selected;\n\t\tvar data;\n\t\tvar out = [];\n\n\t\tif ( selected !== true && selected !== false ) {\n\t\t\treturn indexes;\n\t\t}\n\n\t\tfor ( var i=0, ien=indexes.length ; i<ien ; i++ ) {\n\t\t\tdata = settings[ o.prop ][ indexes[i] ];\n\n\t\t\tif ( (selected === true && data._select_selected === true) ||\n\t\t\t     (selected === false && ! data._select_selected )\n\t\t\t) {\n\t\t\t\tout.push( indexes[i] );\n\t\t\t}\n\t\t}\n\n\t\treturn out;\n\t} );\n} );\n\nDataTable.ext.selector.cell.push( function ( settings, opts, cells ) {\n\tvar selected = opts.selected;\n\tvar rowData;\n\tvar out = [];\n\n\tif ( selected === undefined ) {\n\t\treturn cells;\n\t}\n\n\tfor ( var i=0, ien=cells.length ; i<ien ; i++ ) {\n\t\trowData = settings.aoData[ cells[i].row ];\n\n\t\tif ( (selected === true && rowData._selected_cells && rowData._selected_cells[ cells[i].column ] === true) ||\n\t\t     (selected === false && ( ! rowData._selected_cells || ! rowData._selected_cells[ cells[i].column ] ) )\n\t\t) {\n\t\t\tout.push( cells[i] );\n\t\t}\n\t}\n\n\treturn out;\n} );\n\n\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * DataTables API\n *\n * For complete documentation, please refer to the docs/api directory or the\n * DataTables site\n */\n\n// Local variables to improve compression\nvar apiRegister = DataTable.Api.register;\nvar apiRegisterPlural = DataTable.Api.registerPlural;\n\napiRegister( 'select()', function () {\n\treturn this.iterator( 'table', function ( ctx ) {\n\t\tDataTable.select.init( new DataTable.Api( ctx ) );\n\t} );\n} );\n\napiRegister( 'select.blurable()', function ( flag ) {\n\tif ( flag === undefined ) {\n\t\treturn this.context[0]._select.blurable;\n\t}\n\n\treturn this.iterator( 'table', function ( ctx ) {\n\t\tctx._select.blurable = flag;\n\t} );\n} );\n\napiRegister( 'select.info()', function ( flag ) {\n\tif ( info === undefined ) {\n\t\treturn this.context[0]._select.info;\n\t}\n\n\treturn this.iterator( 'table', function ( ctx ) {\n\t\tctx._select.info = flag;\n\t} );\n} );\n\napiRegister( 'select.items()', function ( items ) {\n\tif ( items === undefined ) {\n\t\treturn this.context[0]._select.items;\n\t}\n\n\treturn this.iterator( 'table', function ( ctx ) {\n\t\tctx._select.items = items;\n\n\t\teventTrigger( new DataTable.Api( ctx ), 'selectItems', [ items ] );\n\t} );\n} );\n\n// Takes effect from the _next_ selection. None disables future selection, but\n// does not clear the current selection. Use the `deselect` methods for that\napiRegister( 'select.style()', function ( style ) {\n\tif ( style === undefined ) {\n\t\treturn this.context[0]._select.style;\n\t}\n\n\treturn this.iterator( 'table', function ( ctx ) {\n\t\tctx._select.style = style;\n\n\t\tif ( ! ctx._select_init ) {\n\t\t\tinit( ctx );\n\t\t}\n\n\t\t// Add / remove mouse event handlers. They aren't required when only\n\t\t// API selection is available\n\t\tvar dt = new DataTable.Api( ctx );\n\t\tdisableMouseSelection( dt );\n\n\t\tif ( style !== 'api' ) {\n\t\t\tenableMouseSelection( dt );\n\t\t}\n\n\t\teventTrigger( new DataTable.Api( ctx ), 'selectStyle', [ style ] );\n\t} );\n} );\n\napiRegister( 'select.selector()', function ( selector ) {\n\tif ( selector === undefined ) {\n\t\treturn this.context[0]._select.selector;\n\t}\n\n\treturn this.iterator( 'table', function ( ctx ) {\n\t\tdisableMouseSelection( new DataTable.Api( ctx ) );\n\n\t\tctx._select.selector = selector;\n\n\t\tif ( ctx._select.style !== 'api' ) {\n\t\t\tenableMouseSelection( new DataTable.Api( ctx ) );\n\t\t}\n\t} );\n} );\n\n\n\napiRegisterPlural( 'rows().select()', 'row().select()', function ( select ) {\n\tvar api = this;\n\n\tif ( select === false ) {\n\t\treturn this.deselect();\n\t}\n\n\tthis.iterator( 'row', function ( ctx, idx ) {\n\t\tclear( ctx );\n\n\t\tctx.aoData[ idx ]._select_selected = true;\n\t\t$( ctx.aoData[ idx ].nTr ).addClass( ctx._select.className );\n\t} );\n\n\tthis.iterator( 'table', function ( ctx, i ) {\n\t\teventTrigger( api, 'select', [ 'row', api[i] ], true );\n\t} );\n\n\treturn this;\n} );\n\napiRegisterPlural( 'columns().select()', 'column().select()', function ( select ) {\n\tvar api = this;\n\n\tif ( select === false ) {\n\t\treturn this.deselect();\n\t}\n\n\tthis.iterator( 'column', function ( ctx, idx ) {\n\t\tclear( ctx );\n\n\t\tctx.aoColumns[ idx ]._select_selected = true;\n\n\t\tvar column = new DataTable.Api( ctx ).column( idx );\n\n\t\t$( column.header() ).addClass( ctx._select.className );\n\t\t$( column.footer() ).addClass( ctx._select.className );\n\n\t\tcolumn.nodes().to$().addClass( ctx._select.className );\n\t} );\n\n\tthis.iterator( 'table', function ( ctx, i ) {\n\t\teventTrigger( api, 'select', [ 'column', api[i] ], true );\n\t} );\n\n\treturn this;\n} );\n\napiRegisterPlural( 'cells().select()', 'cell().select()', function ( select ) {\n\tvar api = this;\n\n\tif ( select === false ) {\n\t\treturn this.deselect();\n\t}\n\n\tthis.iterator( 'cell', function ( ctx, rowIdx, colIdx ) {\n\t\tclear( ctx );\n\n\t\tvar data = ctx.aoData[ rowIdx ];\n\n\t\tif ( data._selected_cells === undefined ) {\n\t\t\tdata._selected_cells = [];\n\t\t}\n\n\t\tdata._selected_cells[ colIdx ] = true;\n\n\t\tif ( data.anCells ) {\n\t\t\t$( data.anCells[ colIdx ] ).addClass( ctx._select.className );\n\t\t}\n\t} );\n\n\tthis.iterator( 'table', function ( ctx, i ) {\n\t\teventTrigger( api, 'select', [ 'cell', api[i] ], true );\n\t} );\n\n\treturn this;\n} );\n\n\napiRegisterPlural( 'rows().deselect()', 'row().deselect()', function () {\n\tvar api = this;\n\n\tthis.iterator( 'row', function ( ctx, idx ) {\n\t\tctx.aoData[ idx ]._select_selected = false;\n\t\t$( ctx.aoData[ idx ].nTr ).removeClass( ctx._select.className );\n\t} );\n\n\tthis.iterator( 'table', function ( ctx, i ) {\n\t\teventTrigger( api, 'deselect', [ 'row', api[i] ], true );\n\t} );\n\n\treturn this;\n} );\n\napiRegisterPlural( 'columns().deselect()', 'column().deselect()', function () {\n\tvar api = this;\n\n\tthis.iterator( 'column', function ( ctx, idx ) {\n\t\tctx.aoColumns[ idx ]._select_selected = false;\n\n\t\tvar api = new DataTable.Api( ctx );\n\t\tvar column = api.column( idx );\n\n\t\t$( column.header() ).removeClass( ctx._select.className );\n\t\t$( column.footer() ).removeClass( ctx._select.className );\n\n\t\t// Need to loop over each cell, rather than just using\n\t\t// `column().nodes()` as cells which are individually selected should\n\t\t// not have the `selected` class removed from them\n\t\tapi.cells( null, idx ).indexes().each( function (cellIdx) {\n\t\t\tvar data = ctx.aoData[ cellIdx.row ];\n\t\t\tvar cellSelected = data._selected_cells;\n\n\t\t\tif ( data.anCells && (! cellSelected || ! cellSelected[ cellIdx.column ]) ) {\n\t\t\t\t$( data.anCells[ cellIdx.column  ] ).removeClass( ctx._select.className );\n\t\t\t}\n\t\t} );\n\t} );\n\n\tthis.iterator( 'table', function ( ctx, i ) {\n\t\teventTrigger( api, 'deselect', [ 'column', api[i] ], true );\n\t} );\n\n\treturn this;\n} );\n\napiRegisterPlural( 'cells().deselect()', 'cell().deselect()', function () {\n\tvar api = this;\n\n\tthis.iterator( 'cell', function ( ctx, rowIdx, colIdx ) {\n\t\tvar data = ctx.aoData[ rowIdx ];\n\n\t\tdata._selected_cells[ colIdx ] = false;\n\n\t\t// Remove class only if the cells exist, and the cell is not column\n\t\t// selected, in which case the class should remain (since it is selected\n\t\t// in the column)\n\t\tif ( data.anCells && ! ctx.aoColumns[ colIdx ]._select_selected ) {\n\t\t\t$( data.anCells[ colIdx ] ).removeClass( ctx._select.className );\n\t\t}\n\t} );\n\n\tthis.iterator( 'table', function ( ctx, i ) {\n\t\teventTrigger( api, 'deselect', [ 'cell', api[i] ], true );\n\t} );\n\n\treturn this;\n} );\n\n\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * Buttons\n */\nfunction i18n( label, def ) {\n\treturn function (dt) {\n\t\treturn dt.i18n( 'buttons.'+label, def );\n\t};\n}\n\n// Common events with suitable namespaces\nfunction namespacedEvents ( config ) {\n\tvar unique = config._eventNamespace;\n\n\treturn 'draw.dt.DT'+unique+' select.dt.DT'+unique+' deselect.dt.DT'+unique;\n}\n\nfunction enabled ( dt, config ) {\n\tif ( $.inArray( 'rows', config.limitTo ) !== -1 && dt.rows( { selected: true } ).any() ) {\n\t\treturn true;\n\t}\n\n\tif ( $.inArray( 'columns', config.limitTo ) !== -1 && dt.columns( { selected: true } ).any() ) {\n\t\treturn true;\n\t}\n\n\tif ( $.inArray( 'cells', config.limitTo ) !== -1 && dt.cells( { selected: true } ).any() ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\nvar _buttonNamespace = 0;\n\n$.extend( DataTable.ext.buttons, {\n\tselected: {\n\t\ttext: i18n( 'selected', 'Selected' ),\n\t\tclassName: 'buttons-selected',\n\t\tlimitTo: [ 'rows', 'columns', 'cells' ],\n\t\tinit: function ( dt, node, config ) {\n\t\t\tvar that = this;\n\t\t\tconfig._eventNamespace = '.select'+(_buttonNamespace++);\n\n\t\t\t// .DT namespace listeners are removed by DataTables automatically\n\t\t\t// on table destroy\n\t\t\tdt.on( namespacedEvents(config), function () {\n\t\t\t\tthat.enable( enabled(dt, config) );\n\t\t\t} );\n\n\t\t\tthis.disable();\n\t\t},\n\t\tdestroy: function ( dt, node, config ) {\n\t\t\tdt.off( config._eventNamespace );\n\t\t}\n\t},\n\tselectedSingle: {\n\t\ttext: i18n( 'selectedSingle', 'Selected single' ),\n\t\tclassName: 'buttons-selected-single',\n\t\tinit: function ( dt, node, config ) {\n\t\t\tvar that = this;\n\t\t\tconfig._eventNamespace = '.select'+(_buttonNamespace++);\n\n\t\t\tdt.on( namespacedEvents(config), function () {\n\t\t\t\tvar count = dt.rows( { selected: true } ).flatten().length +\n\t\t\t\t            dt.columns( { selected: true } ).flatten().length +\n\t\t\t\t            dt.cells( { selected: true } ).flatten().length;\n\n\t\t\t\tthat.enable( count === 1 );\n\t\t\t} );\n\n\t\t\tthis.disable();\n\t\t},\n\t\tdestroy: function ( dt, node, config ) {\n\t\t\tdt.off( config._eventNamespace );\n\t\t}\n\t},\n\tselectAll: {\n\t\ttext: i18n( 'selectAll', 'Select all' ),\n\t\tclassName: 'buttons-select-all',\n\t\taction: function () {\n\t\t\tvar items = this.select.items();\n\t\t\tthis[ items+'s' ]().select();\n\t\t}\n\t},\n\tselectNone: {\n\t\ttext: i18n( 'selectNone', 'Deselect all' ),\n\t\tclassName: 'buttons-select-none',\n\t\taction: function () {\n\t\t\tclear( this.settings()[0], true );\n\t\t},\n\t\tinit: function ( dt, node, config ) {\n\t\t\tvar that = this;\n\t\t\tconfig._eventNamespace = '.select'+(_buttonNamespace++);\n\n\t\t\tdt.on( namespacedEvents(config), function () {\n\t\t\t\tvar count = dt.rows( { selected: true } ).flatten().length +\n\t\t\t\t            dt.columns( { selected: true } ).flatten().length +\n\t\t\t\t            dt.cells( { selected: true } ).flatten().length;\n\n\t\t\t\tthat.enable( count > 0 );\n\t\t\t} );\n\n\t\t\tthis.disable();\n\t\t},\n\t\tdestroy: function ( dt, node, config ) {\n\t\t\tdt.off( config._eventNamespace );\n\t\t}\n\t}\n} );\n\n$.each( [ 'Row', 'Column', 'Cell' ], function ( i, item ) {\n\tvar lc = item.toLowerCase();\n\n\tDataTable.ext.buttons[ 'select'+item+'s' ] = {\n\t\ttext: i18n( 'select'+item+'s', 'Select '+lc+'s' ),\n\t\tclassName: 'buttons-select-'+lc+'s',\n\t\taction: function () {\n\t\t\tthis.select.items( lc );\n\t\t},\n\t\tinit: function ( dt ) {\n\t\t\tvar that = this;\n\n\t\t\tdt.on( 'selectItems.dt.DT', function ( e, ctx, items ) {\n\t\t\t\tthat.active( items === lc );\n\t\t\t} );\n\t\t}\n\t};\n} );\n\n\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * Initialisation\n */\n\n// DataTables creation - check if select has been defined in the options. Note\n// this required that the table be in the document! If it isn't then something\n// needs to trigger this method unfortunately. The next major release of\n// DataTables will rework the events and address this.\n$(document).on( 'preInit.dt.dtSelect', function (e, ctx) {\n\tif ( e.namespace !== 'dt' ) {\n\t\treturn;\n\t}\n\n\tDataTable.select.init( new DataTable.Api( ctx ) );\n} );\n\n\nreturn DataTable.select;\n}));\n"
  },
  {
    "path": "student/content/mdb/js/addons/datatables.js",
    "content": "/*\n * MDBootstrap integration with Datatables\n * Learn more: https://mdbootstrap.com/docs/jquery/tables/datatables/\n * About MDBootstrap: https://mdbootstrap.com/\n *\n * This combined file was created by the DataTables downloader builder:\n *   https://datatables.net/download\n *\n * To rebuild or modify this file with the latest versions of the included\n * software please visit:\n *   https://datatables.net/download/#bs4/dt-1.10.18\n *\n * Included libraries:\n *   DataTables 1.10.18\n */\n\n/*! DataTables 1.10.18\n * ©2008-2018 SpryMedia Ltd - datatables.net/license\n */\n\n/**\n * @summary     DataTables\n * @description Paginate, search and order HTML tables\n * @version     1.10.18\n * @file        jquery.dataTables.js\n * @author      SpryMedia Ltd\n * @contact     www.datatables.net\n * @copyright   Copyright 2008-2018 SpryMedia Ltd.\n *\n * This source file is free software, available under the following license:\n *   MIT license - http://datatables.net/license\n *\n * This source file is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\n *\n * For details please refer to: http://www.datatables.net\n */\n\n/*jslint evil: true, undef: true, browser: true */\n/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/\n\n(function( factory ) {\n\t\"use strict\";\n\n\tif ( typeof define === 'function' && define.amd ) {\n\t\t// AMD\n\t\tdefine( ['jquery'], function ( $ ) {\n\t\t\treturn factory( $, window, document );\n\t\t} );\n\t}\n\telse if ( typeof exports === 'object' ) {\n\t\t// CommonJS\n\t\tmodule.exports = function (root, $) {\n\t\t\tif ( ! root ) {\n\t\t\t\t// CommonJS environments without a window global must pass a\n\t\t\t\t// root. This will give an error otherwise\n\t\t\t\troot = window;\n\t\t\t}\n\n\t\t\tif ( ! $ ) {\n\t\t\t\t$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window\n\t\t\t\t\trequire('jquery') :\n\t\t\t\t\trequire('jquery')( root );\n\t\t\t}\n\n\t\t\treturn factory( $, root, root.document );\n\t\t};\n\t}\n\telse {\n\t\t// Browser\n\t\tfactory( jQuery, window, document );\n\t}\n}\n(function( $, window, document, undefined ) {\n\t\"use strict\";\n\n\t/**\n\t * DataTables is a plug-in for the jQuery Javascript library. It is a highly\n\t * flexible tool, based upon the foundations of progressive enhancement,\n\t * which will add advanced interaction controls to any HTML table. For a\n\t * full list of features please refer to\n\t * [DataTables.net](href=\"http://datatables.net).\n\t *\n\t * Note that the `DataTable` object is not a global variable but is aliased\n\t * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may\n\t * be  accessed.\n\t *\n\t *  @class\n\t *  @param {object} [init={}] Configuration object for DataTables. Options\n\t *    are defined by {@link DataTable.defaults}\n\t *  @requires jQuery 1.7+\n\t *\n\t *  @example\n\t *    // Basic initialisation\n\t *    $(document).ready( function {\n\t *      $('#example').dataTable();\n\t *    } );\n\t *\n\t *  @example\n\t *    // Initialisation with configuration options - in this case, disable\n\t *    // pagination and sorting.\n\t *    $(document).ready( function {\n\t *      $('#example').dataTable( {\n\t *        \"paginate\": false,\n\t *        \"sort\": false\n\t *      } );\n\t *    } );\n\t */\n\tvar DataTable = function ( options )\n\t{\n\t\t/**\n\t\t * Perform a jQuery selector action on the table's TR elements (from the tbody) and\n\t\t * return the resulting jQuery object.\n\t\t *  @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\n\t\t *  @param {object} [oOpts] Optional parameters for modifying the rows to be included\n\t\t *  @param {string} [oOpts.filter=none] Select TR elements that meet the current filter\n\t\t *    criterion (\"applied\") or all TR elements (i.e. no filter).\n\t\t *  @param {string} [oOpts.order=current] Order of the TR elements in the processed array.\n\t\t *    Can be either 'current', whereby the current sorting of the table is used, or\n\t\t *    'original' whereby the original order the data was read into the table is used.\n\t\t *  @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\n\t\t *    (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\n\t\t *    'current' and filter is 'applied', regardless of what they might be given as.\n\t\t *  @returns {object} jQuery object, filtered by the given selector.\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Highlight every second row\n\t\t *      oTable.$('tr:odd').css('backgroundColor', 'blue');\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Filter to rows with 'Webkit' in them, add a background colour and then\n\t\t *      // remove the filter, thus highlighting the 'Webkit' rows only.\n\t\t *      oTable.fnFilter('Webkit');\n\t\t *      oTable.$('tr', {\"search\": \"applied\"}).css('backgroundColor', 'blue');\n\t\t *      oTable.fnFilter('');\n\t\t *    } );\n\t\t */\n\t\tthis.$ = function ( sSelector, oOpts )\n\t\t{\n\t\t\treturn this.api(true).$( sSelector, oOpts );\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Almost identical to $ in operation, but in this case returns the data for the matched\n\t\t * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes\n\t\t * rather than any descendants, so the data can be obtained for the row/cell. If matching\n\t\t * rows are found, the data returned is the original data array/object that was used to\n\t\t * create the row (or a generated array if from a DOM source).\n\t\t *\n\t\t * This method is often useful in-combination with $ where both functions are given the\n\t\t * same parameters and the array indexes will match identically.\n\t\t *  @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\n\t\t *  @param {object} [oOpts] Optional parameters for modifying the rows to be included\n\t\t *  @param {string} [oOpts.filter=none] Select elements that meet the current filter\n\t\t *    criterion (\"applied\") or all elements (i.e. no filter).\n\t\t *  @param {string} [oOpts.order=current] Order of the data in the processed array.\n\t\t *    Can be either 'current', whereby the current sorting of the table is used, or\n\t\t *    'original' whereby the original order the data was read into the table is used.\n\t\t *  @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\n\t\t *    (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\n\t\t *    'current' and filter is 'applied', regardless of what they might be given as.\n\t\t *  @returns {array} Data for the matched elements. If any elements, as a result of the\n\t\t *    selector, were not TR, TD or TH elements in the DataTable, they will have a null\n\t\t *    entry in the array.\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Get the data from the first row in the table\n\t\t *      var data = oTable._('tr:first');\n\t\t *\n\t\t *      // Do something useful with the data\n\t\t *      alert( \"First cell is: \"+data[0] );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Filter to 'Webkit' and get all data for\n\t\t *      oTable.fnFilter('Webkit');\n\t\t *      var data = oTable._('tr', {\"search\": \"applied\"});\n\t\t *\n\t\t *      // Do something with the data\n\t\t *      alert( data.length+\" rows matched the search\" );\n\t\t *    } );\n\t\t */\n\t\tthis._ = function ( sSelector, oOpts )\n\t\t{\n\t\t\treturn this.api(true).rows( sSelector, oOpts ).data();\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Create a DataTables Api instance, with the currently selected tables for\n\t\t * the Api's context.\n\t\t * @param {boolean} [traditional=false] Set the API instance's context to be\n\t\t *   only the table referred to by the `DataTable.ext.iApiIndex` option, as was\n\t\t *   used in the API presented by DataTables 1.9- (i.e. the traditional mode),\n\t\t *   or if all tables captured in the jQuery object should be used.\n\t\t * @return {DataTables.Api}\n\t\t */\n\t\tthis.api = function ( traditional )\n\t\t{\n\t\t\treturn traditional ?\n\t\t\t\tnew _Api(\n\t\t\t\t\t_fnSettingsFromNode( this[ _ext.iApiIndex ] )\n\t\t\t\t) :\n\t\t\t\tnew _Api( this );\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Add a single new row or multiple rows of data to the table. Please note\n\t\t * that this is suitable for client-side processing only - if you are using\n\t\t * server-side processing (i.e. \"bServerSide\": true), then to add data, you\n\t\t * must add it to the data source, i.e. the server-side, through an Ajax call.\n\t\t *  @param {array|object} data The data to be added to the table. This can be:\n\t\t *    <ul>\n\t\t *      <li>1D array of data - add a single row with the data provided</li>\n\t\t *      <li>2D array of arrays - add multiple rows in a single call</li>\n\t\t *      <li>object - data object when using <i>mData</i></li>\n\t\t *      <li>array of objects - multiple data objects when using <i>mData</i></li>\n\t\t *    </ul>\n\t\t *  @param {bool} [redraw=true] redraw the table or not\n\t\t *  @returns {array} An array of integers, representing the list of indexes in\n\t\t *    <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to\n\t\t *    the table.\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    // Global var for counter\n\t\t *    var giCount = 2;\n\t\t *\n\t\t *    $(document).ready(function() {\n\t\t *      $('#example').dataTable();\n\t\t *    } );\n\t\t *\n\t\t *    function fnClickAddRow() {\n\t\t *      $('#example').dataTable().fnAddData( [\n\t\t *        giCount+\".1\",\n\t\t *        giCount+\".2\",\n\t\t *        giCount+\".3\",\n\t\t *        giCount+\".4\" ]\n\t\t *      );\n\t\t *\n\t\t *      giCount++;\n\t\t *    }\n\t\t */\n\t\tthis.fnAddData = function( data, redraw )\n\t\t{\n\t\t\tvar api = this.api( true );\n\t\t\n\t\t\t/* Check if we want to add multiple rows or not */\n\t\t\tvar rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ?\n\t\t\t\tapi.rows.add( data ) :\n\t\t\t\tapi.row.add( data );\n\t\t\n\t\t\tif ( redraw === undefined || redraw ) {\n\t\t\t\tapi.draw();\n\t\t\t}\n\t\t\n\t\t\treturn rows.flatten().toArray();\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * This function will make DataTables recalculate the column sizes, based on the data\n\t\t * contained in the table and the sizes applied to the columns (in the DOM, CSS or\n\t\t * through the sWidth parameter). This can be useful when the width of the table's\n\t\t * parent element changes (for example a window resize).\n\t\t *  @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable( {\n\t\t *        \"sScrollY\": \"200px\",\n\t\t *        \"bPaginate\": false\n\t\t *      } );\n\t\t *\n\t\t *      $(window).on('resize', function () {\n\t\t *        oTable.fnAdjustColumnSizing();\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\tthis.fnAdjustColumnSizing = function ( bRedraw )\n\t\t{\n\t\t\tvar api = this.api( true ).columns.adjust();\n\t\t\tvar settings = api.settings()[0];\n\t\t\tvar scroll = settings.oScroll;\n\t\t\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\n\t\t\t\tapi.draw( false );\n\t\t\t}\n\t\t\telse if ( scroll.sX !== \"\" || scroll.sY !== \"\" ) {\n\t\t\t\t/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */\n\t\t\t\t_fnScrollDraw( settings );\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Quickly and simply clear a table\n\t\t *  @param {bool} [bRedraw=true] redraw the table or not\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)\n\t\t *      oTable.fnClearTable();\n\t\t *    } );\n\t\t */\n\t\tthis.fnClearTable = function( bRedraw )\n\t\t{\n\t\t\tvar api = this.api( true ).clear();\n\t\t\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\n\t\t\t\tapi.draw();\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * The exact opposite of 'opening' a row, this function will close any rows which\n\t\t * are currently 'open'.\n\t\t *  @param {node} nTr the table row to 'close'\n\t\t *  @returns {int} 0 on success, or 1 if failed (can't find the row)\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable;\n\t\t *\n\t\t *      // 'open' an information row when a row is clicked on\n\t\t *      $('#example tbody tr').click( function () {\n\t\t *        if ( oTable.fnIsOpen(this) ) {\n\t\t *          oTable.fnClose( this );\n\t\t *        } else {\n\t\t *          oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\n\t\t *        }\n\t\t *      } );\n\t\t *\n\t\t *      oTable = $('#example').dataTable();\n\t\t *    } );\n\t\t */\n\t\tthis.fnClose = function( nTr )\n\t\t{\n\t\t\tthis.api( true ).row( nTr ).child.hide();\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Remove a row for the table\n\t\t *  @param {mixed} target The index of the row from aoData to be deleted, or\n\t\t *    the TR element you want to delete\n\t\t *  @param {function|null} [callBack] Callback function\n\t\t *  @param {bool} [redraw=true] Redraw the table or not\n\t\t *  @returns {array} The row that was deleted\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Immediately remove the first row\n\t\t *      oTable.fnDeleteRow( 0 );\n\t\t *    } );\n\t\t */\n\t\tthis.fnDeleteRow = function( target, callback, redraw )\n\t\t{\n\t\t\tvar api = this.api( true );\n\t\t\tvar rows = api.rows( target );\n\t\t\tvar settings = rows.settings()[0];\n\t\t\tvar data = settings.aoData[ rows[0][0] ];\n\t\t\n\t\t\trows.remove();\n\t\t\n\t\t\tif ( callback ) {\n\t\t\t\tcallback.call( this, settings, data );\n\t\t\t}\n\t\t\n\t\t\tif ( redraw === undefined || redraw ) {\n\t\t\t\tapi.draw();\n\t\t\t}\n\t\t\n\t\t\treturn data;\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Restore the table to it's original state in the DOM by removing all of DataTables\n\t\t * enhancements, alterations to the DOM structure of the table and event listeners.\n\t\t *  @param {boolean} [remove=false] Completely remove the table from the DOM\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      // This example is fairly pointless in reality, but shows how fnDestroy can be used\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *      oTable.fnDestroy();\n\t\t *    } );\n\t\t */\n\t\tthis.fnDestroy = function ( remove )\n\t\t{\n\t\t\tthis.api( true ).destroy( remove );\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Redraw the table\n\t\t *  @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Re-draw the table - you wouldn't want to do it here, but it's an example :-)\n\t\t *      oTable.fnDraw();\n\t\t *    } );\n\t\t */\n\t\tthis.fnDraw = function( complete )\n\t\t{\n\t\t\t// Note that this isn't an exact match to the old call to _fnDraw - it takes\n\t\t\t// into account the new data, but can hold position.\n\t\t\tthis.api( true ).draw( complete );\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Filter the input based on data\n\t\t *  @param {string} sInput String to filter the table on\n\t\t *  @param {int|null} [iColumn] Column to limit filtering to\n\t\t *  @param {bool} [bRegex=false] Treat as regular expression or not\n\t\t *  @param {bool} [bSmart=true] Perform smart filtering or not\n\t\t *  @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)\n\t\t *  @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Sometime later - filter...\n\t\t *      oTable.fnFilter( 'test string' );\n\t\t *    } );\n\t\t */\n\t\tthis.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )\n\t\t{\n\t\t\tvar api = this.api( true );\n\t\t\n\t\t\tif ( iColumn === null || iColumn === undefined ) {\n\t\t\t\tapi.search( sInput, bRegex, bSmart, bCaseInsensitive );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tapi.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );\n\t\t\t}\n\t\t\n\t\t\tapi.draw();\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Get the data for the whole table, an individual row or an individual cell based on the\n\t\t * provided parameters.\n\t\t *  @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as\n\t\t *    a TR node then the data source for the whole row will be returned. If given as a\n\t\t *    TD/TH cell node then iCol will be automatically calculated and the data for the\n\t\t *    cell returned. If given as an integer, then this is treated as the aoData internal\n\t\t *    data index for the row (see fnGetPosition) and the data for that row used.\n\t\t *  @param {int} [col] Optional column index that you want the data of.\n\t\t *  @returns {array|object|string} If mRow is undefined, then the data for all rows is\n\t\t *    returned. If mRow is defined, just data for that row, and is iCol is\n\t\t *    defined, only data for the designated cell is returned.\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    // Row data\n\t\t *    $(document).ready(function() {\n\t\t *      oTable = $('#example').dataTable();\n\t\t *\n\t\t *      oTable.$('tr').click( function () {\n\t\t *        var data = oTable.fnGetData( this );\n\t\t *        // ... do something with the array / object of data for the row\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Individual cell data\n\t\t *    $(document).ready(function() {\n\t\t *      oTable = $('#example').dataTable();\n\t\t *\n\t\t *      oTable.$('td').click( function () {\n\t\t *        var sData = oTable.fnGetData( this );\n\t\t *        alert( 'The cell clicked on had the value of '+sData );\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\tthis.fnGetData = function( src, col )\n\t\t{\n\t\t\tvar api = this.api( true );\n\t\t\n\t\t\tif ( src !== undefined ) {\n\t\t\t\tvar type = src.nodeName ? src.nodeName.toLowerCase() : '';\n\t\t\n\t\t\t\treturn col !== undefined || type == 'td' || type == 'th' ?\n\t\t\t\t\tapi.cell( src, col ).data() :\n\t\t\t\t\tapi.row( src ).data() || null;\n\t\t\t}\n\t\t\n\t\t\treturn api.data().toArray();\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Get an array of the TR nodes that are used in the table's body. Note that you will\n\t\t * typically want to use the '$' API method in preference to this as it is more\n\t\t * flexible.\n\t\t *  @param {int} [iRow] Optional row index for the TR element you want\n\t\t *  @returns {array|node} If iRow is undefined, returns an array of all TR elements\n\t\t *    in the table's body, or iRow is defined, just the TR element requested.\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Get the nodes from the table\n\t\t *      var nNodes = oTable.fnGetNodes( );\n\t\t *    } );\n\t\t */\n\t\tthis.fnGetNodes = function( iRow )\n\t\t{\n\t\t\tvar api = this.api( true );\n\t\t\n\t\t\treturn iRow !== undefined ?\n\t\t\t\tapi.row( iRow ).node() :\n\t\t\t\tapi.rows().nodes().flatten().toArray();\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Get the array indexes of a particular cell from it's DOM element\n\t\t * and column index including hidden columns\n\t\t *  @param {node} node this can either be a TR, TD or TH in the table's body\n\t\t *  @returns {int} If nNode is given as a TR, then a single index is returned, or\n\t\t *    if given as a cell, an array of [row index, column index (visible),\n\t\t *    column index (all)] is given.\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      $('#example tbody td').click( function () {\n\t\t *        // Get the position of the current data from the node\n\t\t *        var aPos = oTable.fnGetPosition( this );\n\t\t *\n\t\t *        // Get the data array for this row\n\t\t *        var aData = oTable.fnGetData( aPos[0] );\n\t\t *\n\t\t *        // Update the data array and return the value\n\t\t *        aData[ aPos[1] ] = 'clicked';\n\t\t *        this.innerHTML = 'clicked';\n\t\t *      } );\n\t\t *\n\t\t *      // Init DataTables\n\t\t *      oTable = $('#example').dataTable();\n\t\t *    } );\n\t\t */\n\t\tthis.fnGetPosition = function( node )\n\t\t{\n\t\t\tvar api = this.api( true );\n\t\t\tvar nodeName = node.nodeName.toUpperCase();\n\t\t\n\t\t\tif ( nodeName == 'TR' ) {\n\t\t\t\treturn api.row( node ).index();\n\t\t\t}\n\t\t\telse if ( nodeName == 'TD' || nodeName == 'TH' ) {\n\t\t\t\tvar cell = api.cell( node ).index();\n\t\t\n\t\t\t\treturn [\n\t\t\t\t\tcell.row,\n\t\t\t\t\tcell.columnVisible,\n\t\t\t\t\tcell.column\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn null;\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Check to see if a row is 'open' or not.\n\t\t *  @param {node} nTr the table row to check\n\t\t *  @returns {boolean} true if the row is currently open, false otherwise\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable;\n\t\t *\n\t\t *      // 'open' an information row when a row is clicked on\n\t\t *      $('#example tbody tr').click( function () {\n\t\t *        if ( oTable.fnIsOpen(this) ) {\n\t\t *          oTable.fnClose( this );\n\t\t *        } else {\n\t\t *          oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\n\t\t *        }\n\t\t *      } );\n\t\t *\n\t\t *      oTable = $('#example').dataTable();\n\t\t *    } );\n\t\t */\n\t\tthis.fnIsOpen = function( nTr )\n\t\t{\n\t\t\treturn this.api( true ).row( nTr ).child.isShown();\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * This function will place a new row directly after a row which is currently\n\t\t * on display on the page, with the HTML contents that is passed into the\n\t\t * function. This can be used, for example, to ask for confirmation that a\n\t\t * particular record should be deleted.\n\t\t *  @param {node} nTr The table row to 'open'\n\t\t *  @param {string|node|jQuery} mHtml The HTML to put into the row\n\t\t *  @param {string} sClass Class to give the new TD cell\n\t\t *  @returns {node} The row opened. Note that if the table row passed in as the\n\t\t *    first parameter, is not found in the table, this method will silently\n\t\t *    return.\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable;\n\t\t *\n\t\t *      // 'open' an information row when a row is clicked on\n\t\t *      $('#example tbody tr').click( function () {\n\t\t *        if ( oTable.fnIsOpen(this) ) {\n\t\t *          oTable.fnClose( this );\n\t\t *        } else {\n\t\t *          oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\n\t\t *        }\n\t\t *      } );\n\t\t *\n\t\t *      oTable = $('#example').dataTable();\n\t\t *    } );\n\t\t */\n\t\tthis.fnOpen = function( nTr, mHtml, sClass )\n\t\t{\n\t\t\treturn this.api( true )\n\t\t\t\t.row( nTr )\n\t\t\t\t.child( mHtml, sClass )\n\t\t\t\t.show()\n\t\t\t\t.child()[0];\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Change the pagination - provides the internal logic for pagination in a simple API\n\t\t * function. With this function you can have a DataTables table go to the next,\n\t\t * previous, first or last pages.\n\t\t *  @param {string|int} mAction Paging action to take: \"first\", \"previous\", \"next\" or \"last\"\n\t\t *    or page number to jump to (integer), note that page 0 is the first page.\n\t\t *  @param {bool} [bRedraw=true] Redraw the table or not\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *      oTable.fnPageChange( 'next' );\n\t\t *    } );\n\t\t */\n\t\tthis.fnPageChange = function ( mAction, bRedraw )\n\t\t{\n\t\t\tvar api = this.api( true ).page( mAction );\n\t\t\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\n\t\t\t\tapi.draw(false);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Show a particular column\n\t\t *  @param {int} iCol The column whose display should be changed\n\t\t *  @param {bool} bShow Show (true) or hide (false) the column\n\t\t *  @param {bool} [bRedraw=true] Redraw the table or not\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Hide the second column after initialisation\n\t\t *      oTable.fnSetColumnVis( 1, false );\n\t\t *    } );\n\t\t */\n\t\tthis.fnSetColumnVis = function ( iCol, bShow, bRedraw )\n\t\t{\n\t\t\tvar api = this.api( true ).column( iCol ).visible( bShow );\n\t\t\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\n\t\t\t\tapi.columns.adjust().draw();\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Get the settings for a particular table for external manipulation\n\t\t *  @returns {object} DataTables settings object. See\n\t\t *    {@link DataTable.models.oSettings}\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *      var oSettings = oTable.fnSettings();\n\t\t *\n\t\t *      // Show an example parameter from the settings\n\t\t *      alert( oSettings._iDisplayStart );\n\t\t *    } );\n\t\t */\n\t\tthis.fnSettings = function()\n\t\t{\n\t\t\treturn _fnSettingsFromNode( this[_ext.iApiIndex] );\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Sort the table by a particular column\n\t\t *  @param {int} iCol the data index to sort on. Note that this will not match the\n\t\t *    'display index' if you have hidden data entries\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Sort immediately with columns 0 and 1\n\t\t *      oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );\n\t\t *    } );\n\t\t */\n\t\tthis.fnSort = function( aaSort )\n\t\t{\n\t\t\tthis.api( true ).order( aaSort ).draw();\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Attach a sort listener to an element for a given column\n\t\t *  @param {node} nNode the element to attach the sort listener to\n\t\t *  @param {int} iColumn the column that a click on this node will sort on\n\t\t *  @param {function} [fnCallback] callback function when sort is run\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *\n\t\t *      // Sort on column 1, when 'sorter' is clicked on\n\t\t *      oTable.fnSortListener( document.getElementById('sorter'), 1 );\n\t\t *    } );\n\t\t */\n\t\tthis.fnSortListener = function( nNode, iColumn, fnCallback )\n\t\t{\n\t\t\tthis.api( true ).order.listener( nNode, iColumn, fnCallback );\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Update a table cell or row - this method will accept either a single value to\n\t\t * update the cell with, an array of values with one element for each column or\n\t\t * an object in the same format as the original data source. The function is\n\t\t * self-referencing in order to make the multi column updates easier.\n\t\t *  @param {object|array|string} mData Data to update the cell/row with\n\t\t *  @param {node|int} mRow TR element you want to update or the aoData index\n\t\t *  @param {int} [iColumn] The column to update, give as null or undefined to\n\t\t *    update a whole row.\n\t\t *  @param {bool} [bRedraw=true] Redraw the table or not\n\t\t *  @param {bool} [bAction=true] Perform pre-draw actions or not\n\t\t *  @returns {int} 0 on success, 1 on error\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *      oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell\n\t\t *      oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row\n\t\t *    } );\n\t\t */\n\t\tthis.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )\n\t\t{\n\t\t\tvar api = this.api( true );\n\t\t\n\t\t\tif ( iColumn === undefined || iColumn === null ) {\n\t\t\t\tapi.row( mRow ).data( mData );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tapi.cell( mRow, iColumn ).data( mData );\n\t\t\t}\n\t\t\n\t\t\tif ( bAction === undefined || bAction ) {\n\t\t\t\tapi.columns.adjust();\n\t\t\t}\n\t\t\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\n\t\t\t\tapi.draw();\n\t\t\t}\n\t\t\treturn 0;\n\t\t};\n\t\t\n\t\t\n\t\t/**\n\t\t * Provide a common method for plug-ins to check the version of DataTables being used, in order\n\t\t * to ensure compatibility.\n\t\t *  @param {string} sVersion Version string to check for, in the format \"X.Y.Z\". Note that the\n\t\t *    formats \"X\" and \"X.Y\" are also acceptable.\n\t\t *  @returns {boolean} true if this version of DataTables is greater or equal to the required\n\t\t *    version, or false if this version of DataTales is not suitable\n\t\t *  @method\n\t\t *  @dtopt API\n\t\t *  @deprecated Since v1.10\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready(function() {\n\t\t *      var oTable = $('#example').dataTable();\n\t\t *      alert( oTable.fnVersionCheck( '1.9.0' ) );\n\t\t *    } );\n\t\t */\n\t\tthis.fnVersionCheck = _ext.fnVersionCheck;\n\t\t\n\n\t\tvar _that = this;\n\t\tvar emptyInit = options === undefined;\n\t\tvar len = this.length;\n\n\t\tif ( emptyInit ) {\n\t\t\toptions = {};\n\t\t}\n\n\t\tthis.oApi = this.internal = _ext.internal;\n\n\t\t// Extend with old style plug-in API methods\n\t\tfor ( var fn in DataTable.ext.internal ) {\n\t\t\tif ( fn ) {\n\t\t\t\tthis[fn] = _fnExternApiFunc(fn);\n\t\t\t}\n\t\t}\n\n\t\tthis.each(function() {\n\t\t\t// For each initialisation we want to give it a clean initialisation\n\t\t\t// object that can be bashed around\n\t\t\tvar o = {};\n\t\t\tvar oInit = len > 1 ? // optimisation for single table case\n\t\t\t\t_fnExtend( o, options, true ) :\n\t\t\t\toptions;\n\n\t\t\t/*global oInit,_that,emptyInit*/\n\t\t\tvar i=0, iLen, j, jLen, k, kLen;\n\t\t\tvar sId = this.getAttribute( 'id' );\n\t\t\tvar bInitHandedOff = false;\n\t\t\tvar defaults = DataTable.defaults;\n\t\t\tvar $this = $(this);\n\t\t\t\n\t\t\t\n\t\t\t/* Sanity check */\n\t\t\tif ( this.nodeName.toLowerCase() != 'table' )\n\t\t\t{\n\t\t\t\t_fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t/* Backwards compatibility for the defaults */\n\t\t\t_fnCompatOpts( defaults );\n\t\t\t_fnCompatCols( defaults.column );\n\t\t\t\n\t\t\t/* Convert the camel-case defaults to Hungarian */\n\t\t\t_fnCamelToHungarian( defaults, defaults, true );\n\t\t\t_fnCamelToHungarian( defaults.column, defaults.column, true );\n\t\t\t\n\t\t\t/* Setting up the initialisation object */\n\t\t\t_fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ) );\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t/* Check to see if we are re-initialising a table */\n\t\t\tvar allSettings = DataTable.settings;\n\t\t\tfor ( i=0, iLen=allSettings.length ; i<iLen ; i++ )\n\t\t\t{\n\t\t\t\tvar s = allSettings[i];\n\t\t\t\n\t\t\t\t/* Base check on table node */\n\t\t\t\tif (\n\t\t\t\t\ts.nTable == this ||\n\t\t\t\t\t(s.nTHead && s.nTHead.parentNode == this) ||\n\t\t\t\t\t(s.nTFoot && s.nTFoot.parentNode == this)\n\t\t\t\t) {\n\t\t\t\t\tvar bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve;\n\t\t\t\t\tvar bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy;\n\t\t\t\n\t\t\t\t\tif ( emptyInit || bRetrieve )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn s.oInstance;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( bDestroy )\n\t\t\t\t\t{\n\t\t\t\t\t\ts.oInstance.fnDestroy();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t_fnLog( s, 0, 'Cannot reinitialise DataTable', 3 );\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\t/* If the element we are initialising has the same ID as a table which was previously\n\t\t\t\t * initialised, but the table nodes don't match (from before) then we destroy the old\n\t\t\t\t * instance by simply deleting it. This is under the assumption that the table has been\n\t\t\t\t * destroyed by other methods. Anyone using non-id selectors will need to do this manually\n\t\t\t\t */\n\t\t\t\tif ( s.sTableId == this.id )\n\t\t\t\t{\n\t\t\t\t\tallSettings.splice( i, 1 );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Ensure the table has an ID - required for accessibility */\n\t\t\tif ( sId === null || sId === \"\" )\n\t\t\t{\n\t\t\t\tsId = \"DataTables_Table_\"+(DataTable.ext._unique++);\n\t\t\t\tthis.id = sId;\n\t\t\t}\n\t\t\t\n\t\t\t/* Create the settings object for this table and set some of the default parameters */\n\t\t\tvar oSettings = $.extend( true, {}, DataTable.models.oSettings, {\n\t\t\t\t\"sDestroyWidth\": $this[0].style.width,\n\t\t\t\t\"sInstance\":     sId,\n\t\t\t\t\"sTableId\":      sId\n\t\t\t} );\n\t\t\toSettings.nTable = this;\n\t\t\toSettings.oApi   = _that.internal;\n\t\t\toSettings.oInit  = oInit;\n\t\t\t\n\t\t\tallSettings.push( oSettings );\n\t\t\t\n\t\t\t// Need to add the instance after the instance after the settings object has been added\n\t\t\t// to the settings array, so we can self reference the table instance if more than one\n\t\t\toSettings.oInstance = (_that.length===1) ? _that : $this.dataTable();\n\t\t\t\n\t\t\t// Backwards compatibility, before we apply all the defaults\n\t\t\t_fnCompatOpts( oInit );\n\t\t\t_fnLanguageCompat( oInit.oLanguage );\n\t\t\t\n\t\t\t// If the length menu is given, but the init display length is not, use the length menu\n\t\t\tif ( oInit.aLengthMenu && ! oInit.iDisplayLength )\n\t\t\t{\n\t\t\t\toInit.iDisplayLength = $.isArray( oInit.aLengthMenu[0] ) ?\n\t\t\t\t\toInit.aLengthMenu[0][0] : oInit.aLengthMenu[0];\n\t\t\t}\n\t\t\t\n\t\t\t// Apply the defaults and init options to make a single init object will all\n\t\t\t// options defined from defaults and instance options.\n\t\t\toInit = _fnExtend( $.extend( true, {}, defaults ), oInit );\n\t\t\t\n\t\t\t\n\t\t\t// Map the initialisation options onto the settings object\n\t\t\t_fnMap( oSettings.oFeatures, oInit, [\n\t\t\t\t\"bPaginate\",\n\t\t\t\t\"bLengthChange\",\n\t\t\t\t\"bFilter\",\n\t\t\t\t\"bSort\",\n\t\t\t\t\"bSortMulti\",\n\t\t\t\t\"bInfo\",\n\t\t\t\t\"bProcessing\",\n\t\t\t\t\"bAutoWidth\",\n\t\t\t\t\"bSortClasses\",\n\t\t\t\t\"bServerSide\",\n\t\t\t\t\"bDeferRender\"\n\t\t\t] );\n\t\t\t_fnMap( oSettings, oInit, [\n\t\t\t\t\"asStripeClasses\",\n\t\t\t\t\"ajax\",\n\t\t\t\t\"fnServerData\",\n\t\t\t\t\"fnFormatNumber\",\n\t\t\t\t\"sServerMethod\",\n\t\t\t\t\"aaSorting\",\n\t\t\t\t\"aaSortingFixed\",\n\t\t\t\t\"aLengthMenu\",\n\t\t\t\t\"sPaginationType\",\n\t\t\t\t\"sAjaxSource\",\n\t\t\t\t\"sAjaxDataProp\",\n\t\t\t\t\"iStateDuration\",\n\t\t\t\t\"sDom\",\n\t\t\t\t\"bSortCellsTop\",\n\t\t\t\t\"iTabIndex\",\n\t\t\t\t\"fnStateLoadCallback\",\n\t\t\t\t\"fnStateSaveCallback\",\n\t\t\t\t\"renderer\",\n\t\t\t\t\"searchDelay\",\n\t\t\t\t\"rowId\",\n\t\t\t\t[ \"iCookieDuration\", \"iStateDuration\" ], // backwards compat\n\t\t\t\t[ \"oSearch\", \"oPreviousSearch\" ],\n\t\t\t\t[ \"aoSearchCols\", \"aoPreSearchCols\" ],\n\t\t\t\t[ \"iDisplayLength\", \"_iDisplayLength\" ]\n\t\t\t] );\n\t\t\t_fnMap( oSettings.oScroll, oInit, [\n\t\t\t\t[ \"sScrollX\", \"sX\" ],\n\t\t\t\t[ \"sScrollXInner\", \"sXInner\" ],\n\t\t\t\t[ \"sScrollY\", \"sY\" ],\n\t\t\t\t[ \"bScrollCollapse\", \"bCollapse\" ]\n\t\t\t] );\n\t\t\t_fnMap( oSettings.oLanguage, oInit, \"fnInfoCallback\" );\n\t\t\t\n\t\t\t/* Callback functions which are array driven */\n\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback',       oInit.fnDrawCallback,      'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoServerParams',       oInit.fnServerParams,      'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoStateSaveParams',    oInit.fnStateSaveParams,   'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoStateLoadParams',    oInit.fnStateLoadParams,   'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoStateLoaded',        oInit.fnStateLoaded,       'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoRowCallback',        oInit.fnRowCallback,       'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoRowCreatedCallback', oInit.fnCreatedRow,        'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoHeaderCallback',     oInit.fnHeaderCallback,    'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoFooterCallback',     oInit.fnFooterCallback,    'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoInitComplete',       oInit.fnInitComplete,      'user' );\n\t\t\t_fnCallbackReg( oSettings, 'aoPreDrawCallback',    oInit.fnPreDrawCallback,   'user' );\n\t\t\t\n\t\t\toSettings.rowIdFn = _fnGetObjectDataFn( oInit.rowId );\n\t\t\t\n\t\t\t/* Browser support detection */\n\t\t\t_fnBrowserDetect( oSettings );\n\t\t\t\n\t\t\tvar oClasses = oSettings.oClasses;\n\t\t\t\n\t\t\t$.extend( oClasses, DataTable.ext.classes, oInit.oClasses );\n\t\t\t$this.addClass( oClasses.sTable );\n\t\t\t\n\t\t\t\n\t\t\tif ( oSettings.iInitDisplayStart === undefined )\n\t\t\t{\n\t\t\t\t/* Display start point, taking into account the save saving */\n\t\t\t\toSettings.iInitDisplayStart = oInit.iDisplayStart;\n\t\t\t\toSettings._iDisplayStart = oInit.iDisplayStart;\n\t\t\t}\n\t\t\t\n\t\t\tif ( oInit.iDeferLoading !== null )\n\t\t\t{\n\t\t\t\toSettings.bDeferLoading = true;\n\t\t\t\tvar tmp = $.isArray( oInit.iDeferLoading );\n\t\t\t\toSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading;\n\t\t\t\toSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;\n\t\t\t}\n\t\t\t\n\t\t\t/* Language definitions */\n\t\t\tvar oLanguage = oSettings.oLanguage;\n\t\t\t$.extend( true, oLanguage, oInit.oLanguage );\n\t\t\t\n\t\t\tif ( oLanguage.sUrl )\n\t\t\t{\n\t\t\t\t/* Get the language definitions from a file - because this Ajax call makes the language\n\t\t\t\t * get async to the remainder of this function we use bInitHandedOff to indicate that\n\t\t\t\t * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor\n\t\t\t\t */\n\t\t\t\t$.ajax( {\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\turl: oLanguage.sUrl,\n\t\t\t\t\tsuccess: function ( json ) {\n\t\t\t\t\t\t_fnLanguageCompat( json );\n\t\t\t\t\t\t_fnCamelToHungarian( defaults.oLanguage, json );\n\t\t\t\t\t\t$.extend( true, oLanguage, json );\n\t\t\t\t\t\t_fnInitialise( oSettings );\n\t\t\t\t\t},\n\t\t\t\t\terror: function () {\n\t\t\t\t\t\t// Error occurred loading language file, continue on as best we can\n\t\t\t\t\t\t_fnInitialise( oSettings );\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbInitHandedOff = true;\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Stripes\n\t\t\t */\n\t\t\tif ( oInit.asStripeClasses === null )\n\t\t\t{\n\t\t\t\toSettings.asStripeClasses =[\n\t\t\t\t\toClasses.sStripeOdd,\n\t\t\t\t\toClasses.sStripeEven\n\t\t\t\t];\n\t\t\t}\n\t\t\t\n\t\t\t/* Remove row stripe classes if they are already on the table row */\n\t\t\tvar stripeClasses = oSettings.asStripeClasses;\n\t\t\tvar rowOne = $this.children('tbody').find('tr').eq(0);\n\t\t\tif ( $.inArray( true, $.map( stripeClasses, function(el, i) {\n\t\t\t\treturn rowOne.hasClass(el);\n\t\t\t} ) ) !== -1 ) {\n\t\t\t\t$('tbody tr', this).removeClass( stripeClasses.join(' ') );\n\t\t\t\toSettings.asDestroyStripes = stripeClasses.slice();\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Columns\n\t\t\t * See if we should load columns automatically or use defined ones\n\t\t\t */\n\t\t\tvar anThs = [];\n\t\t\tvar aoColumnsInit;\n\t\t\tvar nThead = this.getElementsByTagName('thead');\n\t\t\tif ( nThead.length !== 0 )\n\t\t\t{\n\t\t\t\t_fnDetectHeader( oSettings.aoHeader, nThead[0] );\n\t\t\t\tanThs = _fnGetUniqueThs( oSettings );\n\t\t\t}\n\t\t\t\n\t\t\t/* If not given a column array, generate one with nulls */\n\t\t\tif ( oInit.aoColumns === null )\n\t\t\t{\n\t\t\t\taoColumnsInit = [];\n\t\t\t\tfor ( i=0, iLen=anThs.length ; i<iLen ; i++ )\n\t\t\t\t{\n\t\t\t\t\taoColumnsInit.push( null );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\taoColumnsInit = oInit.aoColumns;\n\t\t\t}\n\t\t\t\n\t\t\t/* Add the columns */\n\t\t\tfor ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )\n\t\t\t{\n\t\t\t\t_fnAddColumn( oSettings, anThs ? anThs[i] : null );\n\t\t\t}\n\t\t\t\n\t\t\t/* Apply the column definitions */\n\t\t\t_fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) {\n\t\t\t\t_fnColumnOptions( oSettings, iCol, oDef );\n\t\t\t} );\n\t\t\t\n\t\t\t/* HTML5 attribute detection - build an mData object automatically if the\n\t\t\t * attributes are found\n\t\t\t */\n\t\t\tif ( rowOne.length ) {\n\t\t\t\tvar a = function ( cell, name ) {\n\t\t\t\t\treturn cell.getAttribute( 'data-'+name ) !== null ? name : null;\n\t\t\t\t};\n\t\t\t\n\t\t\t\t$( rowOne[0] ).children('th, td').each( function (i, cell) {\n\t\t\t\t\tvar col = oSettings.aoColumns[i];\n\t\t\t\n\t\t\t\t\tif ( col.mData === i ) {\n\t\t\t\t\t\tvar sort = a( cell, 'sort' ) || a( cell, 'order' );\n\t\t\t\t\t\tvar filter = a( cell, 'filter' ) || a( cell, 'search' );\n\t\t\t\n\t\t\t\t\t\tif ( sort !== null || filter !== null ) {\n\t\t\t\t\t\t\tcol.mData = {\n\t\t\t\t\t\t\t\t_:      i+'.display',\n\t\t\t\t\t\t\t\tsort:   sort !== null   ? i+'.@data-'+sort   : undefined,\n\t\t\t\t\t\t\t\ttype:   sort !== null   ? i+'.@data-'+sort   : undefined,\n\t\t\t\t\t\t\t\tfilter: filter !== null ? i+'.@data-'+filter : undefined\n\t\t\t\t\t\t\t};\n\t\t\t\n\t\t\t\t\t\t\t_fnColumnOptions( oSettings, i );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t\t\n\t\t\tvar features = oSettings.oFeatures;\n\t\t\tvar loadedInit = function () {\n\t\t\t\t/*\n\t\t\t\t * Sorting\n\t\t\t\t * @todo For modularisation (1.11) this needs to do into a sort start up handler\n\t\t\t\t */\n\t\t\t\n\t\t\t\t// If aaSorting is not defined, then we use the first indicator in asSorting\n\t\t\t\t// in case that has been altered, so the default sort reflects that option\n\t\t\t\tif ( oInit.aaSorting === undefined ) {\n\t\t\t\t\tvar sorting = oSettings.aaSorting;\n\t\t\t\t\tfor ( i=0, iLen=sorting.length ; i<iLen ; i++ ) {\n\t\t\t\t\t\tsorting[i][1] = oSettings.aoColumns[ i ].asSorting[0];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\t/* Do a first pass on the sorting classes (allows any size changes to be taken into\n\t\t\t\t * account, and also will apply sorting disabled classes if disabled\n\t\t\t\t */\n\t\t\t\t_fnSortingClasses( oSettings );\n\t\t\t\n\t\t\t\tif ( features.bSort ) {\n\t\t\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', function () {\n\t\t\t\t\t\tif ( oSettings.bSorted ) {\n\t\t\t\t\t\t\tvar aSort = _fnSortFlatten( oSettings );\n\t\t\t\t\t\t\tvar sortedColumns = {};\n\t\t\t\n\t\t\t\t\t\t\t$.each( aSort, function (i, val) {\n\t\t\t\t\t\t\t\tsortedColumns[ val.src ] = val.dir;\n\t\t\t\t\t\t\t} );\n\t\t\t\n\t\t\t\t\t\t\t_fnCallbackFire( oSettings, null, 'order', [oSettings, aSort, sortedColumns] );\n\t\t\t\t\t\t\t_fnSortAria( oSettings );\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t\n\t\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', function () {\n\t\t\t\t\tif ( oSettings.bSorted || _fnDataSource( oSettings ) === 'ssp' || features.bDeferRender ) {\n\t\t\t\t\t\t_fnSortingClasses( oSettings );\n\t\t\t\t\t}\n\t\t\t\t}, 'sc' );\n\t\t\t\n\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Final init\n\t\t\t\t * Cache the header, body and footer as required, creating them if needed\n\t\t\t\t */\n\t\t\t\n\t\t\t\t// Work around for Webkit bug 83867 - store the caption-side before removing from doc\n\t\t\t\tvar captions = $this.children('caption').each( function () {\n\t\t\t\t\tthis._captionSide = $(this).css('caption-side');\n\t\t\t\t} );\n\t\t\t\n\t\t\t\tvar thead = $this.children('thead');\n\t\t\t\tif ( thead.length === 0 ) {\n\t\t\t\t\tthead = $('<thead/>').appendTo($this);\n\t\t\t\t}\n\t\t\t\toSettings.nTHead = thead[0];\n\t\t\t\n\t\t\t\tvar tbody = $this.children('tbody');\n\t\t\t\tif ( tbody.length === 0 ) {\n\t\t\t\t\ttbody = $('<tbody/>').appendTo($this);\n\t\t\t\t}\n\t\t\t\toSettings.nTBody = tbody[0];\n\t\t\t\n\t\t\t\tvar tfoot = $this.children('tfoot');\n\t\t\t\tif ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== \"\" || oSettings.oScroll.sY !== \"\") ) {\n\t\t\t\t\t// If we are a scrolling table, and no footer has been given, then we need to create\n\t\t\t\t\t// a tfoot element for the caption element to be appended to\n\t\t\t\t\ttfoot = $('<tfoot/>').appendTo($this);\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif ( tfoot.length === 0 || tfoot.children().length === 0 ) {\n\t\t\t\t\t$this.addClass( oClasses.sNoFooter );\n\t\t\t\t}\n\t\t\t\telse if ( tfoot.length > 0 ) {\n\t\t\t\t\toSettings.nTFoot = tfoot[0];\n\t\t\t\t\t_fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );\n\t\t\t\t}\n\t\t\t\n\t\t\t\t/* Check if there is data passing into the constructor */\n\t\t\t\tif ( oInit.aaData ) {\n\t\t\t\t\tfor ( i=0 ; i<oInit.aaData.length ; i++ ) {\n\t\t\t\t\t\t_fnAddData( oSettings, oInit.aaData[ i ] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == 'dom' ) {\n\t\t\t\t\t/* Grab the data from the page - only do this when deferred loading or no Ajax\n\t\t\t\t\t * source since there is no point in reading the DOM data if we are then going\n\t\t\t\t\t * to replace it with Ajax data\n\t\t\t\t\t */\n\t\t\t\t\t_fnAddTr( oSettings, $(oSettings.nTBody).children('tr') );\n\t\t\t\t}\n\t\t\t\n\t\t\t\t/* Copy the data index array */\n\t\t\t\toSettings.aiDisplay = oSettings.aiDisplayMaster.slice();\n\t\t\t\n\t\t\t\t/* Initialisation complete - table can be drawn */\n\t\t\t\toSettings.bInitialised = true;\n\t\t\t\n\t\t\t\t/* Check if we need to initialise the table (it might not have been handed off to the\n\t\t\t\t * language processor)\n\t\t\t\t */\n\t\t\t\tif ( bInitHandedOff === false ) {\n\t\t\t\t\t_fnInitialise( oSettings );\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t/* Must be done after everything which can be overridden by the state saving! */\n\t\t\tif ( oInit.bStateSave )\n\t\t\t{\n\t\t\t\tfeatures.bStateSave = true;\n\t\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );\n\t\t\t\t_fnLoadState( oSettings, oInit, loadedInit );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tloadedInit();\n\t\t\t}\n\t\t\t\n\t\t} );\n\t\t_that = null;\n\t\treturn this;\n\t};\n\n\t\n\t/*\n\t * It is useful to have variables which are scoped locally so only the\n\t * DataTables functions can access them and they don't leak into global space.\n\t * At the same time these functions are often useful over multiple files in the\n\t * core and API, so we list, or at least document, all variables which are used\n\t * by DataTables as private variables here. This also ensures that there is no\n\t * clashing of variable names and that they can easily referenced for reuse.\n\t */\n\t\n\t\n\t// Defined else where\n\t//  _selector_run\n\t//  _selector_opts\n\t//  _selector_first\n\t//  _selector_row_indexes\n\t\n\tvar _ext; // DataTable.ext\n\tvar _Api; // DataTable.Api\n\tvar _api_register; // DataTable.Api.register\n\tvar _api_registerPlural; // DataTable.Api.registerPlural\n\t\n\tvar _re_dic = {};\n\tvar _re_new_lines = /[\\r\\n]/g;\n\tvar _re_html = /<.*?>/g;\n\t\n\t// This is not strict ISO8601 - Date.parse() is quite lax, although\n\t// implementations differ between browsers.\n\tvar _re_date = /^\\d{2,4}[\\.\\/\\-]\\d{1,2}[\\.\\/\\-]\\d{1,2}([T ]{1}\\d{1,2}[:\\.]\\d{2}([\\.:]\\d{2})?)?$/;\n\t\n\t// Escape regular expression special characters\n\tvar _re_escape_regex = new RegExp( '(\\\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\\\', '$', '^', '-' ].join('|\\\\') + ')', 'g' );\n\t\n\t// http://en.wikipedia.org/wiki/Foreign_exchange_market\n\t// - \\u20BD - Russian ruble.\n\t// - \\u20a9 - South Korean Won\n\t// - \\u20BA - Turkish Lira\n\t// - \\u20B9 - Indian Rupee\n\t// - R - Brazil (R$) and South Africa\n\t// - fr - Swiss Franc\n\t// - kr - Swedish krona, Norwegian krone and Danish krone\n\t// - \\u2009 is thin space and \\u202F is narrow no-break space, both used in many\n\t// - Ƀ - Bitcoin\n\t// - Ξ - Ethereum\n\t//   standards as thousands separators.\n\tvar _re_formatted_numeric = /[',$£€¥%\\u2009\\u202F\\u20BD\\u20a9\\u20BArfkɃΞ]/gi;\n\t\n\t\n\tvar _empty = function ( d ) {\n\t\treturn !d || d === true || d === '-' ? true : false;\n\t};\n\t\n\t\n\tvar _intVal = function ( s ) {\n\t\tvar integer = parseInt( s, 10 );\n\t\treturn !isNaN(integer) && isFinite(s) ? integer : null;\n\t};\n\t\n\t// Convert from a formatted number with characters other than `.` as the\n\t// decimal place, to a Javascript number\n\tvar _numToDecimal = function ( num, decimalPoint ) {\n\t\t// Cache created regular expressions for speed as this function is called often\n\t\tif ( ! _re_dic[ decimalPoint ] ) {\n\t\t\t_re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );\n\t\t}\n\t\treturn typeof num === 'string' && decimalPoint !== '.' ?\n\t\t\tnum.replace( /\\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :\n\t\t\tnum;\n\t};\n\t\n\t\n\tvar _isNumber = function ( d, decimalPoint, formatted ) {\n\t\tvar strType = typeof d === 'string';\n\t\n\t\t// If empty return immediately so there must be a number if it is a\n\t\t// formatted string (this stops the string \"k\", or \"kr\", etc being detected\n\t\t// as a formatted number for currency\n\t\tif ( _empty( d ) ) {\n\t\t\treturn true;\n\t\t}\n\t\n\t\tif ( decimalPoint && strType ) {\n\t\t\td = _numToDecimal( d, decimalPoint );\n\t\t}\n\t\n\t\tif ( formatted && strType ) {\n\t\t\td = d.replace( _re_formatted_numeric, '' );\n\t\t}\n\t\n\t\treturn !isNaN( parseFloat(d) ) && isFinite( d );\n\t};\n\t\n\t\n\t// A string without HTML in it can be considered to be HTML still\n\tvar _isHtml = function ( d ) {\n\t\treturn _empty( d ) || typeof d === 'string';\n\t};\n\t\n\t\n\tvar _htmlNumeric = function ( d, decimalPoint, formatted ) {\n\t\tif ( _empty( d ) ) {\n\t\t\treturn true;\n\t\t}\n\t\n\t\tvar html = _isHtml( d );\n\t\treturn ! html ?\n\t\t\tnull :\n\t\t\t_isNumber( _stripHtml( d ), decimalPoint, formatted ) ?\n\t\t\t\ttrue :\n\t\t\t\tnull;\n\t};\n\t\n\t\n\tvar _pluck = function ( a, prop, prop2 ) {\n\t\tvar out = [];\n\t\tvar i=0, ien=a.length;\n\t\n\t\t// Could have the test in the loop for slightly smaller code, but speed\n\t\t// is essential here\n\t\tif ( prop2 !== undefined ) {\n\t\t\tfor ( ; i<ien ; i++ ) {\n\t\t\t\tif ( a[i] && a[i][ prop ] ) {\n\t\t\t\t\tout.push( a[i][ prop ][ prop2 ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfor ( ; i<ien ; i++ ) {\n\t\t\t\tif ( a[i] ) {\n\t\t\t\t\tout.push( a[i][ prop ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\treturn out;\n\t};\n\t\n\t\n\t// Basically the same as _pluck, but rather than looping over `a` we use `order`\n\t// as the indexes to pick from `a`\n\tvar _pluck_order = function ( a, order, prop, prop2 )\n\t{\n\t\tvar out = [];\n\t\tvar i=0, ien=order.length;\n\t\n\t\t// Could have the test in the loop for slightly smaller code, but speed\n\t\t// is essential here\n\t\tif ( prop2 !== undefined ) {\n\t\t\tfor ( ; i<ien ; i++ ) {\n\t\t\t\tif ( a[ order[i] ][ prop ] ) {\n\t\t\t\t\tout.push( a[ order[i] ][ prop ][ prop2 ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfor ( ; i<ien ; i++ ) {\n\t\t\t\tout.push( a[ order[i] ][ prop ] );\n\t\t\t}\n\t\t}\n\t\n\t\treturn out;\n\t};\n\t\n\t\n\tvar _range = function ( len, start )\n\t{\n\t\tvar out = [];\n\t\tvar end;\n\t\n\t\tif ( start === undefined ) {\n\t\t\tstart = 0;\n\t\t\tend = len;\n\t\t}\n\t\telse {\n\t\t\tend = start;\n\t\t\tstart = len;\n\t\t}\n\t\n\t\tfor ( var i=start ; i<end ; i++ ) {\n\t\t\tout.push( i );\n\t\t}\n\t\n\t\treturn out;\n\t};\n\t\n\t\n\tvar _removeEmpty = function ( a )\n\t{\n\t\tvar out = [];\n\t\n\t\tfor ( var i=0, ien=a.length ; i<ien ; i++ ) {\n\t\t\tif ( a[i] ) { // careful - will remove all falsy values!\n\t\t\t\tout.push( a[i] );\n\t\t\t}\n\t\t}\n\t\n\t\treturn out;\n\t};\n\t\n\t\n\tvar _stripHtml = function ( d ) {\n\t\treturn d.replace( _re_html, '' );\n\t};\n\t\n\t\n\t/**\n\t * Determine if all values in the array are unique. This means we can short\n\t * cut the _unique method at the cost of a single loop. A sorted array is used\n\t * to easily check the values.\n\t *\n\t * @param  {array} src Source array\n\t * @return {boolean} true if all unique, false otherwise\n\t * @ignore\n\t */\n\tvar _areAllUnique = function ( src ) {\n\t\tif ( src.length < 2 ) {\n\t\t\treturn true;\n\t\t}\n\t\n\t\tvar sorted = src.slice().sort();\n\t\tvar last = sorted[0];\n\t\n\t\tfor ( var i=1, ien=sorted.length ; i<ien ; i++ ) {\n\t\t\tif ( sorted[i] === last ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\n\t\t\tlast = sorted[i];\n\t\t}\n\t\n\t\treturn true;\n\t};\n\t\n\t\n\t/**\n\t * Find the unique elements in a source array.\n\t *\n\t * @param  {array} src Source array\n\t * @return {array} Array of unique items\n\t * @ignore\n\t */\n\tvar _unique = function ( src )\n\t{\n\t\tif ( _areAllUnique( src ) ) {\n\t\t\treturn src.slice();\n\t\t}\n\t\n\t\t// A faster unique method is to use object keys to identify used values,\n\t\t// but this doesn't work with arrays or objects, which we must also\n\t\t// consider. See jsperf.com/compare-array-unique-versions/4 for more\n\t\t// information.\n\t\tvar\n\t\t\tout = [],\n\t\t\tval,\n\t\t\ti, ien=src.length,\n\t\t\tj, k=0;\n\t\n\t\tagain: for ( i=0 ; i<ien ; i++ ) {\n\t\t\tval = src[i];\n\t\n\t\t\tfor ( j=0 ; j<k ; j++ ) {\n\t\t\t\tif ( out[j] === val ) {\n\t\t\t\t\tcontinue again;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tout.push( val );\n\t\t\tk++;\n\t\t}\n\t\n\t\treturn out;\n\t};\n\t\n\t\n\t/**\n\t * DataTables utility methods\n\t * \n\t * This namespace provides helper methods that DataTables uses internally to\n\t * create a DataTable, but which are not exclusively used only for DataTables.\n\t * These methods can be used by extension authors to save the duplication of\n\t * code.\n\t *\n\t *  @namespace\n\t */\n\tDataTable.util = {\n\t\t/**\n\t\t * Throttle the calls to a function. Arguments and context are maintained\n\t\t * for the throttled function.\n\t\t *\n\t\t * @param {function} fn Function to be called\n\t\t * @param {integer} freq Call frequency in mS\n\t\t * @return {function} Wrapped function\n\t\t */\n\t\tthrottle: function ( fn, freq ) {\n\t\t\tvar\n\t\t\t\tfrequency = freq !== undefined ? freq : 200,\n\t\t\t\tlast,\n\t\t\t\ttimer;\n\t\n\t\t\treturn function () {\n\t\t\t\tvar\n\t\t\t\t\tthat = this,\n\t\t\t\t\tnow  = +new Date(),\n\t\t\t\t\targs = arguments;\n\t\n\t\t\t\tif ( last && now < last + frequency ) {\n\t\t\t\t\tclearTimeout( timer );\n\t\n\t\t\t\t\ttimer = setTimeout( function () {\n\t\t\t\t\t\tlast = undefined;\n\t\t\t\t\t\tfn.apply( that, args );\n\t\t\t\t\t}, frequency );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlast = now;\n\t\t\t\t\tfn.apply( that, args );\n\t\t\t\t}\n\t\t\t};\n\t\t},\n\t\n\t\n\t\t/**\n\t\t * Escape a string such that it can be used in a regular expression\n\t\t *\n\t\t *  @param {string} val string to escape\n\t\t *  @returns {string} escaped string\n\t\t */\n\t\tescapeRegex: function ( val ) {\n\t\t\treturn val.replace( _re_escape_regex, '\\\\$1' );\n\t\t}\n\t};\n\t\n\t\n\t\n\t/**\n\t * Create a mapping object that allows camel case parameters to be looked up\n\t * for their Hungarian counterparts. The mapping is stored in a private\n\t * parameter called `_hungarianMap` which can be accessed on the source object.\n\t *  @param {object} o\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnHungarianMap ( o )\n\t{\n\t\tvar\n\t\t\thungarian = 'a aa ai ao as b fn i m o s ',\n\t\t\tmatch,\n\t\t\tnewKey,\n\t\t\tmap = {};\n\t\n\t\t$.each( o, function (key, val) {\n\t\t\tmatch = key.match(/^([^A-Z]+?)([A-Z])/);\n\t\n\t\t\tif ( match && hungarian.indexOf(match[1]+' ') !== -1 )\n\t\t\t{\n\t\t\t\tnewKey = key.replace( match[0], match[2].toLowerCase() );\n\t\t\t\tmap[ newKey ] = key;\n\t\n\t\t\t\tif ( match[1] === 'o' )\n\t\t\t\t{\n\t\t\t\t\t_fnHungarianMap( o[key] );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t\n\t\to._hungarianMap = map;\n\t}\n\t\n\t\n\t/**\n\t * Convert from camel case parameters to Hungarian, based on a Hungarian map\n\t * created by _fnHungarianMap.\n\t *  @param {object} src The model object which holds all parameters that can be\n\t *    mapped.\n\t *  @param {object} user The object to convert from camel case to Hungarian.\n\t *  @param {boolean} force When set to `true`, properties which already have a\n\t *    Hungarian value in the `user` object will be overwritten. Otherwise they\n\t *    won't be.\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnCamelToHungarian ( src, user, force )\n\t{\n\t\tif ( ! src._hungarianMap ) {\n\t\t\t_fnHungarianMap( src );\n\t\t}\n\t\n\t\tvar hungarianKey;\n\t\n\t\t$.each( user, function (key, val) {\n\t\t\thungarianKey = src._hungarianMap[ key ];\n\t\n\t\t\tif ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) )\n\t\t\t{\n\t\t\t\t// For objects, we need to buzz down into the object to copy parameters\n\t\t\t\tif ( hungarianKey.charAt(0) === 'o' )\n\t\t\t\t{\n\t\t\t\t\t// Copy the camelCase options over to the hungarian\n\t\t\t\t\tif ( ! user[ hungarianKey ] ) {\n\t\t\t\t\t\tuser[ hungarianKey ] = {};\n\t\t\t\t\t}\n\t\t\t\t\t$.extend( true, user[hungarianKey], user[key] );\n\t\n\t\t\t\t\t_fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tuser[hungarianKey] = user[ key ];\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\n\t\n\t\n\t/**\n\t * Language compatibility - when certain options are given, and others aren't, we\n\t * need to duplicate the values over, in order to provide backwards compatibility\n\t * with older language files.\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnLanguageCompat( lang )\n\t{\n\t\t// Note the use of the Hungarian notation for the parameters in this method as\n\t\t// this is called after the mapping of camelCase to Hungarian\n\t\tvar defaults = DataTable.defaults.oLanguage;\n\t\n\t\t// Default mapping\n\t\tvar defaultDecimal = defaults.sDecimal;\n\t\tif ( defaultDecimal ) {\n\t\t\t_addNumericSort( defaultDecimal );\n\t\t}\n\t\n\t\tif ( lang ) {\n\t\t\tvar zeroRecords = lang.sZeroRecords;\n\t\n\t\t\t// Backwards compatibility - if there is no sEmptyTable given, then use the same as\n\t\t\t// sZeroRecords - assuming that is given.\n\t\t\tif ( ! lang.sEmptyTable && zeroRecords &&\n\t\t\t\tdefaults.sEmptyTable === \"No data available in table\" )\n\t\t\t{\n\t\t\t\t_fnMap( lang, lang, 'sZeroRecords', 'sEmptyTable' );\n\t\t\t}\n\t\n\t\t\t// Likewise with loading records\n\t\t\tif ( ! lang.sLoadingRecords && zeroRecords &&\n\t\t\t\tdefaults.sLoadingRecords === \"Loading...\" )\n\t\t\t{\n\t\t\t\t_fnMap( lang, lang, 'sZeroRecords', 'sLoadingRecords' );\n\t\t\t}\n\t\n\t\t\t// Old parameter name of the thousands separator mapped onto the new\n\t\t\tif ( lang.sInfoThousands ) {\n\t\t\t\tlang.sThousands = lang.sInfoThousands;\n\t\t\t}\n\t\n\t\t\tvar decimal = lang.sDecimal;\n\t\t\tif ( decimal && defaultDecimal !== decimal ) {\n\t\t\t\t_addNumericSort( decimal );\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Map one parameter onto another\n\t *  @param {object} o Object to map\n\t *  @param {*} knew The new parameter name\n\t *  @param {*} old The old parameter name\n\t */\n\tvar _fnCompatMap = function ( o, knew, old ) {\n\t\tif ( o[ knew ] !== undefined ) {\n\t\t\to[ old ] = o[ knew ];\n\t\t}\n\t};\n\t\n\t\n\t/**\n\t * Provide backwards compatibility for the main DT options. Note that the new\n\t * options are mapped onto the old parameters, so this is an external interface\n\t * change only.\n\t *  @param {object} init Object to map\n\t */\n\tfunction _fnCompatOpts ( init )\n\t{\n\t\t_fnCompatMap( init, 'ordering',      'bSort' );\n\t\t_fnCompatMap( init, 'orderMulti',    'bSortMulti' );\n\t\t_fnCompatMap( init, 'orderClasses',  'bSortClasses' );\n\t\t_fnCompatMap( init, 'orderCellsTop', 'bSortCellsTop' );\n\t\t_fnCompatMap( init, 'order',         'aaSorting' );\n\t\t_fnCompatMap( init, 'orderFixed',    'aaSortingFixed' );\n\t\t_fnCompatMap( init, 'paging',        'bPaginate' );\n\t\t_fnCompatMap( init, 'pagingType',    'sPaginationType' );\n\t\t_fnCompatMap( init, 'pageLength',    'iDisplayLength' );\n\t\t_fnCompatMap( init, 'searching',     'bFilter' );\n\t\n\t\t// Boolean initialisation of x-scrolling\n\t\tif ( typeof init.sScrollX === 'boolean' ) {\n\t\t\tinit.sScrollX = init.sScrollX ? '100%' : '';\n\t\t}\n\t\tif ( typeof init.scrollX === 'boolean' ) {\n\t\t\tinit.scrollX = init.scrollX ? '100%' : '';\n\t\t}\n\t\n\t\t// Column search objects are in an array, so it needs to be converted\n\t\t// element by element\n\t\tvar searchCols = init.aoSearchCols;\n\t\n\t\tif ( searchCols ) {\n\t\t\tfor ( var i=0, ien=searchCols.length ; i<ien ; i++ ) {\n\t\t\t\tif ( searchCols[i] ) {\n\t\t\t\t\t_fnCamelToHungarian( DataTable.models.oSearch, searchCols[i] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Provide backwards compatibility for column options. Note that the new options\n\t * are mapped onto the old parameters, so this is an external interface change\n\t * only.\n\t *  @param {object} init Object to map\n\t */\n\tfunction _fnCompatCols ( init )\n\t{\n\t\t_fnCompatMap( init, 'orderable',     'bSortable' );\n\t\t_fnCompatMap( init, 'orderData',     'aDataSort' );\n\t\t_fnCompatMap( init, 'orderSequence', 'asSorting' );\n\t\t_fnCompatMap( init, 'orderDataType', 'sortDataType' );\n\t\n\t\t// orderData can be given as an integer\n\t\tvar dataSort = init.aDataSort;\n\t\tif ( typeof dataSort === 'number' && ! $.isArray( dataSort ) ) {\n\t\t\tinit.aDataSort = [ dataSort ];\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Browser feature detection for capabilities, quirks\n\t *  @param {object} settings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnBrowserDetect( settings )\n\t{\n\t\t// We don't need to do this every time DataTables is constructed, the values\n\t\t// calculated are specific to the browser and OS configuration which we\n\t\t// don't expect to change between initialisations\n\t\tif ( ! DataTable.__browser ) {\n\t\t\tvar browser = {};\n\t\t\tDataTable.__browser = browser;\n\t\n\t\t\t// Scrolling feature / quirks detection\n\t\t\tvar n = $('<div/>')\n\t\t\t\t.css( {\n\t\t\t\t\tposition: 'fixed',\n\t\t\t\t\ttop: 0,\n\t\t\t\t\tleft: $(window).scrollLeft()*-1, // allow for scrolling\n\t\t\t\t\theight: 1,\n\t\t\t\t\twidth: 1,\n\t\t\t\t\toverflow: 'hidden'\n\t\t\t\t} )\n\t\t\t\t.append(\n\t\t\t\t\t$('<div/>')\n\t\t\t\t\t\t.css( {\n\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\ttop: 1,\n\t\t\t\t\t\t\tleft: 1,\n\t\t\t\t\t\t\twidth: 100,\n\t\t\t\t\t\t\toverflow: 'scroll'\n\t\t\t\t\t\t} )\n\t\t\t\t\t\t.append(\n\t\t\t\t\t\t\t$('<div/>')\n\t\t\t\t\t\t\t\t.css( {\n\t\t\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\t\t\theight: 10\n\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t.appendTo( 'body' );\n\t\n\t\t\tvar outer = n.children();\n\t\t\tvar inner = outer.children();\n\t\n\t\t\t// Numbers below, in order, are:\n\t\t\t// inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth\n\t\t\t//\n\t\t\t// IE6 XP:                           100 100 100  83\n\t\t\t// IE7 Vista:                        100 100 100  83\n\t\t\t// IE 8+ Windows:                     83  83 100  83\n\t\t\t// Evergreen Windows:                 83  83 100  83\n\t\t\t// Evergreen Mac with scrollbars:     85  85 100  85\n\t\t\t// Evergreen Mac without scrollbars: 100 100 100 100\n\t\n\t\t\t// Get scrollbar width\n\t\t\tbrowser.barWidth = outer[0].offsetWidth - outer[0].clientWidth;\n\t\n\t\t\t// IE6/7 will oversize a width 100% element inside a scrolling element, to\n\t\t\t// include the width of the scrollbar, while other browsers ensure the inner\n\t\t\t// element is contained without forcing scrolling\n\t\t\tbrowser.bScrollOversize = inner[0].offsetWidth === 100 && outer[0].clientWidth !== 100;\n\t\n\t\t\t// In rtl text layout, some browsers (most, but not all) will place the\n\t\t\t// scrollbar on the left, rather than the right.\n\t\t\tbrowser.bScrollbarLeft = Math.round( inner.offset().left ) !== 1;\n\t\n\t\t\t// IE8- don't provide height and width for getBoundingClientRect\n\t\t\tbrowser.bBounding = n[0].getBoundingClientRect().width ? true : false;\n\t\n\t\t\tn.remove();\n\t\t}\n\t\n\t\t$.extend( settings.oBrowser, DataTable.__browser );\n\t\tsettings.oScroll.iBarWidth = DataTable.__browser.barWidth;\n\t}\n\t\n\t\n\t/**\n\t * Array.prototype reduce[Right] method, used for browsers which don't support\n\t * JS 1.6. Done this way to reduce code size, since we iterate either way\n\t *  @param {object} settings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnReduce ( that, fn, init, start, end, inc )\n\t{\n\t\tvar\n\t\t\ti = start,\n\t\t\tvalue,\n\t\t\tisSet = false;\n\t\n\t\tif ( init !== undefined ) {\n\t\t\tvalue = init;\n\t\t\tisSet = true;\n\t\t}\n\t\n\t\twhile ( i !== end ) {\n\t\t\tif ( ! that.hasOwnProperty(i) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\n\t\t\tvalue = isSet ?\n\t\t\t\tfn( value, that[i], i, that ) :\n\t\t\t\tthat[i];\n\t\n\t\t\tisSet = true;\n\t\t\ti += inc;\n\t\t}\n\t\n\t\treturn value;\n\t}\n\t\n\t/**\n\t * Add a column to the list used for the table with default values\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {node} nTh The th element for this column\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnAddColumn( oSettings, nTh )\n\t{\n\t\t// Add column to aoColumns array\n\t\tvar oDefaults = DataTable.defaults.column;\n\t\tvar iCol = oSettings.aoColumns.length;\n\t\tvar oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {\n\t\t\t\"nTh\": nTh ? nTh : document.createElement('th'),\n\t\t\t\"sTitle\":    oDefaults.sTitle    ? oDefaults.sTitle    : nTh ? nTh.innerHTML : '',\n\t\t\t\"aDataSort\": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],\n\t\t\t\"mData\": oDefaults.mData ? oDefaults.mData : iCol,\n\t\t\tidx: iCol\n\t\t} );\n\t\toSettings.aoColumns.push( oCol );\n\t\n\t\t// Add search object for column specific search. Note that the `searchCols[ iCol ]`\n\t\t// passed into extend can be undefined. This allows the user to give a default\n\t\t// with only some of the parameters defined, and also not give a default\n\t\tvar searchCols = oSettings.aoPreSearchCols;\n\t\tsearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );\n\t\n\t\t// Use the default column options function to initialise classes etc\n\t\t_fnColumnOptions( oSettings, iCol, $(nTh).data() );\n\t}\n\t\n\t\n\t/**\n\t * Apply options for a column\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {int} iCol column index to consider\n\t *  @param {object} oOptions object with sType, bVisible and bSearchable etc\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnColumnOptions( oSettings, iCol, oOptions )\n\t{\n\t\tvar oCol = oSettings.aoColumns[ iCol ];\n\t\tvar oClasses = oSettings.oClasses;\n\t\tvar th = $(oCol.nTh);\n\t\n\t\t// Try to get width information from the DOM. We can't get it from CSS\n\t\t// as we'd need to parse the CSS stylesheet. `width` option can override\n\t\tif ( ! oCol.sWidthOrig ) {\n\t\t\t// Width attribute\n\t\t\toCol.sWidthOrig = th.attr('width') || null;\n\t\n\t\t\t// Style attribute\n\t\t\tvar t = (th.attr('style') || '').match(/width:\\s*(\\d+[pxem%]+)/);\n\t\t\tif ( t ) {\n\t\t\t\toCol.sWidthOrig = t[1];\n\t\t\t}\n\t\t}\n\t\n\t\t/* User specified column options */\n\t\tif ( oOptions !== undefined && oOptions !== null )\n\t\t{\n\t\t\t// Backwards compatibility\n\t\t\t_fnCompatCols( oOptions );\n\t\n\t\t\t// Map camel case parameters to their Hungarian counterparts\n\t\t\t_fnCamelToHungarian( DataTable.defaults.column, oOptions );\n\t\n\t\t\t/* Backwards compatibility for mDataProp */\n\t\t\tif ( oOptions.mDataProp !== undefined && !oOptions.mData )\n\t\t\t{\n\t\t\t\toOptions.mData = oOptions.mDataProp;\n\t\t\t}\n\t\n\t\t\tif ( oOptions.sType )\n\t\t\t{\n\t\t\t\toCol._sManualType = oOptions.sType;\n\t\t\t}\n\t\n\t\t\t// `class` is a reserved word in Javascript, so we need to provide\n\t\t\t// the ability to use a valid name for the camel case input\n\t\t\tif ( oOptions.className && ! oOptions.sClass )\n\t\t\t{\n\t\t\t\toOptions.sClass = oOptions.className;\n\t\t\t}\n\t\t\tif ( oOptions.sClass ) {\n\t\t\t\tth.addClass( oOptions.sClass );\n\t\t\t}\n\t\n\t\t\t$.extend( oCol, oOptions );\n\t\t\t_fnMap( oCol, oOptions, \"sWidth\", \"sWidthOrig\" );\n\t\n\t\t\t/* iDataSort to be applied (backwards compatibility), but aDataSort will take\n\t\t\t * priority if defined\n\t\t\t */\n\t\t\tif ( oOptions.iDataSort !== undefined )\n\t\t\t{\n\t\t\t\toCol.aDataSort = [ oOptions.iDataSort ];\n\t\t\t}\n\t\t\t_fnMap( oCol, oOptions, \"aDataSort\" );\n\t\t}\n\t\n\t\t/* Cache the data get and set functions for speed */\n\t\tvar mDataSrc = oCol.mData;\n\t\tvar mData = _fnGetObjectDataFn( mDataSrc );\n\t\tvar mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;\n\t\n\t\tvar attrTest = function( src ) {\n\t\t\treturn typeof src === 'string' && src.indexOf('@') !== -1;\n\t\t};\n\t\toCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (\n\t\t\tattrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)\n\t\t);\n\t\toCol._setter = null;\n\t\n\t\toCol.fnGetData = function (rowData, type, meta) {\n\t\t\tvar innerData = mData( rowData, type, undefined, meta );\n\t\n\t\t\treturn mRender && type ?\n\t\t\t\tmRender( innerData, type, rowData, meta ) :\n\t\t\t\tinnerData;\n\t\t};\n\t\toCol.fnSetData = function ( rowData, val, meta ) {\n\t\t\treturn _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );\n\t\t};\n\t\n\t\t// Indicate if DataTables should read DOM data as an object or array\n\t\t// Used in _fnGetRowElements\n\t\tif ( typeof mDataSrc !== 'number' ) {\n\t\t\toSettings._rowReadObject = true;\n\t\t}\n\t\n\t\t/* Feature sorting overrides column specific when off */\n\t\tif ( !oSettings.oFeatures.bSort )\n\t\t{\n\t\t\toCol.bSortable = false;\n\t\t\tth.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called\n\t\t}\n\t\n\t\t/* Check that the class assignment is correct for sorting */\n\t\tvar bAsc = $.inArray('asc', oCol.asSorting) !== -1;\n\t\tvar bDesc = $.inArray('desc', oCol.asSorting) !== -1;\n\t\tif ( !oCol.bSortable || (!bAsc && !bDesc) )\n\t\t{\n\t\t\toCol.sSortingClass = oClasses.sSortableNone;\n\t\t\toCol.sSortingClassJUI = \"\";\n\t\t}\n\t\telse if ( bAsc && !bDesc )\n\t\t{\n\t\t\toCol.sSortingClass = oClasses.sSortableAsc;\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;\n\t\t}\n\t\telse if ( !bAsc && bDesc )\n\t\t{\n\t\t\toCol.sSortingClass = oClasses.sSortableDesc;\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;\n\t\t}\n\t\telse\n\t\t{\n\t\t\toCol.sSortingClass = oClasses.sSortable;\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUI;\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Adjust the table column widths for new data. Note: you would probably want to\n\t * do a redraw after calling this function!\n\t *  @param {object} settings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnAdjustColumnSizing ( settings )\n\t{\n\t\t/* Not interested in doing column width calculation if auto-width is disabled */\n\t\tif ( settings.oFeatures.bAutoWidth !== false )\n\t\t{\n\t\t\tvar columns = settings.aoColumns;\n\t\n\t\t\t_fnCalculateColumnWidths( settings );\n\t\t\tfor ( var i=0 , iLen=columns.length ; i<iLen ; i++ )\n\t\t\t{\n\t\t\t\tcolumns[i].nTh.style.width = columns[i].sWidth;\n\t\t\t}\n\t\t}\n\t\n\t\tvar scroll = settings.oScroll;\n\t\tif ( scroll.sY !== '' || scroll.sX !== '')\n\t\t{\n\t\t\t_fnScrollDraw( settings );\n\t\t}\n\t\n\t\t_fnCallbackFire( settings, null, 'column-sizing', [settings] );\n\t}\n\t\n\t\n\t/**\n\t * Covert the index of a visible column to the index in the data array (take account\n\t * of hidden columns)\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {int} iMatch Visible column index to lookup\n\t *  @returns {int} i the data index\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnVisibleToColumnIndex( oSettings, iMatch )\n\t{\n\t\tvar aiVis = _fnGetColumns( oSettings, 'bVisible' );\n\t\n\t\treturn typeof aiVis[iMatch] === 'number' ?\n\t\t\taiVis[iMatch] :\n\t\t\tnull;\n\t}\n\t\n\t\n\t/**\n\t * Covert the index of an index in the data array and convert it to the visible\n\t *   column index (take account of hidden columns)\n\t *  @param {int} iMatch Column index to lookup\n\t *  @param {object} oSettings dataTables settings object\n\t *  @returns {int} i the data index\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnColumnIndexToVisible( oSettings, iMatch )\n\t{\n\t\tvar aiVis = _fnGetColumns( oSettings, 'bVisible' );\n\t\tvar iPos = $.inArray( iMatch, aiVis );\n\t\n\t\treturn iPos !== -1 ? iPos : null;\n\t}\n\t\n\t\n\t/**\n\t * Get the number of visible columns\n\t *  @param {object} oSettings dataTables settings object\n\t *  @returns {int} i the number of visible columns\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnVisbleColumns( oSettings )\n\t{\n\t\tvar vis = 0;\n\t\n\t\t// No reduce in IE8, use a loop for now\n\t\t$.each( oSettings.aoColumns, function ( i, col ) {\n\t\t\tif ( col.bVisible && $(col.nTh).css('display') !== 'none' ) {\n\t\t\t\tvis++;\n\t\t\t}\n\t\t} );\n\t\n\t\treturn vis;\n\t}\n\t\n\t\n\t/**\n\t * Get an array of column indexes that match a given property\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {string} sParam Parameter in aoColumns to look for - typically\n\t *    bVisible or bSearchable\n\t *  @returns {array} Array of indexes with matched properties\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnGetColumns( oSettings, sParam )\n\t{\n\t\tvar a = [];\n\t\n\t\t$.map( oSettings.aoColumns, function(val, i) {\n\t\t\tif ( val[sParam] ) {\n\t\t\t\ta.push( i );\n\t\t\t}\n\t\t} );\n\t\n\t\treturn a;\n\t}\n\t\n\t\n\t/**\n\t * Calculate the 'type' of a column\n\t *  @param {object} settings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnColumnTypes ( settings )\n\t{\n\t\tvar columns = settings.aoColumns;\n\t\tvar data = settings.aoData;\n\t\tvar types = DataTable.ext.type.detect;\n\t\tvar i, ien, j, jen, k, ken;\n\t\tvar col, cell, detectedType, cache;\n\t\n\t\t// For each column, spin over the \n\t\tfor ( i=0, ien=columns.length ; i<ien ; i++ ) {\n\t\t\tcol = columns[i];\n\t\t\tcache = [];\n\t\n\t\t\tif ( ! col.sType && col._sManualType ) {\n\t\t\t\tcol.sType = col._sManualType;\n\t\t\t}\n\t\t\telse if ( ! col.sType ) {\n\t\t\t\tfor ( j=0, jen=types.length ; j<jen ; j++ ) {\n\t\t\t\t\tfor ( k=0, ken=data.length ; k<ken ; k++ ) {\n\t\t\t\t\t\t// Use a cache array so we only need to get the type data\n\t\t\t\t\t\t// from the formatter once (when using multiple detectors)\n\t\t\t\t\t\tif ( cache[k] === undefined ) {\n\t\t\t\t\t\t\tcache[k] = _fnGetCellData( settings, k, i, 'type' );\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\tdetectedType = types[j]( cache[k], settings );\n\t\n\t\t\t\t\t\t// If null, then this type can't apply to this column, so\n\t\t\t\t\t\t// rather than testing all cells, break out. There is an\n\t\t\t\t\t\t// exception for the last type which is `html`. We need to\n\t\t\t\t\t\t// scan all rows since it is possible to mix string and HTML\n\t\t\t\t\t\t// types\n\t\t\t\t\t\tif ( ! detectedType && j !== types.length-1 ) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t// Only a single match is needed for html type since it is\n\t\t\t\t\t\t// bottom of the pile and very similar to string\n\t\t\t\t\t\tif ( detectedType === 'html' ) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\n\t\t\t\t\t// Type is valid for all data points in the column - use this\n\t\t\t\t\t// type\n\t\t\t\t\tif ( detectedType ) {\n\t\t\t\t\t\tcol.sType = detectedType;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t// Fall back - if no type was detected, always use string\n\t\t\t\tif ( ! col.sType ) {\n\t\t\t\t\tcol.sType = 'string';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Take the column definitions and static columns arrays and calculate how\n\t * they relate to column indexes. The callback function will then apply the\n\t * definition found for a column to a suitable configuration object.\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {array} aoColDefs The aoColumnDefs array that is to be applied\n\t *  @param {array} aoCols The aoColumns array that defines columns individually\n\t *  @param {function} fn Callback function - takes two parameters, the calculated\n\t *    column index and the definition for that column.\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )\n\t{\n\t\tvar i, iLen, j, jLen, k, kLen, def;\n\t\tvar columns = oSettings.aoColumns;\n\t\n\t\t// Column definitions with aTargets\n\t\tif ( aoColDefs )\n\t\t{\n\t\t\t/* Loop over the definitions array - loop in reverse so first instance has priority */\n\t\t\tfor ( i=aoColDefs.length-1 ; i>=0 ; i-- )\n\t\t\t{\n\t\t\t\tdef = aoColDefs[i];\n\t\n\t\t\t\t/* Each definition can target multiple columns, as it is an array */\n\t\t\t\tvar aTargets = def.targets !== undefined ?\n\t\t\t\t\tdef.targets :\n\t\t\t\t\tdef.aTargets;\n\t\n\t\t\t\tif ( ! $.isArray( aTargets ) )\n\t\t\t\t{\n\t\t\t\t\taTargets = [ aTargets ];\n\t\t\t\t}\n\t\n\t\t\t\tfor ( j=0, jLen=aTargets.length ; j<jLen ; j++ )\n\t\t\t\t{\n\t\t\t\t\tif ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 )\n\t\t\t\t\t{\n\t\t\t\t\t\t/* Add columns that we don't yet know about */\n\t\t\t\t\t\twhile( columns.length <= aTargets[j] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_fnAddColumn( oSettings );\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t/* Integer, basic index */\n\t\t\t\t\t\tfn( aTargets[j], def );\n\t\t\t\t\t}\n\t\t\t\t\telse if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )\n\t\t\t\t\t{\n\t\t\t\t\t\t/* Negative integer, right to left column counting */\n\t\t\t\t\t\tfn( columns.length+aTargets[j], def );\n\t\t\t\t\t}\n\t\t\t\t\telse if ( typeof aTargets[j] === 'string' )\n\t\t\t\t\t{\n\t\t\t\t\t\t/* Class name matching on TH element */\n\t\t\t\t\t\tfor ( k=0, kLen=columns.length ; k<kLen ; k++ )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ( aTargets[j] == \"_all\" ||\n\t\t\t\t\t\t\t     $(columns[k].nTh).hasClass( aTargets[j] ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfn( k, def );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t// Statically defined columns array\n\t\tif ( aoCols )\n\t\t{\n\t\t\tfor ( i=0, iLen=aoCols.length ; i<iLen ; i++ )\n\t\t\t{\n\t\t\t\tfn( i, aoCols[i] );\n\t\t\t}\n\t\t}\n\t}\n\t\n\t/**\n\t * Add a data array to the table, creating DOM node etc. This is the parallel to\n\t * _fnGatherData, but for adding rows from a Javascript source, rather than a\n\t * DOM source.\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {array} aData data array to be added\n\t *  @param {node} [nTr] TR element to add to the table - optional. If not given,\n\t *    DataTables will create a row automatically\n\t *  @param {array} [anTds] Array of TD|TH elements for the row - must be given\n\t *    if nTr is.\n\t *  @returns {int} >=0 if successful (index of new aoData entry), -1 if failed\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnAddData ( oSettings, aDataIn, nTr, anTds )\n\t{\n\t\t/* Create the object for storing information about this new row */\n\t\tvar iRow = oSettings.aoData.length;\n\t\tvar oData = $.extend( true, {}, DataTable.models.oRow, {\n\t\t\tsrc: nTr ? 'dom' : 'data',\n\t\t\tidx: iRow\n\t\t} );\n\t\n\t\toData._aData = aDataIn;\n\t\toSettings.aoData.push( oData );\n\t\n\t\t/* Create the cells */\n\t\tvar nTd, sThisType;\n\t\tvar columns = oSettings.aoColumns;\n\t\n\t\t// Invalidate the column types as the new data needs to be revalidated\n\t\tfor ( var i=0, iLen=columns.length ; i<iLen ; i++ )\n\t\t{\n\t\t\tcolumns[i].sType = null;\n\t\t}\n\t\n\t\t/* Add to the display array */\n\t\toSettings.aiDisplayMaster.push( iRow );\n\t\n\t\tvar id = oSettings.rowIdFn( aDataIn );\n\t\tif ( id !== undefined ) {\n\t\t\toSettings.aIds[ id ] = oData;\n\t\t}\n\t\n\t\t/* Create the DOM information, or register it if already present */\n\t\tif ( nTr || ! oSettings.oFeatures.bDeferRender )\n\t\t{\n\t\t\t_fnCreateTr( oSettings, iRow, nTr, anTds );\n\t\t}\n\t\n\t\treturn iRow;\n\t}\n\t\n\t\n\t/**\n\t * Add one or more TR elements to the table. Generally we'd expect to\n\t * use this for reading data from a DOM sourced table, but it could be\n\t * used for an TR element. Note that if a TR is given, it is used (i.e.\n\t * it is not cloned).\n\t *  @param {object} settings dataTables settings object\n\t *  @param {array|node|jQuery} trs The TR element(s) to add to the table\n\t *  @returns {array} Array of indexes for the added rows\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnAddTr( settings, trs )\n\t{\n\t\tvar row;\n\t\n\t\t// Allow an individual node to be passed in\n\t\tif ( ! (trs instanceof $) ) {\n\t\t\ttrs = $(trs);\n\t\t}\n\t\n\t\treturn trs.map( function (i, el) {\n\t\t\trow = _fnGetRowElements( settings, el );\n\t\t\treturn _fnAddData( settings, row.data, el, row.cells );\n\t\t} );\n\t}\n\t\n\t\n\t/**\n\t * Take a TR element and convert it to an index in aoData\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {node} n the TR element to find\n\t *  @returns {int} index if the node is found, null if not\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnNodeToDataIndex( oSettings, n )\n\t{\n\t\treturn (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;\n\t}\n\t\n\t\n\t/**\n\t * Take a TD element and convert it into a column data index (not the visible index)\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {int} iRow The row number the TD/TH can be found in\n\t *  @param {node} n The TD/TH element to find\n\t *  @returns {int} index if the node is found, -1 if not\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnNodeToColumnIndex( oSettings, iRow, n )\n\t{\n\t\treturn $.inArray( n, oSettings.aoData[ iRow ].anCells );\n\t}\n\t\n\t\n\t/**\n\t * Get the data for a given cell from the internal cache, taking into account data mapping\n\t *  @param {object} settings dataTables settings object\n\t *  @param {int} rowIdx aoData row id\n\t *  @param {int} colIdx Column index\n\t *  @param {string} type data get type ('display', 'type' 'filter' 'sort')\n\t *  @returns {*} Cell data\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnGetCellData( settings, rowIdx, colIdx, type )\n\t{\n\t\tvar draw           = settings.iDraw;\n\t\tvar col            = settings.aoColumns[colIdx];\n\t\tvar rowData        = settings.aoData[rowIdx]._aData;\n\t\tvar defaultContent = col.sDefaultContent;\n\t\tvar cellData       = col.fnGetData( rowData, type, {\n\t\t\tsettings: settings,\n\t\t\trow:      rowIdx,\n\t\t\tcol:      colIdx\n\t\t} );\n\t\n\t\tif ( cellData === undefined ) {\n\t\t\tif ( settings.iDrawError != draw && defaultContent === null ) {\n\t\t\t\t_fnLog( settings, 0, \"Requested unknown parameter \"+\n\t\t\t\t\t(typeof col.mData=='function' ? '{function}' : \"'\"+col.mData+\"'\")+\n\t\t\t\t\t\" for row \"+rowIdx+\", column \"+colIdx, 4 );\n\t\t\t\tsettings.iDrawError = draw;\n\t\t\t}\n\t\t\treturn defaultContent;\n\t\t}\n\t\n\t\t// When the data source is null and a specific data type is requested (i.e.\n\t\t// not the original data), we can use default column data\n\t\tif ( (cellData === rowData || cellData === null) && defaultContent !== null && type !== undefined ) {\n\t\t\tcellData = defaultContent;\n\t\t}\n\t\telse if ( typeof cellData === 'function' ) {\n\t\t\t// If the data source is a function, then we run it and use the return,\n\t\t\t// executing in the scope of the data object (for instances)\n\t\t\treturn cellData.call( rowData );\n\t\t}\n\t\n\t\tif ( cellData === null && type == 'display' ) {\n\t\t\treturn '';\n\t\t}\n\t\treturn cellData;\n\t}\n\t\n\t\n\t/**\n\t * Set the value for a specific cell, into the internal data cache\n\t *  @param {object} settings dataTables settings object\n\t *  @param {int} rowIdx aoData row id\n\t *  @param {int} colIdx Column index\n\t *  @param {*} val Value to set\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnSetCellData( settings, rowIdx, colIdx, val )\n\t{\n\t\tvar col     = settings.aoColumns[colIdx];\n\t\tvar rowData = settings.aoData[rowIdx]._aData;\n\t\n\t\tcol.fnSetData( rowData, val, {\n\t\t\tsettings: settings,\n\t\t\trow:      rowIdx,\n\t\t\tcol:      colIdx\n\t\t}  );\n\t}\n\t\n\t\n\t// Private variable that is used to match action syntax in the data property object\n\tvar __reArray = /\\[.*?\\]$/;\n\tvar __reFn = /\\(\\)$/;\n\t\n\t/**\n\t * Split string on periods, taking into account escaped periods\n\t * @param  {string} str String to split\n\t * @return {array} Split string\n\t */\n\tfunction _fnSplitObjNotation( str )\n\t{\n\t\treturn $.map( str.match(/(\\\\.|[^\\.])+/g) || [''], function ( s ) {\n\t\t\treturn s.replace(/\\\\\\./g, '.');\n\t\t} );\n\t}\n\t\n\t\n\t/**\n\t * Return a function that can be used to get data from a source object, taking\n\t * into account the ability to use nested objects as a source\n\t *  @param {string|int|function} mSource The data source for the object\n\t *  @returns {function} Data get function\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnGetObjectDataFn( mSource )\n\t{\n\t\tif ( $.isPlainObject( mSource ) )\n\t\t{\n\t\t\t/* Build an object of get functions, and wrap them in a single call */\n\t\t\tvar o = {};\n\t\t\t$.each( mSource, function (key, val) {\n\t\t\t\tif ( val ) {\n\t\t\t\t\to[key] = _fnGetObjectDataFn( val );\n\t\t\t\t}\n\t\t\t} );\n\t\n\t\t\treturn function (data, type, row, meta) {\n\t\t\t\tvar t = o[type] || o._;\n\t\t\t\treturn t !== undefined ?\n\t\t\t\t\tt(data, type, row, meta) :\n\t\t\t\t\tdata;\n\t\t\t};\n\t\t}\n\t\telse if ( mSource === null )\n\t\t{\n\t\t\t/* Give an empty string for rendering / sorting etc */\n\t\t\treturn function (data) { // type, row and meta also passed, but not used\n\t\t\t\treturn data;\n\t\t\t};\n\t\t}\n\t\telse if ( typeof mSource === 'function' )\n\t\t{\n\t\t\treturn function (data, type, row, meta) {\n\t\t\t\treturn mSource( data, type, row, meta );\n\t\t\t};\n\t\t}\n\t\telse if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||\n\t\t\t      mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )\n\t\t{\n\t\t\t/* If there is a . in the source string then the data source is in a\n\t\t\t * nested object so we loop over the data for each level to get the next\n\t\t\t * level down. On each loop we test for undefined, and if found immediately\n\t\t\t * return. This allows entire objects to be missing and sDefaultContent to\n\t\t\t * be used if defined, rather than throwing an error\n\t\t\t */\n\t\t\tvar fetchData = function (data, type, src) {\n\t\t\t\tvar arrayNotation, funcNotation, out, innerSrc;\n\t\n\t\t\t\tif ( src !== \"\" )\n\t\t\t\t{\n\t\t\t\t\tvar a = _fnSplitObjNotation( src );\n\t\n\t\t\t\t\tfor ( var i=0, iLen=a.length ; i<iLen ; i++ )\n\t\t\t\t\t{\n\t\t\t\t\t\t// Check if we are dealing with special notation\n\t\t\t\t\t\tarrayNotation = a[i].match(__reArray);\n\t\t\t\t\t\tfuncNotation = a[i].match(__reFn);\n\t\n\t\t\t\t\t\tif ( arrayNotation )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Array notation\n\t\t\t\t\t\t\ta[i] = a[i].replace(__reArray, '');\n\t\n\t\t\t\t\t\t\t// Condition allows simply [] to be passed in\n\t\t\t\t\t\t\tif ( a[i] !== \"\" ) {\n\t\t\t\t\t\t\t\tdata = data[ a[i] ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tout = [];\n\t\n\t\t\t\t\t\t\t// Get the remainder of the nested object to get\n\t\t\t\t\t\t\ta.splice( 0, i+1 );\n\t\t\t\t\t\t\tinnerSrc = a.join('.');\n\t\n\t\t\t\t\t\t\t// Traverse each entry in the array getting the properties requested\n\t\t\t\t\t\t\tif ( $.isArray( data ) ) {\n\t\t\t\t\t\t\t\tfor ( var j=0, jLen=data.length ; j<jLen ; j++ ) {\n\t\t\t\t\t\t\t\t\tout.push( fetchData( data[j], type, innerSrc ) );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t\t// If a string is given in between the array notation indicators, that\n\t\t\t\t\t\t\t// is used to join the strings together, otherwise an array is returned\n\t\t\t\t\t\t\tvar join = arrayNotation[0].substring(1, arrayNotation[0].length-1);\n\t\t\t\t\t\t\tdata = (join===\"\") ? out : out.join(join);\n\t\n\t\t\t\t\t\t\t// The inner call to fetchData has already traversed through the remainder\n\t\t\t\t\t\t\t// of the source requested, so we exit from the loop\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( funcNotation )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Function call\n\t\t\t\t\t\t\ta[i] = a[i].replace(__reFn, '');\n\t\t\t\t\t\t\tdata = data[ a[i] ]();\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\tif ( data === null || data[ a[i] ] === undefined )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdata = data[ a[i] ];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\treturn data;\n\t\t\t};\n\t\n\t\t\treturn function (data, type) { // row and meta also passed, but not used\n\t\t\t\treturn fetchData( data, type, mSource );\n\t\t\t};\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Array or flat object mapping */\n\t\t\treturn function (data, type) { // row and meta also passed, but not used\n\t\t\t\treturn data[mSource];\n\t\t\t};\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Return a function that can be used to set data from a source object, taking\n\t * into account the ability to use nested objects as a source\n\t *  @param {string|int|function} mSource The data source for the object\n\t *  @returns {function} Data set function\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnSetObjectDataFn( mSource )\n\t{\n\t\tif ( $.isPlainObject( mSource ) )\n\t\t{\n\t\t\t/* Unlike get, only the underscore (global) option is used for for\n\t\t\t * setting data since we don't know the type here. This is why an object\n\t\t\t * option is not documented for `mData` (which is read/write), but it is\n\t\t\t * for `mRender` which is read only.\n\t\t\t */\n\t\t\treturn _fnSetObjectDataFn( mSource._ );\n\t\t}\n\t\telse if ( mSource === null )\n\t\t{\n\t\t\t/* Nothing to do when the data source is null */\n\t\t\treturn function () {};\n\t\t}\n\t\telse if ( typeof mSource === 'function' )\n\t\t{\n\t\t\treturn function (data, val, meta) {\n\t\t\t\tmSource( data, 'set', val, meta );\n\t\t\t};\n\t\t}\n\t\telse if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||\n\t\t\t      mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )\n\t\t{\n\t\t\t/* Like the get, we need to get data from a nested object */\n\t\t\tvar setData = function (data, val, src) {\n\t\t\t\tvar a = _fnSplitObjNotation( src ), b;\n\t\t\t\tvar aLast = a[a.length-1];\n\t\t\t\tvar arrayNotation, funcNotation, o, innerSrc;\n\t\n\t\t\t\tfor ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )\n\t\t\t\t{\n\t\t\t\t\t// Check if we are dealing with an array notation request\n\t\t\t\t\tarrayNotation = a[i].match(__reArray);\n\t\t\t\t\tfuncNotation = a[i].match(__reFn);\n\t\n\t\t\t\t\tif ( arrayNotation )\n\t\t\t\t\t{\n\t\t\t\t\t\ta[i] = a[i].replace(__reArray, '');\n\t\t\t\t\t\tdata[ a[i] ] = [];\n\t\n\t\t\t\t\t\t// Get the remainder of the nested object to set so we can recurse\n\t\t\t\t\t\tb = a.slice();\n\t\t\t\t\t\tb.splice( 0, i+1 );\n\t\t\t\t\t\tinnerSrc = b.join('.');\n\t\n\t\t\t\t\t\t// Traverse each entry in the array setting the properties requested\n\t\t\t\t\t\tif ( $.isArray( val ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor ( var j=0, jLen=val.length ; j<jLen ; j++ )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\to = {};\n\t\t\t\t\t\t\t\tsetData( o, val[j], innerSrc );\n\t\t\t\t\t\t\t\tdata[ a[i] ].push( o );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// We've been asked to save data to an array, but it\n\t\t\t\t\t\t\t// isn't array data to be saved. Best that can be done\n\t\t\t\t\t\t\t// is to just save the value.\n\t\t\t\t\t\t\tdata[ a[i] ] = val;\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t// The inner call to setData has already traversed through the remainder\n\t\t\t\t\t\t// of the source and has set the data, thus we can exit here\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( funcNotation )\n\t\t\t\t\t{\n\t\t\t\t\t\t// Function call\n\t\t\t\t\t\ta[i] = a[i].replace(__reFn, '');\n\t\t\t\t\t\tdata = data[ a[i] ]( val );\n\t\t\t\t\t}\n\t\n\t\t\t\t\t// If the nested object doesn't currently exist - since we are\n\t\t\t\t\t// trying to set the value - create it\n\t\t\t\t\tif ( data[ a[i] ] === null || data[ a[i] ] === undefined )\n\t\t\t\t\t{\n\t\t\t\t\t\tdata[ a[i] ] = {};\n\t\t\t\t\t}\n\t\t\t\t\tdata = data[ a[i] ];\n\t\t\t\t}\n\t\n\t\t\t\t// Last item in the input - i.e, the actual set\n\t\t\t\tif ( aLast.match(__reFn ) )\n\t\t\t\t{\n\t\t\t\t\t// Function call\n\t\t\t\t\tdata = data[ aLast.replace(__reFn, '') ]( val );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// If array notation is used, we just want to strip it and use the property name\n\t\t\t\t\t// and assign the value. If it isn't used, then we get the result we want anyway\n\t\t\t\t\tdata[ aLast.replace(__reArray, '') ] = val;\n\t\t\t\t}\n\t\t\t};\n\t\n\t\t\treturn function (data, val) { // meta is also passed in, but not used\n\t\t\t\treturn setData( data, val, mSource );\n\t\t\t};\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Array or flat object mapping */\n\t\t\treturn function (data, val) { // meta is also passed in, but not used\n\t\t\t\tdata[mSource] = val;\n\t\t\t};\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Return an array with the full table data\n\t *  @param {object} oSettings dataTables settings object\n\t *  @returns array {array} aData Master data array\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnGetDataMaster ( settings )\n\t{\n\t\treturn _pluck( settings.aoData, '_aData' );\n\t}\n\t\n\t\n\t/**\n\t * Nuke the table\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnClearTable( settings )\n\t{\n\t\tsettings.aoData.length = 0;\n\t\tsettings.aiDisplayMaster.length = 0;\n\t\tsettings.aiDisplay.length = 0;\n\t\tsettings.aIds = {};\n\t}\n\t\n\t\n\t /**\n\t * Take an array of integers (index array) and remove a target integer (value - not\n\t * the key!)\n\t *  @param {array} a Index array to target\n\t *  @param {int} iTarget value to find\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnDeleteIndex( a, iTarget, splice )\n\t{\n\t\tvar iTargetIndex = -1;\n\t\n\t\tfor ( var i=0, iLen=a.length ; i<iLen ; i++ )\n\t\t{\n\t\t\tif ( a[i] == iTarget )\n\t\t\t{\n\t\t\t\tiTargetIndex = i;\n\t\t\t}\n\t\t\telse if ( a[i] > iTarget )\n\t\t\t{\n\t\t\t\ta[i]--;\n\t\t\t}\n\t\t}\n\t\n\t\tif ( iTargetIndex != -1 && splice === undefined )\n\t\t{\n\t\t\ta.splice( iTargetIndex, 1 );\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Mark cached data as invalid such that a re-read of the data will occur when\n\t * the cached data is next requested. Also update from the data source object.\n\t *\n\t * @param {object} settings DataTables settings object\n\t * @param {int}    rowIdx   Row index to invalidate\n\t * @param {string} [src]    Source to invalidate from: undefined, 'auto', 'dom'\n\t *     or 'data'\n\t * @param {int}    [colIdx] Column index to invalidate. If undefined the whole\n\t *     row will be invalidated\n\t * @memberof DataTable#oApi\n\t *\n\t * @todo For the modularisation of v1.11 this will need to become a callback, so\n\t *   the sort and filter methods can subscribe to it. That will required\n\t *   initialisation options for sorting, which is why it is not already baked in\n\t */\n\tfunction _fnInvalidate( settings, rowIdx, src, colIdx )\n\t{\n\t\tvar row = settings.aoData[ rowIdx ];\n\t\tvar i, ien;\n\t\tvar cellWrite = function ( cell, col ) {\n\t\t\t// This is very frustrating, but in IE if you just write directly\n\t\t\t// to innerHTML, and elements that are overwritten are GC'ed,\n\t\t\t// even if there is a reference to them elsewhere\n\t\t\twhile ( cell.childNodes.length ) {\n\t\t\t\tcell.removeChild( cell.firstChild );\n\t\t\t}\n\t\n\t\t\tcell.innerHTML = _fnGetCellData( settings, rowIdx, col, 'display' );\n\t\t};\n\t\n\t\t// Are we reading last data from DOM or the data object?\n\t\tif ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) {\n\t\t\t// Read the data from the DOM\n\t\t\trow._aData = _fnGetRowElements(\n\t\t\t\t\tsettings, row, colIdx, colIdx === undefined ? undefined : row._aData\n\t\t\t\t)\n\t\t\t\t.data;\n\t\t}\n\t\telse {\n\t\t\t// Reading from data object, update the DOM\n\t\t\tvar cells = row.anCells;\n\t\n\t\t\tif ( cells ) {\n\t\t\t\tif ( colIdx !== undefined ) {\n\t\t\t\t\tcellWrite( cells[colIdx], colIdx );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor ( i=0, ien=cells.length ; i<ien ; i++ ) {\n\t\t\t\t\t\tcellWrite( cells[i], i );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t// For both row and cell invalidation, the cached data for sorting and\n\t\t// filtering is nulled out\n\t\trow._aSortData = null;\n\t\trow._aFilterData = null;\n\t\n\t\t// Invalidate the type for a specific column (if given) or all columns since\n\t\t// the data might have changed\n\t\tvar cols = settings.aoColumns;\n\t\tif ( colIdx !== undefined ) {\n\t\t\tcols[ colIdx ].sType = null;\n\t\t}\n\t\telse {\n\t\t\tfor ( i=0, ien=cols.length ; i<ien ; i++ ) {\n\t\t\t\tcols[i].sType = null;\n\t\t\t}\n\t\n\t\t\t// Update DataTables special `DT_*` attributes for the row\n\t\t\t_fnRowAttributes( settings, row );\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Build a data source object from an HTML row, reading the contents of the\n\t * cells that are in the row.\n\t *\n\t * @param {object} settings DataTables settings object\n\t * @param {node|object} TR element from which to read data or existing row\n\t *   object from which to re-read the data from the cells\n\t * @param {int} [colIdx] Optional column index\n\t * @param {array|object} [d] Data source object. If `colIdx` is given then this\n\t *   parameter should also be given and will be used to write the data into.\n\t *   Only the column in question will be written\n\t * @returns {object} Object with two parameters: `data` the data read, in\n\t *   document order, and `cells` and array of nodes (they can be useful to the\n\t *   caller, so rather than needing a second traversal to get them, just return\n\t *   them from here).\n\t * @memberof DataTable#oApi\n\t */\n\tfunction _fnGetRowElements( settings, row, colIdx, d )\n\t{\n\t\tvar\n\t\t\ttds = [],\n\t\t\ttd = row.firstChild,\n\t\t\tname, col, o, i=0, contents,\n\t\t\tcolumns = settings.aoColumns,\n\t\t\tobjectRead = settings._rowReadObject;\n\t\n\t\t// Allow the data object to be passed in, or construct\n\t\td = d !== undefined ?\n\t\t\td :\n\t\t\tobjectRead ?\n\t\t\t\t{} :\n\t\t\t\t[];\n\t\n\t\tvar attr = function ( str, td  ) {\n\t\t\tif ( typeof str === 'string' ) {\n\t\t\t\tvar idx = str.indexOf('@');\n\t\n\t\t\t\tif ( idx !== -1 ) {\n\t\t\t\t\tvar attr = str.substring( idx+1 );\n\t\t\t\t\tvar setter = _fnSetObjectDataFn( str );\n\t\t\t\t\tsetter( d, td.getAttribute( attr ) );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\n\t\t// Read data from a cell and store into the data object\n\t\tvar cellProcess = function ( cell ) {\n\t\t\tif ( colIdx === undefined || colIdx === i ) {\n\t\t\t\tcol = columns[i];\n\t\t\t\tcontents = $.trim(cell.innerHTML);\n\t\n\t\t\t\tif ( col && col._bAttrSrc ) {\n\t\t\t\t\tvar setter = _fnSetObjectDataFn( col.mData._ );\n\t\t\t\t\tsetter( d, contents );\n\t\n\t\t\t\t\tattr( col.mData.sort, cell );\n\t\t\t\t\tattr( col.mData.type, cell );\n\t\t\t\t\tattr( col.mData.filter, cell );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Depending on the `data` option for the columns the data can\n\t\t\t\t\t// be read to either an object or an array.\n\t\t\t\t\tif ( objectRead ) {\n\t\t\t\t\t\tif ( ! col._setter ) {\n\t\t\t\t\t\t\t// Cache the setter function\n\t\t\t\t\t\t\tcol._setter = _fnSetObjectDataFn( col.mData );\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcol._setter( d, contents );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\td[i] = contents;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\ti++;\n\t\t};\n\t\n\t\tif ( td ) {\n\t\t\t// `tr` element was passed in\n\t\t\twhile ( td ) {\n\t\t\t\tname = td.nodeName.toUpperCase();\n\t\n\t\t\t\tif ( name == \"TD\" || name == \"TH\" ) {\n\t\t\t\t\tcellProcess( td );\n\t\t\t\t\ttds.push( td );\n\t\t\t\t}\n\t\n\t\t\t\ttd = td.nextSibling;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// Existing row object passed in\n\t\t\ttds = row.anCells;\n\t\n\t\t\tfor ( var j=0, jen=tds.length ; j<jen ; j++ ) {\n\t\t\t\tcellProcess( tds[j] );\n\t\t\t}\n\t\t}\n\t\n\t\t// Read the ID from the DOM if present\n\t\tvar rowNode = row.firstChild ? row : row.nTr;\n\t\n\t\tif ( rowNode ) {\n\t\t\tvar id = rowNode.getAttribute( 'id' );\n\t\n\t\t\tif ( id ) {\n\t\t\t\t_fnSetObjectDataFn( settings.rowId )( d, id );\n\t\t\t}\n\t\t}\n\t\n\t\treturn {\n\t\t\tdata: d,\n\t\t\tcells: tds\n\t\t};\n\t}\n\t/**\n\t * Create a new TR element (and it's TD children) for a row\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {int} iRow Row to consider\n\t *  @param {node} [nTrIn] TR element to add to the table - optional. If not given,\n\t *    DataTables will create a row automatically\n\t *  @param {array} [anTds] Array of TD|TH elements for the row - must be given\n\t *    if nTr is.\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnCreateTr ( oSettings, iRow, nTrIn, anTds )\n\t{\n\t\tvar\n\t\t\trow = oSettings.aoData[iRow],\n\t\t\trowData = row._aData,\n\t\t\tcells = [],\n\t\t\tnTr, nTd, oCol,\n\t\t\ti, iLen;\n\t\n\t\tif ( row.nTr === null )\n\t\t{\n\t\t\tnTr = nTrIn || document.createElement('tr');\n\t\n\t\t\trow.nTr = nTr;\n\t\t\trow.anCells = cells;\n\t\n\t\t\t/* Use a private property on the node to allow reserve mapping from the node\n\t\t\t * to the aoData array for fast look up\n\t\t\t */\n\t\t\tnTr._DT_RowIndex = iRow;\n\t\n\t\t\t/* Special parameters can be given by the data source to be used on the row */\n\t\t\t_fnRowAttributes( oSettings, row );\n\t\n\t\t\t/* Process each column */\n\t\t\tfor ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )\n\t\t\t{\n\t\t\t\toCol = oSettings.aoColumns[i];\n\t\n\t\t\t\tnTd = nTrIn ? anTds[i] : document.createElement( oCol.sCellType );\n\t\t\t\tnTd._DT_CellIndex = {\n\t\t\t\t\trow: iRow,\n\t\t\t\t\tcolumn: i\n\t\t\t\t};\n\t\t\t\t\n\t\t\t\tcells.push( nTd );\n\t\n\t\t\t\t// Need to create the HTML if new, or if a rendering function is defined\n\t\t\t\tif ( (!nTrIn || oCol.mRender || oCol.mData !== i) &&\n\t\t\t\t\t (!$.isPlainObject(oCol.mData) || oCol.mData._ !== i+'.display')\n\t\t\t\t) {\n\t\t\t\t\tnTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );\n\t\t\t\t}\n\t\n\t\t\t\t/* Add user defined class */\n\t\t\t\tif ( oCol.sClass )\n\t\t\t\t{\n\t\t\t\t\tnTd.className += ' '+oCol.sClass;\n\t\t\t\t}\n\t\n\t\t\t\t// Visibility - add or remove as required\n\t\t\t\tif ( oCol.bVisible && ! nTrIn )\n\t\t\t\t{\n\t\t\t\t\tnTr.appendChild( nTd );\n\t\t\t\t}\n\t\t\t\telse if ( ! oCol.bVisible && nTrIn )\n\t\t\t\t{\n\t\t\t\t\tnTd.parentNode.removeChild( nTd );\n\t\t\t\t}\n\t\n\t\t\t\tif ( oCol.fnCreatedCell )\n\t\t\t\t{\n\t\t\t\t\toCol.fnCreatedCell.call( oSettings.oInstance,\n\t\t\t\t\t\tnTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t_fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow, cells] );\n\t\t}\n\t\n\t\t// Remove once webkit bug 131819 and Chromium bug 365619 have been resolved\n\t\t// and deployed\n\t\trow.nTr.setAttribute( 'role', 'row' );\n\t}\n\t\n\t\n\t/**\n\t * Add attributes to a row based on the special `DT_*` parameters in a data\n\t * source object.\n\t *  @param {object} settings DataTables settings object\n\t *  @param {object} DataTables row object for the row to be modified\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnRowAttributes( settings, row )\n\t{\n\t\tvar tr = row.nTr;\n\t\tvar data = row._aData;\n\t\n\t\tif ( tr ) {\n\t\t\tvar id = settings.rowIdFn( data );\n\t\n\t\t\tif ( id ) {\n\t\t\t\ttr.id = id;\n\t\t\t}\n\t\n\t\t\tif ( data.DT_RowClass ) {\n\t\t\t\t// Remove any classes added by DT_RowClass before\n\t\t\t\tvar a = data.DT_RowClass.split(' ');\n\t\t\t\trow.__rowc = row.__rowc ?\n\t\t\t\t\t_unique( row.__rowc.concat( a ) ) :\n\t\t\t\t\ta;\n\t\n\t\t\t\t$(tr)\n\t\t\t\t\t.removeClass( row.__rowc.join(' ') )\n\t\t\t\t\t.addClass( data.DT_RowClass );\n\t\t\t}\n\t\n\t\t\tif ( data.DT_RowAttr ) {\n\t\t\t\t$(tr).attr( data.DT_RowAttr );\n\t\t\t}\n\t\n\t\t\tif ( data.DT_RowData ) {\n\t\t\t\t$(tr).data( data.DT_RowData );\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Create the HTML header for the table\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnBuildHead( oSettings )\n\t{\n\t\tvar i, ien, cell, row, column;\n\t\tvar thead = oSettings.nTHead;\n\t\tvar tfoot = oSettings.nTFoot;\n\t\tvar createHeader = $('th, td', thead).length === 0;\n\t\tvar classes = oSettings.oClasses;\n\t\tvar columns = oSettings.aoColumns;\n\t\n\t\tif ( createHeader ) {\n\t\t\trow = $('<tr/>').appendTo( thead );\n\t\t}\n\t\n\t\tfor ( i=0, ien=columns.length ; i<ien ; i++ ) {\n\t\t\tcolumn = columns[i];\n\t\t\tcell = $( column.nTh ).addClass( column.sClass );\n\t\n\t\t\tif ( createHeader ) {\n\t\t\t\tcell.appendTo( row );\n\t\t\t}\n\t\n\t\t\t// 1.11 move into sorting\n\t\t\tif ( oSettings.oFeatures.bSort ) {\n\t\t\t\tcell.addClass( column.sSortingClass );\n\t\n\t\t\t\tif ( column.bSortable !== false ) {\n\t\t\t\t\tcell\n\t\t\t\t\t\t.attr( 'tabindex', oSettings.iTabIndex )\n\t\t\t\t\t\t.attr( 'aria-controls', oSettings.sTableId );\n\t\n\t\t\t\t\t_fnSortAttachListener( oSettings, column.nTh, i );\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tif ( column.sTitle != cell[0].innerHTML ) {\n\t\t\t\tcell.html( column.sTitle );\n\t\t\t}\n\t\n\t\t\t_fnRenderer( oSettings, 'header' )(\n\t\t\t\toSettings, cell, column, classes\n\t\t\t);\n\t\t}\n\t\n\t\tif ( createHeader ) {\n\t\t\t_fnDetectHeader( oSettings.aoHeader, thead );\n\t\t}\n\t\t\n\t\t/* ARIA role for the rows */\n\t \t$(thead).find('>tr').attr('role', 'row');\n\t\n\t\t/* Deal with the footer - add classes if required */\n\t\t$(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH );\n\t\t$(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH );\n\t\n\t\t// Cache the footer cells. Note that we only take the cells from the first\n\t\t// row in the footer. If there is more than one row the user wants to\n\t\t// interact with, they need to use the table().foot() method. Note also this\n\t\t// allows cells to be used for multiple columns using colspan\n\t\tif ( tfoot !== null ) {\n\t\t\tvar cells = oSettings.aoFooter[0];\n\t\n\t\t\tfor ( i=0, ien=cells.length ; i<ien ; i++ ) {\n\t\t\t\tcolumn = columns[i];\n\t\t\t\tcolumn.nTf = cells[i].cell;\n\t\n\t\t\t\tif ( column.sClass ) {\n\t\t\t\t\t$(column.nTf).addClass( column.sClass );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Draw the header (or footer) element based on the column visibility states. The\n\t * methodology here is to use the layout array from _fnDetectHeader, modified for\n\t * the instantaneous column visibility, to construct the new layout. The grid is\n\t * traversed over cell at a time in a rows x columns grid fashion, although each\n\t * cell insert can cover multiple elements in the grid - which is tracks using the\n\t * aApplied array. Cell inserts in the grid will only occur where there isn't\n\t * already a cell in that position.\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param array {objects} aoSource Layout array from _fnDetectHeader\n\t *  @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnDrawHead( oSettings, aoSource, bIncludeHidden )\n\t{\n\t\tvar i, iLen, j, jLen, k, kLen, n, nLocalTr;\n\t\tvar aoLocal = [];\n\t\tvar aApplied = [];\n\t\tvar iColumns = oSettings.aoColumns.length;\n\t\tvar iRowspan, iColspan;\n\t\n\t\tif ( ! aoSource )\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\n\t\tif (  bIncludeHidden === undefined )\n\t\t{\n\t\t\tbIncludeHidden = false;\n\t\t}\n\t\n\t\t/* Make a copy of the master layout array, but without the visible columns in it */\n\t\tfor ( i=0, iLen=aoSource.length ; i<iLen ; i++ )\n\t\t{\n\t\t\taoLocal[i] = aoSource[i].slice();\n\t\t\taoLocal[i].nTr = aoSource[i].nTr;\n\t\n\t\t\t/* Remove any columns which are currently hidden */\n\t\t\tfor ( j=iColumns-1 ; j>=0 ; j-- )\n\t\t\t{\n\t\t\t\tif ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )\n\t\t\t\t{\n\t\t\t\t\taoLocal[i].splice( j, 1 );\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t/* Prep the applied array - it needs an element for each row */\n\t\t\taApplied.push( [] );\n\t\t}\n\t\n\t\tfor ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )\n\t\t{\n\t\t\tnLocalTr = aoLocal[i].nTr;\n\t\n\t\t\t/* All cells are going to be replaced, so empty out the row */\n\t\t\tif ( nLocalTr )\n\t\t\t{\n\t\t\t\twhile( (n = nLocalTr.firstChild) )\n\t\t\t\t{\n\t\t\t\t\tnLocalTr.removeChild( n );\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tfor ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )\n\t\t\t{\n\t\t\t\tiRowspan = 1;\n\t\t\t\tiColspan = 1;\n\t\n\t\t\t\t/* Check to see if there is already a cell (row/colspan) covering our target\n\t\t\t\t * insert point. If there is, then there is nothing to do.\n\t\t\t\t */\n\t\t\t\tif ( aApplied[i][j] === undefined )\n\t\t\t\t{\n\t\t\t\t\tnLocalTr.appendChild( aoLocal[i][j].cell );\n\t\t\t\t\taApplied[i][j] = 1;\n\t\n\t\t\t\t\t/* Expand the cell to cover as many rows as needed */\n\t\t\t\t\twhile ( aoLocal[i+iRowspan] !== undefined &&\n\t\t\t\t\t        aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )\n\t\t\t\t\t{\n\t\t\t\t\t\taApplied[i+iRowspan][j] = 1;\n\t\t\t\t\t\tiRowspan++;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/* Expand the cell to cover as many columns as needed */\n\t\t\t\t\twhile ( aoLocal[i][j+iColspan] !== undefined &&\n\t\t\t\t\t        aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )\n\t\t\t\t\t{\n\t\t\t\t\t\t/* Must update the applied array over the rows for the columns */\n\t\t\t\t\t\tfor ( k=0 ; k<iRowspan ; k++ )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taApplied[i+k][j+iColspan] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tiColspan++;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/* Do the actual expansion in the DOM */\n\t\t\t\t\t$(aoLocal[i][j].cell)\n\t\t\t\t\t\t.attr('rowspan', iRowspan)\n\t\t\t\t\t\t.attr('colspan', iColspan);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Insert the required TR nodes into the table for display\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnDraw( oSettings )\n\t{\n\t\t/* Provide a pre-callback function which can be used to cancel the draw is false is returned */\n\t\tvar aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );\n\t\tif ( $.inArray( false, aPreDraw ) !== -1 )\n\t\t{\n\t\t\t_fnProcessingDisplay( oSettings, false );\n\t\t\treturn;\n\t\t}\n\t\n\t\tvar i, iLen, n;\n\t\tvar anRows = [];\n\t\tvar iRowCount = 0;\n\t\tvar asStripeClasses = oSettings.asStripeClasses;\n\t\tvar iStripes = asStripeClasses.length;\n\t\tvar iOpenRows = oSettings.aoOpenRows.length;\n\t\tvar oLang = oSettings.oLanguage;\n\t\tvar iInitDisplayStart = oSettings.iInitDisplayStart;\n\t\tvar bServerSide = _fnDataSource( oSettings ) == 'ssp';\n\t\tvar aiDisplay = oSettings.aiDisplay;\n\t\n\t\toSettings.bDrawing = true;\n\t\n\t\t/* Check and see if we have an initial draw position from state saving */\n\t\tif ( iInitDisplayStart !== undefined && iInitDisplayStart !== -1 )\n\t\t{\n\t\t\toSettings._iDisplayStart = bServerSide ?\n\t\t\t\tiInitDisplayStart :\n\t\t\t\tiInitDisplayStart >= oSettings.fnRecordsDisplay() ?\n\t\t\t\t\t0 :\n\t\t\t\t\tiInitDisplayStart;\n\t\n\t\t\toSettings.iInitDisplayStart = -1;\n\t\t}\n\t\n\t\tvar iDisplayStart = oSettings._iDisplayStart;\n\t\tvar iDisplayEnd = oSettings.fnDisplayEnd();\n\t\n\t\t/* Server-side processing draw intercept */\n\t\tif ( oSettings.bDeferLoading )\n\t\t{\n\t\t\toSettings.bDeferLoading = false;\n\t\t\toSettings.iDraw++;\n\t\t\t_fnProcessingDisplay( oSettings, false );\n\t\t}\n\t\telse if ( !bServerSide )\n\t\t{\n\t\t\toSettings.iDraw++;\n\t\t}\n\t\telse if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\n\t\tif ( aiDisplay.length !== 0 )\n\t\t{\n\t\t\tvar iStart = bServerSide ? 0 : iDisplayStart;\n\t\t\tvar iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;\n\t\n\t\t\tfor ( var j=iStart ; j<iEnd ; j++ )\n\t\t\t{\n\t\t\t\tvar iDataIndex = aiDisplay[j];\n\t\t\t\tvar aoData = oSettings.aoData[ iDataIndex ];\n\t\t\t\tif ( aoData.nTr === null )\n\t\t\t\t{\n\t\t\t\t\t_fnCreateTr( oSettings, iDataIndex );\n\t\t\t\t}\n\t\n\t\t\t\tvar nRow = aoData.nTr;\n\t\n\t\t\t\t/* Remove the old striping classes and then add the new one */\n\t\t\t\tif ( iStripes !== 0 )\n\t\t\t\t{\n\t\t\t\t\tvar sStripe = asStripeClasses[ iRowCount % iStripes ];\n\t\t\t\t\tif ( aoData._sRowStripe != sStripe )\n\t\t\t\t\t{\n\t\t\t\t\t\t$(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );\n\t\t\t\t\t\taoData._sRowStripe = sStripe;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t// Row callback functions - might want to manipulate the row\n\t\t\t\t// iRowCount and j are not currently documented. Are they at all\n\t\t\t\t// useful?\n\t\t\t\t_fnCallbackFire( oSettings, 'aoRowCallback', null,\n\t\t\t\t\t[nRow, aoData._aData, iRowCount, j, iDataIndex] );\n\t\n\t\t\t\tanRows.push( nRow );\n\t\t\t\tiRowCount++;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Table is empty - create a row with an empty message in it */\n\t\t\tvar sZero = oLang.sZeroRecords;\n\t\t\tif ( oSettings.iDraw == 1 &&  _fnDataSource( oSettings ) == 'ajax' )\n\t\t\t{\n\t\t\t\tsZero = oLang.sLoadingRecords;\n\t\t\t}\n\t\t\telse if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )\n\t\t\t{\n\t\t\t\tsZero = oLang.sEmptyTable;\n\t\t\t}\n\t\n\t\t\tanRows[ 0 ] = $( '<tr/>', { 'class': iStripes ? asStripeClasses[0] : '' } )\n\t\t\t\t.append( $('<td />', {\n\t\t\t\t\t'valign':  'top',\n\t\t\t\t\t'colSpan': _fnVisbleColumns( oSettings ),\n\t\t\t\t\t'class':   oSettings.oClasses.sRowEmpty\n\t\t\t\t} ).html( sZero ) )[0];\n\t\t}\n\t\n\t\t/* Header and footer callbacks */\n\t\t_fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],\n\t\t\t_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );\n\t\n\t\t_fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],\n\t\t\t_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );\n\t\n\t\tvar body = $(oSettings.nTBody);\n\t\n\t\tbody.children().detach();\n\t\tbody.append( $(anRows) );\n\t\n\t\t/* Call all required callback functions for the end of a draw */\n\t\t_fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );\n\t\n\t\t/* Draw is complete, sorting and filtering must be as well */\n\t\toSettings.bSorted = false;\n\t\toSettings.bFiltered = false;\n\t\toSettings.bDrawing = false;\n\t}\n\t\n\t\n\t/**\n\t * Redraw the table - taking account of the various features which are enabled\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {boolean} [holdPosition] Keep the current paging position. By default\n\t *    the paging is reset to the first page\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnReDraw( settings, holdPosition )\n\t{\n\t\tvar\n\t\t\tfeatures = settings.oFeatures,\n\t\t\tsort     = features.bSort,\n\t\t\tfilter   = features.bFilter;\n\t\n\t\tif ( sort ) {\n\t\t\t_fnSort( settings );\n\t\t}\n\t\n\t\tif ( filter ) {\n\t\t\t_fnFilterComplete( settings, settings.oPreviousSearch );\n\t\t}\n\t\telse {\n\t\t\t// No filtering, so we want to just use the display master\n\t\t\tsettings.aiDisplay = settings.aiDisplayMaster.slice();\n\t\t}\n\t\n\t\tif ( holdPosition !== true ) {\n\t\t\tsettings._iDisplayStart = 0;\n\t\t}\n\t\n\t\t// Let any modules know about the draw hold position state (used by\n\t\t// scrolling internally)\n\t\tsettings._drawHold = holdPosition;\n\t\n\t\t_fnDraw( settings );\n\t\n\t\tsettings._drawHold = false;\n\t}\n\t\n\t\n\t/**\n\t * Add the options to the page HTML for the table\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnAddOptionsHtml ( oSettings )\n\t{\n\t\tvar classes = oSettings.oClasses;\n\t\tvar table = $(oSettings.nTable);\n\t\tvar holding = $('<div/>').insertBefore( table ); // Holding element for speed\n\t\tvar features = oSettings.oFeatures;\n\t\n\t\t// All DataTables are wrapped in a div\n\t\tvar insert = $('<div/>', {\n\t\t\tid:      oSettings.sTableId+'_wrapper',\n\t\t\t'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter)\n\t\t} );\n\t\n\t\toSettings.nHolding = holding[0];\n\t\toSettings.nTableWrapper = insert[0];\n\t\toSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;\n\t\n\t\t/* Loop over the user set positioning and place the elements as needed */\n\t\tvar aDom = oSettings.sDom.split('');\n\t\tvar featureNode, cOption, nNewNode, cNext, sAttr, j;\n\t\tfor ( var i=0 ; i<aDom.length ; i++ )\n\t\t{\n\t\t\tfeatureNode = null;\n\t\t\tcOption = aDom[i];\n\t\n\t\t\tif ( cOption == '<' )\n\t\t\t{\n\t\t\t\t/* New container div */\n\t\t\t\tnNewNode = $('<div/>')[0];\n\t\n\t\t\t\t/* Check to see if we should append an id and/or a class name to the container */\n\t\t\t\tcNext = aDom[i+1];\n\t\t\t\tif ( cNext == \"'\" || cNext == '\"' )\n\t\t\t\t{\n\t\t\t\t\tsAttr = \"\";\n\t\t\t\t\tj = 2;\n\t\t\t\t\twhile ( aDom[i+j] != cNext )\n\t\t\t\t\t{\n\t\t\t\t\t\tsAttr += aDom[i+j];\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/* Replace jQuery UI constants @todo depreciated */\n\t\t\t\t\tif ( sAttr == \"H\" )\n\t\t\t\t\t{\n\t\t\t\t\t\tsAttr = classes.sJUIHeader;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( sAttr == \"F\" )\n\t\t\t\t\t{\n\t\t\t\t\t\tsAttr = classes.sJUIFooter;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/* The attribute can be in the format of \"#id.class\", \"#id\" or \"class\" This logic\n\t\t\t\t\t * breaks the string into parts and applies them as needed\n\t\t\t\t\t */\n\t\t\t\t\tif ( sAttr.indexOf('.') != -1 )\n\t\t\t\t\t{\n\t\t\t\t\t\tvar aSplit = sAttr.split('.');\n\t\t\t\t\t\tnNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);\n\t\t\t\t\t\tnNewNode.className = aSplit[1];\n\t\t\t\t\t}\n\t\t\t\t\telse if ( sAttr.charAt(0) == \"#\" )\n\t\t\t\t\t{\n\t\t\t\t\t\tnNewNode.id = sAttr.substr(1, sAttr.length-1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnNewNode.className = sAttr;\n\t\t\t\t\t}\n\t\n\t\t\t\t\ti += j; /* Move along the position array */\n\t\t\t\t}\n\t\n\t\t\t\tinsert.append( nNewNode );\n\t\t\t\tinsert = $(nNewNode);\n\t\t\t}\n\t\t\telse if ( cOption == '>' )\n\t\t\t{\n\t\t\t\t/* End container div */\n\t\t\t\tinsert = insert.parent();\n\t\t\t}\n\t\t\t// @todo Move options into their own plugins?\n\t\t\telse if ( cOption == 'l' && features.bPaginate && features.bLengthChange )\n\t\t\t{\n\t\t\t\t/* Length */\n\t\t\t\tfeatureNode = _fnFeatureHtmlLength( oSettings );\n\t\t\t}\n\t\t\telse if ( cOption == 'f' && features.bFilter )\n\t\t\t{\n\t\t\t\t/* Filter */\n\t\t\t\tfeatureNode = _fnFeatureHtmlFilter( oSettings );\n\t\t\t}\n\t\t\telse if ( cOption == 'r' && features.bProcessing )\n\t\t\t{\n\t\t\t\t/* pRocessing */\n\t\t\t\tfeatureNode = _fnFeatureHtmlProcessing( oSettings );\n\t\t\t}\n\t\t\telse if ( cOption == 't' )\n\t\t\t{\n\t\t\t\t/* Table */\n\t\t\t\tfeatureNode = _fnFeatureHtmlTable( oSettings );\n\t\t\t}\n\t\t\telse if ( cOption ==  'i' && features.bInfo )\n\t\t\t{\n\t\t\t\t/* Info */\n\t\t\t\tfeatureNode = _fnFeatureHtmlInfo( oSettings );\n\t\t\t}\n\t\t\telse if ( cOption == 'p' && features.bPaginate )\n\t\t\t{\n\t\t\t\t/* Pagination */\n\t\t\t\tfeatureNode = _fnFeatureHtmlPaginate( oSettings );\n\t\t\t}\n\t\t\telse if ( DataTable.ext.feature.length !== 0 )\n\t\t\t{\n\t\t\t\t/* Plug-in features */\n\t\t\t\tvar aoFeatures = DataTable.ext.feature;\n\t\t\t\tfor ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ )\n\t\t\t\t{\n\t\t\t\t\tif ( cOption == aoFeatures[k].cFeature )\n\t\t\t\t\t{\n\t\t\t\t\t\tfeatureNode = aoFeatures[k].fnInit( oSettings );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t/* Add to the 2D features array */\n\t\t\tif ( featureNode )\n\t\t\t{\n\t\t\t\tvar aanFeatures = oSettings.aanFeatures;\n\t\n\t\t\t\tif ( ! aanFeatures[cOption] )\n\t\t\t\t{\n\t\t\t\t\taanFeatures[cOption] = [];\n\t\t\t\t}\n\t\n\t\t\t\taanFeatures[cOption].push( featureNode );\n\t\t\t\tinsert.append( featureNode );\n\t\t\t}\n\t\t}\n\t\n\t\t/* Built our DOM structure - replace the holding div with what we want */\n\t\tholding.replaceWith( insert );\n\t\toSettings.nHolding = null;\n\t}\n\t\n\t\n\t/**\n\t * Use the DOM source to create up an array of header cells. The idea here is to\n\t * create a layout grid (array) of rows x columns, which contains a reference\n\t * to the cell that that point in the grid (regardless of col/rowspan), such that\n\t * any column / row could be removed and the new grid constructed\n\t *  @param array {object} aLayout Array to store the calculated layout in\n\t *  @param {node} nThead The header/footer element for the table\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnDetectHeader ( aLayout, nThead )\n\t{\n\t\tvar nTrs = $(nThead).children('tr');\n\t\tvar nTr, nCell;\n\t\tvar i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;\n\t\tvar bUnique;\n\t\tvar fnShiftCol = function ( a, i, j ) {\n\t\t\tvar k = a[i];\n\t                while ( k[j] ) {\n\t\t\t\tj++;\n\t\t\t}\n\t\t\treturn j;\n\t\t};\n\t\n\t\taLayout.splice( 0, aLayout.length );\n\t\n\t\t/* We know how many rows there are in the layout - so prep it */\n\t\tfor ( i=0, iLen=nTrs.length ; i<iLen ; i++ )\n\t\t{\n\t\t\taLayout.push( [] );\n\t\t}\n\t\n\t\t/* Calculate a layout array */\n\t\tfor ( i=0, iLen=nTrs.length ; i<iLen ; i++ )\n\t\t{\n\t\t\tnTr = nTrs[i];\n\t\t\tiColumn = 0;\n\t\n\t\t\t/* For every cell in the row... */\n\t\t\tnCell = nTr.firstChild;\n\t\t\twhile ( nCell ) {\n\t\t\t\tif ( nCell.nodeName.toUpperCase() == \"TD\" ||\n\t\t\t\t     nCell.nodeName.toUpperCase() == \"TH\" )\n\t\t\t\t{\n\t\t\t\t\t/* Get the col and rowspan attributes from the DOM and sanitise them */\n\t\t\t\t\tiColspan = nCell.getAttribute('colspan') * 1;\n\t\t\t\t\tiRowspan = nCell.getAttribute('rowspan') * 1;\n\t\t\t\t\tiColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;\n\t\t\t\t\tiRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;\n\t\n\t\t\t\t\t/* There might be colspan cells already in this row, so shift our target\n\t\t\t\t\t * accordingly\n\t\t\t\t\t */\n\t\t\t\t\tiColShifted = fnShiftCol( aLayout, i, iColumn );\n\t\n\t\t\t\t\t/* Cache calculation for unique columns */\n\t\t\t\t\tbUnique = iColspan === 1 ? true : false;\n\t\n\t\t\t\t\t/* If there is col / rowspan, copy the information into the layout grid */\n\t\t\t\t\tfor ( l=0 ; l<iColspan ; l++ )\n\t\t\t\t\t{\n\t\t\t\t\t\tfor ( k=0 ; k<iRowspan ; k++ )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taLayout[i+k][iColShifted+l] = {\n\t\t\t\t\t\t\t\t\"cell\": nCell,\n\t\t\t\t\t\t\t\t\"unique\": bUnique\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\taLayout[i+k].nTr = nTr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnCell = nCell.nextSibling;\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Get an array of unique th elements, one for each column\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {node} nHeader automatically detect the layout from this node - optional\n\t *  @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional\n\t *  @returns array {node} aReturn list of unique th's\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnGetUniqueThs ( oSettings, nHeader, aLayout )\n\t{\n\t\tvar aReturn = [];\n\t\tif ( !aLayout )\n\t\t{\n\t\t\taLayout = oSettings.aoHeader;\n\t\t\tif ( nHeader )\n\t\t\t{\n\t\t\t\taLayout = [];\n\t\t\t\t_fnDetectHeader( aLayout, nHeader );\n\t\t\t}\n\t\t}\n\t\n\t\tfor ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )\n\t\t{\n\t\t\tfor ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )\n\t\t\t{\n\t\t\t\tif ( aLayout[i][j].unique &&\n\t\t\t\t\t (!aReturn[j] || !oSettings.bSortCellsTop) )\n\t\t\t\t{\n\t\t\t\t\taReturn[j] = aLayout[i][j].cell;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\treturn aReturn;\n\t}\n\t\n\t/**\n\t * Create an Ajax call based on the table's settings, taking into account that\n\t * parameters can have multiple forms, and backwards compatibility.\n\t *\n\t * @param {object} oSettings dataTables settings object\n\t * @param {array} data Data to send to the server, required by\n\t *     DataTables - may be augmented by developer callbacks\n\t * @param {function} fn Callback function to run when data is obtained\n\t */\n\tfunction _fnBuildAjax( oSettings, data, fn )\n\t{\n\t\t// Compatibility with 1.9-, allow fnServerData and event to manipulate\n\t\t_fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );\n\t\n\t\t// Convert to object based for 1.10+ if using the old array scheme which can\n\t\t// come from server-side processing or serverParams\n\t\tif ( data && $.isArray(data) ) {\n\t\t\tvar tmp = {};\n\t\t\tvar rbracket = /(.*?)\\[\\]$/;\n\t\n\t\t\t$.each( data, function (key, val) {\n\t\t\t\tvar match = val.name.match(rbracket);\n\t\n\t\t\t\tif ( match ) {\n\t\t\t\t\t// Support for arrays\n\t\t\t\t\tvar name = match[0];\n\t\n\t\t\t\t\tif ( ! tmp[ name ] ) {\n\t\t\t\t\t\ttmp[ name ] = [];\n\t\t\t\t\t}\n\t\t\t\t\ttmp[ name ].push( val.value );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttmp[val.name] = val.value;\n\t\t\t\t}\n\t\t\t} );\n\t\t\tdata = tmp;\n\t\t}\n\t\n\t\tvar ajaxData;\n\t\tvar ajax = oSettings.ajax;\n\t\tvar instance = oSettings.oInstance;\n\t\tvar callback = function ( json ) {\n\t\t\t_fnCallbackFire( oSettings, null, 'xhr', [oSettings, json, oSettings.jqXHR] );\n\t\t\tfn( json );\n\t\t};\n\t\n\t\tif ( $.isPlainObject( ajax ) && ajax.data )\n\t\t{\n\t\t\tajaxData = ajax.data;\n\t\n\t\t\tvar newData = typeof ajaxData === 'function' ?\n\t\t\t\tajaxData( data, oSettings ) :  // fn can manipulate data or return\n\t\t\t\tajaxData;                      // an object object or array to merge\n\t\n\t\t\t// If the function returned something, use that alone\n\t\t\tdata = typeof ajaxData === 'function' && newData ?\n\t\t\t\tnewData :\n\t\t\t\t$.extend( true, data, newData );\n\t\n\t\t\t// Remove the data property as we've resolved it already and don't want\n\t\t\t// jQuery to do it again (it is restored at the end of the function)\n\t\t\tdelete ajax.data;\n\t\t}\n\t\n\t\tvar baseAjax = {\n\t\t\t\"data\": data,\n\t\t\t\"success\": function (json) {\n\t\t\t\tvar error = json.error || json.sError;\n\t\t\t\tif ( error ) {\n\t\t\t\t\t_fnLog( oSettings, 0, error );\n\t\t\t\t}\n\t\n\t\t\t\toSettings.json = json;\n\t\t\t\tcallback( json );\n\t\t\t},\n\t\t\t\"dataType\": \"json\",\n\t\t\t\"cache\": false,\n\t\t\t\"type\": oSettings.sServerMethod,\n\t\t\t\"error\": function (xhr, error, thrown) {\n\t\t\t\tvar ret = _fnCallbackFire( oSettings, null, 'xhr', [oSettings, null, oSettings.jqXHR] );\n\t\n\t\t\t\tif ( $.inArray( true, ret ) === -1 ) {\n\t\t\t\t\tif ( error == \"parsererror\" ) {\n\t\t\t\t\t\t_fnLog( oSettings, 0, 'Invalid JSON response', 1 );\n\t\t\t\t\t}\n\t\t\t\t\telse if ( xhr.readyState === 4 ) {\n\t\t\t\t\t\t_fnLog( oSettings, 0, 'Ajax error', 7 );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t_fnProcessingDisplay( oSettings, false );\n\t\t\t}\n\t\t};\n\t\n\t\t// Store the data submitted for the API\n\t\toSettings.oAjaxData = data;\n\t\n\t\t// Allow plug-ins and external processes to modify the data\n\t\t_fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] );\n\t\n\t\tif ( oSettings.fnServerData )\n\t\t{\n\t\t\t// DataTables 1.9- compatibility\n\t\t\toSettings.fnServerData.call( instance,\n\t\t\t\toSettings.sAjaxSource,\n\t\t\t\t$.map( data, function (val, key) { // Need to convert back to 1.9 trad format\n\t\t\t\t\treturn { name: key, value: val };\n\t\t\t\t} ),\n\t\t\t\tcallback,\n\t\t\t\toSettings\n\t\t\t);\n\t\t}\n\t\telse if ( oSettings.sAjaxSource || typeof ajax === 'string' )\n\t\t{\n\t\t\t// DataTables 1.9- compatibility\n\t\t\toSettings.jqXHR = $.ajax( $.extend( baseAjax, {\n\t\t\t\turl: ajax || oSettings.sAjaxSource\n\t\t\t} ) );\n\t\t}\n\t\telse if ( typeof ajax === 'function' )\n\t\t{\n\t\t\t// Is a function - let the caller define what needs to be done\n\t\t\toSettings.jqXHR = ajax.call( instance, data, callback, oSettings );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Object to extend the base settings\n\t\t\toSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) );\n\t\n\t\t\t// Restore for next time around\n\t\t\tajax.data = ajaxData;\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Update the table using an Ajax call\n\t *  @param {object} settings dataTables settings object\n\t *  @returns {boolean} Block the table drawing or not\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnAjaxUpdate( settings )\n\t{\n\t\tif ( settings.bAjaxDataGet ) {\n\t\t\tsettings.iDraw++;\n\t\t\t_fnProcessingDisplay( settings, true );\n\t\n\t\t\t_fnBuildAjax(\n\t\t\t\tsettings,\n\t\t\t\t_fnAjaxParameters( settings ),\n\t\t\t\tfunction(json) {\n\t\t\t\t\t_fnAjaxUpdateDraw( settings, json );\n\t\t\t\t}\n\t\t\t);\n\t\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\t\n\t\n\t/**\n\t * Build up the parameters in an object needed for a server-side processing\n\t * request. Note that this is basically done twice, is different ways - a modern\n\t * method which is used by default in DataTables 1.10 which uses objects and\n\t * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if\n\t * the sAjaxSource option is used in the initialisation, or the legacyAjax\n\t * option is set.\n\t *  @param {object} oSettings dataTables settings object\n\t *  @returns {bool} block the table drawing or not\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnAjaxParameters( settings )\n\t{\n\t\tvar\n\t\t\tcolumns = settings.aoColumns,\n\t\t\tcolumnCount = columns.length,\n\t\t\tfeatures = settings.oFeatures,\n\t\t\tpreSearch = settings.oPreviousSearch,\n\t\t\tpreColSearch = settings.aoPreSearchCols,\n\t\t\ti, data = [], dataProp, column, columnSearch,\n\t\t\tsort = _fnSortFlatten( settings ),\n\t\t\tdisplayStart = settings._iDisplayStart,\n\t\t\tdisplayLength = features.bPaginate !== false ?\n\t\t\t\tsettings._iDisplayLength :\n\t\t\t\t-1;\n\t\n\t\tvar param = function ( name, value ) {\n\t\t\tdata.push( { 'name': name, 'value': value } );\n\t\t};\n\t\n\t\t// DataTables 1.9- compatible method\n\t\tparam( 'sEcho',          settings.iDraw );\n\t\tparam( 'iColumns',       columnCount );\n\t\tparam( 'sColumns',       _pluck( columns, 'sName' ).join(',') );\n\t\tparam( 'iDisplayStart',  displayStart );\n\t\tparam( 'iDisplayLength', displayLength );\n\t\n\t\t// DataTables 1.10+ method\n\t\tvar d = {\n\t\t\tdraw:    settings.iDraw,\n\t\t\tcolumns: [],\n\t\t\torder:   [],\n\t\t\tstart:   displayStart,\n\t\t\tlength:  displayLength,\n\t\t\tsearch:  {\n\t\t\t\tvalue: preSearch.sSearch,\n\t\t\t\tregex: preSearch.bRegex\n\t\t\t}\n\t\t};\n\t\n\t\tfor ( i=0 ; i<columnCount ; i++ ) {\n\t\t\tcolumn = columns[i];\n\t\t\tcolumnSearch = preColSearch[i];\n\t\t\tdataProp = typeof column.mData==\"function\" ? 'function' : column.mData ;\n\t\n\t\t\td.columns.push( {\n\t\t\t\tdata:       dataProp,\n\t\t\t\tname:       column.sName,\n\t\t\t\tsearchable: column.bSearchable,\n\t\t\t\torderable:  column.bSortable,\n\t\t\t\tsearch:     {\n\t\t\t\t\tvalue: columnSearch.sSearch,\n\t\t\t\t\tregex: columnSearch.bRegex\n\t\t\t\t}\n\t\t\t} );\n\t\n\t\t\tparam( \"mDataProp_\"+i, dataProp );\n\t\n\t\t\tif ( features.bFilter ) {\n\t\t\t\tparam( 'sSearch_'+i,     columnSearch.sSearch );\n\t\t\t\tparam( 'bRegex_'+i,      columnSearch.bRegex );\n\t\t\t\tparam( 'bSearchable_'+i, column.bSearchable );\n\t\t\t}\n\t\n\t\t\tif ( features.bSort ) {\n\t\t\t\tparam( 'bSortable_'+i, column.bSortable );\n\t\t\t}\n\t\t}\n\t\n\t\tif ( features.bFilter ) {\n\t\t\tparam( 'sSearch', preSearch.sSearch );\n\t\t\tparam( 'bRegex', preSearch.bRegex );\n\t\t}\n\t\n\t\tif ( features.bSort ) {\n\t\t\t$.each( sort, function ( i, val ) {\n\t\t\t\td.order.push( { column: val.col, dir: val.dir } );\n\t\n\t\t\t\tparam( 'iSortCol_'+i, val.col );\n\t\t\t\tparam( 'sSortDir_'+i, val.dir );\n\t\t\t} );\n\t\n\t\t\tparam( 'iSortingCols', sort.length );\n\t\t}\n\t\n\t\t// If the legacy.ajax parameter is null, then we automatically decide which\n\t\t// form to use, based on sAjaxSource\n\t\tvar legacy = DataTable.ext.legacy.ajax;\n\t\tif ( legacy === null ) {\n\t\t\treturn settings.sAjaxSource ? data : d;\n\t\t}\n\t\n\t\t// Otherwise, if legacy has been specified then we use that to decide on the\n\t\t// form\n\t\treturn legacy ? data : d;\n\t}\n\t\n\t\n\t/**\n\t * Data the data from the server (nuking the old) and redraw the table\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {object} json json data return from the server.\n\t *  @param {string} json.sEcho Tracking flag for DataTables to match requests\n\t *  @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering\n\t *  @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering\n\t *  @param {array} json.aaData The data to display on this page\n\t *  @param {string} [json.sColumns] Column ordering (sName, comma separated)\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnAjaxUpdateDraw ( settings, json )\n\t{\n\t\t// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.\n\t\t// Support both\n\t\tvar compat = function ( old, modern ) {\n\t\t\treturn json[old] !== undefined ? json[old] : json[modern];\n\t\t};\n\t\n\t\tvar data = _fnAjaxDataSrc( settings, json );\n\t\tvar draw            = compat( 'sEcho',                'draw' );\n\t\tvar recordsTotal    = compat( 'iTotalRecords',        'recordsTotal' );\n\t\tvar recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );\n\t\n\t\tif ( draw ) {\n\t\t\t// Protect against out of sequence returns\n\t\t\tif ( draw*1 < settings.iDraw ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsettings.iDraw = draw * 1;\n\t\t}\n\t\n\t\t_fnClearTable( settings );\n\t\tsettings._iRecordsTotal   = parseInt(recordsTotal, 10);\n\t\tsettings._iRecordsDisplay = parseInt(recordsFiltered, 10);\n\t\n\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\n\t\t\t_fnAddData( settings, data[i] );\n\t\t}\n\t\tsettings.aiDisplay = settings.aiDisplayMaster.slice();\n\t\n\t\tsettings.bAjaxDataGet = false;\n\t\t_fnDraw( settings );\n\t\n\t\tif ( ! settings._bInitComplete ) {\n\t\t\t_fnInitComplete( settings, json );\n\t\t}\n\t\n\t\tsettings.bAjaxDataGet = true;\n\t\t_fnProcessingDisplay( settings, false );\n\t}\n\t\n\t\n\t/**\n\t * Get the data from the JSON data source to use for drawing a table. Using\n\t * `_fnGetObjectDataFn` allows the data to be sourced from a property of the\n\t * source object, or from a processing function.\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param  {object} json Data source object / array from the server\n\t *  @return {array} Array of data to use\n\t */\n\tfunction _fnAjaxDataSrc ( oSettings, json )\n\t{\n\t\tvar dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?\n\t\t\toSettings.ajax.dataSrc :\n\t\t\toSettings.sAjaxDataProp; // Compatibility with 1.9-.\n\t\n\t\t// Compatibility with 1.9-. In order to read from aaData, check if the\n\t\t// default has been changed, if not, check for aaData\n\t\tif ( dataSrc === 'data' ) {\n\t\t\treturn json.aaData || json[dataSrc];\n\t\t}\n\t\n\t\treturn dataSrc !== \"\" ?\n\t\t\t_fnGetObjectDataFn( dataSrc )( json ) :\n\t\t\tjson;\n\t}\n\t\n\t/**\n\t * Generate the node required for filtering text\n\t *  @returns {node} Filter control element\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFeatureHtmlFilter ( settings )\n\t{\n\t\tvar classes = settings.oClasses;\n\t\tvar tableId = settings.sTableId;\n\t\tvar language = settings.oLanguage;\n\t\tvar previousSearch = settings.oPreviousSearch;\n\t\tvar features = settings.aanFeatures;\n\t\tvar input = '<input type=\"search\" class=\"'+classes.sFilterInput+'\"/>';\n\t\n\t\tvar str = language.sSearch;\n\t\tstr = str.match(/_INPUT_/) ?\n\t\t\tstr.replace('_INPUT_', input) :\n\t\t\tstr+input;\n\t\n\t\tvar filter = $('<div/>', {\n\t\t\t\t'id': ! features.f ? tableId+'_filter' : null,\n\t\t\t\t'class': classes.sFilter\n\t\t\t} )\n\t\t\t.append( $('<label/>' ).append( str ) );\n\t\n\t\tvar searchFn = function() {\n\t\t\t/* Update all other filter input elements for the new display */\n\t\t\tvar n = features.f;\n\t\t\tvar val = !this.value ? \"\" : this.value; // mental IE8 fix :-(\n\t\n\t\t\t/* Now do the filter */\n\t\t\tif ( val != previousSearch.sSearch ) {\n\t\t\t\t_fnFilterComplete( settings, {\n\t\t\t\t\t\"sSearch\": val,\n\t\t\t\t\t\"bRegex\": previousSearch.bRegex,\n\t\t\t\t\t\"bSmart\": previousSearch.bSmart ,\n\t\t\t\t\t\"bCaseInsensitive\": previousSearch.bCaseInsensitive\n\t\t\t\t} );\n\t\n\t\t\t\t// Need to redraw, without resorting\n\t\t\t\tsettings._iDisplayStart = 0;\n\t\t\t\t_fnDraw( settings );\n\t\t\t}\n\t\t};\n\t\n\t\tvar searchDelay = settings.searchDelay !== null ?\n\t\t\tsettings.searchDelay :\n\t\t\t_fnDataSource( settings ) === 'ssp' ?\n\t\t\t\t400 :\n\t\t\t\t0;\n\t\n\t\tvar jqFilter = $('input', filter)\n\t\t\t.val( previousSearch.sSearch )\n\t\t\t.attr( 'placeholder', language.sSearchPlaceholder )\n\t\t\t.on(\n\t\t\t\t'keyup.DT search.DT input.DT paste.DT cut.DT',\n\t\t\t\tsearchDelay ?\n\t\t\t\t\t_fnThrottle( searchFn, searchDelay ) :\n\t\t\t\t\tsearchFn\n\t\t\t)\n\t\t\t.on( 'keypress.DT', function(e) {\n\t\t\t\t/* Prevent form submission */\n\t\t\t\tif ( e.keyCode == 13 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} )\n\t\t\t.attr('aria-controls', tableId);\n\t\n\t\t// Update the input elements whenever the table is filtered\n\t\t$(settings.nTable).on( 'search.dt.DT', function ( ev, s ) {\n\t\t\tif ( settings === s ) {\n\t\t\t\t// IE9 throws an 'unknown error' if document.activeElement is used\n\t\t\t\t// inside an iframe or frame...\n\t\t\t\ttry {\n\t\t\t\t\tif ( jqFilter[0] !== document.activeElement ) {\n\t\t\t\t\t\tjqFilter.val( previousSearch.sSearch );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch ( e ) {}\n\t\t\t}\n\t\t} );\n\t\n\t\treturn filter[0];\n\t}\n\t\n\t\n\t/**\n\t * Filter the table using both the global filter and column based filtering\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {object} oSearch search information\n\t *  @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFilterComplete ( oSettings, oInput, iForce )\n\t{\n\t\tvar oPrevSearch = oSettings.oPreviousSearch;\n\t\tvar aoPrevSearch = oSettings.aoPreSearchCols;\n\t\tvar fnSaveFilter = function ( oFilter ) {\n\t\t\t/* Save the filtering values */\n\t\t\toPrevSearch.sSearch = oFilter.sSearch;\n\t\t\toPrevSearch.bRegex = oFilter.bRegex;\n\t\t\toPrevSearch.bSmart = oFilter.bSmart;\n\t\t\toPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;\n\t\t};\n\t\tvar fnRegex = function ( o ) {\n\t\t\t// Backwards compatibility with the bEscapeRegex option\n\t\t\treturn o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;\n\t\t};\n\t\n\t\t// Resolve any column types that are unknown due to addition or invalidation\n\t\t// @todo As per sort - can this be moved into an event handler?\n\t\t_fnColumnTypes( oSettings );\n\t\n\t\t/* In server-side processing all filtering is done by the server, so no point hanging around here */\n\t\tif ( _fnDataSource( oSettings ) != 'ssp' )\n\t\t{\n\t\t\t/* Global filter */\n\t\t\t_fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive );\n\t\t\tfnSaveFilter( oInput );\n\t\n\t\t\t/* Now do the individual column filter */\n\t\t\tfor ( var i=0 ; i<aoPrevSearch.length ; i++ )\n\t\t\t{\n\t\t\t\t_fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]),\n\t\t\t\t\taoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );\n\t\t\t}\n\t\n\t\t\t/* Custom filtering */\n\t\t\t_fnFilterCustom( oSettings );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfnSaveFilter( oInput );\n\t\t}\n\t\n\t\t/* Tell the draw function we have been filtering */\n\t\toSettings.bFiltered = true;\n\t\t_fnCallbackFire( oSettings, null, 'search', [oSettings] );\n\t}\n\t\n\t\n\t/**\n\t * Apply custom filtering functions\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFilterCustom( settings )\n\t{\n\t\tvar filters = DataTable.ext.search;\n\t\tvar displayRows = settings.aiDisplay;\n\t\tvar row, rowIdx;\n\t\n\t\tfor ( var i=0, ien=filters.length ; i<ien ; i++ ) {\n\t\t\tvar rows = [];\n\t\n\t\t\t// Loop over each row and see if it should be included\n\t\t\tfor ( var j=0, jen=displayRows.length ; j<jen ; j++ ) {\n\t\t\t\trowIdx = displayRows[ j ];\n\t\t\t\trow = settings.aoData[ rowIdx ];\n\t\n\t\t\t\tif ( filters[i]( settings, row._aFilterData, rowIdx, row._aData, j ) ) {\n\t\t\t\t\trows.push( rowIdx );\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t// So the array reference doesn't break set the results into the\n\t\t\t// existing array\n\t\t\tdisplayRows.length = 0;\n\t\t\t$.merge( displayRows, rows );\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Filter the table on a per-column basis\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {string} sInput string to filter on\n\t *  @param {int} iColumn column to filter\n\t *  @param {bool} bRegex treat search string as a regular expression or not\n\t *  @param {bool} bSmart use smart filtering or not\n\t *  @param {bool} bCaseInsensitive Do case insenstive matching or not\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )\n\t{\n\t\tif ( searchStr === '' ) {\n\t\t\treturn;\n\t\t}\n\t\n\t\tvar data;\n\t\tvar out = [];\n\t\tvar display = settings.aiDisplay;\n\t\tvar rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive );\n\t\n\t\tfor ( var i=0 ; i<display.length ; i++ ) {\n\t\t\tdata = settings.aoData[ display[i] ]._aFilterData[ colIdx ];\n\t\n\t\t\tif ( rpSearch.test( data ) ) {\n\t\t\t\tout.push( display[i] );\n\t\t\t}\n\t\t}\n\t\n\t\tsettings.aiDisplay = out;\n\t}\n\t\n\t\n\t/**\n\t * Filter the data table based on user input and draw the table\n\t *  @param {object} settings dataTables settings object\n\t *  @param {string} input string to filter on\n\t *  @param {int} force optional - force a research of the master array (1) or not (undefined or 0)\n\t *  @param {bool} regex treat as a regular expression or not\n\t *  @param {bool} smart perform smart filtering or not\n\t *  @param {bool} caseInsensitive Do case insenstive matching or not\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFilter( settings, input, force, regex, smart, caseInsensitive )\n\t{\n\t\tvar rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );\n\t\tvar prevSearch = settings.oPreviousSearch.sSearch;\n\t\tvar displayMaster = settings.aiDisplayMaster;\n\t\tvar display, invalidated, i;\n\t\tvar filtered = [];\n\t\n\t\t// Need to take account of custom filtering functions - always filter\n\t\tif ( DataTable.ext.search.length !== 0 ) {\n\t\t\tforce = true;\n\t\t}\n\t\n\t\t// Check if any of the rows were invalidated\n\t\tinvalidated = _fnFilterData( settings );\n\t\n\t\t// If the input is blank - we just want the full data set\n\t\tif ( input.length <= 0 ) {\n\t\t\tsettings.aiDisplay = displayMaster.slice();\n\t\t}\n\t\telse {\n\t\t\t// New search - start from the master array\n\t\t\tif ( invalidated ||\n\t\t\t\t force ||\n\t\t\t\t prevSearch.length > input.length ||\n\t\t\t\t input.indexOf(prevSearch) !== 0 ||\n\t\t\t\t settings.bSorted // On resort, the display master needs to be\n\t\t\t\t                  // re-filtered since indexes will have changed\n\t\t\t) {\n\t\t\t\tsettings.aiDisplay = displayMaster.slice();\n\t\t\t}\n\t\n\t\t\t// Search the display array\n\t\t\tdisplay = settings.aiDisplay;\n\t\n\t\t\tfor ( i=0 ; i<display.length ; i++ ) {\n\t\t\t\tif ( rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {\n\t\t\t\t\tfiltered.push( display[i] );\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tsettings.aiDisplay = filtered;\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Build a regular expression object suitable for searching a table\n\t *  @param {string} sSearch string to search for\n\t *  @param {bool} bRegex treat as a regular expression or not\n\t *  @param {bool} bSmart perform smart filtering or not\n\t *  @param {bool} bCaseInsensitive Do case insensitive matching or not\n\t *  @returns {RegExp} constructed object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFilterCreateSearch( search, regex, smart, caseInsensitive )\n\t{\n\t\tsearch = regex ?\n\t\t\tsearch :\n\t\t\t_fnEscapeRegex( search );\n\t\t\n\t\tif ( smart ) {\n\t\t\t/* For smart filtering we want to allow the search to work regardless of\n\t\t\t * word order. We also want double quoted text to be preserved, so word\n\t\t\t * order is important - a la google. So this is what we want to\n\t\t\t * generate:\n\t\t\t * \n\t\t\t * ^(?=.*?\\bone\\b)(?=.*?\\btwo three\\b)(?=.*?\\bfour\\b).*$\n\t\t\t */\n\t\t\tvar a = $.map( search.match( /\"[^\"]+\"|[^ ]+/g ) || [''], function ( word ) {\n\t\t\t\tif ( word.charAt(0) === '\"' ) {\n\t\t\t\t\tvar m = word.match( /^\"(.*)\"$/ );\n\t\t\t\t\tword = m ? m[1] : word;\n\t\t\t\t}\n\t\n\t\t\t\treturn word.replace('\"', '');\n\t\t\t} );\n\t\n\t\t\tsearch = '^(?=.*?'+a.join( ')(?=.*?' )+').*$';\n\t\t}\n\t\n\t\treturn new RegExp( search, caseInsensitive ? 'i' : '' );\n\t}\n\t\n\t\n\t/**\n\t * Escape a string such that it can be used in a regular expression\n\t *  @param {string} sVal string to escape\n\t *  @returns {string} escaped string\n\t *  @memberof DataTable#oApi\n\t */\n\tvar _fnEscapeRegex = DataTable.util.escapeRegex;\n\t\n\tvar __filter_div = $('<div>')[0];\n\tvar __filter_div_textContent = __filter_div.textContent !== undefined;\n\t\n\t// Update the filtering data for each row if needed (by invalidation or first run)\n\tfunction _fnFilterData ( settings )\n\t{\n\t\tvar columns = settings.aoColumns;\n\t\tvar column;\n\t\tvar i, j, ien, jen, filterData, cellData, row;\n\t\tvar fomatters = DataTable.ext.type.search;\n\t\tvar wasInvalidated = false;\n\t\n\t\tfor ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\n\t\t\trow = settings.aoData[i];\n\t\n\t\t\tif ( ! row._aFilterData ) {\n\t\t\t\tfilterData = [];\n\t\n\t\t\t\tfor ( j=0, jen=columns.length ; j<jen ; j++ ) {\n\t\t\t\t\tcolumn = columns[j];\n\t\n\t\t\t\t\tif ( column.bSearchable ) {\n\t\t\t\t\t\tcellData = _fnGetCellData( settings, i, j, 'filter' );\n\t\n\t\t\t\t\t\tif ( fomatters[ column.sType ] ) {\n\t\t\t\t\t\t\tcellData = fomatters[ column.sType ]( cellData );\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t// Search in DataTables 1.10 is string based. In 1.11 this\n\t\t\t\t\t\t// should be altered to also allow strict type checking.\n\t\t\t\t\t\tif ( cellData === null ) {\n\t\t\t\t\t\t\tcellData = '';\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\tif ( typeof cellData !== 'string' && cellData.toString ) {\n\t\t\t\t\t\t\tcellData = cellData.toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tcellData = '';\n\t\t\t\t\t}\n\t\n\t\t\t\t\t// If it looks like there is an HTML entity in the string,\n\t\t\t\t\t// attempt to decode it so sorting works as expected. Note that\n\t\t\t\t\t// we could use a single line of jQuery to do this, but the DOM\n\t\t\t\t\t// method used here is much faster http://jsperf.com/html-decode\n\t\t\t\t\tif ( cellData.indexOf && cellData.indexOf('&') !== -1 ) {\n\t\t\t\t\t\t__filter_div.innerHTML = cellData;\n\t\t\t\t\t\tcellData = __filter_div_textContent ?\n\t\t\t\t\t\t\t__filter_div.textContent :\n\t\t\t\t\t\t\t__filter_div.innerText;\n\t\t\t\t\t}\n\t\n\t\t\t\t\tif ( cellData.replace ) {\n\t\t\t\t\t\tcellData = cellData.replace(/[\\r\\n]/g, '');\n\t\t\t\t\t}\n\t\n\t\t\t\t\tfilterData.push( cellData );\n\t\t\t\t}\n\t\n\t\t\t\trow._aFilterData = filterData;\n\t\t\t\trow._sFilterRow = filterData.join('  ');\n\t\t\t\twasInvalidated = true;\n\t\t\t}\n\t\t}\n\t\n\t\treturn wasInvalidated;\n\t}\n\t\n\t\n\t/**\n\t * Convert from the internal Hungarian notation to camelCase for external\n\t * interaction\n\t *  @param {object} obj Object to convert\n\t *  @returns {object} Inverted object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnSearchToCamel ( obj )\n\t{\n\t\treturn {\n\t\t\tsearch:          obj.sSearch,\n\t\t\tsmart:           obj.bSmart,\n\t\t\tregex:           obj.bRegex,\n\t\t\tcaseInsensitive: obj.bCaseInsensitive\n\t\t};\n\t}\n\t\n\t\n\t\n\t/**\n\t * Convert from camelCase notation to the internal Hungarian. We could use the\n\t * Hungarian convert function here, but this is cleaner\n\t *  @param {object} obj Object to convert\n\t *  @returns {object} Inverted object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnSearchToHung ( obj )\n\t{\n\t\treturn {\n\t\t\tsSearch:          obj.search,\n\t\t\tbSmart:           obj.smart,\n\t\t\tbRegex:           obj.regex,\n\t\t\tbCaseInsensitive: obj.caseInsensitive\n\t\t};\n\t}\n\t\n\t/**\n\t * Generate the node required for the info display\n\t *  @param {object} oSettings dataTables settings object\n\t *  @returns {node} Information element\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFeatureHtmlInfo ( settings )\n\t{\n\t\tvar\n\t\t\ttid = settings.sTableId,\n\t\t\tnodes = settings.aanFeatures.i,\n\t\t\tn = $('<div/>', {\n\t\t\t\t'class': settings.oClasses.sInfo,\n\t\t\t\t'id': ! nodes ? tid+'_info' : null\n\t\t\t} );\n\t\n\t\tif ( ! nodes ) {\n\t\t\t// Update display on each draw\n\t\t\tsettings.aoDrawCallback.push( {\n\t\t\t\t\"fn\": _fnUpdateInfo,\n\t\t\t\t\"sName\": \"information\"\n\t\t\t} );\n\t\n\t\t\tn\n\t\t\t\t.attr( 'role', 'status' )\n\t\t\t\t.attr( 'aria-live', 'polite' );\n\t\n\t\t\t// Table is described by our info div\n\t\t\t$(settings.nTable).attr( 'aria-describedby', tid+'_info' );\n\t\t}\n\t\n\t\treturn n[0];\n\t}\n\t\n\t\n\t/**\n\t * Update the information elements in the display\n\t *  @param {object} settings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnUpdateInfo ( settings )\n\t{\n\t\t/* Show information about the table */\n\t\tvar nodes = settings.aanFeatures.i;\n\t\tif ( nodes.length === 0 ) {\n\t\t\treturn;\n\t\t}\n\t\n\t\tvar\n\t\t\tlang  = settings.oLanguage,\n\t\t\tstart = settings._iDisplayStart+1,\n\t\t\tend   = settings.fnDisplayEnd(),\n\t\t\tmax   = settings.fnRecordsTotal(),\n\t\t\ttotal = settings.fnRecordsDisplay(),\n\t\t\tout   = total ?\n\t\t\t\tlang.sInfo :\n\t\t\t\tlang.sInfoEmpty;\n\t\n\t\tif ( total !== max ) {\n\t\t\t/* Record set after filtering */\n\t\t\tout += ' ' + lang.sInfoFiltered;\n\t\t}\n\t\n\t\t// Convert the macros\n\t\tout += lang.sInfoPostFix;\n\t\tout = _fnInfoMacros( settings, out );\n\t\n\t\tvar callback = lang.fnInfoCallback;\n\t\tif ( callback !== null ) {\n\t\t\tout = callback.call( settings.oInstance,\n\t\t\t\tsettings, start, end, max, total, out\n\t\t\t);\n\t\t}\n\t\n\t\t$(nodes).html( out );\n\t}\n\t\n\t\n\tfunction _fnInfoMacros ( settings, str )\n\t{\n\t\t// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only\n\t\t// internally\n\t\tvar\n\t\t\tformatter  = settings.fnFormatNumber,\n\t\t\tstart      = settings._iDisplayStart+1,\n\t\t\tlen        = settings._iDisplayLength,\n\t\t\tvis        = settings.fnRecordsDisplay(),\n\t\t\tall        = len === -1;\n\t\n\t\treturn str.\n\t\t\treplace(/_START_/g, formatter.call( settings, start ) ).\n\t\t\treplace(/_END_/g,   formatter.call( settings, settings.fnDisplayEnd() ) ).\n\t\t\treplace(/_MAX_/g,   formatter.call( settings, settings.fnRecordsTotal() ) ).\n\t\t\treplace(/_TOTAL_/g, formatter.call( settings, vis ) ).\n\t\t\treplace(/_PAGE_/g,  formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).\n\t\t\treplace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );\n\t}\n\t\n\t\n\t\n\t/**\n\t * Draw the table for the first time, adding all required features\n\t *  @param {object} settings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnInitialise ( settings )\n\t{\n\t\tvar i, iLen, iAjaxStart=settings.iInitDisplayStart;\n\t\tvar columns = settings.aoColumns, column;\n\t\tvar features = settings.oFeatures;\n\t\tvar deferLoading = settings.bDeferLoading; // value modified by the draw\n\t\n\t\t/* Ensure that the table data is fully initialised */\n\t\tif ( ! settings.bInitialised ) {\n\t\t\tsetTimeout( function(){ _fnInitialise( settings ); }, 200 );\n\t\t\treturn;\n\t\t}\n\t\n\t\t/* Show the display HTML options */\n\t\t_fnAddOptionsHtml( settings );\n\t\n\t\t/* Build and draw the header / footer for the table */\n\t\t_fnBuildHead( settings );\n\t\t_fnDrawHead( settings, settings.aoHeader );\n\t\t_fnDrawHead( settings, settings.aoFooter );\n\t\n\t\t/* Okay to show that something is going on now */\n\t\t_fnProcessingDisplay( settings, true );\n\t\n\t\t/* Calculate sizes for columns */\n\t\tif ( features.bAutoWidth ) {\n\t\t\t_fnCalculateColumnWidths( settings );\n\t\t}\n\t\n\t\tfor ( i=0, iLen=columns.length ; i<iLen ; i++ ) {\n\t\t\tcolumn = columns[i];\n\t\n\t\t\tif ( column.sWidth ) {\n\t\t\t\tcolumn.nTh.style.width = _fnStringToCss( column.sWidth );\n\t\t\t}\n\t\t}\n\t\n\t\t_fnCallbackFire( settings, null, 'preInit', [settings] );\n\t\n\t\t// If there is default sorting required - let's do it. The sort function\n\t\t// will do the drawing for us. Otherwise we draw the table regardless of the\n\t\t// Ajax source - this allows the table to look initialised for Ajax sourcing\n\t\t// data (show 'loading' message possibly)\n\t\t_fnReDraw( settings );\n\t\n\t\t// Server-side processing init complete is done by _fnAjaxUpdateDraw\n\t\tvar dataSrc = _fnDataSource( settings );\n\t\tif ( dataSrc != 'ssp' || deferLoading ) {\n\t\t\t// if there is an ajax source load the data\n\t\t\tif ( dataSrc == 'ajax' ) {\n\t\t\t\t_fnBuildAjax( settings, [], function(json) {\n\t\t\t\t\tvar aData = _fnAjaxDataSrc( settings, json );\n\t\n\t\t\t\t\t// Got the data - add it to the table\n\t\t\t\t\tfor ( i=0 ; i<aData.length ; i++ ) {\n\t\t\t\t\t\t_fnAddData( settings, aData[i] );\n\t\t\t\t\t}\n\t\n\t\t\t\t\t// Reset the init display for cookie saving. We've already done\n\t\t\t\t\t// a filter, and therefore cleared it before. So we need to make\n\t\t\t\t\t// it appear 'fresh'\n\t\t\t\t\tsettings.iInitDisplayStart = iAjaxStart;\n\t\n\t\t\t\t\t_fnReDraw( settings );\n\t\n\t\t\t\t\t_fnProcessingDisplay( settings, false );\n\t\t\t\t\t_fnInitComplete( settings, json );\n\t\t\t\t}, settings );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t_fnProcessingDisplay( settings, false );\n\t\t\t\t_fnInitComplete( settings );\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Draw the table for the first time, adding all required features\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {object} [json] JSON from the server that completed the table, if using Ajax source\n\t *    with client-side processing (optional)\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnInitComplete ( settings, json )\n\t{\n\t\tsettings._bInitComplete = true;\n\t\n\t\t// When data was added after the initialisation (data or Ajax) we need to\n\t\t// calculate the column sizing\n\t\tif ( json || settings.oInit.aaData ) {\n\t\t\t_fnAdjustColumnSizing( settings );\n\t\t}\n\t\n\t\t_fnCallbackFire( settings, null, 'plugin-init', [settings, json] );\n\t\t_fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] );\n\t}\n\t\n\t\n\tfunction _fnLengthChange ( settings, val )\n\t{\n\t\tvar len = parseInt( val, 10 );\n\t\tsettings._iDisplayLength = len;\n\t\n\t\t_fnLengthOverflow( settings );\n\t\n\t\t// Fire length change event\n\t\t_fnCallbackFire( settings, null, 'length', [settings, len] );\n\t}\n\t\n\t\n\t/**\n\t * Generate the node required for user display length changing\n\t *  @param {object} settings dataTables settings object\n\t *  @returns {node} Display length feature node\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFeatureHtmlLength ( settings )\n\t{\n\t\tvar\n\t\t\tclasses  = settings.oClasses,\n\t\t\ttableId  = settings.sTableId,\n\t\t\tmenu     = settings.aLengthMenu,\n\t\t\td2       = $.isArray( menu[0] ),\n\t\t\tlengths  = d2 ? menu[0] : menu,\n\t\t\tlanguage = d2 ? menu[1] : menu;\n\t\n\t\tvar select = $('<select/>', {\n\t\t\t'name':          tableId+'_length',\n\t\t\t'aria-controls': tableId,\n\t\t\t'class':         classes.sLengthSelect\n\t\t} );\n\t\n\t\tfor ( var i=0, ien=lengths.length ; i<ien ; i++ ) {\n\t\t\tselect[0][ i ] = new Option(\n\t\t\t\ttypeof language[i] === 'number' ?\n\t\t\t\t\tsettings.fnFormatNumber( language[i] ) :\n\t\t\t\t\tlanguage[i],\n\t\t\t\tlengths[i]\n\t\t\t);\n\t\t}\n\t\n\t\tvar div = $('<div><label/></div>').addClass( classes.sLength );\n\t\tif ( ! settings.aanFeatures.l ) {\n\t\t\tdiv[0].id = tableId+'_length';\n\t\t}\n\t\n\t\tdiv.children().append(\n\t\t\tsettings.oLanguage.sLengthMenu.replace( '_MENU_', select[0].outerHTML )\n\t\t);\n\t\n\t\t// Can't use `select` variable as user might provide their own and the\n\t\t// reference is broken by the use of outerHTML\n\t\t$('select', div)\n\t\t\t.val( settings._iDisplayLength )\n\t\t\t.on( 'change.DT', function(e) {\n\t\t\t\t_fnLengthChange( settings, $(this).val() );\n\t\t\t\t_fnDraw( settings );\n\t\t\t} );\n\t\n\t\t// Update node value whenever anything changes the table's length\n\t\t$(settings.nTable).on( 'length.dt.DT', function (e, s, len) {\n\t\t\tif ( settings === s ) {\n\t\t\t\t$('select', div).val( len );\n\t\t\t}\n\t\t} );\n\t\n\t\treturn div[0];\n\t}\n\t\n\t\n\t\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t * Note that most of the paging logic is done in\n\t * DataTable.ext.pager\n\t */\n\t\n\t/**\n\t * Generate the node required for default pagination\n\t *  @param {object} oSettings dataTables settings object\n\t *  @returns {node} Pagination feature node\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFeatureHtmlPaginate ( settings )\n\t{\n\t\tvar\n\t\t\ttype   = settings.sPaginationType,\n\t\t\tplugin = DataTable.ext.pager[ type ],\n\t\t\tmodern = typeof plugin === 'function',\n\t\t\tredraw = function( settings ) {\n\t\t\t\t_fnDraw( settings );\n\t\t\t},\n\t\t\tnode = $('<div/>').addClass( settings.oClasses.sPaging + type )[0],\n\t\t\tfeatures = settings.aanFeatures;\n\t\n\t\tif ( ! modern ) {\n\t\t\tplugin.fnInit( settings, node, redraw );\n\t\t}\n\t\n\t\t/* Add a draw callback for the pagination on first instance, to update the paging display */\n\t\tif ( ! features.p )\n\t\t{\n\t\t\tnode.id = settings.sTableId+'_paginate';\n\t\n\t\t\tsettings.aoDrawCallback.push( {\n\t\t\t\t\"fn\": function( settings ) {\n\t\t\t\t\tif ( modern ) {\n\t\t\t\t\t\tvar\n\t\t\t\t\t\t\tstart      = settings._iDisplayStart,\n\t\t\t\t\t\t\tlen        = settings._iDisplayLength,\n\t\t\t\t\t\t\tvisRecords = settings.fnRecordsDisplay(),\n\t\t\t\t\t\t\tall        = len === -1,\n\t\t\t\t\t\t\tpage = all ? 0 : Math.ceil( start / len ),\n\t\t\t\t\t\t\tpages = all ? 1 : Math.ceil( visRecords / len ),\n\t\t\t\t\t\t\tbuttons = plugin(page, pages),\n\t\t\t\t\t\t\ti, ien;\n\t\n\t\t\t\t\t\tfor ( i=0, ien=features.p.length ; i<ien ; i++ ) {\n\t\t\t\t\t\t\t_fnRenderer( settings, 'pageButton' )(\n\t\t\t\t\t\t\t\tsettings, features.p[i], i, buttons, page, pages\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tplugin.fnUpdate( settings, redraw );\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"sName\": \"pagination\"\n\t\t\t} );\n\t\t}\n\t\n\t\treturn node;\n\t}\n\t\n\t\n\t/**\n\t * Alter the display settings to change the page\n\t *  @param {object} settings DataTables settings object\n\t *  @param {string|int} action Paging action to take: \"first\", \"previous\",\n\t *    \"next\" or \"last\" or page number to jump to (integer)\n\t *  @param [bool] redraw Automatically draw the update or not\n\t *  @returns {bool} true page has changed, false - no change\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnPageChange ( settings, action, redraw )\n\t{\n\t\tvar\n\t\t\tstart     = settings._iDisplayStart,\n\t\t\tlen       = settings._iDisplayLength,\n\t\t\trecords   = settings.fnRecordsDisplay();\n\t\n\t\tif ( records === 0 || len === -1 )\n\t\t{\n\t\t\tstart = 0;\n\t\t}\n\t\telse if ( typeof action === \"number\" )\n\t\t{\n\t\t\tstart = action * len;\n\t\n\t\t\tif ( start > records )\n\t\t\t{\n\t\t\t\tstart = 0;\n\t\t\t}\n\t\t}\n\t\telse if ( action == \"first\" )\n\t\t{\n\t\t\tstart = 0;\n\t\t}\n\t\telse if ( action == \"previous\" )\n\t\t{\n\t\t\tstart = len >= 0 ?\n\t\t\t\tstart - len :\n\t\t\t\t0;\n\t\n\t\t\tif ( start < 0 )\n\t\t\t{\n\t\t\t  start = 0;\n\t\t\t}\n\t\t}\n\t\telse if ( action == \"next\" )\n\t\t{\n\t\t\tif ( start + len < records )\n\t\t\t{\n\t\t\t\tstart += len;\n\t\t\t}\n\t\t}\n\t\telse if ( action == \"last\" )\n\t\t{\n\t\t\tstart = Math.floor( (records-1) / len) * len;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t_fnLog( settings, 0, \"Unknown paging action: \"+action, 5 );\n\t\t}\n\t\n\t\tvar changed = settings._iDisplayStart !== start;\n\t\tsettings._iDisplayStart = start;\n\t\n\t\tif ( changed ) {\n\t\t\t_fnCallbackFire( settings, null, 'page', [settings] );\n\t\n\t\t\tif ( redraw ) {\n\t\t\t\t_fnDraw( settings );\n\t\t\t}\n\t\t}\n\t\n\t\treturn changed;\n\t}\n\t\n\t\n\t\n\t/**\n\t * Generate the node required for the processing node\n\t *  @param {object} settings dataTables settings object\n\t *  @returns {node} Processing element\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFeatureHtmlProcessing ( settings )\n\t{\n\t\treturn $('<div/>', {\n\t\t\t\t'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null,\n\t\t\t\t'class': settings.oClasses.sProcessing\n\t\t\t} )\n\t\t\t.html( settings.oLanguage.sProcessing )\n\t\t\t.insertBefore( settings.nTable )[0];\n\t}\n\t\n\t\n\t/**\n\t * Display or hide the processing indicator\n\t *  @param {object} settings dataTables settings object\n\t *  @param {bool} show Show the processing indicator (true) or not (false)\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnProcessingDisplay ( settings, show )\n\t{\n\t\tif ( settings.oFeatures.bProcessing ) {\n\t\t\t$(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' );\n\t\t}\n\t\n\t\t_fnCallbackFire( settings, null, 'processing', [settings, show] );\n\t}\n\t\n\t/**\n\t * Add any control elements for the table - specifically scrolling\n\t *  @param {object} settings dataTables settings object\n\t *  @returns {node} Node to add to the DOM\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnFeatureHtmlTable ( settings )\n\t{\n\t\tvar table = $(settings.nTable);\n\t\n\t\t// Add the ARIA grid role to the table\n\t\ttable.attr( 'role', 'grid' );\n\t\n\t\t// Scrolling from here on in\n\t\tvar scroll = settings.oScroll;\n\t\n\t\tif ( scroll.sX === '' && scroll.sY === '' ) {\n\t\t\treturn settings.nTable;\n\t\t}\n\t\n\t\tvar scrollX = scroll.sX;\n\t\tvar scrollY = scroll.sY;\n\t\tvar classes = settings.oClasses;\n\t\tvar caption = table.children('caption');\n\t\tvar captionSide = caption.length ? caption[0]._captionSide : null;\n\t\tvar headerClone = $( table[0].cloneNode(false) );\n\t\tvar footerClone = $( table[0].cloneNode(false) );\n\t\tvar footer = table.children('tfoot');\n\t\tvar _div = '<div/>';\n\t\tvar size = function ( s ) {\n\t\t\treturn !s ? null : _fnStringToCss( s );\n\t\t};\n\t\n\t\tif ( ! footer.length ) {\n\t\t\tfooter = null;\n\t\t}\n\t\n\t\t/*\n\t\t * The HTML structure that we want to generate in this function is:\n\t\t *  div - scroller\n\t\t *    div - scroll head\n\t\t *      div - scroll head inner\n\t\t *        table - scroll head table\n\t\t *          thead - thead\n\t\t *    div - scroll body\n\t\t *      table - table (master table)\n\t\t *        thead - thead clone for sizing\n\t\t *        tbody - tbody\n\t\t *    div - scroll foot\n\t\t *      div - scroll foot inner\n\t\t *        table - scroll foot table\n\t\t *          tfoot - tfoot\n\t\t */\n\t\tvar scroller = $( _div, { 'class': classes.sScrollWrapper } )\n\t\t\t.append(\n\t\t\t\t$(_div, { 'class': classes.sScrollHead } )\n\t\t\t\t\t.css( {\n\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\tposition: 'relative',\n\t\t\t\t\t\tborder: 0,\n\t\t\t\t\t\twidth: scrollX ? size(scrollX) : '100%'\n\t\t\t\t\t} )\n\t\t\t\t\t.append(\n\t\t\t\t\t\t$(_div, { 'class': classes.sScrollHeadInner } )\n\t\t\t\t\t\t\t.css( {\n\t\t\t\t\t\t\t\t'box-sizing': 'content-box',\n\t\t\t\t\t\t\t\twidth: scroll.sXInner || '100%'\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t.append(\n\t\t\t\t\t\t\t\theaderClone\n\t\t\t\t\t\t\t\t\t.removeAttr('id')\n\t\t\t\t\t\t\t\t\t.css( 'margin-left', 0 )\n\t\t\t\t\t\t\t\t\t.append( captionSide === 'top' ? caption : null )\n\t\t\t\t\t\t\t\t\t.append(\n\t\t\t\t\t\t\t\t\t\ttable.children('thead')\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t)\n\t\t\t.append(\n\t\t\t\t$(_div, { 'class': classes.sScrollBody } )\n\t\t\t\t\t.css( {\n\t\t\t\t\t\tposition: 'relative',\n\t\t\t\t\t\toverflow: 'auto',\n\t\t\t\t\t\twidth: size( scrollX )\n\t\t\t\t\t} )\n\t\t\t\t\t.append( table )\n\t\t\t);\n\t\n\t\tif ( footer ) {\n\t\t\tscroller.append(\n\t\t\t\t$(_div, { 'class': classes.sScrollFoot } )\n\t\t\t\t\t.css( {\n\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\tborder: 0,\n\t\t\t\t\t\twidth: scrollX ? size(scrollX) : '100%'\n\t\t\t\t\t} )\n\t\t\t\t\t.append(\n\t\t\t\t\t\t$(_div, { 'class': classes.sScrollFootInner } )\n\t\t\t\t\t\t\t.append(\n\t\t\t\t\t\t\t\tfooterClone\n\t\t\t\t\t\t\t\t\t.removeAttr('id')\n\t\t\t\t\t\t\t\t\t.css( 'margin-left', 0 )\n\t\t\t\t\t\t\t\t\t.append( captionSide === 'bottom' ? caption : null )\n\t\t\t\t\t\t\t\t\t.append(\n\t\t\t\t\t\t\t\t\t\ttable.children('tfoot')\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\n\t\tvar children = scroller.children();\n\t\tvar scrollHead = children[0];\n\t\tvar scrollBody = children[1];\n\t\tvar scrollFoot = footer ? children[2] : null;\n\t\n\t\t// When the body is scrolled, then we also want to scroll the headers\n\t\tif ( scrollX ) {\n\t\t\t$(scrollBody).on( 'scroll.DT', function (e) {\n\t\t\t\tvar scrollLeft = this.scrollLeft;\n\t\n\t\t\t\tscrollHead.scrollLeft = scrollLeft;\n\t\n\t\t\t\tif ( footer ) {\n\t\t\t\t\tscrollFoot.scrollLeft = scrollLeft;\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t\n\t\t$(scrollBody).css(\n\t\t\tscrollY && scroll.bCollapse ? 'max-height' : 'height', \n\t\t\tscrollY\n\t\t);\n\t\n\t\tsettings.nScrollHead = scrollHead;\n\t\tsettings.nScrollBody = scrollBody;\n\t\tsettings.nScrollFoot = scrollFoot;\n\t\n\t\t// On redraw - align columns\n\t\tsettings.aoDrawCallback.push( {\n\t\t\t\"fn\": _fnScrollDraw,\n\t\t\t\"sName\": \"scrolling\"\n\t\t} );\n\t\n\t\treturn scroller[0];\n\t}\n\t\n\t\n\t\n\t/**\n\t * Update the header, footer and body tables for resizing - i.e. column\n\t * alignment.\n\t *\n\t * Welcome to the most horrible function DataTables. The process that this\n\t * function follows is basically:\n\t *   1. Re-create the table inside the scrolling div\n\t *   2. Take live measurements from the DOM\n\t *   3. Apply the measurements to align the columns\n\t *   4. Clean up\n\t *\n\t *  @param {object} settings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnScrollDraw ( settings )\n\t{\n\t\t// Given that this is such a monster function, a lot of variables are use\n\t\t// to try and keep the minimised size as small as possible\n\t\tvar\n\t\t\tscroll         = settings.oScroll,\n\t\t\tscrollX        = scroll.sX,\n\t\t\tscrollXInner   = scroll.sXInner,\n\t\t\tscrollY        = scroll.sY,\n\t\t\tbarWidth       = scroll.iBarWidth,\n\t\t\tdivHeader      = $(settings.nScrollHead),\n\t\t\tdivHeaderStyle = divHeader[0].style,\n\t\t\tdivHeaderInner = divHeader.children('div'),\n\t\t\tdivHeaderInnerStyle = divHeaderInner[0].style,\n\t\t\tdivHeaderTable = divHeaderInner.children('table'),\n\t\t\tdivBodyEl      = settings.nScrollBody,\n\t\t\tdivBody        = $(divBodyEl),\n\t\t\tdivBodyStyle   = divBodyEl.style,\n\t\t\tdivFooter      = $(settings.nScrollFoot),\n\t\t\tdivFooterInner = divFooter.children('div'),\n\t\t\tdivFooterTable = divFooterInner.children('table'),\n\t\t\theader         = $(settings.nTHead),\n\t\t\ttable          = $(settings.nTable),\n\t\t\ttableEl        = table[0],\n\t\t\ttableStyle     = tableEl.style,\n\t\t\tfooter         = settings.nTFoot ? $(settings.nTFoot) : null,\n\t\t\tbrowser        = settings.oBrowser,\n\t\t\tie67           = browser.bScrollOversize,\n\t\t\tdtHeaderCells  = _pluck( settings.aoColumns, 'nTh' ),\n\t\t\theaderTrgEls, footerTrgEls,\n\t\t\theaderSrcEls, footerSrcEls,\n\t\t\theaderCopy, footerCopy,\n\t\t\theaderWidths=[], footerWidths=[],\n\t\t\theaderContent=[], footerContent=[],\n\t\t\tidx, correction, sanityWidth,\n\t\t\tzeroOut = function(nSizer) {\n\t\t\t\tvar style = nSizer.style;\n\t\t\t\tstyle.paddingTop = \"0\";\n\t\t\t\tstyle.paddingBottom = \"0\";\n\t\t\t\tstyle.borderTopWidth = \"0\";\n\t\t\t\tstyle.borderBottomWidth = \"0\";\n\t\t\t\tstyle.height = 0;\n\t\t\t};\n\t\n\t\t// If the scrollbar visibility has changed from the last draw, we need to\n\t\t// adjust the column sizes as the table width will have changed to account\n\t\t// for the scrollbar\n\t\tvar scrollBarVis = divBodyEl.scrollHeight > divBodyEl.clientHeight;\n\t\t\n\t\tif ( settings.scrollBarVis !== scrollBarVis && settings.scrollBarVis !== undefined ) {\n\t\t\tsettings.scrollBarVis = scrollBarVis;\n\t\t\t_fnAdjustColumnSizing( settings );\n\t\t\treturn; // adjust column sizing will call this function again\n\t\t}\n\t\telse {\n\t\t\tsettings.scrollBarVis = scrollBarVis;\n\t\t}\n\t\n\t\t/*\n\t\t * 1. Re-create the table inside the scrolling div\n\t\t */\n\t\n\t\t// Remove the old minimised thead and tfoot elements in the inner table\n\t\ttable.children('thead, tfoot').remove();\n\t\n\t\tif ( footer ) {\n\t\t\tfooterCopy = footer.clone().prependTo( table );\n\t\t\tfooterTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized\n\t\t\tfooterSrcEls = footerCopy.find('tr');\n\t\t}\n\t\n\t\t// Clone the current header and footer elements and then place it into the inner table\n\t\theaderCopy = header.clone().prependTo( table );\n\t\theaderTrgEls = header.find('tr'); // original header is in its own table\n\t\theaderSrcEls = headerCopy.find('tr');\n\t\theaderCopy.find('th, td').removeAttr('tabindex');\n\t\n\t\n\t\t/*\n\t\t * 2. Take live measurements from the DOM - do not alter the DOM itself!\n\t\t */\n\t\n\t\t// Remove old sizing and apply the calculated column widths\n\t\t// Get the unique column headers in the newly created (cloned) header. We want to apply the\n\t\t// calculated sizes to this header\n\t\tif ( ! scrollX )\n\t\t{\n\t\t\tdivBodyStyle.width = '100%';\n\t\t\tdivHeader[0].style.width = '100%';\n\t\t}\n\t\n\t\t$.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {\n\t\t\tidx = _fnVisibleToColumnIndex( settings, i );\n\t\t\tel.style.width = settings.aoColumns[idx].sWidth;\n\t\t} );\n\t\n\t\tif ( footer ) {\n\t\t\t_fnApplyToChildren( function(n) {\n\t\t\t\tn.style.width = \"\";\n\t\t\t}, footerSrcEls );\n\t\t}\n\t\n\t\t// Size the table as a whole\n\t\tsanityWidth = table.outerWidth();\n\t\tif ( scrollX === \"\" ) {\n\t\t\t// No x scrolling\n\t\t\ttableStyle.width = \"100%\";\n\t\n\t\t\t// IE7 will make the width of the table when 100% include the scrollbar\n\t\t\t// - which is shouldn't. When there is a scrollbar we need to take this\n\t\t\t// into account.\n\t\t\tif ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight ||\n\t\t\t\tdivBody.css('overflow-y') == \"scroll\")\n\t\t\t) {\n\t\t\t\ttableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);\n\t\t\t}\n\t\n\t\t\t// Recalculate the sanity width\n\t\t\tsanityWidth = table.outerWidth();\n\t\t}\n\t\telse if ( scrollXInner !== \"\" ) {\n\t\t\t// legacy x scroll inner has been given - use it\n\t\t\ttableStyle.width = _fnStringToCss(scrollXInner);\n\t\n\t\t\t// Recalculate the sanity width\n\t\t\tsanityWidth = table.outerWidth();\n\t\t}\n\t\n\t\t// Hidden header should have zero height, so remove padding and borders. Then\n\t\t// set the width based on the real headers\n\t\n\t\t// Apply all styles in one pass\n\t\t_fnApplyToChildren( zeroOut, headerSrcEls );\n\t\n\t\t// Read all widths in next pass\n\t\t_fnApplyToChildren( function(nSizer) {\n\t\t\theaderContent.push( nSizer.innerHTML );\n\t\t\theaderWidths.push( _fnStringToCss( $(nSizer).css('width') ) );\n\t\t}, headerSrcEls );\n\t\n\t\t// Apply all widths in final pass\n\t\t_fnApplyToChildren( function(nToSize, i) {\n\t\t\t// Only apply widths to the DataTables detected header cells - this\n\t\t\t// prevents complex headers from having contradictory sizes applied\n\t\t\tif ( $.inArray( nToSize, dtHeaderCells ) !== -1 ) {\n\t\t\t\tnToSize.style.width = headerWidths[i];\n\t\t\t}\n\t\t}, headerTrgEls );\n\t\n\t\t$(headerSrcEls).height(0);\n\t\n\t\t/* Same again with the footer if we have one */\n\t\tif ( footer )\n\t\t{\n\t\t\t_fnApplyToChildren( zeroOut, footerSrcEls );\n\t\n\t\t\t_fnApplyToChildren( function(nSizer) {\n\t\t\t\tfooterContent.push( nSizer.innerHTML );\n\t\t\t\tfooterWidths.push( _fnStringToCss( $(nSizer).css('width') ) );\n\t\t\t}, footerSrcEls );\n\t\n\t\t\t_fnApplyToChildren( function(nToSize, i) {\n\t\t\t\tnToSize.style.width = footerWidths[i];\n\t\t\t}, footerTrgEls );\n\t\n\t\t\t$(footerSrcEls).height(0);\n\t\t}\n\t\n\t\n\t\t/*\n\t\t * 3. Apply the measurements\n\t\t */\n\t\n\t\t// \"Hide\" the header and footer that we used for the sizing. We need to keep\n\t\t// the content of the cell so that the width applied to the header and body\n\t\t// both match, but we want to hide it completely. We want to also fix their\n\t\t// width to what they currently are\n\t\t_fnApplyToChildren( function(nSizer, i) {\n\t\t\tnSizer.innerHTML = '<div class=\"dataTables_sizing\">'+headerContent[i]+'</div>';\n\t\t\tnSizer.childNodes[0].style.height = \"0\";\n\t\t\tnSizer.childNodes[0].style.overflow = \"hidden\";\n\t\t\tnSizer.style.width = headerWidths[i];\n\t\t}, headerSrcEls );\n\t\n\t\tif ( footer )\n\t\t{\n\t\t\t_fnApplyToChildren( function(nSizer, i) {\n\t\t\t\tnSizer.innerHTML = '<div class=\"dataTables_sizing\">'+footerContent[i]+'</div>';\n\t\t\t\tnSizer.childNodes[0].style.height = \"0\";\n\t\t\t\tnSizer.childNodes[0].style.overflow = \"hidden\";\n\t\t\t\tnSizer.style.width = footerWidths[i];\n\t\t\t}, footerSrcEls );\n\t\t}\n\t\n\t\t// Sanity check that the table is of a sensible width. If not then we are going to get\n\t\t// misalignment - try to prevent this by not allowing the table to shrink below its min width\n\t\tif ( table.outerWidth() < sanityWidth )\n\t\t{\n\t\t\t// The min width depends upon if we have a vertical scrollbar visible or not */\n\t\t\tcorrection = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight ||\n\t\t\t\tdivBody.css('overflow-y') == \"scroll\")) ?\n\t\t\t\t\tsanityWidth+barWidth :\n\t\t\t\t\tsanityWidth;\n\t\n\t\t\t// IE6/7 are a law unto themselves...\n\t\t\tif ( ie67 && (divBodyEl.scrollHeight >\n\t\t\t\tdivBodyEl.offsetHeight || divBody.css('overflow-y') == \"scroll\")\n\t\t\t) {\n\t\t\t\ttableStyle.width = _fnStringToCss( correction-barWidth );\n\t\t\t}\n\t\n\t\t\t// And give the user a warning that we've stopped the table getting too small\n\t\t\tif ( scrollX === \"\" || scrollXInner !== \"\" ) {\n\t\t\t\t_fnLog( settings, 1, 'Possible column misalignment', 6 );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcorrection = '100%';\n\t\t}\n\t\n\t\t// Apply to the container elements\n\t\tdivBodyStyle.width = _fnStringToCss( correction );\n\t\tdivHeaderStyle.width = _fnStringToCss( correction );\n\t\n\t\tif ( footer ) {\n\t\t\tsettings.nScrollFoot.style.width = _fnStringToCss( correction );\n\t\t}\n\t\n\t\n\t\t/*\n\t\t * 4. Clean up\n\t\t */\n\t\tif ( ! scrollY ) {\n\t\t\t/* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting\n\t\t\t * the scrollbar height from the visible display, rather than adding it on. We need to\n\t\t\t * set the height in order to sort this. Don't want to do it in any other browsers.\n\t\t\t */\n\t\t\tif ( ie67 ) {\n\t\t\t\tdivBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth );\n\t\t\t}\n\t\t}\n\t\n\t\t/* Finally set the width's of the header and footer tables */\n\t\tvar iOuterWidth = table.outerWidth();\n\t\tdivHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );\n\t\tdivHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );\n\t\n\t\t// Figure out if there are scrollbar present - if so then we need a the header and footer to\n\t\t// provide a bit more space to allow \"overflow\" scrolling (i.e. past the scrollbar)\n\t\tvar bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == \"scroll\";\n\t\tvar padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' );\n\t\tdivHeaderInnerStyle[ padding ] = bScrolling ? barWidth+\"px\" : \"0px\";\n\t\n\t\tif ( footer ) {\n\t\t\tdivFooterTable[0].style.width = _fnStringToCss( iOuterWidth );\n\t\t\tdivFooterInner[0].style.width = _fnStringToCss( iOuterWidth );\n\t\t\tdivFooterInner[0].style[padding] = bScrolling ? barWidth+\"px\" : \"0px\";\n\t\t}\n\t\n\t\t// Correct DOM ordering for colgroup - comes before the thead\n\t\ttable.children('colgroup').insertBefore( table.children('thead') );\n\t\n\t\t/* Adjust the position of the header in case we loose the y-scrollbar */\n\t\tdivBody.scroll();\n\t\n\t\t// If sorting or filtering has occurred, jump the scrolling back to the top\n\t\t// only if we aren't holding the position\n\t\tif ( (settings.bSorted || settings.bFiltered) && ! settings._drawHold ) {\n\t\t\tdivBodyEl.scrollTop = 0;\n\t\t}\n\t}\n\t\n\t\n\t\n\t/**\n\t * Apply a given function to the display child nodes of an element array (typically\n\t * TD children of TR rows\n\t *  @param {function} fn Method to apply to the objects\n\t *  @param array {nodes} an1 List of elements to look through for display children\n\t *  @param array {nodes} an2 Another list (identical structure to the first) - optional\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnApplyToChildren( fn, an1, an2 )\n\t{\n\t\tvar index=0, i=0, iLen=an1.length;\n\t\tvar nNode1, nNode2;\n\t\n\t\twhile ( i < iLen ) {\n\t\t\tnNode1 = an1[i].firstChild;\n\t\t\tnNode2 = an2 ? an2[i].firstChild : null;\n\t\n\t\t\twhile ( nNode1 ) {\n\t\t\t\tif ( nNode1.nodeType === 1 ) {\n\t\t\t\t\tif ( an2 ) {\n\t\t\t\t\t\tfn( nNode1, nNode2, index );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfn( nNode1, index );\n\t\t\t\t\t}\n\t\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\n\t\t\t\tnNode1 = nNode1.nextSibling;\n\t\t\t\tnNode2 = an2 ? nNode2.nextSibling : null;\n\t\t\t}\n\t\n\t\t\ti++;\n\t\t}\n\t}\n\t\n\t\n\t\n\tvar __re_html_remove = /<.*?>/g;\n\t\n\t\n\t/**\n\t * Calculate the width of columns for the table\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnCalculateColumnWidths ( oSettings )\n\t{\n\t\tvar\n\t\t\ttable = oSettings.nTable,\n\t\t\tcolumns = oSettings.aoColumns,\n\t\t\tscroll = oSettings.oScroll,\n\t\t\tscrollY = scroll.sY,\n\t\t\tscrollX = scroll.sX,\n\t\t\tscrollXInner = scroll.sXInner,\n\t\t\tcolumnCount = columns.length,\n\t\t\tvisibleColumns = _fnGetColumns( oSettings, 'bVisible' ),\n\t\t\theaderCells = $('th', oSettings.nTHead),\n\t\t\ttableWidthAttr = table.getAttribute('width'), // from DOM element\n\t\t\ttableContainer = table.parentNode,\n\t\t\tuserInputs = false,\n\t\t\ti, column, columnIdx, width, outerWidth,\n\t\t\tbrowser = oSettings.oBrowser,\n\t\t\tie67 = browser.bScrollOversize;\n\t\n\t\tvar styleWidth = table.style.width;\n\t\tif ( styleWidth && styleWidth.indexOf('%') !== -1 ) {\n\t\t\ttableWidthAttr = styleWidth;\n\t\t}\n\t\n\t\t/* Convert any user input sizes into pixel sizes */\n\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\n\t\t\tcolumn = columns[ visibleColumns[i] ];\n\t\n\t\t\tif ( column.sWidth !== null ) {\n\t\t\t\tcolumn.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer );\n\t\n\t\t\t\tuserInputs = true;\n\t\t\t}\n\t\t}\n\t\n\t\t/* If the number of columns in the DOM equals the number that we have to\n\t\t * process in DataTables, then we can use the offsets that are created by\n\t\t * the web- browser. No custom sizes can be set in order for this to happen,\n\t\t * nor scrolling used\n\t\t */\n\t\tif ( ie67 || ! userInputs && ! scrollX && ! scrollY &&\n\t\t     columnCount == _fnVisbleColumns( oSettings ) &&\n\t\t     columnCount == headerCells.length\n\t\t) {\n\t\t\tfor ( i=0 ; i<columnCount ; i++ ) {\n\t\t\t\tvar colIdx = _fnVisibleToColumnIndex( oSettings, i );\n\t\n\t\t\t\tif ( colIdx !== null ) {\n\t\t\t\t\tcolumns[ colIdx ].sWidth = _fnStringToCss( headerCells.eq(i).width() );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Otherwise construct a single row, worst case, table with the widest\n\t\t\t// node in the data, assign any user defined widths, then insert it into\n\t\t\t// the DOM and allow the browser to do all the hard work of calculating\n\t\t\t// table widths\n\t\t\tvar tmpTable = $(table).clone() // don't use cloneNode - IE8 will remove events on the main table\n\t\t\t\t.css( 'visibility', 'hidden' )\n\t\t\t\t.removeAttr( 'id' );\n\t\n\t\t\t// Clean up the table body\n\t\t\ttmpTable.find('tbody tr').remove();\n\t\t\tvar tr = $('<tr/>').appendTo( tmpTable.find('tbody') );\n\t\n\t\t\t// Clone the table header and footer - we can't use the header / footer\n\t\t\t// from the cloned table, since if scrolling is active, the table's\n\t\t\t// real header and footer are contained in different table tags\n\t\t\ttmpTable.find('thead, tfoot').remove();\n\t\t\ttmpTable\n\t\t\t\t.append( $(oSettings.nTHead).clone() )\n\t\t\t\t.append( $(oSettings.nTFoot).clone() );\n\t\n\t\t\t// Remove any assigned widths from the footer (from scrolling)\n\t\t\ttmpTable.find('tfoot th, tfoot td').css('width', '');\n\t\n\t\t\t// Apply custom sizing to the cloned header\n\t\t\theaderCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] );\n\t\n\t\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\n\t\t\t\tcolumn = columns[ visibleColumns[i] ];\n\t\n\t\t\t\theaderCells[i].style.width = column.sWidthOrig !== null && column.sWidthOrig !== '' ?\n\t\t\t\t\t_fnStringToCss( column.sWidthOrig ) :\n\t\t\t\t\t'';\n\t\n\t\t\t\t// For scrollX we need to force the column width otherwise the\n\t\t\t\t// browser will collapse it. If this width is smaller than the\n\t\t\t\t// width the column requires, then it will have no effect\n\t\t\t\tif ( column.sWidthOrig && scrollX ) {\n\t\t\t\t\t$( headerCells[i] ).append( $('<div/>').css( {\n\t\t\t\t\t\twidth: column.sWidthOrig,\n\t\t\t\t\t\tmargin: 0,\n\t\t\t\t\t\tpadding: 0,\n\t\t\t\t\t\tborder: 0,\n\t\t\t\t\t\theight: 1\n\t\t\t\t\t} ) );\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t// Find the widest cell for each column and put it into the table\n\t\t\tif ( oSettings.aoData.length ) {\n\t\t\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\n\t\t\t\t\tcolumnIdx = visibleColumns[i];\n\t\t\t\t\tcolumn = columns[ columnIdx ];\n\t\n\t\t\t\t\t$( _fnGetWidestNode( oSettings, columnIdx ) )\n\t\t\t\t\t\t.clone( false )\n\t\t\t\t\t\t.append( column.sContentPadding )\n\t\t\t\t\t\t.appendTo( tr );\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t// Tidy the temporary table - remove name attributes so there aren't\n\t\t\t// duplicated in the dom (radio elements for example)\n\t\t\t$('[name]', tmpTable).removeAttr('name');\n\t\n\t\t\t// Table has been built, attach to the document so we can work with it.\n\t\t\t// A holding element is used, positioned at the top of the container\n\t\t\t// with minimal height, so it has no effect on if the container scrolls\n\t\t\t// or not. Otherwise it might trigger scrolling when it actually isn't\n\t\t\t// needed\n\t\t\tvar holder = $('<div/>').css( scrollX || scrollY ?\n\t\t\t\t\t{\n\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\theight: 1,\n\t\t\t\t\t\tright: 0,\n\t\t\t\t\t\toverflow: 'hidden'\n\t\t\t\t\t} :\n\t\t\t\t\t{}\n\t\t\t\t)\n\t\t\t\t.append( tmpTable )\n\t\t\t\t.appendTo( tableContainer );\n\t\n\t\t\t// When scrolling (X or Y) we want to set the width of the table as \n\t\t\t// appropriate. However, when not scrolling leave the table width as it\n\t\t\t// is. This results in slightly different, but I think correct behaviour\n\t\t\tif ( scrollX && scrollXInner ) {\n\t\t\t\ttmpTable.width( scrollXInner );\n\t\t\t}\n\t\t\telse if ( scrollX ) {\n\t\t\t\ttmpTable.css( 'width', 'auto' );\n\t\t\t\ttmpTable.removeAttr('width');\n\t\n\t\t\t\t// If there is no width attribute or style, then allow the table to\n\t\t\t\t// collapse\n\t\t\t\tif ( tmpTable.width() < tableContainer.clientWidth && tableWidthAttr ) {\n\t\t\t\t\ttmpTable.width( tableContainer.clientWidth );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( scrollY ) {\n\t\t\t\ttmpTable.width( tableContainer.clientWidth );\n\t\t\t}\n\t\t\telse if ( tableWidthAttr ) {\n\t\t\t\ttmpTable.width( tableWidthAttr );\n\t\t\t}\n\t\n\t\t\t// Get the width of each column in the constructed table - we need to\n\t\t\t// know the inner width (so it can be assigned to the other table's\n\t\t\t// cells) and the outer width so we can calculate the full width of the\n\t\t\t// table. This is safe since DataTables requires a unique cell for each\n\t\t\t// column, but if ever a header can span multiple columns, this will\n\t\t\t// need to be modified.\n\t\t\tvar total = 0;\n\t\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\n\t\t\t\tvar cell = $(headerCells[i]);\n\t\t\t\tvar border = cell.outerWidth() - cell.width();\n\t\n\t\t\t\t// Use getBounding... where possible (not IE8-) because it can give\n\t\t\t\t// sub-pixel accuracy, which we then want to round up!\n\t\t\t\tvar bounding = browser.bBounding ?\n\t\t\t\t\tMath.ceil( headerCells[i].getBoundingClientRect().width ) :\n\t\t\t\t\tcell.outerWidth();\n\t\n\t\t\t\t// Total is tracked to remove any sub-pixel errors as the outerWidth\n\t\t\t\t// of the table might not equal the total given here (IE!).\n\t\t\t\ttotal += bounding;\n\t\n\t\t\t\t// Width for each column to use\n\t\t\t\tcolumns[ visibleColumns[i] ].sWidth = _fnStringToCss( bounding - border );\n\t\t\t}\n\t\n\t\t\ttable.style.width = _fnStringToCss( total );\n\t\n\t\t\t// Finished with the table - ditch it\n\t\t\tholder.remove();\n\t\t}\n\t\n\t\t// If there is a width attr, we want to attach an event listener which\n\t\t// allows the table sizing to automatically adjust when the window is\n\t\t// resized. Use the width attr rather than CSS, since we can't know if the\n\t\t// CSS is a relative value or absolute - DOM read is always px.\n\t\tif ( tableWidthAttr ) {\n\t\t\ttable.style.width = _fnStringToCss( tableWidthAttr );\n\t\t}\n\t\n\t\tif ( (tableWidthAttr || scrollX) && ! oSettings._reszEvt ) {\n\t\t\tvar bindResize = function () {\n\t\t\t\t$(window).on('resize.DT-'+oSettings.sInstance, _fnThrottle( function () {\n\t\t\t\t\t_fnAdjustColumnSizing( oSettings );\n\t\t\t\t} ) );\n\t\t\t};\n\t\n\t\t\t// IE6/7 will crash if we bind a resize event handler on page load.\n\t\t\t// To be removed in 1.11 which drops IE6/7 support\n\t\t\tif ( ie67 ) {\n\t\t\t\tsetTimeout( bindResize, 1000 );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindResize();\n\t\t\t}\n\t\n\t\t\toSettings._reszEvt = true;\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Throttle the calls to a function. Arguments and context are maintained for\n\t * the throttled function\n\t *  @param {function} fn Function to be called\n\t *  @param {int} [freq=200] call frequency in mS\n\t *  @returns {function} wrapped function\n\t *  @memberof DataTable#oApi\n\t */\n\tvar _fnThrottle = DataTable.util.throttle;\n\t\n\t\n\t/**\n\t * Convert a CSS unit width to pixels (e.g. 2em)\n\t *  @param {string} width width to be converted\n\t *  @param {node} parent parent to get the with for (required for relative widths) - optional\n\t *  @returns {int} width in pixels\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnConvertToWidth ( width, parent )\n\t{\n\t\tif ( ! width ) {\n\t\t\treturn 0;\n\t\t}\n\t\n\t\tvar n = $('<div/>')\n\t\t\t.css( 'width', _fnStringToCss( width ) )\n\t\t\t.appendTo( parent || document.body );\n\t\n\t\tvar val = n[0].offsetWidth;\n\t\tn.remove();\n\t\n\t\treturn val;\n\t}\n\t\n\t\n\t/**\n\t * Get the widest node\n\t *  @param {object} settings dataTables settings object\n\t *  @param {int} colIdx column of interest\n\t *  @returns {node} widest table node\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnGetWidestNode( settings, colIdx )\n\t{\n\t\tvar idx = _fnGetMaxLenString( settings, colIdx );\n\t\tif ( idx < 0 ) {\n\t\t\treturn null;\n\t\t}\n\t\n\t\tvar data = settings.aoData[ idx ];\n\t\treturn ! data.nTr ? // Might not have been created when deferred rendering\n\t\t\t$('<td/>').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] :\n\t\t\tdata.anCells[ colIdx ];\n\t}\n\t\n\t\n\t/**\n\t * Get the maximum strlen for each data column\n\t *  @param {object} settings dataTables settings object\n\t *  @param {int} colIdx column of interest\n\t *  @returns {string} max string length for each column\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnGetMaxLenString( settings, colIdx )\n\t{\n\t\tvar s, max=-1, maxIdx = -1;\n\t\n\t\tfor ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\n\t\t\ts = _fnGetCellData( settings, i, colIdx, 'display' )+'';\n\t\t\ts = s.replace( __re_html_remove, '' );\n\t\t\ts = s.replace( /&nbsp;/g, ' ' );\n\t\n\t\t\tif ( s.length > max ) {\n\t\t\t\tmax = s.length;\n\t\t\t\tmaxIdx = i;\n\t\t\t}\n\t\t}\n\t\n\t\treturn maxIdx;\n\t}\n\t\n\t\n\t/**\n\t * Append a CSS unit (only if required) to a string\n\t *  @param {string} value to css-ify\n\t *  @returns {string} value with css unit\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnStringToCss( s )\n\t{\n\t\tif ( s === null ) {\n\t\t\treturn '0px';\n\t\t}\n\t\n\t\tif ( typeof s == 'number' ) {\n\t\t\treturn s < 0 ?\n\t\t\t\t'0px' :\n\t\t\t\ts+'px';\n\t\t}\n\t\n\t\t// Check it has a unit character already\n\t\treturn s.match(/\\d$/) ?\n\t\t\ts+'px' :\n\t\t\ts;\n\t}\n\t\n\t\n\t\n\tfunction _fnSortFlatten ( settings )\n\t{\n\t\tvar\n\t\t\ti, iLen, k, kLen,\n\t\t\taSort = [],\n\t\t\taiOrig = [],\n\t\t\taoColumns = settings.aoColumns,\n\t\t\taDataSort, iCol, sType, srcCol,\n\t\t\tfixed = settings.aaSortingFixed,\n\t\t\tfixedObj = $.isPlainObject( fixed ),\n\t\t\tnestedSort = [],\n\t\t\tadd = function ( a ) {\n\t\t\t\tif ( a.length && ! $.isArray( a[0] ) ) {\n\t\t\t\t\t// 1D array\n\t\t\t\t\tnestedSort.push( a );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// 2D array\n\t\t\t\t\t$.merge( nestedSort, a );\n\t\t\t\t}\n\t\t\t};\n\t\n\t\t// Build the sort array, with pre-fix and post-fix options if they have been\n\t\t// specified\n\t\tif ( $.isArray( fixed ) ) {\n\t\t\tadd( fixed );\n\t\t}\n\t\n\t\tif ( fixedObj && fixed.pre ) {\n\t\t\tadd( fixed.pre );\n\t\t}\n\t\n\t\tadd( settings.aaSorting );\n\t\n\t\tif (fixedObj && fixed.post ) {\n\t\t\tadd( fixed.post );\n\t\t}\n\t\n\t\tfor ( i=0 ; i<nestedSort.length ; i++ )\n\t\t{\n\t\t\tsrcCol = nestedSort[i][0];\n\t\t\taDataSort = aoColumns[ srcCol ].aDataSort;\n\t\n\t\t\tfor ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )\n\t\t\t{\n\t\t\t\tiCol = aDataSort[k];\n\t\t\t\tsType = aoColumns[ iCol ].sType || 'string';\n\t\n\t\t\t\tif ( nestedSort[i]._idx === undefined ) {\n\t\t\t\t\tnestedSort[i]._idx = $.inArray( nestedSort[i][1], aoColumns[iCol].asSorting );\n\t\t\t\t}\n\t\n\t\t\t\taSort.push( {\n\t\t\t\t\tsrc:       srcCol,\n\t\t\t\t\tcol:       iCol,\n\t\t\t\t\tdir:       nestedSort[i][1],\n\t\t\t\t\tindex:     nestedSort[i]._idx,\n\t\t\t\t\ttype:      sType,\n\t\t\t\t\tformatter: DataTable.ext.type.order[ sType+\"-pre\" ]\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t\n\t\treturn aSort;\n\t}\n\t\n\t/**\n\t * Change the order of the table\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t *  @todo This really needs split up!\n\t */\n\tfunction _fnSort ( oSettings )\n\t{\n\t\tvar\n\t\t\ti, ien, iLen, j, jLen, k, kLen,\n\t\t\tsDataType, nTh,\n\t\t\taiOrig = [],\n\t\t\toExtSort = DataTable.ext.type.order,\n\t\t\taoData = oSettings.aoData,\n\t\t\taoColumns = oSettings.aoColumns,\n\t\t\taDataSort, data, iCol, sType, oSort,\n\t\t\tformatters = 0,\n\t\t\tsortCol,\n\t\t\tdisplayMaster = oSettings.aiDisplayMaster,\n\t\t\taSort;\n\t\n\t\t// Resolve any column types that are unknown due to addition or invalidation\n\t\t// @todo Can this be moved into a 'data-ready' handler which is called when\n\t\t//   data is going to be used in the table?\n\t\t_fnColumnTypes( oSettings );\n\t\n\t\taSort = _fnSortFlatten( oSettings );\n\t\n\t\tfor ( i=0, ien=aSort.length ; i<ien ; i++ ) {\n\t\t\tsortCol = aSort[i];\n\t\n\t\t\t// Track if we can use the fast sort algorithm\n\t\t\tif ( sortCol.formatter ) {\n\t\t\t\tformatters++;\n\t\t\t}\n\t\n\t\t\t// Load the data needed for the sort, for each cell\n\t\t\t_fnSortData( oSettings, sortCol.col );\n\t\t}\n\t\n\t\t/* No sorting required if server-side or no sorting array */\n\t\tif ( _fnDataSource( oSettings ) != 'ssp' && aSort.length !== 0 )\n\t\t{\n\t\t\t// Create a value - key array of the current row positions such that we can use their\n\t\t\t// current position during the sort, if values match, in order to perform stable sorting\n\t\t\tfor ( i=0, iLen=displayMaster.length ; i<iLen ; i++ ) {\n\t\t\t\taiOrig[ displayMaster[i] ] = i;\n\t\t\t}\n\t\n\t\t\t/* Do the sort - here we want multi-column sorting based on a given data source (column)\n\t\t\t * and sorting function (from oSort) in a certain direction. It's reasonably complex to\n\t\t\t * follow on it's own, but this is what we want (example two column sorting):\n\t\t\t *  fnLocalSorting = function(a,b){\n\t\t\t *    var iTest;\n\t\t\t *    iTest = oSort['string-asc']('data11', 'data12');\n\t\t\t *      if (iTest !== 0)\n\t\t\t *        return iTest;\n\t\t\t *    iTest = oSort['numeric-desc']('data21', 'data22');\n\t\t\t *    if (iTest !== 0)\n\t\t\t *      return iTest;\n\t\t\t *    return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );\n\t\t\t *  }\n\t\t\t * Basically we have a test for each sorting column, if the data in that column is equal,\n\t\t\t * test the next column. If all columns match, then we use a numeric sort on the row\n\t\t\t * positions in the original data array to provide a stable sort.\n\t\t\t *\n\t\t\t * Note - I know it seems excessive to have two sorting methods, but the first is around\n\t\t\t * 15% faster, so the second is only maintained for backwards compatibility with sorting\n\t\t\t * methods which do not have a pre-sort formatting function.\n\t\t\t */\n\t\t\tif ( formatters === aSort.length ) {\n\t\t\t\t// All sort types have formatting functions\n\t\t\t\tdisplayMaster.sort( function ( a, b ) {\n\t\t\t\t\tvar\n\t\t\t\t\t\tx, y, k, test, sort,\n\t\t\t\t\t\tlen=aSort.length,\n\t\t\t\t\t\tdataA = aoData[a]._aSortData,\n\t\t\t\t\t\tdataB = aoData[b]._aSortData;\n\t\n\t\t\t\t\tfor ( k=0 ; k<len ; k++ ) {\n\t\t\t\t\t\tsort = aSort[k];\n\t\n\t\t\t\t\t\tx = dataA[ sort.col ];\n\t\t\t\t\t\ty = dataB[ sort.col ];\n\t\n\t\t\t\t\t\ttest = x<y ? -1 : x>y ? 1 : 0;\n\t\t\t\t\t\tif ( test !== 0 ) {\n\t\t\t\t\t\t\treturn sort.dir === 'asc' ? test : -test;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\n\t\t\t\t\tx = aiOrig[a];\n\t\t\t\t\ty = aiOrig[b];\n\t\t\t\t\treturn x<y ? -1 : x>y ? 1 : 0;\n\t\t\t\t} );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Depreciated - remove in 1.11 (providing a plug-in option)\n\t\t\t\t// Not all sort types have formatting methods, so we have to call their sorting\n\t\t\t\t// methods.\n\t\t\t\tdisplayMaster.sort( function ( a, b ) {\n\t\t\t\t\tvar\n\t\t\t\t\t\tx, y, k, l, test, sort, fn,\n\t\t\t\t\t\tlen=aSort.length,\n\t\t\t\t\t\tdataA = aoData[a]._aSortData,\n\t\t\t\t\t\tdataB = aoData[b]._aSortData;\n\t\n\t\t\t\t\tfor ( k=0 ; k<len ; k++ ) {\n\t\t\t\t\t\tsort = aSort[k];\n\t\n\t\t\t\t\t\tx = dataA[ sort.col ];\n\t\t\t\t\t\ty = dataB[ sort.col ];\n\t\n\t\t\t\t\t\tfn = oExtSort[ sort.type+\"-\"+sort.dir ] || oExtSort[ \"string-\"+sort.dir ];\n\t\t\t\t\t\ttest = fn( x, y );\n\t\t\t\t\t\tif ( test !== 0 ) {\n\t\t\t\t\t\t\treturn test;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\n\t\t\t\t\tx = aiOrig[a];\n\t\t\t\t\ty = aiOrig[b];\n\t\t\t\t\treturn x<y ? -1 : x>y ? 1 : 0;\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t\n\t\t/* Tell the draw function that we have sorted the data */\n\t\toSettings.bSorted = true;\n\t}\n\t\n\t\n\tfunction _fnSortAria ( settings )\n\t{\n\t\tvar label;\n\t\tvar nextSort;\n\t\tvar columns = settings.aoColumns;\n\t\tvar aSort = _fnSortFlatten( settings );\n\t\tvar oAria = settings.oLanguage.oAria;\n\t\n\t\t// ARIA attributes - need to loop all columns, to update all (removing old\n\t\t// attributes as needed)\n\t\tfor ( var i=0, iLen=columns.length ; i<iLen ; i++ )\n\t\t{\n\t\t\tvar col = columns[i];\n\t\t\tvar asSorting = col.asSorting;\n\t\t\tvar sTitle = col.sTitle.replace( /<.*?>/g, \"\" );\n\t\t\tvar th = col.nTh;\n\t\n\t\t\t// IE7 is throwing an error when setting these properties with jQuery's\n\t\t\t// attr() and removeAttr() methods...\n\t\t\tth.removeAttribute('aria-sort');\n\t\n\t\t\t/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */\n\t\t\tif ( col.bSortable ) {\n\t\t\t\tif ( aSort.length > 0 && aSort[0].col == i ) {\n\t\t\t\t\tth.setAttribute('aria-sort', aSort[0].dir==\"asc\" ? \"ascending\" : \"descending\" );\n\t\t\t\t\tnextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnextSort = asSorting[0];\n\t\t\t\t}\n\t\n\t\t\t\tlabel = sTitle + ( nextSort === \"asc\" ?\n\t\t\t\t\toAria.sSortAscending :\n\t\t\t\t\toAria.sSortDescending\n\t\t\t\t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlabel = sTitle;\n\t\t\t}\n\t\n\t\t\tth.setAttribute('aria-label', label);\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Function to run on user sort request\n\t *  @param {object} settings dataTables settings object\n\t *  @param {node} attachTo node to attach the handler to\n\t *  @param {int} colIdx column sorting index\n\t *  @param {boolean} [append=false] Append the requested sort to the existing\n\t *    sort if true (i.e. multi-column sort)\n\t *  @param {function} [callback] callback function\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnSortListener ( settings, colIdx, append, callback )\n\t{\n\t\tvar col = settings.aoColumns[ colIdx ];\n\t\tvar sorting = settings.aaSorting;\n\t\tvar asSorting = col.asSorting;\n\t\tvar nextSortIdx;\n\t\tvar next = function ( a, overflow ) {\n\t\t\tvar idx = a._idx;\n\t\t\tif ( idx === undefined ) {\n\t\t\t\tidx = $.inArray( a[1], asSorting );\n\t\t\t}\n\t\n\t\t\treturn idx+1 < asSorting.length ?\n\t\t\t\tidx+1 :\n\t\t\t\toverflow ?\n\t\t\t\t\tnull :\n\t\t\t\t\t0;\n\t\t};\n\t\n\t\t// Convert to 2D array if needed\n\t\tif ( typeof sorting[0] === 'number' ) {\n\t\t\tsorting = settings.aaSorting = [ sorting ];\n\t\t}\n\t\n\t\t// If appending the sort then we are multi-column sorting\n\t\tif ( append && settings.oFeatures.bSortMulti ) {\n\t\t\t// Are we already doing some kind of sort on this column?\n\t\t\tvar sortIdx = $.inArray( colIdx, _pluck(sorting, '0') );\n\t\n\t\t\tif ( sortIdx !== -1 ) {\n\t\t\t\t// Yes, modify the sort\n\t\t\t\tnextSortIdx = next( sorting[sortIdx], true );\n\t\n\t\t\t\tif ( nextSortIdx === null && sorting.length === 1 ) {\n\t\t\t\t\tnextSortIdx = 0; // can't remove sorting completely\n\t\t\t\t}\n\t\n\t\t\t\tif ( nextSortIdx === null ) {\n\t\t\t\t\tsorting.splice( sortIdx, 1 );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsorting[sortIdx][1] = asSorting[ nextSortIdx ];\n\t\t\t\t\tsorting[sortIdx]._idx = nextSortIdx;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// No sort on this column yet\n\t\t\t\tsorting.push( [ colIdx, asSorting[0], 0 ] );\n\t\t\t\tsorting[sorting.length-1]._idx = 0;\n\t\t\t}\n\t\t}\n\t\telse if ( sorting.length && sorting[0][0] == colIdx ) {\n\t\t\t// Single column - already sorting on this column, modify the sort\n\t\t\tnextSortIdx = next( sorting[0] );\n\t\n\t\t\tsorting.length = 1;\n\t\t\tsorting[0][1] = asSorting[ nextSortIdx ];\n\t\t\tsorting[0]._idx = nextSortIdx;\n\t\t}\n\t\telse {\n\t\t\t// Single column - sort only on this column\n\t\t\tsorting.length = 0;\n\t\t\tsorting.push( [ colIdx, asSorting[0] ] );\n\t\t\tsorting[0]._idx = 0;\n\t\t}\n\t\n\t\t// Run the sort by calling a full redraw\n\t\t_fnReDraw( settings );\n\t\n\t\t// callback used for async user interaction\n\t\tif ( typeof callback == 'function' ) {\n\t\t\tcallback( settings );\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Attach a sort handler (click) to a node\n\t *  @param {object} settings dataTables settings object\n\t *  @param {node} attachTo node to attach the handler to\n\t *  @param {int} colIdx column sorting index\n\t *  @param {function} [callback] callback function\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnSortAttachListener ( settings, attachTo, colIdx, callback )\n\t{\n\t\tvar col = settings.aoColumns[ colIdx ];\n\t\n\t\t_fnBindAction( attachTo, {}, function (e) {\n\t\t\t/* If the column is not sortable - don't to anything */\n\t\t\tif ( col.bSortable === false ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\t// If processing is enabled use a timeout to allow the processing\n\t\t\t// display to be shown - otherwise to it synchronously\n\t\t\tif ( settings.oFeatures.bProcessing ) {\n\t\t\t\t_fnProcessingDisplay( settings, true );\n\t\n\t\t\t\tsetTimeout( function() {\n\t\t\t\t\t_fnSortListener( settings, colIdx, e.shiftKey, callback );\n\t\n\t\t\t\t\t// In server-side processing, the draw callback will remove the\n\t\t\t\t\t// processing display\n\t\t\t\t\tif ( _fnDataSource( settings ) !== 'ssp' ) {\n\t\t\t\t\t\t_fnProcessingDisplay( settings, false );\n\t\t\t\t\t}\n\t\t\t\t}, 0 );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t_fnSortListener( settings, colIdx, e.shiftKey, callback );\n\t\t\t}\n\t\t} );\n\t}\n\t\n\t\n\t/**\n\t * Set the sorting classes on table's body, Note: it is safe to call this function\n\t * when bSort and bSortClasses are false\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnSortingClasses( settings )\n\t{\n\t\tvar oldSort = settings.aLastSort;\n\t\tvar sortClass = settings.oClasses.sSortColumn;\n\t\tvar sort = _fnSortFlatten( settings );\n\t\tvar features = settings.oFeatures;\n\t\tvar i, ien, colIdx;\n\t\n\t\tif ( features.bSort && features.bSortClasses ) {\n\t\t\t// Remove old sorting classes\n\t\t\tfor ( i=0, ien=oldSort.length ; i<ien ; i++ ) {\n\t\t\t\tcolIdx = oldSort[i].src;\n\t\n\t\t\t\t// Remove column sorting\n\t\t\t\t$( _pluck( settings.aoData, 'anCells', colIdx ) )\n\t\t\t\t\t.removeClass( sortClass + (i<2 ? i+1 : 3) );\n\t\t\t}\n\t\n\t\t\t// Add new column sorting\n\t\t\tfor ( i=0, ien=sort.length ; i<ien ; i++ ) {\n\t\t\t\tcolIdx = sort[i].src;\n\t\n\t\t\t\t$( _pluck( settings.aoData, 'anCells', colIdx ) )\n\t\t\t\t\t.addClass( sortClass + (i<2 ? i+1 : 3) );\n\t\t\t}\n\t\t}\n\t\n\t\tsettings.aLastSort = sort;\n\t}\n\t\n\t\n\t// Get the data to sort a column, be it from cache, fresh (populating the\n\t// cache), or from a sort formatter\n\tfunction _fnSortData( settings, idx )\n\t{\n\t\t// Custom sorting function - provided by the sort data type\n\t\tvar column = settings.aoColumns[ idx ];\n\t\tvar customSort = DataTable.ext.order[ column.sSortDataType ];\n\t\tvar customData;\n\t\n\t\tif ( customSort ) {\n\t\t\tcustomData = customSort.call( settings.oInstance, settings, idx,\n\t\t\t\t_fnColumnIndexToVisible( settings, idx )\n\t\t\t);\n\t\t}\n\t\n\t\t// Use / populate cache\n\t\tvar row, cellData;\n\t\tvar formatter = DataTable.ext.type.order[ column.sType+\"-pre\" ];\n\t\n\t\tfor ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\n\t\t\trow = settings.aoData[i];\n\t\n\t\t\tif ( ! row._aSortData ) {\n\t\t\t\trow._aSortData = [];\n\t\t\t}\n\t\n\t\t\tif ( ! row._aSortData[idx] || customSort ) {\n\t\t\t\tcellData = customSort ?\n\t\t\t\t\tcustomData[i] : // If there was a custom sort function, use data from there\n\t\t\t\t\t_fnGetCellData( settings, i, idx, 'sort' );\n\t\n\t\t\t\trow._aSortData[ idx ] = formatter ?\n\t\t\t\t\tformatter( cellData ) :\n\t\t\t\t\tcellData;\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t\n\t/**\n\t * Save the state of a table\n\t *  @param {object} oSettings dataTables settings object\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnSaveState ( settings )\n\t{\n\t\tif ( !settings.oFeatures.bStateSave || settings.bDestroying )\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\n\t\t/* Store the interesting variables */\n\t\tvar state = {\n\t\t\ttime:    +new Date(),\n\t\t\tstart:   settings._iDisplayStart,\n\t\t\tlength:  settings._iDisplayLength,\n\t\t\torder:   $.extend( true, [], settings.aaSorting ),\n\t\t\tsearch:  _fnSearchToCamel( settings.oPreviousSearch ),\n\t\t\tcolumns: $.map( settings.aoColumns, function ( col, i ) {\n\t\t\t\treturn {\n\t\t\t\t\tvisible: col.bVisible,\n\t\t\t\t\tsearch: _fnSearchToCamel( settings.aoPreSearchCols[i] )\n\t\t\t\t};\n\t\t\t} )\n\t\t};\n\t\n\t\t_fnCallbackFire( settings, \"aoStateSaveParams\", 'stateSaveParams', [settings, state] );\n\t\n\t\tsettings.oSavedState = state;\n\t\tsettings.fnStateSaveCallback.call( settings.oInstance, settings, state );\n\t}\n\t\n\t\n\t/**\n\t * Attempt to load a saved table state\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {object} oInit DataTables init object so we can override settings\n\t *  @param {function} callback Callback to execute when the state has been loaded\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnLoadState ( settings, oInit, callback )\n\t{\n\t\tvar i, ien;\n\t\tvar columns = settings.aoColumns;\n\t\tvar loaded = function ( s ) {\n\t\t\tif ( ! s || ! s.time ) {\n\t\t\t\tcallback();\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\t// Allow custom and plug-in manipulation functions to alter the saved data set and\n\t\t\t// cancelling of loading by returning false\n\t\t\tvar abStateLoad = _fnCallbackFire( settings, 'aoStateLoadParams', 'stateLoadParams', [settings, s] );\n\t\t\tif ( $.inArray( false, abStateLoad ) !== -1 ) {\n\t\t\t\tcallback();\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\t// Reject old data\n\t\t\tvar duration = settings.iStateDuration;\n\t\t\tif ( duration > 0 && s.time < +new Date() - (duration*1000) ) {\n\t\t\t\tcallback();\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\t// Number of columns have changed - all bets are off, no restore of settings\n\t\t\tif ( s.columns && columns.length !== s.columns.length ) {\n\t\t\t\tcallback();\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\t// Store the saved state so it might be accessed at any time\n\t\t\tsettings.oLoadedState = $.extend( true, {}, s );\n\t\n\t\t\t// Restore key features - todo - for 1.11 this needs to be done by\n\t\t\t// subscribed events\n\t\t\tif ( s.start !== undefined ) {\n\t\t\t\tsettings._iDisplayStart    = s.start;\n\t\t\t\tsettings.iInitDisplayStart = s.start;\n\t\t\t}\n\t\t\tif ( s.length !== undefined ) {\n\t\t\t\tsettings._iDisplayLength   = s.length;\n\t\t\t}\n\t\n\t\t\t// Order\n\t\t\tif ( s.order !== undefined ) {\n\t\t\t\tsettings.aaSorting = [];\n\t\t\t\t$.each( s.order, function ( i, col ) {\n\t\t\t\t\tsettings.aaSorting.push( col[0] >= columns.length ?\n\t\t\t\t\t\t[ 0, col[1] ] :\n\t\t\t\t\t\tcol\n\t\t\t\t\t);\n\t\t\t\t} );\n\t\t\t}\n\t\n\t\t\t// Search\n\t\t\tif ( s.search !== undefined ) {\n\t\t\t\t$.extend( settings.oPreviousSearch, _fnSearchToHung( s.search ) );\n\t\t\t}\n\t\n\t\t\t// Columns\n\t\t\t//\n\t\t\tif ( s.columns ) {\n\t\t\t\tfor ( i=0, ien=s.columns.length ; i<ien ; i++ ) {\n\t\t\t\t\tvar col = s.columns[i];\n\t\n\t\t\t\t\t// Visibility\n\t\t\t\t\tif ( col.visible !== undefined ) {\n\t\t\t\t\t\tcolumns[i].bVisible = col.visible;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t// Search\n\t\t\t\t\tif ( col.search !== undefined ) {\n\t\t\t\t\t\t$.extend( settings.aoPreSearchCols[i], _fnSearchToHung( col.search ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t_fnCallbackFire( settings, 'aoStateLoaded', 'stateLoaded', [settings, s] );\n\t\t\tcallback();\n\t\t}\n\t\n\t\tif ( ! settings.oFeatures.bStateSave ) {\n\t\t\tcallback();\n\t\t\treturn;\n\t\t}\n\t\n\t\tvar state = settings.fnStateLoadCallback.call( settings.oInstance, settings, loaded );\n\t\n\t\tif ( state !== undefined ) {\n\t\t\tloaded( state );\n\t\t}\n\t\t// otherwise, wait for the loaded callback to be executed\n\t}\n\t\n\t\n\t/**\n\t * Return the settings object for a particular table\n\t *  @param {node} table table we are using as a dataTable\n\t *  @returns {object} Settings object - or null if not found\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnSettingsFromNode ( table )\n\t{\n\t\tvar settings = DataTable.settings;\n\t\tvar idx = $.inArray( table, _pluck( settings, 'nTable' ) );\n\t\n\t\treturn idx !== -1 ?\n\t\t\tsettings[ idx ] :\n\t\t\tnull;\n\t}\n\t\n\t\n\t/**\n\t * Log an error message\n\t *  @param {object} settings dataTables settings object\n\t *  @param {int} level log error messages, or display them to the user\n\t *  @param {string} msg error message\n\t *  @param {int} tn Technical note id to get more information about the error.\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnLog( settings, level, msg, tn )\n\t{\n\t\tmsg = 'DataTables warning: '+\n\t\t\t(settings ? 'table id='+settings.sTableId+' - ' : '')+msg;\n\t\n\t\tif ( tn ) {\n\t\t\tmsg += '. For more information about this error, please see '+\n\t\t\t'http://datatables.net/tn/'+tn;\n\t\t}\n\t\n\t\tif ( ! level  ) {\n\t\t\t// Backwards compatibility pre 1.10\n\t\t\tvar ext = DataTable.ext;\n\t\t\tvar type = ext.sErrMode || ext.errMode;\n\t\n\t\t\tif ( settings ) {\n\t\t\t\t_fnCallbackFire( settings, null, 'error', [ settings, tn, msg ] );\n\t\t\t}\n\t\n\t\t\tif ( type == 'alert' ) {\n\t\t\t\talert( msg );\n\t\t\t}\n\t\t\telse if ( type == 'throw' ) {\n\t\t\t\tthrow new Error(msg);\n\t\t\t}\n\t\t\telse if ( typeof type == 'function' ) {\n\t\t\t\ttype( settings, tn, msg );\n\t\t\t}\n\t\t}\n\t\telse if ( window.console && console.log ) {\n\t\t\tconsole.log( msg );\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * See if a property is defined on one object, if so assign it to the other object\n\t *  @param {object} ret target object\n\t *  @param {object} src source object\n\t *  @param {string} name property\n\t *  @param {string} [mappedName] name to map too - optional, name used if not given\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnMap( ret, src, name, mappedName )\n\t{\n\t\tif ( $.isArray( name ) ) {\n\t\t\t$.each( name, function (i, val) {\n\t\t\t\tif ( $.isArray( val ) ) {\n\t\t\t\t\t_fnMap( ret, src, val[0], val[1] );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t_fnMap( ret, src, val );\n\t\t\t\t}\n\t\t\t} );\n\t\n\t\t\treturn;\n\t\t}\n\t\n\t\tif ( mappedName === undefined ) {\n\t\t\tmappedName = name;\n\t\t}\n\t\n\t\tif ( src[name] !== undefined ) {\n\t\t\tret[mappedName] = src[name];\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Extend objects - very similar to jQuery.extend, but deep copy objects, and\n\t * shallow copy arrays. The reason we need to do this, is that we don't want to\n\t * deep copy array init values (such as aaSorting) since the dev wouldn't be\n\t * able to override them, but we do want to deep copy arrays.\n\t *  @param {object} out Object to extend\n\t *  @param {object} extender Object from which the properties will be applied to\n\t *      out\n\t *  @param {boolean} breakRefs If true, then arrays will be sliced to take an\n\t *      independent copy with the exception of the `data` or `aaData` parameters\n\t *      if they are present. This is so you can pass in a collection to\n\t *      DataTables and have that used as your data source without breaking the\n\t *      references\n\t *  @returns {object} out Reference, just for convenience - out === the return.\n\t *  @memberof DataTable#oApi\n\t *  @todo This doesn't take account of arrays inside the deep copied objects.\n\t */\n\tfunction _fnExtend( out, extender, breakRefs )\n\t{\n\t\tvar val;\n\t\n\t\tfor ( var prop in extender ) {\n\t\t\tif ( extender.hasOwnProperty(prop) ) {\n\t\t\t\tval = extender[prop];\n\t\n\t\t\t\tif ( $.isPlainObject( val ) ) {\n\t\t\t\t\tif ( ! $.isPlainObject( out[prop] ) ) {\n\t\t\t\t\t\tout[prop] = {};\n\t\t\t\t\t}\n\t\t\t\t\t$.extend( true, out[prop], val );\n\t\t\t\t}\n\t\t\t\telse if ( breakRefs && prop !== 'data' && prop !== 'aaData' && $.isArray(val) ) {\n\t\t\t\t\tout[prop] = val.slice();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tout[prop] = val;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\treturn out;\n\t}\n\t\n\t\n\t/**\n\t * Bind an event handers to allow a click or return key to activate the callback.\n\t * This is good for accessibility since a return on the keyboard will have the\n\t * same effect as a click, if the element has focus.\n\t *  @param {element} n Element to bind the action to\n\t *  @param {object} oData Data object to pass to the triggered function\n\t *  @param {function} fn Callback function for when the event is triggered\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnBindAction( n, oData, fn )\n\t{\n\t\t$(n)\n\t\t\t.on( 'click.DT', oData, function (e) {\n\t\t\t\t\t$(n).blur(); // Remove focus outline for mouse users\n\t\t\t\t\tfn(e);\n\t\t\t\t} )\n\t\t\t.on( 'keypress.DT', oData, function (e){\n\t\t\t\t\tif ( e.which === 13 ) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tfn(e);\n\t\t\t\t\t}\n\t\t\t\t} )\n\t\t\t.on( 'selectstart.DT', function () {\n\t\t\t\t\t/* Take the brutal approach to cancelling text selection */\n\t\t\t\t\treturn false;\n\t\t\t\t} );\n\t}\n\t\n\t\n\t/**\n\t * Register a callback function. Easily allows a callback function to be added to\n\t * an array store of callback functions that can then all be called together.\n\t *  @param {object} oSettings dataTables settings object\n\t *  @param {string} sStore Name of the array storage for the callbacks in oSettings\n\t *  @param {function} fn Function to be called back\n\t *  @param {string} sName Identifying name for the callback (i.e. a label)\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnCallbackReg( oSettings, sStore, fn, sName )\n\t{\n\t\tif ( fn )\n\t\t{\n\t\t\toSettings[sStore].push( {\n\t\t\t\t\"fn\": fn,\n\t\t\t\t\"sName\": sName\n\t\t\t} );\n\t\t}\n\t}\n\t\n\t\n\t/**\n\t * Fire callback functions and trigger events. Note that the loop over the\n\t * callback array store is done backwards! Further note that you do not want to\n\t * fire off triggers in time sensitive applications (for example cell creation)\n\t * as its slow.\n\t *  @param {object} settings dataTables settings object\n\t *  @param {string} callbackArr Name of the array storage for the callbacks in\n\t *      oSettings\n\t *  @param {string} eventName Name of the jQuery custom event to trigger. If\n\t *      null no trigger is fired\n\t *  @param {array} args Array of arguments to pass to the callback function /\n\t *      trigger\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnCallbackFire( settings, callbackArr, eventName, args )\n\t{\n\t\tvar ret = [];\n\t\n\t\tif ( callbackArr ) {\n\t\t\tret = $.map( settings[callbackArr].slice().reverse(), function (val, i) {\n\t\t\t\treturn val.fn.apply( settings.oInstance, args );\n\t\t\t} );\n\t\t}\n\t\n\t\tif ( eventName !== null ) {\n\t\t\tvar e = $.Event( eventName+'.dt' );\n\t\n\t\t\t$(settings.nTable).trigger( e, args );\n\t\n\t\t\tret.push( e.result );\n\t\t}\n\t\n\t\treturn ret;\n\t}\n\t\n\t\n\tfunction _fnLengthOverflow ( settings )\n\t{\n\t\tvar\n\t\t\tstart = settings._iDisplayStart,\n\t\t\tend = settings.fnDisplayEnd(),\n\t\t\tlen = settings._iDisplayLength;\n\t\n\t\t/* If we have space to show extra rows (backing up from the end point - then do so */\n\t\tif ( start >= end )\n\t\t{\n\t\t\tstart = end - len;\n\t\t}\n\t\n\t\t// Keep the start record on the current page\n\t\tstart -= (start % len);\n\t\n\t\tif ( len === -1 || start < 0 )\n\t\t{\n\t\t\tstart = 0;\n\t\t}\n\t\n\t\tsettings._iDisplayStart = start;\n\t}\n\t\n\t\n\tfunction _fnRenderer( settings, type )\n\t{\n\t\tvar renderer = settings.renderer;\n\t\tvar host = DataTable.ext.renderer[type];\n\t\n\t\tif ( $.isPlainObject( renderer ) && renderer[type] ) {\n\t\t\t// Specific renderer for this type. If available use it, otherwise use\n\t\t\t// the default.\n\t\t\treturn host[renderer[type]] || host._;\n\t\t}\n\t\telse if ( typeof renderer === 'string' ) {\n\t\t\t// Common renderer - if there is one available for this type use it,\n\t\t\t// otherwise use the default\n\t\t\treturn host[renderer] || host._;\n\t\t}\n\t\n\t\t// Use the default\n\t\treturn host._;\n\t}\n\t\n\t\n\t/**\n\t * Detect the data source being used for the table. Used to simplify the code\n\t * a little (ajax) and to make it compress a little smaller.\n\t *\n\t *  @param {object} settings dataTables settings object\n\t *  @returns {string} Data source\n\t *  @memberof DataTable#oApi\n\t */\n\tfunction _fnDataSource ( settings )\n\t{\n\t\tif ( settings.oFeatures.bServerSide ) {\n\t\t\treturn 'ssp';\n\t\t}\n\t\telse if ( settings.ajax || settings.sAjaxSource ) {\n\t\t\treturn 'ajax';\n\t\t}\n\t\treturn 'dom';\n\t}\n\t\n\n\t\n\t\n\t/**\n\t * Computed structure of the DataTables API, defined by the options passed to\n\t * `DataTable.Api.register()` when building the API.\n\t *\n\t * The structure is built in order to speed creation and extension of the Api\n\t * objects since the extensions are effectively pre-parsed.\n\t *\n\t * The array is an array of objects with the following structure, where this\n\t * base array represents the Api prototype base:\n\t *\n\t *     [\n\t *       {\n\t *         name:      'data'                -- string   - Property name\n\t *         val:       function () {},       -- function - Api method (or undefined if just an object\n\t *         methodExt: [ ... ],              -- array    - Array of Api object definitions to extend the method result\n\t *         propExt:   [ ... ]               -- array    - Array of Api object definitions to extend the property\n\t *       },\n\t *       {\n\t *         name:     'row'\n\t *         val:       {},\n\t *         methodExt: [ ... ],\n\t *         propExt:   [\n\t *           {\n\t *             name:      'data'\n\t *             val:       function () {},\n\t *             methodExt: [ ... ],\n\t *             propExt:   [ ... ]\n\t *           },\n\t *           ...\n\t *         ]\n\t *       }\n\t *     ]\n\t *\n\t * @type {Array}\n\t * @ignore\n\t */\n\tvar __apiStruct = [];\n\t\n\t\n\t/**\n\t * `Array.prototype` reference.\n\t *\n\t * @type object\n\t * @ignore\n\t */\n\tvar __arrayProto = Array.prototype;\n\t\n\t\n\t/**\n\t * Abstraction for `context` parameter of the `Api` constructor to allow it to\n\t * take several different forms for ease of use.\n\t *\n\t * Each of the input parameter types will be converted to a DataTables settings\n\t * object where possible.\n\t *\n\t * @param  {string|node|jQuery|object} mixed DataTable identifier. Can be one\n\t *   of:\n\t *\n\t *   * `string` - jQuery selector. Any DataTables' matching the given selector\n\t *     with be found and used.\n\t *   * `node` - `TABLE` node which has already been formed into a DataTable.\n\t *   * `jQuery` - A jQuery object of `TABLE` nodes.\n\t *   * `object` - DataTables settings object\n\t *   * `DataTables.Api` - API instance\n\t * @return {array|null} Matching DataTables settings objects. `null` or\n\t *   `undefined` is returned if no matching DataTable is found.\n\t * @ignore\n\t */\n\tvar _toSettings = function ( mixed )\n\t{\n\t\tvar idx, jq;\n\t\tvar settings = DataTable.settings;\n\t\tvar tables = $.map( settings, function (el, i) {\n\t\t\treturn el.nTable;\n\t\t} );\n\t\n\t\tif ( ! mixed ) {\n\t\t\treturn [];\n\t\t}\n\t\telse if ( mixed.nTable && mixed.oApi ) {\n\t\t\t// DataTables settings object\n\t\t\treturn [ mixed ];\n\t\t}\n\t\telse if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) {\n\t\t\t// Table node\n\t\t\tidx = $.inArray( mixed, tables );\n\t\t\treturn idx !== -1 ? [ settings[idx] ] : null;\n\t\t}\n\t\telse if ( mixed && typeof mixed.settings === 'function' ) {\n\t\t\treturn mixed.settings().toArray();\n\t\t}\n\t\telse if ( typeof mixed === 'string' ) {\n\t\t\t// jQuery selector\n\t\t\tjq = $(mixed);\n\t\t}\n\t\telse if ( mixed instanceof $ ) {\n\t\t\t// jQuery object (also DataTables instance)\n\t\t\tjq = mixed;\n\t\t}\n\t\n\t\tif ( jq ) {\n\t\t\treturn jq.map( function(i) {\n\t\t\t\tidx = $.inArray( this, tables );\n\t\t\t\treturn idx !== -1 ? settings[idx] : null;\n\t\t\t} ).toArray();\n\t\t}\n\t};\n\t\n\t\n\t/**\n\t * DataTables API class - used to control and interface with  one or more\n\t * DataTables enhanced tables.\n\t *\n\t * The API class is heavily based on jQuery, presenting a chainable interface\n\t * that you can use to interact with tables. Each instance of the API class has\n\t * a \"context\" - i.e. the tables that it will operate on. This could be a single\n\t * table, all tables on a page or a sub-set thereof.\n\t *\n\t * Additionally the API is designed to allow you to easily work with the data in\n\t * the tables, retrieving and manipulating it as required. This is done by\n\t * presenting the API class as an array like interface. The contents of the\n\t * array depend upon the actions requested by each method (for example\n\t * `rows().nodes()` will return an array of nodes, while `rows().data()` will\n\t * return an array of objects or arrays depending upon your table's\n\t * configuration). The API object has a number of array like methods (`push`,\n\t * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,\n\t * `unique` etc) to assist your working with the data held in a table.\n\t *\n\t * Most methods (those which return an Api instance) are chainable, which means\n\t * the return from a method call also has all of the methods available that the\n\t * top level object had. For example, these two calls are equivalent:\n\t *\n\t *     // Not chained\n\t *     api.row.add( {...} );\n\t *     api.draw();\n\t *\n\t *     // Chained\n\t *     api.row.add( {...} ).draw();\n\t *\n\t * @class DataTable.Api\n\t * @param {array|object|string|jQuery} context DataTable identifier. This is\n\t *   used to define which DataTables enhanced tables this API will operate on.\n\t *   Can be one of:\n\t *\n\t *   * `string` - jQuery selector. Any DataTables' matching the given selector\n\t *     with be found and used.\n\t *   * `node` - `TABLE` node which has already been formed into a DataTable.\n\t *   * `jQuery` - A jQuery object of `TABLE` nodes.\n\t *   * `object` - DataTables settings object\n\t * @param {array} [data] Data to initialise the Api instance with.\n\t *\n\t * @example\n\t *   // Direct initialisation during DataTables construction\n\t *   var api = $('#example').DataTable();\n\t *\n\t * @example\n\t *   // Initialisation using a DataTables jQuery object\n\t *   var api = $('#example').dataTable().api();\n\t *\n\t * @example\n\t *   // Initialisation as a constructor\n\t *   var api = new $.fn.DataTable.Api( 'table.dataTable' );\n\t */\n\t_Api = function ( context, data )\n\t{\n\t\tif ( ! (this instanceof _Api) ) {\n\t\t\treturn new _Api( context, data );\n\t\t}\n\t\n\t\tvar settings = [];\n\t\tvar ctxSettings = function ( o ) {\n\t\t\tvar a = _toSettings( o );\n\t\t\tif ( a ) {\n\t\t\t\tsettings = settings.concat( a );\n\t\t\t}\n\t\t};\n\t\n\t\tif ( $.isArray( context ) ) {\n\t\t\tfor ( var i=0, ien=context.length ; i<ien ; i++ ) {\n\t\t\t\tctxSettings( context[i] );\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tctxSettings( context );\n\t\t}\n\t\n\t\t// Remove duplicates\n\t\tthis.context = _unique( settings );\n\t\n\t\t// Initial data\n\t\tif ( data ) {\n\t\t\t$.merge( this, data );\n\t\t}\n\t\n\t\t// selector\n\t\tthis.selector = {\n\t\t\trows: null,\n\t\t\tcols: null,\n\t\t\topts: null\n\t\t};\n\t\n\t\t_Api.extend( this, this, __apiStruct );\n\t};\n\t\n\tDataTable.Api = _Api;\n\t\n\t// Don't destroy the existing prototype, just extend it. Required for jQuery 2's\n\t// isPlainObject.\n\t$.extend( _Api.prototype, {\n\t\tany: function ()\n\t\t{\n\t\t\treturn this.count() !== 0;\n\t\t},\n\t\n\t\n\t\tconcat:  __arrayProto.concat,\n\t\n\t\n\t\tcontext: [], // array of table settings objects\n\t\n\t\n\t\tcount: function ()\n\t\t{\n\t\t\treturn this.flatten().length;\n\t\t},\n\t\n\t\n\t\teach: function ( fn )\n\t\t{\n\t\t\tfor ( var i=0, ien=this.length ; i<ien; i++ ) {\n\t\t\t\tfn.call( this, this[i], i, this );\n\t\t\t}\n\t\n\t\t\treturn this;\n\t\t},\n\t\n\t\n\t\teq: function ( idx )\n\t\t{\n\t\t\tvar ctx = this.context;\n\t\n\t\t\treturn ctx.length > idx ?\n\t\t\t\tnew _Api( ctx[idx], this[idx] ) :\n\t\t\t\tnull;\n\t\t},\n\t\n\t\n\t\tfilter: function ( fn )\n\t\t{\n\t\t\tvar a = [];\n\t\n\t\t\tif ( __arrayProto.filter ) {\n\t\t\t\ta = __arrayProto.filter.call( this, fn, this );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Compatibility for browsers without EMCA-252-5 (JS 1.6)\n\t\t\t\tfor ( var i=0, ien=this.length ; i<ien ; i++ ) {\n\t\t\t\t\tif ( fn.call( this, this[i], i, this ) ) {\n\t\t\t\t\t\ta.push( this[i] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\treturn new _Api( this.context, a );\n\t\t},\n\t\n\t\n\t\tflatten: function ()\n\t\t{\n\t\t\tvar a = [];\n\t\t\treturn new _Api( this.context, a.concat.apply( a, this.toArray() ) );\n\t\t},\n\t\n\t\n\t\tjoin:    __arrayProto.join,\n\t\n\t\n\t\tindexOf: __arrayProto.indexOf || function (obj, start)\n\t\t{\n\t\t\tfor ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {\n\t\t\t\tif ( this[i] === obj ) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn -1;\n\t\t},\n\t\n\t\titerator: function ( flatten, type, fn, alwaysNew ) {\n\t\t\tvar\n\t\t\t\ta = [], ret,\n\t\t\t\ti, ien, j, jen,\n\t\t\t\tcontext = this.context,\n\t\t\t\trows, items, item,\n\t\t\t\tselector = this.selector;\n\t\n\t\t\t// Argument shifting\n\t\t\tif ( typeof flatten === 'string' ) {\n\t\t\t\talwaysNew = fn;\n\t\t\t\tfn = type;\n\t\t\t\ttype = flatten;\n\t\t\t\tflatten = false;\n\t\t\t}\n\t\n\t\t\tfor ( i=0, ien=context.length ; i<ien ; i++ ) {\n\t\t\t\tvar apiInst = new _Api( context[i] );\n\t\n\t\t\t\tif ( type === 'table' ) {\n\t\t\t\t\tret = fn.call( apiInst, context[i], i );\n\t\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\ta.push( ret );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ( type === 'columns' || type === 'rows' ) {\n\t\t\t\t\t// this has same length as context - one entry for each table\n\t\t\t\t\tret = fn.call( apiInst, context[i], this[i], i );\n\t\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\ta.push( ret );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ( type === 'column' || type === 'column-rows' || type === 'row' || type === 'cell' ) {\n\t\t\t\t\t// columns and rows share the same structure.\n\t\t\t\t\t// 'this' is an array of column indexes for each context\n\t\t\t\t\titems = this[i];\n\t\n\t\t\t\t\tif ( type === 'column-rows' ) {\n\t\t\t\t\t\trows = _selector_row_indexes( context[i], selector.opts );\n\t\t\t\t\t}\n\t\n\t\t\t\t\tfor ( j=0, jen=items.length ; j<jen ; j++ ) {\n\t\t\t\t\t\titem = items[j];\n\t\n\t\t\t\t\t\tif ( type === 'cell' ) {\n\t\t\t\t\t\t\tret = fn.call( apiInst, context[i], item.row, item.column, i, j );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tret = fn.call( apiInst, context[i], item, i, j, rows );\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\t\ta.push( ret );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tif ( a.length || alwaysNew ) {\n\t\t\t\tvar api = new _Api( context, flatten ? a.concat.apply( [], a ) : a );\n\t\t\t\tvar apiSelector = api.selector;\n\t\t\t\tapiSelector.rows = selector.rows;\n\t\t\t\tapiSelector.cols = selector.cols;\n\t\t\t\tapiSelector.opts = selector.opts;\n\t\t\t\treturn api;\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\t\n\t\n\t\tlastIndexOf: __arrayProto.lastIndexOf || function (obj, start)\n\t\t{\n\t\t\t// Bit cheeky...\n\t\t\treturn this.indexOf.apply( this.toArray.reverse(), arguments );\n\t\t},\n\t\n\t\n\t\tlength:  0,\n\t\n\t\n\t\tmap: function ( fn )\n\t\t{\n\t\t\tvar a = [];\n\t\n\t\t\tif ( __arrayProto.map ) {\n\t\t\t\ta = __arrayProto.map.call( this, fn, this );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Compatibility for browsers without EMCA-252-5 (JS 1.6)\n\t\t\t\tfor ( var i=0, ien=this.length ; i<ien ; i++ ) {\n\t\t\t\t\ta.push( fn.call( this, this[i], i ) );\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\treturn new _Api( this.context, a );\n\t\t},\n\t\n\t\n\t\tpluck: function ( prop )\n\t\t{\n\t\t\treturn this.map( function ( el ) {\n\t\t\t\treturn el[ prop ];\n\t\t\t} );\n\t\t},\n\t\n\t\tpop:     __arrayProto.pop,\n\t\n\t\n\t\tpush:    __arrayProto.push,\n\t\n\t\n\t\t// Does not return an API instance\n\t\treduce: __arrayProto.reduce || function ( fn, init )\n\t\t{\n\t\t\treturn _fnReduce( this, fn, init, 0, this.length, 1 );\n\t\t},\n\t\n\t\n\t\treduceRight: __arrayProto.reduceRight || function ( fn, init )\n\t\t{\n\t\t\treturn _fnReduce( this, fn, init, this.length-1, -1, -1 );\n\t\t},\n\t\n\t\n\t\treverse: __arrayProto.reverse,\n\t\n\t\n\t\t// Object with rows, columns and opts\n\t\tselector: null,\n\t\n\t\n\t\tshift:   __arrayProto.shift,\n\t\n\t\n\t\tslice: function () {\n\t\t\treturn new _Api( this.context, this );\n\t\t},\n\t\n\t\n\t\tsort:    __arrayProto.sort, // ? name - order?\n\t\n\t\n\t\tsplice:  __arrayProto.splice,\n\t\n\t\n\t\ttoArray: function ()\n\t\t{\n\t\t\treturn __arrayProto.slice.call( this );\n\t\t},\n\t\n\t\n\t\tto$: function ()\n\t\t{\n\t\t\treturn $( this );\n\t\t},\n\t\n\t\n\t\ttoJQuery: function ()\n\t\t{\n\t\t\treturn $( this );\n\t\t},\n\t\n\t\n\t\tunique: function ()\n\t\t{\n\t\t\treturn new _Api( this.context, _unique(this) );\n\t\t},\n\t\n\t\n\t\tunshift: __arrayProto.unshift\n\t} );\n\t\n\t\n\t_Api.extend = function ( scope, obj, ext )\n\t{\n\t\t// Only extend API instances and static properties of the API\n\t\tif ( ! ext.length || ! obj || ( ! (obj instanceof _Api) && ! obj.__dt_wrapper ) ) {\n\t\t\treturn;\n\t\t}\n\t\n\t\tvar\n\t\t\ti, ien,\n\t\t\tj, jen,\n\t\t\tstruct, inner,\n\t\t\tmethodScoping = function ( scope, fn, struc ) {\n\t\t\t\treturn function () {\n\t\t\t\t\tvar ret = fn.apply( scope, arguments );\n\t\n\t\t\t\t\t// Method extension\n\t\t\t\t\t_Api.extend( ret, ret, struc.methodExt );\n\t\t\t\t\treturn ret;\n\t\t\t\t};\n\t\t\t};\n\t\n\t\tfor ( i=0, ien=ext.length ; i<ien ; i++ ) {\n\t\t\tstruct = ext[i];\n\t\n\t\t\t// Value\n\t\t\tobj[ struct.name ] = typeof struct.val === 'function' ?\n\t\t\t\tmethodScoping( scope, struct.val, struct ) :\n\t\t\t\t$.isPlainObject( struct.val ) ?\n\t\t\t\t\t{} :\n\t\t\t\t\tstruct.val;\n\t\n\t\t\tobj[ struct.name ].__dt_wrapper = true;\n\t\n\t\t\t// Property extension\n\t\t\t_Api.extend( scope, obj[ struct.name ], struct.propExt );\n\t\t}\n\t};\n\t\n\t\n\t// @todo - Is there need for an augment function?\n\t// _Api.augment = function ( inst, name )\n\t// {\n\t// \t// Find src object in the structure from the name\n\t// \tvar parts = name.split('.');\n\t\n\t// \t_Api.extend( inst, obj );\n\t// };\n\t\n\t\n\t//     [\n\t//       {\n\t//         name:      'data'                -- string   - Property name\n\t//         val:       function () {},       -- function - Api method (or undefined if just an object\n\t//         methodExt: [ ... ],              -- array    - Array of Api object definitions to extend the method result\n\t//         propExt:   [ ... ]               -- array    - Array of Api object definitions to extend the property\n\t//       },\n\t//       {\n\t//         name:     'row'\n\t//         val:       {},\n\t//         methodExt: [ ... ],\n\t//         propExt:   [\n\t//           {\n\t//             name:      'data'\n\t//             val:       function () {},\n\t//             methodExt: [ ... ],\n\t//             propExt:   [ ... ]\n\t//           },\n\t//           ...\n\t//         ]\n\t//       }\n\t//     ]\n\t\n\t_Api.register = _api_register = function ( name, val )\n\t{\n\t\tif ( $.isArray( name ) ) {\n\t\t\tfor ( var j=0, jen=name.length ; j<jen ; j++ ) {\n\t\t\t\t_Api.register( name[j], val );\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\n\t\tvar\n\t\t\ti, ien,\n\t\t\their = name.split('.'),\n\t\t\tstruct = __apiStruct,\n\t\t\tkey, method;\n\t\n\t\tvar find = function ( src, name ) {\n\t\t\tfor ( var i=0, ien=src.length ; i<ien ; i++ ) {\n\t\t\t\tif ( src[i].name === name ) {\n\t\t\t\t\treturn src[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t};\n\t\n\t\tfor ( i=0, ien=heir.length ; i<ien ; i++ ) {\n\t\t\tmethod = heir[i].indexOf('()') !== -1;\n\t\t\tkey = method ?\n\t\t\t\their[i].replace('()', '') :\n\t\t\t\their[i];\n\t\n\t\t\tvar src = find( struct, key );\n\t\t\tif ( ! src ) {\n\t\t\t\tsrc = {\n\t\t\t\t\tname:      key,\n\t\t\t\t\tval:       {},\n\t\t\t\t\tmethodExt: [],\n\t\t\t\t\tpropExt:   []\n\t\t\t\t};\n\t\t\t\tstruct.push( src );\n\t\t\t}\n\t\n\t\t\tif ( i === ien-1 ) {\n\t\t\t\tsrc.val = val;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstruct = method ?\n\t\t\t\t\tsrc.methodExt :\n\t\t\t\t\tsrc.propExt;\n\t\t\t}\n\t\t}\n\t};\n\t\n\t\n\t_Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) {\n\t\t_Api.register( pluralName, val );\n\t\n\t\t_Api.register( singularName, function () {\n\t\t\tvar ret = val.apply( this, arguments );\n\t\n\t\t\tif ( ret === this ) {\n\t\t\t\t// Returned item is the API instance that was passed in, return it\n\t\t\t\treturn this;\n\t\t\t}\n\t\t\telse if ( ret instanceof _Api ) {\n\t\t\t\t// New API instance returned, want the value from the first item\n\t\t\t\t// in the returned array for the singular result.\n\t\t\t\treturn ret.length ?\n\t\t\t\t\t$.isArray( ret[0] ) ?\n\t\t\t\t\t\tnew _Api( ret.context, ret[0] ) : // Array results are 'enhanced'\n\t\t\t\t\t\tret[0] :\n\t\t\t\t\tundefined;\n\t\t\t}\n\t\n\t\t\t// Non-API return - just fire it back\n\t\t\treturn ret;\n\t\t} );\n\t};\n\t\n\t\n\t/**\n\t * Selector for HTML tables. Apply the given selector to the give array of\n\t * DataTables settings objects.\n\t *\n\t * @param {string|integer} [selector] jQuery selector string or integer\n\t * @param  {array} Array of DataTables settings objects to be filtered\n\t * @return {array}\n\t * @ignore\n\t */\n\tvar __table_selector = function ( selector, a )\n\t{\n\t\t// Integer is used to pick out a table by index\n\t\tif ( typeof selector === 'number' ) {\n\t\t\treturn [ a[ selector ] ];\n\t\t}\n\t\n\t\t// Perform a jQuery selector on the table nodes\n\t\tvar nodes = $.map( a, function (el, i) {\n\t\t\treturn el.nTable;\n\t\t} );\n\t\n\t\treturn $(nodes)\n\t\t\t.filter( selector )\n\t\t\t.map( function (i) {\n\t\t\t\t// Need to translate back from the table node to the settings\n\t\t\t\tvar idx = $.inArray( this, nodes );\n\t\t\t\treturn a[ idx ];\n\t\t\t} )\n\t\t\t.toArray();\n\t};\n\t\n\t\n\t\n\t/**\n\t * Context selector for the API's context (i.e. the tables the API instance\n\t * refers to.\n\t *\n\t * @name    DataTable.Api#tables\n\t * @param {string|integer} [selector] Selector to pick which tables the iterator\n\t *   should operate on. If not given, all tables in the current context are\n\t *   used. This can be given as a jQuery selector (for example `':gt(0)'`) to\n\t *   select multiple tables or as an integer to select a single table.\n\t * @returns {DataTable.Api} Returns a new API instance if a selector is given.\n\t */\n\t_api_register( 'tables()', function ( selector ) {\n\t\t// A new instance is created if there was a selector specified\n\t\treturn selector ?\n\t\t\tnew _Api( __table_selector( selector, this.context ) ) :\n\t\t\tthis;\n\t} );\n\t\n\t\n\t_api_register( 'table()', function ( selector ) {\n\t\tvar tables = this.tables( selector );\n\t\tvar ctx = tables.context;\n\t\n\t\t// Truncate to the first matched table\n\t\treturn ctx.length ?\n\t\t\tnew _Api( ctx[0] ) :\n\t\t\ttables;\n\t} );\n\t\n\t\n\t_api_registerPlural( 'tables().nodes()', 'table().node()' , function () {\n\t\treturn this.iterator( 'table', function ( ctx ) {\n\t\t\treturn ctx.nTable;\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t_api_registerPlural( 'tables().body()', 'table().body()' , function () {\n\t\treturn this.iterator( 'table', function ( ctx ) {\n\t\t\treturn ctx.nTBody;\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t_api_registerPlural( 'tables().header()', 'table().header()' , function () {\n\t\treturn this.iterator( 'table', function ( ctx ) {\n\t\t\treturn ctx.nTHead;\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t_api_registerPlural( 'tables().footer()', 'table().footer()' , function () {\n\t\treturn this.iterator( 'table', function ( ctx ) {\n\t\t\treturn ctx.nTFoot;\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t_api_registerPlural( 'tables().containers()', 'table().container()' , function () {\n\t\treturn this.iterator( 'table', function ( ctx ) {\n\t\t\treturn ctx.nTableWrapper;\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t\n\t/**\n\t * Redraw the tables in the current context.\n\t */\n\t_api_register( 'draw()', function ( paging ) {\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\tif ( paging === 'page' ) {\n\t\t\t\t_fnDraw( settings );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif ( typeof paging === 'string' ) {\n\t\t\t\t\tpaging = paging === 'full-hold' ?\n\t\t\t\t\t\tfalse :\n\t\t\t\t\t\ttrue;\n\t\t\t\t}\n\t\n\t\t\t\t_fnReDraw( settings, paging===false );\n\t\t\t}\n\t\t} );\n\t} );\n\t\n\t\n\t\n\t/**\n\t * Get the current page index.\n\t *\n\t * @return {integer} Current page index (zero based)\n\t *//**\n\t * Set the current page.\n\t *\n\t * Note that if you attempt to show a page which does not exist, DataTables will\n\t * not throw an error, but rather reset the paging.\n\t *\n\t * @param {integer|string} action The paging action to take. This can be one of:\n\t *  * `integer` - The page index to jump to\n\t *  * `string` - An action to take:\n\t *    * `first` - Jump to first page.\n\t *    * `next` - Jump to the next page\n\t *    * `previous` - Jump to previous page\n\t *    * `last` - Jump to the last page.\n\t * @returns {DataTables.Api} this\n\t */\n\t_api_register( 'page()', function ( action ) {\n\t\tif ( action === undefined ) {\n\t\t\treturn this.page.info().page; // not an expensive call\n\t\t}\n\t\n\t\t// else, have an action to take on all tables\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\t_fnPageChange( settings, action );\n\t\t} );\n\t} );\n\t\n\t\n\t/**\n\t * Paging information for the first table in the current context.\n\t *\n\t * If you require paging information for another table, use the `table()` method\n\t * with a suitable selector.\n\t *\n\t * @return {object} Object with the following properties set:\n\t *  * `page` - Current page index (zero based - i.e. the first page is `0`)\n\t *  * `pages` - Total number of pages\n\t *  * `start` - Display index for the first record shown on the current page\n\t *  * `end` - Display index for the last record shown on the current page\n\t *  * `length` - Display length (number of records). Note that generally `start\n\t *    + length = end`, but this is not always true, for example if there are\n\t *    only 2 records to show on the final page, with a length of 10.\n\t *  * `recordsTotal` - Full data set length\n\t *  * `recordsDisplay` - Data set length once the current filtering criterion\n\t *    are applied.\n\t */\n\t_api_register( 'page.info()', function ( action ) {\n\t\tif ( this.context.length === 0 ) {\n\t\t\treturn undefined;\n\t\t}\n\t\n\t\tvar\n\t\t\tsettings   = this.context[0],\n\t\t\tstart      = settings._iDisplayStart,\n\t\t\tlen        = settings.oFeatures.bPaginate ? settings._iDisplayLength : -1,\n\t\t\tvisRecords = settings.fnRecordsDisplay(),\n\t\t\tall        = len === -1;\n\t\n\t\treturn {\n\t\t\t\"page\":           all ? 0 : Math.floor( start / len ),\n\t\t\t\"pages\":          all ? 1 : Math.ceil( visRecords / len ),\n\t\t\t\"start\":          start,\n\t\t\t\"end\":            settings.fnDisplayEnd(),\n\t\t\t\"length\":         len,\n\t\t\t\"recordsTotal\":   settings.fnRecordsTotal(),\n\t\t\t\"recordsDisplay\": visRecords,\n\t\t\t\"serverSide\":     _fnDataSource( settings ) === 'ssp'\n\t\t};\n\t} );\n\t\n\t\n\t/**\n\t * Get the current page length.\n\t *\n\t * @return {integer} Current page length. Note `-1` indicates that all records\n\t *   are to be shown.\n\t *//**\n\t * Set the current page length.\n\t *\n\t * @param {integer} Page length to set. Use `-1` to show all records.\n\t * @returns {DataTables.Api} this\n\t */\n\t_api_register( 'page.len()', function ( len ) {\n\t\t// Note that we can't call this function 'length()' because `length`\n\t\t// is a Javascript property of functions which defines how many arguments\n\t\t// the function expects.\n\t\tif ( len === undefined ) {\n\t\t\treturn this.context.length !== 0 ?\n\t\t\t\tthis.context[0]._iDisplayLength :\n\t\t\t\tundefined;\n\t\t}\n\t\n\t\t// else, set the page length\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\t_fnLengthChange( settings, len );\n\t\t} );\n\t} );\n\t\n\t\n\t\n\tvar __reload = function ( settings, holdPosition, callback ) {\n\t\t// Use the draw event to trigger a callback\n\t\tif ( callback ) {\n\t\t\tvar api = new _Api( settings );\n\t\n\t\t\tapi.one( 'draw', function () {\n\t\t\t\tcallback( api.ajax.json() );\n\t\t\t} );\n\t\t}\n\t\n\t\tif ( _fnDataSource( settings ) == 'ssp' ) {\n\t\t\t_fnReDraw( settings, holdPosition );\n\t\t}\n\t\telse {\n\t\t\t_fnProcessingDisplay( settings, true );\n\t\n\t\t\t// Cancel an existing request\n\t\t\tvar xhr = settings.jqXHR;\n\t\t\tif ( xhr && xhr.readyState !== 4 ) {\n\t\t\t\txhr.abort();\n\t\t\t}\n\t\n\t\t\t// Trigger xhr\n\t\t\t_fnBuildAjax( settings, [], function( json ) {\n\t\t\t\t_fnClearTable( settings );\n\t\n\t\t\t\tvar data = _fnAjaxDataSrc( settings, json );\n\t\t\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\n\t\t\t\t\t_fnAddData( settings, data[i] );\n\t\t\t\t}\n\t\n\t\t\t\t_fnReDraw( settings, holdPosition );\n\t\t\t\t_fnProcessingDisplay( settings, false );\n\t\t\t} );\n\t\t}\n\t};\n\t\n\t\n\t/**\n\t * Get the JSON response from the last Ajax request that DataTables made to the\n\t * server. Note that this returns the JSON from the first table in the current\n\t * context.\n\t *\n\t * @return {object} JSON received from the server.\n\t */\n\t_api_register( 'ajax.json()', function () {\n\t\tvar ctx = this.context;\n\t\n\t\tif ( ctx.length > 0 ) {\n\t\t\treturn ctx[0].json;\n\t\t}\n\t\n\t\t// else return undefined;\n\t} );\n\t\n\t\n\t/**\n\t * Get the data submitted in the last Ajax request\n\t */\n\t_api_register( 'ajax.params()', function () {\n\t\tvar ctx = this.context;\n\t\n\t\tif ( ctx.length > 0 ) {\n\t\t\treturn ctx[0].oAjaxData;\n\t\t}\n\t\n\t\t// else return undefined;\n\t} );\n\t\n\t\n\t/**\n\t * Reload tables from the Ajax data source. Note that this function will\n\t * automatically re-draw the table when the remote data has been loaded.\n\t *\n\t * @param {boolean} [reset=true] Reset (default) or hold the current paging\n\t *   position. A full re-sort and re-filter is performed when this method is\n\t *   called, which is why the pagination reset is the default action.\n\t * @returns {DataTables.Api} this\n\t */\n\t_api_register( 'ajax.reload()', function ( callback, resetPaging ) {\n\t\treturn this.iterator( 'table', function (settings) {\n\t\t\t__reload( settings, resetPaging===false, callback );\n\t\t} );\n\t} );\n\t\n\t\n\t/**\n\t * Get the current Ajax URL. Note that this returns the URL from the first\n\t * table in the current context.\n\t *\n\t * @return {string} Current Ajax source URL\n\t *//**\n\t * Set the Ajax URL. Note that this will set the URL for all tables in the\n\t * current context.\n\t *\n\t * @param {string} url URL to set.\n\t * @returns {DataTables.Api} this\n\t */\n\t_api_register( 'ajax.url()', function ( url ) {\n\t\tvar ctx = this.context;\n\t\n\t\tif ( url === undefined ) {\n\t\t\t// get\n\t\t\tif ( ctx.length === 0 ) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tctx = ctx[0];\n\t\n\t\t\treturn ctx.ajax ?\n\t\t\t\t$.isPlainObject( ctx.ajax ) ?\n\t\t\t\t\tctx.ajax.url :\n\t\t\t\t\tctx.ajax :\n\t\t\t\tctx.sAjaxSource;\n\t\t}\n\t\n\t\t// set\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\tif ( $.isPlainObject( settings.ajax ) ) {\n\t\t\t\tsettings.ajax.url = url;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsettings.ajax = url;\n\t\t\t}\n\t\t\t// No need to consider sAjaxSource here since DataTables gives priority\n\t\t\t// to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any\n\t\t\t// value of `sAjaxSource` redundant.\n\t\t} );\n\t} );\n\t\n\t\n\t/**\n\t * Load data from the newly set Ajax URL. Note that this method is only\n\t * available when `ajax.url()` is used to set a URL. Additionally, this method\n\t * has the same effect as calling `ajax.reload()` but is provided for\n\t * convenience when setting a new URL. Like `ajax.reload()` it will\n\t * automatically redraw the table once the remote data has been loaded.\n\t *\n\t * @returns {DataTables.Api} this\n\t */\n\t_api_register( 'ajax.url().load()', function ( callback, resetPaging ) {\n\t\t// Same as a reload, but makes sense to present it for easy access after a\n\t\t// url change\n\t\treturn this.iterator( 'table', function ( ctx ) {\n\t\t\t__reload( ctx, resetPaging===false, callback );\n\t\t} );\n\t} );\n\t\n\t\n\t\n\t\n\tvar _selector_run = function ( type, selector, selectFn, settings, opts )\n\t{\n\t\tvar\n\t\t\tout = [], res,\n\t\t\ta, i, ien, j, jen,\n\t\t\tselectorType = typeof selector;\n\t\n\t\t// Can't just check for isArray here, as an API or jQuery instance might be\n\t\t// given with their array like look\n\t\tif ( ! selector || selectorType === 'string' || selectorType === 'function' || selector.length === undefined ) {\n\t\t\tselector = [ selector ];\n\t\t}\n\t\n\t\tfor ( i=0, ien=selector.length ; i<ien ; i++ ) {\n\t\t\t// Only split on simple strings - complex expressions will be jQuery selectors\n\t\t\ta = selector[i] && selector[i].split && ! selector[i].match(/[\\[\\(:]/) ?\n\t\t\t\tselector[i].split(',') :\n\t\t\t\t[ selector[i] ];\n\t\n\t\t\tfor ( j=0, jen=a.length ; j<jen ; j++ ) {\n\t\t\t\tres = selectFn( typeof a[j] === 'string' ? $.trim(a[j]) : a[j] );\n\t\n\t\t\t\tif ( res && res.length ) {\n\t\t\t\t\tout = out.concat( res );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t// selector extensions\n\t\tvar ext = _ext.selector[ type ];\n\t\tif ( ext.length ) {\n\t\t\tfor ( i=0, ien=ext.length ; i<ien ; i++ ) {\n\t\t\t\tout = ext[i]( settings, opts, out );\n\t\t\t}\n\t\t}\n\t\n\t\treturn _unique( out );\n\t};\n\t\n\t\n\tvar _selector_opts = function ( opts )\n\t{\n\t\tif ( ! opts ) {\n\t\t\topts = {};\n\t\t}\n\t\n\t\t// Backwards compatibility for 1.9- which used the terminology filter rather\n\t\t// than search\n\t\tif ( opts.filter && opts.search === undefined ) {\n\t\t\topts.search = opts.filter;\n\t\t}\n\t\n\t\treturn $.extend( {\n\t\t\tsearch: 'none',\n\t\t\torder: 'current',\n\t\t\tpage: 'all'\n\t\t}, opts );\n\t};\n\t\n\t\n\tvar _selector_first = function ( inst )\n\t{\n\t\t// Reduce the API instance to the first item found\n\t\tfor ( var i=0, ien=inst.length ; i<ien ; i++ ) {\n\t\t\tif ( inst[i].length > 0 ) {\n\t\t\t\t// Assign the first element to the first item in the instance\n\t\t\t\t// and truncate the instance and context\n\t\t\t\tinst[0] = inst[i];\n\t\t\t\tinst[0].length = 1;\n\t\t\t\tinst.length = 1;\n\t\t\t\tinst.context = [ inst.context[i] ];\n\t\n\t\t\t\treturn inst;\n\t\t\t}\n\t\t}\n\t\n\t\t// Not found - return an empty instance\n\t\tinst.length = 0;\n\t\treturn inst;\n\t};\n\t\n\t\n\tvar _selector_row_indexes = function ( settings, opts )\n\t{\n\t\tvar\n\t\t\ti, ien, tmp, a=[],\n\t\t\tdisplayFiltered = settings.aiDisplay,\n\t\t\tdisplayMaster = settings.aiDisplayMaster;\n\t\n\t\tvar\n\t\t\tsearch = opts.search,  // none, applied, removed\n\t\t\torder  = opts.order,   // applied, current, index (original - compatibility with 1.9)\n\t\t\tpage   = opts.page;    // all, current\n\t\n\t\tif ( _fnDataSource( settings ) == 'ssp' ) {\n\t\t\t// In server-side processing mode, most options are irrelevant since\n\t\t\t// rows not shown don't exist and the index order is the applied order\n\t\t\t// Removed is a special case - for consistency just return an empty\n\t\t\t// array\n\t\t\treturn search === 'removed' ?\n\t\t\t\t[] :\n\t\t\t\t_range( 0, displayMaster.length );\n\t\t}\n\t\telse if ( page == 'current' ) {\n\t\t\t// Current page implies that order=current and fitler=applied, since it is\n\t\t\t// fairly senseless otherwise, regardless of what order and search actually\n\t\t\t// are\n\t\t\tfor ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i<ien ; i++ ) {\n\t\t\t\ta.push( displayFiltered[i] );\n\t\t\t}\n\t\t}\n\t\telse if ( order == 'current' || order == 'applied' ) {\n\t\t\tif ( search == 'none') {\n\t\t\t\ta = displayMaster.slice();\n\t\t\t}\n\t\t\telse if ( search == 'applied' ) {\n\t\t\t\ta = displayFiltered.slice();\n\t\t\t}\n\t\t\telse if ( search == 'removed' ) {\n\t\t\t\t// O(n+m) solution by creating a hash map\n\t\t\t\tvar displayFilteredMap = {};\n\t\n\t\t\t\tfor ( var i=0, ien=displayFiltered.length ; i<ien ; i++ ) {\n\t\t\t\t\tdisplayFilteredMap[displayFiltered[i]] = null;\n\t\t\t\t}\n\t\n\t\t\t\ta = $.map( displayMaster, function (el) {\n\t\t\t\t\treturn ! displayFilteredMap.hasOwnProperty(el) ?\n\t\t\t\t\t\tel :\n\t\t\t\t\t\tnull;\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t\telse if ( order == 'index' || order == 'original' ) {\n\t\t\tfor ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\n\t\t\t\tif ( search == 'none' ) {\n\t\t\t\t\ta.push( i );\n\t\t\t\t}\n\t\t\t\telse { // applied | removed\n\t\t\t\t\ttmp = $.inArray( i, displayFiltered );\n\t\n\t\t\t\t\tif ((tmp === -1 && search == 'removed') ||\n\t\t\t\t\t\t(tmp >= 0   && search == 'applied') )\n\t\t\t\t\t{\n\t\t\t\t\t\ta.push( i );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\treturn a;\n\t};\n\t\n\t\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t * Rows\n\t *\n\t * {}          - no selector - use all available rows\n\t * {integer}   - row aoData index\n\t * {node}      - TR node\n\t * {string}    - jQuery selector to apply to the TR elements\n\t * {array}     - jQuery array of nodes, or simply an array of TR nodes\n\t *\n\t */\n\tvar __row_selector = function ( settings, selector, opts )\n\t{\n\t\tvar rows;\n\t\tvar run = function ( sel ) {\n\t\t\tvar selInt = _intVal( sel );\n\t\t\tvar i, ien;\n\t\t\tvar aoData = settings.aoData;\n\t\n\t\t\t// Short cut - selector is a number and no options provided (default is\n\t\t\t// all records, so no need to check if the index is in there, since it\n\t\t\t// must be - dev error if the index doesn't exist).\n\t\t\tif ( selInt !== null && ! opts ) {\n\t\t\t\treturn [ selInt ];\n\t\t\t}\n\t\n\t\t\tif ( ! rows ) {\n\t\t\t\trows = _selector_row_indexes( settings, opts );\n\t\t\t}\n\t\n\t\t\tif ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) {\n\t\t\t\t// Selector - integer\n\t\t\t\treturn [ selInt ];\n\t\t\t}\n\t\t\telse if ( sel === null || sel === undefined || sel === '' ) {\n\t\t\t\t// Selector - none\n\t\t\t\treturn rows;\n\t\t\t}\n\t\n\t\t\t// Selector - function\n\t\t\tif ( typeof sel === 'function' ) {\n\t\t\t\treturn $.map( rows, function (idx) {\n\t\t\t\t\tvar row = aoData[ idx ];\n\t\t\t\t\treturn sel( idx, row._aData, row.nTr ) ? idx : null;\n\t\t\t\t} );\n\t\t\t}\n\t\n\t\t\t// Selector - node\n\t\t\tif ( sel.nodeName ) {\n\t\t\t\tvar rowIdx = sel._DT_RowIndex;  // Property added by DT for fast lookup\n\t\t\t\tvar cellIdx = sel._DT_CellIndex;\n\t\n\t\t\t\tif ( rowIdx !== undefined ) {\n\t\t\t\t\t// Make sure that the row is actually still present in the table\n\t\t\t\t\treturn aoData[ rowIdx ] && aoData[ rowIdx ].nTr === sel ?\n\t\t\t\t\t\t[ rowIdx ] :\n\t\t\t\t\t\t[];\n\t\t\t\t}\n\t\t\t\telse if ( cellIdx ) {\n\t\t\t\t\treturn aoData[ cellIdx.row ] && aoData[ cellIdx.row ].nTr === sel ?\n\t\t\t\t\t\t[ cellIdx.row ] :\n\t\t\t\t\t\t[];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tvar host = $(sel).closest('*[data-dt-row]');\n\t\t\t\t\treturn host.length ?\n\t\t\t\t\t\t[ host.data('dt-row') ] :\n\t\t\t\t\t\t[];\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t// ID selector. Want to always be able to select rows by id, regardless\n\t\t\t// of if the tr element has been created or not, so can't rely upon\n\t\t\t// jQuery here - hence a custom implementation. This does not match\n\t\t\t// Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything,\n\t\t\t// but to select it using a CSS selector engine (like Sizzle or\n\t\t\t// querySelect) it would need to need to be escaped for some characters.\n\t\t\t// DataTables simplifies this for row selectors since you can select\n\t\t\t// only a row. A # indicates an id any anything that follows is the id -\n\t\t\t// unescaped.\n\t\t\tif ( typeof sel === 'string' && sel.charAt(0) === '#' ) {\n\t\t\t\t// get row index from id\n\t\t\t\tvar rowObj = settings.aIds[ sel.replace( /^#/, '' ) ];\n\t\t\t\tif ( rowObj !== undefined ) {\n\t\t\t\t\treturn [ rowObj.idx ];\n\t\t\t\t}\n\t\n\t\t\t\t// need to fall through to jQuery in case there is DOM id that\n\t\t\t\t// matches\n\t\t\t}\n\t\t\t\n\t\t\t// Get nodes in the order from the `rows` array with null values removed\n\t\t\tvar nodes = _removeEmpty(\n\t\t\t\t_pluck_order( settings.aoData, rows, 'nTr' )\n\t\t\t);\n\t\n\t\t\t// Selector - jQuery selector string, array of nodes or jQuery object/\n\t\t\t// As jQuery's .filter() allows jQuery objects to be passed in filter,\n\t\t\t// it also allows arrays, so this will cope with all three options\n\t\t\treturn $(nodes)\n\t\t\t\t.filter( sel )\n\t\t\t\t.map( function () {\n\t\t\t\t\treturn this._DT_RowIndex;\n\t\t\t\t} )\n\t\t\t\t.toArray();\n\t\t};\n\t\n\t\treturn _selector_run( 'row', selector, run, settings, opts );\n\t};\n\t\n\t\n\t_api_register( 'rows()', function ( selector, opts ) {\n\t\t// argument shifting\n\t\tif ( selector === undefined ) {\n\t\t\tselector = '';\n\t\t}\n\t\telse if ( $.isPlainObject( selector ) ) {\n\t\t\topts = selector;\n\t\t\tselector = '';\n\t\t}\n\t\n\t\topts = _selector_opts( opts );\n\t\n\t\tvar inst = this.iterator( 'table', function ( settings ) {\n\t\t\treturn __row_selector( settings, selector, opts );\n\t\t}, 1 );\n\t\n\t\t// Want argument shifting here and in __row_selector?\n\t\tinst.selector.rows = selector;\n\t\tinst.selector.opts = opts;\n\t\n\t\treturn inst;\n\t} );\n\t\n\t_api_register( 'rows().nodes()', function () {\n\t\treturn this.iterator( 'row', function ( settings, row ) {\n\t\t\treturn settings.aoData[ row ].nTr || undefined;\n\t\t}, 1 );\n\t} );\n\t\n\t_api_register( 'rows().data()', function () {\n\t\treturn this.iterator( true, 'rows', function ( settings, rows ) {\n\t\t\treturn _pluck_order( settings.aoData, rows, '_aData' );\n\t\t}, 1 );\n\t} );\n\t\n\t_api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {\n\t\treturn this.iterator( 'row', function ( settings, row ) {\n\t\t\tvar r = settings.aoData[ row ];\n\t\t\treturn type === 'search' ? r._aFilterData : r._aSortData;\n\t\t}, 1 );\n\t} );\n\t\n\t_api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) {\n\t\treturn this.iterator( 'row', function ( settings, row ) {\n\t\t\t_fnInvalidate( settings, row, src );\n\t\t} );\n\t} );\n\t\n\t_api_registerPlural( 'rows().indexes()', 'row().index()', function () {\n\t\treturn this.iterator( 'row', function ( settings, row ) {\n\t\t\treturn row;\n\t\t}, 1 );\n\t} );\n\t\n\t_api_registerPlural( 'rows().ids()', 'row().id()', function ( hash ) {\n\t\tvar a = [];\n\t\tvar context = this.context;\n\t\n\t\t// `iterator` will drop undefined values, but in this case we want them\n\t\tfor ( var i=0, ien=context.length ; i<ien ; i++ ) {\n\t\t\tfor ( var j=0, jen=this[i].length ; j<jen ; j++ ) {\n\t\t\t\tvar id = context[i].rowIdFn( context[i].aoData[ this[i][j] ]._aData );\n\t\t\t\ta.push( (hash === true ? '#' : '' )+ id );\n\t\t\t}\n\t\t}\n\t\n\t\treturn new _Api( context, a );\n\t} );\n\t\n\t_api_registerPlural( 'rows().remove()', 'row().remove()', function () {\n\t\tvar that = this;\n\t\n\t\tthis.iterator( 'row', function ( settings, row, thatIdx ) {\n\t\t\tvar data = settings.aoData;\n\t\t\tvar rowData = data[ row ];\n\t\t\tvar i, ien, j, jen;\n\t\t\tvar loopRow, loopCells;\n\t\n\t\t\tdata.splice( row, 1 );\n\t\n\t\t\t// Update the cached indexes\n\t\t\tfor ( i=0, ien=data.length ; i<ien ; i++ ) {\n\t\t\t\tloopRow = data[i];\n\t\t\t\tloopCells = loopRow.anCells;\n\t\n\t\t\t\t// Rows\n\t\t\t\tif ( loopRow.nTr !== null ) {\n\t\t\t\t\tloopRow.nTr._DT_RowIndex = i;\n\t\t\t\t}\n\t\n\t\t\t\t// Cells\n\t\t\t\tif ( loopCells !== null ) {\n\t\t\t\t\tfor ( j=0, jen=loopCells.length ; j<jen ; j++ ) {\n\t\t\t\t\t\tloopCells[j]._DT_CellIndex.row = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t// Delete from the display arrays\n\t\t\t_fnDeleteIndex( settings.aiDisplayMaster, row );\n\t\t\t_fnDeleteIndex( settings.aiDisplay, row );\n\t\t\t_fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes\n\t\n\t\t\t// For server-side processing tables - subtract the deleted row from the count\n\t\t\tif ( settings._iRecordsDisplay > 0 ) {\n\t\t\t\tsettings._iRecordsDisplay--;\n\t\t\t}\n\t\n\t\t\t// Check for an 'overflow' they case for displaying the table\n\t\t\t_fnLengthOverflow( settings );\n\t\n\t\t\t// Remove the row's ID reference if there is one\n\t\t\tvar id = settings.rowIdFn( rowData._aData );\n\t\t\tif ( id !== undefined ) {\n\t\t\t\tdelete settings.aIds[ id ];\n\t\t\t}\n\t\t} );\n\t\n\t\tthis.iterator( 'table', function ( settings ) {\n\t\t\tfor ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\n\t\t\t\tsettings.aoData[i].idx = i;\n\t\t\t}\n\t\t} );\n\t\n\t\treturn this;\n\t} );\n\t\n\t\n\t_api_register( 'rows.add()', function ( rows ) {\n\t\tvar newRows = this.iterator( 'table', function ( settings ) {\n\t\t\t\tvar row, i, ien;\n\t\t\t\tvar out = [];\n\t\n\t\t\t\tfor ( i=0, ien=rows.length ; i<ien ; i++ ) {\n\t\t\t\t\trow = rows[i];\n\t\n\t\t\t\t\tif ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {\n\t\t\t\t\t\tout.push( _fnAddTr( settings, row )[0] );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tout.push( _fnAddData( settings, row ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\treturn out;\n\t\t\t}, 1 );\n\t\n\t\t// Return an Api.rows() extended instance, so rows().nodes() etc can be used\n\t\tvar modRows = this.rows( -1 );\n\t\tmodRows.pop();\n\t\t$.merge( modRows, newRows );\n\t\n\t\treturn modRows;\n\t} );\n\t\n\t\n\t\n\t\n\t\n\t/**\n\t *\n\t */\n\t_api_register( 'row()', function ( selector, opts ) {\n\t\treturn _selector_first( this.rows( selector, opts ) );\n\t} );\n\t\n\t\n\t_api_register( 'row().data()', function ( data ) {\n\t\tvar ctx = this.context;\n\t\n\t\tif ( data === undefined ) {\n\t\t\t// Get\n\t\t\treturn ctx.length && this.length ?\n\t\t\t\tctx[0].aoData[ this[0] ]._aData :\n\t\t\t\tundefined;\n\t\t}\n\t\n\t\t// Set\n\t\tvar row = ctx[0].aoData[ this[0] ];\n\t\trow._aData = data;\n\t\n\t\t// If the DOM has an id, and the data source is an array\n\t\tif ( $.isArray( data ) && row.nTr.id ) {\n\t\t\t_fnSetObjectDataFn( ctx[0].rowId )( data, row.nTr.id );\n\t\t}\n\t\n\t\t// Automatically invalidate\n\t\t_fnInvalidate( ctx[0], this[0], 'data' );\n\t\n\t\treturn this;\n\t} );\n\t\n\t\n\t_api_register( 'row().node()', function () {\n\t\tvar ctx = this.context;\n\t\n\t\treturn ctx.length && this.length ?\n\t\t\tctx[0].aoData[ this[0] ].nTr || null :\n\t\t\tnull;\n\t} );\n\t\n\t\n\t_api_register( 'row.add()', function ( row ) {\n\t\t// Allow a jQuery object to be passed in - only a single row is added from\n\t\t// it though - the first element in the set\n\t\tif ( row instanceof $ && row.length ) {\n\t\t\trow = row[0];\n\t\t}\n\t\n\t\tvar rows = this.iterator( 'table', function ( settings ) {\n\t\t\tif ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {\n\t\t\t\treturn _fnAddTr( settings, row )[0];\n\t\t\t}\n\t\t\treturn _fnAddData( settings, row );\n\t\t} );\n\t\n\t\t// Return an Api.rows() extended instance, with the newly added row selected\n\t\treturn this.row( rows[0] );\n\t} );\n\t\n\t\n\t\n\tvar __details_add = function ( ctx, row, data, klass )\n\t{\n\t\t// Convert to array of TR elements\n\t\tvar rows = [];\n\t\tvar addRow = function ( r, k ) {\n\t\t\t// Recursion to allow for arrays of jQuery objects\n\t\t\tif ( $.isArray( r ) || r instanceof $ ) {\n\t\t\t\tfor ( var i=0, ien=r.length ; i<ien ; i++ ) {\n\t\t\t\t\taddRow( r[i], k );\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\t// If we get a TR element, then just add it directly - up to the dev\n\t\t\t// to add the correct number of columns etc\n\t\t\tif ( r.nodeName && r.nodeName.toLowerCase() === 'tr' ) {\n\t\t\t\trows.push( r );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Otherwise create a row with a wrapper\n\t\t\t\tvar created = $('<tr><td/></tr>').addClass( k );\n\t\t\t\t$('td', created)\n\t\t\t\t\t.addClass( k )\n\t\t\t\t\t.html( r )\n\t\t\t\t\t[0].colSpan = _fnVisbleColumns( ctx );\n\t\n\t\t\t\trows.push( created[0] );\n\t\t\t}\n\t\t};\n\t\n\t\taddRow( data, klass );\n\t\n\t\tif ( row._details ) {\n\t\t\trow._details.detach();\n\t\t}\n\t\n\t\trow._details = $(rows);\n\t\n\t\t// If the children were already shown, that state should be retained\n\t\tif ( row._detailsShow ) {\n\t\t\trow._details.insertAfter( row.nTr );\n\t\t}\n\t};\n\t\n\t\n\tvar __details_remove = function ( api, idx )\n\t{\n\t\tvar ctx = api.context;\n\t\n\t\tif ( ctx.length ) {\n\t\t\tvar row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ];\n\t\n\t\t\tif ( row && row._details ) {\n\t\t\t\trow._details.remove();\n\t\n\t\t\t\trow._detailsShow = undefined;\n\t\t\t\trow._details = undefined;\n\t\t\t}\n\t\t}\n\t};\n\t\n\t\n\tvar __details_display = function ( api, show ) {\n\t\tvar ctx = api.context;\n\t\n\t\tif ( ctx.length && api.length ) {\n\t\t\tvar row = ctx[0].aoData[ api[0] ];\n\t\n\t\t\tif ( row._details ) {\n\t\t\t\trow._detailsShow = show;\n\t\n\t\t\t\tif ( show ) {\n\t\t\t\t\trow._details.insertAfter( row.nTr );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trow._details.detach();\n\t\t\t\t}\n\t\n\t\t\t\t__details_events( ctx[0] );\n\t\t\t}\n\t\t}\n\t};\n\t\n\t\n\tvar __details_events = function ( settings )\n\t{\n\t\tvar api = new _Api( settings );\n\t\tvar namespace = '.dt.DT_details';\n\t\tvar drawEvent = 'draw'+namespace;\n\t\tvar colvisEvent = 'column-visibility'+namespace;\n\t\tvar destroyEvent = 'destroy'+namespace;\n\t\tvar data = settings.aoData;\n\t\n\t\tapi.off( drawEvent +' '+ colvisEvent +' '+ destroyEvent );\n\t\n\t\tif ( _pluck( data, '_details' ).length > 0 ) {\n\t\t\t// On each draw, insert the required elements into the document\n\t\t\tapi.on( drawEvent, function ( e, ctx ) {\n\t\t\t\tif ( settings !== ctx ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\n\t\t\t\tapi.rows( {page:'current'} ).eq(0).each( function (idx) {\n\t\t\t\t\t// Internal data grab\n\t\t\t\t\tvar row = data[ idx ];\n\t\n\t\t\t\t\tif ( row._detailsShow ) {\n\t\t\t\t\t\trow._details.insertAfter( row.nTr );\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t} );\n\t\n\t\t\t// Column visibility change - update the colspan\n\t\t\tapi.on( colvisEvent, function ( e, ctx, idx, vis ) {\n\t\t\t\tif ( settings !== ctx ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\n\t\t\t\t// Update the colspan for the details rows (note, only if it already has\n\t\t\t\t// a colspan)\n\t\t\t\tvar row, visible = _fnVisbleColumns( ctx );\n\t\n\t\t\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\n\t\t\t\t\trow = data[i];\n\t\n\t\t\t\t\tif ( row._details ) {\n\t\t\t\t\t\trow._details.children('td[colspan]').attr('colspan', visible );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\n\t\t\t// Table destroyed - nuke any child rows\n\t\t\tapi.on( destroyEvent, function ( e, ctx ) {\n\t\t\t\tif ( settings !== ctx ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\n\t\t\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\n\t\t\t\t\tif ( data[i]._details ) {\n\t\t\t\t\t\t__details_remove( api, i );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t};\n\t\n\t// Strings for the method names to help minification\n\tvar _emp = '';\n\tvar _child_obj = _emp+'row().child';\n\tvar _child_mth = _child_obj+'()';\n\t\n\t// data can be:\n\t//  tr\n\t//  string\n\t//  jQuery or array of any of the above\n\t_api_register( _child_mth, function ( data, klass ) {\n\t\tvar ctx = this.context;\n\t\n\t\tif ( data === undefined ) {\n\t\t\t// get\n\t\t\treturn ctx.length && this.length ?\n\t\t\t\tctx[0].aoData[ this[0] ]._details :\n\t\t\t\tundefined;\n\t\t}\n\t\telse if ( data === true ) {\n\t\t\t// show\n\t\t\tthis.child.show();\n\t\t}\n\t\telse if ( data === false ) {\n\t\t\t// remove\n\t\t\t__details_remove( this );\n\t\t}\n\t\telse if ( ctx.length && this.length ) {\n\t\t\t// set\n\t\t\t__details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass );\n\t\t}\n\t\n\t\treturn this;\n\t} );\n\t\n\t\n\t_api_register( [\n\t\t_child_obj+'.show()',\n\t\t_child_mth+'.show()' // only when `child()` was called with parameters (without\n\t], function ( show ) {   // it returns an object and this method is not executed)\n\t\t__details_display( this, true );\n\t\treturn this;\n\t} );\n\t\n\t\n\t_api_register( [\n\t\t_child_obj+'.hide()',\n\t\t_child_mth+'.hide()' // only when `child()` was called with parameters (without\n\t], function () {         // it returns an object and this method is not executed)\n\t\t__details_display( this, false );\n\t\treturn this;\n\t} );\n\t\n\t\n\t_api_register( [\n\t\t_child_obj+'.remove()',\n\t\t_child_mth+'.remove()' // only when `child()` was called with parameters (without\n\t], function () {           // it returns an object and this method is not executed)\n\t\t__details_remove( this );\n\t\treturn this;\n\t} );\n\t\n\t\n\t_api_register( _child_obj+'.isShown()', function () {\n\t\tvar ctx = this.context;\n\t\n\t\tif ( ctx.length && this.length ) {\n\t\t\t// _detailsShown as false or undefined will fall through to return false\n\t\t\treturn ctx[0].aoData[ this[0] ]._detailsShow || false;\n\t\t}\n\t\treturn false;\n\t} );\n\t\n\t\n\t\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t * Columns\n\t *\n\t * {integer}           - column index (>=0 count from left, <0 count from right)\n\t * \"{integer}:visIdx\"  - visible column index (i.e. translate to column index)  (>=0 count from left, <0 count from right)\n\t * \"{integer}:visible\" - alias for {integer}:visIdx  (>=0 count from left, <0 count from right)\n\t * \"{string}:name\"     - column name\n\t * \"{string}\"          - jQuery selector on column header nodes\n\t *\n\t */\n\t\n\t// can be an array of these items, comma separated list, or an array of comma\n\t// separated lists\n\t\n\tvar __re_column_selector = /^([^:]+):(name|visIdx|visible)$/;\n\t\n\t\n\t// r1 and r2 are redundant - but it means that the parameters match for the\n\t// iterator callback in columns().data()\n\tvar __columnData = function ( settings, column, r1, r2, rows ) {\n\t\tvar a = [];\n\t\tfor ( var row=0, ien=rows.length ; row<ien ; row++ ) {\n\t\t\ta.push( _fnGetCellData( settings, rows[row], column ) );\n\t\t}\n\t\treturn a;\n\t};\n\t\n\t\n\tvar __column_selector = function ( settings, selector, opts )\n\t{\n\t\tvar\n\t\t\tcolumns = settings.aoColumns,\n\t\t\tnames = _pluck( columns, 'sName' ),\n\t\t\tnodes = _pluck( columns, 'nTh' );\n\t\n\t\tvar run = function ( s ) {\n\t\t\tvar selInt = _intVal( s );\n\t\n\t\t\t// Selector - all\n\t\t\tif ( s === '' ) {\n\t\t\t\treturn _range( columns.length );\n\t\t\t}\n\t\n\t\t\t// Selector - index\n\t\t\tif ( selInt !== null ) {\n\t\t\t\treturn [ selInt >= 0 ?\n\t\t\t\t\tselInt : // Count from left\n\t\t\t\t\tcolumns.length + selInt // Count from right (+ because its a negative value)\n\t\t\t\t];\n\t\t\t}\n\t\n\t\t\t// Selector = function\n\t\t\tif ( typeof s === 'function' ) {\n\t\t\t\tvar rows = _selector_row_indexes( settings, opts );\n\t\n\t\t\t\treturn $.map( columns, function (col, idx) {\n\t\t\t\t\treturn s(\n\t\t\t\t\t\t\tidx,\n\t\t\t\t\t\t\t__columnData( settings, idx, 0, 0, rows ),\n\t\t\t\t\t\t\tnodes[ idx ]\n\t\t\t\t\t\t) ? idx : null;\n\t\t\t\t} );\n\t\t\t}\n\t\n\t\t\t// jQuery or string selector\n\t\t\tvar match = typeof s === 'string' ?\n\t\t\t\ts.match( __re_column_selector ) :\n\t\t\t\t'';\n\t\n\t\t\tif ( match ) {\n\t\t\t\tswitch( match[2] ) {\n\t\t\t\t\tcase 'visIdx':\n\t\t\t\t\tcase 'visible':\n\t\t\t\t\t\tvar idx = parseInt( match[1], 10 );\n\t\t\t\t\t\t// Visible index given, convert to column index\n\t\t\t\t\t\tif ( idx < 0 ) {\n\t\t\t\t\t\t\t// Counting from the right\n\t\t\t\t\t\t\tvar visColumns = $.map( columns, function (col,i) {\n\t\t\t\t\t\t\t\treturn col.bVisible ? i : null;\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\treturn [ visColumns[ visColumns.length + idx ] ];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Counting from the left\n\t\t\t\t\t\treturn [ _fnVisibleToColumnIndex( settings, idx ) ];\n\t\n\t\t\t\t\tcase 'name':\n\t\t\t\t\t\t// match by name. `names` is column index complete and in order\n\t\t\t\t\t\treturn $.map( names, function (name, i) {\n\t\t\t\t\t\t\treturn name === match[1] ? i : null;\n\t\t\t\t\t\t} );\n\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn [];\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t// Cell in the table body\n\t\t\tif ( s.nodeName && s._DT_CellIndex ) {\n\t\t\t\treturn [ s._DT_CellIndex.column ];\n\t\t\t}\n\t\n\t\t\t// jQuery selector on the TH elements for the columns\n\t\t\tvar jqResult = $( nodes )\n\t\t\t\t.filter( s )\n\t\t\t\t.map( function () {\n\t\t\t\t\treturn $.inArray( this, nodes ); // `nodes` is column index complete and in order\n\t\t\t\t} )\n\t\t\t\t.toArray();\n\t\n\t\t\tif ( jqResult.length || ! s.nodeName ) {\n\t\t\t\treturn jqResult;\n\t\t\t}\n\t\n\t\t\t// Otherwise a node which might have a `dt-column` data attribute, or be\n\t\t\t// a child or such an element\n\t\t\tvar host = $(s).closest('*[data-dt-column]');\n\t\t\treturn host.length ?\n\t\t\t\t[ host.data('dt-column') ] :\n\t\t\t\t[];\n\t\t};\n\t\n\t\treturn _selector_run( 'column', selector, run, settings, opts );\n\t};\n\t\n\t\n\tvar __setColumnVis = function ( settings, column, vis ) {\n\t\tvar\n\t\t\tcols = settings.aoColumns,\n\t\t\tcol  = cols[ column ],\n\t\t\tdata = settings.aoData,\n\t\t\trow, cells, i, ien, tr;\n\t\n\t\t// Get\n\t\tif ( vis === undefined ) {\n\t\t\treturn col.bVisible;\n\t\t}\n\t\n\t\t// Set\n\t\t// No change\n\t\tif ( col.bVisible === vis ) {\n\t\t\treturn;\n\t\t}\n\t\n\t\tif ( vis ) {\n\t\t\t// Insert column\n\t\t\t// Need to decide if we should use appendChild or insertBefore\n\t\t\tvar insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 );\n\t\n\t\t\tfor ( i=0, ien=data.length ; i<ien ; i++ ) {\n\t\t\t\ttr = data[i].nTr;\n\t\t\t\tcells = data[i].anCells;\n\t\n\t\t\t\tif ( tr ) {\n\t\t\t\t\t// insertBefore can act like appendChild if 2nd arg is null\n\t\t\t\t\ttr.insertBefore( cells[ column ], cells[ insertBefore ] || null );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// Remove column\n\t\t\t$( _pluck( settings.aoData, 'anCells', column ) ).detach();\n\t\t}\n\t\n\t\t// Common actions\n\t\tcol.bVisible = vis;\n\t\t_fnDrawHead( settings, settings.aoHeader );\n\t\t_fnDrawHead( settings, settings.aoFooter );\n\t\n\t\t// Update colspan for no records display. Child rows and extensions will use their own\n\t\t// listeners to do this - only need to update the empty table item here\n\t\tif ( ! settings.aiDisplay.length ) {\n\t\t\t$(settings.nTBody).find('td[colspan]').attr('colspan', _fnVisbleColumns(settings));\n\t\t}\n\t\n\t\t_fnSaveState( settings );\n\t};\n\t\n\t\n\t_api_register( 'columns()', function ( selector, opts ) {\n\t\t// argument shifting\n\t\tif ( selector === undefined ) {\n\t\t\tselector = '';\n\t\t}\n\t\telse if ( $.isPlainObject( selector ) ) {\n\t\t\topts = selector;\n\t\t\tselector = '';\n\t\t}\n\t\n\t\topts = _selector_opts( opts );\n\t\n\t\tvar inst = this.iterator( 'table', function ( settings ) {\n\t\t\treturn __column_selector( settings, selector, opts );\n\t\t}, 1 );\n\t\n\t\t// Want argument shifting here and in _row_selector?\n\t\tinst.selector.cols = selector;\n\t\tinst.selector.opts = opts;\n\t\n\t\treturn inst;\n\t} );\n\t\n\t_api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) {\n\t\treturn this.iterator( 'column', function ( settings, column ) {\n\t\t\treturn settings.aoColumns[column].nTh;\n\t\t}, 1 );\n\t} );\n\t\n\t_api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) {\n\t\treturn this.iterator( 'column', function ( settings, column ) {\n\t\t\treturn settings.aoColumns[column].nTf;\n\t\t}, 1 );\n\t} );\n\t\n\t_api_registerPlural( 'columns().data()', 'column().data()', function () {\n\t\treturn this.iterator( 'column-rows', __columnData, 1 );\n\t} );\n\t\n\t_api_registerPlural( 'columns().dataSrc()', 'column().dataSrc()', function () {\n\t\treturn this.iterator( 'column', function ( settings, column ) {\n\t\t\treturn settings.aoColumns[column].mData;\n\t\t}, 1 );\n\t} );\n\t\n\t_api_registerPlural( 'columns().cache()', 'column().cache()', function ( type ) {\n\t\treturn this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {\n\t\t\treturn _pluck_order( settings.aoData, rows,\n\t\t\t\ttype === 'search' ? '_aFilterData' : '_aSortData', column\n\t\t\t);\n\t\t}, 1 );\n\t} );\n\t\n\t_api_registerPlural( 'columns().nodes()', 'column().nodes()', function () {\n\t\treturn this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {\n\t\t\treturn _pluck_order( settings.aoData, rows, 'anCells', column ) ;\n\t\t}, 1 );\n\t} );\n\t\n\t_api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis, calc ) {\n\t\tvar ret = this.iterator( 'column', function ( settings, column ) {\n\t\t\tif ( vis === undefined ) {\n\t\t\t\treturn settings.aoColumns[ column ].bVisible;\n\t\t\t} // else\n\t\t\t__setColumnVis( settings, column, vis );\n\t\t} );\n\t\n\t\t// Group the column visibility changes\n\t\tif ( vis !== undefined ) {\n\t\t\t// Second loop once the first is done for events\n\t\t\tthis.iterator( 'column', function ( settings, column ) {\n\t\t\t\t_fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis, calc] );\n\t\t\t} );\n\t\n\t\t\tif ( calc === undefined || calc ) {\n\t\t\t\tthis.columns.adjust();\n\t\t\t}\n\t\t}\n\t\n\t\treturn ret;\n\t} );\n\t\n\t_api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) {\n\t\treturn this.iterator( 'column', function ( settings, column ) {\n\t\t\treturn type === 'visible' ?\n\t\t\t\t_fnColumnIndexToVisible( settings, column ) :\n\t\t\t\tcolumn;\n\t\t}, 1 );\n\t} );\n\t\n\t_api_register( 'columns.adjust()', function () {\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\t_fnAdjustColumnSizing( settings );\n\t\t}, 1 );\n\t} );\n\t\n\t_api_register( 'column.index()', function ( type, idx ) {\n\t\tif ( this.context.length !== 0 ) {\n\t\t\tvar ctx = this.context[0];\n\t\n\t\t\tif ( type === 'fromVisible' || type === 'toData' ) {\n\t\t\t\treturn _fnVisibleToColumnIndex( ctx, idx );\n\t\t\t}\n\t\t\telse if ( type === 'fromData' || type === 'toVisible' ) {\n\t\t\t\treturn _fnColumnIndexToVisible( ctx, idx );\n\t\t\t}\n\t\t}\n\t} );\n\t\n\t_api_register( 'column()', function ( selector, opts ) {\n\t\treturn _selector_first( this.columns( selector, opts ) );\n\t} );\n\t\n\t\n\t\n\tvar __cell_selector = function ( settings, selector, opts )\n\t{\n\t\tvar data = settings.aoData;\n\t\tvar rows = _selector_row_indexes( settings, opts );\n\t\tvar cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );\n\t\tvar allCells = $( [].concat.apply([], cells) );\n\t\tvar row;\n\t\tvar columns = settings.aoColumns.length;\n\t\tvar a, i, ien, j, o, host;\n\t\n\t\tvar run = function ( s ) {\n\t\t\tvar fnSelector = typeof s === 'function';\n\t\n\t\t\tif ( s === null || s === undefined || fnSelector ) {\n\t\t\t\t// All cells and function selectors\n\t\t\t\ta = [];\n\t\n\t\t\t\tfor ( i=0, ien=rows.length ; i<ien ; i++ ) {\n\t\t\t\t\trow = rows[i];\n\t\n\t\t\t\t\tfor ( j=0 ; j<columns ; j++ ) {\n\t\t\t\t\t\to = {\n\t\t\t\t\t\t\trow: row,\n\t\t\t\t\t\t\tcolumn: j\n\t\t\t\t\t\t};\n\t\n\t\t\t\t\t\tif ( fnSelector ) {\n\t\t\t\t\t\t\t// Selector - function\n\t\t\t\t\t\t\thost = data[ row ];\n\t\n\t\t\t\t\t\t\tif ( s( o, _fnGetCellData(settings, row, j), host.anCells ? host.anCells[j] : null ) ) {\n\t\t\t\t\t\t\t\ta.push( o );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// Selector - all\n\t\t\t\t\t\t\ta.push( o );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\t\n\t\t\t// Selector - index\n\t\t\tif ( $.isPlainObject( s ) ) {\n\t\t\t\t// Valid cell index and its in the array of selectable rows\n\t\t\t\treturn s.column !== undefined && s.row !== undefined && $.inArray( s.row, rows ) !== -1 ?\n\t\t\t\t\t[s] :\n\t\t\t\t\t[];\n\t\t\t}\n\t\n\t\t\t// Selector - jQuery filtered cells\n\t\t\tvar jqResult = allCells\n\t\t\t\t.filter( s )\n\t\t\t\t.map( function (i, el) {\n\t\t\t\t\treturn { // use a new object, in case someone changes the values\n\t\t\t\t\t\trow:    el._DT_CellIndex.row,\n\t\t\t\t\t\tcolumn: el._DT_CellIndex.column\n\t \t\t\t\t};\n\t\t\t\t} )\n\t\t\t\t.toArray();\n\t\n\t\t\tif ( jqResult.length || ! s.nodeName ) {\n\t\t\t\treturn jqResult;\n\t\t\t}\n\t\n\t\t\t// Otherwise the selector is a node, and there is one last option - the\n\t\t\t// element might be a child of an element which has dt-row and dt-column\n\t\t\t// data attributes\n\t\t\thost = $(s).closest('*[data-dt-row]');\n\t\t\treturn host.length ?\n\t\t\t\t[ {\n\t\t\t\t\trow: host.data('dt-row'),\n\t\t\t\t\tcolumn: host.data('dt-column')\n\t\t\t\t} ] :\n\t\t\t\t[];\n\t\t};\n\t\n\t\treturn _selector_run( 'cell', selector, run, settings, opts );\n\t};\n\t\n\t\n\t\n\t\n\t_api_register( 'cells()', function ( rowSelector, columnSelector, opts ) {\n\t\t// Argument shifting\n\t\tif ( $.isPlainObject( rowSelector ) ) {\n\t\t\t// Indexes\n\t\t\tif ( rowSelector.row === undefined ) {\n\t\t\t\t// Selector options in first parameter\n\t\t\t\topts = rowSelector;\n\t\t\t\trowSelector = null;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Cell index objects in first parameter\n\t\t\t\topts = columnSelector;\n\t\t\t\tcolumnSelector = null;\n\t\t\t}\n\t\t}\n\t\tif ( $.isPlainObject( columnSelector ) ) {\n\t\t\topts = columnSelector;\n\t\t\tcolumnSelector = null;\n\t\t}\n\t\n\t\t// Cell selector\n\t\tif ( columnSelector === null || columnSelector === undefined ) {\n\t\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\t\treturn __cell_selector( settings, rowSelector, _selector_opts( opts ) );\n\t\t\t} );\n\t\t}\n\t\n\t\t// Row + column selector\n\t\tvar columns = this.columns( columnSelector );\n\t\tvar rows = this.rows( rowSelector );\n\t\tvar a, i, ien, j, jen;\n\t\n\t\tthis.iterator( 'table', function ( settings, idx ) {\n\t\t\ta = [];\n\t\n\t\t\tfor ( i=0, ien=rows[idx].length ; i<ien ; i++ ) {\n\t\t\t\tfor ( j=0, jen=columns[idx].length ; j<jen ; j++ ) {\n\t\t\t\t\ta.push( {\n\t\t\t\t\t\trow:    rows[idx][i],\n\t\t\t\t\t\tcolumn: columns[idx][j]\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\t}, 1 );\n\t\n\t    // Now pass through the cell selector for options\n\t    var cells = this.cells( a, opts );\n\t\n\t\t$.extend( cells.selector, {\n\t\t\tcols: columnSelector,\n\t\t\trows: rowSelector,\n\t\t\topts: opts\n\t\t} );\n\t\n\t\treturn cells;\n\t} );\n\t\n\t\n\t_api_registerPlural( 'cells().nodes()', 'cell().node()', function () {\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\n\t\t\tvar data = settings.aoData[ row ];\n\t\n\t\t\treturn data && data.anCells ?\n\t\t\t\tdata.anCells[ column ] :\n\t\t\t\tundefined;\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t_api_register( 'cells().data()', function () {\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\n\t\t\treturn _fnGetCellData( settings, row, column );\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t_api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) {\n\t\ttype = type === 'search' ? '_aFilterData' : '_aSortData';\n\t\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\n\t\t\treturn settings.aoData[ row ][ type ][ column ];\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t_api_registerPlural( 'cells().render()', 'cell().render()', function ( type ) {\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\n\t\t\treturn _fnGetCellData( settings, row, column, type );\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t_api_registerPlural( 'cells().indexes()', 'cell().index()', function () {\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\n\t\t\treturn {\n\t\t\t\trow: row,\n\t\t\t\tcolumn: column,\n\t\t\t\tcolumnVisible: _fnColumnIndexToVisible( settings, column )\n\t\t\t};\n\t\t}, 1 );\n\t} );\n\t\n\t\n\t_api_registerPlural( 'cells().invalidate()', 'cell().invalidate()', function ( src ) {\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\n\t\t\t_fnInvalidate( settings, row, src, column );\n\t\t} );\n\t} );\n\t\n\t\n\t\n\t_api_register( 'cell()', function ( rowSelector, columnSelector, opts ) {\n\t\treturn _selector_first( this.cells( rowSelector, columnSelector, opts ) );\n\t} );\n\t\n\t\n\t_api_register( 'cell().data()', function ( data ) {\n\t\tvar ctx = this.context;\n\t\tvar cell = this[0];\n\t\n\t\tif ( data === undefined ) {\n\t\t\t// Get\n\t\t\treturn ctx.length && cell.length ?\n\t\t\t\t_fnGetCellData( ctx[0], cell[0].row, cell[0].column ) :\n\t\t\t\tundefined;\n\t\t}\n\t\n\t\t// Set\n\t\t_fnSetCellData( ctx[0], cell[0].row, cell[0].column, data );\n\t\t_fnInvalidate( ctx[0], cell[0].row, 'data', cell[0].column );\n\t\n\t\treturn this;\n\t} );\n\t\n\t\n\t\n\t/**\n\t * Get current ordering (sorting) that has been applied to the table.\n\t *\n\t * @returns {array} 2D array containing the sorting information for the first\n\t *   table in the current context. Each element in the parent array represents\n\t *   a column being sorted upon (i.e. multi-sorting with two columns would have\n\t *   2 inner arrays). The inner arrays may have 2 or 3 elements. The first is\n\t *   the column index that the sorting condition applies to, the second is the\n\t *   direction of the sort (`desc` or `asc`) and, optionally, the third is the\n\t *   index of the sorting order from the `column.sorting` initialisation array.\n\t *//**\n\t * Set the ordering for the table.\n\t *\n\t * @param {integer} order Column index to sort upon.\n\t * @param {string} direction Direction of the sort to be applied (`asc` or `desc`)\n\t * @returns {DataTables.Api} this\n\t *//**\n\t * Set the ordering for the table.\n\t *\n\t * @param {array} order 1D array of sorting information to be applied.\n\t * @param {array} [...] Optional additional sorting conditions\n\t * @returns {DataTables.Api} this\n\t *//**\n\t * Set the ordering for the table.\n\t *\n\t * @param {array} order 2D array of sorting information to be applied.\n\t * @returns {DataTables.Api} this\n\t */\n\t_api_register( 'order()', function ( order, dir ) {\n\t\tvar ctx = this.context;\n\t\n\t\tif ( order === undefined ) {\n\t\t\t// get\n\t\t\treturn ctx.length !== 0 ?\n\t\t\t\tctx[0].aaSorting :\n\t\t\t\tundefined;\n\t\t}\n\t\n\t\t// set\n\t\tif ( typeof order === 'number' ) {\n\t\t\t// Simple column / direction passed in\n\t\t\torder = [ [ order, dir ] ];\n\t\t}\n\t\telse if ( order.length && ! $.isArray( order[0] ) ) {\n\t\t\t// Arguments passed in (list of 1D arrays)\n\t\t\torder = Array.prototype.slice.call( arguments );\n\t\t}\n\t\t// otherwise a 2D array was passed in\n\t\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\tsettings.aaSorting = order.slice();\n\t\t} );\n\t} );\n\t\n\t\n\t/**\n\t * Attach a sort listener to an element for a given column\n\t *\n\t * @param {node|jQuery|string} node Identifier for the element(s) to attach the\n\t *   listener to. This can take the form of a single DOM node, a jQuery\n\t *   collection of nodes or a jQuery selector which will identify the node(s).\n\t * @param {integer} column the column that a click on this node will sort on\n\t * @param {function} [callback] callback function when sort is run\n\t * @returns {DataTables.Api} this\n\t */\n\t_api_register( 'order.listener()', function ( node, column, callback ) {\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\t_fnSortAttachListener( settings, node, column, callback );\n\t\t} );\n\t} );\n\t\n\t\n\t_api_register( 'order.fixed()', function ( set ) {\n\t\tif ( ! set ) {\n\t\t\tvar ctx = this.context;\n\t\t\tvar fixed = ctx.length ?\n\t\t\t\tctx[0].aaSortingFixed :\n\t\t\t\tundefined;\n\t\n\t\t\treturn $.isArray( fixed ) ?\n\t\t\t\t{ pre: fixed } :\n\t\t\t\tfixed;\n\t\t}\n\t\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\tsettings.aaSortingFixed = $.extend( true, {}, set );\n\t\t} );\n\t} );\n\t\n\t\n\t// Order by the selected column(s)\n\t_api_register( [\n\t\t'columns().order()',\n\t\t'column().order()'\n\t], function ( dir ) {\n\t\tvar that = this;\n\t\n\t\treturn this.iterator( 'table', function ( settings, i ) {\n\t\t\tvar sort = [];\n\t\n\t\t\t$.each( that[i], function (j, col) {\n\t\t\t\tsort.push( [ col, dir ] );\n\t\t\t} );\n\t\n\t\t\tsettings.aaSorting = sort;\n\t\t} );\n\t} );\n\t\n\t\n\t\n\t_api_register( 'search()', function ( input, regex, smart, caseInsen ) {\n\t\tvar ctx = this.context;\n\t\n\t\tif ( input === undefined ) {\n\t\t\t// get\n\t\t\treturn ctx.length !== 0 ?\n\t\t\t\tctx[0].oPreviousSearch.sSearch :\n\t\t\t\tundefined;\n\t\t}\n\t\n\t\t// set\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\tif ( ! settings.oFeatures.bFilter ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\t_fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {\n\t\t\t\t\"sSearch\": input+\"\",\n\t\t\t\t\"bRegex\":  regex === null ? false : regex,\n\t\t\t\t\"bSmart\":  smart === null ? true  : smart,\n\t\t\t\t\"bCaseInsensitive\": caseInsen === null ? true : caseInsen\n\t\t\t} ), 1 );\n\t\t} );\n\t} );\n\t\n\t\n\t_api_registerPlural(\n\t\t'columns().search()',\n\t\t'column().search()',\n\t\tfunction ( input, regex, smart, caseInsen ) {\n\t\t\treturn this.iterator( 'column', function ( settings, column ) {\n\t\t\t\tvar preSearch = settings.aoPreSearchCols;\n\t\n\t\t\t\tif ( input === undefined ) {\n\t\t\t\t\t// get\n\t\t\t\t\treturn preSearch[ column ].sSearch;\n\t\t\t\t}\n\t\n\t\t\t\t// set\n\t\t\t\tif ( ! settings.oFeatures.bFilter ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\n\t\t\t\t$.extend( preSearch[ column ], {\n\t\t\t\t\t\"sSearch\": input+\"\",\n\t\t\t\t\t\"bRegex\":  regex === null ? false : regex,\n\t\t\t\t\t\"bSmart\":  smart === null ? true  : smart,\n\t\t\t\t\t\"bCaseInsensitive\": caseInsen === null ? true : caseInsen\n\t\t\t\t} );\n\t\n\t\t\t\t_fnFilterComplete( settings, settings.oPreviousSearch, 1 );\n\t\t\t} );\n\t\t}\n\t);\n\t\n\t/*\n\t * State API methods\n\t */\n\t\n\t_api_register( 'state()', function () {\n\t\treturn this.context.length ?\n\t\t\tthis.context[0].oSavedState :\n\t\t\tnull;\n\t} );\n\t\n\t\n\t_api_register( 'state.clear()', function () {\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\t// Save an empty object\n\t\t\tsettings.fnStateSaveCallback.call( settings.oInstance, settings, {} );\n\t\t} );\n\t} );\n\t\n\t\n\t_api_register( 'state.loaded()', function () {\n\t\treturn this.context.length ?\n\t\t\tthis.context[0].oLoadedState :\n\t\t\tnull;\n\t} );\n\t\n\t\n\t_api_register( 'state.save()', function () {\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\t_fnSaveState( settings );\n\t\t} );\n\t} );\n\t\n\t\n\t\n\t/**\n\t * Provide a common method for plug-ins to check the version of DataTables being\n\t * used, in order to ensure compatibility.\n\t *\n\t *  @param {string} version Version string to check for, in the format \"X.Y.Z\".\n\t *    Note that the formats \"X\" and \"X.Y\" are also acceptable.\n\t *  @returns {boolean} true if this version of DataTables is greater or equal to\n\t *    the required version, or false if this version of DataTales is not\n\t *    suitable\n\t *  @static\n\t *  @dtopt API-Static\n\t *\n\t *  @example\n\t *    alert( $.fn.dataTable.versionCheck( '1.9.0' ) );\n\t */\n\tDataTable.versionCheck = DataTable.fnVersionCheck = function( version )\n\t{\n\t\tvar aThis = DataTable.version.split('.');\n\t\tvar aThat = version.split('.');\n\t\tvar iThis, iThat;\n\t\n\t\tfor ( var i=0, iLen=aThat.length ; i<iLen ; i++ ) {\n\t\t\tiThis = parseInt( aThis[i], 10 ) || 0;\n\t\t\tiThat = parseInt( aThat[i], 10 ) || 0;\n\t\n\t\t\t// Parts are the same, keep comparing\n\t\t\tif (iThis === iThat) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\n\t\t\t// Parts are different, return immediately\n\t\t\treturn iThis > iThat;\n\t\t}\n\t\n\t\treturn true;\n\t};\n\t\n\t\n\t/**\n\t * Check if a `<table>` node is a DataTable table already or not.\n\t *\n\t *  @param {node|jquery|string} table Table node, jQuery object or jQuery\n\t *      selector for the table to test. Note that if more than more than one\n\t *      table is passed on, only the first will be checked\n\t *  @returns {boolean} true the table given is a DataTable, or false otherwise\n\t *  @static\n\t *  @dtopt API-Static\n\t *\n\t *  @example\n\t *    if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {\n\t *      $('#example').dataTable();\n\t *    }\n\t */\n\tDataTable.isDataTable = DataTable.fnIsDataTable = function ( table )\n\t{\n\t\tvar t = $(table).get(0);\n\t\tvar is = false;\n\t\n\t\tif ( table instanceof DataTable.Api ) {\n\t\t\treturn true;\n\t\t}\n\t\n\t\t$.each( DataTable.settings, function (i, o) {\n\t\t\tvar head = o.nScrollHead ? $('table', o.nScrollHead)[0] : null;\n\t\t\tvar foot = o.nScrollFoot ? $('table', o.nScrollFoot)[0] : null;\n\t\n\t\t\tif ( o.nTable === t || head === t || foot === t ) {\n\t\t\t\tis = true;\n\t\t\t}\n\t\t} );\n\t\n\t\treturn is;\n\t};\n\t\n\t\n\t/**\n\t * Get all DataTable tables that have been initialised - optionally you can\n\t * select to get only currently visible tables.\n\t *\n\t *  @param {boolean} [visible=false] Flag to indicate if you want all (default)\n\t *    or visible tables only.\n\t *  @returns {array} Array of `table` nodes (not DataTable instances) which are\n\t *    DataTables\n\t *  @static\n\t *  @dtopt API-Static\n\t *\n\t *  @example\n\t *    $.each( $.fn.dataTable.tables(true), function () {\n\t *      $(table).DataTable().columns.adjust();\n\t *    } );\n\t */\n\tDataTable.tables = DataTable.fnTables = function ( visible )\n\t{\n\t\tvar api = false;\n\t\n\t\tif ( $.isPlainObject( visible ) ) {\n\t\t\tapi = visible.api;\n\t\t\tvisible = visible.visible;\n\t\t}\n\t\n\t\tvar a = $.map( DataTable.settings, function (o) {\n\t\t\tif ( !visible || (visible && $(o.nTable).is(':visible')) ) {\n\t\t\t\treturn o.nTable;\n\t\t\t}\n\t\t} );\n\t\n\t\treturn api ?\n\t\t\tnew _Api( a ) :\n\t\t\ta;\n\t};\n\t\n\t\n\t/**\n\t * Convert from camel case parameters to Hungarian notation. This is made public\n\t * for the extensions to provide the same ability as DataTables core to accept\n\t * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase\n\t * parameters.\n\t *\n\t *  @param {object} src The model object which holds all parameters that can be\n\t *    mapped.\n\t *  @param {object} user The object to convert from camel case to Hungarian.\n\t *  @param {boolean} force When set to `true`, properties which already have a\n\t *    Hungarian value in the `user` object will be overwritten. Otherwise they\n\t *    won't be.\n\t */\n\tDataTable.camelToHungarian = _fnCamelToHungarian;\n\t\n\t\n\t\n\t/**\n\t *\n\t */\n\t_api_register( '$()', function ( selector, opts ) {\n\t\tvar\n\t\t\trows   = this.rows( opts ).nodes(), // Get all rows\n\t\t\tjqRows = $(rows);\n\t\n\t\treturn $( [].concat(\n\t\t\tjqRows.filter( selector ).toArray(),\n\t\t\tjqRows.find( selector ).toArray()\n\t\t) );\n\t} );\n\t\n\t\n\t// jQuery functions to operate on the tables\n\t$.each( [ 'on', 'one', 'off' ], function (i, key) {\n\t\t_api_register( key+'()', function ( /* event, handler */ ) {\n\t\t\tvar args = Array.prototype.slice.call(arguments);\n\t\n\t\t\t// Add the `dt` namespace automatically if it isn't already present\n\t\t\targs[0] = $.map( args[0].split( /\\s/ ), function ( e ) {\n\t\t\t\treturn ! e.match(/\\.dt\\b/) ?\n\t\t\t\t\te+'.dt' :\n\t\t\t\t\te;\n\t\t\t\t} ).join( ' ' );\n\t\n\t\t\tvar inst = $( this.tables().nodes() );\n\t\t\tinst[key].apply( inst, args );\n\t\t\treturn this;\n\t\t} );\n\t} );\n\t\n\t\n\t_api_register( 'clear()', function () {\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\t_fnClearTable( settings );\n\t\t} );\n\t} );\n\t\n\t\n\t_api_register( 'settings()', function () {\n\t\treturn new _Api( this.context, this.context );\n\t} );\n\t\n\t\n\t_api_register( 'init()', function () {\n\t\tvar ctx = this.context;\n\t\treturn ctx.length ? ctx[0].oInit : null;\n\t} );\n\t\n\t\n\t_api_register( 'data()', function () {\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\treturn _pluck( settings.aoData, '_aData' );\n\t\t} ).flatten();\n\t} );\n\t\n\t\n\t_api_register( 'destroy()', function ( remove ) {\n\t\tremove = remove || false;\n\t\n\t\treturn this.iterator( 'table', function ( settings ) {\n\t\t\tvar orig      = settings.nTableWrapper.parentNode;\n\t\t\tvar classes   = settings.oClasses;\n\t\t\tvar table     = settings.nTable;\n\t\t\tvar tbody     = settings.nTBody;\n\t\t\tvar thead     = settings.nTHead;\n\t\t\tvar tfoot     = settings.nTFoot;\n\t\t\tvar jqTable   = $(table);\n\t\t\tvar jqTbody   = $(tbody);\n\t\t\tvar jqWrapper = $(settings.nTableWrapper);\n\t\t\tvar rows      = $.map( settings.aoData, function (r) { return r.nTr; } );\n\t\t\tvar i, ien;\n\t\n\t\t\t// Flag to note that the table is currently being destroyed - no action\n\t\t\t// should be taken\n\t\t\tsettings.bDestroying = true;\n\t\n\t\t\t// Fire off the destroy callbacks for plug-ins etc\n\t\t\t_fnCallbackFire( settings, \"aoDestroyCallback\", \"destroy\", [settings] );\n\t\n\t\t\t// If not being removed from the document, make all columns visible\n\t\t\tif ( ! remove ) {\n\t\t\t\tnew _Api( settings ).columns().visible( true );\n\t\t\t}\n\t\n\t\t\t// Blitz all `DT` namespaced events (these are internal events, the\n\t\t\t// lowercase, `dt` events are user subscribed and they are responsible\n\t\t\t// for removing them\n\t\t\tjqWrapper.off('.DT').find(':not(tbody *)').off('.DT');\n\t\t\t$(window).off('.DT-'+settings.sInstance);\n\t\n\t\t\t// When scrolling we had to break the table up - restore it\n\t\t\tif ( table != thead.parentNode ) {\n\t\t\t\tjqTable.children('thead').detach();\n\t\t\t\tjqTable.append( thead );\n\t\t\t}\n\t\n\t\t\tif ( tfoot && table != tfoot.parentNode ) {\n\t\t\t\tjqTable.children('tfoot').detach();\n\t\t\t\tjqTable.append( tfoot );\n\t\t\t}\n\t\n\t\t\tsettings.aaSorting = [];\n\t\t\tsettings.aaSortingFixed = [];\n\t\t\t_fnSortingClasses( settings );\n\t\n\t\t\t$( rows ).removeClass( settings.asStripeClasses.join(' ') );\n\t\n\t\t\t$('th, td', thead).removeClass( classes.sSortable+' '+\n\t\t\t\tclasses.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone\n\t\t\t);\n\t\n\t\t\t// Add the TR elements back into the table in their original order\n\t\t\tjqTbody.children().detach();\n\t\t\tjqTbody.append( rows );\n\t\n\t\t\t// Remove the DataTables generated nodes, events and classes\n\t\t\tvar removedMethod = remove ? 'remove' : 'detach';\n\t\t\tjqTable[ removedMethod ]();\n\t\t\tjqWrapper[ removedMethod ]();\n\t\n\t\t\t// If we need to reattach the table to the document\n\t\t\tif ( ! remove && orig ) {\n\t\t\t\t// insertBefore acts like appendChild if !arg[1]\n\t\t\t\torig.insertBefore( table, settings.nTableReinsertBefore );\n\t\n\t\t\t\t// Restore the width of the original table - was read from the style property,\n\t\t\t\t// so we can restore directly to that\n\t\t\t\tjqTable\n\t\t\t\t\t.css( 'width', settings.sDestroyWidth )\n\t\t\t\t\t.removeClass( classes.sTable );\n\t\n\t\t\t\t// If the were originally stripe classes - then we add them back here.\n\t\t\t\t// Note this is not fool proof (for example if not all rows had stripe\n\t\t\t\t// classes - but it's a good effort without getting carried away\n\t\t\t\tien = settings.asDestroyStripes.length;\n\t\n\t\t\t\tif ( ien ) {\n\t\t\t\t\tjqTbody.children().each( function (i) {\n\t\t\t\t\t\t$(this).addClass( settings.asDestroyStripes[i % ien] );\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t/* Remove the settings object from the settings array */\n\t\t\tvar idx = $.inArray( settings, DataTable.settings );\n\t\t\tif ( idx !== -1 ) {\n\t\t\t\tDataTable.settings.splice( idx, 1 );\n\t\t\t}\n\t\t} );\n\t} );\n\t\n\t\n\t// Add the `every()` method for rows, columns and cells in a compact form\n\t$.each( [ 'column', 'row', 'cell' ], function ( i, type ) {\n\t\t_api_register( type+'s().every()', function ( fn ) {\n\t\t\tvar opts = this.selector.opts;\n\t\t\tvar api = this;\n\t\n\t\t\treturn this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) {\n\t\t\t\t// Rows and columns:\n\t\t\t\t//  arg1 - index\n\t\t\t\t//  arg2 - table counter\n\t\t\t\t//  arg3 - loop counter\n\t\t\t\t//  arg4 - undefined\n\t\t\t\t// Cells:\n\t\t\t\t//  arg1 - row index\n\t\t\t\t//  arg2 - column index\n\t\t\t\t//  arg3 - table counter\n\t\t\t\t//  arg4 - loop counter\n\t\t\t\tfn.call(\n\t\t\t\t\tapi[ type ](\n\t\t\t\t\t\targ1,\n\t\t\t\t\t\ttype==='cell' ? arg2 : opts,\n\t\t\t\t\t\ttype==='cell' ? opts : undefined\n\t\t\t\t\t),\n\t\t\t\t\targ1, arg2, arg3, arg4\n\t\t\t\t);\n\t\t\t} );\n\t\t} );\n\t} );\n\t\n\t\n\t// i18n method for extensions to be able to use the language object from the\n\t// DataTable\n\t_api_register( 'i18n()', function ( token, def, plural ) {\n\t\tvar ctx = this.context[0];\n\t\tvar resolved = _fnGetObjectDataFn( token )( ctx.oLanguage );\n\t\n\t\tif ( resolved === undefined ) {\n\t\t\tresolved = def;\n\t\t}\n\t\n\t\tif ( plural !== undefined && $.isPlainObject( resolved ) ) {\n\t\t\tresolved = resolved[ plural ] !== undefined ?\n\t\t\t\tresolved[ plural ] :\n\t\t\t\tresolved._;\n\t\t}\n\t\n\t\treturn resolved.replace( '%d', plural ); // nb: plural might be undefined,\n\t} );\n\n\t/**\n\t * Version string for plug-ins to check compatibility. Allowed format is\n\t * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used\n\t * only for non-release builds. See http://semver.org/ for more information.\n\t *  @member\n\t *  @type string\n\t *  @default Version number\n\t */\n\tDataTable.version = \"1.10.18\";\n\n\t/**\n\t * Private data store, containing all of the settings objects that are\n\t * created for the tables on a given page.\n\t *\n\t * Note that the `DataTable.settings` object is aliased to\n\t * `jQuery.fn.dataTableExt` through which it may be accessed and\n\t * manipulated, or `jQuery.fn.dataTable.settings`.\n\t *  @member\n\t *  @type array\n\t *  @default []\n\t *  @private\n\t */\n\tDataTable.settings = [];\n\n\t/**\n\t * Object models container, for the various models that DataTables has\n\t * available to it. These models define the objects that are used to hold\n\t * the active state and configuration of the table.\n\t *  @namespace\n\t */\n\tDataTable.models = {};\n\t\n\t\n\t\n\t/**\n\t * Template object for the way in which DataTables holds information about\n\t * search information for the global filter and individual column filters.\n\t *  @namespace\n\t */\n\tDataTable.models.oSearch = {\n\t\t/**\n\t\t * Flag to indicate if the filtering should be case insensitive or not\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t */\n\t\t\"bCaseInsensitive\": true,\n\t\n\t\t/**\n\t\t * Applied search term\n\t\t *  @type string\n\t\t *  @default <i>Empty string</i>\n\t\t */\n\t\t\"sSearch\": \"\",\n\t\n\t\t/**\n\t\t * Flag to indicate if the search term should be interpreted as a\n\t\t * regular expression (true) or not (false) and therefore and special\n\t\t * regex characters escaped.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t */\n\t\t\"bRegex\": false,\n\t\n\t\t/**\n\t\t * Flag to indicate if DataTables is to use its smart filtering or not.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t */\n\t\t\"bSmart\": true\n\t};\n\t\n\t\n\t\n\t\n\t/**\n\t * Template object for the way in which DataTables holds information about\n\t * each individual row. This is the object format used for the settings\n\t * aoData array.\n\t *  @namespace\n\t */\n\tDataTable.models.oRow = {\n\t\t/**\n\t\t * TR element for the row\n\t\t *  @type node\n\t\t *  @default null\n\t\t */\n\t\t\"nTr\": null,\n\t\n\t\t/**\n\t\t * Array of TD elements for each row. This is null until the row has been\n\t\t * created.\n\t\t *  @type array nodes\n\t\t *  @default []\n\t\t */\n\t\t\"anCells\": null,\n\t\n\t\t/**\n\t\t * Data object from the original data source for the row. This is either\n\t\t * an array if using the traditional form of DataTables, or an object if\n\t\t * using mData options. The exact type will depend on the passed in\n\t\t * data from the data source, or will be an array if using DOM a data\n\t\t * source.\n\t\t *  @type array|object\n\t\t *  @default []\n\t\t */\n\t\t\"_aData\": [],\n\t\n\t\t/**\n\t\t * Sorting data cache - this array is ostensibly the same length as the\n\t\t * number of columns (although each index is generated only as it is\n\t\t * needed), and holds the data that is used for sorting each column in the\n\t\t * row. We do this cache generation at the start of the sort in order that\n\t\t * the formatting of the sort data need be done only once for each cell\n\t\t * per sort. This array should not be read from or written to by anything\n\t\t * other than the master sorting methods.\n\t\t *  @type array\n\t\t *  @default null\n\t\t *  @private\n\t\t */\n\t\t\"_aSortData\": null,\n\t\n\t\t/**\n\t\t * Per cell filtering data cache. As per the sort data cache, used to\n\t\t * increase the performance of the filtering in DataTables\n\t\t *  @type array\n\t\t *  @default null\n\t\t *  @private\n\t\t */\n\t\t\"_aFilterData\": null,\n\t\n\t\t/**\n\t\t * Filtering data cache. This is the same as the cell filtering cache, but\n\t\t * in this case a string rather than an array. This is easily computed with\n\t\t * a join on `_aFilterData`, but is provided as a cache so the join isn't\n\t\t * needed on every search (memory traded for performance)\n\t\t *  @type array\n\t\t *  @default null\n\t\t *  @private\n\t\t */\n\t\t\"_sFilterRow\": null,\n\t\n\t\t/**\n\t\t * Cache of the class name that DataTables has applied to the row, so we\n\t\t * can quickly look at this variable rather than needing to do a DOM check\n\t\t * on className for the nTr property.\n\t\t *  @type string\n\t\t *  @default <i>Empty string</i>\n\t\t *  @private\n\t\t */\n\t\t\"_sRowStripe\": \"\",\n\t\n\t\t/**\n\t\t * Denote if the original data source was from the DOM, or the data source\n\t\t * object. This is used for invalidating data, so DataTables can\n\t\t * automatically read data from the original source, unless uninstructed\n\t\t * otherwise.\n\t\t *  @type string\n\t\t *  @default null\n\t\t *  @private\n\t\t */\n\t\t\"src\": null,\n\t\n\t\t/**\n\t\t * Index in the aoData array. This saves an indexOf lookup when we have the\n\t\t * object, but want to know the index\n\t\t *  @type integer\n\t\t *  @default -1\n\t\t *  @private\n\t\t */\n\t\t\"idx\": -1\n\t};\n\t\n\t\n\t/**\n\t * Template object for the column information object in DataTables. This object\n\t * is held in the settings aoColumns array and contains all the information that\n\t * DataTables needs about each individual column.\n\t *\n\t * Note that this object is related to {@link DataTable.defaults.column}\n\t * but this one is the internal data store for DataTables's cache of columns.\n\t * It should NOT be manipulated outside of DataTables. Any configuration should\n\t * be done through the initialisation options.\n\t *  @namespace\n\t */\n\tDataTable.models.oColumn = {\n\t\t/**\n\t\t * Column index. This could be worked out on-the-fly with $.inArray, but it\n\t\t * is faster to just hold it as a variable\n\t\t *  @type integer\n\t\t *  @default null\n\t\t */\n\t\t\"idx\": null,\n\t\n\t\t/**\n\t\t * A list of the columns that sorting should occur on when this column\n\t\t * is sorted. That this property is an array allows multi-column sorting\n\t\t * to be defined for a column (for example first name / last name columns\n\t\t * would benefit from this). The values are integers pointing to the\n\t\t * columns to be sorted on (typically it will be a single integer pointing\n\t\t * at itself, but that doesn't need to be the case).\n\t\t *  @type array\n\t\t */\n\t\t\"aDataSort\": null,\n\t\n\t\t/**\n\t\t * Define the sorting directions that are applied to the column, in sequence\n\t\t * as the column is repeatedly sorted upon - i.e. the first value is used\n\t\t * as the sorting direction when the column if first sorted (clicked on).\n\t\t * Sort it again (click again) and it will move on to the next index.\n\t\t * Repeat until loop.\n\t\t *  @type array\n\t\t */\n\t\t\"asSorting\": null,\n\t\n\t\t/**\n\t\t * Flag to indicate if the column is searchable, and thus should be included\n\t\t * in the filtering or not.\n\t\t *  @type boolean\n\t\t */\n\t\t\"bSearchable\": null,\n\t\n\t\t/**\n\t\t * Flag to indicate if the column is sortable or not.\n\t\t *  @type boolean\n\t\t */\n\t\t\"bSortable\": null,\n\t\n\t\t/**\n\t\t * Flag to indicate if the column is currently visible in the table or not\n\t\t *  @type boolean\n\t\t */\n\t\t\"bVisible\": null,\n\t\n\t\t/**\n\t\t * Store for manual type assignment using the `column.type` option. This\n\t\t * is held in store so we can manipulate the column's `sType` property.\n\t\t *  @type string\n\t\t *  @default null\n\t\t *  @private\n\t\t */\n\t\t\"_sManualType\": null,\n\t\n\t\t/**\n\t\t * Flag to indicate if HTML5 data attributes should be used as the data\n\t\t * source for filtering or sorting. True is either are.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *  @private\n\t\t */\n\t\t\"_bAttrSrc\": false,\n\t\n\t\t/**\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\n\t\t * element is available.\n\t\t *  @type function\n\t\t *  @param {element} nTd The TD node that has been created\n\t\t *  @param {*} sData The Data for the cell\n\t\t *  @param {array|object} oData The data for the whole row\n\t\t *  @param {int} iRow The row index for the aoData data store\n\t\t *  @default null\n\t\t */\n\t\t\"fnCreatedCell\": null,\n\t\n\t\t/**\n\t\t * Function to get data from a cell in a column. You should <b>never</b>\n\t\t * access data directly through _aData internally in DataTables - always use\n\t\t * the method attached to this property. It allows mData to function as\n\t\t * required. This function is automatically assigned by the column\n\t\t * initialisation method\n\t\t *  @type function\n\t\t *  @param {array|object} oData The data array/object for the array\n\t\t *    (i.e. aoData[]._aData)\n\t\t *  @param {string} sSpecific The specific data type you want to get -\n\t\t *    'display', 'type' 'filter' 'sort'\n\t\t *  @returns {*} The data for the cell from the given row's data\n\t\t *  @default null\n\t\t */\n\t\t\"fnGetData\": null,\n\t\n\t\t/**\n\t\t * Function to set data for a cell in the column. You should <b>never</b>\n\t\t * set the data directly to _aData internally in DataTables - always use\n\t\t * this method. It allows mData to function as required. This function\n\t\t * is automatically assigned by the column initialisation method\n\t\t *  @type function\n\t\t *  @param {array|object} oData The data array/object for the array\n\t\t *    (i.e. aoData[]._aData)\n\t\t *  @param {*} sValue Value to set\n\t\t *  @default null\n\t\t */\n\t\t\"fnSetData\": null,\n\t\n\t\t/**\n\t\t * Property to read the value for the cells in the column from the data\n\t\t * source array / object. If null, then the default content is used, if a\n\t\t * function is given then the return from the function is used.\n\t\t *  @type function|int|string|null\n\t\t *  @default null\n\t\t */\n\t\t\"mData\": null,\n\t\n\t\t/**\n\t\t * Partner property to mData which is used (only when defined) to get\n\t\t * the data - i.e. it is basically the same as mData, but without the\n\t\t * 'set' option, and also the data fed to it is the result from mData.\n\t\t * This is the rendering method to match the data method of mData.\n\t\t *  @type function|int|string|null\n\t\t *  @default null\n\t\t */\n\t\t\"mRender\": null,\n\t\n\t\t/**\n\t\t * Unique header TH/TD element for this column - this is what the sorting\n\t\t * listener is attached to (if sorting is enabled.)\n\t\t *  @type node\n\t\t *  @default null\n\t\t */\n\t\t\"nTh\": null,\n\t\n\t\t/**\n\t\t * Unique footer TH/TD element for this column (if there is one). Not used\n\t\t * in DataTables as such, but can be used for plug-ins to reference the\n\t\t * footer for each column.\n\t\t *  @type node\n\t\t *  @default null\n\t\t */\n\t\t\"nTf\": null,\n\t\n\t\t/**\n\t\t * The class to apply to all TD elements in the table's TBODY for the column\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sClass\": null,\n\t\n\t\t/**\n\t\t * When DataTables calculates the column widths to assign to each column,\n\t\t * it finds the longest string in each column and then constructs a\n\t\t * temporary table and reads the widths from that. The problem with this\n\t\t * is that \"mmm\" is much wider then \"iiii\", but the latter is a longer\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\n\t\t * a \"work around\" we provide this option. It will append its value to the\n\t\t * text that is found to be the longest string for the column - i.e. padding.\n\t\t *  @type string\n\t\t */\n\t\t\"sContentPadding\": null,\n\t\n\t\t/**\n\t\t * Allows a default value to be given for a column's data, and will be used\n\t\t * whenever a null data source is encountered (this can be because mData\n\t\t * is set to null, or because the data source itself is null).\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sDefaultContent\": null,\n\t\n\t\t/**\n\t\t * Name for the column, allowing reference to the column by name as well as\n\t\t * by index (needs a lookup to work by name).\n\t\t *  @type string\n\t\t */\n\t\t\"sName\": null,\n\t\n\t\t/**\n\t\t * Custom sorting data type - defines which of the available plug-ins in\n\t\t * afnSortData the custom sorting will use - if any is defined.\n\t\t *  @type string\n\t\t *  @default std\n\t\t */\n\t\t\"sSortDataType\": 'std',\n\t\n\t\t/**\n\t\t * Class to be applied to the header element when sorting on this column\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sSortingClass\": null,\n\t\n\t\t/**\n\t\t * Class to be applied to the header element when sorting on this column -\n\t\t * when jQuery UI theming is used.\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sSortingClassJUI\": null,\n\t\n\t\t/**\n\t\t * Title of the column - what is seen in the TH element (nTh).\n\t\t *  @type string\n\t\t */\n\t\t\"sTitle\": null,\n\t\n\t\t/**\n\t\t * Column sorting and filtering type\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sType\": null,\n\t\n\t\t/**\n\t\t * Width of the column\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sWidth\": null,\n\t\n\t\t/**\n\t\t * Width of the column when it was first \"encountered\"\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sWidthOrig\": null\n\t};\n\t\n\t\n\t/*\n\t * Developer note: The properties of the object below are given in Hungarian\n\t * notation, that was used as the interface for DataTables prior to v1.10, however\n\t * from v1.10 onwards the primary interface is camel case. In order to avoid\n\t * breaking backwards compatibility utterly with this change, the Hungarian\n\t * version is still, internally the primary interface, but is is not documented\n\t * - hence the @name tags in each doc comment. This allows a Javascript function\n\t * to create a map from Hungarian notation to camel case (going the other direction\n\t * would require each property to be listed, which would at around 3K to the size\n\t * of DataTables, while this method is about a 0.5K hit.\n\t *\n\t * Ultimately this does pave the way for Hungarian notation to be dropped\n\t * completely, but that is a massive amount of work and will break current\n\t * installs (therefore is on-hold until v2).\n\t */\n\t\n\t/**\n\t * Initialisation options that can be given to DataTables at initialisation\n\t * time.\n\t *  @namespace\n\t */\n\tDataTable.defaults = {\n\t\t/**\n\t\t * An array of data to use for the table, passed in at initialisation which\n\t\t * will be used in preference to any data which is already in the DOM. This is\n\t\t * particularly useful for constructing tables purely in Javascript, for\n\t\t * example with a custom Ajax call.\n\t\t *  @type array\n\t\t *  @default null\n\t\t *\n\t\t *  @dtopt Option\n\t\t *  @name DataTable.defaults.data\n\t\t *\n\t\t *  @example\n\t\t *    // Using a 2D array data source\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"data\": [\n\t\t *          ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],\n\t\t *          ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],\n\t\t *        ],\n\t\t *        \"columns\": [\n\t\t *          { \"title\": \"Engine\" },\n\t\t *          { \"title\": \"Browser\" },\n\t\t *          { \"title\": \"Platform\" },\n\t\t *          { \"title\": \"Version\" },\n\t\t *          { \"title\": \"Grade\" }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using an array of objects as a data source (`data`)\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"data\": [\n\t\t *          {\n\t\t *            \"engine\":   \"Trident\",\n\t\t *            \"browser\":  \"Internet Explorer 4.0\",\n\t\t *            \"platform\": \"Win 95+\",\n\t\t *            \"version\":  4,\n\t\t *            \"grade\":    \"X\"\n\t\t *          },\n\t\t *          {\n\t\t *            \"engine\":   \"Trident\",\n\t\t *            \"browser\":  \"Internet Explorer 5.0\",\n\t\t *            \"platform\": \"Win 95+\",\n\t\t *            \"version\":  5,\n\t\t *            \"grade\":    \"C\"\n\t\t *          }\n\t\t *        ],\n\t\t *        \"columns\": [\n\t\t *          { \"title\": \"Engine\",   \"data\": \"engine\" },\n\t\t *          { \"title\": \"Browser\",  \"data\": \"browser\" },\n\t\t *          { \"title\": \"Platform\", \"data\": \"platform\" },\n\t\t *          { \"title\": \"Version\",  \"data\": \"version\" },\n\t\t *          { \"title\": \"Grade\",    \"data\": \"grade\" }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"aaData\": null,\n\t\n\t\n\t\t/**\n\t\t * If ordering is enabled, then DataTables will perform a first pass sort on\n\t\t * initialisation. You can define which column(s) the sort is performed\n\t\t * upon, and the sorting direction, with this variable. The `sorting` array\n\t\t * should contain an array for each column to be sorted initially containing\n\t\t * the column's index and a direction string ('asc' or 'desc').\n\t\t *  @type array\n\t\t *  @default [[0,'asc']]\n\t\t *\n\t\t *  @dtopt Option\n\t\t *  @name DataTable.defaults.order\n\t\t *\n\t\t *  @example\n\t\t *    // Sort by 3rd column first, and then 4th column\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"order\": [[2,'asc'], [3,'desc']]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *    // No initial sorting\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"order\": []\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"aaSorting\": [[0,'asc']],\n\t\n\t\n\t\t/**\n\t\t * This parameter is basically identical to the `sorting` parameter, but\n\t\t * cannot be overridden by user interaction with the table. What this means\n\t\t * is that you could have a column (visible or hidden) which the sorting\n\t\t * will always be forced on first - any sorting after that (from the user)\n\t\t * will then be performed as required. This can be useful for grouping rows\n\t\t * together.\n\t\t *  @type array\n\t\t *  @default null\n\t\t *\n\t\t *  @dtopt Option\n\t\t *  @name DataTable.defaults.orderFixed\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"orderFixed\": [[0,'asc']]\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"aaSortingFixed\": [],\n\t\n\t\n\t\t/**\n\t\t * DataTables can be instructed to load data to display in the table from a\n\t\t * Ajax source. This option defines how that Ajax call is made and where to.\n\t\t *\n\t\t * The `ajax` property has three different modes of operation, depending on\n\t\t * how it is defined. These are:\n\t\t *\n\t\t * * `string` - Set the URL from where the data should be loaded from.\n\t\t * * `object` - Define properties for `jQuery.ajax`.\n\t\t * * `function` - Custom data get function\n\t\t *\n\t\t * `string`\n\t\t * --------\n\t\t *\n\t\t * As a string, the `ajax` property simply defines the URL from which\n\t\t * DataTables will load data.\n\t\t *\n\t\t * `object`\n\t\t * --------\n\t\t *\n\t\t * As an object, the parameters in the object are passed to\n\t\t * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control\n\t\t * of the Ajax request. DataTables has a number of default parameters which\n\t\t * you can override using this option. Please refer to the jQuery\n\t\t * documentation for a full description of the options available, although\n\t\t * the following parameters provide additional options in DataTables or\n\t\t * require special consideration:\n\t\t *\n\t\t * * `data` - As with jQuery, `data` can be provided as an object, but it\n\t\t *   can also be used as a function to manipulate the data DataTables sends\n\t\t *   to the server. The function takes a single parameter, an object of\n\t\t *   parameters with the values that DataTables has readied for sending. An\n\t\t *   object may be returned which will be merged into the DataTables\n\t\t *   defaults, or you can add the items to the object that was passed in and\n\t\t *   not return anything from the function. This supersedes `fnServerParams`\n\t\t *   from DataTables 1.9-.\n\t\t *\n\t\t * * `dataSrc` - By default DataTables will look for the property `data` (or\n\t\t *   `aaData` for compatibility with DataTables 1.9-) when obtaining data\n\t\t *   from an Ajax source or for server-side processing - this parameter\n\t\t *   allows that property to be changed. You can use Javascript dotted\n\t\t *   object notation to get a data source for multiple levels of nesting, or\n\t\t *   it my be used as a function. As a function it takes a single parameter,\n\t\t *   the JSON returned from the server, which can be manipulated as\n\t\t *   required, with the returned value being that used by DataTables as the\n\t\t *   data source for the table. This supersedes `sAjaxDataProp` from\n\t\t *   DataTables 1.9-.\n\t\t *\n\t\t * * `success` - Should not be overridden it is used internally in\n\t\t *   DataTables. To manipulate / transform the data returned by the server\n\t\t *   use `ajax.dataSrc`, or use `ajax` as a function (see below).\n\t\t *\n\t\t * `function`\n\t\t * ----------\n\t\t *\n\t\t * As a function, making the Ajax call is left up to yourself allowing\n\t\t * complete control of the Ajax request. Indeed, if desired, a method other\n\t\t * than Ajax could be used to obtain the required data, such as Web storage\n\t\t * or an AIR database.\n\t\t *\n\t\t * The function is given four parameters and no return is required. The\n\t\t * parameters are:\n\t\t *\n\t\t * 1. _object_ - Data to send to the server\n\t\t * 2. _function_ - Callback function that must be executed when the required\n\t\t *    data has been obtained. That data should be passed into the callback\n\t\t *    as the only parameter\n\t\t * 3. _object_ - DataTables settings object for the table\n\t\t *\n\t\t * Note that this supersedes `fnServerData` from DataTables 1.9-.\n\t\t *\n\t\t *  @type string|object|function\n\t\t *  @default null\n\t\t *\n\t\t *  @dtopt Option\n\t\t *  @name DataTable.defaults.ajax\n\t\t *  @since 1.10.0\n\t\t *\n\t\t * @example\n\t\t *   // Get JSON data from a file via Ajax.\n\t\t *   // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).\n\t\t *   $('#example').dataTable( {\n\t\t *     \"ajax\": \"data.json\"\n\t\t *   } );\n\t\t *\n\t\t * @example\n\t\t *   // Get JSON data from a file via Ajax, using `dataSrc` to change\n\t\t *   // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)\n\t\t *   $('#example').dataTable( {\n\t\t *     \"ajax\": {\n\t\t *       \"url\": \"data.json\",\n\t\t *       \"dataSrc\": \"tableData\"\n\t\t *     }\n\t\t *   } );\n\t\t *\n\t\t * @example\n\t\t *   // Get JSON data from a file via Ajax, using `dataSrc` to read data\n\t\t *   // from a plain array rather than an array in an object\n\t\t *   $('#example').dataTable( {\n\t\t *     \"ajax\": {\n\t\t *       \"url\": \"data.json\",\n\t\t *       \"dataSrc\": \"\"\n\t\t *     }\n\t\t *   } );\n\t\t *\n\t\t * @example\n\t\t *   // Manipulate the data returned from the server - add a link to data\n\t\t *   // (note this can, should, be done using `render` for the column - this\n\t\t *   // is just a simple example of how the data can be manipulated).\n\t\t *   $('#example').dataTable( {\n\t\t *     \"ajax\": {\n\t\t *       \"url\": \"data.json\",\n\t\t *       \"dataSrc\": function ( json ) {\n\t\t *         for ( var i=0, ien=json.length ; i<ien ; i++ ) {\n\t\t *           json[i][0] = '<a href=\"/message/'+json[i][0]+'>View message</a>';\n\t\t *         }\n\t\t *         return json;\n\t\t *       }\n\t\t *     }\n\t\t *   } );\n\t\t *\n\t\t * @example\n\t\t *   // Add data to the request\n\t\t *   $('#example').dataTable( {\n\t\t *     \"ajax\": {\n\t\t *       \"url\": \"data.json\",\n\t\t *       \"data\": function ( d ) {\n\t\t *         return {\n\t\t *           \"extra_search\": $('#extra').val()\n\t\t *         };\n\t\t *       }\n\t\t *     }\n\t\t *   } );\n\t\t *\n\t\t * @example\n\t\t *   // Send request as POST\n\t\t *   $('#example').dataTable( {\n\t\t *     \"ajax\": {\n\t\t *       \"url\": \"data.json\",\n\t\t *       \"type\": \"POST\"\n\t\t *     }\n\t\t *   } );\n\t\t *\n\t\t * @example\n\t\t *   // Get the data from localStorage (could interface with a form for\n\t\t *   // adding, editing and removing rows).\n\t\t *   $('#example').dataTable( {\n\t\t *     \"ajax\": function (data, callback, settings) {\n\t\t *       callback(\n\t\t *         JSON.parse( localStorage.getItem('dataTablesData') )\n\t\t *       );\n\t\t *     }\n\t\t *   } );\n\t\t */\n\t\t\"ajax\": null,\n\t\n\t\n\t\t/**\n\t\t * This parameter allows you to readily specify the entries in the length drop\n\t\t * down menu that DataTables shows when pagination is enabled. It can be\n\t\t * either a 1D array of options which will be used for both the displayed\n\t\t * option and the value, or a 2D array which will use the array in the first\n\t\t * position as the value, and the array in the second position as the\n\t\t * displayed options (useful for language strings such as 'All').\n\t\t *\n\t\t * Note that the `pageLength` property will be automatically set to the\n\t\t * first value given in this array, unless `pageLength` is also provided.\n\t\t *  @type array\n\t\t *  @default [ 10, 25, 50, 100 ]\n\t\t *\n\t\t *  @dtopt Option\n\t\t *  @name DataTable.defaults.lengthMenu\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"lengthMenu\": [[10, 25, 50, -1], [10, 25, 50, \"All\"]]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"aLengthMenu\": [ 10, 25, 50, 100 ],\n\t\n\t\n\t\t/**\n\t\t * The `columns` option in the initialisation parameter allows you to define\n\t\t * details about the way individual columns behave. For a full list of\n\t\t * column options that can be set, please see\n\t\t * {@link DataTable.defaults.column}. Note that if you use `columns` to\n\t\t * define your columns, you must have an entry in the array for every single\n\t\t * column that you have in your table (these can be null if you don't which\n\t\t * to specify any options).\n\t\t *  @member\n\t\t *\n\t\t *  @name DataTable.defaults.column\n\t\t */\n\t\t\"aoColumns\": null,\n\t\n\t\t/**\n\t\t * Very similar to `columns`, `columnDefs` allows you to target a specific\n\t\t * column, multiple columns, or all columns, using the `targets` property of\n\t\t * each object in the array. This allows great flexibility when creating\n\t\t * tables, as the `columnDefs` arrays can be of any length, targeting the\n\t\t * columns you specifically want. `columnDefs` may use any of the column\n\t\t * options available: {@link DataTable.defaults.column}, but it _must_\n\t\t * have `targets` defined in each object in the array. Values in the `targets`\n\t\t * array may be:\n\t\t *   <ul>\n\t\t *     <li>a string - class name will be matched on the TH for the column</li>\n\t\t *     <li>0 or a positive integer - column index counting from the left</li>\n\t\t *     <li>a negative integer - column index counting from the right</li>\n\t\t *     <li>the string \"_all\" - all columns (i.e. assign a default)</li>\n\t\t *   </ul>\n\t\t *  @member\n\t\t *\n\t\t *  @name DataTable.defaults.columnDefs\n\t\t */\n\t\t\"aoColumnDefs\": null,\n\t\n\t\n\t\t/**\n\t\t * Basically the same as `search`, this parameter defines the individual column\n\t\t * filtering state at initialisation time. The array must be of the same size\n\t\t * as the number of columns, and each element be an object with the parameters\n\t\t * `search` and `escapeRegex` (the latter is optional). 'null' is also\n\t\t * accepted and the default will be used.\n\t\t *  @type array\n\t\t *  @default []\n\t\t *\n\t\t *  @dtopt Option\n\t\t *  @name DataTable.defaults.searchCols\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"searchCols\": [\n\t\t *          null,\n\t\t *          { \"search\": \"My filter\" },\n\t\t *          null,\n\t\t *          { \"search\": \"^[0-9]\", \"escapeRegex\": false }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"aoSearchCols\": [],\n\t\n\t\n\t\t/**\n\t\t * An array of CSS classes that should be applied to displayed rows. This\n\t\t * array may be of any length, and DataTables will apply each class\n\t\t * sequentially, looping when required.\n\t\t *  @type array\n\t\t *  @default null <i>Will take the values determined by the `oClasses.stripe*`\n\t\t *    options</i>\n\t\t *\n\t\t *  @dtopt Option\n\t\t *  @name DataTable.defaults.stripeClasses\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"stripeClasses\": [ 'strip1', 'strip2', 'strip3' ]\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"asStripeClasses\": null,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable automatic column width calculation. This can be disabled\n\t\t * as an optimisation (it takes some time to calculate the widths) if the\n\t\t * tables widths are passed in using `columns`.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.autoWidth\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"autoWidth\": false\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bAutoWidth\": true,\n\t\n\t\n\t\t/**\n\t\t * Deferred rendering can provide DataTables with a huge speed boost when you\n\t\t * are using an Ajax or JS data source for the table. This option, when set to\n\t\t * true, will cause DataTables to defer the creation of the table elements for\n\t\t * each row until they are needed for a draw - saving a significant amount of\n\t\t * time.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.deferRender\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"ajax\": \"sources/arrays.txt\",\n\t\t *        \"deferRender\": true\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bDeferRender\": false,\n\t\n\t\n\t\t/**\n\t\t * Replace a DataTable which matches the given selector and replace it with\n\t\t * one which has the properties of the new initialisation object passed. If no\n\t\t * table matches the selector, then the new DataTable will be constructed as\n\t\t * per normal.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.destroy\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"srollY\": \"200px\",\n\t\t *        \"paginate\": false\n\t\t *      } );\n\t\t *\n\t\t *      // Some time later....\n\t\t *      $('#example').dataTable( {\n\t\t *        \"filter\": false,\n\t\t *        \"destroy\": true\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bDestroy\": false,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable filtering of data. Filtering in DataTables is \"smart\" in\n\t\t * that it allows the end user to input multiple words (space separated) and\n\t\t * will match a row containing those words, even if not in the order that was\n\t\t * specified (this allow matching across multiple columns). Note that if you\n\t\t * wish to use filtering in DataTables this must remain 'true' - to remove the\n\t\t * default filtering input box and retain filtering abilities, please use\n\t\t * {@link DataTable.defaults.dom}.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.searching\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"searching\": false\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bFilter\": true,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable the table information display. This shows information\n\t\t * about the data that is currently visible on the page, including information\n\t\t * about filtered data if that action is being performed.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.info\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"info\": false\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bInfo\": true,\n\t\n\t\n\t\t/**\n\t\t * Allows the end user to select the size of a formatted page from a select\n\t\t * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.lengthChange\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"lengthChange\": false\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bLengthChange\": true,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable pagination.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.paging\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"paging\": false\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bPaginate\": true,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable the display of a 'processing' indicator when the table is\n\t\t * being processed (e.g. a sort). This is particularly useful for tables with\n\t\t * large amounts of data where it can take a noticeable amount of time to sort\n\t\t * the entries.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.processing\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"processing\": true\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bProcessing\": false,\n\t\n\t\n\t\t/**\n\t\t * Retrieve the DataTables object for the given selector. Note that if the\n\t\t * table has already been initialised, this parameter will cause DataTables\n\t\t * to simply return the object that has already been set up - it will not take\n\t\t * account of any changes you might have made to the initialisation object\n\t\t * passed to DataTables (setting this parameter to true is an acknowledgement\n\t\t * that you understand this). `destroy` can be used to reinitialise a table if\n\t\t * you need.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.retrieve\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      initTable();\n\t\t *      tableActions();\n\t\t *    } );\n\t\t *\n\t\t *    function initTable ()\n\t\t *    {\n\t\t *      return $('#example').dataTable( {\n\t\t *        \"scrollY\": \"200px\",\n\t\t *        \"paginate\": false,\n\t\t *        \"retrieve\": true\n\t\t *      } );\n\t\t *    }\n\t\t *\n\t\t *    function tableActions ()\n\t\t *    {\n\t\t *      var table = initTable();\n\t\t *      // perform API operations with oTable\n\t\t *    }\n\t\t */\n\t\t\"bRetrieve\": false,\n\t\n\t\n\t\t/**\n\t\t * When vertical (y) scrolling is enabled, DataTables will force the height of\n\t\t * the table's viewport to the given height at all times (useful for layout).\n\t\t * However, this can look odd when filtering data down to a small data set,\n\t\t * and the footer is left \"floating\" further down. This parameter (when\n\t\t * enabled) will cause DataTables to collapse the table's viewport down when\n\t\t * the result set will fit within the given Y height.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.scrollCollapse\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"scrollY\": \"200\",\n\t\t *        \"scrollCollapse\": true\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bScrollCollapse\": false,\n\t\n\t\n\t\t/**\n\t\t * Configure DataTables to use server-side processing. Note that the\n\t\t * `ajax` parameter must also be given in order to give DataTables a\n\t\t * source to obtain the required data for each draw.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @dtopt Server-side\n\t\t *  @name DataTable.defaults.serverSide\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"serverSide\": true,\n\t\t *        \"ajax\": \"xhr.php\"\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bServerSide\": false,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable sorting of columns. Sorting of individual columns can be\n\t\t * disabled by the `sortable` option for each column.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.ordering\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"ordering\": false\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bSort\": true,\n\t\n\t\n\t\t/**\n\t\t * Enable or display DataTables' ability to sort multiple columns at the\n\t\t * same time (activated by shift-click by the user).\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.orderMulti\n\t\t *\n\t\t *  @example\n\t\t *    // Disable multiple column sorting ability\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"orderMulti\": false\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bSortMulti\": true,\n\t\n\t\n\t\t/**\n\t\t * Allows control over whether DataTables should use the top (true) unique\n\t\t * cell that is found for a single column, or the bottom (false - default).\n\t\t * This is useful when using complex headers.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.orderCellsTop\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"orderCellsTop\": true\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bSortCellsTop\": false,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable the addition of the classes `sorting\\_1`, `sorting\\_2` and\n\t\t * `sorting\\_3` to the columns which are currently being sorted on. This is\n\t\t * presented as a feature switch as it can increase processing time (while\n\t\t * classes are removed and added) so for large data sets you might want to\n\t\t * turn this off.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.orderClasses\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"orderClasses\": false\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bSortClasses\": true,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable state saving. When enabled HTML5 `localStorage` will be\n\t\t * used to save table display information such as pagination information,\n\t\t * display length, filtering and sorting. As such when the end user reloads\n\t\t * the page the display display will match what thy had previously set up.\n\t\t *\n\t\t * Due to the use of `localStorage` the default state saving is not supported\n\t\t * in IE6 or 7. If state saving is required in those browsers, use\n\t\t * `stateSaveCallback` to provide a storage solution such as cookies.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.stateSave\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function () {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"stateSave\": true\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"bStateSave\": false,\n\t\n\t\n\t\t/**\n\t\t * This function is called when a TR element is created (and all TD child\n\t\t * elements have been inserted), or registered if using a DOM source, allowing\n\t\t * manipulation of the TR element (adding classes etc).\n\t\t *  @type function\n\t\t *  @param {node} row \"TR\" element for the current row\n\t\t *  @param {array} data Raw data array for this row\n\t\t *  @param {int} dataIndex The index of this row in the internal aoData array\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.createdRow\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"createdRow\": function( row, data, dataIndex ) {\n\t\t *          // Bold the grade for all 'A' grade browsers\n\t\t *          if ( data[4] == \"A\" )\n\t\t *          {\n\t\t *            $('td:eq(4)', row).html( '<b>A</b>' );\n\t\t *          }\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnCreatedRow\": null,\n\t\n\t\n\t\t/**\n\t\t * This function is called on every 'draw' event, and allows you to\n\t\t * dynamically modify any aspect you want about the created DOM.\n\t\t *  @type function\n\t\t *  @param {object} settings DataTables settings object\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.drawCallback\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"drawCallback\": function( settings ) {\n\t\t *          alert( 'DataTables has redrawn the table' );\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnDrawCallback\": null,\n\t\n\t\n\t\t/**\n\t\t * Identical to fnHeaderCallback() but for the table footer this function\n\t\t * allows you to modify the table footer on every 'draw' event.\n\t\t *  @type function\n\t\t *  @param {node} foot \"TR\" element for the footer\n\t\t *  @param {array} data Full table data (as derived from the original HTML)\n\t\t *  @param {int} start Index for the current display starting point in the\n\t\t *    display array\n\t\t *  @param {int} end Index for the current display ending point in the\n\t\t *    display array\n\t\t *  @param {array int} display Index array to translate the visual position\n\t\t *    to the full data array\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.footerCallback\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"footerCallback\": function( tfoot, data, start, end, display ) {\n\t\t *          tfoot.getElementsByTagName('th')[0].innerHTML = \"Starting index is \"+start;\n\t\t *        }\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"fnFooterCallback\": null,\n\t\n\t\n\t\t/**\n\t\t * When rendering large numbers in the information element for the table\n\t\t * (i.e. \"Showing 1 to 10 of 57 entries\") DataTables will render large numbers\n\t\t * to have a comma separator for the 'thousands' units (e.g. 1 million is\n\t\t * rendered as \"1,000,000\") to help readability for the end user. This\n\t\t * function will override the default method DataTables uses.\n\t\t *  @type function\n\t\t *  @member\n\t\t *  @param {int} toFormat number to be formatted\n\t\t *  @returns {string} formatted string for DataTables to show the number\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.formatNumber\n\t\t *\n\t\t *  @example\n\t\t *    // Format a number using a single quote for the separator (note that\n\t\t *    // this can also be done with the language.thousands option)\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"formatNumber\": function ( toFormat ) {\n\t\t *          return toFormat.toString().replace(\n\t\t *            /\\B(?=(\\d{3})+(?!\\d))/g, \"'\"\n\t\t *          );\n\t\t *        };\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnFormatNumber\": function ( toFormat ) {\n\t\t\treturn toFormat.toString().replace(\n\t\t\t\t/\\B(?=(\\d{3})+(?!\\d))/g,\n\t\t\t\tthis.oLanguage.sThousands\n\t\t\t);\n\t\t},\n\t\n\t\n\t\t/**\n\t\t * This function is called on every 'draw' event, and allows you to\n\t\t * dynamically modify the header row. This can be used to calculate and\n\t\t * display useful information about the table.\n\t\t *  @type function\n\t\t *  @param {node} head \"TR\" element for the header\n\t\t *  @param {array} data Full table data (as derived from the original HTML)\n\t\t *  @param {int} start Index for the current display starting point in the\n\t\t *    display array\n\t\t *  @param {int} end Index for the current display ending point in the\n\t\t *    display array\n\t\t *  @param {array int} display Index array to translate the visual position\n\t\t *    to the full data array\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.headerCallback\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"fheaderCallback\": function( head, data, start, end, display ) {\n\t\t *          head.getElementsByTagName('th')[0].innerHTML = \"Displaying \"+(end-start)+\" records\";\n\t\t *        }\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"fnHeaderCallback\": null,\n\t\n\t\n\t\t/**\n\t\t * The information element can be used to convey information about the current\n\t\t * state of the table. Although the internationalisation options presented by\n\t\t * DataTables are quite capable of dealing with most customisations, there may\n\t\t * be times where you wish to customise the string further. This callback\n\t\t * allows you to do exactly that.\n\t\t *  @type function\n\t\t *  @param {object} oSettings DataTables settings object\n\t\t *  @param {int} start Starting position in data for the draw\n\t\t *  @param {int} end End position in data for the draw\n\t\t *  @param {int} max Total number of rows in the table (regardless of\n\t\t *    filtering)\n\t\t *  @param {int} total Total number of rows in the data set, after filtering\n\t\t *  @param {string} pre The string that DataTables has formatted using it's\n\t\t *    own rules\n\t\t *  @returns {string} The string to be displayed in the information element.\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.infoCallback\n\t\t *\n\t\t *  @example\n\t\t *    $('#example').dataTable( {\n\t\t *      \"infoCallback\": function( settings, start, end, max, total, pre ) {\n\t\t *        return start +\" to \"+ end;\n\t\t *      }\n\t\t *    } );\n\t\t */\n\t\t\"fnInfoCallback\": null,\n\t\n\t\n\t\t/**\n\t\t * Called when the table has been initialised. Normally DataTables will\n\t\t * initialise sequentially and there will be no need for this function,\n\t\t * however, this does not hold true when using external language information\n\t\t * since that is obtained using an async XHR call.\n\t\t *  @type function\n\t\t *  @param {object} settings DataTables settings object\n\t\t *  @param {object} json The JSON object request from the server - only\n\t\t *    present if client-side Ajax sourced data is used\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.initComplete\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"initComplete\": function(settings, json) {\n\t\t *          alert( 'DataTables has finished its initialisation.' );\n\t\t *        }\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"fnInitComplete\": null,\n\t\n\t\n\t\t/**\n\t\t * Called at the very start of each table draw and can be used to cancel the\n\t\t * draw by returning false, any other return (including undefined) results in\n\t\t * the full draw occurring).\n\t\t *  @type function\n\t\t *  @param {object} settings DataTables settings object\n\t\t *  @returns {boolean} False will cancel the draw, anything else (including no\n\t\t *    return) will allow it to complete.\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.preDrawCallback\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"preDrawCallback\": function( settings ) {\n\t\t *          if ( $('#test').val() == 1 ) {\n\t\t *            return false;\n\t\t *          }\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnPreDrawCallback\": null,\n\t\n\t\n\t\t/**\n\t\t * This function allows you to 'post process' each row after it have been\n\t\t * generated for each table draw, but before it is rendered on screen. This\n\t\t * function might be used for setting the row class name etc.\n\t\t *  @type function\n\t\t *  @param {node} row \"TR\" element for the current row\n\t\t *  @param {array} data Raw data array for this row\n\t\t *  @param {int} displayIndex The display index for the current table draw\n\t\t *  @param {int} displayIndexFull The index of the data in the full list of\n\t\t *    rows (after filtering)\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.rowCallback\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"rowCallback\": function( row, data, displayIndex, displayIndexFull ) {\n\t\t *          // Bold the grade for all 'A' grade browsers\n\t\t *          if ( data[4] == \"A\" ) {\n\t\t *            $('td:eq(4)', row).html( '<b>A</b>' );\n\t\t *          }\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnRowCallback\": null,\n\t\n\t\n\t\t/**\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\n\t\t * superseded by that provided through `ajax`, which should be used instead.\n\t\t *\n\t\t * This parameter allows you to override the default function which obtains\n\t\t * the data from the server so something more suitable for your application.\n\t\t * For example you could use POST data, or pull information from a Gears or\n\t\t * AIR database.\n\t\t *  @type function\n\t\t *  @member\n\t\t *  @param {string} source HTTP source to obtain the data from (`ajax`)\n\t\t *  @param {array} data A key/value pair object containing the data to send\n\t\t *    to the server\n\t\t *  @param {function} callback to be called on completion of the data get\n\t\t *    process that will draw the data on the page.\n\t\t *  @param {object} settings DataTables settings object\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @dtopt Server-side\n\t\t *  @name DataTable.defaults.serverData\n\t\t *\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\n\t\t */\n\t\t\"fnServerData\": null,\n\t\n\t\n\t\t/**\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\n\t\t * superseded by that provided through `ajax`, which should be used instead.\n\t\t *\n\t\t *  It is often useful to send extra data to the server when making an Ajax\n\t\t * request - for example custom filtering information, and this callback\n\t\t * function makes it trivial to send extra information to the server. The\n\t\t * passed in parameter is the data set that has been constructed by\n\t\t * DataTables, and you can add to this or modify it as you require.\n\t\t *  @type function\n\t\t *  @param {array} data Data array (array of objects which are name/value\n\t\t *    pairs) that has been constructed by DataTables and will be sent to the\n\t\t *    server. In the case of Ajax sourced data with server-side processing\n\t\t *    this will be an empty array, for server-side processing there will be a\n\t\t *    significant number of parameters!\n\t\t *  @returns {undefined} Ensure that you modify the data array passed in,\n\t\t *    as this is passed by reference.\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @dtopt Server-side\n\t\t *  @name DataTable.defaults.serverParams\n\t\t *\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\n\t\t */\n\t\t\"fnServerParams\": null,\n\t\n\t\n\t\t/**\n\t\t * Load the table state. With this function you can define from where, and how, the\n\t\t * state of a table is loaded. By default DataTables will load from `localStorage`\n\t\t * but you might wish to use a server-side database or cookies.\n\t\t *  @type function\n\t\t *  @member\n\t\t *  @param {object} settings DataTables settings object\n\t\t *  @param {object} callback Callback that can be executed when done. It\n\t\t *    should be passed the loaded state object.\n\t\t *  @return {object} The DataTables state object to be loaded\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.stateLoadCallback\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"stateSave\": true,\n\t\t *        \"stateLoadCallback\": function (settings, callback) {\n\t\t *          $.ajax( {\n\t\t *            \"url\": \"/state_load\",\n\t\t *            \"dataType\": \"json\",\n\t\t *            \"success\": function (json) {\n\t\t *              callback( json );\n\t\t *            }\n\t\t *          } );\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnStateLoadCallback\": function ( settings ) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(\n\t\t\t\t\t(settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(\n\t\t\t\t\t\t'DataTables_'+settings.sInstance+'_'+location.pathname\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t} catch (e) {}\n\t\t},\n\t\n\t\n\t\t/**\n\t\t * Callback which allows modification of the saved state prior to loading that state.\n\t\t * This callback is called when the table is loading state from the stored data, but\n\t\t * prior to the settings object being modified by the saved state. Note that for\n\t\t * plug-in authors, you should use the `stateLoadParams` event to load parameters for\n\t\t * a plug-in.\n\t\t *  @type function\n\t\t *  @param {object} settings DataTables settings object\n\t\t *  @param {object} data The state object that is to be loaded\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.stateLoadParams\n\t\t *\n\t\t *  @example\n\t\t *    // Remove a saved filter, so filtering is never loaded\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"stateSave\": true,\n\t\t *        \"stateLoadParams\": function (settings, data) {\n\t\t *          data.oSearch.sSearch = \"\";\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Disallow state loading by returning false\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"stateSave\": true,\n\t\t *        \"stateLoadParams\": function (settings, data) {\n\t\t *          return false;\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnStateLoadParams\": null,\n\t\n\t\n\t\t/**\n\t\t * Callback that is called when the state has been loaded from the state saving method\n\t\t * and the DataTables settings object has been modified as a result of the loaded state.\n\t\t *  @type function\n\t\t *  @param {object} settings DataTables settings object\n\t\t *  @param {object} data The state object that was loaded\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.stateLoaded\n\t\t *\n\t\t *  @example\n\t\t *    // Show an alert with the filtering value that was saved\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"stateSave\": true,\n\t\t *        \"stateLoaded\": function (settings, data) {\n\t\t *          alert( 'Saved filter was: '+data.oSearch.sSearch );\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnStateLoaded\": null,\n\t\n\t\n\t\t/**\n\t\t * Save the table state. This function allows you to define where and how the state\n\t\t * information for the table is stored By default DataTables will use `localStorage`\n\t\t * but you might wish to use a server-side database or cookies.\n\t\t *  @type function\n\t\t *  @member\n\t\t *  @param {object} settings DataTables settings object\n\t\t *  @param {object} data The state object to be saved\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.stateSaveCallback\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"stateSave\": true,\n\t\t *        \"stateSaveCallback\": function (settings, data) {\n\t\t *          // Send an Ajax request to the server with the state object\n\t\t *          $.ajax( {\n\t\t *            \"url\": \"/state_save\",\n\t\t *            \"data\": data,\n\t\t *            \"dataType\": \"json\",\n\t\t *            \"method\": \"POST\"\n\t\t *            \"success\": function () {}\n\t\t *          } );\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnStateSaveCallback\": function ( settings, data ) {\n\t\t\ttry {\n\t\t\t\t(settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(\n\t\t\t\t\t'DataTables_'+settings.sInstance+'_'+location.pathname,\n\t\t\t\t\tJSON.stringify( data )\n\t\t\t\t);\n\t\t\t} catch (e) {}\n\t\t},\n\t\n\t\n\t\t/**\n\t\t * Callback which allows modification of the state to be saved. Called when the table\n\t\t * has changed state a new state save is required. This method allows modification of\n\t\t * the state saving object prior to actually doing the save, including addition or\n\t\t * other state properties or modification. Note that for plug-in authors, you should\n\t\t * use the `stateSaveParams` event to save parameters for a plug-in.\n\t\t *  @type function\n\t\t *  @param {object} settings DataTables settings object\n\t\t *  @param {object} data The state object to be saved\n\t\t *\n\t\t *  @dtopt Callbacks\n\t\t *  @name DataTable.defaults.stateSaveParams\n\t\t *\n\t\t *  @example\n\t\t *    // Remove a saved filter, so filtering is never saved\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"stateSave\": true,\n\t\t *        \"stateSaveParams\": function (settings, data) {\n\t\t *          data.oSearch.sSearch = \"\";\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"fnStateSaveParams\": null,\n\t\n\t\n\t\t/**\n\t\t * Duration for which the saved state information is considered valid. After this period\n\t\t * has elapsed the state will be returned to the default.\n\t\t * Value is given in seconds.\n\t\t *  @type int\n\t\t *  @default 7200 <i>(2 hours)</i>\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.stateDuration\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"stateDuration\": 60*60*24; // 1 day\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"iStateDuration\": 7200,\n\t\n\t\n\t\t/**\n\t\t * When enabled DataTables will not make a request to the server for the first\n\t\t * page draw - rather it will use the data already on the page (no sorting etc\n\t\t * will be applied to it), thus saving on an XHR at load time. `deferLoading`\n\t\t * is used to indicate that deferred loading is required, but it is also used\n\t\t * to tell DataTables how many records there are in the full table (allowing\n\t\t * the information element and pagination to be displayed correctly). In the case\n\t\t * where a filtering is applied to the table on initial load, this can be\n\t\t * indicated by giving the parameter as an array, where the first element is\n\t\t * the number of records available after filtering and the second element is the\n\t\t * number of records without filtering (allowing the table information element\n\t\t * to be shown correctly).\n\t\t *  @type int | array\n\t\t *  @default null\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.deferLoading\n\t\t *\n\t\t *  @example\n\t\t *    // 57 records available in the table, no filtering applied\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"serverSide\": true,\n\t\t *        \"ajax\": \"scripts/server_processing.php\",\n\t\t *        \"deferLoading\": 57\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // 57 records after filtering, 100 without filtering (an initial filter applied)\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"serverSide\": true,\n\t\t *        \"ajax\": \"scripts/server_processing.php\",\n\t\t *        \"deferLoading\": [ 57, 100 ],\n\t\t *        \"search\": {\n\t\t *          \"search\": \"my_filter\"\n\t\t *        }\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"iDeferLoading\": null,\n\t\n\t\n\t\t/**\n\t\t * Number of rows to display on a single page when using pagination. If\n\t\t * feature enabled (`lengthChange`) then the end user will be able to override\n\t\t * this to a custom setting using a pop-up menu.\n\t\t *  @type int\n\t\t *  @default 10\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.pageLength\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"pageLength\": 50\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"iDisplayLength\": 10,\n\t\n\t\n\t\t/**\n\t\t * Define the starting point for data display when using DataTables with\n\t\t * pagination. Note that this parameter is the number of records, rather than\n\t\t * the page number, so if you have 10 records per page and want to start on\n\t\t * the third page, it should be \"20\".\n\t\t *  @type int\n\t\t *  @default 0\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.displayStart\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"displayStart\": 20\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"iDisplayStart\": 0,\n\t\n\t\n\t\t/**\n\t\t * By default DataTables allows keyboard navigation of the table (sorting, paging,\n\t\t * and filtering) by adding a `tabindex` attribute to the required elements. This\n\t\t * allows you to tab through the controls and press the enter key to activate them.\n\t\t * The tabindex is default 0, meaning that the tab follows the flow of the document.\n\t\t * You can overrule this using this parameter if you wish. Use a value of -1 to\n\t\t * disable built-in keyboard navigation.\n\t\t *  @type int\n\t\t *  @default 0\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.tabIndex\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"tabIndex\": 1\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"iTabIndex\": 0,\n\t\n\t\n\t\t/**\n\t\t * Classes that DataTables assigns to the various components and features\n\t\t * that it adds to the HTML table. This allows classes to be configured\n\t\t * during initialisation in addition to through the static\n\t\t * {@link DataTable.ext.oStdClasses} object).\n\t\t *  @namespace\n\t\t *  @name DataTable.defaults.classes\n\t\t */\n\t\t\"oClasses\": {},\n\t\n\t\n\t\t/**\n\t\t * All strings that DataTables uses in the user interface that it creates\n\t\t * are defined in this object, allowing you to modified them individually or\n\t\t * completely replace them all as required.\n\t\t *  @namespace\n\t\t *  @name DataTable.defaults.language\n\t\t */\n\t\t\"oLanguage\": {\n\t\t\t/**\n\t\t\t * Strings that are used for WAI-ARIA labels and controls only (these are not\n\t\t\t * actually visible on the page, but will be read by screenreaders, and thus\n\t\t\t * must be internationalised as well).\n\t\t\t *  @namespace\n\t\t\t *  @name DataTable.defaults.language.aria\n\t\t\t */\n\t\t\t\"oAria\": {\n\t\t\t\t/**\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\n\t\t\t\t * sorted ascending by activing the column (click or return when focused).\n\t\t\t\t * Note that the column header is prefixed to this string.\n\t\t\t\t *  @type string\n\t\t\t\t *  @default : activate to sort column ascending\n\t\t\t\t *\n\t\t\t\t *  @dtopt Language\n\t\t\t\t *  @name DataTable.defaults.language.aria.sortAscending\n\t\t\t\t *\n\t\t\t\t *  @example\n\t\t\t\t *    $(document).ready( function() {\n\t\t\t\t *      $('#example').dataTable( {\n\t\t\t\t *        \"language\": {\n\t\t\t\t *          \"aria\": {\n\t\t\t\t *            \"sortAscending\": \" - click/return to sort ascending\"\n\t\t\t\t *          }\n\t\t\t\t *        }\n\t\t\t\t *      } );\n\t\t\t\t *    } );\n\t\t\t\t */\n\t\t\t\t\"sSortAscending\": \": activate to sort column ascending\",\n\t\n\t\t\t\t/**\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\n\t\t\t\t * sorted descending by activing the column (click or return when focused).\n\t\t\t\t * Note that the column header is prefixed to this string.\n\t\t\t\t *  @type string\n\t\t\t\t *  @default : activate to sort column ascending\n\t\t\t\t *\n\t\t\t\t *  @dtopt Language\n\t\t\t\t *  @name DataTable.defaults.language.aria.sortDescending\n\t\t\t\t *\n\t\t\t\t *  @example\n\t\t\t\t *    $(document).ready( function() {\n\t\t\t\t *      $('#example').dataTable( {\n\t\t\t\t *        \"language\": {\n\t\t\t\t *          \"aria\": {\n\t\t\t\t *            \"sortDescending\": \" - click/return to sort descending\"\n\t\t\t\t *          }\n\t\t\t\t *        }\n\t\t\t\t *      } );\n\t\t\t\t *    } );\n\t\t\t\t */\n\t\t\t\t\"sSortDescending\": \": activate to sort column descending\"\n\t\t\t},\n\t\n\t\t\t/**\n\t\t\t * Pagination string used by DataTables for the built-in pagination\n\t\t\t * control types.\n\t\t\t *  @namespace\n\t\t\t *  @name DataTable.defaults.language.paginate\n\t\t\t */\n\t\t\t\"oPaginate\": {\n\t\t\t\t/**\n\t\t\t\t * Text to use when using the 'full_numbers' type of pagination for the\n\t\t\t\t * button to take the user to the first page.\n\t\t\t\t *  @type string\n\t\t\t\t *  @default First\n\t\t\t\t *\n\t\t\t\t *  @dtopt Language\n\t\t\t\t *  @name DataTable.defaults.language.paginate.first\n\t\t\t\t *\n\t\t\t\t *  @example\n\t\t\t\t *    $(document).ready( function() {\n\t\t\t\t *      $('#example').dataTable( {\n\t\t\t\t *        \"language\": {\n\t\t\t\t *          \"paginate\": {\n\t\t\t\t *            \"first\": \"First page\"\n\t\t\t\t *          }\n\t\t\t\t *        }\n\t\t\t\t *      } );\n\t\t\t\t *    } );\n\t\t\t\t */\n\t\t\t\t\"sFirst\": \"First\",\n\t\n\t\n\t\t\t\t/**\n\t\t\t\t * Text to use when using the 'full_numbers' type of pagination for the\n\t\t\t\t * button to take the user to the last page.\n\t\t\t\t *  @type string\n\t\t\t\t *  @default Last\n\t\t\t\t *\n\t\t\t\t *  @dtopt Language\n\t\t\t\t *  @name DataTable.defaults.language.paginate.last\n\t\t\t\t *\n\t\t\t\t *  @example\n\t\t\t\t *    $(document).ready( function() {\n\t\t\t\t *      $('#example').dataTable( {\n\t\t\t\t *        \"language\": {\n\t\t\t\t *          \"paginate\": {\n\t\t\t\t *            \"last\": \"Last page\"\n\t\t\t\t *          }\n\t\t\t\t *        }\n\t\t\t\t *      } );\n\t\t\t\t *    } );\n\t\t\t\t */\n\t\t\t\t\"sLast\": \"Last\",\n\t\n\t\n\t\t\t\t/**\n\t\t\t\t * Text to use for the 'next' pagination button (to take the user to the\n\t\t\t\t * next page).\n\t\t\t\t *  @type string\n\t\t\t\t *  @default Next\n\t\t\t\t *\n\t\t\t\t *  @dtopt Language\n\t\t\t\t *  @name DataTable.defaults.language.paginate.next\n\t\t\t\t *\n\t\t\t\t *  @example\n\t\t\t\t *    $(document).ready( function() {\n\t\t\t\t *      $('#example').dataTable( {\n\t\t\t\t *        \"language\": {\n\t\t\t\t *          \"paginate\": {\n\t\t\t\t *            \"next\": \"Next page\"\n\t\t\t\t *          }\n\t\t\t\t *        }\n\t\t\t\t *      } );\n\t\t\t\t *    } );\n\t\t\t\t */\n\t\t\t\t\"sNext\": \"Next\",\n\t\n\t\n\t\t\t\t/**\n\t\t\t\t * Text to use for the 'previous' pagination button (to take the user to\n\t\t\t\t * the previous page).\n\t\t\t\t *  @type string\n\t\t\t\t *  @default Previous\n\t\t\t\t *\n\t\t\t\t *  @dtopt Language\n\t\t\t\t *  @name DataTable.defaults.language.paginate.previous\n\t\t\t\t *\n\t\t\t\t *  @example\n\t\t\t\t *    $(document).ready( function() {\n\t\t\t\t *      $('#example').dataTable( {\n\t\t\t\t *        \"language\": {\n\t\t\t\t *          \"paginate\": {\n\t\t\t\t *            \"previous\": \"Previous page\"\n\t\t\t\t *          }\n\t\t\t\t *        }\n\t\t\t\t *      } );\n\t\t\t\t *    } );\n\t\t\t\t */\n\t\t\t\t\"sPrevious\": \"Previous\"\n\t\t\t},\n\t\n\t\t\t/**\n\t\t\t * This string is shown in preference to `zeroRecords` when the table is\n\t\t\t * empty of data (regardless of filtering). Note that this is an optional\n\t\t\t * parameter - if it is not given, the value of `zeroRecords` will be used\n\t\t\t * instead (either the default or given value).\n\t\t\t *  @type string\n\t\t\t *  @default No data available in table\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.emptyTable\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"emptyTable\": \"No data available in table\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sEmptyTable\": \"No data available in table\",\n\t\n\t\n\t\t\t/**\n\t\t\t * This string gives information to the end user about the information\n\t\t\t * that is current on display on the page. The following tokens can be\n\t\t\t * used in the string and will be dynamically replaced as the table\n\t\t\t * display updates. This tokens can be placed anywhere in the string, or\n\t\t\t * removed as needed by the language requires:\n\t\t\t *\n\t\t\t * * `\\_START\\_` - Display index of the first record on the current page\n\t\t\t * * `\\_END\\_` - Display index of the last record on the current page\n\t\t\t * * `\\_TOTAL\\_` - Number of records in the table after filtering\n\t\t\t * * `\\_MAX\\_` - Number of records in the table without filtering\n\t\t\t * * `\\_PAGE\\_` - Current page number\n\t\t\t * * `\\_PAGES\\_` - Total number of pages of data in the table\n\t\t\t *\n\t\t\t *  @type string\n\t\t\t *  @default Showing _START_ to _END_ of _TOTAL_ entries\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.info\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"info\": \"Showing page _PAGE_ of _PAGES_\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sInfo\": \"Showing _START_ to _END_ of _TOTAL_ entries\",\n\t\n\t\n\t\t\t/**\n\t\t\t * Display information string for when the table is empty. Typically the\n\t\t\t * format of this string should match `info`.\n\t\t\t *  @type string\n\t\t\t *  @default Showing 0 to 0 of 0 entries\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.infoEmpty\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"infoEmpty\": \"No entries to show\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sInfoEmpty\": \"Showing 0 to 0 of 0 entries\",\n\t\n\t\n\t\t\t/**\n\t\t\t * When a user filters the information in a table, this string is appended\n\t\t\t * to the information (`info`) to give an idea of how strong the filtering\n\t\t\t * is. The variable _MAX_ is dynamically updated.\n\t\t\t *  @type string\n\t\t\t *  @default (filtered from _MAX_ total entries)\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.infoFiltered\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"infoFiltered\": \" - filtering from _MAX_ records\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sInfoFiltered\": \"(filtered from _MAX_ total entries)\",\n\t\n\t\n\t\t\t/**\n\t\t\t * If can be useful to append extra information to the info string at times,\n\t\t\t * and this variable does exactly that. This information will be appended to\n\t\t\t * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are\n\t\t\t * being used) at all times.\n\t\t\t *  @type string\n\t\t\t *  @default <i>Empty string</i>\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.infoPostFix\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"infoPostFix\": \"All records shown are derived from real information.\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sInfoPostFix\": \"\",\n\t\n\t\n\t\t\t/**\n\t\t\t * This decimal place operator is a little different from the other\n\t\t\t * language options since DataTables doesn't output floating point\n\t\t\t * numbers, so it won't ever use this for display of a number. Rather,\n\t\t\t * what this parameter does is modify the sort methods of the table so\n\t\t\t * that numbers which are in a format which has a character other than\n\t\t\t * a period (`.`) as a decimal place will be sorted numerically.\n\t\t\t *\n\t\t\t * Note that numbers with different decimal places cannot be shown in\n\t\t\t * the same table and still be sortable, the table must be consistent.\n\t\t\t * However, multiple different tables on the page can use different\n\t\t\t * decimal place characters.\n\t\t\t *  @type string\n\t\t\t *  @default \n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.decimal\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"decimal\": \",\"\n\t\t\t *          \"thousands\": \".\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sDecimal\": \"\",\n\t\n\t\n\t\t\t/**\n\t\t\t * DataTables has a build in number formatter (`formatNumber`) which is\n\t\t\t * used to format large numbers that are used in the table information.\n\t\t\t * By default a comma is used, but this can be trivially changed to any\n\t\t\t * character you wish with this parameter.\n\t\t\t *  @type string\n\t\t\t *  @default ,\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.thousands\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"thousands\": \"'\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sThousands\": \",\",\n\t\n\t\n\t\t\t/**\n\t\t\t * Detail the action that will be taken when the drop down menu for the\n\t\t\t * pagination length option is changed. The '_MENU_' variable is replaced\n\t\t\t * with a default select list of 10, 25, 50 and 100, and can be replaced\n\t\t\t * with a custom select box if required.\n\t\t\t *  @type string\n\t\t\t *  @default Show _MENU_ entries\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.lengthMenu\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    // Language change only\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"lengthMenu\": \"Display _MENU_ records\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    // Language and options change\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"lengthMenu\": 'Display <select>'+\n\t\t\t *            '<option value=\"10\">10</option>'+\n\t\t\t *            '<option value=\"20\">20</option>'+\n\t\t\t *            '<option value=\"30\">30</option>'+\n\t\t\t *            '<option value=\"40\">40</option>'+\n\t\t\t *            '<option value=\"50\">50</option>'+\n\t\t\t *            '<option value=\"-1\">All</option>'+\n\t\t\t *            '</select> records'\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sLengthMenu\": \"Show _MENU_ entries\",\n\t\n\t\n\t\t\t/**\n\t\t\t * When using Ajax sourced data and during the first draw when DataTables is\n\t\t\t * gathering the data, this message is shown in an empty row in the table to\n\t\t\t * indicate to the end user the the data is being loaded. Note that this\n\t\t\t * parameter is not used when loading data by server-side processing, just\n\t\t\t * Ajax sourced data with client-side processing.\n\t\t\t *  @type string\n\t\t\t *  @default Loading...\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.loadingRecords\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"loadingRecords\": \"Please wait - loading...\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sLoadingRecords\": \"Loading...\",\n\t\n\t\n\t\t\t/**\n\t\t\t * Text which is displayed when the table is processing a user action\n\t\t\t * (usually a sort command or similar).\n\t\t\t *  @type string\n\t\t\t *  @default Processing...\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.processing\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"processing\": \"DataTables is currently busy\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sProcessing\": \"Processing...\",\n\t\n\t\n\t\t\t/**\n\t\t\t * Details the actions that will be taken when the user types into the\n\t\t\t * filtering input text box. The variable \"_INPUT_\", if used in the string,\n\t\t\t * is replaced with the HTML text box for the filtering input allowing\n\t\t\t * control over where it appears in the string. If \"_INPUT_\" is not given\n\t\t\t * then the input box is appended to the string automatically.\n\t\t\t *  @type string\n\t\t\t *  @default Search:\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.search\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    // Input text box will be appended at the end automatically\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"search\": \"Filter records:\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    // Specify where the filter should appear\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"search\": \"Apply filter _INPUT_ to table\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sSearch\": \"Search:\",\n\t\n\t\n\t\t\t/**\n\t\t\t * Assign a `placeholder` attribute to the search `input` element\n\t\t\t *  @type string\n\t\t\t *  @default \n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.searchPlaceholder\n\t\t\t */\n\t\t\t\"sSearchPlaceholder\": \"\",\n\t\n\t\n\t\t\t/**\n\t\t\t * All of the language information can be stored in a file on the\n\t\t\t * server-side, which DataTables will look up if this parameter is passed.\n\t\t\t * It must store the URL of the language file, which is in a JSON format,\n\t\t\t * and the object has the same properties as the oLanguage object in the\n\t\t\t * initialiser object (i.e. the above parameters). Please refer to one of\n\t\t\t * the example language files to see how this works in action.\n\t\t\t *  @type string\n\t\t\t *  @default <i>Empty string - i.e. disabled</i>\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.url\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"url\": \"http://www.sprymedia.co.uk/dataTables/lang.txt\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sUrl\": \"\",\n\t\n\t\n\t\t\t/**\n\t\t\t * Text shown inside the table records when the is no information to be\n\t\t\t * displayed after filtering. `emptyTable` is shown when there is simply no\n\t\t\t * information in the table at all (regardless of filtering).\n\t\t\t *  @type string\n\t\t\t *  @default No matching records found\n\t\t\t *\n\t\t\t *  @dtopt Language\n\t\t\t *  @name DataTable.defaults.language.zeroRecords\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $(document).ready( function() {\n\t\t\t *      $('#example').dataTable( {\n\t\t\t *        \"language\": {\n\t\t\t *          \"zeroRecords\": \"No records to display\"\n\t\t\t *        }\n\t\t\t *      } );\n\t\t\t *    } );\n\t\t\t */\n\t\t\t\"sZeroRecords\": \"No matching records found\"\n\t\t},\n\t\n\t\n\t\t/**\n\t\t * This parameter allows you to have define the global filtering state at\n\t\t * initialisation time. As an object the `search` parameter must be\n\t\t * defined, but all other parameters are optional. When `regex` is true,\n\t\t * the search string will be treated as a regular expression, when false\n\t\t * (default) it will be treated as a straight string. When `smart`\n\t\t * DataTables will use it's smart filtering methods (to word match at\n\t\t * any point in the data), when false this will not be done.\n\t\t *  @namespace\n\t\t *  @extends DataTable.models.oSearch\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.search\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"search\": {\"search\": \"Initial search\"}\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"oSearch\": $.extend( {}, DataTable.models.oSearch ),\n\t\n\t\n\t\t/**\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\n\t\t * superseded by that provided through `ajax`, which should be used instead.\n\t\t *\n\t\t * By default DataTables will look for the property `data` (or `aaData` for\n\t\t * compatibility with DataTables 1.9-) when obtaining data from an Ajax\n\t\t * source or for server-side processing - this parameter allows that\n\t\t * property to be changed. You can use Javascript dotted object notation to\n\t\t * get a data source for multiple levels of nesting.\n\t\t *  @type string\n\t\t *  @default data\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @dtopt Server-side\n\t\t *  @name DataTable.defaults.ajaxDataProp\n\t\t *\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\n\t\t */\n\t\t\"sAjaxDataProp\": \"data\",\n\t\n\t\n\t\t/**\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\n\t\t * superseded by that provided through `ajax`, which should be used instead.\n\t\t *\n\t\t * You can instruct DataTables to load data from an external\n\t\t * source using this parameter (use aData if you want to pass data in you\n\t\t * already have). Simply provide a url a JSON object can be obtained from.\n\t\t *  @type string\n\t\t *  @default null\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @dtopt Server-side\n\t\t *  @name DataTable.defaults.ajaxSource\n\t\t *\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\n\t\t */\n\t\t\"sAjaxSource\": null,\n\t\n\t\n\t\t/**\n\t\t * This initialisation variable allows you to specify exactly where in the\n\t\t * DOM you want DataTables to inject the various controls it adds to the page\n\t\t * (for example you might want the pagination controls at the top of the\n\t\t * table). DIV elements (with or without a custom class) can also be added to\n\t\t * aid styling. The follow syntax is used:\n\t\t *   <ul>\n\t\t *     <li>The following options are allowed:\n\t\t *       <ul>\n\t\t *         <li>'l' - Length changing</li>\n\t\t *         <li>'f' - Filtering input</li>\n\t\t *         <li>'t' - The table!</li>\n\t\t *         <li>'i' - Information</li>\n\t\t *         <li>'p' - Pagination</li>\n\t\t *         <li>'r' - pRocessing</li>\n\t\t *       </ul>\n\t\t *     </li>\n\t\t *     <li>The following constants are allowed:\n\t\t *       <ul>\n\t\t *         <li>'H' - jQueryUI theme \"header\" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li>\n\t\t *         <li>'F' - jQueryUI theme \"footer\" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li>\n\t\t *       </ul>\n\t\t *     </li>\n\t\t *     <li>The following syntax is expected:\n\t\t *       <ul>\n\t\t *         <li>'&lt;' and '&gt;' - div elements</li>\n\t\t *         <li>'&lt;\"class\" and '&gt;' - div with a class</li>\n\t\t *         <li>'&lt;\"#id\" and '&gt;' - div with an ID</li>\n\t\t *       </ul>\n\t\t *     </li>\n\t\t *     <li>Examples:\n\t\t *       <ul>\n\t\t *         <li>'&lt;\"wrapper\"flipt&gt;'</li>\n\t\t *         <li>'&lt;lf&lt;t&gt;ip&gt;'</li>\n\t\t *       </ul>\n\t\t *     </li>\n\t\t *   </ul>\n\t\t *  @type string\n\t\t *  @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b>\n\t\t *    <\"H\"lfr>t<\"F\"ip> <i>(when `jQueryUI` is true)</i>\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.dom\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"dom\": '&lt;\"top\"i&gt;rt&lt;\"bottom\"flp&gt;&lt;\"clear\"&gt;'\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sDom\": \"lfrtip\",\n\t\n\t\n\t\t/**\n\t\t * Search delay option. This will throttle full table searches that use the\n\t\t * DataTables provided search input element (it does not effect calls to\n\t\t * `dt-api search()`, providing a delay before the search is made.\n\t\t *  @type integer\n\t\t *  @default 0\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.searchDelay\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"searchDelay\": 200\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"searchDelay\": null,\n\t\n\t\n\t\t/**\n\t\t * DataTables features six different built-in options for the buttons to\n\t\t * display for pagination control:\n\t\t *\n\t\t * * `numbers` - Page number buttons only\n\t\t * * `simple` - 'Previous' and 'Next' buttons only\n\t\t * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers\n\t\t * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons\n\t\t * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers\n\t\t * * `first_last_numbers` - 'First' and 'Last' buttons, plus page numbers\n\t\t *  \n\t\t * Further methods can be added using {@link DataTable.ext.oPagination}.\n\t\t *  @type string\n\t\t *  @default simple_numbers\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.pagingType\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"pagingType\": \"full_numbers\"\n\t\t *      } );\n\t\t *    } )\n\t\t */\n\t\t\"sPaginationType\": \"simple_numbers\",\n\t\n\t\n\t\t/**\n\t\t * Enable horizontal scrolling. When a table is too wide to fit into a\n\t\t * certain layout, or you have a large number of columns in the table, you\n\t\t * can enable x-scrolling to show the table in a viewport, which can be\n\t\t * scrolled. This property can be `true` which will allow the table to\n\t\t * scroll horizontally when needed, or any CSS unit, or a number (in which\n\t\t * case it will be treated as a pixel measurement). Setting as simply `true`\n\t\t * is recommended.\n\t\t *  @type boolean|string\n\t\t *  @default <i>blank string - i.e. disabled</i>\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.scrollX\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"scrollX\": true,\n\t\t *        \"scrollCollapse\": true\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sScrollX\": \"\",\n\t\n\t\n\t\t/**\n\t\t * This property can be used to force a DataTable to use more width than it\n\t\t * might otherwise do when x-scrolling is enabled. For example if you have a\n\t\t * table which requires to be well spaced, this parameter is useful for\n\t\t * \"over-sizing\" the table, and thus forcing scrolling. This property can by\n\t\t * any CSS unit, or a number (in which case it will be treated as a pixel\n\t\t * measurement).\n\t\t *  @type string\n\t\t *  @default <i>blank string - i.e. disabled</i>\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @name DataTable.defaults.scrollXInner\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"scrollX\": \"100%\",\n\t\t *        \"scrollXInner\": \"110%\"\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sScrollXInner\": \"\",\n\t\n\t\n\t\t/**\n\t\t * Enable vertical scrolling. Vertical scrolling will constrain the DataTable\n\t\t * to the given height, and enable scrolling for any data which overflows the\n\t\t * current viewport. This can be used as an alternative to paging to display\n\t\t * a lot of data in a small area (although paging and scrolling can both be\n\t\t * enabled at the same time). This property can be any CSS unit, or a number\n\t\t * (in which case it will be treated as a pixel measurement).\n\t\t *  @type string\n\t\t *  @default <i>blank string - i.e. disabled</i>\n\t\t *\n\t\t *  @dtopt Features\n\t\t *  @name DataTable.defaults.scrollY\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"scrollY\": \"200px\",\n\t\t *        \"paginate\": false\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sScrollY\": \"\",\n\t\n\t\n\t\t/**\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\n\t\t * superseded by that provided through `ajax`, which should be used instead.\n\t\t *\n\t\t * Set the HTTP method that is used to make the Ajax call for server-side\n\t\t * processing or Ajax sourced data.\n\t\t *  @type string\n\t\t *  @default GET\n\t\t *\n\t\t *  @dtopt Options\n\t\t *  @dtopt Server-side\n\t\t *  @name DataTable.defaults.serverMethod\n\t\t *\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\n\t\t */\n\t\t\"sServerMethod\": \"GET\",\n\t\n\t\n\t\t/**\n\t\t * DataTables makes use of renderers when displaying HTML elements for\n\t\t * a table. These renderers can be added or modified by plug-ins to\n\t\t * generate suitable mark-up for a site. For example the Bootstrap\n\t\t * integration plug-in for DataTables uses a paging button renderer to\n\t\t * display pagination buttons in the mark-up required by Bootstrap.\n\t\t *\n\t\t * For further information about the renderers available see\n\t\t * DataTable.ext.renderer\n\t\t *  @type string|object\n\t\t *  @default null\n\t\t *\n\t\t *  @name DataTable.defaults.renderer\n\t\t *\n\t\t */\n\t\t\"renderer\": null,\n\t\n\t\n\t\t/**\n\t\t * Set the data property name that DataTables should use to get a row's id\n\t\t * to set as the `id` property in the node.\n\t\t *  @type string\n\t\t *  @default DT_RowId\n\t\t *\n\t\t *  @name DataTable.defaults.rowId\n\t\t */\n\t\t\"rowId\": \"DT_RowId\"\n\t};\n\t\n\t_fnHungarianMap( DataTable.defaults );\n\t\n\t\n\t\n\t/*\n\t * Developer note - See note in model.defaults.js about the use of Hungarian\n\t * notation and camel case.\n\t */\n\t\n\t/**\n\t * Column options that can be given to DataTables at initialisation time.\n\t *  @namespace\n\t */\n\tDataTable.defaults.column = {\n\t\t/**\n\t\t * Define which column(s) an order will occur on for this column. This\n\t\t * allows a column's ordering to take multiple columns into account when\n\t\t * doing a sort or use the data from a different column. For example first\n\t\t * name / last name columns make sense to do a multi-column sort over the\n\t\t * two columns.\n\t\t *  @type array|int\n\t\t *  @default null <i>Takes the value of the column index automatically</i>\n\t\t *\n\t\t *  @name DataTable.defaults.column.orderData\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"orderData\": [ 0, 1 ], \"targets\": [ 0 ] },\n\t\t *          { \"orderData\": [ 1, 0 ], \"targets\": [ 1 ] },\n\t\t *          { \"orderData\": 2, \"targets\": [ 2 ] }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          { \"orderData\": [ 0, 1 ] },\n\t\t *          { \"orderData\": [ 1, 0 ] },\n\t\t *          { \"orderData\": 2 },\n\t\t *          null,\n\t\t *          null\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"aDataSort\": null,\n\t\t\"iDataSort\": -1,\n\t\n\t\n\t\t/**\n\t\t * You can control the default ordering direction, and even alter the\n\t\t * behaviour of the sort handler (i.e. only allow ascending ordering etc)\n\t\t * using this parameter.\n\t\t *  @type array\n\t\t *  @default [ 'asc', 'desc' ]\n\t\t *\n\t\t *  @name DataTable.defaults.column.orderSequence\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"orderSequence\": [ \"asc\" ], \"targets\": [ 1 ] },\n\t\t *          { \"orderSequence\": [ \"desc\", \"asc\", \"asc\" ], \"targets\": [ 2 ] },\n\t\t *          { \"orderSequence\": [ \"desc\" ], \"targets\": [ 3 ] }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          null,\n\t\t *          { \"orderSequence\": [ \"asc\" ] },\n\t\t *          { \"orderSequence\": [ \"desc\", \"asc\", \"asc\" ] },\n\t\t *          { \"orderSequence\": [ \"desc\" ] },\n\t\t *          null\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"asSorting\": [ 'asc', 'desc' ],\n\t\n\t\n\t\t/**\n\t\t * Enable or disable filtering on the data in this column.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @name DataTable.defaults.column.searchable\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"searchable\": false, \"targets\": [ 0 ] }\n\t\t *        ] } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          { \"searchable\": false },\n\t\t *          null,\n\t\t *          null,\n\t\t *          null,\n\t\t *          null\n\t\t *        ] } );\n\t\t *    } );\n\t\t */\n\t\t\"bSearchable\": true,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable ordering on this column.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @name DataTable.defaults.column.orderable\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"orderable\": false, \"targets\": [ 0 ] }\n\t\t *        ] } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          { \"orderable\": false },\n\t\t *          null,\n\t\t *          null,\n\t\t *          null,\n\t\t *          null\n\t\t *        ] } );\n\t\t *    } );\n\t\t */\n\t\t\"bSortable\": true,\n\t\n\t\n\t\t/**\n\t\t * Enable or disable the display of this column.\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t *\n\t\t *  @name DataTable.defaults.column.visible\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"visible\": false, \"targets\": [ 0 ] }\n\t\t *        ] } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          { \"visible\": false },\n\t\t *          null,\n\t\t *          null,\n\t\t *          null,\n\t\t *          null\n\t\t *        ] } );\n\t\t *    } );\n\t\t */\n\t\t\"bVisible\": true,\n\t\n\t\n\t\t/**\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\n\t\t * element is available.\n\t\t *  @type function\n\t\t *  @param {element} td The TD node that has been created\n\t\t *  @param {*} cellData The Data for the cell\n\t\t *  @param {array|object} rowData The data for the whole row\n\t\t *  @param {int} row The row index for the aoData data store\n\t\t *  @param {int} col The column index for aoColumns\n\t\t *\n\t\t *  @name DataTable.defaults.column.createdCell\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [ {\n\t\t *          \"targets\": [3],\n\t\t *          \"createdCell\": function (td, cellData, rowData, row, col) {\n\t\t *            if ( cellData == \"1.7\" ) {\n\t\t *              $(td).css('color', 'blue')\n\t\t *            }\n\t\t *          }\n\t\t *        } ]\n\t\t *      });\n\t\t *    } );\n\t\t */\n\t\t\"fnCreatedCell\": null,\n\t\n\t\n\t\t/**\n\t\t * This parameter has been replaced by `data` in DataTables to ensure naming\n\t\t * consistency. `dataProp` can still be used, as there is backwards\n\t\t * compatibility in DataTables for this option, but it is strongly\n\t\t * recommended that you use `data` in preference to `dataProp`.\n\t\t *  @name DataTable.defaults.column.dataProp\n\t\t */\n\t\n\t\n\t\t/**\n\t\t * This property can be used to read data from any data source property,\n\t\t * including deeply nested objects / properties. `data` can be given in a\n\t\t * number of different ways which effect its behaviour:\n\t\t *\n\t\t * * `integer` - treated as an array index for the data source. This is the\n\t\t *   default that DataTables uses (incrementally increased for each column).\n\t\t * * `string` - read an object property from the data source. There are\n\t\t *   three 'special' options that can be used in the string to alter how\n\t\t *   DataTables reads the data from the source object:\n\t\t *    * `.` - Dotted Javascript notation. Just as you use a `.` in\n\t\t *      Javascript to read from nested objects, so to can the options\n\t\t *      specified in `data`. For example: `browser.version` or\n\t\t *      `browser.name`. If your object parameter name contains a period, use\n\t\t *      `\\\\` to escape it - i.e. `first\\\\.name`.\n\t\t *    * `[]` - Array notation. DataTables can automatically combine data\n\t\t *      from and array source, joining the data with the characters provided\n\t\t *      between the two brackets. For example: `name[, ]` would provide a\n\t\t *      comma-space separated list from the source array. If no characters\n\t\t *      are provided between the brackets, the original array source is\n\t\t *      returned.\n\t\t *    * `()` - Function notation. Adding `()` to the end of a parameter will\n\t\t *      execute a function of the name given. For example: `browser()` for a\n\t\t *      simple function on the data source, `browser.version()` for a\n\t\t *      function in a nested property or even `browser().version` to get an\n\t\t *      object property if the function called returns an object. Note that\n\t\t *      function notation is recommended for use in `render` rather than\n\t\t *      `data` as it is much simpler to use as a renderer.\n\t\t * * `null` - use the original data source for the row rather than plucking\n\t\t *   data directly from it. This action has effects on two other\n\t\t *   initialisation options:\n\t\t *    * `defaultContent` - When null is given as the `data` option and\n\t\t *      `defaultContent` is specified for the column, the value defined by\n\t\t *      `defaultContent` will be used for the cell.\n\t\t *    * `render` - When null is used for the `data` option and the `render`\n\t\t *      option is specified for the column, the whole data source for the\n\t\t *      row is used for the renderer.\n\t\t * * `function` - the function given will be executed whenever DataTables\n\t\t *   needs to set or get the data for a cell in the column. The function\n\t\t *   takes three parameters:\n\t\t *    * Parameters:\n\t\t *      * `{array|object}` The data source for the row\n\t\t *      * `{string}` The type call data requested - this will be 'set' when\n\t\t *        setting data or 'filter', 'display', 'type', 'sort' or undefined\n\t\t *        when gathering data. Note that when `undefined` is given for the\n\t\t *        type DataTables expects to get the raw data for the object back<\n\t\t *      * `{*}` Data to set when the second parameter is 'set'.\n\t\t *    * Return:\n\t\t *      * The return value from the function is not required when 'set' is\n\t\t *        the type of call, but otherwise the return is what will be used\n\t\t *        for the data requested.\n\t\t *\n\t\t * Note that `data` is a getter and setter option. If you just require\n\t\t * formatting of data for output, you will likely want to use `render` which\n\t\t * is simply a getter and thus simpler to use.\n\t\t *\n\t\t * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The\n\t\t * name change reflects the flexibility of this property and is consistent\n\t\t * with the naming of mRender. If 'mDataProp' is given, then it will still\n\t\t * be used by DataTables, as it automatically maps the old name to the new\n\t\t * if required.\n\t\t *\n\t\t *  @type string|int|function|null\n\t\t *  @default null <i>Use automatically calculated column index</i>\n\t\t *\n\t\t *  @name DataTable.defaults.column.data\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Read table data from objects\n\t\t *    // JSON structure for each row:\n\t\t *    //   {\n\t\t *    //      \"engine\": {value},\n\t\t *    //      \"browser\": {value},\n\t\t *    //      \"platform\": {value},\n\t\t *    //      \"version\": {value},\n\t\t *    //      \"grade\": {value}\n\t\t *    //   }\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"ajaxSource\": \"sources/objects.txt\",\n\t\t *        \"columns\": [\n\t\t *          { \"data\": \"engine\" },\n\t\t *          { \"data\": \"browser\" },\n\t\t *          { \"data\": \"platform\" },\n\t\t *          { \"data\": \"version\" },\n\t\t *          { \"data\": \"grade\" }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Read information from deeply nested objects\n\t\t *    // JSON structure for each row:\n\t\t *    //   {\n\t\t *    //      \"engine\": {value},\n\t\t *    //      \"browser\": {value},\n\t\t *    //      \"platform\": {\n\t\t *    //         \"inner\": {value}\n\t\t *    //      },\n\t\t *    //      \"details\": [\n\t\t *    //         {value}, {value}\n\t\t *    //      ]\n\t\t *    //   }\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"ajaxSource\": \"sources/deep.txt\",\n\t\t *        \"columns\": [\n\t\t *          { \"data\": \"engine\" },\n\t\t *          { \"data\": \"browser\" },\n\t\t *          { \"data\": \"platform.inner\" },\n\t\t *          { \"data\": \"details.0\" },\n\t\t *          { \"data\": \"details.1\" }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `data` as a function to provide different information for\n\t\t *    // sorting, filtering and display. In this case, currency (price)\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [ {\n\t\t *          \"targets\": [ 0 ],\n\t\t *          \"data\": function ( source, type, val ) {\n\t\t *            if (type === 'set') {\n\t\t *              source.price = val;\n\t\t *              // Store the computed dislay and filter values for efficiency\n\t\t *              source.price_display = val==\"\" ? \"\" : \"$\"+numberFormat(val);\n\t\t *              source.price_filter  = val==\"\" ? \"\" : \"$\"+numberFormat(val)+\" \"+val;\n\t\t *              return;\n\t\t *            }\n\t\t *            else if (type === 'display') {\n\t\t *              return source.price_display;\n\t\t *            }\n\t\t *            else if (type === 'filter') {\n\t\t *              return source.price_filter;\n\t\t *            }\n\t\t *            // 'sort', 'type' and undefined all just use the integer\n\t\t *            return source.price;\n\t\t *          }\n\t\t *        } ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using default content\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [ {\n\t\t *          \"targets\": [ 0 ],\n\t\t *          \"data\": null,\n\t\t *          \"defaultContent\": \"Click to edit\"\n\t\t *        } ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using array notation - outputting a list from an array\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [ {\n\t\t *          \"targets\": [ 0 ],\n\t\t *          \"data\": \"name[, ]\"\n\t\t *        } ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t */\n\t\t\"mData\": null,\n\t\n\t\n\t\t/**\n\t\t * This property is the rendering partner to `data` and it is suggested that\n\t\t * when you want to manipulate data for display (including filtering,\n\t\t * sorting etc) without altering the underlying data for the table, use this\n\t\t * property. `render` can be considered to be the the read only companion to\n\t\t * `data` which is read / write (then as such more complex). Like `data`\n\t\t * this option can be given in a number of different ways to effect its\n\t\t * behaviour:\n\t\t *\n\t\t * * `integer` - treated as an array index for the data source. This is the\n\t\t *   default that DataTables uses (incrementally increased for each column).\n\t\t * * `string` - read an object property from the data source. There are\n\t\t *   three 'special' options that can be used in the string to alter how\n\t\t *   DataTables reads the data from the source object:\n\t\t *    * `.` - Dotted Javascript notation. Just as you use a `.` in\n\t\t *      Javascript to read from nested objects, so to can the options\n\t\t *      specified in `data`. For example: `browser.version` or\n\t\t *      `browser.name`. If your object parameter name contains a period, use\n\t\t *      `\\\\` to escape it - i.e. `first\\\\.name`.\n\t\t *    * `[]` - Array notation. DataTables can automatically combine data\n\t\t *      from and array source, joining the data with the characters provided\n\t\t *      between the two brackets. For example: `name[, ]` would provide a\n\t\t *      comma-space separated list from the source array. If no characters\n\t\t *      are provided between the brackets, the original array source is\n\t\t *      returned.\n\t\t *    * `()` - Function notation. Adding `()` to the end of a parameter will\n\t\t *      execute a function of the name given. For example: `browser()` for a\n\t\t *      simple function on the data source, `browser.version()` for a\n\t\t *      function in a nested property or even `browser().version` to get an\n\t\t *      object property if the function called returns an object.\n\t\t * * `object` - use different data for the different data types requested by\n\t\t *   DataTables ('filter', 'display', 'type' or 'sort'). The property names\n\t\t *   of the object is the data type the property refers to and the value can\n\t\t *   defined using an integer, string or function using the same rules as\n\t\t *   `render` normally does. Note that an `_` option _must_ be specified.\n\t\t *   This is the default value to use if you haven't specified a value for\n\t\t *   the data type requested by DataTables.\n\t\t * * `function` - the function given will be executed whenever DataTables\n\t\t *   needs to set or get the data for a cell in the column. The function\n\t\t *   takes three parameters:\n\t\t *    * Parameters:\n\t\t *      * {array|object} The data source for the row (based on `data`)\n\t\t *      * {string} The type call data requested - this will be 'filter',\n\t\t *        'display', 'type' or 'sort'.\n\t\t *      * {array|object} The full data source for the row (not based on\n\t\t *        `data`)\n\t\t *    * Return:\n\t\t *      * The return value from the function is what will be used for the\n\t\t *        data requested.\n\t\t *\n\t\t *  @type string|int|function|object|null\n\t\t *  @default null Use the data source value.\n\t\t *\n\t\t *  @name DataTable.defaults.column.render\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Create a comma separated list from an array of objects\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"ajaxSource\": \"sources/deep.txt\",\n\t\t *        \"columns\": [\n\t\t *          { \"data\": \"engine\" },\n\t\t *          { \"data\": \"browser\" },\n\t\t *          {\n\t\t *            \"data\": \"platform\",\n\t\t *            \"render\": \"[, ].name\"\n\t\t *          }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Execute a function to obtain data\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [ {\n\t\t *          \"targets\": [ 0 ],\n\t\t *          \"data\": null, // Use the full data source object for the renderer's source\n\t\t *          \"render\": \"browserName()\"\n\t\t *        } ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // As an object, extracting different data for the different types\n\t\t *    // This would be used with a data source such as:\n\t\t *    //   { \"phone\": 5552368, \"phone_filter\": \"5552368 555-2368\", \"phone_display\": \"555-2368\" }\n\t\t *    // Here the `phone` integer is used for sorting and type detection, while `phone_filter`\n\t\t *    // (which has both forms) is used for filtering for if a user inputs either format, while\n\t\t *    // the formatted phone number is the one that is shown in the table.\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [ {\n\t\t *          \"targets\": [ 0 ],\n\t\t *          \"data\": null, // Use the full data source object for the renderer's source\n\t\t *          \"render\": {\n\t\t *            \"_\": \"phone\",\n\t\t *            \"filter\": \"phone_filter\",\n\t\t *            \"display\": \"phone_display\"\n\t\t *          }\n\t\t *        } ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Use as a function to create a link from the data source\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [ {\n\t\t *          \"targets\": [ 0 ],\n\t\t *          \"data\": \"download_link\",\n\t\t *          \"render\": function ( data, type, full ) {\n\t\t *            return '<a href=\"'+data+'\">Download</a>';\n\t\t *          }\n\t\t *        } ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"mRender\": null,\n\t\n\t\n\t\t/**\n\t\t * Change the cell type created for the column - either TD cells or TH cells. This\n\t\t * can be useful as TH cells have semantic meaning in the table body, allowing them\n\t\t * to act as a header for a row (you may wish to add scope='row' to the TH elements).\n\t\t *  @type string\n\t\t *  @default td\n\t\t *\n\t\t *  @name DataTable.defaults.column.cellType\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Make the first column use TH cells\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [ {\n\t\t *          \"targets\": [ 0 ],\n\t\t *          \"cellType\": \"th\"\n\t\t *        } ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sCellType\": \"td\",\n\t\n\t\n\t\t/**\n\t\t * Class to give to each cell in this column.\n\t\t *  @type string\n\t\t *  @default <i>Empty string</i>\n\t\t *\n\t\t *  @name DataTable.defaults.column.class\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"class\": \"my_class\", \"targets\": [ 0 ] }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          { \"class\": \"my_class\" },\n\t\t *          null,\n\t\t *          null,\n\t\t *          null,\n\t\t *          null\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sClass\": \"\",\n\t\n\t\t/**\n\t\t * When DataTables calculates the column widths to assign to each column,\n\t\t * it finds the longest string in each column and then constructs a\n\t\t * temporary table and reads the widths from that. The problem with this\n\t\t * is that \"mmm\" is much wider then \"iiii\", but the latter is a longer\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\n\t\t * a \"work around\" we provide this option. It will append its value to the\n\t\t * text that is found to be the longest string for the column - i.e. padding.\n\t\t * Generally you shouldn't need this!\n\t\t *  @type string\n\t\t *  @default <i>Empty string<i>\n\t\t *\n\t\t *  @name DataTable.defaults.column.contentPadding\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          null,\n\t\t *          null,\n\t\t *          null,\n\t\t *          {\n\t\t *            \"contentPadding\": \"mmm\"\n\t\t *          }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sContentPadding\": \"\",\n\t\n\t\n\t\t/**\n\t\t * Allows a default value to be given for a column's data, and will be used\n\t\t * whenever a null data source is encountered (this can be because `data`\n\t\t * is set to null, or because the data source itself is null).\n\t\t *  @type string\n\t\t *  @default null\n\t\t *\n\t\t *  @name DataTable.defaults.column.defaultContent\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          {\n\t\t *            \"data\": null,\n\t\t *            \"defaultContent\": \"Edit\",\n\t\t *            \"targets\": [ -1 ]\n\t\t *          }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          null,\n\t\t *          null,\n\t\t *          null,\n\t\t *          {\n\t\t *            \"data\": null,\n\t\t *            \"defaultContent\": \"Edit\"\n\t\t *          }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sDefaultContent\": null,\n\t\n\t\n\t\t/**\n\t\t * This parameter is only used in DataTables' server-side processing. It can\n\t\t * be exceptionally useful to know what columns are being displayed on the\n\t\t * client side, and to map these to database fields. When defined, the names\n\t\t * also allow DataTables to reorder information from the server if it comes\n\t\t * back in an unexpected order (i.e. if you switch your columns around on the\n\t\t * client-side, your server-side code does not also need updating).\n\t\t *  @type string\n\t\t *  @default <i>Empty string</i>\n\t\t *\n\t\t *  @name DataTable.defaults.column.name\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"name\": \"engine\", \"targets\": [ 0 ] },\n\t\t *          { \"name\": \"browser\", \"targets\": [ 1 ] },\n\t\t *          { \"name\": \"platform\", \"targets\": [ 2 ] },\n\t\t *          { \"name\": \"version\", \"targets\": [ 3 ] },\n\t\t *          { \"name\": \"grade\", \"targets\": [ 4 ] }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          { \"name\": \"engine\" },\n\t\t *          { \"name\": \"browser\" },\n\t\t *          { \"name\": \"platform\" },\n\t\t *          { \"name\": \"version\" },\n\t\t *          { \"name\": \"grade\" }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sName\": \"\",\n\t\n\t\n\t\t/**\n\t\t * Defines a data source type for the ordering which can be used to read\n\t\t * real-time information from the table (updating the internally cached\n\t\t * version) prior to ordering. This allows ordering to occur on user\n\t\t * editable elements such as form inputs.\n\t\t *  @type string\n\t\t *  @default std\n\t\t *\n\t\t *  @name DataTable.defaults.column.orderDataType\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"orderDataType\": \"dom-text\", \"targets\": [ 2, 3 ] },\n\t\t *          { \"type\": \"numeric\", \"targets\": [ 3 ] },\n\t\t *          { \"orderDataType\": \"dom-select\", \"targets\": [ 4 ] },\n\t\t *          { \"orderDataType\": \"dom-checkbox\", \"targets\": [ 5 ] }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          null,\n\t\t *          null,\n\t\t *          { \"orderDataType\": \"dom-text\" },\n\t\t *          { \"orderDataType\": \"dom-text\", \"type\": \"numeric\" },\n\t\t *          { \"orderDataType\": \"dom-select\" },\n\t\t *          { \"orderDataType\": \"dom-checkbox\" }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sSortDataType\": \"std\",\n\t\n\t\n\t\t/**\n\t\t * The title of this column.\n\t\t *  @type string\n\t\t *  @default null <i>Derived from the 'TH' value for this column in the\n\t\t *    original HTML table.</i>\n\t\t *\n\t\t *  @name DataTable.defaults.column.title\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"title\": \"My column title\", \"targets\": [ 0 ] }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          { \"title\": \"My column title\" },\n\t\t *          null,\n\t\t *          null,\n\t\t *          null,\n\t\t *          null\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sTitle\": null,\n\t\n\t\n\t\t/**\n\t\t * The type allows you to specify how the data for this column will be\n\t\t * ordered. Four types (string, numeric, date and html (which will strip\n\t\t * HTML tags before ordering)) are currently available. Note that only date\n\t\t * formats understood by Javascript's Date() object will be accepted as type\n\t\t * date. For example: \"Mar 26, 2008 5:03 PM\". May take the values: 'string',\n\t\t * 'numeric', 'date' or 'html' (by default). Further types can be adding\n\t\t * through plug-ins.\n\t\t *  @type string\n\t\t *  @default null <i>Auto-detected from raw data</i>\n\t\t *\n\t\t *  @name DataTable.defaults.column.type\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"type\": \"html\", \"targets\": [ 0 ] }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          { \"type\": \"html\" },\n\t\t *          null,\n\t\t *          null,\n\t\t *          null,\n\t\t *          null\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sType\": null,\n\t\n\t\n\t\t/**\n\t\t * Defining the width of the column, this parameter may take any CSS value\n\t\t * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not\n\t\t * been given a specific width through this interface ensuring that the table\n\t\t * remains readable.\n\t\t *  @type string\n\t\t *  @default null <i>Automatic</i>\n\t\t *\n\t\t *  @name DataTable.defaults.column.width\n\t\t *  @dtopt Columns\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columnDefs`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columnDefs\": [\n\t\t *          { \"width\": \"20%\", \"targets\": [ 0 ] }\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t *\n\t\t *  @example\n\t\t *    // Using `columns`\n\t\t *    $(document).ready( function() {\n\t\t *      $('#example').dataTable( {\n\t\t *        \"columns\": [\n\t\t *          { \"width\": \"20%\" },\n\t\t *          null,\n\t\t *          null,\n\t\t *          null,\n\t\t *          null\n\t\t *        ]\n\t\t *      } );\n\t\t *    } );\n\t\t */\n\t\t\"sWidth\": null\n\t};\n\t\n\t_fnHungarianMap( DataTable.defaults.column );\n\t\n\t\n\t\n\t/**\n\t * DataTables settings object - this holds all the information needed for a\n\t * given table, including configuration, data and current application of the\n\t * table options. DataTables does not have a single instance for each DataTable\n\t * with the settings attached to that instance, but rather instances of the\n\t * DataTable \"class\" are created on-the-fly as needed (typically by a\n\t * $().dataTable() call) and the settings object is then applied to that\n\t * instance.\n\t *\n\t * Note that this object is related to {@link DataTable.defaults} but this\n\t * one is the internal data store for DataTables's cache of columns. It should\n\t * NOT be manipulated outside of DataTables. Any configuration should be done\n\t * through the initialisation options.\n\t *  @namespace\n\t *  @todo Really should attach the settings object to individual instances so we\n\t *    don't need to create new instances on each $().dataTable() call (if the\n\t *    table already exists). It would also save passing oSettings around and\n\t *    into every single function. However, this is a very significant\n\t *    architecture change for DataTables and will almost certainly break\n\t *    backwards compatibility with older installations. This is something that\n\t *    will be done in 2.0.\n\t */\n\tDataTable.models.oSettings = {\n\t\t/**\n\t\t * Primary features of DataTables and their enablement state.\n\t\t *  @namespace\n\t\t */\n\t\t\"oFeatures\": {\n\t\n\t\t\t/**\n\t\t\t * Flag to say if DataTables should automatically try to calculate the\n\t\t\t * optimum table and columns widths (true) or not (false).\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bAutoWidth\": null,\n\t\n\t\t\t/**\n\t\t\t * Delay the creation of TR and TD elements until they are actually\n\t\t\t * needed by a driven page draw. This can give a significant speed\n\t\t\t * increase for Ajax source and Javascript source data, but makes no\n\t\t\t * difference at all fro DOM and server-side processing tables.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bDeferRender\": null,\n\t\n\t\t\t/**\n\t\t\t * Enable filtering on the table or not. Note that if this is disabled\n\t\t\t * then there is no filtering at all on the table, including fnFilter.\n\t\t\t * To just remove the filtering input use sDom and remove the 'f' option.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bFilter\": null,\n\t\n\t\t\t/**\n\t\t\t * Table information element (the 'Showing x of y records' div) enable\n\t\t\t * flag.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bInfo\": null,\n\t\n\t\t\t/**\n\t\t\t * Present a user control allowing the end user to change the page size\n\t\t\t * when pagination is enabled.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bLengthChange\": null,\n\t\n\t\t\t/**\n\t\t\t * Pagination enabled or not. Note that if this is disabled then length\n\t\t\t * changing must also be disabled.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bPaginate\": null,\n\t\n\t\t\t/**\n\t\t\t * Processing indicator enable flag whenever DataTables is enacting a\n\t\t\t * user request - typically an Ajax request for server-side processing.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bProcessing\": null,\n\t\n\t\t\t/**\n\t\t\t * Server-side processing enabled flag - when enabled DataTables will\n\t\t\t * get all data from the server for every draw - there is no filtering,\n\t\t\t * sorting or paging done on the client-side.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bServerSide\": null,\n\t\n\t\t\t/**\n\t\t\t * Sorting enablement flag.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bSort\": null,\n\t\n\t\t\t/**\n\t\t\t * Multi-column sorting\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bSortMulti\": null,\n\t\n\t\t\t/**\n\t\t\t * Apply a class to the columns which are being sorted to provide a\n\t\t\t * visual highlight or not. This can slow things down when enabled since\n\t\t\t * there is a lot of DOM interaction.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bSortClasses\": null,\n\t\n\t\t\t/**\n\t\t\t * State saving enablement flag.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bStateSave\": null\n\t\t},\n\t\n\t\n\t\t/**\n\t\t * Scrolling settings for a table.\n\t\t *  @namespace\n\t\t */\n\t\t\"oScroll\": {\n\t\t\t/**\n\t\t\t * When the table is shorter in height than sScrollY, collapse the\n\t\t\t * table container down to the height of the table (when true).\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type boolean\n\t\t\t */\n\t\t\t\"bCollapse\": null,\n\t\n\t\t\t/**\n\t\t\t * Width of the scrollbar for the web-browser's platform. Calculated\n\t\t\t * during table initialisation.\n\t\t\t *  @type int\n\t\t\t *  @default 0\n\t\t\t */\n\t\t\t\"iBarWidth\": 0,\n\t\n\t\t\t/**\n\t\t\t * Viewport width for horizontal scrolling. Horizontal scrolling is\n\t\t\t * disabled if an empty string.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type string\n\t\t\t */\n\t\t\t\"sX\": null,\n\t\n\t\t\t/**\n\t\t\t * Width to expand the table to when using x-scrolling. Typically you\n\t\t\t * should not need to use this.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type string\n\t\t\t *  @deprecated\n\t\t\t */\n\t\t\t\"sXInner\": null,\n\t\n\t\t\t/**\n\t\t\t * Viewport height for vertical scrolling. Vertical scrolling is disabled\n\t\t\t * if an empty string.\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t\t * set a default use {@link DataTable.defaults}.\n\t\t\t *  @type string\n\t\t\t */\n\t\t\t\"sY\": null\n\t\t},\n\t\n\t\t/**\n\t\t * Language information for the table.\n\t\t *  @namespace\n\t\t *  @extends DataTable.defaults.oLanguage\n\t\t */\n\t\t\"oLanguage\": {\n\t\t\t/**\n\t\t\t * Information callback function. See\n\t\t\t * {@link DataTable.defaults.fnInfoCallback}\n\t\t\t *  @type function\n\t\t\t *  @default null\n\t\t\t */\n\t\t\t\"fnInfoCallback\": null\n\t\t},\n\t\n\t\t/**\n\t\t * Browser support parameters\n\t\t *  @namespace\n\t\t */\n\t\t\"oBrowser\": {\n\t\t\t/**\n\t\t\t * Indicate if the browser incorrectly calculates width:100% inside a\n\t\t\t * scrolling element (IE6/7)\n\t\t\t *  @type boolean\n\t\t\t *  @default false\n\t\t\t */\n\t\t\t\"bScrollOversize\": false,\n\t\n\t\t\t/**\n\t\t\t * Determine if the vertical scrollbar is on the right or left of the\n\t\t\t * scrolling container - needed for rtl language layout, although not\n\t\t\t * all browsers move the scrollbar (Safari).\n\t\t\t *  @type boolean\n\t\t\t *  @default false\n\t\t\t */\n\t\t\t\"bScrollbarLeft\": false,\n\t\n\t\t\t/**\n\t\t\t * Flag for if `getBoundingClientRect` is fully supported or not\n\t\t\t *  @type boolean\n\t\t\t *  @default false\n\t\t\t */\n\t\t\t\"bBounding\": false,\n\t\n\t\t\t/**\n\t\t\t * Browser scrollbar width\n\t\t\t *  @type integer\n\t\t\t *  @default 0\n\t\t\t */\n\t\t\t\"barWidth\": 0\n\t\t},\n\t\n\t\n\t\t\"ajax\": null,\n\t\n\t\n\t\t/**\n\t\t * Array referencing the nodes which are used for the features. The\n\t\t * parameters of this object match what is allowed by sDom - i.e.\n\t\t *   <ul>\n\t\t *     <li>'l' - Length changing</li>\n\t\t *     <li>'f' - Filtering input</li>\n\t\t *     <li>'t' - The table!</li>\n\t\t *     <li>'i' - Information</li>\n\t\t *     <li>'p' - Pagination</li>\n\t\t *     <li>'r' - pRocessing</li>\n\t\t *   </ul>\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aanFeatures\": [],\n\t\n\t\t/**\n\t\t * Store data information - see {@link DataTable.models.oRow} for detailed\n\t\t * information.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoData\": [],\n\t\n\t\t/**\n\t\t * Array of indexes which are in the current display (after filtering etc)\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aiDisplay\": [],\n\t\n\t\t/**\n\t\t * Array of indexes for display - no filtering\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aiDisplayMaster\": [],\n\t\n\t\t/**\n\t\t * Map of row ids to data indexes\n\t\t *  @type object\n\t\t *  @default {}\n\t\t */\n\t\t\"aIds\": {},\n\t\n\t\t/**\n\t\t * Store information about each column that is in use\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoColumns\": [],\n\t\n\t\t/**\n\t\t * Store information about the table's header\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoHeader\": [],\n\t\n\t\t/**\n\t\t * Store information about the table's footer\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoFooter\": [],\n\t\n\t\t/**\n\t\t * Store the applied global search information in case we want to force a\n\t\t * research or compare the old search to a new one.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @namespace\n\t\t *  @extends DataTable.models.oSearch\n\t\t */\n\t\t\"oPreviousSearch\": {},\n\t\n\t\t/**\n\t\t * Store the applied search for each column - see\n\t\t * {@link DataTable.models.oSearch} for the format that is used for the\n\t\t * filtering information for each column.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoPreSearchCols\": [],\n\t\n\t\t/**\n\t\t * Sorting that is applied to the table. Note that the inner arrays are\n\t\t * used in the following manner:\n\t\t * <ul>\n\t\t *   <li>Index 0 - column number</li>\n\t\t *   <li>Index 1 - current sorting direction</li>\n\t\t * </ul>\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type array\n\t\t *  @todo These inner arrays should really be objects\n\t\t */\n\t\t\"aaSorting\": null,\n\t\n\t\t/**\n\t\t * Sorting that is always applied to the table (i.e. prefixed in front of\n\t\t * aaSorting).\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aaSortingFixed\": [],\n\t\n\t\t/**\n\t\t * Classes to use for the striping of a table.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"asStripeClasses\": null,\n\t\n\t\t/**\n\t\t * If restoring a table - we should restore its striping classes as well\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"asDestroyStripes\": [],\n\t\n\t\t/**\n\t\t * If restoring a table - we should restore its width\n\t\t *  @type int\n\t\t *  @default 0\n\t\t */\n\t\t\"sDestroyWidth\": 0,\n\t\n\t\t/**\n\t\t * Callback functions array for every time a row is inserted (i.e. on a draw).\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoRowCallback\": [],\n\t\n\t\t/**\n\t\t * Callback functions for the header on each draw.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoHeaderCallback\": [],\n\t\n\t\t/**\n\t\t * Callback function for the footer on each draw.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoFooterCallback\": [],\n\t\n\t\t/**\n\t\t * Array of callback functions for draw callback functions\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoDrawCallback\": [],\n\t\n\t\t/**\n\t\t * Array of callback functions for row created function\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoRowCreatedCallback\": [],\n\t\n\t\t/**\n\t\t * Callback functions for just before the table is redrawn. A return of\n\t\t * false will be used to cancel the draw.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoPreDrawCallback\": [],\n\t\n\t\t/**\n\t\t * Callback functions for when the table has been initialised.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoInitComplete\": [],\n\t\n\t\n\t\t/**\n\t\t * Callbacks for modifying the settings to be stored for state saving, prior to\n\t\t * saving state.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoStateSaveParams\": [],\n\t\n\t\t/**\n\t\t * Callbacks for modifying the settings that have been stored for state saving\n\t\t * prior to using the stored values to restore the state.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoStateLoadParams\": [],\n\t\n\t\t/**\n\t\t * Callbacks for operating on the settings object once the saved state has been\n\t\t * loaded\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoStateLoaded\": [],\n\t\n\t\t/**\n\t\t * Cache the table ID for quick access\n\t\t *  @type string\n\t\t *  @default <i>Empty string</i>\n\t\t */\n\t\t\"sTableId\": \"\",\n\t\n\t\t/**\n\t\t * The TABLE node for the main table\n\t\t *  @type node\n\t\t *  @default null\n\t\t */\n\t\t\"nTable\": null,\n\t\n\t\t/**\n\t\t * Permanent ref to the thead element\n\t\t *  @type node\n\t\t *  @default null\n\t\t */\n\t\t\"nTHead\": null,\n\t\n\t\t/**\n\t\t * Permanent ref to the tfoot element - if it exists\n\t\t *  @type node\n\t\t *  @default null\n\t\t */\n\t\t\"nTFoot\": null,\n\t\n\t\t/**\n\t\t * Permanent ref to the tbody element\n\t\t *  @type node\n\t\t *  @default null\n\t\t */\n\t\t\"nTBody\": null,\n\t\n\t\t/**\n\t\t * Cache the wrapper node (contains all DataTables controlled elements)\n\t\t *  @type node\n\t\t *  @default null\n\t\t */\n\t\t\"nTableWrapper\": null,\n\t\n\t\t/**\n\t\t * Indicate if when using server-side processing the loading of data\n\t\t * should be deferred until the second draw.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t */\n\t\t\"bDeferLoading\": false,\n\t\n\t\t/**\n\t\t * Indicate if all required information has been read in\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t */\n\t\t\"bInitialised\": false,\n\t\n\t\t/**\n\t\t * Information about open rows. Each object in the array has the parameters\n\t\t * 'nTr' and 'nParent'\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoOpenRows\": [],\n\t\n\t\t/**\n\t\t * Dictate the positioning of DataTables' control elements - see\n\t\t * {@link DataTable.model.oInit.sDom}.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sDom\": null,\n\t\n\t\t/**\n\t\t * Search delay (in mS)\n\t\t *  @type integer\n\t\t *  @default null\n\t\t */\n\t\t\"searchDelay\": null,\n\t\n\t\t/**\n\t\t * Which type of pagination should be used.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type string\n\t\t *  @default two_button\n\t\t */\n\t\t\"sPaginationType\": \"two_button\",\n\t\n\t\t/**\n\t\t * The state duration (for `stateSave`) in seconds.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type int\n\t\t *  @default 0\n\t\t */\n\t\t\"iStateDuration\": 0,\n\t\n\t\t/**\n\t\t * Array of callback functions for state saving. Each array element is an\n\t\t * object with the following parameters:\n\t\t *   <ul>\n\t\t *     <li>function:fn - function to call. Takes two parameters, oSettings\n\t\t *       and the JSON string to save that has been thus far created. Returns\n\t\t *       a JSON string to be inserted into a json object\n\t\t *       (i.e. '\"param\": [ 0, 1, 2]')</li>\n\t\t *     <li>string:sName - name of callback</li>\n\t\t *   </ul>\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoStateSave\": [],\n\t\n\t\t/**\n\t\t * Array of callback functions for state loading. Each array element is an\n\t\t * object with the following parameters:\n\t\t *   <ul>\n\t\t *     <li>function:fn - function to call. Takes two parameters, oSettings\n\t\t *       and the object stored. May return false to cancel state loading</li>\n\t\t *     <li>string:sName - name of callback</li>\n\t\t *   </ul>\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoStateLoad\": [],\n\t\n\t\t/**\n\t\t * State that was saved. Useful for back reference\n\t\t *  @type object\n\t\t *  @default null\n\t\t */\n\t\t\"oSavedState\": null,\n\t\n\t\t/**\n\t\t * State that was loaded. Useful for back reference\n\t\t *  @type object\n\t\t *  @default null\n\t\t */\n\t\t\"oLoadedState\": null,\n\t\n\t\t/**\n\t\t * Source url for AJAX data for the table.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sAjaxSource\": null,\n\t\n\t\t/**\n\t\t * Property from a given object from which to read the table data from. This\n\t\t * can be an empty string (when not server-side processing), in which case\n\t\t * it is  assumed an an array is given directly.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type string\n\t\t */\n\t\t\"sAjaxDataProp\": null,\n\t\n\t\t/**\n\t\t * Note if draw should be blocked while getting data\n\t\t *  @type boolean\n\t\t *  @default true\n\t\t */\n\t\t\"bAjaxDataGet\": true,\n\t\n\t\t/**\n\t\t * The last jQuery XHR object that was used for server-side data gathering.\n\t\t * This can be used for working with the XHR information in one of the\n\t\t * callbacks\n\t\t *  @type object\n\t\t *  @default null\n\t\t */\n\t\t\"jqXHR\": null,\n\t\n\t\t/**\n\t\t * JSON returned from the server in the last Ajax request\n\t\t *  @type object\n\t\t *  @default undefined\n\t\t */\n\t\t\"json\": undefined,\n\t\n\t\t/**\n\t\t * Data submitted as part of the last Ajax request\n\t\t *  @type object\n\t\t *  @default undefined\n\t\t */\n\t\t\"oAjaxData\": undefined,\n\t\n\t\t/**\n\t\t * Function to get the server-side data.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type function\n\t\t */\n\t\t\"fnServerData\": null,\n\t\n\t\t/**\n\t\t * Functions which are called prior to sending an Ajax request so extra\n\t\t * parameters can easily be sent to the server\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoServerParams\": [],\n\t\n\t\t/**\n\t\t * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if\n\t\t * required).\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type string\n\t\t */\n\t\t\"sServerMethod\": null,\n\t\n\t\t/**\n\t\t * Format numbers for display.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type function\n\t\t */\n\t\t\"fnFormatNumber\": null,\n\t\n\t\t/**\n\t\t * List of options that can be used for the user selectable length menu.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aLengthMenu\": null,\n\t\n\t\t/**\n\t\t * Counter for the draws that the table does. Also used as a tracker for\n\t\t * server-side processing\n\t\t *  @type int\n\t\t *  @default 0\n\t\t */\n\t\t\"iDraw\": 0,\n\t\n\t\t/**\n\t\t * Indicate if a redraw is being done - useful for Ajax\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t */\n\t\t\"bDrawing\": false,\n\t\n\t\t/**\n\t\t * Draw index (iDraw) of the last error when parsing the returned data\n\t\t *  @type int\n\t\t *  @default -1\n\t\t */\n\t\t\"iDrawError\": -1,\n\t\n\t\t/**\n\t\t * Paging display length\n\t\t *  @type int\n\t\t *  @default 10\n\t\t */\n\t\t\"_iDisplayLength\": 10,\n\t\n\t\t/**\n\t\t * Paging start point - aiDisplay index\n\t\t *  @type int\n\t\t *  @default 0\n\t\t */\n\t\t\"_iDisplayStart\": 0,\n\t\n\t\t/**\n\t\t * Server-side processing - number of records in the result set\n\t\t * (i.e. before filtering), Use fnRecordsTotal rather than\n\t\t * this property to get the value of the number of records, regardless of\n\t\t * the server-side processing setting.\n\t\t *  @type int\n\t\t *  @default 0\n\t\t *  @private\n\t\t */\n\t\t\"_iRecordsTotal\": 0,\n\t\n\t\t/**\n\t\t * Server-side processing - number of records in the current display set\n\t\t * (i.e. after filtering). Use fnRecordsDisplay rather than\n\t\t * this property to get the value of the number of records, regardless of\n\t\t * the server-side processing setting.\n\t\t *  @type boolean\n\t\t *  @default 0\n\t\t *  @private\n\t\t */\n\t\t\"_iRecordsDisplay\": 0,\n\t\n\t\t/**\n\t\t * The classes to use for the table\n\t\t *  @type object\n\t\t *  @default {}\n\t\t */\n\t\t\"oClasses\": {},\n\t\n\t\t/**\n\t\t * Flag attached to the settings object so you can check in the draw\n\t\t * callback if filtering has been done in the draw. Deprecated in favour of\n\t\t * events.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *  @deprecated\n\t\t */\n\t\t\"bFiltered\": false,\n\t\n\t\t/**\n\t\t * Flag attached to the settings object so you can check in the draw\n\t\t * callback if sorting has been done in the draw. Deprecated in favour of\n\t\t * events.\n\t\t *  @type boolean\n\t\t *  @default false\n\t\t *  @deprecated\n\t\t */\n\t\t\"bSorted\": false,\n\t\n\t\t/**\n\t\t * Indicate that if multiple rows are in the header and there is more than\n\t\t * one unique cell per column, if the top one (true) or bottom one (false)\n\t\t * should be used for sorting / title by DataTables.\n\t\t * Note that this parameter will be set by the initialisation routine. To\n\t\t * set a default use {@link DataTable.defaults}.\n\t\t *  @type boolean\n\t\t */\n\t\t\"bSortCellsTop\": null,\n\t\n\t\t/**\n\t\t * Initialisation object that is used for the table\n\t\t *  @type object\n\t\t *  @default null\n\t\t */\n\t\t\"oInit\": null,\n\t\n\t\t/**\n\t\t * Destroy callback functions - for plug-ins to attach themselves to the\n\t\t * destroy so they can clean up markup and events.\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aoDestroyCallback\": [],\n\t\n\t\n\t\t/**\n\t\t * Get the number of records in the current record set, before filtering\n\t\t *  @type function\n\t\t */\n\t\t\"fnRecordsTotal\": function ()\n\t\t{\n\t\t\treturn _fnDataSource( this ) == 'ssp' ?\n\t\t\t\tthis._iRecordsTotal * 1 :\n\t\t\t\tthis.aiDisplayMaster.length;\n\t\t},\n\t\n\t\t/**\n\t\t * Get the number of records in the current record set, after filtering\n\t\t *  @type function\n\t\t */\n\t\t\"fnRecordsDisplay\": function ()\n\t\t{\n\t\t\treturn _fnDataSource( this ) == 'ssp' ?\n\t\t\t\tthis._iRecordsDisplay * 1 :\n\t\t\t\tthis.aiDisplay.length;\n\t\t},\n\t\n\t\t/**\n\t\t * Get the display end point - aiDisplay index\n\t\t *  @type function\n\t\t */\n\t\t\"fnDisplayEnd\": function ()\n\t\t{\n\t\t\tvar\n\t\t\t\tlen      = this._iDisplayLength,\n\t\t\t\tstart    = this._iDisplayStart,\n\t\t\t\tcalc     = start + len,\n\t\t\t\trecords  = this.aiDisplay.length,\n\t\t\t\tfeatures = this.oFeatures,\n\t\t\t\tpaginate = features.bPaginate;\n\t\n\t\t\tif ( features.bServerSide ) {\n\t\t\t\treturn paginate === false || len === -1 ?\n\t\t\t\t\tstart + records :\n\t\t\t\t\tMath.min( start+len, this._iRecordsDisplay );\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn ! paginate || calc>records || len===-1 ?\n\t\t\t\t\trecords :\n\t\t\t\t\tcalc;\n\t\t\t}\n\t\t},\n\t\n\t\t/**\n\t\t * The DataTables object for this table\n\t\t *  @type object\n\t\t *  @default null\n\t\t */\n\t\t\"oInstance\": null,\n\t\n\t\t/**\n\t\t * Unique identifier for each instance of the DataTables object. If there\n\t\t * is an ID on the table node, then it takes that value, otherwise an\n\t\t * incrementing internal counter is used.\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"sInstance\": null,\n\t\n\t\t/**\n\t\t * tabindex attribute value that is added to DataTables control elements, allowing\n\t\t * keyboard navigation of the table and its controls.\n\t\t */\n\t\t\"iTabIndex\": 0,\n\t\n\t\t/**\n\t\t * DIV container for the footer scrolling table if scrolling\n\t\t */\n\t\t\"nScrollHead\": null,\n\t\n\t\t/**\n\t\t * DIV container for the footer scrolling table if scrolling\n\t\t */\n\t\t\"nScrollFoot\": null,\n\t\n\t\t/**\n\t\t * Last applied sort\n\t\t *  @type array\n\t\t *  @default []\n\t\t */\n\t\t\"aLastSort\": [],\n\t\n\t\t/**\n\t\t * Stored plug-in instances\n\t\t *  @type object\n\t\t *  @default {}\n\t\t */\n\t\t\"oPlugins\": {},\n\t\n\t\t/**\n\t\t * Function used to get a row's id from the row's data\n\t\t *  @type function\n\t\t *  @default null\n\t\t */\n\t\t\"rowIdFn\": null,\n\t\n\t\t/**\n\t\t * Data location where to store a row's id\n\t\t *  @type string\n\t\t *  @default null\n\t\t */\n\t\t\"rowId\": null\n\t};\n\n\t/**\n\t * Extension object for DataTables that is used to provide all extension\n\t * options.\n\t *\n\t * Note that the `DataTable.ext` object is available through\n\t * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is\n\t * also aliased to `jQuery.fn.dataTableExt` for historic reasons.\n\t *  @namespace\n\t *  @extends DataTable.models.ext\n\t */\n\t\n\t\n\t/**\n\t * DataTables extensions\n\t * \n\t * This namespace acts as a collection area for plug-ins that can be used to\n\t * extend DataTables capabilities. Indeed many of the build in methods\n\t * use this method to provide their own capabilities (sorting methods for\n\t * example).\n\t *\n\t * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy\n\t * reasons\n\t *\n\t *  @namespace\n\t */\n\tDataTable.ext = _ext = {\n\t\t/**\n\t\t * Buttons. For use with the Buttons extension for DataTables. This is\n\t\t * defined here so other extensions can define buttons regardless of load\n\t\t * order. It is _not_ used by DataTables core.\n\t\t *\n\t\t *  @type object\n\t\t *  @default {}\n\t\t */\n\t\tbuttons: {},\n\t\n\t\n\t\t/**\n\t\t * Element class names\n\t\t *\n\t\t *  @type object\n\t\t *  @default {}\n\t\t */\n\t\tclasses: {},\n\t\n\t\n\t\t/**\n\t\t * DataTables build type (expanded by the download builder)\n\t\t *\n\t\t *  @type string\n\t\t */\n\t\tbuild:\"bs4/dt-1.10.18\",\n\t\n\t\n\t\t/**\n\t\t * Error reporting.\n\t\t * \n\t\t * How should DataTables report an error. Can take the value 'alert',\n\t\t * 'throw', 'none' or a function.\n\t\t *\n\t\t *  @type string|function\n\t\t *  @default alert\n\t\t */\n\t\terrMode: \"alert\",\n\t\n\t\n\t\t/**\n\t\t * Feature plug-ins.\n\t\t * \n\t\t * This is an array of objects which describe the feature plug-ins that are\n\t\t * available to DataTables. These feature plug-ins are then available for\n\t\t * use through the `dom` initialisation option.\n\t\t * \n\t\t * Each feature plug-in is described by an object which must have the\n\t\t * following properties:\n\t\t * \n\t\t * * `fnInit` - function that is used to initialise the plug-in,\n\t\t * * `cFeature` - a character so the feature can be enabled by the `dom`\n\t\t *   instillation option. This is case sensitive.\n\t\t *\n\t\t * The `fnInit` function has the following input parameters:\n\t\t *\n\t\t * 1. `{object}` DataTables settings object: see\n\t\t *    {@link DataTable.models.oSettings}\n\t\t *\n\t\t * And the following return is expected:\n\t\t * \n\t\t * * {node|null} The element which contains your feature. Note that the\n\t\t *   return may also be void if your plug-in does not require to inject any\n\t\t *   DOM elements into DataTables control (`dom`) - for example this might\n\t\t *   be useful when developing a plug-in which allows table control via\n\t\t *   keyboard entry\n\t\t *\n\t\t *  @type array\n\t\t *\n\t\t *  @example\n\t\t *    $.fn.dataTable.ext.features.push( {\n\t\t *      \"fnInit\": function( oSettings ) {\n\t\t *        return new TableTools( { \"oDTSettings\": oSettings } );\n\t\t *      },\n\t\t *      \"cFeature\": \"T\"\n\t\t *    } );\n\t\t */\n\t\tfeature: [],\n\t\n\t\n\t\t/**\n\t\t * Row searching.\n\t\t * \n\t\t * This method of searching is complimentary to the default type based\n\t\t * searching, and a lot more comprehensive as it allows you complete control\n\t\t * over the searching logic. Each element in this array is a function\n\t\t * (parameters described below) that is called for every row in the table,\n\t\t * and your logic decides if it should be included in the searching data set\n\t\t * or not.\n\t\t *\n\t\t * Searching functions have the following input parameters:\n\t\t *\n\t\t * 1. `{object}` DataTables settings object: see\n\t\t *    {@link DataTable.models.oSettings}\n\t\t * 2. `{array|object}` Data for the row to be processed (same as the\n\t\t *    original format that was passed in as the data source, or an array\n\t\t *    from a DOM data source\n\t\t * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which\n\t\t *    can be useful to retrieve the `TR` element if you need DOM interaction.\n\t\t *\n\t\t * And the following return is expected:\n\t\t *\n\t\t * * {boolean} Include the row in the searched result set (true) or not\n\t\t *   (false)\n\t\t *\n\t\t * Note that as with the main search ability in DataTables, technically this\n\t\t * is \"filtering\", since it is subtractive. However, for consistency in\n\t\t * naming we call it searching here.\n\t\t *\n\t\t *  @type array\n\t\t *  @default []\n\t\t *\n\t\t *  @example\n\t\t *    // The following example shows custom search being applied to the\n\t\t *    // fourth column (i.e. the data[3] index) based on two input values\n\t\t *    // from the end-user, matching the data in a certain range.\n\t\t *    $.fn.dataTable.ext.search.push(\n\t\t *      function( settings, data, dataIndex ) {\n\t\t *        var min = document.getElementById('min').value * 1;\n\t\t *        var max = document.getElementById('max').value * 1;\n\t\t *        var version = data[3] == \"-\" ? 0 : data[3]*1;\n\t\t *\n\t\t *        if ( min == \"\" && max == \"\" ) {\n\t\t *          return true;\n\t\t *        }\n\t\t *        else if ( min == \"\" && version < max ) {\n\t\t *          return true;\n\t\t *        }\n\t\t *        else if ( min < version && \"\" == max ) {\n\t\t *          return true;\n\t\t *        }\n\t\t *        else if ( min < version && version < max ) {\n\t\t *          return true;\n\t\t *        }\n\t\t *        return false;\n\t\t *      }\n\t\t *    );\n\t\t */\n\t\tsearch: [],\n\t\n\t\n\t\t/**\n\t\t * Selector extensions\n\t\t *\n\t\t * The `selector` option can be used to extend the options available for the\n\t\t * selector modifier options (`selector-modifier` object data type) that\n\t\t * each of the three built in selector types offer (row, column and cell +\n\t\t * their plural counterparts). For example the Select extension uses this\n\t\t * mechanism to provide an option to select only rows, columns and cells\n\t\t * that have been marked as selected by the end user (`{selected: true}`),\n\t\t * which can be used in conjunction with the existing built in selector\n\t\t * options.\n\t\t *\n\t\t * Each property is an array to which functions can be pushed. The functions\n\t\t * take three attributes:\n\t\t *\n\t\t * * Settings object for the host table\n\t\t * * Options object (`selector-modifier` object type)\n\t\t * * Array of selected item indexes\n\t\t *\n\t\t * The return is an array of the resulting item indexes after the custom\n\t\t * selector has been applied.\n\t\t *\n\t\t *  @type object\n\t\t */\n\t\tselector: {\n\t\t\tcell: [],\n\t\t\tcolumn: [],\n\t\t\trow: []\n\t\t},\n\t\n\t\n\t\t/**\n\t\t * Internal functions, exposed for used in plug-ins.\n\t\t * \n\t\t * Please note that you should not need to use the internal methods for\n\t\t * anything other than a plug-in (and even then, try to avoid if possible).\n\t\t * The internal function may change between releases.\n\t\t *\n\t\t *  @type object\n\t\t *  @default {}\n\t\t */\n\t\tinternal: {},\n\t\n\t\n\t\t/**\n\t\t * Legacy configuration options. Enable and disable legacy options that\n\t\t * are available in DataTables.\n\t\t *\n\t\t *  @type object\n\t\t */\n\t\tlegacy: {\n\t\t\t/**\n\t\t\t * Enable / disable DataTables 1.9 compatible server-side processing\n\t\t\t * requests\n\t\t\t *\n\t\t\t *  @type boolean\n\t\t\t *  @default null\n\t\t\t */\n\t\t\tajax: null\n\t\t},\n\t\n\t\n\t\t/**\n\t\t * Pagination plug-in methods.\n\t\t * \n\t\t * Each entry in this object is a function and defines which buttons should\n\t\t * be shown by the pagination rendering method that is used for the table:\n\t\t * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the\n\t\t * buttons are displayed in the document, while the functions here tell it\n\t\t * what buttons to display. This is done by returning an array of button\n\t\t * descriptions (what each button will do).\n\t\t *\n\t\t * Pagination types (the four built in options and any additional plug-in\n\t\t * options defined here) can be used through the `paginationType`\n\t\t * initialisation parameter.\n\t\t *\n\t\t * The functions defined take two parameters:\n\t\t *\n\t\t * 1. `{int} page` The current page index\n\t\t * 2. `{int} pages` The number of pages in the table\n\t\t *\n\t\t * Each function is expected to return an array where each element of the\n\t\t * array can be one of:\n\t\t *\n\t\t * * `first` - Jump to first page when activated\n\t\t * * `last` - Jump to last page when activated\n\t\t * * `previous` - Show previous page when activated\n\t\t * * `next` - Show next page when activated\n\t\t * * `{int}` - Show page of the index given\n\t\t * * `{array}` - A nested array containing the above elements to add a\n\t\t *   containing 'DIV' element (might be useful for styling).\n\t\t *\n\t\t * Note that DataTables v1.9- used this object slightly differently whereby\n\t\t * an object with two functions would be defined for each plug-in. That\n\t\t * ability is still supported by DataTables 1.10+ to provide backwards\n\t\t * compatibility, but this option of use is now decremented and no longer\n\t\t * documented in DataTables 1.10+.\n\t\t *\n\t\t *  @type object\n\t\t *  @default {}\n\t\t *\n\t\t *  @example\n\t\t *    // Show previous, next and current page buttons only\n\t\t *    $.fn.dataTableExt.oPagination.current = function ( page, pages ) {\n\t\t *      return [ 'previous', page, 'next' ];\n\t\t *    };\n\t\t */\n\t\tpager: {},\n\t\n\t\n\t\trenderer: {\n\t\t\tpageButton: {},\n\t\t\theader: {}\n\t\t},\n\t\n\t\n\t\t/**\n\t\t * Ordering plug-ins - custom data source\n\t\t * \n\t\t * The extension options for ordering of data available here is complimentary\n\t\t * to the default type based ordering that DataTables typically uses. It\n\t\t * allows much greater control over the the data that is being used to\n\t\t * order a column, but is necessarily therefore more complex.\n\t\t * \n\t\t * This type of ordering is useful if you want to do ordering based on data\n\t\t * live from the DOM (for example the contents of an 'input' element) rather\n\t\t * than just the static string that DataTables knows of.\n\t\t * \n\t\t * The way these plug-ins work is that you create an array of the values you\n\t\t * wish to be ordering for the column in question and then return that\n\t\t * array. The data in the array much be in the index order of the rows in\n\t\t * the table (not the currently ordering order!). Which order data gathering\n\t\t * function is run here depends on the `dt-init columns.orderDataType`\n\t\t * parameter that is used for the column (if any).\n\t\t *\n\t\t * The functions defined take two parameters:\n\t\t *\n\t\t * 1. `{object}` DataTables settings object: see\n\t\t *    {@link DataTable.models.oSettings}\n\t\t * 2. `{int}` Target column index\n\t\t *\n\t\t * Each function is expected to return an array:\n\t\t *\n\t\t * * `{array}` Data for the column to be ordering upon\n\t\t *\n\t\t *  @type array\n\t\t *\n\t\t *  @example\n\t\t *    // Ordering using `input` node values\n\t\t *    $.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )\n\t\t *    {\n\t\t *      return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {\n\t\t *        return $('input', td).val();\n\t\t *      } );\n\t\t *    }\n\t\t */\n\t\torder: {},\n\t\n\t\n\t\t/**\n\t\t * Type based plug-ins.\n\t\t *\n\t\t * Each column in DataTables has a type assigned to it, either by automatic\n\t\t * detection or by direct assignment using the `type` option for the column.\n\t\t * The type of a column will effect how it is ordering and search (plug-ins\n\t\t * can also make use of the column type if required).\n\t\t *\n\t\t * @namespace\n\t\t */\n\t\ttype: {\n\t\t\t/**\n\t\t\t * Type detection functions.\n\t\t\t *\n\t\t\t * The functions defined in this object are used to automatically detect\n\t\t\t * a column's type, making initialisation of DataTables super easy, even\n\t\t\t * when complex data is in the table.\n\t\t\t *\n\t\t\t * The functions defined take two parameters:\n\t\t\t *\n\t\t     *  1. `{*}` Data from the column cell to be analysed\n\t\t     *  2. `{settings}` DataTables settings object. This can be used to\n\t\t     *     perform context specific type detection - for example detection\n\t\t     *     based on language settings such as using a comma for a decimal\n\t\t     *     place. Generally speaking the options from the settings will not\n\t\t     *     be required\n\t\t\t *\n\t\t\t * Each function is expected to return:\n\t\t\t *\n\t\t\t * * `{string|null}` Data type detected, or null if unknown (and thus\n\t\t\t *   pass it on to the other type detection functions.\n\t\t\t *\n\t\t\t *  @type array\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    // Currency type detection plug-in:\n\t\t\t *    $.fn.dataTable.ext.type.detect.push(\n\t\t\t *      function ( data, settings ) {\n\t\t\t *        // Check the numeric part\n\t\t\t *        if ( ! data.substring(1).match(/[0-9]/) ) {\n\t\t\t *          return null;\n\t\t\t *        }\n\t\t\t *\n\t\t\t *        // Check prefixed by currency\n\t\t\t *        if ( data.charAt(0) == '$' || data.charAt(0) == '&pound;' ) {\n\t\t\t *          return 'currency';\n\t\t\t *        }\n\t\t\t *        return null;\n\t\t\t *      }\n\t\t\t *    );\n\t\t\t */\n\t\t\tdetect: [],\n\t\n\t\n\t\t\t/**\n\t\t\t * Type based search formatting.\n\t\t\t *\n\t\t\t * The type based searching functions can be used to pre-format the\n\t\t\t * data to be search on. For example, it can be used to strip HTML\n\t\t\t * tags or to de-format telephone numbers for numeric only searching.\n\t\t\t *\n\t\t\t * Note that is a search is not defined for a column of a given type,\n\t\t\t * no search formatting will be performed.\n\t\t\t * \n\t\t\t * Pre-processing of searching data plug-ins - When you assign the sType\n\t\t\t * for a column (or have it automatically detected for you by DataTables\n\t\t\t * or a type detection plug-in), you will typically be using this for\n\t\t\t * custom sorting, but it can also be used to provide custom searching\n\t\t\t * by allowing you to pre-processing the data and returning the data in\n\t\t\t * the format that should be searched upon. This is done by adding\n\t\t\t * functions this object with a parameter name which matches the sType\n\t\t\t * for that target column. This is the corollary of <i>afnSortData</i>\n\t\t\t * for searching data.\n\t\t\t *\n\t\t\t * The functions defined take a single parameter:\n\t\t\t *\n\t\t     *  1. `{*}` Data from the column cell to be prepared for searching\n\t\t\t *\n\t\t\t * Each function is expected to return:\n\t\t\t *\n\t\t\t * * `{string|null}` Formatted string that will be used for the searching.\n\t\t\t *\n\t\t\t *  @type object\n\t\t\t *  @default {}\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {\n\t\t\t *      return d.replace(/\\n/g,\" \").replace( /<.*?>/g, \"\" );\n\t\t\t *    }\n\t\t\t */\n\t\t\tsearch: {},\n\t\n\t\n\t\t\t/**\n\t\t\t * Type based ordering.\n\t\t\t *\n\t\t\t * The column type tells DataTables what ordering to apply to the table\n\t\t\t * when a column is sorted upon. The order for each type that is defined,\n\t\t\t * is defined by the functions available in this object.\n\t\t\t *\n\t\t\t * Each ordering option can be described by three properties added to\n\t\t\t * this object:\n\t\t\t *\n\t\t\t * * `{type}-pre` - Pre-formatting function\n\t\t\t * * `{type}-asc` - Ascending order function\n\t\t\t * * `{type}-desc` - Descending order function\n\t\t\t *\n\t\t\t * All three can be used together, only `{type}-pre` or only\n\t\t\t * `{type}-asc` and `{type}-desc` together. It is generally recommended\n\t\t\t * that only `{type}-pre` is used, as this provides the optimal\n\t\t\t * implementation in terms of speed, although the others are provided\n\t\t\t * for compatibility with existing Javascript sort functions.\n\t\t\t *\n\t\t\t * `{type}-pre`: Functions defined take a single parameter:\n\t\t\t *\n\t\t     *  1. `{*}` Data from the column cell to be prepared for ordering\n\t\t\t *\n\t\t\t * And return:\n\t\t\t *\n\t\t\t * * `{*}` Data to be sorted upon\n\t\t\t *\n\t\t\t * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort\n\t\t\t * functions, taking two parameters:\n\t\t\t *\n\t\t     *  1. `{*}` Data to compare to the second parameter\n\t\t     *  2. `{*}` Data to compare to the first parameter\n\t\t\t *\n\t\t\t * And returning:\n\t\t\t *\n\t\t\t * * `{*}` Ordering match: <0 if first parameter should be sorted lower\n\t\t\t *   than the second parameter, ===0 if the two parameters are equal and\n\t\t\t *   >0 if the first parameter should be sorted height than the second\n\t\t\t *   parameter.\n\t\t\t * \n\t\t\t *  @type object\n\t\t\t *  @default {}\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    // Numeric ordering of formatted numbers with a pre-formatter\n\t\t\t *    $.extend( $.fn.dataTable.ext.type.order, {\n\t\t\t *      \"string-pre\": function(x) {\n\t\t\t *        a = (a === \"-\" || a === \"\") ? 0 : a.replace( /[^\\d\\-\\.]/g, \"\" );\n\t\t\t *        return parseFloat( a );\n\t\t\t *      }\n\t\t\t *    } );\n\t\t\t *\n\t\t\t *  @example\n\t\t\t *    // Case-sensitive string ordering, with no pre-formatting method\n\t\t\t *    $.extend( $.fn.dataTable.ext.order, {\n\t\t\t *      \"string-case-asc\": function(x,y) {\n\t\t\t *        return ((x < y) ? -1 : ((x > y) ? 1 : 0));\n\t\t\t *      },\n\t\t\t *      \"string-case-desc\": function(x,y) {\n\t\t\t *        return ((x < y) ? 1 : ((x > y) ? -1 : 0));\n\t\t\t *      }\n\t\t\t *    } );\n\t\t\t */\n\t\t\torder: {}\n\t\t},\n\t\n\t\t/**\n\t\t * Unique DataTables instance counter\n\t\t *\n\t\t * @type int\n\t\t * @private\n\t\t */\n\t\t_unique: 0,\n\t\n\t\n\t\t//\n\t\t// Depreciated\n\t\t// The following properties are retained for backwards compatiblity only.\n\t\t// The should not be used in new projects and will be removed in a future\n\t\t// version\n\t\t//\n\t\n\t\t/**\n\t\t * Version check function.\n\t\t *  @type function\n\t\t *  @depreciated Since 1.10\n\t\t */\n\t\tfnVersionCheck: DataTable.fnVersionCheck,\n\t\n\t\n\t\t/**\n\t\t * Index for what 'this' index API functions should use\n\t\t *  @type int\n\t\t *  @deprecated Since v1.10\n\t\t */\n\t\tiApiIndex: 0,\n\t\n\t\n\t\t/**\n\t\t * jQuery UI class container\n\t\t *  @type object\n\t\t *  @deprecated Since v1.10\n\t\t */\n\t\toJUIClasses: {},\n\t\n\t\n\t\t/**\n\t\t * Software version\n\t\t *  @type string\n\t\t *  @deprecated Since v1.10\n\t\t */\n\t\tsVersion: DataTable.version\n\t};\n\t\n\t\n\t//\n\t// Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts\n\t//\n\t$.extend( _ext, {\n\t\tafnFiltering: _ext.search,\n\t\taTypes:       _ext.type.detect,\n\t\tofnSearch:    _ext.type.search,\n\t\toSort:        _ext.type.order,\n\t\tafnSortData:  _ext.order,\n\t\taoFeatures:   _ext.feature,\n\t\toApi:         _ext.internal,\n\t\toStdClasses:  _ext.classes,\n\t\toPagination:  _ext.pager\n\t} );\n\t\n\t\n\t$.extend( DataTable.ext.classes, {\n\t\t\"sTable\": \"dataTable\",\n\t\t\"sNoFooter\": \"no-footer\",\n\t\n\t\t/* Paging buttons */\n\t\t\"sPageButton\": \"paginate_button\",\n\t\t\"sPageButtonActive\": \"current\",\n\t\t\"sPageButtonDisabled\": \"disabled\",\n\t\n\t\t/* Striping classes */\n\t\t\"sStripeOdd\": \"odd\",\n\t\t\"sStripeEven\": \"even\",\n\t\n\t\t/* Empty row */\n\t\t\"sRowEmpty\": \"dataTables_empty\",\n\t\n\t\t/* Features */\n\t\t\"sWrapper\": \"dataTables_wrapper\",\n\t\t\"sFilter\": \"dataTables_filter\",\n\t\t\"sInfo\": \"dataTables_info\",\n\t\t\"sPaging\": \"dataTables_paginate paging_\", /* Note that the type is postfixed */\n\t\t\"sLength\": \"dataTables_length\",\n\t\t\"sProcessing\": \"dataTables_processing\",\n\t\n\t\t/* Sorting */\n\t\t\"sSortAsc\": \"sorting_asc\",\n\t\t\"sSortDesc\": \"sorting_desc\",\n\t\t\"sSortable\": \"sorting\", /* Sortable in both directions */\n\t\t\"sSortableAsc\": \"sorting_asc_disabled\",\n\t\t\"sSortableDesc\": \"sorting_desc_disabled\",\n\t\t\"sSortableNone\": \"sorting_disabled\",\n\t\t\"sSortColumn\": \"sorting_\", /* Note that an int is postfixed for the sorting order */\n\t\n\t\t/* Filtering */\n\t\t\"sFilterInput\": \"\",\n\t\n\t\t/* Page length */\n\t\t\"sLengthSelect\": \"\",\n\t\n\t\t/* Scrolling */\n\t\t\"sScrollWrapper\": \"dataTables_scroll\",\n\t\t\"sScrollHead\": \"dataTables_scrollHead\",\n\t\t\"sScrollHeadInner\": \"dataTables_scrollHeadInner\",\n\t\t\"sScrollBody\": \"dataTables_scrollBody\",\n\t\t\"sScrollFoot\": \"dataTables_scrollFoot\",\n\t\t\"sScrollFootInner\": \"dataTables_scrollFootInner\",\n\t\n\t\t/* Misc */\n\t\t\"sHeaderTH\": \"\",\n\t\t\"sFooterTH\": \"\",\n\t\n\t\t// Deprecated\n\t\t\"sSortJUIAsc\": \"\",\n\t\t\"sSortJUIDesc\": \"\",\n\t\t\"sSortJUI\": \"\",\n\t\t\"sSortJUIAscAllowed\": \"\",\n\t\t\"sSortJUIDescAllowed\": \"\",\n\t\t\"sSortJUIWrapper\": \"\",\n\t\t\"sSortIcon\": \"\",\n\t\t\"sJUIHeader\": \"\",\n\t\t\"sJUIFooter\": \"\"\n\t} );\n\t\n\t\n\tvar extPagination = DataTable.ext.pager;\n\t\n\tfunction _numbers ( page, pages ) {\n\t\tvar\n\t\t\tnumbers = [],\n\t\t\tbuttons = extPagination.numbers_length,\n\t\t\thalf = Math.floor( buttons / 2 ),\n\t\t\ti = 1;\n\t\n\t\tif ( pages <= buttons ) {\n\t\t\tnumbers = _range( 0, pages );\n\t\t}\n\t\telse if ( page <= half ) {\n\t\t\tnumbers = _range( 0, buttons-2 );\n\t\t\tnumbers.push( 'ellipsis' );\n\t\t\tnumbers.push( pages-1 );\n\t\t}\n\t\telse if ( page >= pages - 1 - half ) {\n\t\t\tnumbers = _range( pages-(buttons-2), pages );\n\t\t\tnumbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6\n\t\t\tnumbers.splice( 0, 0, 0 );\n\t\t}\n\t\telse {\n\t\t\tnumbers = _range( page-half+2, page+half-1 );\n\t\t\tnumbers.push( 'ellipsis' );\n\t\t\tnumbers.push( pages-1 );\n\t\t\tnumbers.splice( 0, 0, 'ellipsis' );\n\t\t\tnumbers.splice( 0, 0, 0 );\n\t\t}\n\t\n\t\tnumbers.DT_el = 'span';\n\t\treturn numbers;\n\t}\n\t\n\t\n\t$.extend( extPagination, {\n\t\tsimple: function ( page, pages ) {\n\t\t\treturn [ 'previous', 'next' ];\n\t\t},\n\t\n\t\tfull: function ( page, pages ) {\n\t\t\treturn [  'first', 'previous', 'next', 'last' ];\n\t\t},\n\t\n\t\tnumbers: function ( page, pages ) {\n\t\t\treturn [ _numbers(page, pages) ];\n\t\t},\n\t\n\t\tsimple_numbers: function ( page, pages ) {\n\t\t\treturn [ 'previous', _numbers(page, pages), 'next' ];\n\t\t},\n\t\n\t\tfull_numbers: function ( page, pages ) {\n\t\t\treturn [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];\n\t\t},\n\t\t\n\t\tfirst_last_numbers: function (page, pages) {\n\t \t\treturn ['first', _numbers(page, pages), 'last'];\n\t \t},\n\t\n\t\t// For testing and plug-ins to use\n\t\t_numbers: _numbers,\n\t\n\t\t// Number of number buttons (including ellipsis) to show. _Must be odd!_\n\t\tnumbers_length: 7\n\t} );\n\t\n\t\n\t$.extend( true, DataTable.ext.renderer, {\n\t\tpageButton: {\n\t\t\t_: function ( settings, host, idx, buttons, page, pages ) {\n\t\t\t\tvar classes = settings.oClasses;\n\t\t\t\tvar lang = settings.oLanguage.oPaginate;\n\t\t\t\tvar aria = settings.oLanguage.oAria.paginate || {};\n\t\t\t\tvar btnDisplay, btnClass, counter=0;\n\t\n\t\t\t\tvar attach = function( container, buttons ) {\n\t\t\t\t\tvar i, ien, node, button;\n\t\t\t\t\tvar clickHandler = function ( e ) {\n\t\t\t\t\t\t_fnPageChange( settings, e.data.action, true );\n\t\t\t\t\t};\n\t\n\t\t\t\t\tfor ( i=0, ien=buttons.length ; i<ien ; i++ ) {\n\t\t\t\t\t\tbutton = buttons[i];\n\t\n\t\t\t\t\t\tif ( $.isArray( button ) ) {\n\t\t\t\t\t\t\tvar inner = $( '<'+(button.DT_el || 'div')+'/>' )\n\t\t\t\t\t\t\t\t.appendTo( container );\n\t\t\t\t\t\t\tattach( inner, button );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbtnDisplay = null;\n\t\t\t\t\t\t\tbtnClass = '';\n\t\n\t\t\t\t\t\t\tswitch ( button ) {\n\t\t\t\t\t\t\t\tcase 'ellipsis':\n\t\t\t\t\t\t\t\t\tcontainer.append('<span class=\"ellipsis\">&#x2026;</span>');\n\t\t\t\t\t\t\t\t\tbreak;\n\t\n\t\t\t\t\t\t\t\tcase 'first':\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sFirst;\n\t\t\t\t\t\t\t\t\tbtnClass = button + (page > 0 ?\n\t\t\t\t\t\t\t\t\t\t'' : ' '+classes.sPageButtonDisabled);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\n\t\t\t\t\t\t\t\tcase 'previous':\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sPrevious;\n\t\t\t\t\t\t\t\t\tbtnClass = button + (page > 0 ?\n\t\t\t\t\t\t\t\t\t\t'' : ' '+classes.sPageButtonDisabled);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\n\t\t\t\t\t\t\t\tcase 'next':\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sNext;\n\t\t\t\t\t\t\t\t\tbtnClass = button + (page < pages-1 ?\n\t\t\t\t\t\t\t\t\t\t'' : ' '+classes.sPageButtonDisabled);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\n\t\t\t\t\t\t\t\tcase 'last':\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sLast;\n\t\t\t\t\t\t\t\t\tbtnClass = button + (page < pages-1 ?\n\t\t\t\t\t\t\t\t\t\t'' : ' '+classes.sPageButtonDisabled);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tbtnDisplay = button + 1;\n\t\t\t\t\t\t\t\t\tbtnClass = page === button ?\n\t\t\t\t\t\t\t\t\t\tclasses.sPageButtonActive : '';\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t\tif ( btnDisplay !== null ) {\n\t\t\t\t\t\t\t\tnode = $('<a>', {\n\t\t\t\t\t\t\t\t\t\t'class': classes.sPageButton+' '+btnClass,\n\t\t\t\t\t\t\t\t\t\t'aria-controls': settings.sTableId,\n\t\t\t\t\t\t\t\t\t\t'aria-label': aria[ button ],\n\t\t\t\t\t\t\t\t\t\t'data-dt-idx': counter,\n\t\t\t\t\t\t\t\t\t\t'tabindex': settings.iTabIndex,\n\t\t\t\t\t\t\t\t\t\t'id': idx === 0 && typeof button === 'string' ?\n\t\t\t\t\t\t\t\t\t\t\tsettings.sTableId +'_'+ button :\n\t\t\t\t\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t.html( btnDisplay )\n\t\t\t\t\t\t\t\t\t.appendTo( container );\n\t\n\t\t\t\t\t\t\t\t_fnBindAction(\n\t\t\t\t\t\t\t\t\tnode, {action: button}, clickHandler\n\t\t\t\t\t\t\t\t);\n\t\n\t\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\n\t\t\t\t// IE9 throws an 'unknown error' if document.activeElement is used\n\t\t\t\t// inside an iframe or frame. Try / catch the error. Not good for\n\t\t\t\t// accessibility, but neither are frames.\n\t\t\t\tvar activeEl;\n\t\n\t\t\t\ttry {\n\t\t\t\t\t// Because this approach is destroying and recreating the paging\n\t\t\t\t\t// elements, focus is lost on the select button which is bad for\n\t\t\t\t\t// accessibility. So we want to restore focus once the draw has\n\t\t\t\t\t// completed\n\t\t\t\t\tactiveEl = $(host).find(document.activeElement).data('dt-idx');\n\t\t\t\t}\n\t\t\t\tcatch (e) {}\n\t\n\t\t\t\tattach( $(host).empty(), buttons );\n\t\n\t\t\t\tif ( activeEl !== undefined ) {\n\t\t\t\t\t$(host).find( '[data-dt-idx='+activeEl+']' ).focus();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} );\n\t\n\t\n\t\n\t// Built in type detection. See model.ext.aTypes for information about\n\t// what is required from this methods.\n\t$.extend( DataTable.ext.type.detect, [\n\t\t// Plain numbers - first since V8 detects some plain numbers as dates\n\t\t// e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).\n\t\tfunction ( d, settings )\n\t\t{\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\n\t\t\treturn _isNumber( d, decimal ) ? 'num'+decimal : null;\n\t\t},\n\t\n\t\t// Dates (only those recognised by the browser's Date.parse)\n\t\tfunction ( d, settings )\n\t\t{\n\t\t\t// V8 tries _very_ hard to make a string passed into `Date.parse()`\n\t\t\t// valid, so we need to use a regex to restrict date formats. Use a\n\t\t\t// plug-in for anything other than ISO8601 style strings\n\t\t\tif ( d && !(d instanceof Date) && ! _re_date.test(d) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tvar parsed = Date.parse(d);\n\t\t\treturn (parsed !== null && !isNaN(parsed)) || _empty(d) ? 'date' : null;\n\t\t},\n\t\n\t\t// Formatted numbers\n\t\tfunction ( d, settings )\n\t\t{\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\n\t\t\treturn _isNumber( d, decimal, true ) ? 'num-fmt'+decimal : null;\n\t\t},\n\t\n\t\t// HTML numeric\n\t\tfunction ( d, settings )\n\t\t{\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\n\t\t\treturn _htmlNumeric( d, decimal ) ? 'html-num'+decimal : null;\n\t\t},\n\t\n\t\t// HTML numeric, formatted\n\t\tfunction ( d, settings )\n\t\t{\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\n\t\t\treturn _htmlNumeric( d, decimal, true ) ? 'html-num-fmt'+decimal : null;\n\t\t},\n\t\n\t\t// HTML (this is strict checking - there must be html)\n\t\tfunction ( d, settings )\n\t\t{\n\t\t\treturn _empty( d ) || (typeof d === 'string' && d.indexOf('<') !== -1) ?\n\t\t\t\t'html' : null;\n\t\t}\n\t] );\n\t\n\t\n\t\n\t// Filter formatting functions. See model.ext.ofnSearch for information about\n\t// what is required from these methods.\n\t// \n\t// Note that additional search methods are added for the html numbers and\n\t// html formatted numbers by `_addNumericSort()` when we know what the decimal\n\t// place is\n\t\n\t\n\t$.extend( DataTable.ext.type.search, {\n\t\thtml: function ( data ) {\n\t\t\treturn _empty(data) ?\n\t\t\t\tdata :\n\t\t\t\ttypeof data === 'string' ?\n\t\t\t\t\tdata\n\t\t\t\t\t\t.replace( _re_new_lines, \" \" )\n\t\t\t\t\t\t.replace( _re_html, \"\" ) :\n\t\t\t\t\t'';\n\t\t},\n\t\n\t\tstring: function ( data ) {\n\t\t\treturn _empty(data) ?\n\t\t\t\tdata :\n\t\t\t\ttypeof data === 'string' ?\n\t\t\t\t\tdata.replace( _re_new_lines, \" \" ) :\n\t\t\t\t\tdata;\n\t\t}\n\t} );\n\t\n\t\n\t\n\tvar __numericReplace = function ( d, decimalPlace, re1, re2 ) {\n\t\tif ( d !== 0 && (!d || d === '-') ) {\n\t\t\treturn -Infinity;\n\t\t}\n\t\n\t\t// If a decimal place other than `.` is used, it needs to be given to the\n\t\t// function so we can detect it and replace with a `.` which is the only\n\t\t// decimal place Javascript recognises - it is not locale aware.\n\t\tif ( decimalPlace ) {\n\t\t\td = _numToDecimal( d, decimalPlace );\n\t\t}\n\t\n\t\tif ( d.replace ) {\n\t\t\tif ( re1 ) {\n\t\t\t\td = d.replace( re1, '' );\n\t\t\t}\n\t\n\t\t\tif ( re2 ) {\n\t\t\t\td = d.replace( re2, '' );\n\t\t\t}\n\t\t}\n\t\n\t\treturn d * 1;\n\t};\n\t\n\t\n\t// Add the numeric 'deformatting' functions for sorting and search. This is done\n\t// in a function to provide an easy ability for the language options to add\n\t// additional methods if a non-period decimal place is used.\n\tfunction _addNumericSort ( decimalPlace ) {\n\t\t$.each(\n\t\t\t{\n\t\t\t\t// Plain numbers\n\t\t\t\t\"num\": function ( d ) {\n\t\t\t\t\treturn __numericReplace( d, decimalPlace );\n\t\t\t\t},\n\t\n\t\t\t\t// Formatted numbers\n\t\t\t\t\"num-fmt\": function ( d ) {\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_formatted_numeric );\n\t\t\t\t},\n\t\n\t\t\t\t// HTML numeric\n\t\t\t\t\"html-num\": function ( d ) {\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_html );\n\t\t\t\t},\n\t\n\t\t\t\t// HTML numeric, formatted\n\t\t\t\t\"html-num-fmt\": function ( d ) {\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );\n\t\t\t\t}\n\t\t\t},\n\t\t\tfunction ( key, fn ) {\n\t\t\t\t// Add the ordering method\n\t\t\t\t_ext.type.order[ key+decimalPlace+'-pre' ] = fn;\n\t\n\t\t\t\t// For HTML types add a search formatter that will strip the HTML\n\t\t\t\tif ( key.match(/^html\\-/) ) {\n\t\t\t\t\t_ext.type.search[ key+decimalPlace ] = _ext.type.search.html;\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}\n\t\n\t\n\t// Default sort methods\n\t$.extend( _ext.type.order, {\n\t\t// Dates\n\t\t\"date-pre\": function ( d ) {\n\t\t\tvar ts = Date.parse( d );\n\t\t\treturn isNaN(ts) ? -Infinity : ts;\n\t\t},\n\t\n\t\t// html\n\t\t\"html-pre\": function ( a ) {\n\t\t\treturn _empty(a) ?\n\t\t\t\t'' :\n\t\t\t\ta.replace ?\n\t\t\t\t\ta.replace( /<.*?>/g, \"\" ).toLowerCase() :\n\t\t\t\t\ta+'';\n\t\t},\n\t\n\t\t// string\n\t\t\"string-pre\": function ( a ) {\n\t\t\t// This is a little complex, but faster than always calling toString,\n\t\t\t// http://jsperf.com/tostring-v-check\n\t\t\treturn _empty(a) ?\n\t\t\t\t'' :\n\t\t\t\ttypeof a === 'string' ?\n\t\t\t\t\ta.toLowerCase() :\n\t\t\t\t\t! a.toString ?\n\t\t\t\t\t\t'' :\n\t\t\t\t\t\ta.toString();\n\t\t},\n\t\n\t\t// string-asc and -desc are retained only for compatibility with the old\n\t\t// sort methods\n\t\t\"string-asc\": function ( x, y ) {\n\t\t\treturn ((x < y) ? -1 : ((x > y) ? 1 : 0));\n\t\t},\n\t\n\t\t\"string-desc\": function ( x, y ) {\n\t\t\treturn ((x < y) ? 1 : ((x > y) ? -1 : 0));\n\t\t}\n\t} );\n\t\n\t\n\t// Numeric sorting types - order doesn't matter here\n\t_addNumericSort( '' );\n\t\n\t\n\t$.extend( true, DataTable.ext.renderer, {\n\t\theader: {\n\t\t\t_: function ( settings, cell, column, classes ) {\n\t\t\t\t// No additional mark-up required\n\t\t\t\t// Attach a sort listener to update on sort - note that using the\n\t\t\t\t// `DT` namespace will allow the event to be removed automatically\n\t\t\t\t// on destroy, while the `dt` namespaced event is the one we are\n\t\t\t\t// listening for\n\t\t\t\t$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {\n\t\t\t\t\tif ( settings !== ctx ) { // need to check this this is the host\n\t\t\t\t\t\treturn;               // table, not a nested one\n\t\t\t\t\t}\n\t\n\t\t\t\t\tvar colIdx = column.idx;\n\t\n\t\t\t\t\tcell\n\t\t\t\t\t\t.removeClass(\n\t\t\t\t\t\t\tcolumn.sSortingClass +' '+\n\t\t\t\t\t\t\tclasses.sSortAsc +' '+\n\t\t\t\t\t\t\tclasses.sSortDesc\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == 'asc' ?\n\t\t\t\t\t\t\tclasses.sSortAsc : columns[ colIdx ] == 'desc' ?\n\t\t\t\t\t\t\t\tclasses.sSortDesc :\n\t\t\t\t\t\t\t\tcolumn.sSortingClass\n\t\t\t\t\t\t);\n\t\t\t\t} );\n\t\t\t},\n\t\n\t\t\tjqueryui: function ( settings, cell, column, classes ) {\n\t\t\t\t$('<div/>')\n\t\t\t\t\t.addClass( classes.sSortJUIWrapper )\n\t\t\t\t\t.append( cell.contents() )\n\t\t\t\t\t.append( $('<span/>')\n\t\t\t\t\t\t.addClass( classes.sSortIcon+' '+column.sSortingClassJUI )\n\t\t\t\t\t)\n\t\t\t\t\t.appendTo( cell );\n\t\n\t\t\t\t// Attach a sort listener to update on sort\n\t\t\t\t$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {\n\t\t\t\t\tif ( settings !== ctx ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\n\t\t\t\t\tvar colIdx = column.idx;\n\t\n\t\t\t\t\tcell\n\t\t\t\t\t\t.removeClass( classes.sSortAsc +\" \"+classes.sSortDesc )\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == 'asc' ?\n\t\t\t\t\t\t\tclasses.sSortAsc : columns[ colIdx ] == 'desc' ?\n\t\t\t\t\t\t\t\tclasses.sSortDesc :\n\t\t\t\t\t\t\t\tcolumn.sSortingClass\n\t\t\t\t\t\t);\n\t\n\t\t\t\t\tcell\n\t\t\t\t\t\t.find( 'span.'+classes.sSortIcon )\n\t\t\t\t\t\t.removeClass(\n\t\t\t\t\t\t\tclasses.sSortJUIAsc +\" \"+\n\t\t\t\t\t\t\tclasses.sSortJUIDesc +\" \"+\n\t\t\t\t\t\t\tclasses.sSortJUI +\" \"+\n\t\t\t\t\t\t\tclasses.sSortJUIAscAllowed +\" \"+\n\t\t\t\t\t\t\tclasses.sSortJUIDescAllowed\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == 'asc' ?\n\t\t\t\t\t\t\tclasses.sSortJUIAsc : columns[ colIdx ] == 'desc' ?\n\t\t\t\t\t\t\t\tclasses.sSortJUIDesc :\n\t\t\t\t\t\t\t\tcolumn.sSortingClassJUI\n\t\t\t\t\t\t);\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t} );\n\t\n\t/*\n\t * Public helper functions. These aren't used internally by DataTables, or\n\t * called by any of the options passed into DataTables, but they can be used\n\t * externally by developers working with DataTables. They are helper functions\n\t * to make working with DataTables a little bit easier.\n\t */\n\t\n\tvar __htmlEscapeEntities = function ( d ) {\n\t\treturn typeof d === 'string' ?\n\t\t\td.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;') :\n\t\t\td;\n\t};\n\t\n\t/**\n\t * Helpers for `columns.render`.\n\t *\n\t * The options defined here can be used with the `columns.render` initialisation\n\t * option to provide a display renderer. The following functions are defined:\n\t *\n\t * * `number` - Will format numeric data (defined by `columns.data`) for\n\t *   display, retaining the original unformatted data for sorting and filtering.\n\t *   It takes 5 parameters:\n\t *   * `string` - Thousands grouping separator\n\t *   * `string` - Decimal point indicator\n\t *   * `integer` - Number of decimal points to show\n\t *   * `string` (optional) - Prefix.\n\t *   * `string` (optional) - Postfix (/suffix).\n\t * * `text` - Escape HTML to help prevent XSS attacks. It has no optional\n\t *   parameters.\n\t *\n\t * @example\n\t *   // Column definition using the number renderer\n\t *   {\n\t *     data: \"salary\",\n\t *     render: $.fn.dataTable.render.number( '\\'', '.', 0, '$' )\n\t *   }\n\t *\n\t * @namespace\n\t */\n\tDataTable.render = {\n\t\tnumber: function ( thousands, decimal, precision, prefix, postfix ) {\n\t\t\treturn {\n\t\t\t\tdisplay: function ( d ) {\n\t\t\t\t\tif ( typeof d !== 'number' && typeof d !== 'string' ) {\n\t\t\t\t\t\treturn d;\n\t\t\t\t\t}\n\t\n\t\t\t\t\tvar negative = d < 0 ? '-' : '';\n\t\t\t\t\tvar flo = parseFloat( d );\n\t\n\t\t\t\t\t// If NaN then there isn't much formatting that we can do - just\n\t\t\t\t\t// return immediately, escaping any HTML (this was supposed to\n\t\t\t\t\t// be a number after all)\n\t\t\t\t\tif ( isNaN( flo ) ) {\n\t\t\t\t\t\treturn __htmlEscapeEntities( d );\n\t\t\t\t\t}\n\t\n\t\t\t\t\tflo = flo.toFixed( precision );\n\t\t\t\t\td = Math.abs( flo );\n\t\n\t\t\t\t\tvar intPart = parseInt( d, 10 );\n\t\t\t\t\tvar floatPart = precision ?\n\t\t\t\t\t\tdecimal+(d - intPart).toFixed( precision ).substring( 2 ):\n\t\t\t\t\t\t'';\n\t\n\t\t\t\t\treturn negative + (prefix||'') +\n\t\t\t\t\t\tintPart.toString().replace(\n\t\t\t\t\t\t\t/\\B(?=(\\d{3})+(?!\\d))/g, thousands\n\t\t\t\t\t\t) +\n\t\t\t\t\t\tfloatPart +\n\t\t\t\t\t\t(postfix||'');\n\t\t\t\t}\n\t\t\t};\n\t\t},\n\t\n\t\ttext: function () {\n\t\t\treturn {\n\t\t\t\tdisplay: __htmlEscapeEntities\n\t\t\t};\n\t\t}\n\t};\n\t\n\t\n\t/*\n\t * This is really a good bit rubbish this method of exposing the internal methods\n\t * publicly... - To be fixed in 2.0 using methods on the prototype\n\t */\n\t\n\t\n\t/**\n\t * Create a wrapper function for exporting an internal functions to an external API.\n\t *  @param {string} fn API function name\n\t *  @returns {function} wrapped function\n\t *  @memberof DataTable#internal\n\t */\n\tfunction _fnExternApiFunc (fn)\n\t{\n\t\treturn function() {\n\t\t\tvar args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat(\n\t\t\t\tArray.prototype.slice.call(arguments)\n\t\t\t);\n\t\t\treturn DataTable.ext.internal[fn].apply( this, args );\n\t\t};\n\t}\n\t\n\t\n\t/**\n\t * Reference to internal functions for use by plug-in developers. Note that\n\t * these methods are references to internal functions and are considered to be\n\t * private. If you use these methods, be aware that they are liable to change\n\t * between versions.\n\t *  @namespace\n\t */\n\t$.extend( DataTable.ext.internal, {\n\t\t_fnExternApiFunc: _fnExternApiFunc,\n\t\t_fnBuildAjax: _fnBuildAjax,\n\t\t_fnAjaxUpdate: _fnAjaxUpdate,\n\t\t_fnAjaxParameters: _fnAjaxParameters,\n\t\t_fnAjaxUpdateDraw: _fnAjaxUpdateDraw,\n\t\t_fnAjaxDataSrc: _fnAjaxDataSrc,\n\t\t_fnAddColumn: _fnAddColumn,\n\t\t_fnColumnOptions: _fnColumnOptions,\n\t\t_fnAdjustColumnSizing: _fnAdjustColumnSizing,\n\t\t_fnVisibleToColumnIndex: _fnVisibleToColumnIndex,\n\t\t_fnColumnIndexToVisible: _fnColumnIndexToVisible,\n\t\t_fnVisbleColumns: _fnVisbleColumns,\n\t\t_fnGetColumns: _fnGetColumns,\n\t\t_fnColumnTypes: _fnColumnTypes,\n\t\t_fnApplyColumnDefs: _fnApplyColumnDefs,\n\t\t_fnHungarianMap: _fnHungarianMap,\n\t\t_fnCamelToHungarian: _fnCamelToHungarian,\n\t\t_fnLanguageCompat: _fnLanguageCompat,\n\t\t_fnBrowserDetect: _fnBrowserDetect,\n\t\t_fnAddData: _fnAddData,\n\t\t_fnAddTr: _fnAddTr,\n\t\t_fnNodeToDataIndex: _fnNodeToDataIndex,\n\t\t_fnNodeToColumnIndex: _fnNodeToColumnIndex,\n\t\t_fnGetCellData: _fnGetCellData,\n\t\t_fnSetCellData: _fnSetCellData,\n\t\t_fnSplitObjNotation: _fnSplitObjNotation,\n\t\t_fnGetObjectDataFn: _fnGetObjectDataFn,\n\t\t_fnSetObjectDataFn: _fnSetObjectDataFn,\n\t\t_fnGetDataMaster: _fnGetDataMaster,\n\t\t_fnClearTable: _fnClearTable,\n\t\t_fnDeleteIndex: _fnDeleteIndex,\n\t\t_fnInvalidate: _fnInvalidate,\n\t\t_fnGetRowElements: _fnGetRowElements,\n\t\t_fnCreateTr: _fnCreateTr,\n\t\t_fnBuildHead: _fnBuildHead,\n\t\t_fnDrawHead: _fnDrawHead,\n\t\t_fnDraw: _fnDraw,\n\t\t_fnReDraw: _fnReDraw,\n\t\t_fnAddOptionsHtml: _fnAddOptionsHtml,\n\t\t_fnDetectHeader: _fnDetectHeader,\n\t\t_fnGetUniqueThs: _fnGetUniqueThs,\n\t\t_fnFeatureHtmlFilter: _fnFeatureHtmlFilter,\n\t\t_fnFilterComplete: _fnFilterComplete,\n\t\t_fnFilterCustom: _fnFilterCustom,\n\t\t_fnFilterColumn: _fnFilterColumn,\n\t\t_fnFilter: _fnFilter,\n\t\t_fnFilterCreateSearch: _fnFilterCreateSearch,\n\t\t_fnEscapeRegex: _fnEscapeRegex,\n\t\t_fnFilterData: _fnFilterData,\n\t\t_fnFeatureHtmlInfo: _fnFeatureHtmlInfo,\n\t\t_fnUpdateInfo: _fnUpdateInfo,\n\t\t_fnInfoMacros: _fnInfoMacros,\n\t\t_fnInitialise: _fnInitialise,\n\t\t_fnInitComplete: _fnInitComplete,\n\t\t_fnLengthChange: _fnLengthChange,\n\t\t_fnFeatureHtmlLength: _fnFeatureHtmlLength,\n\t\t_fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate,\n\t\t_fnPageChange: _fnPageChange,\n\t\t_fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing,\n\t\t_fnProcessingDisplay: _fnProcessingDisplay,\n\t\t_fnFeatureHtmlTable: _fnFeatureHtmlTable,\n\t\t_fnScrollDraw: _fnScrollDraw,\n\t\t_fnApplyToChildren: _fnApplyToChildren,\n\t\t_fnCalculateColumnWidths: _fnCalculateColumnWidths,\n\t\t_fnThrottle: _fnThrottle,\n\t\t_fnConvertToWidth: _fnConvertToWidth,\n\t\t_fnGetWidestNode: _fnGetWidestNode,\n\t\t_fnGetMaxLenString: _fnGetMaxLenString,\n\t\t_fnStringToCss: _fnStringToCss,\n\t\t_fnSortFlatten: _fnSortFlatten,\n\t\t_fnSort: _fnSort,\n\t\t_fnSortAria: _fnSortAria,\n\t\t_fnSortListener: _fnSortListener,\n\t\t_fnSortAttachListener: _fnSortAttachListener,\n\t\t_fnSortingClasses: _fnSortingClasses,\n\t\t_fnSortData: _fnSortData,\n\t\t_fnSaveState: _fnSaveState,\n\t\t_fnLoadState: _fnLoadState,\n\t\t_fnSettingsFromNode: _fnSettingsFromNode,\n\t\t_fnLog: _fnLog,\n\t\t_fnMap: _fnMap,\n\t\t_fnBindAction: _fnBindAction,\n\t\t_fnCallbackReg: _fnCallbackReg,\n\t\t_fnCallbackFire: _fnCallbackFire,\n\t\t_fnLengthOverflow: _fnLengthOverflow,\n\t\t_fnRenderer: _fnRenderer,\n\t\t_fnDataSource: _fnDataSource,\n\t\t_fnRowAttributes: _fnRowAttributes,\n\t\t_fnExtend: _fnExtend,\n\t\t_fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant\n\t\t                                // in 1.10, so this dead-end function is\n\t\t                                // added to prevent errors\n\t} );\n\t\n\n\t// jQuery access\n\t$.fn.dataTable = DataTable;\n\n\t// Provide access to the host jQuery object (circular reference)\n\tDataTable.$ = $;\n\n\t// Legacy aliases\n\t$.fn.dataTableSettings = DataTable.settings;\n\t$.fn.dataTableExt = DataTable.ext;\n\n\t// With a capital `D` we return a DataTables API instance rather than a\n\t// jQuery object\n\t$.fn.DataTable = function ( opts ) {\n\t\treturn $(this).dataTable( opts ).api();\n\t};\n\n\t// All properties that are available to $.fn.dataTable should also be\n\t// available on $.fn.DataTable\n\t$.each( DataTable, function ( prop, val ) {\n\t\t$.fn.DataTable[ prop ] = val;\n\t} );\n\n\n\t// Information about events fired by DataTables - for documentation.\n\t/**\n\t * Draw event, fired whenever the table is redrawn on the page, at the same\n\t * point as fnDrawCallback. This may be useful for binding events or\n\t * performing calculations when the table is altered at all.\n\t *  @name DataTable#draw.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\n\t */\n\n\t/**\n\t * Search event, fired when the searching applied to the table (using the\n\t * built-in global search, or column filters) is altered.\n\t *  @name DataTable#search.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\n\t */\n\n\t/**\n\t * Page change event, fired when the paging of the table is altered.\n\t *  @name DataTable#page.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\n\t */\n\n\t/**\n\t * Order event, fired when the ordering applied to the table is altered.\n\t *  @name DataTable#order.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\n\t */\n\n\t/**\n\t * DataTables initialisation complete event, fired when the table is fully\n\t * drawn, including Ajax data loaded, if Ajax data is required.\n\t *  @name DataTable#init.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} oSettings DataTables settings object\n\t *  @param {object} json The JSON object request from the server - only\n\t *    present if client-side Ajax sourced data is used</li></ol>\n\t */\n\n\t/**\n\t * State save event, fired when the table has changed state a new state save\n\t * is required. This event allows modification of the state saving object\n\t * prior to actually doing the save, including addition or other state\n\t * properties (for plug-ins) or modification of a DataTables core property.\n\t *  @name DataTable#stateSaveParams.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} oSettings DataTables settings object\n\t *  @param {object} json The state information to be saved\n\t */\n\n\t/**\n\t * State load event, fired when the table is loading state from the stored\n\t * data, but prior to the settings object being modified by the saved state\n\t * - allowing modification of the saved state is required or loading of\n\t * state for a plug-in.\n\t *  @name DataTable#stateLoadParams.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} oSettings DataTables settings object\n\t *  @param {object} json The saved state information\n\t */\n\n\t/**\n\t * State loaded event, fired when state has been loaded from stored data and\n\t * the settings object has been modified by the loaded data.\n\t *  @name DataTable#stateLoaded.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} oSettings DataTables settings object\n\t *  @param {object} json The saved state information\n\t */\n\n\t/**\n\t * Processing event, fired when DataTables is doing some kind of processing\n\t * (be it, order, searcg or anything else). It can be used to indicate to\n\t * the end user that there is something happening, or that something has\n\t * finished.\n\t *  @name DataTable#processing.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} oSettings DataTables settings object\n\t *  @param {boolean} bShow Flag for if DataTables is doing processing or not\n\t */\n\n\t/**\n\t * Ajax (XHR) event, fired whenever an Ajax request is completed from a\n\t * request to made to the server for new data. This event is called before\n\t * DataTables processed the returned data, so it can also be used to pre-\n\t * process the data returned from the server, if needed.\n\t *\n\t * Note that this trigger is called in `fnServerData`, if you override\n\t * `fnServerData` and which to use this event, you need to trigger it in you\n\t * success function.\n\t *  @name DataTable#xhr.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\n\t *  @param {object} json JSON returned from the server\n\t *\n\t *  @example\n\t *     // Use a custom property returned from the server in another DOM element\n\t *     $('#table').dataTable().on('xhr.dt', function (e, settings, json) {\n\t *       $('#status').html( json.status );\n\t *     } );\n\t *\n\t *  @example\n\t *     // Pre-process the data returned from the server\n\t *     $('#table').dataTable().on('xhr.dt', function (e, settings, json) {\n\t *       for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) {\n\t *         json.aaData[i].sum = json.aaData[i].one + json.aaData[i].two;\n\t *       }\n\t *       // Note no return - manipulate the data directly in the JSON object.\n\t *     } );\n\t */\n\n\t/**\n\t * Destroy event, fired when the DataTable is destroyed by calling fnDestroy\n\t * or passing the bDestroy:true parameter in the initialisation object. This\n\t * can be used to remove bound events, added DOM nodes, etc.\n\t *  @name DataTable#destroy.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\n\t */\n\n\t/**\n\t * Page length change event, fired when number of records to show on each\n\t * page (the length) is changed.\n\t *  @name DataTable#length.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\n\t *  @param {integer} len New length\n\t */\n\n\t/**\n\t * Column sizing has changed.\n\t *  @name DataTable#column-sizing.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\n\t */\n\n\t/**\n\t * Column visibility has changed.\n\t *  @name DataTable#column-visibility.dt\n\t *  @event\n\t *  @param {event} e jQuery event object\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\n\t *  @param {int} column Column index\n\t *  @param {bool} vis `false` if column now hidden, or `true` if visible\n\t */\n\n\treturn $.fn.dataTable;\n}));\n\n\n/*! DataTables Bootstrap 4 integration\n * ©2011-2017 SpryMedia Ltd - datatables.net/license\n */\n\n/**\n * DataTables integration for Bootstrap 4. This requires Bootstrap 4 and\n * DataTables 1.10 or newer.\n *\n * This file sets the defaults and adds options to DataTables to style its\n * controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap\n * for further information.\n */\n(function( factory ){\n\tif ( typeof define === 'function' && define.amd ) {\n\t\t// AMD\n\t\tdefine( ['jquery', 'datatables.net'], function ( $ ) {\n\t\t\treturn factory( $, window, document );\n\t\t} );\n\t}\n\telse if ( typeof exports === 'object' ) {\n\t\t// CommonJS\n\t\tmodule.exports = function (root, $) {\n\t\t\tif ( ! root ) {\n\t\t\t\troot = window;\n\t\t\t}\n\n\t\t\tif ( ! $ || ! $.fn.dataTable ) {\n\t\t\t\t// Require DataTables, which attaches to jQuery, including\n\t\t\t\t// jQuery if needed and have a $ property so we can access the\n\t\t\t\t// jQuery object that is used\n\t\t\t\t$ = require('datatables.net')(root, $).$;\n\t\t\t}\n\n\t\t\treturn factory( $, root, root.document );\n\t\t};\n\t}\n\telse {\n\t\t// Browser\n\t\tfactory( jQuery, window, document );\n\t}\n}(function( $, window, document, undefined ) {\n'use strict';\nvar DataTable = $.fn.dataTable;\n\n\n/* Set the defaults for DataTables initialisation */\n$.extend( true, DataTable.defaults, {\n\tdom:\n\t\t\"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>\" +\n\t\t\"<'row'<'col-sm-12'tr>>\" +\n\t\t\"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>\",\n\trenderer: 'bootstrap'\n} );\n\n\n/* Default class modification */\n$.extend( DataTable.ext.classes, {\n\tsWrapper:      \"dataTables_wrapper dt-bootstrap4\",\n\tsFilterInput:  \"form-control form-control-sm\",\n\tsLengthSelect: \"custom-select custom-select-sm form-control form-control-sm\",\n\tsProcessing:   \"dataTables_processing card\",\n\tsPageButton:   \"paginate_button page-item\"\n} );\n\n\n/* Bootstrap paging button renderer */\nDataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, buttons, page, pages ) {\n\tvar api     = new DataTable.Api( settings );\n\tvar classes = settings.oClasses;\n\tvar lang    = settings.oLanguage.oPaginate;\n\tvar aria = settings.oLanguage.oAria.paginate || {};\n\tvar btnDisplay, btnClass, counter=0;\n\n\tvar attach = function( container, buttons ) {\n\t\tvar i, ien, node, button;\n\t\tvar clickHandler = function ( e ) {\n\t\t\te.preventDefault();\n\t\t\tif ( !$(e.currentTarget).hasClass('disabled') && api.page() != e.data.action ) {\n\t\t\t\tapi.page( e.data.action ).draw( 'page' );\n\t\t\t}\n\t\t};\n\n\t\tfor ( i=0, ien=buttons.length ; i<ien ; i++ ) {\n\t\t\tbutton = buttons[i];\n\n\t\t\tif ( $.isArray( button ) ) {\n\t\t\t\tattach( container, button );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbtnDisplay = '';\n\t\t\t\tbtnClass = '';\n\n\t\t\t\tswitch ( button ) {\n\t\t\t\t\tcase 'ellipsis':\n\t\t\t\t\t\tbtnDisplay = '&#x2026;';\n\t\t\t\t\t\tbtnClass = 'disabled';\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'first':\n\t\t\t\t\t\tbtnDisplay = lang.sFirst;\n\t\t\t\t\t\tbtnClass = button + (page > 0 ?\n\t\t\t\t\t\t\t'' : ' disabled');\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'previous':\n\t\t\t\t\t\tbtnDisplay = lang.sPrevious;\n\t\t\t\t\t\tbtnClass = button + (page > 0 ?\n\t\t\t\t\t\t\t'' : ' disabled');\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'next':\n\t\t\t\t\t\tbtnDisplay = lang.sNext;\n\t\t\t\t\t\tbtnClass = button + (page < pages-1 ?\n\t\t\t\t\t\t\t'' : ' disabled');\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'last':\n\t\t\t\t\t\tbtnDisplay = lang.sLast;\n\t\t\t\t\t\tbtnClass = button + (page < pages-1 ?\n\t\t\t\t\t\t\t'' : ' disabled');\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbtnDisplay = button + 1;\n\t\t\t\t\t\tbtnClass = page === button ?\n\t\t\t\t\t\t\t'active' : '';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ( btnDisplay ) {\n\t\t\t\t\tnode = $('<li>', {\n\t\t\t\t\t\t\t'class': classes.sPageButton+' '+btnClass,\n\t\t\t\t\t\t\t'id': idx === 0 && typeof button === 'string' ?\n\t\t\t\t\t\t\t\tsettings.sTableId +'_'+ button :\n\t\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t} )\n\t\t\t\t\t\t.append( $('<a>', {\n\t\t\t\t\t\t\t\t'href': '#',\n\t\t\t\t\t\t\t\t'aria-controls': settings.sTableId,\n\t\t\t\t\t\t\t\t'aria-label': aria[ button ],\n\t\t\t\t\t\t\t\t'data-dt-idx': counter,\n\t\t\t\t\t\t\t\t'tabindex': settings.iTabIndex,\n\t\t\t\t\t\t\t\t'class': 'page-link'\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t.html( btnDisplay )\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.appendTo( container );\n\n\t\t\t\t\tsettings.oApi._fnBindAction(\n\t\t\t\t\t\tnode, {action: button}, clickHandler\n\t\t\t\t\t);\n\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\t// IE9 throws an 'unknown error' if document.activeElement is used\n\t// inside an iframe or frame. \n\tvar activeEl;\n\n\ttry {\n\t\t// Because this approach is destroying and recreating the paging\n\t\t// elements, focus is lost on the select button which is bad for\n\t\t// accessibility. So we want to restore focus once the draw has\n\t\t// completed\n\t\tactiveEl = $(host).find(document.activeElement).data('dt-idx');\n\t}\n\tcatch (e) {}\n\n\tattach(\n\t\t$(host).empty().html('<ul class=\"pagination\"/>').children('ul'),\n\t\tbuttons\n\t);\n\n\tif ( activeEl !== undefined ) {\n\t\t$(host).find( '[data-dt-idx='+activeEl+']' ).focus();\n\t}\n};\n\n\nreturn DataTable;\n}));\n\n\n"
  },
  {
    "path": "student/content/mdb/js/bootstrap.js",
    "content": "/*!\n  * Bootstrap v4.2.1 (https://getbootstrap.com/)\n  * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)\n  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n  */\n (function (global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('popper.js'), require('jquery')) :\n  typeof define === 'function' && define.amd ? define(['exports', 'popper.js', 'jquery'], factory) :\n  (factory((global.bootstrap = {}),global.Popper,global.jQuery));\n}(this, (function (exports,Popper,$) { 'use strict';\n\n  Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;\n  $ = $ && $.hasOwnProperty('default') ? $['default'] : $;\n\n  function _defineProperties(target, props) {\n    for (var i = 0; i < props.length; i++) {\n      var descriptor = props[i];\n      descriptor.enumerable = descriptor.enumerable || false;\n      descriptor.configurable = true;\n      if (\"value\" in descriptor) descriptor.writable = true;\n      Object.defineProperty(target, descriptor.key, descriptor);\n    }\n  }\n\n  function _createClass(Constructor, protoProps, staticProps) {\n    if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n    if (staticProps) _defineProperties(Constructor, staticProps);\n    return Constructor;\n  }\n\n  function _defineProperty(obj, key, value) {\n    if (key in obj) {\n      Object.defineProperty(obj, key, {\n        value: value,\n        enumerable: true,\n        configurable: true,\n        writable: true\n      });\n    } else {\n      obj[key] = value;\n    }\n\n    return obj;\n  }\n\n  function _objectSpread(target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i] != null ? arguments[i] : {};\n      var ownKeys = Object.keys(source);\n\n      if (typeof Object.getOwnPropertySymbols === 'function') {\n        ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n          return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n        }));\n      }\n\n      ownKeys.forEach(function (key) {\n        _defineProperty(target, key, source[key]);\n      });\n    }\n\n    return target;\n  }\n\n  function _inheritsLoose(subClass, superClass) {\n    subClass.prototype = Object.create(superClass.prototype);\n    subClass.prototype.constructor = subClass;\n    subClass.__proto__ = superClass;\n  }\n\n  /**\n   * --------------------------------------------------------------------------\n   * Bootstrap (v4.2.1): util.js\n   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n   * --------------------------------------------------------------------------\n   */\n  /**\n   * ------------------------------------------------------------------------\n   * Private TransitionEnd Helpers\n   * ------------------------------------------------------------------------\n   */\n\n  var TRANSITION_END = 'transitionend';\n  var MAX_UID = 1000000;\n  var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)\n\n  function toType(obj) {\n    return {}.toString.call(obj).match(/\\s([a-z]+)/i)[1].toLowerCase();\n  }\n\n  function getSpecialTransitionEndEvent() {\n    return {\n      bindType: TRANSITION_END,\n      delegateType: TRANSITION_END,\n      handle: function handle(event) {\n        if ($(event.target).is(this)) {\n          return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params\n        }\n\n        return undefined; // eslint-disable-line no-undefined\n      }\n    };\n  }\n\n  function transitionEndEmulator(duration) {\n    var _this = this;\n\n    var called = false;\n    $(this).one(Util.TRANSITION_END, function () {\n      called = true;\n    });\n    setTimeout(function () {\n      if (!called) {\n        Util.triggerTransitionEnd(_this);\n      }\n    }, duration);\n    return this;\n  }\n\n  function setTransitionEndSupport() {\n    $.fn.emulateTransitionEnd = transitionEndEmulator;\n    $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();\n  }\n  /**\n   * --------------------------------------------------------------------------\n   * Public Util Api\n   * --------------------------------------------------------------------------\n   */\n\n\n  var Util = {\n    TRANSITION_END: 'bsTransitionEnd',\n    getUID: function getUID(prefix) {\n      do {\n        // eslint-disable-next-line no-bitwise\n        prefix += ~~(Math.random() * MAX_UID); // \"~~\" acts like a faster Math.floor() here\n      } while (document.getElementById(prefix));\n\n      return prefix;\n    },\n    getSelectorFromElement: function getSelectorFromElement(element) {\n      var selector = element.getAttribute('data-target');\n\n      if (!selector || selector === '#') {\n        var hrefAttr = element.getAttribute('href');\n        selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';\n      }\n\n      return selector && document.querySelector(selector) ? selector : null;\n    },\n    getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {\n      if (!element) {\n        return 0;\n      } // Get transition-duration of the element\n\n\n      var transitionDuration = $(element).css('transition-duration');\n      var transitionDelay = $(element).css('transition-delay');\n      var floatTransitionDuration = parseFloat(transitionDuration);\n      var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found\n\n      if (!floatTransitionDuration && !floatTransitionDelay) {\n        return 0;\n      } // If multiple durations are defined, take the first\n\n\n      transitionDuration = transitionDuration.split(',')[0];\n      transitionDelay = transitionDelay.split(',')[0];\n      return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;\n    },\n    reflow: function reflow(element) {\n      return element.offsetHeight;\n    },\n    triggerTransitionEnd: function triggerTransitionEnd(element) {\n      $(element).trigger(TRANSITION_END);\n    },\n    // TODO: Remove in v5\n    supportsTransitionEnd: function supportsTransitionEnd() {\n      return Boolean(TRANSITION_END);\n    },\n    isElement: function isElement(obj) {\n      return (obj[0] || obj).nodeType;\n    },\n    typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {\n      for (var property in configTypes) {\n        if (Object.prototype.hasOwnProperty.call(configTypes, property)) {\n          var expectedTypes = configTypes[property];\n          var value = config[property];\n          var valueType = value && Util.isElement(value) ? 'element' : toType(value);\n\n          if (!new RegExp(expectedTypes).test(valueType)) {\n            throw new Error(componentName.toUpperCase() + \": \" + (\"Option \\\"\" + property + \"\\\" provided type \\\"\" + valueType + \"\\\" \") + (\"but expected type \\\"\" + expectedTypes + \"\\\".\"));\n          }\n        }\n      }\n    },\n    findShadowRoot: function findShadowRoot(element) {\n      if (!document.documentElement.attachShadow) {\n        return null;\n      } // Can find the shadow root otherwise it'll return the document\n\n\n      if (typeof element.getRootNode === 'function') {\n        var root = element.getRootNode();\n        return root instanceof ShadowRoot ? root : null;\n      }\n\n      if (element instanceof ShadowRoot) {\n        return element;\n      } // when we don't find a shadow root\n\n\n      if (!element.parentNode) {\n        return null;\n      }\n\n      return Util.findShadowRoot(element.parentNode);\n    }\n  };\n  setTransitionEndSupport();\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME = 'alert';\n  var VERSION = '4.2.1';\n  var DATA_KEY = 'bs.alert';\n  var EVENT_KEY = \".\" + DATA_KEY;\n  var DATA_API_KEY = '.data-api';\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\n  var Selector = {\n    DISMISS: '[data-dismiss=\"alert\"]'\n  };\n  var Event = {\n    CLOSE: \"close\" + EVENT_KEY,\n    CLOSED: \"closed\" + EVENT_KEY,\n    CLICK_DATA_API: \"click\" + EVENT_KEY + DATA_API_KEY\n  };\n  var ClassName = {\n    ALERT: 'alert',\n    FADE: 'fade',\n    SHOW: 'show'\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Alert =\n  /*#__PURE__*/\n  function () {\n    function Alert(element) {\n      this._element = element;\n    } // Getters\n\n\n    var _proto = Alert.prototype;\n\n    // Public\n    _proto.close = function close(element) {\n      var rootElement = this._element;\n\n      if (element) {\n        rootElement = this._getRootElement(element);\n      }\n\n      var customEvent = this._triggerCloseEvent(rootElement);\n\n      if (customEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      this._removeElement(rootElement);\n    };\n\n    _proto.dispose = function dispose() {\n      $.removeData(this._element, DATA_KEY);\n      this._element = null;\n    }; // Private\n\n\n    _proto._getRootElement = function _getRootElement(element) {\n      var selector = Util.getSelectorFromElement(element);\n      var parent = false;\n\n      if (selector) {\n        parent = document.querySelector(selector);\n      }\n\n      if (!parent) {\n        parent = $(element).closest(\".\" + ClassName.ALERT)[0];\n      }\n\n      return parent;\n    };\n\n    _proto._triggerCloseEvent = function _triggerCloseEvent(element) {\n      var closeEvent = $.Event(Event.CLOSE);\n      $(element).trigger(closeEvent);\n      return closeEvent;\n    };\n\n    _proto._removeElement = function _removeElement(element) {\n      var _this = this;\n\n      $(element).removeClass(ClassName.SHOW);\n\n      if (!$(element).hasClass(ClassName.FADE)) {\n        this._destroyElement(element);\n\n        return;\n      }\n\n      var transitionDuration = Util.getTransitionDurationFromElement(element);\n      $(element).one(Util.TRANSITION_END, function (event) {\n        return _this._destroyElement(element, event);\n      }).emulateTransitionEnd(transitionDuration);\n    };\n\n    _proto._destroyElement = function _destroyElement(element) {\n      $(element).detach().trigger(Event.CLOSED).remove();\n    }; // Static\n\n\n    Alert._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var $element = $(this);\n        var data = $element.data(DATA_KEY);\n\n        if (!data) {\n          data = new Alert(this);\n          $element.data(DATA_KEY, data);\n        }\n\n        if (config === 'close') {\n          data[config](this);\n        }\n      });\n    };\n\n    Alert._handleDismiss = function _handleDismiss(alertInstance) {\n      return function (event) {\n        if (event) {\n          event.preventDefault();\n        }\n\n        alertInstance.close(this);\n      };\n    };\n\n    _createClass(Alert, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION;\n      }\n    }]);\n\n    return Alert;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * Data Api implementation\n   * ------------------------------------------------------------------------\n   */\n\n\n  $(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n  $.fn[NAME] = Alert._jQueryInterface;\n  $.fn[NAME].Constructor = Alert;\n\n  $.fn[NAME].noConflict = function () {\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\n    return Alert._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$1 = 'button';\n  var VERSION$1 = '4.2.1';\n  var DATA_KEY$1 = 'bs.button';\n  var EVENT_KEY$1 = \".\" + DATA_KEY$1;\n  var DATA_API_KEY$1 = '.data-api';\n  var JQUERY_NO_CONFLICT$1 = $.fn[NAME$1];\n  var ClassName$1 = {\n    ACTIVE: 'active',\n    BUTTON: 'btn',\n    FOCUS: 'focus'\n  };\n  var Selector$1 = {\n    DATA_TOGGLE_CARROT: '[data-toggle^=\"button\"]',\n    DATA_TOGGLE: '[data-toggle=\"buttons\"]',\n    INPUT: 'input:not([type=\"hidden\"])',\n    ACTIVE: '.active',\n    BUTTON: '.btn'\n  };\n  var Event$1 = {\n    CLICK_DATA_API: \"click\" + EVENT_KEY$1 + DATA_API_KEY$1,\n    FOCUS_BLUR_DATA_API: \"focus\" + EVENT_KEY$1 + DATA_API_KEY$1 + \" \" + (\"blur\" + EVENT_KEY$1 + DATA_API_KEY$1)\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Button =\n  /*#__PURE__*/\n  function () {\n    function Button(element) {\n      this._element = element;\n    } // Getters\n\n\n    var _proto = Button.prototype;\n\n    // Public\n    _proto.toggle = function toggle() {\n      var triggerChangeEvent = true;\n      var addAriaPressed = true;\n      var rootElement = $(this._element).closest(Selector$1.DATA_TOGGLE)[0];\n\n      if (rootElement) {\n        var input = this._element.querySelector(Selector$1.INPUT);\n\n        if (input) {\n          if (input.type === 'radio') {\n            if (input.checked && this._element.classList.contains(ClassName$1.ACTIVE)) {\n              triggerChangeEvent = false;\n            } else {\n              var activeElement = rootElement.querySelector(Selector$1.ACTIVE);\n\n              if (activeElement) {\n                $(activeElement).removeClass(ClassName$1.ACTIVE);\n              }\n            }\n          }\n\n          if (triggerChangeEvent) {\n            if (input.hasAttribute('disabled') || rootElement.hasAttribute('disabled') || input.classList.contains('disabled') || rootElement.classList.contains('disabled')) {\n              return;\n            }\n\n            input.checked = !this._element.classList.contains(ClassName$1.ACTIVE);\n            $(input).trigger('change');\n          }\n\n          input.focus();\n          addAriaPressed = false;\n        }\n      }\n\n      if (addAriaPressed) {\n        this._element.setAttribute('aria-pressed', !this._element.classList.contains(ClassName$1.ACTIVE));\n      }\n\n      if (triggerChangeEvent) {\n        $(this._element).toggleClass(ClassName$1.ACTIVE);\n      }\n    };\n\n    _proto.dispose = function dispose() {\n      $.removeData(this._element, DATA_KEY$1);\n      this._element = null;\n    }; // Static\n\n\n    Button._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var data = $(this).data(DATA_KEY$1);\n\n        if (!data) {\n          data = new Button(this);\n          $(this).data(DATA_KEY$1, data);\n        }\n\n        if (config === 'toggle') {\n          data[config]();\n        }\n      });\n    };\n\n    _createClass(Button, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION$1;\n      }\n    }]);\n\n    return Button;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * Data Api implementation\n   * ------------------------------------------------------------------------\n   */\n\n\n  $(document).on(Event$1.CLICK_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function (event) {\n    event.preventDefault();\n    var button = event.target;\n\n    if (!$(button).hasClass(ClassName$1.BUTTON)) {\n      button = $(button).closest(Selector$1.BUTTON);\n    }\n\n    Button._jQueryInterface.call($(button), 'toggle');\n  }).on(Event$1.FOCUS_BLUR_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function (event) {\n    var button = $(event.target).closest(Selector$1.BUTTON)[0];\n    $(button).toggleClass(ClassName$1.FOCUS, /^focus(in)?$/.test(event.type));\n  });\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n  $.fn[NAME$1] = Button._jQueryInterface;\n  $.fn[NAME$1].Constructor = Button;\n\n  $.fn[NAME$1].noConflict = function () {\n    $.fn[NAME$1] = JQUERY_NO_CONFLICT$1;\n    return Button._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$2 = 'carousel';\n  var VERSION$2 = '4.2.1';\n  var DATA_KEY$2 = 'bs.carousel';\n  var EVENT_KEY$2 = \".\" + DATA_KEY$2;\n  var DATA_API_KEY$2 = '.data-api';\n  var JQUERY_NO_CONFLICT$2 = $.fn[NAME$2];\n  var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key\n\n  var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key\n\n  var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch\n\n  var SWIPE_THRESHOLD = 40;\n  var Default = {\n    interval: 5000,\n    keyboard: true,\n    slide: false,\n    pause: 'hover',\n    wrap: true,\n    touch: true\n  };\n  var DefaultType = {\n    interval: '(number|boolean)',\n    keyboard: 'boolean',\n    slide: '(boolean|string)',\n    pause: '(string|boolean)',\n    wrap: 'boolean',\n    touch: 'boolean'\n  };\n  var Direction = {\n    NEXT: 'next',\n    PREV: 'prev',\n    LEFT: 'left',\n    RIGHT: 'right'\n  };\n  var Event$2 = {\n    SLIDE: \"slide\" + EVENT_KEY$2,\n    SLID: \"slid\" + EVENT_KEY$2,\n    KEYDOWN: \"keydown\" + EVENT_KEY$2,\n    MOUSEENTER: \"mouseenter\" + EVENT_KEY$2,\n    MOUSELEAVE: \"mouseleave\" + EVENT_KEY$2,\n    TOUCHSTART: \"touchstart\" + EVENT_KEY$2,\n    TOUCHMOVE: \"touchmove\" + EVENT_KEY$2,\n    TOUCHEND: \"touchend\" + EVENT_KEY$2,\n    POINTERDOWN: \"pointerdown\" + EVENT_KEY$2,\n    POINTERUP: \"pointerup\" + EVENT_KEY$2,\n    DRAG_START: \"dragstart\" + EVENT_KEY$2,\n    LOAD_DATA_API: \"load\" + EVENT_KEY$2 + DATA_API_KEY$2,\n    CLICK_DATA_API: \"click\" + EVENT_KEY$2 + DATA_API_KEY$2\n  };\n  var ClassName$2 = {\n    CAROUSEL: 'carousel',\n    ACTIVE: 'active',\n    SLIDE: 'slide',\n    RIGHT: 'carousel-item-right',\n    LEFT: 'carousel-item-left',\n    NEXT: 'carousel-item-next',\n    PREV: 'carousel-item-prev',\n    ITEM: 'carousel-item',\n    POINTER_EVENT: 'pointer-event'\n  };\n  var Selector$2 = {\n    ACTIVE: '.active',\n    ACTIVE_ITEM: '.active.carousel-item',\n    ITEM: '.carousel-item',\n    ITEM_IMG: '.carousel-item img',\n    NEXT_PREV: '.carousel-item-next, .carousel-item-prev',\n    INDICATORS: '.carousel-indicators',\n    DATA_SLIDE: '[data-slide], [data-slide-to]',\n    DATA_RIDE: '[data-ride=\"carousel\"]'\n  };\n  var PointerType = {\n    TOUCH: 'touch',\n    PEN: 'pen'\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Carousel =\n  /*#__PURE__*/\n  function () {\n    function Carousel(element, config) {\n      this._items = null;\n      this._interval = null;\n      this._activeElement = null;\n      this._isPaused = false;\n      this._isSliding = false;\n      this.touchTimeout = null;\n      this.touchStartX = 0;\n      this.touchDeltaX = 0;\n      this._config = this._getConfig(config);\n      this._element = element;\n      this._indicatorsElement = this._element.querySelector(Selector$2.INDICATORS);\n      this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;\n      this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent);\n\n      this._addEventListeners();\n    } // Getters\n\n\n    var _proto = Carousel.prototype;\n\n    // Public\n    _proto.next = function next() {\n      if (!this._isSliding) {\n        this._slide(Direction.NEXT);\n      }\n    };\n\n    _proto.nextWhenVisible = function nextWhenVisible() {\n      // Don't call next when the page isn't visible\n      // or the carousel or its parent isn't visible\n      if (!document.hidden && $(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden') {\n        this.next();\n      }\n    };\n\n    _proto.prev = function prev() {\n      if (!this._isSliding) {\n        this._slide(Direction.PREV);\n      }\n    };\n\n    _proto.pause = function pause(event) {\n      if (!event) {\n        this._isPaused = true;\n      }\n\n      if (this._element.querySelector(Selector$2.NEXT_PREV)) {\n        Util.triggerTransitionEnd(this._element);\n        this.cycle(true);\n      }\n\n      clearInterval(this._interval);\n      this._interval = null;\n    };\n\n    _proto.cycle = function cycle(event) {\n      if (!event) {\n        this._isPaused = false;\n      }\n\n      if (this._interval) {\n        clearInterval(this._interval);\n        this._interval = null;\n      }\n\n      if (this._config.interval && !this._isPaused) {\n        this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);\n      }\n    };\n\n    _proto.to = function to(index) {\n      var _this = this;\n\n      this._activeElement = this._element.querySelector(Selector$2.ACTIVE_ITEM);\n\n      var activeIndex = this._getItemIndex(this._activeElement);\n\n      if (index > this._items.length - 1 || index < 0) {\n        return;\n      }\n\n      if (this._isSliding) {\n        $(this._element).one(Event$2.SLID, function () {\n          return _this.to(index);\n        });\n        return;\n      }\n\n      if (activeIndex === index) {\n        this.pause();\n        this.cycle();\n        return;\n      }\n\n      var direction = index > activeIndex ? Direction.NEXT : Direction.PREV;\n\n      this._slide(direction, this._items[index]);\n    };\n\n    _proto.dispose = function dispose() {\n      $(this._element).off(EVENT_KEY$2);\n      $.removeData(this._element, DATA_KEY$2);\n      this._items = null;\n      this._config = null;\n      this._element = null;\n      this._interval = null;\n      this._isPaused = null;\n      this._isSliding = null;\n      this._activeElement = null;\n      this._indicatorsElement = null;\n    }; // Private\n\n\n    _proto._getConfig = function _getConfig(config) {\n      config = _objectSpread({}, Default, config);\n      Util.typeCheckConfig(NAME$2, config, DefaultType);\n      return config;\n    };\n\n    _proto._handleSwipe = function _handleSwipe() {\n      var absDeltax = Math.abs(this.touchDeltaX);\n\n      if (absDeltax <= SWIPE_THRESHOLD) {\n        return;\n      }\n\n      var direction = absDeltax / this.touchDeltaX; // swipe left\n\n      if (direction > 0) {\n        this.prev();\n      } // swipe right\n\n\n      if (direction < 0) {\n        this.next();\n      }\n    };\n\n    _proto._addEventListeners = function _addEventListeners() {\n      var _this2 = this;\n\n      if (this._config.keyboard) {\n        $(this._element).on(Event$2.KEYDOWN, function (event) {\n          return _this2._keydown(event);\n        });\n      }\n\n      if (this._config.pause === 'hover') {\n        $(this._element).on(Event$2.MOUSEENTER, function (event) {\n          return _this2.pause(event);\n        }).on(Event$2.MOUSELEAVE, function (event) {\n          return _this2.cycle(event);\n        });\n      }\n\n      this._addTouchEventListeners();\n    };\n\n    _proto._addTouchEventListeners = function _addTouchEventListeners() {\n      var _this3 = this;\n\n      if (!this._touchSupported) {\n        return;\n      }\n\n      var start = function start(event) {\n        if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {\n          _this3.touchStartX = event.originalEvent.clientX;\n        } else if (!_this3._pointerEvent) {\n          _this3.touchStartX = event.originalEvent.touches[0].clientX;\n        }\n      };\n\n      var move = function move(event) {\n        // ensure swiping with one touch and not pinching\n        if (event.originalEvent.touches && event.originalEvent.touches.length > 1) {\n          _this3.touchDeltaX = 0;\n        } else {\n          _this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX;\n        }\n      };\n\n      var end = function end(event) {\n        if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {\n          _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX;\n        }\n\n        _this3._handleSwipe();\n\n        if (_this3._config.pause === 'hover') {\n          // If it's a touch-enabled device, mouseenter/leave are fired as\n          // part of the mouse compatibility events on first tap - the carousel\n          // would stop cycling until user tapped out of it;\n          // here, we listen for touchend, explicitly pause the carousel\n          // (as if it's the second time we tap on it, mouseenter compat event\n          // is NOT fired) and after a timeout (to allow for mouse compatibility\n          // events to fire) we explicitly restart cycling\n          _this3.pause();\n\n          if (_this3.touchTimeout) {\n            clearTimeout(_this3.touchTimeout);\n          }\n\n          _this3.touchTimeout = setTimeout(function (event) {\n            return _this3.cycle(event);\n          }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval);\n        }\n      };\n\n      $(this._element.querySelectorAll(Selector$2.ITEM_IMG)).on(Event$2.DRAG_START, function (e) {\n        return e.preventDefault();\n      });\n\n      if (this._pointerEvent) {\n        $(this._element).on(Event$2.POINTERDOWN, function (event) {\n          return start(event);\n        });\n        $(this._element).on(Event$2.POINTERUP, function (event) {\n          return end(event);\n        });\n\n        this._element.classList.add(ClassName$2.POINTER_EVENT);\n      } else {\n        $(this._element).on(Event$2.TOUCHSTART, function (event) {\n          return start(event);\n        });\n        $(this._element).on(Event$2.TOUCHMOVE, function (event) {\n          return move(event);\n        });\n        $(this._element).on(Event$2.TOUCHEND, function (event) {\n          return end(event);\n        });\n      }\n    };\n\n    _proto._keydown = function _keydown(event) {\n      if (/input|textarea/i.test(event.target.tagName)) {\n        return;\n      }\n\n      switch (event.which) {\n        case ARROW_LEFT_KEYCODE:\n          event.preventDefault();\n          this.prev();\n          break;\n\n        case ARROW_RIGHT_KEYCODE:\n          event.preventDefault();\n          this.next();\n          break;\n\n        default:\n      }\n    };\n\n    _proto._getItemIndex = function _getItemIndex(element) {\n      this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(Selector$2.ITEM)) : [];\n      return this._items.indexOf(element);\n    };\n\n    _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {\n      var isNextDirection = direction === Direction.NEXT;\n      var isPrevDirection = direction === Direction.PREV;\n\n      var activeIndex = this._getItemIndex(activeElement);\n\n      var lastItemIndex = this._items.length - 1;\n      var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;\n\n      if (isGoingToWrap && !this._config.wrap) {\n        return activeElement;\n      }\n\n      var delta = direction === Direction.PREV ? -1 : 1;\n      var itemIndex = (activeIndex + delta) % this._items.length;\n      return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];\n    };\n\n    _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {\n      var targetIndex = this._getItemIndex(relatedTarget);\n\n      var fromIndex = this._getItemIndex(this._element.querySelector(Selector$2.ACTIVE_ITEM));\n\n      var slideEvent = $.Event(Event$2.SLIDE, {\n        relatedTarget: relatedTarget,\n        direction: eventDirectionName,\n        from: fromIndex,\n        to: targetIndex\n      });\n      $(this._element).trigger(slideEvent);\n      return slideEvent;\n    };\n\n    _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {\n      if (this._indicatorsElement) {\n        var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE));\n        $(indicators).removeClass(ClassName$2.ACTIVE);\n\n        var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];\n\n        if (nextIndicator) {\n          $(nextIndicator).addClass(ClassName$2.ACTIVE);\n        }\n      }\n    };\n\n    _proto._slide = function _slide(direction, element) {\n      var _this4 = this;\n\n      var activeElement = this._element.querySelector(Selector$2.ACTIVE_ITEM);\n\n      var activeElementIndex = this._getItemIndex(activeElement);\n\n      var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);\n\n      var nextElementIndex = this._getItemIndex(nextElement);\n\n      var isCycling = Boolean(this._interval);\n      var directionalClassName;\n      var orderClassName;\n      var eventDirectionName;\n\n      if (direction === Direction.NEXT) {\n        directionalClassName = ClassName$2.LEFT;\n        orderClassName = ClassName$2.NEXT;\n        eventDirectionName = Direction.LEFT;\n      } else {\n        directionalClassName = ClassName$2.RIGHT;\n        orderClassName = ClassName$2.PREV;\n        eventDirectionName = Direction.RIGHT;\n      }\n\n      if (nextElement && $(nextElement).hasClass(ClassName$2.ACTIVE)) {\n        this._isSliding = false;\n        return;\n      }\n\n      var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);\n\n      if (slideEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      if (!activeElement || !nextElement) {\n        // Some weirdness is happening, so we bail\n        return;\n      }\n\n      this._isSliding = true;\n\n      if (isCycling) {\n        this.pause();\n      }\n\n      this._setActiveIndicatorElement(nextElement);\n\n      var slidEvent = $.Event(Event$2.SLID, {\n        relatedTarget: nextElement,\n        direction: eventDirectionName,\n        from: activeElementIndex,\n        to: nextElementIndex\n      });\n\n      if ($(this._element).hasClass(ClassName$2.SLIDE)) {\n        $(nextElement).addClass(orderClassName);\n        Util.reflow(nextElement);\n        $(activeElement).addClass(directionalClassName);\n        $(nextElement).addClass(directionalClassName);\n        var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10);\n\n        if (nextElementInterval) {\n          this._config.defaultInterval = this._config.defaultInterval || this._config.interval;\n          this._config.interval = nextElementInterval;\n        } else {\n          this._config.interval = this._config.defaultInterval || this._config.interval;\n        }\n\n        var transitionDuration = Util.getTransitionDurationFromElement(activeElement);\n        $(activeElement).one(Util.TRANSITION_END, function () {\n          $(nextElement).removeClass(directionalClassName + \" \" + orderClassName).addClass(ClassName$2.ACTIVE);\n          $(activeElement).removeClass(ClassName$2.ACTIVE + \" \" + orderClassName + \" \" + directionalClassName);\n          _this4._isSliding = false;\n          setTimeout(function () {\n            return $(_this4._element).trigger(slidEvent);\n          }, 0);\n        }).emulateTransitionEnd(transitionDuration);\n      } else {\n        $(activeElement).removeClass(ClassName$2.ACTIVE);\n        $(nextElement).addClass(ClassName$2.ACTIVE);\n        this._isSliding = false;\n        $(this._element).trigger(slidEvent);\n      }\n\n      if (isCycling) {\n        this.cycle();\n      }\n    }; // Static\n\n\n    Carousel._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var data = $(this).data(DATA_KEY$2);\n\n        var _config = _objectSpread({}, Default, $(this).data());\n\n        if (typeof config === 'object') {\n          _config = _objectSpread({}, _config, config);\n        }\n\n        var action = typeof config === 'string' ? config : _config.slide;\n\n        if (!data) {\n          data = new Carousel(this, _config);\n          $(this).data(DATA_KEY$2, data);\n        }\n\n        if (typeof config === 'number') {\n          data.to(config);\n        } else if (typeof action === 'string') {\n          if (typeof data[action] === 'undefined') {\n            throw new TypeError(\"No method named \\\"\" + action + \"\\\"\");\n          }\n\n          data[action]();\n        } else if (_config.interval) {\n          data.pause();\n          data.cycle();\n        }\n      });\n    };\n\n    Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {\n      var selector = Util.getSelectorFromElement(this);\n\n      if (!selector) {\n        return;\n      }\n\n      var target = $(selector)[0];\n\n      if (!target || !$(target).hasClass(ClassName$2.CAROUSEL)) {\n        return;\n      }\n\n      var config = _objectSpread({}, $(target).data(), $(this).data());\n\n      var slideIndex = this.getAttribute('data-slide-to');\n\n      if (slideIndex) {\n        config.interval = false;\n      }\n\n      Carousel._jQueryInterface.call($(target), config);\n\n      if (slideIndex) {\n        $(target).data(DATA_KEY$2).to(slideIndex);\n      }\n\n      event.preventDefault();\n    };\n\n    _createClass(Carousel, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION$2;\n      }\n    }, {\n      key: \"Default\",\n      get: function get() {\n        return Default;\n      }\n    }]);\n\n    return Carousel;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * Data Api implementation\n   * ------------------------------------------------------------------------\n   */\n\n\n  $(document).on(Event$2.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel._dataApiClickHandler);\n  $(window).on(Event$2.LOAD_DATA_API, function () {\n    var carousels = [].slice.call(document.querySelectorAll(Selector$2.DATA_RIDE));\n\n    for (var i = 0, len = carousels.length; i < len; i++) {\n      var $carousel = $(carousels[i]);\n\n      Carousel._jQueryInterface.call($carousel, $carousel.data());\n    }\n  });\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n  $.fn[NAME$2] = Carousel._jQueryInterface;\n  $.fn[NAME$2].Constructor = Carousel;\n\n  $.fn[NAME$2].noConflict = function () {\n    $.fn[NAME$2] = JQUERY_NO_CONFLICT$2;\n    return Carousel._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$3 = 'collapse';\n  var VERSION$3 = '4.2.1';\n  var DATA_KEY$3 = 'bs.collapse';\n  var EVENT_KEY$3 = \".\" + DATA_KEY$3;\n  var DATA_API_KEY$3 = '.data-api';\n  var JQUERY_NO_CONFLICT$3 = $.fn[NAME$3];\n  var Default$1 = {\n    toggle: true,\n    parent: ''\n  };\n  var DefaultType$1 = {\n    toggle: 'boolean',\n    parent: '(string|element)'\n  };\n  var Event$3 = {\n    SHOW: \"show\" + EVENT_KEY$3,\n    SHOWN: \"shown\" + EVENT_KEY$3,\n    HIDE: \"hide\" + EVENT_KEY$3,\n    HIDDEN: \"hidden\" + EVENT_KEY$3,\n    CLICK_DATA_API: \"click\" + EVENT_KEY$3 + DATA_API_KEY$3\n  };\n  var ClassName$3 = {\n    SHOW: 'show',\n    COLLAPSE: 'collapse',\n    COLLAPSING: 'collapsing',\n    COLLAPSED: 'collapsed'\n  };\n  var Dimension = {\n    WIDTH: 'width',\n    HEIGHT: 'height'\n  };\n  var Selector$3 = {\n    ACTIVES: '.show, .collapsing',\n    DATA_TOGGLE: '[data-toggle=\"collapse\"]'\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Collapse =\n  /*#__PURE__*/\n  function () {\n    function Collapse(element, config) {\n      this._isTransitioning = false;\n      this._element = element;\n      this._config = this._getConfig(config);\n      this._triggerArray = [].slice.call(document.querySelectorAll(\"[data-toggle=\\\"collapse\\\"][href=\\\"#\" + element.id + \"\\\"],\" + (\"[data-toggle=\\\"collapse\\\"][data-target=\\\"#\" + element.id + \"\\\"]\")));\n      var toggleList = [].slice.call(document.querySelectorAll(Selector$3.DATA_TOGGLE));\n\n      for (var i = 0, len = toggleList.length; i < len; i++) {\n        var elem = toggleList[i];\n        var selector = Util.getSelectorFromElement(elem);\n        var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {\n          return foundElem === element;\n        });\n\n        if (selector !== null && filterElement.length > 0) {\n          this._selector = selector;\n\n          this._triggerArray.push(elem);\n        }\n      }\n\n      this._parent = this._config.parent ? this._getParent() : null;\n\n      if (!this._config.parent) {\n        this._addAriaAndCollapsedClass(this._element, this._triggerArray);\n      }\n\n      if (this._config.toggle) {\n        this.toggle();\n      }\n    } // Getters\n\n\n    var _proto = Collapse.prototype;\n\n    // Public\n    _proto.toggle = function toggle() {\n      if ($(this._element).hasClass(ClassName$3.SHOW)) {\n        this.hide();\n      } else {\n        this.show();\n      }\n    };\n\n    _proto.show = function show() {\n      var _this = this;\n\n      if (this._isTransitioning || $(this._element).hasClass(ClassName$3.SHOW)) {\n        return;\n      }\n\n      var actives;\n      var activesData;\n\n      if (this._parent) {\n        actives = [].slice.call(this._parent.querySelectorAll(Selector$3.ACTIVES)).filter(function (elem) {\n          if (typeof _this._config.parent === 'string') {\n            return elem.getAttribute('data-parent') === _this._config.parent;\n          }\n\n          return elem.classList.contains(ClassName$3.COLLAPSE);\n        });\n\n        if (actives.length === 0) {\n          actives = null;\n        }\n      }\n\n      if (actives) {\n        activesData = $(actives).not(this._selector).data(DATA_KEY$3);\n\n        if (activesData && activesData._isTransitioning) {\n          return;\n        }\n      }\n\n      var startEvent = $.Event(Event$3.SHOW);\n      $(this._element).trigger(startEvent);\n\n      if (startEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      if (actives) {\n        Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide');\n\n        if (!activesData) {\n          $(actives).data(DATA_KEY$3, null);\n        }\n      }\n\n      var dimension = this._getDimension();\n\n      $(this._element).removeClass(ClassName$3.COLLAPSE).addClass(ClassName$3.COLLAPSING);\n      this._element.style[dimension] = 0;\n\n      if (this._triggerArray.length) {\n        $(this._triggerArray).removeClass(ClassName$3.COLLAPSED).attr('aria-expanded', true);\n      }\n\n      this.setTransitioning(true);\n\n      var complete = function complete() {\n        $(_this._element).removeClass(ClassName$3.COLLAPSING).addClass(ClassName$3.COLLAPSE).addClass(ClassName$3.SHOW);\n        _this._element.style[dimension] = '';\n\n        _this.setTransitioning(false);\n\n        $(_this._element).trigger(Event$3.SHOWN);\n      };\n\n      var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);\n      var scrollSize = \"scroll\" + capitalizedDimension;\n      var transitionDuration = Util.getTransitionDurationFromElement(this._element);\n      $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);\n      this._element.style[dimension] = this._element[scrollSize] + \"px\";\n    };\n\n    _proto.hide = function hide() {\n      var _this2 = this;\n\n      if (this._isTransitioning || !$(this._element).hasClass(ClassName$3.SHOW)) {\n        return;\n      }\n\n      var startEvent = $.Event(Event$3.HIDE);\n      $(this._element).trigger(startEvent);\n\n      if (startEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      var dimension = this._getDimension();\n\n      this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + \"px\";\n      Util.reflow(this._element);\n      $(this._element).addClass(ClassName$3.COLLAPSING).removeClass(ClassName$3.COLLAPSE).removeClass(ClassName$3.SHOW);\n      var triggerArrayLength = this._triggerArray.length;\n\n      if (triggerArrayLength > 0) {\n        for (var i = 0; i < triggerArrayLength; i++) {\n          var trigger = this._triggerArray[i];\n          var selector = Util.getSelectorFromElement(trigger);\n\n          if (selector !== null) {\n            var $elem = $([].slice.call(document.querySelectorAll(selector)));\n\n            if (!$elem.hasClass(ClassName$3.SHOW)) {\n              $(trigger).addClass(ClassName$3.COLLAPSED).attr('aria-expanded', false);\n            }\n          }\n        }\n      }\n\n      this.setTransitioning(true);\n\n      var complete = function complete() {\n        _this2.setTransitioning(false);\n\n        $(_this2._element).removeClass(ClassName$3.COLLAPSING).addClass(ClassName$3.COLLAPSE).trigger(Event$3.HIDDEN);\n      };\n\n      this._element.style[dimension] = '';\n      var transitionDuration = Util.getTransitionDurationFromElement(this._element);\n      $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);\n    };\n\n    _proto.setTransitioning = function setTransitioning(isTransitioning) {\n      this._isTransitioning = isTransitioning;\n    };\n\n    _proto.dispose = function dispose() {\n      $.removeData(this._element, DATA_KEY$3);\n      this._config = null;\n      this._parent = null;\n      this._element = null;\n      this._triggerArray = null;\n      this._isTransitioning = null;\n    }; // Private\n\n\n    _proto._getConfig = function _getConfig(config) {\n      config = _objectSpread({}, Default$1, config);\n      config.toggle = Boolean(config.toggle); // Coerce string values\n\n      Util.typeCheckConfig(NAME$3, config, DefaultType$1);\n      return config;\n    };\n\n    _proto._getDimension = function _getDimension() {\n      var hasWidth = $(this._element).hasClass(Dimension.WIDTH);\n      return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;\n    };\n\n    _proto._getParent = function _getParent() {\n      var _this3 = this;\n\n      var parent;\n\n      if (Util.isElement(this._config.parent)) {\n        parent = this._config.parent; // It's a jQuery object\n\n        if (typeof this._config.parent.jquery !== 'undefined') {\n          parent = this._config.parent[0];\n        }\n      } else {\n        parent = document.querySelector(this._config.parent);\n      }\n\n      var selector = \"[data-toggle=\\\"collapse\\\"][data-parent=\\\"\" + this._config.parent + \"\\\"]\";\n      var children = [].slice.call(parent.querySelectorAll(selector));\n      $(children).each(function (i, element) {\n        _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);\n      });\n      return parent;\n    };\n\n    _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {\n      var isOpen = $(element).hasClass(ClassName$3.SHOW);\n\n      if (triggerArray.length) {\n        $(triggerArray).toggleClass(ClassName$3.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);\n      }\n    }; // Static\n\n\n    Collapse._getTargetFromElement = function _getTargetFromElement(element) {\n      var selector = Util.getSelectorFromElement(element);\n      return selector ? document.querySelector(selector) : null;\n    };\n\n    Collapse._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var $this = $(this);\n        var data = $this.data(DATA_KEY$3);\n\n        var _config = _objectSpread({}, Default$1, $this.data(), typeof config === 'object' && config ? config : {});\n\n        if (!data && _config.toggle && /show|hide/.test(config)) {\n          _config.toggle = false;\n        }\n\n        if (!data) {\n          data = new Collapse(this, _config);\n          $this.data(DATA_KEY$3, data);\n        }\n\n        if (typeof config === 'string') {\n          if (typeof data[config] === 'undefined') {\n            throw new TypeError(\"No method named \\\"\" + config + \"\\\"\");\n          }\n\n          data[config]();\n        }\n      });\n    };\n\n    _createClass(Collapse, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION$3;\n      }\n    }, {\n      key: \"Default\",\n      get: function get() {\n        return Default$1;\n      }\n    }]);\n\n    return Collapse;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * Data Api implementation\n   * ------------------------------------------------------------------------\n   */\n\n\n  $(document).on(Event$3.CLICK_DATA_API, Selector$3.DATA_TOGGLE, function (event) {\n    // preventDefault only for <a> elements (which change the URL) not inside the collapsible element\n    if (event.currentTarget.tagName === 'A') {\n      event.preventDefault();\n    }\n\n    var $trigger = $(this);\n    var selector = Util.getSelectorFromElement(this);\n    var selectors = [].slice.call(document.querySelectorAll(selector));\n    $(selectors).each(function () {\n      var $target = $(this);\n      var data = $target.data(DATA_KEY$3);\n      var config = data ? 'toggle' : $trigger.data();\n\n      Collapse._jQueryInterface.call($target, config);\n    });\n  });\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n  $.fn[NAME$3] = Collapse._jQueryInterface;\n  $.fn[NAME$3].Constructor = Collapse;\n\n  $.fn[NAME$3].noConflict = function () {\n    $.fn[NAME$3] = JQUERY_NO_CONFLICT$3;\n    return Collapse._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$4 = 'dropdown';\n  var VERSION$4 = '4.2.1';\n  var DATA_KEY$4 = 'bs.dropdown';\n  var EVENT_KEY$4 = \".\" + DATA_KEY$4;\n  var DATA_API_KEY$4 = '.data-api';\n  var JQUERY_NO_CONFLICT$4 = $.fn[NAME$4];\n  var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key\n\n  var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key\n\n  var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key\n\n  var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key\n\n  var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key\n\n  var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)\n\n  var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + \"|\" + ARROW_DOWN_KEYCODE + \"|\" + ESCAPE_KEYCODE);\n  var Event$4 = {\n    HIDE: \"hide\" + EVENT_KEY$4,\n    HIDDEN: \"hidden\" + EVENT_KEY$4,\n    SHOW: \"show\" + EVENT_KEY$4,\n    SHOWN: \"shown\" + EVENT_KEY$4,\n    CLICK: \"click\" + EVENT_KEY$4,\n    CLICK_DATA_API: \"click\" + EVENT_KEY$4 + DATA_API_KEY$4,\n    KEYDOWN_DATA_API: \"keydown\" + EVENT_KEY$4 + DATA_API_KEY$4,\n    KEYUP_DATA_API: \"keyup\" + EVENT_KEY$4 + DATA_API_KEY$4\n  };\n  var ClassName$4 = {\n    DISABLED: 'disabled',\n    SHOW: 'show',\n    DROPUP: 'dropup',\n    DROPRIGHT: 'dropright',\n    DROPLEFT: 'dropleft',\n    MENURIGHT: 'dropdown-menu-right',\n    MENULEFT: 'dropdown-menu-left',\n    POSITION_STATIC: 'position-static'\n  };\n  var Selector$4 = {\n    DATA_TOGGLE: '[data-toggle=\"dropdown\"]',\n    FORM_CHILD: '.dropdown form',\n    MENU: '.dropdown-menu',\n    NAVBAR_NAV: '.navbar-nav',\n    VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'\n  };\n  var AttachmentMap = {\n    TOP: 'top-start',\n    TOPEND: 'top-end',\n    BOTTOM: 'bottom-start',\n    BOTTOMEND: 'bottom-end',\n    RIGHT: 'right-start',\n    RIGHTEND: 'right-end',\n    LEFT: 'left-start',\n    LEFTEND: 'left-end'\n  };\n  var Default$2 = {\n    offset: 0,\n    flip: true,\n    boundary: 'scrollParent',\n    reference: 'toggle',\n    display: 'dynamic'\n  };\n  var DefaultType$2 = {\n    offset: '(number|string|function)',\n    flip: 'boolean',\n    boundary: '(string|element)',\n    reference: '(string|element)',\n    display: 'string'\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Dropdown =\n  /*#__PURE__*/\n  function () {\n    function Dropdown(element, config) {\n      this._element = element;\n      this._popper = null;\n      this._config = this._getConfig(config);\n      this._menu = this._getMenuElement();\n      this._inNavbar = this._detectNavbar();\n\n      this._addEventListeners();\n    } // Getters\n\n\n    var _proto = Dropdown.prototype;\n\n    // Public\n    _proto.toggle = function toggle() {\n      if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED)) {\n        return;\n      }\n\n      var parent = Dropdown._getParentFromElement(this._element);\n\n      var isActive = $(this._menu).hasClass(ClassName$4.SHOW);\n\n      Dropdown._clearMenus();\n\n      if (isActive) {\n        return;\n      }\n\n      var relatedTarget = {\n        relatedTarget: this._element\n      };\n      var showEvent = $.Event(Event$4.SHOW, relatedTarget);\n      $(parent).trigger(showEvent);\n\n      if (showEvent.isDefaultPrevented()) {\n        return;\n      } // Disable totally Popper.js for Dropdown in Navbar\n\n\n      if (!this._inNavbar) {\n        /**\n         * Check for Popper dependency\n         * Popper - https://popper.js.org\n         */\n        if (typeof Popper === 'undefined') {\n          throw new TypeError('Bootstrap\\'s dropdowns require Popper.js (https://popper.js.org/)');\n        }\n\n        var referenceElement = this._element;\n\n        if (this._config.reference === 'parent') {\n          referenceElement = parent;\n        } else if (Util.isElement(this._config.reference)) {\n          referenceElement = this._config.reference; // Check if it's jQuery element\n\n          if (typeof this._config.reference.jquery !== 'undefined') {\n            referenceElement = this._config.reference[0];\n          }\n        } // If boundary is not `scrollParent`, then set position to `static`\n        // to allow the menu to \"escape\" the scroll parent's boundaries\n        // https://github.com/twbs/bootstrap/issues/24251\n\n\n        if (this._config.boundary !== 'scrollParent') {\n          $(parent).addClass(ClassName$4.POSITION_STATIC);\n        }\n\n        this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());\n      } // If this is a touch-enabled device we add extra\n      // empty mouseover listeners to the body's immediate children;\n      // only needed because of broken event delegation on iOS\n      // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n\n\n      if ('ontouchstart' in document.documentElement && $(parent).closest(Selector$4.NAVBAR_NAV).length === 0) {\n        $(document.body).children().on('mouseover', null, $.noop);\n      }\n\n      this._element.focus();\n\n      this._element.setAttribute('aria-expanded', true);\n\n      $(this._menu).toggleClass(ClassName$4.SHOW);\n      $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.SHOWN, relatedTarget));\n    };\n\n    _proto.show = function show() {\n      if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED) || $(this._menu).hasClass(ClassName$4.SHOW)) {\n        return;\n      }\n\n      var relatedTarget = {\n        relatedTarget: this._element\n      };\n      var showEvent = $.Event(Event$4.SHOW, relatedTarget);\n\n      var parent = Dropdown._getParentFromElement(this._element);\n\n      $(parent).trigger(showEvent);\n\n      if (showEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      $(this._menu).toggleClass(ClassName$4.SHOW);\n      $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.SHOWN, relatedTarget));\n    };\n\n    _proto.hide = function hide() {\n      if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED) || !$(this._menu).hasClass(ClassName$4.SHOW)) {\n        return;\n      }\n\n      var relatedTarget = {\n        relatedTarget: this._element\n      };\n      var hideEvent = $.Event(Event$4.HIDE, relatedTarget);\n\n      var parent = Dropdown._getParentFromElement(this._element);\n\n      $(parent).trigger(hideEvent);\n\n      if (hideEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      $(this._menu).toggleClass(ClassName$4.SHOW);\n      $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.HIDDEN, relatedTarget));\n    };\n\n    _proto.dispose = function dispose() {\n      $.removeData(this._element, DATA_KEY$4);\n      $(this._element).off(EVENT_KEY$4);\n      this._element = null;\n      this._menu = null;\n\n      if (this._popper !== null) {\n        this._popper.destroy();\n\n        this._popper = null;\n      }\n    };\n\n    _proto.update = function update() {\n      this._inNavbar = this._detectNavbar();\n\n      if (this._popper !== null) {\n        this._popper.scheduleUpdate();\n      }\n    }; // Private\n\n\n    _proto._addEventListeners = function _addEventListeners() {\n      var _this = this;\n\n      $(this._element).on(Event$4.CLICK, function (event) {\n        event.preventDefault();\n        event.stopPropagation();\n\n        _this.toggle();\n      });\n    };\n\n    _proto._getConfig = function _getConfig(config) {\n      config = _objectSpread({}, this.constructor.Default, $(this._element).data(), config);\n      Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);\n      return config;\n    };\n\n    _proto._getMenuElement = function _getMenuElement() {\n      if (!this._menu) {\n        var parent = Dropdown._getParentFromElement(this._element);\n\n        if (parent) {\n          this._menu = parent.querySelector(Selector$4.MENU);\n        }\n      }\n\n      return this._menu;\n    };\n\n    _proto._getPlacement = function _getPlacement() {\n      var $parentDropdown = $(this._element.parentNode);\n      var placement = AttachmentMap.BOTTOM; // Handle dropup\n\n      if ($parentDropdown.hasClass(ClassName$4.DROPUP)) {\n        placement = AttachmentMap.TOP;\n\n        if ($(this._menu).hasClass(ClassName$4.MENURIGHT)) {\n          placement = AttachmentMap.TOPEND;\n        }\n      } else if ($parentDropdown.hasClass(ClassName$4.DROPRIGHT)) {\n        placement = AttachmentMap.RIGHT;\n      } else if ($parentDropdown.hasClass(ClassName$4.DROPLEFT)) {\n        placement = AttachmentMap.LEFT;\n      } else if ($(this._menu).hasClass(ClassName$4.MENURIGHT)) {\n        placement = AttachmentMap.BOTTOMEND;\n      }\n\n      return placement;\n    };\n\n    _proto._detectNavbar = function _detectNavbar() {\n      return $(this._element).closest('.navbar').length > 0;\n    };\n\n    _proto._getPopperConfig = function _getPopperConfig() {\n      var _this2 = this;\n\n      var offsetConf = {};\n\n      if (typeof this._config.offset === 'function') {\n        offsetConf.fn = function (data) {\n          data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets) || {});\n          return data;\n        };\n      } else {\n        offsetConf.offset = this._config.offset;\n      }\n\n      var popperConfig = {\n        placement: this._getPlacement(),\n        modifiers: {\n          offset: offsetConf,\n          flip: {\n            enabled: this._config.flip\n          },\n          preventOverflow: {\n            boundariesElement: this._config.boundary\n          }\n        } // Disable Popper.js if we have a static display\n\n      };\n\n      if (this._config.display === 'static') {\n        popperConfig.modifiers.applyStyle = {\n          enabled: false\n        };\n      }\n\n      return popperConfig;\n    }; // Static\n\n\n    Dropdown._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var data = $(this).data(DATA_KEY$4);\n\n        var _config = typeof config === 'object' ? config : null;\n\n        if (!data) {\n          data = new Dropdown(this, _config);\n          $(this).data(DATA_KEY$4, data);\n        }\n\n        if (typeof config === 'string') {\n          if (typeof data[config] === 'undefined') {\n            throw new TypeError(\"No method named \\\"\" + config + \"\\\"\");\n          }\n\n          data[config]();\n        }\n      });\n    };\n\n    Dropdown._clearMenus = function _clearMenus(event) {\n      if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {\n        return;\n      }\n\n      var toggles = [].slice.call(document.querySelectorAll(Selector$4.DATA_TOGGLE));\n\n      for (var i = 0, len = toggles.length; i < len; i++) {\n        var parent = Dropdown._getParentFromElement(toggles[i]);\n\n        var context = $(toggles[i]).data(DATA_KEY$4);\n        var relatedTarget = {\n          relatedTarget: toggles[i]\n        };\n\n        if (event && event.type === 'click') {\n          relatedTarget.clickEvent = event;\n        }\n\n        if (!context) {\n          continue;\n        }\n\n        var dropdownMenu = context._menu;\n\n        if (!$(parent).hasClass(ClassName$4.SHOW)) {\n          continue;\n        }\n\n        if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) {\n          continue;\n        }\n\n        var hideEvent = $.Event(Event$4.HIDE, relatedTarget);\n        $(parent).trigger(hideEvent);\n\n        if (hideEvent.isDefaultPrevented()) {\n          continue;\n        } // If this is a touch-enabled device we remove the extra\n        // empty mouseover listeners we added for iOS support\n\n\n        if ('ontouchstart' in document.documentElement) {\n          $(document.body).children().off('mouseover', null, $.noop);\n        }\n\n        toggles[i].setAttribute('aria-expanded', 'false');\n        $(dropdownMenu).removeClass(ClassName$4.SHOW);\n        $(parent).removeClass(ClassName$4.SHOW).trigger($.Event(Event$4.HIDDEN, relatedTarget));\n      }\n    };\n\n    Dropdown._getParentFromElement = function _getParentFromElement(element) {\n      var parent;\n      var selector = Util.getSelectorFromElement(element);\n\n      if (selector) {\n        parent = document.querySelector(selector);\n      }\n\n      return parent || element.parentNode;\n    }; // eslint-disable-next-line complexity\n\n\n    Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {\n      // If not input/textarea:\n      //  - And not a key in REGEXP_KEYDOWN => not a dropdown command\n      // If input/textarea:\n      //  - If space key => not a dropdown command\n      //  - If key is other than escape\n      //    - If key is not up or down => not a dropdown command\n      //    - If trigger inside the menu => not a dropdown command\n      if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(Selector$4.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {\n        return;\n      }\n\n      event.preventDefault();\n      event.stopPropagation();\n\n      if (this.disabled || $(this).hasClass(ClassName$4.DISABLED)) {\n        return;\n      }\n\n      var parent = Dropdown._getParentFromElement(this);\n\n      var isActive = $(parent).hasClass(ClassName$4.SHOW);\n\n      if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {\n        if (event.which === ESCAPE_KEYCODE) {\n          var toggle = parent.querySelector(Selector$4.DATA_TOGGLE);\n          $(toggle).trigger('focus');\n        }\n\n        $(this).trigger('click');\n        return;\n      }\n\n      var items = [].slice.call(parent.querySelectorAll(Selector$4.VISIBLE_ITEMS));\n\n      if (items.length === 0) {\n        return;\n      }\n\n      var index = items.indexOf(event.target);\n\n      if (event.which === ARROW_UP_KEYCODE && index > 0) {\n        // Up\n        index--;\n      }\n\n      if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {\n        // Down\n        index++;\n      }\n\n      if (index < 0) {\n        index = 0;\n      }\n\n      items[index].focus();\n    };\n\n    _createClass(Dropdown, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION$4;\n      }\n    }, {\n      key: \"Default\",\n      get: function get() {\n        return Default$2;\n      }\n    }, {\n      key: \"DefaultType\",\n      get: function get() {\n        return DefaultType$2;\n      }\n    }]);\n\n    return Dropdown;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * Data Api implementation\n   * ------------------------------------------------------------------------\n   */\n\n\n  $(document).on(Event$4.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event$4.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown._dataApiKeydownHandler).on(Event$4.CLICK_DATA_API + \" \" + Event$4.KEYUP_DATA_API, Dropdown._clearMenus).on(Event$4.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) {\n    event.preventDefault();\n    event.stopPropagation();\n\n    Dropdown._jQueryInterface.call($(this), 'toggle');\n  }).on(Event$4.CLICK_DATA_API, Selector$4.FORM_CHILD, function (e) {\n    e.stopPropagation();\n  });\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n  $.fn[NAME$4] = Dropdown._jQueryInterface;\n  $.fn[NAME$4].Constructor = Dropdown;\n\n  $.fn[NAME$4].noConflict = function () {\n    $.fn[NAME$4] = JQUERY_NO_CONFLICT$4;\n    return Dropdown._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$5 = 'modal';\n  var VERSION$5 = '4.2.1';\n  var DATA_KEY$5 = 'bs.modal';\n  var EVENT_KEY$5 = \".\" + DATA_KEY$5;\n  var DATA_API_KEY$5 = '.data-api';\n  var JQUERY_NO_CONFLICT$5 = $.fn[NAME$5];\n  var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key\n\n  var Default$3 = {\n    backdrop: true,\n    keyboard: true,\n    focus: true,\n    show: true\n  };\n  var DefaultType$3 = {\n    backdrop: '(boolean|string)',\n    keyboard: 'boolean',\n    focus: 'boolean',\n    show: 'boolean'\n  };\n  var Event$5 = {\n    HIDE: \"hide\" + EVENT_KEY$5,\n    HIDDEN: \"hidden\" + EVENT_KEY$5,\n    SHOW: \"show\" + EVENT_KEY$5,\n    SHOWN: \"shown\" + EVENT_KEY$5,\n    FOCUSIN: \"focusin\" + EVENT_KEY$5,\n    RESIZE: \"resize\" + EVENT_KEY$5,\n    CLICK_DISMISS: \"click.dismiss\" + EVENT_KEY$5,\n    KEYDOWN_DISMISS: \"keydown.dismiss\" + EVENT_KEY$5,\n    MOUSEUP_DISMISS: \"mouseup.dismiss\" + EVENT_KEY$5,\n    MOUSEDOWN_DISMISS: \"mousedown.dismiss\" + EVENT_KEY$5,\n    CLICK_DATA_API: \"click\" + EVENT_KEY$5 + DATA_API_KEY$5\n  };\n  var ClassName$5 = {\n    SCROLLBAR_MEASURER: 'modal-scrollbar-measure',\n    BACKDROP: 'modal-backdrop',\n    OPEN: 'modal-open',\n    FADE: 'fade',\n    SHOW: 'show'\n  };\n  var Selector$5 = {\n    DIALOG: '.modal-dialog',\n    DATA_TOGGLE: '[data-toggle=\"modal\"]',\n    DATA_DISMISS: '[data-dismiss=\"modal\"]',\n    FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',\n    STICKY_CONTENT: '.sticky-top'\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Modal =\n  /*#__PURE__*/\n  function () {\n    function Modal(element, config) {\n      this._config = this._getConfig(config);\n      this._element = element;\n      this._dialog = element.querySelector(Selector$5.DIALOG);\n      this._backdrop = null;\n      this._isShown = false;\n      this._isBodyOverflowing = false;\n      this._ignoreBackdropClick = false;\n      this._isTransitioning = false;\n      this._scrollbarWidth = 0;\n    } // Getters\n\n\n    var _proto = Modal.prototype;\n\n    // Public\n    _proto.toggle = function toggle(relatedTarget) {\n      return this._isShown ? this.hide() : this.show(relatedTarget);\n    };\n\n    _proto.show = function show(relatedTarget) {\n      var _this = this;\n\n      if (this._isShown || this._isTransitioning) {\n        return;\n      }\n\n      if ($(this._element).hasClass(ClassName$5.FADE)) {\n        this._isTransitioning = true;\n      }\n\n      var showEvent = $.Event(Event$5.SHOW, {\n        relatedTarget: relatedTarget\n      });\n      $(this._element).trigger(showEvent);\n\n      if (this._isShown || showEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      this._isShown = true;\n\n      this._checkScrollbar();\n\n      this._setScrollbar();\n\n      this._adjustDialog();\n\n      this._setEscapeEvent();\n\n      this._setResizeEvent();\n\n      $(this._element).on(Event$5.CLICK_DISMISS, Selector$5.DATA_DISMISS, function (event) {\n        return _this.hide(event);\n      });\n      $(this._dialog).on(Event$5.MOUSEDOWN_DISMISS, function () {\n        $(_this._element).one(Event$5.MOUSEUP_DISMISS, function (event) {\n          if ($(event.target).is(_this._element)) {\n            _this._ignoreBackdropClick = true;\n          }\n        });\n      });\n\n      this._showBackdrop(function () {\n        return _this._showElement(relatedTarget);\n      });\n    };\n\n    _proto.hide = function hide(event) {\n      var _this2 = this;\n\n      if (event) {\n        event.preventDefault();\n      }\n\n      if (!this._isShown || this._isTransitioning) {\n        return;\n      }\n\n      var hideEvent = $.Event(Event$5.HIDE);\n      $(this._element).trigger(hideEvent);\n\n      if (!this._isShown || hideEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      this._isShown = false;\n      var transition = $(this._element).hasClass(ClassName$5.FADE);\n\n      if (transition) {\n        this._isTransitioning = true;\n      }\n\n      this._setEscapeEvent();\n\n      this._setResizeEvent();\n\n      $(document).off(Event$5.FOCUSIN);\n      $(this._element).removeClass(ClassName$5.SHOW);\n      $(this._element).off(Event$5.CLICK_DISMISS);\n      $(this._dialog).off(Event$5.MOUSEDOWN_DISMISS);\n\n      if (transition) {\n        var transitionDuration = Util.getTransitionDurationFromElement(this._element);\n        $(this._element).one(Util.TRANSITION_END, function (event) {\n          return _this2._hideModal(event);\n        }).emulateTransitionEnd(transitionDuration);\n      } else {\n        this._hideModal();\n      }\n    };\n\n    _proto.dispose = function dispose() {\n      [window, this._element, this._dialog].forEach(function (htmlElement) {\n        return $(htmlElement).off(EVENT_KEY$5);\n      });\n      /**\n       * `document` has 2 events `Event.FOCUSIN` and `Event.CLICK_DATA_API`\n       * Do not move `document` in `htmlElements` array\n       * It will remove `Event.CLICK_DATA_API` event that should remain\n       */\n\n      $(document).off(Event$5.FOCUSIN);\n      $.removeData(this._element, DATA_KEY$5);\n      this._config = null;\n      this._element = null;\n      this._dialog = null;\n      this._backdrop = null;\n      this._isShown = null;\n      this._isBodyOverflowing = null;\n      this._ignoreBackdropClick = null;\n      this._isTransitioning = null;\n      this._scrollbarWidth = null;\n    };\n\n    _proto.handleUpdate = function handleUpdate() {\n      this._adjustDialog();\n    }; // Private\n\n\n    _proto._getConfig = function _getConfig(config) {\n      config = _objectSpread({}, Default$3, config);\n      Util.typeCheckConfig(NAME$5, config, DefaultType$3);\n      return config;\n    };\n\n    _proto._showElement = function _showElement(relatedTarget) {\n      var _this3 = this;\n\n      var transition = $(this._element).hasClass(ClassName$5.FADE);\n\n      if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {\n        // Don't move modal's DOM position\n        document.body.appendChild(this._element);\n      }\n\n      this._element.style.display = 'block';\n\n      this._element.removeAttribute('aria-hidden');\n\n      this._element.setAttribute('aria-modal', true);\n\n      this._element.scrollTop = 0;\n\n      if (transition) {\n        Util.reflow(this._element);\n      }\n\n      $(this._element).addClass(ClassName$5.SHOW);\n\n      if (this._config.focus) {\n        this._enforceFocus();\n      }\n\n      var shownEvent = $.Event(Event$5.SHOWN, {\n        relatedTarget: relatedTarget\n      });\n\n      var transitionComplete = function transitionComplete() {\n        if (_this3._config.focus) {\n          _this3._element.focus();\n        }\n\n        _this3._isTransitioning = false;\n        $(_this3._element).trigger(shownEvent);\n      };\n\n      if (transition) {\n        var transitionDuration = Util.getTransitionDurationFromElement(this._dialog);\n        $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);\n      } else {\n        transitionComplete();\n      }\n    };\n\n    _proto._enforceFocus = function _enforceFocus() {\n      var _this4 = this;\n\n      $(document).off(Event$5.FOCUSIN) // Guard against infinite focus loop\n      .on(Event$5.FOCUSIN, function (event) {\n        if (document !== event.target && _this4._element !== event.target && $(_this4._element).has(event.target).length === 0) {\n          _this4._element.focus();\n        }\n      });\n    };\n\n    _proto._setEscapeEvent = function _setEscapeEvent() {\n      var _this5 = this;\n\n      if (this._isShown && this._config.keyboard) {\n        $(this._element).on(Event$5.KEYDOWN_DISMISS, function (event) {\n          if (event.which === ESCAPE_KEYCODE$1) {\n            event.preventDefault();\n\n            _this5.hide();\n          }\n        });\n      } else if (!this._isShown) {\n        $(this._element).off(Event$5.KEYDOWN_DISMISS);\n      }\n    };\n\n    _proto._setResizeEvent = function _setResizeEvent() {\n      var _this6 = this;\n\n      if (this._isShown) {\n        $(window).on(Event$5.RESIZE, function (event) {\n          return _this6.handleUpdate(event);\n        });\n      } else {\n        $(window).off(Event$5.RESIZE);\n      }\n    };\n\n    _proto._hideModal = function _hideModal() {\n      var _this7 = this;\n\n      this._element.style.display = 'none';\n\n      this._element.setAttribute('aria-hidden', true);\n\n      this._element.removeAttribute('aria-modal');\n\n      this._isTransitioning = false;\n\n      this._showBackdrop(function () {\n        $(document.body).removeClass(ClassName$5.OPEN);\n\n        _this7._resetAdjustments();\n\n        _this7._resetScrollbar();\n\n        $(_this7._element).trigger(Event$5.HIDDEN);\n      });\n    };\n\n    _proto._removeBackdrop = function _removeBackdrop() {\n      if (this._backdrop) {\n        $(this._backdrop).remove();\n        this._backdrop = null;\n      }\n    };\n\n    _proto._showBackdrop = function _showBackdrop(callback) {\n      var _this8 = this;\n\n      var animate = $(this._element).hasClass(ClassName$5.FADE) ? ClassName$5.FADE : '';\n\n      if (this._isShown && this._config.backdrop) {\n        this._backdrop = document.createElement('div');\n        this._backdrop.className = ClassName$5.BACKDROP;\n\n        if (animate) {\n          this._backdrop.classList.add(animate);\n        }\n\n        $(this._backdrop).appendTo(document.body);\n        $(this._element).on(Event$5.CLICK_DISMISS, function (event) {\n          if (_this8._ignoreBackdropClick) {\n            _this8._ignoreBackdropClick = false;\n            return;\n          }\n\n          if (event.target !== event.currentTarget) {\n            return;\n          }\n\n          if (_this8._config.backdrop === 'static') {\n            _this8._element.focus();\n          } else {\n            _this8.hide();\n          }\n        });\n\n        if (animate) {\n          Util.reflow(this._backdrop);\n        }\n\n        $(this._backdrop).addClass(ClassName$5.SHOW);\n\n        if (!callback) {\n          return;\n        }\n\n        if (!animate) {\n          callback();\n          return;\n        }\n\n        var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);\n        $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);\n      } else if (!this._isShown && this._backdrop) {\n        $(this._backdrop).removeClass(ClassName$5.SHOW);\n\n        var callbackRemove = function callbackRemove() {\n          _this8._removeBackdrop();\n\n          if (callback) {\n            callback();\n          }\n        };\n\n        if ($(this._element).hasClass(ClassName$5.FADE)) {\n          var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);\n\n          $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);\n        } else {\n          callbackRemove();\n        }\n      } else if (callback) {\n        callback();\n      }\n    }; // ----------------------------------------------------------------------\n    // the following methods are used to handle overflowing modals\n    // todo (fat): these should probably be refactored out of modal.js\n    // ----------------------------------------------------------------------\n\n\n    _proto._adjustDialog = function _adjustDialog() {\n      var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;\n\n      if (!this._isBodyOverflowing && isModalOverflowing) {\n        this._element.style.paddingLeft = this._scrollbarWidth + \"px\";\n      }\n\n      if (this._isBodyOverflowing && !isModalOverflowing) {\n        this._element.style.paddingRight = this._scrollbarWidth + \"px\";\n      }\n    };\n\n    _proto._resetAdjustments = function _resetAdjustments() {\n      this._element.style.paddingLeft = '';\n      this._element.style.paddingRight = '';\n    };\n\n    _proto._checkScrollbar = function _checkScrollbar() {\n      var rect = document.body.getBoundingClientRect();\n      this._isBodyOverflowing = rect.left + rect.right < window.innerWidth;\n      this._scrollbarWidth = this._getScrollbarWidth();\n    };\n\n    _proto._setScrollbar = function _setScrollbar() {\n      var _this9 = this;\n\n      if (this._isBodyOverflowing) {\n        // Note: DOMNode.style.paddingRight returns the actual value or '' if not set\n        //   while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set\n        var fixedContent = [].slice.call(document.querySelectorAll(Selector$5.FIXED_CONTENT));\n        var stickyContent = [].slice.call(document.querySelectorAll(Selector$5.STICKY_CONTENT)); // Adjust fixed content padding\n\n        $(fixedContent).each(function (index, element) {\n          var actualPadding = element.style.paddingRight;\n          var calculatedPadding = $(element).css('padding-right');\n          $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + \"px\");\n        }); // Adjust sticky content margin\n\n        $(stickyContent).each(function (index, element) {\n          var actualMargin = element.style.marginRight;\n          var calculatedMargin = $(element).css('margin-right');\n          $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + \"px\");\n        }); // Adjust body padding\n\n        var actualPadding = document.body.style.paddingRight;\n        var calculatedPadding = $(document.body).css('padding-right');\n        $(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + \"px\");\n      }\n\n      $(document.body).addClass(ClassName$5.OPEN);\n    };\n\n    _proto._resetScrollbar = function _resetScrollbar() {\n      // Restore fixed content padding\n      var fixedContent = [].slice.call(document.querySelectorAll(Selector$5.FIXED_CONTENT));\n      $(fixedContent).each(function (index, element) {\n        var padding = $(element).data('padding-right');\n        $(element).removeData('padding-right');\n        element.style.paddingRight = padding ? padding : '';\n      }); // Restore sticky content\n\n      var elements = [].slice.call(document.querySelectorAll(\"\" + Selector$5.STICKY_CONTENT));\n      $(elements).each(function (index, element) {\n        var margin = $(element).data('margin-right');\n\n        if (typeof margin !== 'undefined') {\n          $(element).css('margin-right', margin).removeData('margin-right');\n        }\n      }); // Restore body padding\n\n      var padding = $(document.body).data('padding-right');\n      $(document.body).removeData('padding-right');\n      document.body.style.paddingRight = padding ? padding : '';\n    };\n\n    _proto._getScrollbarWidth = function _getScrollbarWidth() {\n      // thx d.walsh\n      var scrollDiv = document.createElement('div');\n      scrollDiv.className = ClassName$5.SCROLLBAR_MEASURER;\n      document.body.appendChild(scrollDiv);\n      var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;\n      document.body.removeChild(scrollDiv);\n      return scrollbarWidth;\n    }; // Static\n\n\n    Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {\n      return this.each(function () {\n        var data = $(this).data(DATA_KEY$5);\n\n        var _config = _objectSpread({}, Default$3, $(this).data(), typeof config === 'object' && config ? config : {});\n\n        if (!data) {\n          data = new Modal(this, _config);\n          $(this).data(DATA_KEY$5, data);\n        }\n\n        if (typeof config === 'string') {\n          if (typeof data[config] === 'undefined') {\n            throw new TypeError(\"No method named \\\"\" + config + \"\\\"\");\n          }\n\n          data[config](relatedTarget);\n        } else if (_config.show) {\n          data.show(relatedTarget);\n        }\n      });\n    };\n\n    _createClass(Modal, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION$5;\n      }\n    }, {\n      key: \"Default\",\n      get: function get() {\n        return Default$3;\n      }\n    }]);\n\n    return Modal;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * Data Api implementation\n   * ------------------------------------------------------------------------\n   */\n\n\n  $(document).on(Event$5.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {\n    var _this10 = this;\n\n    var target;\n    var selector = Util.getSelectorFromElement(this);\n\n    if (selector) {\n      target = document.querySelector(selector);\n    }\n\n    var config = $(target).data(DATA_KEY$5) ? 'toggle' : _objectSpread({}, $(target).data(), $(this).data());\n\n    if (this.tagName === 'A' || this.tagName === 'AREA') {\n      event.preventDefault();\n    }\n\n    var $target = $(target).one(Event$5.SHOW, function (showEvent) {\n      if (showEvent.isDefaultPrevented()) {\n        // Only register focus restorer if modal will actually get shown\n        return;\n      }\n\n      $target.one(Event$5.HIDDEN, function () {\n        if ($(_this10).is(':visible')) {\n          _this10.focus();\n        }\n      });\n    });\n\n    Modal._jQueryInterface.call($(target), config, this);\n  });\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n  $.fn[NAME$5] = Modal._jQueryInterface;\n  $.fn[NAME$5].Constructor = Modal;\n\n  $.fn[NAME$5].noConflict = function () {\n    $.fn[NAME$5] = JQUERY_NO_CONFLICT$5;\n    return Modal._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$6 = 'tooltip';\n  var VERSION$6 = '4.2.1';\n  var DATA_KEY$6 = 'bs.tooltip';\n  var EVENT_KEY$6 = \".\" + DATA_KEY$6;\n  var JQUERY_NO_CONFLICT$6 = $.fn[NAME$6];\n  var CLASS_PREFIX = 'bs-tooltip';\n  var BSCLS_PREFIX_REGEX = new RegExp(\"(^|\\\\s)\" + CLASS_PREFIX + \"\\\\S+\", 'g');\n  var DefaultType$4 = {\n    animation: 'boolean',\n    template: 'string',\n    title: '(string|element|function)',\n    trigger: 'string',\n    delay: '(number|object)',\n    html: 'boolean',\n    selector: '(string|boolean)',\n    placement: '(string|function)',\n    offset: '(number|string)',\n    container: '(string|element|boolean)',\n    fallbackPlacement: '(string|array)',\n    boundary: '(string|element)'\n  };\n  var AttachmentMap$1 = {\n    AUTO: 'auto',\n    TOP: 'top',\n    RIGHT: 'right',\n    BOTTOM: 'bottom',\n    LEFT: 'left'\n  };\n  var Default$4 = {\n    animation: true,\n    template: '<div class=\"tooltip\" role=\"tooltip\">' + '<div class=\"arrow\"></div>' + '<div class=\"tooltip-inner\"></div></div>',\n    trigger: 'hover focus',\n    title: '',\n    delay: 0,\n    html: false,\n    selector: false,\n    placement: 'top',\n    offset: 0,\n    container: false,\n    fallbackPlacement: 'flip',\n    boundary: 'scrollParent'\n  };\n  var HoverState = {\n    SHOW: 'show',\n    OUT: 'out'\n  };\n  var Event$6 = {\n    HIDE: \"hide\" + EVENT_KEY$6,\n    HIDDEN: \"hidden\" + EVENT_KEY$6,\n    SHOW: \"show\" + EVENT_KEY$6,\n    SHOWN: \"shown\" + EVENT_KEY$6,\n    INSERTED: \"inserted\" + EVENT_KEY$6,\n    CLICK: \"click\" + EVENT_KEY$6,\n    FOCUSIN: \"focusin\" + EVENT_KEY$6,\n    FOCUSOUT: \"focusout\" + EVENT_KEY$6,\n    MOUSEENTER: \"mouseenter\" + EVENT_KEY$6,\n    MOUSELEAVE: \"mouseleave\" + EVENT_KEY$6\n  };\n  var ClassName$6 = {\n    FADE: 'fade',\n    SHOW: 'show'\n  };\n  var Selector$6 = {\n    TOOLTIP: '.tooltip',\n    TOOLTIP_INNER: '.tooltip-inner',\n    ARROW: '.arrow'\n  };\n  var Trigger = {\n    HOVER: 'hover',\n    FOCUS: 'focus',\n    CLICK: 'click',\n    MANUAL: 'manual'\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Tooltip =\n  /*#__PURE__*/\n  function () {\n    function Tooltip(element, config) {\n      /**\n       * Check for Popper dependency\n       * Popper - https://popper.js.org\n       */\n      if (typeof Popper === 'undefined') {\n        throw new TypeError('Bootstrap\\'s tooltips require Popper.js (https://popper.js.org/)');\n      } // private\n\n\n      this._isEnabled = true;\n      this._timeout = 0;\n      this._hoverState = '';\n      this._activeTrigger = {};\n      this._popper = null; // Protected\n\n      this.element = element;\n      this.config = this._getConfig(config);\n      this.tip = null;\n\n      this._setListeners();\n    } // Getters\n\n\n    var _proto = Tooltip.prototype;\n\n    // Public\n    _proto.enable = function enable() {\n      this._isEnabled = true;\n    };\n\n    _proto.disable = function disable() {\n      this._isEnabled = false;\n    };\n\n    _proto.toggleEnabled = function toggleEnabled() {\n      this._isEnabled = !this._isEnabled;\n    };\n\n    _proto.toggle = function toggle(event) {\n      if (!this._isEnabled) {\n        return;\n      }\n\n      if (event) {\n        var dataKey = this.constructor.DATA_KEY;\n        var context = $(event.currentTarget).data(dataKey);\n\n        if (!context) {\n          context = new this.constructor(event.currentTarget, this._getDelegateConfig());\n          $(event.currentTarget).data(dataKey, context);\n        }\n\n        context._activeTrigger.click = !context._activeTrigger.click;\n\n        if (context._isWithActiveTrigger()) {\n          context._enter(null, context);\n        } else {\n          context._leave(null, context);\n        }\n      } else {\n        if ($(this.getTipElement()).hasClass(ClassName$6.SHOW)) {\n          this._leave(null, this);\n\n          return;\n        }\n\n        this._enter(null, this);\n      }\n    };\n\n    _proto.dispose = function dispose() {\n      clearTimeout(this._timeout);\n      $.removeData(this.element, this.constructor.DATA_KEY);\n      $(this.element).off(this.constructor.EVENT_KEY);\n      $(this.element).closest('.modal').off('hide.bs.modal');\n\n      if (this.tip) {\n        $(this.tip).remove();\n      }\n\n      this._isEnabled = null;\n      this._timeout = null;\n      this._hoverState = null;\n      this._activeTrigger = null;\n\n      if (this._popper !== null) {\n        this._popper.destroy();\n      }\n\n      this._popper = null;\n      this.element = null;\n      this.config = null;\n      this.tip = null;\n    };\n\n    _proto.show = function show() {\n      var _this = this;\n\n      if ($(this.element).css('display') === 'none') {\n        throw new Error('Please use show on visible elements');\n      }\n\n      var showEvent = $.Event(this.constructor.Event.SHOW);\n\n      if (this.isWithContent() && this._isEnabled) {\n        $(this.element).trigger(showEvent);\n        var shadowRoot = Util.findShadowRoot(this.element);\n        var isInTheDom = $.contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);\n\n        if (showEvent.isDefaultPrevented() || !isInTheDom) {\n          return;\n        }\n\n        var tip = this.getTipElement();\n        var tipId = Util.getUID(this.constructor.NAME);\n        tip.setAttribute('id', tipId);\n        this.element.setAttribute('aria-describedby', tipId);\n        this.setContent();\n\n        if (this.config.animation) {\n          $(tip).addClass(ClassName$6.FADE);\n        }\n\n        var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;\n\n        var attachment = this._getAttachment(placement);\n\n        this.addAttachmentClass(attachment);\n\n        var container = this._getContainer();\n\n        $(tip).data(this.constructor.DATA_KEY, this);\n\n        if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) {\n          $(tip).appendTo(container);\n        }\n\n        $(this.element).trigger(this.constructor.Event.INSERTED);\n        this._popper = new Popper(this.element, tip, {\n          placement: attachment,\n          modifiers: {\n            offset: {\n              offset: this.config.offset\n            },\n            flip: {\n              behavior: this.config.fallbackPlacement\n            },\n            arrow: {\n              element: Selector$6.ARROW\n            },\n            preventOverflow: {\n              boundariesElement: this.config.boundary\n            }\n          },\n          onCreate: function onCreate(data) {\n            if (data.originalPlacement !== data.placement) {\n              _this._handlePopperPlacementChange(data);\n            }\n          },\n          onUpdate: function onUpdate(data) {\n            return _this._handlePopperPlacementChange(data);\n          }\n        });\n        $(tip).addClass(ClassName$6.SHOW); // If this is a touch-enabled device we add extra\n        // empty mouseover listeners to the body's immediate children;\n        // only needed because of broken event delegation on iOS\n        // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n\n        if ('ontouchstart' in document.documentElement) {\n          $(document.body).children().on('mouseover', null, $.noop);\n        }\n\n        var complete = function complete() {\n          if (_this.config.animation) {\n            _this._fixTransition();\n          }\n\n          var prevHoverState = _this._hoverState;\n          _this._hoverState = null;\n          $(_this.element).trigger(_this.constructor.Event.SHOWN);\n\n          if (prevHoverState === HoverState.OUT) {\n            _this._leave(null, _this);\n          }\n        };\n\n        if ($(this.tip).hasClass(ClassName$6.FADE)) {\n          var transitionDuration = Util.getTransitionDurationFromElement(this.tip);\n          $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);\n        } else {\n          complete();\n        }\n      }\n    };\n\n    _proto.hide = function hide(callback) {\n      var _this2 = this;\n\n      var tip = this.getTipElement();\n      var hideEvent = $.Event(this.constructor.Event.HIDE);\n\n      var complete = function complete() {\n        if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) {\n          tip.parentNode.removeChild(tip);\n        }\n\n        _this2._cleanTipClass();\n\n        _this2.element.removeAttribute('aria-describedby');\n\n        $(_this2.element).trigger(_this2.constructor.Event.HIDDEN);\n\n        if (_this2._popper !== null) {\n          _this2._popper.destroy();\n        }\n\n        if (callback) {\n          callback();\n        }\n      };\n\n      $(this.element).trigger(hideEvent);\n\n      if (hideEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      $(tip).removeClass(ClassName$6.SHOW); // If this is a touch-enabled device we remove the extra\n      // empty mouseover listeners we added for iOS support\n\n      if ('ontouchstart' in document.documentElement) {\n        $(document.body).children().off('mouseover', null, $.noop);\n      }\n\n      this._activeTrigger[Trigger.CLICK] = false;\n      this._activeTrigger[Trigger.FOCUS] = false;\n      this._activeTrigger[Trigger.HOVER] = false;\n\n      if ($(this.tip).hasClass(ClassName$6.FADE)) {\n        var transitionDuration = Util.getTransitionDurationFromElement(tip);\n        $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);\n      } else {\n        complete();\n      }\n\n      this._hoverState = '';\n    };\n\n    _proto.update = function update() {\n      if (this._popper !== null) {\n        this._popper.scheduleUpdate();\n      }\n    }; // Protected\n\n\n    _proto.isWithContent = function isWithContent() {\n      return Boolean(this.getTitle());\n    };\n\n    _proto.addAttachmentClass = function addAttachmentClass(attachment) {\n      $(this.getTipElement()).addClass(CLASS_PREFIX + \"-\" + attachment);\n    };\n\n    _proto.getTipElement = function getTipElement() {\n      this.tip = this.tip || $(this.config.template)[0];\n      return this.tip;\n    };\n\n    _proto.setContent = function setContent() {\n      var tip = this.getTipElement();\n      this.setElementContent($(tip.querySelectorAll(Selector$6.TOOLTIP_INNER)), this.getTitle());\n      $(tip).removeClass(ClassName$6.FADE + \" \" + ClassName$6.SHOW);\n    };\n\n    _proto.setElementContent = function setElementContent($element, content) {\n      var html = this.config.html;\n\n      if (typeof content === 'object' && (content.nodeType || content.jquery)) {\n        // Content is a DOM node or a jQuery\n        if (html) {\n          if (!$(content).parent().is($element)) {\n            $element.empty().append(content);\n          }\n        } else {\n          $element.text($(content).text());\n        }\n      } else {\n        $element[html ? 'html' : 'text'](content);\n      }\n    };\n\n    _proto.getTitle = function getTitle() {\n      var title = this.element.getAttribute('data-original-title');\n\n      if (!title) {\n        title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;\n      }\n\n      return title;\n    }; // Private\n\n\n    _proto._getContainer = function _getContainer() {\n      if (this.config.container === false) {\n        return document.body;\n      }\n\n      if (Util.isElement(this.config.container)) {\n        return $(this.config.container);\n      }\n\n      return $(document).find(this.config.container);\n    };\n\n    _proto._getAttachment = function _getAttachment(placement) {\n      return AttachmentMap$1[placement.toUpperCase()];\n    };\n\n    _proto._setListeners = function _setListeners() {\n      var _this3 = this;\n\n      var triggers = this.config.trigger.split(' ');\n      triggers.forEach(function (trigger) {\n        if (trigger === 'click') {\n          $(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {\n            return _this3.toggle(event);\n          });\n        } else if (trigger !== Trigger.MANUAL) {\n          var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN;\n          var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT;\n          $(_this3.element).on(eventIn, _this3.config.selector, function (event) {\n            return _this3._enter(event);\n          }).on(eventOut, _this3.config.selector, function (event) {\n            return _this3._leave(event);\n          });\n        }\n      });\n      $(this.element).closest('.modal').on('hide.bs.modal', function () {\n        if (_this3.element) {\n          _this3.hide();\n        }\n      });\n\n      if (this.config.selector) {\n        this.config = _objectSpread({}, this.config, {\n          trigger: 'manual',\n          selector: ''\n        });\n      } else {\n        this._fixTitle();\n      }\n    };\n\n    _proto._fixTitle = function _fixTitle() {\n      var titleType = typeof this.element.getAttribute('data-original-title');\n\n      if (this.element.getAttribute('title') || titleType !== 'string') {\n        this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');\n        this.element.setAttribute('title', '');\n      }\n    };\n\n    _proto._enter = function _enter(event, context) {\n      var dataKey = this.constructor.DATA_KEY;\n      context = context || $(event.currentTarget).data(dataKey);\n\n      if (!context) {\n        context = new this.constructor(event.currentTarget, this._getDelegateConfig());\n        $(event.currentTarget).data(dataKey, context);\n      }\n\n      if (event) {\n        context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;\n      }\n\n      if ($(context.getTipElement()).hasClass(ClassName$6.SHOW) || context._hoverState === HoverState.SHOW) {\n        context._hoverState = HoverState.SHOW;\n        return;\n      }\n\n      clearTimeout(context._timeout);\n      context._hoverState = HoverState.SHOW;\n\n      if (!context.config.delay || !context.config.delay.show) {\n        context.show();\n        return;\n      }\n\n      context._timeout = setTimeout(function () {\n        if (context._hoverState === HoverState.SHOW) {\n          context.show();\n        }\n      }, context.config.delay.show);\n    };\n\n    _proto._leave = function _leave(event, context) {\n      var dataKey = this.constructor.DATA_KEY;\n      context = context || $(event.currentTarget).data(dataKey);\n\n      if (!context) {\n        context = new this.constructor(event.currentTarget, this._getDelegateConfig());\n        $(event.currentTarget).data(dataKey, context);\n      }\n\n      if (event) {\n        context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false;\n      }\n\n      if (context._isWithActiveTrigger()) {\n        return;\n      }\n\n      clearTimeout(context._timeout);\n      context._hoverState = HoverState.OUT;\n\n      if (!context.config.delay || !context.config.delay.hide) {\n        context.hide();\n        return;\n      }\n\n      context._timeout = setTimeout(function () {\n        if (context._hoverState === HoverState.OUT) {\n          context.hide();\n        }\n      }, context.config.delay.hide);\n    };\n\n    _proto._isWithActiveTrigger = function _isWithActiveTrigger() {\n      for (var trigger in this._activeTrigger) {\n        if (this._activeTrigger[trigger]) {\n          return true;\n        }\n      }\n\n      return false;\n    };\n\n    _proto._getConfig = function _getConfig(config) {\n      config = _objectSpread({}, this.constructor.Default, $(this.element).data(), typeof config === 'object' && config ? config : {});\n\n      if (typeof config.delay === 'number') {\n        config.delay = {\n          show: config.delay,\n          hide: config.delay\n        };\n      }\n\n      if (typeof config.title === 'number') {\n        config.title = config.title.toString();\n      }\n\n      if (typeof config.content === 'number') {\n        config.content = config.content.toString();\n      }\n\n      Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType);\n      return config;\n    };\n\n    _proto._getDelegateConfig = function _getDelegateConfig() {\n      var config = {};\n\n      if (this.config) {\n        for (var key in this.config) {\n          if (this.constructor.Default[key] !== this.config[key]) {\n            config[key] = this.config[key];\n          }\n        }\n      }\n\n      return config;\n    };\n\n    _proto._cleanTipClass = function _cleanTipClass() {\n      var $tip = $(this.getTipElement());\n      var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);\n\n      if (tabClass !== null && tabClass.length) {\n        $tip.removeClass(tabClass.join(''));\n      }\n    };\n\n    _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {\n      var popperInstance = popperData.instance;\n      this.tip = popperInstance.popper;\n\n      this._cleanTipClass();\n\n      this.addAttachmentClass(this._getAttachment(popperData.placement));\n    };\n\n    _proto._fixTransition = function _fixTransition() {\n      var tip = this.getTipElement();\n      var initConfigAnimation = this.config.animation;\n\n      if (tip.getAttribute('x-placement') !== null) {\n        return;\n      }\n\n      $(tip).removeClass(ClassName$6.FADE);\n      this.config.animation = false;\n      this.hide();\n      this.show();\n      this.config.animation = initConfigAnimation;\n    }; // Static\n\n\n    Tooltip._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var data = $(this).data(DATA_KEY$6);\n\n        var _config = typeof config === 'object' && config;\n\n        if (!data && /dispose|hide/.test(config)) {\n          return;\n        }\n\n        if (!data) {\n          data = new Tooltip(this, _config);\n          $(this).data(DATA_KEY$6, data);\n        }\n\n        if (typeof config === 'string') {\n          if (typeof data[config] === 'undefined') {\n            throw new TypeError(\"No method named \\\"\" + config + \"\\\"\");\n          }\n\n          data[config]();\n        }\n      });\n    };\n\n    _createClass(Tooltip, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION$6;\n      }\n    }, {\n      key: \"Default\",\n      get: function get() {\n        return Default$4;\n      }\n    }, {\n      key: \"NAME\",\n      get: function get() {\n        return NAME$6;\n      }\n    }, {\n      key: \"DATA_KEY\",\n      get: function get() {\n        return DATA_KEY$6;\n      }\n    }, {\n      key: \"Event\",\n      get: function get() {\n        return Event$6;\n      }\n    }, {\n      key: \"EVENT_KEY\",\n      get: function get() {\n        return EVENT_KEY$6;\n      }\n    }, {\n      key: \"DefaultType\",\n      get: function get() {\n        return DefaultType$4;\n      }\n    }]);\n\n    return Tooltip;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n\n  $.fn[NAME$6] = Tooltip._jQueryInterface;\n  $.fn[NAME$6].Constructor = Tooltip;\n\n  $.fn[NAME$6].noConflict = function () {\n    $.fn[NAME$6] = JQUERY_NO_CONFLICT$6;\n    return Tooltip._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$7 = 'popover';\n  var VERSION$7 = '4.2.1';\n  var DATA_KEY$7 = 'bs.popover';\n  var EVENT_KEY$7 = \".\" + DATA_KEY$7;\n  var JQUERY_NO_CONFLICT$7 = $.fn[NAME$7];\n  var CLASS_PREFIX$1 = 'bs-popover';\n  var BSCLS_PREFIX_REGEX$1 = new RegExp(\"(^|\\\\s)\" + CLASS_PREFIX$1 + \"\\\\S+\", 'g');\n\n  var Default$5 = _objectSpread({}, Tooltip.Default, {\n    placement: 'right',\n    trigger: 'click',\n    content: '',\n    template: '<div class=\"popover\" role=\"tooltip\">' + '<div class=\"arrow\"></div>' + '<h3 class=\"popover-header\"></h3>' + '<div class=\"popover-body\"></div></div>'\n  });\n\n  var DefaultType$5 = _objectSpread({}, Tooltip.DefaultType, {\n    content: '(string|element|function)'\n  });\n\n  var ClassName$7 = {\n    FADE: 'fade',\n    SHOW: 'show'\n  };\n  var Selector$7 = {\n    TITLE: '.popover-header',\n    CONTENT: '.popover-body'\n  };\n  var Event$7 = {\n    HIDE: \"hide\" + EVENT_KEY$7,\n    HIDDEN: \"hidden\" + EVENT_KEY$7,\n    SHOW: \"show\" + EVENT_KEY$7,\n    SHOWN: \"shown\" + EVENT_KEY$7,\n    INSERTED: \"inserted\" + EVENT_KEY$7,\n    CLICK: \"click\" + EVENT_KEY$7,\n    FOCUSIN: \"focusin\" + EVENT_KEY$7,\n    FOCUSOUT: \"focusout\" + EVENT_KEY$7,\n    MOUSEENTER: \"mouseenter\" + EVENT_KEY$7,\n    MOUSELEAVE: \"mouseleave\" + EVENT_KEY$7\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Popover =\n  /*#__PURE__*/\n  function (_Tooltip) {\n    _inheritsLoose(Popover, _Tooltip);\n\n    function Popover() {\n      return _Tooltip.apply(this, arguments) || this;\n    }\n\n    var _proto = Popover.prototype;\n\n    // Overrides\n    _proto.isWithContent = function isWithContent() {\n      return this.getTitle() || this._getContent();\n    };\n\n    _proto.addAttachmentClass = function addAttachmentClass(attachment) {\n      $(this.getTipElement()).addClass(CLASS_PREFIX$1 + \"-\" + attachment);\n    };\n\n    _proto.getTipElement = function getTipElement() {\n      this.tip = this.tip || $(this.config.template)[0];\n      return this.tip;\n    };\n\n    _proto.setContent = function setContent() {\n      var $tip = $(this.getTipElement()); // We use append for html objects to maintain js events\n\n      this.setElementContent($tip.find(Selector$7.TITLE), this.getTitle());\n\n      var content = this._getContent();\n\n      if (typeof content === 'function') {\n        content = content.call(this.element);\n      }\n\n      this.setElementContent($tip.find(Selector$7.CONTENT), content);\n      $tip.removeClass(ClassName$7.FADE + \" \" + ClassName$7.SHOW);\n    }; // Private\n\n\n    _proto._getContent = function _getContent() {\n      return this.element.getAttribute('data-content') || this.config.content;\n    };\n\n    _proto._cleanTipClass = function _cleanTipClass() {\n      var $tip = $(this.getTipElement());\n      var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);\n\n      if (tabClass !== null && tabClass.length > 0) {\n        $tip.removeClass(tabClass.join(''));\n      }\n    }; // Static\n\n\n    Popover._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var data = $(this).data(DATA_KEY$7);\n\n        var _config = typeof config === 'object' ? config : null;\n\n        if (!data && /dispose|hide/.test(config)) {\n          return;\n        }\n\n        if (!data) {\n          data = new Popover(this, _config);\n          $(this).data(DATA_KEY$7, data);\n        }\n\n        if (typeof config === 'string') {\n          if (typeof data[config] === 'undefined') {\n            throw new TypeError(\"No method named \\\"\" + config + \"\\\"\");\n          }\n\n          data[config]();\n        }\n      });\n    };\n\n    _createClass(Popover, null, [{\n      key: \"VERSION\",\n      // Getters\n      get: function get() {\n        return VERSION$7;\n      }\n    }, {\n      key: \"Default\",\n      get: function get() {\n        return Default$5;\n      }\n    }, {\n      key: \"NAME\",\n      get: function get() {\n        return NAME$7;\n      }\n    }, {\n      key: \"DATA_KEY\",\n      get: function get() {\n        return DATA_KEY$7;\n      }\n    }, {\n      key: \"Event\",\n      get: function get() {\n        return Event$7;\n      }\n    }, {\n      key: \"EVENT_KEY\",\n      get: function get() {\n        return EVENT_KEY$7;\n      }\n    }, {\n      key: \"DefaultType\",\n      get: function get() {\n        return DefaultType$5;\n      }\n    }]);\n\n    return Popover;\n  }(Tooltip);\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n\n  $.fn[NAME$7] = Popover._jQueryInterface;\n  $.fn[NAME$7].Constructor = Popover;\n\n  $.fn[NAME$7].noConflict = function () {\n    $.fn[NAME$7] = JQUERY_NO_CONFLICT$7;\n    return Popover._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$8 = 'scrollspy';\n  var VERSION$8 = '4.2.1';\n  var DATA_KEY$8 = 'bs.scrollspy';\n  var EVENT_KEY$8 = \".\" + DATA_KEY$8;\n  var DATA_API_KEY$6 = '.data-api';\n  var JQUERY_NO_CONFLICT$8 = $.fn[NAME$8];\n  var Default$6 = {\n    offset: 10,\n    method: 'auto',\n    target: ''\n  };\n  var DefaultType$6 = {\n    offset: 'number',\n    method: 'string',\n    target: '(string|element)'\n  };\n  var Event$8 = {\n    ACTIVATE: \"activate\" + EVENT_KEY$8,\n    SCROLL: \"scroll\" + EVENT_KEY$8,\n    LOAD_DATA_API: \"load\" + EVENT_KEY$8 + DATA_API_KEY$6\n  };\n  var ClassName$8 = {\n    DROPDOWN_ITEM: 'dropdown-item',\n    DROPDOWN_MENU: 'dropdown-menu',\n    ACTIVE: 'active'\n  };\n  var Selector$8 = {\n    DATA_SPY: '[data-spy=\"scroll\"]',\n    ACTIVE: '.active',\n    NAV_LIST_GROUP: '.nav, .list-group',\n    NAV_LINKS: '.nav-link',\n    NAV_ITEMS: '.nav-item',\n    LIST_ITEMS: '.list-group-item',\n    DROPDOWN: '.dropdown',\n    DROPDOWN_ITEMS: '.dropdown-item',\n    DROPDOWN_TOGGLE: '.dropdown-toggle'\n  };\n  var OffsetMethod = {\n    OFFSET: 'offset',\n    POSITION: 'position'\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var ScrollSpy =\n  /*#__PURE__*/\n  function () {\n    function ScrollSpy(element, config) {\n      var _this = this;\n\n      this._element = element;\n      this._scrollElement = element.tagName === 'BODY' ? window : element;\n      this._config = this._getConfig(config);\n      this._selector = this._config.target + \" \" + Selector$8.NAV_LINKS + \",\" + (this._config.target + \" \" + Selector$8.LIST_ITEMS + \",\") + (this._config.target + \" \" + Selector$8.DROPDOWN_ITEMS);\n      this._offsets = [];\n      this._targets = [];\n      this._activeTarget = null;\n      this._scrollHeight = 0;\n      $(this._scrollElement).on(Event$8.SCROLL, function (event) {\n        return _this._process(event);\n      });\n      this.refresh();\n\n      this._process();\n    } // Getters\n\n\n    var _proto = ScrollSpy.prototype;\n\n    // Public\n    _proto.refresh = function refresh() {\n      var _this2 = this;\n\n      var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;\n      var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;\n      var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;\n      this._offsets = [];\n      this._targets = [];\n      this._scrollHeight = this._getScrollHeight();\n      var targets = [].slice.call(document.querySelectorAll(this._selector));\n      targets.map(function (element) {\n        var target;\n        var targetSelector = Util.getSelectorFromElement(element);\n\n        if (targetSelector) {\n          target = document.querySelector(targetSelector);\n        }\n\n        if (target) {\n          var targetBCR = target.getBoundingClientRect();\n\n          if (targetBCR.width || targetBCR.height) {\n            // TODO (fat): remove sketch reliance on jQuery position/offset\n            return [$(target)[offsetMethod]().top + offsetBase, targetSelector];\n          }\n        }\n\n        return null;\n      }).filter(function (item) {\n        return item;\n      }).sort(function (a, b) {\n        return a[0] - b[0];\n      }).forEach(function (item) {\n        _this2._offsets.push(item[0]);\n\n        _this2._targets.push(item[1]);\n      });\n    };\n\n    _proto.dispose = function dispose() {\n      $.removeData(this._element, DATA_KEY$8);\n      $(this._scrollElement).off(EVENT_KEY$8);\n      this._element = null;\n      this._scrollElement = null;\n      this._config = null;\n      this._selector = null;\n      this._offsets = null;\n      this._targets = null;\n      this._activeTarget = null;\n      this._scrollHeight = null;\n    }; // Private\n\n\n    _proto._getConfig = function _getConfig(config) {\n      config = _objectSpread({}, Default$6, typeof config === 'object' && config ? config : {});\n\n      if (typeof config.target !== 'string') {\n        var id = $(config.target).attr('id');\n\n        if (!id) {\n          id = Util.getUID(NAME$8);\n          $(config.target).attr('id', id);\n        }\n\n        config.target = \"#\" + id;\n      }\n\n      Util.typeCheckConfig(NAME$8, config, DefaultType$6);\n      return config;\n    };\n\n    _proto._getScrollTop = function _getScrollTop() {\n      return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;\n    };\n\n    _proto._getScrollHeight = function _getScrollHeight() {\n      return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);\n    };\n\n    _proto._getOffsetHeight = function _getOffsetHeight() {\n      return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;\n    };\n\n    _proto._process = function _process() {\n      var scrollTop = this._getScrollTop() + this._config.offset;\n\n      var scrollHeight = this._getScrollHeight();\n\n      var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();\n\n      if (this._scrollHeight !== scrollHeight) {\n        this.refresh();\n      }\n\n      if (scrollTop >= maxScroll) {\n        var target = this._targets[this._targets.length - 1];\n\n        if (this._activeTarget !== target) {\n          this._activate(target);\n        }\n\n        return;\n      }\n\n      if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {\n        this._activeTarget = null;\n\n        this._clear();\n\n        return;\n      }\n\n      var offsetLength = this._offsets.length;\n\n      for (var i = offsetLength; i--;) {\n        var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);\n\n        if (isActiveTarget) {\n          this._activate(this._targets[i]);\n        }\n      }\n    };\n\n    _proto._activate = function _activate(target) {\n      this._activeTarget = target;\n\n      this._clear();\n\n      var queries = this._selector.split(',').map(function (selector) {\n        return selector + \"[data-target=\\\"\" + target + \"\\\"],\" + selector + \"[href=\\\"\" + target + \"\\\"]\";\n      });\n\n      var $link = $([].slice.call(document.querySelectorAll(queries.join(','))));\n\n      if ($link.hasClass(ClassName$8.DROPDOWN_ITEM)) {\n        $link.closest(Selector$8.DROPDOWN).find(Selector$8.DROPDOWN_TOGGLE).addClass(ClassName$8.ACTIVE);\n        $link.addClass(ClassName$8.ACTIVE);\n      } else {\n        // Set triggered link as active\n        $link.addClass(ClassName$8.ACTIVE); // Set triggered links parents as active\n        // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor\n\n        $link.parents(Selector$8.NAV_LIST_GROUP).prev(Selector$8.NAV_LINKS + \", \" + Selector$8.LIST_ITEMS).addClass(ClassName$8.ACTIVE); // Handle special case when .nav-link is inside .nav-item\n\n        $link.parents(Selector$8.NAV_LIST_GROUP).prev(Selector$8.NAV_ITEMS).children(Selector$8.NAV_LINKS).addClass(ClassName$8.ACTIVE);\n      }\n\n      $(this._scrollElement).trigger(Event$8.ACTIVATE, {\n        relatedTarget: target\n      });\n    };\n\n    _proto._clear = function _clear() {\n      [].slice.call(document.querySelectorAll(this._selector)).filter(function (node) {\n        return node.classList.contains(ClassName$8.ACTIVE);\n      }).forEach(function (node) {\n        return node.classList.remove(ClassName$8.ACTIVE);\n      });\n    }; // Static\n\n\n    ScrollSpy._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var data = $(this).data(DATA_KEY$8);\n\n        var _config = typeof config === 'object' && config;\n\n        if (!data) {\n          data = new ScrollSpy(this, _config);\n          $(this).data(DATA_KEY$8, data);\n        }\n\n        if (typeof config === 'string') {\n          if (typeof data[config] === 'undefined') {\n            throw new TypeError(\"No method named \\\"\" + config + \"\\\"\");\n          }\n\n          data[config]();\n        }\n      });\n    };\n\n    _createClass(ScrollSpy, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION$8;\n      }\n    }, {\n      key: \"Default\",\n      get: function get() {\n        return Default$6;\n      }\n    }]);\n\n    return ScrollSpy;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * Data Api implementation\n   * ------------------------------------------------------------------------\n   */\n\n\n  $(window).on(Event$8.LOAD_DATA_API, function () {\n    var scrollSpys = [].slice.call(document.querySelectorAll(Selector$8.DATA_SPY));\n    var scrollSpysLength = scrollSpys.length;\n\n    for (var i = scrollSpysLength; i--;) {\n      var $spy = $(scrollSpys[i]);\n\n      ScrollSpy._jQueryInterface.call($spy, $spy.data());\n    }\n  });\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n  $.fn[NAME$8] = ScrollSpy._jQueryInterface;\n  $.fn[NAME$8].Constructor = ScrollSpy;\n\n  $.fn[NAME$8].noConflict = function () {\n    $.fn[NAME$8] = JQUERY_NO_CONFLICT$8;\n    return ScrollSpy._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$9 = 'tab';\n  var VERSION$9 = '4.2.1';\n  var DATA_KEY$9 = 'bs.tab';\n  var EVENT_KEY$9 = \".\" + DATA_KEY$9;\n  var DATA_API_KEY$7 = '.data-api';\n  var JQUERY_NO_CONFLICT$9 = $.fn[NAME$9];\n  var Event$9 = {\n    HIDE: \"hide\" + EVENT_KEY$9,\n    HIDDEN: \"hidden\" + EVENT_KEY$9,\n    SHOW: \"show\" + EVENT_KEY$9,\n    SHOWN: \"shown\" + EVENT_KEY$9,\n    CLICK_DATA_API: \"click\" + EVENT_KEY$9 + DATA_API_KEY$7\n  };\n  var ClassName$9 = {\n    DROPDOWN_MENU: 'dropdown-menu',\n    ACTIVE: 'active',\n    DISABLED: 'disabled',\n    FADE: 'fade',\n    SHOW: 'show'\n  };\n  var Selector$9 = {\n    DROPDOWN: '.dropdown',\n    NAV_LIST_GROUP: '.nav, .list-group',\n    ACTIVE: '.active',\n    ACTIVE_UL: '> li > .active',\n    DATA_TOGGLE: '[data-toggle=\"tab\"], [data-toggle=\"pill\"], [data-toggle=\"list\"]',\n    DROPDOWN_TOGGLE: '.dropdown-toggle',\n    DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Tab =\n  /*#__PURE__*/\n  function () {\n    function Tab(element) {\n      this._element = element;\n    } // Getters\n\n\n    var _proto = Tab.prototype;\n\n    // Public\n    _proto.show = function show() {\n      var _this = this;\n\n      if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(ClassName$9.ACTIVE) || $(this._element).hasClass(ClassName$9.DISABLED)) {\n        return;\n      }\n\n      var target;\n      var previous;\n      var listElement = $(this._element).closest(Selector$9.NAV_LIST_GROUP)[0];\n      var selector = Util.getSelectorFromElement(this._element);\n\n      if (listElement) {\n        var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? Selector$9.ACTIVE_UL : Selector$9.ACTIVE;\n        previous = $.makeArray($(listElement).find(itemSelector));\n        previous = previous[previous.length - 1];\n      }\n\n      var hideEvent = $.Event(Event$9.HIDE, {\n        relatedTarget: this._element\n      });\n      var showEvent = $.Event(Event$9.SHOW, {\n        relatedTarget: previous\n      });\n\n      if (previous) {\n        $(previous).trigger(hideEvent);\n      }\n\n      $(this._element).trigger(showEvent);\n\n      if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {\n        return;\n      }\n\n      if (selector) {\n        target = document.querySelector(selector);\n      }\n\n      this._activate(this._element, listElement);\n\n      var complete = function complete() {\n        var hiddenEvent = $.Event(Event$9.HIDDEN, {\n          relatedTarget: _this._element\n        });\n        var shownEvent = $.Event(Event$9.SHOWN, {\n          relatedTarget: previous\n        });\n        $(previous).trigger(hiddenEvent);\n        $(_this._element).trigger(shownEvent);\n      };\n\n      if (target) {\n        this._activate(target, target.parentNode, complete);\n      } else {\n        complete();\n      }\n    };\n\n    _proto.dispose = function dispose() {\n      $.removeData(this._element, DATA_KEY$9);\n      this._element = null;\n    }; // Private\n\n\n    _proto._activate = function _activate(element, container, callback) {\n      var _this2 = this;\n\n      var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $(container).find(Selector$9.ACTIVE_UL) : $(container).children(Selector$9.ACTIVE);\n      var active = activeElements[0];\n      var isTransitioning = callback && active && $(active).hasClass(ClassName$9.FADE);\n\n      var complete = function complete() {\n        return _this2._transitionComplete(element, active, callback);\n      };\n\n      if (active && isTransitioning) {\n        var transitionDuration = Util.getTransitionDurationFromElement(active);\n        $(active).removeClass(ClassName$9.SHOW).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);\n      } else {\n        complete();\n      }\n    };\n\n    _proto._transitionComplete = function _transitionComplete(element, active, callback) {\n      if (active) {\n        $(active).removeClass(ClassName$9.ACTIVE);\n        var dropdownChild = $(active.parentNode).find(Selector$9.DROPDOWN_ACTIVE_CHILD)[0];\n\n        if (dropdownChild) {\n          $(dropdownChild).removeClass(ClassName$9.ACTIVE);\n        }\n\n        if (active.getAttribute('role') === 'tab') {\n          active.setAttribute('aria-selected', false);\n        }\n      }\n\n      $(element).addClass(ClassName$9.ACTIVE);\n\n      if (element.getAttribute('role') === 'tab') {\n        element.setAttribute('aria-selected', true);\n      }\n\n      Util.reflow(element);\n      $(element).addClass(ClassName$9.SHOW);\n\n      if (element.parentNode && $(element.parentNode).hasClass(ClassName$9.DROPDOWN_MENU)) {\n        var dropdownElement = $(element).closest(Selector$9.DROPDOWN)[0];\n\n        if (dropdownElement) {\n          var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE));\n          $(dropdownToggleList).addClass(ClassName$9.ACTIVE);\n        }\n\n        element.setAttribute('aria-expanded', true);\n      }\n\n      if (callback) {\n        callback();\n      }\n    }; // Static\n\n\n    Tab._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var $this = $(this);\n        var data = $this.data(DATA_KEY$9);\n\n        if (!data) {\n          data = new Tab(this);\n          $this.data(DATA_KEY$9, data);\n        }\n\n        if (typeof config === 'string') {\n          if (typeof data[config] === 'undefined') {\n            throw new TypeError(\"No method named \\\"\" + config + \"\\\"\");\n          }\n\n          data[config]();\n        }\n      });\n    };\n\n    _createClass(Tab, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION$9;\n      }\n    }]);\n\n    return Tab;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * Data Api implementation\n   * ------------------------------------------------------------------------\n   */\n\n\n  $(document).on(Event$9.CLICK_DATA_API, Selector$9.DATA_TOGGLE, function (event) {\n    event.preventDefault();\n\n    Tab._jQueryInterface.call($(this), 'show');\n  });\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n  $.fn[NAME$9] = Tab._jQueryInterface;\n  $.fn[NAME$9].Constructor = Tab;\n\n  $.fn[NAME$9].noConflict = function () {\n    $.fn[NAME$9] = JQUERY_NO_CONFLICT$9;\n    return Tab._jQueryInterface;\n  };\n\n  /**\n   * ------------------------------------------------------------------------\n   * Constants\n   * ------------------------------------------------------------------------\n   */\n\n  var NAME$a = 'toast';\n  var VERSION$a = '4.2.1';\n  var DATA_KEY$a = 'bs.toast';\n  var EVENT_KEY$a = \".\" + DATA_KEY$a;\n  var JQUERY_NO_CONFLICT$a = $.fn[NAME$a];\n  var Event$a = {\n    CLICK_DISMISS: \"click.dismiss\" + EVENT_KEY$a,\n    HIDE: \"hide\" + EVENT_KEY$a,\n    HIDDEN: \"hidden\" + EVENT_KEY$a,\n    SHOW: \"show\" + EVENT_KEY$a,\n    SHOWN: \"shown\" + EVENT_KEY$a\n  };\n  var ClassName$a = {\n    FADE: 'fade',\n    HIDE: 'hide',\n    SHOW: 'show',\n    SHOWING: 'showing'\n  };\n  var DefaultType$7 = {\n    animation: 'boolean',\n    autohide: 'boolean',\n    delay: 'number'\n  };\n  var Default$7 = {\n    animation: true,\n    autohide: true,\n    delay: 500\n  };\n  var Selector$a = {\n    DATA_DISMISS: '[data-dismiss=\"toast\"]'\n    /**\n     * ------------------------------------------------------------------------\n     * Class Definition\n     * ------------------------------------------------------------------------\n     */\n\n  };\n\n  var Toast =\n  /*#__PURE__*/\n  function () {\n    function Toast(element, config) {\n      this._element = element;\n      this._config = this._getConfig(config);\n      this._timeout = null;\n\n      this._setListeners();\n    } // Getters\n\n\n    var _proto = Toast.prototype;\n\n    // Public\n    _proto.show = function show() {\n      var _this = this;\n\n      $(this._element).trigger(Event$a.SHOW);\n\n      if (this._config.animation) {\n        this._element.classList.add(ClassName$a.FADE);\n      }\n\n      var complete = function complete() {\n        _this._element.classList.remove(ClassName$a.SHOWING);\n\n        _this._element.classList.add(ClassName$a.SHOW);\n\n        $(_this._element).trigger(Event$a.SHOWN);\n\n        if (_this._config.autohide) {\n          _this.hide();\n        }\n      };\n\n      this._element.classList.remove(ClassName$a.HIDE);\n\n      this._element.classList.add(ClassName$a.SHOWING);\n\n      if (this._config.animation) {\n        var transitionDuration = Util.getTransitionDurationFromElement(this._element);\n        $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);\n      } else {\n        complete();\n      }\n    };\n\n    _proto.hide = function hide(withoutTimeout) {\n      var _this2 = this;\n\n      if (!this._element.classList.contains(ClassName$a.SHOW)) {\n        return;\n      }\n\n      $(this._element).trigger(Event$a.HIDE);\n\n      if (withoutTimeout) {\n        this._close();\n      } else {\n        this._timeout = setTimeout(function () {\n          _this2._close();\n        }, this._config.delay);\n      }\n    };\n\n    _proto.dispose = function dispose() {\n      clearTimeout(this._timeout);\n      this._timeout = null;\n\n      if (this._element.classList.contains(ClassName$a.SHOW)) {\n        this._element.classList.remove(ClassName$a.SHOW);\n      }\n\n      $(this._element).off(Event$a.CLICK_DISMISS);\n      $.removeData(this._element, DATA_KEY$a);\n      this._element = null;\n      this._config = null;\n    }; // Private\n\n\n    _proto._getConfig = function _getConfig(config) {\n      config = _objectSpread({}, Default$7, $(this._element).data(), typeof config === 'object' && config ? config : {});\n      Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType);\n      return config;\n    };\n\n    _proto._setListeners = function _setListeners() {\n      var _this3 = this;\n\n      $(this._element).on(Event$a.CLICK_DISMISS, Selector$a.DATA_DISMISS, function () {\n        return _this3.hide(true);\n      });\n    };\n\n    _proto._close = function _close() {\n      var _this4 = this;\n\n      var complete = function complete() {\n        _this4._element.classList.add(ClassName$a.HIDE);\n\n        $(_this4._element).trigger(Event$a.HIDDEN);\n      };\n\n      this._element.classList.remove(ClassName$a.SHOW);\n\n      if (this._config.animation) {\n        var transitionDuration = Util.getTransitionDurationFromElement(this._element);\n        $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);\n      } else {\n        complete();\n      }\n    }; // Static\n\n\n    Toast._jQueryInterface = function _jQueryInterface(config) {\n      return this.each(function () {\n        var $element = $(this);\n        var data = $element.data(DATA_KEY$a);\n\n        var _config = typeof config === 'object' && config;\n\n        if (!data) {\n          data = new Toast(this, _config);\n          $element.data(DATA_KEY$a, data);\n        }\n\n        if (typeof config === 'string') {\n          if (typeof data[config] === 'undefined') {\n            throw new TypeError(\"No method named \\\"\" + config + \"\\\"\");\n          }\n\n          data[config](this);\n        }\n      });\n    };\n\n    _createClass(Toast, null, [{\n      key: \"VERSION\",\n      get: function get() {\n        return VERSION$a;\n      }\n    }, {\n      key: \"DefaultType\",\n      get: function get() {\n        return DefaultType$7;\n      }\n    }]);\n\n    return Toast;\n  }();\n  /**\n   * ------------------------------------------------------------------------\n   * jQuery\n   * ------------------------------------------------------------------------\n   */\n\n\n  $.fn[NAME$a] = Toast._jQueryInterface;\n  $.fn[NAME$a].Constructor = Toast;\n\n  $.fn[NAME$a].noConflict = function () {\n    $.fn[NAME$a] = JQUERY_NO_CONFLICT$a;\n    return Toast._jQueryInterface;\n  };\n\n  /**\n   * --------------------------------------------------------------------------\n   * Bootstrap (v4.2.1): index.js\n   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n   * --------------------------------------------------------------------------\n   */\n\n  (function () {\n    if (typeof $ === 'undefined') {\n      throw new TypeError('Bootstrap\\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\\'s JavaScript.');\n    }\n\n    var version = $.fn.jquery.split(' ')[0].split('.');\n    var minMajor = 1;\n    var ltMajor = 2;\n    var minMinor = 9;\n    var minPatch = 1;\n    var maxMajor = 4;\n\n    if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {\n      throw new Error('Bootstrap\\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');\n    }\n  })();\n\n  exports.Util = Util;\n  exports.Alert = Alert;\n  exports.Button = Button;\n  exports.Carousel = Carousel;\n  exports.Collapse = Collapse;\n  exports.Dropdown = Dropdown;\n  exports.Modal = Modal;\n  exports.Popover = Popover;\n  exports.Scrollspy = ScrollSpy;\n  exports.Tab = Tab;\n  exports.Toast = Toast;\n  exports.Tooltip = Tooltip;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=bootstrap.js.map\n"
  },
  {
    "path": "student/content/mdb/js/mdb.js",
    "content": "/*!\n * Material Design for Bootstrap 4\n * Version: MDB FREE: 4.7.0\n *\n *\n * Copyright: Material Design for Bootstrap\n * https://mdbootstrap.com/\n *\n * Read the license: https://mdbootstrap.com/general/license/\n *\n *\n * Documentation: https://mdbootstrap.com/\n *\n * Getting started: https://mdbootstrap.com/docs/jquery/getting-started/download/\n *\n * Tutorials: https://mdbootstrap.com/education/bootstrap/\n *\n * Templates: https://mdbootstrap.com/templates/\n *\n * Support: https://mdbootstrap.com/forums/forum/support/\n *\n * Contact: office@mdbootstrap.com\n *\n * Attribution: Animate CSS, Twitter Bootstrap, Materialize CSS, Normalize CSS, Waves JS, WOW JS, Toastr, Chart.js , Hammer.js\n *\n */\n\n\n/*\n\n  jquery.easing.js\n  velocity.min.js\n  chart.js\n  wow.js\n  scrolling-navbar.js\n  waves.js\n  forms-free.js\n  enhanced-modals.js\n\n*/\n\n/*\n * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/\n *\n * Uses the built in easing capabilities added In jQuery 1.1\n * to offer multiple easing options\n *\n * TERMS OF USE - jQuery Easing\n *\n * Open source under the BSD License.\n *\n * Copyright © 2008 George McGinley Smith\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n *\n * Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * Neither the name of the author nor the names of contributors may be used to endorse\n * or promote products derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\n * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n * OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n*/\n\n// t: current time, b: begInnIng value, c: change In value, d: duration\njQuery.easing['jswing'] = jQuery.easing['swing'];\n\njQuery.extend( jQuery.easing,\n{\n    def: 'easeOutQuad',\n    swing: function (x, t, b, c, d) {\n        //alert(jQuery.easing.default);\n        return jQuery.easing[jQuery.easing.def](x, t, b, c, d);\n    },\n    easeInQuad: function (x, t, b, c, d) {\n        return c*(t/=d)*t + b;\n    },\n    easeOutQuad: function (x, t, b, c, d) {\n        return -c *(t/=d)*(t-2) + b;\n    },\n    easeInOutQuad: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return c/2*t*t + b;\n        return -c/2 * ((--t)*(t-2) - 1) + b;\n    },\n    easeInCubic: function (x, t, b, c, d) {\n        return c*(t/=d)*t*t + b;\n    },\n    easeOutCubic: function (x, t, b, c, d) {\n        return c*((t=t/d-1)*t*t + 1) + b;\n    },\n    easeInOutCubic: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return c/2*t*t*t + b;\n        return c/2*((t-=2)*t*t + 2) + b;\n    },\n    easeInQuart: function (x, t, b, c, d) {\n        return c*(t/=d)*t*t*t + b;\n    },\n    easeOutQuart: function (x, t, b, c, d) {\n        return -c * ((t=t/d-1)*t*t*t - 1) + b;\n    },\n    easeInOutQuart: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return c/2*t*t*t*t + b;\n        return -c/2 * ((t-=2)*t*t*t - 2) + b;\n    },\n    easeInQuint: function (x, t, b, c, d) {\n        return c*(t/=d)*t*t*t*t + b;\n    },\n    easeOutQuint: function (x, t, b, c, d) {\n        return c*((t=t/d-1)*t*t*t*t + 1) + b;\n    },\n    easeInOutQuint: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;\n        return c/2*((t-=2)*t*t*t*t + 2) + b;\n    },\n    easeInSine: function (x, t, b, c, d) {\n        return -c * Math.cos(t/d * (Math.PI/2)) + c + b;\n    },\n    easeOutSine: function (x, t, b, c, d) {\n        return c * Math.sin(t/d * (Math.PI/2)) + b;\n    },\n    easeInOutSine: function (x, t, b, c, d) {\n        return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;\n    },\n    easeInExpo: function (x, t, b, c, d) {\n        return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;\n    },\n    easeOutExpo: function (x, t, b, c, d) {\n        return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;\n    },\n    easeInOutExpo: function (x, t, b, c, d) {\n        if (t==0) return b;\n        if (t==d) return b+c;\n        if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;\n        return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;\n    },\n    easeInCirc: function (x, t, b, c, d) {\n        return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;\n    },\n    easeOutCirc: function (x, t, b, c, d) {\n        return c * Math.sqrt(1 - (t=t/d-1)*t) + b;\n    },\n    easeInOutCirc: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;\n        return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;\n    },\n    easeInElastic: function (x, t, b, c, d) {\n        var s=1.70158;var p=0;var a=c;\n        if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;\n        if (a < Math.abs(c)) { a=c; var s=p/4; }\n        else var s = p/(2*Math.PI) * Math.asin (c/a);\n        return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\n    },\n    easeOutElastic: function (x, t, b, c, d) {\n        var s=1.70158;var p=0;var a=c;\n        if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;\n        if (a < Math.abs(c)) { a=c; var s=p/4; }\n        else var s = p/(2*Math.PI) * Math.asin (c/a);\n        return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;\n    },\n    easeInOutElastic: function (x, t, b, c, d) {\n        var s=1.70158;var p=0;var a=c;\n        if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);\n        if (a < Math.abs(c)) { a=c; var s=p/4; }\n        else var s = p/(2*Math.PI) * Math.asin (c/a);\n        if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\n        return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;\n    },\n    easeInBack: function (x, t, b, c, d, s) {\n        if (s == undefined) s = 1.70158;\n        return c*(t/=d)*t*((s+1)*t - s) + b;\n    },\n    easeOutBack: function (x, t, b, c, d, s) {\n        if (s == undefined) s = 1.70158;\n        return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;\n    },\n    easeInOutBack: function (x, t, b, c, d, s) {\n        if (s == undefined) s = 1.70158;\n        if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;\n        return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;\n    },\n    easeInBounce: function (x, t, b, c, d) {\n        return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;\n    },\n    easeOutBounce: function (x, t, b, c, d) {\n        if ((t/=d) < (1/2.75)) {\n            return c*(7.5625*t*t) + b;\n        } else if (t < (2/2.75)) {\n            return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;\n        } else if (t < (2.5/2.75)) {\n            return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;\n        } else {\n            return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;\n        }\n    },\n    easeInOutBounce: function (x, t, b, c, d) {\n        if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;\n        return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;\n    }\n});\n\n/*\n *\n * TERMS OF USE - EASING EQUATIONS\n *\n * Open source under the BSD License.\n *\n * Copyright © 2001 Robert Penner\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n *\n * Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * Neither the name of the author nor the names of contributors may be used to endorse\n * or promote products derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\n * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n * OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n */\n/*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */\n/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */\n/*! Note that this has been modified by Materialize to confirm that Velocity is not already being imported. */\njQuery.Velocity?console.log(\"Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity.\"):(!function(e){function t(e){var t=e.length,a=r.type(e);return\"function\"===a||r.isWindow(e)?!1:1===e.nodeType&&t?!0:\"array\"===a||0===t||\"number\"==typeof t&&t>0&&t-1 in e}if(!e.jQuery){var r=function(e,t){return new r.fn.init(e,t)};r.isWindow=function(e){return null!=e&&e==e.window},r.type=function(e){return null==e?e+\"\":\"object\"==typeof e||\"function\"==typeof e?n[i.call(e)]||\"object\":typeof e},r.isArray=Array.isArray||function(e){return\"array\"===r.type(e)},r.isPlainObject=function(e){var t;if(!e||\"object\"!==r.type(e)||e.nodeType||r.isWindow(e))return!1;try{if(e.constructor&&!o.call(e,\"constructor\")&&!o.call(e.constructor.prototype,\"isPrototypeOf\"))return!1}catch(a){return!1}for(t in e);return void 0===t||o.call(e,t)},r.each=function(e,r,a){var n,o=0,i=e.length,s=t(e);if(a){if(s)for(;i>o&&(n=r.apply(e[o],a),n!==!1);o++);else for(o in e)if(n=r.apply(e[o],a),n===!1)break}else if(s)for(;i>o&&(n=r.call(e[o],o,e[o]),n!==!1);o++);else for(o in e)if(n=r.call(e[o],o,e[o]),n===!1)break;return e},r.data=function(e,t,n){if(void 0===n){var o=e[r.expando],i=o&&a[o];if(void 0===t)return i;if(i&&t in i)return i[t]}else if(void 0!==t){var o=e[r.expando]||(e[r.expando]=++r.uuid);return a[o]=a[o]||{},a[o][t]=n,n}},r.removeData=function(e,t){var n=e[r.expando],o=n&&a[n];o&&r.each(t,function(e,t){delete o[t]})},r.extend=function(){var e,t,a,n,o,i,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for(\"boolean\"==typeof s&&(c=s,s=arguments[l]||{},l++),\"object\"!=typeof s&&\"function\"!==r.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(o=arguments[l]))for(n in o)e=s[n],a=o[n],s!==a&&(c&&a&&(r.isPlainObject(a)||(t=r.isArray(a)))?(t?(t=!1,i=e&&r.isArray(e)?e:[]):i=e&&r.isPlainObject(e)?e:{},s[n]=r.extend(c,i,a)):void 0!==a&&(s[n]=a));return s},r.queue=function(e,a,n){function o(e,r){var a=r||[];return null!=e&&(t(Object(e))?!function(e,t){for(var r=+t.length,a=0,n=e.length;r>a;)e[n++]=t[a++];if(r!==r)for(;void 0!==t[a];)e[n++]=t[a++];return e.length=n,e}(a,\"string\"==typeof e?[e]:e):[].push.call(a,e)),a}if(e){a=(a||\"fx\")+\"queue\";var i=r.data(e,a);return n?(!i||r.isArray(n)?i=r.data(e,a,o(n)):i.push(n),i):i||[]}},r.dequeue=function(e,t){r.each(e.nodeType?[e]:e,function(e,a){t=t||\"fx\";var n=r.queue(a,t),o=n.shift();\"inprogress\"===o&&(o=n.shift()),o&&(\"fx\"===t&&n.unshift(\"inprogress\"),o.call(a,function(){r.dequeue(a,t)}))})},r.fn=r.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error(\"Not a DOM node.\")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&\"html\"===!e.nodeType.toLowerCase&&\"static\"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),a=this.offset(),n=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:r(e).offset();return a.top-=parseFloat(t.style.marginTop)||0,a.left-=parseFloat(t.style.marginLeft)||0,e.style&&(n.top+=parseFloat(e.style.borderTopWidth)||0,n.left+=parseFloat(e.style.borderLeftWidth)||0),{top:a.top-n.top,left:a.left-n.left}}};var a={};r.expando=\"velocity\"+(new Date).getTime(),r.uuid=0;for(var n={},o=n.hasOwnProperty,i=n.toString,s=\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),l=0;l<s.length;l++)n[\"[object \"+s[l]+\"]\"]=s[l].toLowerCase();r.fn.init.prototype=r.fn,e.Velocity={Utilities:r}}}(window),function(e){\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=e():\"function\"==typeof define&&define.amd?define(e):e()}(function(){return function(e,t,r,a){function n(e){for(var t=-1,r=e?e.length:0,a=[];++t<r;){var n=e[t];n&&a.push(n)}return a}function o(e){return m.isWrapped(e)?e=[].slice.call(e):m.isNode(e)&&(e=[e]),e}function i(e){var t=f.data(e,\"velocity\");return null===t?a:t}function s(e){return function(t){return Math.round(t*e)*(1/e)}}function l(e,r,a,n){function o(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((o(t,r)*e+i(t,r))*e+s(t))*e}function u(e,t,r){return 3*o(t,r)*e*e+2*i(t,r)*e+s(t)}function c(t,r){for(var n=0;m>n;++n){var o=u(r,e,a);if(0===o)return r;var i=l(r,e,a)-t;r-=i/o}return r}function p(){for(var t=0;b>t;++t)w[t]=l(t*x,e,a)}function f(t,r,n){var o,i,s=0;do i=r+(n-r)/2,o=l(i,e,a)-t,o>0?n=i:r=i;while(Math.abs(o)>h&&++s<v);return i}function d(t){for(var r=0,n=1,o=b-1;n!=o&&w[n]<=t;++n)r+=x;--n;var i=(t-w[n])/(w[n+1]-w[n]),s=r+i*x,l=u(s,e,a);return l>=y?c(t,s):0==l?s:f(t,r,r+x)}function g(){V=!0,(e!=r||a!=n)&&p()}var m=4,y=.001,h=1e-7,v=10,b=11,x=1/(b-1),S=\"Float32Array\"in t;if(4!==arguments.length)return!1;for(var P=0;4>P;++P)if(\"number\"!=typeof arguments[P]||isNaN(arguments[P])||!isFinite(arguments[P]))return!1;e=Math.min(e,1),a=Math.min(a,1),e=Math.max(e,0),a=Math.max(a,0);var w=S?new Float32Array(b):new Array(b),V=!1,C=function(t){return V||g(),e===r&&a===n?t:0===t?0:1===t?1:l(d(t),r,n)};C.getControlPoints=function(){return[{x:e,y:r},{x:a,y:n}]};var T=\"generateBezier(\"+[e,r,a,n]+\")\";return C.toString=function(){return T},C}function u(e,t){var r=e;return m.isString(e)?b.Easings[e]||(r=!1):r=m.isArray(e)&&1===e.length?s.apply(null,e):m.isArray(e)&&2===e.length?x.apply(null,e.concat([t])):m.isArray(e)&&4===e.length?l.apply(null,e):!1,r===!1&&(r=b.Easings[b.defaults.easing]?b.defaults.easing:v),r}function c(e){if(e){var t=(new Date).getTime(),r=b.State.calls.length;r>1e4&&(b.State.calls=n(b.State.calls));for(var o=0;r>o;o++)if(b.State.calls[o]){var s=b.State.calls[o],l=s[0],u=s[2],d=s[3],g=!!d,y=null;d||(d=b.State.calls[o][3]=t-16);for(var h=Math.min((t-d)/u.duration,1),v=0,x=l.length;x>v;v++){var P=l[v],V=P.element;if(i(V)){var C=!1;if(u.display!==a&&null!==u.display&&\"none\"!==u.display){if(\"flex\"===u.display){var T=[\"-webkit-box\",\"-moz-box\",\"-ms-flexbox\",\"-webkit-flex\"];f.each(T,function(e,t){S.setPropertyValue(V,\"display\",t)})}S.setPropertyValue(V,\"display\",u.display)}u.visibility!==a&&\"hidden\"!==u.visibility&&S.setPropertyValue(V,\"visibility\",u.visibility);for(var k in P)if(\"element\"!==k){var A,F=P[k],j=m.isString(F.easing)?b.Easings[F.easing]:F.easing;if(1===h)A=F.endValue;else{var E=F.endValue-F.startValue;if(A=F.startValue+E*j(h,u,E),!g&&A===F.currentValue)continue}if(F.currentValue=A,\"tween\"===k)y=A;else{if(S.Hooks.registered[k]){var H=S.Hooks.getRoot(k),N=i(V).rootPropertyValueCache[H];N&&(F.rootPropertyValue=N)}var L=S.setPropertyValue(V,k,F.currentValue+(0===parseFloat(A)?\"\":F.unitType),F.rootPropertyValue,F.scrollData);S.Hooks.registered[k]&&(i(V).rootPropertyValueCache[H]=S.Normalizations.registered[H]?S.Normalizations.registered[H](\"extract\",null,L[1]):L[1]),\"transform\"===L[0]&&(C=!0)}}u.mobileHA&&i(V).transformCache.translate3d===a&&(i(V).transformCache.translate3d=\"(0px, 0px, 0px)\",C=!0),C&&S.flushTransformCache(V)}}u.display!==a&&\"none\"!==u.display&&(b.State.calls[o][2].display=!1),u.visibility!==a&&\"hidden\"!==u.visibility&&(b.State.calls[o][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],h,Math.max(0,d+u.duration-t),d,y),1===h&&p(o)}}b.State.isTicking&&w(c)}function p(e,t){if(!b.State.calls[e])return!1;for(var r=b.State.calls[e][0],n=b.State.calls[e][1],o=b.State.calls[e][2],s=b.State.calls[e][4],l=!1,u=0,c=r.length;c>u;u++){var p=r[u].element;if(t||o.loop||(\"none\"===o.display&&S.setPropertyValue(p,\"display\",o.display),\"hidden\"===o.visibility&&S.setPropertyValue(p,\"visibility\",o.visibility)),o.loop!==!0&&(f.queue(p)[1]===a||!/\\.velocityQueueEntryFlag/i.test(f.queue(p)[1]))&&i(p)){i(p).isAnimating=!1,i(p).rootPropertyValueCache={};var d=!1;f.each(S.Lists.transforms3D,function(e,t){var r=/^scale/.test(t)?1:0,n=i(p).transformCache[t];i(p).transformCache[t]!==a&&new RegExp(\"^\\\\(\"+r+\"[^.]\").test(n)&&(d=!0,delete i(p).transformCache[t])}),o.mobileHA&&(d=!0,delete i(p).transformCache.translate3d),d&&S.flushTransformCache(p),S.Values.removeClass(p,\"velocity-animating\")}if(!t&&o.complete&&!o.loop&&u===c-1)try{o.complete.call(n,n)}catch(g){setTimeout(function(){throw g},1)}s&&o.loop!==!0&&s(n),i(p)&&o.loop===!0&&!t&&(f.each(i(p).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&\"%\"===t.unitType&&(t.endValue=0,t.startValue=100)}),b(p,\"reverse\",{loop:!0,delay:o.delay})),o.queue!==!1&&f.dequeue(p,o.queue)}b.State.calls[e]=!1;for(var m=0,y=b.State.calls.length;y>m;m++)if(b.State.calls[m]!==!1){l=!0;break}l===!1&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var f,d=function(){if(r.documentMode)return r.documentMode;for(var e=7;e>4;e--){var t=r.createElement(\"div\");if(t.innerHTML=\"<!--[if IE \"+e+\"]><span></span><![endif]-->\",t.getElementsByTagName(\"span\").length)return t=null,e}return a}(),g=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var r,a=(new Date).getTime();return r=Math.max(0,16-(a-e)),e=a+r,setTimeout(function(){t(a+r)},r)}}(),m={isString:function(e){return\"string\"==typeof e},isArray:Array.isArray||function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},isFunction:function(e){return\"[object Function]\"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return\"object\"==typeof e&&/^\\[object (HTMLCollection|NodeList|Object)\\]$/.test(Object.prototype.toString.call(e))&&e.length!==a&&(0===e.length||\"object\"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},y=!1;if(e.fn&&e.fn.jquery?(f=e,y=!0):f=t.Velocity.Utilities,8>=d&&!y)throw new Error(\"Velocity: IE8 and below require jQuery to be loaded before Velocity.\");if(7>=d)return void(jQuery.fn.velocity=jQuery.fn.animate);var h=400,v=\"swing\",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\\.3\\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:r.createElement(\"div\"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:f,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:\"\",duration:h,easing:v,begin:a,complete:a,progress:a,display:a,visibility:a,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){f.data(e,\"velocity\",{isSVG:m.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==a?(b.State.scrollAnchor=t,b.State.scrollPropertyLeft=\"pageXOffset\",b.State.scrollPropertyTop=\"pageYOffset\"):(b.State.scrollAnchor=r.documentElement||r.body.parentNode||r.body,b.State.scrollPropertyLeft=\"scrollLeft\",b.State.scrollPropertyTop=\"scrollTop\");var x=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,a){var n={x:t.x+a.dx*r,v:t.v+a.dv*r,tension:t.tension,friction:t.friction};return{dx:n.v,dv:e(n)}}function r(r,a){var n={dx:r.v,dv:e(r)},o=t(r,.5*a,n),i=t(r,.5*a,o),s=t(r,a,i),l=1/6*(n.dx+2*(o.dx+i.dx)+s.dx),u=1/6*(n.dv+2*(o.dv+i.dv)+s.dv);return r.x=r.x+l*a,r.v=r.v+u*a,r}return function a(e,t,n){var o,i,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,p=1e-4,f=.016;for(e=parseFloat(e)||500,t=parseFloat(t)||20,n=n||null,l.tension=e,l.friction=t,o=null!==n,o?(c=a(e,t),i=c/n*f):i=f;s=r(s||l,i),u.push(1+s.x),c+=16,Math.abs(s.x)>p&&Math.abs(s.v)>p;);return o?function(e){return u[e*(u.length-1)|0]}:c}}();b.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},f.each([[\"ease\",[.25,.1,.25,1]],[\"ease-in\",[.42,0,1,1]],[\"ease-out\",[0,0,.58,1]],[\"ease-in-out\",[.42,0,.58,1]],[\"easeInSine\",[.47,0,.745,.715]],[\"easeOutSine\",[.39,.575,.565,1]],[\"easeInOutSine\",[.445,.05,.55,.95]],[\"easeInQuad\",[.55,.085,.68,.53]],[\"easeOutQuad\",[.25,.46,.45,.94]],[\"easeInOutQuad\",[.455,.03,.515,.955]],[\"easeInCubic\",[.55,.055,.675,.19]],[\"easeOutCubic\",[.215,.61,.355,1]],[\"easeInOutCubic\",[.645,.045,.355,1]],[\"easeInQuart\",[.895,.03,.685,.22]],[\"easeOutQuart\",[.165,.84,.44,1]],[\"easeInOutQuart\",[.77,0,.175,1]],[\"easeInQuint\",[.755,.05,.855,.06]],[\"easeOutQuint\",[.23,1,.32,1]],[\"easeInOutQuint\",[.86,0,.07,1]],[\"easeInExpo\",[.95,.05,.795,.035]],[\"easeOutExpo\",[.19,1,.22,1]],[\"easeInOutExpo\",[1,0,0,1]],[\"easeInCirc\",[.6,.04,.98,.335]],[\"easeOutCirc\",[.075,.82,.165,1]],[\"easeInOutCirc\",[.785,.135,.15,.86]]],function(e,t){b.Easings[t[0]]=l.apply(null,t[1])});var S=b.CSS={RegEx:{isHex:/^#([A-f\\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\\((.*)\\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\\(.+\\))|(([A-z0-9#-.]+?)(?=\\s|$))/gi},Lists:{colors:[\"fill\",\"stroke\",\"stopColor\",\"color\",\"backgroundColor\",\"borderColor\",\"borderTopColor\",\"borderRightColor\",\"borderBottomColor\",\"borderLeftColor\",\"outlineColor\"],transformsBase:[\"translateX\",\"translateY\",\"scale\",\"scaleX\",\"scaleY\",\"skewX\",\"skewY\",\"rotateZ\"],transforms3D:[\"transformPerspective\",\"translateZ\",\"scaleZ\",\"rotateX\",\"rotateY\"]},Hooks:{templates:{textShadow:[\"Color X Y Blur\",\"black 0px 0px 0px\"],boxShadow:[\"Color X Y Blur Spread\",\"black 0px 0px 0px 0px\"],clip:[\"Top Right Bottom Left\",\"0px 0px 0px 0px\"],backgroundPosition:[\"X Y\",\"0% 0%\"],transformOrigin:[\"X Y Z\",\"50% 50% 0px\"],perspectiveOrigin:[\"X Y\",\"50% 50%\"]},registered:{},register:function(){for(var e=0;e<S.Lists.colors.length;e++){var t=\"color\"===S.Lists.colors[e]?\"0 0 0 1\":\"255 255 255 1\";S.Hooks.templates[S.Lists.colors[e]]=[\"Red Green Blue Alpha\",t]}var r,a,n;if(d)for(r in S.Hooks.templates){a=S.Hooks.templates[r],n=a[0].split(\" \");var o=a[1].match(S.RegEx.valueSplit);\"Color\"===n[0]&&(n.push(n.shift()),o.push(o.shift()),S.Hooks.templates[r]=[n.join(\" \"),o.join(\" \")])}for(r in S.Hooks.templates){a=S.Hooks.templates[r],n=a[0].split(\" \");for(var e in n){var i=r+n[e],s=e;S.Hooks.registered[i]=[r,s]}}},getRoot:function(e){var t=S.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return S.RegEx.valueUnwrap.test(t)&&(t=t.match(S.RegEx.valueUnwrap)[1]),S.Values.isCSSNullValue(t)&&(t=S.Hooks.templates[e][1]),t},extractValue:function(e,t){var r=S.Hooks.registered[e];if(r){var a=r[0],n=r[1];return t=S.Hooks.cleanRootPropertyValue(a,t),t.toString().match(S.RegEx.valueSplit)[n]}return t},injectValue:function(e,t,r){var a=S.Hooks.registered[e];if(a){var n,o,i=a[0],s=a[1];return r=S.Hooks.cleanRootPropertyValue(i,r),n=r.toString().match(S.RegEx.valueSplit),n[s]=t,o=n.join(\" \")}return r}},Normalizations:{registered:{clip:function(e,t,r){switch(e){case\"name\":return\"clip\";case\"extract\":var a;return S.RegEx.wrappedValueAlreadyExtracted.test(r)?a=r:(a=r.toString().match(S.RegEx.valueUnwrap),a=a?a[1].replace(/,(\\s+)?/g,\" \"):r),a;case\"inject\":return\"rect(\"+r+\")\"}},blur:function(e,t,r){switch(e){case\"name\":return b.State.isFirefox?\"filter\":\"-webkit-filter\";case\"extract\":var a=parseFloat(r);if(!a&&0!==a){var n=r.toString().match(/blur\\(([0-9]+[A-z]+)\\)/i);a=n?n[1]:0}return a;case\"inject\":return parseFloat(r)?\"blur(\"+r+\")\":\"none\"}},opacity:function(e,t,r){if(8>=d)switch(e){case\"name\":return\"filter\";case\"extract\":var a=r.toString().match(/alpha\\(opacity=(.*)\\)/i);return r=a?a[1]/100:1;case\"inject\":return t.style.zoom=1,parseFloat(r)>=1?\"\":\"alpha(opacity=\"+parseInt(100*parseFloat(r),10)+\")\"}else switch(e){case\"name\":return\"opacity\";case\"extract\":return r;case\"inject\":return r}}},register:function(){9>=d||b.State.isGingerbread||(S.Lists.transformsBase=S.Lists.transformsBase.concat(S.Lists.transforms3D));for(var e=0;e<S.Lists.transformsBase.length;e++)!function(){var t=S.Lists.transformsBase[e];S.Normalizations.registered[t]=function(e,r,n){switch(e){case\"name\":return\"transform\";case\"extract\":return i(r)===a||i(r).transformCache[t]===a?/^scale/i.test(t)?1:0:i(r).transformCache[t].replace(/[()]/g,\"\");case\"inject\":var o=!1;switch(t.substr(0,t.length-1)){case\"translate\":o=!/(%|px|em|rem|vw|vh|\\d)$/i.test(n);break;case\"scal\":case\"scale\":b.State.isAndroid&&i(r).transformCache[t]===a&&1>n&&(n=1),o=!/(\\d)$/i.test(n);break;case\"skew\":o=!/(deg|\\d)$/i.test(n);break;case\"rotate\":o=!/(deg|\\d)$/i.test(n)}return o||(i(r).transformCache[t]=\"(\"+n+\")\"),i(r).transformCache[t]}}}();for(var e=0;e<S.Lists.colors.length;e++)!function(){var t=S.Lists.colors[e];S.Normalizations.registered[t]=function(e,r,n){switch(e){case\"name\":return t;case\"extract\":var o;if(S.RegEx.wrappedValueAlreadyExtracted.test(n))o=n;else{var i,s={black:\"rgb(0, 0, 0)\",blue:\"rgb(0, 0, 255)\",gray:\"rgb(128, 128, 128)\",green:\"rgb(0, 128, 0)\",red:\"rgb(255, 0, 0)\",white:\"rgb(255, 255, 255)\"};/^[A-z]+$/i.test(n)?i=s[n]!==a?s[n]:s.black:S.RegEx.isHex.test(n)?i=\"rgb(\"+S.Values.hexToRgb(n).join(\" \")+\")\":/^rgba?\\(/i.test(n)||(i=s.black),o=(i||n).toString().match(S.RegEx.valueUnwrap)[1].replace(/,(\\s+)?/g,\" \")}return 8>=d||3!==o.split(\" \").length||(o+=\" 1\"),o;case\"inject\":return 8>=d?4===n.split(\" \").length&&(n=n.split(/\\s+/).slice(0,3).join(\" \")):3===n.split(\" \").length&&(n+=\" 1\"),(8>=d?\"rgb\":\"rgba\")+\"(\"+n.replace(/\\s+/g,\",\").replace(/\\.(\\d)+(?=,)/g,\"\")+\")\"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t=\"width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2\";return(d||b.State.isAndroid&&!b.State.isChrome)&&(t+=\"|transform\"),new RegExp(\"^(\"+t+\")$\",\"i\").test(e)},prefixCheck:function(e){if(b.State.prefixMatches[e])return[b.State.prefixMatches[e],!0];for(var t=[\"\",\"Webkit\",\"Moz\",\"ms\",\"O\"],r=0,a=t.length;a>r;r++){var n;if(n=0===r?e:t[r]+e.replace(/^\\w/,function(e){return e.toUpperCase()}),m.isString(b.State.prefixElement.style[n]))return b.State.prefixMatches[e]=n,[n,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t,r=/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,a=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i;return e=e.replace(r,function(e,t,r,a){return t+t+r+r+a+a}),t=a.exec(e),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\\(0, ?0, ?0, ?0\\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?\"deg\":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?\"\":\"px\"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?\"inline\":/^(li)$/i.test(t)?\"list-item\":/^(tr)$/i.test(t)?\"table-row\":/^(table)$/i.test(t)?\"table\":/^(tbody)$/i.test(t)?\"table-row-group\":\"block\"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?\" \":\"\")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp(\"(^|\\\\s)\"+t.split(\" \").join(\"|\")+\"(\\\\s|$)\",\"gi\"),\" \")}},getPropertyValue:function(e,r,n,o){function s(e,r){function n(){u&&S.setPropertyValue(e,\"display\",\"none\")}var l=0;if(8>=d)l=f.css(e,r);else{var u=!1;if(/^(width|height)$/.test(r)&&0===S.getPropertyValue(e,\"display\")&&(u=!0,S.setPropertyValue(e,\"display\",S.Values.getDisplayType(e))),!o){if(\"height\"===r&&\"border-box\"!==S.getPropertyValue(e,\"boxSizing\").toString().toLowerCase()){var c=e.offsetHeight-(parseFloat(S.getPropertyValue(e,\"borderTopWidth\"))||0)-(parseFloat(S.getPropertyValue(e,\"borderBottomWidth\"))||0)-(parseFloat(S.getPropertyValue(e,\"paddingTop\"))||0)-(parseFloat(S.getPropertyValue(e,\"paddingBottom\"))||0);return n(),c}if(\"width\"===r&&\"border-box\"!==S.getPropertyValue(e,\"boxSizing\").toString().toLowerCase()){var p=e.offsetWidth-(parseFloat(S.getPropertyValue(e,\"borderLeftWidth\"))||0)-(parseFloat(S.getPropertyValue(e,\"borderRightWidth\"))||0)-(parseFloat(S.getPropertyValue(e,\"paddingLeft\"))||0)-(parseFloat(S.getPropertyValue(e,\"paddingRight\"))||0);return n(),p}}var g;g=i(e)===a?t.getComputedStyle(e,null):i(e).computedStyle?i(e).computedStyle:i(e).computedStyle=t.getComputedStyle(e,null),\"borderColor\"===r&&(r=\"borderTopColor\"),l=9===d&&\"filter\"===r?g.getPropertyValue(r):g[r],(\"\"===l||null===l)&&(l=e.style[r]),n()}if(\"auto\"===l&&/^(top|right|bottom|left)$/i.test(r)){var m=s(e,\"position\");(\"fixed\"===m||\"absolute\"===m&&/top|left/i.test(r))&&(l=f(e).position()[r]+\"px\")}return l}var l;if(S.Hooks.registered[r]){var u=r,c=S.Hooks.getRoot(u);n===a&&(n=S.getPropertyValue(e,S.Names.prefixCheck(c)[0])),S.Normalizations.registered[c]&&(n=S.Normalizations.registered[c](\"extract\",e,n)),l=S.Hooks.extractValue(u,n)}else if(S.Normalizations.registered[r]){var p,g;p=S.Normalizations.registered[r](\"name\",e),\"transform\"!==p&&(g=s(e,S.Names.prefixCheck(p)[0]),S.Values.isCSSNullValue(g)&&S.Hooks.templates[r]&&(g=S.Hooks.templates[r][1])),l=S.Normalizations.registered[r](\"extract\",e,g)}if(!/^[\\d-]/.test(l))if(i(e)&&i(e).isSVG&&S.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(m){l=0}else l=e.getAttribute(r);else l=s(e,S.Names.prefixCheck(r)[0]);return S.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&console.log(\"Get \"+r+\": \"+l),l},setPropertyValue:function(e,r,a,n,o){var s=r;if(\"scroll\"===r)o.container?o.container[\"scroll\"+o.direction]=a:\"Left\"===o.direction?t.scrollTo(a,o.alternateValue):t.scrollTo(o.alternateValue,a);else if(S.Normalizations.registered[r]&&\"transform\"===S.Normalizations.registered[r](\"name\",e))S.Normalizations.registered[r](\"inject\",e,a),s=\"transform\",a=i(e).transformCache[r];else{if(S.Hooks.registered[r]){var l=r,u=S.Hooks.getRoot(r);n=n||S.getPropertyValue(e,u),a=S.Hooks.injectValue(l,a,n),r=u}if(S.Normalizations.registered[r]&&(a=S.Normalizations.registered[r](\"inject\",e,a),r=S.Normalizations.registered[r](\"name\",e)),s=S.Names.prefixCheck(r)[0],8>=d)try{e.style[s]=a}catch(c){b.debug&&console.log(\"Browser does not support [\"+a+\"] for [\"+s+\"]\")}else i(e)&&i(e).isSVG&&S.Names.SVGAttribute(r)?e.setAttribute(r,a):e.style[s]=a;b.debug>=2&&console.log(\"Set \"+r+\" (\"+s+\"): \"+a)}return[s,a]},flushTransformCache:function(e){function t(t){return parseFloat(S.getPropertyValue(e,t))}var r=\"\";if((d||b.State.isAndroid&&!b.State.isChrome)&&i(e).isSVG){var a={translate:[t(\"translateX\"),t(\"translateY\")],skewX:[t(\"skewX\")],skewY:[t(\"skewY\")],scale:1!==t(\"scale\")?[t(\"scale\"),t(\"scale\")]:[t(\"scaleX\"),t(\"scaleY\")],rotate:[t(\"rotateZ\"),0,0]};f.each(i(e).transformCache,function(e){/^translate/i.test(e)?e=\"translate\":/^scale/i.test(e)?e=\"scale\":/^rotate/i.test(e)&&(e=\"rotate\"),a[e]&&(r+=e+\"(\"+a[e].join(\" \")+\") \",delete a[e])})}else{var n,o;f.each(i(e).transformCache,function(t){return n=i(e).transformCache[t],\"transformPerspective\"===t?(o=n,!0):(9===d&&\"rotateZ\"===t&&(t=\"rotate\"),void(r+=t+n+\" \"))}),o&&(r=\"perspective\"+o+\" \"+r)}S.setPropertyValue(e,\"transform\",r)}};S.Hooks.register(),S.Normalizations.register(),b.hook=function(e,t,r){var n=a;return e=o(e),f.each(e,function(e,o){if(i(o)===a&&b.init(o),r===a)n===a&&(n=b.CSS.getPropertyValue(o,t));else{var s=b.CSS.setPropertyValue(o,t,r);\"transform\"===s[0]&&b.CSS.flushTransformCache(o),n=s}}),n};var P=function(){function e(){return s?k.promise||null:l}function n(){function e(e){function p(e,t){var r=a,n=a,i=a;return m.isArray(e)?(r=e[0],!m.isArray(e[1])&&/^[\\d-]/.test(e[1])||m.isFunction(e[1])||S.RegEx.isHex.test(e[1])?i=e[1]:(m.isString(e[1])&&!S.RegEx.isHex.test(e[1])||m.isArray(e[1]))&&(n=t?e[1]:u(e[1],s.duration),e[2]!==a&&(i=e[2]))):r=e,t||(n=n||s.easing),m.isFunction(r)&&(r=r.call(o,V,w)),m.isFunction(i)&&(i=i.call(o,V,w)),[r||0,n,i]}function d(e,t){var r,a;return a=(t||\"0\").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return r=e,\"\"}),r||(r=S.Values.getUnitType(e)),[a,r]}function h(){var e={myParent:o.parentNode||r.body,position:S.getPropertyValue(o,\"position\"),fontSize:S.getPropertyValue(o,\"fontSize\")},a=e.position===L.lastPosition&&e.myParent===L.lastParent,n=e.fontSize===L.lastFontSize;L.lastParent=e.myParent,L.lastPosition=e.position,L.lastFontSize=e.fontSize;var s=100,l={};if(n&&a)l.emToPx=L.lastEmToPx,l.percentToPxWidth=L.lastPercentToPxWidth,l.percentToPxHeight=L.lastPercentToPxHeight;else{var u=i(o).isSVG?r.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\"):r.createElement(\"div\");b.init(u),e.myParent.appendChild(u),f.each([\"overflow\",\"overflowX\",\"overflowY\"],function(e,t){b.CSS.setPropertyValue(u,t,\"hidden\")}),b.CSS.setPropertyValue(u,\"position\",e.position),b.CSS.setPropertyValue(u,\"fontSize\",e.fontSize),b.CSS.setPropertyValue(u,\"boxSizing\",\"content-box\"),f.each([\"minWidth\",\"maxWidth\",\"width\",\"minHeight\",\"maxHeight\",\"height\"],function(e,t){b.CSS.setPropertyValue(u,t,s+\"%\")}),b.CSS.setPropertyValue(u,\"paddingLeft\",s+\"em\"),l.percentToPxWidth=L.lastPercentToPxWidth=(parseFloat(S.getPropertyValue(u,\"width\",null,!0))||1)/s,l.percentToPxHeight=L.lastPercentToPxHeight=(parseFloat(S.getPropertyValue(u,\"height\",null,!0))||1)/s,l.emToPx=L.lastEmToPx=(parseFloat(S.getPropertyValue(u,\"paddingLeft\"))||1)/s,e.myParent.removeChild(u)}return null===L.remToPx&&(L.remToPx=parseFloat(S.getPropertyValue(r.body,\"fontSize\"))||16),null===L.vwToPx&&(L.vwToPx=parseFloat(t.innerWidth)/100,L.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=L.remToPx,l.vwToPx=L.vwToPx,l.vhToPx=L.vhToPx,b.debug>=1&&console.log(\"Unit ratios: \"+JSON.stringify(l),o),l}if(s.begin&&0===V)try{s.begin.call(g,g)}catch(x){setTimeout(function(){throw x},1)}if(\"scroll\"===A){var P,C,T,F=/^x$/i.test(s.axis)?\"Left\":\"Top\",j=parseFloat(s.offset)||0;s.container?m.isWrapped(s.container)||m.isNode(s.container)?(s.container=s.container[0]||s.container,P=s.container[\"scroll\"+F],T=P+f(o).position()[F.toLowerCase()]+j):s.container=null:(P=b.State.scrollAnchor[b.State[\"scrollProperty\"+F]],C=b.State.scrollAnchor[b.State[\"scrollProperty\"+(\"Left\"===F?\"Top\":\"Left\")]],T=f(o).offset()[F.toLowerCase()]+j),l={scroll:{rootPropertyValue:!1,startValue:P,currentValue:P,endValue:T,unitType:\"\",easing:s.easing,scrollData:{container:s.container,direction:F,alternateValue:C}},element:o},b.debug&&console.log(\"tweensContainer (scroll): \",l.scroll,o)}else if(\"reverse\"===A){if(!i(o).tweensContainer)return void f.dequeue(o,s.queue);\"none\"===i(o).opts.display&&(i(o).opts.display=\"auto\"),\"hidden\"===i(o).opts.visibility&&(i(o).opts.visibility=\"visible\"),i(o).opts.loop=!1,i(o).opts.begin=null,i(o).opts.complete=null,v.easing||delete s.easing,v.duration||delete s.duration,s=f.extend({},i(o).opts,s);var E=f.extend(!0,{},i(o).tweensContainer);for(var H in E)if(\"element\"!==H){var N=E[H].startValue;E[H].startValue=E[H].currentValue=E[H].endValue,E[H].endValue=N,m.isEmptyObject(v)||(E[H].easing=s.easing),b.debug&&console.log(\"reverse tweensContainer (\"+H+\"): \"+JSON.stringify(E[H]),o)}l=E}else if(\"start\"===A){var E;i(o).tweensContainer&&i(o).isAnimating===!0&&(E=i(o).tweensContainer),f.each(y,function(e,t){if(RegExp(\"^\"+S.Lists.colors.join(\"$|^\")+\"$\").test(e)){var r=p(t,!0),n=r[0],o=r[1],i=r[2];if(S.RegEx.isHex.test(n)){for(var s=[\"Red\",\"Green\",\"Blue\"],l=S.Values.hexToRgb(n),u=i?S.Values.hexToRgb(i):a,c=0;c<s.length;c++){var f=[l[c]];o&&f.push(o),u!==a&&f.push(u[c]),y[e+s[c]]=f}delete y[e]}}});for(var z in y){var O=p(y[z]),q=O[0],$=O[1],M=O[2];z=S.Names.camelCase(z);var I=S.Hooks.getRoot(z),B=!1;if(i(o).isSVG||\"tween\"===I||S.Names.prefixCheck(I)[1]!==!1||S.Normalizations.registered[I]!==a){(s.display!==a&&null!==s.display&&\"none\"!==s.display||s.visibility!==a&&\"hidden\"!==s.visibility)&&/opacity|filter/.test(z)&&!M&&0!==q&&(M=0),s._cacheValues&&E&&E[z]?(M===a&&(M=E[z].endValue+E[z].unitType),B=i(o).rootPropertyValueCache[I]):S.Hooks.registered[z]?M===a?(B=S.getPropertyValue(o,I),M=S.getPropertyValue(o,z,B)):B=S.Hooks.templates[I][1]:M===a&&(M=S.getPropertyValue(o,z));var W,G,Y,D=!1;if(W=d(z,M),M=W[0],Y=W[1],W=d(z,q),q=W[0].replace(/^([+-\\/*])=/,function(e,t){return D=t,\"\"}),G=W[1],M=parseFloat(M)||0,q=parseFloat(q)||0,\"%\"===G&&(/^(fontSize|lineHeight)$/.test(z)?(q/=100,G=\"em\"):/^scale/.test(z)?(q/=100,G=\"\"):/(Red|Green|Blue)$/i.test(z)&&(q=q/100*255,G=\"\")),/[\\/*]/.test(D))G=Y;else if(Y!==G&&0!==M)if(0===q)G=Y;else{n=n||h();var Q=/margin|padding|left|right|width|text|word|letter/i.test(z)||/X$/.test(z)||\"x\"===z?\"x\":\"y\";switch(Y){case\"%\":M*=\"x\"===Q?n.percentToPxWidth:n.percentToPxHeight;break;case\"px\":break;default:M*=n[Y+\"ToPx\"]}switch(G){case\"%\":M*=1/(\"x\"===Q?n.percentToPxWidth:n.percentToPxHeight);break;case\"px\":break;default:M*=1/n[G+\"ToPx\"]}}switch(D){case\"+\":q=M+q;break;case\"-\":q=M-q;break;case\"*\":q=M*q;break;case\"/\":q=M/q}l[z]={rootPropertyValue:B,startValue:M,currentValue:M,endValue:q,unitType:G,easing:$},b.debug&&console.log(\"tweensContainer (\"+z+\"): \"+JSON.stringify(l[z]),o)}else b.debug&&console.log(\"Skipping [\"+I+\"] due to a lack of browser support.\")}l.element=o}l.element&&(S.Values.addClass(o,\"velocity-animating\"),R.push(l),\"\"===s.queue&&(i(o).tweensContainer=l,i(o).opts=s),i(o).isAnimating=!0,V===w-1?(b.State.calls.push([R,g,s,null,k.resolver]),b.State.isTicking===!1&&(b.State.isTicking=!0,c())):V++)}var n,o=this,s=f.extend({},b.defaults,v),l={};switch(i(o)===a&&b.init(o),parseFloat(s.delay)&&s.queue!==!1&&f.queue(o,s.queue,function(e){b.velocityQueueEntryFlag=!0,i(o).delayTimer={setTimeout:setTimeout(e,parseFloat(s.delay)),next:e}}),s.duration.toString().toLowerCase()){case\"fast\":s.duration=200;break;case\"normal\":s.duration=h;break;case\"slow\":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}b.mock!==!1&&(b.mock===!0?s.duration=s.delay=1:(s.duration*=parseFloat(b.mock)||1,s.delay*=parseFloat(b.mock)||1)),s.easing=u(s.easing,s.duration),s.begin&&!m.isFunction(s.begin)&&(s.begin=null),s.progress&&!m.isFunction(s.progress)&&(s.progress=null),s.complete&&!m.isFunction(s.complete)&&(s.complete=null),s.display!==a&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),\"auto\"===s.display&&(s.display=b.CSS.Values.getDisplayType(o))),s.visibility!==a&&null!==s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&b.State.isMobile&&!b.State.isGingerbread,s.queue===!1?s.delay?setTimeout(e,s.delay):e():f.queue(o,s.queue,function(t,r){return r===!0?(k.promise&&k.resolver(g),!0):(b.velocityQueueEntryFlag=!0,void e(t))}),\"\"!==s.queue&&\"fx\"!==s.queue||\"inprogress\"===f.queue(o)[0]||f.dequeue(o)}var s,l,d,g,y,v,x=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||m.isString(arguments[0].properties));if(m.isWrapped(this)?(s=!1,d=0,g=this,l=this):(s=!0,d=1,g=x?arguments[0].elements||arguments[0].e:arguments[0]),g=o(g)){x?(y=arguments[0].properties||arguments[0].p,v=arguments[0].options||arguments[0].o):(y=arguments[d],v=arguments[d+1]);var w=g.length,V=0;if(!/^(stop|finish)$/i.test(y)&&!f.isPlainObject(v)){var C=d+1;v={};for(var T=C;T<arguments.length;T++)m.isArray(arguments[T])||!/^(fast|normal|slow)$/i.test(arguments[T])&&!/^\\d/.test(arguments[T])?m.isString(arguments[T])||m.isArray(arguments[T])?v.easing=arguments[T]:m.isFunction(arguments[T])&&(v.complete=arguments[T]):v.duration=arguments[T]}var k={promise:null,resolver:null,rejecter:null};s&&b.Promise&&(k.promise=new b.Promise(function(e,t){k.resolver=e,k.rejecter=t}));var A;switch(y){case\"scroll\":A=\"scroll\";break;case\"reverse\":A=\"reverse\";break;case\"finish\":case\"stop\":f.each(g,function(e,t){i(t)&&i(t).delayTimer&&(clearTimeout(i(t).delayTimer.setTimeout),i(t).delayTimer.next&&i(t).delayTimer.next(),delete i(t).delayTimer)});var F=[];return f.each(b.State.calls,function(e,t){t&&f.each(t[1],function(r,n){var o=v===a?\"\":v;return o===!0||t[2].queue===o||v===a&&t[2].queue===!1?void f.each(g,function(r,a){a===n&&((v===!0||m.isString(v))&&(f.each(f.queue(a,m.isString(v)?v:\"\"),function(e,t){\nm.isFunction(t)&&t(null,!0)}),f.queue(a,m.isString(v)?v:\"\",[])),\"stop\"===y?(i(a)&&i(a).tweensContainer&&o!==!1&&f.each(i(a).tweensContainer,function(e,t){t.endValue=t.currentValue}),F.push(e)):\"finish\"===y&&(t[2].duration=1))}):!0})}),\"stop\"===y&&(f.each(F,function(e,t){p(t,!0)}),k.promise&&k.resolver(g)),e();default:if(!f.isPlainObject(y)||m.isEmptyObject(y)){if(m.isString(y)&&b.Redirects[y]){var j=f.extend({},v),E=j.duration,H=j.delay||0;return j.backwards===!0&&(g=f.extend(!0,[],g).reverse()),f.each(g,function(e,t){parseFloat(j.stagger)?j.delay=H+parseFloat(j.stagger)*e:m.isFunction(j.stagger)&&(j.delay=H+j.stagger.call(t,e,w)),j.drag&&(j.duration=parseFloat(E)||(/^(callout|transition)/.test(y)?1e3:h),j.duration=Math.max(j.duration*(j.backwards?1-e/w:(e+1)/w),.75*j.duration,200)),b.Redirects[y].call(t,t,j||{},e,w,g,k.promise?k:a)}),e()}var N=\"Velocity: First argument (\"+y+\") was not a property map, a known action, or a registered redirect. Aborting.\";return k.promise?k.rejecter(new Error(N)):console.log(N),e()}A=\"start\"}var L={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},R=[];f.each(g,function(e,t){m.isNode(t)&&n.call(t)});var z,j=f.extend({},b.defaults,v);if(j.loop=parseInt(j.loop),z=2*j.loop-1,j.loop)for(var O=0;z>O;O++){var q={delay:j.delay,progress:j.progress};O===z-1&&(q.display=j.display,q.visibility=j.visibility,q.complete=j.complete),P(g,\"reverse\",q)}return e()}};b=f.extend(P,b),b.animate=P;var w=t.requestAnimationFrame||g;return b.State.isMobile||r.hidden===a||r.addEventListener(\"visibilitychange\",function(){r.hidden?(w=function(e){return setTimeout(function(){e(!0)},16)},c()):w=t.requestAnimationFrame||g}),e.Velocity=b,e!==t&&(e.fn.velocity=P,e.fn.velocity.defaults=b.defaults),f.each([\"Down\",\"Up\"],function(e,t){b.Redirects[\"slide\"+t]=function(e,r,n,o,i,s){var l=f.extend({},r),u=l.begin,c=l.complete,p={height:\"\",marginTop:\"\",marginBottom:\"\",paddingTop:\"\",paddingBottom:\"\"},d={};l.display===a&&(l.display=\"Down\"===t?\"inline\"===b.CSS.Values.getDisplayType(e)?\"inline-block\":\"block\":\"none\"),l.begin=function(){u&&u.call(i,i);for(var r in p){d[r]=e.style[r];var a=b.CSS.getPropertyValue(e,r);p[r]=\"Down\"===t?[a,0]:[0,a]}d.overflow=e.style.overflow,e.style.overflow=\"hidden\"},l.complete=function(){for(var t in d)e.style[t]=d[t];c&&c.call(i,i),s&&s.resolver(i)},b(e,p,l)}}),f.each([\"In\",\"Out\"],function(e,t){b.Redirects[\"fade\"+t]=function(e,r,n,o,i,s){var l=f.extend({},r),u={opacity:\"In\"===t?1:0},c=l.complete;l.complete=n!==o-1?l.begin=null:function(){c&&c.call(i,i),s&&s.resolver(i)},l.display===a&&(l.display=\"In\"===t?\"auto\":\"none\"),b(this,u,l)}}),b}(window.jQuery||window.Zepto||window,window,document)}));\n\n/*!\n * Chart.js\n * http://chartjs.org/\n * Version: 2.7.3\n *\n * Copyright 2018 Chart.js Contributors\n * Released under the MIT license\n * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md\n */\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.Chart = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){\n\n},{}],2:[function(require,module,exports){\n/* MIT license */\nvar colorNames = require(6);\n\nmodule.exports = {\n   getRgba: getRgba,\n   getHsla: getHsla,\n   getRgb: getRgb,\n   getHsl: getHsl,\n   getHwb: getHwb,\n   getAlpha: getAlpha,\n\n   hexString: hexString,\n   rgbString: rgbString,\n   rgbaString: rgbaString,\n   percentString: percentString,\n   percentaString: percentaString,\n   hslString: hslString,\n   hslaString: hslaString,\n   hwbString: hwbString,\n   keyword: keyword\n}\n\nfunction getRgba(string) {\n   if (!string) {\n      return;\n   }\n   var abbr =  /^#([a-fA-F0-9]{3})$/i,\n       hex =  /^#([a-fA-F0-9]{6})$/i,\n       rgba = /^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n       per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n       keyword = /(\\w+)/;\n\n   var rgb = [0, 0, 0],\n       a = 1,\n       match = string.match(abbr);\n   if (match) {\n      match = match[1];\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match[i] + match[i], 16);\n      }\n   }\n   else if (match = string.match(hex)) {\n      match = match[1];\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match.slice(i * 2, i * 2 + 2), 16);\n      }\n   }\n   else if (match = string.match(rgba)) {\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match[i + 1]);\n      }\n      a = parseFloat(match[4]);\n   }\n   else if (match = string.match(per)) {\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n      }\n      a = parseFloat(match[4]);\n   }\n   else if (match = string.match(keyword)) {\n      if (match[1] == \"transparent\") {\n         return [0, 0, 0, 0];\n      }\n      rgb = colorNames[match[1]];\n      if (!rgb) {\n         return;\n      }\n   }\n\n   for (var i = 0; i < rgb.length; i++) {\n      rgb[i] = scale(rgb[i], 0, 255);\n   }\n   if (!a && a != 0) {\n      a = 1;\n   }\n   else {\n      a = scale(a, 0, 1);\n   }\n   rgb[3] = a;\n   return rgb;\n}\n\nfunction getHsla(string) {\n   if (!string) {\n      return;\n   }\n   var hsl = /^hsla?\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n   var match = string.match(hsl);\n   if (match) {\n      var alpha = parseFloat(match[4]);\n      var h = scale(parseInt(match[1]), 0, 360),\n          s = scale(parseFloat(match[2]), 0, 100),\n          l = scale(parseFloat(match[3]), 0, 100),\n          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n      return [h, s, l, a];\n   }\n}\n\nfunction getHwb(string) {\n   if (!string) {\n      return;\n   }\n   var hwb = /^hwb\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n   var match = string.match(hwb);\n   if (match) {\n    var alpha = parseFloat(match[4]);\n      var h = scale(parseInt(match[1]), 0, 360),\n          w = scale(parseFloat(match[2]), 0, 100),\n          b = scale(parseFloat(match[3]), 0, 100),\n          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n      return [h, w, b, a];\n   }\n}\n\nfunction getRgb(string) {\n   var rgba = getRgba(string);\n   return rgba && rgba.slice(0, 3);\n}\n\nfunction getHsl(string) {\n  var hsla = getHsla(string);\n  return hsla && hsla.slice(0, 3);\n}\n\nfunction getAlpha(string) {\n   var vals = getRgba(string);\n   if (vals) {\n      return vals[3];\n   }\n   else if (vals = getHsla(string)) {\n      return vals[3];\n   }\n   else if (vals = getHwb(string)) {\n      return vals[3];\n   }\n}\n\n// generators\nfunction hexString(rgb) {\n   return \"#\" + hexDouble(rgb[0]) + hexDouble(rgb[1])\n              + hexDouble(rgb[2]);\n}\n\nfunction rgbString(rgba, alpha) {\n   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {\n      return rgbaString(rgba, alpha);\n   }\n   return \"rgb(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2] + \")\";\n}\n\nfunction rgbaString(rgba, alpha) {\n   if (alpha === undefined) {\n      alpha = (rgba[3] !== undefined ? rgba[3] : 1);\n   }\n   return \"rgba(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2]\n           + \", \" + alpha + \")\";\n}\n\nfunction percentString(rgba, alpha) {\n   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {\n      return percentaString(rgba, alpha);\n   }\n   var r = Math.round(rgba[0]/255 * 100),\n       g = Math.round(rgba[1]/255 * 100),\n       b = Math.round(rgba[2]/255 * 100);\n\n   return \"rgb(\" + r + \"%, \" + g + \"%, \" + b + \"%)\";\n}\n\nfunction percentaString(rgba, alpha) {\n   var r = Math.round(rgba[0]/255 * 100),\n       g = Math.round(rgba[1]/255 * 100),\n       b = Math.round(rgba[2]/255 * 100);\n   return \"rgba(\" + r + \"%, \" + g + \"%, \" + b + \"%, \" + (alpha || rgba[3] || 1) + \")\";\n}\n\nfunction hslString(hsla, alpha) {\n   if (alpha < 1 || (hsla[3] && hsla[3] < 1)) {\n      return hslaString(hsla, alpha);\n   }\n   return \"hsl(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%)\";\n}\n\nfunction hslaString(hsla, alpha) {\n   if (alpha === undefined) {\n      alpha = (hsla[3] !== undefined ? hsla[3] : 1);\n   }\n   return \"hsla(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%, \"\n           + alpha + \")\";\n}\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\nfunction hwbString(hwb, alpha) {\n   if (alpha === undefined) {\n      alpha = (hwb[3] !== undefined ? hwb[3] : 1);\n   }\n   return \"hwb(\" + hwb[0] + \", \" + hwb[1] + \"%, \" + hwb[2] + \"%\"\n           + (alpha !== undefined && alpha !== 1 ? \", \" + alpha : \"\") + \")\";\n}\n\nfunction keyword(rgb) {\n  return reverseNames[rgb.slice(0, 3)];\n}\n\n// helpers\nfunction scale(num, min, max) {\n   return Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n  var str = num.toString(16).toUpperCase();\n  return (str.length < 2) ? \"0\" + str : str;\n}\n\n\n//create a list of reverse color names\nvar reverseNames = {};\nfor (var name in colorNames) {\n   reverseNames[colorNames[name]] = name;\n}\n\n},{\"6\":6}],3:[function(require,module,exports){\n/* MIT license */\nvar convert = require(5);\nvar string = require(2);\n\nvar Color = function (obj) {\n\tif (obj instanceof Color) {\n\t\treturn obj;\n\t}\n\tif (!(this instanceof Color)) {\n\t\treturn new Color(obj);\n\t}\n\n\tthis.valid = false;\n\tthis.values = {\n\t\trgb: [0, 0, 0],\n\t\thsl: [0, 0, 0],\n\t\thsv: [0, 0, 0],\n\t\thwb: [0, 0, 0],\n\t\tcmyk: [0, 0, 0, 0],\n\t\talpha: 1\n\t};\n\n\t// parse Color() argument\n\tvar vals;\n\tif (typeof obj === 'string') {\n\t\tvals = string.getRgba(obj);\n\t\tif (vals) {\n\t\t\tthis.setValues('rgb', vals);\n\t\t} else if (vals = string.getHsla(obj)) {\n\t\t\tthis.setValues('hsl', vals);\n\t\t} else if (vals = string.getHwb(obj)) {\n\t\t\tthis.setValues('hwb', vals);\n\t\t}\n\t} else if (typeof obj === 'object') {\n\t\tvals = obj;\n\t\tif (vals.r !== undefined || vals.red !== undefined) {\n\t\t\tthis.setValues('rgb', vals);\n\t\t} else if (vals.l !== undefined || vals.lightness !== undefined) {\n\t\t\tthis.setValues('hsl', vals);\n\t\t} else if (vals.v !== undefined || vals.value !== undefined) {\n\t\t\tthis.setValues('hsv', vals);\n\t\t} else if (vals.w !== undefined || vals.whiteness !== undefined) {\n\t\t\tthis.setValues('hwb', vals);\n\t\t} else if (vals.c !== undefined || vals.cyan !== undefined) {\n\t\t\tthis.setValues('cmyk', vals);\n\t\t}\n\t}\n};\n\nColor.prototype = {\n\tisValid: function () {\n\t\treturn this.valid;\n\t},\n\trgb: function () {\n\t\treturn this.setSpace('rgb', arguments);\n\t},\n\thsl: function () {\n\t\treturn this.setSpace('hsl', arguments);\n\t},\n\thsv: function () {\n\t\treturn this.setSpace('hsv', arguments);\n\t},\n\thwb: function () {\n\t\treturn this.setSpace('hwb', arguments);\n\t},\n\tcmyk: function () {\n\t\treturn this.setSpace('cmyk', arguments);\n\t},\n\n\trgbArray: function () {\n\t\treturn this.values.rgb;\n\t},\n\thslArray: function () {\n\t\treturn this.values.hsl;\n\t},\n\thsvArray: function () {\n\t\treturn this.values.hsv;\n\t},\n\thwbArray: function () {\n\t\tvar values = this.values;\n\t\tif (values.alpha !== 1) {\n\t\t\treturn values.hwb.concat([values.alpha]);\n\t\t}\n\t\treturn values.hwb;\n\t},\n\tcmykArray: function () {\n\t\treturn this.values.cmyk;\n\t},\n\trgbaArray: function () {\n\t\tvar values = this.values;\n\t\treturn values.rgb.concat([values.alpha]);\n\t},\n\thslaArray: function () {\n\t\tvar values = this.values;\n\t\treturn values.hsl.concat([values.alpha]);\n\t},\n\talpha: function (val) {\n\t\tif (val === undefined) {\n\t\t\treturn this.values.alpha;\n\t\t}\n\t\tthis.setValues('alpha', val);\n\t\treturn this;\n\t},\n\n\tred: function (val) {\n\t\treturn this.setChannel('rgb', 0, val);\n\t},\n\tgreen: function (val) {\n\t\treturn this.setChannel('rgb', 1, val);\n\t},\n\tblue: function (val) {\n\t\treturn this.setChannel('rgb', 2, val);\n\t},\n\thue: function (val) {\n\t\tif (val) {\n\t\t\tval %= 360;\n\t\t\tval = val < 0 ? 360 + val : val;\n\t\t}\n\t\treturn this.setChannel('hsl', 0, val);\n\t},\n\tsaturation: function (val) {\n\t\treturn this.setChannel('hsl', 1, val);\n\t},\n\tlightness: function (val) {\n\t\treturn this.setChannel('hsl', 2, val);\n\t},\n\tsaturationv: function (val) {\n\t\treturn this.setChannel('hsv', 1, val);\n\t},\n\twhiteness: function (val) {\n\t\treturn this.setChannel('hwb', 1, val);\n\t},\n\tblackness: function (val) {\n\t\treturn this.setChannel('hwb', 2, val);\n\t},\n\tvalue: function (val) {\n\t\treturn this.setChannel('hsv', 2, val);\n\t},\n\tcyan: function (val) {\n\t\treturn this.setChannel('cmyk', 0, val);\n\t},\n\tmagenta: function (val) {\n\t\treturn this.setChannel('cmyk', 1, val);\n\t},\n\tyellow: function (val) {\n\t\treturn this.setChannel('cmyk', 2, val);\n\t},\n\tblack: function (val) {\n\t\treturn this.setChannel('cmyk', 3, val);\n\t},\n\n\thexString: function () {\n\t\treturn string.hexString(this.values.rgb);\n\t},\n\trgbString: function () {\n\t\treturn string.rgbString(this.values.rgb, this.values.alpha);\n\t},\n\trgbaString: function () {\n\t\treturn string.rgbaString(this.values.rgb, this.values.alpha);\n\t},\n\tpercentString: function () {\n\t\treturn string.percentString(this.values.rgb, this.values.alpha);\n\t},\n\thslString: function () {\n\t\treturn string.hslString(this.values.hsl, this.values.alpha);\n\t},\n\thslaString: function () {\n\t\treturn string.hslaString(this.values.hsl, this.values.alpha);\n\t},\n\thwbString: function () {\n\t\treturn string.hwbString(this.values.hwb, this.values.alpha);\n\t},\n\tkeyword: function () {\n\t\treturn string.keyword(this.values.rgb, this.values.alpha);\n\t},\n\n\trgbNumber: function () {\n\t\tvar rgb = this.values.rgb;\n\t\treturn (rgb[0] << 16) | (rgb[1] << 8) | rgb[2];\n\t},\n\n\tluminosity: function () {\n\t\t// http://www.w3.org/TR/WCAG20/#relativeluminancedef\n\t\tvar rgb = this.values.rgb;\n\t\tvar lum = [];\n\t\tfor (var i = 0; i < rgb.length; i++) {\n\t\t\tvar chan = rgb[i] / 255;\n\t\t\tlum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4);\n\t\t}\n\t\treturn 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n\t},\n\n\tcontrast: function (color2) {\n\t\t// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n\t\tvar lum1 = this.luminosity();\n\t\tvar lum2 = color2.luminosity();\n\t\tif (lum1 > lum2) {\n\t\t\treturn (lum1 + 0.05) / (lum2 + 0.05);\n\t\t}\n\t\treturn (lum2 + 0.05) / (lum1 + 0.05);\n\t},\n\n\tlevel: function (color2) {\n\t\tvar contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7.1) {\n\t\t\treturn 'AAA';\n\t\t}\n\n\t\treturn (contrastRatio >= 4.5) ? 'AA' : '';\n\t},\n\n\tdark: function () {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tvar rgb = this.values.rgb;\n\t\tvar yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n\t\treturn yiq < 128;\n\t},\n\n\tlight: function () {\n\t\treturn !this.dark();\n\t},\n\n\tnegate: function () {\n\t\tvar rgb = [];\n\t\tfor (var i = 0; i < 3; i++) {\n\t\t\trgb[i] = 255 - this.values.rgb[i];\n\t\t}\n\t\tthis.setValues('rgb', rgb);\n\t\treturn this;\n\t},\n\n\tlighten: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[2] += hsl[2] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tdarken: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[2] -= hsl[2] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tsaturate: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[1] += hsl[1] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tdesaturate: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[1] -= hsl[1] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\twhiten: function (ratio) {\n\t\tvar hwb = this.values.hwb;\n\t\thwb[1] += hwb[1] * ratio;\n\t\tthis.setValues('hwb', hwb);\n\t\treturn this;\n\t},\n\n\tblacken: function (ratio) {\n\t\tvar hwb = this.values.hwb;\n\t\thwb[2] += hwb[2] * ratio;\n\t\tthis.setValues('hwb', hwb);\n\t\treturn this;\n\t},\n\n\tgreyscale: function () {\n\t\tvar rgb = this.values.rgb;\n\t\t// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n\t\tvar val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n\t\tthis.setValues('rgb', [val, val, val]);\n\t\treturn this;\n\t},\n\n\tclearer: function (ratio) {\n\t\tvar alpha = this.values.alpha;\n\t\tthis.setValues('alpha', alpha - (alpha * ratio));\n\t\treturn this;\n\t},\n\n\topaquer: function (ratio) {\n\t\tvar alpha = this.values.alpha;\n\t\tthis.setValues('alpha', alpha + (alpha * ratio));\n\t\treturn this;\n\t},\n\n\trotate: function (degrees) {\n\t\tvar hsl = this.values.hsl;\n\t\tvar hue = (hsl[0] + degrees) % 360;\n\t\thsl[0] = hue < 0 ? 360 + hue : hue;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\t/**\n\t * Ported from sass implementation in C\n\t * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n\t */\n\tmix: function (mixinColor, weight) {\n\t\tvar color1 = this;\n\t\tvar color2 = mixinColor;\n\t\tvar p = weight === undefined ? 0.5 : weight;\n\n\t\tvar w = 2 * p - 1;\n\t\tvar a = color1.alpha() - color2.alpha();\n\n\t\tvar w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n\t\tvar w2 = 1 - w1;\n\n\t\treturn this\n\t\t\t.rgb(\n\t\t\t\tw1 * color1.red() + w2 * color2.red(),\n\t\t\t\tw1 * color1.green() + w2 * color2.green(),\n\t\t\t\tw1 * color1.blue() + w2 * color2.blue()\n\t\t\t)\n\t\t\t.alpha(color1.alpha() * p + color2.alpha() * (1 - p));\n\t},\n\n\ttoJSON: function () {\n\t\treturn this.rgb();\n\t},\n\n\tclone: function () {\n\t\t// NOTE(SB): using node-clone creates a dependency to Buffer when using browserify,\n\t\t// making the final build way to big to embed in Chart.js. So let's do it manually,\n\t\t// assuming that values to clone are 1 dimension arrays containing only numbers,\n\t\t// except 'alpha' which is a number.\n\t\tvar result = new Color();\n\t\tvar source = this.values;\n\t\tvar target = result.values;\n\t\tvar value, type;\n\n\t\tfor (var prop in source) {\n\t\t\tif (source.hasOwnProperty(prop)) {\n\t\t\t\tvalue = source[prop];\n\t\t\t\ttype = ({}).toString.call(value);\n\t\t\t\tif (type === '[object Array]') {\n\t\t\t\t\ttarget[prop] = value.slice(0);\n\t\t\t\t} else if (type === '[object Number]') {\n\t\t\t\t\ttarget[prop] = value;\n\t\t\t\t} else {\n\t\t\t\t\tconsole.error('unexpected color value:', value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n};\n\nColor.prototype.spaces = {\n\trgb: ['red', 'green', 'blue'],\n\thsl: ['hue', 'saturation', 'lightness'],\n\thsv: ['hue', 'saturation', 'value'],\n\thwb: ['hue', 'whiteness', 'blackness'],\n\tcmyk: ['cyan', 'magenta', 'yellow', 'black']\n};\n\nColor.prototype.maxes = {\n\trgb: [255, 255, 255],\n\thsl: [360, 100, 100],\n\thsv: [360, 100, 100],\n\thwb: [360, 100, 100],\n\tcmyk: [100, 100, 100, 100]\n};\n\nColor.prototype.getValues = function (space) {\n\tvar values = this.values;\n\tvar vals = {};\n\n\tfor (var i = 0; i < space.length; i++) {\n\t\tvals[space.charAt(i)] = values[space][i];\n\t}\n\n\tif (values.alpha !== 1) {\n\t\tvals.a = values.alpha;\n\t}\n\n\t// {r: 255, g: 255, b: 255, a: 0.4}\n\treturn vals;\n};\n\nColor.prototype.setValues = function (space, vals) {\n\tvar values = this.values;\n\tvar spaces = this.spaces;\n\tvar maxes = this.maxes;\n\tvar alpha = 1;\n\tvar i;\n\n\tthis.valid = true;\n\n\tif (space === 'alpha') {\n\t\talpha = vals;\n\t} else if (vals.length) {\n\t\t// [10, 10, 10]\n\t\tvalues[space] = vals.slice(0, space.length);\n\t\talpha = vals[space.length];\n\t} else if (vals[space.charAt(0)] !== undefined) {\n\t\t// {r: 10, g: 10, b: 10}\n\t\tfor (i = 0; i < space.length; i++) {\n\t\t\tvalues[space][i] = vals[space.charAt(i)];\n\t\t}\n\n\t\talpha = vals.a;\n\t} else if (vals[spaces[space][0]] !== undefined) {\n\t\t// {red: 10, green: 10, blue: 10}\n\t\tvar chans = spaces[space];\n\n\t\tfor (i = 0; i < space.length; i++) {\n\t\t\tvalues[space][i] = vals[chans[i]];\n\t\t}\n\n\t\talpha = vals.alpha;\n\t}\n\n\tvalues.alpha = Math.max(0, Math.min(1, (alpha === undefined ? values.alpha : alpha)));\n\n\tif (space === 'alpha') {\n\t\treturn false;\n\t}\n\n\tvar capped;\n\n\t// cap values of the space prior converting all values\n\tfor (i = 0; i < space.length; i++) {\n\t\tcapped = Math.max(0, Math.min(maxes[space][i], values[space][i]));\n\t\tvalues[space][i] = Math.round(capped);\n\t}\n\n\t// convert to all the other color spaces\n\tfor (var sname in spaces) {\n\t\tif (sname !== space) {\n\t\t\tvalues[sname] = convert[space][sname](values[space]);\n\t\t}\n\t}\n\n\treturn true;\n};\n\nColor.prototype.setSpace = function (space, args) {\n\tvar vals = args[0];\n\n\tif (vals === undefined) {\n\t\t// color.rgb()\n\t\treturn this.getValues(space);\n\t}\n\n\t// color.rgb(10, 10, 10)\n\tif (typeof vals === 'number') {\n\t\tvals = Array.prototype.slice.call(args);\n\t}\n\n\tthis.setValues(space, vals);\n\treturn this;\n};\n\nColor.prototype.setChannel = function (space, index, val) {\n\tvar svalues = this.values[space];\n\tif (val === undefined) {\n\t\t// color.red()\n\t\treturn svalues[index];\n\t} else if (val === svalues[index]) {\n\t\t// color.red(color.red())\n\t\treturn this;\n\t}\n\n\t// color.red(100)\n\tsvalues[index] = val;\n\tthis.setValues(space, svalues);\n\n\treturn this;\n};\n\nif (typeof window !== 'undefined') {\n\twindow.Color = Color;\n}\n\nmodule.exports = Color;\n\n},{\"2\":2,\"5\":5}],4:[function(require,module,exports){\n/* MIT license */\n\nmodule.exports = {\n  rgb2hsl: rgb2hsl,\n  rgb2hsv: rgb2hsv,\n  rgb2hwb: rgb2hwb,\n  rgb2cmyk: rgb2cmyk,\n  rgb2keyword: rgb2keyword,\n  rgb2xyz: rgb2xyz,\n  rgb2lab: rgb2lab,\n  rgb2lch: rgb2lch,\n\n  hsl2rgb: hsl2rgb,\n  hsl2hsv: hsl2hsv,\n  hsl2hwb: hsl2hwb,\n  hsl2cmyk: hsl2cmyk,\n  hsl2keyword: hsl2keyword,\n\n  hsv2rgb: hsv2rgb,\n  hsv2hsl: hsv2hsl,\n  hsv2hwb: hsv2hwb,\n  hsv2cmyk: hsv2cmyk,\n  hsv2keyword: hsv2keyword,\n\n  hwb2rgb: hwb2rgb,\n  hwb2hsl: hwb2hsl,\n  hwb2hsv: hwb2hsv,\n  hwb2cmyk: hwb2cmyk,\n  hwb2keyword: hwb2keyword,\n\n  cmyk2rgb: cmyk2rgb,\n  cmyk2hsl: cmyk2hsl,\n  cmyk2hsv: cmyk2hsv,\n  cmyk2hwb: cmyk2hwb,\n  cmyk2keyword: cmyk2keyword,\n\n  keyword2rgb: keyword2rgb,\n  keyword2hsl: keyword2hsl,\n  keyword2hsv: keyword2hsv,\n  keyword2hwb: keyword2hwb,\n  keyword2cmyk: keyword2cmyk,\n  keyword2lab: keyword2lab,\n  keyword2xyz: keyword2xyz,\n\n  xyz2rgb: xyz2rgb,\n  xyz2lab: xyz2lab,\n  xyz2lch: xyz2lch,\n\n  lab2xyz: lab2xyz,\n  lab2rgb: lab2rgb,\n  lab2lch: lab2lch,\n\n  lch2lab: lch2lab,\n  lch2xyz: lch2xyz,\n  lch2rgb: lch2rgb\n}\n\n\nfunction rgb2hsl(rgb) {\n  var r = rgb[0]/255,\n      g = rgb[1]/255,\n      b = rgb[2]/255,\n      min = Math.min(r, g, b),\n      max = Math.max(r, g, b),\n      delta = max - min,\n      h, s, l;\n\n  if (max == min)\n    h = 0;\n  else if (r == max)\n    h = (g - b) / delta;\n  else if (g == max)\n    h = 2 + (b - r) / delta;\n  else if (b == max)\n    h = 4 + (r - g)/ delta;\n\n  h = Math.min(h * 60, 360);\n\n  if (h < 0)\n    h += 360;\n\n  l = (min + max) / 2;\n\n  if (max == min)\n    s = 0;\n  else if (l <= 0.5)\n    s = delta / (max + min);\n  else\n    s = delta / (2 - max - min);\n\n  return [h, s * 100, l * 100];\n}\n\nfunction rgb2hsv(rgb) {\n  var r = rgb[0],\n      g = rgb[1],\n      b = rgb[2],\n      min = Math.min(r, g, b),\n      max = Math.max(r, g, b),\n      delta = max - min,\n      h, s, v;\n\n  if (max == 0)\n    s = 0;\n  else\n    s = (delta/max * 1000)/10;\n\n  if (max == min)\n    h = 0;\n  else if (r == max)\n    h = (g - b) / delta;\n  else if (g == max)\n    h = 2 + (b - r) / delta;\n  else if (b == max)\n    h = 4 + (r - g) / delta;\n\n  h = Math.min(h * 60, 360);\n\n  if (h < 0)\n    h += 360;\n\n  v = ((max / 255) * 1000) / 10;\n\n  return [h, s, v];\n}\n\nfunction rgb2hwb(rgb) {\n  var r = rgb[0],\n      g = rgb[1],\n      b = rgb[2],\n      h = rgb2hsl(rgb)[0],\n      w = 1/255 * Math.min(r, Math.min(g, b)),\n      b = 1 - 1/255 * Math.max(r, Math.max(g, b));\n\n  return [h, w * 100, b * 100];\n}\n\nfunction rgb2cmyk(rgb) {\n  var r = rgb[0] / 255,\n      g = rgb[1] / 255,\n      b = rgb[2] / 255,\n      c, m, y, k;\n\n  k = Math.min(1 - r, 1 - g, 1 - b);\n  c = (1 - r - k) / (1 - k) || 0;\n  m = (1 - g - k) / (1 - k) || 0;\n  y = (1 - b - k) / (1 - k) || 0;\n  return [c * 100, m * 100, y * 100, k * 100];\n}\n\nfunction rgb2keyword(rgb) {\n  return reverseKeywords[JSON.stringify(rgb)];\n}\n\nfunction rgb2xyz(rgb) {\n  var r = rgb[0] / 255,\n      g = rgb[1] / 255,\n      b = rgb[2] / 255;\n\n  // assume sRGB\n  r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);\n  g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);\n  b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);\n\n  var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n  var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n  var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n  return [x * 100, y *100, z * 100];\n}\n\nfunction rgb2lab(rgb) {\n  var xyz = rgb2xyz(rgb),\n        x = xyz[0],\n        y = xyz[1],\n        z = xyz[2],\n        l, a, b;\n\n  x /= 95.047;\n  y /= 100;\n  z /= 108.883;\n\n  x = x > 0.008856 ? Math.pow(x, 1/3) : (7.787 * x) + (16 / 116);\n  y = y > 0.008856 ? Math.pow(y, 1/3) : (7.787 * y) + (16 / 116);\n  z = z > 0.008856 ? Math.pow(z, 1/3) : (7.787 * z) + (16 / 116);\n\n  l = (116 * y) - 16;\n  a = 500 * (x - y);\n  b = 200 * (y - z);\n\n  return [l, a, b];\n}\n\nfunction rgb2lch(args) {\n  return lab2lch(rgb2lab(args));\n}\n\nfunction hsl2rgb(hsl) {\n  var h = hsl[0] / 360,\n      s = hsl[1] / 100,\n      l = hsl[2] / 100,\n      t1, t2, t3, rgb, val;\n\n  if (s == 0) {\n    val = l * 255;\n    return [val, val, val];\n  }\n\n  if (l < 0.5)\n    t2 = l * (1 + s);\n  else\n    t2 = l + s - l * s;\n  t1 = 2 * l - t2;\n\n  rgb = [0, 0, 0];\n  for (var i = 0; i < 3; i++) {\n    t3 = h + 1 / 3 * - (i - 1);\n    t3 < 0 && t3++;\n    t3 > 1 && t3--;\n\n    if (6 * t3 < 1)\n      val = t1 + (t2 - t1) * 6 * t3;\n    else if (2 * t3 < 1)\n      val = t2;\n    else if (3 * t3 < 2)\n      val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n    else\n      val = t1;\n\n    rgb[i] = val * 255;\n  }\n\n  return rgb;\n}\n\nfunction hsl2hsv(hsl) {\n  var h = hsl[0],\n      s = hsl[1] / 100,\n      l = hsl[2] / 100,\n      sv, v;\n\n  if(l === 0) {\n      // no need to do calc on black\n      // also avoids divide by 0 error\n      return [0, 0, 0];\n  }\n\n  l *= 2;\n  s *= (l <= 1) ? l : 2 - l;\n  v = (l + s) / 2;\n  sv = (2 * s) / (l + s);\n  return [h, sv * 100, v * 100];\n}\n\nfunction hsl2hwb(args) {\n  return rgb2hwb(hsl2rgb(args));\n}\n\nfunction hsl2cmyk(args) {\n  return rgb2cmyk(hsl2rgb(args));\n}\n\nfunction hsl2keyword(args) {\n  return rgb2keyword(hsl2rgb(args));\n}\n\n\nfunction hsv2rgb(hsv) {\n  var h = hsv[0] / 60,\n      s = hsv[1] / 100,\n      v = hsv[2] / 100,\n      hi = Math.floor(h) % 6;\n\n  var f = h - Math.floor(h),\n      p = 255 * v * (1 - s),\n      q = 255 * v * (1 - (s * f)),\n      t = 255 * v * (1 - (s * (1 - f))),\n      v = 255 * v;\n\n  switch(hi) {\n    case 0:\n      return [v, t, p];\n    case 1:\n      return [q, v, p];\n    case 2:\n      return [p, v, t];\n    case 3:\n      return [p, q, v];\n    case 4:\n      return [t, p, v];\n    case 5:\n      return [v, p, q];\n  }\n}\n\nfunction hsv2hsl(hsv) {\n  var h = hsv[0],\n      s = hsv[1] / 100,\n      v = hsv[2] / 100,\n      sl, l;\n\n  l = (2 - s) * v;\n  sl = s * v;\n  sl /= (l <= 1) ? l : 2 - l;\n  sl = sl || 0;\n  l /= 2;\n  return [h, sl * 100, l * 100];\n}\n\nfunction hsv2hwb(args) {\n  return rgb2hwb(hsv2rgb(args))\n}\n\nfunction hsv2cmyk(args) {\n  return rgb2cmyk(hsv2rgb(args));\n}\n\nfunction hsv2keyword(args) {\n  return rgb2keyword(hsv2rgb(args));\n}\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nfunction hwb2rgb(hwb) {\n  var h = hwb[0] / 360,\n      wh = hwb[1] / 100,\n      bl = hwb[2] / 100,\n      ratio = wh + bl,\n      i, v, f, n;\n\n  // wh + bl cant be > 1\n  if (ratio > 1) {\n    wh /= ratio;\n    bl /= ratio;\n  }\n\n  i = Math.floor(6 * h);\n  v = 1 - bl;\n  f = 6 * h - i;\n  if ((i & 0x01) != 0) {\n    f = 1 - f;\n  }\n  n = wh + f * (v - wh);  // linear interpolation\n\n  switch (i) {\n    default:\n    case 6:\n    case 0: r = v; g = n; b = wh; break;\n    case 1: r = n; g = v; b = wh; break;\n    case 2: r = wh; g = v; b = n; break;\n    case 3: r = wh; g = n; b = v; break;\n    case 4: r = n; g = wh; b = v; break;\n    case 5: r = v; g = wh; b = n; break;\n  }\n\n  return [r * 255, g * 255, b * 255];\n}\n\nfunction hwb2hsl(args) {\n  return rgb2hsl(hwb2rgb(args));\n}\n\nfunction hwb2hsv(args) {\n  return rgb2hsv(hwb2rgb(args));\n}\n\nfunction hwb2cmyk(args) {\n  return rgb2cmyk(hwb2rgb(args));\n}\n\nfunction hwb2keyword(args) {\n  return rgb2keyword(hwb2rgb(args));\n}\n\nfunction cmyk2rgb(cmyk) {\n  var c = cmyk[0] / 100,\n      m = cmyk[1] / 100,\n      y = cmyk[2] / 100,\n      k = cmyk[3] / 100,\n      r, g, b;\n\n  r = 1 - Math.min(1, c * (1 - k) + k);\n  g = 1 - Math.min(1, m * (1 - k) + k);\n  b = 1 - Math.min(1, y * (1 - k) + k);\n  return [r * 255, g * 255, b * 255];\n}\n\nfunction cmyk2hsl(args) {\n  return rgb2hsl(cmyk2rgb(args));\n}\n\nfunction cmyk2hsv(args) {\n  return rgb2hsv(cmyk2rgb(args));\n}\n\nfunction cmyk2hwb(args) {\n  return rgb2hwb(cmyk2rgb(args));\n}\n\nfunction cmyk2keyword(args) {\n  return rgb2keyword(cmyk2rgb(args));\n}\n\n\nfunction xyz2rgb(xyz) {\n  var x = xyz[0] / 100,\n      y = xyz[1] / 100,\n      z = xyz[2] / 100,\n      r, g, b;\n\n  r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n  g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n  b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n  // assume sRGB\n  r = r > 0.0031308 ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)\n    : r = (r * 12.92);\n\n  g = g > 0.0031308 ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)\n    : g = (g * 12.92);\n\n  b = b > 0.0031308 ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)\n    : b = (b * 12.92);\n\n  r = Math.min(Math.max(0, r), 1);\n  g = Math.min(Math.max(0, g), 1);\n  b = Math.min(Math.max(0, b), 1);\n\n  return [r * 255, g * 255, b * 255];\n}\n\nfunction xyz2lab(xyz) {\n  var x = xyz[0],\n      y = xyz[1],\n      z = xyz[2],\n      l, a, b;\n\n  x /= 95.047;\n  y /= 100;\n  z /= 108.883;\n\n  x = x > 0.008856 ? Math.pow(x, 1/3) : (7.787 * x) + (16 / 116);\n  y = y > 0.008856 ? Math.pow(y, 1/3) : (7.787 * y) + (16 / 116);\n  z = z > 0.008856 ? Math.pow(z, 1/3) : (7.787 * z) + (16 / 116);\n\n  l = (116 * y) - 16;\n  a = 500 * (x - y);\n  b = 200 * (y - z);\n\n  return [l, a, b];\n}\n\nfunction xyz2lch(args) {\n  return lab2lch(xyz2lab(args));\n}\n\nfunction lab2xyz(lab) {\n  var l = lab[0],\n      a = lab[1],\n      b = lab[2],\n      x, y, z, y2;\n\n  if (l <= 8) {\n    y = (l * 100) / 903.3;\n    y2 = (7.787 * (y / 100)) + (16 / 116);\n  } else {\n    y = 100 * Math.pow((l + 16) / 116, 3);\n    y2 = Math.pow(y / 100, 1/3);\n  }\n\n  x = x / 95.047 <= 0.008856 ? x = (95.047 * ((a / 500) + y2 - (16 / 116))) / 7.787 : 95.047 * Math.pow((a / 500) + y2, 3);\n\n  z = z / 108.883 <= 0.008859 ? z = (108.883 * (y2 - (b / 200) - (16 / 116))) / 7.787 : 108.883 * Math.pow(y2 - (b / 200), 3);\n\n  return [x, y, z];\n}\n\nfunction lab2lch(lab) {\n  var l = lab[0],\n      a = lab[1],\n      b = lab[2],\n      hr, h, c;\n\n  hr = Math.atan2(b, a);\n  h = hr * 360 / 2 / Math.PI;\n  if (h < 0) {\n    h += 360;\n  }\n  c = Math.sqrt(a * a + b * b);\n  return [l, c, h];\n}\n\nfunction lab2rgb(args) {\n  return xyz2rgb(lab2xyz(args));\n}\n\nfunction lch2lab(lch) {\n  var l = lch[0],\n      c = lch[1],\n      h = lch[2],\n      a, b, hr;\n\n  hr = h / 360 * 2 * Math.PI;\n  a = c * Math.cos(hr);\n  b = c * Math.sin(hr);\n  return [l, a, b];\n}\n\nfunction lch2xyz(args) {\n  return lab2xyz(lch2lab(args));\n}\n\nfunction lch2rgb(args) {\n  return lab2rgb(lch2lab(args));\n}\n\nfunction keyword2rgb(keyword) {\n  return cssKeywords[keyword];\n}\n\nfunction keyword2hsl(args) {\n  return rgb2hsl(keyword2rgb(args));\n}\n\nfunction keyword2hsv(args) {\n  return rgb2hsv(keyword2rgb(args));\n}\n\nfunction keyword2hwb(args) {\n  return rgb2hwb(keyword2rgb(args));\n}\n\nfunction keyword2cmyk(args) {\n  return rgb2cmyk(keyword2rgb(args));\n}\n\nfunction keyword2lab(args) {\n  return rgb2lab(keyword2rgb(args));\n}\n\nfunction keyword2xyz(args) {\n  return rgb2xyz(keyword2rgb(args));\n}\n\nvar cssKeywords = {\n  aliceblue:  [240,248,255],\n  antiquewhite: [250,235,215],\n  aqua: [0,255,255],\n  aquamarine: [127,255,212],\n  azure:  [240,255,255],\n  beige:  [245,245,220],\n  bisque: [255,228,196],\n  black:  [0,0,0],\n  blanchedalmond: [255,235,205],\n  blue: [0,0,255],\n  blueviolet: [138,43,226],\n  brown:  [165,42,42],\n  burlywood:  [222,184,135],\n  cadetblue:  [95,158,160],\n  chartreuse: [127,255,0],\n  chocolate:  [210,105,30],\n  coral:  [255,127,80],\n  cornflowerblue: [100,149,237],\n  cornsilk: [255,248,220],\n  crimson:  [220,20,60],\n  cyan: [0,255,255],\n  darkblue: [0,0,139],\n  darkcyan: [0,139,139],\n  darkgoldenrod:  [184,134,11],\n  darkgray: [169,169,169],\n  darkgreen:  [0,100,0],\n  darkgrey: [169,169,169],\n  darkkhaki:  [189,183,107],\n  darkmagenta:  [139,0,139],\n  darkolivegreen: [85,107,47],\n  darkorange: [255,140,0],\n  darkorchid: [153,50,204],\n  darkred:  [139,0,0],\n  darksalmon: [233,150,122],\n  darkseagreen: [143,188,143],\n  darkslateblue:  [72,61,139],\n  darkslategray:  [47,79,79],\n  darkslategrey:  [47,79,79],\n  darkturquoise:  [0,206,209],\n  darkviolet: [148,0,211],\n  deeppink: [255,20,147],\n  deepskyblue:  [0,191,255],\n  dimgray:  [105,105,105],\n  dimgrey:  [105,105,105],\n  dodgerblue: [30,144,255],\n  firebrick:  [178,34,34],\n  floralwhite:  [255,250,240],\n  forestgreen:  [34,139,34],\n  fuchsia:  [255,0,255],\n  gainsboro:  [220,220,220],\n  ghostwhite: [248,248,255],\n  gold: [255,215,0],\n  goldenrod:  [218,165,32],\n  gray: [128,128,128],\n  green:  [0,128,0],\n  greenyellow:  [173,255,47],\n  grey: [128,128,128],\n  honeydew: [240,255,240],\n  hotpink:  [255,105,180],\n  indianred:  [205,92,92],\n  indigo: [75,0,130],\n  ivory:  [255,255,240],\n  khaki:  [240,230,140],\n  lavender: [230,230,250],\n  lavenderblush:  [255,240,245],\n  lawngreen:  [124,252,0],\n  lemonchiffon: [255,250,205],\n  lightblue:  [173,216,230],\n  lightcoral: [240,128,128],\n  lightcyan:  [224,255,255],\n  lightgoldenrodyellow: [250,250,210],\n  lightgray:  [211,211,211],\n  lightgreen: [144,238,144],\n  lightgrey:  [211,211,211],\n  lightpink:  [255,182,193],\n  lightsalmon:  [255,160,122],\n  lightseagreen:  [32,178,170],\n  lightskyblue: [135,206,250],\n  lightslategray: [119,136,153],\n  lightslategrey: [119,136,153],\n  lightsteelblue: [176,196,222],\n  lightyellow:  [255,255,224],\n  lime: [0,255,0],\n  limegreen:  [50,205,50],\n  linen:  [250,240,230],\n  magenta:  [255,0,255],\n  maroon: [128,0,0],\n  mediumaquamarine: [102,205,170],\n  mediumblue: [0,0,205],\n  mediumorchid: [186,85,211],\n  mediumpurple: [147,112,219],\n  mediumseagreen: [60,179,113],\n  mediumslateblue:  [123,104,238],\n  mediumspringgreen:  [0,250,154],\n  mediumturquoise:  [72,209,204],\n  mediumvioletred:  [199,21,133],\n  midnightblue: [25,25,112],\n  mintcream:  [245,255,250],\n  mistyrose:  [255,228,225],\n  moccasin: [255,228,181],\n  navajowhite:  [255,222,173],\n  navy: [0,0,128],\n  oldlace:  [253,245,230],\n  olive:  [128,128,0],\n  olivedrab:  [107,142,35],\n  orange: [255,165,0],\n  orangered:  [255,69,0],\n  orchid: [218,112,214],\n  palegoldenrod:  [238,232,170],\n  palegreen:  [152,251,152],\n  paleturquoise:  [175,238,238],\n  palevioletred:  [219,112,147],\n  papayawhip: [255,239,213],\n  peachpuff:  [255,218,185],\n  peru: [205,133,63],\n  pink: [255,192,203],\n  plum: [221,160,221],\n  powderblue: [176,224,230],\n  purple: [128,0,128],\n  rebeccapurple: [102, 51, 153],\n  red:  [255,0,0],\n  rosybrown:  [188,143,143],\n  royalblue:  [65,105,225],\n  saddlebrown:  [139,69,19],\n  salmon: [250,128,114],\n  sandybrown: [244,164,96],\n  seagreen: [46,139,87],\n  seashell: [255,245,238],\n  sienna: [160,82,45],\n  silver: [192,192,192],\n  skyblue:  [135,206,235],\n  slateblue:  [106,90,205],\n  slategray:  [112,128,144],\n  slategrey:  [112,128,144],\n  snow: [255,250,250],\n  springgreen:  [0,255,127],\n  steelblue:  [70,130,180],\n  tan:  [210,180,140],\n  teal: [0,128,128],\n  thistle:  [216,191,216],\n  tomato: [255,99,71],\n  turquoise:  [64,224,208],\n  violet: [238,130,238],\n  wheat:  [245,222,179],\n  white:  [255,255,255],\n  whitesmoke: [245,245,245],\n  yellow: [255,255,0],\n  yellowgreen:  [154,205,50]\n};\n\nvar reverseKeywords = {};\nfor (var key in cssKeywords) {\n  reverseKeywords[JSON.stringify(cssKeywords[key])] = key;\n}\n\n},{}],5:[function(require,module,exports){\nvar conversions = require(4);\n\nvar convert = function() {\n   return new Converter();\n}\n\nfor (var func in conversions) {\n  // export Raw versions\n  convert[func + \"Raw\"] =  (function(func) {\n    // accept array or plain args\n    return function(arg) {\n      if (typeof arg == \"number\")\n        arg = Array.prototype.slice.call(arguments);\n      return conversions[func](arg);\n    }\n  })(func);\n\n  var pair = /(\\w+)2(\\w+)/.exec(func),\n      from = pair[1],\n      to = pair[2];\n\n  // export rgb2hsl and [\"rgb\"][\"hsl\"]\n  convert[from] = convert[from] || {};\n\n  convert[from][to] = convert[func] = (function(func) {\n    return function(arg) {\n      if (typeof arg == \"number\")\n        arg = Array.prototype.slice.call(arguments);\n\n      var val = conversions[func](arg);\n      if (typeof val == \"string\" || val === undefined)\n        return val; // keyword\n\n      for (var i = 0; i < val.length; i++)\n        val[i] = Math.round(val[i]);\n      return val;\n    }\n  })(func);\n}\n\n\n/* Converter does lazy conversion and caching */\nvar Converter = function() {\n   this.convs = {};\n};\n\n/* Either get the values for a space or\n  set the values for a space, depending on args */\nConverter.prototype.routeSpace = function(space, args) {\n   var values = args[0];\n   if (values === undefined) {\n      // color.rgb()\n      return this.getValues(space);\n   }\n   // color.rgb(10, 10, 10)\n   if (typeof values == \"number\") {\n      values = Array.prototype.slice.call(args);\n   }\n\n   return this.setValues(space, values);\n};\n\n/* Set the values for a space, invalidating cache */\nConverter.prototype.setValues = function(space, values) {\n   this.space = space;\n   this.convs = {};\n   this.convs[space] = values;\n   return this;\n};\n\n/* Get the values for a space. If there's already\n  a conversion for the space, fetch it, otherwise\n  compute it */\nConverter.prototype.getValues = function(space) {\n   var vals = this.convs[space];\n   if (!vals) {\n      var fspace = this.space,\n          from = this.convs[fspace];\n      vals = convert[fspace][space](from);\n\n      this.convs[space] = vals;\n   }\n  return vals;\n};\n\n[\"rgb\", \"hsl\", \"hsv\", \"cmyk\", \"keyword\"].forEach(function(space) {\n   Converter.prototype[space] = function(vals) {\n      return this.routeSpace(space, arguments);\n   }\n});\n\nmodule.exports = convert;\n},{\"4\":4}],6:[function(require,module,exports){\n'use strict'\n\nmodule.exports = {\n\t\"aliceblue\": [240, 248, 255],\n\t\"antiquewhite\": [250, 235, 215],\n\t\"aqua\": [0, 255, 255],\n\t\"aquamarine\": [127, 255, 212],\n\t\"azure\": [240, 255, 255],\n\t\"beige\": [245, 245, 220],\n\t\"bisque\": [255, 228, 196],\n\t\"black\": [0, 0, 0],\n\t\"blanchedalmond\": [255, 235, 205],\n\t\"blue\": [0, 0, 255],\n\t\"blueviolet\": [138, 43, 226],\n\t\"brown\": [165, 42, 42],\n\t\"burlywood\": [222, 184, 135],\n\t\"cadetblue\": [95, 158, 160],\n\t\"chartreuse\": [127, 255, 0],\n\t\"chocolate\": [210, 105, 30],\n\t\"coral\": [255, 127, 80],\n\t\"cornflowerblue\": [100, 149, 237],\n\t\"cornsilk\": [255, 248, 220],\n\t\"crimson\": [220, 20, 60],\n\t\"cyan\": [0, 255, 255],\n\t\"darkblue\": [0, 0, 139],\n\t\"darkcyan\": [0, 139, 139],\n\t\"darkgoldenrod\": [184, 134, 11],\n\t\"darkgray\": [169, 169, 169],\n\t\"darkgreen\": [0, 100, 0],\n\t\"darkgrey\": [169, 169, 169],\n\t\"darkkhaki\": [189, 183, 107],\n\t\"darkmagenta\": [139, 0, 139],\n\t\"darkolivegreen\": [85, 107, 47],\n\t\"darkorange\": [255, 140, 0],\n\t\"darkorchid\": [153, 50, 204],\n\t\"darkred\": [139, 0, 0],\n\t\"darksalmon\": [233, 150, 122],\n\t\"darkseagreen\": [143, 188, 143],\n\t\"darkslateblue\": [72, 61, 139],\n\t\"darkslategray\": [47, 79, 79],\n\t\"darkslategrey\": [47, 79, 79],\n\t\"darkturquoise\": [0, 206, 209],\n\t\"darkviolet\": [148, 0, 211],\n\t\"deeppink\": [255, 20, 147],\n\t\"deepskyblue\": [0, 191, 255],\n\t\"dimgray\": [105, 105, 105],\n\t\"dimgrey\": [105, 105, 105],\n\t\"dodgerblue\": [30, 144, 255],\n\t\"firebrick\": [178, 34, 34],\n\t\"floralwhite\": [255, 250, 240],\n\t\"forestgreen\": [34, 139, 34],\n\t\"fuchsia\": [255, 0, 255],\n\t\"gainsboro\": [220, 220, 220],\n\t\"ghostwhite\": [248, 248, 255],\n\t\"gold\": [255, 215, 0],\n\t\"goldenrod\": [218, 165, 32],\n\t\"gray\": [128, 128, 128],\n\t\"green\": [0, 128, 0],\n\t\"greenyellow\": [173, 255, 47],\n\t\"grey\": [128, 128, 128],\n\t\"honeydew\": [240, 255, 240],\n\t\"hotpink\": [255, 105, 180],\n\t\"indianred\": [205, 92, 92],\n\t\"indigo\": [75, 0, 130],\n\t\"ivory\": [255, 255, 240],\n\t\"khaki\": [240, 230, 140],\n\t\"lavender\": [230, 230, 250],\n\t\"lavenderblush\": [255, 240, 245],\n\t\"lawngreen\": [124, 252, 0],\n\t\"lemonchiffon\": [255, 250, 205],\n\t\"lightblue\": [173, 216, 230],\n\t\"lightcoral\": [240, 128, 128],\n\t\"lightcyan\": [224, 255, 255],\n\t\"lightgoldenrodyellow\": [250, 250, 210],\n\t\"lightgray\": [211, 211, 211],\n\t\"lightgreen\": [144, 238, 144],\n\t\"lightgrey\": [211, 211, 211],\n\t\"lightpink\": [255, 182, 193],\n\t\"lightsalmon\": [255, 160, 122],\n\t\"lightseagreen\": [32, 178, 170],\n\t\"lightskyblue\": [135, 206, 250],\n\t\"lightslategray\": [119, 136, 153],\n\t\"lightslategrey\": [119, 136, 153],\n\t\"lightsteelblue\": [176, 196, 222],\n\t\"lightyellow\": [255, 255, 224],\n\t\"lime\": [0, 255, 0],\n\t\"limegreen\": [50, 205, 50],\n\t\"linen\": [250, 240, 230],\n\t\"magenta\": [255, 0, 255],\n\t\"maroon\": [128, 0, 0],\n\t\"mediumaquamarine\": [102, 205, 170],\n\t\"mediumblue\": [0, 0, 205],\n\t\"mediumorchid\": [186, 85, 211],\n\t\"mediumpurple\": [147, 112, 219],\n\t\"mediumseagreen\": [60, 179, 113],\n\t\"mediumslateblue\": [123, 104, 238],\n\t\"mediumspringgreen\": [0, 250, 154],\n\t\"mediumturquoise\": [72, 209, 204],\n\t\"mediumvioletred\": [199, 21, 133],\n\t\"midnightblue\": [25, 25, 112],\n\t\"mintcream\": [245, 255, 250],\n\t\"mistyrose\": [255, 228, 225],\n\t\"moccasin\": [255, 228, 181],\n\t\"navajowhite\": [255, 222, 173],\n\t\"navy\": [0, 0, 128],\n\t\"oldlace\": [253, 245, 230],\n\t\"olive\": [128, 128, 0],\n\t\"olivedrab\": [107, 142, 35],\n\t\"orange\": [255, 165, 0],\n\t\"orangered\": [255, 69, 0],\n\t\"orchid\": [218, 112, 214],\n\t\"palegoldenrod\": [238, 232, 170],\n\t\"palegreen\": [152, 251, 152],\n\t\"paleturquoise\": [175, 238, 238],\n\t\"palevioletred\": [219, 112, 147],\n\t\"papayawhip\": [255, 239, 213],\n\t\"peachpuff\": [255, 218, 185],\n\t\"peru\": [205, 133, 63],\n\t\"pink\": [255, 192, 203],\n\t\"plum\": [221, 160, 221],\n\t\"powderblue\": [176, 224, 230],\n\t\"purple\": [128, 0, 128],\n\t\"rebeccapurple\": [102, 51, 153],\n\t\"red\": [255, 0, 0],\n\t\"rosybrown\": [188, 143, 143],\n\t\"royalblue\": [65, 105, 225],\n\t\"saddlebrown\": [139, 69, 19],\n\t\"salmon\": [250, 128, 114],\n\t\"sandybrown\": [244, 164, 96],\n\t\"seagreen\": [46, 139, 87],\n\t\"seashell\": [255, 245, 238],\n\t\"sienna\": [160, 82, 45],\n\t\"silver\": [192, 192, 192],\n\t\"skyblue\": [135, 206, 235],\n\t\"slateblue\": [106, 90, 205],\n\t\"slategray\": [112, 128, 144],\n\t\"slategrey\": [112, 128, 144],\n\t\"snow\": [255, 250, 250],\n\t\"springgreen\": [0, 255, 127],\n\t\"steelblue\": [70, 130, 180],\n\t\"tan\": [210, 180, 140],\n\t\"teal\": [0, 128, 128],\n\t\"thistle\": [216, 191, 216],\n\t\"tomato\": [255, 99, 71],\n\t\"turquoise\": [64, 224, 208],\n\t\"violet\": [238, 130, 238],\n\t\"wheat\": [245, 222, 179],\n\t\"white\": [255, 255, 255],\n\t\"whitesmoke\": [245, 245, 245],\n\t\"yellow\": [255, 255, 0],\n\t\"yellowgreen\": [154, 205, 50]\n};\n\n},{}],7:[function(require,module,exports){\n/**\n * @namespace Chart\n */\nvar Chart = require(30)();\n\nChart.helpers = require(46);\n\n// @todo dispatch these helpers into appropriated helpers/helpers.* file and write unit tests!\nrequire(28)(Chart);\n\nChart.Animation = require(22);\nChart.animationService = require(23);\nChart.defaults = require(26);\nChart.Element = require(27);\nChart.elements = require(41);\nChart.Interaction = require(29);\nChart.layouts = require(31);\nChart.platform = require(49);\nChart.plugins = require(32);\nChart.Scale = require(33);\nChart.scaleService = require(34);\nChart.Ticks = require(35);\nChart.Tooltip = require(36);\n\nrequire(24)(Chart);\nrequire(25)(Chart);\n\nrequire(56)(Chart);\nrequire(54)(Chart);\nrequire(55)(Chart);\nrequire(57)(Chart);\nrequire(58)(Chart);\nrequire(59)(Chart);\n\n// Controllers must be loaded after elements\n// See Chart.core.datasetController.dataElementType\nrequire(15)(Chart);\nrequire(16)(Chart);\nrequire(17)(Chart);\nrequire(18)(Chart);\nrequire(19)(Chart);\nrequire(20)(Chart);\nrequire(21)(Chart);\n\nrequire(8)(Chart);\nrequire(9)(Chart);\nrequire(10)(Chart);\nrequire(11)(Chart);\nrequire(12)(Chart);\nrequire(13)(Chart);\nrequire(14)(Chart);\n\n// Loading built-in plugins\nvar plugins = require(50);\nfor (var k in plugins) {\n\tif (plugins.hasOwnProperty(k)) {\n\t\tChart.plugins.register(plugins[k]);\n\t}\n}\n\nChart.platform.initialize();\n\nmodule.exports = Chart;\nif (typeof window !== 'undefined') {\n\twindow.Chart = Chart;\n}\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, not available anymore\n * @namespace Chart.Legend\n * @deprecated since version 2.1.5\n * @todo remove at version 3\n * @private\n */\nChart.Legend = plugins.legend._element;\n\n/**\n * Provided for backward compatibility, not available anymore\n * @namespace Chart.Title\n * @deprecated since version 2.1.5\n * @todo remove at version 3\n * @private\n */\nChart.Title = plugins.title._element;\n\n/**\n * Provided for backward compatibility, use Chart.plugins instead\n * @namespace Chart.pluginService\n * @deprecated since version 2.1.5\n * @todo remove at version 3\n * @private\n */\nChart.pluginService = Chart.plugins;\n\n/**\n * Provided for backward compatibility, inheriting from Chart.PlugingBase has no\n * effect, instead simply create/register plugins via plain JavaScript objects.\n * @interface Chart.PluginBase\n * @deprecated since version 2.5.0\n * @todo remove at version 3\n * @private\n */\nChart.PluginBase = Chart.Element.extend({});\n\n/**\n * Provided for backward compatibility, use Chart.helpers.canvas instead.\n * @namespace Chart.canvasHelpers\n * @deprecated since version 2.6.0\n * @todo remove at version 3\n * @private\n */\nChart.canvasHelpers = Chart.helpers.canvas;\n\n/**\n * Provided for backward compatibility, use Chart.layouts instead.\n * @namespace Chart.layoutService\n * @deprecated since version 2.8.0\n * @todo remove at version 3\n * @private\n */\nChart.layoutService = Chart.layouts;\n\n},{\"10\":10,\"11\":11,\"12\":12,\"13\":13,\"14\":14,\"15\":15,\"16\":16,\"17\":17,\"18\":18,\"19\":19,\"20\":20,\"21\":21,\"22\":22,\"23\":23,\"24\":24,\"25\":25,\"26\":26,\"27\":27,\"28\":28,\"29\":29,\"30\":30,\"31\":31,\"32\":32,\"33\":33,\"34\":34,\"35\":35,\"36\":36,\"41\":41,\"46\":46,\"49\":49,\"50\":50,\"54\":54,\"55\":55,\"56\":56,\"57\":57,\"58\":58,\"59\":59,\"8\":8,\"9\":9}],8:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Bar = function(context, config) {\n\t\tconfig.type = 'bar';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],9:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Bubble = function(context, config) {\n\t\tconfig.type = 'bubble';\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],10:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Doughnut = function(context, config) {\n\t\tconfig.type = 'doughnut';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],11:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Line = function(context, config) {\n\t\tconfig.type = 'line';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],12:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.PolarArea = function(context, config) {\n\t\tconfig.type = 'polarArea';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],13:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Radar = function(context, config) {\n\t\tconfig.type = 'radar';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],14:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\tChart.Scatter = function(context, config) {\n\t\tconfig.type = 'scatter';\n\t\treturn new Chart(context, config);\n\t};\n};\n\n},{}],15:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('bar', {\n\thover: {\n\t\tmode: 'label'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\ttype: 'category',\n\n\t\t\t// Specific to Bar Controller\n\t\t\tcategoryPercentage: 0.8,\n\t\t\tbarPercentage: 0.9,\n\n\t\t\t// offset settings\n\t\t\toffset: true,\n\n\t\t\t// grid line settings\n\t\t\tgridLines: {\n\t\t\t\toffsetGridLines: true\n\t\t\t}\n\t\t}],\n\n\t\tyAxes: [{\n\t\t\ttype: 'linear'\n\t\t}]\n\t}\n});\n\ndefaults._set('horizontalBar', {\n\thover: {\n\t\tmode: 'index',\n\t\taxis: 'y'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\ttype: 'linear',\n\t\t\tposition: 'bottom'\n\t\t}],\n\n\t\tyAxes: [{\n\t\t\tposition: 'left',\n\t\t\ttype: 'category',\n\n\t\t\t// Specific to Horizontal Bar Controller\n\t\t\tcategoryPercentage: 0.8,\n\t\t\tbarPercentage: 0.9,\n\n\t\t\t// offset settings\n\t\t\toffset: true,\n\n\t\t\t// grid line settings\n\t\t\tgridLines: {\n\t\t\t\toffsetGridLines: true\n\t\t\t}\n\t\t}]\n\t},\n\n\telements: {\n\t\trectangle: {\n\t\t\tborderSkipped: 'left'\n\t\t}\n\t},\n\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function(item, data) {\n\t\t\t\t// Pick first xLabel for now\n\t\t\t\tvar title = '';\n\n\t\t\t\tif (item.length > 0) {\n\t\t\t\t\tif (item[0].yLabel) {\n\t\t\t\t\t\ttitle = item[0].yLabel;\n\t\t\t\t\t} else if (data.labels.length > 0 && item[0].index < data.labels.length) {\n\t\t\t\t\t\ttitle = data.labels[item[0].index];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn title;\n\t\t\t},\n\n\t\t\tlabel: function(item, data) {\n\t\t\t\tvar datasetLabel = data.datasets[item.datasetIndex].label || '';\n\t\t\t\treturn datasetLabel + ': ' + item.xLabel;\n\t\t\t}\n\t\t},\n\t\tmode: 'index',\n\t\taxis: 'y'\n\t}\n});\n\n/**\n * Computes the \"optimal\" sample size to maintain bars equally sized while preventing overlap.\n * @private\n */\nfunction computeMinSampleSize(scale, pixels) {\n\tvar min = scale.isHorizontal() ? scale.width : scale.height;\n\tvar ticks = scale.getTicks();\n\tvar prev, curr, i, ilen;\n\n\tfor (i = 1, ilen = pixels.length; i < ilen; ++i) {\n\t\tmin = Math.min(min, pixels[i] - pixels[i - 1]);\n\t}\n\n\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\n\t\tcurr = scale.getPixelForTick(i);\n\t\tmin = i > 0 ? Math.min(min, curr - prev) : min;\n\t\tprev = curr;\n\t}\n\n\treturn min;\n}\n\n/**\n * Computes an \"ideal\" category based on the absolute bar thickness or, if undefined or null,\n * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This\n * mode currently always generates bars equally sized (until we introduce scriptable options?).\n * @private\n */\nfunction computeFitCategoryTraits(index, ruler, options) {\n\tvar thickness = options.barThickness;\n\tvar count = ruler.stackCount;\n\tvar curr = ruler.pixels[index];\n\tvar size, ratio;\n\n\tif (helpers.isNullOrUndef(thickness)) {\n\t\tsize = ruler.min * options.categoryPercentage;\n\t\tratio = options.barPercentage;\n\t} else {\n\t\t// When bar thickness is enforced, category and bar percentages are ignored.\n\t\t// Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')\n\t\t// and deprecate barPercentage since this value is ignored when thickness is absolute.\n\t\tsize = thickness * count;\n\t\tratio = 1;\n\t}\n\n\treturn {\n\t\tchunk: size / count,\n\t\tratio: ratio,\n\t\tstart: curr - (size / 2)\n\t};\n}\n\n/**\n * Computes an \"optimal\" category that globally arranges bars side by side (no gap when\n * percentage options are 1), based on the previous and following categories. This mode\n * generates bars with different widths when data are not evenly spaced.\n * @private\n */\nfunction computeFlexCategoryTraits(index, ruler, options) {\n\tvar pixels = ruler.pixels;\n\tvar curr = pixels[index];\n\tvar prev = index > 0 ? pixels[index - 1] : null;\n\tvar next = index < pixels.length - 1 ? pixels[index + 1] : null;\n\tvar percent = options.categoryPercentage;\n\tvar start, size;\n\n\tif (prev === null) {\n\t\t// first data: its size is double based on the next point or,\n\t\t// if it's also the last data, we use the scale end extremity.\n\t\tprev = curr - (next === null ? ruler.end - curr : next - curr);\n\t}\n\n\tif (next === null) {\n\t\t// last data: its size is also double based on the previous point.\n\t\tnext = curr + curr - prev;\n\t}\n\n\tstart = curr - ((curr - prev) / 2) * percent;\n\tsize = ((next - prev) / 2) * percent;\n\n\treturn {\n\t\tchunk: size / ruler.stackCount,\n\t\tratio: options.barPercentage,\n\t\tstart: start\n\t};\n}\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.bar = Chart.DatasetController.extend({\n\n\t\tdataElementType: elements.Rectangle,\n\n\t\tinitialize: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta;\n\n\t\t\tChart.DatasetController.prototype.initialize.apply(me, arguments);\n\n\t\t\tmeta = me.getMeta();\n\t\t\tmeta.stack = me.getDataset().stack;\n\t\t\tmeta.bar = true;\n\t\t},\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar rects = me.getMeta().data;\n\t\t\tvar i, ilen;\n\n\t\t\tme._ruler = me.getRuler();\n\n\t\t\tfor (i = 0, ilen = rects.length; i < ilen; ++i) {\n\t\t\t\tme.updateElement(rects[i], i, reset);\n\t\t\t}\n\t\t},\n\n\t\tupdateElement: function(rectangle, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar custom = rectangle.custom || {};\n\t\t\tvar rectangleOptions = chart.options.elements.rectangle;\n\n\t\t\trectangle._xScale = me.getScaleForId(meta.xAxisID);\n\t\t\trectangle._yScale = me.getScaleForId(meta.yAxisID);\n\t\t\trectangle._datasetIndex = me.index;\n\t\t\trectangle._index = index;\n\n\t\t\trectangle._model = {\n\t\t\t\tdatasetLabel: dataset.label,\n\t\t\t\tlabel: chart.data.labels[index],\n\t\t\t\tborderSkipped: custom.borderSkipped ? custom.borderSkipped : rectangleOptions.borderSkipped,\n\t\t\t\tbackgroundColor: custom.backgroundColor ? custom.backgroundColor : helpers.valueAtIndexOrDefault(dataset.backgroundColor, index, rectangleOptions.backgroundColor),\n\t\t\t\tborderColor: custom.borderColor ? custom.borderColor : helpers.valueAtIndexOrDefault(dataset.borderColor, index, rectangleOptions.borderColor),\n\t\t\t\tborderWidth: custom.borderWidth ? custom.borderWidth : helpers.valueAtIndexOrDefault(dataset.borderWidth, index, rectangleOptions.borderWidth)\n\t\t\t};\n\n\t\t\tme.updateElementGeometry(rectangle, index, reset);\n\n\t\t\trectangle.pivot();\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tupdateElementGeometry: function(rectangle, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar model = rectangle._model;\n\t\t\tvar vscale = me.getValueScale();\n\t\t\tvar base = vscale.getBasePixel();\n\t\t\tvar horizontal = vscale.isHorizontal();\n\t\t\tvar ruler = me._ruler || me.getRuler();\n\t\t\tvar vpixels = me.calculateBarValuePixels(me.index, index);\n\t\t\tvar ipixels = me.calculateBarIndexPixels(me.index, index, ruler);\n\n\t\t\tmodel.horizontal = horizontal;\n\t\t\tmodel.base = reset ? base : vpixels.base;\n\t\t\tmodel.x = horizontal ? reset ? base : vpixels.head : ipixels.center;\n\t\t\tmodel.y = horizontal ? ipixels.center : reset ? base : vpixels.head;\n\t\t\tmodel.height = horizontal ? ipixels.size : undefined;\n\t\t\tmodel.width = horizontal ? undefined : ipixels.size;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetValueScaleId: function() {\n\t\t\treturn this.getMeta().yAxisID;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetIndexScaleId: function() {\n\t\t\treturn this.getMeta().xAxisID;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetValueScale: function() {\n\t\t\treturn this.getScaleForId(this.getValueScaleId());\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetIndexScale: function() {\n\t\t\treturn this.getScaleForId(this.getIndexScaleId());\n\t\t},\n\n\t\t/**\n\t\t * Returns the stacks based on groups and bar visibility.\n\t\t * @param {Number} [last] - The dataset index\n\t\t * @returns {Array} The stack list\n\t\t * @private\n\t\t */\n\t\t_getStacks: function(last) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar scale = me.getIndexScale();\n\t\t\tvar stacked = scale.options.stacked;\n\t\t\tvar ilen = last === undefined ? chart.data.datasets.length : last + 1;\n\t\t\tvar stacks = [];\n\t\t\tvar i, meta;\n\n\t\t\tfor (i = 0; i < ilen; ++i) {\n\t\t\t\tmeta = chart.getDatasetMeta(i);\n\t\t\t\tif (meta.bar && chart.isDatasetVisible(i) &&\n\t\t\t\t\t(stacked === false ||\n\t\t\t\t\t(stacked === true && stacks.indexOf(meta.stack) === -1) ||\n\t\t\t\t\t(stacked === undefined && (meta.stack === undefined || stacks.indexOf(meta.stack) === -1)))) {\n\t\t\t\t\tstacks.push(meta.stack);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn stacks;\n\t\t},\n\n\t\t/**\n\t\t * Returns the effective number of stacks based on groups and bar visibility.\n\t\t * @private\n\t\t */\n\t\tgetStackCount: function() {\n\t\t\treturn this._getStacks().length;\n\t\t},\n\n\t\t/**\n\t\t * Returns the stack index for the given dataset based on groups and bar visibility.\n\t\t * @param {Number} [datasetIndex] - The dataset index\n\t\t * @param {String} [name] - The stack name to find\n\t\t * @returns {Number} The stack index\n\t\t * @private\n\t\t */\n\t\tgetStackIndex: function(datasetIndex, name) {\n\t\t\tvar stacks = this._getStacks(datasetIndex);\n\t\t\tvar index = (name !== undefined)\n\t\t\t\t? stacks.indexOf(name)\n\t\t\t\t: -1; // indexOf returns -1 if element is not present\n\n\t\t\treturn (index === -1)\n\t\t\t\t? stacks.length - 1\n\t\t\t\t: index;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetRuler: function() {\n\t\t\tvar me = this;\n\t\t\tvar scale = me.getIndexScale();\n\t\t\tvar stackCount = me.getStackCount();\n\t\t\tvar datasetIndex = me.index;\n\t\t\tvar isHorizontal = scale.isHorizontal();\n\t\t\tvar start = isHorizontal ? scale.left : scale.top;\n\t\t\tvar end = start + (isHorizontal ? scale.width : scale.height);\n\t\t\tvar pixels = [];\n\t\t\tvar i, ilen, min;\n\n\t\t\tfor (i = 0, ilen = me.getMeta().data.length; i < ilen; ++i) {\n\t\t\t\tpixels.push(scale.getPixelForValue(null, i, datasetIndex));\n\t\t\t}\n\n\t\t\tmin = helpers.isNullOrUndef(scale.options.barThickness)\n\t\t\t\t? computeMinSampleSize(scale, pixels)\n\t\t\t\t: -1;\n\n\t\t\treturn {\n\t\t\t\tmin: min,\n\t\t\t\tpixels: pixels,\n\t\t\t\tstart: start,\n\t\t\t\tend: end,\n\t\t\t\tstackCount: stackCount,\n\t\t\t\tscale: scale\n\t\t\t};\n\t\t},\n\n\t\t/**\n\t\t * Note: pixel values are not clamped to the scale area.\n\t\t * @private\n\t\t */\n\t\tcalculateBarValuePixels: function(datasetIndex, index) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar scale = me.getValueScale();\n\t\t\tvar datasets = chart.data.datasets;\n\t\t\tvar value = scale.getRightValue(datasets[datasetIndex].data[index]);\n\t\t\tvar stacked = scale.options.stacked;\n\t\t\tvar stack = meta.stack;\n\t\t\tvar start = 0;\n\t\t\tvar i, imeta, ivalue, base, head, size;\n\n\t\t\tif (stacked || (stacked === undefined && stack !== undefined)) {\n\t\t\t\tfor (i = 0; i < datasetIndex; ++i) {\n\t\t\t\t\timeta = chart.getDatasetMeta(i);\n\n\t\t\t\t\tif (imeta.bar &&\n\t\t\t\t\t\timeta.stack === stack &&\n\t\t\t\t\t\timeta.controller.getValueScaleId() === scale.id &&\n\t\t\t\t\t\tchart.isDatasetVisible(i)) {\n\n\t\t\t\t\t\tivalue = scale.getRightValue(datasets[i].data[index]);\n\t\t\t\t\t\tif ((value < 0 && ivalue < 0) || (value >= 0 && ivalue > 0)) {\n\t\t\t\t\t\t\tstart += ivalue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbase = scale.getPixelForValue(start);\n\t\t\thead = scale.getPixelForValue(start + value);\n\t\t\tsize = (head - base) / 2;\n\n\t\t\treturn {\n\t\t\t\tsize: size,\n\t\t\t\tbase: base,\n\t\t\t\thead: head,\n\t\t\t\tcenter: head + size / 2\n\t\t\t};\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tcalculateBarIndexPixels: function(datasetIndex, index, ruler) {\n\t\t\tvar me = this;\n\t\t\tvar options = ruler.scale.options;\n\t\t\tvar range = options.barThickness === 'flex'\n\t\t\t\t? computeFlexCategoryTraits(index, ruler, options)\n\t\t\t\t: computeFitCategoryTraits(index, ruler, options);\n\n\t\t\tvar stackIndex = me.getStackIndex(datasetIndex, me.getMeta().stack);\n\t\t\tvar center = range.start + (range.chunk * stackIndex) + (range.chunk / 2);\n\t\t\tvar size = Math.min(\n\t\t\t\thelpers.valueOrDefault(options.maxBarThickness, Infinity),\n\t\t\t\trange.chunk * range.ratio);\n\n\t\t\treturn {\n\t\t\t\tbase: center - size / 2,\n\t\t\t\thead: center + size / 2,\n\t\t\t\tcenter: center,\n\t\t\t\tsize: size\n\t\t\t};\n\t\t},\n\n\t\tdraw: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar scale = me.getValueScale();\n\t\t\tvar rects = me.getMeta().data;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar ilen = rects.length;\n\t\t\tvar i = 0;\n\n\t\t\thelpers.canvas.clipArea(chart.ctx, chart.chartArea);\n\n\t\t\tfor (; i < ilen; ++i) {\n\t\t\t\tif (!isNaN(scale.getRightValue(dataset.data[i]))) {\n\t\t\t\t\trects[i].draw();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\thelpers.canvas.unclipArea(chart.ctx);\n\t\t},\n\t});\n\n\tChart.controllers.horizontalBar = Chart.controllers.bar.extend({\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetValueScaleId: function() {\n\t\t\treturn this.getMeta().xAxisID;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetIndexScaleId: function() {\n\t\t\treturn this.getMeta().yAxisID;\n\t\t}\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],16:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('bubble', {\n\thover: {\n\t\tmode: 'single'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\ttype: 'linear', // bubble should probably use a linear scale by default\n\t\t\tposition: 'bottom',\n\t\t\tid: 'x-axis-0' // need an ID so datasets can reference the scale\n\t\t}],\n\t\tyAxes: [{\n\t\t\ttype: 'linear',\n\t\t\tposition: 'left',\n\t\t\tid: 'y-axis-0'\n\t\t}]\n\t},\n\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function() {\n\t\t\t\t// Title doesn't make sense for scatter since we format the data as a point\n\t\t\t\treturn '';\n\t\t\t},\n\t\t\tlabel: function(item, data) {\n\t\t\t\tvar datasetLabel = data.datasets[item.datasetIndex].label || '';\n\t\t\t\tvar dataPoint = data.datasets[item.datasetIndex].data[item.index];\n\t\t\t\treturn datasetLabel + ': (' + item.xLabel + ', ' + item.yLabel + ', ' + dataPoint.r + ')';\n\t\t\t}\n\t\t}\n\t}\n});\n\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.bubble = Chart.DatasetController.extend({\n\t\t/**\n\t\t * @protected\n\t\t */\n\t\tdataElementType: elements.Point,\n\n\t\t/**\n\t\t * @protected\n\t\t */\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar points = meta.data;\n\n\t\t\t// Update Points\n\t\t\thelpers.each(points, function(point, index) {\n\t\t\t\tme.updateElement(point, index, reset);\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * @protected\n\t\t */\n\t\tupdateElement: function(point, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar xScale = me.getScaleForId(meta.xAxisID);\n\t\t\tvar yScale = me.getScaleForId(meta.yAxisID);\n\t\t\tvar options = me._resolveElementOptions(point, index);\n\t\t\tvar data = me.getDataset().data[index];\n\t\t\tvar dsIndex = me.index;\n\n\t\t\tvar x = reset ? xScale.getPixelForDecimal(0.5) : xScale.getPixelForValue(typeof data === 'object' ? data : NaN, index, dsIndex);\n\t\t\tvar y = reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex);\n\n\t\t\tpoint._xScale = xScale;\n\t\t\tpoint._yScale = yScale;\n\t\t\tpoint._options = options;\n\t\t\tpoint._datasetIndex = dsIndex;\n\t\t\tpoint._index = index;\n\t\t\tpoint._model = {\n\t\t\t\tbackgroundColor: options.backgroundColor,\n\t\t\t\tborderColor: options.borderColor,\n\t\t\t\tborderWidth: options.borderWidth,\n\t\t\t\thitRadius: options.hitRadius,\n\t\t\t\tpointStyle: options.pointStyle,\n\t\t\t\trotation: options.rotation,\n\t\t\t\tradius: reset ? 0 : options.radius,\n\t\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\n\t\t\t\tx: x,\n\t\t\t\ty: y,\n\t\t\t};\n\n\t\t\tpoint.pivot();\n\t\t},\n\n\t\t/**\n\t\t * @protected\n\t\t */\n\t\tsetHoverStyle: function(point) {\n\t\t\tvar model = point._model;\n\t\t\tvar options = point._options;\n\t\t\tpoint.$previousStyle = {\n\t\t\t\tbackgroundColor: model.backgroundColor,\n\t\t\t\tborderColor: model.borderColor,\n\t\t\t\tborderWidth: model.borderWidth,\n\t\t\t\tradius: model.radius\n\t\t\t};\n\t\t\tmodel.backgroundColor = helpers.valueOrDefault(options.hoverBackgroundColor, helpers.getHoverColor(options.backgroundColor));\n\t\t\tmodel.borderColor = helpers.valueOrDefault(options.hoverBorderColor, helpers.getHoverColor(options.borderColor));\n\t\t\tmodel.borderWidth = helpers.valueOrDefault(options.hoverBorderWidth, options.borderWidth);\n\t\t\tmodel.radius = options.radius + options.hoverRadius;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\t_resolveElementOptions: function(point, index) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar datasets = chart.data.datasets;\n\t\t\tvar dataset = datasets[me.index];\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar options = chart.options.elements.point;\n\t\t\tvar resolve = helpers.options.resolve;\n\t\t\tvar data = dataset.data[index];\n\t\t\tvar values = {};\n\t\t\tvar i, ilen, key;\n\n\t\t\t// Scriptable options\n\t\t\tvar context = {\n\t\t\t\tchart: chart,\n\t\t\t\tdataIndex: index,\n\t\t\t\tdataset: dataset,\n\t\t\t\tdatasetIndex: me.index\n\t\t\t};\n\n\t\t\tvar keys = [\n\t\t\t\t'backgroundColor',\n\t\t\t\t'borderColor',\n\t\t\t\t'borderWidth',\n\t\t\t\t'hoverBackgroundColor',\n\t\t\t\t'hoverBorderColor',\n\t\t\t\t'hoverBorderWidth',\n\t\t\t\t'hoverRadius',\n\t\t\t\t'hitRadius',\n\t\t\t\t'pointStyle',\n\t\t\t\t'rotation'\n\t\t\t];\n\n\t\t\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\n\t\t\t\tkey = keys[i];\n\t\t\t\tvalues[key] = resolve([\n\t\t\t\t\tcustom[key],\n\t\t\t\t\tdataset[key],\n\t\t\t\t\toptions[key]\n\t\t\t\t], context, index);\n\t\t\t}\n\n\t\t\t// Custom radius resolution\n\t\t\tvalues.radius = resolve([\n\t\t\t\tcustom.radius,\n\t\t\t\tdata ? data.r : undefined,\n\t\t\t\tdataset.radius,\n\t\t\t\toptions.radius\n\t\t\t], context, index);\n\t\t\treturn values;\n\t\t}\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],17:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('doughnut', {\n\tanimation: {\n\t\t// Boolean - Whether we animate the rotation of the Doughnut\n\t\tanimateRotate: true,\n\t\t// Boolean - Whether we animate scaling the Doughnut from the centre\n\t\tanimateScale: false\n\t},\n\thover: {\n\t\tmode: 'single'\n\t},\n\tlegendCallback: function(chart) {\n\t\tvar text = [];\n\t\ttext.push('<ul class=\"' + chart.id + '-legend\">');\n\n\t\tvar data = chart.data;\n\t\tvar datasets = data.datasets;\n\t\tvar labels = data.labels;\n\n\t\tif (datasets.length) {\n\t\t\tfor (var i = 0; i < datasets[0].data.length; ++i) {\n\t\t\t\ttext.push('<li><span style=\"background-color:' + datasets[0].backgroundColor[i] + '\"></span>');\n\t\t\t\tif (labels[i]) {\n\t\t\t\t\ttext.push(labels[i]);\n\t\t\t\t}\n\t\t\t\ttext.push('</li>');\n\t\t\t}\n\t\t}\n\n\t\ttext.push('</ul>');\n\t\treturn text.join('');\n\t},\n\tlegend: {\n\t\tlabels: {\n\t\t\tgenerateLabels: function(chart) {\n\t\t\t\tvar data = chart.data;\n\t\t\t\tif (data.labels.length && data.datasets.length) {\n\t\t\t\t\treturn data.labels.map(function(label, i) {\n\t\t\t\t\t\tvar meta = chart.getDatasetMeta(0);\n\t\t\t\t\t\tvar ds = data.datasets[0];\n\t\t\t\t\t\tvar arc = meta.data[i];\n\t\t\t\t\t\tvar custom = arc && arc.custom || {};\n\t\t\t\t\t\tvar valueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\t\t\t\tvar arcOpts = chart.options.elements.arc;\n\t\t\t\t\t\tvar fill = custom.backgroundColor ? custom.backgroundColor : valueAtIndexOrDefault(ds.backgroundColor, i, arcOpts.backgroundColor);\n\t\t\t\t\t\tvar stroke = custom.borderColor ? custom.borderColor : valueAtIndexOrDefault(ds.borderColor, i, arcOpts.borderColor);\n\t\t\t\t\t\tvar bw = custom.borderWidth ? custom.borderWidth : valueAtIndexOrDefault(ds.borderWidth, i, arcOpts.borderWidth);\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\ttext: label,\n\t\t\t\t\t\t\tfillStyle: fill,\n\t\t\t\t\t\t\tstrokeStyle: stroke,\n\t\t\t\t\t\t\tlineWidth: bw,\n\t\t\t\t\t\t\thidden: isNaN(ds.data[i]) || meta.data[i].hidden,\n\n\t\t\t\t\t\t\t// Extra data used for toggling the correct item\n\t\t\t\t\t\t\tindex: i\n\t\t\t\t\t\t};\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn [];\n\t\t\t}\n\t\t},\n\n\t\tonClick: function(e, legendItem) {\n\t\t\tvar index = legendItem.index;\n\t\t\tvar chart = this.chart;\n\t\t\tvar i, ilen, meta;\n\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n\t\t\t\tmeta = chart.getDatasetMeta(i);\n\t\t\t\t// toggle visibility of index if exists\n\t\t\t\tif (meta.data[index]) {\n\t\t\t\t\tmeta.data[index].hidden = !meta.data[index].hidden;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tchart.update();\n\t\t}\n\t},\n\n\t// The percentage of the chart that we cut out of the middle.\n\tcutoutPercentage: 50,\n\n\t// The rotation of the chart, where the first data arc begins.\n\trotation: Math.PI * -0.5,\n\n\t// The total circumference of the chart.\n\tcircumference: Math.PI * 2.0,\n\n\t// Need to override these to give a nice default\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function() {\n\t\t\t\treturn '';\n\t\t\t},\n\t\t\tlabel: function(tooltipItem, data) {\n\t\t\t\tvar dataLabel = data.labels[tooltipItem.index];\n\t\t\t\tvar value = ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];\n\n\t\t\t\tif (helpers.isArray(dataLabel)) {\n\t\t\t\t\t// show value on first line of multiline label\n\t\t\t\t\t// need to clone because we are changing the value\n\t\t\t\t\tdataLabel = dataLabel.slice();\n\t\t\t\t\tdataLabel[0] += value;\n\t\t\t\t} else {\n\t\t\t\t\tdataLabel += value;\n\t\t\t\t}\n\n\t\t\t\treturn dataLabel;\n\t\t\t}\n\t\t}\n\t}\n});\n\ndefaults._set('pie', helpers.clone(defaults.doughnut));\ndefaults._set('pie', {\n\tcutoutPercentage: 0\n});\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.doughnut = Chart.controllers.pie = Chart.DatasetController.extend({\n\n\t\tdataElementType: elements.Arc,\n\n\t\tlinkScales: helpers.noop,\n\n\t\t// Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly\n\t\tgetRingIndex: function(datasetIndex) {\n\t\t\tvar ringIndex = 0;\n\n\t\t\tfor (var j = 0; j < datasetIndex; ++j) {\n\t\t\t\tif (this.chart.isDatasetVisible(j)) {\n\t\t\t\t\t++ringIndex;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ringIndex;\n\t\t},\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar chartArea = chart.chartArea;\n\t\t\tvar opts = chart.options;\n\t\t\tvar arcOpts = opts.elements.arc;\n\t\t\tvar availableWidth = chartArea.right - chartArea.left - arcOpts.borderWidth;\n\t\t\tvar availableHeight = chartArea.bottom - chartArea.top - arcOpts.borderWidth;\n\t\t\tvar minSize = Math.min(availableWidth, availableHeight);\n\t\t\tvar offset = {x: 0, y: 0};\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar cutoutPercentage = opts.cutoutPercentage;\n\t\t\tvar circumference = opts.circumference;\n\n\t\t\t// If the chart's circumference isn't a full circle, calculate minSize as a ratio of the width/height of the arc\n\t\t\tif (circumference < Math.PI * 2.0) {\n\t\t\t\tvar startAngle = opts.rotation % (Math.PI * 2.0);\n\t\t\t\tstartAngle += Math.PI * 2.0 * (startAngle >= Math.PI ? -1 : startAngle < -Math.PI ? 1 : 0);\n\t\t\t\tvar endAngle = startAngle + circumference;\n\t\t\t\tvar start = {x: Math.cos(startAngle), y: Math.sin(startAngle)};\n\t\t\t\tvar end = {x: Math.cos(endAngle), y: Math.sin(endAngle)};\n\t\t\t\tvar contains0 = (startAngle <= 0 && endAngle >= 0) || (startAngle <= Math.PI * 2.0 && Math.PI * 2.0 <= endAngle);\n\t\t\t\tvar contains90 = (startAngle <= Math.PI * 0.5 && Math.PI * 0.5 <= endAngle) || (startAngle <= Math.PI * 2.5 && Math.PI * 2.5 <= endAngle);\n\t\t\t\tvar contains180 = (startAngle <= -Math.PI && -Math.PI <= endAngle) || (startAngle <= Math.PI && Math.PI <= endAngle);\n\t\t\t\tvar contains270 = (startAngle <= -Math.PI * 0.5 && -Math.PI * 0.5 <= endAngle) || (startAngle <= Math.PI * 1.5 && Math.PI * 1.5 <= endAngle);\n\t\t\t\tvar cutout = cutoutPercentage / 100.0;\n\t\t\t\tvar min = {x: contains180 ? -1 : Math.min(start.x * (start.x < 0 ? 1 : cutout), end.x * (end.x < 0 ? 1 : cutout)), y: contains270 ? -1 : Math.min(start.y * (start.y < 0 ? 1 : cutout), end.y * (end.y < 0 ? 1 : cutout))};\n\t\t\t\tvar max = {x: contains0 ? 1 : Math.max(start.x * (start.x > 0 ? 1 : cutout), end.x * (end.x > 0 ? 1 : cutout)), y: contains90 ? 1 : Math.max(start.y * (start.y > 0 ? 1 : cutout), end.y * (end.y > 0 ? 1 : cutout))};\n\t\t\t\tvar size = {width: (max.x - min.x) * 0.5, height: (max.y - min.y) * 0.5};\n\t\t\t\tminSize = Math.min(availableWidth / size.width, availableHeight / size.height);\n\t\t\t\toffset = {x: (max.x + min.x) * -0.5, y: (max.y + min.y) * -0.5};\n\t\t\t}\n\n\t\t\tchart.borderWidth = me.getMaxBorderWidth(meta.data);\n\t\t\tchart.outerRadius = Math.max((minSize - chart.borderWidth) / 2, 0);\n\t\t\tchart.innerRadius = Math.max(cutoutPercentage ? (chart.outerRadius / 100) * (cutoutPercentage) : 0, 0);\n\t\t\tchart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();\n\t\t\tchart.offsetX = offset.x * chart.outerRadius;\n\t\t\tchart.offsetY = offset.y * chart.outerRadius;\n\n\t\t\tmeta.total = me.calculateTotal();\n\n\t\t\tme.outerRadius = chart.outerRadius - (chart.radiusLength * me.getRingIndex(me.index));\n\t\t\tme.innerRadius = Math.max(me.outerRadius - chart.radiusLength, 0);\n\n\t\t\thelpers.each(meta.data, function(arc, index) {\n\t\t\t\tme.updateElement(arc, index, reset);\n\t\t\t});\n\t\t},\n\n\t\tupdateElement: function(arc, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar chartArea = chart.chartArea;\n\t\t\tvar opts = chart.options;\n\t\t\tvar animationOpts = opts.animation;\n\t\t\tvar centerX = (chartArea.left + chartArea.right) / 2;\n\t\t\tvar centerY = (chartArea.top + chartArea.bottom) / 2;\n\t\t\tvar startAngle = opts.rotation; // non reset case handled later\n\t\t\tvar endAngle = opts.rotation; // non reset case handled later\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar circumference = reset && animationOpts.animateRotate ? 0 : arc.hidden ? 0 : me.calculateCircumference(dataset.data[index]) * (opts.circumference / (2.0 * Math.PI));\n\t\t\tvar innerRadius = reset && animationOpts.animateScale ? 0 : me.innerRadius;\n\t\t\tvar outerRadius = reset && animationOpts.animateScale ? 0 : me.outerRadius;\n\t\t\tvar valueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\n\t\t\thelpers.extend(arc, {\n\t\t\t\t// Utility\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_index: index,\n\n\t\t\t\t// Desired view properties\n\t\t\t\t_model: {\n\t\t\t\t\tx: centerX + chart.offsetX,\n\t\t\t\t\ty: centerY + chart.offsetY,\n\t\t\t\t\tstartAngle: startAngle,\n\t\t\t\t\tendAngle: endAngle,\n\t\t\t\t\tcircumference: circumference,\n\t\t\t\t\touterRadius: outerRadius,\n\t\t\t\t\tinnerRadius: innerRadius,\n\t\t\t\t\tlabel: valueAtIndexOrDefault(dataset.label, index, chart.data.labels[index])\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tvar model = arc._model;\n\n\t\t\t// Resets the visual styles\n\t\t\tvar custom = arc.custom || {};\n\t\t\tvar valueOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\tvar elementOpts = this.chart.options.elements.arc;\n\t\t\tmodel.backgroundColor = custom.backgroundColor ? custom.backgroundColor : valueOrDefault(dataset.backgroundColor, index, elementOpts.backgroundColor);\n\t\t\tmodel.borderColor = custom.borderColor ? custom.borderColor : valueOrDefault(dataset.borderColor, index, elementOpts.borderColor);\n\t\t\tmodel.borderWidth = custom.borderWidth ? custom.borderWidth : valueOrDefault(dataset.borderWidth, index, elementOpts.borderWidth);\n\n\t\t\t// Set correct angles if not resetting\n\t\t\tif (!reset || !animationOpts.animateRotate) {\n\t\t\t\tif (index === 0) {\n\t\t\t\t\tmodel.startAngle = opts.rotation;\n\t\t\t\t} else {\n\t\t\t\t\tmodel.startAngle = me.getMeta().data[index - 1]._model.endAngle;\n\t\t\t\t}\n\n\t\t\t\tmodel.endAngle = model.startAngle + model.circumference;\n\t\t\t}\n\n\t\t\tarc.pivot();\n\t\t},\n\n\t\tcalculateTotal: function() {\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar meta = this.getMeta();\n\t\t\tvar total = 0;\n\t\t\tvar value;\n\n\t\t\thelpers.each(meta.data, function(element, index) {\n\t\t\t\tvalue = dataset.data[index];\n\t\t\t\tif (!isNaN(value) && !element.hidden) {\n\t\t\t\t\ttotal += Math.abs(value);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t/* if (total === 0) {\n\t\t\t\ttotal = NaN;\n\t\t\t}*/\n\n\t\t\treturn total;\n\t\t},\n\n\t\tcalculateCircumference: function(value) {\n\t\t\tvar total = this.getMeta().total;\n\t\t\tif (total > 0 && !isNaN(value)) {\n\t\t\t\treturn (Math.PI * 2.0) * (Math.abs(value) / total);\n\t\t\t}\n\t\t\treturn 0;\n\t\t},\n\n\t\t// gets the max border or hover width to properly scale pie charts\n\t\tgetMaxBorderWidth: function(arcs) {\n\t\t\tvar max = 0;\n\t\t\tvar index = this.index;\n\t\t\tvar length = arcs.length;\n\t\t\tvar borderWidth;\n\t\t\tvar hoverWidth;\n\n\t\t\tfor (var i = 0; i < length; i++) {\n\t\t\t\tborderWidth = arcs[i]._model ? arcs[i]._model.borderWidth : 0;\n\t\t\t\thoverWidth = arcs[i]._chart ? arcs[i]._chart.config.data.datasets[index].hoverBorderWidth : 0;\n\n\t\t\t\tmax = borderWidth > max ? borderWidth : max;\n\t\t\t\tmax = hoverWidth > max ? hoverWidth : max;\n\t\t\t}\n\t\t\treturn max;\n\t\t}\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],18:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('line', {\n\tshowLines: true,\n\tspanGaps: false,\n\n\thover: {\n\t\tmode: 'label'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\ttype: 'category',\n\t\t\tid: 'x-axis-0'\n\t\t}],\n\t\tyAxes: [{\n\t\t\ttype: 'linear',\n\t\t\tid: 'y-axis-0'\n\t\t}]\n\t}\n});\n\nmodule.exports = function(Chart) {\n\n\tfunction lineEnabled(dataset, options) {\n\t\treturn helpers.valueOrDefault(dataset.showLine, options.showLines);\n\t}\n\n\tChart.controllers.line = Chart.DatasetController.extend({\n\n\t\tdatasetElementType: elements.Line,\n\n\t\tdataElementType: elements.Point,\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar line = meta.dataset;\n\t\t\tvar points = meta.data || [];\n\t\t\tvar options = me.chart.options;\n\t\t\tvar lineElementOptions = options.elements.line;\n\t\t\tvar scale = me.getScaleForId(meta.yAxisID);\n\t\t\tvar i, ilen, custom;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar showLine = lineEnabled(dataset, options);\n\n\t\t\t// Update Line\n\t\t\tif (showLine) {\n\t\t\t\tcustom = line.custom || {};\n\n\t\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\n\t\t\t\tif ((dataset.tension !== undefined) && (dataset.lineTension === undefined)) {\n\t\t\t\t\tdataset.lineTension = dataset.tension;\n\t\t\t\t}\n\n\t\t\t\t// Utility\n\t\t\t\tline._scale = scale;\n\t\t\t\tline._datasetIndex = me.index;\n\t\t\t\t// Data\n\t\t\t\tline._children = points;\n\t\t\t\t// Model\n\t\t\t\tline._model = {\n\t\t\t\t\t// Appearance\n\t\t\t\t\t// The default behavior of lines is to break at null values, according\n\t\t\t\t\t// to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158\n\t\t\t\t\t// This option gives lines the ability to span gaps\n\t\t\t\t\tspanGaps: dataset.spanGaps ? dataset.spanGaps : options.spanGaps,\n\t\t\t\t\ttension: custom.tension ? custom.tension : helpers.valueOrDefault(dataset.lineTension, lineElementOptions.tension),\n\t\t\t\t\tbackgroundColor: custom.backgroundColor ? custom.backgroundColor : (dataset.backgroundColor || lineElementOptions.backgroundColor),\n\t\t\t\t\tborderWidth: custom.borderWidth ? custom.borderWidth : (dataset.borderWidth || lineElementOptions.borderWidth),\n\t\t\t\t\tborderColor: custom.borderColor ? custom.borderColor : (dataset.borderColor || lineElementOptions.borderColor),\n\t\t\t\t\tborderCapStyle: custom.borderCapStyle ? custom.borderCapStyle : (dataset.borderCapStyle || lineElementOptions.borderCapStyle),\n\t\t\t\t\tborderDash: custom.borderDash ? custom.borderDash : (dataset.borderDash || lineElementOptions.borderDash),\n\t\t\t\t\tborderDashOffset: custom.borderDashOffset ? custom.borderDashOffset : (dataset.borderDashOffset || lineElementOptions.borderDashOffset),\n\t\t\t\t\tborderJoinStyle: custom.borderJoinStyle ? custom.borderJoinStyle : (dataset.borderJoinStyle || lineElementOptions.borderJoinStyle),\n\t\t\t\t\tfill: custom.fill ? custom.fill : (dataset.fill !== undefined ? dataset.fill : lineElementOptions.fill),\n\t\t\t\t\tsteppedLine: custom.steppedLine ? custom.steppedLine : helpers.valueOrDefault(dataset.steppedLine, lineElementOptions.stepped),\n\t\t\t\t\tcubicInterpolationMode: custom.cubicInterpolationMode ? custom.cubicInterpolationMode : helpers.valueOrDefault(dataset.cubicInterpolationMode, lineElementOptions.cubicInterpolationMode),\n\t\t\t\t};\n\n\t\t\t\tline.pivot();\n\t\t\t}\n\n\t\t\t// Update Points\n\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\n\t\t\t\tme.updateElement(points[i], i, reset);\n\t\t\t}\n\n\t\t\tif (showLine && line._model.tension !== 0) {\n\t\t\t\tme.updateBezierControlPoints();\n\t\t\t}\n\n\t\t\t// Now pivot the point for animation\n\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\n\t\t\t\tpoints[i].pivot();\n\t\t\t}\n\t\t},\n\n\t\tgetPointBackgroundColor: function(point, index) {\n\t\t\tvar backgroundColor = this.chart.options.elements.point.backgroundColor;\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar custom = point.custom || {};\n\n\t\t\tif (custom.backgroundColor) {\n\t\t\t\tbackgroundColor = custom.backgroundColor;\n\t\t\t} else if (dataset.pointBackgroundColor) {\n\t\t\t\tbackgroundColor = helpers.valueAtIndexOrDefault(dataset.pointBackgroundColor, index, backgroundColor);\n\t\t\t} else if (dataset.backgroundColor) {\n\t\t\t\tbackgroundColor = dataset.backgroundColor;\n\t\t\t}\n\n\t\t\treturn backgroundColor;\n\t\t},\n\n\t\tgetPointBorderColor: function(point, index) {\n\t\t\tvar borderColor = this.chart.options.elements.point.borderColor;\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar custom = point.custom || {};\n\n\t\t\tif (custom.borderColor) {\n\t\t\t\tborderColor = custom.borderColor;\n\t\t\t} else if (dataset.pointBorderColor) {\n\t\t\t\tborderColor = helpers.valueAtIndexOrDefault(dataset.pointBorderColor, index, borderColor);\n\t\t\t} else if (dataset.borderColor) {\n\t\t\t\tborderColor = dataset.borderColor;\n\t\t\t}\n\n\t\t\treturn borderColor;\n\t\t},\n\n\t\tgetPointBorderWidth: function(point, index) {\n\t\t\tvar borderWidth = this.chart.options.elements.point.borderWidth;\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar custom = point.custom || {};\n\n\t\t\tif (!isNaN(custom.borderWidth)) {\n\t\t\t\tborderWidth = custom.borderWidth;\n\t\t\t} else if (!isNaN(dataset.pointBorderWidth) || helpers.isArray(dataset.pointBorderWidth)) {\n\t\t\t\tborderWidth = helpers.valueAtIndexOrDefault(dataset.pointBorderWidth, index, borderWidth);\n\t\t\t} else if (!isNaN(dataset.borderWidth)) {\n\t\t\t\tborderWidth = dataset.borderWidth;\n\t\t\t}\n\n\t\t\treturn borderWidth;\n\t\t},\n\n\t\tgetPointRotation: function(point, index) {\n\t\t\tvar pointRotation = this.chart.options.elements.point.rotation;\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar custom = point.custom || {};\n\n\t\t\tif (!isNaN(custom.rotation)) {\n\t\t\t\tpointRotation = custom.rotation;\n\t\t\t} else if (!isNaN(dataset.pointRotation) || helpers.isArray(dataset.pointRotation)) {\n\t\t\t\tpointRotation = helpers.valueAtIndexOrDefault(dataset.pointRotation, index, pointRotation);\n\t\t\t}\n\t\t\treturn pointRotation;\n\t\t},\n\n\t\tupdateElement: function(point, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar datasetIndex = me.index;\n\t\t\tvar value = dataset.data[index];\n\t\t\tvar yScale = me.getScaleForId(meta.yAxisID);\n\t\t\tvar xScale = me.getScaleForId(meta.xAxisID);\n\t\t\tvar pointOptions = me.chart.options.elements.point;\n\t\t\tvar x, y;\n\n\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\n\t\t\tif ((dataset.radius !== undefined) && (dataset.pointRadius === undefined)) {\n\t\t\t\tdataset.pointRadius = dataset.radius;\n\t\t\t}\n\t\t\tif ((dataset.hitRadius !== undefined) && (dataset.pointHitRadius === undefined)) {\n\t\t\t\tdataset.pointHitRadius = dataset.hitRadius;\n\t\t\t}\n\n\t\t\tx = xScale.getPixelForValue(typeof value === 'object' ? value : NaN, index, datasetIndex);\n\t\t\ty = reset ? yScale.getBasePixel() : me.calculatePointY(value, index, datasetIndex);\n\n\t\t\t// Utility\n\t\t\tpoint._xScale = xScale;\n\t\t\tpoint._yScale = yScale;\n\t\t\tpoint._datasetIndex = datasetIndex;\n\t\t\tpoint._index = index;\n\n\t\t\t// Desired view properties\n\t\t\tpoint._model = {\n\t\t\t\tx: x,\n\t\t\t\ty: y,\n\t\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\n\t\t\t\t// Appearance\n\t\t\t\tradius: custom.radius || helpers.valueAtIndexOrDefault(dataset.pointRadius, index, pointOptions.radius),\n\t\t\t\tpointStyle: custom.pointStyle || helpers.valueAtIndexOrDefault(dataset.pointStyle, index, pointOptions.pointStyle),\n\t\t\t\trotation: me.getPointRotation(point, index),\n\t\t\t\tbackgroundColor: me.getPointBackgroundColor(point, index),\n\t\t\t\tborderColor: me.getPointBorderColor(point, index),\n\t\t\t\tborderWidth: me.getPointBorderWidth(point, index),\n\t\t\t\ttension: meta.dataset._model ? meta.dataset._model.tension : 0,\n\t\t\t\tsteppedLine: meta.dataset._model ? meta.dataset._model.steppedLine : false,\n\t\t\t\t// Tooltip\n\t\t\t\thitRadius: custom.hitRadius || helpers.valueAtIndexOrDefault(dataset.pointHitRadius, index, pointOptions.hitRadius)\n\t\t\t};\n\t\t},\n\n\t\tcalculatePointY: function(value, index, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar yScale = me.getScaleForId(meta.yAxisID);\n\t\t\tvar sumPos = 0;\n\t\t\tvar sumNeg = 0;\n\t\t\tvar i, ds, dsMeta;\n\n\t\t\tif (yScale.options.stacked) {\n\t\t\t\tfor (i = 0; i < datasetIndex; i++) {\n\t\t\t\t\tds = chart.data.datasets[i];\n\t\t\t\t\tdsMeta = chart.getDatasetMeta(i);\n\t\t\t\t\tif (dsMeta.type === 'line' && dsMeta.yAxisID === yScale.id && chart.isDatasetVisible(i)) {\n\t\t\t\t\t\tvar stackedRightValue = Number(yScale.getRightValue(ds.data[index]));\n\t\t\t\t\t\tif (stackedRightValue < 0) {\n\t\t\t\t\t\t\tsumNeg += stackedRightValue || 0;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsumPos += stackedRightValue || 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvar rightValue = Number(yScale.getRightValue(value));\n\t\t\t\tif (rightValue < 0) {\n\t\t\t\t\treturn yScale.getPixelForValue(sumNeg + rightValue);\n\t\t\t\t}\n\t\t\t\treturn yScale.getPixelForValue(sumPos + rightValue);\n\t\t\t}\n\n\t\t\treturn yScale.getPixelForValue(value);\n\t\t},\n\n\t\tupdateBezierControlPoints: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar area = me.chart.chartArea;\n\t\t\tvar points = (meta.data || []);\n\t\t\tvar i, ilen, point, model, controlPoints;\n\n\t\t\t// Only consider points that are drawn in case the spanGaps option is used\n\t\t\tif (meta.dataset._model.spanGaps) {\n\t\t\t\tpoints = points.filter(function(pt) {\n\t\t\t\t\treturn !pt._model.skip;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tfunction capControlPoint(pt, min, max) {\n\t\t\t\treturn Math.max(Math.min(pt, max), min);\n\t\t\t}\n\n\t\t\tif (meta.dataset._model.cubicInterpolationMode === 'monotone') {\n\t\t\t\thelpers.splineCurveMonotone(points);\n\t\t\t} else {\n\t\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\n\t\t\t\t\tpoint = points[i];\n\t\t\t\t\tmodel = point._model;\n\t\t\t\t\tcontrolPoints = helpers.splineCurve(\n\t\t\t\t\t\thelpers.previousItem(points, i)._model,\n\t\t\t\t\t\tmodel,\n\t\t\t\t\t\thelpers.nextItem(points, i)._model,\n\t\t\t\t\t\tmeta.dataset._model.tension\n\t\t\t\t\t);\n\t\t\t\t\tmodel.controlPointPreviousX = controlPoints.previous.x;\n\t\t\t\t\tmodel.controlPointPreviousY = controlPoints.previous.y;\n\t\t\t\t\tmodel.controlPointNextX = controlPoints.next.x;\n\t\t\t\t\tmodel.controlPointNextY = controlPoints.next.y;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (me.chart.options.elements.line.capBezierPoints) {\n\t\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\n\t\t\t\t\tmodel = points[i]._model;\n\t\t\t\t\tmodel.controlPointPreviousX = capControlPoint(model.controlPointPreviousX, area.left, area.right);\n\t\t\t\t\tmodel.controlPointPreviousY = capControlPoint(model.controlPointPreviousY, area.top, area.bottom);\n\t\t\t\t\tmodel.controlPointNextX = capControlPoint(model.controlPointNextX, area.left, area.right);\n\t\t\t\t\tmodel.controlPointNextY = capControlPoint(model.controlPointNextY, area.top, area.bottom);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tdraw: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar points = meta.data || [];\n\t\t\tvar area = chart.chartArea;\n\t\t\tvar ilen = points.length;\n\t\t\tvar halfBorderWidth;\n\t\t\tvar i = 0;\n\n\t\t\tif (lineEnabled(me.getDataset(), chart.options)) {\n\t\t\t\thalfBorderWidth = (meta.dataset._model.borderWidth || 0) / 2;\n\n\t\t\t\thelpers.canvas.clipArea(chart.ctx, {\n\t\t\t\t\tleft: area.left,\n\t\t\t\t\tright: area.right,\n\t\t\t\t\ttop: area.top - halfBorderWidth,\n\t\t\t\t\tbottom: area.bottom + halfBorderWidth\n\t\t\t\t});\n\n\t\t\t\tmeta.dataset.draw();\n\n\t\t\t\thelpers.canvas.unclipArea(chart.ctx);\n\t\t\t}\n\n\t\t\t// Draw the points\n\t\t\tfor (; i < ilen; ++i) {\n\t\t\t\tpoints[i].draw(area);\n\t\t\t}\n\t\t},\n\n\t\tsetHoverStyle: function(element) {\n\t\t\t// Point\n\t\t\tvar dataset = this.chart.data.datasets[element._datasetIndex];\n\t\t\tvar index = element._index;\n\t\t\tvar custom = element.custom || {};\n\t\t\tvar model = element._model;\n\n\t\t\telement.$previousStyle = {\n\t\t\t\tbackgroundColor: model.backgroundColor,\n\t\t\t\tborderColor: model.borderColor,\n\t\t\t\tborderWidth: model.borderWidth,\n\t\t\t\tradius: model.radius\n\t\t\t};\n\n\t\t\tmodel.backgroundColor = custom.hoverBackgroundColor || helpers.valueAtIndexOrDefault(dataset.pointHoverBackgroundColor, index, helpers.getHoverColor(model.backgroundColor));\n\t\t\tmodel.borderColor = custom.hoverBorderColor || helpers.valueAtIndexOrDefault(dataset.pointHoverBorderColor, index, helpers.getHoverColor(model.borderColor));\n\t\t\tmodel.borderWidth = custom.hoverBorderWidth || helpers.valueAtIndexOrDefault(dataset.pointHoverBorderWidth, index, model.borderWidth);\n\t\t\tmodel.radius = custom.hoverRadius || helpers.valueAtIndexOrDefault(dataset.pointHoverRadius, index, this.chart.options.elements.point.hoverRadius);\n\t\t},\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],19:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('polarArea', {\n\tscale: {\n\t\ttype: 'radialLinear',\n\t\tangleLines: {\n\t\t\tdisplay: false\n\t\t},\n\t\tgridLines: {\n\t\t\tcircular: true\n\t\t},\n\t\tpointLabels: {\n\t\t\tdisplay: false\n\t\t},\n\t\tticks: {\n\t\t\tbeginAtZero: true\n\t\t}\n\t},\n\n\t// Boolean - Whether to animate the rotation of the chart\n\tanimation: {\n\t\tanimateRotate: true,\n\t\tanimateScale: true\n\t},\n\n\tstartAngle: -0.5 * Math.PI,\n\tlegendCallback: function(chart) {\n\t\tvar text = [];\n\t\ttext.push('<ul class=\"' + chart.id + '-legend\">');\n\n\t\tvar data = chart.data;\n\t\tvar datasets = data.datasets;\n\t\tvar labels = data.labels;\n\n\t\tif (datasets.length) {\n\t\t\tfor (var i = 0; i < datasets[0].data.length; ++i) {\n\t\t\t\ttext.push('<li><span style=\"background-color:' + datasets[0].backgroundColor[i] + '\"></span>');\n\t\t\t\tif (labels[i]) {\n\t\t\t\t\ttext.push(labels[i]);\n\t\t\t\t}\n\t\t\t\ttext.push('</li>');\n\t\t\t}\n\t\t}\n\n\t\ttext.push('</ul>');\n\t\treturn text.join('');\n\t},\n\tlegend: {\n\t\tlabels: {\n\t\t\tgenerateLabels: function(chart) {\n\t\t\t\tvar data = chart.data;\n\t\t\t\tif (data.labels.length && data.datasets.length) {\n\t\t\t\t\treturn data.labels.map(function(label, i) {\n\t\t\t\t\t\tvar meta = chart.getDatasetMeta(0);\n\t\t\t\t\t\tvar ds = data.datasets[0];\n\t\t\t\t\t\tvar arc = meta.data[i];\n\t\t\t\t\t\tvar custom = arc.custom || {};\n\t\t\t\t\t\tvar valueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\t\t\t\tvar arcOpts = chart.options.elements.arc;\n\t\t\t\t\t\tvar fill = custom.backgroundColor ? custom.backgroundColor : valueAtIndexOrDefault(ds.backgroundColor, i, arcOpts.backgroundColor);\n\t\t\t\t\t\tvar stroke = custom.borderColor ? custom.borderColor : valueAtIndexOrDefault(ds.borderColor, i, arcOpts.borderColor);\n\t\t\t\t\t\tvar bw = custom.borderWidth ? custom.borderWidth : valueAtIndexOrDefault(ds.borderWidth, i, arcOpts.borderWidth);\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\ttext: label,\n\t\t\t\t\t\t\tfillStyle: fill,\n\t\t\t\t\t\t\tstrokeStyle: stroke,\n\t\t\t\t\t\t\tlineWidth: bw,\n\t\t\t\t\t\t\thidden: isNaN(ds.data[i]) || meta.data[i].hidden,\n\n\t\t\t\t\t\t\t// Extra data used for toggling the correct item\n\t\t\t\t\t\t\tindex: i\n\t\t\t\t\t\t};\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn [];\n\t\t\t}\n\t\t},\n\n\t\tonClick: function(e, legendItem) {\n\t\t\tvar index = legendItem.index;\n\t\t\tvar chart = this.chart;\n\t\t\tvar i, ilen, meta;\n\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n\t\t\t\tmeta = chart.getDatasetMeta(i);\n\t\t\t\tmeta.data[index].hidden = !meta.data[index].hidden;\n\t\t\t}\n\n\t\t\tchart.update();\n\t\t}\n\t},\n\n\t// Need to override these to give a nice default\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function() {\n\t\t\t\treturn '';\n\t\t\t},\n\t\t\tlabel: function(item, data) {\n\t\t\t\treturn data.labels[item.index] + ': ' + item.yLabel;\n\t\t\t}\n\t\t}\n\t}\n});\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.polarArea = Chart.DatasetController.extend({\n\n\t\tdataElementType: elements.Arc,\n\n\t\tlinkScales: helpers.noop,\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar start = me.chart.options.startAngle || 0;\n\t\t\tvar starts = me._starts = [];\n\t\t\tvar angles = me._angles = [];\n\t\t\tvar i, ilen, angle;\n\n\t\t\tme._updateRadius();\n\n\t\t\tmeta.count = me.countVisibleElements();\n\n\t\t\tfor (i = 0, ilen = dataset.data.length; i < ilen; i++) {\n\t\t\t\tstarts[i] = start;\n\t\t\t\tangle = me._computeAngle(i);\n\t\t\t\tangles[i] = angle;\n\t\t\t\tstart += angle;\n\t\t\t}\n\n\t\t\thelpers.each(meta.data, function(arc, index) {\n\t\t\t\tme.updateElement(arc, index, reset);\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\t_updateRadius: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar chartArea = chart.chartArea;\n\t\t\tvar opts = chart.options;\n\t\t\tvar arcOpts = opts.elements.arc;\n\t\t\tvar minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);\n\n\t\t\tchart.outerRadius = Math.max((minSize - arcOpts.borderWidth / 2) / 2, 0);\n\t\t\tchart.innerRadius = Math.max(opts.cutoutPercentage ? (chart.outerRadius / 100) * (opts.cutoutPercentage) : 1, 0);\n\t\t\tchart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();\n\n\t\t\tme.outerRadius = chart.outerRadius - (chart.radiusLength * me.index);\n\t\t\tme.innerRadius = me.outerRadius - chart.radiusLength;\n\t\t},\n\n\t\tupdateElement: function(arc, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar opts = chart.options;\n\t\t\tvar animationOpts = opts.animation;\n\t\t\tvar scale = chart.scale;\n\t\t\tvar labels = chart.data.labels;\n\n\t\t\tvar centerX = scale.xCenter;\n\t\t\tvar centerY = scale.yCenter;\n\n\t\t\t// var negHalfPI = -0.5 * Math.PI;\n\t\t\tvar datasetStartAngle = opts.startAngle;\n\t\t\tvar distance = arc.hidden ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\n\t\t\tvar startAngle = me._starts[index];\n\t\t\tvar endAngle = startAngle + (arc.hidden ? 0 : me._angles[index]);\n\n\t\t\tvar resetRadius = animationOpts.animateScale ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\n\n\t\t\thelpers.extend(arc, {\n\t\t\t\t// Utility\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_index: index,\n\t\t\t\t_scale: scale,\n\n\t\t\t\t// Desired view properties\n\t\t\t\t_model: {\n\t\t\t\t\tx: centerX,\n\t\t\t\t\ty: centerY,\n\t\t\t\t\tinnerRadius: 0,\n\t\t\t\t\touterRadius: reset ? resetRadius : distance,\n\t\t\t\t\tstartAngle: reset && animationOpts.animateRotate ? datasetStartAngle : startAngle,\n\t\t\t\t\tendAngle: reset && animationOpts.animateRotate ? datasetStartAngle : endAngle,\n\t\t\t\t\tlabel: helpers.valueAtIndexOrDefault(labels, index, labels[index])\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// Apply border and fill style\n\t\t\tvar elementOpts = this.chart.options.elements.arc;\n\t\t\tvar custom = arc.custom || {};\n\t\t\tvar valueOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\tvar model = arc._model;\n\n\t\t\tmodel.backgroundColor = custom.backgroundColor ? custom.backgroundColor : valueOrDefault(dataset.backgroundColor, index, elementOpts.backgroundColor);\n\t\t\tmodel.borderColor = custom.borderColor ? custom.borderColor : valueOrDefault(dataset.borderColor, index, elementOpts.borderColor);\n\t\t\tmodel.borderWidth = custom.borderWidth ? custom.borderWidth : valueOrDefault(dataset.borderWidth, index, elementOpts.borderWidth);\n\n\t\t\tarc.pivot();\n\t\t},\n\n\t\tcountVisibleElements: function() {\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar meta = this.getMeta();\n\t\t\tvar count = 0;\n\n\t\t\thelpers.each(meta.data, function(element, index) {\n\t\t\t\tif (!isNaN(dataset.data[index]) && !element.hidden) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn count;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\t_computeAngle: function(index) {\n\t\t\tvar me = this;\n\t\t\tvar count = this.getMeta().count;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar meta = me.getMeta();\n\n\t\t\tif (isNaN(dataset.data[index]) || meta.data[index].hidden) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t// Scriptable options\n\t\t\tvar context = {\n\t\t\t\tchart: me.chart,\n\t\t\t\tdataIndex: index,\n\t\t\t\tdataset: dataset,\n\t\t\t\tdatasetIndex: me.index\n\t\t\t};\n\n\t\t\treturn helpers.options.resolve([\n\t\t\t\tme.chart.options.elements.arc.angle,\n\t\t\t\t(2 * Math.PI) / count\n\t\t\t], context, index);\n\t\t}\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],20:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('radar', {\n\tscale: {\n\t\ttype: 'radialLinear'\n\t},\n\telements: {\n\t\tline: {\n\t\t\ttension: 0 // no bezier in radar\n\t\t}\n\t}\n});\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.radar = Chart.DatasetController.extend({\n\n\t\tdatasetElementType: elements.Line,\n\n\t\tdataElementType: elements.Point,\n\n\t\tlinkScales: helpers.noop,\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar line = meta.dataset;\n\t\t\tvar points = meta.data;\n\t\t\tvar custom = line.custom || {};\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar lineElementOptions = me.chart.options.elements.line;\n\t\t\tvar scale = me.chart.scale;\n\n\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\n\t\t\tif ((dataset.tension !== undefined) && (dataset.lineTension === undefined)) {\n\t\t\t\tdataset.lineTension = dataset.tension;\n\t\t\t}\n\n\t\t\thelpers.extend(meta.dataset, {\n\t\t\t\t// Utility\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_scale: scale,\n\t\t\t\t// Data\n\t\t\t\t_children: points,\n\t\t\t\t_loop: true,\n\t\t\t\t// Model\n\t\t\t\t_model: {\n\t\t\t\t\t// Appearance\n\t\t\t\t\ttension: custom.tension ? custom.tension : helpers.valueOrDefault(dataset.lineTension, lineElementOptions.tension),\n\t\t\t\t\tbackgroundColor: custom.backgroundColor ? custom.backgroundColor : (dataset.backgroundColor || lineElementOptions.backgroundColor),\n\t\t\t\t\tborderWidth: custom.borderWidth ? custom.borderWidth : (dataset.borderWidth || lineElementOptions.borderWidth),\n\t\t\t\t\tborderColor: custom.borderColor ? custom.borderColor : (dataset.borderColor || lineElementOptions.borderColor),\n\t\t\t\t\tfill: custom.fill ? custom.fill : (dataset.fill !== undefined ? dataset.fill : lineElementOptions.fill),\n\t\t\t\t\tborderCapStyle: custom.borderCapStyle ? custom.borderCapStyle : (dataset.borderCapStyle || lineElementOptions.borderCapStyle),\n\t\t\t\t\tborderDash: custom.borderDash ? custom.borderDash : (dataset.borderDash || lineElementOptions.borderDash),\n\t\t\t\t\tborderDashOffset: custom.borderDashOffset ? custom.borderDashOffset : (dataset.borderDashOffset || lineElementOptions.borderDashOffset),\n\t\t\t\t\tborderJoinStyle: custom.borderJoinStyle ? custom.borderJoinStyle : (dataset.borderJoinStyle || lineElementOptions.borderJoinStyle),\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmeta.dataset.pivot();\n\n\t\t\t// Update Points\n\t\t\thelpers.each(points, function(point, index) {\n\t\t\t\tme.updateElement(point, index, reset);\n\t\t\t}, me);\n\n\t\t\t// Update bezier control points\n\t\t\tme.updateBezierControlPoints();\n\t\t},\n\t\tupdateElement: function(point, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar scale = me.chart.scale;\n\t\t\tvar pointElementOptions = me.chart.options.elements.point;\n\t\t\tvar pointPosition = scale.getPointPositionForValue(index, dataset.data[index]);\n\n\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\n\t\t\tif ((dataset.radius !== undefined) && (dataset.pointRadius === undefined)) {\n\t\t\t\tdataset.pointRadius = dataset.radius;\n\t\t\t}\n\t\t\tif ((dataset.hitRadius !== undefined) && (dataset.pointHitRadius === undefined)) {\n\t\t\t\tdataset.pointHitRadius = dataset.hitRadius;\n\t\t\t}\n\n\t\t\thelpers.extend(point, {\n\t\t\t\t// Utility\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_index: index,\n\t\t\t\t_scale: scale,\n\n\t\t\t\t// Desired view properties\n\t\t\t\t_model: {\n\t\t\t\t\tx: reset ? scale.xCenter : pointPosition.x, // value not used in dataset scale, but we want a consistent API between scales\n\t\t\t\t\ty: reset ? scale.yCenter : pointPosition.y,\n\n\t\t\t\t\t// Appearance\n\t\t\t\t\ttension: custom.tension ? custom.tension : helpers.valueOrDefault(dataset.lineTension, me.chart.options.elements.line.tension),\n\t\t\t\t\tradius: custom.radius ? custom.radius : helpers.valueAtIndexOrDefault(dataset.pointRadius, index, pointElementOptions.radius),\n\t\t\t\t\tbackgroundColor: custom.backgroundColor ? custom.backgroundColor : helpers.valueAtIndexOrDefault(dataset.pointBackgroundColor, index, pointElementOptions.backgroundColor),\n\t\t\t\t\tborderColor: custom.borderColor ? custom.borderColor : helpers.valueAtIndexOrDefault(dataset.pointBorderColor, index, pointElementOptions.borderColor),\n\t\t\t\t\tborderWidth: custom.borderWidth ? custom.borderWidth : helpers.valueAtIndexOrDefault(dataset.pointBorderWidth, index, pointElementOptions.borderWidth),\n\t\t\t\t\tpointStyle: custom.pointStyle ? custom.pointStyle : helpers.valueAtIndexOrDefault(dataset.pointStyle, index, pointElementOptions.pointStyle),\n\t\t\t\t\trotation: custom.rotation ? custom.rotation : helpers.valueAtIndexOrDefault(dataset.pointRotation, index, pointElementOptions.rotation),\n\n\t\t\t\t\t// Tooltip\n\t\t\t\t\thitRadius: custom.hitRadius ? custom.hitRadius : helpers.valueAtIndexOrDefault(dataset.pointHitRadius, index, pointElementOptions.hitRadius)\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tpoint._model.skip = custom.skip ? custom.skip : (isNaN(point._model.x) || isNaN(point._model.y));\n\t\t},\n\t\tupdateBezierControlPoints: function() {\n\t\t\tvar chartArea = this.chart.chartArea;\n\t\t\tvar meta = this.getMeta();\n\n\t\t\thelpers.each(meta.data, function(point, index) {\n\t\t\t\tvar model = point._model;\n\t\t\t\tvar controlPoints = helpers.splineCurve(\n\t\t\t\t\thelpers.previousItem(meta.data, index, true)._model,\n\t\t\t\t\tmodel,\n\t\t\t\t\thelpers.nextItem(meta.data, index, true)._model,\n\t\t\t\t\tmodel.tension\n\t\t\t\t);\n\n\t\t\t\t// Prevent the bezier going outside of the bounds of the graph\n\t\t\t\tmodel.controlPointPreviousX = Math.max(Math.min(controlPoints.previous.x, chartArea.right), chartArea.left);\n\t\t\t\tmodel.controlPointPreviousY = Math.max(Math.min(controlPoints.previous.y, chartArea.bottom), chartArea.top);\n\n\t\t\t\tmodel.controlPointNextX = Math.max(Math.min(controlPoints.next.x, chartArea.right), chartArea.left);\n\t\t\t\tmodel.controlPointNextY = Math.max(Math.min(controlPoints.next.y, chartArea.bottom), chartArea.top);\n\n\t\t\t\t// Now pivot the point for animation\n\t\t\t\tpoint.pivot();\n\t\t\t});\n\t\t},\n\n\t\tsetHoverStyle: function(point) {\n\t\t\t// Point\n\t\t\tvar dataset = this.chart.data.datasets[point._datasetIndex];\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar index = point._index;\n\t\t\tvar model = point._model;\n\n\t\t\tpoint.$previousStyle = {\n\t\t\t\tbackgroundColor: model.backgroundColor,\n\t\t\t\tborderColor: model.borderColor,\n\t\t\t\tborderWidth: model.borderWidth,\n\t\t\t\tradius: model.radius\n\t\t\t};\n\n\t\t\tmodel.radius = custom.hoverRadius ? custom.hoverRadius : helpers.valueAtIndexOrDefault(dataset.pointHoverRadius, index, this.chart.options.elements.point.hoverRadius);\n\t\t\tmodel.backgroundColor = custom.hoverBackgroundColor ? custom.hoverBackgroundColor : helpers.valueAtIndexOrDefault(dataset.pointHoverBackgroundColor, index, helpers.getHoverColor(model.backgroundColor));\n\t\t\tmodel.borderColor = custom.hoverBorderColor ? custom.hoverBorderColor : helpers.valueAtIndexOrDefault(dataset.pointHoverBorderColor, index, helpers.getHoverColor(model.borderColor));\n\t\t\tmodel.borderWidth = custom.hoverBorderWidth ? custom.hoverBorderWidth : helpers.valueAtIndexOrDefault(dataset.pointHoverBorderWidth, index, model.borderWidth);\n\t\t},\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],21:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\n\ndefaults._set('scatter', {\n\thover: {\n\t\tmode: 'single'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\tid: 'x-axis-1',    // need an ID so datasets can reference the scale\n\t\t\ttype: 'linear',    // scatter should not use a category axis\n\t\t\tposition: 'bottom'\n\t\t}],\n\t\tyAxes: [{\n\t\t\tid: 'y-axis-1',\n\t\t\ttype: 'linear',\n\t\t\tposition: 'left'\n\t\t}]\n\t},\n\n\tshowLines: false,\n\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function() {\n\t\t\t\treturn '';     // doesn't make sense for scatter since data are formatted as a point\n\t\t\t},\n\t\t\tlabel: function(item) {\n\t\t\t\treturn '(' + item.xLabel + ', ' + item.yLabel + ')';\n\t\t\t}\n\t\t}\n\t}\n});\n\nmodule.exports = function(Chart) {\n\n\t// Scatter charts use line controllers\n\tChart.controllers.scatter = Chart.controllers.line;\n\n};\n\n},{\"26\":26}],22:[function(require,module,exports){\n'use strict';\n\nvar Element = require(27);\n\nvar exports = module.exports = Element.extend({\n\tchart: null, // the animation associated chart instance\n\tcurrentStep: 0, // the current animation step\n\tnumSteps: 60, // default number of steps\n\teasing: '', // the easing to use for this animation\n\trender: null, // render function used by the animation service\n\n\tonAnimationProgress: null, // user specified callback to fire on each step of the animation\n\tonAnimationComplete: null, // user specified callback to fire when the animation finishes\n});\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use Chart.Animation instead\n * @prop Chart.Animation#animationObject\n * @deprecated since version 2.6.0\n * @todo remove at version 3\n */\nObject.defineProperty(exports.prototype, 'animationObject', {\n\tget: function() {\n\t\treturn this;\n\t}\n});\n\n/**\n * Provided for backward compatibility, use Chart.Animation#chart instead\n * @prop Chart.Animation#chartInstance\n * @deprecated since version 2.6.0\n * @todo remove at version 3\n */\nObject.defineProperty(exports.prototype, 'chartInstance', {\n\tget: function() {\n\t\treturn this.chart;\n\t},\n\tset: function(value) {\n\t\tthis.chart = value;\n\t}\n});\n\n},{\"27\":27}],23:[function(require,module,exports){\n/* global window: false */\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\tanimation: {\n\t\tduration: 1000,\n\t\teasing: 'easeOutQuart',\n\t\tonProgress: helpers.noop,\n\t\tonComplete: helpers.noop\n\t}\n});\n\nmodule.exports = {\n\tframeDuration: 17,\n\tanimations: [],\n\tdropFrames: 0,\n\trequest: null,\n\n\t/**\n\t * @param {Chart} chart - The chart to animate.\n\t * @param {Chart.Animation} animation - The animation that we will animate.\n\t * @param {Number} duration - The animation duration in ms.\n\t * @param {Boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions\n\t */\n\taddAnimation: function(chart, animation, duration, lazy) {\n\t\tvar animations = this.animations;\n\t\tvar i, ilen;\n\n\t\tanimation.chart = chart;\n\n\t\tif (!lazy) {\n\t\t\tchart.animating = true;\n\t\t}\n\n\t\tfor (i = 0, ilen = animations.length; i < ilen; ++i) {\n\t\t\tif (animations[i].chart === chart) {\n\t\t\t\tanimations[i] = animation;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tanimations.push(animation);\n\n\t\t// If there are no animations queued, manually kickstart a digest, for lack of a better word\n\t\tif (animations.length === 1) {\n\t\t\tthis.requestAnimationFrame();\n\t\t}\n\t},\n\n\tcancelAnimation: function(chart) {\n\t\tvar index = helpers.findIndex(this.animations, function(animation) {\n\t\t\treturn animation.chart === chart;\n\t\t});\n\n\t\tif (index !== -1) {\n\t\t\tthis.animations.splice(index, 1);\n\t\t\tchart.animating = false;\n\t\t}\n\t},\n\n\trequestAnimationFrame: function() {\n\t\tvar me = this;\n\t\tif (me.request === null) {\n\t\t\t// Skip animation frame requests until the active one is executed.\n\t\t\t// This can happen when processing mouse events, e.g. 'mousemove'\n\t\t\t// and 'mouseout' events will trigger multiple renders.\n\t\t\tme.request = helpers.requestAnimFrame.call(window, function() {\n\t\t\t\tme.request = null;\n\t\t\t\tme.startDigest();\n\t\t\t});\n\t\t}\n\t},\n\n\t/**\n\t * @private\n\t */\n\tstartDigest: function() {\n\t\tvar me = this;\n\t\tvar startTime = Date.now();\n\t\tvar framesToDrop = 0;\n\n\t\tif (me.dropFrames > 1) {\n\t\t\tframesToDrop = Math.floor(me.dropFrames);\n\t\t\tme.dropFrames = me.dropFrames % 1;\n\t\t}\n\n\t\tme.advance(1 + framesToDrop);\n\n\t\tvar endTime = Date.now();\n\n\t\tme.dropFrames += (endTime - startTime) / me.frameDuration;\n\n\t\t// Do we have more stuff to animate?\n\t\tif (me.animations.length > 0) {\n\t\t\tme.requestAnimationFrame();\n\t\t}\n\t},\n\n\t/**\n\t * @private\n\t */\n\tadvance: function(count) {\n\t\tvar animations = this.animations;\n\t\tvar animation, chart;\n\t\tvar i = 0;\n\n\t\twhile (i < animations.length) {\n\t\t\tanimation = animations[i];\n\t\t\tchart = animation.chart;\n\n\t\t\tanimation.currentStep = (animation.currentStep || 0) + count;\n\t\t\tanimation.currentStep = Math.min(animation.currentStep, animation.numSteps);\n\n\t\t\thelpers.callback(animation.render, [chart, animation], chart);\n\t\t\thelpers.callback(animation.onAnimationProgress, [animation], chart);\n\n\t\t\tif (animation.currentStep >= animation.numSteps) {\n\t\t\t\thelpers.callback(animation.onAnimationComplete, [animation], chart);\n\t\t\t\tchart.animating = false;\n\t\t\t\tanimations.splice(i, 1);\n\t\t\t} else {\n\t\t\t\t++i;\n\t\t\t}\n\t\t}\n\t}\n};\n\n},{\"26\":26,\"46\":46}],24:[function(require,module,exports){\n'use strict';\n\nvar Animation = require(22);\nvar animations = require(23);\nvar defaults = require(26);\nvar helpers = require(46);\nvar Interaction = require(29);\nvar layouts = require(31);\nvar platform = require(49);\nvar plugins = require(32);\nvar scaleService = require(34);\nvar Tooltip = require(36);\n\nmodule.exports = function(Chart) {\n\n\t// Create a dictionary of chart types, to allow for extension of existing types\n\tChart.types = {};\n\n\t// Store a reference to each instance - allowing us to globally resize chart instances on window resize.\n\t// Destroy method on the chart will remove the instance of the chart from this reference.\n\tChart.instances = {};\n\n\t// Controllers available for dataset visualization eg. bar, line, slice, etc.\n\tChart.controllers = {};\n\n\t/**\n\t * Initializes the given config with global and chart default values.\n\t */\n\tfunction initConfig(config) {\n\t\tconfig = config || {};\n\n\t\t// Do NOT use configMerge() for the data object because this method merges arrays\n\t\t// and so would change references to labels and datasets, preventing data updates.\n\t\tvar data = config.data = config.data || {};\n\t\tdata.datasets = data.datasets || [];\n\t\tdata.labels = data.labels || [];\n\n\t\tconfig.options = helpers.configMerge(\n\t\t\tdefaults.global,\n\t\t\tdefaults[config.type],\n\t\t\tconfig.options || {});\n\n\t\treturn config;\n\t}\n\n\t/**\n\t * Updates the config of the chart\n\t * @param chart {Chart} chart to update the options for\n\t */\n\tfunction updateConfig(chart) {\n\t\tvar newOptions = chart.options;\n\n\t\thelpers.each(chart.scales, function(scale) {\n\t\t\tlayouts.removeBox(chart, scale);\n\t\t});\n\n\t\tnewOptions = helpers.configMerge(\n\t\t\tChart.defaults.global,\n\t\t\tChart.defaults[chart.config.type],\n\t\t\tnewOptions);\n\n\t\tchart.options = chart.config.options = newOptions;\n\t\tchart.ensureScalesHaveIDs();\n\t\tchart.buildOrUpdateScales();\n\t\t// Tooltip\n\t\tchart.tooltip._options = newOptions.tooltips;\n\t\tchart.tooltip.initialize();\n\t}\n\n\tfunction positionIsHorizontal(position) {\n\t\treturn position === 'top' || position === 'bottom';\n\t}\n\n\thelpers.extend(Chart.prototype, /** @lends Chart */ {\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tconstruct: function(item, config) {\n\t\t\tvar me = this;\n\n\t\t\tconfig = initConfig(config);\n\n\t\t\tvar context = platform.acquireContext(item, config);\n\t\t\tvar canvas = context && context.canvas;\n\t\t\tvar height = canvas && canvas.height;\n\t\t\tvar width = canvas && canvas.width;\n\n\t\t\tme.id = helpers.uid();\n\t\t\tme.ctx = context;\n\t\t\tme.canvas = canvas;\n\t\t\tme.config = config;\n\t\t\tme.width = width;\n\t\t\tme.height = height;\n\t\t\tme.aspectRatio = height ? width / height : null;\n\t\t\tme.options = config.options;\n\t\t\tme._bufferedRender = false;\n\n\t\t\t/**\n\t\t\t * Provided for backward compatibility, Chart and Chart.Controller have been merged,\n\t\t\t * the \"instance\" still need to be defined since it might be called from plugins.\n\t\t\t * @prop Chart#chart\n\t\t\t * @deprecated since version 2.6.0\n\t\t\t * @todo remove at version 3\n\t\t\t * @private\n\t\t\t */\n\t\t\tme.chart = me;\n\t\t\tme.controller = me; // chart.chart.controller #inception\n\n\t\t\t// Add the chart instance to the global namespace\n\t\t\tChart.instances[me.id] = me;\n\n\t\t\t// Define alias to the config data: `chart.data === chart.config.data`\n\t\t\tObject.defineProperty(me, 'data', {\n\t\t\t\tget: function() {\n\t\t\t\t\treturn me.config.data;\n\t\t\t\t},\n\t\t\t\tset: function(value) {\n\t\t\t\t\tme.config.data = value;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (!context || !canvas) {\n\t\t\t\t// The given item is not a compatible context2d element, let's return before finalizing\n\t\t\t\t// the chart initialization but after setting basic chart / controller properties that\n\t\t\t\t// can help to figure out that the chart is not valid (e.g chart.canvas !== null);\n\t\t\t\t// https://github.com/chartjs/Chart.js/issues/2807\n\t\t\t\tconsole.error(\"Failed to create chart: can't acquire context from the given item\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tme.initialize();\n\t\t\tme.update();\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tinitialize: function() {\n\t\t\tvar me = this;\n\n\t\t\t// Before init plugin notification\n\t\t\tplugins.notify(me, 'beforeInit');\n\n\t\t\thelpers.retinaScale(me, me.options.devicePixelRatio);\n\n\t\t\tme.bindEvents();\n\n\t\t\tif (me.options.responsive) {\n\t\t\t\t// Initial resize before chart draws (must be silent to preserve initial animations).\n\t\t\t\tme.resize(true);\n\t\t\t}\n\n\t\t\t// Make sure scales have IDs and are built before we build any controllers.\n\t\t\tme.ensureScalesHaveIDs();\n\t\t\tme.buildOrUpdateScales();\n\t\t\tme.initToolTip();\n\n\t\t\t// After init plugin notification\n\t\t\tplugins.notify(me, 'afterInit');\n\n\t\t\treturn me;\n\t\t},\n\n\t\tclear: function() {\n\t\t\thelpers.canvas.clear(this);\n\t\t\treturn this;\n\t\t},\n\n\t\tstop: function() {\n\t\t\t// Stops any current animation loop occurring\n\t\t\tanimations.cancelAnimation(this);\n\t\t\treturn this;\n\t\t},\n\n\t\tresize: function(silent) {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options;\n\t\t\tvar canvas = me.canvas;\n\t\t\tvar aspectRatio = (options.maintainAspectRatio && me.aspectRatio) || null;\n\n\t\t\t// the canvas render width and height will be casted to integers so make sure that\n\t\t\t// the canvas display style uses the same integer values to avoid blurring effect.\n\n\t\t\t// Set to 0 instead of canvas.size because the size defaults to 300x150 if the element is collapsed\n\t\t\tvar newWidth = Math.max(0, Math.floor(helpers.getMaximumWidth(canvas)));\n\t\t\tvar newHeight = Math.max(0, Math.floor(aspectRatio ? newWidth / aspectRatio : helpers.getMaximumHeight(canvas)));\n\n\t\t\tif (me.width === newWidth && me.height === newHeight) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcanvas.width = me.width = newWidth;\n\t\t\tcanvas.height = me.height = newHeight;\n\t\t\tcanvas.style.width = newWidth + 'px';\n\t\t\tcanvas.style.height = newHeight + 'px';\n\n\t\t\thelpers.retinaScale(me, options.devicePixelRatio);\n\n\t\t\tif (!silent) {\n\t\t\t\t// Notify any plugins about the resize\n\t\t\t\tvar newSize = {width: newWidth, height: newHeight};\n\t\t\t\tplugins.notify(me, 'resize', [newSize]);\n\n\t\t\t\t// Notify of resize\n\t\t\t\tif (me.options.onResize) {\n\t\t\t\t\tme.options.onResize(me, newSize);\n\t\t\t\t}\n\n\t\t\t\tme.stop();\n\t\t\t\tme.update({\n\t\t\t\t\tduration: me.options.responsiveAnimationDuration\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tensureScalesHaveIDs: function() {\n\t\t\tvar options = this.options;\n\t\t\tvar scalesOptions = options.scales || {};\n\t\t\tvar scaleOptions = options.scale;\n\n\t\t\thelpers.each(scalesOptions.xAxes, function(xAxisOptions, index) {\n\t\t\t\txAxisOptions.id = xAxisOptions.id || ('x-axis-' + index);\n\t\t\t});\n\n\t\t\thelpers.each(scalesOptions.yAxes, function(yAxisOptions, index) {\n\t\t\t\tyAxisOptions.id = yAxisOptions.id || ('y-axis-' + index);\n\t\t\t});\n\n\t\t\tif (scaleOptions) {\n\t\t\t\tscaleOptions.id = scaleOptions.id || 'scale';\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Builds a map of scale ID to scale object for future lookup.\n\t\t */\n\t\tbuildOrUpdateScales: function() {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options;\n\t\t\tvar scales = me.scales || {};\n\t\t\tvar items = [];\n\t\t\tvar updated = Object.keys(scales).reduce(function(obj, id) {\n\t\t\t\tobj[id] = false;\n\t\t\t\treturn obj;\n\t\t\t}, {});\n\n\t\t\tif (options.scales) {\n\t\t\t\titems = items.concat(\n\t\t\t\t\t(options.scales.xAxes || []).map(function(xAxisOptions) {\n\t\t\t\t\t\treturn {options: xAxisOptions, dtype: 'category', dposition: 'bottom'};\n\t\t\t\t\t}),\n\t\t\t\t\t(options.scales.yAxes || []).map(function(yAxisOptions) {\n\t\t\t\t\t\treturn {options: yAxisOptions, dtype: 'linear', dposition: 'left'};\n\t\t\t\t\t})\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (options.scale) {\n\t\t\t\titems.push({\n\t\t\t\t\toptions: options.scale,\n\t\t\t\t\tdtype: 'radialLinear',\n\t\t\t\t\tisDefault: true,\n\t\t\t\t\tdposition: 'chartArea'\n\t\t\t\t});\n\t\t\t}\n\n\t\t\thelpers.each(items, function(item) {\n\t\t\t\tvar scaleOptions = item.options;\n\t\t\t\tvar id = scaleOptions.id;\n\t\t\t\tvar scaleType = helpers.valueOrDefault(scaleOptions.type, item.dtype);\n\n\t\t\t\tif (positionIsHorizontal(scaleOptions.position) !== positionIsHorizontal(item.dposition)) {\n\t\t\t\t\tscaleOptions.position = item.dposition;\n\t\t\t\t}\n\n\t\t\t\tupdated[id] = true;\n\t\t\t\tvar scale = null;\n\t\t\t\tif (id in scales && scales[id].type === scaleType) {\n\t\t\t\t\tscale = scales[id];\n\t\t\t\t\tscale.options = scaleOptions;\n\t\t\t\t\tscale.ctx = me.ctx;\n\t\t\t\t\tscale.chart = me;\n\t\t\t\t} else {\n\t\t\t\t\tvar scaleClass = scaleService.getScaleConstructor(scaleType);\n\t\t\t\t\tif (!scaleClass) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tscale = new scaleClass({\n\t\t\t\t\t\tid: id,\n\t\t\t\t\t\ttype: scaleType,\n\t\t\t\t\t\toptions: scaleOptions,\n\t\t\t\t\t\tctx: me.ctx,\n\t\t\t\t\t\tchart: me\n\t\t\t\t\t});\n\t\t\t\t\tscales[scale.id] = scale;\n\t\t\t\t}\n\n\t\t\t\tscale.mergeTicksOptions();\n\n\t\t\t\t// TODO(SB): I think we should be able to remove this custom case (options.scale)\n\t\t\t\t// and consider it as a regular scale part of the \"scales\"\" map only! This would\n\t\t\t\t// make the logic easier and remove some useless? custom code.\n\t\t\t\tif (item.isDefault) {\n\t\t\t\t\tme.scale = scale;\n\t\t\t\t}\n\t\t\t});\n\t\t\t// clear up discarded scales\n\t\t\thelpers.each(updated, function(hasUpdated, id) {\n\t\t\t\tif (!hasUpdated) {\n\t\t\t\t\tdelete scales[id];\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tme.scales = scales;\n\n\t\t\tscaleService.addScalesToLayout(this);\n\t\t},\n\n\t\tbuildOrUpdateControllers: function() {\n\t\t\tvar me = this;\n\t\t\tvar types = [];\n\t\t\tvar newControllers = [];\n\n\t\t\thelpers.each(me.data.datasets, function(dataset, datasetIndex) {\n\t\t\t\tvar meta = me.getDatasetMeta(datasetIndex);\n\t\t\t\tvar type = dataset.type || me.config.type;\n\n\t\t\t\tif (meta.type && meta.type !== type) {\n\t\t\t\t\tme.destroyDatasetMeta(datasetIndex);\n\t\t\t\t\tmeta = me.getDatasetMeta(datasetIndex);\n\t\t\t\t}\n\t\t\t\tmeta.type = type;\n\n\t\t\t\ttypes.push(meta.type);\n\n\t\t\t\tif (meta.controller) {\n\t\t\t\t\tmeta.controller.updateIndex(datasetIndex);\n\t\t\t\t\tmeta.controller.linkScales();\n\t\t\t\t} else {\n\t\t\t\t\tvar ControllerClass = Chart.controllers[meta.type];\n\t\t\t\t\tif (ControllerClass === undefined) {\n\t\t\t\t\t\tthrow new Error('\"' + meta.type + '\" is not a chart type.');\n\t\t\t\t\t}\n\n\t\t\t\t\tmeta.controller = new ControllerClass(me, datasetIndex);\n\t\t\t\t\tnewControllers.push(meta.controller);\n\t\t\t\t}\n\t\t\t}, me);\n\n\t\t\treturn newControllers;\n\t\t},\n\n\t\t/**\n\t\t * Reset the elements of all datasets\n\t\t * @private\n\t\t */\n\t\tresetElements: function() {\n\t\t\tvar me = this;\n\t\t\thelpers.each(me.data.datasets, function(dataset, datasetIndex) {\n\t\t\t\tme.getDatasetMeta(datasetIndex).controller.reset();\n\t\t\t}, me);\n\t\t},\n\n\t\t/**\n\t\t* Resets the chart back to it's state before the initial animation\n\t\t*/\n\t\treset: function() {\n\t\t\tthis.resetElements();\n\t\t\tthis.tooltip.initialize();\n\t\t},\n\n\t\tupdate: function(config) {\n\t\t\tvar me = this;\n\n\t\t\tif (!config || typeof config !== 'object') {\n\t\t\t\t// backwards compatibility\n\t\t\t\tconfig = {\n\t\t\t\t\tduration: config,\n\t\t\t\t\tlazy: arguments[1]\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tupdateConfig(me);\n\n\t\t\t// plugins options references might have change, let's invalidate the cache\n\t\t\t// https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\n\t\t\tplugins._invalidate(me);\n\n\t\t\tif (plugins.notify(me, 'beforeUpdate') === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// In case the entire data object changed\n\t\t\tme.tooltip._data = me.data;\n\n\t\t\t// Make sure dataset controllers are updated and new controllers are reset\n\t\t\tvar newControllers = me.buildOrUpdateControllers();\n\n\t\t\t// Make sure all dataset controllers have correct meta data counts\n\t\t\thelpers.each(me.data.datasets, function(dataset, datasetIndex) {\n\t\t\t\tme.getDatasetMeta(datasetIndex).controller.buildOrUpdateElements();\n\t\t\t}, me);\n\n\t\t\tme.updateLayout();\n\n\t\t\t// Can only reset the new controllers after the scales have been updated\n\t\t\tif (me.options.animation && me.options.animation.duration) {\n\t\t\t\thelpers.each(newControllers, function(controller) {\n\t\t\t\t\tcontroller.reset();\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tme.updateDatasets();\n\n\t\t\t// Need to reset tooltip in case it is displayed with elements that are removed\n\t\t\t// after update.\n\t\t\tme.tooltip.initialize();\n\n\t\t\t// Last active contains items that were previously in the tooltip.\n\t\t\t// When we reset the tooltip, we need to clear it\n\t\t\tme.lastActive = [];\n\n\t\t\t// Do this before render so that any plugins that need final scale updates can use it\n\t\t\tplugins.notify(me, 'afterUpdate');\n\n\t\t\tif (me._bufferedRender) {\n\t\t\t\tme._bufferedRequest = {\n\t\t\t\t\tduration: config.duration,\n\t\t\t\t\teasing: config.easing,\n\t\t\t\t\tlazy: config.lazy\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tme.render(config);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Updates the chart layout unless a plugin returns `false` to the `beforeLayout`\n\t\t * hook, in which case, plugins will not be called on `afterLayout`.\n\t\t * @private\n\t\t */\n\t\tupdateLayout: function() {\n\t\t\tvar me = this;\n\n\t\t\tif (plugins.notify(me, 'beforeLayout') === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlayouts.update(this, this.width, this.height);\n\n\t\t\t/**\n\t\t\t * Provided for backward compatibility, use `afterLayout` instead.\n\t\t\t * @method IPlugin#afterScaleUpdate\n\t\t\t * @deprecated since version 2.5.0\n\t\t\t * @todo remove at version 3\n\t\t\t * @private\n\t\t\t */\n\t\t\tplugins.notify(me, 'afterScaleUpdate');\n\t\t\tplugins.notify(me, 'afterLayout');\n\t\t},\n\n\t\t/**\n\t\t * Updates all datasets unless a plugin returns `false` to the `beforeDatasetsUpdate`\n\t\t * hook, in which case, plugins will not be called on `afterDatasetsUpdate`.\n\t\t * @private\n\t\t */\n\t\tupdateDatasets: function() {\n\t\t\tvar me = this;\n\n\t\t\tif (plugins.notify(me, 'beforeDatasetsUpdate') === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (var i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {\n\t\t\t\tme.updateDataset(i);\n\t\t\t}\n\n\t\t\tplugins.notify(me, 'afterDatasetsUpdate');\n\t\t},\n\n\t\t/**\n\t\t * Updates dataset at index unless a plugin returns `false` to the `beforeDatasetUpdate`\n\t\t * hook, in which case, plugins will not be called on `afterDatasetUpdate`.\n\t\t * @private\n\t\t */\n\t\tupdateDataset: function(index) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getDatasetMeta(index);\n\t\t\tvar args = {\n\t\t\t\tmeta: meta,\n\t\t\t\tindex: index\n\t\t\t};\n\n\t\t\tif (plugins.notify(me, 'beforeDatasetUpdate', [args]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tmeta.controller.update();\n\n\t\t\tplugins.notify(me, 'afterDatasetUpdate', [args]);\n\t\t},\n\n\t\trender: function(config) {\n\t\t\tvar me = this;\n\n\t\t\tif (!config || typeof config !== 'object') {\n\t\t\t\t// backwards compatibility\n\t\t\t\tconfig = {\n\t\t\t\t\tduration: config,\n\t\t\t\t\tlazy: arguments[1]\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tvar duration = config.duration;\n\t\t\tvar lazy = config.lazy;\n\n\t\t\tif (plugins.notify(me, 'beforeRender') === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar animationOptions = me.options.animation;\n\t\t\tvar onComplete = function(animation) {\n\t\t\t\tplugins.notify(me, 'afterRender');\n\t\t\t\thelpers.callback(animationOptions && animationOptions.onComplete, [animation], me);\n\t\t\t};\n\n\t\t\tif (animationOptions && ((typeof duration !== 'undefined' && duration !== 0) || (typeof duration === 'undefined' && animationOptions.duration !== 0))) {\n\t\t\t\tvar animation = new Animation({\n\t\t\t\t\tnumSteps: (duration || animationOptions.duration) / 16.66, // 60 fps\n\t\t\t\t\teasing: config.easing || animationOptions.easing,\n\n\t\t\t\t\trender: function(chart, animationObject) {\n\t\t\t\t\t\tvar easingFunction = helpers.easing.effects[animationObject.easing];\n\t\t\t\t\t\tvar currentStep = animationObject.currentStep;\n\t\t\t\t\t\tvar stepDecimal = currentStep / animationObject.numSteps;\n\n\t\t\t\t\t\tchart.draw(easingFunction(stepDecimal), stepDecimal, currentStep);\n\t\t\t\t\t},\n\n\t\t\t\t\tonAnimationProgress: animationOptions.onProgress,\n\t\t\t\t\tonAnimationComplete: onComplete\n\t\t\t\t});\n\n\t\t\t\tanimations.addAnimation(me, animation, duration, lazy);\n\t\t\t} else {\n\t\t\t\tme.draw();\n\n\t\t\t\t// See https://github.com/chartjs/Chart.js/issues/3781\n\t\t\t\tonComplete(new Animation({numSteps: 0, chart: me}));\n\t\t\t}\n\n\t\t\treturn me;\n\t\t},\n\n\t\tdraw: function(easingValue) {\n\t\t\tvar me = this;\n\n\t\t\tme.clear();\n\n\t\t\tif (helpers.isNullOrUndef(easingValue)) {\n\t\t\t\teasingValue = 1;\n\t\t\t}\n\n\t\t\tme.transition(easingValue);\n\n\t\t\tif (me.width <= 0 || me.height <= 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (plugins.notify(me, 'beforeDraw', [easingValue]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Draw all the scales\n\t\t\thelpers.each(me.boxes, function(box) {\n\t\t\t\tbox.draw(me.chartArea);\n\t\t\t}, me);\n\n\t\t\tif (me.scale) {\n\t\t\t\tme.scale.draw();\n\t\t\t}\n\n\t\t\tme.drawDatasets(easingValue);\n\t\t\tme._drawTooltip(easingValue);\n\n\t\t\tplugins.notify(me, 'afterDraw', [easingValue]);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\ttransition: function(easingValue) {\n\t\t\tvar me = this;\n\n\t\t\tfor (var i = 0, ilen = (me.data.datasets || []).length; i < ilen; ++i) {\n\t\t\t\tif (me.isDatasetVisible(i)) {\n\t\t\t\t\tme.getDatasetMeta(i).controller.transition(easingValue);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tme.tooltip.transition(easingValue);\n\t\t},\n\n\t\t/**\n\t\t * Draws all datasets unless a plugin returns `false` to the `beforeDatasetsDraw`\n\t\t * hook, in which case, plugins will not be called on `afterDatasetsDraw`.\n\t\t * @private\n\t\t */\n\t\tdrawDatasets: function(easingValue) {\n\t\t\tvar me = this;\n\n\t\t\tif (plugins.notify(me, 'beforeDatasetsDraw', [easingValue]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Draw datasets reversed to support proper line stacking\n\t\t\tfor (var i = (me.data.datasets || []).length - 1; i >= 0; --i) {\n\t\t\t\tif (me.isDatasetVisible(i)) {\n\t\t\t\t\tme.drawDataset(i, easingValue);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tplugins.notify(me, 'afterDatasetsDraw', [easingValue]);\n\t\t},\n\n\t\t/**\n\t\t * Draws dataset at index unless a plugin returns `false` to the `beforeDatasetDraw`\n\t\t * hook, in which case, plugins will not be called on `afterDatasetDraw`.\n\t\t * @private\n\t\t */\n\t\tdrawDataset: function(index, easingValue) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getDatasetMeta(index);\n\t\t\tvar args = {\n\t\t\t\tmeta: meta,\n\t\t\t\tindex: index,\n\t\t\t\teasingValue: easingValue\n\t\t\t};\n\n\t\t\tif (plugins.notify(me, 'beforeDatasetDraw', [args]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tmeta.controller.draw(easingValue);\n\n\t\t\tplugins.notify(me, 'afterDatasetDraw', [args]);\n\t\t},\n\n\t\t/**\n\t\t * Draws tooltip unless a plugin returns `false` to the `beforeTooltipDraw`\n\t\t * hook, in which case, plugins will not be called on `afterTooltipDraw`.\n\t\t * @private\n\t\t */\n\t\t_drawTooltip: function(easingValue) {\n\t\t\tvar me = this;\n\t\t\tvar tooltip = me.tooltip;\n\t\t\tvar args = {\n\t\t\t\ttooltip: tooltip,\n\t\t\t\teasingValue: easingValue\n\t\t\t};\n\n\t\t\tif (plugins.notify(me, 'beforeTooltipDraw', [args]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\ttooltip.draw();\n\n\t\t\tplugins.notify(me, 'afterTooltipDraw', [args]);\n\t\t},\n\n\t\t// Get the single element that was clicked on\n\t\t// @return : An object containing the dataset index and element index of the matching element. Also contains the rectangle that was draw\n\t\tgetElementAtEvent: function(e) {\n\t\t\treturn Interaction.modes.single(this, e);\n\t\t},\n\n\t\tgetElementsAtEvent: function(e) {\n\t\t\treturn Interaction.modes.label(this, e, {intersect: true});\n\t\t},\n\n\t\tgetElementsAtXAxis: function(e) {\n\t\t\treturn Interaction.modes['x-axis'](this, e, {intersect: true});\n\t\t},\n\n\t\tgetElementsAtEventForMode: function(e, mode, options) {\n\t\t\tvar method = Interaction.modes[mode];\n\t\t\tif (typeof method === 'function') {\n\t\t\t\treturn method(this, e, options);\n\t\t\t}\n\n\t\t\treturn [];\n\t\t},\n\n\t\tgetDatasetAtEvent: function(e) {\n\t\t\treturn Interaction.modes.dataset(this, e, {intersect: true});\n\t\t},\n\n\t\tgetDatasetMeta: function(datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar dataset = me.data.datasets[datasetIndex];\n\t\t\tif (!dataset._meta) {\n\t\t\t\tdataset._meta = {};\n\t\t\t}\n\n\t\t\tvar meta = dataset._meta[me.id];\n\t\t\tif (!meta) {\n\t\t\t\tmeta = dataset._meta[me.id] = {\n\t\t\t\t\ttype: null,\n\t\t\t\t\tdata: [],\n\t\t\t\t\tdataset: null,\n\t\t\t\t\tcontroller: null,\n\t\t\t\t\thidden: null,\t\t\t// See isDatasetVisible() comment\n\t\t\t\t\txAxisID: null,\n\t\t\t\t\tyAxisID: null\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn meta;\n\t\t},\n\n\t\tgetVisibleDatasetCount: function() {\n\t\t\tvar count = 0;\n\t\t\tfor (var i = 0, ilen = this.data.datasets.length; i < ilen; ++i) {\n\t\t\t\tif (this.isDatasetVisible(i)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn count;\n\t\t},\n\n\t\tisDatasetVisible: function(datasetIndex) {\n\t\t\tvar meta = this.getDatasetMeta(datasetIndex);\n\n\t\t\t// meta.hidden is a per chart dataset hidden flag override with 3 states: if true or false,\n\t\t\t// the dataset.hidden value is ignored, else if null, the dataset hidden state is returned.\n\t\t\treturn typeof meta.hidden === 'boolean' ? !meta.hidden : !this.data.datasets[datasetIndex].hidden;\n\t\t},\n\n\t\tgenerateLegend: function() {\n\t\t\treturn this.options.legendCallback(this);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tdestroyDatasetMeta: function(datasetIndex) {\n\t\t\tvar id = this.id;\n\t\t\tvar dataset = this.data.datasets[datasetIndex];\n\t\t\tvar meta = dataset._meta && dataset._meta[id];\n\n\t\t\tif (meta) {\n\t\t\t\tmeta.controller.destroy();\n\t\t\t\tdelete dataset._meta[id];\n\t\t\t}\n\t\t},\n\n\t\tdestroy: function() {\n\t\t\tvar me = this;\n\t\t\tvar canvas = me.canvas;\n\t\t\tvar i, ilen;\n\n\t\t\tme.stop();\n\n\t\t\t// dataset controllers need to cleanup associated data\n\t\t\tfor (i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {\n\t\t\t\tme.destroyDatasetMeta(i);\n\t\t\t}\n\n\t\t\tif (canvas) {\n\t\t\t\tme.unbindEvents();\n\t\t\t\thelpers.canvas.clear(me);\n\t\t\t\tplatform.releaseContext(me.ctx);\n\t\t\t\tme.canvas = null;\n\t\t\t\tme.ctx = null;\n\t\t\t}\n\n\t\t\tplugins.notify(me, 'destroy');\n\n\t\t\tdelete Chart.instances[me.id];\n\t\t},\n\n\t\ttoBase64Image: function() {\n\t\t\treturn this.canvas.toDataURL.apply(this.canvas, arguments);\n\t\t},\n\n\t\tinitToolTip: function() {\n\t\t\tvar me = this;\n\t\t\tme.tooltip = new Tooltip({\n\t\t\t\t_chart: me,\n\t\t\t\t_chartInstance: me, // deprecated, backward compatibility\n\t\t\t\t_data: me.data,\n\t\t\t\t_options: me.options.tooltips\n\t\t\t}, me);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tbindEvents: function() {\n\t\t\tvar me = this;\n\t\t\tvar listeners = me._listeners = {};\n\t\t\tvar listener = function() {\n\t\t\t\tme.eventHandler.apply(me, arguments);\n\t\t\t};\n\n\t\t\thelpers.each(me.options.events, function(type) {\n\t\t\t\tplatform.addEventListener(me, type, listener);\n\t\t\t\tlisteners[type] = listener;\n\t\t\t});\n\n\t\t\t// Elements used to detect size change should not be injected for non responsive charts.\n\t\t\t// See https://github.com/chartjs/Chart.js/issues/2210\n\t\t\tif (me.options.responsive) {\n\t\t\t\tlistener = function() {\n\t\t\t\t\tme.resize();\n\t\t\t\t};\n\n\t\t\t\tplatform.addEventListener(me, 'resize', listener);\n\t\t\t\tlisteners.resize = listener;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tunbindEvents: function() {\n\t\t\tvar me = this;\n\t\t\tvar listeners = me._listeners;\n\t\t\tif (!listeners) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tdelete me._listeners;\n\t\t\thelpers.each(listeners, function(listener, type) {\n\t\t\t\tplatform.removeEventListener(me, type, listener);\n\t\t\t});\n\t\t},\n\n\t\tupdateHoverStyle: function(elements, mode, enabled) {\n\t\t\tvar method = enabled ? 'setHoverStyle' : 'removeHoverStyle';\n\t\t\tvar element, i, ilen;\n\n\t\t\tfor (i = 0, ilen = elements.length; i < ilen; ++i) {\n\t\t\t\telement = elements[i];\n\t\t\t\tif (element) {\n\t\t\t\t\tthis.getDatasetMeta(element._datasetIndex).controller[method](element);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\teventHandler: function(e) {\n\t\t\tvar me = this;\n\t\t\tvar tooltip = me.tooltip;\n\n\t\t\tif (plugins.notify(me, 'beforeEvent', [e]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Buffer any update calls so that renders do not occur\n\t\t\tme._bufferedRender = true;\n\t\t\tme._bufferedRequest = null;\n\n\t\t\tvar changed = me.handleEvent(e);\n\t\t\t// for smooth tooltip animations issue #4989\n\t\t\t// the tooltip should be the source of change\n\t\t\t// Animation check workaround:\n\t\t\t// tooltip._start will be null when tooltip isn't animating\n\t\t\tif (tooltip) {\n\t\t\t\tchanged = tooltip._start\n\t\t\t\t\t? tooltip.handleEvent(e)\n\t\t\t\t\t: changed | tooltip.handleEvent(e);\n\t\t\t}\n\n\t\t\tplugins.notify(me, 'afterEvent', [e]);\n\n\t\t\tvar bufferedRequest = me._bufferedRequest;\n\t\t\tif (bufferedRequest) {\n\t\t\t\t// If we have an update that was triggered, we need to do a normal render\n\t\t\t\tme.render(bufferedRequest);\n\t\t\t} else if (changed && !me.animating) {\n\t\t\t\t// If entering, leaving, or changing elements, animate the change via pivot\n\t\t\t\tme.stop();\n\n\t\t\t\t// We only need to render at this point. Updating will cause scales to be\n\t\t\t\t// recomputed generating flicker & using more memory than necessary.\n\t\t\t\tme.render({\n\t\t\t\t\tduration: me.options.hover.animationDuration,\n\t\t\t\t\tlazy: true\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tme._bufferedRender = false;\n\t\t\tme._bufferedRequest = null;\n\n\t\t\treturn me;\n\t\t},\n\n\t\t/**\n\t\t * Handle an event\n\t\t * @private\n\t\t * @param {IEvent} event the event to handle\n\t\t * @return {Boolean} true if the chart needs to re-render\n\t\t */\n\t\thandleEvent: function(e) {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options || {};\n\t\t\tvar hoverOptions = options.hover;\n\t\t\tvar changed = false;\n\n\t\t\tme.lastActive = me.lastActive || [];\n\n\t\t\t// Find Active Elements for hover and tooltips\n\t\t\tif (e.type === 'mouseout') {\n\t\t\t\tme.active = [];\n\t\t\t} else {\n\t\t\t\tme.active = me.getElementsAtEventForMode(e, hoverOptions.mode, hoverOptions);\n\t\t\t}\n\n\t\t\t// Invoke onHover hook\n\t\t\t// Need to call with native event here to not break backwards compatibility\n\t\t\thelpers.callback(options.onHover || options.hover.onHover, [e.native, me.active], me);\n\n\t\t\tif (e.type === 'mouseup' || e.type === 'click') {\n\t\t\t\tif (options.onClick) {\n\t\t\t\t\t// Use e.native here for backwards compatibility\n\t\t\t\t\toptions.onClick.call(me, e.native, me.active);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove styling for last active (even if it may still be active)\n\t\t\tif (me.lastActive.length) {\n\t\t\t\tme.updateHoverStyle(me.lastActive, hoverOptions.mode, false);\n\t\t\t}\n\n\t\t\t// Built in hover styling\n\t\t\tif (me.active.length && hoverOptions.mode) {\n\t\t\t\tme.updateHoverStyle(me.active, hoverOptions.mode, true);\n\t\t\t}\n\n\t\t\tchanged = !helpers.arrayEquals(me.active, me.lastActive);\n\n\t\t\t// Remember Last Actives\n\t\t\tme.lastActive = me.active;\n\n\t\t\treturn changed;\n\t\t}\n\t});\n\n\t/**\n\t * Provided for backward compatibility, use Chart instead.\n\t * @class Chart.Controller\n\t * @deprecated since version 2.6.0\n\t * @todo remove at version 3\n\t * @private\n\t */\n\tChart.Controller = Chart;\n};\n\n},{\"22\":22,\"23\":23,\"26\":26,\"29\":29,\"31\":31,\"32\":32,\"34\":34,\"36\":36,\"46\":46,\"49\":49}],25:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\nmodule.exports = function(Chart) {\n\n\tvar arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift'];\n\n\t/**\n\t * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice',\n\t * 'unshift') and notify the listener AFTER the array has been altered. Listeners are\n\t * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments.\n\t */\n\tfunction listenArrayEvents(array, listener) {\n\t\tif (array._chartjs) {\n\t\t\tarray._chartjs.listeners.push(listener);\n\t\t\treturn;\n\t\t}\n\n\t\tObject.defineProperty(array, '_chartjs', {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: false,\n\t\t\tvalue: {\n\t\t\t\tlisteners: [listener]\n\t\t\t}\n\t\t});\n\n\t\tarrayEvents.forEach(function(key) {\n\t\t\tvar method = 'onData' + key.charAt(0).toUpperCase() + key.slice(1);\n\t\t\tvar base = array[key];\n\n\t\t\tObject.defineProperty(array, key, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: false,\n\t\t\t\tvalue: function() {\n\t\t\t\t\tvar args = Array.prototype.slice.call(arguments);\n\t\t\t\t\tvar res = base.apply(this, args);\n\n\t\t\t\t\thelpers.each(array._chartjs.listeners, function(object) {\n\t\t\t\t\t\tif (typeof object[method] === 'function') {\n\t\t\t\t\t\t\tobject[method].apply(object, args);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Removes the given array event listener and cleanup extra attached properties (such as\n\t * the _chartjs stub and overridden methods) if array doesn't have any more listeners.\n\t */\n\tfunction unlistenArrayEvents(array, listener) {\n\t\tvar stub = array._chartjs;\n\t\tif (!stub) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar listeners = stub.listeners;\n\t\tvar index = listeners.indexOf(listener);\n\t\tif (index !== -1) {\n\t\t\tlisteners.splice(index, 1);\n\t\t}\n\n\t\tif (listeners.length > 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tarrayEvents.forEach(function(key) {\n\t\t\tdelete array[key];\n\t\t});\n\n\t\tdelete array._chartjs;\n\t}\n\n\t// Base class for all dataset controllers (line, bar, etc)\n\tChart.DatasetController = function(chart, datasetIndex) {\n\t\tthis.initialize(chart, datasetIndex);\n\t};\n\n\thelpers.extend(Chart.DatasetController.prototype, {\n\n\t\t/**\n\t\t * Element type used to generate a meta dataset (e.g. Chart.element.Line).\n\t\t * @type {Chart.core.element}\n\t\t */\n\t\tdatasetElementType: null,\n\n\t\t/**\n\t\t * Element type used to generate a meta data (e.g. Chart.element.Point).\n\t\t * @type {Chart.core.element}\n\t\t */\n\t\tdataElementType: null,\n\n\t\tinitialize: function(chart, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tme.chart = chart;\n\t\t\tme.index = datasetIndex;\n\t\t\tme.linkScales();\n\t\t\tme.addElements();\n\t\t},\n\n\t\tupdateIndex: function(datasetIndex) {\n\t\t\tthis.index = datasetIndex;\n\t\t},\n\n\t\tlinkScales: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar dataset = me.getDataset();\n\n\t\t\tif (meta.xAxisID === null || !(meta.xAxisID in me.chart.scales)) {\n\t\t\t\tmeta.xAxisID = dataset.xAxisID || me.chart.options.scales.xAxes[0].id;\n\t\t\t}\n\t\t\tif (meta.yAxisID === null || !(meta.yAxisID in me.chart.scales)) {\n\t\t\t\tmeta.yAxisID = dataset.yAxisID || me.chart.options.scales.yAxes[0].id;\n\t\t\t}\n\t\t},\n\n\t\tgetDataset: function() {\n\t\t\treturn this.chart.data.datasets[this.index];\n\t\t},\n\n\t\tgetMeta: function() {\n\t\t\treturn this.chart.getDatasetMeta(this.index);\n\t\t},\n\n\t\tgetScaleForId: function(scaleID) {\n\t\t\treturn this.chart.scales[scaleID];\n\t\t},\n\n\t\treset: function() {\n\t\t\tthis.update(true);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tdestroy: function() {\n\t\t\tif (this._data) {\n\t\t\t\tunlistenArrayEvents(this._data, this);\n\t\t\t}\n\t\t},\n\n\t\tcreateMetaDataset: function() {\n\t\t\tvar me = this;\n\t\t\tvar type = me.datasetElementType;\n\t\t\treturn type && new type({\n\t\t\t\t_chart: me.chart,\n\t\t\t\t_datasetIndex: me.index\n\t\t\t});\n\t\t},\n\n\t\tcreateMetaData: function(index) {\n\t\t\tvar me = this;\n\t\t\tvar type = me.dataElementType;\n\t\t\treturn type && new type({\n\t\t\t\t_chart: me.chart,\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_index: index\n\t\t\t});\n\t\t},\n\n\t\taddElements: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar data = me.getDataset().data || [];\n\t\t\tvar metaData = meta.data;\n\t\t\tvar i, ilen;\n\n\t\t\tfor (i = 0, ilen = data.length; i < ilen; ++i) {\n\t\t\t\tmetaData[i] = metaData[i] || me.createMetaData(i);\n\t\t\t}\n\n\t\t\tmeta.dataset = meta.dataset || me.createMetaDataset();\n\t\t},\n\n\t\taddElementAndReset: function(index) {\n\t\t\tvar element = this.createMetaData(index);\n\t\t\tthis.getMeta().data.splice(index, 0, element);\n\t\t\tthis.updateElement(element, index, true);\n\t\t},\n\n\t\tbuildOrUpdateElements: function() {\n\t\t\tvar me = this;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar data = dataset.data || (dataset.data = []);\n\n\t\t\t// In order to correctly handle data addition/deletion animation (an thus simulate\n\t\t\t// real-time charts), we need to monitor these data modifications and synchronize\n\t\t\t// the internal meta data accordingly.\n\t\t\tif (me._data !== data) {\n\t\t\t\tif (me._data) {\n\t\t\t\t\t// This case happens when the user replaced the data array instance.\n\t\t\t\t\tunlistenArrayEvents(me._data, me);\n\t\t\t\t}\n\n\t\t\t\tlistenArrayEvents(data, me);\n\t\t\t\tme._data = data;\n\t\t\t}\n\n\t\t\t// Re-sync meta data in case the user replaced the data array or if we missed\n\t\t\t// any updates and so make sure that we handle number of datapoints changing.\n\t\t\tme.resyncElements();\n\t\t},\n\n\t\tupdate: helpers.noop,\n\n\t\ttransition: function(easingValue) {\n\t\t\tvar meta = this.getMeta();\n\t\t\tvar elements = meta.data || [];\n\t\t\tvar ilen = elements.length;\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < ilen; ++i) {\n\t\t\t\telements[i].transition(easingValue);\n\t\t\t}\n\n\t\t\tif (meta.dataset) {\n\t\t\t\tmeta.dataset.transition(easingValue);\n\t\t\t}\n\t\t},\n\n\t\tdraw: function() {\n\t\t\tvar meta = this.getMeta();\n\t\t\tvar elements = meta.data || [];\n\t\t\tvar ilen = elements.length;\n\t\t\tvar i = 0;\n\n\t\t\tif (meta.dataset) {\n\t\t\t\tmeta.dataset.draw();\n\t\t\t}\n\n\t\t\tfor (; i < ilen; ++i) {\n\t\t\t\telements[i].draw();\n\t\t\t}\n\t\t},\n\n\t\tremoveHoverStyle: function(element) {\n\t\t\thelpers.merge(element._model, element.$previousStyle || {});\n\t\t\tdelete element.$previousStyle;\n\t\t},\n\n\t\tsetHoverStyle: function(element) {\n\t\t\tvar dataset = this.chart.data.datasets[element._datasetIndex];\n\t\t\tvar index = element._index;\n\t\t\tvar custom = element.custom || {};\n\t\t\tvar valueOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\tvar getHoverColor = helpers.getHoverColor;\n\t\t\tvar model = element._model;\n\n\t\t\telement.$previousStyle = {\n\t\t\t\tbackgroundColor: model.backgroundColor,\n\t\t\t\tborderColor: model.borderColor,\n\t\t\t\tborderWidth: model.borderWidth\n\t\t\t};\n\n\t\t\tmodel.backgroundColor = custom.hoverBackgroundColor ? custom.hoverBackgroundColor : valueOrDefault(dataset.hoverBackgroundColor, index, getHoverColor(model.backgroundColor));\n\t\t\tmodel.borderColor = custom.hoverBorderColor ? custom.hoverBorderColor : valueOrDefault(dataset.hoverBorderColor, index, getHoverColor(model.borderColor));\n\t\t\tmodel.borderWidth = custom.hoverBorderWidth ? custom.hoverBorderWidth : valueOrDefault(dataset.hoverBorderWidth, index, model.borderWidth);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tresyncElements: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar data = me.getDataset().data;\n\t\t\tvar numMeta = meta.data.length;\n\t\t\tvar numData = data.length;\n\n\t\t\tif (numData < numMeta) {\n\t\t\t\tmeta.data.splice(numData, numMeta - numData);\n\t\t\t} else if (numData > numMeta) {\n\t\t\t\tme.insertElements(numMeta, numData - numMeta);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tinsertElements: function(start, count) {\n\t\t\tfor (var i = 0; i < count; ++i) {\n\t\t\t\tthis.addElementAndReset(start + i);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataPush: function() {\n\t\t\tthis.insertElements(this.getDataset().data.length - 1, arguments.length);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataPop: function() {\n\t\t\tthis.getMeta().data.pop();\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataShift: function() {\n\t\t\tthis.getMeta().data.shift();\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataSplice: function(start, count) {\n\t\t\tthis.getMeta().data.splice(start, count);\n\t\t\tthis.insertElements(start, arguments.length - 2);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataUnshift: function() {\n\t\t\tthis.insertElements(0, arguments.length);\n\t\t}\n\t});\n\n\tChart.DatasetController.extend = helpers.inherits;\n};\n\n},{\"46\":46}],26:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\nmodule.exports = {\n\t/**\n\t * @private\n\t */\n\t_set: function(scope, values) {\n\t\treturn helpers.merge(this[scope] || (this[scope] = {}), values);\n\t}\n};\n\n},{\"46\":46}],27:[function(require,module,exports){\n'use strict';\n\nvar color = require(3);\nvar helpers = require(46);\n\nfunction interpolate(start, view, model, ease) {\n\tvar keys = Object.keys(model);\n\tvar i, ilen, key, actual, origin, target, type, c0, c1;\n\n\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\n\t\tkey = keys[i];\n\n\t\ttarget = model[key];\n\n\t\t// if a value is added to the model after pivot() has been called, the view\n\t\t// doesn't contain it, so let's initialize the view to the target value.\n\t\tif (!view.hasOwnProperty(key)) {\n\t\t\tview[key] = target;\n\t\t}\n\n\t\tactual = view[key];\n\n\t\tif (actual === target || key[0] === '_') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!start.hasOwnProperty(key)) {\n\t\t\tstart[key] = actual;\n\t\t}\n\n\t\torigin = start[key];\n\n\t\ttype = typeof target;\n\n\t\tif (type === typeof origin) {\n\t\t\tif (type === 'string') {\n\t\t\t\tc0 = color(origin);\n\t\t\t\tif (c0.valid) {\n\t\t\t\t\tc1 = color(target);\n\t\t\t\t\tif (c1.valid) {\n\t\t\t\t\t\tview[key] = c1.mix(c0, ease).rgbString();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (type === 'number' && isFinite(origin) && isFinite(target)) {\n\t\t\t\tview[key] = origin + (target - origin) * ease;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tview[key] = target;\n\t}\n}\n\nvar Element = function(configuration) {\n\thelpers.extend(this, configuration);\n\tthis.initialize.apply(this, arguments);\n};\n\nhelpers.extend(Element.prototype, {\n\n\tinitialize: function() {\n\t\tthis.hidden = false;\n\t},\n\n\tpivot: function() {\n\t\tvar me = this;\n\t\tif (!me._view) {\n\t\t\tme._view = helpers.clone(me._model);\n\t\t}\n\t\tme._start = {};\n\t\treturn me;\n\t},\n\n\ttransition: function(ease) {\n\t\tvar me = this;\n\t\tvar model = me._model;\n\t\tvar start = me._start;\n\t\tvar view = me._view;\n\n\t\t// No animation -> No Transition\n\t\tif (!model || ease === 1) {\n\t\t\tme._view = model;\n\t\t\tme._start = null;\n\t\t\treturn me;\n\t\t}\n\n\t\tif (!view) {\n\t\t\tview = me._view = {};\n\t\t}\n\n\t\tif (!start) {\n\t\t\tstart = me._start = {};\n\t\t}\n\n\t\tinterpolate(start, view, model, ease);\n\n\t\treturn me;\n\t},\n\n\ttooltipPosition: function() {\n\t\treturn {\n\t\t\tx: this._model.x,\n\t\t\ty: this._model.y\n\t\t};\n\t},\n\n\thasValue: function() {\n\t\treturn helpers.isNumber(this._model.x) && helpers.isNumber(this._model.y);\n\t}\n});\n\nElement.extend = helpers.inherits;\n\nmodule.exports = Element;\n\n},{\"3\":3,\"46\":46}],28:[function(require,module,exports){\n/* global window: false */\n/* global document: false */\n'use strict';\n\nvar color = require(3);\nvar defaults = require(26);\nvar helpers = require(46);\nvar scaleService = require(34);\n\nmodule.exports = function() {\n\n\t// -- Basic js utility methods\n\n\thelpers.configMerge = function(/* objects ... */) {\n\t\treturn helpers.merge(helpers.clone(arguments[0]), [].slice.call(arguments, 1), {\n\t\t\tmerger: function(key, target, source, options) {\n\t\t\t\tvar tval = target[key] || {};\n\t\t\t\tvar sval = source[key];\n\n\t\t\t\tif (key === 'scales') {\n\t\t\t\t\t// scale config merging is complex. Add our own function here for that\n\t\t\t\t\ttarget[key] = helpers.scaleMerge(tval, sval);\n\t\t\t\t} else if (key === 'scale') {\n\t\t\t\t\t// used in polar area & radar charts since there is only one scale\n\t\t\t\t\ttarget[key] = helpers.merge(tval, [scaleService.getScaleDefaults(sval.type), sval]);\n\t\t\t\t} else {\n\t\t\t\t\thelpers._merger(key, target, source, options);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t};\n\n\thelpers.scaleMerge = function(/* objects ... */) {\n\t\treturn helpers.merge(helpers.clone(arguments[0]), [].slice.call(arguments, 1), {\n\t\t\tmerger: function(key, target, source, options) {\n\t\t\t\tif (key === 'xAxes' || key === 'yAxes') {\n\t\t\t\t\tvar slen = source[key].length;\n\t\t\t\t\tvar i, type, scale;\n\n\t\t\t\t\tif (!target[key]) {\n\t\t\t\t\t\ttarget[key] = [];\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (i = 0; i < slen; ++i) {\n\t\t\t\t\t\tscale = source[key][i];\n\t\t\t\t\t\ttype = helpers.valueOrDefault(scale.type, key === 'xAxes' ? 'category' : 'linear');\n\n\t\t\t\t\t\tif (i >= target[key].length) {\n\t\t\t\t\t\t\ttarget[key].push({});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!target[key][i].type || (scale.type && scale.type !== target[key][i].type)) {\n\t\t\t\t\t\t\t// new/untyped scale or type changed: let's apply the new defaults\n\t\t\t\t\t\t\t// then merge source scale to correctly overwrite the defaults.\n\t\t\t\t\t\t\thelpers.merge(target[key][i], [scaleService.getScaleDefaults(type), scale]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// scales type are the same\n\t\t\t\t\t\t\thelpers.merge(target[key][i], scale);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\thelpers._merger(key, target, source, options);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t};\n\n\thelpers.where = function(collection, filterCallback) {\n\t\tif (helpers.isArray(collection) && Array.prototype.filter) {\n\t\t\treturn collection.filter(filterCallback);\n\t\t}\n\t\tvar filtered = [];\n\n\t\thelpers.each(collection, function(item) {\n\t\t\tif (filterCallback(item)) {\n\t\t\t\tfiltered.push(item);\n\t\t\t}\n\t\t});\n\n\t\treturn filtered;\n\t};\n\thelpers.findIndex = Array.prototype.findIndex ?\n\t\tfunction(array, callback, scope) {\n\t\t\treturn array.findIndex(callback, scope);\n\t\t} :\n\t\tfunction(array, callback, scope) {\n\t\t\tscope = scope === undefined ? array : scope;\n\t\t\tfor (var i = 0, ilen = array.length; i < ilen; ++i) {\n\t\t\t\tif (callback.call(scope, array[i], i, array)) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn -1;\n\t\t};\n\thelpers.findNextWhere = function(arrayToSearch, filterCallback, startIndex) {\n\t\t// Default to start of the array\n\t\tif (helpers.isNullOrUndef(startIndex)) {\n\t\t\tstartIndex = -1;\n\t\t}\n\t\tfor (var i = startIndex + 1; i < arrayToSearch.length; i++) {\n\t\t\tvar currentItem = arrayToSearch[i];\n\t\t\tif (filterCallback(currentItem)) {\n\t\t\t\treturn currentItem;\n\t\t\t}\n\t\t}\n\t};\n\thelpers.findPreviousWhere = function(arrayToSearch, filterCallback, startIndex) {\n\t\t// Default to end of the array\n\t\tif (helpers.isNullOrUndef(startIndex)) {\n\t\t\tstartIndex = arrayToSearch.length;\n\t\t}\n\t\tfor (var i = startIndex - 1; i >= 0; i--) {\n\t\t\tvar currentItem = arrayToSearch[i];\n\t\t\tif (filterCallback(currentItem)) {\n\t\t\t\treturn currentItem;\n\t\t\t}\n\t\t}\n\t};\n\n\t// -- Math methods\n\thelpers.isNumber = function(n) {\n\t\treturn !isNaN(parseFloat(n)) && isFinite(n);\n\t};\n\thelpers.almostEquals = function(x, y, epsilon) {\n\t\treturn Math.abs(x - y) < epsilon;\n\t};\n\thelpers.almostWhole = function(x, epsilon) {\n\t\tvar rounded = Math.round(x);\n\t\treturn (((rounded - epsilon) < x) && ((rounded + epsilon) > x));\n\t};\n\thelpers.max = function(array) {\n\t\treturn array.reduce(function(max, value) {\n\t\t\tif (!isNaN(value)) {\n\t\t\t\treturn Math.max(max, value);\n\t\t\t}\n\t\t\treturn max;\n\t\t}, Number.NEGATIVE_INFINITY);\n\t};\n\thelpers.min = function(array) {\n\t\treturn array.reduce(function(min, value) {\n\t\t\tif (!isNaN(value)) {\n\t\t\t\treturn Math.min(min, value);\n\t\t\t}\n\t\t\treturn min;\n\t\t}, Number.POSITIVE_INFINITY);\n\t};\n\thelpers.sign = Math.sign ?\n\t\tfunction(x) {\n\t\t\treturn Math.sign(x);\n\t\t} :\n\t\tfunction(x) {\n\t\t\tx = +x; // convert to a number\n\t\t\tif (x === 0 || isNaN(x)) {\n\t\t\t\treturn x;\n\t\t\t}\n\t\t\treturn x > 0 ? 1 : -1;\n\t\t};\n\thelpers.log10 = Math.log10 ?\n\t\tfunction(x) {\n\t\t\treturn Math.log10(x);\n\t\t} :\n\t\tfunction(x) {\n\t\t\tvar exponent = Math.log(x) * Math.LOG10E; // Math.LOG10E = 1 / Math.LN10.\n\t\t\t// Check for whole powers of 10,\n\t\t\t// which due to floating point rounding error should be corrected.\n\t\t\tvar powerOf10 = Math.round(exponent);\n\t\t\tvar isPowerOf10 = x === Math.pow(10, powerOf10);\n\n\t\t\treturn isPowerOf10 ? powerOf10 : exponent;\n\t\t};\n\thelpers.toRadians = function(degrees) {\n\t\treturn degrees * (Math.PI / 180);\n\t};\n\thelpers.toDegrees = function(radians) {\n\t\treturn radians * (180 / Math.PI);\n\t};\n\t// Gets the angle from vertical upright to the point about a centre.\n\thelpers.getAngleFromPoint = function(centrePoint, anglePoint) {\n\t\tvar distanceFromXCenter = anglePoint.x - centrePoint.x;\n\t\tvar distanceFromYCenter = anglePoint.y - centrePoint.y;\n\t\tvar radialDistanceFromCenter = Math.sqrt(distanceFromXCenter * distanceFromXCenter + distanceFromYCenter * distanceFromYCenter);\n\n\t\tvar angle = Math.atan2(distanceFromYCenter, distanceFromXCenter);\n\n\t\tif (angle < (-0.5 * Math.PI)) {\n\t\t\tangle += 2.0 * Math.PI; // make sure the returned angle is in the range of (-PI/2, 3PI/2]\n\t\t}\n\n\t\treturn {\n\t\t\tangle: angle,\n\t\t\tdistance: radialDistanceFromCenter\n\t\t};\n\t};\n\thelpers.distanceBetweenPoints = function(pt1, pt2) {\n\t\treturn Math.sqrt(Math.pow(pt2.x - pt1.x, 2) + Math.pow(pt2.y - pt1.y, 2));\n\t};\n\thelpers.aliasPixel = function(pixelWidth) {\n\t\treturn (pixelWidth % 2 === 0) ? 0 : 0.5;\n\t};\n\thelpers.splineCurve = function(firstPoint, middlePoint, afterPoint, t) {\n\t\t// Props to Rob Spencer at scaled innovation for his post on splining between points\n\t\t// http://scaledinnovation.com/analytics/splines/aboutSplines.html\n\n\t\t// This function must also respect \"skipped\" points\n\n\t\tvar previous = firstPoint.skip ? middlePoint : firstPoint;\n\t\tvar current = middlePoint;\n\t\tvar next = afterPoint.skip ? middlePoint : afterPoint;\n\n\t\tvar d01 = Math.sqrt(Math.pow(current.x - previous.x, 2) + Math.pow(current.y - previous.y, 2));\n\t\tvar d12 = Math.sqrt(Math.pow(next.x - current.x, 2) + Math.pow(next.y - current.y, 2));\n\n\t\tvar s01 = d01 / (d01 + d12);\n\t\tvar s12 = d12 / (d01 + d12);\n\n\t\t// If all points are the same, s01 & s02 will be inf\n\t\ts01 = isNaN(s01) ? 0 : s01;\n\t\ts12 = isNaN(s12) ? 0 : s12;\n\n\t\tvar fa = t * s01; // scaling factor for triangle Ta\n\t\tvar fb = t * s12;\n\n\t\treturn {\n\t\t\tprevious: {\n\t\t\t\tx: current.x - fa * (next.x - previous.x),\n\t\t\t\ty: current.y - fa * (next.y - previous.y)\n\t\t\t},\n\t\t\tnext: {\n\t\t\t\tx: current.x + fb * (next.x - previous.x),\n\t\t\t\ty: current.y + fb * (next.y - previous.y)\n\t\t\t}\n\t\t};\n\t};\n\thelpers.EPSILON = Number.EPSILON || 1e-14;\n\thelpers.splineCurveMonotone = function(points) {\n\t\t// This function calculates BÃ©zier control points in a similar way than |splineCurve|,\n\t\t// but preserves monotonicity of the provided data and ensures no local extremums are added\n\t\t// between the dataset discrete points due to the interpolation.\n\t\t// See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation\n\n\t\tvar pointsWithTangents = (points || []).map(function(point) {\n\t\t\treturn {\n\t\t\t\tmodel: point._model,\n\t\t\t\tdeltaK: 0,\n\t\t\t\tmK: 0\n\t\t\t};\n\t\t});\n\n\t\t// Calculate slopes (deltaK) and initialize tangents (mK)\n\t\tvar pointsLen = pointsWithTangents.length;\n\t\tvar i, pointBefore, pointCurrent, pointAfter;\n\t\tfor (i = 0; i < pointsLen; ++i) {\n\t\t\tpointCurrent = pointsWithTangents[i];\n\t\t\tif (pointCurrent.model.skip) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tpointBefore = i > 0 ? pointsWithTangents[i - 1] : null;\n\t\t\tpointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;\n\t\t\tif (pointAfter && !pointAfter.model.skip) {\n\t\t\t\tvar slopeDeltaX = (pointAfter.model.x - pointCurrent.model.x);\n\n\t\t\t\t// In the case of two points that appear at the same x pixel, slopeDeltaX is 0\n\t\t\t\tpointCurrent.deltaK = slopeDeltaX !== 0 ? (pointAfter.model.y - pointCurrent.model.y) / slopeDeltaX : 0;\n\t\t\t}\n\n\t\t\tif (!pointBefore || pointBefore.model.skip) {\n\t\t\t\tpointCurrent.mK = pointCurrent.deltaK;\n\t\t\t} else if (!pointAfter || pointAfter.model.skip) {\n\t\t\t\tpointCurrent.mK = pointBefore.deltaK;\n\t\t\t} else if (this.sign(pointBefore.deltaK) !== this.sign(pointCurrent.deltaK)) {\n\t\t\t\tpointCurrent.mK = 0;\n\t\t\t} else {\n\t\t\t\tpointCurrent.mK = (pointBefore.deltaK + pointCurrent.deltaK) / 2;\n\t\t\t}\n\t\t}\n\n\t\t// Adjust tangents to ensure monotonic properties\n\t\tvar alphaK, betaK, tauK, squaredMagnitude;\n\t\tfor (i = 0; i < pointsLen - 1; ++i) {\n\t\t\tpointCurrent = pointsWithTangents[i];\n\t\t\tpointAfter = pointsWithTangents[i + 1];\n\t\t\tif (pointCurrent.model.skip || pointAfter.model.skip) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (helpers.almostEquals(pointCurrent.deltaK, 0, this.EPSILON)) {\n\t\t\t\tpointCurrent.mK = pointAfter.mK = 0;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\talphaK = pointCurrent.mK / pointCurrent.deltaK;\n\t\t\tbetaK = pointAfter.mK / pointCurrent.deltaK;\n\t\t\tsquaredMagnitude = Math.pow(alphaK, 2) + Math.pow(betaK, 2);\n\t\t\tif (squaredMagnitude <= 9) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\ttauK = 3 / Math.sqrt(squaredMagnitude);\n\t\t\tpointCurrent.mK = alphaK * tauK * pointCurrent.deltaK;\n\t\t\tpointAfter.mK = betaK * tauK * pointCurrent.deltaK;\n\t\t}\n\n\t\t// Compute control points\n\t\tvar deltaX;\n\t\tfor (i = 0; i < pointsLen; ++i) {\n\t\t\tpointCurrent = pointsWithTangents[i];\n\t\t\tif (pointCurrent.model.skip) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tpointBefore = i > 0 ? pointsWithTangents[i - 1] : null;\n\t\t\tpointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;\n\t\t\tif (pointBefore && !pointBefore.model.skip) {\n\t\t\t\tdeltaX = (pointCurrent.model.x - pointBefore.model.x) / 3;\n\t\t\t\tpointCurrent.model.controlPointPreviousX = pointCurrent.model.x - deltaX;\n\t\t\t\tpointCurrent.model.controlPointPreviousY = pointCurrent.model.y - deltaX * pointCurrent.mK;\n\t\t\t}\n\t\t\tif (pointAfter && !pointAfter.model.skip) {\n\t\t\t\tdeltaX = (pointAfter.model.x - pointCurrent.model.x) / 3;\n\t\t\t\tpointCurrent.model.controlPointNextX = pointCurrent.model.x + deltaX;\n\t\t\t\tpointCurrent.model.controlPointNextY = pointCurrent.model.y + deltaX * pointCurrent.mK;\n\t\t\t}\n\t\t}\n\t};\n\thelpers.nextItem = function(collection, index, loop) {\n\t\tif (loop) {\n\t\t\treturn index >= collection.length - 1 ? collection[0] : collection[index + 1];\n\t\t}\n\t\treturn index >= collection.length - 1 ? collection[collection.length - 1] : collection[index + 1];\n\t};\n\thelpers.previousItem = function(collection, index, loop) {\n\t\tif (loop) {\n\t\t\treturn index <= 0 ? collection[collection.length - 1] : collection[index - 1];\n\t\t}\n\t\treturn index <= 0 ? collection[0] : collection[index - 1];\n\t};\n\t// Implementation of the nice number algorithm used in determining where axis labels will go\n\thelpers.niceNum = function(range, round) {\n\t\tvar exponent = Math.floor(helpers.log10(range));\n\t\tvar fraction = range / Math.pow(10, exponent);\n\t\tvar niceFraction;\n\n\t\tif (round) {\n\t\t\tif (fraction < 1.5) {\n\t\t\t\tniceFraction = 1;\n\t\t\t} else if (fraction < 3) {\n\t\t\t\tniceFraction = 2;\n\t\t\t} else if (fraction < 7) {\n\t\t\t\tniceFraction = 5;\n\t\t\t} else {\n\t\t\t\tniceFraction = 10;\n\t\t\t}\n\t\t} else if (fraction <= 1.0) {\n\t\t\tniceFraction = 1;\n\t\t} else if (fraction <= 2) {\n\t\t\tniceFraction = 2;\n\t\t} else if (fraction <= 5) {\n\t\t\tniceFraction = 5;\n\t\t} else {\n\t\t\tniceFraction = 10;\n\t\t}\n\n\t\treturn niceFraction * Math.pow(10, exponent);\n\t};\n\t// Request animation polyfill - http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/\n\thelpers.requestAnimFrame = (function() {\n\t\tif (typeof window === 'undefined') {\n\t\t\treturn function(callback) {\n\t\t\t\tcallback();\n\t\t\t};\n\t\t}\n\t\treturn window.requestAnimationFrame ||\n\t\t\twindow.webkitRequestAnimationFrame ||\n\t\t\twindow.mozRequestAnimationFrame ||\n\t\t\twindow.oRequestAnimationFrame ||\n\t\t\twindow.msRequestAnimationFrame ||\n\t\t\tfunction(callback) {\n\t\t\t\treturn window.setTimeout(callback, 1000 / 60);\n\t\t\t};\n\t}());\n\t// -- DOM methods\n\thelpers.getRelativePosition = function(evt, chart) {\n\t\tvar mouseX, mouseY;\n\t\tvar e = evt.originalEvent || evt;\n\t\tvar canvas = evt.target || evt.srcElement;\n\t\tvar boundingRect = canvas.getBoundingClientRect();\n\n\t\tvar touches = e.touches;\n\t\tif (touches && touches.length > 0) {\n\t\t\tmouseX = touches[0].clientX;\n\t\t\tmouseY = touches[0].clientY;\n\n\t\t} else {\n\t\t\tmouseX = e.clientX;\n\t\t\tmouseY = e.clientY;\n\t\t}\n\n\t\t// Scale mouse coordinates into canvas coordinates\n\t\t// by following the pattern laid out by 'jerryj' in the comments of\n\t\t// http://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/\n\t\tvar paddingLeft = parseFloat(helpers.getStyle(canvas, 'padding-left'));\n\t\tvar paddingTop = parseFloat(helpers.getStyle(canvas, 'padding-top'));\n\t\tvar paddingRight = parseFloat(helpers.getStyle(canvas, 'padding-right'));\n\t\tvar paddingBottom = parseFloat(helpers.getStyle(canvas, 'padding-bottom'));\n\t\tvar width = boundingRect.right - boundingRect.left - paddingLeft - paddingRight;\n\t\tvar height = boundingRect.bottom - boundingRect.top - paddingTop - paddingBottom;\n\n\t\t// We divide by the current device pixel ratio, because the canvas is scaled up by that amount in each direction. However\n\t\t// the backend model is in unscaled coordinates. Since we are going to deal with our model coordinates, we go back here\n\t\tmouseX = Math.round((mouseX - boundingRect.left - paddingLeft) / (width) * canvas.width / chart.currentDevicePixelRatio);\n\t\tmouseY = Math.round((mouseY - boundingRect.top - paddingTop) / (height) * canvas.height / chart.currentDevicePixelRatio);\n\n\t\treturn {\n\t\t\tx: mouseX,\n\t\t\ty: mouseY\n\t\t};\n\n\t};\n\n\t// Private helper function to convert max-width/max-height values that may be percentages into a number\n\tfunction parseMaxStyle(styleValue, node, parentProperty) {\n\t\tvar valueInPixels;\n\t\tif (typeof styleValue === 'string') {\n\t\t\tvalueInPixels = parseInt(styleValue, 10);\n\n\t\t\tif (styleValue.indexOf('%') !== -1) {\n\t\t\t\t// percentage * size in dimension\n\t\t\t\tvalueInPixels = valueInPixels / 100 * node.parentNode[parentProperty];\n\t\t\t}\n\t\t} else {\n\t\t\tvalueInPixels = styleValue;\n\t\t}\n\n\t\treturn valueInPixels;\n\t}\n\n\t/**\n\t * Returns if the given value contains an effective constraint.\n\t * @private\n\t */\n\tfunction isConstrainedValue(value) {\n\t\treturn value !== undefined && value !== null && value !== 'none';\n\t}\n\n\t// Private helper to get a constraint dimension\n\t// @param domNode : the node to check the constraint on\n\t// @param maxStyle : the style that defines the maximum for the direction we are using (maxWidth / maxHeight)\n\t// @param percentageProperty : property of parent to use when calculating width as a percentage\n\t// @see http://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser\n\tfunction getConstraintDimension(domNode, maxStyle, percentageProperty) {\n\t\tvar view = document.defaultView;\n\t\tvar parentNode = helpers._getParentNode(domNode);\n\t\tvar constrainedNode = view.getComputedStyle(domNode)[maxStyle];\n\t\tvar constrainedContainer = view.getComputedStyle(parentNode)[maxStyle];\n\t\tvar hasCNode = isConstrainedValue(constrainedNode);\n\t\tvar hasCContainer = isConstrainedValue(constrainedContainer);\n\t\tvar infinity = Number.POSITIVE_INFINITY;\n\n\t\tif (hasCNode || hasCContainer) {\n\t\t\treturn Math.min(\n\t\t\t\thasCNode ? parseMaxStyle(constrainedNode, domNode, percentageProperty) : infinity,\n\t\t\t\thasCContainer ? parseMaxStyle(constrainedContainer, parentNode, percentageProperty) : infinity);\n\t\t}\n\n\t\treturn 'none';\n\t}\n\t// returns Number or undefined if no constraint\n\thelpers.getConstraintWidth = function(domNode) {\n\t\treturn getConstraintDimension(domNode, 'max-width', 'clientWidth');\n\t};\n\t// returns Number or undefined if no constraint\n\thelpers.getConstraintHeight = function(domNode) {\n\t\treturn getConstraintDimension(domNode, 'max-height', 'clientHeight');\n\t};\n\t/**\n\t * @private\n \t */\n\thelpers._calculatePadding = function(container, padding, parentDimension) {\n\t\tpadding = helpers.getStyle(container, padding);\n\n\t\treturn padding.indexOf('%') > -1 ? parentDimension / parseInt(padding, 10) : parseInt(padding, 10);\n\t};\n\t/**\n\t * @private\n\t */\n\thelpers._getParentNode = function(domNode) {\n\t\tvar parent = domNode.parentNode;\n\t\tif (parent && parent.host) {\n\t\t\tparent = parent.host;\n\t\t}\n\t\treturn parent;\n\t};\n\thelpers.getMaximumWidth = function(domNode) {\n\t\tvar container = helpers._getParentNode(domNode);\n\t\tif (!container) {\n\t\t\treturn domNode.clientWidth;\n\t\t}\n\n\t\tvar clientWidth = container.clientWidth;\n\t\tvar paddingLeft = helpers._calculatePadding(container, 'padding-left', clientWidth);\n\t\tvar paddingRight = helpers._calculatePadding(container, 'padding-right', clientWidth);\n\n\t\tvar w = clientWidth - paddingLeft - paddingRight;\n\t\tvar cw = helpers.getConstraintWidth(domNode);\n\t\treturn isNaN(cw) ? w : Math.min(w, cw);\n\t};\n\thelpers.getMaximumHeight = function(domNode) {\n\t\tvar container = helpers._getParentNode(domNode);\n\t\tif (!container) {\n\t\t\treturn domNode.clientHeight;\n\t\t}\n\n\t\tvar clientHeight = container.clientHeight;\n\t\tvar paddingTop = helpers._calculatePadding(container, 'padding-top', clientHeight);\n\t\tvar paddingBottom = helpers._calculatePadding(container, 'padding-bottom', clientHeight);\n\n\t\tvar h = clientHeight - paddingTop - paddingBottom;\n\t\tvar ch = helpers.getConstraintHeight(domNode);\n\t\treturn isNaN(ch) ? h : Math.min(h, ch);\n\t};\n\thelpers.getStyle = function(el, property) {\n\t\treturn el.currentStyle ?\n\t\t\tel.currentStyle[property] :\n\t\t\tdocument.defaultView.getComputedStyle(el, null).getPropertyValue(property);\n\t};\n\thelpers.retinaScale = function(chart, forceRatio) {\n\t\tvar pixelRatio = chart.currentDevicePixelRatio = forceRatio || (typeof window !== 'undefined' && window.devicePixelRatio) || 1;\n\t\tif (pixelRatio === 1) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar canvas = chart.canvas;\n\t\tvar height = chart.height;\n\t\tvar width = chart.width;\n\n\t\tcanvas.height = height * pixelRatio;\n\t\tcanvas.width = width * pixelRatio;\n\t\tchart.ctx.scale(pixelRatio, pixelRatio);\n\n\t\t// If no style has been set on the canvas, the render size is used as display size,\n\t\t// making the chart visually bigger, so let's enforce it to the \"correct\" values.\n\t\t// See https://github.com/chartjs/Chart.js/issues/3575\n\t\tif (!canvas.style.height && !canvas.style.width) {\n\t\t\tcanvas.style.height = height + 'px';\n\t\t\tcanvas.style.width = width + 'px';\n\t\t}\n\t};\n\t// -- Canvas methods\n\thelpers.fontString = function(pixelSize, fontStyle, fontFamily) {\n\t\treturn fontStyle + ' ' + pixelSize + 'px ' + fontFamily;\n\t};\n\thelpers.longestText = function(ctx, font, arrayOfThings, cache) {\n\t\tcache = cache || {};\n\t\tvar data = cache.data = cache.data || {};\n\t\tvar gc = cache.garbageCollect = cache.garbageCollect || [];\n\n\t\tif (cache.font !== font) {\n\t\t\tdata = cache.data = {};\n\t\t\tgc = cache.garbageCollect = [];\n\t\t\tcache.font = font;\n\t\t}\n\n\t\tctx.font = font;\n\t\tvar longest = 0;\n\t\thelpers.each(arrayOfThings, function(thing) {\n\t\t\t// Undefined strings and arrays should not be measured\n\t\t\tif (thing !== undefined && thing !== null && helpers.isArray(thing) !== true) {\n\t\t\t\tlongest = helpers.measureText(ctx, data, gc, longest, thing);\n\t\t\t} else if (helpers.isArray(thing)) {\n\t\t\t\t// if it is an array lets measure each element\n\t\t\t\t// to do maybe simplify this function a bit so we can do this more recursively?\n\t\t\t\thelpers.each(thing, function(nestedThing) {\n\t\t\t\t\t// Undefined strings and arrays should not be measured\n\t\t\t\t\tif (nestedThing !== undefined && nestedThing !== null && !helpers.isArray(nestedThing)) {\n\t\t\t\t\t\tlongest = helpers.measureText(ctx, data, gc, longest, nestedThing);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tvar gcLen = gc.length / 2;\n\t\tif (gcLen > arrayOfThings.length) {\n\t\t\tfor (var i = 0; i < gcLen; i++) {\n\t\t\t\tdelete data[gc[i]];\n\t\t\t}\n\t\t\tgc.splice(0, gcLen);\n\t\t}\n\t\treturn longest;\n\t};\n\thelpers.measureText = function(ctx, data, gc, longest, string) {\n\t\tvar textWidth = data[string];\n\t\tif (!textWidth) {\n\t\t\ttextWidth = data[string] = ctx.measureText(string).width;\n\t\t\tgc.push(string);\n\t\t}\n\t\tif (textWidth > longest) {\n\t\t\tlongest = textWidth;\n\t\t}\n\t\treturn longest;\n\t};\n\thelpers.numberOfLabelLines = function(arrayOfThings) {\n\t\tvar numberOfLines = 1;\n\t\thelpers.each(arrayOfThings, function(thing) {\n\t\t\tif (helpers.isArray(thing)) {\n\t\t\t\tif (thing.length > numberOfLines) {\n\t\t\t\t\tnumberOfLines = thing.length;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn numberOfLines;\n\t};\n\n\thelpers.color = !color ?\n\t\tfunction(value) {\n\t\t\tconsole.error('Color.js not found!');\n\t\t\treturn value;\n\t\t} :\n\t\tfunction(value) {\n\t\t\t/* global CanvasGradient */\n\t\t\tif (value instanceof CanvasGradient) {\n\t\t\t\tvalue = defaults.global.defaultColor;\n\t\t\t}\n\n\t\t\treturn color(value);\n\t\t};\n\n\thelpers.getHoverColor = function(colorValue) {\n\t\t/* global CanvasPattern */\n\t\treturn (colorValue instanceof CanvasPattern) ?\n\t\t\tcolorValue :\n\t\t\thelpers.color(colorValue).saturate(0.5).darken(0.1).rgbString();\n\t};\n};\n\n},{\"26\":26,\"3\":3,\"34\":34,\"46\":46}],29:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\n/**\n * Helper function to get relative position for an event\n * @param {Event|IEvent} event - The event to get the position for\n * @param {Chart} chart - The chart\n * @returns {Point} the event position\n */\nfunction getRelativePosition(e, chart) {\n\tif (e.native) {\n\t\treturn {\n\t\t\tx: e.x,\n\t\t\ty: e.y\n\t\t};\n\t}\n\n\treturn helpers.getRelativePosition(e, chart);\n}\n\n/**\n * Helper function to traverse all of the visible elements in the chart\n * @param chart {chart} the chart\n * @param handler {Function} the callback to execute for each visible item\n */\nfunction parseVisibleItems(chart, handler) {\n\tvar datasets = chart.data.datasets;\n\tvar meta, i, j, ilen, jlen;\n\n\tfor (i = 0, ilen = datasets.length; i < ilen; ++i) {\n\t\tif (!chart.isDatasetVisible(i)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tmeta = chart.getDatasetMeta(i);\n\t\tfor (j = 0, jlen = meta.data.length; j < jlen; ++j) {\n\t\t\tvar element = meta.data[j];\n\t\t\tif (!element._view.skip) {\n\t\t\t\thandler(element);\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Helper function to get the items that intersect the event position\n * @param items {ChartElement[]} elements to filter\n * @param position {Point} the point to be nearest to\n * @return {ChartElement[]} the nearest items\n */\nfunction getIntersectItems(chart, position) {\n\tvar elements = [];\n\n\tparseVisibleItems(chart, function(element) {\n\t\tif (element.inRange(position.x, position.y)) {\n\t\t\telements.push(element);\n\t\t}\n\t});\n\n\treturn elements;\n}\n\n/**\n * Helper function to get the items nearest to the event position considering all visible items in teh chart\n * @param chart {Chart} the chart to look at elements from\n * @param position {Point} the point to be nearest to\n * @param intersect {Boolean} if true, only consider items that intersect the position\n * @param distanceMetric {Function} function to provide the distance between points\n * @return {ChartElement[]} the nearest items\n */\nfunction getNearestItems(chart, position, intersect, distanceMetric) {\n\tvar minDistance = Number.POSITIVE_INFINITY;\n\tvar nearestItems = [];\n\n\tparseVisibleItems(chart, function(element) {\n\t\tif (intersect && !element.inRange(position.x, position.y)) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar center = element.getCenterPoint();\n\t\tvar distance = distanceMetric(position, center);\n\n\t\tif (distance < minDistance) {\n\t\t\tnearestItems = [element];\n\t\t\tminDistance = distance;\n\t\t} else if (distance === minDistance) {\n\t\t\t// Can have multiple items at the same distance in which case we sort by size\n\t\t\tnearestItems.push(element);\n\t\t}\n\t});\n\n\treturn nearestItems;\n}\n\n/**\n * Get a distance metric function for two points based on the\n * axis mode setting\n * @param {String} axis the axis mode. x|y|xy\n */\nfunction getDistanceMetricForAxis(axis) {\n\tvar useX = axis.indexOf('x') !== -1;\n\tvar useY = axis.indexOf('y') !== -1;\n\n\treturn function(pt1, pt2) {\n\t\tvar deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0;\n\t\tvar deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0;\n\t\treturn Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));\n\t};\n}\n\nfunction indexMode(chart, e, options) {\n\tvar position = getRelativePosition(e, chart);\n\t// Default axis for index mode is 'x' to match old behaviour\n\toptions.axis = options.axis || 'x';\n\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\n\tvar items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\n\tvar elements = [];\n\n\tif (!items.length) {\n\t\treturn [];\n\t}\n\n\tchart.data.datasets.forEach(function(dataset, datasetIndex) {\n\t\tif (chart.isDatasetVisible(datasetIndex)) {\n\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\tvar element = meta.data[items[0]._index];\n\n\t\t\t// don't count items that are skipped (null data)\n\t\t\tif (element && !element._view.skip) {\n\t\t\t\telements.push(element);\n\t\t\t}\n\t\t}\n\t});\n\n\treturn elements;\n}\n\n/**\n * @interface IInteractionOptions\n */\n/**\n * If true, only consider items that intersect the point\n * @name IInterfaceOptions#boolean\n * @type Boolean\n */\n\n/**\n * Contains interaction related functions\n * @namespace Chart.Interaction\n */\nmodule.exports = {\n\t// Helper function for different modes\n\tmodes: {\n\t\tsingle: function(chart, e) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\tvar elements = [];\n\n\t\t\tparseVisibleItems(chart, function(element) {\n\t\t\t\tif (element.inRange(position.x, position.y)) {\n\t\t\t\t\telements.push(element);\n\t\t\t\t\treturn elements;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn elements.slice(0, 1);\n\t\t},\n\n\t\t/**\n\t\t * @function Chart.Interaction.modes.label\n\t\t * @deprecated since version 2.4.0\n\t\t * @todo remove at version 3\n\t\t * @private\n\t\t */\n\t\tlabel: indexMode,\n\n\t\t/**\n\t\t * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\n\t\t * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item\n\t\t * @function Chart.Interaction.modes.index\n\t\t * @since v2.4.0\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use during interaction\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tindex: indexMode,\n\n\t\t/**\n\t\t * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\n\t\t * If the options.intersect is false, we find the nearest item and return the items in that dataset\n\t\t * @function Chart.Interaction.modes.dataset\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use during interaction\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tdataset: function(chart, e, options) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\toptions.axis = options.axis || 'xy';\n\t\t\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\n\t\t\tvar items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\n\n\t\t\tif (items.length > 0) {\n\t\t\t\titems = chart.getDatasetMeta(items[0]._datasetIndex).data;\n\t\t\t}\n\n\t\t\treturn items;\n\t\t},\n\n\t\t/**\n\t\t * @function Chart.Interaction.modes.x-axis\n\t\t * @deprecated since version 2.4.0. Use index mode and intersect == true\n\t\t * @todo remove at version 3\n\t\t * @private\n\t\t */\n\t\t'x-axis': function(chart, e) {\n\t\t\treturn indexMode(chart, e, {intersect: false});\n\t\t},\n\n\t\t/**\n\t\t * Point mode returns all elements that hit test based on the event position\n\t\t * of the event\n\t\t * @function Chart.Interaction.modes.intersect\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tpoint: function(chart, e) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\treturn getIntersectItems(chart, position);\n\t\t},\n\n\t\t/**\n\t\t * nearest mode returns the element closest to the point\n\t\t * @function Chart.Interaction.modes.intersect\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tnearest: function(chart, e, options) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\toptions.axis = options.axis || 'xy';\n\t\t\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\n\t\t\tvar nearestItems = getNearestItems(chart, position, options.intersect, distanceMetric);\n\n\t\t\t// We have multiple items at the same distance from the event. Now sort by smallest\n\t\t\tif (nearestItems.length > 1) {\n\t\t\t\tnearestItems.sort(function(a, b) {\n\t\t\t\t\tvar sizeA = a.getArea();\n\t\t\t\t\tvar sizeB = b.getArea();\n\t\t\t\t\tvar ret = sizeA - sizeB;\n\n\t\t\t\t\tif (ret === 0) {\n\t\t\t\t\t\t// if equal sort by dataset index\n\t\t\t\t\t\tret = a._datasetIndex - b._datasetIndex;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn ret;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// Return only 1 item\n\t\t\treturn nearestItems.slice(0, 1);\n\t\t},\n\n\t\t/**\n\t\t * x mode returns the elements that hit-test at the current x coordinate\n\t\t * @function Chart.Interaction.modes.x\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tx: function(chart, e, options) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\tvar items = [];\n\t\t\tvar intersectsItem = false;\n\n\t\t\tparseVisibleItems(chart, function(element) {\n\t\t\t\tif (element.inXRange(position.x)) {\n\t\t\t\t\titems.push(element);\n\t\t\t\t}\n\n\t\t\t\tif (element.inRange(position.x, position.y)) {\n\t\t\t\t\tintersectsItem = true;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// If we want to trigger on an intersect and we don't have any items\n\t\t\t// that intersect the position, return nothing\n\t\t\tif (options.intersect && !intersectsItem) {\n\t\t\t\titems = [];\n\t\t\t}\n\t\t\treturn items;\n\t\t},\n\n\t\t/**\n\t\t * y mode returns the elements that hit-test at the current y coordinate\n\t\t * @function Chart.Interaction.modes.y\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\ty: function(chart, e, options) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\tvar items = [];\n\t\t\tvar intersectsItem = false;\n\n\t\t\tparseVisibleItems(chart, function(element) {\n\t\t\t\tif (element.inYRange(position.y)) {\n\t\t\t\t\titems.push(element);\n\t\t\t\t}\n\n\t\t\t\tif (element.inRange(position.x, position.y)) {\n\t\t\t\t\tintersectsItem = true;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// If we want to trigger on an intersect and we don't have any items\n\t\t\t// that intersect the position, return nothing\n\t\t\tif (options.intersect && !intersectsItem) {\n\t\t\t\titems = [];\n\t\t\t}\n\t\t\treturn items;\n\t\t}\n\t}\n};\n\n},{\"46\":46}],30:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\n\ndefaults._set('global', {\n\tresponsive: true,\n\tresponsiveAnimationDuration: 0,\n\tmaintainAspectRatio: true,\n\tevents: ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove'],\n\thover: {\n\t\tonHover: null,\n\t\tmode: 'nearest',\n\t\tintersect: true,\n\t\tanimationDuration: 400\n\t},\n\tonClick: null,\n\tdefaultColor: 'rgba(0,0,0,0.1)',\n\tdefaultFontColor: '#666',\n\tdefaultFontFamily: \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",\n\tdefaultFontSize: 12,\n\tdefaultFontStyle: 'normal',\n\tshowLines: true,\n\n\t// Element defaults defined in element extensions\n\telements: {},\n\n\t// Layout options such as padding\n\tlayout: {\n\t\tpadding: {\n\t\t\ttop: 0,\n\t\t\tright: 0,\n\t\t\tbottom: 0,\n\t\t\tleft: 0\n\t\t}\n\t}\n});\n\nmodule.exports = function() {\n\n\t// Occupy the global variable of Chart, and create a simple base class\n\tvar Chart = function(item, config) {\n\t\tthis.construct(item, config);\n\t\treturn this;\n\t};\n\n\tChart.Chart = Chart;\n\n\treturn Chart;\n};\n\n},{\"26\":26}],31:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\nfunction filterByPosition(array, position) {\n\treturn helpers.where(array, function(v) {\n\t\treturn v.position === position;\n\t});\n}\n\nfunction sortByWeight(array, reverse) {\n\tarray.forEach(function(v, i) {\n\t\tv._tmpIndex_ = i;\n\t\treturn v;\n\t});\n\tarray.sort(function(a, b) {\n\t\tvar v0 = reverse ? b : a;\n\t\tvar v1 = reverse ? a : b;\n\t\treturn v0.weight === v1.weight ?\n\t\t\tv0._tmpIndex_ - v1._tmpIndex_ :\n\t\t\tv0.weight - v1.weight;\n\t});\n\tarray.forEach(function(v) {\n\t\tdelete v._tmpIndex_;\n\t});\n}\n\n/**\n * @interface ILayoutItem\n * @prop {String} position - The position of the item in the chart layout. Possible values are\n * 'left', 'top', 'right', 'bottom', and 'chartArea'\n * @prop {Number} weight - The weight used to sort the item. Higher weights are further away from the chart area\n * @prop {Boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down\n * @prop {Function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom)\n * @prop {Function} update - Takes two parameters: width and height. Returns size of item\n * @prop {Function} getPadding -  Returns an object with padding on the edges\n * @prop {Number} width - Width of item. Must be valid after update()\n * @prop {Number} height - Height of item. Must be valid after update()\n * @prop {Number} left - Left edge of the item. Set by layout system and cannot be used in update\n * @prop {Number} top - Top edge of the item. Set by layout system and cannot be used in update\n * @prop {Number} right - Right edge of the item. Set by layout system and cannot be used in update\n * @prop {Number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update\n */\n\n// The layout service is very self explanatory.  It's responsible for the layout within a chart.\n// Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need\n// It is this service's responsibility of carrying out that layout.\nmodule.exports = {\n\tdefaults: {},\n\n\t/**\n\t * Register a box to a chart.\n\t * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title.\n\t * @param {Chart} chart - the chart to use\n\t * @param {ILayoutItem} item - the item to add to be layed out\n\t */\n\taddBox: function(chart, item) {\n\t\tif (!chart.boxes) {\n\t\t\tchart.boxes = [];\n\t\t}\n\n\t\t// initialize item with default values\n\t\titem.fullWidth = item.fullWidth || false;\n\t\titem.position = item.position || 'top';\n\t\titem.weight = item.weight || 0;\n\n\t\tchart.boxes.push(item);\n\t},\n\n\t/**\n\t * Remove a layoutItem from a chart\n\t * @param {Chart} chart - the chart to remove the box from\n\t * @param {Object} layoutItem - the item to remove from the layout\n\t */\n\tremoveBox: function(chart, layoutItem) {\n\t\tvar index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1;\n\t\tif (index !== -1) {\n\t\t\tchart.boxes.splice(index, 1);\n\t\t}\n\t},\n\n\t/**\n\t * Sets (or updates) options on the given `item`.\n\t * @param {Chart} chart - the chart in which the item lives (or will be added to)\n\t * @param {Object} item - the item to configure with the given options\n\t * @param {Object} options - the new item options.\n\t */\n\tconfigure: function(chart, item, options) {\n\t\tvar props = ['fullWidth', 'position', 'weight'];\n\t\tvar ilen = props.length;\n\t\tvar i = 0;\n\t\tvar prop;\n\n\t\tfor (; i < ilen; ++i) {\n\t\t\tprop = props[i];\n\t\t\tif (options.hasOwnProperty(prop)) {\n\t\t\t\titem[prop] = options[prop];\n\t\t\t}\n\t\t}\n\t},\n\n\t/**\n\t * Fits boxes of the given chart into the given size by having each box measure itself\n\t * then running a fitting algorithm\n\t * @param {Chart} chart - the chart\n\t * @param {Number} width - the width to fit into\n\t * @param {Number} height - the height to fit into\n\t */\n\tupdate: function(chart, width, height) {\n\t\tif (!chart) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar layoutOptions = chart.options.layout || {};\n\t\tvar padding = helpers.options.toPadding(layoutOptions.padding);\n\t\tvar leftPadding = padding.left;\n\t\tvar rightPadding = padding.right;\n\t\tvar topPadding = padding.top;\n\t\tvar bottomPadding = padding.bottom;\n\n\t\tvar leftBoxes = filterByPosition(chart.boxes, 'left');\n\t\tvar rightBoxes = filterByPosition(chart.boxes, 'right');\n\t\tvar topBoxes = filterByPosition(chart.boxes, 'top');\n\t\tvar bottomBoxes = filterByPosition(chart.boxes, 'bottom');\n\t\tvar chartAreaBoxes = filterByPosition(chart.boxes, 'chartArea');\n\n\t\t// Sort boxes by weight. A higher weight is further away from the chart area\n\t\tsortByWeight(leftBoxes, true);\n\t\tsortByWeight(rightBoxes, false);\n\t\tsortByWeight(topBoxes, true);\n\t\tsortByWeight(bottomBoxes, false);\n\n\t\t// Essentially we now have any number of boxes on each of the 4 sides.\n\t\t// Our canvas looks like the following.\n\t\t// The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and\n\t\t// B1 is the bottom axis\n\t\t// There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays\n\t\t// These locations are single-box locations only, when trying to register a chartArea location that is already taken,\n\t\t// an error will be thrown.\n\t\t//\n\t\t// |----------------------------------------------------|\n\t\t// |                  T1 (Full Width)                   |\n\t\t// |----------------------------------------------------|\n\t\t// |    |    |                 T2                  |    |\n\t\t// |    |----|-------------------------------------|----|\n\t\t// |    |    | C1 |                           | C2 |    |\n\t\t// |    |    |----|                           |----|    |\n\t\t// |    |    |                                     |    |\n\t\t// | L1 | L2 |           ChartArea (C0)            | R1 |\n\t\t// |    |    |                                     |    |\n\t\t// |    |    |----|                           |----|    |\n\t\t// |    |    | C3 |                           | C4 |    |\n\t\t// |    |----|-------------------------------------|----|\n\t\t// |    |    |                 B1                  |    |\n\t\t// |----------------------------------------------------|\n\t\t// |                  B2 (Full Width)                   |\n\t\t// |----------------------------------------------------|\n\t\t//\n\t\t// What we do to find the best sizing, we do the following\n\t\t// 1. Determine the minimum size of the chart area.\n\t\t// 2. Split the remaining width equally between each vertical axis\n\t\t// 3. Split the remaining height equally between each horizontal axis\n\t\t// 4. Give each layout the maximum size it can be. The layout will return it's minimum size\n\t\t// 5. Adjust the sizes of each axis based on it's minimum reported size.\n\t\t// 6. Refit each axis\n\t\t// 7. Position each axis in the final location\n\t\t// 8. Tell the chart the final location of the chart area\n\t\t// 9. Tell any axes that overlay the chart area the positions of the chart area\n\n\t\t// Step 1\n\t\tvar chartWidth = width - leftPadding - rightPadding;\n\t\tvar chartHeight = height - topPadding - bottomPadding;\n\t\tvar chartAreaWidth = chartWidth / 2; // min 50%\n\t\tvar chartAreaHeight = chartHeight / 2; // min 50%\n\n\t\t// Step 2\n\t\tvar verticalBoxWidth = (width - chartAreaWidth) / (leftBoxes.length + rightBoxes.length);\n\n\t\t// Step 3\n\t\tvar horizontalBoxHeight = (height - chartAreaHeight) / (topBoxes.length + bottomBoxes.length);\n\n\t\t// Step 4\n\t\tvar maxChartAreaWidth = chartWidth;\n\t\tvar maxChartAreaHeight = chartHeight;\n\t\tvar minBoxSizes = [];\n\n\t\tfunction getMinimumBoxSize(box) {\n\t\t\tvar minSize;\n\t\t\tvar isHorizontal = box.isHorizontal();\n\n\t\t\tif (isHorizontal) {\n\t\t\t\tminSize = box.update(box.fullWidth ? chartWidth : maxChartAreaWidth, horizontalBoxHeight);\n\t\t\t\tmaxChartAreaHeight -= minSize.height;\n\t\t\t} else {\n\t\t\t\tminSize = box.update(verticalBoxWidth, maxChartAreaHeight);\n\t\t\t\tmaxChartAreaWidth -= minSize.width;\n\t\t\t}\n\n\t\t\tminBoxSizes.push({\n\t\t\t\thorizontal: isHorizontal,\n\t\t\t\tminSize: minSize,\n\t\t\t\tbox: box,\n\t\t\t});\n\t\t}\n\n\t\thelpers.each(leftBoxes.concat(rightBoxes, topBoxes, bottomBoxes), getMinimumBoxSize);\n\n\t\t// If a horizontal box has padding, we move the left boxes over to avoid ugly charts (see issue #2478)\n\t\tvar maxHorizontalLeftPadding = 0;\n\t\tvar maxHorizontalRightPadding = 0;\n\t\tvar maxVerticalTopPadding = 0;\n\t\tvar maxVerticalBottomPadding = 0;\n\n\t\thelpers.each(topBoxes.concat(bottomBoxes), function(horizontalBox) {\n\t\t\tif (horizontalBox.getPadding) {\n\t\t\t\tvar boxPadding = horizontalBox.getPadding();\n\t\t\t\tmaxHorizontalLeftPadding = Math.max(maxHorizontalLeftPadding, boxPadding.left);\n\t\t\t\tmaxHorizontalRightPadding = Math.max(maxHorizontalRightPadding, boxPadding.right);\n\t\t\t}\n\t\t});\n\n\t\thelpers.each(leftBoxes.concat(rightBoxes), function(verticalBox) {\n\t\t\tif (verticalBox.getPadding) {\n\t\t\t\tvar boxPadding = verticalBox.getPadding();\n\t\t\t\tmaxVerticalTopPadding = Math.max(maxVerticalTopPadding, boxPadding.top);\n\t\t\t\tmaxVerticalBottomPadding = Math.max(maxVerticalBottomPadding, boxPadding.bottom);\n\t\t\t}\n\t\t});\n\n\t\t// At this point, maxChartAreaHeight and maxChartAreaWidth are the size the chart area could\n\t\t// be if the axes are drawn at their minimum sizes.\n\t\t// Steps 5 & 6\n\t\tvar totalLeftBoxesWidth = leftPadding;\n\t\tvar totalRightBoxesWidth = rightPadding;\n\t\tvar totalTopBoxesHeight = topPadding;\n\t\tvar totalBottomBoxesHeight = bottomPadding;\n\n\t\t// Function to fit a box\n\t\tfunction fitBox(box) {\n\t\t\tvar minBoxSize = helpers.findNextWhere(minBoxSizes, function(minBox) {\n\t\t\t\treturn minBox.box === box;\n\t\t\t});\n\n\t\t\tif (minBoxSize) {\n\t\t\t\tif (box.isHorizontal()) {\n\t\t\t\t\tvar scaleMargin = {\n\t\t\t\t\t\tleft: Math.max(totalLeftBoxesWidth, maxHorizontalLeftPadding),\n\t\t\t\t\t\tright: Math.max(totalRightBoxesWidth, maxHorizontalRightPadding),\n\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\tbottom: 0\n\t\t\t\t\t};\n\n\t\t\t\t\t// Don't use min size here because of label rotation. When the labels are rotated, their rotation highly depends\n\t\t\t\t\t// on the margin. Sometimes they need to increase in size slightly\n\t\t\t\t\tbox.update(box.fullWidth ? chartWidth : maxChartAreaWidth, chartHeight / 2, scaleMargin);\n\t\t\t\t} else {\n\t\t\t\t\tbox.update(minBoxSize.minSize.width, maxChartAreaHeight);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Update, and calculate the left and right margins for the horizontal boxes\n\t\thelpers.each(leftBoxes.concat(rightBoxes), fitBox);\n\n\t\thelpers.each(leftBoxes, function(box) {\n\t\t\ttotalLeftBoxesWidth += box.width;\n\t\t});\n\n\t\thelpers.each(rightBoxes, function(box) {\n\t\t\ttotalRightBoxesWidth += box.width;\n\t\t});\n\n\t\t// Set the Left and Right margins for the horizontal boxes\n\t\thelpers.each(topBoxes.concat(bottomBoxes), fitBox);\n\n\t\t// Figure out how much margin is on the top and bottom of the vertical boxes\n\t\thelpers.each(topBoxes, function(box) {\n\t\t\ttotalTopBoxesHeight += box.height;\n\t\t});\n\n\t\thelpers.each(bottomBoxes, function(box) {\n\t\t\ttotalBottomBoxesHeight += box.height;\n\t\t});\n\n\t\tfunction finalFitVerticalBox(box) {\n\t\t\tvar minBoxSize = helpers.findNextWhere(minBoxSizes, function(minSize) {\n\t\t\t\treturn minSize.box === box;\n\t\t\t});\n\n\t\t\tvar scaleMargin = {\n\t\t\t\tleft: 0,\n\t\t\t\tright: 0,\n\t\t\t\ttop: totalTopBoxesHeight,\n\t\t\t\tbottom: totalBottomBoxesHeight\n\t\t\t};\n\n\t\t\tif (minBoxSize) {\n\t\t\t\tbox.update(minBoxSize.minSize.width, maxChartAreaHeight, scaleMargin);\n\t\t\t}\n\t\t}\n\n\t\t// Let the left layout know the final margin\n\t\thelpers.each(leftBoxes.concat(rightBoxes), finalFitVerticalBox);\n\n\t\t// Recalculate because the size of each layout might have changed slightly due to the margins (label rotation for instance)\n\t\ttotalLeftBoxesWidth = leftPadding;\n\t\ttotalRightBoxesWidth = rightPadding;\n\t\ttotalTopBoxesHeight = topPadding;\n\t\ttotalBottomBoxesHeight = bottomPadding;\n\n\t\thelpers.each(leftBoxes, function(box) {\n\t\t\ttotalLeftBoxesWidth += box.width;\n\t\t});\n\n\t\thelpers.each(rightBoxes, function(box) {\n\t\t\ttotalRightBoxesWidth += box.width;\n\t\t});\n\n\t\thelpers.each(topBoxes, function(box) {\n\t\t\ttotalTopBoxesHeight += box.height;\n\t\t});\n\t\thelpers.each(bottomBoxes, function(box) {\n\t\t\ttotalBottomBoxesHeight += box.height;\n\t\t});\n\n\t\t// We may be adding some padding to account for rotated x axis labels\n\t\tvar leftPaddingAddition = Math.max(maxHorizontalLeftPadding - totalLeftBoxesWidth, 0);\n\t\ttotalLeftBoxesWidth += leftPaddingAddition;\n\t\ttotalRightBoxesWidth += Math.max(maxHorizontalRightPadding - totalRightBoxesWidth, 0);\n\n\t\tvar topPaddingAddition = Math.max(maxVerticalTopPadding - totalTopBoxesHeight, 0);\n\t\ttotalTopBoxesHeight += topPaddingAddition;\n\t\ttotalBottomBoxesHeight += Math.max(maxVerticalBottomPadding - totalBottomBoxesHeight, 0);\n\n\t\t// Figure out if our chart area changed. This would occur if the dataset layout label rotation\n\t\t// changed due to the application of the margins in step 6. Since we can only get bigger, this is safe to do\n\t\t// without calling `fit` again\n\t\tvar newMaxChartAreaHeight = height - totalTopBoxesHeight - totalBottomBoxesHeight;\n\t\tvar newMaxChartAreaWidth = width - totalLeftBoxesWidth - totalRightBoxesWidth;\n\n\t\tif (newMaxChartAreaWidth !== maxChartAreaWidth || newMaxChartAreaHeight !== maxChartAreaHeight) {\n\t\t\thelpers.each(leftBoxes, function(box) {\n\t\t\t\tbox.height = newMaxChartAreaHeight;\n\t\t\t});\n\n\t\t\thelpers.each(rightBoxes, function(box) {\n\t\t\t\tbox.height = newMaxChartAreaHeight;\n\t\t\t});\n\n\t\t\thelpers.each(topBoxes, function(box) {\n\t\t\t\tif (!box.fullWidth) {\n\t\t\t\t\tbox.width = newMaxChartAreaWidth;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\thelpers.each(bottomBoxes, function(box) {\n\t\t\t\tif (!box.fullWidth) {\n\t\t\t\t\tbox.width = newMaxChartAreaWidth;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmaxChartAreaHeight = newMaxChartAreaHeight;\n\t\t\tmaxChartAreaWidth = newMaxChartAreaWidth;\n\t\t}\n\n\t\t// Step 7 - Position the boxes\n\t\tvar left = leftPadding + leftPaddingAddition;\n\t\tvar top = topPadding + topPaddingAddition;\n\n\t\tfunction placeBox(box) {\n\t\t\tif (box.isHorizontal()) {\n\t\t\t\tbox.left = box.fullWidth ? leftPadding : totalLeftBoxesWidth;\n\t\t\t\tbox.right = box.fullWidth ? width - rightPadding : totalLeftBoxesWidth + maxChartAreaWidth;\n\t\t\t\tbox.top = top;\n\t\t\t\tbox.bottom = top + box.height;\n\n\t\t\t\t// Move to next point\n\t\t\t\ttop = box.bottom;\n\n\t\t\t} else {\n\n\t\t\t\tbox.left = left;\n\t\t\t\tbox.right = left + box.width;\n\t\t\t\tbox.top = totalTopBoxesHeight;\n\t\t\t\tbox.bottom = totalTopBoxesHeight + maxChartAreaHeight;\n\n\t\t\t\t// Move to next point\n\t\t\t\tleft = box.right;\n\t\t\t}\n\t\t}\n\n\t\thelpers.each(leftBoxes.concat(topBoxes), placeBox);\n\n\t\t// Account for chart width and height\n\t\tleft += maxChartAreaWidth;\n\t\ttop += maxChartAreaHeight;\n\n\t\thelpers.each(rightBoxes, placeBox);\n\t\thelpers.each(bottomBoxes, placeBox);\n\n\t\t// Step 8\n\t\tchart.chartArea = {\n\t\t\tleft: totalLeftBoxesWidth,\n\t\t\ttop: totalTopBoxesHeight,\n\t\t\tright: totalLeftBoxesWidth + maxChartAreaWidth,\n\t\t\tbottom: totalTopBoxesHeight + maxChartAreaHeight\n\t\t};\n\n\t\t// Step 9\n\t\thelpers.each(chartAreaBoxes, function(box) {\n\t\t\tbox.left = chart.chartArea.left;\n\t\t\tbox.top = chart.chartArea.top;\n\t\t\tbox.right = chart.chartArea.right;\n\t\t\tbox.bottom = chart.chartArea.bottom;\n\n\t\t\tbox.update(maxChartAreaWidth, maxChartAreaHeight);\n\t\t});\n\t}\n};\n\n},{\"46\":46}],32:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\tplugins: {}\n});\n\n/**\n * The plugin service singleton\n * @namespace Chart.plugins\n * @since 2.1.0\n */\nmodule.exports = {\n\t/**\n\t * Globally registered plugins.\n\t * @private\n\t */\n\t_plugins: [],\n\n\t/**\n\t * This identifier is used to invalidate the descriptors cache attached to each chart\n\t * when a global plugin is registered or unregistered. In this case, the cache ID is\n\t * incremented and descriptors are regenerated during following API calls.\n\t * @private\n\t */\n\t_cacheId: 0,\n\n\t/**\n\t * Registers the given plugin(s) if not already registered.\n\t * @param {Array|Object} plugins plugin instance(s).\n\t */\n\tregister: function(plugins) {\n\t\tvar p = this._plugins;\n\t\t([]).concat(plugins).forEach(function(plugin) {\n\t\t\tif (p.indexOf(plugin) === -1) {\n\t\t\t\tp.push(plugin);\n\t\t\t}\n\t\t});\n\n\t\tthis._cacheId++;\n\t},\n\n\t/**\n\t * Unregisters the given plugin(s) only if registered.\n\t * @param {Array|Object} plugins plugin instance(s).\n\t */\n\tunregister: function(plugins) {\n\t\tvar p = this._plugins;\n\t\t([]).concat(plugins).forEach(function(plugin) {\n\t\t\tvar idx = p.indexOf(plugin);\n\t\t\tif (idx !== -1) {\n\t\t\t\tp.splice(idx, 1);\n\t\t\t}\n\t\t});\n\n\t\tthis._cacheId++;\n\t},\n\n\t/**\n\t * Remove all registered plugins.\n\t * @since 2.1.5\n\t */\n\tclear: function() {\n\t\tthis._plugins = [];\n\t\tthis._cacheId++;\n\t},\n\n\t/**\n\t * Returns the number of registered plugins?\n\t * @returns {Number}\n\t * @since 2.1.5\n\t */\n\tcount: function() {\n\t\treturn this._plugins.length;\n\t},\n\n\t/**\n\t * Returns all registered plugin instances.\n\t * @returns {Array} array of plugin objects.\n\t * @since 2.1.5\n\t */\n\tgetAll: function() {\n\t\treturn this._plugins;\n\t},\n\n\t/**\n\t * Calls enabled plugins for `chart` on the specified hook and with the given args.\n\t * This method immediately returns as soon as a plugin explicitly returns false. The\n\t * returned value can be used, for instance, to interrupt the current action.\n\t * @param {Object} chart - The chart instance for which plugins should be called.\n\t * @param {String} hook - The name of the plugin method to call (e.g. 'beforeUpdate').\n\t * @param {Array} [args] - Extra arguments to apply to the hook call.\n\t * @returns {Boolean} false if any of the plugins return false, else returns true.\n\t */\n\tnotify: function(chart, hook, args) {\n\t\tvar descriptors = this.descriptors(chart);\n\t\tvar ilen = descriptors.length;\n\t\tvar i, descriptor, plugin, params, method;\n\n\t\tfor (i = 0; i < ilen; ++i) {\n\t\t\tdescriptor = descriptors[i];\n\t\t\tplugin = descriptor.plugin;\n\t\t\tmethod = plugin[hook];\n\t\t\tif (typeof method === 'function') {\n\t\t\t\tparams = [chart].concat(args || []);\n\t\t\t\tparams.push(descriptor.options);\n\t\t\t\tif (method.apply(plugin, params) === false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t},\n\n\t/**\n\t * Returns descriptors of enabled plugins for the given chart.\n\t * @returns {Array} [{ plugin, options }]\n\t * @private\n\t */\n\tdescriptors: function(chart) {\n\t\tvar cache = chart.$plugins || (chart.$plugins = {});\n\t\tif (cache.id === this._cacheId) {\n\t\t\treturn cache.descriptors;\n\t\t}\n\n\t\tvar plugins = [];\n\t\tvar descriptors = [];\n\t\tvar config = (chart && chart.config) || {};\n\t\tvar options = (config.options && config.options.plugins) || {};\n\n\t\tthis._plugins.concat(config.plugins || []).forEach(function(plugin) {\n\t\t\tvar idx = plugins.indexOf(plugin);\n\t\t\tif (idx !== -1) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar id = plugin.id;\n\t\t\tvar opts = options[id];\n\t\t\tif (opts === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (opts === true) {\n\t\t\t\topts = helpers.clone(defaults.global.plugins[id]);\n\t\t\t}\n\n\t\t\tplugins.push(plugin);\n\t\t\tdescriptors.push({\n\t\t\t\tplugin: plugin,\n\t\t\t\toptions: opts || {}\n\t\t\t});\n\t\t});\n\n\t\tcache.descriptors = descriptors;\n\t\tcache.id = this._cacheId;\n\t\treturn descriptors;\n\t},\n\n\t/**\n\t * Invalidates cache for the given chart: descriptors hold a reference on plugin option,\n\t * but in some cases, this reference can be changed by the user when updating options.\n\t * https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\n\t * @private\n\t */\n\t_invalidate: function(chart) {\n\t\tdelete chart.$plugins;\n\t}\n};\n\n/**\n * Plugin extension hooks.\n * @interface IPlugin\n * @since 2.1.0\n */\n/**\n * @method IPlugin#beforeInit\n * @desc Called before initializing `chart`.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#afterInit\n * @desc Called after `chart` has been initialized and before the first update.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeUpdate\n * @desc Called before updating `chart`. If any plugin returns `false`, the update\n * is cancelled (and thus subsequent render(s)) until another `update` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart update.\n */\n/**\n * @method IPlugin#afterUpdate\n * @desc Called after `chart` has been updated and before rendering. Note that this\n * hook will not be called if the chart update has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeDatasetsUpdate\n * @desc Called before updating the `chart` datasets. If any plugin returns `false`,\n * the datasets update is cancelled until another `update` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} false to cancel the datasets update.\n * @since version 2.1.5\n*/\n/**\n * @method IPlugin#afterDatasetsUpdate\n * @desc Called after the `chart` datasets have been updated. Note that this hook\n * will not be called if the datasets update has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @since version 2.1.5\n */\n/**\n * @method IPlugin#beforeDatasetUpdate\n * @desc Called before updating the `chart` dataset at the given `args.index`. If any plugin\n * returns `false`, the datasets update is cancelled until another `update` is triggered.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Number} args.index - The dataset index.\n * @param {Object} args.meta - The dataset metadata.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart datasets drawing.\n */\n/**\n * @method IPlugin#afterDatasetUpdate\n * @desc Called after the `chart` datasets at the given `args.index` has been updated. Note\n * that this hook will not be called if the datasets update has been previously cancelled.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Number} args.index - The dataset index.\n * @param {Object} args.meta - The dataset metadata.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeLayout\n * @desc Called before laying out `chart`. If any plugin returns `false`,\n * the layout update is cancelled until another `update` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart layout.\n */\n/**\n * @method IPlugin#afterLayout\n * @desc Called after the `chart` has been layed out. Note that this hook will not\n * be called if the layout update has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeRender\n * @desc Called before rendering `chart`. If any plugin returns `false`,\n * the rendering is cancelled until another `render` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart rendering.\n */\n/**\n * @method IPlugin#afterRender\n * @desc Called after the `chart` has been fully rendered (and animation completed). Note\n * that this hook will not be called if the rendering has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeDraw\n * @desc Called before drawing `chart` at every animation frame specified by the given\n * easing value. If any plugin returns `false`, the frame drawing is cancelled until\n * another `render` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart drawing.\n */\n/**\n * @method IPlugin#afterDraw\n * @desc Called after the `chart` has been drawn for the specific easing value. Note\n * that this hook will not be called if the drawing has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeDatasetsDraw\n * @desc Called before drawing the `chart` datasets. If any plugin returns `false`,\n * the datasets drawing is cancelled until another `render` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart datasets drawing.\n */\n/**\n * @method IPlugin#afterDatasetsDraw\n * @desc Called after the `chart` datasets have been drawn. Note that this hook\n * will not be called if the datasets drawing has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeDatasetDraw\n * @desc Called before drawing the `chart` dataset at the given `args.index` (datasets\n * are drawn in the reverse order). If any plugin returns `false`, the datasets drawing\n * is cancelled until another `render` is triggered.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Number} args.index - The dataset index.\n * @param {Object} args.meta - The dataset metadata.\n * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart datasets drawing.\n */\n/**\n * @method IPlugin#afterDatasetDraw\n * @desc Called after the `chart` datasets at the given `args.index` have been drawn\n * (datasets are drawn in the reverse order). Note that this hook will not be called\n * if the datasets drawing has been previously cancelled.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Number} args.index - The dataset index.\n * @param {Object} args.meta - The dataset metadata.\n * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeTooltipDraw\n * @desc Called before drawing the `tooltip`. If any plugin returns `false`,\n * the tooltip drawing is cancelled until another `render` is triggered.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Object} args.tooltip - The tooltip.\n * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart tooltip drawing.\n */\n/**\n * @method IPlugin#afterTooltipDraw\n * @desc Called after drawing the `tooltip`. Note that this hook will not\n * be called if the tooltip drawing has been previously cancelled.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Object} args.tooltip - The tooltip.\n * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeEvent\n * @desc Called before processing the specified `event`. If any plugin returns `false`,\n * the event will be discarded.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {IEvent} event - The event object.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#afterEvent\n * @desc Called after the `event` has been consumed. Note that this hook\n * will not be called if the `event` has been previously discarded.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {IEvent} event - The event object.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#resize\n * @desc Called after the chart as been resized.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} size - The new canvas display size (eq. canvas.style width & height).\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#destroy\n * @desc Called after the chart as been destroyed.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n\n},{\"26\":26,\"46\":46}],33:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\nvar Ticks = require(35);\n\ndefaults._set('scale', {\n\tdisplay: true,\n\tposition: 'left',\n\toffset: false,\n\n\t// grid line settings\n\tgridLines: {\n\t\tdisplay: true,\n\t\tcolor: 'rgba(0, 0, 0, 0.1)',\n\t\tlineWidth: 1,\n\t\tdrawBorder: true,\n\t\tdrawOnChartArea: true,\n\t\tdrawTicks: true,\n\t\ttickMarkLength: 10,\n\t\tzeroLineWidth: 1,\n\t\tzeroLineColor: 'rgba(0,0,0,0.25)',\n\t\tzeroLineBorderDash: [],\n\t\tzeroLineBorderDashOffset: 0.0,\n\t\toffsetGridLines: false,\n\t\tborderDash: [],\n\t\tborderDashOffset: 0.0\n\t},\n\n\t// scale label\n\tscaleLabel: {\n\t\t// display property\n\t\tdisplay: false,\n\n\t\t// actual label\n\t\tlabelString: '',\n\n\t\t// line height\n\t\tlineHeight: 1.2,\n\n\t\t// top/bottom padding\n\t\tpadding: {\n\t\t\ttop: 4,\n\t\t\tbottom: 4\n\t\t}\n\t},\n\n\t// label settings\n\tticks: {\n\t\tbeginAtZero: false,\n\t\tminRotation: 0,\n\t\tmaxRotation: 50,\n\t\tmirror: false,\n\t\tpadding: 0,\n\t\treverse: false,\n\t\tdisplay: true,\n\t\tautoSkip: true,\n\t\tautoSkipPadding: 0,\n\t\tlabelOffset: 0,\n\t\t// We pass through arrays to be rendered as multiline labels, we convert Others to strings here.\n\t\tcallback: Ticks.formatters.values,\n\t\tminor: {},\n\t\tmajor: {}\n\t}\n});\n\nfunction labelsFromTicks(ticks) {\n\tvar labels = [];\n\tvar i, ilen;\n\n\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\n\t\tlabels.push(ticks[i].label);\n\t}\n\n\treturn labels;\n}\n\nfunction getLineValue(scale, index, offsetGridLines) {\n\tvar lineValue = scale.getPixelForTick(index);\n\n\tif (offsetGridLines) {\n\t\tif (index === 0) {\n\t\t\tlineValue -= (scale.getPixelForTick(1) - lineValue) / 2;\n\t\t} else {\n\t\t\tlineValue -= (lineValue - scale.getPixelForTick(index - 1)) / 2;\n\t\t}\n\t}\n\treturn lineValue;\n}\n\nfunction computeTextSize(context, tick, font) {\n\treturn helpers.isArray(tick) ?\n\t\thelpers.longestText(context, font, tick) :\n\t\tcontext.measureText(tick).width;\n}\n\nfunction parseFontOptions(options) {\n\tvar valueOrDefault = helpers.valueOrDefault;\n\tvar globalDefaults = defaults.global;\n\tvar size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);\n\tvar style = valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle);\n\tvar family = valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily);\n\n\treturn {\n\t\tsize: size,\n\t\tstyle: style,\n\t\tfamily: family,\n\t\tfont: helpers.fontString(size, style, family)\n\t};\n}\n\nfunction parseLineHeight(options) {\n\treturn helpers.options.toLineHeight(\n\t\thelpers.valueOrDefault(options.lineHeight, 1.2),\n\t\thelpers.valueOrDefault(options.fontSize, defaults.global.defaultFontSize));\n}\n\nmodule.exports = Element.extend({\n\t/**\n\t * Get the padding needed for the scale\n\t * @method getPadding\n\t * @private\n\t * @returns {Padding} the necessary padding\n\t */\n\tgetPadding: function() {\n\t\tvar me = this;\n\t\treturn {\n\t\t\tleft: me.paddingLeft || 0,\n\t\t\ttop: me.paddingTop || 0,\n\t\t\tright: me.paddingRight || 0,\n\t\t\tbottom: me.paddingBottom || 0\n\t\t};\n\t},\n\n\t/**\n\t * Returns the scale tick objects ({label, major})\n\t * @since 2.7\n\t */\n\tgetTicks: function() {\n\t\treturn this._ticks;\n\t},\n\n\t// These methods are ordered by lifecyle. Utilities then follow.\n\t// Any function defined here is inherited by all scale types.\n\t// Any function can be extended by the scale type\n\n\tmergeTicksOptions: function() {\n\t\tvar ticks = this.options.ticks;\n\t\tif (ticks.minor === false) {\n\t\t\tticks.minor = {\n\t\t\t\tdisplay: false\n\t\t\t};\n\t\t}\n\t\tif (ticks.major === false) {\n\t\t\tticks.major = {\n\t\t\t\tdisplay: false\n\t\t\t};\n\t\t}\n\t\tfor (var key in ticks) {\n\t\t\tif (key !== 'major' && key !== 'minor') {\n\t\t\t\tif (typeof ticks.minor[key] === 'undefined') {\n\t\t\t\t\tticks.minor[key] = ticks[key];\n\t\t\t\t}\n\t\t\t\tif (typeof ticks.major[key] === 'undefined') {\n\t\t\t\t\tticks.major[key] = ticks[key];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\tbeforeUpdate: function() {\n\t\thelpers.callback(this.options.beforeUpdate, [this]);\n\t},\n\n\tupdate: function(maxWidth, maxHeight, margins) {\n\t\tvar me = this;\n\t\tvar i, ilen, labels, label, ticks, tick;\n\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\n\t\tme.beforeUpdate();\n\n\t\t// Absorb the master measurements\n\t\tme.maxWidth = maxWidth;\n\t\tme.maxHeight = maxHeight;\n\t\tme.margins = helpers.extend({\n\t\t\tleft: 0,\n\t\t\tright: 0,\n\t\t\ttop: 0,\n\t\t\tbottom: 0\n\t\t}, margins);\n\t\tme.longestTextCache = me.longestTextCache || {};\n\n\t\t// Dimensions\n\t\tme.beforeSetDimensions();\n\t\tme.setDimensions();\n\t\tme.afterSetDimensions();\n\n\t\t// Data min/max\n\t\tme.beforeDataLimits();\n\t\tme.determineDataLimits();\n\t\tme.afterDataLimits();\n\n\t\t// Ticks - `this.ticks` is now DEPRECATED!\n\t\t// Internal ticks are now stored as objects in the PRIVATE `this._ticks` member\n\t\t// and must not be accessed directly from outside this class. `this.ticks` being\n\t\t// around for long time and not marked as private, we can't change its structure\n\t\t// without unexpected breaking changes. If you need to access the scale ticks,\n\t\t// use scale.getTicks() instead.\n\n\t\tme.beforeBuildTicks();\n\n\t\t// New implementations should return an array of objects but for BACKWARD COMPAT,\n\t\t// we still support no return (`this.ticks` internally set by calling this method).\n\t\tticks = me.buildTicks() || [];\n\n\t\tme.afterBuildTicks();\n\n\t\tme.beforeTickToLabelConversion();\n\n\t\t// New implementations should return the formatted tick labels but for BACKWARD\n\t\t// COMPAT, we still support no return (`this.ticks` internally changed by calling\n\t\t// this method and supposed to contain only string values).\n\t\tlabels = me.convertTicksToLabels(ticks) || me.ticks;\n\n\t\tme.afterTickToLabelConversion();\n\n\t\tme.ticks = labels;   // BACKWARD COMPATIBILITY\n\n\t\t// IMPORTANT: from this point, we consider that `this.ticks` will NEVER change!\n\n\t\t// BACKWARD COMPAT: synchronize `_ticks` with labels (so potentially `this.ticks`)\n\t\tfor (i = 0, ilen = labels.length; i < ilen; ++i) {\n\t\t\tlabel = labels[i];\n\t\t\ttick = ticks[i];\n\t\t\tif (!tick) {\n\t\t\t\tticks.push(tick = {\n\t\t\t\t\tlabel: label,\n\t\t\t\t\tmajor: false\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\ttick.label = label;\n\t\t\t}\n\t\t}\n\n\t\tme._ticks = ticks;\n\n\t\t// Tick Rotation\n\t\tme.beforeCalculateTickRotation();\n\t\tme.calculateTickRotation();\n\t\tme.afterCalculateTickRotation();\n\t\t// Fit\n\t\tme.beforeFit();\n\t\tme.fit();\n\t\tme.afterFit();\n\t\t//\n\t\tme.afterUpdate();\n\n\t\treturn me.minSize;\n\n\t},\n\tafterUpdate: function() {\n\t\thelpers.callback(this.options.afterUpdate, [this]);\n\t},\n\n\t//\n\n\tbeforeSetDimensions: function() {\n\t\thelpers.callback(this.options.beforeSetDimensions, [this]);\n\t},\n\tsetDimensions: function() {\n\t\tvar me = this;\n\t\t// Set the unconstrained dimension before label rotation\n\t\tif (me.isHorizontal()) {\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.width = me.maxWidth;\n\t\t\tme.left = 0;\n\t\t\tme.right = me.width;\n\t\t} else {\n\t\t\tme.height = me.maxHeight;\n\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.top = 0;\n\t\t\tme.bottom = me.height;\n\t\t}\n\n\t\t// Reset padding\n\t\tme.paddingLeft = 0;\n\t\tme.paddingTop = 0;\n\t\tme.paddingRight = 0;\n\t\tme.paddingBottom = 0;\n\t},\n\tafterSetDimensions: function() {\n\t\thelpers.callback(this.options.afterSetDimensions, [this]);\n\t},\n\n\t// Data limits\n\tbeforeDataLimits: function() {\n\t\thelpers.callback(this.options.beforeDataLimits, [this]);\n\t},\n\tdetermineDataLimits: helpers.noop,\n\tafterDataLimits: function() {\n\t\thelpers.callback(this.options.afterDataLimits, [this]);\n\t},\n\n\t//\n\tbeforeBuildTicks: function() {\n\t\thelpers.callback(this.options.beforeBuildTicks, [this]);\n\t},\n\tbuildTicks: helpers.noop,\n\tafterBuildTicks: function() {\n\t\thelpers.callback(this.options.afterBuildTicks, [this]);\n\t},\n\n\tbeforeTickToLabelConversion: function() {\n\t\thelpers.callback(this.options.beforeTickToLabelConversion, [this]);\n\t},\n\tconvertTicksToLabels: function() {\n\t\tvar me = this;\n\t\t// Convert ticks to strings\n\t\tvar tickOpts = me.options.ticks;\n\t\tme.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback, this);\n\t},\n\tafterTickToLabelConversion: function() {\n\t\thelpers.callback(this.options.afterTickToLabelConversion, [this]);\n\t},\n\n\t//\n\n\tbeforeCalculateTickRotation: function() {\n\t\thelpers.callback(this.options.beforeCalculateTickRotation, [this]);\n\t},\n\tcalculateTickRotation: function() {\n\t\tvar me = this;\n\t\tvar context = me.ctx;\n\t\tvar tickOpts = me.options.ticks;\n\t\tvar labels = labelsFromTicks(me._ticks);\n\n\t\t// Get the width of each grid by calculating the difference\n\t\t// between x offsets between 0 and 1.\n\t\tvar tickFont = parseFontOptions(tickOpts);\n\t\tcontext.font = tickFont.font;\n\n\t\tvar labelRotation = tickOpts.minRotation || 0;\n\n\t\tif (labels.length && me.options.display && me.isHorizontal()) {\n\t\t\tvar originalLabelWidth = helpers.longestText(context, tickFont.font, labels, me.longestTextCache);\n\t\t\tvar labelWidth = originalLabelWidth;\n\t\t\tvar cosRotation, sinRotation;\n\n\t\t\t// Allow 3 pixels x2 padding either side for label readability\n\t\t\tvar tickWidth = me.getPixelForTick(1) - me.getPixelForTick(0) - 6;\n\n\t\t\t// Max label rotation can be set or default to 90 - also act as a loop counter\n\t\t\twhile (labelWidth > tickWidth && labelRotation < tickOpts.maxRotation) {\n\t\t\t\tvar angleRadians = helpers.toRadians(labelRotation);\n\t\t\t\tcosRotation = Math.cos(angleRadians);\n\t\t\t\tsinRotation = Math.sin(angleRadians);\n\n\t\t\t\tif (sinRotation * originalLabelWidth > me.maxHeight) {\n\t\t\t\t\t// go back one step\n\t\t\t\t\tlabelRotation--;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tlabelRotation++;\n\t\t\t\tlabelWidth = cosRotation * originalLabelWidth;\n\t\t\t}\n\t\t}\n\n\t\tme.labelRotation = labelRotation;\n\t},\n\tafterCalculateTickRotation: function() {\n\t\thelpers.callback(this.options.afterCalculateTickRotation, [this]);\n\t},\n\n\t//\n\n\tbeforeFit: function() {\n\t\thelpers.callback(this.options.beforeFit, [this]);\n\t},\n\tfit: function() {\n\t\tvar me = this;\n\t\t// Reset\n\t\tvar minSize = me.minSize = {\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t};\n\n\t\tvar labels = labelsFromTicks(me._ticks);\n\n\t\tvar opts = me.options;\n\t\tvar tickOpts = opts.ticks;\n\t\tvar scaleLabelOpts = opts.scaleLabel;\n\t\tvar gridLineOpts = opts.gridLines;\n\t\tvar display = opts.display;\n\t\tvar isHorizontal = me.isHorizontal();\n\n\t\tvar tickFont = parseFontOptions(tickOpts);\n\t\tvar tickMarkLength = opts.gridLines.tickMarkLength;\n\n\t\t// Width\n\t\tif (isHorizontal) {\n\t\t\t// subtract the margins to line up with the chartArea if we are a full width scale\n\t\t\tminSize.width = me.isFullWidth() ? me.maxWidth - me.margins.left - me.margins.right : me.maxWidth;\n\t\t} else {\n\t\t\tminSize.width = display && gridLineOpts.drawTicks ? tickMarkLength : 0;\n\t\t}\n\n\t\t// height\n\t\tif (isHorizontal) {\n\t\t\tminSize.height = display && gridLineOpts.drawTicks ? tickMarkLength : 0;\n\t\t} else {\n\t\t\tminSize.height = me.maxHeight; // fill all the height\n\t\t}\n\n\t\t// Are we showing a title for the scale?\n\t\tif (scaleLabelOpts.display && display) {\n\t\t\tvar scaleLabelLineHeight = parseLineHeight(scaleLabelOpts);\n\t\t\tvar scaleLabelPadding = helpers.options.toPadding(scaleLabelOpts.padding);\n\t\t\tvar deltaHeight = scaleLabelLineHeight + scaleLabelPadding.height;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\tminSize.height += deltaHeight;\n\t\t\t} else {\n\t\t\t\tminSize.width += deltaHeight;\n\t\t\t}\n\t\t}\n\n\t\t// Don't bother fitting the ticks if we are not showing them\n\t\tif (tickOpts.display && display) {\n\t\t\tvar largestTextWidth = helpers.longestText(me.ctx, tickFont.font, labels, me.longestTextCache);\n\t\t\tvar tallestLabelHeightInLines = helpers.numberOfLabelLines(labels);\n\t\t\tvar lineSpace = tickFont.size * 0.5;\n\t\t\tvar tickPadding = me.options.ticks.padding;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\t// A horizontal axis is more constrained by the height.\n\t\t\t\tme.longestLabelWidth = largestTextWidth;\n\n\t\t\t\tvar angleRadians = helpers.toRadians(me.labelRotation);\n\t\t\t\tvar cosRotation = Math.cos(angleRadians);\n\t\t\t\tvar sinRotation = Math.sin(angleRadians);\n\n\t\t\t\t// TODO - improve this calculation\n\t\t\t\tvar labelHeight = (sinRotation * largestTextWidth)\n\t\t\t\t\t+ (tickFont.size * tallestLabelHeightInLines)\n\t\t\t\t\t+ (lineSpace * (tallestLabelHeightInLines - 1))\n\t\t\t\t\t+ lineSpace; // padding\n\n\t\t\t\tminSize.height = Math.min(me.maxHeight, minSize.height + labelHeight + tickPadding);\n\n\t\t\t\tme.ctx.font = tickFont.font;\n\t\t\t\tvar firstLabelWidth = computeTextSize(me.ctx, labels[0], tickFont.font);\n\t\t\t\tvar lastLabelWidth = computeTextSize(me.ctx, labels[labels.length - 1], tickFont.font);\n\n\t\t\t\t// Ensure that our ticks are always inside the canvas. When rotated, ticks are right aligned\n\t\t\t\t// which means that the right padding is dominated by the font height\n\t\t\t\tif (me.labelRotation !== 0) {\n\t\t\t\t\tme.paddingLeft = opts.position === 'bottom' ? (cosRotation * firstLabelWidth) + 3 : (cosRotation * lineSpace) + 3; // add 3 px to move away from canvas edges\n\t\t\t\t\tme.paddingRight = opts.position === 'bottom' ? (cosRotation * lineSpace) + 3 : (cosRotation * lastLabelWidth) + 3;\n\t\t\t\t} else {\n\t\t\t\t\tme.paddingLeft = firstLabelWidth / 2 + 3; // add 3 px to move away from canvas edges\n\t\t\t\t\tme.paddingRight = lastLabelWidth / 2 + 3;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// A vertical axis is more constrained by the width. Labels are the\n\t\t\t\t// dominant factor here, so get that length first and account for padding\n\t\t\t\tif (tickOpts.mirror) {\n\t\t\t\t\tlargestTextWidth = 0;\n\t\t\t\t} else {\n\t\t\t\t\t// use lineSpace for consistency with horizontal axis\n\t\t\t\t\t// tickPadding is not implemented for horizontal\n\t\t\t\t\tlargestTextWidth += tickPadding + lineSpace;\n\t\t\t\t}\n\n\t\t\t\tminSize.width = Math.min(me.maxWidth, minSize.width + largestTextWidth);\n\n\t\t\t\tme.paddingTop = tickFont.size / 2;\n\t\t\t\tme.paddingBottom = tickFont.size / 2;\n\t\t\t}\n\t\t}\n\n\t\tme.handleMargins();\n\n\t\tme.width = minSize.width;\n\t\tme.height = minSize.height;\n\t},\n\n\t/**\n\t * Handle margins and padding interactions\n\t * @private\n\t */\n\thandleMargins: function() {\n\t\tvar me = this;\n\t\tif (me.margins) {\n\t\t\tme.paddingLeft = Math.max(me.paddingLeft - me.margins.left, 0);\n\t\t\tme.paddingTop = Math.max(me.paddingTop - me.margins.top, 0);\n\t\t\tme.paddingRight = Math.max(me.paddingRight - me.margins.right, 0);\n\t\t\tme.paddingBottom = Math.max(me.paddingBottom - me.margins.bottom, 0);\n\t\t}\n\t},\n\n\tafterFit: function() {\n\t\thelpers.callback(this.options.afterFit, [this]);\n\t},\n\n\t// Shared Methods\n\tisHorizontal: function() {\n\t\treturn this.options.position === 'top' || this.options.position === 'bottom';\n\t},\n\tisFullWidth: function() {\n\t\treturn (this.options.fullWidth);\n\t},\n\n\t// Get the correct value. NaN bad inputs, If the value type is object get the x or y based on whether we are horizontal or not\n\tgetRightValue: function(rawValue) {\n\t\t// Null and undefined values first\n\t\tif (helpers.isNullOrUndef(rawValue)) {\n\t\t\treturn NaN;\n\t\t}\n\t\t// isNaN(object) returns true, so make sure NaN is checking for a number; Discard Infinite values\n\t\tif (typeof rawValue === 'number' && !isFinite(rawValue)) {\n\t\t\treturn NaN;\n\t\t}\n\t\t// If it is in fact an object, dive in one more level\n\t\tif (rawValue) {\n\t\t\tif (this.isHorizontal()) {\n\t\t\t\tif (rawValue.x !== undefined) {\n\t\t\t\t\treturn this.getRightValue(rawValue.x);\n\t\t\t\t}\n\t\t\t} else if (rawValue.y !== undefined) {\n\t\t\t\treturn this.getRightValue(rawValue.y);\n\t\t\t}\n\t\t}\n\n\t\t// Value is good, return it\n\t\treturn rawValue;\n\t},\n\n\t/**\n\t * Used to get the value to display in the tooltip for the data at the given index\n\t * @param index\n\t * @param datasetIndex\n\t */\n\tgetLabelForIndex: helpers.noop,\n\n\t/**\n\t * Returns the location of the given data point. Value can either be an index or a numerical value\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t * @param value\n\t * @param index\n\t * @param datasetIndex\n\t */\n\tgetPixelForValue: helpers.noop,\n\n\t/**\n\t * Used to get the data value from a given pixel. This is the inverse of getPixelForValue\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t * @param pixel\n\t */\n\tgetValueForPixel: helpers.noop,\n\n\t/**\n\t * Returns the location of the tick at the given index\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t */\n\tgetPixelForTick: function(index) {\n\t\tvar me = this;\n\t\tvar offset = me.options.offset;\n\t\tif (me.isHorizontal()) {\n\t\t\tvar innerWidth = me.width - (me.paddingLeft + me.paddingRight);\n\t\t\tvar tickWidth = innerWidth / Math.max((me._ticks.length - (offset ? 0 : 1)), 1);\n\t\t\tvar pixel = (tickWidth * index) + me.paddingLeft;\n\n\t\t\tif (offset) {\n\t\t\t\tpixel += tickWidth / 2;\n\t\t\t}\n\n\t\t\tvar finalVal = me.left + Math.round(pixel);\n\t\t\tfinalVal += me.isFullWidth() ? me.margins.left : 0;\n\t\t\treturn finalVal;\n\t\t}\n\t\tvar innerHeight = me.height - (me.paddingTop + me.paddingBottom);\n\t\treturn me.top + (index * (innerHeight / (me._ticks.length - 1)));\n\t},\n\n\t/**\n\t * Utility for getting the pixel location of a percentage of scale\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t */\n\tgetPixelForDecimal: function(decimal) {\n\t\tvar me = this;\n\t\tif (me.isHorizontal()) {\n\t\t\tvar innerWidth = me.width - (me.paddingLeft + me.paddingRight);\n\t\t\tvar valueOffset = (innerWidth * decimal) + me.paddingLeft;\n\n\t\t\tvar finalVal = me.left + Math.round(valueOffset);\n\t\t\tfinalVal += me.isFullWidth() ? me.margins.left : 0;\n\t\t\treturn finalVal;\n\t\t}\n\t\treturn me.top + (decimal * me.height);\n\t},\n\n\t/**\n\t * Returns the pixel for the minimum chart value\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t */\n\tgetBasePixel: function() {\n\t\treturn this.getPixelForValue(this.getBaseValue());\n\t},\n\n\tgetBaseValue: function() {\n\t\tvar me = this;\n\t\tvar min = me.min;\n\t\tvar max = me.max;\n\n\t\treturn me.beginAtZero ? 0 :\n\t\t\tmin < 0 && max < 0 ? max :\n\t\t\tmin > 0 && max > 0 ? min :\n\t\t\t0;\n\t},\n\n\t/**\n\t * Returns a subset of ticks to be plotted to avoid overlapping labels.\n\t * @private\n\t */\n\t_autoSkip: function(ticks) {\n\t\tvar skipRatio;\n\t\tvar me = this;\n\t\tvar isHorizontal = me.isHorizontal();\n\t\tvar optionTicks = me.options.ticks.minor;\n\t\tvar tickCount = ticks.length;\n\t\tvar labelRotationRadians = helpers.toRadians(me.labelRotation);\n\t\tvar cosRotation = Math.cos(labelRotationRadians);\n\t\tvar longestRotatedLabel = me.longestLabelWidth * cosRotation;\n\t\tvar result = [];\n\t\tvar i, tick, shouldSkip;\n\n\t\t// figure out the maximum number of gridlines to show\n\t\tvar maxTicks;\n\t\tif (optionTicks.maxTicksLimit) {\n\t\t\tmaxTicks = optionTicks.maxTicksLimit;\n\t\t}\n\n\t\tif (isHorizontal) {\n\t\t\tskipRatio = false;\n\n\t\t\tif ((longestRotatedLabel + optionTicks.autoSkipPadding) * tickCount > (me.width - (me.paddingLeft + me.paddingRight))) {\n\t\t\t\tskipRatio = 1 + Math.floor(((longestRotatedLabel + optionTicks.autoSkipPadding) * tickCount) / (me.width - (me.paddingLeft + me.paddingRight)));\n\t\t\t}\n\n\t\t\t// if they defined a max number of optionTicks,\n\t\t\t// increase skipRatio until that number is met\n\t\t\tif (maxTicks && tickCount > maxTicks) {\n\t\t\t\tskipRatio = Math.max(skipRatio, Math.floor(tickCount / maxTicks));\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0; i < tickCount; i++) {\n\t\t\ttick = ticks[i];\n\n\t\t\t// Since we always show the last tick,we need may need to hide the last shown one before\n\t\t\tshouldSkip = (skipRatio > 1 && i % skipRatio > 0) || (i % skipRatio === 0 && i + skipRatio >= tickCount);\n\t\t\tif (shouldSkip && i !== tickCount - 1) {\n\t\t\t\t// leave tick in place but make sure it's not displayed (#4635)\n\t\t\t\tdelete tick.label;\n\t\t\t}\n\t\t\tresult.push(tick);\n\t\t}\n\t\treturn result;\n\t},\n\n\t// Actually draw the scale on the canvas\n\t// @param {rectangle} chartArea : the area of the chart to draw full grid lines on\n\tdraw: function(chartArea) {\n\t\tvar me = this;\n\t\tvar options = me.options;\n\t\tif (!options.display) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar context = me.ctx;\n\t\tvar globalDefaults = defaults.global;\n\t\tvar optionTicks = options.ticks.minor;\n\t\tvar optionMajorTicks = options.ticks.major || optionTicks;\n\t\tvar gridLines = options.gridLines;\n\t\tvar scaleLabel = options.scaleLabel;\n\n\t\tvar isRotated = me.labelRotation !== 0;\n\t\tvar isHorizontal = me.isHorizontal();\n\n\t\tvar ticks = optionTicks.autoSkip ? me._autoSkip(me.getTicks()) : me.getTicks();\n\t\tvar tickFontColor = helpers.valueOrDefault(optionTicks.fontColor, globalDefaults.defaultFontColor);\n\t\tvar tickFont = parseFontOptions(optionTicks);\n\t\tvar majorTickFontColor = helpers.valueOrDefault(optionMajorTicks.fontColor, globalDefaults.defaultFontColor);\n\t\tvar majorTickFont = parseFontOptions(optionMajorTicks);\n\n\t\tvar tl = gridLines.drawTicks ? gridLines.tickMarkLength : 0;\n\n\t\tvar scaleLabelFontColor = helpers.valueOrDefault(scaleLabel.fontColor, globalDefaults.defaultFontColor);\n\t\tvar scaleLabelFont = parseFontOptions(scaleLabel);\n\t\tvar scaleLabelPadding = helpers.options.toPadding(scaleLabel.padding);\n\t\tvar labelRotationRadians = helpers.toRadians(me.labelRotation);\n\n\t\tvar itemsToDraw = [];\n\n\t\tvar axisWidth = me.options.gridLines.lineWidth;\n\t\tvar xTickStart = options.position === 'right' ? me.left : me.right - axisWidth - tl;\n\t\tvar xTickEnd = options.position === 'right' ? me.left + tl : me.right;\n\t\tvar yTickStart = options.position === 'bottom' ? me.top + axisWidth : me.bottom - tl - axisWidth;\n\t\tvar yTickEnd = options.position === 'bottom' ? me.top + axisWidth + tl : me.bottom + axisWidth;\n\n\t\thelpers.each(ticks, function(tick, index) {\n\t\t\t// autoskipper skipped this tick (#4635)\n\t\t\tif (helpers.isNullOrUndef(tick.label)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar label = tick.label;\n\t\t\tvar lineWidth, lineColor, borderDash, borderDashOffset;\n\t\t\tif (index === me.zeroLineIndex && options.offset === gridLines.offsetGridLines) {\n\t\t\t\t// Draw the first index specially\n\t\t\t\tlineWidth = gridLines.zeroLineWidth;\n\t\t\t\tlineColor = gridLines.zeroLineColor;\n\t\t\t\tborderDash = gridLines.zeroLineBorderDash;\n\t\t\t\tborderDashOffset = gridLines.zeroLineBorderDashOffset;\n\t\t\t} else {\n\t\t\t\tlineWidth = helpers.valueAtIndexOrDefault(gridLines.lineWidth, index);\n\t\t\t\tlineColor = helpers.valueAtIndexOrDefault(gridLines.color, index);\n\t\t\t\tborderDash = helpers.valueOrDefault(gridLines.borderDash, globalDefaults.borderDash);\n\t\t\t\tborderDashOffset = helpers.valueOrDefault(gridLines.borderDashOffset, globalDefaults.borderDashOffset);\n\t\t\t}\n\n\t\t\t// Common properties\n\t\t\tvar tx1, ty1, tx2, ty2, x1, y1, x2, y2, labelX, labelY;\n\t\t\tvar textAlign = 'middle';\n\t\t\tvar textBaseline = 'middle';\n\t\t\tvar tickPadding = optionTicks.padding;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\tvar labelYOffset = tl + tickPadding;\n\n\t\t\t\tif (options.position === 'bottom') {\n\t\t\t\t\t// bottom\n\t\t\t\t\ttextBaseline = !isRotated ? 'top' : 'middle';\n\t\t\t\t\ttextAlign = !isRotated ? 'center' : 'right';\n\t\t\t\t\tlabelY = me.top + labelYOffset;\n\t\t\t\t} else {\n\t\t\t\t\t// top\n\t\t\t\t\ttextBaseline = !isRotated ? 'bottom' : 'middle';\n\t\t\t\t\ttextAlign = !isRotated ? 'center' : 'left';\n\t\t\t\t\tlabelY = me.bottom - labelYOffset;\n\t\t\t\t}\n\n\t\t\t\tvar xLineValue = getLineValue(me, index, gridLines.offsetGridLines && ticks.length > 1);\n\t\t\t\tif (xLineValue < me.left) {\n\t\t\t\t\tlineColor = 'rgba(0,0,0,0)';\n\t\t\t\t}\n\t\t\t\txLineValue += helpers.aliasPixel(lineWidth);\n\n\t\t\t\tlabelX = me.getPixelForTick(index) + optionTicks.labelOffset; // x values for optionTicks (need to consider offsetLabel option)\n\n\t\t\t\ttx1 = tx2 = x1 = x2 = xLineValue;\n\t\t\t\tty1 = yTickStart;\n\t\t\t\tty2 = yTickEnd;\n\t\t\t\ty1 = chartArea.top;\n\t\t\t\ty2 = chartArea.bottom + axisWidth;\n\t\t\t} else {\n\t\t\t\tvar isLeft = options.position === 'left';\n\t\t\t\tvar labelXOffset;\n\n\t\t\t\tif (optionTicks.mirror) {\n\t\t\t\t\ttextAlign = isLeft ? 'left' : 'right';\n\t\t\t\t\tlabelXOffset = tickPadding;\n\t\t\t\t} else {\n\t\t\t\t\ttextAlign = isLeft ? 'right' : 'left';\n\t\t\t\t\tlabelXOffset = tl + tickPadding;\n\t\t\t\t}\n\n\t\t\t\tlabelX = isLeft ? me.right - labelXOffset : me.left + labelXOffset;\n\n\t\t\t\tvar yLineValue = getLineValue(me, index, gridLines.offsetGridLines && ticks.length > 1);\n\t\t\t\tif (yLineValue < me.top) {\n\t\t\t\t\tlineColor = 'rgba(0,0,0,0)';\n\t\t\t\t}\n\t\t\t\tyLineValue += helpers.aliasPixel(lineWidth);\n\n\t\t\t\tlabelY = me.getPixelForTick(index) + optionTicks.labelOffset;\n\n\t\t\t\ttx1 = xTickStart;\n\t\t\t\ttx2 = xTickEnd;\n\t\t\t\tx1 = chartArea.left;\n\t\t\t\tx2 = chartArea.right + axisWidth;\n\t\t\t\tty1 = ty2 = y1 = y2 = yLineValue;\n\t\t\t}\n\n\t\t\titemsToDraw.push({\n\t\t\t\ttx1: tx1,\n\t\t\t\tty1: ty1,\n\t\t\t\ttx2: tx2,\n\t\t\t\tty2: ty2,\n\t\t\t\tx1: x1,\n\t\t\t\ty1: y1,\n\t\t\t\tx2: x2,\n\t\t\t\ty2: y2,\n\t\t\t\tlabelX: labelX,\n\t\t\t\tlabelY: labelY,\n\t\t\t\tglWidth: lineWidth,\n\t\t\t\tglColor: lineColor,\n\t\t\t\tglBorderDash: borderDash,\n\t\t\t\tglBorderDashOffset: borderDashOffset,\n\t\t\t\trotation: -1 * labelRotationRadians,\n\t\t\t\tlabel: label,\n\t\t\t\tmajor: tick.major,\n\t\t\t\ttextBaseline: textBaseline,\n\t\t\t\ttextAlign: textAlign\n\t\t\t});\n\t\t});\n\n\t\t// Draw all of the tick labels, tick marks, and grid lines at the correct places\n\t\thelpers.each(itemsToDraw, function(itemToDraw) {\n\t\t\tif (gridLines.display) {\n\t\t\t\tcontext.save();\n\t\t\t\tcontext.lineWidth = itemToDraw.glWidth;\n\t\t\t\tcontext.strokeStyle = itemToDraw.glColor;\n\t\t\t\tif (context.setLineDash) {\n\t\t\t\t\tcontext.setLineDash(itemToDraw.glBorderDash);\n\t\t\t\t\tcontext.lineDashOffset = itemToDraw.glBorderDashOffset;\n\t\t\t\t}\n\n\t\t\t\tcontext.beginPath();\n\n\t\t\t\tif (gridLines.drawTicks) {\n\t\t\t\t\tcontext.moveTo(itemToDraw.tx1, itemToDraw.ty1);\n\t\t\t\t\tcontext.lineTo(itemToDraw.tx2, itemToDraw.ty2);\n\t\t\t\t}\n\n\t\t\t\tif (gridLines.drawOnChartArea) {\n\t\t\t\t\tcontext.moveTo(itemToDraw.x1, itemToDraw.y1);\n\t\t\t\t\tcontext.lineTo(itemToDraw.x2, itemToDraw.y2);\n\t\t\t\t}\n\n\t\t\t\tcontext.stroke();\n\t\t\t\tcontext.restore();\n\t\t\t}\n\n\t\t\tif (optionTicks.display) {\n\t\t\t\t// Make sure we draw text in the correct color and font\n\t\t\t\tcontext.save();\n\t\t\t\tcontext.translate(itemToDraw.labelX, itemToDraw.labelY);\n\t\t\t\tcontext.rotate(itemToDraw.rotation);\n\t\t\t\tcontext.font = itemToDraw.major ? majorTickFont.font : tickFont.font;\n\t\t\t\tcontext.fillStyle = itemToDraw.major ? majorTickFontColor : tickFontColor;\n\t\t\t\tcontext.textBaseline = itemToDraw.textBaseline;\n\t\t\t\tcontext.textAlign = itemToDraw.textAlign;\n\n\t\t\t\tvar label = itemToDraw.label;\n\t\t\t\tif (helpers.isArray(label)) {\n\t\t\t\t\tvar lineCount = label.length;\n\t\t\t\t\tvar lineHeight = tickFont.size * 1.5;\n\t\t\t\t\tvar y = me.isHorizontal() ? 0 : -lineHeight * (lineCount - 1) / 2;\n\n\t\t\t\t\tfor (var i = 0; i < lineCount; ++i) {\n\t\t\t\t\t\t// We just make sure the multiline element is a string here..\n\t\t\t\t\t\tcontext.fillText('' + label[i], 0, y);\n\t\t\t\t\t\t// apply same lineSpacing as calculated @ L#320\n\t\t\t\t\t\ty += lineHeight;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcontext.fillText(label, 0, 0);\n\t\t\t\t}\n\t\t\t\tcontext.restore();\n\t\t\t}\n\t\t});\n\n\t\tif (scaleLabel.display) {\n\t\t\t// Draw the scale label\n\t\t\tvar scaleLabelX;\n\t\t\tvar scaleLabelY;\n\t\t\tvar rotation = 0;\n\t\t\tvar halfLineHeight = parseLineHeight(scaleLabel) / 2;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\tscaleLabelX = me.left + ((me.right - me.left) / 2); // midpoint of the width\n\t\t\t\tscaleLabelY = options.position === 'bottom'\n\t\t\t\t\t? me.bottom - halfLineHeight - scaleLabelPadding.bottom\n\t\t\t\t\t: me.top + halfLineHeight + scaleLabelPadding.top;\n\t\t\t} else {\n\t\t\t\tvar isLeft = options.position === 'left';\n\t\t\t\tscaleLabelX = isLeft\n\t\t\t\t\t? me.left + halfLineHeight + scaleLabelPadding.top\n\t\t\t\t\t: me.right - halfLineHeight - scaleLabelPadding.top;\n\t\t\t\tscaleLabelY = me.top + ((me.bottom - me.top) / 2);\n\t\t\t\trotation = isLeft ? -0.5 * Math.PI : 0.5 * Math.PI;\n\t\t\t}\n\n\t\t\tcontext.save();\n\t\t\tcontext.translate(scaleLabelX, scaleLabelY);\n\t\t\tcontext.rotate(rotation);\n\t\t\tcontext.textAlign = 'center';\n\t\t\tcontext.textBaseline = 'middle';\n\t\t\tcontext.fillStyle = scaleLabelFontColor; // render in correct colour\n\t\t\tcontext.font = scaleLabelFont.font;\n\t\t\tcontext.fillText(scaleLabel.labelString, 0, 0);\n\t\t\tcontext.restore();\n\t\t}\n\n\t\tif (gridLines.drawBorder) {\n\t\t\t// Draw the line at the edge of the axis\n\t\t\tcontext.lineWidth = helpers.valueAtIndexOrDefault(gridLines.lineWidth, 0);\n\t\t\tcontext.strokeStyle = helpers.valueAtIndexOrDefault(gridLines.color, 0);\n\t\t\tvar x1 = me.left;\n\t\t\tvar x2 = me.right + axisWidth;\n\t\t\tvar y1 = me.top;\n\t\t\tvar y2 = me.bottom + axisWidth;\n\n\t\t\tvar aliasPixel = helpers.aliasPixel(context.lineWidth);\n\t\t\tif (isHorizontal) {\n\t\t\t\ty1 = y2 = options.position === 'top' ? me.bottom : me.top;\n\t\t\t\ty1 += aliasPixel;\n\t\t\t\ty2 += aliasPixel;\n\t\t\t} else {\n\t\t\t\tx1 = x2 = options.position === 'left' ? me.right : me.left;\n\t\t\t\tx1 += aliasPixel;\n\t\t\t\tx2 += aliasPixel;\n\t\t\t}\n\n\t\t\tcontext.beginPath();\n\t\t\tcontext.moveTo(x1, y1);\n\t\t\tcontext.lineTo(x2, y2);\n\t\t\tcontext.stroke();\n\t\t}\n\t}\n});\n\n},{\"26\":26,\"27\":27,\"35\":35,\"46\":46}],34:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\nvar layouts = require(31);\n\nmodule.exports = {\n\t// Scale registration object. Extensions can register new scale types (such as log or DB scales) and then\n\t// use the new chart options to grab the correct scale\n\tconstructors: {},\n\t// Use a registration function so that we can move to an ES6 map when we no longer need to support\n\t// old browsers\n\n\t// Scale config defaults\n\tdefaults: {},\n\tregisterScaleType: function(type, scaleConstructor, scaleDefaults) {\n\t\tthis.constructors[type] = scaleConstructor;\n\t\tthis.defaults[type] = helpers.clone(scaleDefaults);\n\t},\n\tgetScaleConstructor: function(type) {\n\t\treturn this.constructors.hasOwnProperty(type) ? this.constructors[type] : undefined;\n\t},\n\tgetScaleDefaults: function(type) {\n\t\t// Return the scale defaults merged with the global settings so that we always use the latest ones\n\t\treturn this.defaults.hasOwnProperty(type) ? helpers.merge({}, [defaults.scale, this.defaults[type]]) : {};\n\t},\n\tupdateScaleDefaults: function(type, additions) {\n\t\tvar me = this;\n\t\tif (me.defaults.hasOwnProperty(type)) {\n\t\t\tme.defaults[type] = helpers.extend(me.defaults[type], additions);\n\t\t}\n\t},\n\taddScalesToLayout: function(chart) {\n\t\t// Adds each scale to the chart.boxes array to be sized accordingly\n\t\thelpers.each(chart.scales, function(scale) {\n\t\t\t// Set ILayoutItem parameters for backwards compatibility\n\t\t\tscale.fullWidth = scale.options.fullWidth;\n\t\t\tscale.position = scale.options.position;\n\t\t\tscale.weight = scale.options.weight;\n\t\t\tlayouts.addBox(chart, scale);\n\t\t});\n\t}\n};\n\n},{\"26\":26,\"31\":31,\"46\":46}],35:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\n/**\n * Namespace to hold static tick generation functions\n * @namespace Chart.Ticks\n */\nmodule.exports = {\n\t/**\n\t * Namespace to hold formatters for different types of ticks\n\t * @namespace Chart.Ticks.formatters\n\t */\n\tformatters: {\n\t\t/**\n\t\t * Formatter for value labels\n\t\t * @method Chart.Ticks.formatters.values\n\t\t * @param value the value to display\n\t\t * @return {String|Array} the label to display\n\t\t */\n\t\tvalues: function(value) {\n\t\t\treturn helpers.isArray(value) ? value : '' + value;\n\t\t},\n\n\t\t/**\n\t\t * Formatter for linear numeric ticks\n\t\t * @method Chart.Ticks.formatters.linear\n\t\t * @param tickValue {Number} the value to be formatted\n\t\t * @param index {Number} the position of the tickValue parameter in the ticks array\n\t\t * @param ticks {Array<Number>} the list of ticks being converted\n\t\t * @return {String} string representation of the tickValue parameter\n\t\t */\n\t\tlinear: function(tickValue, index, ticks) {\n\t\t\t// If we have lots of ticks, don't use the ones\n\t\t\tvar delta = ticks.length > 3 ? ticks[2] - ticks[1] : ticks[1] - ticks[0];\n\n\t\t\t// If we have a number like 2.5 as the delta, figure out how many decimal places we need\n\t\t\tif (Math.abs(delta) > 1) {\n\t\t\t\tif (tickValue !== Math.floor(tickValue)) {\n\t\t\t\t\t// not an integer\n\t\t\t\t\tdelta = tickValue - Math.floor(tickValue);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar logDelta = helpers.log10(Math.abs(delta));\n\t\t\tvar tickString = '';\n\n\t\t\tif (tickValue !== 0) {\n\t\t\t\tvar maxTick = Math.max(Math.abs(ticks[0]), Math.abs(ticks[ticks.length - 1]));\n\t\t\t\tif (maxTick < 1e-4) { // all ticks are small numbers; use scientific notation\n\t\t\t\t\tvar logTick = helpers.log10(Math.abs(tickValue));\n\t\t\t\t\ttickString = tickValue.toExponential(Math.floor(logTick) - Math.floor(logDelta));\n\t\t\t\t} else {\n\t\t\t\t\tvar numDecimal = -1 * Math.floor(logDelta);\n\t\t\t\t\tnumDecimal = Math.max(Math.min(numDecimal, 20), 0); // toFixed has a max of 20 decimal places\n\t\t\t\t\ttickString = tickValue.toFixed(numDecimal);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttickString = '0'; // never show decimal places for 0\n\t\t\t}\n\n\t\t\treturn tickString;\n\t\t},\n\n\t\tlogarithmic: function(tickValue, index, ticks) {\n\t\t\tvar remain = tickValue / (Math.pow(10, Math.floor(helpers.log10(tickValue))));\n\n\t\t\tif (tickValue === 0) {\n\t\t\t\treturn '0';\n\t\t\t} else if (remain === 1 || remain === 2 || remain === 5 || index === 0 || index === ticks.length - 1) {\n\t\t\t\treturn tickValue.toExponential();\n\t\t\t}\n\t\t\treturn '';\n\t\t}\n\t}\n};\n\n},{\"46\":46}],36:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\ttooltips: {\n\t\tenabled: true,\n\t\tcustom: null,\n\t\tmode: 'nearest',\n\t\tposition: 'average',\n\t\tintersect: true,\n\t\tbackgroundColor: 'rgba(0,0,0,0.8)',\n\t\ttitleFontStyle: 'bold',\n\t\ttitleSpacing: 2,\n\t\ttitleMarginBottom: 6,\n\t\ttitleFontColor: '#fff',\n\t\ttitleAlign: 'left',\n\t\tbodySpacing: 2,\n\t\tbodyFontColor: '#fff',\n\t\tbodyAlign: 'left',\n\t\tfooterFontStyle: 'bold',\n\t\tfooterSpacing: 2,\n\t\tfooterMarginTop: 6,\n\t\tfooterFontColor: '#fff',\n\t\tfooterAlign: 'left',\n\t\tyPadding: 6,\n\t\txPadding: 6,\n\t\tcaretPadding: 2,\n\t\tcaretSize: 5,\n\t\tcornerRadius: 6,\n\t\tmultiKeyBackground: '#fff',\n\t\tdisplayColors: true,\n\t\tborderColor: 'rgba(0,0,0,0)',\n\t\tborderWidth: 0,\n\t\tcallbacks: {\n\t\t\t// Args are: (tooltipItems, data)\n\t\t\tbeforeTitle: helpers.noop,\n\t\t\ttitle: function(tooltipItems, data) {\n\t\t\t\t// Pick first xLabel for now\n\t\t\t\tvar title = '';\n\t\t\t\tvar labels = data.labels;\n\t\t\t\tvar labelCount = labels ? labels.length : 0;\n\n\t\t\t\tif (tooltipItems.length > 0) {\n\t\t\t\t\tvar item = tooltipItems[0];\n\n\t\t\t\t\tif (item.xLabel) {\n\t\t\t\t\t\ttitle = item.xLabel;\n\t\t\t\t\t} else if (labelCount > 0 && item.index < labelCount) {\n\t\t\t\t\t\ttitle = labels[item.index];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn title;\n\t\t\t},\n\t\t\tafterTitle: helpers.noop,\n\n\t\t\t// Args are: (tooltipItems, data)\n\t\t\tbeforeBody: helpers.noop,\n\n\t\t\t// Args are: (tooltipItem, data)\n\t\t\tbeforeLabel: helpers.noop,\n\t\t\tlabel: function(tooltipItem, data) {\n\t\t\t\tvar label = data.datasets[tooltipItem.datasetIndex].label || '';\n\n\t\t\t\tif (label) {\n\t\t\t\t\tlabel += ': ';\n\t\t\t\t}\n\t\t\t\tlabel += tooltipItem.yLabel;\n\t\t\t\treturn label;\n\t\t\t},\n\t\t\tlabelColor: function(tooltipItem, chart) {\n\t\t\t\tvar meta = chart.getDatasetMeta(tooltipItem.datasetIndex);\n\t\t\t\tvar activeElement = meta.data[tooltipItem.index];\n\t\t\t\tvar view = activeElement._view;\n\t\t\t\treturn {\n\t\t\t\t\tborderColor: view.borderColor,\n\t\t\t\t\tbackgroundColor: view.backgroundColor\n\t\t\t\t};\n\t\t\t},\n\t\t\tlabelTextColor: function() {\n\t\t\t\treturn this._options.bodyFontColor;\n\t\t\t},\n\t\t\tafterLabel: helpers.noop,\n\n\t\t\t// Args are: (tooltipItems, data)\n\t\t\tafterBody: helpers.noop,\n\n\t\t\t// Args are: (tooltipItems, data)\n\t\t\tbeforeFooter: helpers.noop,\n\t\t\tfooter: helpers.noop,\n\t\t\tafterFooter: helpers.noop\n\t\t}\n\t}\n});\n\nvar positioners = {\n\t/**\n\t * Average mode places the tooltip at the average position of the elements shown\n\t * @function Chart.Tooltip.positioners.average\n\t * @param elements {ChartElement[]} the elements being displayed in the tooltip\n\t * @returns {Point} tooltip position\n\t */\n\taverage: function(elements) {\n\t\tif (!elements.length) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar i, len;\n\t\tvar x = 0;\n\t\tvar y = 0;\n\t\tvar count = 0;\n\n\t\tfor (i = 0, len = elements.length; i < len; ++i) {\n\t\t\tvar el = elements[i];\n\t\t\tif (el && el.hasValue()) {\n\t\t\t\tvar pos = el.tooltipPosition();\n\t\t\t\tx += pos.x;\n\t\t\t\ty += pos.y;\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\tx: Math.round(x / count),\n\t\t\ty: Math.round(y / count)\n\t\t};\n\t},\n\n\t/**\n\t * Gets the tooltip position nearest of the item nearest to the event position\n\t * @function Chart.Tooltip.positioners.nearest\n\t * @param elements {Chart.Element[]} the tooltip elements\n\t * @param eventPosition {Point} the position of the event in canvas coordinates\n\t * @returns {Point} the tooltip position\n\t */\n\tnearest: function(elements, eventPosition) {\n\t\tvar x = eventPosition.x;\n\t\tvar y = eventPosition.y;\n\t\tvar minDistance = Number.POSITIVE_INFINITY;\n\t\tvar i, len, nearestElement;\n\n\t\tfor (i = 0, len = elements.length; i < len; ++i) {\n\t\t\tvar el = elements[i];\n\t\t\tif (el && el.hasValue()) {\n\t\t\t\tvar center = el.getCenterPoint();\n\t\t\t\tvar d = helpers.distanceBetweenPoints(eventPosition, center);\n\n\t\t\t\tif (d < minDistance) {\n\t\t\t\t\tminDistance = d;\n\t\t\t\t\tnearestElement = el;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (nearestElement) {\n\t\t\tvar tp = nearestElement.tooltipPosition();\n\t\t\tx = tp.x;\n\t\t\ty = tp.y;\n\t\t}\n\n\t\treturn {\n\t\t\tx: x,\n\t\t\ty: y\n\t\t};\n\t}\n};\n\n/**\n * Helper method to merge the opacity into a color\n */\nfunction mergeOpacity(colorString, opacity) {\n\tvar color = helpers.color(colorString);\n\treturn color.alpha(opacity * color.alpha()).rgbaString();\n}\n\n// Helper to push or concat based on if the 2nd parameter is an array or not\nfunction pushOrConcat(base, toPush) {\n\tif (toPush) {\n\t\tif (helpers.isArray(toPush)) {\n\t\t\t// base = base.concat(toPush);\n\t\t\tArray.prototype.push.apply(base, toPush);\n\t\t} else {\n\t\t\tbase.push(toPush);\n\t\t}\n\t}\n\n\treturn base;\n}\n\n/**\n * Returns array of strings split by newline\n * @param {String} value - The value to split by newline.\n * @returns {Array} value if newline present - Returned from String split() method\n * @function\n */\nfunction splitNewlines(str) {\n\tif ((typeof str === 'string' || str instanceof String) && str.indexOf('\\n') > -1) {\n\t\treturn str.split('\\n');\n\t}\n\treturn str;\n}\n\n\n// Private helper to create a tooltip item model\n// @param element : the chart element (point, arc, bar) to create the tooltip item for\n// @return : new tooltip item\nfunction createTooltipItem(element) {\n\tvar xScale = element._xScale;\n\tvar yScale = element._yScale || element._scale; // handle radar || polarArea charts\n\tvar index = element._index;\n\tvar datasetIndex = element._datasetIndex;\n\n\treturn {\n\t\txLabel: xScale ? xScale.getLabelForIndex(index, datasetIndex) : '',\n\t\tyLabel: yScale ? yScale.getLabelForIndex(index, datasetIndex) : '',\n\t\tindex: index,\n\t\tdatasetIndex: datasetIndex,\n\t\tx: element._model.x,\n\t\ty: element._model.y\n\t};\n}\n\n/**\n * Helper to get the reset model for the tooltip\n * @param tooltipOpts {Object} the tooltip options\n */\nfunction getBaseModel(tooltipOpts) {\n\tvar globalDefaults = defaults.global;\n\tvar valueOrDefault = helpers.valueOrDefault;\n\n\treturn {\n\t\t// Positioning\n\t\txPadding: tooltipOpts.xPadding,\n\t\tyPadding: tooltipOpts.yPadding,\n\t\txAlign: tooltipOpts.xAlign,\n\t\tyAlign: tooltipOpts.yAlign,\n\n\t\t// Body\n\t\tbodyFontColor: tooltipOpts.bodyFontColor,\n\t\t_bodyFontFamily: valueOrDefault(tooltipOpts.bodyFontFamily, globalDefaults.defaultFontFamily),\n\t\t_bodyFontStyle: valueOrDefault(tooltipOpts.bodyFontStyle, globalDefaults.defaultFontStyle),\n\t\t_bodyAlign: tooltipOpts.bodyAlign,\n\t\tbodyFontSize: valueOrDefault(tooltipOpts.bodyFontSize, globalDefaults.defaultFontSize),\n\t\tbodySpacing: tooltipOpts.bodySpacing,\n\n\t\t// Title\n\t\ttitleFontColor: tooltipOpts.titleFontColor,\n\t\t_titleFontFamily: valueOrDefault(tooltipOpts.titleFontFamily, globalDefaults.defaultFontFamily),\n\t\t_titleFontStyle: valueOrDefault(tooltipOpts.titleFontStyle, globalDefaults.defaultFontStyle),\n\t\ttitleFontSize: valueOrDefault(tooltipOpts.titleFontSize, globalDefaults.defaultFontSize),\n\t\t_titleAlign: tooltipOpts.titleAlign,\n\t\ttitleSpacing: tooltipOpts.titleSpacing,\n\t\ttitleMarginBottom: tooltipOpts.titleMarginBottom,\n\n\t\t// Footer\n\t\tfooterFontColor: tooltipOpts.footerFontColor,\n\t\t_footerFontFamily: valueOrDefault(tooltipOpts.footerFontFamily, globalDefaults.defaultFontFamily),\n\t\t_footerFontStyle: valueOrDefault(tooltipOpts.footerFontStyle, globalDefaults.defaultFontStyle),\n\t\tfooterFontSize: valueOrDefault(tooltipOpts.footerFontSize, globalDefaults.defaultFontSize),\n\t\t_footerAlign: tooltipOpts.footerAlign,\n\t\tfooterSpacing: tooltipOpts.footerSpacing,\n\t\tfooterMarginTop: tooltipOpts.footerMarginTop,\n\n\t\t// Appearance\n\t\tcaretSize: tooltipOpts.caretSize,\n\t\tcornerRadius: tooltipOpts.cornerRadius,\n\t\tbackgroundColor: tooltipOpts.backgroundColor,\n\t\topacity: 0,\n\t\tlegendColorBackground: tooltipOpts.multiKeyBackground,\n\t\tdisplayColors: tooltipOpts.displayColors,\n\t\tborderColor: tooltipOpts.borderColor,\n\t\tborderWidth: tooltipOpts.borderWidth\n\t};\n}\n\n/**\n * Get the size of the tooltip\n */\nfunction getTooltipSize(tooltip, model) {\n\tvar ctx = tooltip._chart.ctx;\n\n\tvar height = model.yPadding * 2; // Tooltip Padding\n\tvar width = 0;\n\n\t// Count of all lines in the body\n\tvar body = model.body;\n\tvar combinedBodyLength = body.reduce(function(count, bodyItem) {\n\t\treturn count + bodyItem.before.length + bodyItem.lines.length + bodyItem.after.length;\n\t}, 0);\n\tcombinedBodyLength += model.beforeBody.length + model.afterBody.length;\n\n\tvar titleLineCount = model.title.length;\n\tvar footerLineCount = model.footer.length;\n\tvar titleFontSize = model.titleFontSize;\n\tvar bodyFontSize = model.bodyFontSize;\n\tvar footerFontSize = model.footerFontSize;\n\n\theight += titleLineCount * titleFontSize; // Title Lines\n\theight += titleLineCount ? (titleLineCount - 1) * model.titleSpacing : 0; // Title Line Spacing\n\theight += titleLineCount ? model.titleMarginBottom : 0; // Title's bottom Margin\n\theight += combinedBodyLength * bodyFontSize; // Body Lines\n\theight += combinedBodyLength ? (combinedBodyLength - 1) * model.bodySpacing : 0; // Body Line Spacing\n\theight += footerLineCount ? model.footerMarginTop : 0; // Footer Margin\n\theight += footerLineCount * (footerFontSize); // Footer Lines\n\theight += footerLineCount ? (footerLineCount - 1) * model.footerSpacing : 0; // Footer Line Spacing\n\n\t// Title width\n\tvar widthPadding = 0;\n\tvar maxLineWidth = function(line) {\n\t\twidth = Math.max(width, ctx.measureText(line).width + widthPadding);\n\t};\n\n\tctx.font = helpers.fontString(titleFontSize, model._titleFontStyle, model._titleFontFamily);\n\thelpers.each(model.title, maxLineWidth);\n\n\t// Body width\n\tctx.font = helpers.fontString(bodyFontSize, model._bodyFontStyle, model._bodyFontFamily);\n\thelpers.each(model.beforeBody.concat(model.afterBody), maxLineWidth);\n\n\t// Body lines may include some extra width due to the color box\n\twidthPadding = model.displayColors ? (bodyFontSize + 2) : 0;\n\thelpers.each(body, function(bodyItem) {\n\t\thelpers.each(bodyItem.before, maxLineWidth);\n\t\thelpers.each(bodyItem.lines, maxLineWidth);\n\t\thelpers.each(bodyItem.after, maxLineWidth);\n\t});\n\n\t// Reset back to 0\n\twidthPadding = 0;\n\n\t// Footer width\n\tctx.font = helpers.fontString(footerFontSize, model._footerFontStyle, model._footerFontFamily);\n\thelpers.each(model.footer, maxLineWidth);\n\n\t// Add padding\n\twidth += 2 * model.xPadding;\n\n\treturn {\n\t\twidth: width,\n\t\theight: height\n\t};\n}\n\n/**\n * Helper to get the alignment of a tooltip given the size\n */\nfunction determineAlignment(tooltip, size) {\n\tvar model = tooltip._model;\n\tvar chart = tooltip._chart;\n\tvar chartArea = tooltip._chart.chartArea;\n\tvar xAlign = 'center';\n\tvar yAlign = 'center';\n\n\tif (model.y < size.height) {\n\t\tyAlign = 'top';\n\t} else if (model.y > (chart.height - size.height)) {\n\t\tyAlign = 'bottom';\n\t}\n\n\tvar lf, rf; // functions to determine left, right alignment\n\tvar olf, orf; // functions to determine if left/right alignment causes tooltip to go outside chart\n\tvar yf; // function to get the y alignment if the tooltip goes outside of the left or right edges\n\tvar midX = (chartArea.left + chartArea.right) / 2;\n\tvar midY = (chartArea.top + chartArea.bottom) / 2;\n\n\tif (yAlign === 'center') {\n\t\tlf = function(x) {\n\t\t\treturn x <= midX;\n\t\t};\n\t\trf = function(x) {\n\t\t\treturn x > midX;\n\t\t};\n\t} else {\n\t\tlf = function(x) {\n\t\t\treturn x <= (size.width / 2);\n\t\t};\n\t\trf = function(x) {\n\t\t\treturn x >= (chart.width - (size.width / 2));\n\t\t};\n\t}\n\n\tolf = function(x) {\n\t\treturn x + size.width + model.caretSize + model.caretPadding > chart.width;\n\t};\n\torf = function(x) {\n\t\treturn x - size.width - model.caretSize - model.caretPadding < 0;\n\t};\n\tyf = function(y) {\n\t\treturn y <= midY ? 'top' : 'bottom';\n\t};\n\n\tif (lf(model.x)) {\n\t\txAlign = 'left';\n\n\t\t// Is tooltip too wide and goes over the right side of the chart.?\n\t\tif (olf(model.x)) {\n\t\t\txAlign = 'center';\n\t\t\tyAlign = yf(model.y);\n\t\t}\n\t} else if (rf(model.x)) {\n\t\txAlign = 'right';\n\n\t\t// Is tooltip too wide and goes outside left edge of canvas?\n\t\tif (orf(model.x)) {\n\t\t\txAlign = 'center';\n\t\t\tyAlign = yf(model.y);\n\t\t}\n\t}\n\n\tvar opts = tooltip._options;\n\treturn {\n\t\txAlign: opts.xAlign ? opts.xAlign : xAlign,\n\t\tyAlign: opts.yAlign ? opts.yAlign : yAlign\n\t};\n}\n\n/**\n * Helper to get the location a tooltip needs to be placed at given the initial position (via the vm) and the size and alignment\n */\nfunction getBackgroundPoint(vm, size, alignment, chart) {\n\t// Background Position\n\tvar x = vm.x;\n\tvar y = vm.y;\n\n\tvar caretSize = vm.caretSize;\n\tvar caretPadding = vm.caretPadding;\n\tvar cornerRadius = vm.cornerRadius;\n\tvar xAlign = alignment.xAlign;\n\tvar yAlign = alignment.yAlign;\n\tvar paddingAndSize = caretSize + caretPadding;\n\tvar radiusAndPadding = cornerRadius + caretPadding;\n\n\tif (xAlign === 'right') {\n\t\tx -= size.width;\n\t} else if (xAlign === 'center') {\n\t\tx -= (size.width / 2);\n\t\tif (x + size.width > chart.width) {\n\t\t\tx = chart.width - size.width;\n\t\t}\n\t\tif (x < 0) {\n\t\t\tx = 0;\n\t\t}\n\t}\n\n\tif (yAlign === 'top') {\n\t\ty += paddingAndSize;\n\t} else if (yAlign === 'bottom') {\n\t\ty -= size.height + paddingAndSize;\n\t} else {\n\t\ty -= (size.height / 2);\n\t}\n\n\tif (yAlign === 'center') {\n\t\tif (xAlign === 'left') {\n\t\t\tx += paddingAndSize;\n\t\t} else if (xAlign === 'right') {\n\t\t\tx -= paddingAndSize;\n\t\t}\n\t} else if (xAlign === 'left') {\n\t\tx -= radiusAndPadding;\n\t} else if (xAlign === 'right') {\n\t\tx += radiusAndPadding;\n\t}\n\n\treturn {\n\t\tx: x,\n\t\ty: y\n\t};\n}\n\n/**\n * Helper to build before and after body lines\n */\nfunction getBeforeAfterBodyLines(callback) {\n\treturn pushOrConcat([], splitNewlines(callback));\n}\n\nvar exports = module.exports = Element.extend({\n\tinitialize: function() {\n\t\tthis._model = getBaseModel(this._options);\n\t\tthis._lastActive = [];\n\t},\n\n\t// Get the title\n\t// Args are: (tooltipItem, data)\n\tgetTitle: function() {\n\t\tvar me = this;\n\t\tvar opts = me._options;\n\t\tvar callbacks = opts.callbacks;\n\n\t\tvar beforeTitle = callbacks.beforeTitle.apply(me, arguments);\n\t\tvar title = callbacks.title.apply(me, arguments);\n\t\tvar afterTitle = callbacks.afterTitle.apply(me, arguments);\n\n\t\tvar lines = [];\n\t\tlines = pushOrConcat(lines, splitNewlines(beforeTitle));\n\t\tlines = pushOrConcat(lines, splitNewlines(title));\n\t\tlines = pushOrConcat(lines, splitNewlines(afterTitle));\n\n\t\treturn lines;\n\t},\n\n\t// Args are: (tooltipItem, data)\n\tgetBeforeBody: function() {\n\t\treturn getBeforeAfterBodyLines(this._options.callbacks.beforeBody.apply(this, arguments));\n\t},\n\n\t// Args are: (tooltipItem, data)\n\tgetBody: function(tooltipItems, data) {\n\t\tvar me = this;\n\t\tvar callbacks = me._options.callbacks;\n\t\tvar bodyItems = [];\n\n\t\thelpers.each(tooltipItems, function(tooltipItem) {\n\t\t\tvar bodyItem = {\n\t\t\t\tbefore: [],\n\t\t\t\tlines: [],\n\t\t\t\tafter: []\n\t\t\t};\n\t\t\tpushOrConcat(bodyItem.before, splitNewlines(callbacks.beforeLabel.call(me, tooltipItem, data)));\n\t\t\tpushOrConcat(bodyItem.lines, callbacks.label.call(me, tooltipItem, data));\n\t\t\tpushOrConcat(bodyItem.after, splitNewlines(callbacks.afterLabel.call(me, tooltipItem, data)));\n\n\t\t\tbodyItems.push(bodyItem);\n\t\t});\n\n\t\treturn bodyItems;\n\t},\n\n\t// Args are: (tooltipItem, data)\n\tgetAfterBody: function() {\n\t\treturn getBeforeAfterBodyLines(this._options.callbacks.afterBody.apply(this, arguments));\n\t},\n\n\t// Get the footer and beforeFooter and afterFooter lines\n\t// Args are: (tooltipItem, data)\n\tgetFooter: function() {\n\t\tvar me = this;\n\t\tvar callbacks = me._options.callbacks;\n\n\t\tvar beforeFooter = callbacks.beforeFooter.apply(me, arguments);\n\t\tvar footer = callbacks.footer.apply(me, arguments);\n\t\tvar afterFooter = callbacks.afterFooter.apply(me, arguments);\n\n\t\tvar lines = [];\n\t\tlines = pushOrConcat(lines, splitNewlines(beforeFooter));\n\t\tlines = pushOrConcat(lines, splitNewlines(footer));\n\t\tlines = pushOrConcat(lines, splitNewlines(afterFooter));\n\n\t\treturn lines;\n\t},\n\n\tupdate: function(changed) {\n\t\tvar me = this;\n\t\tvar opts = me._options;\n\n\t\t// Need to regenerate the model because its faster than using extend and it is necessary due to the optimization in Chart.Element.transition\n\t\t// that does _view = _model if ease === 1. This causes the 2nd tooltip update to set properties in both the view and model at the same time\n\t\t// which breaks any animations.\n\t\tvar existingModel = me._model;\n\t\tvar model = me._model = getBaseModel(opts);\n\t\tvar active = me._active;\n\n\t\tvar data = me._data;\n\n\t\t// In the case where active.length === 0 we need to keep these at existing values for good animations\n\t\tvar alignment = {\n\t\t\txAlign: existingModel.xAlign,\n\t\t\tyAlign: existingModel.yAlign\n\t\t};\n\t\tvar backgroundPoint = {\n\t\t\tx: existingModel.x,\n\t\t\ty: existingModel.y\n\t\t};\n\t\tvar tooltipSize = {\n\t\t\twidth: existingModel.width,\n\t\t\theight: existingModel.height\n\t\t};\n\t\tvar tooltipPosition = {\n\t\t\tx: existingModel.caretX,\n\t\t\ty: existingModel.caretY\n\t\t};\n\n\t\tvar i, len;\n\n\t\tif (active.length) {\n\t\t\tmodel.opacity = 1;\n\n\t\t\tvar labelColors = [];\n\t\t\tvar labelTextColors = [];\n\t\t\ttooltipPosition = positioners[opts.position].call(me, active, me._eventPosition);\n\n\t\t\tvar tooltipItems = [];\n\t\t\tfor (i = 0, len = active.length; i < len; ++i) {\n\t\t\t\ttooltipItems.push(createTooltipItem(active[i]));\n\t\t\t}\n\n\t\t\t// If the user provided a filter function, use it to modify the tooltip items\n\t\t\tif (opts.filter) {\n\t\t\t\ttooltipItems = tooltipItems.filter(function(a) {\n\t\t\t\t\treturn opts.filter(a, data);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// If the user provided a sorting function, use it to modify the tooltip items\n\t\t\tif (opts.itemSort) {\n\t\t\t\ttooltipItems = tooltipItems.sort(function(a, b) {\n\t\t\t\t\treturn opts.itemSort(a, b, data);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// Determine colors for boxes\n\t\t\thelpers.each(tooltipItems, function(tooltipItem) {\n\t\t\t\tlabelColors.push(opts.callbacks.labelColor.call(me, tooltipItem, me._chart));\n\t\t\t\tlabelTextColors.push(opts.callbacks.labelTextColor.call(me, tooltipItem, me._chart));\n\t\t\t});\n\n\n\t\t\t// Build the Text Lines\n\t\t\tmodel.title = me.getTitle(tooltipItems, data);\n\t\t\tmodel.beforeBody = me.getBeforeBody(tooltipItems, data);\n\t\t\tmodel.body = me.getBody(tooltipItems, data);\n\t\t\tmodel.afterBody = me.getAfterBody(tooltipItems, data);\n\t\t\tmodel.footer = me.getFooter(tooltipItems, data);\n\n\t\t\t// Initial positioning and colors\n\t\t\tmodel.x = Math.round(tooltipPosition.x);\n\t\t\tmodel.y = Math.round(tooltipPosition.y);\n\t\t\tmodel.caretPadding = opts.caretPadding;\n\t\t\tmodel.labelColors = labelColors;\n\t\t\tmodel.labelTextColors = labelTextColors;\n\n\t\t\t// data points\n\t\t\tmodel.dataPoints = tooltipItems;\n\n\t\t\t// We need to determine alignment of the tooltip\n\t\t\ttooltipSize = getTooltipSize(this, model);\n\t\t\talignment = determineAlignment(this, tooltipSize);\n\t\t\t// Final Size and Position\n\t\t\tbackgroundPoint = getBackgroundPoint(model, tooltipSize, alignment, me._chart);\n\t\t} else {\n\t\t\tmodel.opacity = 0;\n\t\t}\n\n\t\tmodel.xAlign = alignment.xAlign;\n\t\tmodel.yAlign = alignment.yAlign;\n\t\tmodel.x = backgroundPoint.x;\n\t\tmodel.y = backgroundPoint.y;\n\t\tmodel.width = tooltipSize.width;\n\t\tmodel.height = tooltipSize.height;\n\n\t\t// Point where the caret on the tooltip points to\n\t\tmodel.caretX = tooltipPosition.x;\n\t\tmodel.caretY = tooltipPosition.y;\n\n\t\tme._model = model;\n\n\t\tif (changed && opts.custom) {\n\t\t\topts.custom.call(me, model);\n\t\t}\n\n\t\treturn me;\n\t},\n\n\tdrawCaret: function(tooltipPoint, size) {\n\t\tvar ctx = this._chart.ctx;\n\t\tvar vm = this._view;\n\t\tvar caretPosition = this.getCaretPosition(tooltipPoint, size, vm);\n\n\t\tctx.lineTo(caretPosition.x1, caretPosition.y1);\n\t\tctx.lineTo(caretPosition.x2, caretPosition.y2);\n\t\tctx.lineTo(caretPosition.x3, caretPosition.y3);\n\t},\n\tgetCaretPosition: function(tooltipPoint, size, vm) {\n\t\tvar x1, x2, x3, y1, y2, y3;\n\t\tvar caretSize = vm.caretSize;\n\t\tvar cornerRadius = vm.cornerRadius;\n\t\tvar xAlign = vm.xAlign;\n\t\tvar yAlign = vm.yAlign;\n\t\tvar ptX = tooltipPoint.x;\n\t\tvar ptY = tooltipPoint.y;\n\t\tvar width = size.width;\n\t\tvar height = size.height;\n\n\t\tif (yAlign === 'center') {\n\t\t\ty2 = ptY + (height / 2);\n\n\t\t\tif (xAlign === 'left') {\n\t\t\t\tx1 = ptX;\n\t\t\t\tx2 = x1 - caretSize;\n\t\t\t\tx3 = x1;\n\n\t\t\t\ty1 = y2 + caretSize;\n\t\t\t\ty3 = y2 - caretSize;\n\t\t\t} else {\n\t\t\t\tx1 = ptX + width;\n\t\t\t\tx2 = x1 + caretSize;\n\t\t\t\tx3 = x1;\n\n\t\t\t\ty1 = y2 - caretSize;\n\t\t\t\ty3 = y2 + caretSize;\n\t\t\t}\n\t\t} else {\n\t\t\tif (xAlign === 'left') {\n\t\t\t\tx2 = ptX + cornerRadius + (caretSize);\n\t\t\t\tx1 = x2 - caretSize;\n\t\t\t\tx3 = x2 + caretSize;\n\t\t\t} else if (xAlign === 'right') {\n\t\t\t\tx2 = ptX + width - cornerRadius - caretSize;\n\t\t\t\tx1 = x2 - caretSize;\n\t\t\t\tx3 = x2 + caretSize;\n\t\t\t} else {\n\t\t\t\tx2 = vm.caretX;\n\t\t\t\tx1 = x2 - caretSize;\n\t\t\t\tx3 = x2 + caretSize;\n\t\t\t}\n\t\t\tif (yAlign === 'top') {\n\t\t\t\ty1 = ptY;\n\t\t\t\ty2 = y1 - caretSize;\n\t\t\t\ty3 = y1;\n\t\t\t} else {\n\t\t\t\ty1 = ptY + height;\n\t\t\t\ty2 = y1 + caretSize;\n\t\t\t\ty3 = y1;\n\t\t\t\t// invert drawing order\n\t\t\t\tvar tmp = x3;\n\t\t\t\tx3 = x1;\n\t\t\t\tx1 = tmp;\n\t\t\t}\n\t\t}\n\t\treturn {x1: x1, x2: x2, x3: x3, y1: y1, y2: y2, y3: y3};\n\t},\n\n\tdrawTitle: function(pt, vm, ctx, opacity) {\n\t\tvar title = vm.title;\n\n\t\tif (title.length) {\n\t\t\tctx.textAlign = vm._titleAlign;\n\t\t\tctx.textBaseline = 'top';\n\n\t\t\tvar titleFontSize = vm.titleFontSize;\n\t\t\tvar titleSpacing = vm.titleSpacing;\n\n\t\t\tctx.fillStyle = mergeOpacity(vm.titleFontColor, opacity);\n\t\t\tctx.font = helpers.fontString(titleFontSize, vm._titleFontStyle, vm._titleFontFamily);\n\n\t\t\tvar i, len;\n\t\t\tfor (i = 0, len = title.length; i < len; ++i) {\n\t\t\t\tctx.fillText(title[i], pt.x, pt.y);\n\t\t\t\tpt.y += titleFontSize + titleSpacing; // Line Height and spacing\n\n\t\t\t\tif (i + 1 === title.length) {\n\t\t\t\t\tpt.y += vm.titleMarginBottom - titleSpacing; // If Last, add margin, remove spacing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tdrawBody: function(pt, vm, ctx, opacity) {\n\t\tvar bodyFontSize = vm.bodyFontSize;\n\t\tvar bodySpacing = vm.bodySpacing;\n\t\tvar body = vm.body;\n\n\t\tctx.textAlign = vm._bodyAlign;\n\t\tctx.textBaseline = 'top';\n\t\tctx.font = helpers.fontString(bodyFontSize, vm._bodyFontStyle, vm._bodyFontFamily);\n\n\t\t// Before Body\n\t\tvar xLinePadding = 0;\n\t\tvar fillLineOfText = function(line) {\n\t\t\tctx.fillText(line, pt.x + xLinePadding, pt.y);\n\t\t\tpt.y += bodyFontSize + bodySpacing;\n\t\t};\n\n\t\t// Before body lines\n\t\tctx.fillStyle = mergeOpacity(vm.bodyFontColor, opacity);\n\t\thelpers.each(vm.beforeBody, fillLineOfText);\n\n\t\tvar drawColorBoxes = vm.displayColors;\n\t\txLinePadding = drawColorBoxes ? (bodyFontSize + 2) : 0;\n\n\t\t// Draw body lines now\n\t\thelpers.each(body, function(bodyItem, i) {\n\t\t\tvar textColor = mergeOpacity(vm.labelTextColors[i], opacity);\n\t\t\tctx.fillStyle = textColor;\n\t\t\thelpers.each(bodyItem.before, fillLineOfText);\n\n\t\t\thelpers.each(bodyItem.lines, function(line) {\n\t\t\t\t// Draw Legend-like boxes if needed\n\t\t\t\tif (drawColorBoxes) {\n\t\t\t\t\t// Fill a white rect so that colours merge nicely if the opacity is < 1\n\t\t\t\t\tctx.fillStyle = mergeOpacity(vm.legendColorBackground, opacity);\n\t\t\t\t\tctx.fillRect(pt.x, pt.y, bodyFontSize, bodyFontSize);\n\n\t\t\t\t\t// Border\n\t\t\t\t\tctx.lineWidth = 1;\n\t\t\t\t\tctx.strokeStyle = mergeOpacity(vm.labelColors[i].borderColor, opacity);\n\t\t\t\t\tctx.strokeRect(pt.x, pt.y, bodyFontSize, bodyFontSize);\n\n\t\t\t\t\t// Inner square\n\t\t\t\t\tctx.fillStyle = mergeOpacity(vm.labelColors[i].backgroundColor, opacity);\n\t\t\t\t\tctx.fillRect(pt.x + 1, pt.y + 1, bodyFontSize - 2, bodyFontSize - 2);\n\t\t\t\t\tctx.fillStyle = textColor;\n\t\t\t\t}\n\n\t\t\t\tfillLineOfText(line);\n\t\t\t});\n\n\t\t\thelpers.each(bodyItem.after, fillLineOfText);\n\t\t});\n\n\t\t// Reset back to 0 for after body\n\t\txLinePadding = 0;\n\n\t\t// After body lines\n\t\thelpers.each(vm.afterBody, fillLineOfText);\n\t\tpt.y -= bodySpacing; // Remove last body spacing\n\t},\n\n\tdrawFooter: function(pt, vm, ctx, opacity) {\n\t\tvar footer = vm.footer;\n\n\t\tif (footer.length) {\n\t\t\tpt.y += vm.footerMarginTop;\n\n\t\t\tctx.textAlign = vm._footerAlign;\n\t\t\tctx.textBaseline = 'top';\n\n\t\t\tctx.fillStyle = mergeOpacity(vm.footerFontColor, opacity);\n\t\t\tctx.font = helpers.fontString(vm.footerFontSize, vm._footerFontStyle, vm._footerFontFamily);\n\n\t\t\thelpers.each(footer, function(line) {\n\t\t\t\tctx.fillText(line, pt.x, pt.y);\n\t\t\t\tpt.y += vm.footerFontSize + vm.footerSpacing;\n\t\t\t});\n\t\t}\n\t},\n\n\tdrawBackground: function(pt, vm, ctx, tooltipSize, opacity) {\n\t\tctx.fillStyle = mergeOpacity(vm.backgroundColor, opacity);\n\t\tctx.strokeStyle = mergeOpacity(vm.borderColor, opacity);\n\t\tctx.lineWidth = vm.borderWidth;\n\t\tvar xAlign = vm.xAlign;\n\t\tvar yAlign = vm.yAlign;\n\t\tvar x = pt.x;\n\t\tvar y = pt.y;\n\t\tvar width = tooltipSize.width;\n\t\tvar height = tooltipSize.height;\n\t\tvar radius = vm.cornerRadius;\n\n\t\tctx.beginPath();\n\t\tctx.moveTo(x + radius, y);\n\t\tif (yAlign === 'top') {\n\t\t\tthis.drawCaret(pt, tooltipSize);\n\t\t}\n\t\tctx.lineTo(x + width - radius, y);\n\t\tctx.quadraticCurveTo(x + width, y, x + width, y + radius);\n\t\tif (yAlign === 'center' && xAlign === 'right') {\n\t\t\tthis.drawCaret(pt, tooltipSize);\n\t\t}\n\t\tctx.lineTo(x + width, y + height - radius);\n\t\tctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);\n\t\tif (yAlign === 'bottom') {\n\t\t\tthis.drawCaret(pt, tooltipSize);\n\t\t}\n\t\tctx.lineTo(x + radius, y + height);\n\t\tctx.quadraticCurveTo(x, y + height, x, y + height - radius);\n\t\tif (yAlign === 'center' && xAlign === 'left') {\n\t\t\tthis.drawCaret(pt, tooltipSize);\n\t\t}\n\t\tctx.lineTo(x, y + radius);\n\t\tctx.quadraticCurveTo(x, y, x + radius, y);\n\t\tctx.closePath();\n\n\t\tctx.fill();\n\n\t\tif (vm.borderWidth > 0) {\n\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\tdraw: function() {\n\t\tvar ctx = this._chart.ctx;\n\t\tvar vm = this._view;\n\n\t\tif (vm.opacity === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar tooltipSize = {\n\t\t\twidth: vm.width,\n\t\t\theight: vm.height\n\t\t};\n\t\tvar pt = {\n\t\t\tx: vm.x,\n\t\t\ty: vm.y\n\t\t};\n\n\t\t// IE11/Edge does not like very small opacities, so snap to 0\n\t\tvar opacity = Math.abs(vm.opacity < 1e-3) ? 0 : vm.opacity;\n\n\t\t// Truthy/falsey value for empty tooltip\n\t\tvar hasTooltipContent = vm.title.length || vm.beforeBody.length || vm.body.length || vm.afterBody.length || vm.footer.length;\n\n\t\tif (this._options.enabled && hasTooltipContent) {\n\t\t\t// Draw Background\n\t\t\tthis.drawBackground(pt, vm, ctx, tooltipSize, opacity);\n\n\t\t\t// Draw Title, Body, and Footer\n\t\t\tpt.x += vm.xPadding;\n\t\t\tpt.y += vm.yPadding;\n\n\t\t\t// Titles\n\t\t\tthis.drawTitle(pt, vm, ctx, opacity);\n\n\t\t\t// Body\n\t\t\tthis.drawBody(pt, vm, ctx, opacity);\n\n\t\t\t// Footer\n\t\t\tthis.drawFooter(pt, vm, ctx, opacity);\n\t\t}\n\t},\n\n\t/**\n\t * Handle an event\n\t * @private\n\t * @param {IEvent} event - The event to handle\n\t * @returns {Boolean} true if the tooltip changed\n\t */\n\thandleEvent: function(e) {\n\t\tvar me = this;\n\t\tvar options = me._options;\n\t\tvar changed = false;\n\n\t\tme._lastActive = me._lastActive || [];\n\n\t\t// Find Active Elements for tooltips\n\t\tif (e.type === 'mouseout') {\n\t\t\tme._active = [];\n\t\t} else {\n\t\t\tme._active = me._chart.getElementsAtEventForMode(e, options.mode, options);\n\t\t}\n\n\t\t// Remember Last Actives\n\t\tchanged = !helpers.arrayEquals(me._active, me._lastActive);\n\n\t\t// Only handle target event on tooltip change\n\t\tif (changed) {\n\t\t\tme._lastActive = me._active;\n\n\t\t\tif (options.enabled || options.custom) {\n\t\t\t\tme._eventPosition = {\n\t\t\t\t\tx: e.x,\n\t\t\t\t\ty: e.y\n\t\t\t\t};\n\n\t\t\t\tme.update(true);\n\t\t\t\tme.pivot();\n\t\t\t}\n\t\t}\n\n\t\treturn changed;\n\t}\n});\n\n/**\n * @namespace Chart.Tooltip.positioners\n */\nexports.positioners = positioners;\n\n\n},{\"26\":26,\"27\":27,\"46\":46}],37:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\telements: {\n\t\tarc: {\n\t\t\tbackgroundColor: defaults.global.defaultColor,\n\t\t\tborderColor: '#fff',\n\t\t\tborderWidth: 2\n\t\t}\n\t}\n});\n\nmodule.exports = Element.extend({\n\tinLabelRange: function(mouseX) {\n\t\tvar vm = this._view;\n\n\t\tif (vm) {\n\t\t\treturn (Math.pow(mouseX - vm.x, 2) < Math.pow(vm.radius + vm.hoverRadius, 2));\n\t\t}\n\t\treturn false;\n\t},\n\n\tinRange: function(chartX, chartY) {\n\t\tvar vm = this._view;\n\n\t\tif (vm) {\n\t\t\tvar pointRelativePosition = helpers.getAngleFromPoint(vm, {x: chartX, y: chartY});\n\t\t\tvar\tangle = pointRelativePosition.angle;\n\t\t\tvar distance = pointRelativePosition.distance;\n\n\t\t\t// Sanitise angle range\n\t\t\tvar startAngle = vm.startAngle;\n\t\t\tvar endAngle = vm.endAngle;\n\t\t\twhile (endAngle < startAngle) {\n\t\t\t\tendAngle += 2.0 * Math.PI;\n\t\t\t}\n\t\t\twhile (angle > endAngle) {\n\t\t\t\tangle -= 2.0 * Math.PI;\n\t\t\t}\n\t\t\twhile (angle < startAngle) {\n\t\t\t\tangle += 2.0 * Math.PI;\n\t\t\t}\n\n\t\t\t// Check if within the range of the open/close angle\n\t\t\tvar betweenAngles = (angle >= startAngle && angle <= endAngle);\n\t\t\tvar withinRadius = (distance >= vm.innerRadius && distance <= vm.outerRadius);\n\n\t\t\treturn (betweenAngles && withinRadius);\n\t\t}\n\t\treturn false;\n\t},\n\n\tgetCenterPoint: function() {\n\t\tvar vm = this._view;\n\t\tvar halfAngle = (vm.startAngle + vm.endAngle) / 2;\n\t\tvar halfRadius = (vm.innerRadius + vm.outerRadius) / 2;\n\t\treturn {\n\t\t\tx: vm.x + Math.cos(halfAngle) * halfRadius,\n\t\t\ty: vm.y + Math.sin(halfAngle) * halfRadius\n\t\t};\n\t},\n\n\tgetArea: function() {\n\t\tvar vm = this._view;\n\t\treturn Math.PI * ((vm.endAngle - vm.startAngle) / (2 * Math.PI)) * (Math.pow(vm.outerRadius, 2) - Math.pow(vm.innerRadius, 2));\n\t},\n\n\ttooltipPosition: function() {\n\t\tvar vm = this._view;\n\t\tvar centreAngle = vm.startAngle + ((vm.endAngle - vm.startAngle) / 2);\n\t\tvar rangeFromCentre = (vm.outerRadius - vm.innerRadius) / 2 + vm.innerRadius;\n\n\t\treturn {\n\t\t\tx: vm.x + (Math.cos(centreAngle) * rangeFromCentre),\n\t\t\ty: vm.y + (Math.sin(centreAngle) * rangeFromCentre)\n\t\t};\n\t},\n\n\tdraw: function() {\n\t\tvar ctx = this._chart.ctx;\n\t\tvar vm = this._view;\n\t\tvar sA = vm.startAngle;\n\t\tvar eA = vm.endAngle;\n\n\t\tctx.beginPath();\n\n\t\tctx.arc(vm.x, vm.y, vm.outerRadius, sA, eA);\n\t\tctx.arc(vm.x, vm.y, vm.innerRadius, eA, sA, true);\n\n\t\tctx.closePath();\n\t\tctx.strokeStyle = vm.borderColor;\n\t\tctx.lineWidth = vm.borderWidth;\n\n\t\tctx.fillStyle = vm.backgroundColor;\n\n\t\tctx.fill();\n\t\tctx.lineJoin = 'bevel';\n\n\t\tif (vm.borderWidth) {\n\t\t\tctx.stroke();\n\t\t}\n\t}\n});\n\n},{\"26\":26,\"27\":27,\"46\":46}],38:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\n\nvar globalDefaults = defaults.global;\n\ndefaults._set('global', {\n\telements: {\n\t\tline: {\n\t\t\ttension: 0.4,\n\t\t\tbackgroundColor: globalDefaults.defaultColor,\n\t\t\tborderWidth: 3,\n\t\t\tborderColor: globalDefaults.defaultColor,\n\t\t\tborderCapStyle: 'butt',\n\t\t\tborderDash: [],\n\t\t\tborderDashOffset: 0.0,\n\t\t\tborderJoinStyle: 'miter',\n\t\t\tcapBezierPoints: true,\n\t\t\tfill: true, // do we fill in the area between the line and its base axis\n\t\t}\n\t}\n});\n\nmodule.exports = Element.extend({\n\tdraw: function() {\n\t\tvar me = this;\n\t\tvar vm = me._view;\n\t\tvar ctx = me._chart.ctx;\n\t\tvar spanGaps = vm.spanGaps;\n\t\tvar points = me._children.slice(); // clone array\n\t\tvar globalOptionLineElements = globalDefaults.elements.line;\n\t\tvar lastDrawnIndex = -1;\n\t\tvar index, current, previous, currentVM;\n\n\t\t// If we are looping, adding the first point again\n\t\tif (me._loop && points.length) {\n\t\t\tpoints.push(points[0]);\n\t\t}\n\n\t\tctx.save();\n\n\t\t// Stroke Line Options\n\t\tctx.lineCap = vm.borderCapStyle || globalOptionLineElements.borderCapStyle;\n\n\t\t// IE 9 and 10 do not support line dash\n\t\tif (ctx.setLineDash) {\n\t\t\tctx.setLineDash(vm.borderDash || globalOptionLineElements.borderDash);\n\t\t}\n\n\t\tctx.lineDashOffset = vm.borderDashOffset || globalOptionLineElements.borderDashOffset;\n\t\tctx.lineJoin = vm.borderJoinStyle || globalOptionLineElements.borderJoinStyle;\n\t\tctx.lineWidth = vm.borderWidth || globalOptionLineElements.borderWidth;\n\t\tctx.strokeStyle = vm.borderColor || globalDefaults.defaultColor;\n\n\t\t// Stroke Line\n\t\tctx.beginPath();\n\t\tlastDrawnIndex = -1;\n\n\t\tfor (index = 0; index < points.length; ++index) {\n\t\t\tcurrent = points[index];\n\t\t\tprevious = helpers.previousItem(points, index);\n\t\t\tcurrentVM = current._view;\n\n\t\t\t// First point moves to it's starting position no matter what\n\t\t\tif (index === 0) {\n\t\t\t\tif (!currentVM.skip) {\n\t\t\t\t\tctx.moveTo(currentVM.x, currentVM.y);\n\t\t\t\t\tlastDrawnIndex = index;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tprevious = lastDrawnIndex === -1 ? previous : points[lastDrawnIndex];\n\n\t\t\t\tif (!currentVM.skip) {\n\t\t\t\t\tif ((lastDrawnIndex !== (index - 1) && !spanGaps) || lastDrawnIndex === -1) {\n\t\t\t\t\t\t// There was a gap and this is the first point after the gap\n\t\t\t\t\t\tctx.moveTo(currentVM.x, currentVM.y);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Line to next point\n\t\t\t\t\t\thelpers.canvas.lineTo(ctx, previous._view, current._view);\n\t\t\t\t\t}\n\t\t\t\t\tlastDrawnIndex = index;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tctx.stroke();\n\t\tctx.restore();\n\t}\n});\n\n},{\"26\":26,\"27\":27,\"46\":46}],39:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\n\nvar defaultColor = defaults.global.defaultColor;\n\ndefaults._set('global', {\n\telements: {\n\t\tpoint: {\n\t\t\tradius: 3,\n\t\t\tpointStyle: 'circle',\n\t\t\tbackgroundColor: defaultColor,\n\t\t\tborderColor: defaultColor,\n\t\t\tborderWidth: 1,\n\t\t\t// Hover\n\t\t\thitRadius: 1,\n\t\t\thoverRadius: 4,\n\t\t\thoverBorderWidth: 1\n\t\t}\n\t}\n});\n\nfunction xRange(mouseX) {\n\tvar vm = this._view;\n\treturn vm ? (Math.abs(mouseX - vm.x) < vm.radius + vm.hitRadius) : false;\n}\n\nfunction yRange(mouseY) {\n\tvar vm = this._view;\n\treturn vm ? (Math.abs(mouseY - vm.y) < vm.radius + vm.hitRadius) : false;\n}\n\nmodule.exports = Element.extend({\n\tinRange: function(mouseX, mouseY) {\n\t\tvar vm = this._view;\n\t\treturn vm ? ((Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2)) < Math.pow(vm.hitRadius + vm.radius, 2)) : false;\n\t},\n\n\tinLabelRange: xRange,\n\tinXRange: xRange,\n\tinYRange: yRange,\n\n\tgetCenterPoint: function() {\n\t\tvar vm = this._view;\n\t\treturn {\n\t\t\tx: vm.x,\n\t\t\ty: vm.y\n\t\t};\n\t},\n\n\tgetArea: function() {\n\t\treturn Math.PI * Math.pow(this._view.radius, 2);\n\t},\n\n\ttooltipPosition: function() {\n\t\tvar vm = this._view;\n\t\treturn {\n\t\t\tx: vm.x,\n\t\t\ty: vm.y,\n\t\t\tpadding: vm.radius + vm.borderWidth\n\t\t};\n\t},\n\n\tdraw: function(chartArea) {\n\t\tvar vm = this._view;\n\t\tvar model = this._model;\n\t\tvar ctx = this._chart.ctx;\n\t\tvar pointStyle = vm.pointStyle;\n\t\tvar rotation = vm.rotation;\n\t\tvar radius = vm.radius;\n\t\tvar x = vm.x;\n\t\tvar y = vm.y;\n\t\tvar errMargin = 1.01; // 1.01 is margin for Accumulated error. (Especially Edge, IE.)\n\n\t\tif (vm.skip) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Clipping for Points.\n\t\tif (chartArea === undefined || (model.x >= chartArea.left && chartArea.right * errMargin >= model.x && model.y >= chartArea.top && chartArea.bottom * errMargin >= model.y)) {\n\t\t\tctx.strokeStyle = vm.borderColor || defaultColor;\n\t\t\tctx.lineWidth = helpers.valueOrDefault(vm.borderWidth, defaults.global.elements.point.borderWidth);\n\t\t\tctx.fillStyle = vm.backgroundColor || defaultColor;\n\t\t\thelpers.canvas.drawPoint(ctx, pointStyle, radius, x, y, rotation);\n\t\t}\n\t}\n});\n\n},{\"26\":26,\"27\":27,\"46\":46}],40:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\n\ndefaults._set('global', {\n\telements: {\n\t\trectangle: {\n\t\t\tbackgroundColor: defaults.global.defaultColor,\n\t\t\tborderColor: defaults.global.defaultColor,\n\t\t\tborderSkipped: 'bottom',\n\t\t\tborderWidth: 0\n\t\t}\n\t}\n});\n\nfunction isVertical(bar) {\n\treturn bar._view.width !== undefined;\n}\n\n/**\n * Helper function to get the bounds of the bar regardless of the orientation\n * @param bar {Chart.Element.Rectangle} the bar\n * @return {Bounds} bounds of the bar\n * @private\n */\nfunction getBarBounds(bar) {\n\tvar vm = bar._view;\n\tvar x1, x2, y1, y2;\n\n\tif (isVertical(bar)) {\n\t\t// vertical\n\t\tvar halfWidth = vm.width / 2;\n\t\tx1 = vm.x - halfWidth;\n\t\tx2 = vm.x + halfWidth;\n\t\ty1 = Math.min(vm.y, vm.base);\n\t\ty2 = Math.max(vm.y, vm.base);\n\t} else {\n\t\t// horizontal bar\n\t\tvar halfHeight = vm.height / 2;\n\t\tx1 = Math.min(vm.x, vm.base);\n\t\tx2 = Math.max(vm.x, vm.base);\n\t\ty1 = vm.y - halfHeight;\n\t\ty2 = vm.y + halfHeight;\n\t}\n\n\treturn {\n\t\tleft: x1,\n\t\ttop: y1,\n\t\tright: x2,\n\t\tbottom: y2\n\t};\n}\n\nmodule.exports = Element.extend({\n\tdraw: function() {\n\t\tvar ctx = this._chart.ctx;\n\t\tvar vm = this._view;\n\t\tvar left, right, top, bottom, signX, signY, borderSkipped;\n\t\tvar borderWidth = vm.borderWidth;\n\n\t\tif (!vm.horizontal) {\n\t\t\t// bar\n\t\t\tleft = vm.x - vm.width / 2;\n\t\t\tright = vm.x + vm.width / 2;\n\t\t\ttop = vm.y;\n\t\t\tbottom = vm.base;\n\t\t\tsignX = 1;\n\t\t\tsignY = bottom > top ? 1 : -1;\n\t\t\tborderSkipped = vm.borderSkipped || 'bottom';\n\t\t} else {\n\t\t\t// horizontal bar\n\t\t\tleft = vm.base;\n\t\t\tright = vm.x;\n\t\t\ttop = vm.y - vm.height / 2;\n\t\t\tbottom = vm.y + vm.height / 2;\n\t\t\tsignX = right > left ? 1 : -1;\n\t\t\tsignY = 1;\n\t\t\tborderSkipped = vm.borderSkipped || 'left';\n\t\t}\n\n\t\t// Canvas doesn't allow us to stroke inside the width so we can\n\t\t// adjust the sizes to fit if we're setting a stroke on the line\n\t\tif (borderWidth) {\n\t\t\t// borderWidth shold be less than bar width and bar height.\n\t\t\tvar barSize = Math.min(Math.abs(left - right), Math.abs(top - bottom));\n\t\t\tborderWidth = borderWidth > barSize ? barSize : borderWidth;\n\t\t\tvar halfStroke = borderWidth / 2;\n\t\t\t// Adjust borderWidth when bar top position is near vm.base(zero).\n\t\t\tvar borderLeft = left + (borderSkipped !== 'left' ? halfStroke * signX : 0);\n\t\t\tvar borderRight = right + (borderSkipped !== 'right' ? -halfStroke * signX : 0);\n\t\t\tvar borderTop = top + (borderSkipped !== 'top' ? halfStroke * signY : 0);\n\t\t\tvar borderBottom = bottom + (borderSkipped !== 'bottom' ? -halfStroke * signY : 0);\n\t\t\t// not become a vertical line?\n\t\t\tif (borderLeft !== borderRight) {\n\t\t\t\ttop = borderTop;\n\t\t\t\tbottom = borderBottom;\n\t\t\t}\n\t\t\t// not become a horizontal line?\n\t\t\tif (borderTop !== borderBottom) {\n\t\t\t\tleft = borderLeft;\n\t\t\t\tright = borderRight;\n\t\t\t}\n\t\t}\n\n\t\tctx.beginPath();\n\t\tctx.fillStyle = vm.backgroundColor;\n\t\tctx.strokeStyle = vm.borderColor;\n\t\tctx.lineWidth = borderWidth;\n\n\t\t// Corner points, from bottom-left to bottom-right clockwise\n\t\t// | 1 2 |\n\t\t// | 0 3 |\n\t\tvar corners = [\n\t\t\t[left, bottom],\n\t\t\t[left, top],\n\t\t\t[right, top],\n\t\t\t[right, bottom]\n\t\t];\n\n\t\t// Find first (starting) corner with fallback to 'bottom'\n\t\tvar borders = ['bottom', 'left', 'top', 'right'];\n\t\tvar startCorner = borders.indexOf(borderSkipped, 0);\n\t\tif (startCorner === -1) {\n\t\t\tstartCorner = 0;\n\t\t}\n\n\t\tfunction cornerAt(index) {\n\t\t\treturn corners[(startCorner + index) % 4];\n\t\t}\n\n\t\t// Draw rectangle from 'startCorner'\n\t\tvar corner = cornerAt(0);\n\t\tctx.moveTo(corner[0], corner[1]);\n\n\t\tfor (var i = 1; i < 4; i++) {\n\t\t\tcorner = cornerAt(i);\n\t\t\tctx.lineTo(corner[0], corner[1]);\n\t\t}\n\n\t\tctx.fill();\n\t\tif (borderWidth) {\n\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\theight: function() {\n\t\tvar vm = this._view;\n\t\treturn vm.base - vm.y;\n\t},\n\n\tinRange: function(mouseX, mouseY) {\n\t\tvar inRange = false;\n\n\t\tif (this._view) {\n\t\t\tvar bounds = getBarBounds(this);\n\t\t\tinRange = mouseX >= bounds.left && mouseX <= bounds.right && mouseY >= bounds.top && mouseY <= bounds.bottom;\n\t\t}\n\n\t\treturn inRange;\n\t},\n\n\tinLabelRange: function(mouseX, mouseY) {\n\t\tvar me = this;\n\t\tif (!me._view) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar inRange = false;\n\t\tvar bounds = getBarBounds(me);\n\n\t\tif (isVertical(me)) {\n\t\t\tinRange = mouseX >= bounds.left && mouseX <= bounds.right;\n\t\t} else {\n\t\t\tinRange = mouseY >= bounds.top && mouseY <= bounds.bottom;\n\t\t}\n\n\t\treturn inRange;\n\t},\n\n\tinXRange: function(mouseX) {\n\t\tvar bounds = getBarBounds(this);\n\t\treturn mouseX >= bounds.left && mouseX <= bounds.right;\n\t},\n\n\tinYRange: function(mouseY) {\n\t\tvar bounds = getBarBounds(this);\n\t\treturn mouseY >= bounds.top && mouseY <= bounds.bottom;\n\t},\n\n\tgetCenterPoint: function() {\n\t\tvar vm = this._view;\n\t\tvar x, y;\n\t\tif (isVertical(this)) {\n\t\t\tx = vm.x;\n\t\t\ty = (vm.y + vm.base) / 2;\n\t\t} else {\n\t\t\tx = (vm.x + vm.base) / 2;\n\t\t\ty = vm.y;\n\t\t}\n\n\t\treturn {x: x, y: y};\n\t},\n\n\tgetArea: function() {\n\t\tvar vm = this._view;\n\t\treturn vm.width * Math.abs(vm.y - vm.base);\n\t},\n\n\ttooltipPosition: function() {\n\t\tvar vm = this._view;\n\t\treturn {\n\t\t\tx: vm.x,\n\t\t\ty: vm.y\n\t\t};\n\t}\n});\n\n},{\"26\":26,\"27\":27}],41:[function(require,module,exports){\n'use strict';\n\nmodule.exports = {};\nmodule.exports.Arc = require(37);\nmodule.exports.Line = require(38);\nmodule.exports.Point = require(39);\nmodule.exports.Rectangle = require(40);\n\n},{\"37\":37,\"38\":38,\"39\":39,\"40\":40}],42:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(43);\n\n/**\n * @namespace Chart.helpers.canvas\n */\nvar exports = module.exports = {\n\t/**\n\t * Clears the entire canvas associated to the given `chart`.\n\t * @param {Chart} chart - The chart for which to clear the canvas.\n\t */\n\tclear: function(chart) {\n\t\tchart.ctx.clearRect(0, 0, chart.width, chart.height);\n\t},\n\n\t/**\n\t * Creates a \"path\" for a rectangle with rounded corners at position (x, y) with a\n\t * given size (width, height) and the same `radius` for all corners.\n\t * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context.\n\t * @param {Number} x - The x axis of the coordinate for the rectangle starting point.\n\t * @param {Number} y - The y axis of the coordinate for the rectangle starting point.\n\t * @param {Number} width - The rectangle's width.\n\t * @param {Number} height - The rectangle's height.\n\t * @param {Number} radius - The rounded amount (in pixels) for the four corners.\n\t * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object?\n\t */\n\troundedRect: function(ctx, x, y, width, height, radius) {\n\t\tif (radius) {\n\t\t\t// NOTE(SB) `epsilon` helps to prevent minor artifacts appearing\n\t\t\t// on Chrome when `r` is exactly half the height or the width.\n\t\t\tvar epsilon = 0.0000001;\n\t\t\tvar r = Math.min(radius, (height / 2) - epsilon, (width / 2) - epsilon);\n\n\t\t\tctx.moveTo(x + r, y);\n\t\t\tctx.lineTo(x + width - r, y);\n\t\t\tctx.arcTo(x + width, y, x + width, y + r, r);\n\t\t\tctx.lineTo(x + width, y + height - r);\n\t\t\tctx.arcTo(x + width, y + height, x + width - r, y + height, r);\n\t\t\tctx.lineTo(x + r, y + height);\n\t\t\tctx.arcTo(x, y + height, x, y + height - r, r);\n\t\t\tctx.lineTo(x, y + r);\n\t\t\tctx.arcTo(x, y, x + r, y, r);\n\t\t\tctx.closePath();\n\t\t\tctx.moveTo(x, y);\n\t\t} else {\n\t\t\tctx.rect(x, y, width, height);\n\t\t}\n\t},\n\n\tdrawPoint: function(ctx, style, radius, x, y, rotation) {\n\t\tvar type, edgeLength, xOffset, yOffset, height, size;\n\t\trotation = rotation || 0;\n\n\t\tif (style && typeof style === 'object') {\n\t\t\ttype = style.toString();\n\t\t\tif (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') {\n\t\t\t\tctx.drawImage(style, x - style.width / 2, y - style.height / 2, style.width, style.height);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (isNaN(radius) || radius <= 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tctx.save();\n\t\tctx.translate(x, y);\n\t\tctx.rotate(rotation * Math.PI / 180);\n\t\tctx.beginPath();\n\n\t\tswitch (style) {\n\t\t// Default includes circle\n\t\tdefault:\n\t\t\tctx.arc(0, 0, radius, 0, Math.PI * 2);\n\t\t\tctx.closePath();\n\t\t\tbreak;\n\t\tcase 'triangle':\n\t\t\tedgeLength = 3 * radius / Math.sqrt(3);\n\t\t\theight = edgeLength * Math.sqrt(3) / 2;\n\t\t\tctx.moveTo(-edgeLength / 2, height / 3);\n\t\t\tctx.lineTo(edgeLength / 2, height / 3);\n\t\t\tctx.lineTo(0, -2 * height / 3);\n\t\t\tctx.closePath();\n\t\t\tbreak;\n\t\tcase 'rect':\n\t\t\tsize = 1 / Math.SQRT2 * radius;\n\t\t\tctx.rect(-size, -size, 2 * size, 2 * size);\n\t\t\tbreak;\n\t\tcase 'rectRounded':\n\t\t\tvar offset = radius / Math.SQRT2;\n\t\t\tvar leftX = -offset;\n\t\t\tvar topY = -offset;\n\t\t\tvar sideSize = Math.SQRT2 * radius;\n\n\t\t\t// NOTE(SB) the rounded rect implementation changed to use `arcTo`\n\t\t\t// instead of `quadraticCurveTo` since it generates better results\n\t\t\t// when rect is almost a circle. 0.425 (instead of 0.5) produces\n\t\t\t// results visually closer to the previous impl.\n\t\t\tthis.roundedRect(ctx, leftX, topY, sideSize, sideSize, radius * 0.425);\n\t\t\tbreak;\n\t\tcase 'rectRot':\n\t\t\tsize = 1 / Math.SQRT2 * radius;\n\t\t\tctx.moveTo(-size, 0);\n\t\t\tctx.lineTo(0, size);\n\t\t\tctx.lineTo(size, 0);\n\t\t\tctx.lineTo(0, -size);\n\t\t\tctx.closePath();\n\t\t\tbreak;\n\t\tcase 'cross':\n\t\t\tctx.moveTo(0, radius);\n\t\t\tctx.lineTo(0, -radius);\n\t\t\tctx.moveTo(-radius, 0);\n\t\t\tctx.lineTo(radius, 0);\n\t\t\tbreak;\n\t\tcase 'crossRot':\n\t\t\txOffset = Math.cos(Math.PI / 4) * radius;\n\t\t\tyOffset = Math.sin(Math.PI / 4) * radius;\n\t\t\tctx.moveTo(-xOffset, -yOffset);\n\t\t\tctx.lineTo(xOffset, yOffset);\n\t\t\tctx.moveTo(-xOffset, yOffset);\n\t\t\tctx.lineTo(xOffset, -yOffset);\n\t\t\tbreak;\n\t\tcase 'star':\n\t\t\tctx.moveTo(0, radius);\n\t\t\tctx.lineTo(0, -radius);\n\t\t\tctx.moveTo(-radius, 0);\n\t\t\tctx.lineTo(radius, 0);\n\t\t\txOffset = Math.cos(Math.PI / 4) * radius;\n\t\t\tyOffset = Math.sin(Math.PI / 4) * radius;\n\t\t\tctx.moveTo(-xOffset, -yOffset);\n\t\t\tctx.lineTo(xOffset, yOffset);\n\t\t\tctx.moveTo(-xOffset, yOffset);\n\t\t\tctx.lineTo(xOffset, -yOffset);\n\t\t\tbreak;\n\t\tcase 'line':\n\t\t\tctx.moveTo(-radius, 0);\n\t\t\tctx.lineTo(radius, 0);\n\t\t\tbreak;\n\t\tcase 'dash':\n\t\t\tctx.moveTo(0, 0);\n\t\t\tctx.lineTo(radius, 0);\n\t\t\tbreak;\n\t\t}\n\n\t\tctx.fill();\n\t\tctx.stroke();\n\t\tctx.restore();\n\t},\n\n\tclipArea: function(ctx, area) {\n\t\tctx.save();\n\t\tctx.beginPath();\n\t\tctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);\n\t\tctx.clip();\n\t},\n\n\tunclipArea: function(ctx) {\n\t\tctx.restore();\n\t},\n\n\tlineTo: function(ctx, previous, target, flip) {\n\t\tif (target.steppedLine) {\n\t\t\tif ((target.steppedLine === 'after' && !flip) || (target.steppedLine !== 'after' && flip)) {\n\t\t\t\tctx.lineTo(previous.x, target.y);\n\t\t\t} else {\n\t\t\t\tctx.lineTo(target.x, previous.y);\n\t\t\t}\n\t\t\tctx.lineTo(target.x, target.y);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!target.tension) {\n\t\t\tctx.lineTo(target.x, target.y);\n\t\t\treturn;\n\t\t}\n\n\t\tctx.bezierCurveTo(\n\t\t\tflip ? previous.controlPointPreviousX : previous.controlPointNextX,\n\t\t\tflip ? previous.controlPointPreviousY : previous.controlPointNextY,\n\t\t\tflip ? target.controlPointNextX : target.controlPointPreviousX,\n\t\t\tflip ? target.controlPointNextY : target.controlPointPreviousY,\n\t\t\ttarget.x,\n\t\t\ttarget.y);\n\t}\n};\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use Chart.helpers.canvas.clear instead.\n * @namespace Chart.helpers.clear\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.clear = exports.clear;\n\n/**\n * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead.\n * @namespace Chart.helpers.drawRoundedRectangle\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.drawRoundedRectangle = function(ctx) {\n\tctx.beginPath();\n\texports.roundedRect.apply(exports, arguments);\n};\n\n},{\"43\":43}],43:[function(require,module,exports){\n'use strict';\n\n/**\n * @namespace Chart.helpers\n */\nvar helpers = {\n\t/**\n\t * An empty function that can be used, for example, for optional callback.\n\t */\n\tnoop: function() {},\n\n\t/**\n\t * Returns a unique id, sequentially generated from a global variable.\n\t * @returns {Number}\n\t * @function\n\t */\n\tuid: (function() {\n\t\tvar id = 0;\n\t\treturn function() {\n\t\t\treturn id++;\n\t\t};\n\t}()),\n\n\t/**\n\t * Returns true if `value` is neither null nor undefined, else returns false.\n\t * @param {*} value - The value to test.\n\t * @returns {Boolean}\n\t * @since 2.7.0\n\t */\n\tisNullOrUndef: function(value) {\n\t\treturn value === null || typeof value === 'undefined';\n\t},\n\n\t/**\n\t * Returns true if `value` is an array, else returns false.\n\t * @param {*} value - The value to test.\n\t * @returns {Boolean}\n\t * @function\n\t */\n\tisArray: Array.isArray ? Array.isArray : function(value) {\n\t\treturn Object.prototype.toString.call(value) === '[object Array]';\n\t},\n\n\t/**\n\t * Returns true if `value` is an object (excluding null), else returns false.\n\t * @param {*} value - The value to test.\n\t * @returns {Boolean}\n\t * @since 2.7.0\n\t */\n\tisObject: function(value) {\n\t\treturn value !== null && Object.prototype.toString.call(value) === '[object Object]';\n\t},\n\n\t/**\n\t * Returns `value` if defined, else returns `defaultValue`.\n\t * @param {*} value - The value to return if defined.\n\t * @param {*} defaultValue - The value to return if `value` is undefined.\n\t * @returns {*}\n\t */\n\tvalueOrDefault: function(value, defaultValue) {\n\t\treturn typeof value === 'undefined' ? defaultValue : value;\n\t},\n\n\t/**\n\t * Returns value at the given `index` in array if defined, else returns `defaultValue`.\n\t * @param {Array} value - The array to lookup for value at `index`.\n\t * @param {Number} index - The index in `value` to lookup for value.\n\t * @param {*} defaultValue - The value to return if `value[index]` is undefined.\n\t * @returns {*}\n\t */\n\tvalueAtIndexOrDefault: function(value, index, defaultValue) {\n\t\treturn helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);\n\t},\n\n\t/**\n\t * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the\n\t * value returned by `fn`. If `fn` is not a function, this method returns undefined.\n\t * @param {Function} fn - The function to call.\n\t * @param {Array|undefined|null} args - The arguments with which `fn` should be called.\n\t * @param {Object} [thisArg] - The value of `this` provided for the call to `fn`.\n\t * @returns {*}\n\t */\n\tcallback: function(fn, args, thisArg) {\n\t\tif (fn && typeof fn.call === 'function') {\n\t\t\treturn fn.apply(thisArg, args);\n\t\t}\n\t},\n\n\t/**\n\t * Note(SB) for performance sake, this method should only be used when loopable type\n\t * is unknown or in none intensive code (not called often and small loopable). Else\n\t * it's preferable to use a regular for() loop and save extra function calls.\n\t * @param {Object|Array} loopable - The object or array to be iterated.\n\t * @param {Function} fn - The function to call for each item.\n\t * @param {Object} [thisArg] - The value of `this` provided for the call to `fn`.\n\t * @param {Boolean} [reverse] - If true, iterates backward on the loopable.\n\t */\n\teach: function(loopable, fn, thisArg, reverse) {\n\t\tvar i, len, keys;\n\t\tif (helpers.isArray(loopable)) {\n\t\t\tlen = loopable.length;\n\t\t\tif (reverse) {\n\t\t\t\tfor (i = len - 1; i >= 0; i--) {\n\t\t\t\t\tfn.call(thisArg, loopable[i], i);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\t\tfn.call(thisArg, loopable[i], i);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (helpers.isObject(loopable)) {\n\t\t\tkeys = Object.keys(loopable);\n\t\t\tlen = keys.length;\n\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\tfn.call(thisArg, loopable[keys[i]], keys[i]);\n\t\t\t}\n\t\t}\n\t},\n\n\t/**\n\t * Returns true if the `a0` and `a1` arrays have the same content, else returns false.\n\t * @see http://stackoverflow.com/a/14853974\n\t * @param {Array} a0 - The array to compare\n\t * @param {Array} a1 - The array to compare\n\t * @returns {Boolean}\n\t */\n\tarrayEquals: function(a0, a1) {\n\t\tvar i, ilen, v0, v1;\n\n\t\tif (!a0 || !a1 || a0.length !== a1.length) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (i = 0, ilen = a0.length; i < ilen; ++i) {\n\t\t\tv0 = a0[i];\n\t\t\tv1 = a1[i];\n\n\t\t\tif (v0 instanceof Array && v1 instanceof Array) {\n\t\t\t\tif (!helpers.arrayEquals(v0, v1)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else if (v0 !== v1) {\n\t\t\t\t// NOTE: two different object instances will never be equal: {x:20} != {x:20}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t},\n\n\t/**\n\t * Returns a deep copy of `source` without keeping references on objects and arrays.\n\t * @param {*} source - The value to clone.\n\t * @returns {*}\n\t */\n\tclone: function(source) {\n\t\tif (helpers.isArray(source)) {\n\t\t\treturn source.map(helpers.clone);\n\t\t}\n\n\t\tif (helpers.isObject(source)) {\n\t\t\tvar target = {};\n\t\t\tvar keys = Object.keys(source);\n\t\t\tvar klen = keys.length;\n\t\t\tvar k = 0;\n\n\t\t\tfor (; k < klen; ++k) {\n\t\t\t\ttarget[keys[k]] = helpers.clone(source[keys[k]]);\n\t\t\t}\n\n\t\t\treturn target;\n\t\t}\n\n\t\treturn source;\n\t},\n\n\t/**\n\t * The default merger when Chart.helpers.merge is called without merger option.\n\t * Note(SB): this method is also used by configMerge and scaleMerge as fallback.\n\t * @private\n\t */\n\t_merger: function(key, target, source, options) {\n\t\tvar tval = target[key];\n\t\tvar sval = source[key];\n\n\t\tif (helpers.isObject(tval) && helpers.isObject(sval)) {\n\t\t\thelpers.merge(tval, sval, options);\n\t\t} else {\n\t\t\ttarget[key] = helpers.clone(sval);\n\t\t}\n\t},\n\n\t/**\n\t * Merges source[key] in target[key] only if target[key] is undefined.\n\t * @private\n\t */\n\t_mergerIf: function(key, target, source) {\n\t\tvar tval = target[key];\n\t\tvar sval = source[key];\n\n\t\tif (helpers.isObject(tval) && helpers.isObject(sval)) {\n\t\t\thelpers.mergeIf(tval, sval);\n\t\t} else if (!target.hasOwnProperty(key)) {\n\t\t\ttarget[key] = helpers.clone(sval);\n\t\t}\n\t},\n\n\t/**\n\t * Recursively deep copies `source` properties into `target` with the given `options`.\n\t * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\n\t * @param {Object} target - The target object in which all sources are merged into.\n\t * @param {Object|Array(Object)} source - Object(s) to merge into `target`.\n\t * @param {Object} [options] - Merging options:\n\t * @param {Function} [options.merger] - The merge method (key, target, source, options)\n\t * @returns {Object} The `target` object.\n\t */\n\tmerge: function(target, source, options) {\n\t\tvar sources = helpers.isArray(source) ? source : [source];\n\t\tvar ilen = sources.length;\n\t\tvar merge, i, keys, klen, k;\n\n\t\tif (!helpers.isObject(target)) {\n\t\t\treturn target;\n\t\t}\n\n\t\toptions = options || {};\n\t\tmerge = options.merger || helpers._merger;\n\n\t\tfor (i = 0; i < ilen; ++i) {\n\t\t\tsource = sources[i];\n\t\t\tif (!helpers.isObject(source)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tkeys = Object.keys(source);\n\t\t\tfor (k = 0, klen = keys.length; k < klen; ++k) {\n\t\t\t\tmerge(keys[k], target, source, options);\n\t\t\t}\n\t\t}\n\n\t\treturn target;\n\t},\n\n\t/**\n\t * Recursively deep copies `source` properties into `target` *only* if not defined in target.\n\t * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\n\t * @param {Object} target - The target object in which all sources are merged into.\n\t * @param {Object|Array(Object)} source - Object(s) to merge into `target`.\n\t * @returns {Object} The `target` object.\n\t */\n\tmergeIf: function(target, source) {\n\t\treturn helpers.merge(target, source, {merger: helpers._mergerIf});\n\t},\n\n\t/**\n\t * Applies the contents of two or more objects together into the first object.\n\t * @param {Object} target - The target object in which all objects are merged into.\n\t * @param {Object} arg1 - Object containing additional properties to merge in target.\n\t * @param {Object} argN - Additional objects containing properties to merge in target.\n\t * @returns {Object} The `target` object.\n\t */\n\textend: function(target) {\n\t\tvar setFn = function(value, key) {\n\t\t\ttarget[key] = value;\n\t\t};\n\t\tfor (var i = 1, ilen = arguments.length; i < ilen; ++i) {\n\t\t\thelpers.each(arguments[i], setFn);\n\t\t}\n\t\treturn target;\n\t},\n\n\t/**\n\t * Basic javascript inheritance based on the model created in Backbone.js\n\t */\n\tinherits: function(extensions) {\n\t\tvar me = this;\n\t\tvar ChartElement = (extensions && extensions.hasOwnProperty('constructor')) ? extensions.constructor : function() {\n\t\t\treturn me.apply(this, arguments);\n\t\t};\n\n\t\tvar Surrogate = function() {\n\t\t\tthis.constructor = ChartElement;\n\t\t};\n\n\t\tSurrogate.prototype = me.prototype;\n\t\tChartElement.prototype = new Surrogate();\n\t\tChartElement.extend = helpers.inherits;\n\n\t\tif (extensions) {\n\t\t\thelpers.extend(ChartElement.prototype, extensions);\n\t\t}\n\n\t\tChartElement.__super__ = me.prototype;\n\t\treturn ChartElement;\n\t}\n};\n\nmodule.exports = helpers;\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use Chart.helpers.callback instead.\n * @function Chart.helpers.callCallback\n * @deprecated since version 2.6.0\n * @todo remove at version 3\n * @private\n */\nhelpers.callCallback = helpers.callback;\n\n/**\n * Provided for backward compatibility, use Array.prototype.indexOf instead.\n * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+\n * @function Chart.helpers.indexOf\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.indexOf = function(array, item, fromIndex) {\n\treturn Array.prototype.indexOf.call(array, item, fromIndex);\n};\n\n/**\n * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead.\n * @function Chart.helpers.getValueOrDefault\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.getValueOrDefault = helpers.valueOrDefault;\n\n/**\n * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead.\n * @function Chart.helpers.getValueAtIndexOrDefault\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.getValueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\n},{}],44:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(43);\n\n/**\n * Easing functions adapted from Robert Penner's easing equations.\n * @namespace Chart.helpers.easingEffects\n * @see http://www.robertpenner.com/easing/\n */\nvar effects = {\n\tlinear: function(t) {\n\t\treturn t;\n\t},\n\n\teaseInQuad: function(t) {\n\t\treturn t * t;\n\t},\n\n\teaseOutQuad: function(t) {\n\t\treturn -t * (t - 2);\n\t},\n\n\teaseInOutQuad: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * t * t;\n\t\t}\n\t\treturn -0.5 * ((--t) * (t - 2) - 1);\n\t},\n\n\teaseInCubic: function(t) {\n\t\treturn t * t * t;\n\t},\n\n\teaseOutCubic: function(t) {\n\t\treturn (t = t - 1) * t * t + 1;\n\t},\n\n\teaseInOutCubic: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * t * t * t;\n\t\t}\n\t\treturn 0.5 * ((t -= 2) * t * t + 2);\n\t},\n\n\teaseInQuart: function(t) {\n\t\treturn t * t * t * t;\n\t},\n\n\teaseOutQuart: function(t) {\n\t\treturn -((t = t - 1) * t * t * t - 1);\n\t},\n\n\teaseInOutQuart: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * t * t * t * t;\n\t\t}\n\t\treturn -0.5 * ((t -= 2) * t * t * t - 2);\n\t},\n\n\teaseInQuint: function(t) {\n\t\treturn t * t * t * t * t;\n\t},\n\n\teaseOutQuint: function(t) {\n\t\treturn (t = t - 1) * t * t * t * t + 1;\n\t},\n\n\teaseInOutQuint: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * t * t * t * t * t;\n\t\t}\n\t\treturn 0.5 * ((t -= 2) * t * t * t * t + 2);\n\t},\n\n\teaseInSine: function(t) {\n\t\treturn -Math.cos(t * (Math.PI / 2)) + 1;\n\t},\n\n\teaseOutSine: function(t) {\n\t\treturn Math.sin(t * (Math.PI / 2));\n\t},\n\n\teaseInOutSine: function(t) {\n\t\treturn -0.5 * (Math.cos(Math.PI * t) - 1);\n\t},\n\n\teaseInExpo: function(t) {\n\t\treturn (t === 0) ? 0 : Math.pow(2, 10 * (t - 1));\n\t},\n\n\teaseOutExpo: function(t) {\n\t\treturn (t === 1) ? 1 : -Math.pow(2, -10 * t) + 1;\n\t},\n\n\teaseInOutExpo: function(t) {\n\t\tif (t === 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (t === 1) {\n\t\t\treturn 1;\n\t\t}\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * Math.pow(2, 10 * (t - 1));\n\t\t}\n\t\treturn 0.5 * (-Math.pow(2, -10 * --t) + 2);\n\t},\n\n\teaseInCirc: function(t) {\n\t\tif (t >= 1) {\n\t\t\treturn t;\n\t\t}\n\t\treturn -(Math.sqrt(1 - t * t) - 1);\n\t},\n\n\teaseOutCirc: function(t) {\n\t\treturn Math.sqrt(1 - (t = t - 1) * t);\n\t},\n\n\teaseInOutCirc: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn -0.5 * (Math.sqrt(1 - t * t) - 1);\n\t\t}\n\t\treturn 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n\t},\n\n\teaseInElastic: function(t) {\n\t\tvar s = 1.70158;\n\t\tvar p = 0;\n\t\tvar a = 1;\n\t\tif (t === 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (t === 1) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (!p) {\n\t\t\tp = 0.3;\n\t\t}\n\t\tif (a < 1) {\n\t\t\ta = 1;\n\t\t\ts = p / 4;\n\t\t} else {\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\n\t\t}\n\t\treturn -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\n\t},\n\n\teaseOutElastic: function(t) {\n\t\tvar s = 1.70158;\n\t\tvar p = 0;\n\t\tvar a = 1;\n\t\tif (t === 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (t === 1) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (!p) {\n\t\t\tp = 0.3;\n\t\t}\n\t\tif (a < 1) {\n\t\t\ta = 1;\n\t\t\ts = p / 4;\n\t\t} else {\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\n\t\t}\n\t\treturn a * Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1;\n\t},\n\n\teaseInOutElastic: function(t) {\n\t\tvar s = 1.70158;\n\t\tvar p = 0;\n\t\tvar a = 1;\n\t\tif (t === 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif ((t /= 0.5) === 2) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (!p) {\n\t\t\tp = 0.45;\n\t\t}\n\t\tif (a < 1) {\n\t\t\ta = 1;\n\t\t\ts = p / 4;\n\t\t} else {\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\n\t\t}\n\t\tif (t < 1) {\n\t\t\treturn -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\n\t\t}\n\t\treturn a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p) * 0.5 + 1;\n\t},\n\teaseInBack: function(t) {\n\t\tvar s = 1.70158;\n\t\treturn t * t * ((s + 1) * t - s);\n\t},\n\n\teaseOutBack: function(t) {\n\t\tvar s = 1.70158;\n\t\treturn (t = t - 1) * t * ((s + 1) * t + s) + 1;\n\t},\n\n\teaseInOutBack: function(t) {\n\t\tvar s = 1.70158;\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * (t * t * (((s *= (1.525)) + 1) * t - s));\n\t\t}\n\t\treturn 0.5 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2);\n\t},\n\n\teaseInBounce: function(t) {\n\t\treturn 1 - effects.easeOutBounce(1 - t);\n\t},\n\n\teaseOutBounce: function(t) {\n\t\tif (t < (1 / 2.75)) {\n\t\t\treturn 7.5625 * t * t;\n\t\t}\n\t\tif (t < (2 / 2.75)) {\n\t\t\treturn 7.5625 * (t -= (1.5 / 2.75)) * t + 0.75;\n\t\t}\n\t\tif (t < (2.5 / 2.75)) {\n\t\t\treturn 7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375;\n\t\t}\n\t\treturn 7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375;\n\t},\n\n\teaseInOutBounce: function(t) {\n\t\tif (t < 0.5) {\n\t\t\treturn effects.easeInBounce(t * 2) * 0.5;\n\t\t}\n\t\treturn effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5;\n\t}\n};\n\nmodule.exports = {\n\teffects: effects\n};\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use Chart.helpers.easing.effects instead.\n * @function Chart.helpers.easingEffects\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.easingEffects = effects;\n\n},{\"43\":43}],45:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(43);\n\n/**\n * @alias Chart.helpers.options\n * @namespace\n */\nmodule.exports = {\n\t/**\n\t * Converts the given line height `value` in pixels for a specific font `size`.\n\t * @param {Number|String} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').\n\t * @param {Number} size - The font size (in pixels) used to resolve relative `value`.\n\t * @returns {Number} The effective line height in pixels (size * 1.2 if value is invalid).\n\t * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height\n\t * @since 2.7.0\n\t */\n\ttoLineHeight: function(value, size) {\n\t\tvar matches = ('' + value).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);\n\t\tif (!matches || matches[1] === 'normal') {\n\t\t\treturn size * 1.2;\n\t\t}\n\n\t\tvalue = +matches[2];\n\n\t\tswitch (matches[3]) {\n\t\tcase 'px':\n\t\t\treturn value;\n\t\tcase '%':\n\t\t\tvalue /= 100;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\treturn size * value;\n\t},\n\n\t/**\n\t * Converts the given value into a padding object with pre-computed width/height.\n\t * @param {Number|Object} value - If a number, set the value to all TRBL component,\n\t *  else, if and object, use defined properties and sets undefined ones to 0.\n\t * @returns {Object} The padding values (top, right, bottom, left, width, height)\n\t * @since 2.7.0\n\t */\n\ttoPadding: function(value) {\n\t\tvar t, r, b, l;\n\n\t\tif (helpers.isObject(value)) {\n\t\t\tt = +value.top || 0;\n\t\t\tr = +value.right || 0;\n\t\t\tb = +value.bottom || 0;\n\t\t\tl = +value.left || 0;\n\t\t} else {\n\t\t\tt = r = b = l = +value || 0;\n\t\t}\n\n\t\treturn {\n\t\t\ttop: t,\n\t\t\tright: r,\n\t\t\tbottom: b,\n\t\t\tleft: l,\n\t\t\theight: t + b,\n\t\t\twidth: l + r\n\t\t};\n\t},\n\n\t/**\n\t * Evaluates the given `inputs` sequentially and returns the first defined value.\n\t * @param {Array[]} inputs - An array of values, falling back to the last value.\n\t * @param {Object} [context] - If defined and the current value is a function, the value\n\t * is called with `context` as first argument and the result becomes the new input.\n\t * @param {Number} [index] - If defined and the current value is an array, the value\n\t * at `index` become the new input.\n\t * @since 2.7.0\n\t */\n\tresolve: function(inputs, context, index) {\n\t\tvar i, ilen, value;\n\n\t\tfor (i = 0, ilen = inputs.length; i < ilen; ++i) {\n\t\t\tvalue = inputs[i];\n\t\t\tif (value === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (context !== undefined && typeof value === 'function') {\n\t\t\t\tvalue = value(context);\n\t\t\t}\n\t\t\tif (index !== undefined && helpers.isArray(value)) {\n\t\t\t\tvalue = value[index];\n\t\t\t}\n\t\t\tif (value !== undefined) {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}\n};\n\n},{\"43\":43}],46:[function(require,module,exports){\n'use strict';\n\nmodule.exports = require(43);\nmodule.exports.easing = require(44);\nmodule.exports.canvas = require(42);\nmodule.exports.options = require(45);\n\n},{\"42\":42,\"43\":43,\"44\":44,\"45\":45}],47:[function(require,module,exports){\n/**\n * Platform fallback implementation (minimal).\n * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939\n */\n\nmodule.exports = {\n\tacquireContext: function(item) {\n\t\tif (item && item.canvas) {\n\t\t\t// Support for any object associated to a canvas (including a context2d)\n\t\t\titem = item.canvas;\n\t\t}\n\n\t\treturn item && item.getContext('2d') || null;\n\t}\n};\n\n},{}],48:[function(require,module,exports){\n/**\n * Chart.Platform implementation for targeting a web browser\n */\n\n'use strict';\n\nvar helpers = require(46);\n\nvar EXPANDO_KEY = '$chartjs';\nvar CSS_PREFIX = 'chartjs-';\nvar CSS_RENDER_MONITOR = CSS_PREFIX + 'render-monitor';\nvar CSS_RENDER_ANIMATION = CSS_PREFIX + 'render-animation';\nvar ANIMATION_START_EVENTS = ['animationstart', 'webkitAnimationStart'];\n\n/**\n * DOM event types -> Chart.js event types.\n * Note: only events with different types are mapped.\n * @see https://developer.mozilla.org/en-US/docs/Web/Events\n */\nvar EVENT_TYPES = {\n\ttouchstart: 'mousedown',\n\ttouchmove: 'mousemove',\n\ttouchend: 'mouseup',\n\tpointerenter: 'mouseenter',\n\tpointerdown: 'mousedown',\n\tpointermove: 'mousemove',\n\tpointerup: 'mouseup',\n\tpointerleave: 'mouseout',\n\tpointerout: 'mouseout'\n};\n\n/**\n * The \"used\" size is the final value of a dimension property after all calculations have\n * been performed. This method uses the computed style of `element` but returns undefined\n * if the computed style is not expressed in pixels. That can happen in some cases where\n * `element` has a size relative to its parent and this last one is not yet displayed,\n * for example because of `display: none` on a parent node.\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value\n * @returns {Number} Size in pixels or undefined if unknown.\n */\nfunction readUsedSize(element, property) {\n\tvar value = helpers.getStyle(element, property);\n\tvar matches = value && value.match(/^(\\d+)(\\.\\d+)?px$/);\n\treturn matches ? Number(matches[1]) : undefined;\n}\n\n/**\n * Initializes the canvas style and render size without modifying the canvas display size,\n * since responsiveness is handled by the controller.resize() method. The config is used\n * to determine the aspect ratio to apply in case no explicit height has been specified.\n */\nfunction initCanvas(canvas, config) {\n\tvar style = canvas.style;\n\n\t// NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it\n\t// returns null or '' if no explicit value has been set to the canvas attribute.\n\tvar renderHeight = canvas.getAttribute('height');\n\tvar renderWidth = canvas.getAttribute('width');\n\n\t// Chart.js modifies some canvas values that we want to restore on destroy\n\tcanvas[EXPANDO_KEY] = {\n\t\tinitial: {\n\t\t\theight: renderHeight,\n\t\t\twidth: renderWidth,\n\t\t\tstyle: {\n\t\t\t\tdisplay: style.display,\n\t\t\t\theight: style.height,\n\t\t\t\twidth: style.width\n\t\t\t}\n\t\t}\n\t};\n\n\t// Force canvas to display as block to avoid extra space caused by inline\n\t// elements, which would interfere with the responsive resize process.\n\t// https://github.com/chartjs/Chart.js/issues/2538\n\tstyle.display = style.display || 'block';\n\n\tif (renderWidth === null || renderWidth === '') {\n\t\tvar displayWidth = readUsedSize(canvas, 'width');\n\t\tif (displayWidth !== undefined) {\n\t\t\tcanvas.width = displayWidth;\n\t\t}\n\t}\n\n\tif (renderHeight === null || renderHeight === '') {\n\t\tif (canvas.style.height === '') {\n\t\t\t// If no explicit render height and style height, let's apply the aspect ratio,\n\t\t\t// which one can be specified by the user but also by charts as default option\n\t\t\t// (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2.\n\t\t\tcanvas.height = canvas.width / (config.options.aspectRatio || 2);\n\t\t} else {\n\t\t\tvar displayHeight = readUsedSize(canvas, 'height');\n\t\t\tif (displayWidth !== undefined) {\n\t\t\t\tcanvas.height = displayHeight;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn canvas;\n}\n\n/**\n * Detects support for options object argument in addEventListener.\n * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\n * @private\n */\nvar supportsEventListenerOptions = (function() {\n\tvar supports = false;\n\ttry {\n\t\tvar options = Object.defineProperty({}, 'passive', {\n\t\t\tget: function() {\n\t\t\t\tsupports = true;\n\t\t\t}\n\t\t});\n\t\twindow.addEventListener('e', null, options);\n\t} catch (e) {\n\t\t// continue regardless of error\n\t}\n\treturn supports;\n}());\n\n// Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events.\n// https://github.com/chartjs/Chart.js/issues/4287\nvar eventListenerOptions = supportsEventListenerOptions ? {passive: true} : false;\n\nfunction addEventListener(node, type, listener) {\n\tnode.addEventListener(type, listener, eventListenerOptions);\n}\n\nfunction removeEventListener(node, type, listener) {\n\tnode.removeEventListener(type, listener, eventListenerOptions);\n}\n\nfunction createEvent(type, chart, x, y, nativeEvent) {\n\treturn {\n\t\ttype: type,\n\t\tchart: chart,\n\t\tnative: nativeEvent || null,\n\t\tx: x !== undefined ? x : null,\n\t\ty: y !== undefined ? y : null,\n\t};\n}\n\nfunction fromNativeEvent(event, chart) {\n\tvar type = EVENT_TYPES[event.type] || event.type;\n\tvar pos = helpers.getRelativePosition(event, chart);\n\treturn createEvent(type, chart, pos.x, pos.y, event);\n}\n\nfunction throttled(fn, thisArg) {\n\tvar ticking = false;\n\tvar args = [];\n\n\treturn function() {\n\t\targs = Array.prototype.slice.call(arguments);\n\t\tthisArg = thisArg || this;\n\n\t\tif (!ticking) {\n\t\t\tticking = true;\n\t\t\thelpers.requestAnimFrame.call(window, function() {\n\t\t\t\tticking = false;\n\t\t\t\tfn.apply(thisArg, args);\n\t\t\t});\n\t\t}\n\t};\n}\n\n// Implementation based on https://github.com/marcj/css-element-queries\nfunction createResizer(handler) {\n\tvar resizer = document.createElement('div');\n\tvar cls = CSS_PREFIX + 'size-monitor';\n\tvar maxSize = 1000000;\n\tvar style =\n\t\t'position:absolute;' +\n\t\t'left:0;' +\n\t\t'top:0;' +\n\t\t'right:0;' +\n\t\t'bottom:0;' +\n\t\t'overflow:hidden;' +\n\t\t'pointer-events:none;' +\n\t\t'visibility:hidden;' +\n\t\t'z-index:-1;';\n\n\tresizer.style.cssText = style;\n\tresizer.className = cls;\n\tresizer.innerHTML =\n\t\t'<div class=\"' + cls + '-expand\" style=\"' + style + '\">' +\n\t\t\t'<div style=\"' +\n\t\t\t\t'position:absolute;' +\n\t\t\t\t'width:' + maxSize + 'px;' +\n\t\t\t\t'height:' + maxSize + 'px;' +\n\t\t\t\t'left:0;' +\n\t\t\t\t'top:0\">' +\n\t\t\t'</div>' +\n\t\t'</div>' +\n\t\t'<div class=\"' + cls + '-shrink\" style=\"' + style + '\">' +\n\t\t\t'<div style=\"' +\n\t\t\t\t'position:absolute;' +\n\t\t\t\t'width:200%;' +\n\t\t\t\t'height:200%;' +\n\t\t\t\t'left:0; ' +\n\t\t\t\t'top:0\">' +\n\t\t\t'</div>' +\n\t\t'</div>';\n\n\tvar expand = resizer.childNodes[0];\n\tvar shrink = resizer.childNodes[1];\n\n\tresizer._reset = function() {\n\t\texpand.scrollLeft = maxSize;\n\t\texpand.scrollTop = maxSize;\n\t\tshrink.scrollLeft = maxSize;\n\t\tshrink.scrollTop = maxSize;\n\t};\n\tvar onScroll = function() {\n\t\tresizer._reset();\n\t\thandler();\n\t};\n\n\taddEventListener(expand, 'scroll', onScroll.bind(expand, 'expand'));\n\taddEventListener(shrink, 'scroll', onScroll.bind(shrink, 'shrink'));\n\n\treturn resizer;\n}\n\n// https://davidwalsh.name/detect-node-insertion\nfunction watchForRender(node, handler) {\n\tvar expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\n\tvar proxy = expando.renderProxy = function(e) {\n\t\tif (e.animationName === CSS_RENDER_ANIMATION) {\n\t\t\thandler();\n\t\t}\n\t};\n\n\thelpers.each(ANIMATION_START_EVENTS, function(type) {\n\t\taddEventListener(node, type, proxy);\n\t});\n\n\t// #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class\n\t// is removed then added back immediately (same animation frame?). Accessing the\n\t// `offsetParent` property will force a reflow and re-evaluate the CSS animation.\n\t// https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics\n\t// https://github.com/chartjs/Chart.js/issues/4737\n\texpando.reflow = !!node.offsetParent;\n\n\tnode.classList.add(CSS_RENDER_MONITOR);\n}\n\nfunction unwatchForRender(node) {\n\tvar expando = node[EXPANDO_KEY] || {};\n\tvar proxy = expando.renderProxy;\n\n\tif (proxy) {\n\t\thelpers.each(ANIMATION_START_EVENTS, function(type) {\n\t\t\tremoveEventListener(node, type, proxy);\n\t\t});\n\n\t\tdelete expando.renderProxy;\n\t}\n\n\tnode.classList.remove(CSS_RENDER_MONITOR);\n}\n\nfunction addResizeListener(node, listener, chart) {\n\tvar expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\n\n\t// Let's keep track of this added resizer and thus avoid DOM query when removing it.\n\tvar resizer = expando.resizer = createResizer(throttled(function() {\n\t\tif (expando.resizer) {\n\t\t\treturn listener(createEvent('resize', chart));\n\t\t}\n\t}));\n\n\t// The resizer needs to be attached to the node parent, so we first need to be\n\t// sure that `node` is attached to the DOM before injecting the resizer element.\n\twatchForRender(node, function() {\n\t\tif (expando.resizer) {\n\t\t\tvar container = node.parentNode;\n\t\t\tif (container && container !== resizer.parentNode) {\n\t\t\t\tcontainer.insertBefore(resizer, container.firstChild);\n\t\t\t}\n\n\t\t\t// The container size might have changed, let's reset the resizer state.\n\t\t\tresizer._reset();\n\t\t}\n\t});\n}\n\nfunction removeResizeListener(node) {\n\tvar expando = node[EXPANDO_KEY] || {};\n\tvar resizer = expando.resizer;\n\n\tdelete expando.resizer;\n\tunwatchForRender(node);\n\n\tif (resizer && resizer.parentNode) {\n\t\tresizer.parentNode.removeChild(resizer);\n\t}\n}\n\nfunction injectCSS(platform, css) {\n\t// http://stackoverflow.com/q/3922139\n\tvar style = platform._style || document.createElement('style');\n\tif (!platform._style) {\n\t\tplatform._style = style;\n\t\tcss = '/* Chart.js */\\n' + css;\n\t\tstyle.setAttribute('type', 'text/css');\n\t\tdocument.getElementsByTagName('head')[0].appendChild(style);\n\t}\n\n\tstyle.appendChild(document.createTextNode(css));\n}\n\nmodule.exports = {\n\t/**\n\t * This property holds whether this platform is enabled for the current environment.\n\t * Currently used by platform.js to select the proper implementation.\n\t * @private\n\t */\n\t_enabled: typeof window !== 'undefined' && typeof document !== 'undefined',\n\n\tinitialize: function() {\n\t\tvar keyframes = 'from{opacity:0.99}to{opacity:1}';\n\n\t\tinjectCSS(this,\n\t\t\t// DOM rendering detection\n\t\t\t// https://davidwalsh.name/detect-node-insertion\n\t\t\t'@-webkit-keyframes ' + CSS_RENDER_ANIMATION + '{' + keyframes + '}' +\n\t\t\t'@keyframes ' + CSS_RENDER_ANIMATION + '{' + keyframes + '}' +\n\t\t\t'.' + CSS_RENDER_MONITOR + '{' +\n\t\t\t\t'-webkit-animation:' + CSS_RENDER_ANIMATION + ' 0.001s;' +\n\t\t\t\t'animation:' + CSS_RENDER_ANIMATION + ' 0.001s;' +\n\t\t\t'}'\n\t\t);\n\t},\n\n\tacquireContext: function(item, config) {\n\t\tif (typeof item === 'string') {\n\t\t\titem = document.getElementById(item);\n\t\t} else if (item.length) {\n\t\t\t// Support for array based queries (such as jQuery)\n\t\t\titem = item[0];\n\t\t}\n\n\t\tif (item && item.canvas) {\n\t\t\t// Support for any object associated to a canvas (including a context2d)\n\t\t\titem = item.canvas;\n\t\t}\n\n\t\t// To prevent canvas fingerprinting, some add-ons undefine the getContext\n\t\t// method, for example: https://github.com/kkapsner/CanvasBlocker\n\t\t// https://github.com/chartjs/Chart.js/issues/2807\n\t\tvar context = item && item.getContext && item.getContext('2d');\n\n\t\t// `instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is\n\t\t// inside an iframe or when running in a protected environment. We could guess the\n\t\t// types from their toString() value but let's keep things flexible and assume it's\n\t\t// a sufficient condition if the item has a context2D which has item as `canvas`.\n\t\t// https://github.com/chartjs/Chart.js/issues/3887\n\t\t// https://github.com/chartjs/Chart.js/issues/4102\n\t\t// https://github.com/chartjs/Chart.js/issues/4152\n\t\tif (context && context.canvas === item) {\n\t\t\tinitCanvas(item, config);\n\t\t\treturn context;\n\t\t}\n\n\t\treturn null;\n\t},\n\n\treleaseContext: function(context) {\n\t\tvar canvas = context.canvas;\n\t\tif (!canvas[EXPANDO_KEY]) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar initial = canvas[EXPANDO_KEY].initial;\n\t\t['height', 'width'].forEach(function(prop) {\n\t\t\tvar value = initial[prop];\n\t\t\tif (helpers.isNullOrUndef(value)) {\n\t\t\t\tcanvas.removeAttribute(prop);\n\t\t\t} else {\n\t\t\t\tcanvas.setAttribute(prop, value);\n\t\t\t}\n\t\t});\n\n\t\thelpers.each(initial.style || {}, function(value, key) {\n\t\t\tcanvas.style[key] = value;\n\t\t});\n\n\t\t// The canvas render size might have been changed (and thus the state stack discarded),\n\t\t// we can't use save() and restore() to restore the initial state. So make sure that at\n\t\t// least the canvas context is reset to the default state by setting the canvas width.\n\t\t// https://www.w3.org/TR/2011/WD-html5-20110525/the-canvas-element.html\n\t\tcanvas.width = canvas.width;\n\n\t\tdelete canvas[EXPANDO_KEY];\n\t},\n\n\taddEventListener: function(chart, type, listener) {\n\t\tvar canvas = chart.canvas;\n\t\tif (type === 'resize') {\n\t\t\t// Note: the resize event is not supported on all browsers.\n\t\t\taddResizeListener(canvas, listener, chart);\n\t\t\treturn;\n\t\t}\n\n\t\tvar expando = listener[EXPANDO_KEY] || (listener[EXPANDO_KEY] = {});\n\t\tvar proxies = expando.proxies || (expando.proxies = {});\n\t\tvar proxy = proxies[chart.id + '_' + type] = function(event) {\n\t\t\tlistener(fromNativeEvent(event, chart));\n\t\t};\n\n\t\taddEventListener(canvas, type, proxy);\n\t},\n\n\tremoveEventListener: function(chart, type, listener) {\n\t\tvar canvas = chart.canvas;\n\t\tif (type === 'resize') {\n\t\t\t// Note: the resize event is not supported on all browsers.\n\t\t\tremoveResizeListener(canvas, listener);\n\t\t\treturn;\n\t\t}\n\n\t\tvar expando = listener[EXPANDO_KEY] || {};\n\t\tvar proxies = expando.proxies || {};\n\t\tvar proxy = proxies[chart.id + '_' + type];\n\t\tif (!proxy) {\n\t\t\treturn;\n\t\t}\n\n\t\tremoveEventListener(canvas, type, proxy);\n\t}\n};\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use EventTarget.addEventListener instead.\n * EventTarget.addEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\n * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\n * @function Chart.helpers.addEvent\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.addEvent = addEventListener;\n\n/**\n * Provided for backward compatibility, use EventTarget.removeEventListener instead.\n * EventTarget.removeEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\n * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener\n * @function Chart.helpers.removeEvent\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.removeEvent = removeEventListener;\n\n},{\"46\":46}],49:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\nvar basic = require(47);\nvar dom = require(48);\n\n// @TODO Make possible to select another platform at build time.\nvar implementation = dom._enabled ? dom : basic;\n\n/**\n * @namespace Chart.platform\n * @see https://chartjs.gitbooks.io/proposals/content/Platform.html\n * @since 2.4.0\n */\nmodule.exports = helpers.extend({\n\t/**\n\t * @since 2.7.0\n\t */\n\tinitialize: function() {},\n\n\t/**\n\t * Called at chart construction time, returns a context2d instance implementing\n\t * the [W3C Canvas 2D Context API standard]{@link https://www.w3.org/TR/2dcontext/}.\n\t * @param {*} item - The native item from which to acquire context (platform specific)\n\t * @param {Object} options - The chart options\n\t * @returns {CanvasRenderingContext2D} context2d instance\n\t */\n\tacquireContext: function() {},\n\n\t/**\n\t * Called at chart destruction time, releases any resources associated to the context\n\t * previously returned by the acquireContext() method.\n\t * @param {CanvasRenderingContext2D} context - The context2d instance\n\t * @returns {Boolean} true if the method succeeded, else false\n\t */\n\treleaseContext: function() {},\n\n\t/**\n\t * Registers the specified listener on the given chart.\n\t * @param {Chart} chart - Chart from which to listen for event\n\t * @param {String} type - The ({@link IEvent}) type to listen for\n\t * @param {Function} listener - Receives a notification (an object that implements\n\t * the {@link IEvent} interface) when an event of the specified type occurs.\n\t */\n\taddEventListener: function() {},\n\n\t/**\n\t * Removes the specified listener previously registered with addEventListener.\n\t * @param {Chart} chart -Chart from which to remove the listener\n\t * @param {String} type - The ({@link IEvent}) type to remove\n\t * @param {Function} listener - The listener function to remove from the event target.\n\t */\n\tremoveEventListener: function() {}\n\n}, implementation);\n\n/**\n * @interface IPlatform\n * Allows abstracting platform dependencies away from the chart\n * @borrows Chart.platform.acquireContext as acquireContext\n * @borrows Chart.platform.releaseContext as releaseContext\n * @borrows Chart.platform.addEventListener as addEventListener\n * @borrows Chart.platform.removeEventListener as removeEventListener\n */\n\n/**\n * @interface IEvent\n * @prop {String} type - The event type name, possible values are:\n * 'contextmenu', 'mouseenter', 'mousedown', 'mousemove', 'mouseup', 'mouseout',\n * 'click', 'dblclick', 'keydown', 'keypress', 'keyup' and 'resize'\n * @prop {*} native - The original native event (null for emulated events, e.g. 'resize')\n * @prop {Number} x - The mouse x position, relative to the canvas (null for incompatible events)\n * @prop {Number} y - The mouse y position, relative to the canvas (null for incompatible events)\n */\n\n},{\"46\":46,\"47\":47,\"48\":48}],50:[function(require,module,exports){\n'use strict';\n\nmodule.exports = {};\nmodule.exports.filler = require(51);\nmodule.exports.legend = require(52);\nmodule.exports.title = require(53);\n\n},{\"51\":51,\"52\":52,\"53\":53}],51:[function(require,module,exports){\n/**\n * Plugin based on discussion from the following Chart.js issues:\n * @see https://github.com/chartjs/Chart.js/issues/2380#issuecomment-279961569\n * @see https://github.com/chartjs/Chart.js/issues/2440#issuecomment-256461897\n */\n\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\tplugins: {\n\t\tfiller: {\n\t\t\tpropagate: true\n\t\t}\n\t}\n});\n\nvar mappers = {\n\tdataset: function(source) {\n\t\tvar index = source.fill;\n\t\tvar chart = source.chart;\n\t\tvar meta = chart.getDatasetMeta(index);\n\t\tvar visible = meta && chart.isDatasetVisible(index);\n\t\tvar points = (visible && meta.dataset._children) || [];\n\t\tvar length = points.length || 0;\n\n\t\treturn !length ? null : function(point, i) {\n\t\t\treturn (i < length && points[i]._view) || null;\n\t\t};\n\t},\n\n\tboundary: function(source) {\n\t\tvar boundary = source.boundary;\n\t\tvar x = boundary ? boundary.x : null;\n\t\tvar y = boundary ? boundary.y : null;\n\n\t\treturn function(point) {\n\t\t\treturn {\n\t\t\t\tx: x === null ? point.x : x,\n\t\t\t\ty: y === null ? point.y : y,\n\t\t\t};\n\t\t};\n\t}\n};\n\n// @todo if (fill[0] === '#')\nfunction decodeFill(el, index, count) {\n\tvar model = el._model || {};\n\tvar fill = model.fill;\n\tvar target;\n\n\tif (fill === undefined) {\n\t\tfill = !!model.backgroundColor;\n\t}\n\n\tif (fill === false || fill === null) {\n\t\treturn false;\n\t}\n\n\tif (fill === true) {\n\t\treturn 'origin';\n\t}\n\n\ttarget = parseFloat(fill, 10);\n\tif (isFinite(target) && Math.floor(target) === target) {\n\t\tif (fill[0] === '-' || fill[0] === '+') {\n\t\t\ttarget = index + target;\n\t\t}\n\n\t\tif (target === index || target < 0 || target >= count) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn target;\n\t}\n\n\tswitch (fill) {\n\t// compatibility\n\tcase 'bottom':\n\t\treturn 'start';\n\tcase 'top':\n\t\treturn 'end';\n\tcase 'zero':\n\t\treturn 'origin';\n\t// supported boundaries\n\tcase 'origin':\n\tcase 'start':\n\tcase 'end':\n\t\treturn fill;\n\t// invalid fill values\n\tdefault:\n\t\treturn false;\n\t}\n}\n\nfunction computeBoundary(source) {\n\tvar model = source.el._model || {};\n\tvar scale = source.el._scale || {};\n\tvar fill = source.fill;\n\tvar target = null;\n\tvar horizontal;\n\n\tif (isFinite(fill)) {\n\t\treturn null;\n\t}\n\n\t// Backward compatibility: until v3, we still need to support boundary values set on\n\t// the model (scaleTop, scaleBottom and scaleZero) because some external plugins and\n\t// controllers might still use it (e.g. the Smith chart).\n\n\tif (fill === 'start') {\n\t\ttarget = model.scaleBottom === undefined ? scale.bottom : model.scaleBottom;\n\t} else if (fill === 'end') {\n\t\ttarget = model.scaleTop === undefined ? scale.top : model.scaleTop;\n\t} else if (model.scaleZero !== undefined) {\n\t\ttarget = model.scaleZero;\n\t} else if (scale.getBasePosition) {\n\t\ttarget = scale.getBasePosition();\n\t} else if (scale.getBasePixel) {\n\t\ttarget = scale.getBasePixel();\n\t}\n\n\tif (target !== undefined && target !== null) {\n\t\tif (target.x !== undefined && target.y !== undefined) {\n\t\t\treturn target;\n\t\t}\n\n\t\tif (typeof target === 'number' && isFinite(target)) {\n\t\t\thorizontal = scale.isHorizontal();\n\t\t\treturn {\n\t\t\t\tx: horizontal ? target : null,\n\t\t\t\ty: horizontal ? null : target\n\t\t\t};\n\t\t}\n\t}\n\n\treturn null;\n}\n\nfunction resolveTarget(sources, index, propagate) {\n\tvar source = sources[index];\n\tvar fill = source.fill;\n\tvar visited = [index];\n\tvar target;\n\n\tif (!propagate) {\n\t\treturn fill;\n\t}\n\n\twhile (fill !== false && visited.indexOf(fill) === -1) {\n\t\tif (!isFinite(fill)) {\n\t\t\treturn fill;\n\t\t}\n\n\t\ttarget = sources[fill];\n\t\tif (!target) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (target.visible) {\n\t\t\treturn fill;\n\t\t}\n\n\t\tvisited.push(fill);\n\t\tfill = target.fill;\n\t}\n\n\treturn false;\n}\n\nfunction createMapper(source) {\n\tvar fill = source.fill;\n\tvar type = 'dataset';\n\n\tif (fill === false) {\n\t\treturn null;\n\t}\n\n\tif (!isFinite(fill)) {\n\t\ttype = 'boundary';\n\t}\n\n\treturn mappers[type](source);\n}\n\nfunction isDrawable(point) {\n\treturn point && !point.skip;\n}\n\nfunction drawArea(ctx, curve0, curve1, len0, len1) {\n\tvar i;\n\n\tif (!len0 || !len1) {\n\t\treturn;\n\t}\n\n\t// building first area curve (normal)\n\tctx.moveTo(curve0[0].x, curve0[0].y);\n\tfor (i = 1; i < len0; ++i) {\n\t\thelpers.canvas.lineTo(ctx, curve0[i - 1], curve0[i]);\n\t}\n\n\t// joining the two area curves\n\tctx.lineTo(curve1[len1 - 1].x, curve1[len1 - 1].y);\n\n\t// building opposite area curve (reverse)\n\tfor (i = len1 - 1; i > 0; --i) {\n\t\thelpers.canvas.lineTo(ctx, curve1[i], curve1[i - 1], true);\n\t}\n}\n\nfunction doFill(ctx, points, mapper, view, color, loop) {\n\tvar count = points.length;\n\tvar span = view.spanGaps;\n\tvar curve0 = [];\n\tvar curve1 = [];\n\tvar len0 = 0;\n\tvar len1 = 0;\n\tvar i, ilen, index, p0, p1, d0, d1;\n\n\tctx.beginPath();\n\n\tfor (i = 0, ilen = (count + !!loop); i < ilen; ++i) {\n\t\tindex = i % count;\n\t\tp0 = points[index]._view;\n\t\tp1 = mapper(p0, index, view);\n\t\td0 = isDrawable(p0);\n\t\td1 = isDrawable(p1);\n\n\t\tif (d0 && d1) {\n\t\t\tlen0 = curve0.push(p0);\n\t\t\tlen1 = curve1.push(p1);\n\t\t} else if (len0 && len1) {\n\t\t\tif (!span) {\n\t\t\t\tdrawArea(ctx, curve0, curve1, len0, len1);\n\t\t\t\tlen0 = len1 = 0;\n\t\t\t\tcurve0 = [];\n\t\t\t\tcurve1 = [];\n\t\t\t} else {\n\t\t\t\tif (d0) {\n\t\t\t\t\tcurve0.push(p0);\n\t\t\t\t}\n\t\t\t\tif (d1) {\n\t\t\t\t\tcurve1.push(p1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tdrawArea(ctx, curve0, curve1, len0, len1);\n\n\tctx.closePath();\n\tctx.fillStyle = color;\n\tctx.fill();\n}\n\nmodule.exports = {\n\tid: 'filler',\n\n\tafterDatasetsUpdate: function(chart, options) {\n\t\tvar count = (chart.data.datasets || []).length;\n\t\tvar propagate = options.propagate;\n\t\tvar sources = [];\n\t\tvar meta, i, el, source;\n\n\t\tfor (i = 0; i < count; ++i) {\n\t\t\tmeta = chart.getDatasetMeta(i);\n\t\t\tel = meta.dataset;\n\t\t\tsource = null;\n\n\t\t\tif (el && el._model && el instanceof elements.Line) {\n\t\t\t\tsource = {\n\t\t\t\t\tvisible: chart.isDatasetVisible(i),\n\t\t\t\t\tfill: decodeFill(el, i, count),\n\t\t\t\t\tchart: chart,\n\t\t\t\t\tel: el\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tmeta.$filler = source;\n\t\t\tsources.push(source);\n\t\t}\n\n\t\tfor (i = 0; i < count; ++i) {\n\t\t\tsource = sources[i];\n\t\t\tif (!source) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tsource.fill = resolveTarget(sources, i, propagate);\n\t\t\tsource.boundary = computeBoundary(source);\n\t\t\tsource.mapper = createMapper(source);\n\t\t}\n\t},\n\n\tbeforeDatasetDraw: function(chart, args) {\n\t\tvar meta = args.meta.$filler;\n\t\tif (!meta) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar ctx = chart.ctx;\n\t\tvar el = meta.el;\n\t\tvar view = el._view;\n\t\tvar points = el._children || [];\n\t\tvar mapper = meta.mapper;\n\t\tvar color = view.backgroundColor || defaults.global.defaultColor;\n\n\t\tif (mapper && color && points.length) {\n\t\t\thelpers.canvas.clipArea(ctx, chart.chartArea);\n\t\t\tdoFill(ctx, points, mapper, view, color, el._loop);\n\t\t\thelpers.canvas.unclipArea(ctx);\n\t\t}\n\t}\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],52:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\nvar layouts = require(31);\n\nvar noop = helpers.noop;\n\ndefaults._set('global', {\n\tlegend: {\n\t\tdisplay: true,\n\t\tposition: 'top',\n\t\tfullWidth: true,\n\t\treverse: false,\n\t\tweight: 1000,\n\n\t\t// a callback that will handle\n\t\tonClick: function(e, legendItem) {\n\t\t\tvar index = legendItem.datasetIndex;\n\t\t\tvar ci = this.chart;\n\t\t\tvar meta = ci.getDatasetMeta(index);\n\n\t\t\t// See controller.isDatasetVisible comment\n\t\t\tmeta.hidden = meta.hidden === null ? !ci.data.datasets[index].hidden : null;\n\n\t\t\t// We hid a dataset ... rerender the chart\n\t\t\tci.update();\n\t\t},\n\n\t\tonHover: null,\n\n\t\tlabels: {\n\t\t\tboxWidth: 40,\n\t\t\tpadding: 10,\n\t\t\t// Generates labels shown in the legend\n\t\t\t// Valid properties to return:\n\t\t\t// text : text to display\n\t\t\t// fillStyle : fill of coloured box\n\t\t\t// strokeStyle: stroke of coloured box\n\t\t\t// hidden : if this legend item refers to a hidden item\n\t\t\t// lineCap : cap style for line\n\t\t\t// lineDash\n\t\t\t// lineDashOffset :\n\t\t\t// lineJoin :\n\t\t\t// lineWidth :\n\t\t\tgenerateLabels: function(chart) {\n\t\t\t\tvar data = chart.data;\n\t\t\t\treturn helpers.isArray(data.datasets) ? data.datasets.map(function(dataset, i) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\ttext: dataset.label,\n\t\t\t\t\t\tfillStyle: (!helpers.isArray(dataset.backgroundColor) ? dataset.backgroundColor : dataset.backgroundColor[0]),\n\t\t\t\t\t\thidden: !chart.isDatasetVisible(i),\n\t\t\t\t\t\tlineCap: dataset.borderCapStyle,\n\t\t\t\t\t\tlineDash: dataset.borderDash,\n\t\t\t\t\t\tlineDashOffset: dataset.borderDashOffset,\n\t\t\t\t\t\tlineJoin: dataset.borderJoinStyle,\n\t\t\t\t\t\tlineWidth: dataset.borderWidth,\n\t\t\t\t\t\tstrokeStyle: dataset.borderColor,\n\t\t\t\t\t\tpointStyle: dataset.pointStyle,\n\n\t\t\t\t\t\t// Below is extra data used for toggling the datasets\n\t\t\t\t\t\tdatasetIndex: i\n\t\t\t\t\t};\n\t\t\t\t}, this) : [];\n\t\t\t}\n\t\t}\n\t},\n\n\tlegendCallback: function(chart) {\n\t\tvar text = [];\n\t\ttext.push('<ul class=\"' + chart.id + '-legend\">');\n\t\tfor (var i = 0; i < chart.data.datasets.length; i++) {\n\t\t\ttext.push('<li><span style=\"background-color:' + chart.data.datasets[i].backgroundColor + '\"></span>');\n\t\t\tif (chart.data.datasets[i].label) {\n\t\t\t\ttext.push(chart.data.datasets[i].label);\n\t\t\t}\n\t\t\ttext.push('</li>');\n\t\t}\n\t\ttext.push('</ul>');\n\t\treturn text.join('');\n\t}\n});\n\n/**\n * Helper function to get the box width based on the usePointStyle option\n * @param labelopts {Object} the label options on the legend\n * @param fontSize {Number} the label font size\n * @return {Number} width of the color box area\n */\nfunction getBoxWidth(labelOpts, fontSize) {\n\treturn labelOpts.usePointStyle ?\n\t\tfontSize * Math.SQRT2 :\n\t\tlabelOpts.boxWidth;\n}\n\n/**\n * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\n */\nvar Legend = Element.extend({\n\n\tinitialize: function(config) {\n\t\thelpers.extend(this, config);\n\n\t\t// Contains hit boxes for each dataset (in dataset order)\n\t\tthis.legendHitBoxes = [];\n\n\t\t// Are we in doughnut mode which has a different data type\n\t\tthis.doughnutMode = false;\n\t},\n\n\t// These methods are ordered by lifecycle. Utilities then follow.\n\t// Any function defined here is inherited by all legend types.\n\t// Any function can be extended by the legend type\n\n\tbeforeUpdate: noop,\n\tupdate: function(maxWidth, maxHeight, margins) {\n\t\tvar me = this;\n\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\n\t\tme.beforeUpdate();\n\n\t\t// Absorb the master measurements\n\t\tme.maxWidth = maxWidth;\n\t\tme.maxHeight = maxHeight;\n\t\tme.margins = margins;\n\n\t\t// Dimensions\n\t\tme.beforeSetDimensions();\n\t\tme.setDimensions();\n\t\tme.afterSetDimensions();\n\t\t// Labels\n\t\tme.beforeBuildLabels();\n\t\tme.buildLabels();\n\t\tme.afterBuildLabels();\n\n\t\t// Fit\n\t\tme.beforeFit();\n\t\tme.fit();\n\t\tme.afterFit();\n\t\t//\n\t\tme.afterUpdate();\n\n\t\treturn me.minSize;\n\t},\n\tafterUpdate: noop,\n\n\t//\n\n\tbeforeSetDimensions: noop,\n\tsetDimensions: function() {\n\t\tvar me = this;\n\t\t// Set the unconstrained dimension before label rotation\n\t\tif (me.isHorizontal()) {\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.width = me.maxWidth;\n\t\t\tme.left = 0;\n\t\t\tme.right = me.width;\n\t\t} else {\n\t\t\tme.height = me.maxHeight;\n\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.top = 0;\n\t\t\tme.bottom = me.height;\n\t\t}\n\n\t\t// Reset padding\n\t\tme.paddingLeft = 0;\n\t\tme.paddingTop = 0;\n\t\tme.paddingRight = 0;\n\t\tme.paddingBottom = 0;\n\n\t\t// Reset minSize\n\t\tme.minSize = {\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t};\n\t},\n\tafterSetDimensions: noop,\n\n\t//\n\n\tbeforeBuildLabels: noop,\n\tbuildLabels: function() {\n\t\tvar me = this;\n\t\tvar labelOpts = me.options.labels || {};\n\t\tvar legendItems = helpers.callback(labelOpts.generateLabels, [me.chart], me) || [];\n\n\t\tif (labelOpts.filter) {\n\t\t\tlegendItems = legendItems.filter(function(item) {\n\t\t\t\treturn labelOpts.filter(item, me.chart.data);\n\t\t\t});\n\t\t}\n\n\t\tif (me.options.reverse) {\n\t\t\tlegendItems.reverse();\n\t\t}\n\n\t\tme.legendItems = legendItems;\n\t},\n\tafterBuildLabels: noop,\n\n\t//\n\n\tbeforeFit: noop,\n\tfit: function() {\n\t\tvar me = this;\n\t\tvar opts = me.options;\n\t\tvar labelOpts = opts.labels;\n\t\tvar display = opts.display;\n\n\t\tvar ctx = me.ctx;\n\n\t\tvar globalDefault = defaults.global;\n\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\tvar fontSize = valueOrDefault(labelOpts.fontSize, globalDefault.defaultFontSize);\n\t\tvar fontStyle = valueOrDefault(labelOpts.fontStyle, globalDefault.defaultFontStyle);\n\t\tvar fontFamily = valueOrDefault(labelOpts.fontFamily, globalDefault.defaultFontFamily);\n\t\tvar labelFont = helpers.fontString(fontSize, fontStyle, fontFamily);\n\n\t\t// Reset hit boxes\n\t\tvar hitboxes = me.legendHitBoxes = [];\n\n\t\tvar minSize = me.minSize;\n\t\tvar isHorizontal = me.isHorizontal();\n\n\t\tif (isHorizontal) {\n\t\t\tminSize.width = me.maxWidth; // fill all the width\n\t\t\tminSize.height = display ? 10 : 0;\n\t\t} else {\n\t\t\tminSize.width = display ? 10 : 0;\n\t\t\tminSize.height = me.maxHeight; // fill all the height\n\t\t}\n\n\t\t// Increase sizes here\n\t\tif (display) {\n\t\t\tctx.font = labelFont;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\t// Labels\n\n\t\t\t\t// Width of each line of legend boxes. Labels wrap onto multiple lines when there are too many to fit on one\n\t\t\t\tvar lineWidths = me.lineWidths = [0];\n\t\t\t\tvar totalHeight = me.legendItems.length ? fontSize + (labelOpts.padding) : 0;\n\n\t\t\t\tctx.textAlign = 'left';\n\t\t\t\tctx.textBaseline = 'top';\n\n\t\t\t\thelpers.each(me.legendItems, function(legendItem, i) {\n\t\t\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\n\t\t\t\t\tvar width = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;\n\n\t\t\t\t\tif (lineWidths[lineWidths.length - 1] + width + labelOpts.padding >= me.width) {\n\t\t\t\t\t\ttotalHeight += fontSize + (labelOpts.padding);\n\t\t\t\t\t\tlineWidths[lineWidths.length] = me.left;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Store the hitbox width and height here. Final position will be updated in `draw`\n\t\t\t\t\thitboxes[i] = {\n\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\twidth: width,\n\t\t\t\t\t\theight: fontSize\n\t\t\t\t\t};\n\n\t\t\t\t\tlineWidths[lineWidths.length - 1] += width + labelOpts.padding;\n\t\t\t\t});\n\n\t\t\t\tminSize.height += totalHeight;\n\n\t\t\t} else {\n\t\t\t\tvar vPadding = labelOpts.padding;\n\t\t\t\tvar columnWidths = me.columnWidths = [];\n\t\t\t\tvar totalWidth = labelOpts.padding;\n\t\t\t\tvar currentColWidth = 0;\n\t\t\t\tvar currentColHeight = 0;\n\t\t\t\tvar itemHeight = fontSize + vPadding;\n\n\t\t\t\thelpers.each(me.legendItems, function(legendItem, i) {\n\t\t\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\n\t\t\t\t\tvar itemWidth = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;\n\n\t\t\t\t\t// If too tall, go to new column\n\t\t\t\t\tif (currentColHeight + itemHeight > minSize.height) {\n\t\t\t\t\t\ttotalWidth += currentColWidth + labelOpts.padding;\n\t\t\t\t\t\tcolumnWidths.push(currentColWidth); // previous column width\n\n\t\t\t\t\t\tcurrentColWidth = 0;\n\t\t\t\t\t\tcurrentColHeight = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get max width\n\t\t\t\t\tcurrentColWidth = Math.max(currentColWidth, itemWidth);\n\t\t\t\t\tcurrentColHeight += itemHeight;\n\n\t\t\t\t\t// Store the hitbox width and height here. Final position will be updated in `draw`\n\t\t\t\t\thitboxes[i] = {\n\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\twidth: itemWidth,\n\t\t\t\t\t\theight: fontSize\n\t\t\t\t\t};\n\t\t\t\t});\n\n\t\t\t\ttotalWidth += currentColWidth;\n\t\t\t\tcolumnWidths.push(currentColWidth);\n\t\t\t\tminSize.width += totalWidth;\n\t\t\t}\n\t\t}\n\n\t\tme.width = minSize.width;\n\t\tme.height = minSize.height;\n\t},\n\tafterFit: noop,\n\n\t// Shared Methods\n\tisHorizontal: function() {\n\t\treturn this.options.position === 'top' || this.options.position === 'bottom';\n\t},\n\n\t// Actually draw the legend on the canvas\n\tdraw: function() {\n\t\tvar me = this;\n\t\tvar opts = me.options;\n\t\tvar labelOpts = opts.labels;\n\t\tvar globalDefault = defaults.global;\n\t\tvar lineDefault = globalDefault.elements.line;\n\t\tvar legendWidth = me.width;\n\t\tvar lineWidths = me.lineWidths;\n\n\t\tif (opts.display) {\n\t\t\tvar ctx = me.ctx;\n\t\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\t\tvar fontColor = valueOrDefault(labelOpts.fontColor, globalDefault.defaultFontColor);\n\t\t\tvar fontSize = valueOrDefault(labelOpts.fontSize, globalDefault.defaultFontSize);\n\t\t\tvar fontStyle = valueOrDefault(labelOpts.fontStyle, globalDefault.defaultFontStyle);\n\t\t\tvar fontFamily = valueOrDefault(labelOpts.fontFamily, globalDefault.defaultFontFamily);\n\t\t\tvar labelFont = helpers.fontString(fontSize, fontStyle, fontFamily);\n\t\t\tvar cursor;\n\n\t\t\t// Canvas setup\n\t\t\tctx.textAlign = 'left';\n\t\t\tctx.textBaseline = 'middle';\n\t\t\tctx.lineWidth = 0.5;\n\t\t\tctx.strokeStyle = fontColor; // for strikethrough effect\n\t\t\tctx.fillStyle = fontColor; // render in correct colour\n\t\t\tctx.font = labelFont;\n\n\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\n\t\t\tvar hitboxes = me.legendHitBoxes;\n\n\t\t\t// current position\n\t\t\tvar drawLegendBox = function(x, y, legendItem) {\n\t\t\t\tif (isNaN(boxWidth) || boxWidth <= 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Set the ctx for the box\n\t\t\t\tctx.save();\n\n\t\t\t\tctx.fillStyle = valueOrDefault(legendItem.fillStyle, globalDefault.defaultColor);\n\t\t\t\tctx.lineCap = valueOrDefault(legendItem.lineCap, lineDefault.borderCapStyle);\n\t\t\t\tctx.lineDashOffset = valueOrDefault(legendItem.lineDashOffset, lineDefault.borderDashOffset);\n\t\t\t\tctx.lineJoin = valueOrDefault(legendItem.lineJoin, lineDefault.borderJoinStyle);\n\t\t\t\tctx.lineWidth = valueOrDefault(legendItem.lineWidth, lineDefault.borderWidth);\n\t\t\t\tctx.strokeStyle = valueOrDefault(legendItem.strokeStyle, globalDefault.defaultColor);\n\t\t\t\tvar isLineWidthZero = (valueOrDefault(legendItem.lineWidth, lineDefault.borderWidth) === 0);\n\n\t\t\t\tif (ctx.setLineDash) {\n\t\t\t\t\t// IE 9 and 10 do not support line dash\n\t\t\t\t\tctx.setLineDash(valueOrDefault(legendItem.lineDash, lineDefault.borderDash));\n\t\t\t\t}\n\n\t\t\t\tif (opts.labels && opts.labels.usePointStyle) {\n\t\t\t\t\t// Recalculate x and y for drawPoint() because its expecting\n\t\t\t\t\t// x and y to be center of figure (instead of top left)\n\t\t\t\t\tvar radius = fontSize * Math.SQRT2 / 2;\n\t\t\t\t\tvar offSet = radius / Math.SQRT2;\n\t\t\t\t\tvar centerX = x + offSet;\n\t\t\t\t\tvar centerY = y + offSet;\n\n\t\t\t\t\t// Draw pointStyle as legend symbol\n\t\t\t\t\thelpers.canvas.drawPoint(ctx, legendItem.pointStyle, radius, centerX, centerY);\n\t\t\t\t} else {\n\t\t\t\t\t// Draw box as legend symbol\n\t\t\t\t\tif (!isLineWidthZero) {\n\t\t\t\t\t\tctx.strokeRect(x, y, boxWidth, fontSize);\n\t\t\t\t\t}\n\t\t\t\t\tctx.fillRect(x, y, boxWidth, fontSize);\n\t\t\t\t}\n\n\t\t\t\tctx.restore();\n\t\t\t};\n\t\t\tvar fillText = function(x, y, legendItem, textWidth) {\n\t\t\t\tvar halfFontSize = fontSize / 2;\n\t\t\t\tvar xLeft = boxWidth + halfFontSize + x;\n\t\t\t\tvar yMiddle = y + halfFontSize;\n\n\t\t\t\tctx.fillText(legendItem.text, xLeft, yMiddle);\n\n\t\t\t\tif (legendItem.hidden) {\n\t\t\t\t\t// Strikethrough the text if hidden\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tctx.lineWidth = 2;\n\t\t\t\t\tctx.moveTo(xLeft, yMiddle);\n\t\t\t\t\tctx.lineTo(xLeft + textWidth, yMiddle);\n\t\t\t\t\tctx.stroke();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t// Horizontal\n\t\t\tvar isHorizontal = me.isHorizontal();\n\t\t\tif (isHorizontal) {\n\t\t\t\tcursor = {\n\t\t\t\t\tx: me.left + ((legendWidth - lineWidths[0]) / 2),\n\t\t\t\t\ty: me.top + labelOpts.padding,\n\t\t\t\t\tline: 0\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tcursor = {\n\t\t\t\t\tx: me.left + labelOpts.padding,\n\t\t\t\t\ty: me.top + labelOpts.padding,\n\t\t\t\t\tline: 0\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tvar itemHeight = fontSize + labelOpts.padding;\n\t\t\thelpers.each(me.legendItems, function(legendItem, i) {\n\t\t\t\tvar textWidth = ctx.measureText(legendItem.text).width;\n\t\t\t\tvar width = boxWidth + (fontSize / 2) + textWidth;\n\t\t\t\tvar x = cursor.x;\n\t\t\t\tvar y = cursor.y;\n\n\t\t\t\tif (isHorizontal) {\n\t\t\t\t\tif (x + width >= legendWidth) {\n\t\t\t\t\t\ty = cursor.y += itemHeight;\n\t\t\t\t\t\tcursor.line++;\n\t\t\t\t\t\tx = cursor.x = me.left + ((legendWidth - lineWidths[cursor.line]) / 2);\n\t\t\t\t\t}\n\t\t\t\t} else if (y + itemHeight > me.bottom) {\n\t\t\t\t\tx = cursor.x = x + me.columnWidths[cursor.line] + labelOpts.padding;\n\t\t\t\t\ty = cursor.y = me.top + labelOpts.padding;\n\t\t\t\t\tcursor.line++;\n\t\t\t\t}\n\n\t\t\t\tdrawLegendBox(x, y, legendItem);\n\n\t\t\t\thitboxes[i].left = x;\n\t\t\t\thitboxes[i].top = y;\n\n\t\t\t\t// Fill the actual label\n\t\t\t\tfillText(x, y, legendItem, textWidth);\n\n\t\t\t\tif (isHorizontal) {\n\t\t\t\t\tcursor.x += width + (labelOpts.padding);\n\t\t\t\t} else {\n\t\t\t\t\tcursor.y += itemHeight;\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\t},\n\n\t/**\n\t * Handle an event\n\t * @private\n\t * @param {IEvent} event - The event to handle\n\t * @return {Boolean} true if a change occured\n\t */\n\thandleEvent: function(e) {\n\t\tvar me = this;\n\t\tvar opts = me.options;\n\t\tvar type = e.type === 'mouseup' ? 'click' : e.type;\n\t\tvar changed = false;\n\n\t\tif (type === 'mousemove') {\n\t\t\tif (!opts.onHover) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (type === 'click') {\n\t\t\tif (!opts.onClick) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\n\t\t// Chart event already has relative position in it\n\t\tvar x = e.x;\n\t\tvar y = e.y;\n\n\t\tif (x >= me.left && x <= me.right && y >= me.top && y <= me.bottom) {\n\t\t\t// See if we are touching one of the dataset boxes\n\t\t\tvar lh = me.legendHitBoxes;\n\t\t\tfor (var i = 0; i < lh.length; ++i) {\n\t\t\t\tvar hitBox = lh[i];\n\n\t\t\t\tif (x >= hitBox.left && x <= hitBox.left + hitBox.width && y >= hitBox.top && y <= hitBox.top + hitBox.height) {\n\t\t\t\t\t// Touching an element\n\t\t\t\t\tif (type === 'click') {\n\t\t\t\t\t\t// use e.native for backwards compatibility\n\t\t\t\t\t\topts.onClick.call(me, e.native, me.legendItems[i]);\n\t\t\t\t\t\tchanged = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (type === 'mousemove') {\n\t\t\t\t\t\t// use e.native for backwards compatibility\n\t\t\t\t\t\topts.onHover.call(me, e.native, me.legendItems[i]);\n\t\t\t\t\t\tchanged = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn changed;\n\t}\n});\n\nfunction createNewLegendAndAttach(chart, legendOpts) {\n\tvar legend = new Legend({\n\t\tctx: chart.ctx,\n\t\toptions: legendOpts,\n\t\tchart: chart\n\t});\n\n\tlayouts.configure(chart, legend, legendOpts);\n\tlayouts.addBox(chart, legend);\n\tchart.legend = legend;\n}\n\nmodule.exports = {\n\tid: 'legend',\n\n\t/**\n\t * Backward compatibility: since 2.1.5, the legend is registered as a plugin, making\n\t * Chart.Legend obsolete. To avoid a breaking change, we export the Legend as part of\n\t * the plugin, which one will be re-exposed in the chart.js file.\n\t * https://github.com/chartjs/Chart.js/pull/2640\n\t * @private\n\t */\n\t_element: Legend,\n\n\tbeforeInit: function(chart) {\n\t\tvar legendOpts = chart.options.legend;\n\n\t\tif (legendOpts) {\n\t\t\tcreateNewLegendAndAttach(chart, legendOpts);\n\t\t}\n\t},\n\n\tbeforeUpdate: function(chart) {\n\t\tvar legendOpts = chart.options.legend;\n\t\tvar legend = chart.legend;\n\n\t\tif (legendOpts) {\n\t\t\thelpers.mergeIf(legendOpts, defaults.global.legend);\n\n\t\t\tif (legend) {\n\t\t\t\tlayouts.configure(chart, legend, legendOpts);\n\t\t\t\tlegend.options = legendOpts;\n\t\t\t} else {\n\t\t\t\tcreateNewLegendAndAttach(chart, legendOpts);\n\t\t\t}\n\t\t} else if (legend) {\n\t\t\tlayouts.removeBox(chart, legend);\n\t\t\tdelete chart.legend;\n\t\t}\n\t},\n\n\tafterEvent: function(chart, e) {\n\t\tvar legend = chart.legend;\n\t\tif (legend) {\n\t\t\tlegend.handleEvent(e);\n\t\t}\n\t}\n};\n\n},{\"26\":26,\"27\":27,\"31\":31,\"46\":46}],53:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\nvar layouts = require(31);\n\nvar noop = helpers.noop;\n\ndefaults._set('global', {\n\ttitle: {\n\t\tdisplay: false,\n\t\tfontStyle: 'bold',\n\t\tfullWidth: true,\n\t\tlineHeight: 1.2,\n\t\tpadding: 10,\n\t\tposition: 'top',\n\t\ttext: '',\n\t\tweight: 2000         // by default greater than legend (1000) to be above\n\t}\n});\n\n/**\n * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\n */\nvar Title = Element.extend({\n\tinitialize: function(config) {\n\t\tvar me = this;\n\t\thelpers.extend(me, config);\n\n\t\t// Contains hit boxes for each dataset (in dataset order)\n\t\tme.legendHitBoxes = [];\n\t},\n\n\t// These methods are ordered by lifecycle. Utilities then follow.\n\n\tbeforeUpdate: noop,\n\tupdate: function(maxWidth, maxHeight, margins) {\n\t\tvar me = this;\n\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\n\t\tme.beforeUpdate();\n\n\t\t// Absorb the master measurements\n\t\tme.maxWidth = maxWidth;\n\t\tme.maxHeight = maxHeight;\n\t\tme.margins = margins;\n\n\t\t// Dimensions\n\t\tme.beforeSetDimensions();\n\t\tme.setDimensions();\n\t\tme.afterSetDimensions();\n\t\t// Labels\n\t\tme.beforeBuildLabels();\n\t\tme.buildLabels();\n\t\tme.afterBuildLabels();\n\n\t\t// Fit\n\t\tme.beforeFit();\n\t\tme.fit();\n\t\tme.afterFit();\n\t\t//\n\t\tme.afterUpdate();\n\n\t\treturn me.minSize;\n\n\t},\n\tafterUpdate: noop,\n\n\t//\n\n\tbeforeSetDimensions: noop,\n\tsetDimensions: function() {\n\t\tvar me = this;\n\t\t// Set the unconstrained dimension before label rotation\n\t\tif (me.isHorizontal()) {\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.width = me.maxWidth;\n\t\t\tme.left = 0;\n\t\t\tme.right = me.width;\n\t\t} else {\n\t\t\tme.height = me.maxHeight;\n\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.top = 0;\n\t\t\tme.bottom = me.height;\n\t\t}\n\n\t\t// Reset padding\n\t\tme.paddingLeft = 0;\n\t\tme.paddingTop = 0;\n\t\tme.paddingRight = 0;\n\t\tme.paddingBottom = 0;\n\n\t\t// Reset minSize\n\t\tme.minSize = {\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t};\n\t},\n\tafterSetDimensions: noop,\n\n\t//\n\n\tbeforeBuildLabels: noop,\n\tbuildLabels: noop,\n\tafterBuildLabels: noop,\n\n\t//\n\n\tbeforeFit: noop,\n\tfit: function() {\n\t\tvar me = this;\n\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\tvar opts = me.options;\n\t\tvar display = opts.display;\n\t\tvar fontSize = valueOrDefault(opts.fontSize, defaults.global.defaultFontSize);\n\t\tvar minSize = me.minSize;\n\t\tvar lineCount = helpers.isArray(opts.text) ? opts.text.length : 1;\n\t\tvar lineHeight = helpers.options.toLineHeight(opts.lineHeight, fontSize);\n\t\tvar textSize = display ? (lineCount * lineHeight) + (opts.padding * 2) : 0;\n\n\t\tif (me.isHorizontal()) {\n\t\t\tminSize.width = me.maxWidth; // fill all the width\n\t\t\tminSize.height = textSize;\n\t\t} else {\n\t\t\tminSize.width = textSize;\n\t\t\tminSize.height = me.maxHeight; // fill all the height\n\t\t}\n\n\t\tme.width = minSize.width;\n\t\tme.height = minSize.height;\n\n\t},\n\tafterFit: noop,\n\n\t// Shared Methods\n\tisHorizontal: function() {\n\t\tvar pos = this.options.position;\n\t\treturn pos === 'top' || pos === 'bottom';\n\t},\n\n\t// Actually draw the title block on the canvas\n\tdraw: function() {\n\t\tvar me = this;\n\t\tvar ctx = me.ctx;\n\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\tvar opts = me.options;\n\t\tvar globalDefaults = defaults.global;\n\n\t\tif (opts.display) {\n\t\t\tvar fontSize = valueOrDefault(opts.fontSize, globalDefaults.defaultFontSize);\n\t\t\tvar fontStyle = valueOrDefault(opts.fontStyle, globalDefaults.defaultFontStyle);\n\t\t\tvar fontFamily = valueOrDefault(opts.fontFamily, globalDefaults.defaultFontFamily);\n\t\t\tvar titleFont = helpers.fontString(fontSize, fontStyle, fontFamily);\n\t\t\tvar lineHeight = helpers.options.toLineHeight(opts.lineHeight, fontSize);\n\t\t\tvar offset = lineHeight / 2 + opts.padding;\n\t\t\tvar rotation = 0;\n\t\t\tvar top = me.top;\n\t\t\tvar left = me.left;\n\t\t\tvar bottom = me.bottom;\n\t\t\tvar right = me.right;\n\t\t\tvar maxWidth, titleX, titleY;\n\n\t\t\tctx.fillStyle = valueOrDefault(opts.fontColor, globalDefaults.defaultFontColor); // render in correct colour\n\t\t\tctx.font = titleFont;\n\n\t\t\t// Horizontal\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\ttitleX = left + ((right - left) / 2); // midpoint of the width\n\t\t\t\ttitleY = top + offset;\n\t\t\t\tmaxWidth = right - left;\n\t\t\t} else {\n\t\t\t\ttitleX = opts.position === 'left' ? left + offset : right - offset;\n\t\t\t\ttitleY = top + ((bottom - top) / 2);\n\t\t\t\tmaxWidth = bottom - top;\n\t\t\t\trotation = Math.PI * (opts.position === 'left' ? -0.5 : 0.5);\n\t\t\t}\n\n\t\t\tctx.save();\n\t\t\tctx.translate(titleX, titleY);\n\t\t\tctx.rotate(rotation);\n\t\t\tctx.textAlign = 'center';\n\t\t\tctx.textBaseline = 'middle';\n\n\t\t\tvar text = opts.text;\n\t\t\tif (helpers.isArray(text)) {\n\t\t\t\tvar y = 0;\n\t\t\t\tfor (var i = 0; i < text.length; ++i) {\n\t\t\t\t\tctx.fillText(text[i], 0, y, maxWidth);\n\t\t\t\t\ty += lineHeight;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tctx.fillText(text, 0, 0, maxWidth);\n\t\t\t}\n\n\t\t\tctx.restore();\n\t\t}\n\t}\n});\n\nfunction createNewTitleBlockAndAttach(chart, titleOpts) {\n\tvar title = new Title({\n\t\tctx: chart.ctx,\n\t\toptions: titleOpts,\n\t\tchart: chart\n\t});\n\n\tlayouts.configure(chart, title, titleOpts);\n\tlayouts.addBox(chart, title);\n\tchart.titleBlock = title;\n}\n\nmodule.exports = {\n\tid: 'title',\n\n\t/**\n\t * Backward compatibility: since 2.1.5, the title is registered as a plugin, making\n\t * Chart.Title obsolete. To avoid a breaking change, we export the Title as part of\n\t * the plugin, which one will be re-exposed in the chart.js file.\n\t * https://github.com/chartjs/Chart.js/pull/2640\n\t * @private\n\t */\n\t_element: Title,\n\n\tbeforeInit: function(chart) {\n\t\tvar titleOpts = chart.options.title;\n\n\t\tif (titleOpts) {\n\t\t\tcreateNewTitleBlockAndAttach(chart, titleOpts);\n\t\t}\n\t},\n\n\tbeforeUpdate: function(chart) {\n\t\tvar titleOpts = chart.options.title;\n\t\tvar titleBlock = chart.titleBlock;\n\n\t\tif (titleOpts) {\n\t\t\thelpers.mergeIf(titleOpts, defaults.global.title);\n\n\t\t\tif (titleBlock) {\n\t\t\t\tlayouts.configure(chart, titleBlock, titleOpts);\n\t\t\t\ttitleBlock.options = titleOpts;\n\t\t\t} else {\n\t\t\t\tcreateNewTitleBlockAndAttach(chart, titleOpts);\n\t\t\t}\n\t\t} else if (titleBlock) {\n\t\t\tlayouts.removeBox(chart, titleBlock);\n\t\t\tdelete chart.titleBlock;\n\t\t}\n\t}\n};\n\n},{\"26\":26,\"27\":27,\"31\":31,\"46\":46}],54:[function(require,module,exports){\n'use strict';\n\nvar Scale = require(33);\nvar scaleService = require(34);\n\nmodule.exports = function() {\n\n\t// Default config for a category scale\n\tvar defaultConfig = {\n\t\tposition: 'bottom'\n\t};\n\n\tvar DatasetScale = Scale.extend({\n\t\t/**\n\t\t* Internal function to get the correct labels. If data.xLabels or data.yLabels are defined, use those\n\t\t* else fall back to data.labels\n\t\t* @private\n\t\t*/\n\t\tgetLabels: function() {\n\t\t\tvar data = this.chart.data;\n\t\t\treturn this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels;\n\t\t},\n\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar labels = me.getLabels();\n\t\t\tme.minIndex = 0;\n\t\t\tme.maxIndex = labels.length - 1;\n\t\t\tvar findIndex;\n\n\t\t\tif (me.options.ticks.min !== undefined) {\n\t\t\t\t// user specified min value\n\t\t\t\tfindIndex = labels.indexOf(me.options.ticks.min);\n\t\t\t\tme.minIndex = findIndex !== -1 ? findIndex : me.minIndex;\n\t\t\t}\n\n\t\t\tif (me.options.ticks.max !== undefined) {\n\t\t\t\t// user specified max value\n\t\t\t\tfindIndex = labels.indexOf(me.options.ticks.max);\n\t\t\t\tme.maxIndex = findIndex !== -1 ? findIndex : me.maxIndex;\n\t\t\t}\n\n\t\t\tme.min = labels[me.minIndex];\n\t\t\tme.max = labels[me.maxIndex];\n\t\t},\n\n\t\tbuildTicks: function() {\n\t\t\tvar me = this;\n\t\t\tvar labels = me.getLabels();\n\t\t\t// If we are viewing some subset of labels, slice the original array\n\t\t\tme.ticks = (me.minIndex === 0 && me.maxIndex === labels.length - 1) ? labels : labels.slice(me.minIndex, me.maxIndex + 1);\n\t\t},\n\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar data = me.chart.data;\n\t\t\tvar isHorizontal = me.isHorizontal();\n\n\t\t\tif (data.yLabels && !isHorizontal) {\n\t\t\t\treturn me.getRightValue(data.datasets[datasetIndex].data[index]);\n\t\t\t}\n\t\t\treturn me.ticks[index - me.minIndex];\n\t\t},\n\n\t\t// Used to get data value locations.  Value can either be an index or a numerical value\n\t\tgetPixelForValue: function(value, index) {\n\t\t\tvar me = this;\n\t\t\tvar offset = me.options.offset;\n\t\t\t// 1 is added because we need the length but we have the indexes\n\t\t\tvar offsetAmt = Math.max((me.maxIndex + 1 - me.minIndex - (offset ? 0 : 1)), 1);\n\n\t\t\t// If value is a data object, then index is the index in the data array,\n\t\t\t// not the index of the scale. We need to change that.\n\t\t\tvar valueCategory;\n\t\t\tif (value !== undefined && value !== null) {\n\t\t\t\tvalueCategory = me.isHorizontal() ? value.x : value.y;\n\t\t\t}\n\t\t\tif (valueCategory !== undefined || (value !== undefined && isNaN(index))) {\n\t\t\t\tvar labels = me.getLabels();\n\t\t\t\tvalue = valueCategory || value;\n\t\t\t\tvar idx = labels.indexOf(value);\n\t\t\t\tindex = idx !== -1 ? idx : index;\n\t\t\t}\n\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tvar valueWidth = me.width / offsetAmt;\n\t\t\t\tvar widthOffset = (valueWidth * (index - me.minIndex));\n\n\t\t\t\tif (offset) {\n\t\t\t\t\twidthOffset += (valueWidth / 2);\n\t\t\t\t}\n\n\t\t\t\treturn me.left + Math.round(widthOffset);\n\t\t\t}\n\t\t\tvar valueHeight = me.height / offsetAmt;\n\t\t\tvar heightOffset = (valueHeight * (index - me.minIndex));\n\n\t\t\tif (offset) {\n\t\t\t\theightOffset += (valueHeight / 2);\n\t\t\t}\n\n\t\t\treturn me.top + Math.round(heightOffset);\n\t\t},\n\t\tgetPixelForTick: function(index) {\n\t\t\treturn this.getPixelForValue(this.ticks[index], index + this.minIndex, null);\n\t\t},\n\t\tgetValueForPixel: function(pixel) {\n\t\t\tvar me = this;\n\t\t\tvar offset = me.options.offset;\n\t\t\tvar value;\n\t\t\tvar offsetAmt = Math.max((me._ticks.length - (offset ? 0 : 1)), 1);\n\t\t\tvar horz = me.isHorizontal();\n\t\t\tvar valueDimension = (horz ? me.width : me.height) / offsetAmt;\n\n\t\t\tpixel -= horz ? me.left : me.top;\n\n\t\t\tif (offset) {\n\t\t\t\tpixel -= (valueDimension / 2);\n\t\t\t}\n\n\t\t\tif (pixel <= 0) {\n\t\t\t\tvalue = 0;\n\t\t\t} else {\n\t\t\t\tvalue = Math.round(pixel / valueDimension);\n\t\t\t}\n\n\t\t\treturn value + me.minIndex;\n\t\t},\n\t\tgetBasePixel: function() {\n\t\t\treturn this.bottom;\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('category', DatasetScale, defaultConfig);\n};\n\n},{\"33\":33,\"34\":34}],55:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\nvar scaleService = require(34);\nvar Ticks = require(35);\n\nmodule.exports = function(Chart) {\n\n\tvar defaultConfig = {\n\t\tposition: 'left',\n\t\tticks: {\n\t\t\tcallback: Ticks.formatters.linear\n\t\t}\n\t};\n\n\tvar LinearScale = Chart.LinearScaleBase.extend({\n\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar chart = me.chart;\n\t\t\tvar data = chart.data;\n\t\t\tvar datasets = data.datasets;\n\t\t\tvar isHorizontal = me.isHorizontal();\n\t\t\tvar DEFAULT_MIN = 0;\n\t\t\tvar DEFAULT_MAX = 1;\n\n\t\t\tfunction IDMatches(meta) {\n\t\t\t\treturn isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id;\n\t\t\t}\n\n\t\t\t// First Calculate the range\n\t\t\tme.min = null;\n\t\t\tme.max = null;\n\n\t\t\tvar hasStacks = opts.stacked;\n\t\t\tif (hasStacks === undefined) {\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tif (hasStacks) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta) &&\n\t\t\t\t\t\tmeta.stack !== undefined) {\n\t\t\t\t\t\thasStacks = true;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (opts.stacked || hasStacks) {\n\t\t\t\tvar valuesPerStack = {};\n\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tvar key = [\n\t\t\t\t\t\tmeta.type,\n\t\t\t\t\t\t// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\n\t\t\t\t\t\t((opts.stacked === undefined && meta.stack === undefined) ? datasetIndex : ''),\n\t\t\t\t\t\tmeta.stack\n\t\t\t\t\t].join('.');\n\n\t\t\t\t\tif (valuesPerStack[key] === undefined) {\n\t\t\t\t\t\tvaluesPerStack[key] = {\n\t\t\t\t\t\t\tpositiveValues: [],\n\t\t\t\t\t\t\tnegativeValues: []\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\t// Store these per type\n\t\t\t\t\tvar positiveValues = valuesPerStack[key].positiveValues;\n\t\t\t\t\tvar negativeValues = valuesPerStack[key].negativeValues;\n\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\n\t\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpositiveValues[index] = positiveValues[index] || 0;\n\t\t\t\t\t\t\tnegativeValues[index] = negativeValues[index] || 0;\n\n\t\t\t\t\t\t\tif (opts.relativePoints) {\n\t\t\t\t\t\t\t\tpositiveValues[index] = 100;\n\t\t\t\t\t\t\t} else if (value < 0) {\n\t\t\t\t\t\t\t\tnegativeValues[index] += value;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpositiveValues[index] += value;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\thelpers.each(valuesPerStack, function(valuesForType) {\n\t\t\t\t\tvar values = valuesForType.positiveValues.concat(valuesForType.negativeValues);\n\t\t\t\t\tvar minVal = helpers.min(values);\n\t\t\t\t\tvar maxVal = helpers.max(values);\n\t\t\t\t\tme.min = me.min === null ? minVal : Math.min(me.min, minVal);\n\t\t\t\t\tme.max = me.max === null ? maxVal : Math.max(me.max, maxVal);\n\t\t\t\t});\n\n\t\t\t} else {\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\n\t\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (me.min === null) {\n\t\t\t\t\t\t\t\tme.min = value;\n\t\t\t\t\t\t\t} else if (value < me.min) {\n\t\t\t\t\t\t\t\tme.min = value;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (me.max === null) {\n\t\t\t\t\t\t\t\tme.max = value;\n\t\t\t\t\t\t\t} else if (value > me.max) {\n\t\t\t\t\t\t\t\tme.max = value;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tme.min = isFinite(me.min) && !isNaN(me.min) ? me.min : DEFAULT_MIN;\n\t\t\tme.max = isFinite(me.max) && !isNaN(me.max) ? me.max : DEFAULT_MAX;\n\n\t\t\t// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\n\t\t\tthis.handleTickRangeOptions();\n\t\t},\n\t\tgetTickLimit: function() {\n\t\t\tvar maxTicks;\n\t\t\tvar me = this;\n\t\t\tvar tickOpts = me.options.ticks;\n\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tmaxTicks = Math.min(tickOpts.maxTicksLimit ? tickOpts.maxTicksLimit : 11, Math.ceil(me.width / 50));\n\t\t\t} else {\n\t\t\t\t// The factor of 2 used to scale the font size has been experimentally determined.\n\t\t\t\tvar tickFontSize = helpers.valueOrDefault(tickOpts.fontSize, defaults.global.defaultFontSize);\n\t\t\t\tmaxTicks = Math.min(tickOpts.maxTicksLimit ? tickOpts.maxTicksLimit : 11, Math.ceil(me.height / (2 * tickFontSize)));\n\t\t\t}\n\n\t\t\treturn maxTicks;\n\t\t},\n\t\t// Called after the ticks are built. We need\n\t\thandleDirectionalChanges: function() {\n\t\t\tif (!this.isHorizontal()) {\n\t\t\t\t// We are in a vertical orientation. The top value is the highest. So reverse the array\n\t\t\t\tthis.ticks.reverse();\n\t\t\t}\n\t\t},\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\treturn +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);\n\t\t},\n\t\t// Utils\n\t\tgetPixelForValue: function(value) {\n\t\t\t// This must be called after fit has been run so that\n\t\t\t// this.left, this.top, this.right, and this.bottom have been defined\n\t\t\tvar me = this;\n\t\t\tvar start = me.start;\n\n\t\t\tvar rightValue = +me.getRightValue(value);\n\t\t\tvar pixel;\n\t\t\tvar range = me.end - start;\n\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tpixel = me.left + (me.width / range * (rightValue - start));\n\t\t\t} else {\n\t\t\t\tpixel = me.bottom - (me.height / range * (rightValue - start));\n\t\t\t}\n\t\t\treturn pixel;\n\t\t},\n\t\tgetValueForPixel: function(pixel) {\n\t\t\tvar me = this;\n\t\t\tvar isHorizontal = me.isHorizontal();\n\t\t\tvar innerDimension = isHorizontal ? me.width : me.height;\n\t\t\tvar offset = (isHorizontal ? pixel - me.left : me.bottom - pixel) / innerDimension;\n\t\t\treturn me.start + ((me.end - me.start) * offset);\n\t\t},\n\t\tgetPixelForTick: function(index) {\n\t\t\treturn this.getPixelForValue(this.ticksAsNumbers[index]);\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('linear', LinearScale, defaultConfig);\n};\n\n},{\"26\":26,\"34\":34,\"35\":35,\"46\":46}],56:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\nvar Scale = require(33);\n\n/**\n * Generate a set of linear ticks\n * @param generationOptions the options used to generate the ticks\n * @param dataRange the range of the data\n * @returns {Array<Number>} array of tick values\n */\nfunction generateTicks(generationOptions, dataRange) {\n\tvar ticks = [];\n\t// To get a \"nice\" value for the tick spacing, we will use the appropriately named\n\t// \"nice number\" algorithm. See http://stackoverflow.com/questions/8506881/nice-label-algorithm-for-charts-with-minimum-ticks\n\t// for details.\n\n\tvar factor;\n\tvar precision;\n\tvar spacing;\n\n\tif (generationOptions.stepSize && generationOptions.stepSize > 0) {\n\t\tspacing = generationOptions.stepSize;\n\t} else {\n\t\tvar niceRange = helpers.niceNum(dataRange.max - dataRange.min, false);\n\t\tspacing = helpers.niceNum(niceRange / (generationOptions.maxTicks - 1), true);\n\n\t\tprecision = generationOptions.precision;\n\t\tif (precision !== undefined) {\n\t\t\t// If the user specified a precision, round to that number of decimal places\n\t\t\tfactor = Math.pow(10, precision);\n\t\t\tspacing = Math.ceil(spacing * factor) / factor;\n\t\t}\n\t}\n\tvar niceMin = Math.floor(dataRange.min / spacing) * spacing;\n\tvar niceMax = Math.ceil(dataRange.max / spacing) * spacing;\n\n\t// If min, max and stepSize is set and they make an evenly spaced scale use it.\n\tif (!helpers.isNullOrUndef(generationOptions.min) && !helpers.isNullOrUndef(generationOptions.max) && generationOptions.stepSize) {\n\t\t// If very close to our whole number, use it.\n\t\tif (helpers.almostWhole((generationOptions.max - generationOptions.min) / generationOptions.stepSize, spacing / 1000)) {\n\t\t\tniceMin = generationOptions.min;\n\t\t\tniceMax = generationOptions.max;\n\t\t}\n\t}\n\n\tvar numSpaces = (niceMax - niceMin) / spacing;\n\t// If very close to our rounded value, use it.\n\tif (helpers.almostEquals(numSpaces, Math.round(numSpaces), spacing / 1000)) {\n\t\tnumSpaces = Math.round(numSpaces);\n\t} else {\n\t\tnumSpaces = Math.ceil(numSpaces);\n\t}\n\n\tprecision = 1;\n\tif (spacing < 1) {\n\t\tprecision = Math.pow(10, 1 - Math.floor(helpers.log10(spacing)));\n\t\tniceMin = Math.round(niceMin * precision) / precision;\n\t\tniceMax = Math.round(niceMax * precision) / precision;\n\t}\n\tticks.push(generationOptions.min !== undefined ? generationOptions.min : niceMin);\n\tfor (var j = 1; j < numSpaces; ++j) {\n\t\tticks.push(Math.round((niceMin + j * spacing) * precision) / precision);\n\t}\n\tticks.push(generationOptions.max !== undefined ? generationOptions.max : niceMax);\n\n\treturn ticks;\n}\n\nmodule.exports = function(Chart) {\n\n\tvar noop = helpers.noop;\n\n\tChart.LinearScaleBase = Scale.extend({\n\t\tgetRightValue: function(value) {\n\t\t\tif (typeof value === 'string') {\n\t\t\t\treturn +value;\n\t\t\t}\n\t\t\treturn Scale.prototype.getRightValue.call(this, value);\n\t\t},\n\n\t\thandleTickRangeOptions: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\n\t\t\t// If we are forcing it to begin at 0, but 0 will already be rendered on the chart,\n\t\t\t// do nothing since that would make the chart weird. If the user really wants a weird chart\n\t\t\t// axis, they can manually override it\n\t\t\tif (tickOpts.beginAtZero) {\n\t\t\t\tvar minSign = helpers.sign(me.min);\n\t\t\t\tvar maxSign = helpers.sign(me.max);\n\n\t\t\t\tif (minSign < 0 && maxSign < 0) {\n\t\t\t\t\t// move the top up to 0\n\t\t\t\t\tme.max = 0;\n\t\t\t\t} else if (minSign > 0 && maxSign > 0) {\n\t\t\t\t\t// move the bottom down to 0\n\t\t\t\t\tme.min = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar setMin = tickOpts.min !== undefined || tickOpts.suggestedMin !== undefined;\n\t\t\tvar setMax = tickOpts.max !== undefined || tickOpts.suggestedMax !== undefined;\n\n\t\t\tif (tickOpts.min !== undefined) {\n\t\t\t\tme.min = tickOpts.min;\n\t\t\t} else if (tickOpts.suggestedMin !== undefined) {\n\t\t\t\tif (me.min === null) {\n\t\t\t\t\tme.min = tickOpts.suggestedMin;\n\t\t\t\t} else {\n\t\t\t\t\tme.min = Math.min(me.min, tickOpts.suggestedMin);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (tickOpts.max !== undefined) {\n\t\t\t\tme.max = tickOpts.max;\n\t\t\t} else if (tickOpts.suggestedMax !== undefined) {\n\t\t\t\tif (me.max === null) {\n\t\t\t\t\tme.max = tickOpts.suggestedMax;\n\t\t\t\t} else {\n\t\t\t\t\tme.max = Math.max(me.max, tickOpts.suggestedMax);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (setMin !== setMax) {\n\t\t\t\t// We set the min or the max but not both.\n\t\t\t\t// So ensure that our range is good\n\t\t\t\t// Inverted or 0 length range can happen when\n\t\t\t\t// ticks.min is set, and no datasets are visible\n\t\t\t\tif (me.min >= me.max) {\n\t\t\t\t\tif (setMin) {\n\t\t\t\t\t\tme.max = me.min + 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tme.min = me.max - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (me.min === me.max) {\n\t\t\t\tme.max++;\n\n\t\t\t\tif (!tickOpts.beginAtZero) {\n\t\t\t\t\tme.min--;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tgetTickLimit: noop,\n\t\thandleDirectionalChanges: noop,\n\n\t\tbuildTicks: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\n\t\t\t// Figure out what the max number of ticks we can support it is based on the size of\n\t\t\t// the axis area. For now, we say that the minimum tick spacing in pixels must be 50\n\t\t\t// We also limit the maximum number of ticks to 11 which gives a nice 10 squares on\n\t\t\t// the graph. Make sure we always have at least 2 ticks\n\t\t\tvar maxTicks = me.getTickLimit();\n\t\t\tmaxTicks = Math.max(2, maxTicks);\n\n\t\t\tvar numericGeneratorOptions = {\n\t\t\t\tmaxTicks: maxTicks,\n\t\t\t\tmin: tickOpts.min,\n\t\t\t\tmax: tickOpts.max,\n\t\t\t\tprecision: tickOpts.precision,\n\t\t\t\tstepSize: helpers.valueOrDefault(tickOpts.fixedStepSize, tickOpts.stepSize)\n\t\t\t};\n\t\t\tvar ticks = me.ticks = generateTicks(numericGeneratorOptions, me);\n\n\t\t\tme.handleDirectionalChanges();\n\n\t\t\t// At this point, we need to update our max and min given the tick values since we have expanded the\n\t\t\t// range of the scale\n\t\t\tme.max = helpers.max(ticks);\n\t\t\tme.min = helpers.min(ticks);\n\n\t\t\tif (tickOpts.reverse) {\n\t\t\t\tticks.reverse();\n\n\t\t\t\tme.start = me.max;\n\t\t\t\tme.end = me.min;\n\t\t\t} else {\n\t\t\t\tme.start = me.min;\n\t\t\t\tme.end = me.max;\n\t\t\t}\n\t\t},\n\t\tconvertTicksToLabels: function() {\n\t\t\tvar me = this;\n\t\t\tme.ticksAsNumbers = me.ticks.slice();\n\t\t\tme.zeroLineIndex = me.ticks.indexOf(0);\n\n\t\t\tScale.prototype.convertTicksToLabels.call(me);\n\t\t}\n\t});\n};\n\n},{\"33\":33,\"46\":46}],57:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\nvar Scale = require(33);\nvar scaleService = require(34);\nvar Ticks = require(35);\n\n/**\n * Generate a set of logarithmic ticks\n * @param generationOptions the options used to generate the ticks\n * @param dataRange the range of the data\n * @returns {Array<Number>} array of tick values\n */\nfunction generateTicks(generationOptions, dataRange) {\n\tvar ticks = [];\n\tvar valueOrDefault = helpers.valueOrDefault;\n\n\t// Figure out what the max number of ticks we can support it is based on the size of\n\t// the axis area. For now, we say that the minimum tick spacing in pixels must be 50\n\t// We also limit the maximum number of ticks to 11 which gives a nice 10 squares on\n\t// the graph\n\tvar tickVal = valueOrDefault(generationOptions.min, Math.pow(10, Math.floor(helpers.log10(dataRange.min))));\n\n\tvar endExp = Math.floor(helpers.log10(dataRange.max));\n\tvar endSignificand = Math.ceil(dataRange.max / Math.pow(10, endExp));\n\tvar exp, significand;\n\n\tif (tickVal === 0) {\n\t\texp = Math.floor(helpers.log10(dataRange.minNotZero));\n\t\tsignificand = Math.floor(dataRange.minNotZero / Math.pow(10, exp));\n\n\t\tticks.push(tickVal);\n\t\ttickVal = significand * Math.pow(10, exp);\n\t} else {\n\t\texp = Math.floor(helpers.log10(tickVal));\n\t\tsignificand = Math.floor(tickVal / Math.pow(10, exp));\n\t}\n\tvar precision = exp < 0 ? Math.pow(10, Math.abs(exp)) : 1;\n\n\tdo {\n\t\tticks.push(tickVal);\n\n\t\t++significand;\n\t\tif (significand === 10) {\n\t\t\tsignificand = 1;\n\t\t\t++exp;\n\t\t\tprecision = exp >= 0 ? 1 : precision;\n\t\t}\n\n\t\ttickVal = Math.round(significand * Math.pow(10, exp) * precision) / precision;\n\t} while (exp < endExp || (exp === endExp && significand < endSignificand));\n\n\tvar lastTick = valueOrDefault(generationOptions.max, tickVal);\n\tticks.push(lastTick);\n\n\treturn ticks;\n}\n\n\nmodule.exports = function(Chart) {\n\n\tvar defaultConfig = {\n\t\tposition: 'left',\n\n\t\t// label settings\n\t\tticks: {\n\t\t\tcallback: Ticks.formatters.logarithmic\n\t\t}\n\t};\n\n\tvar LogarithmicScale = Scale.extend({\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar chart = me.chart;\n\t\t\tvar data = chart.data;\n\t\t\tvar datasets = data.datasets;\n\t\t\tvar isHorizontal = me.isHorizontal();\n\t\t\tfunction IDMatches(meta) {\n\t\t\t\treturn isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id;\n\t\t\t}\n\n\t\t\t// Calculate Range\n\t\t\tme.min = null;\n\t\t\tme.max = null;\n\t\t\tme.minNotZero = null;\n\n\t\t\tvar hasStacks = opts.stacked;\n\t\t\tif (hasStacks === undefined) {\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tif (hasStacks) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta) &&\n\t\t\t\t\t\tmeta.stack !== undefined) {\n\t\t\t\t\t\thasStacks = true;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (opts.stacked || hasStacks) {\n\t\t\t\tvar valuesPerStack = {};\n\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tvar key = [\n\t\t\t\t\t\tmeta.type,\n\t\t\t\t\t\t// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\n\t\t\t\t\t\t((opts.stacked === undefined && meta.stack === undefined) ? datasetIndex : ''),\n\t\t\t\t\t\tmeta.stack\n\t\t\t\t\t].join('.');\n\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\n\t\t\t\t\t\tif (valuesPerStack[key] === undefined) {\n\t\t\t\t\t\t\tvaluesPerStack[key] = [];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\t\tvar values = valuesPerStack[key];\n\t\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\t\t// invalid, hidden and negative values are ignored\n\t\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden || value < 0) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalues[index] = values[index] || 0;\n\t\t\t\t\t\t\tvalues[index] += value;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\thelpers.each(valuesPerStack, function(valuesForType) {\n\t\t\t\t\tif (valuesForType.length > 0) {\n\t\t\t\t\t\tvar minVal = helpers.min(valuesForType);\n\t\t\t\t\t\tvar maxVal = helpers.max(valuesForType);\n\t\t\t\t\t\tme.min = me.min === null ? minVal : Math.min(me.min, minVal);\n\t\t\t\t\t\tme.max = me.max === null ? maxVal : Math.max(me.max, maxVal);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else {\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\n\t\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\t\t// invalid, hidden and negative values are ignored\n\t\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden || value < 0) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (me.min === null) {\n\t\t\t\t\t\t\t\tme.min = value;\n\t\t\t\t\t\t\t} else if (value < me.min) {\n\t\t\t\t\t\t\t\tme.min = value;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (me.max === null) {\n\t\t\t\t\t\t\t\tme.max = value;\n\t\t\t\t\t\t\t} else if (value > me.max) {\n\t\t\t\t\t\t\t\tme.max = value;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (value !== 0 && (me.minNotZero === null || value < me.minNotZero)) {\n\t\t\t\t\t\t\t\tme.minNotZero = value;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// Common base implementation to handle ticks.min, ticks.max\n\t\t\tthis.handleTickRangeOptions();\n\t\t},\n\t\thandleTickRangeOptions: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\t\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\t\tvar DEFAULT_MIN = 1;\n\t\t\tvar DEFAULT_MAX = 10;\n\n\t\t\tme.min = valueOrDefault(tickOpts.min, me.min);\n\t\t\tme.max = valueOrDefault(tickOpts.max, me.max);\n\n\t\t\tif (me.min === me.max) {\n\t\t\t\tif (me.min !== 0 && me.min !== null) {\n\t\t\t\t\tme.min = Math.pow(10, Math.floor(helpers.log10(me.min)) - 1);\n\t\t\t\t\tme.max = Math.pow(10, Math.floor(helpers.log10(me.max)) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tme.min = DEFAULT_MIN;\n\t\t\t\t\tme.max = DEFAULT_MAX;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (me.min === null) {\n\t\t\t\tme.min = Math.pow(10, Math.floor(helpers.log10(me.max)) - 1);\n\t\t\t}\n\t\t\tif (me.max === null) {\n\t\t\t\tme.max = me.min !== 0\n\t\t\t\t\t? Math.pow(10, Math.floor(helpers.log10(me.min)) + 1)\n\t\t\t\t\t: DEFAULT_MAX;\n\t\t\t}\n\t\t\tif (me.minNotZero === null) {\n\t\t\t\tif (me.min > 0) {\n\t\t\t\t\tme.minNotZero = me.min;\n\t\t\t\t} else if (me.max < 1) {\n\t\t\t\t\tme.minNotZero = Math.pow(10, Math.floor(helpers.log10(me.max)));\n\t\t\t\t} else {\n\t\t\t\t\tme.minNotZero = DEFAULT_MIN;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tbuildTicks: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\t\t\tvar reverse = !me.isHorizontal();\n\n\t\t\tvar generationOptions = {\n\t\t\t\tmin: tickOpts.min,\n\t\t\t\tmax: tickOpts.max\n\t\t\t};\n\t\t\tvar ticks = me.ticks = generateTicks(generationOptions, me);\n\n\t\t\t// At this point, we need to update our max and min given the tick values since we have expanded the\n\t\t\t// range of the scale\n\t\t\tme.max = helpers.max(ticks);\n\t\t\tme.min = helpers.min(ticks);\n\n\t\t\tif (tickOpts.reverse) {\n\t\t\t\treverse = !reverse;\n\t\t\t\tme.start = me.max;\n\t\t\t\tme.end = me.min;\n\t\t\t} else {\n\t\t\t\tme.start = me.min;\n\t\t\t\tme.end = me.max;\n\t\t\t}\n\t\t\tif (reverse) {\n\t\t\t\tticks.reverse();\n\t\t\t}\n\t\t},\n\t\tconvertTicksToLabels: function() {\n\t\t\tthis.tickValues = this.ticks.slice();\n\n\t\t\tScale.prototype.convertTicksToLabels.call(this);\n\t\t},\n\t\t// Get the correct tooltip label\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\treturn +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);\n\t\t},\n\t\tgetPixelForTick: function(index) {\n\t\t\treturn this.getPixelForValue(this.tickValues[index]);\n\t\t},\n\t\t/**\n\t\t * Returns the value of the first tick.\n\t\t * @param {Number} value - The minimum not zero value.\n\t\t * @return {Number} The first tick value.\n\t\t * @private\n\t\t */\n\t\t_getFirstTickValue: function(value) {\n\t\t\tvar exp = Math.floor(helpers.log10(value));\n\t\t\tvar significand = Math.floor(value / Math.pow(10, exp));\n\n\t\t\treturn significand * Math.pow(10, exp);\n\t\t},\n\t\tgetPixelForValue: function(value) {\n\t\t\tvar me = this;\n\t\t\tvar reverse = me.options.ticks.reverse;\n\t\t\tvar log10 = helpers.log10;\n\t\t\tvar firstTickValue = me._getFirstTickValue(me.minNotZero);\n\t\t\tvar offset = 0;\n\t\t\tvar innerDimension, pixel, start, end, sign;\n\n\t\t\tvalue = +me.getRightValue(value);\n\t\t\tif (reverse) {\n\t\t\t\tstart = me.end;\n\t\t\t\tend = me.start;\n\t\t\t\tsign = -1;\n\t\t\t} else {\n\t\t\t\tstart = me.start;\n\t\t\t\tend = me.end;\n\t\t\t\tsign = 1;\n\t\t\t}\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tinnerDimension = me.width;\n\t\t\t\tpixel = reverse ? me.right : me.left;\n\t\t\t} else {\n\t\t\t\tinnerDimension = me.height;\n\t\t\t\tsign *= -1; // invert, since the upper-left corner of the canvas is at pixel (0, 0)\n\t\t\t\tpixel = reverse ? me.top : me.bottom;\n\t\t\t}\n\t\t\tif (value !== start) {\n\t\t\t\tif (start === 0) { // include zero tick\n\t\t\t\t\toffset = helpers.getValueOrDefault(\n\t\t\t\t\t\tme.options.ticks.fontSize,\n\t\t\t\t\t\tChart.defaults.global.defaultFontSize\n\t\t\t\t\t);\n\t\t\t\t\tinnerDimension -= offset;\n\t\t\t\t\tstart = firstTickValue;\n\t\t\t\t}\n\t\t\t\tif (value !== 0) {\n\t\t\t\t\toffset += innerDimension / (log10(end) - log10(start)) * (log10(value) - log10(start));\n\t\t\t\t}\n\t\t\t\tpixel += sign * offset;\n\t\t\t}\n\t\t\treturn pixel;\n\t\t},\n\t\tgetValueForPixel: function(pixel) {\n\t\t\tvar me = this;\n\t\t\tvar reverse = me.options.ticks.reverse;\n\t\t\tvar log10 = helpers.log10;\n\t\t\tvar firstTickValue = me._getFirstTickValue(me.minNotZero);\n\t\t\tvar innerDimension, start, end, value;\n\n\t\t\tif (reverse) {\n\t\t\t\tstart = me.end;\n\t\t\t\tend = me.start;\n\t\t\t} else {\n\t\t\t\tstart = me.start;\n\t\t\t\tend = me.end;\n\t\t\t}\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tinnerDimension = me.width;\n\t\t\t\tvalue = reverse ? me.right - pixel : pixel - me.left;\n\t\t\t} else {\n\t\t\t\tinnerDimension = me.height;\n\t\t\t\tvalue = reverse ? pixel - me.top : me.bottom - pixel;\n\t\t\t}\n\t\t\tif (value !== start) {\n\t\t\t\tif (start === 0) { // include zero tick\n\t\t\t\t\tvar offset = helpers.getValueOrDefault(\n\t\t\t\t\t\tme.options.ticks.fontSize,\n\t\t\t\t\t\tChart.defaults.global.defaultFontSize\n\t\t\t\t\t);\n\t\t\t\t\tvalue -= offset;\n\t\t\t\t\tinnerDimension -= offset;\n\t\t\t\t\tstart = firstTickValue;\n\t\t\t\t}\n\t\t\t\tvalue *= log10(end) - log10(start);\n\t\t\t\tvalue /= innerDimension;\n\t\t\t\tvalue = Math.pow(10, log10(start) + value);\n\t\t\t}\n\t\t\treturn value;\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('logarithmic', LogarithmicScale, defaultConfig);\n};\n\n},{\"33\":33,\"34\":34,\"35\":35,\"46\":46}],58:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\nvar scaleService = require(34);\nvar Ticks = require(35);\n\nmodule.exports = function(Chart) {\n\n\tvar globalDefaults = defaults.global;\n\n\tvar defaultConfig = {\n\t\tdisplay: true,\n\n\t\t// Boolean - Whether to animate scaling the chart from the centre\n\t\tanimate: true,\n\t\tposition: 'chartArea',\n\n\t\tangleLines: {\n\t\t\tdisplay: true,\n\t\t\tcolor: 'rgba(0, 0, 0, 0.1)',\n\t\t\tlineWidth: 1\n\t\t},\n\n\t\tgridLines: {\n\t\t\tcircular: false\n\t\t},\n\n\t\t// label settings\n\t\tticks: {\n\t\t\t// Boolean - Show a backdrop to the scale label\n\t\t\tshowLabelBackdrop: true,\n\n\t\t\t// String - The colour of the label backdrop\n\t\t\tbackdropColor: 'rgba(255,255,255,0.75)',\n\n\t\t\t// Number - The backdrop padding above & below the label in pixels\n\t\t\tbackdropPaddingY: 2,\n\n\t\t\t// Number - The backdrop padding to the side of the label in pixels\n\t\t\tbackdropPaddingX: 2,\n\n\t\t\tcallback: Ticks.formatters.linear\n\t\t},\n\n\t\tpointLabels: {\n\t\t\t// Boolean - if true, show point labels\n\t\t\tdisplay: true,\n\n\t\t\t// Number - Point label font size in pixels\n\t\t\tfontSize: 10,\n\n\t\t\t// Function - Used to convert point labels\n\t\t\tcallback: function(label) {\n\t\t\t\treturn label;\n\t\t\t}\n\t\t}\n\t};\n\n\tfunction getValueCount(scale) {\n\t\tvar opts = scale.options;\n\t\treturn opts.angleLines.display || opts.pointLabels.display ? scale.chart.data.labels.length : 0;\n\t}\n\n\tfunction getPointLabelFontOptions(scale) {\n\t\tvar pointLabelOptions = scale.options.pointLabels;\n\t\tvar fontSize = helpers.valueOrDefault(pointLabelOptions.fontSize, globalDefaults.defaultFontSize);\n\t\tvar fontStyle = helpers.valueOrDefault(pointLabelOptions.fontStyle, globalDefaults.defaultFontStyle);\n\t\tvar fontFamily = helpers.valueOrDefault(pointLabelOptions.fontFamily, globalDefaults.defaultFontFamily);\n\t\tvar font = helpers.fontString(fontSize, fontStyle, fontFamily);\n\n\t\treturn {\n\t\t\tsize: fontSize,\n\t\t\tstyle: fontStyle,\n\t\t\tfamily: fontFamily,\n\t\t\tfont: font\n\t\t};\n\t}\n\n\tfunction measureLabelSize(ctx, fontSize, label) {\n\t\tif (helpers.isArray(label)) {\n\t\t\treturn {\n\t\t\t\tw: helpers.longestText(ctx, ctx.font, label),\n\t\t\t\th: (label.length * fontSize) + ((label.length - 1) * 1.5 * fontSize)\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tw: ctx.measureText(label).width,\n\t\t\th: fontSize\n\t\t};\n\t}\n\n\tfunction determineLimits(angle, pos, size, min, max) {\n\t\tif (angle === min || angle === max) {\n\t\t\treturn {\n\t\t\t\tstart: pos - (size / 2),\n\t\t\t\tend: pos + (size / 2)\n\t\t\t};\n\t\t} else if (angle < min || angle > max) {\n\t\t\treturn {\n\t\t\t\tstart: pos - size - 5,\n\t\t\t\tend: pos\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tstart: pos,\n\t\t\tend: pos + size + 5\n\t\t};\n\t}\n\n\t/**\n\t * Helper function to fit a radial linear scale with point labels\n\t */\n\tfunction fitWithPointLabels(scale) {\n\t\t/*\n\t\t * Right, this is really confusing and there is a lot of maths going on here\n\t\t * The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9\n\t\t *\n\t\t * Reaction: https://dl.dropboxusercontent.com/u/34601363/toomuchscience.gif\n\t\t *\n\t\t * Solution:\n\t\t *\n\t\t * We assume the radius of the polygon is half the size of the canvas at first\n\t\t * at each index we check if the text overlaps.\n\t\t *\n\t\t * Where it does, we store that angle and that index.\n\t\t *\n\t\t * After finding the largest index and angle we calculate how much we need to remove\n\t\t * from the shape radius to move the point inwards by that x.\n\t\t *\n\t\t * We average the left and right distances to get the maximum shape radius that can fit in the box\n\t\t * along with labels.\n\t\t *\n\t\t * Once we have that, we can find the centre point for the chart, by taking the x text protrusion\n\t\t * on each side, removing that from the size, halving it and adding the left x protrusion width.\n\t\t *\n\t\t * This will mean we have a shape fitted to the canvas, as large as it can be with the labels\n\t\t * and position it in the most space efficient manner\n\t\t *\n\t\t * https://dl.dropboxusercontent.com/u/34601363/yeahscience.gif\n\t\t */\n\n\t\tvar plFont = getPointLabelFontOptions(scale);\n\n\t\t// Get maximum radius of the polygon. Either half the height (minus the text width) or half the width.\n\t\t// Use this to calculate the offset + change. - Make sure L/R protrusion is at least 0 to stop issues with centre points\n\t\tvar largestPossibleRadius = Math.min(scale.height / 2, scale.width / 2);\n\t\tvar furthestLimits = {\n\t\t\tr: scale.width,\n\t\t\tl: 0,\n\t\t\tt: scale.height,\n\t\t\tb: 0\n\t\t};\n\t\tvar furthestAngles = {};\n\t\tvar i, textSize, pointPosition;\n\n\t\tscale.ctx.font = plFont.font;\n\t\tscale._pointLabelSizes = [];\n\n\t\tvar valueCount = getValueCount(scale);\n\t\tfor (i = 0; i < valueCount; i++) {\n\t\t\tpointPosition = scale.getPointPosition(i, largestPossibleRadius);\n\t\t\ttextSize = measureLabelSize(scale.ctx, plFont.size, scale.pointLabels[i] || '');\n\t\t\tscale._pointLabelSizes[i] = textSize;\n\n\t\t\t// Add quarter circle to make degree 0 mean top of circle\n\t\t\tvar angleRadians = scale.getIndexAngle(i);\n\t\t\tvar angle = helpers.toDegrees(angleRadians) % 360;\n\t\t\tvar hLimits = determineLimits(angle, pointPosition.x, textSize.w, 0, 180);\n\t\t\tvar vLimits = determineLimits(angle, pointPosition.y, textSize.h, 90, 270);\n\n\t\t\tif (hLimits.start < furthestLimits.l) {\n\t\t\t\tfurthestLimits.l = hLimits.start;\n\t\t\t\tfurthestAngles.l = angleRadians;\n\t\t\t}\n\n\t\t\tif (hLimits.end > furthestLimits.r) {\n\t\t\t\tfurthestLimits.r = hLimits.end;\n\t\t\t\tfurthestAngles.r = angleRadians;\n\t\t\t}\n\n\t\t\tif (vLimits.start < furthestLimits.t) {\n\t\t\t\tfurthestLimits.t = vLimits.start;\n\t\t\t\tfurthestAngles.t = angleRadians;\n\t\t\t}\n\n\t\t\tif (vLimits.end > furthestLimits.b) {\n\t\t\t\tfurthestLimits.b = vLimits.end;\n\t\t\t\tfurthestAngles.b = angleRadians;\n\t\t\t}\n\t\t}\n\n\t\tscale.setReductions(largestPossibleRadius, furthestLimits, furthestAngles);\n\t}\n\n\t/**\n\t * Helper function to fit a radial linear scale with no point labels\n\t */\n\tfunction fit(scale) {\n\t\tvar largestPossibleRadius = Math.min(scale.height / 2, scale.width / 2);\n\t\tscale.drawingArea = Math.round(largestPossibleRadius);\n\t\tscale.setCenterPoint(0, 0, 0, 0);\n\t}\n\n\tfunction getTextAlignForAngle(angle) {\n\t\tif (angle === 0 || angle === 180) {\n\t\t\treturn 'center';\n\t\t} else if (angle < 180) {\n\t\t\treturn 'left';\n\t\t}\n\n\t\treturn 'right';\n\t}\n\n\tfunction fillText(ctx, text, position, fontSize) {\n\t\tif (helpers.isArray(text)) {\n\t\t\tvar y = position.y;\n\t\t\tvar spacing = 1.5 * fontSize;\n\n\t\t\tfor (var i = 0; i < text.length; ++i) {\n\t\t\t\tctx.fillText(text[i], position.x, y);\n\t\t\t\ty += spacing;\n\t\t\t}\n\t\t} else {\n\t\t\tctx.fillText(text, position.x, position.y);\n\t\t}\n\t}\n\n\tfunction adjustPointPositionForLabelHeight(angle, textSize, position) {\n\t\tif (angle === 90 || angle === 270) {\n\t\t\tposition.y -= (textSize.h / 2);\n\t\t} else if (angle > 270 || angle < 90) {\n\t\t\tposition.y -= textSize.h;\n\t\t}\n\t}\n\n\tfunction drawPointLabels(scale) {\n\t\tvar ctx = scale.ctx;\n\t\tvar opts = scale.options;\n\t\tvar angleLineOpts = opts.angleLines;\n\t\tvar pointLabelOpts = opts.pointLabels;\n\n\t\tctx.lineWidth = angleLineOpts.lineWidth;\n\t\tctx.strokeStyle = angleLineOpts.color;\n\n\t\tvar outerDistance = scale.getDistanceFromCenterForValue(opts.ticks.reverse ? scale.min : scale.max);\n\n\t\t// Point Label Font\n\t\tvar plFont = getPointLabelFontOptions(scale);\n\n\t\tctx.textBaseline = 'top';\n\n\t\tfor (var i = getValueCount(scale) - 1; i >= 0; i--) {\n\t\t\tif (angleLineOpts.display) {\n\t\t\t\tvar outerPosition = scale.getPointPosition(i, outerDistance);\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(scale.xCenter, scale.yCenter);\n\t\t\t\tctx.lineTo(outerPosition.x, outerPosition.y);\n\t\t\t\tctx.stroke();\n\t\t\t\tctx.closePath();\n\t\t\t}\n\n\t\t\tif (pointLabelOpts.display) {\n\t\t\t\t// Extra 3px out for some label spacing\n\t\t\t\tvar pointLabelPosition = scale.getPointPosition(i, outerDistance + 5);\n\n\t\t\t\t// Keep this in loop since we may support array properties here\n\t\t\t\tvar pointLabelFontColor = helpers.valueAtIndexOrDefault(pointLabelOpts.fontColor, i, globalDefaults.defaultFontColor);\n\t\t\t\tctx.font = plFont.font;\n\t\t\t\tctx.fillStyle = pointLabelFontColor;\n\n\t\t\t\tvar angleRadians = scale.getIndexAngle(i);\n\t\t\t\tvar angle = helpers.toDegrees(angleRadians);\n\t\t\t\tctx.textAlign = getTextAlignForAngle(angle);\n\t\t\t\tadjustPointPositionForLabelHeight(angle, scale._pointLabelSizes[i], pointLabelPosition);\n\t\t\t\tfillText(ctx, scale.pointLabels[i] || '', pointLabelPosition, plFont.size);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction drawRadiusLine(scale, gridLineOpts, radius, index) {\n\t\tvar ctx = scale.ctx;\n\t\tctx.strokeStyle = helpers.valueAtIndexOrDefault(gridLineOpts.color, index - 1);\n\t\tctx.lineWidth = helpers.valueAtIndexOrDefault(gridLineOpts.lineWidth, index - 1);\n\n\t\tif (scale.options.gridLines.circular) {\n\t\t\t// Draw circular arcs between the points\n\t\t\tctx.beginPath();\n\t\t\tctx.arc(scale.xCenter, scale.yCenter, radius, 0, Math.PI * 2);\n\t\t\tctx.closePath();\n\t\t\tctx.stroke();\n\t\t} else {\n\t\t\t// Draw straight lines connecting each index\n\t\t\tvar valueCount = getValueCount(scale);\n\n\t\t\tif (valueCount === 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tctx.beginPath();\n\t\t\tvar pointPosition = scale.getPointPosition(0, radius);\n\t\t\tctx.moveTo(pointPosition.x, pointPosition.y);\n\n\t\t\tfor (var i = 1; i < valueCount; i++) {\n\t\t\t\tpointPosition = scale.getPointPosition(i, radius);\n\t\t\t\tctx.lineTo(pointPosition.x, pointPosition.y);\n\t\t\t}\n\n\t\t\tctx.closePath();\n\t\t\tctx.stroke();\n\t\t}\n\t}\n\n\tfunction numberOrZero(param) {\n\t\treturn helpers.isNumber(param) ? param : 0;\n\t}\n\n\tvar LinearRadialScale = Chart.LinearScaleBase.extend({\n\t\tsetDimensions: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\t\t\t// Set the unconstrained dimension before label rotation\n\t\t\tme.width = me.maxWidth;\n\t\t\tme.height = me.maxHeight;\n\t\t\tme.xCenter = Math.round(me.width / 2);\n\t\t\tme.yCenter = Math.round(me.height / 2);\n\n\t\t\tvar minSize = helpers.min([me.height, me.width]);\n\t\t\tvar tickFontSize = helpers.valueOrDefault(tickOpts.fontSize, globalDefaults.defaultFontSize);\n\t\t\tme.drawingArea = opts.display ? (minSize / 2) - (tickFontSize / 2 + tickOpts.backdropPaddingY) : (minSize / 2);\n\t\t},\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar min = Number.POSITIVE_INFINITY;\n\t\t\tvar max = Number.NEGATIVE_INFINITY;\n\n\t\t\thelpers.each(chart.data.datasets, function(dataset, datasetIndex) {\n\t\t\t\tif (chart.isDatasetVisible(datasetIndex)) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\n\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tmin = Math.min(value, min);\n\t\t\t\t\t\tmax = Math.max(value, max);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tme.min = (min === Number.POSITIVE_INFINITY ? 0 : min);\n\t\t\tme.max = (max === Number.NEGATIVE_INFINITY ? 0 : max);\n\n\t\t\t// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\n\t\t\tme.handleTickRangeOptions();\n\t\t},\n\t\tgetTickLimit: function() {\n\t\t\tvar tickOpts = this.options.ticks;\n\t\t\tvar tickFontSize = helpers.valueOrDefault(tickOpts.fontSize, globalDefaults.defaultFontSize);\n\t\t\treturn Math.min(tickOpts.maxTicksLimit ? tickOpts.maxTicksLimit : 11, Math.ceil(this.drawingArea / (1.5 * tickFontSize)));\n\t\t},\n\t\tconvertTicksToLabels: function() {\n\t\t\tvar me = this;\n\n\t\t\tChart.LinearScaleBase.prototype.convertTicksToLabels.call(me);\n\n\t\t\t// Point labels\n\t\t\tme.pointLabels = me.chart.data.labels.map(me.options.pointLabels.callback, me);\n\t\t},\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\treturn +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);\n\t\t},\n\t\tfit: function() {\n\t\t\tif (this.options.pointLabels.display) {\n\t\t\t\tfitWithPointLabels(this);\n\t\t\t} else {\n\t\t\t\tfit(this);\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Set radius reductions and determine new radius and center point\n\t\t * @private\n\t\t */\n\t\tsetReductions: function(largestPossibleRadius, furthestLimits, furthestAngles) {\n\t\t\tvar me = this;\n\t\t\tvar radiusReductionLeft = furthestLimits.l / Math.sin(furthestAngles.l);\n\t\t\tvar radiusReductionRight = Math.max(furthestLimits.r - me.width, 0) / Math.sin(furthestAngles.r);\n\t\t\tvar radiusReductionTop = -furthestLimits.t / Math.cos(furthestAngles.t);\n\t\t\tvar radiusReductionBottom = -Math.max(furthestLimits.b - me.height, 0) / Math.cos(furthestAngles.b);\n\n\t\t\tradiusReductionLeft = numberOrZero(radiusReductionLeft);\n\t\t\tradiusReductionRight = numberOrZero(radiusReductionRight);\n\t\t\tradiusReductionTop = numberOrZero(radiusReductionTop);\n\t\t\tradiusReductionBottom = numberOrZero(radiusReductionBottom);\n\n\t\t\tme.drawingArea = Math.min(\n\t\t\t\tMath.round(largestPossibleRadius - (radiusReductionLeft + radiusReductionRight) / 2),\n\t\t\t\tMath.round(largestPossibleRadius - (radiusReductionTop + radiusReductionBottom) / 2));\n\t\t\tme.setCenterPoint(radiusReductionLeft, radiusReductionRight, radiusReductionTop, radiusReductionBottom);\n\t\t},\n\t\tsetCenterPoint: function(leftMovement, rightMovement, topMovement, bottomMovement) {\n\t\t\tvar me = this;\n\t\t\tvar maxRight = me.width - rightMovement - me.drawingArea;\n\t\t\tvar maxLeft = leftMovement + me.drawingArea;\n\t\t\tvar maxTop = topMovement + me.drawingArea;\n\t\t\tvar maxBottom = me.height - bottomMovement - me.drawingArea;\n\n\t\t\tme.xCenter = Math.round(((maxLeft + maxRight) / 2) + me.left);\n\t\t\tme.yCenter = Math.round(((maxTop + maxBottom) / 2) + me.top);\n\t\t},\n\n\t\tgetIndexAngle: function(index) {\n\t\t\tvar angleMultiplier = (Math.PI * 2) / getValueCount(this);\n\t\t\tvar startAngle = this.chart.options && this.chart.options.startAngle ?\n\t\t\t\tthis.chart.options.startAngle :\n\t\t\t\t0;\n\n\t\t\tvar startAngleRadians = startAngle * Math.PI * 2 / 360;\n\n\t\t\t// Start from the top instead of right, so remove a quarter of the circle\n\t\t\treturn index * angleMultiplier + startAngleRadians;\n\t\t},\n\t\tgetDistanceFromCenterForValue: function(value) {\n\t\t\tvar me = this;\n\n\t\t\tif (value === null) {\n\t\t\t\treturn 0; // null always in center\n\t\t\t}\n\n\t\t\t// Take into account half font size + the yPadding of the top value\n\t\t\tvar scalingFactor = me.drawingArea / (me.max - me.min);\n\t\t\tif (me.options.ticks.reverse) {\n\t\t\t\treturn (me.max - value) * scalingFactor;\n\t\t\t}\n\t\t\treturn (value - me.min) * scalingFactor;\n\t\t},\n\t\tgetPointPosition: function(index, distanceFromCenter) {\n\t\t\tvar me = this;\n\t\t\tvar thisAngle = me.getIndexAngle(index) - (Math.PI / 2);\n\t\t\treturn {\n\t\t\t\tx: Math.round(Math.cos(thisAngle) * distanceFromCenter) + me.xCenter,\n\t\t\t\ty: Math.round(Math.sin(thisAngle) * distanceFromCenter) + me.yCenter\n\t\t\t};\n\t\t},\n\t\tgetPointPositionForValue: function(index, value) {\n\t\t\treturn this.getPointPosition(index, this.getDistanceFromCenterForValue(value));\n\t\t},\n\n\t\tgetBasePosition: function() {\n\t\t\tvar me = this;\n\t\t\tvar min = me.min;\n\t\t\tvar max = me.max;\n\n\t\t\treturn me.getPointPositionForValue(0,\n\t\t\t\tme.beginAtZero ? 0 :\n\t\t\t\tmin < 0 && max < 0 ? max :\n\t\t\t\tmin > 0 && max > 0 ? min :\n\t\t\t\t0);\n\t\t},\n\n\t\tdraw: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar gridLineOpts = opts.gridLines;\n\t\t\tvar tickOpts = opts.ticks;\n\t\t\tvar valueOrDefault = helpers.valueOrDefault;\n\n\t\t\tif (opts.display) {\n\t\t\t\tvar ctx = me.ctx;\n\t\t\t\tvar startAngle = this.getIndexAngle(0);\n\n\t\t\t\t// Tick Font\n\t\t\t\tvar tickFontSize = valueOrDefault(tickOpts.fontSize, globalDefaults.defaultFontSize);\n\t\t\t\tvar tickFontStyle = valueOrDefault(tickOpts.fontStyle, globalDefaults.defaultFontStyle);\n\t\t\t\tvar tickFontFamily = valueOrDefault(tickOpts.fontFamily, globalDefaults.defaultFontFamily);\n\t\t\t\tvar tickLabelFont = helpers.fontString(tickFontSize, tickFontStyle, tickFontFamily);\n\n\t\t\t\thelpers.each(me.ticks, function(label, index) {\n\t\t\t\t\t// Don't draw a centre value (if it is minimum)\n\t\t\t\t\tif (index > 0 || tickOpts.reverse) {\n\t\t\t\t\t\tvar yCenterOffset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);\n\n\t\t\t\t\t\t// Draw circular lines around the scale\n\t\t\t\t\t\tif (gridLineOpts.display && index !== 0) {\n\t\t\t\t\t\t\tdrawRadiusLine(me, gridLineOpts, yCenterOffset, index);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (tickOpts.display) {\n\t\t\t\t\t\t\tvar tickFontColor = valueOrDefault(tickOpts.fontColor, globalDefaults.defaultFontColor);\n\t\t\t\t\t\t\tctx.font = tickLabelFont;\n\n\t\t\t\t\t\t\tctx.save();\n\t\t\t\t\t\t\tctx.translate(me.xCenter, me.yCenter);\n\t\t\t\t\t\t\tctx.rotate(startAngle);\n\n\t\t\t\t\t\t\tif (tickOpts.showLabelBackdrop) {\n\t\t\t\t\t\t\t\tvar labelWidth = ctx.measureText(label).width;\n\t\t\t\t\t\t\t\tctx.fillStyle = tickOpts.backdropColor;\n\t\t\t\t\t\t\t\tctx.fillRect(\n\t\t\t\t\t\t\t\t\t-labelWidth / 2 - tickOpts.backdropPaddingX,\n\t\t\t\t\t\t\t\t\t-yCenterOffset - tickFontSize / 2 - tickOpts.backdropPaddingY,\n\t\t\t\t\t\t\t\t\tlabelWidth + tickOpts.backdropPaddingX * 2,\n\t\t\t\t\t\t\t\t\ttickFontSize + tickOpts.backdropPaddingY * 2\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tctx.textAlign = 'center';\n\t\t\t\t\t\t\tctx.textBaseline = 'middle';\n\t\t\t\t\t\t\tctx.fillStyle = tickFontColor;\n\t\t\t\t\t\t\tctx.fillText(label, 0, -yCenterOffset);\n\t\t\t\t\t\t\tctx.restore();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tif (opts.angleLines.display || opts.pointLabels.display) {\n\t\t\t\t\tdrawPointLabels(me);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('radialLinear', LinearRadialScale, defaultConfig);\n};\n\n},{\"26\":26,\"34\":34,\"35\":35,\"46\":46}],59:[function(require,module,exports){\n/* global window: false */\n'use strict';\n\nvar moment = require(1);\nmoment = typeof moment === 'function' ? moment : window.moment;\n\nvar defaults = require(26);\nvar helpers = require(46);\nvar Scale = require(33);\nvar scaleService = require(34);\n\n// Integer constants are from the ES6 spec.\nvar MIN_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;\nvar MAX_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;\n\nvar INTERVALS = {\n\tmillisecond: {\n\t\tcommon: true,\n\t\tsize: 1,\n\t\tsteps: [1, 2, 5, 10, 20, 50, 100, 250, 500]\n\t},\n\tsecond: {\n\t\tcommon: true,\n\t\tsize: 1000,\n\t\tsteps: [1, 2, 5, 10, 15, 30]\n\t},\n\tminute: {\n\t\tcommon: true,\n\t\tsize: 60000,\n\t\tsteps: [1, 2, 5, 10, 15, 30]\n\t},\n\thour: {\n\t\tcommon: true,\n\t\tsize: 3600000,\n\t\tsteps: [1, 2, 3, 6, 12]\n\t},\n\tday: {\n\t\tcommon: true,\n\t\tsize: 86400000,\n\t\tsteps: [1, 2, 5]\n\t},\n\tweek: {\n\t\tcommon: false,\n\t\tsize: 604800000,\n\t\tsteps: [1, 2, 3, 4]\n\t},\n\tmonth: {\n\t\tcommon: true,\n\t\tsize: 2.628e9,\n\t\tsteps: [1, 2, 3]\n\t},\n\tquarter: {\n\t\tcommon: false,\n\t\tsize: 7.884e9,\n\t\tsteps: [1, 2, 3, 4]\n\t},\n\tyear: {\n\t\tcommon: true,\n\t\tsize: 3.154e10\n\t}\n};\n\nvar UNITS = Object.keys(INTERVALS);\n\nfunction sorter(a, b) {\n\treturn a - b;\n}\n\nfunction arrayUnique(items) {\n\tvar hash = {};\n\tvar out = [];\n\tvar i, ilen, item;\n\n\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\n\t\titem = items[i];\n\t\tif (!hash[item]) {\n\t\t\thash[item] = true;\n\t\t\tout.push(item);\n\t\t}\n\t}\n\n\treturn out;\n}\n\n/**\n * Returns an array of {time, pos} objects used to interpolate a specific `time` or position\n * (`pos`) on the scale, by searching entries before and after the requested value. `pos` is\n * a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other\n * extremity (left + width or top + height). Note that it would be more optimized to directly\n * store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need\n * to create the lookup table. The table ALWAYS contains at least two items: min and max.\n *\n * @param {Number[]} timestamps - timestamps sorted from lowest to highest.\n * @param {String} distribution - If 'linear', timestamps will be spread linearly along the min\n * and max range, so basically, the table will contains only two items: {min, 0} and {max, 1}.\n * If 'series', timestamps will be positioned at the same distance from each other. In this\n * case, only timestamps that break the time linearity are registered, meaning that in the\n * best case, all timestamps are linear, the table contains only min and max.\n */\nfunction buildLookupTable(timestamps, min, max, distribution) {\n\tif (distribution === 'linear' || !timestamps.length) {\n\t\treturn [\n\t\t\t{time: min, pos: 0},\n\t\t\t{time: max, pos: 1}\n\t\t];\n\t}\n\n\tvar table = [];\n\tvar items = [min];\n\tvar i, ilen, prev, curr, next;\n\n\tfor (i = 0, ilen = timestamps.length; i < ilen; ++i) {\n\t\tcurr = timestamps[i];\n\t\tif (curr > min && curr < max) {\n\t\t\titems.push(curr);\n\t\t}\n\t}\n\n\titems.push(max);\n\n\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\n\t\tnext = items[i + 1];\n\t\tprev = items[i - 1];\n\t\tcurr = items[i];\n\n\t\t// only add points that breaks the scale linearity\n\t\tif (prev === undefined || next === undefined || Math.round((next + prev) / 2) !== curr) {\n\t\t\ttable.push({time: curr, pos: i / (ilen - 1)});\n\t\t}\n\t}\n\n\treturn table;\n}\n\n// @see adapted from http://www.anujgakhar.com/2014/03/01/binary-search-in-javascript/\nfunction lookup(table, key, value) {\n\tvar lo = 0;\n\tvar hi = table.length - 1;\n\tvar mid, i0, i1;\n\n\twhile (lo >= 0 && lo <= hi) {\n\t\tmid = (lo + hi) >> 1;\n\t\ti0 = table[mid - 1] || null;\n\t\ti1 = table[mid];\n\n\t\tif (!i0) {\n\t\t\t// given value is outside table (before first item)\n\t\t\treturn {lo: null, hi: i1};\n\t\t} else if (i1[key] < value) {\n\t\t\tlo = mid + 1;\n\t\t} else if (i0[key] > value) {\n\t\t\thi = mid - 1;\n\t\t} else {\n\t\t\treturn {lo: i0, hi: i1};\n\t\t}\n\t}\n\n\t// given value is outside table (after last item)\n\treturn {lo: i1, hi: null};\n}\n\n/**\n * Linearly interpolates the given source `value` using the table items `skey` values and\n * returns the associated `tkey` value. For example, interpolate(table, 'time', 42, 'pos')\n * returns the position for a timestamp equal to 42. If value is out of bounds, values at\n * index [0, 1] or [n - 1, n] are used for the interpolation.\n */\nfunction interpolate(table, skey, sval, tkey) {\n\tvar range = lookup(table, skey, sval);\n\n\t// Note: the lookup table ALWAYS contains at least 2 items (min and max)\n\tvar prev = !range.lo ? table[0] : !range.hi ? table[table.length - 2] : range.lo;\n\tvar next = !range.lo ? table[1] : !range.hi ? table[table.length - 1] : range.hi;\n\n\tvar span = next[skey] - prev[skey];\n\tvar ratio = span ? (sval - prev[skey]) / span : 0;\n\tvar offset = (next[tkey] - prev[tkey]) * ratio;\n\n\treturn prev[tkey] + offset;\n}\n\n/**\n * Convert the given value to a moment object using the given time options.\n * @see http://momentjs.com/docs/#/parsing/\n */\nfunction momentify(value, options) {\n\tvar parser = options.parser;\n\tvar format = options.parser || options.format;\n\n\tif (typeof parser === 'function') {\n\t\treturn parser(value);\n\t}\n\n\tif (typeof value === 'string' && typeof format === 'string') {\n\t\treturn moment(value, format);\n\t}\n\n\tif (!(value instanceof moment)) {\n\t\tvalue = moment(value);\n\t}\n\n\tif (value.isValid()) {\n\t\treturn value;\n\t}\n\n\t// Labels are in an incompatible moment format and no `parser` has been provided.\n\t// The user might still use the deprecated `format` option to convert his inputs.\n\tif (typeof format === 'function') {\n\t\treturn format(value);\n\t}\n\n\treturn value;\n}\n\nfunction parse(input, scale) {\n\tif (helpers.isNullOrUndef(input)) {\n\t\treturn null;\n\t}\n\n\tvar options = scale.options.time;\n\tvar value = momentify(scale.getRightValue(input), options);\n\tif (!value.isValid()) {\n\t\treturn null;\n\t}\n\n\tif (options.round) {\n\t\tvalue.startOf(options.round);\n\t}\n\n\treturn value.valueOf();\n}\n\n/**\n * Returns the number of unit to skip to be able to display up to `capacity` number of ticks\n * in `unit` for the given `min` / `max` range and respecting the interval steps constraints.\n */\nfunction determineStepSize(min, max, unit, capacity) {\n\tvar range = max - min;\n\tvar interval = INTERVALS[unit];\n\tvar milliseconds = interval.size;\n\tvar steps = interval.steps;\n\tvar i, ilen, factor;\n\n\tif (!steps) {\n\t\treturn Math.ceil(range / (capacity * milliseconds));\n\t}\n\n\tfor (i = 0, ilen = steps.length; i < ilen; ++i) {\n\t\tfactor = steps[i];\n\t\tif (Math.ceil(range / (milliseconds * factor)) <= capacity) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn factor;\n}\n\n/**\n * Figures out what unit results in an appropriate number of auto-generated ticks\n */\nfunction determineUnitForAutoTicks(minUnit, min, max, capacity) {\n\tvar ilen = UNITS.length;\n\tvar i, interval, factor;\n\n\tfor (i = UNITS.indexOf(minUnit); i < ilen - 1; ++i) {\n\t\tinterval = INTERVALS[UNITS[i]];\n\t\tfactor = interval.steps ? interval.steps[interval.steps.length - 1] : MAX_INTEGER;\n\n\t\tif (interval.common && Math.ceil((max - min) / (factor * interval.size)) <= capacity) {\n\t\t\treturn UNITS[i];\n\t\t}\n\t}\n\n\treturn UNITS[ilen - 1];\n}\n\n/**\n * Figures out what unit to format a set of ticks with\n */\nfunction determineUnitForFormatting(ticks, minUnit, min, max) {\n\tvar duration = moment.duration(moment(max).diff(moment(min)));\n\tvar ilen = UNITS.length;\n\tvar i, unit;\n\n\tfor (i = ilen - 1; i >= UNITS.indexOf(minUnit); i--) {\n\t\tunit = UNITS[i];\n\t\tif (INTERVALS[unit].common && duration.as(unit) >= ticks.length) {\n\t\t\treturn unit;\n\t\t}\n\t}\n\n\treturn UNITS[minUnit ? UNITS.indexOf(minUnit) : 0];\n}\n\nfunction determineMajorUnit(unit) {\n\tfor (var i = UNITS.indexOf(unit) + 1, ilen = UNITS.length; i < ilen; ++i) {\n\t\tif (INTERVALS[UNITS[i]].common) {\n\t\t\treturn UNITS[i];\n\t\t}\n\t}\n}\n\n/**\n * Generates a maximum of `capacity` timestamps between min and max, rounded to the\n * `minor` unit, aligned on the `major` unit and using the given scale time `options`.\n * Important: this method can return ticks outside the min and max range, it's the\n * responsibility of the calling code to clamp values if needed.\n */\nfunction generate(min, max, capacity, options) {\n\tvar timeOpts = options.time;\n\tvar minor = timeOpts.unit || determineUnitForAutoTicks(timeOpts.minUnit, min, max, capacity);\n\tvar major = determineMajorUnit(minor);\n\tvar stepSize = helpers.valueOrDefault(timeOpts.stepSize, timeOpts.unitStepSize);\n\tvar weekday = minor === 'week' ? timeOpts.isoWeekday : false;\n\tvar majorTicksEnabled = options.ticks.major.enabled;\n\tvar interval = INTERVALS[minor];\n\tvar first = moment(min);\n\tvar last = moment(max);\n\tvar ticks = [];\n\tvar time;\n\n\tif (!stepSize) {\n\t\tstepSize = determineStepSize(min, max, minor, capacity);\n\t}\n\n\t// For 'week' unit, handle the first day of week option\n\tif (weekday) {\n\t\tfirst = first.isoWeekday(weekday);\n\t\tlast = last.isoWeekday(weekday);\n\t}\n\n\t// Align first/last ticks on unit\n\tfirst = first.startOf(weekday ? 'day' : minor);\n\tlast = last.startOf(weekday ? 'day' : minor);\n\n\t// Make sure that the last tick include max\n\tif (last < max) {\n\t\tlast.add(1, minor);\n\t}\n\n\ttime = moment(first);\n\n\tif (majorTicksEnabled && major && !weekday && !timeOpts.round) {\n\t\t// Align the first tick on the previous `minor` unit aligned on the `major` unit:\n\t\t// we first aligned time on the previous `major` unit then add the number of full\n\t\t// stepSize there is between first and the previous major time.\n\t\ttime.startOf(major);\n\t\ttime.add(~~((first - time) / (interval.size * stepSize)) * stepSize, minor);\n\t}\n\n\tfor (; time < last; time.add(stepSize, minor)) {\n\t\tticks.push(+time);\n\t}\n\n\tticks.push(+time);\n\n\treturn ticks;\n}\n\n/**\n * Returns the right and left offsets from edges in the form of {left, right}.\n * Offsets are added when the `offset` option is true.\n */\nfunction computeOffsets(table, ticks, min, max, options) {\n\tvar left = 0;\n\tvar right = 0;\n\tvar upper, lower;\n\n\tif (options.offset && ticks.length) {\n\t\tif (!options.time.min) {\n\t\t\tupper = ticks.length > 1 ? ticks[1] : max;\n\t\t\tlower = ticks[0];\n\t\t\tleft = (\n\t\t\t\tinterpolate(table, 'time', upper, 'pos') -\n\t\t\t\tinterpolate(table, 'time', lower, 'pos')\n\t\t\t) / 2;\n\t\t}\n\t\tif (!options.time.max) {\n\t\t\tupper = ticks[ticks.length - 1];\n\t\t\tlower = ticks.length > 1 ? ticks[ticks.length - 2] : min;\n\t\t\tright = (\n\t\t\t\tinterpolate(table, 'time', upper, 'pos') -\n\t\t\t\tinterpolate(table, 'time', lower, 'pos')\n\t\t\t) / 2;\n\t\t}\n\t}\n\n\treturn {left: left, right: right};\n}\n\nfunction ticksFromTimestamps(values, majorUnit) {\n\tvar ticks = [];\n\tvar i, ilen, value, major;\n\n\tfor (i = 0, ilen = values.length; i < ilen; ++i) {\n\t\tvalue = values[i];\n\t\tmajor = majorUnit ? value === +moment(value).startOf(majorUnit) : false;\n\n\t\tticks.push({\n\t\t\tvalue: value,\n\t\t\tmajor: major\n\t\t});\n\t}\n\n\treturn ticks;\n}\n\nfunction determineLabelFormat(data, timeOpts) {\n\tvar i, momentDate, hasTime;\n\tvar ilen = data.length;\n\n\t// find the label with the most parts (milliseconds, minutes, etc.)\n\t// format all labels with the same level of detail as the most specific label\n\tfor (i = 0; i < ilen; i++) {\n\t\tmomentDate = momentify(data[i], timeOpts);\n\t\tif (momentDate.millisecond() !== 0) {\n\t\t\treturn 'MMM D, YYYY h:mm:ss.SSS a';\n\t\t}\n\t\tif (momentDate.second() !== 0 || momentDate.minute() !== 0 || momentDate.hour() !== 0) {\n\t\t\thasTime = true;\n\t\t}\n\t}\n\tif (hasTime) {\n\t\treturn 'MMM D, YYYY h:mm:ss a';\n\t}\n\treturn 'MMM D, YYYY';\n}\n\nmodule.exports = function() {\n\n\tvar defaultConfig = {\n\t\tposition: 'bottom',\n\n\t\t/**\n\t\t * Data distribution along the scale:\n\t\t * - 'linear': data are spread according to their time (distances can vary),\n\t\t * - 'series': data are spread at the same distance from each other.\n\t\t * @see https://github.com/chartjs/Chart.js/pull/4507\n\t\t * @since 2.7.0\n\t\t */\n\t\tdistribution: 'linear',\n\n\t\t/**\n\t\t * Scale boundary strategy (bypassed by min/max time options)\n\t\t * - `data`: make sure data are fully visible, ticks outside are removed\n\t\t * - `ticks`: make sure ticks are fully visible, data outside are truncated\n\t\t * @see https://github.com/chartjs/Chart.js/pull/4556\n\t\t * @since 2.7.0\n\t\t */\n\t\tbounds: 'data',\n\n\t\ttime: {\n\t\t\tparser: false, // false == a pattern string from http://momentjs.com/docs/#/parsing/string-format/ or a custom callback that converts its argument to a moment\n\t\t\tformat: false, // DEPRECATED false == date objects, moment object, callback or a pattern string from http://momentjs.com/docs/#/parsing/string-format/\n\t\t\tunit: false, // false == automatic or override with week, month, year, etc.\n\t\t\tround: false, // none, or override with week, month, year, etc.\n\t\t\tdisplayFormat: false, // DEPRECATED\n\t\t\tisoWeekday: false, // override week start day - see http://momentjs.com/docs/#/get-set/iso-weekday/\n\t\t\tminUnit: 'millisecond',\n\n\t\t\t// defaults to unit's corresponding unitFormat below or override using pattern string from http://momentjs.com/docs/#/displaying/format/\n\t\t\tdisplayFormats: {\n\t\t\t\tmillisecond: 'h:mm:ss.SSS a', // 11:20:01.123 AM,\n\t\t\t\tsecond: 'h:mm:ss a', // 11:20:01 AM\n\t\t\t\tminute: 'h:mm a', // 11:20 AM\n\t\t\t\thour: 'hA', // 5PM\n\t\t\t\tday: 'MMM D', // Sep 4\n\t\t\t\tweek: 'll', // Week 46, or maybe \"[W]WW - YYYY\" ?\n\t\t\t\tmonth: 'MMM YYYY', // Sept 2015\n\t\t\t\tquarter: '[Q]Q - YYYY', // Q3\n\t\t\t\tyear: 'YYYY' // 2015\n\t\t\t},\n\t\t},\n\t\tticks: {\n\t\t\tautoSkip: false,\n\n\t\t\t/**\n\t\t\t * Ticks generation input values:\n\t\t\t * - 'auto': generates \"optimal\" ticks based on scale size and time options.\n\t\t\t * - 'data': generates ticks from data (including labels from data {t|x|y} objects).\n\t\t\t * - 'labels': generates ticks from user given `data.labels` values ONLY.\n\t\t\t * @see https://github.com/chartjs/Chart.js/pull/4507\n\t\t\t * @since 2.7.0\n\t\t\t */\n\t\t\tsource: 'auto',\n\n\t\t\tmajor: {\n\t\t\t\tenabled: false\n\t\t\t}\n\t\t}\n\t};\n\n\tvar TimeScale = Scale.extend({\n\t\tinitialize: function() {\n\t\t\tif (!moment) {\n\t\t\t\tthrow new Error('Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com');\n\t\t\t}\n\n\t\t\tthis.mergeTicksOptions();\n\n\t\t\tScale.prototype.initialize.call(this);\n\t\t},\n\n\t\tupdate: function() {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options;\n\n\t\t\t// DEPRECATIONS: output a message only one time per update\n\t\t\tif (options.time && options.time.format) {\n\t\t\t\tconsole.warn('options.time.format is deprecated and replaced by options.time.parser.');\n\t\t\t}\n\n\t\t\treturn Scale.prototype.update.apply(me, arguments);\n\t\t},\n\n\t\t/**\n\t\t * Allows data to be referenced via 't' attribute\n\t\t */\n\t\tgetRightValue: function(rawValue) {\n\t\t\tif (rawValue && rawValue.t !== undefined) {\n\t\t\t\trawValue = rawValue.t;\n\t\t\t}\n\t\t\treturn Scale.prototype.getRightValue.call(this, rawValue);\n\t\t},\n\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar timeOpts = me.options.time;\n\t\t\tvar unit = timeOpts.unit || 'day';\n\t\t\tvar min = MAX_INTEGER;\n\t\t\tvar max = MIN_INTEGER;\n\t\t\tvar timestamps = [];\n\t\t\tvar datasets = [];\n\t\t\tvar labels = [];\n\t\t\tvar i, j, ilen, jlen, data, timestamp;\n\n\t\t\t// Convert labels to timestamps\n\t\t\tfor (i = 0, ilen = chart.data.labels.length; i < ilen; ++i) {\n\t\t\t\tlabels.push(parse(chart.data.labels[i], me));\n\t\t\t}\n\n\t\t\t// Convert data to timestamps\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n\t\t\t\tif (chart.isDatasetVisible(i)) {\n\t\t\t\t\tdata = chart.data.datasets[i].data;\n\n\t\t\t\t\t// Let's consider that all data have the same format.\n\t\t\t\t\tif (helpers.isObject(data[0])) {\n\t\t\t\t\t\tdatasets[i] = [];\n\n\t\t\t\t\t\tfor (j = 0, jlen = data.length; j < jlen; ++j) {\n\t\t\t\t\t\t\ttimestamp = parse(data[j], me);\n\t\t\t\t\t\t\ttimestamps.push(timestamp);\n\t\t\t\t\t\t\tdatasets[i][j] = timestamp;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttimestamps.push.apply(timestamps, labels);\n\t\t\t\t\t\tdatasets[i] = labels.slice(0);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tdatasets[i] = [];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (labels.length) {\n\t\t\t\t// Sort labels **after** data have been converted\n\t\t\t\tlabels = arrayUnique(labels).sort(sorter);\n\t\t\t\tmin = Math.min(min, labels[0]);\n\t\t\t\tmax = Math.max(max, labels[labels.length - 1]);\n\t\t\t}\n\n\t\t\tif (timestamps.length) {\n\t\t\t\ttimestamps = arrayUnique(timestamps).sort(sorter);\n\t\t\t\tmin = Math.min(min, timestamps[0]);\n\t\t\t\tmax = Math.max(max, timestamps[timestamps.length - 1]);\n\t\t\t}\n\n\t\t\tmin = parse(timeOpts.min, me) || min;\n\t\t\tmax = parse(timeOpts.max, me) || max;\n\n\t\t\t// In case there is no valid min/max, set limits based on unit time option\n\t\t\tmin = min === MAX_INTEGER ? +moment().startOf(unit) : min;\n\t\t\tmax = max === MIN_INTEGER ? +moment().endOf(unit) + 1 : max;\n\n\t\t\t// Make sure that max is strictly higher than min (required by the lookup table)\n\t\t\tme.min = Math.min(min, max);\n\t\t\tme.max = Math.max(min + 1, max);\n\n\t\t\t// PRIVATE\n\t\t\tme._horizontal = me.isHorizontal();\n\t\t\tme._table = [];\n\t\t\tme._timestamps = {\n\t\t\t\tdata: timestamps,\n\t\t\t\tdatasets: datasets,\n\t\t\t\tlabels: labels\n\t\t\t};\n\t\t},\n\n\t\tbuildTicks: function() {\n\t\t\tvar me = this;\n\t\t\tvar min = me.min;\n\t\t\tvar max = me.max;\n\t\t\tvar options = me.options;\n\t\t\tvar timeOpts = options.time;\n\t\t\tvar timestamps = [];\n\t\t\tvar ticks = [];\n\t\t\tvar i, ilen, timestamp;\n\n\t\t\tswitch (options.ticks.source) {\n\t\t\tcase 'data':\n\t\t\t\ttimestamps = me._timestamps.data;\n\t\t\t\tbreak;\n\t\t\tcase 'labels':\n\t\t\t\ttimestamps = me._timestamps.labels;\n\t\t\t\tbreak;\n\t\t\tcase 'auto':\n\t\t\tdefault:\n\t\t\t\ttimestamps = generate(min, max, me.getLabelCapacity(min), options);\n\t\t\t}\n\n\t\t\tif (options.bounds === 'ticks' && timestamps.length) {\n\t\t\t\tmin = timestamps[0];\n\t\t\t\tmax = timestamps[timestamps.length - 1];\n\t\t\t}\n\n\t\t\t// Enforce limits with user min/max options\n\t\t\tmin = parse(timeOpts.min, me) || min;\n\t\t\tmax = parse(timeOpts.max, me) || max;\n\n\t\t\t// Remove ticks outside the min/max range\n\t\t\tfor (i = 0, ilen = timestamps.length; i < ilen; ++i) {\n\t\t\t\ttimestamp = timestamps[i];\n\t\t\t\tif (timestamp >= min && timestamp <= max) {\n\t\t\t\t\tticks.push(timestamp);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tme.min = min;\n\t\t\tme.max = max;\n\n\t\t\t// PRIVATE\n\t\t\tme._unit = timeOpts.unit || determineUnitForFormatting(ticks, timeOpts.minUnit, me.min, me.max);\n\t\t\tme._majorUnit = determineMajorUnit(me._unit);\n\t\t\tme._table = buildLookupTable(me._timestamps.data, min, max, options.distribution);\n\t\t\tme._offsets = computeOffsets(me._table, ticks, min, max, options);\n\t\t\tme._labelFormat = determineLabelFormat(me._timestamps.data, timeOpts);\n\n\t\t\treturn ticksFromTimestamps(ticks, me._majorUnit);\n\t\t},\n\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar data = me.chart.data;\n\t\t\tvar timeOpts = me.options.time;\n\t\t\tvar label = data.labels && index < data.labels.length ? data.labels[index] : '';\n\t\t\tvar value = data.datasets[datasetIndex].data[index];\n\n\t\t\tif (helpers.isObject(value)) {\n\t\t\t\tlabel = me.getRightValue(value);\n\t\t\t}\n\t\t\tif (timeOpts.tooltipFormat) {\n\t\t\t\treturn momentify(label, timeOpts).format(timeOpts.tooltipFormat);\n\t\t\t}\n\t\t\tif (typeof label === 'string') {\n\t\t\t\treturn label;\n\t\t\t}\n\n\t\t\treturn momentify(label, timeOpts).format(me._labelFormat);\n\t\t},\n\n\t\t/**\n\t\t * Function to format an individual tick mark\n\t\t * @private\n\t\t */\n\t\ttickFormatFunction: function(tick, index, ticks, formatOverride) {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options;\n\t\t\tvar time = tick.valueOf();\n\t\t\tvar formats = options.time.displayFormats;\n\t\t\tvar minorFormat = formats[me._unit];\n\t\t\tvar majorUnit = me._majorUnit;\n\t\t\tvar majorFormat = formats[majorUnit];\n\t\t\tvar majorTime = tick.clone().startOf(majorUnit).valueOf();\n\t\t\tvar majorTickOpts = options.ticks.major;\n\t\t\tvar major = majorTickOpts.enabled && majorUnit && majorFormat && time === majorTime;\n\t\t\tvar label = tick.format(formatOverride ? formatOverride : major ? majorFormat : minorFormat);\n\t\t\tvar tickOpts = major ? majorTickOpts : options.ticks.minor;\n\t\t\tvar formatter = helpers.valueOrDefault(tickOpts.callback, tickOpts.userCallback);\n\n\t\t\treturn formatter ? formatter(label, index, ticks) : label;\n\t\t},\n\n\t\tconvertTicksToLabels: function(ticks) {\n\t\t\tvar labels = [];\n\t\t\tvar i, ilen;\n\n\t\t\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\n\t\t\t\tlabels.push(this.tickFormatFunction(moment(ticks[i].value), i, ticks));\n\t\t\t}\n\n\t\t\treturn labels;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetPixelForOffset: function(time) {\n\t\t\tvar me = this;\n\t\t\tvar size = me._horizontal ? me.width : me.height;\n\t\t\tvar start = me._horizontal ? me.left : me.top;\n\t\t\tvar pos = interpolate(me._table, 'time', time, 'pos');\n\n\t\t\treturn start + size * (me._offsets.left + pos) / (me._offsets.left + 1 + me._offsets.right);\n\t\t},\n\n\t\tgetPixelForValue: function(value, index, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar time = null;\n\n\t\t\tif (index !== undefined && datasetIndex !== undefined) {\n\t\t\t\ttime = me._timestamps.datasets[datasetIndex][index];\n\t\t\t}\n\n\t\t\tif (time === null) {\n\t\t\t\ttime = parse(value, me);\n\t\t\t}\n\n\t\t\tif (time !== null) {\n\t\t\t\treturn me.getPixelForOffset(time);\n\t\t\t}\n\t\t},\n\n\t\tgetPixelForTick: function(index) {\n\t\t\tvar ticks = this.getTicks();\n\t\t\treturn index >= 0 && index < ticks.length ?\n\t\t\t\tthis.getPixelForOffset(ticks[index].value) :\n\t\t\t\tnull;\n\t\t},\n\n\t\tgetValueForPixel: function(pixel) {\n\t\t\tvar me = this;\n\t\t\tvar size = me._horizontal ? me.width : me.height;\n\t\t\tvar start = me._horizontal ? me.left : me.top;\n\t\t\tvar pos = (size ? (pixel - start) / size : 0) * (me._offsets.left + 1 + me._offsets.left) - me._offsets.right;\n\t\t\tvar time = interpolate(me._table, 'pos', pos, 'time');\n\n\t\t\treturn moment(time);\n\t\t},\n\n\t\t/**\n\t\t * Crude approximation of what the label width might be\n\t\t * @private\n\t\t */\n\t\tgetLabelWidth: function(label) {\n\t\t\tvar me = this;\n\t\t\tvar ticksOpts = me.options.ticks;\n\t\t\tvar tickLabelWidth = me.ctx.measureText(label).width;\n\t\t\tvar angle = helpers.toRadians(ticksOpts.maxRotation);\n\t\t\tvar cosRotation = Math.cos(angle);\n\t\t\tvar sinRotation = Math.sin(angle);\n\t\t\tvar tickFontSize = helpers.valueOrDefault(ticksOpts.fontSize, defaults.global.defaultFontSize);\n\n\t\t\treturn (tickLabelWidth * cosRotation) + (tickFontSize * sinRotation);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetLabelCapacity: function(exampleTime) {\n\t\t\tvar me = this;\n\n\t\t\tvar formatOverride = me.options.time.displayFormats.millisecond;\t// Pick the longest format for guestimation\n\n\t\t\tvar exampleLabel = me.tickFormatFunction(moment(exampleTime), 0, [], formatOverride);\n\t\t\tvar tickLabelWidth = me.getLabelWidth(exampleLabel);\n\t\t\tvar innerWidth = me.isHorizontal() ? me.width : me.height;\n\n\t\t\tvar capacity = Math.floor(innerWidth / tickLabelWidth);\n\t\t\treturn capacity > 0 ? capacity : 1;\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('time', TimeScale, defaultConfig);\n};\n\n},{\"1\":1,\"26\":26,\"33\":33,\"34\":34,\"46\":46}]},{},[7])(7)\n});\n\n'use strict';\n\nvar WOW;\n\n(function($) {\n\n    WOW = function WOW() {\n\n        return {\n\n            init: function init() {\n\n                var animationName = [];\n\n                var once = 1;\n\n                function mdbWow() {\n\n                    var windowHeight = window.innerHeight;\n                    var scroll = window.scrollY;\n\n                    $('.wow').each(function() {\n\n                        if ($(this).css('visibility') == 'visible') {\n                            return;\n                        }\n\n                        if (windowHeight + scroll - 100 > getOffset(this) && scroll < getOffset(this) || windowHeight + scroll - 100 > getOffset(this) + $(this).height() && scroll < getOffset(this) + $(this).height() || windowHeight + scroll == $(document).height() && getOffset(this) + 100 > $(document).height()) {\n\n                            var index = $(this).index('.wow');\n\n                            var delay = $(this).attr('data-wow-delay');\n\n                            if (delay) {\n\n                                delay = $(this).attr('data-wow-delay').slice(0, -1\n\n                                );\n                                var self = this;\n\n                                var timeout = parseFloat(delay) * 1000;\n\n                                $(self).addClass('animated');\n                                $(self).css({ 'visibility': 'visible' });\n                                $(self).css({ 'animation-delay': delay });\n                                $(self).css({ 'animation-name': animationName[index] });\n\n                                var removeTime = $(this).css('animation-duration').slice(0, -1) * 1000;\n\n                                if ($(this).attr('data-wow-delay')) {\n\n                                    removeTime += $(this).attr('data-wow-delay').slice(0, -1) * 1000;\n                                }\n\n                                var self = this;\n\n                                setTimeout(function() {\n\n                                    $(self).removeClass('animated');\n                                }, removeTime);\n                            } else {\n\n                                $(this).addClass('animated');\n                                $(this).css({ 'visibility': 'visible' });\n                                $(this).css({ 'animation-name': animationName[index] });\n\n                                var removeTime = $(this).css('animation-duration').slice(0, -1) * 1000;\n\n                                var self = this;\n\n                                setTimeout(function() {\n\n                                    $(self).removeClass('animated');\n                                }, removeTime);\n                            }\n                        }\n                    });\n                }\n\n                function appear() {\n\n                    $('.wow').each(function() {\n\n                        var index = $(this).index('.wow');\n\n                        var delay = $(this).attr('data-wow-delay');\n\n                        if (delay) {\n\n                            delay = $(this).attr('data-wow-delay').slice(0, -1);\n\n                            var timeout = parseFloat(delay) * 1000;\n\n                            $(this).addClass('animated');\n                            $(this).css({ 'visibility': 'visible' });\n                            $(this).css({ 'animation-delay': delay + 's' });\n                            $(this).css({ 'animation-name': animationName[index] });\n                        } else {\n\n                            $(this).addClass('animated');\n                            $(this).css({ 'visibility': 'visible' });\n                            $(this).css({ 'animation-name': animationName[index] });\n                        }\n                    });\n                }\n\n                function hide() {\n\n                    var windowHeight = window.innerHeight;\n                    var scroll = window.scrollY;\n\n                    $('.wow.animated').each(function() {\n\n                        if (windowHeight + scroll - 100 > getOffset(this) && scroll > getOffset(this) + 100 || windowHeight + scroll - 100 < getOffset(this) && scroll < getOffset(this) + 100 || getOffset(this) + $(this).height > $(document).height() - 100) {\n\n                            $(this).removeClass('animated');\n                            $(this).css({ 'animation-name': 'none' });\n                            $(this).css({ 'visibility': 'hidden' });\n                        } else {\n\n                            var removeTime = $(this).css('animation-duration').slice(0, -1) * 1000;\n\n                            if ($(this).attr('data-wow-delay')) {\n\n                                removeTime += $(this).attr('data-wow-delay').slice(0, -1) * 1000;\n                            }\n\n                            var self = this;\n\n                            setTimeout(function() {\n\n                                $(self).removeClass('animated');\n                            }, removeTime);\n                        }\n                    });\n\n                    mdbWow();\n\n                    once--;\n                }\n\n                function getOffset(elem) {\n\n                    var box = elem.getBoundingClientRect();\n\n                    var body = document.body;\n                    var docEl = document.documentElement;\n\n                    var scrollTop = window.pageYOffset || docEl.scrollTop || body.scrollTop;\n\n                    var clientTop = docEl.clientTop || body.clientTop || 0;\n\n                    var top = box.top + scrollTop - clientTop;\n\n                    return Math.round(top);\n                }\n\n                $('.wow').each(function() {\n\n                    $(this).css({ 'visibility': 'hidden' });\n                    animationName[$(this).index('.wow')] = $(this).css('animation-name');\n                    $(this).css({ 'animation-name': 'none' });\n                });\n\n                $(window).scroll(function() {\n\n                    if (once) {\n\n                        hide();\n                    } else {\n\n                        mdbWow();\n                    }\n                });\n\n                appear();\n            }\n        };\n    };\n})(jQuery);\n\n\"use strict\";\n\n(function ($) {\n  var SCROLLING_NAVBAR_OFFSET_TOP = 50;\n  $(window).on('scroll', function () {\n    var $navbar = $('.navbar');\n\n    if ($navbar.length) {\n      if ($navbar.offset().top > SCROLLING_NAVBAR_OFFSET_TOP) {\n        $('.scrolling-navbar').addClass('top-nav-collapse');\n      } else {\n        $('.scrolling-navbar').removeClass('top-nav-collapse');\n      }\n    }\n  });\n})(jQuery);\n/*!\n * Waves v0.7.6\n * http://fian.my.id/Waves\n *\n * Copyright 2014-2018 Alfiana E. Sibuea and other contributors\n * Released under the MIT license\n * https://github.com/fians/Waves/blob/master/LICENSE\n */\n\n;(function(window, factory) {\n    'use strict';\n\n    // AMD. Register as an anonymous module.  Wrap in function so we have access\n    // to root via `this`.\n    if (typeof define === 'function' && define.amd) {\n        define([], function() {\n            window.Waves = factory.call(window);\n            return window.Waves;\n        });\n    }\n\n    // Node. Does not work with strict CommonJS, but only CommonJS-like\n    // environments that support module.exports, like Node.\n    else if (typeof exports === 'object') {\n        module.exports = factory.call(window);\n    }\n\n    // Browser globals.\n    else {\n        window.Waves = factory.call(window);\n    }\n})(typeof global === 'object' ? global : this, function() {\n    'use strict';\n\n    var Waves            = Waves || {};\n    var $$               = document.querySelectorAll.bind(document);\n    var toString         = Object.prototype.toString;\n    var isTouchAvailable = 'ontouchstart' in window;\n\n\n    // Find exact position of element\n    function isWindow(obj) {\n        return obj !== null && obj === obj.window;\n    }\n\n    function getWindow(elem) {\n        return isWindow(elem) ? elem : elem.nodeType === 9 && elem.defaultView;\n    }\n\n    function isObject(value) {\n        var type = typeof value;\n        return type === 'function' || type === 'object' && !!value;\n    }\n\n    function isDOMNode(obj) {\n        return isObject(obj) && obj.nodeType > 0;\n    }\n\n    function getWavesElements(nodes) {\n        var stringRepr = toString.call(nodes);\n\n        if (stringRepr === '[object String]') {\n            return $$(nodes);\n        } else if (isObject(nodes) && /^\\[object (Array|HTMLCollection|NodeList|Object)\\]$/.test(stringRepr) && nodes.hasOwnProperty('length')) {\n            return nodes;\n        } else if (isDOMNode(nodes)) {\n            return [nodes];\n        }\n\n        return [];\n    }\n\n    function offset(elem) {\n        var docElem, win,\n            box = { top: 0, left: 0 },\n            doc = elem && elem.ownerDocument;\n\n        docElem = doc.documentElement;\n\n        if (typeof elem.getBoundingClientRect !== typeof undefined) {\n            box = elem.getBoundingClientRect();\n        }\n        win = getWindow(doc);\n        return {\n            top: box.top + win.pageYOffset - docElem.clientTop,\n            left: box.left + win.pageXOffset - docElem.clientLeft\n        };\n    }\n\n    function convertStyle(styleObj) {\n        var style = '';\n\n        for (var prop in styleObj) {\n            if (styleObj.hasOwnProperty(prop)) {\n                style += (prop + ':' + styleObj[prop] + ';');\n            }\n        }\n\n        return style;\n    }\n\n    var Effect = {\n\n        // Effect duration\n        duration: 750,\n\n        // Effect delay (check for scroll before showing effect)\n        delay: 200,\n\n        show: function(e, element, velocity) {\n\n            // Disable right click\n            if (e.button === 2) {\n                return false;\n            }\n\n            element = element || this;\n\n            // Create ripple\n            var ripple = document.createElement('div');\n            ripple.className = 'waves-ripple waves-rippling';\n            element.appendChild(ripple);\n\n            // Get click coordinate and element width\n            var pos       = offset(element);\n            var relativeY = 0;\n            var relativeX = 0;\n            // Support for touch devices\n            if('touches' in e && e.touches.length) {\n                relativeY   = (e.touches[0].pageY - pos.top);\n                relativeX   = (e.touches[0].pageX - pos.left);\n            }\n            //Normal case\n            else {\n                relativeY   = (e.pageY - pos.top);\n                relativeX   = (e.pageX - pos.left);\n            }\n            // Support for synthetic events\n            relativeX = relativeX >= 0 ? relativeX : 0;\n            relativeY = relativeY >= 0 ? relativeY : 0;\n\n            var scale     = 'scale(' + ((element.clientWidth / 100) * 3) + ')';\n            var translate = 'translate(0,0)';\n\n            if (velocity) {\n                translate = 'translate(' + (velocity.x) + 'px, ' + (velocity.y) + 'px)';\n            }\n\n            // Attach data to element\n            ripple.setAttribute('data-hold', Date.now());\n            ripple.setAttribute('data-x', relativeX);\n            ripple.setAttribute('data-y', relativeY);\n            ripple.setAttribute('data-scale', scale);\n            ripple.setAttribute('data-translate', translate);\n\n            // Set ripple position\n            var rippleStyle = {\n                top: relativeY + 'px',\n                left: relativeX + 'px'\n            };\n\n            ripple.classList.add('waves-notransition');\n            ripple.setAttribute('style', convertStyle(rippleStyle));\n            ripple.classList.remove('waves-notransition');\n\n            // Scale the ripple\n            rippleStyle['-webkit-transform'] = scale + ' ' + translate;\n            rippleStyle['-moz-transform'] = scale + ' ' + translate;\n            rippleStyle['-ms-transform'] = scale + ' ' + translate;\n            rippleStyle['-o-transform'] = scale + ' ' + translate;\n            rippleStyle.transform = scale + ' ' + translate;\n            rippleStyle.opacity = '1';\n\n            var duration = e.type === 'mousemove' ? 2500 : Effect.duration;\n            rippleStyle['-webkit-transition-duration'] = duration + 'ms';\n            rippleStyle['-moz-transition-duration']    = duration + 'ms';\n            rippleStyle['-o-transition-duration']      = duration + 'ms';\n            rippleStyle['transition-duration']         = duration + 'ms';\n\n            ripple.setAttribute('style', convertStyle(rippleStyle));\n        },\n\n        hide: function(e, element) {\n            element = element || this;\n\n            var ripples = element.getElementsByClassName('waves-rippling');\n\n            for (var i = 0, len = ripples.length; i < len; i++) {\n                removeRipple(e, element, ripples[i]);\n            }\n\n            if (isTouchAvailable) {\n                element.removeEventListener('touchend', Effect.hide);\n                element.removeEventListener('touchcancel', Effect.hide);\n            }\n\n            element.removeEventListener('mouseup', Effect.hide);\n            element.removeEventListener('mouseleave', Effect.hide);\n        }\n    };\n\n    /**\n     * Collection of wrapper for HTML element that only have single tag\n     * like <input> and <img>\n     */\n    var TagWrapper = {\n\n        // Wrap <input> tag so it can perform the effect\n        input: function(element) {\n\n            var parent = element.parentNode;\n\n            // If input already have parent just pass through\n            if (parent.tagName.toLowerCase() === 'span' && parent.classList.contains('waves-effect')) {\n                return;\n            }\n\n            // Put element class and style to the specified parent\n            var wrapper       = document.createElement('span');\n            wrapper.className = 'waves-input-wrapper';\n            // element.className = 'waves-button-input';\n\n            // Put element as child\n            parent.replaceChild(wrapper, element);\n            wrapper.appendChild(element);\n\n        },\n\n        // Wrap <img> tag so it can perform the effect\n        img: function(element) {\n\n            var parent = element.parentNode;\n\n            // If input already have parent just pass through\n            if (parent.tagName.toLowerCase() === 'i' && parent.classList.contains('waves-effect')) {\n                return;\n            }\n\n            // Put element as child\n            var wrapper  = document.createElement('i');\n            parent.replaceChild(wrapper, element);\n            wrapper.appendChild(element);\n\n        }\n    };\n\n    /**\n     * Hide the effect and remove the ripple. Must be\n     * a separate function to pass the JSLint...\n     */\n    function removeRipple(e, el, ripple) {\n\n        // Check if the ripple still exist\n        if (!ripple) {\n            return;\n        }\n\n        ripple.classList.remove('waves-rippling');\n\n        var relativeX = ripple.getAttribute('data-x');\n        var relativeY = ripple.getAttribute('data-y');\n        var scale     = ripple.getAttribute('data-scale');\n        var translate = ripple.getAttribute('data-translate');\n\n        // Get delay beetween mousedown and mouse leave\n        var diff = Date.now() - Number(ripple.getAttribute('data-hold'));\n        var delay = 350 - diff;\n\n        if (delay < 0) {\n            delay = 0;\n        }\n\n        if (e.type === 'mousemove') {\n            delay = 150;\n        }\n\n        // Fade out ripple after delay\n        var duration = e.type === 'mousemove' ? 2500 : Effect.duration;\n\n        setTimeout(function() {\n\n            var style = {\n                top: relativeY + 'px',\n                left: relativeX + 'px',\n                opacity: '0',\n\n                // Duration\n                '-webkit-transition-duration': duration + 'ms',\n                '-moz-transition-duration': duration + 'ms',\n                '-o-transition-duration': duration + 'ms',\n                'transition-duration': duration + 'ms',\n                '-webkit-transform': scale + ' ' + translate,\n                '-moz-transform': scale + ' ' + translate,\n                '-ms-transform': scale + ' ' + translate,\n                '-o-transform': scale + ' ' + translate,\n                'transform': scale + ' ' + translate\n            };\n\n            ripple.setAttribute('style', convertStyle(style));\n\n            setTimeout(function() {\n                try {\n                    el.removeChild(ripple);\n                } catch (e) {\n                    return false;\n                }\n            }, duration);\n\n        }, delay);\n    }\n\n\n    /**\n     * Disable mousedown event for 500ms during and after touch\n     */\n    var TouchHandler = {\n\n        /* uses an integer rather than bool so there's no issues with\n         * needing to clear timeouts if another touch event occurred\n         * within the 500ms. Cannot mouseup between touchstart and\n         * touchend, nor in the 500ms after touchend. */\n        touches: 0,\n\n        allowEvent: function(e) {\n\n            var allow = true;\n\n            if (/^(mousedown|mousemove)$/.test(e.type) && TouchHandler.touches) {\n                allow = false;\n            }\n\n            return allow;\n        },\n        registerEvent: function(e) {\n            var eType = e.type;\n\n            if (eType === 'touchstart') {\n\n                TouchHandler.touches += 1; // push\n\n            } else if (/^(touchend|touchcancel)$/.test(eType)) {\n\n                setTimeout(function() {\n                    if (TouchHandler.touches) {\n                        TouchHandler.touches -= 1; // pop after 500ms\n                    }\n                }, 500);\n\n            }\n        }\n    };\n\n\n    /**\n     * Delegated click handler for .waves-effect element.\n     * returns null when .waves-effect element not in \"click tree\"\n     */\n    function getWavesEffectElement(e) {\n\n        if (TouchHandler.allowEvent(e) === false) {\n            return null;\n        }\n\n        var element = null;\n        var target = e.target || e.srcElement;\n\n        while (target.parentElement) {\n            if ( (!(target instanceof SVGElement)) && target.classList.contains('waves-effect')) {\n                element = target;\n                break;\n            }\n            target = target.parentElement;\n        }\n\n        return element;\n    }\n\n    /**\n     * Bubble the click and show effect if .waves-effect elem was found\n     */\n    function showEffect(e) {\n\n        // Disable effect if element has \"disabled\" property on it\n        // In some cases, the event is not triggered by the current element\n        // if (e.target.getAttribute('disabled') !== null) {\n        //     return;\n        // }\n\n        var element = getWavesEffectElement(e);\n\n        if (element !== null) {\n\n            // Make it sure the element has either disabled property, disabled attribute or 'disabled' class\n            if (element.disabled || element.getAttribute('disabled') || element.classList.contains('disabled')) {\n                return;\n            }\n\n            TouchHandler.registerEvent(e);\n\n            if (e.type === 'touchstart' && Effect.delay) {\n\n                var hidden = false;\n\n                var timer = setTimeout(function () {\n                    timer = null;\n                    Effect.show(e, element);\n                }, Effect.delay);\n\n                var hideEffect = function(hideEvent) {\n\n                    // if touch hasn't moved, and effect not yet started: start effect now\n                    if (timer) {\n                        clearTimeout(timer);\n                        timer = null;\n                        Effect.show(e, element);\n                    }\n                    if (!hidden) {\n                        hidden = true;\n                        Effect.hide(hideEvent, element);\n                    }\n\n                    removeListeners();\n                };\n\n                var touchMove = function(moveEvent) {\n                    if (timer) {\n                        clearTimeout(timer);\n                        timer = null;\n                    }\n                    hideEffect(moveEvent);\n\n                    removeListeners();\n                };\n\n                element.addEventListener('touchmove', touchMove, false);\n                element.addEventListener('touchend', hideEffect, false);\n                element.addEventListener('touchcancel', hideEffect, false);\n\n                var removeListeners = function() {\n                    element.removeEventListener('touchmove', touchMove);\n                    element.removeEventListener('touchend', hideEffect);\n                    element.removeEventListener('touchcancel', hideEffect);\n                };\n            } else {\n\n                Effect.show(e, element);\n\n                if (isTouchAvailable) {\n                    element.addEventListener('touchend', Effect.hide, false);\n                    element.addEventListener('touchcancel', Effect.hide, false);\n                }\n\n                element.addEventListener('mouseup', Effect.hide, false);\n                element.addEventListener('mouseleave', Effect.hide, false);\n            }\n        }\n    }\n\n    Waves.init = function(options) {\n        var body = document.body;\n\n        options = options || {};\n\n        if ('duration' in options) {\n            Effect.duration = options.duration;\n        }\n\n        if ('delay' in options) {\n            Effect.delay = options.delay;\n        }\n\n        if (isTouchAvailable) {\n            body.addEventListener('touchstart', showEffect, false);\n            body.addEventListener('touchcancel', TouchHandler.registerEvent, false);\n            body.addEventListener('touchend', TouchHandler.registerEvent, false);\n        }\n\n        body.addEventListener('mousedown', showEffect, false);\n    };\n\n\n    /**\n     * Attach Waves to dynamically loaded inputs, or add .waves-effect and other\n     * waves classes to a set of elements. Set drag to true if the ripple mouseover\n     * or skimming effect should be applied to the elements.\n     */\n    Waves.attach = function(elements, classes) {\n\n        elements = getWavesElements(elements);\n\n        if (toString.call(classes) === '[object Array]') {\n            classes = classes.join(' ');\n        }\n\n        classes = classes ? ' ' + classes : '';\n\n        var element, tagName;\n\n        for (var i = 0, len = elements.length; i < len; i++) {\n\n            element = elements[i];\n            tagName = element.tagName.toLowerCase();\n\n            if (['input', 'img'].indexOf(tagName) !== -1) {\n                TagWrapper[tagName](element);\n                element = element.parentElement;\n            }\n\n            if (element.className.indexOf('waves-effect') === -1) {\n                element.className += ' waves-effect' + classes;\n            }\n        }\n    };\n\n\n    /**\n     * Cause a ripple to appear in an element via code.\n     */\n    Waves.ripple = function(elements, options) {\n        elements = getWavesElements(elements);\n        var elementsLen = elements.length;\n\n        options          = options || {};\n        options.wait     = options.wait || 0;\n        options.position = options.position || null; // default = centre of element\n\n\n        if (elementsLen) {\n            var element, pos, off, centre = {}, i = 0;\n            var mousedown = {\n                type: 'mousedown',\n                button: 1\n            };\n            var hideRipple = function(mouseup, element) {\n                return function() {\n                    Effect.hide(mouseup, element);\n                };\n            };\n\n            for (; i < elementsLen; i++) {\n                element = elements[i];\n                pos = options.position || {\n                    x: element.clientWidth / 2,\n                    y: element.clientHeight / 2\n                };\n\n                off      = offset(element);\n                centre.x = off.left + pos.x;\n                centre.y = off.top + pos.y;\n\n                mousedown.pageX = centre.x;\n                mousedown.pageY = centre.y;\n\n                Effect.show(mousedown, element);\n\n                if (options.wait >= 0 && options.wait !== null) {\n                    var mouseup = {\n                        type: 'mouseup',\n                        button: 1\n                    };\n\n                    setTimeout(hideRipple(mouseup, element), options.wait);\n                }\n            }\n        }\n    };\n\n    /**\n     * Remove all ripples from an element.\n     */\n    Waves.calm = function(elements) {\n        elements = getWavesElements(elements);\n        var mouseup = {\n            type: 'mouseup',\n            button: 1\n        };\n\n        for (var i = 0, len = elements.length; i < len; i++) {\n            Effect.hide(mouseup, elements[i]);\n        }\n    };\n\n    /**\n     * Deprecated API fallback\n     */\n    Waves.displayEffect = function(options) {\n        console.error('Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect');\n        Waves.init(options);\n    };\n\n    return Waves;\n});\n\n//Initialization\nWaves.attach('.btn:not(.btn-flat), .btn-floating', ['waves-light']);\nWaves.attach('.btn-flat', ['waves-effect']);\nWaves.attach('.chip', ['waves-effect']);\nWaves.attach('.view a .mask', ['waves-light']);\nWaves.attach('.waves-light', ['waves-light']);\nWaves.attach('.navbar-nav a:not(.navbar-brand), .nav-icons li a, .nav-tabs .nav-item:not(.dropdown)', ['waves-light']);\nWaves.attach('.pager li a', ['waves-light']);\nWaves.attach('.pagination .page-item .page-link', ['waves-effect']);\nWaves.init();\n\"use strict\";\n\nvar _this = void 0;\n\n(function ($) {\n  var inputSelector = \"\".concat(['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md'].map(function (selector) {\n    return \"input[type=\".concat(selector, \"]\");\n  }).join(', '), \", textarea\");\n  var textAreaSelector = '.materialize-textarea';\n\n  var updateTextFields = function updateTextFields($input) {\n    var $labelAndIcon = $input.siblings('label, i');\n    var hasValue = $input.val().length;\n    var hasPlaceholder = $input.attr('placeholder');\n    var addOrRemove = \"\".concat(hasValue || hasPlaceholder ? 'add' : 'remove', \"Class\");\n    $labelAndIcon[addOrRemove]('active');\n  };\n\n  var validateField = function validateField($input) {\n    if ($input.hasClass('validate')) {\n      var value = $input.val();\n      var noValue = !value.length;\n      var isValid = !$input[0].validity.badInput;\n\n      if (noValue && isValid) {\n        $input.removeClass('valid').removeClass('invalid');\n      } else {\n        var valid = $input.is(':valid');\n        var length = Number($input.attr('length')) || 0;\n\n        if (valid && (!length || length > value.length)) {\n          $input.removeClass('invalid').addClass('valid');\n        } else {\n          $input.removeClass('valid').addClass('invalid');\n        }\n      }\n    }\n  };\n\n  var textAreaAutoResize = function textAreaAutoResize() {\n    var $textarea = $(_this);\n\n    if ($textarea.val().length) {\n      var $hiddenDiv = $('.hiddendiv');\n      var fontFamily = $textarea.css('font-family');\n      var fontSize = $textarea.css('font-size');\n\n      if (fontSize) {\n        $hiddenDiv.css('font-size', fontSize);\n      }\n\n      if (fontFamily) {\n        $hiddenDiv.css('font-family', fontFamily);\n      }\n\n      if ($textarea.attr('wrap') === 'off') {\n        $hiddenDiv.css('overflow-wrap', 'normal').css('white-space', 'pre');\n      }\n\n      $hiddenDiv.text(\"\".concat($textarea.val(), \"\\n\"));\n      var content = $hiddenDiv.html().replace(/\\n/g, '<br>');\n      $hiddenDiv.html(content); // When textarea is hidden, width goes crazy.\n      // Approximate with half of window size\n\n      $hiddenDiv.css('width', $textarea.is(':visible') ? $textarea.width() : $(window).width() / 2);\n      $textarea.css('height', $hiddenDiv.height());\n    }\n  };\n\n  $(inputSelector).each(function (index, input) {\n    var $this = $(input);\n    var $labelAndIcon = $this.siblings('label, i');\n    updateTextFields($this);\n    var isValid = input.validity.badInput;\n\n    if (isValid) {\n      $labelAndIcon.addClass('active');\n    }\n  });\n  $(document).on('focus', inputSelector, function (e) {\n    $(e.target).siblings('label, i').addClass('active');\n  });\n  $(document).on('blur', inputSelector, function (e) {\n    var $this = $(e.target);\n    var noValue = !$this.val();\n    var invalid = !e.target.validity.badInput;\n    var noPlaceholder = $this.attr('placeholder') === undefined;\n\n    if (noValue && invalid && noPlaceholder) {\n      $this.siblings('label, i').removeClass('active');\n    }\n\n    validateField($this);\n  });\n  $(document).on('change', inputSelector, function (e) {\n    var $this = $(e.target);\n    updateTextFields($this);\n    validateField($this);\n  });\n  $('input[autofocus]').siblings('label, i').addClass('active');\n  $(document).on('reset', function (e) {\n    var $formReset = $(e.target);\n\n    if ($formReset.is('form')) {\n      var $formInputs = $formReset.find(inputSelector);\n      $formInputs.removeClass('valid').removeClass('invalid').each(function (index, input) {\n        var $this = $(input);\n        var noDefaultValue = !$this.val();\n        var noPlaceholder = !$this.attr('placeholder');\n\n        if (noDefaultValue && noPlaceholder) {\n          $this.siblings('label, i').removeClass('active');\n        }\n      });\n      $formReset.find('select.initialized').each(function (index, select) {\n        var $select = $(select);\n        var $visibleInput = $select.siblings('input.select-dropdown');\n        var defaultValue = $select.children('[selected]').val();\n        $select.val(defaultValue);\n        $visibleInput.val(defaultValue);\n      });\n    }\n  });\n\n  function init() {\n    var $text = $('.md-textarea-auto');\n\n    if ($text.length) {\n      var observe;\n\n      if (window.attachEvent) {\n        observe = function observe(element, event, handler) {\n          element.attachEvent(\"on\".concat(event), handler);\n        };\n      } else {\n        observe = function observe(element, event, handler) {\n          element.addEventListener(event, handler, false);\n        };\n      }\n\n      $text.each(function () {\n        var self = this;\n\n        function resize() {\n          self.style.height = 'auto';\n          self.style.height = \"\".concat(self.scrollHeight, \"px\");\n        }\n\n        function delayedResize() {\n          window.setTimeout(resize, 0);\n        }\n\n        observe(self, 'change', resize);\n        observe(self, 'cut', delayedResize);\n        observe(self, 'paste', delayedResize);\n        observe(self, 'drop', delayedResize);\n        observe(self, 'keydown', delayedResize);\n        resize();\n      });\n    }\n  }\n\n  init();\n  var $body = $('body');\n\n  if (!$('.hiddendiv').first().length) {\n    var $hiddenDiv = $('<div class=\"hiddendiv common\"></div>');\n    $body.append($hiddenDiv);\n  }\n\n  $(textAreaSelector).each(textAreaAutoResize);\n  $body.on('keyup keydown', textAreaSelector, textAreaAutoResize);\n})(jQuery);\n/*\n    Enhanced Bootstrap Modals\n    https://mdbootstrap.com\n    office@mdbootstrap.com\n*/\n\n(function($){\n  $('body').on('shown.bs.modal', '.modal', function() {\n    if(!$('.modal-backdrop').length) {\n\n      $modal_dialog = $(this).children('.modal-dialog')\n\n      if($modal_dialog.hasClass('modal-side')) {\n        $(this).addClass('modal-scrolling');\n        $('body').addClass('scrollable');\n      }\n\n      if($modal_dialog.hasClass('modal-frame')) {\n        $(this).addClass('modal-content-clickable');\n        $('body').addClass('scrollable');\n      }\n    }\n  });\n  $('body').on('hidden.bs.modal', '.modal', function() {\n    $('body').removeClass('scrollable');\n  });\n})(jQuery);\n\n\"use strict\";\n\n(function ($) {\n  $('.input-default-wrapper').on('change', '.input-default-js', function (e) {\n    var $this = $(e.target),\n        $label = $this.next('label'),\n        $files = $this[0].files;\n    var fileName = '';\n\n    if ($files && $files.length > 1) {\n      fileName = ($this.attr('data-multiple-target') || '').replace('{target}', $files.length);\n    } else if (e.target.value) {\n      fileName = e.target.value.split('\\\\').pop();\n    }\n\n    if (fileName) {\n      $label.find('.span-choose-file').html(fileName);\n    } else {\n      $label.html($label.html());\n    }\n  });\n})(jQuery);"
  },
  {
    "path": "student/content/mdb/js/modules/chart.js",
    "content": "/*!\n * Chart.js\n * http://chartjs.org/\n * Version: 2.7.3\n *\n * Copyright 2018 Chart.js Contributors\n * Released under the MIT license\n * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md\n */\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.Chart = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){\n\n},{}],2:[function(require,module,exports){\n/* MIT license */\nvar colorNames = require(6);\n\nmodule.exports = {\n   getRgba: getRgba,\n   getHsla: getHsla,\n   getRgb: getRgb,\n   getHsl: getHsl,\n   getHwb: getHwb,\n   getAlpha: getAlpha,\n\n   hexString: hexString,\n   rgbString: rgbString,\n   rgbaString: rgbaString,\n   percentString: percentString,\n   percentaString: percentaString,\n   hslString: hslString,\n   hslaString: hslaString,\n   hwbString: hwbString,\n   keyword: keyword\n}\n\nfunction getRgba(string) {\n   if (!string) {\n      return;\n   }\n   var abbr =  /^#([a-fA-F0-9]{3})$/i,\n       hex =  /^#([a-fA-F0-9]{6})$/i,\n       rgba = /^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n       per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n       keyword = /(\\w+)/;\n\n   var rgb = [0, 0, 0],\n       a = 1,\n       match = string.match(abbr);\n   if (match) {\n      match = match[1];\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match[i] + match[i], 16);\n      }\n   }\n   else if (match = string.match(hex)) {\n      match = match[1];\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match.slice(i * 2, i * 2 + 2), 16);\n      }\n   }\n   else if (match = string.match(rgba)) {\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = parseInt(match[i + 1]);\n      }\n      a = parseFloat(match[4]);\n   }\n   else if (match = string.match(per)) {\n      for (var i = 0; i < rgb.length; i++) {\n         rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n      }\n      a = parseFloat(match[4]);\n   }\n   else if (match = string.match(keyword)) {\n      if (match[1] == \"transparent\") {\n         return [0, 0, 0, 0];\n      }\n      rgb = colorNames[match[1]];\n      if (!rgb) {\n         return;\n      }\n   }\n\n   for (var i = 0; i < rgb.length; i++) {\n      rgb[i] = scale(rgb[i], 0, 255);\n   }\n   if (!a && a != 0) {\n      a = 1;\n   }\n   else {\n      a = scale(a, 0, 1);\n   }\n   rgb[3] = a;\n   return rgb;\n}\n\nfunction getHsla(string) {\n   if (!string) {\n      return;\n   }\n   var hsl = /^hsla?\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n   var match = string.match(hsl);\n   if (match) {\n      var alpha = parseFloat(match[4]);\n      var h = scale(parseInt(match[1]), 0, 360),\n          s = scale(parseFloat(match[2]), 0, 100),\n          l = scale(parseFloat(match[3]), 0, 100),\n          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n      return [h, s, l, a];\n   }\n}\n\nfunction getHwb(string) {\n   if (!string) {\n      return;\n   }\n   var hwb = /^hwb\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n   var match = string.match(hwb);\n   if (match) {\n    var alpha = parseFloat(match[4]);\n      var h = scale(parseInt(match[1]), 0, 360),\n          w = scale(parseFloat(match[2]), 0, 100),\n          b = scale(parseFloat(match[3]), 0, 100),\n          a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n      return [h, w, b, a];\n   }\n}\n\nfunction getRgb(string) {\n   var rgba = getRgba(string);\n   return rgba && rgba.slice(0, 3);\n}\n\nfunction getHsl(string) {\n  var hsla = getHsla(string);\n  return hsla && hsla.slice(0, 3);\n}\n\nfunction getAlpha(string) {\n   var vals = getRgba(string);\n   if (vals) {\n      return vals[3];\n   }\n   else if (vals = getHsla(string)) {\n      return vals[3];\n   }\n   else if (vals = getHwb(string)) {\n      return vals[3];\n   }\n}\n\n// generators\nfunction hexString(rgb) {\n   return \"#\" + hexDouble(rgb[0]) + hexDouble(rgb[1])\n              + hexDouble(rgb[2]);\n}\n\nfunction rgbString(rgba, alpha) {\n   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {\n      return rgbaString(rgba, alpha);\n   }\n   return \"rgb(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2] + \")\";\n}\n\nfunction rgbaString(rgba, alpha) {\n   if (alpha === undefined) {\n      alpha = (rgba[3] !== undefined ? rgba[3] : 1);\n   }\n   return \"rgba(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2]\n           + \", \" + alpha + \")\";\n}\n\nfunction percentString(rgba, alpha) {\n   if (alpha < 1 || (rgba[3] && rgba[3] < 1)) {\n      return percentaString(rgba, alpha);\n   }\n   var r = Math.round(rgba[0]/255 * 100),\n       g = Math.round(rgba[1]/255 * 100),\n       b = Math.round(rgba[2]/255 * 100);\n\n   return \"rgb(\" + r + \"%, \" + g + \"%, \" + b + \"%)\";\n}\n\nfunction percentaString(rgba, alpha) {\n   var r = Math.round(rgba[0]/255 * 100),\n       g = Math.round(rgba[1]/255 * 100),\n       b = Math.round(rgba[2]/255 * 100);\n   return \"rgba(\" + r + \"%, \" + g + \"%, \" + b + \"%, \" + (alpha || rgba[3] || 1) + \")\";\n}\n\nfunction hslString(hsla, alpha) {\n   if (alpha < 1 || (hsla[3] && hsla[3] < 1)) {\n      return hslaString(hsla, alpha);\n   }\n   return \"hsl(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%)\";\n}\n\nfunction hslaString(hsla, alpha) {\n   if (alpha === undefined) {\n      alpha = (hsla[3] !== undefined ? hsla[3] : 1);\n   }\n   return \"hsla(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%, \"\n           + alpha + \")\";\n}\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\nfunction hwbString(hwb, alpha) {\n   if (alpha === undefined) {\n      alpha = (hwb[3] !== undefined ? hwb[3] : 1);\n   }\n   return \"hwb(\" + hwb[0] + \", \" + hwb[1] + \"%, \" + hwb[2] + \"%\"\n           + (alpha !== undefined && alpha !== 1 ? \", \" + alpha : \"\") + \")\";\n}\n\nfunction keyword(rgb) {\n  return reverseNames[rgb.slice(0, 3)];\n}\n\n// helpers\nfunction scale(num, min, max) {\n   return Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n  var str = num.toString(16).toUpperCase();\n  return (str.length < 2) ? \"0\" + str : str;\n}\n\n\n//create a list of reverse color names\nvar reverseNames = {};\nfor (var name in colorNames) {\n   reverseNames[colorNames[name]] = name;\n}\n\n},{\"6\":6}],3:[function(require,module,exports){\n/* MIT license */\nvar convert = require(5);\nvar string = require(2);\n\nvar Color = function (obj) {\n\tif (obj instanceof Color) {\n\t\treturn obj;\n\t}\n\tif (!(this instanceof Color)) {\n\t\treturn new Color(obj);\n\t}\n\n\tthis.valid = false;\n\tthis.values = {\n\t\trgb: [0, 0, 0],\n\t\thsl: [0, 0, 0],\n\t\thsv: [0, 0, 0],\n\t\thwb: [0, 0, 0],\n\t\tcmyk: [0, 0, 0, 0],\n\t\talpha: 1\n\t};\n\n\t// parse Color() argument\n\tvar vals;\n\tif (typeof obj === 'string') {\n\t\tvals = string.getRgba(obj);\n\t\tif (vals) {\n\t\t\tthis.setValues('rgb', vals);\n\t\t} else if (vals = string.getHsla(obj)) {\n\t\t\tthis.setValues('hsl', vals);\n\t\t} else if (vals = string.getHwb(obj)) {\n\t\t\tthis.setValues('hwb', vals);\n\t\t}\n\t} else if (typeof obj === 'object') {\n\t\tvals = obj;\n\t\tif (vals.r !== undefined || vals.red !== undefined) {\n\t\t\tthis.setValues('rgb', vals);\n\t\t} else if (vals.l !== undefined || vals.lightness !== undefined) {\n\t\t\tthis.setValues('hsl', vals);\n\t\t} else if (vals.v !== undefined || vals.value !== undefined) {\n\t\t\tthis.setValues('hsv', vals);\n\t\t} else if (vals.w !== undefined || vals.whiteness !== undefined) {\n\t\t\tthis.setValues('hwb', vals);\n\t\t} else if (vals.c !== undefined || vals.cyan !== undefined) {\n\t\t\tthis.setValues('cmyk', vals);\n\t\t}\n\t}\n};\n\nColor.prototype = {\n\tisValid: function () {\n\t\treturn this.valid;\n\t},\n\trgb: function () {\n\t\treturn this.setSpace('rgb', arguments);\n\t},\n\thsl: function () {\n\t\treturn this.setSpace('hsl', arguments);\n\t},\n\thsv: function () {\n\t\treturn this.setSpace('hsv', arguments);\n\t},\n\thwb: function () {\n\t\treturn this.setSpace('hwb', arguments);\n\t},\n\tcmyk: function () {\n\t\treturn this.setSpace('cmyk', arguments);\n\t},\n\n\trgbArray: function () {\n\t\treturn this.values.rgb;\n\t},\n\thslArray: function () {\n\t\treturn this.values.hsl;\n\t},\n\thsvArray: function () {\n\t\treturn this.values.hsv;\n\t},\n\thwbArray: function () {\n\t\tvar values = this.values;\n\t\tif (values.alpha !== 1) {\n\t\t\treturn values.hwb.concat([values.alpha]);\n\t\t}\n\t\treturn values.hwb;\n\t},\n\tcmykArray: function () {\n\t\treturn this.values.cmyk;\n\t},\n\trgbaArray: function () {\n\t\tvar values = this.values;\n\t\treturn values.rgb.concat([values.alpha]);\n\t},\n\thslaArray: function () {\n\t\tvar values = this.values;\n\t\treturn values.hsl.concat([values.alpha]);\n\t},\n\talpha: function (val) {\n\t\tif (val === undefined) {\n\t\t\treturn this.values.alpha;\n\t\t}\n\t\tthis.setValues('alpha', val);\n\t\treturn this;\n\t},\n\n\tred: function (val) {\n\t\treturn this.setChannel('rgb', 0, val);\n\t},\n\tgreen: function (val) {\n\t\treturn this.setChannel('rgb', 1, val);\n\t},\n\tblue: function (val) {\n\t\treturn this.setChannel('rgb', 2, val);\n\t},\n\thue: function (val) {\n\t\tif (val) {\n\t\t\tval %= 360;\n\t\t\tval = val < 0 ? 360 + val : val;\n\t\t}\n\t\treturn this.setChannel('hsl', 0, val);\n\t},\n\tsaturation: function (val) {\n\t\treturn this.setChannel('hsl', 1, val);\n\t},\n\tlightness: function (val) {\n\t\treturn this.setChannel('hsl', 2, val);\n\t},\n\tsaturationv: function (val) {\n\t\treturn this.setChannel('hsv', 1, val);\n\t},\n\twhiteness: function (val) {\n\t\treturn this.setChannel('hwb', 1, val);\n\t},\n\tblackness: function (val) {\n\t\treturn this.setChannel('hwb', 2, val);\n\t},\n\tvalue: function (val) {\n\t\treturn this.setChannel('hsv', 2, val);\n\t},\n\tcyan: function (val) {\n\t\treturn this.setChannel('cmyk', 0, val);\n\t},\n\tmagenta: function (val) {\n\t\treturn this.setChannel('cmyk', 1, val);\n\t},\n\tyellow: function (val) {\n\t\treturn this.setChannel('cmyk', 2, val);\n\t},\n\tblack: function (val) {\n\t\treturn this.setChannel('cmyk', 3, val);\n\t},\n\n\thexString: function () {\n\t\treturn string.hexString(this.values.rgb);\n\t},\n\trgbString: function () {\n\t\treturn string.rgbString(this.values.rgb, this.values.alpha);\n\t},\n\trgbaString: function () {\n\t\treturn string.rgbaString(this.values.rgb, this.values.alpha);\n\t},\n\tpercentString: function () {\n\t\treturn string.percentString(this.values.rgb, this.values.alpha);\n\t},\n\thslString: function () {\n\t\treturn string.hslString(this.values.hsl, this.values.alpha);\n\t},\n\thslaString: function () {\n\t\treturn string.hslaString(this.values.hsl, this.values.alpha);\n\t},\n\thwbString: function () {\n\t\treturn string.hwbString(this.values.hwb, this.values.alpha);\n\t},\n\tkeyword: function () {\n\t\treturn string.keyword(this.values.rgb, this.values.alpha);\n\t},\n\n\trgbNumber: function () {\n\t\tvar rgb = this.values.rgb;\n\t\treturn (rgb[0] << 16) | (rgb[1] << 8) | rgb[2];\n\t},\n\n\tluminosity: function () {\n\t\t// http://www.w3.org/TR/WCAG20/#relativeluminancedef\n\t\tvar rgb = this.values.rgb;\n\t\tvar lum = [];\n\t\tfor (var i = 0; i < rgb.length; i++) {\n\t\t\tvar chan = rgb[i] / 255;\n\t\t\tlum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4);\n\t\t}\n\t\treturn 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n\t},\n\n\tcontrast: function (color2) {\n\t\t// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n\t\tvar lum1 = this.luminosity();\n\t\tvar lum2 = color2.luminosity();\n\t\tif (lum1 > lum2) {\n\t\t\treturn (lum1 + 0.05) / (lum2 + 0.05);\n\t\t}\n\t\treturn (lum2 + 0.05) / (lum1 + 0.05);\n\t},\n\n\tlevel: function (color2) {\n\t\tvar contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7.1) {\n\t\t\treturn 'AAA';\n\t\t}\n\n\t\treturn (contrastRatio >= 4.5) ? 'AA' : '';\n\t},\n\n\tdark: function () {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tvar rgb = this.values.rgb;\n\t\tvar yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n\t\treturn yiq < 128;\n\t},\n\n\tlight: function () {\n\t\treturn !this.dark();\n\t},\n\n\tnegate: function () {\n\t\tvar rgb = [];\n\t\tfor (var i = 0; i < 3; i++) {\n\t\t\trgb[i] = 255 - this.values.rgb[i];\n\t\t}\n\t\tthis.setValues('rgb', rgb);\n\t\treturn this;\n\t},\n\n\tlighten: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[2] += hsl[2] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tdarken: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[2] -= hsl[2] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tsaturate: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[1] += hsl[1] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\tdesaturate: function (ratio) {\n\t\tvar hsl = this.values.hsl;\n\t\thsl[1] -= hsl[1] * ratio;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\twhiten: function (ratio) {\n\t\tvar hwb = this.values.hwb;\n\t\thwb[1] += hwb[1] * ratio;\n\t\tthis.setValues('hwb', hwb);\n\t\treturn this;\n\t},\n\n\tblacken: function (ratio) {\n\t\tvar hwb = this.values.hwb;\n\t\thwb[2] += hwb[2] * ratio;\n\t\tthis.setValues('hwb', hwb);\n\t\treturn this;\n\t},\n\n\tgreyscale: function () {\n\t\tvar rgb = this.values.rgb;\n\t\t// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n\t\tvar val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n\t\tthis.setValues('rgb', [val, val, val]);\n\t\treturn this;\n\t},\n\n\tclearer: function (ratio) {\n\t\tvar alpha = this.values.alpha;\n\t\tthis.setValues('alpha', alpha - (alpha * ratio));\n\t\treturn this;\n\t},\n\n\topaquer: function (ratio) {\n\t\tvar alpha = this.values.alpha;\n\t\tthis.setValues('alpha', alpha + (alpha * ratio));\n\t\treturn this;\n\t},\n\n\trotate: function (degrees) {\n\t\tvar hsl = this.values.hsl;\n\t\tvar hue = (hsl[0] + degrees) % 360;\n\t\thsl[0] = hue < 0 ? 360 + hue : hue;\n\t\tthis.setValues('hsl', hsl);\n\t\treturn this;\n\t},\n\n\t/**\n\t * Ported from sass implementation in C\n\t * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n\t */\n\tmix: function (mixinColor, weight) {\n\t\tvar color1 = this;\n\t\tvar color2 = mixinColor;\n\t\tvar p = weight === undefined ? 0.5 : weight;\n\n\t\tvar w = 2 * p - 1;\n\t\tvar a = color1.alpha() - color2.alpha();\n\n\t\tvar w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n\t\tvar w2 = 1 - w1;\n\n\t\treturn this\n\t\t\t.rgb(\n\t\t\t\tw1 * color1.red() + w2 * color2.red(),\n\t\t\t\tw1 * color1.green() + w2 * color2.green(),\n\t\t\t\tw1 * color1.blue() + w2 * color2.blue()\n\t\t\t)\n\t\t\t.alpha(color1.alpha() * p + color2.alpha() * (1 - p));\n\t},\n\n\ttoJSON: function () {\n\t\treturn this.rgb();\n\t},\n\n\tclone: function () {\n\t\t// NOTE(SB): using node-clone creates a dependency to Buffer when using browserify,\n\t\t// making the final build way to big to embed in Chart.js. So let's do it manually,\n\t\t// assuming that values to clone are 1 dimension arrays containing only numbers,\n\t\t// except 'alpha' which is a number.\n\t\tvar result = new Color();\n\t\tvar source = this.values;\n\t\tvar target = result.values;\n\t\tvar value, type;\n\n\t\tfor (var prop in source) {\n\t\t\tif (source.hasOwnProperty(prop)) {\n\t\t\t\tvalue = source[prop];\n\t\t\t\ttype = ({}).toString.call(value);\n\t\t\t\tif (type === '[object Array]') {\n\t\t\t\t\ttarget[prop] = value.slice(0);\n\t\t\t\t} else if (type === '[object Number]') {\n\t\t\t\t\ttarget[prop] = value;\n\t\t\t\t} else {\n\t\t\t\t\tconsole.error('unexpected color value:', value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n};\n\nColor.prototype.spaces = {\n\trgb: ['red', 'green', 'blue'],\n\thsl: ['hue', 'saturation', 'lightness'],\n\thsv: ['hue', 'saturation', 'value'],\n\thwb: ['hue', 'whiteness', 'blackness'],\n\tcmyk: ['cyan', 'magenta', 'yellow', 'black']\n};\n\nColor.prototype.maxes = {\n\trgb: [255, 255, 255],\n\thsl: [360, 100, 100],\n\thsv: [360, 100, 100],\n\thwb: [360, 100, 100],\n\tcmyk: [100, 100, 100, 100]\n};\n\nColor.prototype.getValues = function (space) {\n\tvar values = this.values;\n\tvar vals = {};\n\n\tfor (var i = 0; i < space.length; i++) {\n\t\tvals[space.charAt(i)] = values[space][i];\n\t}\n\n\tif (values.alpha !== 1) {\n\t\tvals.a = values.alpha;\n\t}\n\n\t// {r: 255, g: 255, b: 255, a: 0.4}\n\treturn vals;\n};\n\nColor.prototype.setValues = function (space, vals) {\n\tvar values = this.values;\n\tvar spaces = this.spaces;\n\tvar maxes = this.maxes;\n\tvar alpha = 1;\n\tvar i;\n\n\tthis.valid = true;\n\n\tif (space === 'alpha') {\n\t\talpha = vals;\n\t} else if (vals.length) {\n\t\t// [10, 10, 10]\n\t\tvalues[space] = vals.slice(0, space.length);\n\t\talpha = vals[space.length];\n\t} else if (vals[space.charAt(0)] !== undefined) {\n\t\t// {r: 10, g: 10, b: 10}\n\t\tfor (i = 0; i < space.length; i++) {\n\t\t\tvalues[space][i] = vals[space.charAt(i)];\n\t\t}\n\n\t\talpha = vals.a;\n\t} else if (vals[spaces[space][0]] !== undefined) {\n\t\t// {red: 10, green: 10, blue: 10}\n\t\tvar chans = spaces[space];\n\n\t\tfor (i = 0; i < space.length; i++) {\n\t\t\tvalues[space][i] = vals[chans[i]];\n\t\t}\n\n\t\talpha = vals.alpha;\n\t}\n\n\tvalues.alpha = Math.max(0, Math.min(1, (alpha === undefined ? values.alpha : alpha)));\n\n\tif (space === 'alpha') {\n\t\treturn false;\n\t}\n\n\tvar capped;\n\n\t// cap values of the space prior converting all values\n\tfor (i = 0; i < space.length; i++) {\n\t\tcapped = Math.max(0, Math.min(maxes[space][i], values[space][i]));\n\t\tvalues[space][i] = Math.round(capped);\n\t}\n\n\t// convert to all the other color spaces\n\tfor (var sname in spaces) {\n\t\tif (sname !== space) {\n\t\t\tvalues[sname] = convert[space][sname](values[space]);\n\t\t}\n\t}\n\n\treturn true;\n};\n\nColor.prototype.setSpace = function (space, args) {\n\tvar vals = args[0];\n\n\tif (vals === undefined) {\n\t\t// color.rgb()\n\t\treturn this.getValues(space);\n\t}\n\n\t// color.rgb(10, 10, 10)\n\tif (typeof vals === 'number') {\n\t\tvals = Array.prototype.slice.call(args);\n\t}\n\n\tthis.setValues(space, vals);\n\treturn this;\n};\n\nColor.prototype.setChannel = function (space, index, val) {\n\tvar svalues = this.values[space];\n\tif (val === undefined) {\n\t\t// color.red()\n\t\treturn svalues[index];\n\t} else if (val === svalues[index]) {\n\t\t// color.red(color.red())\n\t\treturn this;\n\t}\n\n\t// color.red(100)\n\tsvalues[index] = val;\n\tthis.setValues(space, svalues);\n\n\treturn this;\n};\n\nif (typeof window !== 'undefined') {\n\twindow.Color = Color;\n}\n\nmodule.exports = Color;\n\n},{\"2\":2,\"5\":5}],4:[function(require,module,exports){\n/* MIT license */\n\nmodule.exports = {\n  rgb2hsl: rgb2hsl,\n  rgb2hsv: rgb2hsv,\n  rgb2hwb: rgb2hwb,\n  rgb2cmyk: rgb2cmyk,\n  rgb2keyword: rgb2keyword,\n  rgb2xyz: rgb2xyz,\n  rgb2lab: rgb2lab,\n  rgb2lch: rgb2lch,\n\n  hsl2rgb: hsl2rgb,\n  hsl2hsv: hsl2hsv,\n  hsl2hwb: hsl2hwb,\n  hsl2cmyk: hsl2cmyk,\n  hsl2keyword: hsl2keyword,\n\n  hsv2rgb: hsv2rgb,\n  hsv2hsl: hsv2hsl,\n  hsv2hwb: hsv2hwb,\n  hsv2cmyk: hsv2cmyk,\n  hsv2keyword: hsv2keyword,\n\n  hwb2rgb: hwb2rgb,\n  hwb2hsl: hwb2hsl,\n  hwb2hsv: hwb2hsv,\n  hwb2cmyk: hwb2cmyk,\n  hwb2keyword: hwb2keyword,\n\n  cmyk2rgb: cmyk2rgb,\n  cmyk2hsl: cmyk2hsl,\n  cmyk2hsv: cmyk2hsv,\n  cmyk2hwb: cmyk2hwb,\n  cmyk2keyword: cmyk2keyword,\n\n  keyword2rgb: keyword2rgb,\n  keyword2hsl: keyword2hsl,\n  keyword2hsv: keyword2hsv,\n  keyword2hwb: keyword2hwb,\n  keyword2cmyk: keyword2cmyk,\n  keyword2lab: keyword2lab,\n  keyword2xyz: keyword2xyz,\n\n  xyz2rgb: xyz2rgb,\n  xyz2lab: xyz2lab,\n  xyz2lch: xyz2lch,\n\n  lab2xyz: lab2xyz,\n  lab2rgb: lab2rgb,\n  lab2lch: lab2lch,\n\n  lch2lab: lch2lab,\n  lch2xyz: lch2xyz,\n  lch2rgb: lch2rgb\n}\n\n\nfunction rgb2hsl(rgb) {\n  var r = rgb[0]/255,\n      g = rgb[1]/255,\n      b = rgb[2]/255,\n      min = Math.min(r, g, b),\n      max = Math.max(r, g, b),\n      delta = max - min,\n      h, s, l;\n\n  if (max == min)\n    h = 0;\n  else if (r == max)\n    h = (g - b) / delta;\n  else if (g == max)\n    h = 2 + (b - r) / delta;\n  else if (b == max)\n    h = 4 + (r - g)/ delta;\n\n  h = Math.min(h * 60, 360);\n\n  if (h < 0)\n    h += 360;\n\n  l = (min + max) / 2;\n\n  if (max == min)\n    s = 0;\n  else if (l <= 0.5)\n    s = delta / (max + min);\n  else\n    s = delta / (2 - max - min);\n\n  return [h, s * 100, l * 100];\n}\n\nfunction rgb2hsv(rgb) {\n  var r = rgb[0],\n      g = rgb[1],\n      b = rgb[2],\n      min = Math.min(r, g, b),\n      max = Math.max(r, g, b),\n      delta = max - min,\n      h, s, v;\n\n  if (max == 0)\n    s = 0;\n  else\n    s = (delta/max * 1000)/10;\n\n  if (max == min)\n    h = 0;\n  else if (r == max)\n    h = (g - b) / delta;\n  else if (g == max)\n    h = 2 + (b - r) / delta;\n  else if (b == max)\n    h = 4 + (r - g) / delta;\n\n  h = Math.min(h * 60, 360);\n\n  if (h < 0)\n    h += 360;\n\n  v = ((max / 255) * 1000) / 10;\n\n  return [h, s, v];\n}\n\nfunction rgb2hwb(rgb) {\n  var r = rgb[0],\n      g = rgb[1],\n      b = rgb[2],\n      h = rgb2hsl(rgb)[0],\n      w = 1/255 * Math.min(r, Math.min(g, b)),\n      b = 1 - 1/255 * Math.max(r, Math.max(g, b));\n\n  return [h, w * 100, b * 100];\n}\n\nfunction rgb2cmyk(rgb) {\n  var r = rgb[0] / 255,\n      g = rgb[1] / 255,\n      b = rgb[2] / 255,\n      c, m, y, k;\n\n  k = Math.min(1 - r, 1 - g, 1 - b);\n  c = (1 - r - k) / (1 - k) || 0;\n  m = (1 - g - k) / (1 - k) || 0;\n  y = (1 - b - k) / (1 - k) || 0;\n  return [c * 100, m * 100, y * 100, k * 100];\n}\n\nfunction rgb2keyword(rgb) {\n  return reverseKeywords[JSON.stringify(rgb)];\n}\n\nfunction rgb2xyz(rgb) {\n  var r = rgb[0] / 255,\n      g = rgb[1] / 255,\n      b = rgb[2] / 255;\n\n  // assume sRGB\n  r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);\n  g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);\n  b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);\n\n  var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n  var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n  var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n  return [x * 100, y *100, z * 100];\n}\n\nfunction rgb2lab(rgb) {\n  var xyz = rgb2xyz(rgb),\n        x = xyz[0],\n        y = xyz[1],\n        z = xyz[2],\n        l, a, b;\n\n  x /= 95.047;\n  y /= 100;\n  z /= 108.883;\n\n  x = x > 0.008856 ? Math.pow(x, 1/3) : (7.787 * x) + (16 / 116);\n  y = y > 0.008856 ? Math.pow(y, 1/3) : (7.787 * y) + (16 / 116);\n  z = z > 0.008856 ? Math.pow(z, 1/3) : (7.787 * z) + (16 / 116);\n\n  l = (116 * y) - 16;\n  a = 500 * (x - y);\n  b = 200 * (y - z);\n\n  return [l, a, b];\n}\n\nfunction rgb2lch(args) {\n  return lab2lch(rgb2lab(args));\n}\n\nfunction hsl2rgb(hsl) {\n  var h = hsl[0] / 360,\n      s = hsl[1] / 100,\n      l = hsl[2] / 100,\n      t1, t2, t3, rgb, val;\n\n  if (s == 0) {\n    val = l * 255;\n    return [val, val, val];\n  }\n\n  if (l < 0.5)\n    t2 = l * (1 + s);\n  else\n    t2 = l + s - l * s;\n  t1 = 2 * l - t2;\n\n  rgb = [0, 0, 0];\n  for (var i = 0; i < 3; i++) {\n    t3 = h + 1 / 3 * - (i - 1);\n    t3 < 0 && t3++;\n    t3 > 1 && t3--;\n\n    if (6 * t3 < 1)\n      val = t1 + (t2 - t1) * 6 * t3;\n    else if (2 * t3 < 1)\n      val = t2;\n    else if (3 * t3 < 2)\n      val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n    else\n      val = t1;\n\n    rgb[i] = val * 255;\n  }\n\n  return rgb;\n}\n\nfunction hsl2hsv(hsl) {\n  var h = hsl[0],\n      s = hsl[1] / 100,\n      l = hsl[2] / 100,\n      sv, v;\n\n  if(l === 0) {\n      // no need to do calc on black\n      // also avoids divide by 0 error\n      return [0, 0, 0];\n  }\n\n  l *= 2;\n  s *= (l <= 1) ? l : 2 - l;\n  v = (l + s) / 2;\n  sv = (2 * s) / (l + s);\n  return [h, sv * 100, v * 100];\n}\n\nfunction hsl2hwb(args) {\n  return rgb2hwb(hsl2rgb(args));\n}\n\nfunction hsl2cmyk(args) {\n  return rgb2cmyk(hsl2rgb(args));\n}\n\nfunction hsl2keyword(args) {\n  return rgb2keyword(hsl2rgb(args));\n}\n\n\nfunction hsv2rgb(hsv) {\n  var h = hsv[0] / 60,\n      s = hsv[1] / 100,\n      v = hsv[2] / 100,\n      hi = Math.floor(h) % 6;\n\n  var f = h - Math.floor(h),\n      p = 255 * v * (1 - s),\n      q = 255 * v * (1 - (s * f)),\n      t = 255 * v * (1 - (s * (1 - f))),\n      v = 255 * v;\n\n  switch(hi) {\n    case 0:\n      return [v, t, p];\n    case 1:\n      return [q, v, p];\n    case 2:\n      return [p, v, t];\n    case 3:\n      return [p, q, v];\n    case 4:\n      return [t, p, v];\n    case 5:\n      return [v, p, q];\n  }\n}\n\nfunction hsv2hsl(hsv) {\n  var h = hsv[0],\n      s = hsv[1] / 100,\n      v = hsv[2] / 100,\n      sl, l;\n\n  l = (2 - s) * v;\n  sl = s * v;\n  sl /= (l <= 1) ? l : 2 - l;\n  sl = sl || 0;\n  l /= 2;\n  return [h, sl * 100, l * 100];\n}\n\nfunction hsv2hwb(args) {\n  return rgb2hwb(hsv2rgb(args))\n}\n\nfunction hsv2cmyk(args) {\n  return rgb2cmyk(hsv2rgb(args));\n}\n\nfunction hsv2keyword(args) {\n  return rgb2keyword(hsv2rgb(args));\n}\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nfunction hwb2rgb(hwb) {\n  var h = hwb[0] / 360,\n      wh = hwb[1] / 100,\n      bl = hwb[2] / 100,\n      ratio = wh + bl,\n      i, v, f, n;\n\n  // wh + bl cant be > 1\n  if (ratio > 1) {\n    wh /= ratio;\n    bl /= ratio;\n  }\n\n  i = Math.floor(6 * h);\n  v = 1 - bl;\n  f = 6 * h - i;\n  if ((i & 0x01) != 0) {\n    f = 1 - f;\n  }\n  n = wh + f * (v - wh);  // linear interpolation\n\n  switch (i) {\n    default:\n    case 6:\n    case 0: r = v; g = n; b = wh; break;\n    case 1: r = n; g = v; b = wh; break;\n    case 2: r = wh; g = v; b = n; break;\n    case 3: r = wh; g = n; b = v; break;\n    case 4: r = n; g = wh; b = v; break;\n    case 5: r = v; g = wh; b = n; break;\n  }\n\n  return [r * 255, g * 255, b * 255];\n}\n\nfunction hwb2hsl(args) {\n  return rgb2hsl(hwb2rgb(args));\n}\n\nfunction hwb2hsv(args) {\n  return rgb2hsv(hwb2rgb(args));\n}\n\nfunction hwb2cmyk(args) {\n  return rgb2cmyk(hwb2rgb(args));\n}\n\nfunction hwb2keyword(args) {\n  return rgb2keyword(hwb2rgb(args));\n}\n\nfunction cmyk2rgb(cmyk) {\n  var c = cmyk[0] / 100,\n      m = cmyk[1] / 100,\n      y = cmyk[2] / 100,\n      k = cmyk[3] / 100,\n      r, g, b;\n\n  r = 1 - Math.min(1, c * (1 - k) + k);\n  g = 1 - Math.min(1, m * (1 - k) + k);\n  b = 1 - Math.min(1, y * (1 - k) + k);\n  return [r * 255, g * 255, b * 255];\n}\n\nfunction cmyk2hsl(args) {\n  return rgb2hsl(cmyk2rgb(args));\n}\n\nfunction cmyk2hsv(args) {\n  return rgb2hsv(cmyk2rgb(args));\n}\n\nfunction cmyk2hwb(args) {\n  return rgb2hwb(cmyk2rgb(args));\n}\n\nfunction cmyk2keyword(args) {\n  return rgb2keyword(cmyk2rgb(args));\n}\n\n\nfunction xyz2rgb(xyz) {\n  var x = xyz[0] / 100,\n      y = xyz[1] / 100,\n      z = xyz[2] / 100,\n      r, g, b;\n\n  r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n  g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n  b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n  // assume sRGB\n  r = r > 0.0031308 ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)\n    : r = (r * 12.92);\n\n  g = g > 0.0031308 ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)\n    : g = (g * 12.92);\n\n  b = b > 0.0031308 ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)\n    : b = (b * 12.92);\n\n  r = Math.min(Math.max(0, r), 1);\n  g = Math.min(Math.max(0, g), 1);\n  b = Math.min(Math.max(0, b), 1);\n\n  return [r * 255, g * 255, b * 255];\n}\n\nfunction xyz2lab(xyz) {\n  var x = xyz[0],\n      y = xyz[1],\n      z = xyz[2],\n      l, a, b;\n\n  x /= 95.047;\n  y /= 100;\n  z /= 108.883;\n\n  x = x > 0.008856 ? Math.pow(x, 1/3) : (7.787 * x) + (16 / 116);\n  y = y > 0.008856 ? Math.pow(y, 1/3) : (7.787 * y) + (16 / 116);\n  z = z > 0.008856 ? Math.pow(z, 1/3) : (7.787 * z) + (16 / 116);\n\n  l = (116 * y) - 16;\n  a = 500 * (x - y);\n  b = 200 * (y - z);\n\n  return [l, a, b];\n}\n\nfunction xyz2lch(args) {\n  return lab2lch(xyz2lab(args));\n}\n\nfunction lab2xyz(lab) {\n  var l = lab[0],\n      a = lab[1],\n      b = lab[2],\n      x, y, z, y2;\n\n  if (l <= 8) {\n    y = (l * 100) / 903.3;\n    y2 = (7.787 * (y / 100)) + (16 / 116);\n  } else {\n    y = 100 * Math.pow((l + 16) / 116, 3);\n    y2 = Math.pow(y / 100, 1/3);\n  }\n\n  x = x / 95.047 <= 0.008856 ? x = (95.047 * ((a / 500) + y2 - (16 / 116))) / 7.787 : 95.047 * Math.pow((a / 500) + y2, 3);\n\n  z = z / 108.883 <= 0.008859 ? z = (108.883 * (y2 - (b / 200) - (16 / 116))) / 7.787 : 108.883 * Math.pow(y2 - (b / 200), 3);\n\n  return [x, y, z];\n}\n\nfunction lab2lch(lab) {\n  var l = lab[0],\n      a = lab[1],\n      b = lab[2],\n      hr, h, c;\n\n  hr = Math.atan2(b, a);\n  h = hr * 360 / 2 / Math.PI;\n  if (h < 0) {\n    h += 360;\n  }\n  c = Math.sqrt(a * a + b * b);\n  return [l, c, h];\n}\n\nfunction lab2rgb(args) {\n  return xyz2rgb(lab2xyz(args));\n}\n\nfunction lch2lab(lch) {\n  var l = lch[0],\n      c = lch[1],\n      h = lch[2],\n      a, b, hr;\n\n  hr = h / 360 * 2 * Math.PI;\n  a = c * Math.cos(hr);\n  b = c * Math.sin(hr);\n  return [l, a, b];\n}\n\nfunction lch2xyz(args) {\n  return lab2xyz(lch2lab(args));\n}\n\nfunction lch2rgb(args) {\n  return lab2rgb(lch2lab(args));\n}\n\nfunction keyword2rgb(keyword) {\n  return cssKeywords[keyword];\n}\n\nfunction keyword2hsl(args) {\n  return rgb2hsl(keyword2rgb(args));\n}\n\nfunction keyword2hsv(args) {\n  return rgb2hsv(keyword2rgb(args));\n}\n\nfunction keyword2hwb(args) {\n  return rgb2hwb(keyword2rgb(args));\n}\n\nfunction keyword2cmyk(args) {\n  return rgb2cmyk(keyword2rgb(args));\n}\n\nfunction keyword2lab(args) {\n  return rgb2lab(keyword2rgb(args));\n}\n\nfunction keyword2xyz(args) {\n  return rgb2xyz(keyword2rgb(args));\n}\n\nvar cssKeywords = {\n  aliceblue:  [240,248,255],\n  antiquewhite: [250,235,215],\n  aqua: [0,255,255],\n  aquamarine: [127,255,212],\n  azure:  [240,255,255],\n  beige:  [245,245,220],\n  bisque: [255,228,196],\n  black:  [0,0,0],\n  blanchedalmond: [255,235,205],\n  blue: [0,0,255],\n  blueviolet: [138,43,226],\n  brown:  [165,42,42],\n  burlywood:  [222,184,135],\n  cadetblue:  [95,158,160],\n  chartreuse: [127,255,0],\n  chocolate:  [210,105,30],\n  coral:  [255,127,80],\n  cornflowerblue: [100,149,237],\n  cornsilk: [255,248,220],\n  crimson:  [220,20,60],\n  cyan: [0,255,255],\n  darkblue: [0,0,139],\n  darkcyan: [0,139,139],\n  darkgoldenrod:  [184,134,11],\n  darkgray: [169,169,169],\n  darkgreen:  [0,100,0],\n  darkgrey: [169,169,169],\n  darkkhaki:  [189,183,107],\n  darkmagenta:  [139,0,139],\n  darkolivegreen: [85,107,47],\n  darkorange: [255,140,0],\n  darkorchid: [153,50,204],\n  darkred:  [139,0,0],\n  darksalmon: [233,150,122],\n  darkseagreen: [143,188,143],\n  darkslateblue:  [72,61,139],\n  darkslategray:  [47,79,79],\n  darkslategrey:  [47,79,79],\n  darkturquoise:  [0,206,209],\n  darkviolet: [148,0,211],\n  deeppink: [255,20,147],\n  deepskyblue:  [0,191,255],\n  dimgray:  [105,105,105],\n  dimgrey:  [105,105,105],\n  dodgerblue: [30,144,255],\n  firebrick:  [178,34,34],\n  floralwhite:  [255,250,240],\n  forestgreen:  [34,139,34],\n  fuchsia:  [255,0,255],\n  gainsboro:  [220,220,220],\n  ghostwhite: [248,248,255],\n  gold: [255,215,0],\n  goldenrod:  [218,165,32],\n  gray: [128,128,128],\n  green:  [0,128,0],\n  greenyellow:  [173,255,47],\n  grey: [128,128,128],\n  honeydew: [240,255,240],\n  hotpink:  [255,105,180],\n  indianred:  [205,92,92],\n  indigo: [75,0,130],\n  ivory:  [255,255,240],\n  khaki:  [240,230,140],\n  lavender: [230,230,250],\n  lavenderblush:  [255,240,245],\n  lawngreen:  [124,252,0],\n  lemonchiffon: [255,250,205],\n  lightblue:  [173,216,230],\n  lightcoral: [240,128,128],\n  lightcyan:  [224,255,255],\n  lightgoldenrodyellow: [250,250,210],\n  lightgray:  [211,211,211],\n  lightgreen: [144,238,144],\n  lightgrey:  [211,211,211],\n  lightpink:  [255,182,193],\n  lightsalmon:  [255,160,122],\n  lightseagreen:  [32,178,170],\n  lightskyblue: [135,206,250],\n  lightslategray: [119,136,153],\n  lightslategrey: [119,136,153],\n  lightsteelblue: [176,196,222],\n  lightyellow:  [255,255,224],\n  lime: [0,255,0],\n  limegreen:  [50,205,50],\n  linen:  [250,240,230],\n  magenta:  [255,0,255],\n  maroon: [128,0,0],\n  mediumaquamarine: [102,205,170],\n  mediumblue: [0,0,205],\n  mediumorchid: [186,85,211],\n  mediumpurple: [147,112,219],\n  mediumseagreen: [60,179,113],\n  mediumslateblue:  [123,104,238],\n  mediumspringgreen:  [0,250,154],\n  mediumturquoise:  [72,209,204],\n  mediumvioletred:  [199,21,133],\n  midnightblue: [25,25,112],\n  mintcream:  [245,255,250],\n  mistyrose:  [255,228,225],\n  moccasin: [255,228,181],\n  navajowhite:  [255,222,173],\n  navy: [0,0,128],\n  oldlace:  [253,245,230],\n  olive:  [128,128,0],\n  olivedrab:  [107,142,35],\n  orange: [255,165,0],\n  orangered:  [255,69,0],\n  orchid: [218,112,214],\n  palegoldenrod:  [238,232,170],\n  palegreen:  [152,251,152],\n  paleturquoise:  [175,238,238],\n  palevioletred:  [219,112,147],\n  papayawhip: [255,239,213],\n  peachpuff:  [255,218,185],\n  peru: [205,133,63],\n  pink: [255,192,203],\n  plum: [221,160,221],\n  powderblue: [176,224,230],\n  purple: [128,0,128],\n  rebeccapurple: [102, 51, 153],\n  red:  [255,0,0],\n  rosybrown:  [188,143,143],\n  royalblue:  [65,105,225],\n  saddlebrown:  [139,69,19],\n  salmon: [250,128,114],\n  sandybrown: [244,164,96],\n  seagreen: [46,139,87],\n  seashell: [255,245,238],\n  sienna: [160,82,45],\n  silver: [192,192,192],\n  skyblue:  [135,206,235],\n  slateblue:  [106,90,205],\n  slategray:  [112,128,144],\n  slategrey:  [112,128,144],\n  snow: [255,250,250],\n  springgreen:  [0,255,127],\n  steelblue:  [70,130,180],\n  tan:  [210,180,140],\n  teal: [0,128,128],\n  thistle:  [216,191,216],\n  tomato: [255,99,71],\n  turquoise:  [64,224,208],\n  violet: [238,130,238],\n  wheat:  [245,222,179],\n  white:  [255,255,255],\n  whitesmoke: [245,245,245],\n  yellow: [255,255,0],\n  yellowgreen:  [154,205,50]\n};\n\nvar reverseKeywords = {};\nfor (var key in cssKeywords) {\n  reverseKeywords[JSON.stringify(cssKeywords[key])] = key;\n}\n\n},{}],5:[function(require,module,exports){\nvar conversions = require(4);\n\nvar convert = function() {\n   return new Converter();\n}\n\nfor (var func in conversions) {\n  // export Raw versions\n  convert[func + \"Raw\"] =  (function(func) {\n    // accept array or plain args\n    return function(arg) {\n      if (typeof arg == \"number\")\n        arg = Array.prototype.slice.call(arguments);\n      return conversions[func](arg);\n    }\n  })(func);\n\n  var pair = /(\\w+)2(\\w+)/.exec(func),\n      from = pair[1],\n      to = pair[2];\n\n  // export rgb2hsl and [\"rgb\"][\"hsl\"]\n  convert[from] = convert[from] || {};\n\n  convert[from][to] = convert[func] = (function(func) {\n    return function(arg) {\n      if (typeof arg == \"number\")\n        arg = Array.prototype.slice.call(arguments);\n\n      var val = conversions[func](arg);\n      if (typeof val == \"string\" || val === undefined)\n        return val; // keyword\n\n      for (var i = 0; i < val.length; i++)\n        val[i] = Math.round(val[i]);\n      return val;\n    }\n  })(func);\n}\n\n\n/* Converter does lazy conversion and caching */\nvar Converter = function() {\n   this.convs = {};\n};\n\n/* Either get the values for a space or\n  set the values for a space, depending on args */\nConverter.prototype.routeSpace = function(space, args) {\n   var values = args[0];\n   if (values === undefined) {\n      // color.rgb()\n      return this.getValues(space);\n   }\n   // color.rgb(10, 10, 10)\n   if (typeof values == \"number\") {\n      values = Array.prototype.slice.call(args);\n   }\n\n   return this.setValues(space, values);\n};\n\n/* Set the values for a space, invalidating cache */\nConverter.prototype.setValues = function(space, values) {\n   this.space = space;\n   this.convs = {};\n   this.convs[space] = values;\n   return this;\n};\n\n/* Get the values for a space. If there's already\n  a conversion for the space, fetch it, otherwise\n  compute it */\nConverter.prototype.getValues = function(space) {\n   var vals = this.convs[space];\n   if (!vals) {\n      var fspace = this.space,\n          from = this.convs[fspace];\n      vals = convert[fspace][space](from);\n\n      this.convs[space] = vals;\n   }\n  return vals;\n};\n\n[\"rgb\", \"hsl\", \"hsv\", \"cmyk\", \"keyword\"].forEach(function(space) {\n   Converter.prototype[space] = function(vals) {\n      return this.routeSpace(space, arguments);\n   }\n});\n\nmodule.exports = convert;\n},{\"4\":4}],6:[function(require,module,exports){\n'use strict'\n\nmodule.exports = {\n\t\"aliceblue\": [240, 248, 255],\n\t\"antiquewhite\": [250, 235, 215],\n\t\"aqua\": [0, 255, 255],\n\t\"aquamarine\": [127, 255, 212],\n\t\"azure\": [240, 255, 255],\n\t\"beige\": [245, 245, 220],\n\t\"bisque\": [255, 228, 196],\n\t\"black\": [0, 0, 0],\n\t\"blanchedalmond\": [255, 235, 205],\n\t\"blue\": [0, 0, 255],\n\t\"blueviolet\": [138, 43, 226],\n\t\"brown\": [165, 42, 42],\n\t\"burlywood\": [222, 184, 135],\n\t\"cadetblue\": [95, 158, 160],\n\t\"chartreuse\": [127, 255, 0],\n\t\"chocolate\": [210, 105, 30],\n\t\"coral\": [255, 127, 80],\n\t\"cornflowerblue\": [100, 149, 237],\n\t\"cornsilk\": [255, 248, 220],\n\t\"crimson\": [220, 20, 60],\n\t\"cyan\": [0, 255, 255],\n\t\"darkblue\": [0, 0, 139],\n\t\"darkcyan\": [0, 139, 139],\n\t\"darkgoldenrod\": [184, 134, 11],\n\t\"darkgray\": [169, 169, 169],\n\t\"darkgreen\": [0, 100, 0],\n\t\"darkgrey\": [169, 169, 169],\n\t\"darkkhaki\": [189, 183, 107],\n\t\"darkmagenta\": [139, 0, 139],\n\t\"darkolivegreen\": [85, 107, 47],\n\t\"darkorange\": [255, 140, 0],\n\t\"darkorchid\": [153, 50, 204],\n\t\"darkred\": [139, 0, 0],\n\t\"darksalmon\": [233, 150, 122],\n\t\"darkseagreen\": [143, 188, 143],\n\t\"darkslateblue\": [72, 61, 139],\n\t\"darkslategray\": [47, 79, 79],\n\t\"darkslategrey\": [47, 79, 79],\n\t\"darkturquoise\": [0, 206, 209],\n\t\"darkviolet\": [148, 0, 211],\n\t\"deeppink\": [255, 20, 147],\n\t\"deepskyblue\": [0, 191, 255],\n\t\"dimgray\": [105, 105, 105],\n\t\"dimgrey\": [105, 105, 105],\n\t\"dodgerblue\": [30, 144, 255],\n\t\"firebrick\": [178, 34, 34],\n\t\"floralwhite\": [255, 250, 240],\n\t\"forestgreen\": [34, 139, 34],\n\t\"fuchsia\": [255, 0, 255],\n\t\"gainsboro\": [220, 220, 220],\n\t\"ghostwhite\": [248, 248, 255],\n\t\"gold\": [255, 215, 0],\n\t\"goldenrod\": [218, 165, 32],\n\t\"gray\": [128, 128, 128],\n\t\"green\": [0, 128, 0],\n\t\"greenyellow\": [173, 255, 47],\n\t\"grey\": [128, 128, 128],\n\t\"honeydew\": [240, 255, 240],\n\t\"hotpink\": [255, 105, 180],\n\t\"indianred\": [205, 92, 92],\n\t\"indigo\": [75, 0, 130],\n\t\"ivory\": [255, 255, 240],\n\t\"khaki\": [240, 230, 140],\n\t\"lavender\": [230, 230, 250],\n\t\"lavenderblush\": [255, 240, 245],\n\t\"lawngreen\": [124, 252, 0],\n\t\"lemonchiffon\": [255, 250, 205],\n\t\"lightblue\": [173, 216, 230],\n\t\"lightcoral\": [240, 128, 128],\n\t\"lightcyan\": [224, 255, 255],\n\t\"lightgoldenrodyellow\": [250, 250, 210],\n\t\"lightgray\": [211, 211, 211],\n\t\"lightgreen\": [144, 238, 144],\n\t\"lightgrey\": [211, 211, 211],\n\t\"lightpink\": [255, 182, 193],\n\t\"lightsalmon\": [255, 160, 122],\n\t\"lightseagreen\": [32, 178, 170],\n\t\"lightskyblue\": [135, 206, 250],\n\t\"lightslategray\": [119, 136, 153],\n\t\"lightslategrey\": [119, 136, 153],\n\t\"lightsteelblue\": [176, 196, 222],\n\t\"lightyellow\": [255, 255, 224],\n\t\"lime\": [0, 255, 0],\n\t\"limegreen\": [50, 205, 50],\n\t\"linen\": [250, 240, 230],\n\t\"magenta\": [255, 0, 255],\n\t\"maroon\": [128, 0, 0],\n\t\"mediumaquamarine\": [102, 205, 170],\n\t\"mediumblue\": [0, 0, 205],\n\t\"mediumorchid\": [186, 85, 211],\n\t\"mediumpurple\": [147, 112, 219],\n\t\"mediumseagreen\": [60, 179, 113],\n\t\"mediumslateblue\": [123, 104, 238],\n\t\"mediumspringgreen\": [0, 250, 154],\n\t\"mediumturquoise\": [72, 209, 204],\n\t\"mediumvioletred\": [199, 21, 133],\n\t\"midnightblue\": [25, 25, 112],\n\t\"mintcream\": [245, 255, 250],\n\t\"mistyrose\": [255, 228, 225],\n\t\"moccasin\": [255, 228, 181],\n\t\"navajowhite\": [255, 222, 173],\n\t\"navy\": [0, 0, 128],\n\t\"oldlace\": [253, 245, 230],\n\t\"olive\": [128, 128, 0],\n\t\"olivedrab\": [107, 142, 35],\n\t\"orange\": [255, 165, 0],\n\t\"orangered\": [255, 69, 0],\n\t\"orchid\": [218, 112, 214],\n\t\"palegoldenrod\": [238, 232, 170],\n\t\"palegreen\": [152, 251, 152],\n\t\"paleturquoise\": [175, 238, 238],\n\t\"palevioletred\": [219, 112, 147],\n\t\"papayawhip\": [255, 239, 213],\n\t\"peachpuff\": [255, 218, 185],\n\t\"peru\": [205, 133, 63],\n\t\"pink\": [255, 192, 203],\n\t\"plum\": [221, 160, 221],\n\t\"powderblue\": [176, 224, 230],\n\t\"purple\": [128, 0, 128],\n\t\"rebeccapurple\": [102, 51, 153],\n\t\"red\": [255, 0, 0],\n\t\"rosybrown\": [188, 143, 143],\n\t\"royalblue\": [65, 105, 225],\n\t\"saddlebrown\": [139, 69, 19],\n\t\"salmon\": [250, 128, 114],\n\t\"sandybrown\": [244, 164, 96],\n\t\"seagreen\": [46, 139, 87],\n\t\"seashell\": [255, 245, 238],\n\t\"sienna\": [160, 82, 45],\n\t\"silver\": [192, 192, 192],\n\t\"skyblue\": [135, 206, 235],\n\t\"slateblue\": [106, 90, 205],\n\t\"slategray\": [112, 128, 144],\n\t\"slategrey\": [112, 128, 144],\n\t\"snow\": [255, 250, 250],\n\t\"springgreen\": [0, 255, 127],\n\t\"steelblue\": [70, 130, 180],\n\t\"tan\": [210, 180, 140],\n\t\"teal\": [0, 128, 128],\n\t\"thistle\": [216, 191, 216],\n\t\"tomato\": [255, 99, 71],\n\t\"turquoise\": [64, 224, 208],\n\t\"violet\": [238, 130, 238],\n\t\"wheat\": [245, 222, 179],\n\t\"white\": [255, 255, 255],\n\t\"whitesmoke\": [245, 245, 245],\n\t\"yellow\": [255, 255, 0],\n\t\"yellowgreen\": [154, 205, 50]\n};\n\n},{}],7:[function(require,module,exports){\n/**\n * @namespace Chart\n */\nvar Chart = require(30)();\n\nChart.helpers = require(46);\n\n// @todo dispatch these helpers into appropriated helpers/helpers.* file and write unit tests!\nrequire(28)(Chart);\n\nChart.Animation = require(22);\nChart.animationService = require(23);\nChart.defaults = require(26);\nChart.Element = require(27);\nChart.elements = require(41);\nChart.Interaction = require(29);\nChart.layouts = require(31);\nChart.platform = require(49);\nChart.plugins = require(32);\nChart.Scale = require(33);\nChart.scaleService = require(34);\nChart.Ticks = require(35);\nChart.Tooltip = require(36);\n\nrequire(24)(Chart);\nrequire(25)(Chart);\n\nrequire(56)(Chart);\nrequire(54)(Chart);\nrequire(55)(Chart);\nrequire(57)(Chart);\nrequire(58)(Chart);\nrequire(59)(Chart);\n\n// Controllers must be loaded after elements\n// See Chart.core.datasetController.dataElementType\nrequire(15)(Chart);\nrequire(16)(Chart);\nrequire(17)(Chart);\nrequire(18)(Chart);\nrequire(19)(Chart);\nrequire(20)(Chart);\nrequire(21)(Chart);\n\nrequire(8)(Chart);\nrequire(9)(Chart);\nrequire(10)(Chart);\nrequire(11)(Chart);\nrequire(12)(Chart);\nrequire(13)(Chart);\nrequire(14)(Chart);\n\n// Loading built-in plugins\nvar plugins = require(50);\nfor (var k in plugins) {\n\tif (plugins.hasOwnProperty(k)) {\n\t\tChart.plugins.register(plugins[k]);\n\t}\n}\n\nChart.platform.initialize();\n\nmodule.exports = Chart;\nif (typeof window !== 'undefined') {\n\twindow.Chart = Chart;\n}\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, not available anymore\n * @namespace Chart.Legend\n * @deprecated since version 2.1.5\n * @todo remove at version 3\n * @private\n */\nChart.Legend = plugins.legend._element;\n\n/**\n * Provided for backward compatibility, not available anymore\n * @namespace Chart.Title\n * @deprecated since version 2.1.5\n * @todo remove at version 3\n * @private\n */\nChart.Title = plugins.title._element;\n\n/**\n * Provided for backward compatibility, use Chart.plugins instead\n * @namespace Chart.pluginService\n * @deprecated since version 2.1.5\n * @todo remove at version 3\n * @private\n */\nChart.pluginService = Chart.plugins;\n\n/**\n * Provided for backward compatibility, inheriting from Chart.PlugingBase has no\n * effect, instead simply create/register plugins via plain JavaScript objects.\n * @interface Chart.PluginBase\n * @deprecated since version 2.5.0\n * @todo remove at version 3\n * @private\n */\nChart.PluginBase = Chart.Element.extend({});\n\n/**\n * Provided for backward compatibility, use Chart.helpers.canvas instead.\n * @namespace Chart.canvasHelpers\n * @deprecated since version 2.6.0\n * @todo remove at version 3\n * @private\n */\nChart.canvasHelpers = Chart.helpers.canvas;\n\n/**\n * Provided for backward compatibility, use Chart.layouts instead.\n * @namespace Chart.layoutService\n * @deprecated since version 2.8.0\n * @todo remove at version 3\n * @private\n */\nChart.layoutService = Chart.layouts;\n\n},{\"10\":10,\"11\":11,\"12\":12,\"13\":13,\"14\":14,\"15\":15,\"16\":16,\"17\":17,\"18\":18,\"19\":19,\"20\":20,\"21\":21,\"22\":22,\"23\":23,\"24\":24,\"25\":25,\"26\":26,\"27\":27,\"28\":28,\"29\":29,\"30\":30,\"31\":31,\"32\":32,\"33\":33,\"34\":34,\"35\":35,\"36\":36,\"41\":41,\"46\":46,\"49\":49,\"50\":50,\"54\":54,\"55\":55,\"56\":56,\"57\":57,\"58\":58,\"59\":59,\"8\":8,\"9\":9}],8:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Bar = function(context, config) {\n\t\tconfig.type = 'bar';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],9:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Bubble = function(context, config) {\n\t\tconfig.type = 'bubble';\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],10:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Doughnut = function(context, config) {\n\t\tconfig.type = 'doughnut';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],11:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Line = function(context, config) {\n\t\tconfig.type = 'line';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],12:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.PolarArea = function(context, config) {\n\t\tconfig.type = 'polarArea';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],13:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tChart.Radar = function(context, config) {\n\t\tconfig.type = 'radar';\n\n\t\treturn new Chart(context, config);\n\t};\n\n};\n\n},{}],14:[function(require,module,exports){\n'use strict';\n\nmodule.exports = function(Chart) {\n\tChart.Scatter = function(context, config) {\n\t\tconfig.type = 'scatter';\n\t\treturn new Chart(context, config);\n\t};\n};\n\n},{}],15:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('bar', {\n\thover: {\n\t\tmode: 'label'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\ttype: 'category',\n\n\t\t\t// Specific to Bar Controller\n\t\t\tcategoryPercentage: 0.8,\n\t\t\tbarPercentage: 0.9,\n\n\t\t\t// offset settings\n\t\t\toffset: true,\n\n\t\t\t// grid line settings\n\t\t\tgridLines: {\n\t\t\t\toffsetGridLines: true\n\t\t\t}\n\t\t}],\n\n\t\tyAxes: [{\n\t\t\ttype: 'linear'\n\t\t}]\n\t}\n});\n\ndefaults._set('horizontalBar', {\n\thover: {\n\t\tmode: 'index',\n\t\taxis: 'y'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\ttype: 'linear',\n\t\t\tposition: 'bottom'\n\t\t}],\n\n\t\tyAxes: [{\n\t\t\tposition: 'left',\n\t\t\ttype: 'category',\n\n\t\t\t// Specific to Horizontal Bar Controller\n\t\t\tcategoryPercentage: 0.8,\n\t\t\tbarPercentage: 0.9,\n\n\t\t\t// offset settings\n\t\t\toffset: true,\n\n\t\t\t// grid line settings\n\t\t\tgridLines: {\n\t\t\t\toffsetGridLines: true\n\t\t\t}\n\t\t}]\n\t},\n\n\telements: {\n\t\trectangle: {\n\t\t\tborderSkipped: 'left'\n\t\t}\n\t},\n\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function(item, data) {\n\t\t\t\t// Pick first xLabel for now\n\t\t\t\tvar title = '';\n\n\t\t\t\tif (item.length > 0) {\n\t\t\t\t\tif (item[0].yLabel) {\n\t\t\t\t\t\ttitle = item[0].yLabel;\n\t\t\t\t\t} else if (data.labels.length > 0 && item[0].index < data.labels.length) {\n\t\t\t\t\t\ttitle = data.labels[item[0].index];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn title;\n\t\t\t},\n\n\t\t\tlabel: function(item, data) {\n\t\t\t\tvar datasetLabel = data.datasets[item.datasetIndex].label || '';\n\t\t\t\treturn datasetLabel + ': ' + item.xLabel;\n\t\t\t}\n\t\t},\n\t\tmode: 'index',\n\t\taxis: 'y'\n\t}\n});\n\n/**\n * Computes the \"optimal\" sample size to maintain bars equally sized while preventing overlap.\n * @private\n */\nfunction computeMinSampleSize(scale, pixels) {\n\tvar min = scale.isHorizontal() ? scale.width : scale.height;\n\tvar ticks = scale.getTicks();\n\tvar prev, curr, i, ilen;\n\n\tfor (i = 1, ilen = pixels.length; i < ilen; ++i) {\n\t\tmin = Math.min(min, pixels[i] - pixels[i - 1]);\n\t}\n\n\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\n\t\tcurr = scale.getPixelForTick(i);\n\t\tmin = i > 0 ? Math.min(min, curr - prev) : min;\n\t\tprev = curr;\n\t}\n\n\treturn min;\n}\n\n/**\n * Computes an \"ideal\" category based on the absolute bar thickness or, if undefined or null,\n * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This\n * mode currently always generates bars equally sized (until we introduce scriptable options?).\n * @private\n */\nfunction computeFitCategoryTraits(index, ruler, options) {\n\tvar thickness = options.barThickness;\n\tvar count = ruler.stackCount;\n\tvar curr = ruler.pixels[index];\n\tvar size, ratio;\n\n\tif (helpers.isNullOrUndef(thickness)) {\n\t\tsize = ruler.min * options.categoryPercentage;\n\t\tratio = options.barPercentage;\n\t} else {\n\t\t// When bar thickness is enforced, category and bar percentages are ignored.\n\t\t// Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')\n\t\t// and deprecate barPercentage since this value is ignored when thickness is absolute.\n\t\tsize = thickness * count;\n\t\tratio = 1;\n\t}\n\n\treturn {\n\t\tchunk: size / count,\n\t\tratio: ratio,\n\t\tstart: curr - (size / 2)\n\t};\n}\n\n/**\n * Computes an \"optimal\" category that globally arranges bars side by side (no gap when\n * percentage options are 1), based on the previous and following categories. This mode\n * generates bars with different widths when data are not evenly spaced.\n * @private\n */\nfunction computeFlexCategoryTraits(index, ruler, options) {\n\tvar pixels = ruler.pixels;\n\tvar curr = pixels[index];\n\tvar prev = index > 0 ? pixels[index - 1] : null;\n\tvar next = index < pixels.length - 1 ? pixels[index + 1] : null;\n\tvar percent = options.categoryPercentage;\n\tvar start, size;\n\n\tif (prev === null) {\n\t\t// first data: its size is double based on the next point or,\n\t\t// if it's also the last data, we use the scale end extremity.\n\t\tprev = curr - (next === null ? ruler.end - curr : next - curr);\n\t}\n\n\tif (next === null) {\n\t\t// last data: its size is also double based on the previous point.\n\t\tnext = curr + curr - prev;\n\t}\n\n\tstart = curr - ((curr - prev) / 2) * percent;\n\tsize = ((next - prev) / 2) * percent;\n\n\treturn {\n\t\tchunk: size / ruler.stackCount,\n\t\tratio: options.barPercentage,\n\t\tstart: start\n\t};\n}\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.bar = Chart.DatasetController.extend({\n\n\t\tdataElementType: elements.Rectangle,\n\n\t\tinitialize: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta;\n\n\t\t\tChart.DatasetController.prototype.initialize.apply(me, arguments);\n\n\t\t\tmeta = me.getMeta();\n\t\t\tmeta.stack = me.getDataset().stack;\n\t\t\tmeta.bar = true;\n\t\t},\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar rects = me.getMeta().data;\n\t\t\tvar i, ilen;\n\n\t\t\tme._ruler = me.getRuler();\n\n\t\t\tfor (i = 0, ilen = rects.length; i < ilen; ++i) {\n\t\t\t\tme.updateElement(rects[i], i, reset);\n\t\t\t}\n\t\t},\n\n\t\tupdateElement: function(rectangle, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar custom = rectangle.custom || {};\n\t\t\tvar rectangleOptions = chart.options.elements.rectangle;\n\n\t\t\trectangle._xScale = me.getScaleForId(meta.xAxisID);\n\t\t\trectangle._yScale = me.getScaleForId(meta.yAxisID);\n\t\t\trectangle._datasetIndex = me.index;\n\t\t\trectangle._index = index;\n\n\t\t\trectangle._model = {\n\t\t\t\tdatasetLabel: dataset.label,\n\t\t\t\tlabel: chart.data.labels[index],\n\t\t\t\tborderSkipped: custom.borderSkipped ? custom.borderSkipped : rectangleOptions.borderSkipped,\n\t\t\t\tbackgroundColor: custom.backgroundColor ? custom.backgroundColor : helpers.valueAtIndexOrDefault(dataset.backgroundColor, index, rectangleOptions.backgroundColor),\n\t\t\t\tborderColor: custom.borderColor ? custom.borderColor : helpers.valueAtIndexOrDefault(dataset.borderColor, index, rectangleOptions.borderColor),\n\t\t\t\tborderWidth: custom.borderWidth ? custom.borderWidth : helpers.valueAtIndexOrDefault(dataset.borderWidth, index, rectangleOptions.borderWidth)\n\t\t\t};\n\n\t\t\tme.updateElementGeometry(rectangle, index, reset);\n\n\t\t\trectangle.pivot();\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tupdateElementGeometry: function(rectangle, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar model = rectangle._model;\n\t\t\tvar vscale = me.getValueScale();\n\t\t\tvar base = vscale.getBasePixel();\n\t\t\tvar horizontal = vscale.isHorizontal();\n\t\t\tvar ruler = me._ruler || me.getRuler();\n\t\t\tvar vpixels = me.calculateBarValuePixels(me.index, index);\n\t\t\tvar ipixels = me.calculateBarIndexPixels(me.index, index, ruler);\n\n\t\t\tmodel.horizontal = horizontal;\n\t\t\tmodel.base = reset ? base : vpixels.base;\n\t\t\tmodel.x = horizontal ? reset ? base : vpixels.head : ipixels.center;\n\t\t\tmodel.y = horizontal ? ipixels.center : reset ? base : vpixels.head;\n\t\t\tmodel.height = horizontal ? ipixels.size : undefined;\n\t\t\tmodel.width = horizontal ? undefined : ipixels.size;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetValueScaleId: function() {\n\t\t\treturn this.getMeta().yAxisID;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetIndexScaleId: function() {\n\t\t\treturn this.getMeta().xAxisID;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetValueScale: function() {\n\t\t\treturn this.getScaleForId(this.getValueScaleId());\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetIndexScale: function() {\n\t\t\treturn this.getScaleForId(this.getIndexScaleId());\n\t\t},\n\n\t\t/**\n\t\t * Returns the stacks based on groups and bar visibility.\n\t\t * @param {Number} [last] - The dataset index\n\t\t * @returns {Array} The stack list\n\t\t * @private\n\t\t */\n\t\t_getStacks: function(last) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar scale = me.getIndexScale();\n\t\t\tvar stacked = scale.options.stacked;\n\t\t\tvar ilen = last === undefined ? chart.data.datasets.length : last + 1;\n\t\t\tvar stacks = [];\n\t\t\tvar i, meta;\n\n\t\t\tfor (i = 0; i < ilen; ++i) {\n\t\t\t\tmeta = chart.getDatasetMeta(i);\n\t\t\t\tif (meta.bar && chart.isDatasetVisible(i) &&\n\t\t\t\t\t(stacked === false ||\n\t\t\t\t\t(stacked === true && stacks.indexOf(meta.stack) === -1) ||\n\t\t\t\t\t(stacked === undefined && (meta.stack === undefined || stacks.indexOf(meta.stack) === -1)))) {\n\t\t\t\t\tstacks.push(meta.stack);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn stacks;\n\t\t},\n\n\t\t/**\n\t\t * Returns the effective number of stacks based on groups and bar visibility.\n\t\t * @private\n\t\t */\n\t\tgetStackCount: function() {\n\t\t\treturn this._getStacks().length;\n\t\t},\n\n\t\t/**\n\t\t * Returns the stack index for the given dataset based on groups and bar visibility.\n\t\t * @param {Number} [datasetIndex] - The dataset index\n\t\t * @param {String} [name] - The stack name to find\n\t\t * @returns {Number} The stack index\n\t\t * @private\n\t\t */\n\t\tgetStackIndex: function(datasetIndex, name) {\n\t\t\tvar stacks = this._getStacks(datasetIndex);\n\t\t\tvar index = (name !== undefined)\n\t\t\t\t? stacks.indexOf(name)\n\t\t\t\t: -1; // indexOf returns -1 if element is not present\n\n\t\t\treturn (index === -1)\n\t\t\t\t? stacks.length - 1\n\t\t\t\t: index;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetRuler: function() {\n\t\t\tvar me = this;\n\t\t\tvar scale = me.getIndexScale();\n\t\t\tvar stackCount = me.getStackCount();\n\t\t\tvar datasetIndex = me.index;\n\t\t\tvar isHorizontal = scale.isHorizontal();\n\t\t\tvar start = isHorizontal ? scale.left : scale.top;\n\t\t\tvar end = start + (isHorizontal ? scale.width : scale.height);\n\t\t\tvar pixels = [];\n\t\t\tvar i, ilen, min;\n\n\t\t\tfor (i = 0, ilen = me.getMeta().data.length; i < ilen; ++i) {\n\t\t\t\tpixels.push(scale.getPixelForValue(null, i, datasetIndex));\n\t\t\t}\n\n\t\t\tmin = helpers.isNullOrUndef(scale.options.barThickness)\n\t\t\t\t? computeMinSampleSize(scale, pixels)\n\t\t\t\t: -1;\n\n\t\t\treturn {\n\t\t\t\tmin: min,\n\t\t\t\tpixels: pixels,\n\t\t\t\tstart: start,\n\t\t\t\tend: end,\n\t\t\t\tstackCount: stackCount,\n\t\t\t\tscale: scale\n\t\t\t};\n\t\t},\n\n\t\t/**\n\t\t * Note: pixel values are not clamped to the scale area.\n\t\t * @private\n\t\t */\n\t\tcalculateBarValuePixels: function(datasetIndex, index) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar scale = me.getValueScale();\n\t\t\tvar datasets = chart.data.datasets;\n\t\t\tvar value = scale.getRightValue(datasets[datasetIndex].data[index]);\n\t\t\tvar stacked = scale.options.stacked;\n\t\t\tvar stack = meta.stack;\n\t\t\tvar start = 0;\n\t\t\tvar i, imeta, ivalue, base, head, size;\n\n\t\t\tif (stacked || (stacked === undefined && stack !== undefined)) {\n\t\t\t\tfor (i = 0; i < datasetIndex; ++i) {\n\t\t\t\t\timeta = chart.getDatasetMeta(i);\n\n\t\t\t\t\tif (imeta.bar &&\n\t\t\t\t\t\timeta.stack === stack &&\n\t\t\t\t\t\timeta.controller.getValueScaleId() === scale.id &&\n\t\t\t\t\t\tchart.isDatasetVisible(i)) {\n\n\t\t\t\t\t\tivalue = scale.getRightValue(datasets[i].data[index]);\n\t\t\t\t\t\tif ((value < 0 && ivalue < 0) || (value >= 0 && ivalue > 0)) {\n\t\t\t\t\t\t\tstart += ivalue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbase = scale.getPixelForValue(start);\n\t\t\thead = scale.getPixelForValue(start + value);\n\t\t\tsize = (head - base) / 2;\n\n\t\t\treturn {\n\t\t\t\tsize: size,\n\t\t\t\tbase: base,\n\t\t\t\thead: head,\n\t\t\t\tcenter: head + size / 2\n\t\t\t};\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tcalculateBarIndexPixels: function(datasetIndex, index, ruler) {\n\t\t\tvar me = this;\n\t\t\tvar options = ruler.scale.options;\n\t\t\tvar range = options.barThickness === 'flex'\n\t\t\t\t? computeFlexCategoryTraits(index, ruler, options)\n\t\t\t\t: computeFitCategoryTraits(index, ruler, options);\n\n\t\t\tvar stackIndex = me.getStackIndex(datasetIndex, me.getMeta().stack);\n\t\t\tvar center = range.start + (range.chunk * stackIndex) + (range.chunk / 2);\n\t\t\tvar size = Math.min(\n\t\t\t\thelpers.valueOrDefault(options.maxBarThickness, Infinity),\n\t\t\t\trange.chunk * range.ratio);\n\n\t\t\treturn {\n\t\t\t\tbase: center - size / 2,\n\t\t\t\thead: center + size / 2,\n\t\t\t\tcenter: center,\n\t\t\t\tsize: size\n\t\t\t};\n\t\t},\n\n\t\tdraw: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar scale = me.getValueScale();\n\t\t\tvar rects = me.getMeta().data;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar ilen = rects.length;\n\t\t\tvar i = 0;\n\n\t\t\thelpers.canvas.clipArea(chart.ctx, chart.chartArea);\n\n\t\t\tfor (; i < ilen; ++i) {\n\t\t\t\tif (!isNaN(scale.getRightValue(dataset.data[i]))) {\n\t\t\t\t\trects[i].draw();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\thelpers.canvas.unclipArea(chart.ctx);\n\t\t},\n\t});\n\n\tChart.controllers.horizontalBar = Chart.controllers.bar.extend({\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetValueScaleId: function() {\n\t\t\treturn this.getMeta().xAxisID;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetIndexScaleId: function() {\n\t\t\treturn this.getMeta().yAxisID;\n\t\t}\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],16:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('bubble', {\n\thover: {\n\t\tmode: 'single'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\ttype: 'linear', // bubble should probably use a linear scale by default\n\t\t\tposition: 'bottom',\n\t\t\tid: 'x-axis-0' // need an ID so datasets can reference the scale\n\t\t}],\n\t\tyAxes: [{\n\t\t\ttype: 'linear',\n\t\t\tposition: 'left',\n\t\t\tid: 'y-axis-0'\n\t\t}]\n\t},\n\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function() {\n\t\t\t\t// Title doesn't make sense for scatter since we format the data as a point\n\t\t\t\treturn '';\n\t\t\t},\n\t\t\tlabel: function(item, data) {\n\t\t\t\tvar datasetLabel = data.datasets[item.datasetIndex].label || '';\n\t\t\t\tvar dataPoint = data.datasets[item.datasetIndex].data[item.index];\n\t\t\t\treturn datasetLabel + ': (' + item.xLabel + ', ' + item.yLabel + ', ' + dataPoint.r + ')';\n\t\t\t}\n\t\t}\n\t}\n});\n\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.bubble = Chart.DatasetController.extend({\n\t\t/**\n\t\t * @protected\n\t\t */\n\t\tdataElementType: elements.Point,\n\n\t\t/**\n\t\t * @protected\n\t\t */\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar points = meta.data;\n\n\t\t\t// Update Points\n\t\t\thelpers.each(points, function(point, index) {\n\t\t\t\tme.updateElement(point, index, reset);\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * @protected\n\t\t */\n\t\tupdateElement: function(point, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar xScale = me.getScaleForId(meta.xAxisID);\n\t\t\tvar yScale = me.getScaleForId(meta.yAxisID);\n\t\t\tvar options = me._resolveElementOptions(point, index);\n\t\t\tvar data = me.getDataset().data[index];\n\t\t\tvar dsIndex = me.index;\n\n\t\t\tvar x = reset ? xScale.getPixelForDecimal(0.5) : xScale.getPixelForValue(typeof data === 'object' ? data : NaN, index, dsIndex);\n\t\t\tvar y = reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex);\n\n\t\t\tpoint._xScale = xScale;\n\t\t\tpoint._yScale = yScale;\n\t\t\tpoint._options = options;\n\t\t\tpoint._datasetIndex = dsIndex;\n\t\t\tpoint._index = index;\n\t\t\tpoint._model = {\n\t\t\t\tbackgroundColor: options.backgroundColor,\n\t\t\t\tborderColor: options.borderColor,\n\t\t\t\tborderWidth: options.borderWidth,\n\t\t\t\thitRadius: options.hitRadius,\n\t\t\t\tpointStyle: options.pointStyle,\n\t\t\t\trotation: options.rotation,\n\t\t\t\tradius: reset ? 0 : options.radius,\n\t\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\n\t\t\t\tx: x,\n\t\t\t\ty: y,\n\t\t\t};\n\n\t\t\tpoint.pivot();\n\t\t},\n\n\t\t/**\n\t\t * @protected\n\t\t */\n\t\tsetHoverStyle: function(point) {\n\t\t\tvar model = point._model;\n\t\t\tvar options = point._options;\n\t\t\tpoint.$previousStyle = {\n\t\t\t\tbackgroundColor: model.backgroundColor,\n\t\t\t\tborderColor: model.borderColor,\n\t\t\t\tborderWidth: model.borderWidth,\n\t\t\t\tradius: model.radius\n\t\t\t};\n\t\t\tmodel.backgroundColor = helpers.valueOrDefault(options.hoverBackgroundColor, helpers.getHoverColor(options.backgroundColor));\n\t\t\tmodel.borderColor = helpers.valueOrDefault(options.hoverBorderColor, helpers.getHoverColor(options.borderColor));\n\t\t\tmodel.borderWidth = helpers.valueOrDefault(options.hoverBorderWidth, options.borderWidth);\n\t\t\tmodel.radius = options.radius + options.hoverRadius;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\t_resolveElementOptions: function(point, index) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar datasets = chart.data.datasets;\n\t\t\tvar dataset = datasets[me.index];\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar options = chart.options.elements.point;\n\t\t\tvar resolve = helpers.options.resolve;\n\t\t\tvar data = dataset.data[index];\n\t\t\tvar values = {};\n\t\t\tvar i, ilen, key;\n\n\t\t\t// Scriptable options\n\t\t\tvar context = {\n\t\t\t\tchart: chart,\n\t\t\t\tdataIndex: index,\n\t\t\t\tdataset: dataset,\n\t\t\t\tdatasetIndex: me.index\n\t\t\t};\n\n\t\t\tvar keys = [\n\t\t\t\t'backgroundColor',\n\t\t\t\t'borderColor',\n\t\t\t\t'borderWidth',\n\t\t\t\t'hoverBackgroundColor',\n\t\t\t\t'hoverBorderColor',\n\t\t\t\t'hoverBorderWidth',\n\t\t\t\t'hoverRadius',\n\t\t\t\t'hitRadius',\n\t\t\t\t'pointStyle',\n\t\t\t\t'rotation'\n\t\t\t];\n\n\t\t\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\n\t\t\t\tkey = keys[i];\n\t\t\t\tvalues[key] = resolve([\n\t\t\t\t\tcustom[key],\n\t\t\t\t\tdataset[key],\n\t\t\t\t\toptions[key]\n\t\t\t\t], context, index);\n\t\t\t}\n\n\t\t\t// Custom radius resolution\n\t\t\tvalues.radius = resolve([\n\t\t\t\tcustom.radius,\n\t\t\t\tdata ? data.r : undefined,\n\t\t\t\tdataset.radius,\n\t\t\t\toptions.radius\n\t\t\t], context, index);\n\t\t\treturn values;\n\t\t}\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],17:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('doughnut', {\n\tanimation: {\n\t\t// Boolean - Whether we animate the rotation of the Doughnut\n\t\tanimateRotate: true,\n\t\t// Boolean - Whether we animate scaling the Doughnut from the centre\n\t\tanimateScale: false\n\t},\n\thover: {\n\t\tmode: 'single'\n\t},\n\tlegendCallback: function(chart) {\n\t\tvar text = [];\n\t\ttext.push('<ul class=\"' + chart.id + '-legend\">');\n\n\t\tvar data = chart.data;\n\t\tvar datasets = data.datasets;\n\t\tvar labels = data.labels;\n\n\t\tif (datasets.length) {\n\t\t\tfor (var i = 0; i < datasets[0].data.length; ++i) {\n\t\t\t\ttext.push('<li><span style=\"background-color:' + datasets[0].backgroundColor[i] + '\"></span>');\n\t\t\t\tif (labels[i]) {\n\t\t\t\t\ttext.push(labels[i]);\n\t\t\t\t}\n\t\t\t\ttext.push('</li>');\n\t\t\t}\n\t\t}\n\n\t\ttext.push('</ul>');\n\t\treturn text.join('');\n\t},\n\tlegend: {\n\t\tlabels: {\n\t\t\tgenerateLabels: function(chart) {\n\t\t\t\tvar data = chart.data;\n\t\t\t\tif (data.labels.length && data.datasets.length) {\n\t\t\t\t\treturn data.labels.map(function(label, i) {\n\t\t\t\t\t\tvar meta = chart.getDatasetMeta(0);\n\t\t\t\t\t\tvar ds = data.datasets[0];\n\t\t\t\t\t\tvar arc = meta.data[i];\n\t\t\t\t\t\tvar custom = arc && arc.custom || {};\n\t\t\t\t\t\tvar valueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\t\t\t\tvar arcOpts = chart.options.elements.arc;\n\t\t\t\t\t\tvar fill = custom.backgroundColor ? custom.backgroundColor : valueAtIndexOrDefault(ds.backgroundColor, i, arcOpts.backgroundColor);\n\t\t\t\t\t\tvar stroke = custom.borderColor ? custom.borderColor : valueAtIndexOrDefault(ds.borderColor, i, arcOpts.borderColor);\n\t\t\t\t\t\tvar bw = custom.borderWidth ? custom.borderWidth : valueAtIndexOrDefault(ds.borderWidth, i, arcOpts.borderWidth);\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\ttext: label,\n\t\t\t\t\t\t\tfillStyle: fill,\n\t\t\t\t\t\t\tstrokeStyle: stroke,\n\t\t\t\t\t\t\tlineWidth: bw,\n\t\t\t\t\t\t\thidden: isNaN(ds.data[i]) || meta.data[i].hidden,\n\n\t\t\t\t\t\t\t// Extra data used for toggling the correct item\n\t\t\t\t\t\t\tindex: i\n\t\t\t\t\t\t};\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn [];\n\t\t\t}\n\t\t},\n\n\t\tonClick: function(e, legendItem) {\n\t\t\tvar index = legendItem.index;\n\t\t\tvar chart = this.chart;\n\t\t\tvar i, ilen, meta;\n\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n\t\t\t\tmeta = chart.getDatasetMeta(i);\n\t\t\t\t// toggle visibility of index if exists\n\t\t\t\tif (meta.data[index]) {\n\t\t\t\t\tmeta.data[index].hidden = !meta.data[index].hidden;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tchart.update();\n\t\t}\n\t},\n\n\t// The percentage of the chart that we cut out of the middle.\n\tcutoutPercentage: 50,\n\n\t// The rotation of the chart, where the first data arc begins.\n\trotation: Math.PI * -0.5,\n\n\t// The total circumference of the chart.\n\tcircumference: Math.PI * 2.0,\n\n\t// Need to override these to give a nice default\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function() {\n\t\t\t\treturn '';\n\t\t\t},\n\t\t\tlabel: function(tooltipItem, data) {\n\t\t\t\tvar dataLabel = data.labels[tooltipItem.index];\n\t\t\t\tvar value = ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];\n\n\t\t\t\tif (helpers.isArray(dataLabel)) {\n\t\t\t\t\t// show value on first line of multiline label\n\t\t\t\t\t// need to clone because we are changing the value\n\t\t\t\t\tdataLabel = dataLabel.slice();\n\t\t\t\t\tdataLabel[0] += value;\n\t\t\t\t} else {\n\t\t\t\t\tdataLabel += value;\n\t\t\t\t}\n\n\t\t\t\treturn dataLabel;\n\t\t\t}\n\t\t}\n\t}\n});\n\ndefaults._set('pie', helpers.clone(defaults.doughnut));\ndefaults._set('pie', {\n\tcutoutPercentage: 0\n});\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.doughnut = Chart.controllers.pie = Chart.DatasetController.extend({\n\n\t\tdataElementType: elements.Arc,\n\n\t\tlinkScales: helpers.noop,\n\n\t\t// Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly\n\t\tgetRingIndex: function(datasetIndex) {\n\t\t\tvar ringIndex = 0;\n\n\t\t\tfor (var j = 0; j < datasetIndex; ++j) {\n\t\t\t\tif (this.chart.isDatasetVisible(j)) {\n\t\t\t\t\t++ringIndex;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ringIndex;\n\t\t},\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar chartArea = chart.chartArea;\n\t\t\tvar opts = chart.options;\n\t\t\tvar arcOpts = opts.elements.arc;\n\t\t\tvar availableWidth = chartArea.right - chartArea.left - arcOpts.borderWidth;\n\t\t\tvar availableHeight = chartArea.bottom - chartArea.top - arcOpts.borderWidth;\n\t\t\tvar minSize = Math.min(availableWidth, availableHeight);\n\t\t\tvar offset = {x: 0, y: 0};\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar cutoutPercentage = opts.cutoutPercentage;\n\t\t\tvar circumference = opts.circumference;\n\n\t\t\t// If the chart's circumference isn't a full circle, calculate minSize as a ratio of the width/height of the arc\n\t\t\tif (circumference < Math.PI * 2.0) {\n\t\t\t\tvar startAngle = opts.rotation % (Math.PI * 2.0);\n\t\t\t\tstartAngle += Math.PI * 2.0 * (startAngle >= Math.PI ? -1 : startAngle < -Math.PI ? 1 : 0);\n\t\t\t\tvar endAngle = startAngle + circumference;\n\t\t\t\tvar start = {x: Math.cos(startAngle), y: Math.sin(startAngle)};\n\t\t\t\tvar end = {x: Math.cos(endAngle), y: Math.sin(endAngle)};\n\t\t\t\tvar contains0 = (startAngle <= 0 && endAngle >= 0) || (startAngle <= Math.PI * 2.0 && Math.PI * 2.0 <= endAngle);\n\t\t\t\tvar contains90 = (startAngle <= Math.PI * 0.5 && Math.PI * 0.5 <= endAngle) || (startAngle <= Math.PI * 2.5 && Math.PI * 2.5 <= endAngle);\n\t\t\t\tvar contains180 = (startAngle <= -Math.PI && -Math.PI <= endAngle) || (startAngle <= Math.PI && Math.PI <= endAngle);\n\t\t\t\tvar contains270 = (startAngle <= -Math.PI * 0.5 && -Math.PI * 0.5 <= endAngle) || (startAngle <= Math.PI * 1.5 && Math.PI * 1.5 <= endAngle);\n\t\t\t\tvar cutout = cutoutPercentage / 100.0;\n\t\t\t\tvar min = {x: contains180 ? -1 : Math.min(start.x * (start.x < 0 ? 1 : cutout), end.x * (end.x < 0 ? 1 : cutout)), y: contains270 ? -1 : Math.min(start.y * (start.y < 0 ? 1 : cutout), end.y * (end.y < 0 ? 1 : cutout))};\n\t\t\t\tvar max = {x: contains0 ? 1 : Math.max(start.x * (start.x > 0 ? 1 : cutout), end.x * (end.x > 0 ? 1 : cutout)), y: contains90 ? 1 : Math.max(start.y * (start.y > 0 ? 1 : cutout), end.y * (end.y > 0 ? 1 : cutout))};\n\t\t\t\tvar size = {width: (max.x - min.x) * 0.5, height: (max.y - min.y) * 0.5};\n\t\t\t\tminSize = Math.min(availableWidth / size.width, availableHeight / size.height);\n\t\t\t\toffset = {x: (max.x + min.x) * -0.5, y: (max.y + min.y) * -0.5};\n\t\t\t}\n\n\t\t\tchart.borderWidth = me.getMaxBorderWidth(meta.data);\n\t\t\tchart.outerRadius = Math.max((minSize - chart.borderWidth) / 2, 0);\n\t\t\tchart.innerRadius = Math.max(cutoutPercentage ? (chart.outerRadius / 100) * (cutoutPercentage) : 0, 0);\n\t\t\tchart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();\n\t\t\tchart.offsetX = offset.x * chart.outerRadius;\n\t\t\tchart.offsetY = offset.y * chart.outerRadius;\n\n\t\t\tmeta.total = me.calculateTotal();\n\n\t\t\tme.outerRadius = chart.outerRadius - (chart.radiusLength * me.getRingIndex(me.index));\n\t\t\tme.innerRadius = Math.max(me.outerRadius - chart.radiusLength, 0);\n\n\t\t\thelpers.each(meta.data, function(arc, index) {\n\t\t\t\tme.updateElement(arc, index, reset);\n\t\t\t});\n\t\t},\n\n\t\tupdateElement: function(arc, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar chartArea = chart.chartArea;\n\t\t\tvar opts = chart.options;\n\t\t\tvar animationOpts = opts.animation;\n\t\t\tvar centerX = (chartArea.left + chartArea.right) / 2;\n\t\t\tvar centerY = (chartArea.top + chartArea.bottom) / 2;\n\t\t\tvar startAngle = opts.rotation; // non reset case handled later\n\t\t\tvar endAngle = opts.rotation; // non reset case handled later\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar circumference = reset && animationOpts.animateRotate ? 0 : arc.hidden ? 0 : me.calculateCircumference(dataset.data[index]) * (opts.circumference / (2.0 * Math.PI));\n\t\t\tvar innerRadius = reset && animationOpts.animateScale ? 0 : me.innerRadius;\n\t\t\tvar outerRadius = reset && animationOpts.animateScale ? 0 : me.outerRadius;\n\t\t\tvar valueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\n\t\t\thelpers.extend(arc, {\n\t\t\t\t// Utility\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_index: index,\n\n\t\t\t\t// Desired view properties\n\t\t\t\t_model: {\n\t\t\t\t\tx: centerX + chart.offsetX,\n\t\t\t\t\ty: centerY + chart.offsetY,\n\t\t\t\t\tstartAngle: startAngle,\n\t\t\t\t\tendAngle: endAngle,\n\t\t\t\t\tcircumference: circumference,\n\t\t\t\t\touterRadius: outerRadius,\n\t\t\t\t\tinnerRadius: innerRadius,\n\t\t\t\t\tlabel: valueAtIndexOrDefault(dataset.label, index, chart.data.labels[index])\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tvar model = arc._model;\n\n\t\t\t// Resets the visual styles\n\t\t\tvar custom = arc.custom || {};\n\t\t\tvar valueOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\tvar elementOpts = this.chart.options.elements.arc;\n\t\t\tmodel.backgroundColor = custom.backgroundColor ? custom.backgroundColor : valueOrDefault(dataset.backgroundColor, index, elementOpts.backgroundColor);\n\t\t\tmodel.borderColor = custom.borderColor ? custom.borderColor : valueOrDefault(dataset.borderColor, index, elementOpts.borderColor);\n\t\t\tmodel.borderWidth = custom.borderWidth ? custom.borderWidth : valueOrDefault(dataset.borderWidth, index, elementOpts.borderWidth);\n\n\t\t\t// Set correct angles if not resetting\n\t\t\tif (!reset || !animationOpts.animateRotate) {\n\t\t\t\tif (index === 0) {\n\t\t\t\t\tmodel.startAngle = opts.rotation;\n\t\t\t\t} else {\n\t\t\t\t\tmodel.startAngle = me.getMeta().data[index - 1]._model.endAngle;\n\t\t\t\t}\n\n\t\t\t\tmodel.endAngle = model.startAngle + model.circumference;\n\t\t\t}\n\n\t\t\tarc.pivot();\n\t\t},\n\n\t\tcalculateTotal: function() {\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar meta = this.getMeta();\n\t\t\tvar total = 0;\n\t\t\tvar value;\n\n\t\t\thelpers.each(meta.data, function(element, index) {\n\t\t\t\tvalue = dataset.data[index];\n\t\t\t\tif (!isNaN(value) && !element.hidden) {\n\t\t\t\t\ttotal += Math.abs(value);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t/* if (total === 0) {\n\t\t\t\ttotal = NaN;\n\t\t\t}*/\n\n\t\t\treturn total;\n\t\t},\n\n\t\tcalculateCircumference: function(value) {\n\t\t\tvar total = this.getMeta().total;\n\t\t\tif (total > 0 && !isNaN(value)) {\n\t\t\t\treturn (Math.PI * 2.0) * (Math.abs(value) / total);\n\t\t\t}\n\t\t\treturn 0;\n\t\t},\n\n\t\t// gets the max border or hover width to properly scale pie charts\n\t\tgetMaxBorderWidth: function(arcs) {\n\t\t\tvar max = 0;\n\t\t\tvar index = this.index;\n\t\t\tvar length = arcs.length;\n\t\t\tvar borderWidth;\n\t\t\tvar hoverWidth;\n\n\t\t\tfor (var i = 0; i < length; i++) {\n\t\t\t\tborderWidth = arcs[i]._model ? arcs[i]._model.borderWidth : 0;\n\t\t\t\thoverWidth = arcs[i]._chart ? arcs[i]._chart.config.data.datasets[index].hoverBorderWidth : 0;\n\n\t\t\t\tmax = borderWidth > max ? borderWidth : max;\n\t\t\t\tmax = hoverWidth > max ? hoverWidth : max;\n\t\t\t}\n\t\t\treturn max;\n\t\t}\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],18:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('line', {\n\tshowLines: true,\n\tspanGaps: false,\n\n\thover: {\n\t\tmode: 'label'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\ttype: 'category',\n\t\t\tid: 'x-axis-0'\n\t\t}],\n\t\tyAxes: [{\n\t\t\ttype: 'linear',\n\t\t\tid: 'y-axis-0'\n\t\t}]\n\t}\n});\n\nmodule.exports = function(Chart) {\n\n\tfunction lineEnabled(dataset, options) {\n\t\treturn helpers.valueOrDefault(dataset.showLine, options.showLines);\n\t}\n\n\tChart.controllers.line = Chart.DatasetController.extend({\n\n\t\tdatasetElementType: elements.Line,\n\n\t\tdataElementType: elements.Point,\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar line = meta.dataset;\n\t\t\tvar points = meta.data || [];\n\t\t\tvar options = me.chart.options;\n\t\t\tvar lineElementOptions = options.elements.line;\n\t\t\tvar scale = me.getScaleForId(meta.yAxisID);\n\t\t\tvar i, ilen, custom;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar showLine = lineEnabled(dataset, options);\n\n\t\t\t// Update Line\n\t\t\tif (showLine) {\n\t\t\t\tcustom = line.custom || {};\n\n\t\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\n\t\t\t\tif ((dataset.tension !== undefined) && (dataset.lineTension === undefined)) {\n\t\t\t\t\tdataset.lineTension = dataset.tension;\n\t\t\t\t}\n\n\t\t\t\t// Utility\n\t\t\t\tline._scale = scale;\n\t\t\t\tline._datasetIndex = me.index;\n\t\t\t\t// Data\n\t\t\t\tline._children = points;\n\t\t\t\t// Model\n\t\t\t\tline._model = {\n\t\t\t\t\t// Appearance\n\t\t\t\t\t// The default behavior of lines is to break at null values, according\n\t\t\t\t\t// to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158\n\t\t\t\t\t// This option gives lines the ability to span gaps\n\t\t\t\t\tspanGaps: dataset.spanGaps ? dataset.spanGaps : options.spanGaps,\n\t\t\t\t\ttension: custom.tension ? custom.tension : helpers.valueOrDefault(dataset.lineTension, lineElementOptions.tension),\n\t\t\t\t\tbackgroundColor: custom.backgroundColor ? custom.backgroundColor : (dataset.backgroundColor || lineElementOptions.backgroundColor),\n\t\t\t\t\tborderWidth: custom.borderWidth ? custom.borderWidth : (dataset.borderWidth || lineElementOptions.borderWidth),\n\t\t\t\t\tborderColor: custom.borderColor ? custom.borderColor : (dataset.borderColor || lineElementOptions.borderColor),\n\t\t\t\t\tborderCapStyle: custom.borderCapStyle ? custom.borderCapStyle : (dataset.borderCapStyle || lineElementOptions.borderCapStyle),\n\t\t\t\t\tborderDash: custom.borderDash ? custom.borderDash : (dataset.borderDash || lineElementOptions.borderDash),\n\t\t\t\t\tborderDashOffset: custom.borderDashOffset ? custom.borderDashOffset : (dataset.borderDashOffset || lineElementOptions.borderDashOffset),\n\t\t\t\t\tborderJoinStyle: custom.borderJoinStyle ? custom.borderJoinStyle : (dataset.borderJoinStyle || lineElementOptions.borderJoinStyle),\n\t\t\t\t\tfill: custom.fill ? custom.fill : (dataset.fill !== undefined ? dataset.fill : lineElementOptions.fill),\n\t\t\t\t\tsteppedLine: custom.steppedLine ? custom.steppedLine : helpers.valueOrDefault(dataset.steppedLine, lineElementOptions.stepped),\n\t\t\t\t\tcubicInterpolationMode: custom.cubicInterpolationMode ? custom.cubicInterpolationMode : helpers.valueOrDefault(dataset.cubicInterpolationMode, lineElementOptions.cubicInterpolationMode),\n\t\t\t\t};\n\n\t\t\t\tline.pivot();\n\t\t\t}\n\n\t\t\t// Update Points\n\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\n\t\t\t\tme.updateElement(points[i], i, reset);\n\t\t\t}\n\n\t\t\tif (showLine && line._model.tension !== 0) {\n\t\t\t\tme.updateBezierControlPoints();\n\t\t\t}\n\n\t\t\t// Now pivot the point for animation\n\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\n\t\t\t\tpoints[i].pivot();\n\t\t\t}\n\t\t},\n\n\t\tgetPointBackgroundColor: function(point, index) {\n\t\t\tvar backgroundColor = this.chart.options.elements.point.backgroundColor;\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar custom = point.custom || {};\n\n\t\t\tif (custom.backgroundColor) {\n\t\t\t\tbackgroundColor = custom.backgroundColor;\n\t\t\t} else if (dataset.pointBackgroundColor) {\n\t\t\t\tbackgroundColor = helpers.valueAtIndexOrDefault(dataset.pointBackgroundColor, index, backgroundColor);\n\t\t\t} else if (dataset.backgroundColor) {\n\t\t\t\tbackgroundColor = dataset.backgroundColor;\n\t\t\t}\n\n\t\t\treturn backgroundColor;\n\t\t},\n\n\t\tgetPointBorderColor: function(point, index) {\n\t\t\tvar borderColor = this.chart.options.elements.point.borderColor;\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar custom = point.custom || {};\n\n\t\t\tif (custom.borderColor) {\n\t\t\t\tborderColor = custom.borderColor;\n\t\t\t} else if (dataset.pointBorderColor) {\n\t\t\t\tborderColor = helpers.valueAtIndexOrDefault(dataset.pointBorderColor, index, borderColor);\n\t\t\t} else if (dataset.borderColor) {\n\t\t\t\tborderColor = dataset.borderColor;\n\t\t\t}\n\n\t\t\treturn borderColor;\n\t\t},\n\n\t\tgetPointBorderWidth: function(point, index) {\n\t\t\tvar borderWidth = this.chart.options.elements.point.borderWidth;\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar custom = point.custom || {};\n\n\t\t\tif (!isNaN(custom.borderWidth)) {\n\t\t\t\tborderWidth = custom.borderWidth;\n\t\t\t} else if (!isNaN(dataset.pointBorderWidth) || helpers.isArray(dataset.pointBorderWidth)) {\n\t\t\t\tborderWidth = helpers.valueAtIndexOrDefault(dataset.pointBorderWidth, index, borderWidth);\n\t\t\t} else if (!isNaN(dataset.borderWidth)) {\n\t\t\t\tborderWidth = dataset.borderWidth;\n\t\t\t}\n\n\t\t\treturn borderWidth;\n\t\t},\n\n\t\tgetPointRotation: function(point, index) {\n\t\t\tvar pointRotation = this.chart.options.elements.point.rotation;\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar custom = point.custom || {};\n\n\t\t\tif (!isNaN(custom.rotation)) {\n\t\t\t\tpointRotation = custom.rotation;\n\t\t\t} else if (!isNaN(dataset.pointRotation) || helpers.isArray(dataset.pointRotation)) {\n\t\t\t\tpointRotation = helpers.valueAtIndexOrDefault(dataset.pointRotation, index, pointRotation);\n\t\t\t}\n\t\t\treturn pointRotation;\n\t\t},\n\n\t\tupdateElement: function(point, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar datasetIndex = me.index;\n\t\t\tvar value = dataset.data[index];\n\t\t\tvar yScale = me.getScaleForId(meta.yAxisID);\n\t\t\tvar xScale = me.getScaleForId(meta.xAxisID);\n\t\t\tvar pointOptions = me.chart.options.elements.point;\n\t\t\tvar x, y;\n\n\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\n\t\t\tif ((dataset.radius !== undefined) && (dataset.pointRadius === undefined)) {\n\t\t\t\tdataset.pointRadius = dataset.radius;\n\t\t\t}\n\t\t\tif ((dataset.hitRadius !== undefined) && (dataset.pointHitRadius === undefined)) {\n\t\t\t\tdataset.pointHitRadius = dataset.hitRadius;\n\t\t\t}\n\n\t\t\tx = xScale.getPixelForValue(typeof value === 'object' ? value : NaN, index, datasetIndex);\n\t\t\ty = reset ? yScale.getBasePixel() : me.calculatePointY(value, index, datasetIndex);\n\n\t\t\t// Utility\n\t\t\tpoint._xScale = xScale;\n\t\t\tpoint._yScale = yScale;\n\t\t\tpoint._datasetIndex = datasetIndex;\n\t\t\tpoint._index = index;\n\n\t\t\t// Desired view properties\n\t\t\tpoint._model = {\n\t\t\t\tx: x,\n\t\t\t\ty: y,\n\t\t\t\tskip: custom.skip || isNaN(x) || isNaN(y),\n\t\t\t\t// Appearance\n\t\t\t\tradius: custom.radius || helpers.valueAtIndexOrDefault(dataset.pointRadius, index, pointOptions.radius),\n\t\t\t\tpointStyle: custom.pointStyle || helpers.valueAtIndexOrDefault(dataset.pointStyle, index, pointOptions.pointStyle),\n\t\t\t\trotation: me.getPointRotation(point, index),\n\t\t\t\tbackgroundColor: me.getPointBackgroundColor(point, index),\n\t\t\t\tborderColor: me.getPointBorderColor(point, index),\n\t\t\t\tborderWidth: me.getPointBorderWidth(point, index),\n\t\t\t\ttension: meta.dataset._model ? meta.dataset._model.tension : 0,\n\t\t\t\tsteppedLine: meta.dataset._model ? meta.dataset._model.steppedLine : false,\n\t\t\t\t// Tooltip\n\t\t\t\thitRadius: custom.hitRadius || helpers.valueAtIndexOrDefault(dataset.pointHitRadius, index, pointOptions.hitRadius)\n\t\t\t};\n\t\t},\n\n\t\tcalculatePointY: function(value, index, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar yScale = me.getScaleForId(meta.yAxisID);\n\t\t\tvar sumPos = 0;\n\t\t\tvar sumNeg = 0;\n\t\t\tvar i, ds, dsMeta;\n\n\t\t\tif (yScale.options.stacked) {\n\t\t\t\tfor (i = 0; i < datasetIndex; i++) {\n\t\t\t\t\tds = chart.data.datasets[i];\n\t\t\t\t\tdsMeta = chart.getDatasetMeta(i);\n\t\t\t\t\tif (dsMeta.type === 'line' && dsMeta.yAxisID === yScale.id && chart.isDatasetVisible(i)) {\n\t\t\t\t\t\tvar stackedRightValue = Number(yScale.getRightValue(ds.data[index]));\n\t\t\t\t\t\tif (stackedRightValue < 0) {\n\t\t\t\t\t\t\tsumNeg += stackedRightValue || 0;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsumPos += stackedRightValue || 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvar rightValue = Number(yScale.getRightValue(value));\n\t\t\t\tif (rightValue < 0) {\n\t\t\t\t\treturn yScale.getPixelForValue(sumNeg + rightValue);\n\t\t\t\t}\n\t\t\t\treturn yScale.getPixelForValue(sumPos + rightValue);\n\t\t\t}\n\n\t\t\treturn yScale.getPixelForValue(value);\n\t\t},\n\n\t\tupdateBezierControlPoints: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar area = me.chart.chartArea;\n\t\t\tvar points = (meta.data || []);\n\t\t\tvar i, ilen, point, model, controlPoints;\n\n\t\t\t// Only consider points that are drawn in case the spanGaps option is used\n\t\t\tif (meta.dataset._model.spanGaps) {\n\t\t\t\tpoints = points.filter(function(pt) {\n\t\t\t\t\treturn !pt._model.skip;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tfunction capControlPoint(pt, min, max) {\n\t\t\t\treturn Math.max(Math.min(pt, max), min);\n\t\t\t}\n\n\t\t\tif (meta.dataset._model.cubicInterpolationMode === 'monotone') {\n\t\t\t\thelpers.splineCurveMonotone(points);\n\t\t\t} else {\n\t\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\n\t\t\t\t\tpoint = points[i];\n\t\t\t\t\tmodel = point._model;\n\t\t\t\t\tcontrolPoints = helpers.splineCurve(\n\t\t\t\t\t\thelpers.previousItem(points, i)._model,\n\t\t\t\t\t\tmodel,\n\t\t\t\t\t\thelpers.nextItem(points, i)._model,\n\t\t\t\t\t\tmeta.dataset._model.tension\n\t\t\t\t\t);\n\t\t\t\t\tmodel.controlPointPreviousX = controlPoints.previous.x;\n\t\t\t\t\tmodel.controlPointPreviousY = controlPoints.previous.y;\n\t\t\t\t\tmodel.controlPointNextX = controlPoints.next.x;\n\t\t\t\t\tmodel.controlPointNextY = controlPoints.next.y;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (me.chart.options.elements.line.capBezierPoints) {\n\t\t\t\tfor (i = 0, ilen = points.length; i < ilen; ++i) {\n\t\t\t\t\tmodel = points[i]._model;\n\t\t\t\t\tmodel.controlPointPreviousX = capControlPoint(model.controlPointPreviousX, area.left, area.right);\n\t\t\t\t\tmodel.controlPointPreviousY = capControlPoint(model.controlPointPreviousY, area.top, area.bottom);\n\t\t\t\t\tmodel.controlPointNextX = capControlPoint(model.controlPointNextX, area.left, area.right);\n\t\t\t\t\tmodel.controlPointNextY = capControlPoint(model.controlPointNextY, area.top, area.bottom);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tdraw: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar points = meta.data || [];\n\t\t\tvar area = chart.chartArea;\n\t\t\tvar ilen = points.length;\n\t\t\tvar halfBorderWidth;\n\t\t\tvar i = 0;\n\n\t\t\tif (lineEnabled(me.getDataset(), chart.options)) {\n\t\t\t\thalfBorderWidth = (meta.dataset._model.borderWidth || 0) / 2;\n\n\t\t\t\thelpers.canvas.clipArea(chart.ctx, {\n\t\t\t\t\tleft: area.left,\n\t\t\t\t\tright: area.right,\n\t\t\t\t\ttop: area.top - halfBorderWidth,\n\t\t\t\t\tbottom: area.bottom + halfBorderWidth\n\t\t\t\t});\n\n\t\t\t\tmeta.dataset.draw();\n\n\t\t\t\thelpers.canvas.unclipArea(chart.ctx);\n\t\t\t}\n\n\t\t\t// Draw the points\n\t\t\tfor (; i < ilen; ++i) {\n\t\t\t\tpoints[i].draw(area);\n\t\t\t}\n\t\t},\n\n\t\tsetHoverStyle: function(element) {\n\t\t\t// Point\n\t\t\tvar dataset = this.chart.data.datasets[element._datasetIndex];\n\t\t\tvar index = element._index;\n\t\t\tvar custom = element.custom || {};\n\t\t\tvar model = element._model;\n\n\t\t\telement.$previousStyle = {\n\t\t\t\tbackgroundColor: model.backgroundColor,\n\t\t\t\tborderColor: model.borderColor,\n\t\t\t\tborderWidth: model.borderWidth,\n\t\t\t\tradius: model.radius\n\t\t\t};\n\n\t\t\tmodel.backgroundColor = custom.hoverBackgroundColor || helpers.valueAtIndexOrDefault(dataset.pointHoverBackgroundColor, index, helpers.getHoverColor(model.backgroundColor));\n\t\t\tmodel.borderColor = custom.hoverBorderColor || helpers.valueAtIndexOrDefault(dataset.pointHoverBorderColor, index, helpers.getHoverColor(model.borderColor));\n\t\t\tmodel.borderWidth = custom.hoverBorderWidth || helpers.valueAtIndexOrDefault(dataset.pointHoverBorderWidth, index, model.borderWidth);\n\t\t\tmodel.radius = custom.hoverRadius || helpers.valueAtIndexOrDefault(dataset.pointHoverRadius, index, this.chart.options.elements.point.hoverRadius);\n\t\t},\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],19:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('polarArea', {\n\tscale: {\n\t\ttype: 'radialLinear',\n\t\tangleLines: {\n\t\t\tdisplay: false\n\t\t},\n\t\tgridLines: {\n\t\t\tcircular: true\n\t\t},\n\t\tpointLabels: {\n\t\t\tdisplay: false\n\t\t},\n\t\tticks: {\n\t\t\tbeginAtZero: true\n\t\t}\n\t},\n\n\t// Boolean - Whether to animate the rotation of the chart\n\tanimation: {\n\t\tanimateRotate: true,\n\t\tanimateScale: true\n\t},\n\n\tstartAngle: -0.5 * Math.PI,\n\tlegendCallback: function(chart) {\n\t\tvar text = [];\n\t\ttext.push('<ul class=\"' + chart.id + '-legend\">');\n\n\t\tvar data = chart.data;\n\t\tvar datasets = data.datasets;\n\t\tvar labels = data.labels;\n\n\t\tif (datasets.length) {\n\t\t\tfor (var i = 0; i < datasets[0].data.length; ++i) {\n\t\t\t\ttext.push('<li><span style=\"background-color:' + datasets[0].backgroundColor[i] + '\"></span>');\n\t\t\t\tif (labels[i]) {\n\t\t\t\t\ttext.push(labels[i]);\n\t\t\t\t}\n\t\t\t\ttext.push('</li>');\n\t\t\t}\n\t\t}\n\n\t\ttext.push('</ul>');\n\t\treturn text.join('');\n\t},\n\tlegend: {\n\t\tlabels: {\n\t\t\tgenerateLabels: function(chart) {\n\t\t\t\tvar data = chart.data;\n\t\t\t\tif (data.labels.length && data.datasets.length) {\n\t\t\t\t\treturn data.labels.map(function(label, i) {\n\t\t\t\t\t\tvar meta = chart.getDatasetMeta(0);\n\t\t\t\t\t\tvar ds = data.datasets[0];\n\t\t\t\t\t\tvar arc = meta.data[i];\n\t\t\t\t\t\tvar custom = arc.custom || {};\n\t\t\t\t\t\tvar valueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\t\t\t\tvar arcOpts = chart.options.elements.arc;\n\t\t\t\t\t\tvar fill = custom.backgroundColor ? custom.backgroundColor : valueAtIndexOrDefault(ds.backgroundColor, i, arcOpts.backgroundColor);\n\t\t\t\t\t\tvar stroke = custom.borderColor ? custom.borderColor : valueAtIndexOrDefault(ds.borderColor, i, arcOpts.borderColor);\n\t\t\t\t\t\tvar bw = custom.borderWidth ? custom.borderWidth : valueAtIndexOrDefault(ds.borderWidth, i, arcOpts.borderWidth);\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\ttext: label,\n\t\t\t\t\t\t\tfillStyle: fill,\n\t\t\t\t\t\t\tstrokeStyle: stroke,\n\t\t\t\t\t\t\tlineWidth: bw,\n\t\t\t\t\t\t\thidden: isNaN(ds.data[i]) || meta.data[i].hidden,\n\n\t\t\t\t\t\t\t// Extra data used for toggling the correct item\n\t\t\t\t\t\t\tindex: i\n\t\t\t\t\t\t};\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn [];\n\t\t\t}\n\t\t},\n\n\t\tonClick: function(e, legendItem) {\n\t\t\tvar index = legendItem.index;\n\t\t\tvar chart = this.chart;\n\t\t\tvar i, ilen, meta;\n\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n\t\t\t\tmeta = chart.getDatasetMeta(i);\n\t\t\t\tmeta.data[index].hidden = !meta.data[index].hidden;\n\t\t\t}\n\n\t\t\tchart.update();\n\t\t}\n\t},\n\n\t// Need to override these to give a nice default\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function() {\n\t\t\t\treturn '';\n\t\t\t},\n\t\t\tlabel: function(item, data) {\n\t\t\t\treturn data.labels[item.index] + ': ' + item.yLabel;\n\t\t\t}\n\t\t}\n\t}\n});\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.polarArea = Chart.DatasetController.extend({\n\n\t\tdataElementType: elements.Arc,\n\n\t\tlinkScales: helpers.noop,\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar start = me.chart.options.startAngle || 0;\n\t\t\tvar starts = me._starts = [];\n\t\t\tvar angles = me._angles = [];\n\t\t\tvar i, ilen, angle;\n\n\t\t\tme._updateRadius();\n\n\t\t\tmeta.count = me.countVisibleElements();\n\n\t\t\tfor (i = 0, ilen = dataset.data.length; i < ilen; i++) {\n\t\t\t\tstarts[i] = start;\n\t\t\t\tangle = me._computeAngle(i);\n\t\t\t\tangles[i] = angle;\n\t\t\t\tstart += angle;\n\t\t\t}\n\n\t\t\thelpers.each(meta.data, function(arc, index) {\n\t\t\t\tme.updateElement(arc, index, reset);\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\t_updateRadius: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar chartArea = chart.chartArea;\n\t\t\tvar opts = chart.options;\n\t\t\tvar arcOpts = opts.elements.arc;\n\t\t\tvar minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);\n\n\t\t\tchart.outerRadius = Math.max((minSize - arcOpts.borderWidth / 2) / 2, 0);\n\t\t\tchart.innerRadius = Math.max(opts.cutoutPercentage ? (chart.outerRadius / 100) * (opts.cutoutPercentage) : 1, 0);\n\t\t\tchart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();\n\n\t\t\tme.outerRadius = chart.outerRadius - (chart.radiusLength * me.index);\n\t\t\tme.innerRadius = me.outerRadius - chart.radiusLength;\n\t\t},\n\n\t\tupdateElement: function(arc, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar opts = chart.options;\n\t\t\tvar animationOpts = opts.animation;\n\t\t\tvar scale = chart.scale;\n\t\t\tvar labels = chart.data.labels;\n\n\t\t\tvar centerX = scale.xCenter;\n\t\t\tvar centerY = scale.yCenter;\n\n\t\t\t// var negHalfPI = -0.5 * Math.PI;\n\t\t\tvar datasetStartAngle = opts.startAngle;\n\t\t\tvar distance = arc.hidden ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\n\t\t\tvar startAngle = me._starts[index];\n\t\t\tvar endAngle = startAngle + (arc.hidden ? 0 : me._angles[index]);\n\n\t\t\tvar resetRadius = animationOpts.animateScale ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\n\n\t\t\thelpers.extend(arc, {\n\t\t\t\t// Utility\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_index: index,\n\t\t\t\t_scale: scale,\n\n\t\t\t\t// Desired view properties\n\t\t\t\t_model: {\n\t\t\t\t\tx: centerX,\n\t\t\t\t\ty: centerY,\n\t\t\t\t\tinnerRadius: 0,\n\t\t\t\t\touterRadius: reset ? resetRadius : distance,\n\t\t\t\t\tstartAngle: reset && animationOpts.animateRotate ? datasetStartAngle : startAngle,\n\t\t\t\t\tendAngle: reset && animationOpts.animateRotate ? datasetStartAngle : endAngle,\n\t\t\t\t\tlabel: helpers.valueAtIndexOrDefault(labels, index, labels[index])\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// Apply border and fill style\n\t\t\tvar elementOpts = this.chart.options.elements.arc;\n\t\t\tvar custom = arc.custom || {};\n\t\t\tvar valueOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\tvar model = arc._model;\n\n\t\t\tmodel.backgroundColor = custom.backgroundColor ? custom.backgroundColor : valueOrDefault(dataset.backgroundColor, index, elementOpts.backgroundColor);\n\t\t\tmodel.borderColor = custom.borderColor ? custom.borderColor : valueOrDefault(dataset.borderColor, index, elementOpts.borderColor);\n\t\t\tmodel.borderWidth = custom.borderWidth ? custom.borderWidth : valueOrDefault(dataset.borderWidth, index, elementOpts.borderWidth);\n\n\t\t\tarc.pivot();\n\t\t},\n\n\t\tcountVisibleElements: function() {\n\t\t\tvar dataset = this.getDataset();\n\t\t\tvar meta = this.getMeta();\n\t\t\tvar count = 0;\n\n\t\t\thelpers.each(meta.data, function(element, index) {\n\t\t\t\tif (!isNaN(dataset.data[index]) && !element.hidden) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn count;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\t_computeAngle: function(index) {\n\t\t\tvar me = this;\n\t\t\tvar count = this.getMeta().count;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar meta = me.getMeta();\n\n\t\t\tif (isNaN(dataset.data[index]) || meta.data[index].hidden) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t// Scriptable options\n\t\t\tvar context = {\n\t\t\t\tchart: me.chart,\n\t\t\t\tdataIndex: index,\n\t\t\t\tdataset: dataset,\n\t\t\t\tdatasetIndex: me.index\n\t\t\t};\n\n\t\t\treturn helpers.options.resolve([\n\t\t\t\tme.chart.options.elements.arc.angle,\n\t\t\t\t(2 * Math.PI) / count\n\t\t\t], context, index);\n\t\t}\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],20:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('radar', {\n\tscale: {\n\t\ttype: 'radialLinear'\n\t},\n\telements: {\n\t\tline: {\n\t\t\ttension: 0 // no bezier in radar\n\t\t}\n\t}\n});\n\nmodule.exports = function(Chart) {\n\n\tChart.controllers.radar = Chart.DatasetController.extend({\n\n\t\tdatasetElementType: elements.Line,\n\n\t\tdataElementType: elements.Point,\n\n\t\tlinkScales: helpers.noop,\n\n\t\tupdate: function(reset) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar line = meta.dataset;\n\t\t\tvar points = meta.data;\n\t\t\tvar custom = line.custom || {};\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar lineElementOptions = me.chart.options.elements.line;\n\t\t\tvar scale = me.chart.scale;\n\n\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\n\t\t\tif ((dataset.tension !== undefined) && (dataset.lineTension === undefined)) {\n\t\t\t\tdataset.lineTension = dataset.tension;\n\t\t\t}\n\n\t\t\thelpers.extend(meta.dataset, {\n\t\t\t\t// Utility\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_scale: scale,\n\t\t\t\t// Data\n\t\t\t\t_children: points,\n\t\t\t\t_loop: true,\n\t\t\t\t// Model\n\t\t\t\t_model: {\n\t\t\t\t\t// Appearance\n\t\t\t\t\ttension: custom.tension ? custom.tension : helpers.valueOrDefault(dataset.lineTension, lineElementOptions.tension),\n\t\t\t\t\tbackgroundColor: custom.backgroundColor ? custom.backgroundColor : (dataset.backgroundColor || lineElementOptions.backgroundColor),\n\t\t\t\t\tborderWidth: custom.borderWidth ? custom.borderWidth : (dataset.borderWidth || lineElementOptions.borderWidth),\n\t\t\t\t\tborderColor: custom.borderColor ? custom.borderColor : (dataset.borderColor || lineElementOptions.borderColor),\n\t\t\t\t\tfill: custom.fill ? custom.fill : (dataset.fill !== undefined ? dataset.fill : lineElementOptions.fill),\n\t\t\t\t\tborderCapStyle: custom.borderCapStyle ? custom.borderCapStyle : (dataset.borderCapStyle || lineElementOptions.borderCapStyle),\n\t\t\t\t\tborderDash: custom.borderDash ? custom.borderDash : (dataset.borderDash || lineElementOptions.borderDash),\n\t\t\t\t\tborderDashOffset: custom.borderDashOffset ? custom.borderDashOffset : (dataset.borderDashOffset || lineElementOptions.borderDashOffset),\n\t\t\t\t\tborderJoinStyle: custom.borderJoinStyle ? custom.borderJoinStyle : (dataset.borderJoinStyle || lineElementOptions.borderJoinStyle),\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmeta.dataset.pivot();\n\n\t\t\t// Update Points\n\t\t\thelpers.each(points, function(point, index) {\n\t\t\t\tme.updateElement(point, index, reset);\n\t\t\t}, me);\n\n\t\t\t// Update bezier control points\n\t\t\tme.updateBezierControlPoints();\n\t\t},\n\t\tupdateElement: function(point, index, reset) {\n\t\t\tvar me = this;\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar scale = me.chart.scale;\n\t\t\tvar pointElementOptions = me.chart.options.elements.point;\n\t\t\tvar pointPosition = scale.getPointPositionForValue(index, dataset.data[index]);\n\n\t\t\t// Compatibility: If the properties are defined with only the old name, use those values\n\t\t\tif ((dataset.radius !== undefined) && (dataset.pointRadius === undefined)) {\n\t\t\t\tdataset.pointRadius = dataset.radius;\n\t\t\t}\n\t\t\tif ((dataset.hitRadius !== undefined) && (dataset.pointHitRadius === undefined)) {\n\t\t\t\tdataset.pointHitRadius = dataset.hitRadius;\n\t\t\t}\n\n\t\t\thelpers.extend(point, {\n\t\t\t\t// Utility\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_index: index,\n\t\t\t\t_scale: scale,\n\n\t\t\t\t// Desired view properties\n\t\t\t\t_model: {\n\t\t\t\t\tx: reset ? scale.xCenter : pointPosition.x, // value not used in dataset scale, but we want a consistent API between scales\n\t\t\t\t\ty: reset ? scale.yCenter : pointPosition.y,\n\n\t\t\t\t\t// Appearance\n\t\t\t\t\ttension: custom.tension ? custom.tension : helpers.valueOrDefault(dataset.lineTension, me.chart.options.elements.line.tension),\n\t\t\t\t\tradius: custom.radius ? custom.radius : helpers.valueAtIndexOrDefault(dataset.pointRadius, index, pointElementOptions.radius),\n\t\t\t\t\tbackgroundColor: custom.backgroundColor ? custom.backgroundColor : helpers.valueAtIndexOrDefault(dataset.pointBackgroundColor, index, pointElementOptions.backgroundColor),\n\t\t\t\t\tborderColor: custom.borderColor ? custom.borderColor : helpers.valueAtIndexOrDefault(dataset.pointBorderColor, index, pointElementOptions.borderColor),\n\t\t\t\t\tborderWidth: custom.borderWidth ? custom.borderWidth : helpers.valueAtIndexOrDefault(dataset.pointBorderWidth, index, pointElementOptions.borderWidth),\n\t\t\t\t\tpointStyle: custom.pointStyle ? custom.pointStyle : helpers.valueAtIndexOrDefault(dataset.pointStyle, index, pointElementOptions.pointStyle),\n\t\t\t\t\trotation: custom.rotation ? custom.rotation : helpers.valueAtIndexOrDefault(dataset.pointRotation, index, pointElementOptions.rotation),\n\n\t\t\t\t\t// Tooltip\n\t\t\t\t\thitRadius: custom.hitRadius ? custom.hitRadius : helpers.valueAtIndexOrDefault(dataset.pointHitRadius, index, pointElementOptions.hitRadius)\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tpoint._model.skip = custom.skip ? custom.skip : (isNaN(point._model.x) || isNaN(point._model.y));\n\t\t},\n\t\tupdateBezierControlPoints: function() {\n\t\t\tvar chartArea = this.chart.chartArea;\n\t\t\tvar meta = this.getMeta();\n\n\t\t\thelpers.each(meta.data, function(point, index) {\n\t\t\t\tvar model = point._model;\n\t\t\t\tvar controlPoints = helpers.splineCurve(\n\t\t\t\t\thelpers.previousItem(meta.data, index, true)._model,\n\t\t\t\t\tmodel,\n\t\t\t\t\thelpers.nextItem(meta.data, index, true)._model,\n\t\t\t\t\tmodel.tension\n\t\t\t\t);\n\n\t\t\t\t// Prevent the bezier going outside of the bounds of the graph\n\t\t\t\tmodel.controlPointPreviousX = Math.max(Math.min(controlPoints.previous.x, chartArea.right), chartArea.left);\n\t\t\t\tmodel.controlPointPreviousY = Math.max(Math.min(controlPoints.previous.y, chartArea.bottom), chartArea.top);\n\n\t\t\t\tmodel.controlPointNextX = Math.max(Math.min(controlPoints.next.x, chartArea.right), chartArea.left);\n\t\t\t\tmodel.controlPointNextY = Math.max(Math.min(controlPoints.next.y, chartArea.bottom), chartArea.top);\n\n\t\t\t\t// Now pivot the point for animation\n\t\t\t\tpoint.pivot();\n\t\t\t});\n\t\t},\n\n\t\tsetHoverStyle: function(point) {\n\t\t\t// Point\n\t\t\tvar dataset = this.chart.data.datasets[point._datasetIndex];\n\t\t\tvar custom = point.custom || {};\n\t\t\tvar index = point._index;\n\t\t\tvar model = point._model;\n\n\t\t\tpoint.$previousStyle = {\n\t\t\t\tbackgroundColor: model.backgroundColor,\n\t\t\t\tborderColor: model.borderColor,\n\t\t\t\tborderWidth: model.borderWidth,\n\t\t\t\tradius: model.radius\n\t\t\t};\n\n\t\t\tmodel.radius = custom.hoverRadius ? custom.hoverRadius : helpers.valueAtIndexOrDefault(dataset.pointHoverRadius, index, this.chart.options.elements.point.hoverRadius);\n\t\t\tmodel.backgroundColor = custom.hoverBackgroundColor ? custom.hoverBackgroundColor : helpers.valueAtIndexOrDefault(dataset.pointHoverBackgroundColor, index, helpers.getHoverColor(model.backgroundColor));\n\t\t\tmodel.borderColor = custom.hoverBorderColor ? custom.hoverBorderColor : helpers.valueAtIndexOrDefault(dataset.pointHoverBorderColor, index, helpers.getHoverColor(model.borderColor));\n\t\t\tmodel.borderWidth = custom.hoverBorderWidth ? custom.hoverBorderWidth : helpers.valueAtIndexOrDefault(dataset.pointHoverBorderWidth, index, model.borderWidth);\n\t\t},\n\t});\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],21:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\n\ndefaults._set('scatter', {\n\thover: {\n\t\tmode: 'single'\n\t},\n\n\tscales: {\n\t\txAxes: [{\n\t\t\tid: 'x-axis-1',    // need an ID so datasets can reference the scale\n\t\t\ttype: 'linear',    // scatter should not use a category axis\n\t\t\tposition: 'bottom'\n\t\t}],\n\t\tyAxes: [{\n\t\t\tid: 'y-axis-1',\n\t\t\ttype: 'linear',\n\t\t\tposition: 'left'\n\t\t}]\n\t},\n\n\tshowLines: false,\n\n\ttooltips: {\n\t\tcallbacks: {\n\t\t\ttitle: function() {\n\t\t\t\treturn '';     // doesn't make sense for scatter since data are formatted as a point\n\t\t\t},\n\t\t\tlabel: function(item) {\n\t\t\t\treturn '(' + item.xLabel + ', ' + item.yLabel + ')';\n\t\t\t}\n\t\t}\n\t}\n});\n\nmodule.exports = function(Chart) {\n\n\t// Scatter charts use line controllers\n\tChart.controllers.scatter = Chart.controllers.line;\n\n};\n\n},{\"26\":26}],22:[function(require,module,exports){\n'use strict';\n\nvar Element = require(27);\n\nvar exports = module.exports = Element.extend({\n\tchart: null, // the animation associated chart instance\n\tcurrentStep: 0, // the current animation step\n\tnumSteps: 60, // default number of steps\n\teasing: '', // the easing to use for this animation\n\trender: null, // render function used by the animation service\n\n\tonAnimationProgress: null, // user specified callback to fire on each step of the animation\n\tonAnimationComplete: null, // user specified callback to fire when the animation finishes\n});\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use Chart.Animation instead\n * @prop Chart.Animation#animationObject\n * @deprecated since version 2.6.0\n * @todo remove at version 3\n */\nObject.defineProperty(exports.prototype, 'animationObject', {\n\tget: function() {\n\t\treturn this;\n\t}\n});\n\n/**\n * Provided for backward compatibility, use Chart.Animation#chart instead\n * @prop Chart.Animation#chartInstance\n * @deprecated since version 2.6.0\n * @todo remove at version 3\n */\nObject.defineProperty(exports.prototype, 'chartInstance', {\n\tget: function() {\n\t\treturn this.chart;\n\t},\n\tset: function(value) {\n\t\tthis.chart = value;\n\t}\n});\n\n},{\"27\":27}],23:[function(require,module,exports){\n/* global window: false */\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\tanimation: {\n\t\tduration: 1000,\n\t\teasing: 'easeOutQuart',\n\t\tonProgress: helpers.noop,\n\t\tonComplete: helpers.noop\n\t}\n});\n\nmodule.exports = {\n\tframeDuration: 17,\n\tanimations: [],\n\tdropFrames: 0,\n\trequest: null,\n\n\t/**\n\t * @param {Chart} chart - The chart to animate.\n\t * @param {Chart.Animation} animation - The animation that we will animate.\n\t * @param {Number} duration - The animation duration in ms.\n\t * @param {Boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions\n\t */\n\taddAnimation: function(chart, animation, duration, lazy) {\n\t\tvar animations = this.animations;\n\t\tvar i, ilen;\n\n\t\tanimation.chart = chart;\n\n\t\tif (!lazy) {\n\t\t\tchart.animating = true;\n\t\t}\n\n\t\tfor (i = 0, ilen = animations.length; i < ilen; ++i) {\n\t\t\tif (animations[i].chart === chart) {\n\t\t\t\tanimations[i] = animation;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tanimations.push(animation);\n\n\t\t// If there are no animations queued, manually kickstart a digest, for lack of a better word\n\t\tif (animations.length === 1) {\n\t\t\tthis.requestAnimationFrame();\n\t\t}\n\t},\n\n\tcancelAnimation: function(chart) {\n\t\tvar index = helpers.findIndex(this.animations, function(animation) {\n\t\t\treturn animation.chart === chart;\n\t\t});\n\n\t\tif (index !== -1) {\n\t\t\tthis.animations.splice(index, 1);\n\t\t\tchart.animating = false;\n\t\t}\n\t},\n\n\trequestAnimationFrame: function() {\n\t\tvar me = this;\n\t\tif (me.request === null) {\n\t\t\t// Skip animation frame requests until the active one is executed.\n\t\t\t// This can happen when processing mouse events, e.g. 'mousemove'\n\t\t\t// and 'mouseout' events will trigger multiple renders.\n\t\t\tme.request = helpers.requestAnimFrame.call(window, function() {\n\t\t\t\tme.request = null;\n\t\t\t\tme.startDigest();\n\t\t\t});\n\t\t}\n\t},\n\n\t/**\n\t * @private\n\t */\n\tstartDigest: function() {\n\t\tvar me = this;\n\t\tvar startTime = Date.now();\n\t\tvar framesToDrop = 0;\n\n\t\tif (me.dropFrames > 1) {\n\t\t\tframesToDrop = Math.floor(me.dropFrames);\n\t\t\tme.dropFrames = me.dropFrames % 1;\n\t\t}\n\n\t\tme.advance(1 + framesToDrop);\n\n\t\tvar endTime = Date.now();\n\n\t\tme.dropFrames += (endTime - startTime) / me.frameDuration;\n\n\t\t// Do we have more stuff to animate?\n\t\tif (me.animations.length > 0) {\n\t\t\tme.requestAnimationFrame();\n\t\t}\n\t},\n\n\t/**\n\t * @private\n\t */\n\tadvance: function(count) {\n\t\tvar animations = this.animations;\n\t\tvar animation, chart;\n\t\tvar i = 0;\n\n\t\twhile (i < animations.length) {\n\t\t\tanimation = animations[i];\n\t\t\tchart = animation.chart;\n\n\t\t\tanimation.currentStep = (animation.currentStep || 0) + count;\n\t\t\tanimation.currentStep = Math.min(animation.currentStep, animation.numSteps);\n\n\t\t\thelpers.callback(animation.render, [chart, animation], chart);\n\t\t\thelpers.callback(animation.onAnimationProgress, [animation], chart);\n\n\t\t\tif (animation.currentStep >= animation.numSteps) {\n\t\t\t\thelpers.callback(animation.onAnimationComplete, [animation], chart);\n\t\t\t\tchart.animating = false;\n\t\t\t\tanimations.splice(i, 1);\n\t\t\t} else {\n\t\t\t\t++i;\n\t\t\t}\n\t\t}\n\t}\n};\n\n},{\"26\":26,\"46\":46}],24:[function(require,module,exports){\n'use strict';\n\nvar Animation = require(22);\nvar animations = require(23);\nvar defaults = require(26);\nvar helpers = require(46);\nvar Interaction = require(29);\nvar layouts = require(31);\nvar platform = require(49);\nvar plugins = require(32);\nvar scaleService = require(34);\nvar Tooltip = require(36);\n\nmodule.exports = function(Chart) {\n\n\t// Create a dictionary of chart types, to allow for extension of existing types\n\tChart.types = {};\n\n\t// Store a reference to each instance - allowing us to globally resize chart instances on window resize.\n\t// Destroy method on the chart will remove the instance of the chart from this reference.\n\tChart.instances = {};\n\n\t// Controllers available for dataset visualization eg. bar, line, slice, etc.\n\tChart.controllers = {};\n\n\t/**\n\t * Initializes the given config with global and chart default values.\n\t */\n\tfunction initConfig(config) {\n\t\tconfig = config || {};\n\n\t\t// Do NOT use configMerge() for the data object because this method merges arrays\n\t\t// and so would change references to labels and datasets, preventing data updates.\n\t\tvar data = config.data = config.data || {};\n\t\tdata.datasets = data.datasets || [];\n\t\tdata.labels = data.labels || [];\n\n\t\tconfig.options = helpers.configMerge(\n\t\t\tdefaults.global,\n\t\t\tdefaults[config.type],\n\t\t\tconfig.options || {});\n\n\t\treturn config;\n\t}\n\n\t/**\n\t * Updates the config of the chart\n\t * @param chart {Chart} chart to update the options for\n\t */\n\tfunction updateConfig(chart) {\n\t\tvar newOptions = chart.options;\n\n\t\thelpers.each(chart.scales, function(scale) {\n\t\t\tlayouts.removeBox(chart, scale);\n\t\t});\n\n\t\tnewOptions = helpers.configMerge(\n\t\t\tChart.defaults.global,\n\t\t\tChart.defaults[chart.config.type],\n\t\t\tnewOptions);\n\n\t\tchart.options = chart.config.options = newOptions;\n\t\tchart.ensureScalesHaveIDs();\n\t\tchart.buildOrUpdateScales();\n\t\t// Tooltip\n\t\tchart.tooltip._options = newOptions.tooltips;\n\t\tchart.tooltip.initialize();\n\t}\n\n\tfunction positionIsHorizontal(position) {\n\t\treturn position === 'top' || position === 'bottom';\n\t}\n\n\thelpers.extend(Chart.prototype, /** @lends Chart */ {\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tconstruct: function(item, config) {\n\t\t\tvar me = this;\n\n\t\t\tconfig = initConfig(config);\n\n\t\t\tvar context = platform.acquireContext(item, config);\n\t\t\tvar canvas = context && context.canvas;\n\t\t\tvar height = canvas && canvas.height;\n\t\t\tvar width = canvas && canvas.width;\n\n\t\t\tme.id = helpers.uid();\n\t\t\tme.ctx = context;\n\t\t\tme.canvas = canvas;\n\t\t\tme.config = config;\n\t\t\tme.width = width;\n\t\t\tme.height = height;\n\t\t\tme.aspectRatio = height ? width / height : null;\n\t\t\tme.options = config.options;\n\t\t\tme._bufferedRender = false;\n\n\t\t\t/**\n\t\t\t * Provided for backward compatibility, Chart and Chart.Controller have been merged,\n\t\t\t * the \"instance\" still need to be defined since it might be called from plugins.\n\t\t\t * @prop Chart#chart\n\t\t\t * @deprecated since version 2.6.0\n\t\t\t * @todo remove at version 3\n\t\t\t * @private\n\t\t\t */\n\t\t\tme.chart = me;\n\t\t\tme.controller = me; // chart.chart.controller #inception\n\n\t\t\t// Add the chart instance to the global namespace\n\t\t\tChart.instances[me.id] = me;\n\n\t\t\t// Define alias to the config data: `chart.data === chart.config.data`\n\t\t\tObject.defineProperty(me, 'data', {\n\t\t\t\tget: function() {\n\t\t\t\t\treturn me.config.data;\n\t\t\t\t},\n\t\t\t\tset: function(value) {\n\t\t\t\t\tme.config.data = value;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (!context || !canvas) {\n\t\t\t\t// The given item is not a compatible context2d element, let's return before finalizing\n\t\t\t\t// the chart initialization but after setting basic chart / controller properties that\n\t\t\t\t// can help to figure out that the chart is not valid (e.g chart.canvas !== null);\n\t\t\t\t// https://github.com/chartjs/Chart.js/issues/2807\n\t\t\t\tconsole.error(\"Failed to create chart: can't acquire context from the given item\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tme.initialize();\n\t\t\tme.update();\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tinitialize: function() {\n\t\t\tvar me = this;\n\n\t\t\t// Before init plugin notification\n\t\t\tplugins.notify(me, 'beforeInit');\n\n\t\t\thelpers.retinaScale(me, me.options.devicePixelRatio);\n\n\t\t\tme.bindEvents();\n\n\t\t\tif (me.options.responsive) {\n\t\t\t\t// Initial resize before chart draws (must be silent to preserve initial animations).\n\t\t\t\tme.resize(true);\n\t\t\t}\n\n\t\t\t// Make sure scales have IDs and are built before we build any controllers.\n\t\t\tme.ensureScalesHaveIDs();\n\t\t\tme.buildOrUpdateScales();\n\t\t\tme.initToolTip();\n\n\t\t\t// After init plugin notification\n\t\t\tplugins.notify(me, 'afterInit');\n\n\t\t\treturn me;\n\t\t},\n\n\t\tclear: function() {\n\t\t\thelpers.canvas.clear(this);\n\t\t\treturn this;\n\t\t},\n\n\t\tstop: function() {\n\t\t\t// Stops any current animation loop occurring\n\t\t\tanimations.cancelAnimation(this);\n\t\t\treturn this;\n\t\t},\n\n\t\tresize: function(silent) {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options;\n\t\t\tvar canvas = me.canvas;\n\t\t\tvar aspectRatio = (options.maintainAspectRatio && me.aspectRatio) || null;\n\n\t\t\t// the canvas render width and height will be casted to integers so make sure that\n\t\t\t// the canvas display style uses the same integer values to avoid blurring effect.\n\n\t\t\t// Set to 0 instead of canvas.size because the size defaults to 300x150 if the element is collapsed\n\t\t\tvar newWidth = Math.max(0, Math.floor(helpers.getMaximumWidth(canvas)));\n\t\t\tvar newHeight = Math.max(0, Math.floor(aspectRatio ? newWidth / aspectRatio : helpers.getMaximumHeight(canvas)));\n\n\t\t\tif (me.width === newWidth && me.height === newHeight) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcanvas.width = me.width = newWidth;\n\t\t\tcanvas.height = me.height = newHeight;\n\t\t\tcanvas.style.width = newWidth + 'px';\n\t\t\tcanvas.style.height = newHeight + 'px';\n\n\t\t\thelpers.retinaScale(me, options.devicePixelRatio);\n\n\t\t\tif (!silent) {\n\t\t\t\t// Notify any plugins about the resize\n\t\t\t\tvar newSize = {width: newWidth, height: newHeight};\n\t\t\t\tplugins.notify(me, 'resize', [newSize]);\n\n\t\t\t\t// Notify of resize\n\t\t\t\tif (me.options.onResize) {\n\t\t\t\t\tme.options.onResize(me, newSize);\n\t\t\t\t}\n\n\t\t\t\tme.stop();\n\t\t\t\tme.update({\n\t\t\t\t\tduration: me.options.responsiveAnimationDuration\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tensureScalesHaveIDs: function() {\n\t\t\tvar options = this.options;\n\t\t\tvar scalesOptions = options.scales || {};\n\t\t\tvar scaleOptions = options.scale;\n\n\t\t\thelpers.each(scalesOptions.xAxes, function(xAxisOptions, index) {\n\t\t\t\txAxisOptions.id = xAxisOptions.id || ('x-axis-' + index);\n\t\t\t});\n\n\t\t\thelpers.each(scalesOptions.yAxes, function(yAxisOptions, index) {\n\t\t\t\tyAxisOptions.id = yAxisOptions.id || ('y-axis-' + index);\n\t\t\t});\n\n\t\t\tif (scaleOptions) {\n\t\t\t\tscaleOptions.id = scaleOptions.id || 'scale';\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Builds a map of scale ID to scale object for future lookup.\n\t\t */\n\t\tbuildOrUpdateScales: function() {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options;\n\t\t\tvar scales = me.scales || {};\n\t\t\tvar items = [];\n\t\t\tvar updated = Object.keys(scales).reduce(function(obj, id) {\n\t\t\t\tobj[id] = false;\n\t\t\t\treturn obj;\n\t\t\t}, {});\n\n\t\t\tif (options.scales) {\n\t\t\t\titems = items.concat(\n\t\t\t\t\t(options.scales.xAxes || []).map(function(xAxisOptions) {\n\t\t\t\t\t\treturn {options: xAxisOptions, dtype: 'category', dposition: 'bottom'};\n\t\t\t\t\t}),\n\t\t\t\t\t(options.scales.yAxes || []).map(function(yAxisOptions) {\n\t\t\t\t\t\treturn {options: yAxisOptions, dtype: 'linear', dposition: 'left'};\n\t\t\t\t\t})\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (options.scale) {\n\t\t\t\titems.push({\n\t\t\t\t\toptions: options.scale,\n\t\t\t\t\tdtype: 'radialLinear',\n\t\t\t\t\tisDefault: true,\n\t\t\t\t\tdposition: 'chartArea'\n\t\t\t\t});\n\t\t\t}\n\n\t\t\thelpers.each(items, function(item) {\n\t\t\t\tvar scaleOptions = item.options;\n\t\t\t\tvar id = scaleOptions.id;\n\t\t\t\tvar scaleType = helpers.valueOrDefault(scaleOptions.type, item.dtype);\n\n\t\t\t\tif (positionIsHorizontal(scaleOptions.position) !== positionIsHorizontal(item.dposition)) {\n\t\t\t\t\tscaleOptions.position = item.dposition;\n\t\t\t\t}\n\n\t\t\t\tupdated[id] = true;\n\t\t\t\tvar scale = null;\n\t\t\t\tif (id in scales && scales[id].type === scaleType) {\n\t\t\t\t\tscale = scales[id];\n\t\t\t\t\tscale.options = scaleOptions;\n\t\t\t\t\tscale.ctx = me.ctx;\n\t\t\t\t\tscale.chart = me;\n\t\t\t\t} else {\n\t\t\t\t\tvar scaleClass = scaleService.getScaleConstructor(scaleType);\n\t\t\t\t\tif (!scaleClass) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tscale = new scaleClass({\n\t\t\t\t\t\tid: id,\n\t\t\t\t\t\ttype: scaleType,\n\t\t\t\t\t\toptions: scaleOptions,\n\t\t\t\t\t\tctx: me.ctx,\n\t\t\t\t\t\tchart: me\n\t\t\t\t\t});\n\t\t\t\t\tscales[scale.id] = scale;\n\t\t\t\t}\n\n\t\t\t\tscale.mergeTicksOptions();\n\n\t\t\t\t// TODO(SB): I think we should be able to remove this custom case (options.scale)\n\t\t\t\t// and consider it as a regular scale part of the \"scales\"\" map only! This would\n\t\t\t\t// make the logic easier and remove some useless? custom code.\n\t\t\t\tif (item.isDefault) {\n\t\t\t\t\tme.scale = scale;\n\t\t\t\t}\n\t\t\t});\n\t\t\t// clear up discarded scales\n\t\t\thelpers.each(updated, function(hasUpdated, id) {\n\t\t\t\tif (!hasUpdated) {\n\t\t\t\t\tdelete scales[id];\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tme.scales = scales;\n\n\t\t\tscaleService.addScalesToLayout(this);\n\t\t},\n\n\t\tbuildOrUpdateControllers: function() {\n\t\t\tvar me = this;\n\t\t\tvar types = [];\n\t\t\tvar newControllers = [];\n\n\t\t\thelpers.each(me.data.datasets, function(dataset, datasetIndex) {\n\t\t\t\tvar meta = me.getDatasetMeta(datasetIndex);\n\t\t\t\tvar type = dataset.type || me.config.type;\n\n\t\t\t\tif (meta.type && meta.type !== type) {\n\t\t\t\t\tme.destroyDatasetMeta(datasetIndex);\n\t\t\t\t\tmeta = me.getDatasetMeta(datasetIndex);\n\t\t\t\t}\n\t\t\t\tmeta.type = type;\n\n\t\t\t\ttypes.push(meta.type);\n\n\t\t\t\tif (meta.controller) {\n\t\t\t\t\tmeta.controller.updateIndex(datasetIndex);\n\t\t\t\t\tmeta.controller.linkScales();\n\t\t\t\t} else {\n\t\t\t\t\tvar ControllerClass = Chart.controllers[meta.type];\n\t\t\t\t\tif (ControllerClass === undefined) {\n\t\t\t\t\t\tthrow new Error('\"' + meta.type + '\" is not a chart type.');\n\t\t\t\t\t}\n\n\t\t\t\t\tmeta.controller = new ControllerClass(me, datasetIndex);\n\t\t\t\t\tnewControllers.push(meta.controller);\n\t\t\t\t}\n\t\t\t}, me);\n\n\t\t\treturn newControllers;\n\t\t},\n\n\t\t/**\n\t\t * Reset the elements of all datasets\n\t\t * @private\n\t\t */\n\t\tresetElements: function() {\n\t\t\tvar me = this;\n\t\t\thelpers.each(me.data.datasets, function(dataset, datasetIndex) {\n\t\t\t\tme.getDatasetMeta(datasetIndex).controller.reset();\n\t\t\t}, me);\n\t\t},\n\n\t\t/**\n\t\t* Resets the chart back to it's state before the initial animation\n\t\t*/\n\t\treset: function() {\n\t\t\tthis.resetElements();\n\t\t\tthis.tooltip.initialize();\n\t\t},\n\n\t\tupdate: function(config) {\n\t\t\tvar me = this;\n\n\t\t\tif (!config || typeof config !== 'object') {\n\t\t\t\t// backwards compatibility\n\t\t\t\tconfig = {\n\t\t\t\t\tduration: config,\n\t\t\t\t\tlazy: arguments[1]\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tupdateConfig(me);\n\n\t\t\t// plugins options references might have change, let's invalidate the cache\n\t\t\t// https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\n\t\t\tplugins._invalidate(me);\n\n\t\t\tif (plugins.notify(me, 'beforeUpdate') === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// In case the entire data object changed\n\t\t\tme.tooltip._data = me.data;\n\n\t\t\t// Make sure dataset controllers are updated and new controllers are reset\n\t\t\tvar newControllers = me.buildOrUpdateControllers();\n\n\t\t\t// Make sure all dataset controllers have correct meta data counts\n\t\t\thelpers.each(me.data.datasets, function(dataset, datasetIndex) {\n\t\t\t\tme.getDatasetMeta(datasetIndex).controller.buildOrUpdateElements();\n\t\t\t}, me);\n\n\t\t\tme.updateLayout();\n\n\t\t\t// Can only reset the new controllers after the scales have been updated\n\t\t\tif (me.options.animation && me.options.animation.duration) {\n\t\t\t\thelpers.each(newControllers, function(controller) {\n\t\t\t\t\tcontroller.reset();\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tme.updateDatasets();\n\n\t\t\t// Need to reset tooltip in case it is displayed with elements that are removed\n\t\t\t// after update.\n\t\t\tme.tooltip.initialize();\n\n\t\t\t// Last active contains items that were previously in the tooltip.\n\t\t\t// When we reset the tooltip, we need to clear it\n\t\t\tme.lastActive = [];\n\n\t\t\t// Do this before render so that any plugins that need final scale updates can use it\n\t\t\tplugins.notify(me, 'afterUpdate');\n\n\t\t\tif (me._bufferedRender) {\n\t\t\t\tme._bufferedRequest = {\n\t\t\t\t\tduration: config.duration,\n\t\t\t\t\teasing: config.easing,\n\t\t\t\t\tlazy: config.lazy\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tme.render(config);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Updates the chart layout unless a plugin returns `false` to the `beforeLayout`\n\t\t * hook, in which case, plugins will not be called on `afterLayout`.\n\t\t * @private\n\t\t */\n\t\tupdateLayout: function() {\n\t\t\tvar me = this;\n\n\t\t\tif (plugins.notify(me, 'beforeLayout') === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlayouts.update(this, this.width, this.height);\n\n\t\t\t/**\n\t\t\t * Provided for backward compatibility, use `afterLayout` instead.\n\t\t\t * @method IPlugin#afterScaleUpdate\n\t\t\t * @deprecated since version 2.5.0\n\t\t\t * @todo remove at version 3\n\t\t\t * @private\n\t\t\t */\n\t\t\tplugins.notify(me, 'afterScaleUpdate');\n\t\t\tplugins.notify(me, 'afterLayout');\n\t\t},\n\n\t\t/**\n\t\t * Updates all datasets unless a plugin returns `false` to the `beforeDatasetsUpdate`\n\t\t * hook, in which case, plugins will not be called on `afterDatasetsUpdate`.\n\t\t * @private\n\t\t */\n\t\tupdateDatasets: function() {\n\t\t\tvar me = this;\n\n\t\t\tif (plugins.notify(me, 'beforeDatasetsUpdate') === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (var i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {\n\t\t\t\tme.updateDataset(i);\n\t\t\t}\n\n\t\t\tplugins.notify(me, 'afterDatasetsUpdate');\n\t\t},\n\n\t\t/**\n\t\t * Updates dataset at index unless a plugin returns `false` to the `beforeDatasetUpdate`\n\t\t * hook, in which case, plugins will not be called on `afterDatasetUpdate`.\n\t\t * @private\n\t\t */\n\t\tupdateDataset: function(index) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getDatasetMeta(index);\n\t\t\tvar args = {\n\t\t\t\tmeta: meta,\n\t\t\t\tindex: index\n\t\t\t};\n\n\t\t\tif (plugins.notify(me, 'beforeDatasetUpdate', [args]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tmeta.controller.update();\n\n\t\t\tplugins.notify(me, 'afterDatasetUpdate', [args]);\n\t\t},\n\n\t\trender: function(config) {\n\t\t\tvar me = this;\n\n\t\t\tif (!config || typeof config !== 'object') {\n\t\t\t\t// backwards compatibility\n\t\t\t\tconfig = {\n\t\t\t\t\tduration: config,\n\t\t\t\t\tlazy: arguments[1]\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tvar duration = config.duration;\n\t\t\tvar lazy = config.lazy;\n\n\t\t\tif (plugins.notify(me, 'beforeRender') === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar animationOptions = me.options.animation;\n\t\t\tvar onComplete = function(animation) {\n\t\t\t\tplugins.notify(me, 'afterRender');\n\t\t\t\thelpers.callback(animationOptions && animationOptions.onComplete, [animation], me);\n\t\t\t};\n\n\t\t\tif (animationOptions && ((typeof duration !== 'undefined' && duration !== 0) || (typeof duration === 'undefined' && animationOptions.duration !== 0))) {\n\t\t\t\tvar animation = new Animation({\n\t\t\t\t\tnumSteps: (duration || animationOptions.duration) / 16.66, // 60 fps\n\t\t\t\t\teasing: config.easing || animationOptions.easing,\n\n\t\t\t\t\trender: function(chart, animationObject) {\n\t\t\t\t\t\tvar easingFunction = helpers.easing.effects[animationObject.easing];\n\t\t\t\t\t\tvar currentStep = animationObject.currentStep;\n\t\t\t\t\t\tvar stepDecimal = currentStep / animationObject.numSteps;\n\n\t\t\t\t\t\tchart.draw(easingFunction(stepDecimal), stepDecimal, currentStep);\n\t\t\t\t\t},\n\n\t\t\t\t\tonAnimationProgress: animationOptions.onProgress,\n\t\t\t\t\tonAnimationComplete: onComplete\n\t\t\t\t});\n\n\t\t\t\tanimations.addAnimation(me, animation, duration, lazy);\n\t\t\t} else {\n\t\t\t\tme.draw();\n\n\t\t\t\t// See https://github.com/chartjs/Chart.js/issues/3781\n\t\t\t\tonComplete(new Animation({numSteps: 0, chart: me}));\n\t\t\t}\n\n\t\t\treturn me;\n\t\t},\n\n\t\tdraw: function(easingValue) {\n\t\t\tvar me = this;\n\n\t\t\tme.clear();\n\n\t\t\tif (helpers.isNullOrUndef(easingValue)) {\n\t\t\t\teasingValue = 1;\n\t\t\t}\n\n\t\t\tme.transition(easingValue);\n\n\t\t\tif (me.width <= 0 || me.height <= 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (plugins.notify(me, 'beforeDraw', [easingValue]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Draw all the scales\n\t\t\thelpers.each(me.boxes, function(box) {\n\t\t\t\tbox.draw(me.chartArea);\n\t\t\t}, me);\n\n\t\t\tif (me.scale) {\n\t\t\t\tme.scale.draw();\n\t\t\t}\n\n\t\t\tme.drawDatasets(easingValue);\n\t\t\tme._drawTooltip(easingValue);\n\n\t\t\tplugins.notify(me, 'afterDraw', [easingValue]);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\ttransition: function(easingValue) {\n\t\t\tvar me = this;\n\n\t\t\tfor (var i = 0, ilen = (me.data.datasets || []).length; i < ilen; ++i) {\n\t\t\t\tif (me.isDatasetVisible(i)) {\n\t\t\t\t\tme.getDatasetMeta(i).controller.transition(easingValue);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tme.tooltip.transition(easingValue);\n\t\t},\n\n\t\t/**\n\t\t * Draws all datasets unless a plugin returns `false` to the `beforeDatasetsDraw`\n\t\t * hook, in which case, plugins will not be called on `afterDatasetsDraw`.\n\t\t * @private\n\t\t */\n\t\tdrawDatasets: function(easingValue) {\n\t\t\tvar me = this;\n\n\t\t\tif (plugins.notify(me, 'beforeDatasetsDraw', [easingValue]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Draw datasets reversed to support proper line stacking\n\t\t\tfor (var i = (me.data.datasets || []).length - 1; i >= 0; --i) {\n\t\t\t\tif (me.isDatasetVisible(i)) {\n\t\t\t\t\tme.drawDataset(i, easingValue);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tplugins.notify(me, 'afterDatasetsDraw', [easingValue]);\n\t\t},\n\n\t\t/**\n\t\t * Draws dataset at index unless a plugin returns `false` to the `beforeDatasetDraw`\n\t\t * hook, in which case, plugins will not be called on `afterDatasetDraw`.\n\t\t * @private\n\t\t */\n\t\tdrawDataset: function(index, easingValue) {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getDatasetMeta(index);\n\t\t\tvar args = {\n\t\t\t\tmeta: meta,\n\t\t\t\tindex: index,\n\t\t\t\teasingValue: easingValue\n\t\t\t};\n\n\t\t\tif (plugins.notify(me, 'beforeDatasetDraw', [args]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tmeta.controller.draw(easingValue);\n\n\t\t\tplugins.notify(me, 'afterDatasetDraw', [args]);\n\t\t},\n\n\t\t/**\n\t\t * Draws tooltip unless a plugin returns `false` to the `beforeTooltipDraw`\n\t\t * hook, in which case, plugins will not be called on `afterTooltipDraw`.\n\t\t * @private\n\t\t */\n\t\t_drawTooltip: function(easingValue) {\n\t\t\tvar me = this;\n\t\t\tvar tooltip = me.tooltip;\n\t\t\tvar args = {\n\t\t\t\ttooltip: tooltip,\n\t\t\t\teasingValue: easingValue\n\t\t\t};\n\n\t\t\tif (plugins.notify(me, 'beforeTooltipDraw', [args]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\ttooltip.draw();\n\n\t\t\tplugins.notify(me, 'afterTooltipDraw', [args]);\n\t\t},\n\n\t\t// Get the single element that was clicked on\n\t\t// @return : An object containing the dataset index and element index of the matching element. Also contains the rectangle that was draw\n\t\tgetElementAtEvent: function(e) {\n\t\t\treturn Interaction.modes.single(this, e);\n\t\t},\n\n\t\tgetElementsAtEvent: function(e) {\n\t\t\treturn Interaction.modes.label(this, e, {intersect: true});\n\t\t},\n\n\t\tgetElementsAtXAxis: function(e) {\n\t\t\treturn Interaction.modes['x-axis'](this, e, {intersect: true});\n\t\t},\n\n\t\tgetElementsAtEventForMode: function(e, mode, options) {\n\t\t\tvar method = Interaction.modes[mode];\n\t\t\tif (typeof method === 'function') {\n\t\t\t\treturn method(this, e, options);\n\t\t\t}\n\n\t\t\treturn [];\n\t\t},\n\n\t\tgetDatasetAtEvent: function(e) {\n\t\t\treturn Interaction.modes.dataset(this, e, {intersect: true});\n\t\t},\n\n\t\tgetDatasetMeta: function(datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar dataset = me.data.datasets[datasetIndex];\n\t\t\tif (!dataset._meta) {\n\t\t\t\tdataset._meta = {};\n\t\t\t}\n\n\t\t\tvar meta = dataset._meta[me.id];\n\t\t\tif (!meta) {\n\t\t\t\tmeta = dataset._meta[me.id] = {\n\t\t\t\t\ttype: null,\n\t\t\t\t\tdata: [],\n\t\t\t\t\tdataset: null,\n\t\t\t\t\tcontroller: null,\n\t\t\t\t\thidden: null,\t\t\t// See isDatasetVisible() comment\n\t\t\t\t\txAxisID: null,\n\t\t\t\t\tyAxisID: null\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn meta;\n\t\t},\n\n\t\tgetVisibleDatasetCount: function() {\n\t\t\tvar count = 0;\n\t\t\tfor (var i = 0, ilen = this.data.datasets.length; i < ilen; ++i) {\n\t\t\t\tif (this.isDatasetVisible(i)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn count;\n\t\t},\n\n\t\tisDatasetVisible: function(datasetIndex) {\n\t\t\tvar meta = this.getDatasetMeta(datasetIndex);\n\n\t\t\t// meta.hidden is a per chart dataset hidden flag override with 3 states: if true or false,\n\t\t\t// the dataset.hidden value is ignored, else if null, the dataset hidden state is returned.\n\t\t\treturn typeof meta.hidden === 'boolean' ? !meta.hidden : !this.data.datasets[datasetIndex].hidden;\n\t\t},\n\n\t\tgenerateLegend: function() {\n\t\t\treturn this.options.legendCallback(this);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tdestroyDatasetMeta: function(datasetIndex) {\n\t\t\tvar id = this.id;\n\t\t\tvar dataset = this.data.datasets[datasetIndex];\n\t\t\tvar meta = dataset._meta && dataset._meta[id];\n\n\t\t\tif (meta) {\n\t\t\t\tmeta.controller.destroy();\n\t\t\t\tdelete dataset._meta[id];\n\t\t\t}\n\t\t},\n\n\t\tdestroy: function() {\n\t\t\tvar me = this;\n\t\t\tvar canvas = me.canvas;\n\t\t\tvar i, ilen;\n\n\t\t\tme.stop();\n\n\t\t\t// dataset controllers need to cleanup associated data\n\t\t\tfor (i = 0, ilen = me.data.datasets.length; i < ilen; ++i) {\n\t\t\t\tme.destroyDatasetMeta(i);\n\t\t\t}\n\n\t\t\tif (canvas) {\n\t\t\t\tme.unbindEvents();\n\t\t\t\thelpers.canvas.clear(me);\n\t\t\t\tplatform.releaseContext(me.ctx);\n\t\t\t\tme.canvas = null;\n\t\t\t\tme.ctx = null;\n\t\t\t}\n\n\t\t\tplugins.notify(me, 'destroy');\n\n\t\t\tdelete Chart.instances[me.id];\n\t\t},\n\n\t\ttoBase64Image: function() {\n\t\t\treturn this.canvas.toDataURL.apply(this.canvas, arguments);\n\t\t},\n\n\t\tinitToolTip: function() {\n\t\t\tvar me = this;\n\t\t\tme.tooltip = new Tooltip({\n\t\t\t\t_chart: me,\n\t\t\t\t_chartInstance: me, // deprecated, backward compatibility\n\t\t\t\t_data: me.data,\n\t\t\t\t_options: me.options.tooltips\n\t\t\t}, me);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tbindEvents: function() {\n\t\t\tvar me = this;\n\t\t\tvar listeners = me._listeners = {};\n\t\t\tvar listener = function() {\n\t\t\t\tme.eventHandler.apply(me, arguments);\n\t\t\t};\n\n\t\t\thelpers.each(me.options.events, function(type) {\n\t\t\t\tplatform.addEventListener(me, type, listener);\n\t\t\t\tlisteners[type] = listener;\n\t\t\t});\n\n\t\t\t// Elements used to detect size change should not be injected for non responsive charts.\n\t\t\t// See https://github.com/chartjs/Chart.js/issues/2210\n\t\t\tif (me.options.responsive) {\n\t\t\t\tlistener = function() {\n\t\t\t\t\tme.resize();\n\t\t\t\t};\n\n\t\t\t\tplatform.addEventListener(me, 'resize', listener);\n\t\t\t\tlisteners.resize = listener;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tunbindEvents: function() {\n\t\t\tvar me = this;\n\t\t\tvar listeners = me._listeners;\n\t\t\tif (!listeners) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tdelete me._listeners;\n\t\t\thelpers.each(listeners, function(listener, type) {\n\t\t\t\tplatform.removeEventListener(me, type, listener);\n\t\t\t});\n\t\t},\n\n\t\tupdateHoverStyle: function(elements, mode, enabled) {\n\t\t\tvar method = enabled ? 'setHoverStyle' : 'removeHoverStyle';\n\t\t\tvar element, i, ilen;\n\n\t\t\tfor (i = 0, ilen = elements.length; i < ilen; ++i) {\n\t\t\t\telement = elements[i];\n\t\t\t\tif (element) {\n\t\t\t\t\tthis.getDatasetMeta(element._datasetIndex).controller[method](element);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\teventHandler: function(e) {\n\t\t\tvar me = this;\n\t\t\tvar tooltip = me.tooltip;\n\n\t\t\tif (plugins.notify(me, 'beforeEvent', [e]) === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Buffer any update calls so that renders do not occur\n\t\t\tme._bufferedRender = true;\n\t\t\tme._bufferedRequest = null;\n\n\t\t\tvar changed = me.handleEvent(e);\n\t\t\t// for smooth tooltip animations issue #4989\n\t\t\t// the tooltip should be the source of change\n\t\t\t// Animation check workaround:\n\t\t\t// tooltip._start will be null when tooltip isn't animating\n\t\t\tif (tooltip) {\n\t\t\t\tchanged = tooltip._start\n\t\t\t\t\t? tooltip.handleEvent(e)\n\t\t\t\t\t: changed | tooltip.handleEvent(e);\n\t\t\t}\n\n\t\t\tplugins.notify(me, 'afterEvent', [e]);\n\n\t\t\tvar bufferedRequest = me._bufferedRequest;\n\t\t\tif (bufferedRequest) {\n\t\t\t\t// If we have an update that was triggered, we need to do a normal render\n\t\t\t\tme.render(bufferedRequest);\n\t\t\t} else if (changed && !me.animating) {\n\t\t\t\t// If entering, leaving, or changing elements, animate the change via pivot\n\t\t\t\tme.stop();\n\n\t\t\t\t// We only need to render at this point. Updating will cause scales to be\n\t\t\t\t// recomputed generating flicker & using more memory than necessary.\n\t\t\t\tme.render({\n\t\t\t\t\tduration: me.options.hover.animationDuration,\n\t\t\t\t\tlazy: true\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tme._bufferedRender = false;\n\t\t\tme._bufferedRequest = null;\n\n\t\t\treturn me;\n\t\t},\n\n\t\t/**\n\t\t * Handle an event\n\t\t * @private\n\t\t * @param {IEvent} event the event to handle\n\t\t * @return {Boolean} true if the chart needs to re-render\n\t\t */\n\t\thandleEvent: function(e) {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options || {};\n\t\t\tvar hoverOptions = options.hover;\n\t\t\tvar changed = false;\n\n\t\t\tme.lastActive = me.lastActive || [];\n\n\t\t\t// Find Active Elements for hover and tooltips\n\t\t\tif (e.type === 'mouseout') {\n\t\t\t\tme.active = [];\n\t\t\t} else {\n\t\t\t\tme.active = me.getElementsAtEventForMode(e, hoverOptions.mode, hoverOptions);\n\t\t\t}\n\n\t\t\t// Invoke onHover hook\n\t\t\t// Need to call with native event here to not break backwards compatibility\n\t\t\thelpers.callback(options.onHover || options.hover.onHover, [e.native, me.active], me);\n\n\t\t\tif (e.type === 'mouseup' || e.type === 'click') {\n\t\t\t\tif (options.onClick) {\n\t\t\t\t\t// Use e.native here for backwards compatibility\n\t\t\t\t\toptions.onClick.call(me, e.native, me.active);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove styling for last active (even if it may still be active)\n\t\t\tif (me.lastActive.length) {\n\t\t\t\tme.updateHoverStyle(me.lastActive, hoverOptions.mode, false);\n\t\t\t}\n\n\t\t\t// Built in hover styling\n\t\t\tif (me.active.length && hoverOptions.mode) {\n\t\t\t\tme.updateHoverStyle(me.active, hoverOptions.mode, true);\n\t\t\t}\n\n\t\t\tchanged = !helpers.arrayEquals(me.active, me.lastActive);\n\n\t\t\t// Remember Last Actives\n\t\t\tme.lastActive = me.active;\n\n\t\t\treturn changed;\n\t\t}\n\t});\n\n\t/**\n\t * Provided for backward compatibility, use Chart instead.\n\t * @class Chart.Controller\n\t * @deprecated since version 2.6.0\n\t * @todo remove at version 3\n\t * @private\n\t */\n\tChart.Controller = Chart;\n};\n\n},{\"22\":22,\"23\":23,\"26\":26,\"29\":29,\"31\":31,\"32\":32,\"34\":34,\"36\":36,\"46\":46,\"49\":49}],25:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\nmodule.exports = function(Chart) {\n\n\tvar arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift'];\n\n\t/**\n\t * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice',\n\t * 'unshift') and notify the listener AFTER the array has been altered. Listeners are\n\t * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments.\n\t */\n\tfunction listenArrayEvents(array, listener) {\n\t\tif (array._chartjs) {\n\t\t\tarray._chartjs.listeners.push(listener);\n\t\t\treturn;\n\t\t}\n\n\t\tObject.defineProperty(array, '_chartjs', {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: false,\n\t\t\tvalue: {\n\t\t\t\tlisteners: [listener]\n\t\t\t}\n\t\t});\n\n\t\tarrayEvents.forEach(function(key) {\n\t\t\tvar method = 'onData' + key.charAt(0).toUpperCase() + key.slice(1);\n\t\t\tvar base = array[key];\n\n\t\t\tObject.defineProperty(array, key, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: false,\n\t\t\t\tvalue: function() {\n\t\t\t\t\tvar args = Array.prototype.slice.call(arguments);\n\t\t\t\t\tvar res = base.apply(this, args);\n\n\t\t\t\t\thelpers.each(array._chartjs.listeners, function(object) {\n\t\t\t\t\t\tif (typeof object[method] === 'function') {\n\t\t\t\t\t\t\tobject[method].apply(object, args);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Removes the given array event listener and cleanup extra attached properties (such as\n\t * the _chartjs stub and overridden methods) if array doesn't have any more listeners.\n\t */\n\tfunction unlistenArrayEvents(array, listener) {\n\t\tvar stub = array._chartjs;\n\t\tif (!stub) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar listeners = stub.listeners;\n\t\tvar index = listeners.indexOf(listener);\n\t\tif (index !== -1) {\n\t\t\tlisteners.splice(index, 1);\n\t\t}\n\n\t\tif (listeners.length > 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tarrayEvents.forEach(function(key) {\n\t\t\tdelete array[key];\n\t\t});\n\n\t\tdelete array._chartjs;\n\t}\n\n\t// Base class for all dataset controllers (line, bar, etc)\n\tChart.DatasetController = function(chart, datasetIndex) {\n\t\tthis.initialize(chart, datasetIndex);\n\t};\n\n\thelpers.extend(Chart.DatasetController.prototype, {\n\n\t\t/**\n\t\t * Element type used to generate a meta dataset (e.g. Chart.element.Line).\n\t\t * @type {Chart.core.element}\n\t\t */\n\t\tdatasetElementType: null,\n\n\t\t/**\n\t\t * Element type used to generate a meta data (e.g. Chart.element.Point).\n\t\t * @type {Chart.core.element}\n\t\t */\n\t\tdataElementType: null,\n\n\t\tinitialize: function(chart, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tme.chart = chart;\n\t\t\tme.index = datasetIndex;\n\t\t\tme.linkScales();\n\t\t\tme.addElements();\n\t\t},\n\n\t\tupdateIndex: function(datasetIndex) {\n\t\t\tthis.index = datasetIndex;\n\t\t},\n\n\t\tlinkScales: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar dataset = me.getDataset();\n\n\t\t\tif (meta.xAxisID === null || !(meta.xAxisID in me.chart.scales)) {\n\t\t\t\tmeta.xAxisID = dataset.xAxisID || me.chart.options.scales.xAxes[0].id;\n\t\t\t}\n\t\t\tif (meta.yAxisID === null || !(meta.yAxisID in me.chart.scales)) {\n\t\t\t\tmeta.yAxisID = dataset.yAxisID || me.chart.options.scales.yAxes[0].id;\n\t\t\t}\n\t\t},\n\n\t\tgetDataset: function() {\n\t\t\treturn this.chart.data.datasets[this.index];\n\t\t},\n\n\t\tgetMeta: function() {\n\t\t\treturn this.chart.getDatasetMeta(this.index);\n\t\t},\n\n\t\tgetScaleForId: function(scaleID) {\n\t\t\treturn this.chart.scales[scaleID];\n\t\t},\n\n\t\treset: function() {\n\t\t\tthis.update(true);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tdestroy: function() {\n\t\t\tif (this._data) {\n\t\t\t\tunlistenArrayEvents(this._data, this);\n\t\t\t}\n\t\t},\n\n\t\tcreateMetaDataset: function() {\n\t\t\tvar me = this;\n\t\t\tvar type = me.datasetElementType;\n\t\t\treturn type && new type({\n\t\t\t\t_chart: me.chart,\n\t\t\t\t_datasetIndex: me.index\n\t\t\t});\n\t\t},\n\n\t\tcreateMetaData: function(index) {\n\t\t\tvar me = this;\n\t\t\tvar type = me.dataElementType;\n\t\t\treturn type && new type({\n\t\t\t\t_chart: me.chart,\n\t\t\t\t_datasetIndex: me.index,\n\t\t\t\t_index: index\n\t\t\t});\n\t\t},\n\n\t\taddElements: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar data = me.getDataset().data || [];\n\t\t\tvar metaData = meta.data;\n\t\t\tvar i, ilen;\n\n\t\t\tfor (i = 0, ilen = data.length; i < ilen; ++i) {\n\t\t\t\tmetaData[i] = metaData[i] || me.createMetaData(i);\n\t\t\t}\n\n\t\t\tmeta.dataset = meta.dataset || me.createMetaDataset();\n\t\t},\n\n\t\taddElementAndReset: function(index) {\n\t\t\tvar element = this.createMetaData(index);\n\t\t\tthis.getMeta().data.splice(index, 0, element);\n\t\t\tthis.updateElement(element, index, true);\n\t\t},\n\n\t\tbuildOrUpdateElements: function() {\n\t\t\tvar me = this;\n\t\t\tvar dataset = me.getDataset();\n\t\t\tvar data = dataset.data || (dataset.data = []);\n\n\t\t\t// In order to correctly handle data addition/deletion animation (an thus simulate\n\t\t\t// real-time charts), we need to monitor these data modifications and synchronize\n\t\t\t// the internal meta data accordingly.\n\t\t\tif (me._data !== data) {\n\t\t\t\tif (me._data) {\n\t\t\t\t\t// This case happens when the user replaced the data array instance.\n\t\t\t\t\tunlistenArrayEvents(me._data, me);\n\t\t\t\t}\n\n\t\t\t\tlistenArrayEvents(data, me);\n\t\t\t\tme._data = data;\n\t\t\t}\n\n\t\t\t// Re-sync meta data in case the user replaced the data array or if we missed\n\t\t\t// any updates and so make sure that we handle number of datapoints changing.\n\t\t\tme.resyncElements();\n\t\t},\n\n\t\tupdate: helpers.noop,\n\n\t\ttransition: function(easingValue) {\n\t\t\tvar meta = this.getMeta();\n\t\t\tvar elements = meta.data || [];\n\t\t\tvar ilen = elements.length;\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < ilen; ++i) {\n\t\t\t\telements[i].transition(easingValue);\n\t\t\t}\n\n\t\t\tif (meta.dataset) {\n\t\t\t\tmeta.dataset.transition(easingValue);\n\t\t\t}\n\t\t},\n\n\t\tdraw: function() {\n\t\t\tvar meta = this.getMeta();\n\t\t\tvar elements = meta.data || [];\n\t\t\tvar ilen = elements.length;\n\t\t\tvar i = 0;\n\n\t\t\tif (meta.dataset) {\n\t\t\t\tmeta.dataset.draw();\n\t\t\t}\n\n\t\t\tfor (; i < ilen; ++i) {\n\t\t\t\telements[i].draw();\n\t\t\t}\n\t\t},\n\n\t\tremoveHoverStyle: function(element) {\n\t\t\thelpers.merge(element._model, element.$previousStyle || {});\n\t\t\tdelete element.$previousStyle;\n\t\t},\n\n\t\tsetHoverStyle: function(element) {\n\t\t\tvar dataset = this.chart.data.datasets[element._datasetIndex];\n\t\t\tvar index = element._index;\n\t\t\tvar custom = element.custom || {};\n\t\t\tvar valueOrDefault = helpers.valueAtIndexOrDefault;\n\t\t\tvar getHoverColor = helpers.getHoverColor;\n\t\t\tvar model = element._model;\n\n\t\t\telement.$previousStyle = {\n\t\t\t\tbackgroundColor: model.backgroundColor,\n\t\t\t\tborderColor: model.borderColor,\n\t\t\t\tborderWidth: model.borderWidth\n\t\t\t};\n\n\t\t\tmodel.backgroundColor = custom.hoverBackgroundColor ? custom.hoverBackgroundColor : valueOrDefault(dataset.hoverBackgroundColor, index, getHoverColor(model.backgroundColor));\n\t\t\tmodel.borderColor = custom.hoverBorderColor ? custom.hoverBorderColor : valueOrDefault(dataset.hoverBorderColor, index, getHoverColor(model.borderColor));\n\t\t\tmodel.borderWidth = custom.hoverBorderWidth ? custom.hoverBorderWidth : valueOrDefault(dataset.hoverBorderWidth, index, model.borderWidth);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tresyncElements: function() {\n\t\t\tvar me = this;\n\t\t\tvar meta = me.getMeta();\n\t\t\tvar data = me.getDataset().data;\n\t\t\tvar numMeta = meta.data.length;\n\t\t\tvar numData = data.length;\n\n\t\t\tif (numData < numMeta) {\n\t\t\t\tmeta.data.splice(numData, numMeta - numData);\n\t\t\t} else if (numData > numMeta) {\n\t\t\t\tme.insertElements(numMeta, numData - numMeta);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tinsertElements: function(start, count) {\n\t\t\tfor (var i = 0; i < count; ++i) {\n\t\t\t\tthis.addElementAndReset(start + i);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataPush: function() {\n\t\t\tthis.insertElements(this.getDataset().data.length - 1, arguments.length);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataPop: function() {\n\t\t\tthis.getMeta().data.pop();\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataShift: function() {\n\t\t\tthis.getMeta().data.shift();\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataSplice: function(start, count) {\n\t\t\tthis.getMeta().data.splice(start, count);\n\t\t\tthis.insertElements(start, arguments.length - 2);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tonDataUnshift: function() {\n\t\t\tthis.insertElements(0, arguments.length);\n\t\t}\n\t});\n\n\tChart.DatasetController.extend = helpers.inherits;\n};\n\n},{\"46\":46}],26:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\nmodule.exports = {\n\t/**\n\t * @private\n\t */\n\t_set: function(scope, values) {\n\t\treturn helpers.merge(this[scope] || (this[scope] = {}), values);\n\t}\n};\n\n},{\"46\":46}],27:[function(require,module,exports){\n'use strict';\n\nvar color = require(3);\nvar helpers = require(46);\n\nfunction interpolate(start, view, model, ease) {\n\tvar keys = Object.keys(model);\n\tvar i, ilen, key, actual, origin, target, type, c0, c1;\n\n\tfor (i = 0, ilen = keys.length; i < ilen; ++i) {\n\t\tkey = keys[i];\n\n\t\ttarget = model[key];\n\n\t\t// if a value is added to the model after pivot() has been called, the view\n\t\t// doesn't contain it, so let's initialize the view to the target value.\n\t\tif (!view.hasOwnProperty(key)) {\n\t\t\tview[key] = target;\n\t\t}\n\n\t\tactual = view[key];\n\n\t\tif (actual === target || key[0] === '_') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!start.hasOwnProperty(key)) {\n\t\t\tstart[key] = actual;\n\t\t}\n\n\t\torigin = start[key];\n\n\t\ttype = typeof target;\n\n\t\tif (type === typeof origin) {\n\t\t\tif (type === 'string') {\n\t\t\t\tc0 = color(origin);\n\t\t\t\tif (c0.valid) {\n\t\t\t\t\tc1 = color(target);\n\t\t\t\t\tif (c1.valid) {\n\t\t\t\t\t\tview[key] = c1.mix(c0, ease).rgbString();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (type === 'number' && isFinite(origin) && isFinite(target)) {\n\t\t\t\tview[key] = origin + (target - origin) * ease;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tview[key] = target;\n\t}\n}\n\nvar Element = function(configuration) {\n\thelpers.extend(this, configuration);\n\tthis.initialize.apply(this, arguments);\n};\n\nhelpers.extend(Element.prototype, {\n\n\tinitialize: function() {\n\t\tthis.hidden = false;\n\t},\n\n\tpivot: function() {\n\t\tvar me = this;\n\t\tif (!me._view) {\n\t\t\tme._view = helpers.clone(me._model);\n\t\t}\n\t\tme._start = {};\n\t\treturn me;\n\t},\n\n\ttransition: function(ease) {\n\t\tvar me = this;\n\t\tvar model = me._model;\n\t\tvar start = me._start;\n\t\tvar view = me._view;\n\n\t\t// No animation -> No Transition\n\t\tif (!model || ease === 1) {\n\t\t\tme._view = model;\n\t\t\tme._start = null;\n\t\t\treturn me;\n\t\t}\n\n\t\tif (!view) {\n\t\t\tview = me._view = {};\n\t\t}\n\n\t\tif (!start) {\n\t\t\tstart = me._start = {};\n\t\t}\n\n\t\tinterpolate(start, view, model, ease);\n\n\t\treturn me;\n\t},\n\n\ttooltipPosition: function() {\n\t\treturn {\n\t\t\tx: this._model.x,\n\t\t\ty: this._model.y\n\t\t};\n\t},\n\n\thasValue: function() {\n\t\treturn helpers.isNumber(this._model.x) && helpers.isNumber(this._model.y);\n\t}\n});\n\nElement.extend = helpers.inherits;\n\nmodule.exports = Element;\n\n},{\"3\":3,\"46\":46}],28:[function(require,module,exports){\n/* global window: false */\n/* global document: false */\n'use strict';\n\nvar color = require(3);\nvar defaults = require(26);\nvar helpers = require(46);\nvar scaleService = require(34);\n\nmodule.exports = function() {\n\n\t// -- Basic js utility methods\n\n\thelpers.configMerge = function(/* objects ... */) {\n\t\treturn helpers.merge(helpers.clone(arguments[0]), [].slice.call(arguments, 1), {\n\t\t\tmerger: function(key, target, source, options) {\n\t\t\t\tvar tval = target[key] || {};\n\t\t\t\tvar sval = source[key];\n\n\t\t\t\tif (key === 'scales') {\n\t\t\t\t\t// scale config merging is complex. Add our own function here for that\n\t\t\t\t\ttarget[key] = helpers.scaleMerge(tval, sval);\n\t\t\t\t} else if (key === 'scale') {\n\t\t\t\t\t// used in polar area & radar charts since there is only one scale\n\t\t\t\t\ttarget[key] = helpers.merge(tval, [scaleService.getScaleDefaults(sval.type), sval]);\n\t\t\t\t} else {\n\t\t\t\t\thelpers._merger(key, target, source, options);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t};\n\n\thelpers.scaleMerge = function(/* objects ... */) {\n\t\treturn helpers.merge(helpers.clone(arguments[0]), [].slice.call(arguments, 1), {\n\t\t\tmerger: function(key, target, source, options) {\n\t\t\t\tif (key === 'xAxes' || key === 'yAxes') {\n\t\t\t\t\tvar slen = source[key].length;\n\t\t\t\t\tvar i, type, scale;\n\n\t\t\t\t\tif (!target[key]) {\n\t\t\t\t\t\ttarget[key] = [];\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (i = 0; i < slen; ++i) {\n\t\t\t\t\t\tscale = source[key][i];\n\t\t\t\t\t\ttype = helpers.valueOrDefault(scale.type, key === 'xAxes' ? 'category' : 'linear');\n\n\t\t\t\t\t\tif (i >= target[key].length) {\n\t\t\t\t\t\t\ttarget[key].push({});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!target[key][i].type || (scale.type && scale.type !== target[key][i].type)) {\n\t\t\t\t\t\t\t// new/untyped scale or type changed: let's apply the new defaults\n\t\t\t\t\t\t\t// then merge source scale to correctly overwrite the defaults.\n\t\t\t\t\t\t\thelpers.merge(target[key][i], [scaleService.getScaleDefaults(type), scale]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// scales type are the same\n\t\t\t\t\t\t\thelpers.merge(target[key][i], scale);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\thelpers._merger(key, target, source, options);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t};\n\n\thelpers.where = function(collection, filterCallback) {\n\t\tif (helpers.isArray(collection) && Array.prototype.filter) {\n\t\t\treturn collection.filter(filterCallback);\n\t\t}\n\t\tvar filtered = [];\n\n\t\thelpers.each(collection, function(item) {\n\t\t\tif (filterCallback(item)) {\n\t\t\t\tfiltered.push(item);\n\t\t\t}\n\t\t});\n\n\t\treturn filtered;\n\t};\n\thelpers.findIndex = Array.prototype.findIndex ?\n\t\tfunction(array, callback, scope) {\n\t\t\treturn array.findIndex(callback, scope);\n\t\t} :\n\t\tfunction(array, callback, scope) {\n\t\t\tscope = scope === undefined ? array : scope;\n\t\t\tfor (var i = 0, ilen = array.length; i < ilen; ++i) {\n\t\t\t\tif (callback.call(scope, array[i], i, array)) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn -1;\n\t\t};\n\thelpers.findNextWhere = function(arrayToSearch, filterCallback, startIndex) {\n\t\t// Default to start of the array\n\t\tif (helpers.isNullOrUndef(startIndex)) {\n\t\t\tstartIndex = -1;\n\t\t}\n\t\tfor (var i = startIndex + 1; i < arrayToSearch.length; i++) {\n\t\t\tvar currentItem = arrayToSearch[i];\n\t\t\tif (filterCallback(currentItem)) {\n\t\t\t\treturn currentItem;\n\t\t\t}\n\t\t}\n\t};\n\thelpers.findPreviousWhere = function(arrayToSearch, filterCallback, startIndex) {\n\t\t// Default to end of the array\n\t\tif (helpers.isNullOrUndef(startIndex)) {\n\t\t\tstartIndex = arrayToSearch.length;\n\t\t}\n\t\tfor (var i = startIndex - 1; i >= 0; i--) {\n\t\t\tvar currentItem = arrayToSearch[i];\n\t\t\tif (filterCallback(currentItem)) {\n\t\t\t\treturn currentItem;\n\t\t\t}\n\t\t}\n\t};\n\n\t// -- Math methods\n\thelpers.isNumber = function(n) {\n\t\treturn !isNaN(parseFloat(n)) && isFinite(n);\n\t};\n\thelpers.almostEquals = function(x, y, epsilon) {\n\t\treturn Math.abs(x - y) < epsilon;\n\t};\n\thelpers.almostWhole = function(x, epsilon) {\n\t\tvar rounded = Math.round(x);\n\t\treturn (((rounded - epsilon) < x) && ((rounded + epsilon) > x));\n\t};\n\thelpers.max = function(array) {\n\t\treturn array.reduce(function(max, value) {\n\t\t\tif (!isNaN(value)) {\n\t\t\t\treturn Math.max(max, value);\n\t\t\t}\n\t\t\treturn max;\n\t\t}, Number.NEGATIVE_INFINITY);\n\t};\n\thelpers.min = function(array) {\n\t\treturn array.reduce(function(min, value) {\n\t\t\tif (!isNaN(value)) {\n\t\t\t\treturn Math.min(min, value);\n\t\t\t}\n\t\t\treturn min;\n\t\t}, Number.POSITIVE_INFINITY);\n\t};\n\thelpers.sign = Math.sign ?\n\t\tfunction(x) {\n\t\t\treturn Math.sign(x);\n\t\t} :\n\t\tfunction(x) {\n\t\t\tx = +x; // convert to a number\n\t\t\tif (x === 0 || isNaN(x)) {\n\t\t\t\treturn x;\n\t\t\t}\n\t\t\treturn x > 0 ? 1 : -1;\n\t\t};\n\thelpers.log10 = Math.log10 ?\n\t\tfunction(x) {\n\t\t\treturn Math.log10(x);\n\t\t} :\n\t\tfunction(x) {\n\t\t\tvar exponent = Math.log(x) * Math.LOG10E; // Math.LOG10E = 1 / Math.LN10.\n\t\t\t// Check for whole powers of 10,\n\t\t\t// which due to floating point rounding error should be corrected.\n\t\t\tvar powerOf10 = Math.round(exponent);\n\t\t\tvar isPowerOf10 = x === Math.pow(10, powerOf10);\n\n\t\t\treturn isPowerOf10 ? powerOf10 : exponent;\n\t\t};\n\thelpers.toRadians = function(degrees) {\n\t\treturn degrees * (Math.PI / 180);\n\t};\n\thelpers.toDegrees = function(radians) {\n\t\treturn radians * (180 / Math.PI);\n\t};\n\t// Gets the angle from vertical upright to the point about a centre.\n\thelpers.getAngleFromPoint = function(centrePoint, anglePoint) {\n\t\tvar distanceFromXCenter = anglePoint.x - centrePoint.x;\n\t\tvar distanceFromYCenter = anglePoint.y - centrePoint.y;\n\t\tvar radialDistanceFromCenter = Math.sqrt(distanceFromXCenter * distanceFromXCenter + distanceFromYCenter * distanceFromYCenter);\n\n\t\tvar angle = Math.atan2(distanceFromYCenter, distanceFromXCenter);\n\n\t\tif (angle < (-0.5 * Math.PI)) {\n\t\t\tangle += 2.0 * Math.PI; // make sure the returned angle is in the range of (-PI/2, 3PI/2]\n\t\t}\n\n\t\treturn {\n\t\t\tangle: angle,\n\t\t\tdistance: radialDistanceFromCenter\n\t\t};\n\t};\n\thelpers.distanceBetweenPoints = function(pt1, pt2) {\n\t\treturn Math.sqrt(Math.pow(pt2.x - pt1.x, 2) + Math.pow(pt2.y - pt1.y, 2));\n\t};\n\thelpers.aliasPixel = function(pixelWidth) {\n\t\treturn (pixelWidth % 2 === 0) ? 0 : 0.5;\n\t};\n\thelpers.splineCurve = function(firstPoint, middlePoint, afterPoint, t) {\n\t\t// Props to Rob Spencer at scaled innovation for his post on splining between points\n\t\t// http://scaledinnovation.com/analytics/splines/aboutSplines.html\n\n\t\t// This function must also respect \"skipped\" points\n\n\t\tvar previous = firstPoint.skip ? middlePoint : firstPoint;\n\t\tvar current = middlePoint;\n\t\tvar next = afterPoint.skip ? middlePoint : afterPoint;\n\n\t\tvar d01 = Math.sqrt(Math.pow(current.x - previous.x, 2) + Math.pow(current.y - previous.y, 2));\n\t\tvar d12 = Math.sqrt(Math.pow(next.x - current.x, 2) + Math.pow(next.y - current.y, 2));\n\n\t\tvar s01 = d01 / (d01 + d12);\n\t\tvar s12 = d12 / (d01 + d12);\n\n\t\t// If all points are the same, s01 & s02 will be inf\n\t\ts01 = isNaN(s01) ? 0 : s01;\n\t\ts12 = isNaN(s12) ? 0 : s12;\n\n\t\tvar fa = t * s01; // scaling factor for triangle Ta\n\t\tvar fb = t * s12;\n\n\t\treturn {\n\t\t\tprevious: {\n\t\t\t\tx: current.x - fa * (next.x - previous.x),\n\t\t\t\ty: current.y - fa * (next.y - previous.y)\n\t\t\t},\n\t\t\tnext: {\n\t\t\t\tx: current.x + fb * (next.x - previous.x),\n\t\t\t\ty: current.y + fb * (next.y - previous.y)\n\t\t\t}\n\t\t};\n\t};\n\thelpers.EPSILON = Number.EPSILON || 1e-14;\n\thelpers.splineCurveMonotone = function(points) {\n\t\t// This function calculates BÃ©zier control points in a similar way than |splineCurve|,\n\t\t// but preserves monotonicity of the provided data and ensures no local extremums are added\n\t\t// between the dataset discrete points due to the interpolation.\n\t\t// See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation\n\n\t\tvar pointsWithTangents = (points || []).map(function(point) {\n\t\t\treturn {\n\t\t\t\tmodel: point._model,\n\t\t\t\tdeltaK: 0,\n\t\t\t\tmK: 0\n\t\t\t};\n\t\t});\n\n\t\t// Calculate slopes (deltaK) and initialize tangents (mK)\n\t\tvar pointsLen = pointsWithTangents.length;\n\t\tvar i, pointBefore, pointCurrent, pointAfter;\n\t\tfor (i = 0; i < pointsLen; ++i) {\n\t\t\tpointCurrent = pointsWithTangents[i];\n\t\t\tif (pointCurrent.model.skip) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tpointBefore = i > 0 ? pointsWithTangents[i - 1] : null;\n\t\t\tpointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;\n\t\t\tif (pointAfter && !pointAfter.model.skip) {\n\t\t\t\tvar slopeDeltaX = (pointAfter.model.x - pointCurrent.model.x);\n\n\t\t\t\t// In the case of two points that appear at the same x pixel, slopeDeltaX is 0\n\t\t\t\tpointCurrent.deltaK = slopeDeltaX !== 0 ? (pointAfter.model.y - pointCurrent.model.y) / slopeDeltaX : 0;\n\t\t\t}\n\n\t\t\tif (!pointBefore || pointBefore.model.skip) {\n\t\t\t\tpointCurrent.mK = pointCurrent.deltaK;\n\t\t\t} else if (!pointAfter || pointAfter.model.skip) {\n\t\t\t\tpointCurrent.mK = pointBefore.deltaK;\n\t\t\t} else if (this.sign(pointBefore.deltaK) !== this.sign(pointCurrent.deltaK)) {\n\t\t\t\tpointCurrent.mK = 0;\n\t\t\t} else {\n\t\t\t\tpointCurrent.mK = (pointBefore.deltaK + pointCurrent.deltaK) / 2;\n\t\t\t}\n\t\t}\n\n\t\t// Adjust tangents to ensure monotonic properties\n\t\tvar alphaK, betaK, tauK, squaredMagnitude;\n\t\tfor (i = 0; i < pointsLen - 1; ++i) {\n\t\t\tpointCurrent = pointsWithTangents[i];\n\t\t\tpointAfter = pointsWithTangents[i + 1];\n\t\t\tif (pointCurrent.model.skip || pointAfter.model.skip) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (helpers.almostEquals(pointCurrent.deltaK, 0, this.EPSILON)) {\n\t\t\t\tpointCurrent.mK = pointAfter.mK = 0;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\talphaK = pointCurrent.mK / pointCurrent.deltaK;\n\t\t\tbetaK = pointAfter.mK / pointCurrent.deltaK;\n\t\t\tsquaredMagnitude = Math.pow(alphaK, 2) + Math.pow(betaK, 2);\n\t\t\tif (squaredMagnitude <= 9) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\ttauK = 3 / Math.sqrt(squaredMagnitude);\n\t\t\tpointCurrent.mK = alphaK * tauK * pointCurrent.deltaK;\n\t\t\tpointAfter.mK = betaK * tauK * pointCurrent.deltaK;\n\t\t}\n\n\t\t// Compute control points\n\t\tvar deltaX;\n\t\tfor (i = 0; i < pointsLen; ++i) {\n\t\t\tpointCurrent = pointsWithTangents[i];\n\t\t\tif (pointCurrent.model.skip) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tpointBefore = i > 0 ? pointsWithTangents[i - 1] : null;\n\t\t\tpointAfter = i < pointsLen - 1 ? pointsWithTangents[i + 1] : null;\n\t\t\tif (pointBefore && !pointBefore.model.skip) {\n\t\t\t\tdeltaX = (pointCurrent.model.x - pointBefore.model.x) / 3;\n\t\t\t\tpointCurrent.model.controlPointPreviousX = pointCurrent.model.x - deltaX;\n\t\t\t\tpointCurrent.model.controlPointPreviousY = pointCurrent.model.y - deltaX * pointCurrent.mK;\n\t\t\t}\n\t\t\tif (pointAfter && !pointAfter.model.skip) {\n\t\t\t\tdeltaX = (pointAfter.model.x - pointCurrent.model.x) / 3;\n\t\t\t\tpointCurrent.model.controlPointNextX = pointCurrent.model.x + deltaX;\n\t\t\t\tpointCurrent.model.controlPointNextY = pointCurrent.model.y + deltaX * pointCurrent.mK;\n\t\t\t}\n\t\t}\n\t};\n\thelpers.nextItem = function(collection, index, loop) {\n\t\tif (loop) {\n\t\t\treturn index >= collection.length - 1 ? collection[0] : collection[index + 1];\n\t\t}\n\t\treturn index >= collection.length - 1 ? collection[collection.length - 1] : collection[index + 1];\n\t};\n\thelpers.previousItem = function(collection, index, loop) {\n\t\tif (loop) {\n\t\t\treturn index <= 0 ? collection[collection.length - 1] : collection[index - 1];\n\t\t}\n\t\treturn index <= 0 ? collection[0] : collection[index - 1];\n\t};\n\t// Implementation of the nice number algorithm used in determining where axis labels will go\n\thelpers.niceNum = function(range, round) {\n\t\tvar exponent = Math.floor(helpers.log10(range));\n\t\tvar fraction = range / Math.pow(10, exponent);\n\t\tvar niceFraction;\n\n\t\tif (round) {\n\t\t\tif (fraction < 1.5) {\n\t\t\t\tniceFraction = 1;\n\t\t\t} else if (fraction < 3) {\n\t\t\t\tniceFraction = 2;\n\t\t\t} else if (fraction < 7) {\n\t\t\t\tniceFraction = 5;\n\t\t\t} else {\n\t\t\t\tniceFraction = 10;\n\t\t\t}\n\t\t} else if (fraction <= 1.0) {\n\t\t\tniceFraction = 1;\n\t\t} else if (fraction <= 2) {\n\t\t\tniceFraction = 2;\n\t\t} else if (fraction <= 5) {\n\t\t\tniceFraction = 5;\n\t\t} else {\n\t\t\tniceFraction = 10;\n\t\t}\n\n\t\treturn niceFraction * Math.pow(10, exponent);\n\t};\n\t// Request animation polyfill - http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/\n\thelpers.requestAnimFrame = (function() {\n\t\tif (typeof window === 'undefined') {\n\t\t\treturn function(callback) {\n\t\t\t\tcallback();\n\t\t\t};\n\t\t}\n\t\treturn window.requestAnimationFrame ||\n\t\t\twindow.webkitRequestAnimationFrame ||\n\t\t\twindow.mozRequestAnimationFrame ||\n\t\t\twindow.oRequestAnimationFrame ||\n\t\t\twindow.msRequestAnimationFrame ||\n\t\t\tfunction(callback) {\n\t\t\t\treturn window.setTimeout(callback, 1000 / 60);\n\t\t\t};\n\t}());\n\t// -- DOM methods\n\thelpers.getRelativePosition = function(evt, chart) {\n\t\tvar mouseX, mouseY;\n\t\tvar e = evt.originalEvent || evt;\n\t\tvar canvas = evt.target || evt.srcElement;\n\t\tvar boundingRect = canvas.getBoundingClientRect();\n\n\t\tvar touches = e.touches;\n\t\tif (touches && touches.length > 0) {\n\t\t\tmouseX = touches[0].clientX;\n\t\t\tmouseY = touches[0].clientY;\n\n\t\t} else {\n\t\t\tmouseX = e.clientX;\n\t\t\tmouseY = e.clientY;\n\t\t}\n\n\t\t// Scale mouse coordinates into canvas coordinates\n\t\t// by following the pattern laid out by 'jerryj' in the comments of\n\t\t// http://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/\n\t\tvar paddingLeft = parseFloat(helpers.getStyle(canvas, 'padding-left'));\n\t\tvar paddingTop = parseFloat(helpers.getStyle(canvas, 'padding-top'));\n\t\tvar paddingRight = parseFloat(helpers.getStyle(canvas, 'padding-right'));\n\t\tvar paddingBottom = parseFloat(helpers.getStyle(canvas, 'padding-bottom'));\n\t\tvar width = boundingRect.right - boundingRect.left - paddingLeft - paddingRight;\n\t\tvar height = boundingRect.bottom - boundingRect.top - paddingTop - paddingBottom;\n\n\t\t// We divide by the current device pixel ratio, because the canvas is scaled up by that amount in each direction. However\n\t\t// the backend model is in unscaled coordinates. Since we are going to deal with our model coordinates, we go back here\n\t\tmouseX = Math.round((mouseX - boundingRect.left - paddingLeft) / (width) * canvas.width / chart.currentDevicePixelRatio);\n\t\tmouseY = Math.round((mouseY - boundingRect.top - paddingTop) / (height) * canvas.height / chart.currentDevicePixelRatio);\n\n\t\treturn {\n\t\t\tx: mouseX,\n\t\t\ty: mouseY\n\t\t};\n\n\t};\n\n\t// Private helper function to convert max-width/max-height values that may be percentages into a number\n\tfunction parseMaxStyle(styleValue, node, parentProperty) {\n\t\tvar valueInPixels;\n\t\tif (typeof styleValue === 'string') {\n\t\t\tvalueInPixels = parseInt(styleValue, 10);\n\n\t\t\tif (styleValue.indexOf('%') !== -1) {\n\t\t\t\t// percentage * size in dimension\n\t\t\t\tvalueInPixels = valueInPixels / 100 * node.parentNode[parentProperty];\n\t\t\t}\n\t\t} else {\n\t\t\tvalueInPixels = styleValue;\n\t\t}\n\n\t\treturn valueInPixels;\n\t}\n\n\t/**\n\t * Returns if the given value contains an effective constraint.\n\t * @private\n\t */\n\tfunction isConstrainedValue(value) {\n\t\treturn value !== undefined && value !== null && value !== 'none';\n\t}\n\n\t// Private helper to get a constraint dimension\n\t// @param domNode : the node to check the constraint on\n\t// @param maxStyle : the style that defines the maximum for the direction we are using (maxWidth / maxHeight)\n\t// @param percentageProperty : property of parent to use when calculating width as a percentage\n\t// @see http://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser\n\tfunction getConstraintDimension(domNode, maxStyle, percentageProperty) {\n\t\tvar view = document.defaultView;\n\t\tvar parentNode = helpers._getParentNode(domNode);\n\t\tvar constrainedNode = view.getComputedStyle(domNode)[maxStyle];\n\t\tvar constrainedContainer = view.getComputedStyle(parentNode)[maxStyle];\n\t\tvar hasCNode = isConstrainedValue(constrainedNode);\n\t\tvar hasCContainer = isConstrainedValue(constrainedContainer);\n\t\tvar infinity = Number.POSITIVE_INFINITY;\n\n\t\tif (hasCNode || hasCContainer) {\n\t\t\treturn Math.min(\n\t\t\t\thasCNode ? parseMaxStyle(constrainedNode, domNode, percentageProperty) : infinity,\n\t\t\t\thasCContainer ? parseMaxStyle(constrainedContainer, parentNode, percentageProperty) : infinity);\n\t\t}\n\n\t\treturn 'none';\n\t}\n\t// returns Number or undefined if no constraint\n\thelpers.getConstraintWidth = function(domNode) {\n\t\treturn getConstraintDimension(domNode, 'max-width', 'clientWidth');\n\t};\n\t// returns Number or undefined if no constraint\n\thelpers.getConstraintHeight = function(domNode) {\n\t\treturn getConstraintDimension(domNode, 'max-height', 'clientHeight');\n\t};\n\t/**\n\t * @private\n \t */\n\thelpers._calculatePadding = function(container, padding, parentDimension) {\n\t\tpadding = helpers.getStyle(container, padding);\n\n\t\treturn padding.indexOf('%') > -1 ? parentDimension / parseInt(padding, 10) : parseInt(padding, 10);\n\t};\n\t/**\n\t * @private\n\t */\n\thelpers._getParentNode = function(domNode) {\n\t\tvar parent = domNode.parentNode;\n\t\tif (parent && parent.host) {\n\t\t\tparent = parent.host;\n\t\t}\n\t\treturn parent;\n\t};\n\thelpers.getMaximumWidth = function(domNode) {\n\t\tvar container = helpers._getParentNode(domNode);\n\t\tif (!container) {\n\t\t\treturn domNode.clientWidth;\n\t\t}\n\n\t\tvar clientWidth = container.clientWidth;\n\t\tvar paddingLeft = helpers._calculatePadding(container, 'padding-left', clientWidth);\n\t\tvar paddingRight = helpers._calculatePadding(container, 'padding-right', clientWidth);\n\n\t\tvar w = clientWidth - paddingLeft - paddingRight;\n\t\tvar cw = helpers.getConstraintWidth(domNode);\n\t\treturn isNaN(cw) ? w : Math.min(w, cw);\n\t};\n\thelpers.getMaximumHeight = function(domNode) {\n\t\tvar container = helpers._getParentNode(domNode);\n\t\tif (!container) {\n\t\t\treturn domNode.clientHeight;\n\t\t}\n\n\t\tvar clientHeight = container.clientHeight;\n\t\tvar paddingTop = helpers._calculatePadding(container, 'padding-top', clientHeight);\n\t\tvar paddingBottom = helpers._calculatePadding(container, 'padding-bottom', clientHeight);\n\n\t\tvar h = clientHeight - paddingTop - paddingBottom;\n\t\tvar ch = helpers.getConstraintHeight(domNode);\n\t\treturn isNaN(ch) ? h : Math.min(h, ch);\n\t};\n\thelpers.getStyle = function(el, property) {\n\t\treturn el.currentStyle ?\n\t\t\tel.currentStyle[property] :\n\t\t\tdocument.defaultView.getComputedStyle(el, null).getPropertyValue(property);\n\t};\n\thelpers.retinaScale = function(chart, forceRatio) {\n\t\tvar pixelRatio = chart.currentDevicePixelRatio = forceRatio || (typeof window !== 'undefined' && window.devicePixelRatio) || 1;\n\t\tif (pixelRatio === 1) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar canvas = chart.canvas;\n\t\tvar height = chart.height;\n\t\tvar width = chart.width;\n\n\t\tcanvas.height = height * pixelRatio;\n\t\tcanvas.width = width * pixelRatio;\n\t\tchart.ctx.scale(pixelRatio, pixelRatio);\n\n\t\t// If no style has been set on the canvas, the render size is used as display size,\n\t\t// making the chart visually bigger, so let's enforce it to the \"correct\" values.\n\t\t// See https://github.com/chartjs/Chart.js/issues/3575\n\t\tif (!canvas.style.height && !canvas.style.width) {\n\t\t\tcanvas.style.height = height + 'px';\n\t\t\tcanvas.style.width = width + 'px';\n\t\t}\n\t};\n\t// -- Canvas methods\n\thelpers.fontString = function(pixelSize, fontStyle, fontFamily) {\n\t\treturn fontStyle + ' ' + pixelSize + 'px ' + fontFamily;\n\t};\n\thelpers.longestText = function(ctx, font, arrayOfThings, cache) {\n\t\tcache = cache || {};\n\t\tvar data = cache.data = cache.data || {};\n\t\tvar gc = cache.garbageCollect = cache.garbageCollect || [];\n\n\t\tif (cache.font !== font) {\n\t\t\tdata = cache.data = {};\n\t\t\tgc = cache.garbageCollect = [];\n\t\t\tcache.font = font;\n\t\t}\n\n\t\tctx.font = font;\n\t\tvar longest = 0;\n\t\thelpers.each(arrayOfThings, function(thing) {\n\t\t\t// Undefined strings and arrays should not be measured\n\t\t\tif (thing !== undefined && thing !== null && helpers.isArray(thing) !== true) {\n\t\t\t\tlongest = helpers.measureText(ctx, data, gc, longest, thing);\n\t\t\t} else if (helpers.isArray(thing)) {\n\t\t\t\t// if it is an array lets measure each element\n\t\t\t\t// to do maybe simplify this function a bit so we can do this more recursively?\n\t\t\t\thelpers.each(thing, function(nestedThing) {\n\t\t\t\t\t// Undefined strings and arrays should not be measured\n\t\t\t\t\tif (nestedThing !== undefined && nestedThing !== null && !helpers.isArray(nestedThing)) {\n\t\t\t\t\t\tlongest = helpers.measureText(ctx, data, gc, longest, nestedThing);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tvar gcLen = gc.length / 2;\n\t\tif (gcLen > arrayOfThings.length) {\n\t\t\tfor (var i = 0; i < gcLen; i++) {\n\t\t\t\tdelete data[gc[i]];\n\t\t\t}\n\t\t\tgc.splice(0, gcLen);\n\t\t}\n\t\treturn longest;\n\t};\n\thelpers.measureText = function(ctx, data, gc, longest, string) {\n\t\tvar textWidth = data[string];\n\t\tif (!textWidth) {\n\t\t\ttextWidth = data[string] = ctx.measureText(string).width;\n\t\t\tgc.push(string);\n\t\t}\n\t\tif (textWidth > longest) {\n\t\t\tlongest = textWidth;\n\t\t}\n\t\treturn longest;\n\t};\n\thelpers.numberOfLabelLines = function(arrayOfThings) {\n\t\tvar numberOfLines = 1;\n\t\thelpers.each(arrayOfThings, function(thing) {\n\t\t\tif (helpers.isArray(thing)) {\n\t\t\t\tif (thing.length > numberOfLines) {\n\t\t\t\t\tnumberOfLines = thing.length;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn numberOfLines;\n\t};\n\n\thelpers.color = !color ?\n\t\tfunction(value) {\n\t\t\tconsole.error('Color.js not found!');\n\t\t\treturn value;\n\t\t} :\n\t\tfunction(value) {\n\t\t\t/* global CanvasGradient */\n\t\t\tif (value instanceof CanvasGradient) {\n\t\t\t\tvalue = defaults.global.defaultColor;\n\t\t\t}\n\n\t\t\treturn color(value);\n\t\t};\n\n\thelpers.getHoverColor = function(colorValue) {\n\t\t/* global CanvasPattern */\n\t\treturn (colorValue instanceof CanvasPattern) ?\n\t\t\tcolorValue :\n\t\t\thelpers.color(colorValue).saturate(0.5).darken(0.1).rgbString();\n\t};\n};\n\n},{\"26\":26,\"3\":3,\"34\":34,\"46\":46}],29:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\n/**\n * Helper function to get relative position for an event\n * @param {Event|IEvent} event - The event to get the position for\n * @param {Chart} chart - The chart\n * @returns {Point} the event position\n */\nfunction getRelativePosition(e, chart) {\n\tif (e.native) {\n\t\treturn {\n\t\t\tx: e.x,\n\t\t\ty: e.y\n\t\t};\n\t}\n\n\treturn helpers.getRelativePosition(e, chart);\n}\n\n/**\n * Helper function to traverse all of the visible elements in the chart\n * @param chart {chart} the chart\n * @param handler {Function} the callback to execute for each visible item\n */\nfunction parseVisibleItems(chart, handler) {\n\tvar datasets = chart.data.datasets;\n\tvar meta, i, j, ilen, jlen;\n\n\tfor (i = 0, ilen = datasets.length; i < ilen; ++i) {\n\t\tif (!chart.isDatasetVisible(i)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tmeta = chart.getDatasetMeta(i);\n\t\tfor (j = 0, jlen = meta.data.length; j < jlen; ++j) {\n\t\t\tvar element = meta.data[j];\n\t\t\tif (!element._view.skip) {\n\t\t\t\thandler(element);\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Helper function to get the items that intersect the event position\n * @param items {ChartElement[]} elements to filter\n * @param position {Point} the point to be nearest to\n * @return {ChartElement[]} the nearest items\n */\nfunction getIntersectItems(chart, position) {\n\tvar elements = [];\n\n\tparseVisibleItems(chart, function(element) {\n\t\tif (element.inRange(position.x, position.y)) {\n\t\t\telements.push(element);\n\t\t}\n\t});\n\n\treturn elements;\n}\n\n/**\n * Helper function to get the items nearest to the event position considering all visible items in teh chart\n * @param chart {Chart} the chart to look at elements from\n * @param position {Point} the point to be nearest to\n * @param intersect {Boolean} if true, only consider items that intersect the position\n * @param distanceMetric {Function} function to provide the distance between points\n * @return {ChartElement[]} the nearest items\n */\nfunction getNearestItems(chart, position, intersect, distanceMetric) {\n\tvar minDistance = Number.POSITIVE_INFINITY;\n\tvar nearestItems = [];\n\n\tparseVisibleItems(chart, function(element) {\n\t\tif (intersect && !element.inRange(position.x, position.y)) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar center = element.getCenterPoint();\n\t\tvar distance = distanceMetric(position, center);\n\n\t\tif (distance < minDistance) {\n\t\t\tnearestItems = [element];\n\t\t\tminDistance = distance;\n\t\t} else if (distance === minDistance) {\n\t\t\t// Can have multiple items at the same distance in which case we sort by size\n\t\t\tnearestItems.push(element);\n\t\t}\n\t});\n\n\treturn nearestItems;\n}\n\n/**\n * Get a distance metric function for two points based on the\n * axis mode setting\n * @param {String} axis the axis mode. x|y|xy\n */\nfunction getDistanceMetricForAxis(axis) {\n\tvar useX = axis.indexOf('x') !== -1;\n\tvar useY = axis.indexOf('y') !== -1;\n\n\treturn function(pt1, pt2) {\n\t\tvar deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0;\n\t\tvar deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0;\n\t\treturn Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));\n\t};\n}\n\nfunction indexMode(chart, e, options) {\n\tvar position = getRelativePosition(e, chart);\n\t// Default axis for index mode is 'x' to match old behaviour\n\toptions.axis = options.axis || 'x';\n\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\n\tvar items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\n\tvar elements = [];\n\n\tif (!items.length) {\n\t\treturn [];\n\t}\n\n\tchart.data.datasets.forEach(function(dataset, datasetIndex) {\n\t\tif (chart.isDatasetVisible(datasetIndex)) {\n\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\tvar element = meta.data[items[0]._index];\n\n\t\t\t// don't count items that are skipped (null data)\n\t\t\tif (element && !element._view.skip) {\n\t\t\t\telements.push(element);\n\t\t\t}\n\t\t}\n\t});\n\n\treturn elements;\n}\n\n/**\n * @interface IInteractionOptions\n */\n/**\n * If true, only consider items that intersect the point\n * @name IInterfaceOptions#boolean\n * @type Boolean\n */\n\n/**\n * Contains interaction related functions\n * @namespace Chart.Interaction\n */\nmodule.exports = {\n\t// Helper function for different modes\n\tmodes: {\n\t\tsingle: function(chart, e) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\tvar elements = [];\n\n\t\t\tparseVisibleItems(chart, function(element) {\n\t\t\t\tif (element.inRange(position.x, position.y)) {\n\t\t\t\t\telements.push(element);\n\t\t\t\t\treturn elements;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn elements.slice(0, 1);\n\t\t},\n\n\t\t/**\n\t\t * @function Chart.Interaction.modes.label\n\t\t * @deprecated since version 2.4.0\n\t\t * @todo remove at version 3\n\t\t * @private\n\t\t */\n\t\tlabel: indexMode,\n\n\t\t/**\n\t\t * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\n\t\t * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item\n\t\t * @function Chart.Interaction.modes.index\n\t\t * @since v2.4.0\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use during interaction\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tindex: indexMode,\n\n\t\t/**\n\t\t * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\n\t\t * If the options.intersect is false, we find the nearest item and return the items in that dataset\n\t\t * @function Chart.Interaction.modes.dataset\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use during interaction\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tdataset: function(chart, e, options) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\toptions.axis = options.axis || 'xy';\n\t\t\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\n\t\t\tvar items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\n\n\t\t\tif (items.length > 0) {\n\t\t\t\titems = chart.getDatasetMeta(items[0]._datasetIndex).data;\n\t\t\t}\n\n\t\t\treturn items;\n\t\t},\n\n\t\t/**\n\t\t * @function Chart.Interaction.modes.x-axis\n\t\t * @deprecated since version 2.4.0. Use index mode and intersect == true\n\t\t * @todo remove at version 3\n\t\t * @private\n\t\t */\n\t\t'x-axis': function(chart, e) {\n\t\t\treturn indexMode(chart, e, {intersect: false});\n\t\t},\n\n\t\t/**\n\t\t * Point mode returns all elements that hit test based on the event position\n\t\t * of the event\n\t\t * @function Chart.Interaction.modes.intersect\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tpoint: function(chart, e) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\treturn getIntersectItems(chart, position);\n\t\t},\n\n\t\t/**\n\t\t * nearest mode returns the element closest to the point\n\t\t * @function Chart.Interaction.modes.intersect\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tnearest: function(chart, e, options) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\toptions.axis = options.axis || 'xy';\n\t\t\tvar distanceMetric = getDistanceMetricForAxis(options.axis);\n\t\t\tvar nearestItems = getNearestItems(chart, position, options.intersect, distanceMetric);\n\n\t\t\t// We have multiple items at the same distance from the event. Now sort by smallest\n\t\t\tif (nearestItems.length > 1) {\n\t\t\t\tnearestItems.sort(function(a, b) {\n\t\t\t\t\tvar sizeA = a.getArea();\n\t\t\t\t\tvar sizeB = b.getArea();\n\t\t\t\t\tvar ret = sizeA - sizeB;\n\n\t\t\t\t\tif (ret === 0) {\n\t\t\t\t\t\t// if equal sort by dataset index\n\t\t\t\t\t\tret = a._datasetIndex - b._datasetIndex;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn ret;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// Return only 1 item\n\t\t\treturn nearestItems.slice(0, 1);\n\t\t},\n\n\t\t/**\n\t\t * x mode returns the elements that hit-test at the current x coordinate\n\t\t * @function Chart.Interaction.modes.x\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\tx: function(chart, e, options) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\tvar items = [];\n\t\t\tvar intersectsItem = false;\n\n\t\t\tparseVisibleItems(chart, function(element) {\n\t\t\t\tif (element.inXRange(position.x)) {\n\t\t\t\t\titems.push(element);\n\t\t\t\t}\n\n\t\t\t\tif (element.inRange(position.x, position.y)) {\n\t\t\t\t\tintersectsItem = true;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// If we want to trigger on an intersect and we don't have any items\n\t\t\t// that intersect the position, return nothing\n\t\t\tif (options.intersect && !intersectsItem) {\n\t\t\t\titems = [];\n\t\t\t}\n\t\t\treturn items;\n\t\t},\n\n\t\t/**\n\t\t * y mode returns the elements that hit-test at the current y coordinate\n\t\t * @function Chart.Interaction.modes.y\n\t\t * @param chart {chart} the chart we are returning items from\n\t\t * @param e {Event} the event we are find things at\n\t\t * @param options {IInteractionOptions} options to use\n\t\t * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\n\t\t */\n\t\ty: function(chart, e, options) {\n\t\t\tvar position = getRelativePosition(e, chart);\n\t\t\tvar items = [];\n\t\t\tvar intersectsItem = false;\n\n\t\t\tparseVisibleItems(chart, function(element) {\n\t\t\t\tif (element.inYRange(position.y)) {\n\t\t\t\t\titems.push(element);\n\t\t\t\t}\n\n\t\t\t\tif (element.inRange(position.x, position.y)) {\n\t\t\t\t\tintersectsItem = true;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// If we want to trigger on an intersect and we don't have any items\n\t\t\t// that intersect the position, return nothing\n\t\t\tif (options.intersect && !intersectsItem) {\n\t\t\t\titems = [];\n\t\t\t}\n\t\t\treturn items;\n\t\t}\n\t}\n};\n\n},{\"46\":46}],30:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\n\ndefaults._set('global', {\n\tresponsive: true,\n\tresponsiveAnimationDuration: 0,\n\tmaintainAspectRatio: true,\n\tevents: ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove'],\n\thover: {\n\t\tonHover: null,\n\t\tmode: 'nearest',\n\t\tintersect: true,\n\t\tanimationDuration: 400\n\t},\n\tonClick: null,\n\tdefaultColor: 'rgba(0,0,0,0.1)',\n\tdefaultFontColor: '#666',\n\tdefaultFontFamily: \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",\n\tdefaultFontSize: 12,\n\tdefaultFontStyle: 'normal',\n\tshowLines: true,\n\n\t// Element defaults defined in element extensions\n\telements: {},\n\n\t// Layout options such as padding\n\tlayout: {\n\t\tpadding: {\n\t\t\ttop: 0,\n\t\t\tright: 0,\n\t\t\tbottom: 0,\n\t\t\tleft: 0\n\t\t}\n\t}\n});\n\nmodule.exports = function() {\n\n\t// Occupy the global variable of Chart, and create a simple base class\n\tvar Chart = function(item, config) {\n\t\tthis.construct(item, config);\n\t\treturn this;\n\t};\n\n\tChart.Chart = Chart;\n\n\treturn Chart;\n};\n\n},{\"26\":26}],31:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\nfunction filterByPosition(array, position) {\n\treturn helpers.where(array, function(v) {\n\t\treturn v.position === position;\n\t});\n}\n\nfunction sortByWeight(array, reverse) {\n\tarray.forEach(function(v, i) {\n\t\tv._tmpIndex_ = i;\n\t\treturn v;\n\t});\n\tarray.sort(function(a, b) {\n\t\tvar v0 = reverse ? b : a;\n\t\tvar v1 = reverse ? a : b;\n\t\treturn v0.weight === v1.weight ?\n\t\t\tv0._tmpIndex_ - v1._tmpIndex_ :\n\t\t\tv0.weight - v1.weight;\n\t});\n\tarray.forEach(function(v) {\n\t\tdelete v._tmpIndex_;\n\t});\n}\n\n/**\n * @interface ILayoutItem\n * @prop {String} position - The position of the item in the chart layout. Possible values are\n * 'left', 'top', 'right', 'bottom', and 'chartArea'\n * @prop {Number} weight - The weight used to sort the item. Higher weights are further away from the chart area\n * @prop {Boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down\n * @prop {Function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom)\n * @prop {Function} update - Takes two parameters: width and height. Returns size of item\n * @prop {Function} getPadding -  Returns an object with padding on the edges\n * @prop {Number} width - Width of item. Must be valid after update()\n * @prop {Number} height - Height of item. Must be valid after update()\n * @prop {Number} left - Left edge of the item. Set by layout system and cannot be used in update\n * @prop {Number} top - Top edge of the item. Set by layout system and cannot be used in update\n * @prop {Number} right - Right edge of the item. Set by layout system and cannot be used in update\n * @prop {Number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update\n */\n\n// The layout service is very self explanatory.  It's responsible for the layout within a chart.\n// Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need\n// It is this service's responsibility of carrying out that layout.\nmodule.exports = {\n\tdefaults: {},\n\n\t/**\n\t * Register a box to a chart.\n\t * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title.\n\t * @param {Chart} chart - the chart to use\n\t * @param {ILayoutItem} item - the item to add to be layed out\n\t */\n\taddBox: function(chart, item) {\n\t\tif (!chart.boxes) {\n\t\t\tchart.boxes = [];\n\t\t}\n\n\t\t// initialize item with default values\n\t\titem.fullWidth = item.fullWidth || false;\n\t\titem.position = item.position || 'top';\n\t\titem.weight = item.weight || 0;\n\n\t\tchart.boxes.push(item);\n\t},\n\n\t/**\n\t * Remove a layoutItem from a chart\n\t * @param {Chart} chart - the chart to remove the box from\n\t * @param {Object} layoutItem - the item to remove from the layout\n\t */\n\tremoveBox: function(chart, layoutItem) {\n\t\tvar index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1;\n\t\tif (index !== -1) {\n\t\t\tchart.boxes.splice(index, 1);\n\t\t}\n\t},\n\n\t/**\n\t * Sets (or updates) options on the given `item`.\n\t * @param {Chart} chart - the chart in which the item lives (or will be added to)\n\t * @param {Object} item - the item to configure with the given options\n\t * @param {Object} options - the new item options.\n\t */\n\tconfigure: function(chart, item, options) {\n\t\tvar props = ['fullWidth', 'position', 'weight'];\n\t\tvar ilen = props.length;\n\t\tvar i = 0;\n\t\tvar prop;\n\n\t\tfor (; i < ilen; ++i) {\n\t\t\tprop = props[i];\n\t\t\tif (options.hasOwnProperty(prop)) {\n\t\t\t\titem[prop] = options[prop];\n\t\t\t}\n\t\t}\n\t},\n\n\t/**\n\t * Fits boxes of the given chart into the given size by having each box measure itself\n\t * then running a fitting algorithm\n\t * @param {Chart} chart - the chart\n\t * @param {Number} width - the width to fit into\n\t * @param {Number} height - the height to fit into\n\t */\n\tupdate: function(chart, width, height) {\n\t\tif (!chart) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar layoutOptions = chart.options.layout || {};\n\t\tvar padding = helpers.options.toPadding(layoutOptions.padding);\n\t\tvar leftPadding = padding.left;\n\t\tvar rightPadding = padding.right;\n\t\tvar topPadding = padding.top;\n\t\tvar bottomPadding = padding.bottom;\n\n\t\tvar leftBoxes = filterByPosition(chart.boxes, 'left');\n\t\tvar rightBoxes = filterByPosition(chart.boxes, 'right');\n\t\tvar topBoxes = filterByPosition(chart.boxes, 'top');\n\t\tvar bottomBoxes = filterByPosition(chart.boxes, 'bottom');\n\t\tvar chartAreaBoxes = filterByPosition(chart.boxes, 'chartArea');\n\n\t\t// Sort boxes by weight. A higher weight is further away from the chart area\n\t\tsortByWeight(leftBoxes, true);\n\t\tsortByWeight(rightBoxes, false);\n\t\tsortByWeight(topBoxes, true);\n\t\tsortByWeight(bottomBoxes, false);\n\n\t\t// Essentially we now have any number of boxes on each of the 4 sides.\n\t\t// Our canvas looks like the following.\n\t\t// The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and\n\t\t// B1 is the bottom axis\n\t\t// There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays\n\t\t// These locations are single-box locations only, when trying to register a chartArea location that is already taken,\n\t\t// an error will be thrown.\n\t\t//\n\t\t// |----------------------------------------------------|\n\t\t// |                  T1 (Full Width)                   |\n\t\t// |----------------------------------------------------|\n\t\t// |    |    |                 T2                  |    |\n\t\t// |    |----|-------------------------------------|----|\n\t\t// |    |    | C1 |                           | C2 |    |\n\t\t// |    |    |----|                           |----|    |\n\t\t// |    |    |                                     |    |\n\t\t// | L1 | L2 |           ChartArea (C0)            | R1 |\n\t\t// |    |    |                                     |    |\n\t\t// |    |    |----|                           |----|    |\n\t\t// |    |    | C3 |                           | C4 |    |\n\t\t// |    |----|-------------------------------------|----|\n\t\t// |    |    |                 B1                  |    |\n\t\t// |----------------------------------------------------|\n\t\t// |                  B2 (Full Width)                   |\n\t\t// |----------------------------------------------------|\n\t\t//\n\t\t// What we do to find the best sizing, we do the following\n\t\t// 1. Determine the minimum size of the chart area.\n\t\t// 2. Split the remaining width equally between each vertical axis\n\t\t// 3. Split the remaining height equally between each horizontal axis\n\t\t// 4. Give each layout the maximum size it can be. The layout will return it's minimum size\n\t\t// 5. Adjust the sizes of each axis based on it's minimum reported size.\n\t\t// 6. Refit each axis\n\t\t// 7. Position each axis in the final location\n\t\t// 8. Tell the chart the final location of the chart area\n\t\t// 9. Tell any axes that overlay the chart area the positions of the chart area\n\n\t\t// Step 1\n\t\tvar chartWidth = width - leftPadding - rightPadding;\n\t\tvar chartHeight = height - topPadding - bottomPadding;\n\t\tvar chartAreaWidth = chartWidth / 2; // min 50%\n\t\tvar chartAreaHeight = chartHeight / 2; // min 50%\n\n\t\t// Step 2\n\t\tvar verticalBoxWidth = (width - chartAreaWidth) / (leftBoxes.length + rightBoxes.length);\n\n\t\t// Step 3\n\t\tvar horizontalBoxHeight = (height - chartAreaHeight) / (topBoxes.length + bottomBoxes.length);\n\n\t\t// Step 4\n\t\tvar maxChartAreaWidth = chartWidth;\n\t\tvar maxChartAreaHeight = chartHeight;\n\t\tvar minBoxSizes = [];\n\n\t\tfunction getMinimumBoxSize(box) {\n\t\t\tvar minSize;\n\t\t\tvar isHorizontal = box.isHorizontal();\n\n\t\t\tif (isHorizontal) {\n\t\t\t\tminSize = box.update(box.fullWidth ? chartWidth : maxChartAreaWidth, horizontalBoxHeight);\n\t\t\t\tmaxChartAreaHeight -= minSize.height;\n\t\t\t} else {\n\t\t\t\tminSize = box.update(verticalBoxWidth, maxChartAreaHeight);\n\t\t\t\tmaxChartAreaWidth -= minSize.width;\n\t\t\t}\n\n\t\t\tminBoxSizes.push({\n\t\t\t\thorizontal: isHorizontal,\n\t\t\t\tminSize: minSize,\n\t\t\t\tbox: box,\n\t\t\t});\n\t\t}\n\n\t\thelpers.each(leftBoxes.concat(rightBoxes, topBoxes, bottomBoxes), getMinimumBoxSize);\n\n\t\t// If a horizontal box has padding, we move the left boxes over to avoid ugly charts (see issue #2478)\n\t\tvar maxHorizontalLeftPadding = 0;\n\t\tvar maxHorizontalRightPadding = 0;\n\t\tvar maxVerticalTopPadding = 0;\n\t\tvar maxVerticalBottomPadding = 0;\n\n\t\thelpers.each(topBoxes.concat(bottomBoxes), function(horizontalBox) {\n\t\t\tif (horizontalBox.getPadding) {\n\t\t\t\tvar boxPadding = horizontalBox.getPadding();\n\t\t\t\tmaxHorizontalLeftPadding = Math.max(maxHorizontalLeftPadding, boxPadding.left);\n\t\t\t\tmaxHorizontalRightPadding = Math.max(maxHorizontalRightPadding, boxPadding.right);\n\t\t\t}\n\t\t});\n\n\t\thelpers.each(leftBoxes.concat(rightBoxes), function(verticalBox) {\n\t\t\tif (verticalBox.getPadding) {\n\t\t\t\tvar boxPadding = verticalBox.getPadding();\n\t\t\t\tmaxVerticalTopPadding = Math.max(maxVerticalTopPadding, boxPadding.top);\n\t\t\t\tmaxVerticalBottomPadding = Math.max(maxVerticalBottomPadding, boxPadding.bottom);\n\t\t\t}\n\t\t});\n\n\t\t// At this point, maxChartAreaHeight and maxChartAreaWidth are the size the chart area could\n\t\t// be if the axes are drawn at their minimum sizes.\n\t\t// Steps 5 & 6\n\t\tvar totalLeftBoxesWidth = leftPadding;\n\t\tvar totalRightBoxesWidth = rightPadding;\n\t\tvar totalTopBoxesHeight = topPadding;\n\t\tvar totalBottomBoxesHeight = bottomPadding;\n\n\t\t// Function to fit a box\n\t\tfunction fitBox(box) {\n\t\t\tvar minBoxSize = helpers.findNextWhere(minBoxSizes, function(minBox) {\n\t\t\t\treturn minBox.box === box;\n\t\t\t});\n\n\t\t\tif (minBoxSize) {\n\t\t\t\tif (box.isHorizontal()) {\n\t\t\t\t\tvar scaleMargin = {\n\t\t\t\t\t\tleft: Math.max(totalLeftBoxesWidth, maxHorizontalLeftPadding),\n\t\t\t\t\t\tright: Math.max(totalRightBoxesWidth, maxHorizontalRightPadding),\n\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\tbottom: 0\n\t\t\t\t\t};\n\n\t\t\t\t\t// Don't use min size here because of label rotation. When the labels are rotated, their rotation highly depends\n\t\t\t\t\t// on the margin. Sometimes they need to increase in size slightly\n\t\t\t\t\tbox.update(box.fullWidth ? chartWidth : maxChartAreaWidth, chartHeight / 2, scaleMargin);\n\t\t\t\t} else {\n\t\t\t\t\tbox.update(minBoxSize.minSize.width, maxChartAreaHeight);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Update, and calculate the left and right margins for the horizontal boxes\n\t\thelpers.each(leftBoxes.concat(rightBoxes), fitBox);\n\n\t\thelpers.each(leftBoxes, function(box) {\n\t\t\ttotalLeftBoxesWidth += box.width;\n\t\t});\n\n\t\thelpers.each(rightBoxes, function(box) {\n\t\t\ttotalRightBoxesWidth += box.width;\n\t\t});\n\n\t\t// Set the Left and Right margins for the horizontal boxes\n\t\thelpers.each(topBoxes.concat(bottomBoxes), fitBox);\n\n\t\t// Figure out how much margin is on the top and bottom of the vertical boxes\n\t\thelpers.each(topBoxes, function(box) {\n\t\t\ttotalTopBoxesHeight += box.height;\n\t\t});\n\n\t\thelpers.each(bottomBoxes, function(box) {\n\t\t\ttotalBottomBoxesHeight += box.height;\n\t\t});\n\n\t\tfunction finalFitVerticalBox(box) {\n\t\t\tvar minBoxSize = helpers.findNextWhere(minBoxSizes, function(minSize) {\n\t\t\t\treturn minSize.box === box;\n\t\t\t});\n\n\t\t\tvar scaleMargin = {\n\t\t\t\tleft: 0,\n\t\t\t\tright: 0,\n\t\t\t\ttop: totalTopBoxesHeight,\n\t\t\t\tbottom: totalBottomBoxesHeight\n\t\t\t};\n\n\t\t\tif (minBoxSize) {\n\t\t\t\tbox.update(minBoxSize.minSize.width, maxChartAreaHeight, scaleMargin);\n\t\t\t}\n\t\t}\n\n\t\t// Let the left layout know the final margin\n\t\thelpers.each(leftBoxes.concat(rightBoxes), finalFitVerticalBox);\n\n\t\t// Recalculate because the size of each layout might have changed slightly due to the margins (label rotation for instance)\n\t\ttotalLeftBoxesWidth = leftPadding;\n\t\ttotalRightBoxesWidth = rightPadding;\n\t\ttotalTopBoxesHeight = topPadding;\n\t\ttotalBottomBoxesHeight = bottomPadding;\n\n\t\thelpers.each(leftBoxes, function(box) {\n\t\t\ttotalLeftBoxesWidth += box.width;\n\t\t});\n\n\t\thelpers.each(rightBoxes, function(box) {\n\t\t\ttotalRightBoxesWidth += box.width;\n\t\t});\n\n\t\thelpers.each(topBoxes, function(box) {\n\t\t\ttotalTopBoxesHeight += box.height;\n\t\t});\n\t\thelpers.each(bottomBoxes, function(box) {\n\t\t\ttotalBottomBoxesHeight += box.height;\n\t\t});\n\n\t\t// We may be adding some padding to account for rotated x axis labels\n\t\tvar leftPaddingAddition = Math.max(maxHorizontalLeftPadding - totalLeftBoxesWidth, 0);\n\t\ttotalLeftBoxesWidth += leftPaddingAddition;\n\t\ttotalRightBoxesWidth += Math.max(maxHorizontalRightPadding - totalRightBoxesWidth, 0);\n\n\t\tvar topPaddingAddition = Math.max(maxVerticalTopPadding - totalTopBoxesHeight, 0);\n\t\ttotalTopBoxesHeight += topPaddingAddition;\n\t\ttotalBottomBoxesHeight += Math.max(maxVerticalBottomPadding - totalBottomBoxesHeight, 0);\n\n\t\t// Figure out if our chart area changed. This would occur if the dataset layout label rotation\n\t\t// changed due to the application of the margins in step 6. Since we can only get bigger, this is safe to do\n\t\t// without calling `fit` again\n\t\tvar newMaxChartAreaHeight = height - totalTopBoxesHeight - totalBottomBoxesHeight;\n\t\tvar newMaxChartAreaWidth = width - totalLeftBoxesWidth - totalRightBoxesWidth;\n\n\t\tif (newMaxChartAreaWidth !== maxChartAreaWidth || newMaxChartAreaHeight !== maxChartAreaHeight) {\n\t\t\thelpers.each(leftBoxes, function(box) {\n\t\t\t\tbox.height = newMaxChartAreaHeight;\n\t\t\t});\n\n\t\t\thelpers.each(rightBoxes, function(box) {\n\t\t\t\tbox.height = newMaxChartAreaHeight;\n\t\t\t});\n\n\t\t\thelpers.each(topBoxes, function(box) {\n\t\t\t\tif (!box.fullWidth) {\n\t\t\t\t\tbox.width = newMaxChartAreaWidth;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\thelpers.each(bottomBoxes, function(box) {\n\t\t\t\tif (!box.fullWidth) {\n\t\t\t\t\tbox.width = newMaxChartAreaWidth;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmaxChartAreaHeight = newMaxChartAreaHeight;\n\t\t\tmaxChartAreaWidth = newMaxChartAreaWidth;\n\t\t}\n\n\t\t// Step 7 - Position the boxes\n\t\tvar left = leftPadding + leftPaddingAddition;\n\t\tvar top = topPadding + topPaddingAddition;\n\n\t\tfunction placeBox(box) {\n\t\t\tif (box.isHorizontal()) {\n\t\t\t\tbox.left = box.fullWidth ? leftPadding : totalLeftBoxesWidth;\n\t\t\t\tbox.right = box.fullWidth ? width - rightPadding : totalLeftBoxesWidth + maxChartAreaWidth;\n\t\t\t\tbox.top = top;\n\t\t\t\tbox.bottom = top + box.height;\n\n\t\t\t\t// Move to next point\n\t\t\t\ttop = box.bottom;\n\n\t\t\t} else {\n\n\t\t\t\tbox.left = left;\n\t\t\t\tbox.right = left + box.width;\n\t\t\t\tbox.top = totalTopBoxesHeight;\n\t\t\t\tbox.bottom = totalTopBoxesHeight + maxChartAreaHeight;\n\n\t\t\t\t// Move to next point\n\t\t\t\tleft = box.right;\n\t\t\t}\n\t\t}\n\n\t\thelpers.each(leftBoxes.concat(topBoxes), placeBox);\n\n\t\t// Account for chart width and height\n\t\tleft += maxChartAreaWidth;\n\t\ttop += maxChartAreaHeight;\n\n\t\thelpers.each(rightBoxes, placeBox);\n\t\thelpers.each(bottomBoxes, placeBox);\n\n\t\t// Step 8\n\t\tchart.chartArea = {\n\t\t\tleft: totalLeftBoxesWidth,\n\t\t\ttop: totalTopBoxesHeight,\n\t\t\tright: totalLeftBoxesWidth + maxChartAreaWidth,\n\t\t\tbottom: totalTopBoxesHeight + maxChartAreaHeight\n\t\t};\n\n\t\t// Step 9\n\t\thelpers.each(chartAreaBoxes, function(box) {\n\t\t\tbox.left = chart.chartArea.left;\n\t\t\tbox.top = chart.chartArea.top;\n\t\t\tbox.right = chart.chartArea.right;\n\t\t\tbox.bottom = chart.chartArea.bottom;\n\n\t\t\tbox.update(maxChartAreaWidth, maxChartAreaHeight);\n\t\t});\n\t}\n};\n\n},{\"46\":46}],32:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\tplugins: {}\n});\n\n/**\n * The plugin service singleton\n * @namespace Chart.plugins\n * @since 2.1.0\n */\nmodule.exports = {\n\t/**\n\t * Globally registered plugins.\n\t * @private\n\t */\n\t_plugins: [],\n\n\t/**\n\t * This identifier is used to invalidate the descriptors cache attached to each chart\n\t * when a global plugin is registered or unregistered. In this case, the cache ID is\n\t * incremented and descriptors are regenerated during following API calls.\n\t * @private\n\t */\n\t_cacheId: 0,\n\n\t/**\n\t * Registers the given plugin(s) if not already registered.\n\t * @param {Array|Object} plugins plugin instance(s).\n\t */\n\tregister: function(plugins) {\n\t\tvar p = this._plugins;\n\t\t([]).concat(plugins).forEach(function(plugin) {\n\t\t\tif (p.indexOf(plugin) === -1) {\n\t\t\t\tp.push(plugin);\n\t\t\t}\n\t\t});\n\n\t\tthis._cacheId++;\n\t},\n\n\t/**\n\t * Unregisters the given plugin(s) only if registered.\n\t * @param {Array|Object} plugins plugin instance(s).\n\t */\n\tunregister: function(plugins) {\n\t\tvar p = this._plugins;\n\t\t([]).concat(plugins).forEach(function(plugin) {\n\t\t\tvar idx = p.indexOf(plugin);\n\t\t\tif (idx !== -1) {\n\t\t\t\tp.splice(idx, 1);\n\t\t\t}\n\t\t});\n\n\t\tthis._cacheId++;\n\t},\n\n\t/**\n\t * Remove all registered plugins.\n\t * @since 2.1.5\n\t */\n\tclear: function() {\n\t\tthis._plugins = [];\n\t\tthis._cacheId++;\n\t},\n\n\t/**\n\t * Returns the number of registered plugins?\n\t * @returns {Number}\n\t * @since 2.1.5\n\t */\n\tcount: function() {\n\t\treturn this._plugins.length;\n\t},\n\n\t/**\n\t * Returns all registered plugin instances.\n\t * @returns {Array} array of plugin objects.\n\t * @since 2.1.5\n\t */\n\tgetAll: function() {\n\t\treturn this._plugins;\n\t},\n\n\t/**\n\t * Calls enabled plugins for `chart` on the specified hook and with the given args.\n\t * This method immediately returns as soon as a plugin explicitly returns false. The\n\t * returned value can be used, for instance, to interrupt the current action.\n\t * @param {Object} chart - The chart instance for which plugins should be called.\n\t * @param {String} hook - The name of the plugin method to call (e.g. 'beforeUpdate').\n\t * @param {Array} [args] - Extra arguments to apply to the hook call.\n\t * @returns {Boolean} false if any of the plugins return false, else returns true.\n\t */\n\tnotify: function(chart, hook, args) {\n\t\tvar descriptors = this.descriptors(chart);\n\t\tvar ilen = descriptors.length;\n\t\tvar i, descriptor, plugin, params, method;\n\n\t\tfor (i = 0; i < ilen; ++i) {\n\t\t\tdescriptor = descriptors[i];\n\t\t\tplugin = descriptor.plugin;\n\t\t\tmethod = plugin[hook];\n\t\t\tif (typeof method === 'function') {\n\t\t\t\tparams = [chart].concat(args || []);\n\t\t\t\tparams.push(descriptor.options);\n\t\t\t\tif (method.apply(plugin, params) === false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t},\n\n\t/**\n\t * Returns descriptors of enabled plugins for the given chart.\n\t * @returns {Array} [{ plugin, options }]\n\t * @private\n\t */\n\tdescriptors: function(chart) {\n\t\tvar cache = chart.$plugins || (chart.$plugins = {});\n\t\tif (cache.id === this._cacheId) {\n\t\t\treturn cache.descriptors;\n\t\t}\n\n\t\tvar plugins = [];\n\t\tvar descriptors = [];\n\t\tvar config = (chart && chart.config) || {};\n\t\tvar options = (config.options && config.options.plugins) || {};\n\n\t\tthis._plugins.concat(config.plugins || []).forEach(function(plugin) {\n\t\t\tvar idx = plugins.indexOf(plugin);\n\t\t\tif (idx !== -1) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar id = plugin.id;\n\t\t\tvar opts = options[id];\n\t\t\tif (opts === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (opts === true) {\n\t\t\t\topts = helpers.clone(defaults.global.plugins[id]);\n\t\t\t}\n\n\t\t\tplugins.push(plugin);\n\t\t\tdescriptors.push({\n\t\t\t\tplugin: plugin,\n\t\t\t\toptions: opts || {}\n\t\t\t});\n\t\t});\n\n\t\tcache.descriptors = descriptors;\n\t\tcache.id = this._cacheId;\n\t\treturn descriptors;\n\t},\n\n\t/**\n\t * Invalidates cache for the given chart: descriptors hold a reference on plugin option,\n\t * but in some cases, this reference can be changed by the user when updating options.\n\t * https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\n\t * @private\n\t */\n\t_invalidate: function(chart) {\n\t\tdelete chart.$plugins;\n\t}\n};\n\n/**\n * Plugin extension hooks.\n * @interface IPlugin\n * @since 2.1.0\n */\n/**\n * @method IPlugin#beforeInit\n * @desc Called before initializing `chart`.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#afterInit\n * @desc Called after `chart` has been initialized and before the first update.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeUpdate\n * @desc Called before updating `chart`. If any plugin returns `false`, the update\n * is cancelled (and thus subsequent render(s)) until another `update` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart update.\n */\n/**\n * @method IPlugin#afterUpdate\n * @desc Called after `chart` has been updated and before rendering. Note that this\n * hook will not be called if the chart update has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeDatasetsUpdate\n * @desc Called before updating the `chart` datasets. If any plugin returns `false`,\n * the datasets update is cancelled until another `update` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} false to cancel the datasets update.\n * @since version 2.1.5\n*/\n/**\n * @method IPlugin#afterDatasetsUpdate\n * @desc Called after the `chart` datasets have been updated. Note that this hook\n * will not be called if the datasets update has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @since version 2.1.5\n */\n/**\n * @method IPlugin#beforeDatasetUpdate\n * @desc Called before updating the `chart` dataset at the given `args.index`. If any plugin\n * returns `false`, the datasets update is cancelled until another `update` is triggered.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Number} args.index - The dataset index.\n * @param {Object} args.meta - The dataset metadata.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart datasets drawing.\n */\n/**\n * @method IPlugin#afterDatasetUpdate\n * @desc Called after the `chart` datasets at the given `args.index` has been updated. Note\n * that this hook will not be called if the datasets update has been previously cancelled.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Number} args.index - The dataset index.\n * @param {Object} args.meta - The dataset metadata.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeLayout\n * @desc Called before laying out `chart`. If any plugin returns `false`,\n * the layout update is cancelled until another `update` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart layout.\n */\n/**\n * @method IPlugin#afterLayout\n * @desc Called after the `chart` has been layed out. Note that this hook will not\n * be called if the layout update has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeRender\n * @desc Called before rendering `chart`. If any plugin returns `false`,\n * the rendering is cancelled until another `render` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart rendering.\n */\n/**\n * @method IPlugin#afterRender\n * @desc Called after the `chart` has been fully rendered (and animation completed). Note\n * that this hook will not be called if the rendering has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeDraw\n * @desc Called before drawing `chart` at every animation frame specified by the given\n * easing value. If any plugin returns `false`, the frame drawing is cancelled until\n * another `render` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart drawing.\n */\n/**\n * @method IPlugin#afterDraw\n * @desc Called after the `chart` has been drawn for the specific easing value. Note\n * that this hook will not be called if the drawing has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeDatasetsDraw\n * @desc Called before drawing the `chart` datasets. If any plugin returns `false`,\n * the datasets drawing is cancelled until another `render` is triggered.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart datasets drawing.\n */\n/**\n * @method IPlugin#afterDatasetsDraw\n * @desc Called after the `chart` datasets have been drawn. Note that this hook\n * will not be called if the datasets drawing has been previously cancelled.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeDatasetDraw\n * @desc Called before drawing the `chart` dataset at the given `args.index` (datasets\n * are drawn in the reverse order). If any plugin returns `false`, the datasets drawing\n * is cancelled until another `render` is triggered.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Number} args.index - The dataset index.\n * @param {Object} args.meta - The dataset metadata.\n * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart datasets drawing.\n */\n/**\n * @method IPlugin#afterDatasetDraw\n * @desc Called after the `chart` datasets at the given `args.index` have been drawn\n * (datasets are drawn in the reverse order). Note that this hook will not be called\n * if the datasets drawing has been previously cancelled.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Number} args.index - The dataset index.\n * @param {Object} args.meta - The dataset metadata.\n * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeTooltipDraw\n * @desc Called before drawing the `tooltip`. If any plugin returns `false`,\n * the tooltip drawing is cancelled until another `render` is triggered.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Object} args.tooltip - The tooltip.\n * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n * @returns {Boolean} `false` to cancel the chart tooltip drawing.\n */\n/**\n * @method IPlugin#afterTooltipDraw\n * @desc Called after drawing the `tooltip`. Note that this hook will not\n * be called if the tooltip drawing has been previously cancelled.\n * @param {Chart} chart - The chart instance.\n * @param {Object} args - The call arguments.\n * @param {Object} args.tooltip - The tooltip.\n * @param {Number} args.easingValue - The current animation value, between 0.0 and 1.0.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#beforeEvent\n * @desc Called before processing the specified `event`. If any plugin returns `false`,\n * the event will be discarded.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {IEvent} event - The event object.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#afterEvent\n * @desc Called after the `event` has been consumed. Note that this hook\n * will not be called if the `event` has been previously discarded.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {IEvent} event - The event object.\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#resize\n * @desc Called after the chart as been resized.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Number} size - The new canvas display size (eq. canvas.style width & height).\n * @param {Object} options - The plugin options.\n */\n/**\n * @method IPlugin#destroy\n * @desc Called after the chart as been destroyed.\n * @param {Chart.Controller} chart - The chart instance.\n * @param {Object} options - The plugin options.\n */\n\n},{\"26\":26,\"46\":46}],33:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\nvar Ticks = require(35);\n\ndefaults._set('scale', {\n\tdisplay: true,\n\tposition: 'left',\n\toffset: false,\n\n\t// grid line settings\n\tgridLines: {\n\t\tdisplay: true,\n\t\tcolor: 'rgba(0, 0, 0, 0.1)',\n\t\tlineWidth: 1,\n\t\tdrawBorder: true,\n\t\tdrawOnChartArea: true,\n\t\tdrawTicks: true,\n\t\ttickMarkLength: 10,\n\t\tzeroLineWidth: 1,\n\t\tzeroLineColor: 'rgba(0,0,0,0.25)',\n\t\tzeroLineBorderDash: [],\n\t\tzeroLineBorderDashOffset: 0.0,\n\t\toffsetGridLines: false,\n\t\tborderDash: [],\n\t\tborderDashOffset: 0.0\n\t},\n\n\t// scale label\n\tscaleLabel: {\n\t\t// display property\n\t\tdisplay: false,\n\n\t\t// actual label\n\t\tlabelString: '',\n\n\t\t// line height\n\t\tlineHeight: 1.2,\n\n\t\t// top/bottom padding\n\t\tpadding: {\n\t\t\ttop: 4,\n\t\t\tbottom: 4\n\t\t}\n\t},\n\n\t// label settings\n\tticks: {\n\t\tbeginAtZero: false,\n\t\tminRotation: 0,\n\t\tmaxRotation: 50,\n\t\tmirror: false,\n\t\tpadding: 0,\n\t\treverse: false,\n\t\tdisplay: true,\n\t\tautoSkip: true,\n\t\tautoSkipPadding: 0,\n\t\tlabelOffset: 0,\n\t\t// We pass through arrays to be rendered as multiline labels, we convert Others to strings here.\n\t\tcallback: Ticks.formatters.values,\n\t\tminor: {},\n\t\tmajor: {}\n\t}\n});\n\nfunction labelsFromTicks(ticks) {\n\tvar labels = [];\n\tvar i, ilen;\n\n\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\n\t\tlabels.push(ticks[i].label);\n\t}\n\n\treturn labels;\n}\n\nfunction getLineValue(scale, index, offsetGridLines) {\n\tvar lineValue = scale.getPixelForTick(index);\n\n\tif (offsetGridLines) {\n\t\tif (index === 0) {\n\t\t\tlineValue -= (scale.getPixelForTick(1) - lineValue) / 2;\n\t\t} else {\n\t\t\tlineValue -= (lineValue - scale.getPixelForTick(index - 1)) / 2;\n\t\t}\n\t}\n\treturn lineValue;\n}\n\nfunction computeTextSize(context, tick, font) {\n\treturn helpers.isArray(tick) ?\n\t\thelpers.longestText(context, font, tick) :\n\t\tcontext.measureText(tick).width;\n}\n\nfunction parseFontOptions(options) {\n\tvar valueOrDefault = helpers.valueOrDefault;\n\tvar globalDefaults = defaults.global;\n\tvar size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);\n\tvar style = valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle);\n\tvar family = valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily);\n\n\treturn {\n\t\tsize: size,\n\t\tstyle: style,\n\t\tfamily: family,\n\t\tfont: helpers.fontString(size, style, family)\n\t};\n}\n\nfunction parseLineHeight(options) {\n\treturn helpers.options.toLineHeight(\n\t\thelpers.valueOrDefault(options.lineHeight, 1.2),\n\t\thelpers.valueOrDefault(options.fontSize, defaults.global.defaultFontSize));\n}\n\nmodule.exports = Element.extend({\n\t/**\n\t * Get the padding needed for the scale\n\t * @method getPadding\n\t * @private\n\t * @returns {Padding} the necessary padding\n\t */\n\tgetPadding: function() {\n\t\tvar me = this;\n\t\treturn {\n\t\t\tleft: me.paddingLeft || 0,\n\t\t\ttop: me.paddingTop || 0,\n\t\t\tright: me.paddingRight || 0,\n\t\t\tbottom: me.paddingBottom || 0\n\t\t};\n\t},\n\n\t/**\n\t * Returns the scale tick objects ({label, major})\n\t * @since 2.7\n\t */\n\tgetTicks: function() {\n\t\treturn this._ticks;\n\t},\n\n\t// These methods are ordered by lifecyle. Utilities then follow.\n\t// Any function defined here is inherited by all scale types.\n\t// Any function can be extended by the scale type\n\n\tmergeTicksOptions: function() {\n\t\tvar ticks = this.options.ticks;\n\t\tif (ticks.minor === false) {\n\t\t\tticks.minor = {\n\t\t\t\tdisplay: false\n\t\t\t};\n\t\t}\n\t\tif (ticks.major === false) {\n\t\t\tticks.major = {\n\t\t\t\tdisplay: false\n\t\t\t};\n\t\t}\n\t\tfor (var key in ticks) {\n\t\t\tif (key !== 'major' && key !== 'minor') {\n\t\t\t\tif (typeof ticks.minor[key] === 'undefined') {\n\t\t\t\t\tticks.minor[key] = ticks[key];\n\t\t\t\t}\n\t\t\t\tif (typeof ticks.major[key] === 'undefined') {\n\t\t\t\t\tticks.major[key] = ticks[key];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\tbeforeUpdate: function() {\n\t\thelpers.callback(this.options.beforeUpdate, [this]);\n\t},\n\n\tupdate: function(maxWidth, maxHeight, margins) {\n\t\tvar me = this;\n\t\tvar i, ilen, labels, label, ticks, tick;\n\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\n\t\tme.beforeUpdate();\n\n\t\t// Absorb the master measurements\n\t\tme.maxWidth = maxWidth;\n\t\tme.maxHeight = maxHeight;\n\t\tme.margins = helpers.extend({\n\t\t\tleft: 0,\n\t\t\tright: 0,\n\t\t\ttop: 0,\n\t\t\tbottom: 0\n\t\t}, margins);\n\t\tme.longestTextCache = me.longestTextCache || {};\n\n\t\t// Dimensions\n\t\tme.beforeSetDimensions();\n\t\tme.setDimensions();\n\t\tme.afterSetDimensions();\n\n\t\t// Data min/max\n\t\tme.beforeDataLimits();\n\t\tme.determineDataLimits();\n\t\tme.afterDataLimits();\n\n\t\t// Ticks - `this.ticks` is now DEPRECATED!\n\t\t// Internal ticks are now stored as objects in the PRIVATE `this._ticks` member\n\t\t// and must not be accessed directly from outside this class. `this.ticks` being\n\t\t// around for long time and not marked as private, we can't change its structure\n\t\t// without unexpected breaking changes. If you need to access the scale ticks,\n\t\t// use scale.getTicks() instead.\n\n\t\tme.beforeBuildTicks();\n\n\t\t// New implementations should return an array of objects but for BACKWARD COMPAT,\n\t\t// we still support no return (`this.ticks` internally set by calling this method).\n\t\tticks = me.buildTicks() || [];\n\n\t\tme.afterBuildTicks();\n\n\t\tme.beforeTickToLabelConversion();\n\n\t\t// New implementations should return the formatted tick labels but for BACKWARD\n\t\t// COMPAT, we still support no return (`this.ticks` internally changed by calling\n\t\t// this method and supposed to contain only string values).\n\t\tlabels = me.convertTicksToLabels(ticks) || me.ticks;\n\n\t\tme.afterTickToLabelConversion();\n\n\t\tme.ticks = labels;   // BACKWARD COMPATIBILITY\n\n\t\t// IMPORTANT: from this point, we consider that `this.ticks` will NEVER change!\n\n\t\t// BACKWARD COMPAT: synchronize `_ticks` with labels (so potentially `this.ticks`)\n\t\tfor (i = 0, ilen = labels.length; i < ilen; ++i) {\n\t\t\tlabel = labels[i];\n\t\t\ttick = ticks[i];\n\t\t\tif (!tick) {\n\t\t\t\tticks.push(tick = {\n\t\t\t\t\tlabel: label,\n\t\t\t\t\tmajor: false\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\ttick.label = label;\n\t\t\t}\n\t\t}\n\n\t\tme._ticks = ticks;\n\n\t\t// Tick Rotation\n\t\tme.beforeCalculateTickRotation();\n\t\tme.calculateTickRotation();\n\t\tme.afterCalculateTickRotation();\n\t\t// Fit\n\t\tme.beforeFit();\n\t\tme.fit();\n\t\tme.afterFit();\n\t\t//\n\t\tme.afterUpdate();\n\n\t\treturn me.minSize;\n\n\t},\n\tafterUpdate: function() {\n\t\thelpers.callback(this.options.afterUpdate, [this]);\n\t},\n\n\t//\n\n\tbeforeSetDimensions: function() {\n\t\thelpers.callback(this.options.beforeSetDimensions, [this]);\n\t},\n\tsetDimensions: function() {\n\t\tvar me = this;\n\t\t// Set the unconstrained dimension before label rotation\n\t\tif (me.isHorizontal()) {\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.width = me.maxWidth;\n\t\t\tme.left = 0;\n\t\t\tme.right = me.width;\n\t\t} else {\n\t\t\tme.height = me.maxHeight;\n\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.top = 0;\n\t\t\tme.bottom = me.height;\n\t\t}\n\n\t\t// Reset padding\n\t\tme.paddingLeft = 0;\n\t\tme.paddingTop = 0;\n\t\tme.paddingRight = 0;\n\t\tme.paddingBottom = 0;\n\t},\n\tafterSetDimensions: function() {\n\t\thelpers.callback(this.options.afterSetDimensions, [this]);\n\t},\n\n\t// Data limits\n\tbeforeDataLimits: function() {\n\t\thelpers.callback(this.options.beforeDataLimits, [this]);\n\t},\n\tdetermineDataLimits: helpers.noop,\n\tafterDataLimits: function() {\n\t\thelpers.callback(this.options.afterDataLimits, [this]);\n\t},\n\n\t//\n\tbeforeBuildTicks: function() {\n\t\thelpers.callback(this.options.beforeBuildTicks, [this]);\n\t},\n\tbuildTicks: helpers.noop,\n\tafterBuildTicks: function() {\n\t\thelpers.callback(this.options.afterBuildTicks, [this]);\n\t},\n\n\tbeforeTickToLabelConversion: function() {\n\t\thelpers.callback(this.options.beforeTickToLabelConversion, [this]);\n\t},\n\tconvertTicksToLabels: function() {\n\t\tvar me = this;\n\t\t// Convert ticks to strings\n\t\tvar tickOpts = me.options.ticks;\n\t\tme.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback, this);\n\t},\n\tafterTickToLabelConversion: function() {\n\t\thelpers.callback(this.options.afterTickToLabelConversion, [this]);\n\t},\n\n\t//\n\n\tbeforeCalculateTickRotation: function() {\n\t\thelpers.callback(this.options.beforeCalculateTickRotation, [this]);\n\t},\n\tcalculateTickRotation: function() {\n\t\tvar me = this;\n\t\tvar context = me.ctx;\n\t\tvar tickOpts = me.options.ticks;\n\t\tvar labels = labelsFromTicks(me._ticks);\n\n\t\t// Get the width of each grid by calculating the difference\n\t\t// between x offsets between 0 and 1.\n\t\tvar tickFont = parseFontOptions(tickOpts);\n\t\tcontext.font = tickFont.font;\n\n\t\tvar labelRotation = tickOpts.minRotation || 0;\n\n\t\tif (labels.length && me.options.display && me.isHorizontal()) {\n\t\t\tvar originalLabelWidth = helpers.longestText(context, tickFont.font, labels, me.longestTextCache);\n\t\t\tvar labelWidth = originalLabelWidth;\n\t\t\tvar cosRotation, sinRotation;\n\n\t\t\t// Allow 3 pixels x2 padding either side for label readability\n\t\t\tvar tickWidth = me.getPixelForTick(1) - me.getPixelForTick(0) - 6;\n\n\t\t\t// Max label rotation can be set or default to 90 - also act as a loop counter\n\t\t\twhile (labelWidth > tickWidth && labelRotation < tickOpts.maxRotation) {\n\t\t\t\tvar angleRadians = helpers.toRadians(labelRotation);\n\t\t\t\tcosRotation = Math.cos(angleRadians);\n\t\t\t\tsinRotation = Math.sin(angleRadians);\n\n\t\t\t\tif (sinRotation * originalLabelWidth > me.maxHeight) {\n\t\t\t\t\t// go back one step\n\t\t\t\t\tlabelRotation--;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tlabelRotation++;\n\t\t\t\tlabelWidth = cosRotation * originalLabelWidth;\n\t\t\t}\n\t\t}\n\n\t\tme.labelRotation = labelRotation;\n\t},\n\tafterCalculateTickRotation: function() {\n\t\thelpers.callback(this.options.afterCalculateTickRotation, [this]);\n\t},\n\n\t//\n\n\tbeforeFit: function() {\n\t\thelpers.callback(this.options.beforeFit, [this]);\n\t},\n\tfit: function() {\n\t\tvar me = this;\n\t\t// Reset\n\t\tvar minSize = me.minSize = {\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t};\n\n\t\tvar labels = labelsFromTicks(me._ticks);\n\n\t\tvar opts = me.options;\n\t\tvar tickOpts = opts.ticks;\n\t\tvar scaleLabelOpts = opts.scaleLabel;\n\t\tvar gridLineOpts = opts.gridLines;\n\t\tvar display = opts.display;\n\t\tvar isHorizontal = me.isHorizontal();\n\n\t\tvar tickFont = parseFontOptions(tickOpts);\n\t\tvar tickMarkLength = opts.gridLines.tickMarkLength;\n\n\t\t// Width\n\t\tif (isHorizontal) {\n\t\t\t// subtract the margins to line up with the chartArea if we are a full width scale\n\t\t\tminSize.width = me.isFullWidth() ? me.maxWidth - me.margins.left - me.margins.right : me.maxWidth;\n\t\t} else {\n\t\t\tminSize.width = display && gridLineOpts.drawTicks ? tickMarkLength : 0;\n\t\t}\n\n\t\t// height\n\t\tif (isHorizontal) {\n\t\t\tminSize.height = display && gridLineOpts.drawTicks ? tickMarkLength : 0;\n\t\t} else {\n\t\t\tminSize.height = me.maxHeight; // fill all the height\n\t\t}\n\n\t\t// Are we showing a title for the scale?\n\t\tif (scaleLabelOpts.display && display) {\n\t\t\tvar scaleLabelLineHeight = parseLineHeight(scaleLabelOpts);\n\t\t\tvar scaleLabelPadding = helpers.options.toPadding(scaleLabelOpts.padding);\n\t\t\tvar deltaHeight = scaleLabelLineHeight + scaleLabelPadding.height;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\tminSize.height += deltaHeight;\n\t\t\t} else {\n\t\t\t\tminSize.width += deltaHeight;\n\t\t\t}\n\t\t}\n\n\t\t// Don't bother fitting the ticks if we are not showing them\n\t\tif (tickOpts.display && display) {\n\t\t\tvar largestTextWidth = helpers.longestText(me.ctx, tickFont.font, labels, me.longestTextCache);\n\t\t\tvar tallestLabelHeightInLines = helpers.numberOfLabelLines(labels);\n\t\t\tvar lineSpace = tickFont.size * 0.5;\n\t\t\tvar tickPadding = me.options.ticks.padding;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\t// A horizontal axis is more constrained by the height.\n\t\t\t\tme.longestLabelWidth = largestTextWidth;\n\n\t\t\t\tvar angleRadians = helpers.toRadians(me.labelRotation);\n\t\t\t\tvar cosRotation = Math.cos(angleRadians);\n\t\t\t\tvar sinRotation = Math.sin(angleRadians);\n\n\t\t\t\t// TODO - improve this calculation\n\t\t\t\tvar labelHeight = (sinRotation * largestTextWidth)\n\t\t\t\t\t+ (tickFont.size * tallestLabelHeightInLines)\n\t\t\t\t\t+ (lineSpace * (tallestLabelHeightInLines - 1))\n\t\t\t\t\t+ lineSpace; // padding\n\n\t\t\t\tminSize.height = Math.min(me.maxHeight, minSize.height + labelHeight + tickPadding);\n\n\t\t\t\tme.ctx.font = tickFont.font;\n\t\t\t\tvar firstLabelWidth = computeTextSize(me.ctx, labels[0], tickFont.font);\n\t\t\t\tvar lastLabelWidth = computeTextSize(me.ctx, labels[labels.length - 1], tickFont.font);\n\n\t\t\t\t// Ensure that our ticks are always inside the canvas. When rotated, ticks are right aligned\n\t\t\t\t// which means that the right padding is dominated by the font height\n\t\t\t\tif (me.labelRotation !== 0) {\n\t\t\t\t\tme.paddingLeft = opts.position === 'bottom' ? (cosRotation * firstLabelWidth) + 3 : (cosRotation * lineSpace) + 3; // add 3 px to move away from canvas edges\n\t\t\t\t\tme.paddingRight = opts.position === 'bottom' ? (cosRotation * lineSpace) + 3 : (cosRotation * lastLabelWidth) + 3;\n\t\t\t\t} else {\n\t\t\t\t\tme.paddingLeft = firstLabelWidth / 2 + 3; // add 3 px to move away from canvas edges\n\t\t\t\t\tme.paddingRight = lastLabelWidth / 2 + 3;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// A vertical axis is more constrained by the width. Labels are the\n\t\t\t\t// dominant factor here, so get that length first and account for padding\n\t\t\t\tif (tickOpts.mirror) {\n\t\t\t\t\tlargestTextWidth = 0;\n\t\t\t\t} else {\n\t\t\t\t\t// use lineSpace for consistency with horizontal axis\n\t\t\t\t\t// tickPadding is not implemented for horizontal\n\t\t\t\t\tlargestTextWidth += tickPadding + lineSpace;\n\t\t\t\t}\n\n\t\t\t\tminSize.width = Math.min(me.maxWidth, minSize.width + largestTextWidth);\n\n\t\t\t\tme.paddingTop = tickFont.size / 2;\n\t\t\t\tme.paddingBottom = tickFont.size / 2;\n\t\t\t}\n\t\t}\n\n\t\tme.handleMargins();\n\n\t\tme.width = minSize.width;\n\t\tme.height = minSize.height;\n\t},\n\n\t/**\n\t * Handle margins and padding interactions\n\t * @private\n\t */\n\thandleMargins: function() {\n\t\tvar me = this;\n\t\tif (me.margins) {\n\t\t\tme.paddingLeft = Math.max(me.paddingLeft - me.margins.left, 0);\n\t\t\tme.paddingTop = Math.max(me.paddingTop - me.margins.top, 0);\n\t\t\tme.paddingRight = Math.max(me.paddingRight - me.margins.right, 0);\n\t\t\tme.paddingBottom = Math.max(me.paddingBottom - me.margins.bottom, 0);\n\t\t}\n\t},\n\n\tafterFit: function() {\n\t\thelpers.callback(this.options.afterFit, [this]);\n\t},\n\n\t// Shared Methods\n\tisHorizontal: function() {\n\t\treturn this.options.position === 'top' || this.options.position === 'bottom';\n\t},\n\tisFullWidth: function() {\n\t\treturn (this.options.fullWidth);\n\t},\n\n\t// Get the correct value. NaN bad inputs, If the value type is object get the x or y based on whether we are horizontal or not\n\tgetRightValue: function(rawValue) {\n\t\t// Null and undefined values first\n\t\tif (helpers.isNullOrUndef(rawValue)) {\n\t\t\treturn NaN;\n\t\t}\n\t\t// isNaN(object) returns true, so make sure NaN is checking for a number; Discard Infinite values\n\t\tif (typeof rawValue === 'number' && !isFinite(rawValue)) {\n\t\t\treturn NaN;\n\t\t}\n\t\t// If it is in fact an object, dive in one more level\n\t\tif (rawValue) {\n\t\t\tif (this.isHorizontal()) {\n\t\t\t\tif (rawValue.x !== undefined) {\n\t\t\t\t\treturn this.getRightValue(rawValue.x);\n\t\t\t\t}\n\t\t\t} else if (rawValue.y !== undefined) {\n\t\t\t\treturn this.getRightValue(rawValue.y);\n\t\t\t}\n\t\t}\n\n\t\t// Value is good, return it\n\t\treturn rawValue;\n\t},\n\n\t/**\n\t * Used to get the value to display in the tooltip for the data at the given index\n\t * @param index\n\t * @param datasetIndex\n\t */\n\tgetLabelForIndex: helpers.noop,\n\n\t/**\n\t * Returns the location of the given data point. Value can either be an index or a numerical value\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t * @param value\n\t * @param index\n\t * @param datasetIndex\n\t */\n\tgetPixelForValue: helpers.noop,\n\n\t/**\n\t * Used to get the data value from a given pixel. This is the inverse of getPixelForValue\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t * @param pixel\n\t */\n\tgetValueForPixel: helpers.noop,\n\n\t/**\n\t * Returns the location of the tick at the given index\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t */\n\tgetPixelForTick: function(index) {\n\t\tvar me = this;\n\t\tvar offset = me.options.offset;\n\t\tif (me.isHorizontal()) {\n\t\t\tvar innerWidth = me.width - (me.paddingLeft + me.paddingRight);\n\t\t\tvar tickWidth = innerWidth / Math.max((me._ticks.length - (offset ? 0 : 1)), 1);\n\t\t\tvar pixel = (tickWidth * index) + me.paddingLeft;\n\n\t\t\tif (offset) {\n\t\t\t\tpixel += tickWidth / 2;\n\t\t\t}\n\n\t\t\tvar finalVal = me.left + Math.round(pixel);\n\t\t\tfinalVal += me.isFullWidth() ? me.margins.left : 0;\n\t\t\treturn finalVal;\n\t\t}\n\t\tvar innerHeight = me.height - (me.paddingTop + me.paddingBottom);\n\t\treturn me.top + (index * (innerHeight / (me._ticks.length - 1)));\n\t},\n\n\t/**\n\t * Utility for getting the pixel location of a percentage of scale\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t */\n\tgetPixelForDecimal: function(decimal) {\n\t\tvar me = this;\n\t\tif (me.isHorizontal()) {\n\t\t\tvar innerWidth = me.width - (me.paddingLeft + me.paddingRight);\n\t\t\tvar valueOffset = (innerWidth * decimal) + me.paddingLeft;\n\n\t\t\tvar finalVal = me.left + Math.round(valueOffset);\n\t\t\tfinalVal += me.isFullWidth() ? me.margins.left : 0;\n\t\t\treturn finalVal;\n\t\t}\n\t\treturn me.top + (decimal * me.height);\n\t},\n\n\t/**\n\t * Returns the pixel for the minimum chart value\n\t * The coordinate (0, 0) is at the upper-left corner of the canvas\n\t */\n\tgetBasePixel: function() {\n\t\treturn this.getPixelForValue(this.getBaseValue());\n\t},\n\n\tgetBaseValue: function() {\n\t\tvar me = this;\n\t\tvar min = me.min;\n\t\tvar max = me.max;\n\n\t\treturn me.beginAtZero ? 0 :\n\t\t\tmin < 0 && max < 0 ? max :\n\t\t\tmin > 0 && max > 0 ? min :\n\t\t\t0;\n\t},\n\n\t/**\n\t * Returns a subset of ticks to be plotted to avoid overlapping labels.\n\t * @private\n\t */\n\t_autoSkip: function(ticks) {\n\t\tvar skipRatio;\n\t\tvar me = this;\n\t\tvar isHorizontal = me.isHorizontal();\n\t\tvar optionTicks = me.options.ticks.minor;\n\t\tvar tickCount = ticks.length;\n\t\tvar labelRotationRadians = helpers.toRadians(me.labelRotation);\n\t\tvar cosRotation = Math.cos(labelRotationRadians);\n\t\tvar longestRotatedLabel = me.longestLabelWidth * cosRotation;\n\t\tvar result = [];\n\t\tvar i, tick, shouldSkip;\n\n\t\t// figure out the maximum number of gridlines to show\n\t\tvar maxTicks;\n\t\tif (optionTicks.maxTicksLimit) {\n\t\t\tmaxTicks = optionTicks.maxTicksLimit;\n\t\t}\n\n\t\tif (isHorizontal) {\n\t\t\tskipRatio = false;\n\n\t\t\tif ((longestRotatedLabel + optionTicks.autoSkipPadding) * tickCount > (me.width - (me.paddingLeft + me.paddingRight))) {\n\t\t\t\tskipRatio = 1 + Math.floor(((longestRotatedLabel + optionTicks.autoSkipPadding) * tickCount) / (me.width - (me.paddingLeft + me.paddingRight)));\n\t\t\t}\n\n\t\t\t// if they defined a max number of optionTicks,\n\t\t\t// increase skipRatio until that number is met\n\t\t\tif (maxTicks && tickCount > maxTicks) {\n\t\t\t\tskipRatio = Math.max(skipRatio, Math.floor(tickCount / maxTicks));\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0; i < tickCount; i++) {\n\t\t\ttick = ticks[i];\n\n\t\t\t// Since we always show the last tick,we need may need to hide the last shown one before\n\t\t\tshouldSkip = (skipRatio > 1 && i % skipRatio > 0) || (i % skipRatio === 0 && i + skipRatio >= tickCount);\n\t\t\tif (shouldSkip && i !== tickCount - 1) {\n\t\t\t\t// leave tick in place but make sure it's not displayed (#4635)\n\t\t\t\tdelete tick.label;\n\t\t\t}\n\t\t\tresult.push(tick);\n\t\t}\n\t\treturn result;\n\t},\n\n\t// Actually draw the scale on the canvas\n\t// @param {rectangle} chartArea : the area of the chart to draw full grid lines on\n\tdraw: function(chartArea) {\n\t\tvar me = this;\n\t\tvar options = me.options;\n\t\tif (!options.display) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar context = me.ctx;\n\t\tvar globalDefaults = defaults.global;\n\t\tvar optionTicks = options.ticks.minor;\n\t\tvar optionMajorTicks = options.ticks.major || optionTicks;\n\t\tvar gridLines = options.gridLines;\n\t\tvar scaleLabel = options.scaleLabel;\n\n\t\tvar isRotated = me.labelRotation !== 0;\n\t\tvar isHorizontal = me.isHorizontal();\n\n\t\tvar ticks = optionTicks.autoSkip ? me._autoSkip(me.getTicks()) : me.getTicks();\n\t\tvar tickFontColor = helpers.valueOrDefault(optionTicks.fontColor, globalDefaults.defaultFontColor);\n\t\tvar tickFont = parseFontOptions(optionTicks);\n\t\tvar majorTickFontColor = helpers.valueOrDefault(optionMajorTicks.fontColor, globalDefaults.defaultFontColor);\n\t\tvar majorTickFont = parseFontOptions(optionMajorTicks);\n\n\t\tvar tl = gridLines.drawTicks ? gridLines.tickMarkLength : 0;\n\n\t\tvar scaleLabelFontColor = helpers.valueOrDefault(scaleLabel.fontColor, globalDefaults.defaultFontColor);\n\t\tvar scaleLabelFont = parseFontOptions(scaleLabel);\n\t\tvar scaleLabelPadding = helpers.options.toPadding(scaleLabel.padding);\n\t\tvar labelRotationRadians = helpers.toRadians(me.labelRotation);\n\n\t\tvar itemsToDraw = [];\n\n\t\tvar axisWidth = me.options.gridLines.lineWidth;\n\t\tvar xTickStart = options.position === 'right' ? me.left : me.right - axisWidth - tl;\n\t\tvar xTickEnd = options.position === 'right' ? me.left + tl : me.right;\n\t\tvar yTickStart = options.position === 'bottom' ? me.top + axisWidth : me.bottom - tl - axisWidth;\n\t\tvar yTickEnd = options.position === 'bottom' ? me.top + axisWidth + tl : me.bottom + axisWidth;\n\n\t\thelpers.each(ticks, function(tick, index) {\n\t\t\t// autoskipper skipped this tick (#4635)\n\t\t\tif (helpers.isNullOrUndef(tick.label)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar label = tick.label;\n\t\t\tvar lineWidth, lineColor, borderDash, borderDashOffset;\n\t\t\tif (index === me.zeroLineIndex && options.offset === gridLines.offsetGridLines) {\n\t\t\t\t// Draw the first index specially\n\t\t\t\tlineWidth = gridLines.zeroLineWidth;\n\t\t\t\tlineColor = gridLines.zeroLineColor;\n\t\t\t\tborderDash = gridLines.zeroLineBorderDash;\n\t\t\t\tborderDashOffset = gridLines.zeroLineBorderDashOffset;\n\t\t\t} else {\n\t\t\t\tlineWidth = helpers.valueAtIndexOrDefault(gridLines.lineWidth, index);\n\t\t\t\tlineColor = helpers.valueAtIndexOrDefault(gridLines.color, index);\n\t\t\t\tborderDash = helpers.valueOrDefault(gridLines.borderDash, globalDefaults.borderDash);\n\t\t\t\tborderDashOffset = helpers.valueOrDefault(gridLines.borderDashOffset, globalDefaults.borderDashOffset);\n\t\t\t}\n\n\t\t\t// Common properties\n\t\t\tvar tx1, ty1, tx2, ty2, x1, y1, x2, y2, labelX, labelY;\n\t\t\tvar textAlign = 'middle';\n\t\t\tvar textBaseline = 'middle';\n\t\t\tvar tickPadding = optionTicks.padding;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\tvar labelYOffset = tl + tickPadding;\n\n\t\t\t\tif (options.position === 'bottom') {\n\t\t\t\t\t// bottom\n\t\t\t\t\ttextBaseline = !isRotated ? 'top' : 'middle';\n\t\t\t\t\ttextAlign = !isRotated ? 'center' : 'right';\n\t\t\t\t\tlabelY = me.top + labelYOffset;\n\t\t\t\t} else {\n\t\t\t\t\t// top\n\t\t\t\t\ttextBaseline = !isRotated ? 'bottom' : 'middle';\n\t\t\t\t\ttextAlign = !isRotated ? 'center' : 'left';\n\t\t\t\t\tlabelY = me.bottom - labelYOffset;\n\t\t\t\t}\n\n\t\t\t\tvar xLineValue = getLineValue(me, index, gridLines.offsetGridLines && ticks.length > 1);\n\t\t\t\tif (xLineValue < me.left) {\n\t\t\t\t\tlineColor = 'rgba(0,0,0,0)';\n\t\t\t\t}\n\t\t\t\txLineValue += helpers.aliasPixel(lineWidth);\n\n\t\t\t\tlabelX = me.getPixelForTick(index) + optionTicks.labelOffset; // x values for optionTicks (need to consider offsetLabel option)\n\n\t\t\t\ttx1 = tx2 = x1 = x2 = xLineValue;\n\t\t\t\tty1 = yTickStart;\n\t\t\t\tty2 = yTickEnd;\n\t\t\t\ty1 = chartArea.top;\n\t\t\t\ty2 = chartArea.bottom + axisWidth;\n\t\t\t} else {\n\t\t\t\tvar isLeft = options.position === 'left';\n\t\t\t\tvar labelXOffset;\n\n\t\t\t\tif (optionTicks.mirror) {\n\t\t\t\t\ttextAlign = isLeft ? 'left' : 'right';\n\t\t\t\t\tlabelXOffset = tickPadding;\n\t\t\t\t} else {\n\t\t\t\t\ttextAlign = isLeft ? 'right' : 'left';\n\t\t\t\t\tlabelXOffset = tl + tickPadding;\n\t\t\t\t}\n\n\t\t\t\tlabelX = isLeft ? me.right - labelXOffset : me.left + labelXOffset;\n\n\t\t\t\tvar yLineValue = getLineValue(me, index, gridLines.offsetGridLines && ticks.length > 1);\n\t\t\t\tif (yLineValue < me.top) {\n\t\t\t\t\tlineColor = 'rgba(0,0,0,0)';\n\t\t\t\t}\n\t\t\t\tyLineValue += helpers.aliasPixel(lineWidth);\n\n\t\t\t\tlabelY = me.getPixelForTick(index) + optionTicks.labelOffset;\n\n\t\t\t\ttx1 = xTickStart;\n\t\t\t\ttx2 = xTickEnd;\n\t\t\t\tx1 = chartArea.left;\n\t\t\t\tx2 = chartArea.right + axisWidth;\n\t\t\t\tty1 = ty2 = y1 = y2 = yLineValue;\n\t\t\t}\n\n\t\t\titemsToDraw.push({\n\t\t\t\ttx1: tx1,\n\t\t\t\tty1: ty1,\n\t\t\t\ttx2: tx2,\n\t\t\t\tty2: ty2,\n\t\t\t\tx1: x1,\n\t\t\t\ty1: y1,\n\t\t\t\tx2: x2,\n\t\t\t\ty2: y2,\n\t\t\t\tlabelX: labelX,\n\t\t\t\tlabelY: labelY,\n\t\t\t\tglWidth: lineWidth,\n\t\t\t\tglColor: lineColor,\n\t\t\t\tglBorderDash: borderDash,\n\t\t\t\tglBorderDashOffset: borderDashOffset,\n\t\t\t\trotation: -1 * labelRotationRadians,\n\t\t\t\tlabel: label,\n\t\t\t\tmajor: tick.major,\n\t\t\t\ttextBaseline: textBaseline,\n\t\t\t\ttextAlign: textAlign\n\t\t\t});\n\t\t});\n\n\t\t// Draw all of the tick labels, tick marks, and grid lines at the correct places\n\t\thelpers.each(itemsToDraw, function(itemToDraw) {\n\t\t\tif (gridLines.display) {\n\t\t\t\tcontext.save();\n\t\t\t\tcontext.lineWidth = itemToDraw.glWidth;\n\t\t\t\tcontext.strokeStyle = itemToDraw.glColor;\n\t\t\t\tif (context.setLineDash) {\n\t\t\t\t\tcontext.setLineDash(itemToDraw.glBorderDash);\n\t\t\t\t\tcontext.lineDashOffset = itemToDraw.glBorderDashOffset;\n\t\t\t\t}\n\n\t\t\t\tcontext.beginPath();\n\n\t\t\t\tif (gridLines.drawTicks) {\n\t\t\t\t\tcontext.moveTo(itemToDraw.tx1, itemToDraw.ty1);\n\t\t\t\t\tcontext.lineTo(itemToDraw.tx2, itemToDraw.ty2);\n\t\t\t\t}\n\n\t\t\t\tif (gridLines.drawOnChartArea) {\n\t\t\t\t\tcontext.moveTo(itemToDraw.x1, itemToDraw.y1);\n\t\t\t\t\tcontext.lineTo(itemToDraw.x2, itemToDraw.y2);\n\t\t\t\t}\n\n\t\t\t\tcontext.stroke();\n\t\t\t\tcontext.restore();\n\t\t\t}\n\n\t\t\tif (optionTicks.display) {\n\t\t\t\t// Make sure we draw text in the correct color and font\n\t\t\t\tcontext.save();\n\t\t\t\tcontext.translate(itemToDraw.labelX, itemToDraw.labelY);\n\t\t\t\tcontext.rotate(itemToDraw.rotation);\n\t\t\t\tcontext.font = itemToDraw.major ? majorTickFont.font : tickFont.font;\n\t\t\t\tcontext.fillStyle = itemToDraw.major ? majorTickFontColor : tickFontColor;\n\t\t\t\tcontext.textBaseline = itemToDraw.textBaseline;\n\t\t\t\tcontext.textAlign = itemToDraw.textAlign;\n\n\t\t\t\tvar label = itemToDraw.label;\n\t\t\t\tif (helpers.isArray(label)) {\n\t\t\t\t\tvar lineCount = label.length;\n\t\t\t\t\tvar lineHeight = tickFont.size * 1.5;\n\t\t\t\t\tvar y = me.isHorizontal() ? 0 : -lineHeight * (lineCount - 1) / 2;\n\n\t\t\t\t\tfor (var i = 0; i < lineCount; ++i) {\n\t\t\t\t\t\t// We just make sure the multiline element is a string here..\n\t\t\t\t\t\tcontext.fillText('' + label[i], 0, y);\n\t\t\t\t\t\t// apply same lineSpacing as calculated @ L#320\n\t\t\t\t\t\ty += lineHeight;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcontext.fillText(label, 0, 0);\n\t\t\t\t}\n\t\t\t\tcontext.restore();\n\t\t\t}\n\t\t});\n\n\t\tif (scaleLabel.display) {\n\t\t\t// Draw the scale label\n\t\t\tvar scaleLabelX;\n\t\t\tvar scaleLabelY;\n\t\t\tvar rotation = 0;\n\t\t\tvar halfLineHeight = parseLineHeight(scaleLabel) / 2;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\tscaleLabelX = me.left + ((me.right - me.left) / 2); // midpoint of the width\n\t\t\t\tscaleLabelY = options.position === 'bottom'\n\t\t\t\t\t? me.bottom - halfLineHeight - scaleLabelPadding.bottom\n\t\t\t\t\t: me.top + halfLineHeight + scaleLabelPadding.top;\n\t\t\t} else {\n\t\t\t\tvar isLeft = options.position === 'left';\n\t\t\t\tscaleLabelX = isLeft\n\t\t\t\t\t? me.left + halfLineHeight + scaleLabelPadding.top\n\t\t\t\t\t: me.right - halfLineHeight - scaleLabelPadding.top;\n\t\t\t\tscaleLabelY = me.top + ((me.bottom - me.top) / 2);\n\t\t\t\trotation = isLeft ? -0.5 * Math.PI : 0.5 * Math.PI;\n\t\t\t}\n\n\t\t\tcontext.save();\n\t\t\tcontext.translate(scaleLabelX, scaleLabelY);\n\t\t\tcontext.rotate(rotation);\n\t\t\tcontext.textAlign = 'center';\n\t\t\tcontext.textBaseline = 'middle';\n\t\t\tcontext.fillStyle = scaleLabelFontColor; // render in correct colour\n\t\t\tcontext.font = scaleLabelFont.font;\n\t\t\tcontext.fillText(scaleLabel.labelString, 0, 0);\n\t\t\tcontext.restore();\n\t\t}\n\n\t\tif (gridLines.drawBorder) {\n\t\t\t// Draw the line at the edge of the axis\n\t\t\tcontext.lineWidth = helpers.valueAtIndexOrDefault(gridLines.lineWidth, 0);\n\t\t\tcontext.strokeStyle = helpers.valueAtIndexOrDefault(gridLines.color, 0);\n\t\t\tvar x1 = me.left;\n\t\t\tvar x2 = me.right + axisWidth;\n\t\t\tvar y1 = me.top;\n\t\t\tvar y2 = me.bottom + axisWidth;\n\n\t\t\tvar aliasPixel = helpers.aliasPixel(context.lineWidth);\n\t\t\tif (isHorizontal) {\n\t\t\t\ty1 = y2 = options.position === 'top' ? me.bottom : me.top;\n\t\t\t\ty1 += aliasPixel;\n\t\t\t\ty2 += aliasPixel;\n\t\t\t} else {\n\t\t\t\tx1 = x2 = options.position === 'left' ? me.right : me.left;\n\t\t\t\tx1 += aliasPixel;\n\t\t\t\tx2 += aliasPixel;\n\t\t\t}\n\n\t\t\tcontext.beginPath();\n\t\t\tcontext.moveTo(x1, y1);\n\t\t\tcontext.lineTo(x2, y2);\n\t\t\tcontext.stroke();\n\t\t}\n\t}\n});\n\n},{\"26\":26,\"27\":27,\"35\":35,\"46\":46}],34:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\nvar layouts = require(31);\n\nmodule.exports = {\n\t// Scale registration object. Extensions can register new scale types (such as log or DB scales) and then\n\t// use the new chart options to grab the correct scale\n\tconstructors: {},\n\t// Use a registration function so that we can move to an ES6 map when we no longer need to support\n\t// old browsers\n\n\t// Scale config defaults\n\tdefaults: {},\n\tregisterScaleType: function(type, scaleConstructor, scaleDefaults) {\n\t\tthis.constructors[type] = scaleConstructor;\n\t\tthis.defaults[type] = helpers.clone(scaleDefaults);\n\t},\n\tgetScaleConstructor: function(type) {\n\t\treturn this.constructors.hasOwnProperty(type) ? this.constructors[type] : undefined;\n\t},\n\tgetScaleDefaults: function(type) {\n\t\t// Return the scale defaults merged with the global settings so that we always use the latest ones\n\t\treturn this.defaults.hasOwnProperty(type) ? helpers.merge({}, [defaults.scale, this.defaults[type]]) : {};\n\t},\n\tupdateScaleDefaults: function(type, additions) {\n\t\tvar me = this;\n\t\tif (me.defaults.hasOwnProperty(type)) {\n\t\t\tme.defaults[type] = helpers.extend(me.defaults[type], additions);\n\t\t}\n\t},\n\taddScalesToLayout: function(chart) {\n\t\t// Adds each scale to the chart.boxes array to be sized accordingly\n\t\thelpers.each(chart.scales, function(scale) {\n\t\t\t// Set ILayoutItem parameters for backwards compatibility\n\t\t\tscale.fullWidth = scale.options.fullWidth;\n\t\t\tscale.position = scale.options.position;\n\t\t\tscale.weight = scale.options.weight;\n\t\t\tlayouts.addBox(chart, scale);\n\t\t});\n\t}\n};\n\n},{\"26\":26,\"31\":31,\"46\":46}],35:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\n\n/**\n * Namespace to hold static tick generation functions\n * @namespace Chart.Ticks\n */\nmodule.exports = {\n\t/**\n\t * Namespace to hold formatters for different types of ticks\n\t * @namespace Chart.Ticks.formatters\n\t */\n\tformatters: {\n\t\t/**\n\t\t * Formatter for value labels\n\t\t * @method Chart.Ticks.formatters.values\n\t\t * @param value the value to display\n\t\t * @return {String|Array} the label to display\n\t\t */\n\t\tvalues: function(value) {\n\t\t\treturn helpers.isArray(value) ? value : '' + value;\n\t\t},\n\n\t\t/**\n\t\t * Formatter for linear numeric ticks\n\t\t * @method Chart.Ticks.formatters.linear\n\t\t * @param tickValue {Number} the value to be formatted\n\t\t * @param index {Number} the position of the tickValue parameter in the ticks array\n\t\t * @param ticks {Array<Number>} the list of ticks being converted\n\t\t * @return {String} string representation of the tickValue parameter\n\t\t */\n\t\tlinear: function(tickValue, index, ticks) {\n\t\t\t// If we have lots of ticks, don't use the ones\n\t\t\tvar delta = ticks.length > 3 ? ticks[2] - ticks[1] : ticks[1] - ticks[0];\n\n\t\t\t// If we have a number like 2.5 as the delta, figure out how many decimal places we need\n\t\t\tif (Math.abs(delta) > 1) {\n\t\t\t\tif (tickValue !== Math.floor(tickValue)) {\n\t\t\t\t\t// not an integer\n\t\t\t\t\tdelta = tickValue - Math.floor(tickValue);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar logDelta = helpers.log10(Math.abs(delta));\n\t\t\tvar tickString = '';\n\n\t\t\tif (tickValue !== 0) {\n\t\t\t\tvar maxTick = Math.max(Math.abs(ticks[0]), Math.abs(ticks[ticks.length - 1]));\n\t\t\t\tif (maxTick < 1e-4) { // all ticks are small numbers; use scientific notation\n\t\t\t\t\tvar logTick = helpers.log10(Math.abs(tickValue));\n\t\t\t\t\ttickString = tickValue.toExponential(Math.floor(logTick) - Math.floor(logDelta));\n\t\t\t\t} else {\n\t\t\t\t\tvar numDecimal = -1 * Math.floor(logDelta);\n\t\t\t\t\tnumDecimal = Math.max(Math.min(numDecimal, 20), 0); // toFixed has a max of 20 decimal places\n\t\t\t\t\ttickString = tickValue.toFixed(numDecimal);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttickString = '0'; // never show decimal places for 0\n\t\t\t}\n\n\t\t\treturn tickString;\n\t\t},\n\n\t\tlogarithmic: function(tickValue, index, ticks) {\n\t\t\tvar remain = tickValue / (Math.pow(10, Math.floor(helpers.log10(tickValue))));\n\n\t\t\tif (tickValue === 0) {\n\t\t\t\treturn '0';\n\t\t\t} else if (remain === 1 || remain === 2 || remain === 5 || index === 0 || index === ticks.length - 1) {\n\t\t\t\treturn tickValue.toExponential();\n\t\t\t}\n\t\t\treturn '';\n\t\t}\n\t}\n};\n\n},{\"46\":46}],36:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\ttooltips: {\n\t\tenabled: true,\n\t\tcustom: null,\n\t\tmode: 'nearest',\n\t\tposition: 'average',\n\t\tintersect: true,\n\t\tbackgroundColor: 'rgba(0,0,0,0.8)',\n\t\ttitleFontStyle: 'bold',\n\t\ttitleSpacing: 2,\n\t\ttitleMarginBottom: 6,\n\t\ttitleFontColor: '#fff',\n\t\ttitleAlign: 'left',\n\t\tbodySpacing: 2,\n\t\tbodyFontColor: '#fff',\n\t\tbodyAlign: 'left',\n\t\tfooterFontStyle: 'bold',\n\t\tfooterSpacing: 2,\n\t\tfooterMarginTop: 6,\n\t\tfooterFontColor: '#fff',\n\t\tfooterAlign: 'left',\n\t\tyPadding: 6,\n\t\txPadding: 6,\n\t\tcaretPadding: 2,\n\t\tcaretSize: 5,\n\t\tcornerRadius: 6,\n\t\tmultiKeyBackground: '#fff',\n\t\tdisplayColors: true,\n\t\tborderColor: 'rgba(0,0,0,0)',\n\t\tborderWidth: 0,\n\t\tcallbacks: {\n\t\t\t// Args are: (tooltipItems, data)\n\t\t\tbeforeTitle: helpers.noop,\n\t\t\ttitle: function(tooltipItems, data) {\n\t\t\t\t// Pick first xLabel for now\n\t\t\t\tvar title = '';\n\t\t\t\tvar labels = data.labels;\n\t\t\t\tvar labelCount = labels ? labels.length : 0;\n\n\t\t\t\tif (tooltipItems.length > 0) {\n\t\t\t\t\tvar item = tooltipItems[0];\n\n\t\t\t\t\tif (item.xLabel) {\n\t\t\t\t\t\ttitle = item.xLabel;\n\t\t\t\t\t} else if (labelCount > 0 && item.index < labelCount) {\n\t\t\t\t\t\ttitle = labels[item.index];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn title;\n\t\t\t},\n\t\t\tafterTitle: helpers.noop,\n\n\t\t\t// Args are: (tooltipItems, data)\n\t\t\tbeforeBody: helpers.noop,\n\n\t\t\t// Args are: (tooltipItem, data)\n\t\t\tbeforeLabel: helpers.noop,\n\t\t\tlabel: function(tooltipItem, data) {\n\t\t\t\tvar label = data.datasets[tooltipItem.datasetIndex].label || '';\n\n\t\t\t\tif (label) {\n\t\t\t\t\tlabel += ': ';\n\t\t\t\t}\n\t\t\t\tlabel += tooltipItem.yLabel;\n\t\t\t\treturn label;\n\t\t\t},\n\t\t\tlabelColor: function(tooltipItem, chart) {\n\t\t\t\tvar meta = chart.getDatasetMeta(tooltipItem.datasetIndex);\n\t\t\t\tvar activeElement = meta.data[tooltipItem.index];\n\t\t\t\tvar view = activeElement._view;\n\t\t\t\treturn {\n\t\t\t\t\tborderColor: view.borderColor,\n\t\t\t\t\tbackgroundColor: view.backgroundColor\n\t\t\t\t};\n\t\t\t},\n\t\t\tlabelTextColor: function() {\n\t\t\t\treturn this._options.bodyFontColor;\n\t\t\t},\n\t\t\tafterLabel: helpers.noop,\n\n\t\t\t// Args are: (tooltipItems, data)\n\t\t\tafterBody: helpers.noop,\n\n\t\t\t// Args are: (tooltipItems, data)\n\t\t\tbeforeFooter: helpers.noop,\n\t\t\tfooter: helpers.noop,\n\t\t\tafterFooter: helpers.noop\n\t\t}\n\t}\n});\n\nvar positioners = {\n\t/**\n\t * Average mode places the tooltip at the average position of the elements shown\n\t * @function Chart.Tooltip.positioners.average\n\t * @param elements {ChartElement[]} the elements being displayed in the tooltip\n\t * @returns {Point} tooltip position\n\t */\n\taverage: function(elements) {\n\t\tif (!elements.length) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar i, len;\n\t\tvar x = 0;\n\t\tvar y = 0;\n\t\tvar count = 0;\n\n\t\tfor (i = 0, len = elements.length; i < len; ++i) {\n\t\t\tvar el = elements[i];\n\t\t\tif (el && el.hasValue()) {\n\t\t\t\tvar pos = el.tooltipPosition();\n\t\t\t\tx += pos.x;\n\t\t\t\ty += pos.y;\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\tx: Math.round(x / count),\n\t\t\ty: Math.round(y / count)\n\t\t};\n\t},\n\n\t/**\n\t * Gets the tooltip position nearest of the item nearest to the event position\n\t * @function Chart.Tooltip.positioners.nearest\n\t * @param elements {Chart.Element[]} the tooltip elements\n\t * @param eventPosition {Point} the position of the event in canvas coordinates\n\t * @returns {Point} the tooltip position\n\t */\n\tnearest: function(elements, eventPosition) {\n\t\tvar x = eventPosition.x;\n\t\tvar y = eventPosition.y;\n\t\tvar minDistance = Number.POSITIVE_INFINITY;\n\t\tvar i, len, nearestElement;\n\n\t\tfor (i = 0, len = elements.length; i < len; ++i) {\n\t\t\tvar el = elements[i];\n\t\t\tif (el && el.hasValue()) {\n\t\t\t\tvar center = el.getCenterPoint();\n\t\t\t\tvar d = helpers.distanceBetweenPoints(eventPosition, center);\n\n\t\t\t\tif (d < minDistance) {\n\t\t\t\t\tminDistance = d;\n\t\t\t\t\tnearestElement = el;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (nearestElement) {\n\t\t\tvar tp = nearestElement.tooltipPosition();\n\t\t\tx = tp.x;\n\t\t\ty = tp.y;\n\t\t}\n\n\t\treturn {\n\t\t\tx: x,\n\t\t\ty: y\n\t\t};\n\t}\n};\n\n/**\n * Helper method to merge the opacity into a color\n */\nfunction mergeOpacity(colorString, opacity) {\n\tvar color = helpers.color(colorString);\n\treturn color.alpha(opacity * color.alpha()).rgbaString();\n}\n\n// Helper to push or concat based on if the 2nd parameter is an array or not\nfunction pushOrConcat(base, toPush) {\n\tif (toPush) {\n\t\tif (helpers.isArray(toPush)) {\n\t\t\t// base = base.concat(toPush);\n\t\t\tArray.prototype.push.apply(base, toPush);\n\t\t} else {\n\t\t\tbase.push(toPush);\n\t\t}\n\t}\n\n\treturn base;\n}\n\n/**\n * Returns array of strings split by newline\n * @param {String} value - The value to split by newline.\n * @returns {Array} value if newline present - Returned from String split() method\n * @function\n */\nfunction splitNewlines(str) {\n\tif ((typeof str === 'string' || str instanceof String) && str.indexOf('\\n') > -1) {\n\t\treturn str.split('\\n');\n\t}\n\treturn str;\n}\n\n\n// Private helper to create a tooltip item model\n// @param element : the chart element (point, arc, bar) to create the tooltip item for\n// @return : new tooltip item\nfunction createTooltipItem(element) {\n\tvar xScale = element._xScale;\n\tvar yScale = element._yScale || element._scale; // handle radar || polarArea charts\n\tvar index = element._index;\n\tvar datasetIndex = element._datasetIndex;\n\n\treturn {\n\t\txLabel: xScale ? xScale.getLabelForIndex(index, datasetIndex) : '',\n\t\tyLabel: yScale ? yScale.getLabelForIndex(index, datasetIndex) : '',\n\t\tindex: index,\n\t\tdatasetIndex: datasetIndex,\n\t\tx: element._model.x,\n\t\ty: element._model.y\n\t};\n}\n\n/**\n * Helper to get the reset model for the tooltip\n * @param tooltipOpts {Object} the tooltip options\n */\nfunction getBaseModel(tooltipOpts) {\n\tvar globalDefaults = defaults.global;\n\tvar valueOrDefault = helpers.valueOrDefault;\n\n\treturn {\n\t\t// Positioning\n\t\txPadding: tooltipOpts.xPadding,\n\t\tyPadding: tooltipOpts.yPadding,\n\t\txAlign: tooltipOpts.xAlign,\n\t\tyAlign: tooltipOpts.yAlign,\n\n\t\t// Body\n\t\tbodyFontColor: tooltipOpts.bodyFontColor,\n\t\t_bodyFontFamily: valueOrDefault(tooltipOpts.bodyFontFamily, globalDefaults.defaultFontFamily),\n\t\t_bodyFontStyle: valueOrDefault(tooltipOpts.bodyFontStyle, globalDefaults.defaultFontStyle),\n\t\t_bodyAlign: tooltipOpts.bodyAlign,\n\t\tbodyFontSize: valueOrDefault(tooltipOpts.bodyFontSize, globalDefaults.defaultFontSize),\n\t\tbodySpacing: tooltipOpts.bodySpacing,\n\n\t\t// Title\n\t\ttitleFontColor: tooltipOpts.titleFontColor,\n\t\t_titleFontFamily: valueOrDefault(tooltipOpts.titleFontFamily, globalDefaults.defaultFontFamily),\n\t\t_titleFontStyle: valueOrDefault(tooltipOpts.titleFontStyle, globalDefaults.defaultFontStyle),\n\t\ttitleFontSize: valueOrDefault(tooltipOpts.titleFontSize, globalDefaults.defaultFontSize),\n\t\t_titleAlign: tooltipOpts.titleAlign,\n\t\ttitleSpacing: tooltipOpts.titleSpacing,\n\t\ttitleMarginBottom: tooltipOpts.titleMarginBottom,\n\n\t\t// Footer\n\t\tfooterFontColor: tooltipOpts.footerFontColor,\n\t\t_footerFontFamily: valueOrDefault(tooltipOpts.footerFontFamily, globalDefaults.defaultFontFamily),\n\t\t_footerFontStyle: valueOrDefault(tooltipOpts.footerFontStyle, globalDefaults.defaultFontStyle),\n\t\tfooterFontSize: valueOrDefault(tooltipOpts.footerFontSize, globalDefaults.defaultFontSize),\n\t\t_footerAlign: tooltipOpts.footerAlign,\n\t\tfooterSpacing: tooltipOpts.footerSpacing,\n\t\tfooterMarginTop: tooltipOpts.footerMarginTop,\n\n\t\t// Appearance\n\t\tcaretSize: tooltipOpts.caretSize,\n\t\tcornerRadius: tooltipOpts.cornerRadius,\n\t\tbackgroundColor: tooltipOpts.backgroundColor,\n\t\topacity: 0,\n\t\tlegendColorBackground: tooltipOpts.multiKeyBackground,\n\t\tdisplayColors: tooltipOpts.displayColors,\n\t\tborderColor: tooltipOpts.borderColor,\n\t\tborderWidth: tooltipOpts.borderWidth\n\t};\n}\n\n/**\n * Get the size of the tooltip\n */\nfunction getTooltipSize(tooltip, model) {\n\tvar ctx = tooltip._chart.ctx;\n\n\tvar height = model.yPadding * 2; // Tooltip Padding\n\tvar width = 0;\n\n\t// Count of all lines in the body\n\tvar body = model.body;\n\tvar combinedBodyLength = body.reduce(function(count, bodyItem) {\n\t\treturn count + bodyItem.before.length + bodyItem.lines.length + bodyItem.after.length;\n\t}, 0);\n\tcombinedBodyLength += model.beforeBody.length + model.afterBody.length;\n\n\tvar titleLineCount = model.title.length;\n\tvar footerLineCount = model.footer.length;\n\tvar titleFontSize = model.titleFontSize;\n\tvar bodyFontSize = model.bodyFontSize;\n\tvar footerFontSize = model.footerFontSize;\n\n\theight += titleLineCount * titleFontSize; // Title Lines\n\theight += titleLineCount ? (titleLineCount - 1) * model.titleSpacing : 0; // Title Line Spacing\n\theight += titleLineCount ? model.titleMarginBottom : 0; // Title's bottom Margin\n\theight += combinedBodyLength * bodyFontSize; // Body Lines\n\theight += combinedBodyLength ? (combinedBodyLength - 1) * model.bodySpacing : 0; // Body Line Spacing\n\theight += footerLineCount ? model.footerMarginTop : 0; // Footer Margin\n\theight += footerLineCount * (footerFontSize); // Footer Lines\n\theight += footerLineCount ? (footerLineCount - 1) * model.footerSpacing : 0; // Footer Line Spacing\n\n\t// Title width\n\tvar widthPadding = 0;\n\tvar maxLineWidth = function(line) {\n\t\twidth = Math.max(width, ctx.measureText(line).width + widthPadding);\n\t};\n\n\tctx.font = helpers.fontString(titleFontSize, model._titleFontStyle, model._titleFontFamily);\n\thelpers.each(model.title, maxLineWidth);\n\n\t// Body width\n\tctx.font = helpers.fontString(bodyFontSize, model._bodyFontStyle, model._bodyFontFamily);\n\thelpers.each(model.beforeBody.concat(model.afterBody), maxLineWidth);\n\n\t// Body lines may include some extra width due to the color box\n\twidthPadding = model.displayColors ? (bodyFontSize + 2) : 0;\n\thelpers.each(body, function(bodyItem) {\n\t\thelpers.each(bodyItem.before, maxLineWidth);\n\t\thelpers.each(bodyItem.lines, maxLineWidth);\n\t\thelpers.each(bodyItem.after, maxLineWidth);\n\t});\n\n\t// Reset back to 0\n\twidthPadding = 0;\n\n\t// Footer width\n\tctx.font = helpers.fontString(footerFontSize, model._footerFontStyle, model._footerFontFamily);\n\thelpers.each(model.footer, maxLineWidth);\n\n\t// Add padding\n\twidth += 2 * model.xPadding;\n\n\treturn {\n\t\twidth: width,\n\t\theight: height\n\t};\n}\n\n/**\n * Helper to get the alignment of a tooltip given the size\n */\nfunction determineAlignment(tooltip, size) {\n\tvar model = tooltip._model;\n\tvar chart = tooltip._chart;\n\tvar chartArea = tooltip._chart.chartArea;\n\tvar xAlign = 'center';\n\tvar yAlign = 'center';\n\n\tif (model.y < size.height) {\n\t\tyAlign = 'top';\n\t} else if (model.y > (chart.height - size.height)) {\n\t\tyAlign = 'bottom';\n\t}\n\n\tvar lf, rf; // functions to determine left, right alignment\n\tvar olf, orf; // functions to determine if left/right alignment causes tooltip to go outside chart\n\tvar yf; // function to get the y alignment if the tooltip goes outside of the left or right edges\n\tvar midX = (chartArea.left + chartArea.right) / 2;\n\tvar midY = (chartArea.top + chartArea.bottom) / 2;\n\n\tif (yAlign === 'center') {\n\t\tlf = function(x) {\n\t\t\treturn x <= midX;\n\t\t};\n\t\trf = function(x) {\n\t\t\treturn x > midX;\n\t\t};\n\t} else {\n\t\tlf = function(x) {\n\t\t\treturn x <= (size.width / 2);\n\t\t};\n\t\trf = function(x) {\n\t\t\treturn x >= (chart.width - (size.width / 2));\n\t\t};\n\t}\n\n\tolf = function(x) {\n\t\treturn x + size.width + model.caretSize + model.caretPadding > chart.width;\n\t};\n\torf = function(x) {\n\t\treturn x - size.width - model.caretSize - model.caretPadding < 0;\n\t};\n\tyf = function(y) {\n\t\treturn y <= midY ? 'top' : 'bottom';\n\t};\n\n\tif (lf(model.x)) {\n\t\txAlign = 'left';\n\n\t\t// Is tooltip too wide and goes over the right side of the chart.?\n\t\tif (olf(model.x)) {\n\t\t\txAlign = 'center';\n\t\t\tyAlign = yf(model.y);\n\t\t}\n\t} else if (rf(model.x)) {\n\t\txAlign = 'right';\n\n\t\t// Is tooltip too wide and goes outside left edge of canvas?\n\t\tif (orf(model.x)) {\n\t\t\txAlign = 'center';\n\t\t\tyAlign = yf(model.y);\n\t\t}\n\t}\n\n\tvar opts = tooltip._options;\n\treturn {\n\t\txAlign: opts.xAlign ? opts.xAlign : xAlign,\n\t\tyAlign: opts.yAlign ? opts.yAlign : yAlign\n\t};\n}\n\n/**\n * Helper to get the location a tooltip needs to be placed at given the initial position (via the vm) and the size and alignment\n */\nfunction getBackgroundPoint(vm, size, alignment, chart) {\n\t// Background Position\n\tvar x = vm.x;\n\tvar y = vm.y;\n\n\tvar caretSize = vm.caretSize;\n\tvar caretPadding = vm.caretPadding;\n\tvar cornerRadius = vm.cornerRadius;\n\tvar xAlign = alignment.xAlign;\n\tvar yAlign = alignment.yAlign;\n\tvar paddingAndSize = caretSize + caretPadding;\n\tvar radiusAndPadding = cornerRadius + caretPadding;\n\n\tif (xAlign === 'right') {\n\t\tx -= size.width;\n\t} else if (xAlign === 'center') {\n\t\tx -= (size.width / 2);\n\t\tif (x + size.width > chart.width) {\n\t\t\tx = chart.width - size.width;\n\t\t}\n\t\tif (x < 0) {\n\t\t\tx = 0;\n\t\t}\n\t}\n\n\tif (yAlign === 'top') {\n\t\ty += paddingAndSize;\n\t} else if (yAlign === 'bottom') {\n\t\ty -= size.height + paddingAndSize;\n\t} else {\n\t\ty -= (size.height / 2);\n\t}\n\n\tif (yAlign === 'center') {\n\t\tif (xAlign === 'left') {\n\t\t\tx += paddingAndSize;\n\t\t} else if (xAlign === 'right') {\n\t\t\tx -= paddingAndSize;\n\t\t}\n\t} else if (xAlign === 'left') {\n\t\tx -= radiusAndPadding;\n\t} else if (xAlign === 'right') {\n\t\tx += radiusAndPadding;\n\t}\n\n\treturn {\n\t\tx: x,\n\t\ty: y\n\t};\n}\n\n/**\n * Helper to build before and after body lines\n */\nfunction getBeforeAfterBodyLines(callback) {\n\treturn pushOrConcat([], splitNewlines(callback));\n}\n\nvar exports = module.exports = Element.extend({\n\tinitialize: function() {\n\t\tthis._model = getBaseModel(this._options);\n\t\tthis._lastActive = [];\n\t},\n\n\t// Get the title\n\t// Args are: (tooltipItem, data)\n\tgetTitle: function() {\n\t\tvar me = this;\n\t\tvar opts = me._options;\n\t\tvar callbacks = opts.callbacks;\n\n\t\tvar beforeTitle = callbacks.beforeTitle.apply(me, arguments);\n\t\tvar title = callbacks.title.apply(me, arguments);\n\t\tvar afterTitle = callbacks.afterTitle.apply(me, arguments);\n\n\t\tvar lines = [];\n\t\tlines = pushOrConcat(lines, splitNewlines(beforeTitle));\n\t\tlines = pushOrConcat(lines, splitNewlines(title));\n\t\tlines = pushOrConcat(lines, splitNewlines(afterTitle));\n\n\t\treturn lines;\n\t},\n\n\t// Args are: (tooltipItem, data)\n\tgetBeforeBody: function() {\n\t\treturn getBeforeAfterBodyLines(this._options.callbacks.beforeBody.apply(this, arguments));\n\t},\n\n\t// Args are: (tooltipItem, data)\n\tgetBody: function(tooltipItems, data) {\n\t\tvar me = this;\n\t\tvar callbacks = me._options.callbacks;\n\t\tvar bodyItems = [];\n\n\t\thelpers.each(tooltipItems, function(tooltipItem) {\n\t\t\tvar bodyItem = {\n\t\t\t\tbefore: [],\n\t\t\t\tlines: [],\n\t\t\t\tafter: []\n\t\t\t};\n\t\t\tpushOrConcat(bodyItem.before, splitNewlines(callbacks.beforeLabel.call(me, tooltipItem, data)));\n\t\t\tpushOrConcat(bodyItem.lines, callbacks.label.call(me, tooltipItem, data));\n\t\t\tpushOrConcat(bodyItem.after, splitNewlines(callbacks.afterLabel.call(me, tooltipItem, data)));\n\n\t\t\tbodyItems.push(bodyItem);\n\t\t});\n\n\t\treturn bodyItems;\n\t},\n\n\t// Args are: (tooltipItem, data)\n\tgetAfterBody: function() {\n\t\treturn getBeforeAfterBodyLines(this._options.callbacks.afterBody.apply(this, arguments));\n\t},\n\n\t// Get the footer and beforeFooter and afterFooter lines\n\t// Args are: (tooltipItem, data)\n\tgetFooter: function() {\n\t\tvar me = this;\n\t\tvar callbacks = me._options.callbacks;\n\n\t\tvar beforeFooter = callbacks.beforeFooter.apply(me, arguments);\n\t\tvar footer = callbacks.footer.apply(me, arguments);\n\t\tvar afterFooter = callbacks.afterFooter.apply(me, arguments);\n\n\t\tvar lines = [];\n\t\tlines = pushOrConcat(lines, splitNewlines(beforeFooter));\n\t\tlines = pushOrConcat(lines, splitNewlines(footer));\n\t\tlines = pushOrConcat(lines, splitNewlines(afterFooter));\n\n\t\treturn lines;\n\t},\n\n\tupdate: function(changed) {\n\t\tvar me = this;\n\t\tvar opts = me._options;\n\n\t\t// Need to regenerate the model because its faster than using extend and it is necessary due to the optimization in Chart.Element.transition\n\t\t// that does _view = _model if ease === 1. This causes the 2nd tooltip update to set properties in both the view and model at the same time\n\t\t// which breaks any animations.\n\t\tvar existingModel = me._model;\n\t\tvar model = me._model = getBaseModel(opts);\n\t\tvar active = me._active;\n\n\t\tvar data = me._data;\n\n\t\t// In the case where active.length === 0 we need to keep these at existing values for good animations\n\t\tvar alignment = {\n\t\t\txAlign: existingModel.xAlign,\n\t\t\tyAlign: existingModel.yAlign\n\t\t};\n\t\tvar backgroundPoint = {\n\t\t\tx: existingModel.x,\n\t\t\ty: existingModel.y\n\t\t};\n\t\tvar tooltipSize = {\n\t\t\twidth: existingModel.width,\n\t\t\theight: existingModel.height\n\t\t};\n\t\tvar tooltipPosition = {\n\t\t\tx: existingModel.caretX,\n\t\t\ty: existingModel.caretY\n\t\t};\n\n\t\tvar i, len;\n\n\t\tif (active.length) {\n\t\t\tmodel.opacity = 1;\n\n\t\t\tvar labelColors = [];\n\t\t\tvar labelTextColors = [];\n\t\t\ttooltipPosition = positioners[opts.position].call(me, active, me._eventPosition);\n\n\t\t\tvar tooltipItems = [];\n\t\t\tfor (i = 0, len = active.length; i < len; ++i) {\n\t\t\t\ttooltipItems.push(createTooltipItem(active[i]));\n\t\t\t}\n\n\t\t\t// If the user provided a filter function, use it to modify the tooltip items\n\t\t\tif (opts.filter) {\n\t\t\t\ttooltipItems = tooltipItems.filter(function(a) {\n\t\t\t\t\treturn opts.filter(a, data);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// If the user provided a sorting function, use it to modify the tooltip items\n\t\t\tif (opts.itemSort) {\n\t\t\t\ttooltipItems = tooltipItems.sort(function(a, b) {\n\t\t\t\t\treturn opts.itemSort(a, b, data);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// Determine colors for boxes\n\t\t\thelpers.each(tooltipItems, function(tooltipItem) {\n\t\t\t\tlabelColors.push(opts.callbacks.labelColor.call(me, tooltipItem, me._chart));\n\t\t\t\tlabelTextColors.push(opts.callbacks.labelTextColor.call(me, tooltipItem, me._chart));\n\t\t\t});\n\n\n\t\t\t// Build the Text Lines\n\t\t\tmodel.title = me.getTitle(tooltipItems, data);\n\t\t\tmodel.beforeBody = me.getBeforeBody(tooltipItems, data);\n\t\t\tmodel.body = me.getBody(tooltipItems, data);\n\t\t\tmodel.afterBody = me.getAfterBody(tooltipItems, data);\n\t\t\tmodel.footer = me.getFooter(tooltipItems, data);\n\n\t\t\t// Initial positioning and colors\n\t\t\tmodel.x = Math.round(tooltipPosition.x);\n\t\t\tmodel.y = Math.round(tooltipPosition.y);\n\t\t\tmodel.caretPadding = opts.caretPadding;\n\t\t\tmodel.labelColors = labelColors;\n\t\t\tmodel.labelTextColors = labelTextColors;\n\n\t\t\t// data points\n\t\t\tmodel.dataPoints = tooltipItems;\n\n\t\t\t// We need to determine alignment of the tooltip\n\t\t\ttooltipSize = getTooltipSize(this, model);\n\t\t\talignment = determineAlignment(this, tooltipSize);\n\t\t\t// Final Size and Position\n\t\t\tbackgroundPoint = getBackgroundPoint(model, tooltipSize, alignment, me._chart);\n\t\t} else {\n\t\t\tmodel.opacity = 0;\n\t\t}\n\n\t\tmodel.xAlign = alignment.xAlign;\n\t\tmodel.yAlign = alignment.yAlign;\n\t\tmodel.x = backgroundPoint.x;\n\t\tmodel.y = backgroundPoint.y;\n\t\tmodel.width = tooltipSize.width;\n\t\tmodel.height = tooltipSize.height;\n\n\t\t// Point where the caret on the tooltip points to\n\t\tmodel.caretX = tooltipPosition.x;\n\t\tmodel.caretY = tooltipPosition.y;\n\n\t\tme._model = model;\n\n\t\tif (changed && opts.custom) {\n\t\t\topts.custom.call(me, model);\n\t\t}\n\n\t\treturn me;\n\t},\n\n\tdrawCaret: function(tooltipPoint, size) {\n\t\tvar ctx = this._chart.ctx;\n\t\tvar vm = this._view;\n\t\tvar caretPosition = this.getCaretPosition(tooltipPoint, size, vm);\n\n\t\tctx.lineTo(caretPosition.x1, caretPosition.y1);\n\t\tctx.lineTo(caretPosition.x2, caretPosition.y2);\n\t\tctx.lineTo(caretPosition.x3, caretPosition.y3);\n\t},\n\tgetCaretPosition: function(tooltipPoint, size, vm) {\n\t\tvar x1, x2, x3, y1, y2, y3;\n\t\tvar caretSize = vm.caretSize;\n\t\tvar cornerRadius = vm.cornerRadius;\n\t\tvar xAlign = vm.xAlign;\n\t\tvar yAlign = vm.yAlign;\n\t\tvar ptX = tooltipPoint.x;\n\t\tvar ptY = tooltipPoint.y;\n\t\tvar width = size.width;\n\t\tvar height = size.height;\n\n\t\tif (yAlign === 'center') {\n\t\t\ty2 = ptY + (height / 2);\n\n\t\t\tif (xAlign === 'left') {\n\t\t\t\tx1 = ptX;\n\t\t\t\tx2 = x1 - caretSize;\n\t\t\t\tx3 = x1;\n\n\t\t\t\ty1 = y2 + caretSize;\n\t\t\t\ty3 = y2 - caretSize;\n\t\t\t} else {\n\t\t\t\tx1 = ptX + width;\n\t\t\t\tx2 = x1 + caretSize;\n\t\t\t\tx3 = x1;\n\n\t\t\t\ty1 = y2 - caretSize;\n\t\t\t\ty3 = y2 + caretSize;\n\t\t\t}\n\t\t} else {\n\t\t\tif (xAlign === 'left') {\n\t\t\t\tx2 = ptX + cornerRadius + (caretSize);\n\t\t\t\tx1 = x2 - caretSize;\n\t\t\t\tx3 = x2 + caretSize;\n\t\t\t} else if (xAlign === 'right') {\n\t\t\t\tx2 = ptX + width - cornerRadius - caretSize;\n\t\t\t\tx1 = x2 - caretSize;\n\t\t\t\tx3 = x2 + caretSize;\n\t\t\t} else {\n\t\t\t\tx2 = vm.caretX;\n\t\t\t\tx1 = x2 - caretSize;\n\t\t\t\tx3 = x2 + caretSize;\n\t\t\t}\n\t\t\tif (yAlign === 'top') {\n\t\t\t\ty1 = ptY;\n\t\t\t\ty2 = y1 - caretSize;\n\t\t\t\ty3 = y1;\n\t\t\t} else {\n\t\t\t\ty1 = ptY + height;\n\t\t\t\ty2 = y1 + caretSize;\n\t\t\t\ty3 = y1;\n\t\t\t\t// invert drawing order\n\t\t\t\tvar tmp = x3;\n\t\t\t\tx3 = x1;\n\t\t\t\tx1 = tmp;\n\t\t\t}\n\t\t}\n\t\treturn {x1: x1, x2: x2, x3: x3, y1: y1, y2: y2, y3: y3};\n\t},\n\n\tdrawTitle: function(pt, vm, ctx, opacity) {\n\t\tvar title = vm.title;\n\n\t\tif (title.length) {\n\t\t\tctx.textAlign = vm._titleAlign;\n\t\t\tctx.textBaseline = 'top';\n\n\t\t\tvar titleFontSize = vm.titleFontSize;\n\t\t\tvar titleSpacing = vm.titleSpacing;\n\n\t\t\tctx.fillStyle = mergeOpacity(vm.titleFontColor, opacity);\n\t\t\tctx.font = helpers.fontString(titleFontSize, vm._titleFontStyle, vm._titleFontFamily);\n\n\t\t\tvar i, len;\n\t\t\tfor (i = 0, len = title.length; i < len; ++i) {\n\t\t\t\tctx.fillText(title[i], pt.x, pt.y);\n\t\t\t\tpt.y += titleFontSize + titleSpacing; // Line Height and spacing\n\n\t\t\t\tif (i + 1 === title.length) {\n\t\t\t\t\tpt.y += vm.titleMarginBottom - titleSpacing; // If Last, add margin, remove spacing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tdrawBody: function(pt, vm, ctx, opacity) {\n\t\tvar bodyFontSize = vm.bodyFontSize;\n\t\tvar bodySpacing = vm.bodySpacing;\n\t\tvar body = vm.body;\n\n\t\tctx.textAlign = vm._bodyAlign;\n\t\tctx.textBaseline = 'top';\n\t\tctx.font = helpers.fontString(bodyFontSize, vm._bodyFontStyle, vm._bodyFontFamily);\n\n\t\t// Before Body\n\t\tvar xLinePadding = 0;\n\t\tvar fillLineOfText = function(line) {\n\t\t\tctx.fillText(line, pt.x + xLinePadding, pt.y);\n\t\t\tpt.y += bodyFontSize + bodySpacing;\n\t\t};\n\n\t\t// Before body lines\n\t\tctx.fillStyle = mergeOpacity(vm.bodyFontColor, opacity);\n\t\thelpers.each(vm.beforeBody, fillLineOfText);\n\n\t\tvar drawColorBoxes = vm.displayColors;\n\t\txLinePadding = drawColorBoxes ? (bodyFontSize + 2) : 0;\n\n\t\t// Draw body lines now\n\t\thelpers.each(body, function(bodyItem, i) {\n\t\t\tvar textColor = mergeOpacity(vm.labelTextColors[i], opacity);\n\t\t\tctx.fillStyle = textColor;\n\t\t\thelpers.each(bodyItem.before, fillLineOfText);\n\n\t\t\thelpers.each(bodyItem.lines, function(line) {\n\t\t\t\t// Draw Legend-like boxes if needed\n\t\t\t\tif (drawColorBoxes) {\n\t\t\t\t\t// Fill a white rect so that colours merge nicely if the opacity is < 1\n\t\t\t\t\tctx.fillStyle = mergeOpacity(vm.legendColorBackground, opacity);\n\t\t\t\t\tctx.fillRect(pt.x, pt.y, bodyFontSize, bodyFontSize);\n\n\t\t\t\t\t// Border\n\t\t\t\t\tctx.lineWidth = 1;\n\t\t\t\t\tctx.strokeStyle = mergeOpacity(vm.labelColors[i].borderColor, opacity);\n\t\t\t\t\tctx.strokeRect(pt.x, pt.y, bodyFontSize, bodyFontSize);\n\n\t\t\t\t\t// Inner square\n\t\t\t\t\tctx.fillStyle = mergeOpacity(vm.labelColors[i].backgroundColor, opacity);\n\t\t\t\t\tctx.fillRect(pt.x + 1, pt.y + 1, bodyFontSize - 2, bodyFontSize - 2);\n\t\t\t\t\tctx.fillStyle = textColor;\n\t\t\t\t}\n\n\t\t\t\tfillLineOfText(line);\n\t\t\t});\n\n\t\t\thelpers.each(bodyItem.after, fillLineOfText);\n\t\t});\n\n\t\t// Reset back to 0 for after body\n\t\txLinePadding = 0;\n\n\t\t// After body lines\n\t\thelpers.each(vm.afterBody, fillLineOfText);\n\t\tpt.y -= bodySpacing; // Remove last body spacing\n\t},\n\n\tdrawFooter: function(pt, vm, ctx, opacity) {\n\t\tvar footer = vm.footer;\n\n\t\tif (footer.length) {\n\t\t\tpt.y += vm.footerMarginTop;\n\n\t\t\tctx.textAlign = vm._footerAlign;\n\t\t\tctx.textBaseline = 'top';\n\n\t\t\tctx.fillStyle = mergeOpacity(vm.footerFontColor, opacity);\n\t\t\tctx.font = helpers.fontString(vm.footerFontSize, vm._footerFontStyle, vm._footerFontFamily);\n\n\t\t\thelpers.each(footer, function(line) {\n\t\t\t\tctx.fillText(line, pt.x, pt.y);\n\t\t\t\tpt.y += vm.footerFontSize + vm.footerSpacing;\n\t\t\t});\n\t\t}\n\t},\n\n\tdrawBackground: function(pt, vm, ctx, tooltipSize, opacity) {\n\t\tctx.fillStyle = mergeOpacity(vm.backgroundColor, opacity);\n\t\tctx.strokeStyle = mergeOpacity(vm.borderColor, opacity);\n\t\tctx.lineWidth = vm.borderWidth;\n\t\tvar xAlign = vm.xAlign;\n\t\tvar yAlign = vm.yAlign;\n\t\tvar x = pt.x;\n\t\tvar y = pt.y;\n\t\tvar width = tooltipSize.width;\n\t\tvar height = tooltipSize.height;\n\t\tvar radius = vm.cornerRadius;\n\n\t\tctx.beginPath();\n\t\tctx.moveTo(x + radius, y);\n\t\tif (yAlign === 'top') {\n\t\t\tthis.drawCaret(pt, tooltipSize);\n\t\t}\n\t\tctx.lineTo(x + width - radius, y);\n\t\tctx.quadraticCurveTo(x + width, y, x + width, y + radius);\n\t\tif (yAlign === 'center' && xAlign === 'right') {\n\t\t\tthis.drawCaret(pt, tooltipSize);\n\t\t}\n\t\tctx.lineTo(x + width, y + height - radius);\n\t\tctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);\n\t\tif (yAlign === 'bottom') {\n\t\t\tthis.drawCaret(pt, tooltipSize);\n\t\t}\n\t\tctx.lineTo(x + radius, y + height);\n\t\tctx.quadraticCurveTo(x, y + height, x, y + height - radius);\n\t\tif (yAlign === 'center' && xAlign === 'left') {\n\t\t\tthis.drawCaret(pt, tooltipSize);\n\t\t}\n\t\tctx.lineTo(x, y + radius);\n\t\tctx.quadraticCurveTo(x, y, x + radius, y);\n\t\tctx.closePath();\n\n\t\tctx.fill();\n\n\t\tif (vm.borderWidth > 0) {\n\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\tdraw: function() {\n\t\tvar ctx = this._chart.ctx;\n\t\tvar vm = this._view;\n\n\t\tif (vm.opacity === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar tooltipSize = {\n\t\t\twidth: vm.width,\n\t\t\theight: vm.height\n\t\t};\n\t\tvar pt = {\n\t\t\tx: vm.x,\n\t\t\ty: vm.y\n\t\t};\n\n\t\t// IE11/Edge does not like very small opacities, so snap to 0\n\t\tvar opacity = Math.abs(vm.opacity < 1e-3) ? 0 : vm.opacity;\n\n\t\t// Truthy/falsey value for empty tooltip\n\t\tvar hasTooltipContent = vm.title.length || vm.beforeBody.length || vm.body.length || vm.afterBody.length || vm.footer.length;\n\n\t\tif (this._options.enabled && hasTooltipContent) {\n\t\t\t// Draw Background\n\t\t\tthis.drawBackground(pt, vm, ctx, tooltipSize, opacity);\n\n\t\t\t// Draw Title, Body, and Footer\n\t\t\tpt.x += vm.xPadding;\n\t\t\tpt.y += vm.yPadding;\n\n\t\t\t// Titles\n\t\t\tthis.drawTitle(pt, vm, ctx, opacity);\n\n\t\t\t// Body\n\t\t\tthis.drawBody(pt, vm, ctx, opacity);\n\n\t\t\t// Footer\n\t\t\tthis.drawFooter(pt, vm, ctx, opacity);\n\t\t}\n\t},\n\n\t/**\n\t * Handle an event\n\t * @private\n\t * @param {IEvent} event - The event to handle\n\t * @returns {Boolean} true if the tooltip changed\n\t */\n\thandleEvent: function(e) {\n\t\tvar me = this;\n\t\tvar options = me._options;\n\t\tvar changed = false;\n\n\t\tme._lastActive = me._lastActive || [];\n\n\t\t// Find Active Elements for tooltips\n\t\tif (e.type === 'mouseout') {\n\t\t\tme._active = [];\n\t\t} else {\n\t\t\tme._active = me._chart.getElementsAtEventForMode(e, options.mode, options);\n\t\t}\n\n\t\t// Remember Last Actives\n\t\tchanged = !helpers.arrayEquals(me._active, me._lastActive);\n\n\t\t// Only handle target event on tooltip change\n\t\tif (changed) {\n\t\t\tme._lastActive = me._active;\n\n\t\t\tif (options.enabled || options.custom) {\n\t\t\t\tme._eventPosition = {\n\t\t\t\t\tx: e.x,\n\t\t\t\t\ty: e.y\n\t\t\t\t};\n\n\t\t\t\tme.update(true);\n\t\t\t\tme.pivot();\n\t\t\t}\n\t\t}\n\n\t\treturn changed;\n\t}\n});\n\n/**\n * @namespace Chart.Tooltip.positioners\n */\nexports.positioners = positioners;\n\n\n},{\"26\":26,\"27\":27,\"46\":46}],37:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\telements: {\n\t\tarc: {\n\t\t\tbackgroundColor: defaults.global.defaultColor,\n\t\t\tborderColor: '#fff',\n\t\t\tborderWidth: 2\n\t\t}\n\t}\n});\n\nmodule.exports = Element.extend({\n\tinLabelRange: function(mouseX) {\n\t\tvar vm = this._view;\n\n\t\tif (vm) {\n\t\t\treturn (Math.pow(mouseX - vm.x, 2) < Math.pow(vm.radius + vm.hoverRadius, 2));\n\t\t}\n\t\treturn false;\n\t},\n\n\tinRange: function(chartX, chartY) {\n\t\tvar vm = this._view;\n\n\t\tif (vm) {\n\t\t\tvar pointRelativePosition = helpers.getAngleFromPoint(vm, {x: chartX, y: chartY});\n\t\t\tvar\tangle = pointRelativePosition.angle;\n\t\t\tvar distance = pointRelativePosition.distance;\n\n\t\t\t// Sanitise angle range\n\t\t\tvar startAngle = vm.startAngle;\n\t\t\tvar endAngle = vm.endAngle;\n\t\t\twhile (endAngle < startAngle) {\n\t\t\t\tendAngle += 2.0 * Math.PI;\n\t\t\t}\n\t\t\twhile (angle > endAngle) {\n\t\t\t\tangle -= 2.0 * Math.PI;\n\t\t\t}\n\t\t\twhile (angle < startAngle) {\n\t\t\t\tangle += 2.0 * Math.PI;\n\t\t\t}\n\n\t\t\t// Check if within the range of the open/close angle\n\t\t\tvar betweenAngles = (angle >= startAngle && angle <= endAngle);\n\t\t\tvar withinRadius = (distance >= vm.innerRadius && distance <= vm.outerRadius);\n\n\t\t\treturn (betweenAngles && withinRadius);\n\t\t}\n\t\treturn false;\n\t},\n\n\tgetCenterPoint: function() {\n\t\tvar vm = this._view;\n\t\tvar halfAngle = (vm.startAngle + vm.endAngle) / 2;\n\t\tvar halfRadius = (vm.innerRadius + vm.outerRadius) / 2;\n\t\treturn {\n\t\t\tx: vm.x + Math.cos(halfAngle) * halfRadius,\n\t\t\ty: vm.y + Math.sin(halfAngle) * halfRadius\n\t\t};\n\t},\n\n\tgetArea: function() {\n\t\tvar vm = this._view;\n\t\treturn Math.PI * ((vm.endAngle - vm.startAngle) / (2 * Math.PI)) * (Math.pow(vm.outerRadius, 2) - Math.pow(vm.innerRadius, 2));\n\t},\n\n\ttooltipPosition: function() {\n\t\tvar vm = this._view;\n\t\tvar centreAngle = vm.startAngle + ((vm.endAngle - vm.startAngle) / 2);\n\t\tvar rangeFromCentre = (vm.outerRadius - vm.innerRadius) / 2 + vm.innerRadius;\n\n\t\treturn {\n\t\t\tx: vm.x + (Math.cos(centreAngle) * rangeFromCentre),\n\t\t\ty: vm.y + (Math.sin(centreAngle) * rangeFromCentre)\n\t\t};\n\t},\n\n\tdraw: function() {\n\t\tvar ctx = this._chart.ctx;\n\t\tvar vm = this._view;\n\t\tvar sA = vm.startAngle;\n\t\tvar eA = vm.endAngle;\n\n\t\tctx.beginPath();\n\n\t\tctx.arc(vm.x, vm.y, vm.outerRadius, sA, eA);\n\t\tctx.arc(vm.x, vm.y, vm.innerRadius, eA, sA, true);\n\n\t\tctx.closePath();\n\t\tctx.strokeStyle = vm.borderColor;\n\t\tctx.lineWidth = vm.borderWidth;\n\n\t\tctx.fillStyle = vm.backgroundColor;\n\n\t\tctx.fill();\n\t\tctx.lineJoin = 'bevel';\n\n\t\tif (vm.borderWidth) {\n\t\t\tctx.stroke();\n\t\t}\n\t}\n});\n\n},{\"26\":26,\"27\":27,\"46\":46}],38:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\n\nvar globalDefaults = defaults.global;\n\ndefaults._set('global', {\n\telements: {\n\t\tline: {\n\t\t\ttension: 0.4,\n\t\t\tbackgroundColor: globalDefaults.defaultColor,\n\t\t\tborderWidth: 3,\n\t\t\tborderColor: globalDefaults.defaultColor,\n\t\t\tborderCapStyle: 'butt',\n\t\t\tborderDash: [],\n\t\t\tborderDashOffset: 0.0,\n\t\t\tborderJoinStyle: 'miter',\n\t\t\tcapBezierPoints: true,\n\t\t\tfill: true, // do we fill in the area between the line and its base axis\n\t\t}\n\t}\n});\n\nmodule.exports = Element.extend({\n\tdraw: function() {\n\t\tvar me = this;\n\t\tvar vm = me._view;\n\t\tvar ctx = me._chart.ctx;\n\t\tvar spanGaps = vm.spanGaps;\n\t\tvar points = me._children.slice(); // clone array\n\t\tvar globalOptionLineElements = globalDefaults.elements.line;\n\t\tvar lastDrawnIndex = -1;\n\t\tvar index, current, previous, currentVM;\n\n\t\t// If we are looping, adding the first point again\n\t\tif (me._loop && points.length) {\n\t\t\tpoints.push(points[0]);\n\t\t}\n\n\t\tctx.save();\n\n\t\t// Stroke Line Options\n\t\tctx.lineCap = vm.borderCapStyle || globalOptionLineElements.borderCapStyle;\n\n\t\t// IE 9 and 10 do not support line dash\n\t\tif (ctx.setLineDash) {\n\t\t\tctx.setLineDash(vm.borderDash || globalOptionLineElements.borderDash);\n\t\t}\n\n\t\tctx.lineDashOffset = vm.borderDashOffset || globalOptionLineElements.borderDashOffset;\n\t\tctx.lineJoin = vm.borderJoinStyle || globalOptionLineElements.borderJoinStyle;\n\t\tctx.lineWidth = vm.borderWidth || globalOptionLineElements.borderWidth;\n\t\tctx.strokeStyle = vm.borderColor || globalDefaults.defaultColor;\n\n\t\t// Stroke Line\n\t\tctx.beginPath();\n\t\tlastDrawnIndex = -1;\n\n\t\tfor (index = 0; index < points.length; ++index) {\n\t\t\tcurrent = points[index];\n\t\t\tprevious = helpers.previousItem(points, index);\n\t\t\tcurrentVM = current._view;\n\n\t\t\t// First point moves to it's starting position no matter what\n\t\t\tif (index === 0) {\n\t\t\t\tif (!currentVM.skip) {\n\t\t\t\t\tctx.moveTo(currentVM.x, currentVM.y);\n\t\t\t\t\tlastDrawnIndex = index;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tprevious = lastDrawnIndex === -1 ? previous : points[lastDrawnIndex];\n\n\t\t\t\tif (!currentVM.skip) {\n\t\t\t\t\tif ((lastDrawnIndex !== (index - 1) && !spanGaps) || lastDrawnIndex === -1) {\n\t\t\t\t\t\t// There was a gap and this is the first point after the gap\n\t\t\t\t\t\tctx.moveTo(currentVM.x, currentVM.y);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Line to next point\n\t\t\t\t\t\thelpers.canvas.lineTo(ctx, previous._view, current._view);\n\t\t\t\t\t}\n\t\t\t\t\tlastDrawnIndex = index;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tctx.stroke();\n\t\tctx.restore();\n\t}\n});\n\n},{\"26\":26,\"27\":27,\"46\":46}],39:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\n\nvar defaultColor = defaults.global.defaultColor;\n\ndefaults._set('global', {\n\telements: {\n\t\tpoint: {\n\t\t\tradius: 3,\n\t\t\tpointStyle: 'circle',\n\t\t\tbackgroundColor: defaultColor,\n\t\t\tborderColor: defaultColor,\n\t\t\tborderWidth: 1,\n\t\t\t// Hover\n\t\t\thitRadius: 1,\n\t\t\thoverRadius: 4,\n\t\t\thoverBorderWidth: 1\n\t\t}\n\t}\n});\n\nfunction xRange(mouseX) {\n\tvar vm = this._view;\n\treturn vm ? (Math.abs(mouseX - vm.x) < vm.radius + vm.hitRadius) : false;\n}\n\nfunction yRange(mouseY) {\n\tvar vm = this._view;\n\treturn vm ? (Math.abs(mouseY - vm.y) < vm.radius + vm.hitRadius) : false;\n}\n\nmodule.exports = Element.extend({\n\tinRange: function(mouseX, mouseY) {\n\t\tvar vm = this._view;\n\t\treturn vm ? ((Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2)) < Math.pow(vm.hitRadius + vm.radius, 2)) : false;\n\t},\n\n\tinLabelRange: xRange,\n\tinXRange: xRange,\n\tinYRange: yRange,\n\n\tgetCenterPoint: function() {\n\t\tvar vm = this._view;\n\t\treturn {\n\t\t\tx: vm.x,\n\t\t\ty: vm.y\n\t\t};\n\t},\n\n\tgetArea: function() {\n\t\treturn Math.PI * Math.pow(this._view.radius, 2);\n\t},\n\n\ttooltipPosition: function() {\n\t\tvar vm = this._view;\n\t\treturn {\n\t\t\tx: vm.x,\n\t\t\ty: vm.y,\n\t\t\tpadding: vm.radius + vm.borderWidth\n\t\t};\n\t},\n\n\tdraw: function(chartArea) {\n\t\tvar vm = this._view;\n\t\tvar model = this._model;\n\t\tvar ctx = this._chart.ctx;\n\t\tvar pointStyle = vm.pointStyle;\n\t\tvar rotation = vm.rotation;\n\t\tvar radius = vm.radius;\n\t\tvar x = vm.x;\n\t\tvar y = vm.y;\n\t\tvar errMargin = 1.01; // 1.01 is margin for Accumulated error. (Especially Edge, IE.)\n\n\t\tif (vm.skip) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Clipping for Points.\n\t\tif (chartArea === undefined || (model.x >= chartArea.left && chartArea.right * errMargin >= model.x && model.y >= chartArea.top && chartArea.bottom * errMargin >= model.y)) {\n\t\t\tctx.strokeStyle = vm.borderColor || defaultColor;\n\t\t\tctx.lineWidth = helpers.valueOrDefault(vm.borderWidth, defaults.global.elements.point.borderWidth);\n\t\t\tctx.fillStyle = vm.backgroundColor || defaultColor;\n\t\t\thelpers.canvas.drawPoint(ctx, pointStyle, radius, x, y, rotation);\n\t\t}\n\t}\n});\n\n},{\"26\":26,\"27\":27,\"46\":46}],40:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\n\ndefaults._set('global', {\n\telements: {\n\t\trectangle: {\n\t\t\tbackgroundColor: defaults.global.defaultColor,\n\t\t\tborderColor: defaults.global.defaultColor,\n\t\t\tborderSkipped: 'bottom',\n\t\t\tborderWidth: 0\n\t\t}\n\t}\n});\n\nfunction isVertical(bar) {\n\treturn bar._view.width !== undefined;\n}\n\n/**\n * Helper function to get the bounds of the bar regardless of the orientation\n * @param bar {Chart.Element.Rectangle} the bar\n * @return {Bounds} bounds of the bar\n * @private\n */\nfunction getBarBounds(bar) {\n\tvar vm = bar._view;\n\tvar x1, x2, y1, y2;\n\n\tif (isVertical(bar)) {\n\t\t// vertical\n\t\tvar halfWidth = vm.width / 2;\n\t\tx1 = vm.x - halfWidth;\n\t\tx2 = vm.x + halfWidth;\n\t\ty1 = Math.min(vm.y, vm.base);\n\t\ty2 = Math.max(vm.y, vm.base);\n\t} else {\n\t\t// horizontal bar\n\t\tvar halfHeight = vm.height / 2;\n\t\tx1 = Math.min(vm.x, vm.base);\n\t\tx2 = Math.max(vm.x, vm.base);\n\t\ty1 = vm.y - halfHeight;\n\t\ty2 = vm.y + halfHeight;\n\t}\n\n\treturn {\n\t\tleft: x1,\n\t\ttop: y1,\n\t\tright: x2,\n\t\tbottom: y2\n\t};\n}\n\nmodule.exports = Element.extend({\n\tdraw: function() {\n\t\tvar ctx = this._chart.ctx;\n\t\tvar vm = this._view;\n\t\tvar left, right, top, bottom, signX, signY, borderSkipped;\n\t\tvar borderWidth = vm.borderWidth;\n\n\t\tif (!vm.horizontal) {\n\t\t\t// bar\n\t\t\tleft = vm.x - vm.width / 2;\n\t\t\tright = vm.x + vm.width / 2;\n\t\t\ttop = vm.y;\n\t\t\tbottom = vm.base;\n\t\t\tsignX = 1;\n\t\t\tsignY = bottom > top ? 1 : -1;\n\t\t\tborderSkipped = vm.borderSkipped || 'bottom';\n\t\t} else {\n\t\t\t// horizontal bar\n\t\t\tleft = vm.base;\n\t\t\tright = vm.x;\n\t\t\ttop = vm.y - vm.height / 2;\n\t\t\tbottom = vm.y + vm.height / 2;\n\t\t\tsignX = right > left ? 1 : -1;\n\t\t\tsignY = 1;\n\t\t\tborderSkipped = vm.borderSkipped || 'left';\n\t\t}\n\n\t\t// Canvas doesn't allow us to stroke inside the width so we can\n\t\t// adjust the sizes to fit if we're setting a stroke on the line\n\t\tif (borderWidth) {\n\t\t\t// borderWidth shold be less than bar width and bar height.\n\t\t\tvar barSize = Math.min(Math.abs(left - right), Math.abs(top - bottom));\n\t\t\tborderWidth = borderWidth > barSize ? barSize : borderWidth;\n\t\t\tvar halfStroke = borderWidth / 2;\n\t\t\t// Adjust borderWidth when bar top position is near vm.base(zero).\n\t\t\tvar borderLeft = left + (borderSkipped !== 'left' ? halfStroke * signX : 0);\n\t\t\tvar borderRight = right + (borderSkipped !== 'right' ? -halfStroke * signX : 0);\n\t\t\tvar borderTop = top + (borderSkipped !== 'top' ? halfStroke * signY : 0);\n\t\t\tvar borderBottom = bottom + (borderSkipped !== 'bottom' ? -halfStroke * signY : 0);\n\t\t\t// not become a vertical line?\n\t\t\tif (borderLeft !== borderRight) {\n\t\t\t\ttop = borderTop;\n\t\t\t\tbottom = borderBottom;\n\t\t\t}\n\t\t\t// not become a horizontal line?\n\t\t\tif (borderTop !== borderBottom) {\n\t\t\t\tleft = borderLeft;\n\t\t\t\tright = borderRight;\n\t\t\t}\n\t\t}\n\n\t\tctx.beginPath();\n\t\tctx.fillStyle = vm.backgroundColor;\n\t\tctx.strokeStyle = vm.borderColor;\n\t\tctx.lineWidth = borderWidth;\n\n\t\t// Corner points, from bottom-left to bottom-right clockwise\n\t\t// | 1 2 |\n\t\t// | 0 3 |\n\t\tvar corners = [\n\t\t\t[left, bottom],\n\t\t\t[left, top],\n\t\t\t[right, top],\n\t\t\t[right, bottom]\n\t\t];\n\n\t\t// Find first (starting) corner with fallback to 'bottom'\n\t\tvar borders = ['bottom', 'left', 'top', 'right'];\n\t\tvar startCorner = borders.indexOf(borderSkipped, 0);\n\t\tif (startCorner === -1) {\n\t\t\tstartCorner = 0;\n\t\t}\n\n\t\tfunction cornerAt(index) {\n\t\t\treturn corners[(startCorner + index) % 4];\n\t\t}\n\n\t\t// Draw rectangle from 'startCorner'\n\t\tvar corner = cornerAt(0);\n\t\tctx.moveTo(corner[0], corner[1]);\n\n\t\tfor (var i = 1; i < 4; i++) {\n\t\t\tcorner = cornerAt(i);\n\t\t\tctx.lineTo(corner[0], corner[1]);\n\t\t}\n\n\t\tctx.fill();\n\t\tif (borderWidth) {\n\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\theight: function() {\n\t\tvar vm = this._view;\n\t\treturn vm.base - vm.y;\n\t},\n\n\tinRange: function(mouseX, mouseY) {\n\t\tvar inRange = false;\n\n\t\tif (this._view) {\n\t\t\tvar bounds = getBarBounds(this);\n\t\t\tinRange = mouseX >= bounds.left && mouseX <= bounds.right && mouseY >= bounds.top && mouseY <= bounds.bottom;\n\t\t}\n\n\t\treturn inRange;\n\t},\n\n\tinLabelRange: function(mouseX, mouseY) {\n\t\tvar me = this;\n\t\tif (!me._view) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar inRange = false;\n\t\tvar bounds = getBarBounds(me);\n\n\t\tif (isVertical(me)) {\n\t\t\tinRange = mouseX >= bounds.left && mouseX <= bounds.right;\n\t\t} else {\n\t\t\tinRange = mouseY >= bounds.top && mouseY <= bounds.bottom;\n\t\t}\n\n\t\treturn inRange;\n\t},\n\n\tinXRange: function(mouseX) {\n\t\tvar bounds = getBarBounds(this);\n\t\treturn mouseX >= bounds.left && mouseX <= bounds.right;\n\t},\n\n\tinYRange: function(mouseY) {\n\t\tvar bounds = getBarBounds(this);\n\t\treturn mouseY >= bounds.top && mouseY <= bounds.bottom;\n\t},\n\n\tgetCenterPoint: function() {\n\t\tvar vm = this._view;\n\t\tvar x, y;\n\t\tif (isVertical(this)) {\n\t\t\tx = vm.x;\n\t\t\ty = (vm.y + vm.base) / 2;\n\t\t} else {\n\t\t\tx = (vm.x + vm.base) / 2;\n\t\t\ty = vm.y;\n\t\t}\n\n\t\treturn {x: x, y: y};\n\t},\n\n\tgetArea: function() {\n\t\tvar vm = this._view;\n\t\treturn vm.width * Math.abs(vm.y - vm.base);\n\t},\n\n\ttooltipPosition: function() {\n\t\tvar vm = this._view;\n\t\treturn {\n\t\t\tx: vm.x,\n\t\t\ty: vm.y\n\t\t};\n\t}\n});\n\n},{\"26\":26,\"27\":27}],41:[function(require,module,exports){\n'use strict';\n\nmodule.exports = {};\nmodule.exports.Arc = require(37);\nmodule.exports.Line = require(38);\nmodule.exports.Point = require(39);\nmodule.exports.Rectangle = require(40);\n\n},{\"37\":37,\"38\":38,\"39\":39,\"40\":40}],42:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(43);\n\n/**\n * @namespace Chart.helpers.canvas\n */\nvar exports = module.exports = {\n\t/**\n\t * Clears the entire canvas associated to the given `chart`.\n\t * @param {Chart} chart - The chart for which to clear the canvas.\n\t */\n\tclear: function(chart) {\n\t\tchart.ctx.clearRect(0, 0, chart.width, chart.height);\n\t},\n\n\t/**\n\t * Creates a \"path\" for a rectangle with rounded corners at position (x, y) with a\n\t * given size (width, height) and the same `radius` for all corners.\n\t * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context.\n\t * @param {Number} x - The x axis of the coordinate for the rectangle starting point.\n\t * @param {Number} y - The y axis of the coordinate for the rectangle starting point.\n\t * @param {Number} width - The rectangle's width.\n\t * @param {Number} height - The rectangle's height.\n\t * @param {Number} radius - The rounded amount (in pixels) for the four corners.\n\t * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object?\n\t */\n\troundedRect: function(ctx, x, y, width, height, radius) {\n\t\tif (radius) {\n\t\t\t// NOTE(SB) `epsilon` helps to prevent minor artifacts appearing\n\t\t\t// on Chrome when `r` is exactly half the height or the width.\n\t\t\tvar epsilon = 0.0000001;\n\t\t\tvar r = Math.min(radius, (height / 2) - epsilon, (width / 2) - epsilon);\n\n\t\t\tctx.moveTo(x + r, y);\n\t\t\tctx.lineTo(x + width - r, y);\n\t\t\tctx.arcTo(x + width, y, x + width, y + r, r);\n\t\t\tctx.lineTo(x + width, y + height - r);\n\t\t\tctx.arcTo(x + width, y + height, x + width - r, y + height, r);\n\t\t\tctx.lineTo(x + r, y + height);\n\t\t\tctx.arcTo(x, y + height, x, y + height - r, r);\n\t\t\tctx.lineTo(x, y + r);\n\t\t\tctx.arcTo(x, y, x + r, y, r);\n\t\t\tctx.closePath();\n\t\t\tctx.moveTo(x, y);\n\t\t} else {\n\t\t\tctx.rect(x, y, width, height);\n\t\t}\n\t},\n\n\tdrawPoint: function(ctx, style, radius, x, y, rotation) {\n\t\tvar type, edgeLength, xOffset, yOffset, height, size;\n\t\trotation = rotation || 0;\n\n\t\tif (style && typeof style === 'object') {\n\t\t\ttype = style.toString();\n\t\t\tif (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') {\n\t\t\t\tctx.drawImage(style, x - style.width / 2, y - style.height / 2, style.width, style.height);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (isNaN(radius) || radius <= 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tctx.save();\n\t\tctx.translate(x, y);\n\t\tctx.rotate(rotation * Math.PI / 180);\n\t\tctx.beginPath();\n\n\t\tswitch (style) {\n\t\t// Default includes circle\n\t\tdefault:\n\t\t\tctx.arc(0, 0, radius, 0, Math.PI * 2);\n\t\t\tctx.closePath();\n\t\t\tbreak;\n\t\tcase 'triangle':\n\t\t\tedgeLength = 3 * radius / Math.sqrt(3);\n\t\t\theight = edgeLength * Math.sqrt(3) / 2;\n\t\t\tctx.moveTo(-edgeLength / 2, height / 3);\n\t\t\tctx.lineTo(edgeLength / 2, height / 3);\n\t\t\tctx.lineTo(0, -2 * height / 3);\n\t\t\tctx.closePath();\n\t\t\tbreak;\n\t\tcase 'rect':\n\t\t\tsize = 1 / Math.SQRT2 * radius;\n\t\t\tctx.rect(-size, -size, 2 * size, 2 * size);\n\t\t\tbreak;\n\t\tcase 'rectRounded':\n\t\t\tvar offset = radius / Math.SQRT2;\n\t\t\tvar leftX = -offset;\n\t\t\tvar topY = -offset;\n\t\t\tvar sideSize = Math.SQRT2 * radius;\n\n\t\t\t// NOTE(SB) the rounded rect implementation changed to use `arcTo`\n\t\t\t// instead of `quadraticCurveTo` since it generates better results\n\t\t\t// when rect is almost a circle. 0.425 (instead of 0.5) produces\n\t\t\t// results visually closer to the previous impl.\n\t\t\tthis.roundedRect(ctx, leftX, topY, sideSize, sideSize, radius * 0.425);\n\t\t\tbreak;\n\t\tcase 'rectRot':\n\t\t\tsize = 1 / Math.SQRT2 * radius;\n\t\t\tctx.moveTo(-size, 0);\n\t\t\tctx.lineTo(0, size);\n\t\t\tctx.lineTo(size, 0);\n\t\t\tctx.lineTo(0, -size);\n\t\t\tctx.closePath();\n\t\t\tbreak;\n\t\tcase 'cross':\n\t\t\tctx.moveTo(0, radius);\n\t\t\tctx.lineTo(0, -radius);\n\t\t\tctx.moveTo(-radius, 0);\n\t\t\tctx.lineTo(radius, 0);\n\t\t\tbreak;\n\t\tcase 'crossRot':\n\t\t\txOffset = Math.cos(Math.PI / 4) * radius;\n\t\t\tyOffset = Math.sin(Math.PI / 4) * radius;\n\t\t\tctx.moveTo(-xOffset, -yOffset);\n\t\t\tctx.lineTo(xOffset, yOffset);\n\t\t\tctx.moveTo(-xOffset, yOffset);\n\t\t\tctx.lineTo(xOffset, -yOffset);\n\t\t\tbreak;\n\t\tcase 'star':\n\t\t\tctx.moveTo(0, radius);\n\t\t\tctx.lineTo(0, -radius);\n\t\t\tctx.moveTo(-radius, 0);\n\t\t\tctx.lineTo(radius, 0);\n\t\t\txOffset = Math.cos(Math.PI / 4) * radius;\n\t\t\tyOffset = Math.sin(Math.PI / 4) * radius;\n\t\t\tctx.moveTo(-xOffset, -yOffset);\n\t\t\tctx.lineTo(xOffset, yOffset);\n\t\t\tctx.moveTo(-xOffset, yOffset);\n\t\t\tctx.lineTo(xOffset, -yOffset);\n\t\t\tbreak;\n\t\tcase 'line':\n\t\t\tctx.moveTo(-radius, 0);\n\t\t\tctx.lineTo(radius, 0);\n\t\t\tbreak;\n\t\tcase 'dash':\n\t\t\tctx.moveTo(0, 0);\n\t\t\tctx.lineTo(radius, 0);\n\t\t\tbreak;\n\t\t}\n\n\t\tctx.fill();\n\t\tctx.stroke();\n\t\tctx.restore();\n\t},\n\n\tclipArea: function(ctx, area) {\n\t\tctx.save();\n\t\tctx.beginPath();\n\t\tctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);\n\t\tctx.clip();\n\t},\n\n\tunclipArea: function(ctx) {\n\t\tctx.restore();\n\t},\n\n\tlineTo: function(ctx, previous, target, flip) {\n\t\tif (target.steppedLine) {\n\t\t\tif ((target.steppedLine === 'after' && !flip) || (target.steppedLine !== 'after' && flip)) {\n\t\t\t\tctx.lineTo(previous.x, target.y);\n\t\t\t} else {\n\t\t\t\tctx.lineTo(target.x, previous.y);\n\t\t\t}\n\t\t\tctx.lineTo(target.x, target.y);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!target.tension) {\n\t\t\tctx.lineTo(target.x, target.y);\n\t\t\treturn;\n\t\t}\n\n\t\tctx.bezierCurveTo(\n\t\t\tflip ? previous.controlPointPreviousX : previous.controlPointNextX,\n\t\t\tflip ? previous.controlPointPreviousY : previous.controlPointNextY,\n\t\t\tflip ? target.controlPointNextX : target.controlPointPreviousX,\n\t\t\tflip ? target.controlPointNextY : target.controlPointPreviousY,\n\t\t\ttarget.x,\n\t\t\ttarget.y);\n\t}\n};\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use Chart.helpers.canvas.clear instead.\n * @namespace Chart.helpers.clear\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.clear = exports.clear;\n\n/**\n * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead.\n * @namespace Chart.helpers.drawRoundedRectangle\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.drawRoundedRectangle = function(ctx) {\n\tctx.beginPath();\n\texports.roundedRect.apply(exports, arguments);\n};\n\n},{\"43\":43}],43:[function(require,module,exports){\n'use strict';\n\n/**\n * @namespace Chart.helpers\n */\nvar helpers = {\n\t/**\n\t * An empty function that can be used, for example, for optional callback.\n\t */\n\tnoop: function() {},\n\n\t/**\n\t * Returns a unique id, sequentially generated from a global variable.\n\t * @returns {Number}\n\t * @function\n\t */\n\tuid: (function() {\n\t\tvar id = 0;\n\t\treturn function() {\n\t\t\treturn id++;\n\t\t};\n\t}()),\n\n\t/**\n\t * Returns true if `value` is neither null nor undefined, else returns false.\n\t * @param {*} value - The value to test.\n\t * @returns {Boolean}\n\t * @since 2.7.0\n\t */\n\tisNullOrUndef: function(value) {\n\t\treturn value === null || typeof value === 'undefined';\n\t},\n\n\t/**\n\t * Returns true if `value` is an array, else returns false.\n\t * @param {*} value - The value to test.\n\t * @returns {Boolean}\n\t * @function\n\t */\n\tisArray: Array.isArray ? Array.isArray : function(value) {\n\t\treturn Object.prototype.toString.call(value) === '[object Array]';\n\t},\n\n\t/**\n\t * Returns true if `value` is an object (excluding null), else returns false.\n\t * @param {*} value - The value to test.\n\t * @returns {Boolean}\n\t * @since 2.7.0\n\t */\n\tisObject: function(value) {\n\t\treturn value !== null && Object.prototype.toString.call(value) === '[object Object]';\n\t},\n\n\t/**\n\t * Returns `value` if defined, else returns `defaultValue`.\n\t * @param {*} value - The value to return if defined.\n\t * @param {*} defaultValue - The value to return if `value` is undefined.\n\t * @returns {*}\n\t */\n\tvalueOrDefault: function(value, defaultValue) {\n\t\treturn typeof value === 'undefined' ? defaultValue : value;\n\t},\n\n\t/**\n\t * Returns value at the given `index` in array if defined, else returns `defaultValue`.\n\t * @param {Array} value - The array to lookup for value at `index`.\n\t * @param {Number} index - The index in `value` to lookup for value.\n\t * @param {*} defaultValue - The value to return if `value[index]` is undefined.\n\t * @returns {*}\n\t */\n\tvalueAtIndexOrDefault: function(value, index, defaultValue) {\n\t\treturn helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);\n\t},\n\n\t/**\n\t * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the\n\t * value returned by `fn`. If `fn` is not a function, this method returns undefined.\n\t * @param {Function} fn - The function to call.\n\t * @param {Array|undefined|null} args - The arguments with which `fn` should be called.\n\t * @param {Object} [thisArg] - The value of `this` provided for the call to `fn`.\n\t * @returns {*}\n\t */\n\tcallback: function(fn, args, thisArg) {\n\t\tif (fn && typeof fn.call === 'function') {\n\t\t\treturn fn.apply(thisArg, args);\n\t\t}\n\t},\n\n\t/**\n\t * Note(SB) for performance sake, this method should only be used when loopable type\n\t * is unknown or in none intensive code (not called often and small loopable). Else\n\t * it's preferable to use a regular for() loop and save extra function calls.\n\t * @param {Object|Array} loopable - The object or array to be iterated.\n\t * @param {Function} fn - The function to call for each item.\n\t * @param {Object} [thisArg] - The value of `this` provided for the call to `fn`.\n\t * @param {Boolean} [reverse] - If true, iterates backward on the loopable.\n\t */\n\teach: function(loopable, fn, thisArg, reverse) {\n\t\tvar i, len, keys;\n\t\tif (helpers.isArray(loopable)) {\n\t\t\tlen = loopable.length;\n\t\t\tif (reverse) {\n\t\t\t\tfor (i = len - 1; i >= 0; i--) {\n\t\t\t\t\tfn.call(thisArg, loopable[i], i);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\t\tfn.call(thisArg, loopable[i], i);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (helpers.isObject(loopable)) {\n\t\t\tkeys = Object.keys(loopable);\n\t\t\tlen = keys.length;\n\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\tfn.call(thisArg, loopable[keys[i]], keys[i]);\n\t\t\t}\n\t\t}\n\t},\n\n\t/**\n\t * Returns true if the `a0` and `a1` arrays have the same content, else returns false.\n\t * @see http://stackoverflow.com/a/14853974\n\t * @param {Array} a0 - The array to compare\n\t * @param {Array} a1 - The array to compare\n\t * @returns {Boolean}\n\t */\n\tarrayEquals: function(a0, a1) {\n\t\tvar i, ilen, v0, v1;\n\n\t\tif (!a0 || !a1 || a0.length !== a1.length) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (i = 0, ilen = a0.length; i < ilen; ++i) {\n\t\t\tv0 = a0[i];\n\t\t\tv1 = a1[i];\n\n\t\t\tif (v0 instanceof Array && v1 instanceof Array) {\n\t\t\t\tif (!helpers.arrayEquals(v0, v1)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else if (v0 !== v1) {\n\t\t\t\t// NOTE: two different object instances will never be equal: {x:20} != {x:20}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t},\n\n\t/**\n\t * Returns a deep copy of `source` without keeping references on objects and arrays.\n\t * @param {*} source - The value to clone.\n\t * @returns {*}\n\t */\n\tclone: function(source) {\n\t\tif (helpers.isArray(source)) {\n\t\t\treturn source.map(helpers.clone);\n\t\t}\n\n\t\tif (helpers.isObject(source)) {\n\t\t\tvar target = {};\n\t\t\tvar keys = Object.keys(source);\n\t\t\tvar klen = keys.length;\n\t\t\tvar k = 0;\n\n\t\t\tfor (; k < klen; ++k) {\n\t\t\t\ttarget[keys[k]] = helpers.clone(source[keys[k]]);\n\t\t\t}\n\n\t\t\treturn target;\n\t\t}\n\n\t\treturn source;\n\t},\n\n\t/**\n\t * The default merger when Chart.helpers.merge is called without merger option.\n\t * Note(SB): this method is also used by configMerge and scaleMerge as fallback.\n\t * @private\n\t */\n\t_merger: function(key, target, source, options) {\n\t\tvar tval = target[key];\n\t\tvar sval = source[key];\n\n\t\tif (helpers.isObject(tval) && helpers.isObject(sval)) {\n\t\t\thelpers.merge(tval, sval, options);\n\t\t} else {\n\t\t\ttarget[key] = helpers.clone(sval);\n\t\t}\n\t},\n\n\t/**\n\t * Merges source[key] in target[key] only if target[key] is undefined.\n\t * @private\n\t */\n\t_mergerIf: function(key, target, source) {\n\t\tvar tval = target[key];\n\t\tvar sval = source[key];\n\n\t\tif (helpers.isObject(tval) && helpers.isObject(sval)) {\n\t\t\thelpers.mergeIf(tval, sval);\n\t\t} else if (!target.hasOwnProperty(key)) {\n\t\t\ttarget[key] = helpers.clone(sval);\n\t\t}\n\t},\n\n\t/**\n\t * Recursively deep copies `source` properties into `target` with the given `options`.\n\t * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\n\t * @param {Object} target - The target object in which all sources are merged into.\n\t * @param {Object|Array(Object)} source - Object(s) to merge into `target`.\n\t * @param {Object} [options] - Merging options:\n\t * @param {Function} [options.merger] - The merge method (key, target, source, options)\n\t * @returns {Object} The `target` object.\n\t */\n\tmerge: function(target, source, options) {\n\t\tvar sources = helpers.isArray(source) ? source : [source];\n\t\tvar ilen = sources.length;\n\t\tvar merge, i, keys, klen, k;\n\n\t\tif (!helpers.isObject(target)) {\n\t\t\treturn target;\n\t\t}\n\n\t\toptions = options || {};\n\t\tmerge = options.merger || helpers._merger;\n\n\t\tfor (i = 0; i < ilen; ++i) {\n\t\t\tsource = sources[i];\n\t\t\tif (!helpers.isObject(source)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tkeys = Object.keys(source);\n\t\t\tfor (k = 0, klen = keys.length; k < klen; ++k) {\n\t\t\t\tmerge(keys[k], target, source, options);\n\t\t\t}\n\t\t}\n\n\t\treturn target;\n\t},\n\n\t/**\n\t * Recursively deep copies `source` properties into `target` *only* if not defined in target.\n\t * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\n\t * @param {Object} target - The target object in which all sources are merged into.\n\t * @param {Object|Array(Object)} source - Object(s) to merge into `target`.\n\t * @returns {Object} The `target` object.\n\t */\n\tmergeIf: function(target, source) {\n\t\treturn helpers.merge(target, source, {merger: helpers._mergerIf});\n\t},\n\n\t/**\n\t * Applies the contents of two or more objects together into the first object.\n\t * @param {Object} target - The target object in which all objects are merged into.\n\t * @param {Object} arg1 - Object containing additional properties to merge in target.\n\t * @param {Object} argN - Additional objects containing properties to merge in target.\n\t * @returns {Object} The `target` object.\n\t */\n\textend: function(target) {\n\t\tvar setFn = function(value, key) {\n\t\t\ttarget[key] = value;\n\t\t};\n\t\tfor (var i = 1, ilen = arguments.length; i < ilen; ++i) {\n\t\t\thelpers.each(arguments[i], setFn);\n\t\t}\n\t\treturn target;\n\t},\n\n\t/**\n\t * Basic javascript inheritance based on the model created in Backbone.js\n\t */\n\tinherits: function(extensions) {\n\t\tvar me = this;\n\t\tvar ChartElement = (extensions && extensions.hasOwnProperty('constructor')) ? extensions.constructor : function() {\n\t\t\treturn me.apply(this, arguments);\n\t\t};\n\n\t\tvar Surrogate = function() {\n\t\t\tthis.constructor = ChartElement;\n\t\t};\n\n\t\tSurrogate.prototype = me.prototype;\n\t\tChartElement.prototype = new Surrogate();\n\t\tChartElement.extend = helpers.inherits;\n\n\t\tif (extensions) {\n\t\t\thelpers.extend(ChartElement.prototype, extensions);\n\t\t}\n\n\t\tChartElement.__super__ = me.prototype;\n\t\treturn ChartElement;\n\t}\n};\n\nmodule.exports = helpers;\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use Chart.helpers.callback instead.\n * @function Chart.helpers.callCallback\n * @deprecated since version 2.6.0\n * @todo remove at version 3\n * @private\n */\nhelpers.callCallback = helpers.callback;\n\n/**\n * Provided for backward compatibility, use Array.prototype.indexOf instead.\n * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+\n * @function Chart.helpers.indexOf\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.indexOf = function(array, item, fromIndex) {\n\treturn Array.prototype.indexOf.call(array, item, fromIndex);\n};\n\n/**\n * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead.\n * @function Chart.helpers.getValueOrDefault\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.getValueOrDefault = helpers.valueOrDefault;\n\n/**\n * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead.\n * @function Chart.helpers.getValueAtIndexOrDefault\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.getValueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n\n},{}],44:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(43);\n\n/**\n * Easing functions adapted from Robert Penner's easing equations.\n * @namespace Chart.helpers.easingEffects\n * @see http://www.robertpenner.com/easing/\n */\nvar effects = {\n\tlinear: function(t) {\n\t\treturn t;\n\t},\n\n\teaseInQuad: function(t) {\n\t\treturn t * t;\n\t},\n\n\teaseOutQuad: function(t) {\n\t\treturn -t * (t - 2);\n\t},\n\n\teaseInOutQuad: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * t * t;\n\t\t}\n\t\treturn -0.5 * ((--t) * (t - 2) - 1);\n\t},\n\n\teaseInCubic: function(t) {\n\t\treturn t * t * t;\n\t},\n\n\teaseOutCubic: function(t) {\n\t\treturn (t = t - 1) * t * t + 1;\n\t},\n\n\teaseInOutCubic: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * t * t * t;\n\t\t}\n\t\treturn 0.5 * ((t -= 2) * t * t + 2);\n\t},\n\n\teaseInQuart: function(t) {\n\t\treturn t * t * t * t;\n\t},\n\n\teaseOutQuart: function(t) {\n\t\treturn -((t = t - 1) * t * t * t - 1);\n\t},\n\n\teaseInOutQuart: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * t * t * t * t;\n\t\t}\n\t\treturn -0.5 * ((t -= 2) * t * t * t - 2);\n\t},\n\n\teaseInQuint: function(t) {\n\t\treturn t * t * t * t * t;\n\t},\n\n\teaseOutQuint: function(t) {\n\t\treturn (t = t - 1) * t * t * t * t + 1;\n\t},\n\n\teaseInOutQuint: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * t * t * t * t * t;\n\t\t}\n\t\treturn 0.5 * ((t -= 2) * t * t * t * t + 2);\n\t},\n\n\teaseInSine: function(t) {\n\t\treturn -Math.cos(t * (Math.PI / 2)) + 1;\n\t},\n\n\teaseOutSine: function(t) {\n\t\treturn Math.sin(t * (Math.PI / 2));\n\t},\n\n\teaseInOutSine: function(t) {\n\t\treturn -0.5 * (Math.cos(Math.PI * t) - 1);\n\t},\n\n\teaseInExpo: function(t) {\n\t\treturn (t === 0) ? 0 : Math.pow(2, 10 * (t - 1));\n\t},\n\n\teaseOutExpo: function(t) {\n\t\treturn (t === 1) ? 1 : -Math.pow(2, -10 * t) + 1;\n\t},\n\n\teaseInOutExpo: function(t) {\n\t\tif (t === 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (t === 1) {\n\t\t\treturn 1;\n\t\t}\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * Math.pow(2, 10 * (t - 1));\n\t\t}\n\t\treturn 0.5 * (-Math.pow(2, -10 * --t) + 2);\n\t},\n\n\teaseInCirc: function(t) {\n\t\tif (t >= 1) {\n\t\t\treturn t;\n\t\t}\n\t\treturn -(Math.sqrt(1 - t * t) - 1);\n\t},\n\n\teaseOutCirc: function(t) {\n\t\treturn Math.sqrt(1 - (t = t - 1) * t);\n\t},\n\n\teaseInOutCirc: function(t) {\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn -0.5 * (Math.sqrt(1 - t * t) - 1);\n\t\t}\n\t\treturn 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n\t},\n\n\teaseInElastic: function(t) {\n\t\tvar s = 1.70158;\n\t\tvar p = 0;\n\t\tvar a = 1;\n\t\tif (t === 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (t === 1) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (!p) {\n\t\t\tp = 0.3;\n\t\t}\n\t\tif (a < 1) {\n\t\t\ta = 1;\n\t\t\ts = p / 4;\n\t\t} else {\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\n\t\t}\n\t\treturn -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\n\t},\n\n\teaseOutElastic: function(t) {\n\t\tvar s = 1.70158;\n\t\tvar p = 0;\n\t\tvar a = 1;\n\t\tif (t === 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (t === 1) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (!p) {\n\t\t\tp = 0.3;\n\t\t}\n\t\tif (a < 1) {\n\t\t\ta = 1;\n\t\t\ts = p / 4;\n\t\t} else {\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\n\t\t}\n\t\treturn a * Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1;\n\t},\n\n\teaseInOutElastic: function(t) {\n\t\tvar s = 1.70158;\n\t\tvar p = 0;\n\t\tvar a = 1;\n\t\tif (t === 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif ((t /= 0.5) === 2) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (!p) {\n\t\t\tp = 0.45;\n\t\t}\n\t\tif (a < 1) {\n\t\t\ta = 1;\n\t\t\ts = p / 4;\n\t\t} else {\n\t\t\ts = p / (2 * Math.PI) * Math.asin(1 / a);\n\t\t}\n\t\tif (t < 1) {\n\t\t\treturn -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\n\t\t}\n\t\treturn a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p) * 0.5 + 1;\n\t},\n\teaseInBack: function(t) {\n\t\tvar s = 1.70158;\n\t\treturn t * t * ((s + 1) * t - s);\n\t},\n\n\teaseOutBack: function(t) {\n\t\tvar s = 1.70158;\n\t\treturn (t = t - 1) * t * ((s + 1) * t + s) + 1;\n\t},\n\n\teaseInOutBack: function(t) {\n\t\tvar s = 1.70158;\n\t\tif ((t /= 0.5) < 1) {\n\t\t\treturn 0.5 * (t * t * (((s *= (1.525)) + 1) * t - s));\n\t\t}\n\t\treturn 0.5 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2);\n\t},\n\n\teaseInBounce: function(t) {\n\t\treturn 1 - effects.easeOutBounce(1 - t);\n\t},\n\n\teaseOutBounce: function(t) {\n\t\tif (t < (1 / 2.75)) {\n\t\t\treturn 7.5625 * t * t;\n\t\t}\n\t\tif (t < (2 / 2.75)) {\n\t\t\treturn 7.5625 * (t -= (1.5 / 2.75)) * t + 0.75;\n\t\t}\n\t\tif (t < (2.5 / 2.75)) {\n\t\t\treturn 7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375;\n\t\t}\n\t\treturn 7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375;\n\t},\n\n\teaseInOutBounce: function(t) {\n\t\tif (t < 0.5) {\n\t\t\treturn effects.easeInBounce(t * 2) * 0.5;\n\t\t}\n\t\treturn effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5;\n\t}\n};\n\nmodule.exports = {\n\teffects: effects\n};\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use Chart.helpers.easing.effects instead.\n * @function Chart.helpers.easingEffects\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.easingEffects = effects;\n\n},{\"43\":43}],45:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(43);\n\n/**\n * @alias Chart.helpers.options\n * @namespace\n */\nmodule.exports = {\n\t/**\n\t * Converts the given line height `value` in pixels for a specific font `size`.\n\t * @param {Number|String} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').\n\t * @param {Number} size - The font size (in pixels) used to resolve relative `value`.\n\t * @returns {Number} The effective line height in pixels (size * 1.2 if value is invalid).\n\t * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height\n\t * @since 2.7.0\n\t */\n\ttoLineHeight: function(value, size) {\n\t\tvar matches = ('' + value).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);\n\t\tif (!matches || matches[1] === 'normal') {\n\t\t\treturn size * 1.2;\n\t\t}\n\n\t\tvalue = +matches[2];\n\n\t\tswitch (matches[3]) {\n\t\tcase 'px':\n\t\t\treturn value;\n\t\tcase '%':\n\t\t\tvalue /= 100;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\treturn size * value;\n\t},\n\n\t/**\n\t * Converts the given value into a padding object with pre-computed width/height.\n\t * @param {Number|Object} value - If a number, set the value to all TRBL component,\n\t *  else, if and object, use defined properties and sets undefined ones to 0.\n\t * @returns {Object} The padding values (top, right, bottom, left, width, height)\n\t * @since 2.7.0\n\t */\n\ttoPadding: function(value) {\n\t\tvar t, r, b, l;\n\n\t\tif (helpers.isObject(value)) {\n\t\t\tt = +value.top || 0;\n\t\t\tr = +value.right || 0;\n\t\t\tb = +value.bottom || 0;\n\t\t\tl = +value.left || 0;\n\t\t} else {\n\t\t\tt = r = b = l = +value || 0;\n\t\t}\n\n\t\treturn {\n\t\t\ttop: t,\n\t\t\tright: r,\n\t\t\tbottom: b,\n\t\t\tleft: l,\n\t\t\theight: t + b,\n\t\t\twidth: l + r\n\t\t};\n\t},\n\n\t/**\n\t * Evaluates the given `inputs` sequentially and returns the first defined value.\n\t * @param {Array[]} inputs - An array of values, falling back to the last value.\n\t * @param {Object} [context] - If defined and the current value is a function, the value\n\t * is called with `context` as first argument and the result becomes the new input.\n\t * @param {Number} [index] - If defined and the current value is an array, the value\n\t * at `index` become the new input.\n\t * @since 2.7.0\n\t */\n\tresolve: function(inputs, context, index) {\n\t\tvar i, ilen, value;\n\n\t\tfor (i = 0, ilen = inputs.length; i < ilen; ++i) {\n\t\t\tvalue = inputs[i];\n\t\t\tif (value === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (context !== undefined && typeof value === 'function') {\n\t\t\t\tvalue = value(context);\n\t\t\t}\n\t\t\tif (index !== undefined && helpers.isArray(value)) {\n\t\t\t\tvalue = value[index];\n\t\t\t}\n\t\t\tif (value !== undefined) {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}\n};\n\n},{\"43\":43}],46:[function(require,module,exports){\n'use strict';\n\nmodule.exports = require(43);\nmodule.exports.easing = require(44);\nmodule.exports.canvas = require(42);\nmodule.exports.options = require(45);\n\n},{\"42\":42,\"43\":43,\"44\":44,\"45\":45}],47:[function(require,module,exports){\n/**\n * Platform fallback implementation (minimal).\n * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939\n */\n\nmodule.exports = {\n\tacquireContext: function(item) {\n\t\tif (item && item.canvas) {\n\t\t\t// Support for any object associated to a canvas (including a context2d)\n\t\t\titem = item.canvas;\n\t\t}\n\n\t\treturn item && item.getContext('2d') || null;\n\t}\n};\n\n},{}],48:[function(require,module,exports){\n/**\n * Chart.Platform implementation for targeting a web browser\n */\n\n'use strict';\n\nvar helpers = require(46);\n\nvar EXPANDO_KEY = '$chartjs';\nvar CSS_PREFIX = 'chartjs-';\nvar CSS_RENDER_MONITOR = CSS_PREFIX + 'render-monitor';\nvar CSS_RENDER_ANIMATION = CSS_PREFIX + 'render-animation';\nvar ANIMATION_START_EVENTS = ['animationstart', 'webkitAnimationStart'];\n\n/**\n * DOM event types -> Chart.js event types.\n * Note: only events with different types are mapped.\n * @see https://developer.mozilla.org/en-US/docs/Web/Events\n */\nvar EVENT_TYPES = {\n\ttouchstart: 'mousedown',\n\ttouchmove: 'mousemove',\n\ttouchend: 'mouseup',\n\tpointerenter: 'mouseenter',\n\tpointerdown: 'mousedown',\n\tpointermove: 'mousemove',\n\tpointerup: 'mouseup',\n\tpointerleave: 'mouseout',\n\tpointerout: 'mouseout'\n};\n\n/**\n * The \"used\" size is the final value of a dimension property after all calculations have\n * been performed. This method uses the computed style of `element` but returns undefined\n * if the computed style is not expressed in pixels. That can happen in some cases where\n * `element` has a size relative to its parent and this last one is not yet displayed,\n * for example because of `display: none` on a parent node.\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value\n * @returns {Number} Size in pixels or undefined if unknown.\n */\nfunction readUsedSize(element, property) {\n\tvar value = helpers.getStyle(element, property);\n\tvar matches = value && value.match(/^(\\d+)(\\.\\d+)?px$/);\n\treturn matches ? Number(matches[1]) : undefined;\n}\n\n/**\n * Initializes the canvas style and render size without modifying the canvas display size,\n * since responsiveness is handled by the controller.resize() method. The config is used\n * to determine the aspect ratio to apply in case no explicit height has been specified.\n */\nfunction initCanvas(canvas, config) {\n\tvar style = canvas.style;\n\n\t// NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it\n\t// returns null or '' if no explicit value has been set to the canvas attribute.\n\tvar renderHeight = canvas.getAttribute('height');\n\tvar renderWidth = canvas.getAttribute('width');\n\n\t// Chart.js modifies some canvas values that we want to restore on destroy\n\tcanvas[EXPANDO_KEY] = {\n\t\tinitial: {\n\t\t\theight: renderHeight,\n\t\t\twidth: renderWidth,\n\t\t\tstyle: {\n\t\t\t\tdisplay: style.display,\n\t\t\t\theight: style.height,\n\t\t\t\twidth: style.width\n\t\t\t}\n\t\t}\n\t};\n\n\t// Force canvas to display as block to avoid extra space caused by inline\n\t// elements, which would interfere with the responsive resize process.\n\t// https://github.com/chartjs/Chart.js/issues/2538\n\tstyle.display = style.display || 'block';\n\n\tif (renderWidth === null || renderWidth === '') {\n\t\tvar displayWidth = readUsedSize(canvas, 'width');\n\t\tif (displayWidth !== undefined) {\n\t\t\tcanvas.width = displayWidth;\n\t\t}\n\t}\n\n\tif (renderHeight === null || renderHeight === '') {\n\t\tif (canvas.style.height === '') {\n\t\t\t// If no explicit render height and style height, let's apply the aspect ratio,\n\t\t\t// which one can be specified by the user but also by charts as default option\n\t\t\t// (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2.\n\t\t\tcanvas.height = canvas.width / (config.options.aspectRatio || 2);\n\t\t} else {\n\t\t\tvar displayHeight = readUsedSize(canvas, 'height');\n\t\t\tif (displayWidth !== undefined) {\n\t\t\t\tcanvas.height = displayHeight;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn canvas;\n}\n\n/**\n * Detects support for options object argument in addEventListener.\n * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\n * @private\n */\nvar supportsEventListenerOptions = (function() {\n\tvar supports = false;\n\ttry {\n\t\tvar options = Object.defineProperty({}, 'passive', {\n\t\t\tget: function() {\n\t\t\t\tsupports = true;\n\t\t\t}\n\t\t});\n\t\twindow.addEventListener('e', null, options);\n\t} catch (e) {\n\t\t// continue regardless of error\n\t}\n\treturn supports;\n}());\n\n// Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events.\n// https://github.com/chartjs/Chart.js/issues/4287\nvar eventListenerOptions = supportsEventListenerOptions ? {passive: true} : false;\n\nfunction addEventListener(node, type, listener) {\n\tnode.addEventListener(type, listener, eventListenerOptions);\n}\n\nfunction removeEventListener(node, type, listener) {\n\tnode.removeEventListener(type, listener, eventListenerOptions);\n}\n\nfunction createEvent(type, chart, x, y, nativeEvent) {\n\treturn {\n\t\ttype: type,\n\t\tchart: chart,\n\t\tnative: nativeEvent || null,\n\t\tx: x !== undefined ? x : null,\n\t\ty: y !== undefined ? y : null,\n\t};\n}\n\nfunction fromNativeEvent(event, chart) {\n\tvar type = EVENT_TYPES[event.type] || event.type;\n\tvar pos = helpers.getRelativePosition(event, chart);\n\treturn createEvent(type, chart, pos.x, pos.y, event);\n}\n\nfunction throttled(fn, thisArg) {\n\tvar ticking = false;\n\tvar args = [];\n\n\treturn function() {\n\t\targs = Array.prototype.slice.call(arguments);\n\t\tthisArg = thisArg || this;\n\n\t\tif (!ticking) {\n\t\t\tticking = true;\n\t\t\thelpers.requestAnimFrame.call(window, function() {\n\t\t\t\tticking = false;\n\t\t\t\tfn.apply(thisArg, args);\n\t\t\t});\n\t\t}\n\t};\n}\n\n// Implementation based on https://github.com/marcj/css-element-queries\nfunction createResizer(handler) {\n\tvar resizer = document.createElement('div');\n\tvar cls = CSS_PREFIX + 'size-monitor';\n\tvar maxSize = 1000000;\n\tvar style =\n\t\t'position:absolute;' +\n\t\t'left:0;' +\n\t\t'top:0;' +\n\t\t'right:0;' +\n\t\t'bottom:0;' +\n\t\t'overflow:hidden;' +\n\t\t'pointer-events:none;' +\n\t\t'visibility:hidden;' +\n\t\t'z-index:-1;';\n\n\tresizer.style.cssText = style;\n\tresizer.className = cls;\n\tresizer.innerHTML =\n\t\t'<div class=\"' + cls + '-expand\" style=\"' + style + '\">' +\n\t\t\t'<div style=\"' +\n\t\t\t\t'position:absolute;' +\n\t\t\t\t'width:' + maxSize + 'px;' +\n\t\t\t\t'height:' + maxSize + 'px;' +\n\t\t\t\t'left:0;' +\n\t\t\t\t'top:0\">' +\n\t\t\t'</div>' +\n\t\t'</div>' +\n\t\t'<div class=\"' + cls + '-shrink\" style=\"' + style + '\">' +\n\t\t\t'<div style=\"' +\n\t\t\t\t'position:absolute;' +\n\t\t\t\t'width:200%;' +\n\t\t\t\t'height:200%;' +\n\t\t\t\t'left:0; ' +\n\t\t\t\t'top:0\">' +\n\t\t\t'</div>' +\n\t\t'</div>';\n\n\tvar expand = resizer.childNodes[0];\n\tvar shrink = resizer.childNodes[1];\n\n\tresizer._reset = function() {\n\t\texpand.scrollLeft = maxSize;\n\t\texpand.scrollTop = maxSize;\n\t\tshrink.scrollLeft = maxSize;\n\t\tshrink.scrollTop = maxSize;\n\t};\n\tvar onScroll = function() {\n\t\tresizer._reset();\n\t\thandler();\n\t};\n\n\taddEventListener(expand, 'scroll', onScroll.bind(expand, 'expand'));\n\taddEventListener(shrink, 'scroll', onScroll.bind(shrink, 'shrink'));\n\n\treturn resizer;\n}\n\n// https://davidwalsh.name/detect-node-insertion\nfunction watchForRender(node, handler) {\n\tvar expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\n\tvar proxy = expando.renderProxy = function(e) {\n\t\tif (e.animationName === CSS_RENDER_ANIMATION) {\n\t\t\thandler();\n\t\t}\n\t};\n\n\thelpers.each(ANIMATION_START_EVENTS, function(type) {\n\t\taddEventListener(node, type, proxy);\n\t});\n\n\t// #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class\n\t// is removed then added back immediately (same animation frame?). Accessing the\n\t// `offsetParent` property will force a reflow and re-evaluate the CSS animation.\n\t// https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics\n\t// https://github.com/chartjs/Chart.js/issues/4737\n\texpando.reflow = !!node.offsetParent;\n\n\tnode.classList.add(CSS_RENDER_MONITOR);\n}\n\nfunction unwatchForRender(node) {\n\tvar expando = node[EXPANDO_KEY] || {};\n\tvar proxy = expando.renderProxy;\n\n\tif (proxy) {\n\t\thelpers.each(ANIMATION_START_EVENTS, function(type) {\n\t\t\tremoveEventListener(node, type, proxy);\n\t\t});\n\n\t\tdelete expando.renderProxy;\n\t}\n\n\tnode.classList.remove(CSS_RENDER_MONITOR);\n}\n\nfunction addResizeListener(node, listener, chart) {\n\tvar expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\n\n\t// Let's keep track of this added resizer and thus avoid DOM query when removing it.\n\tvar resizer = expando.resizer = createResizer(throttled(function() {\n\t\tif (expando.resizer) {\n\t\t\treturn listener(createEvent('resize', chart));\n\t\t}\n\t}));\n\n\t// The resizer needs to be attached to the node parent, so we first need to be\n\t// sure that `node` is attached to the DOM before injecting the resizer element.\n\twatchForRender(node, function() {\n\t\tif (expando.resizer) {\n\t\t\tvar container = node.parentNode;\n\t\t\tif (container && container !== resizer.parentNode) {\n\t\t\t\tcontainer.insertBefore(resizer, container.firstChild);\n\t\t\t}\n\n\t\t\t// The container size might have changed, let's reset the resizer state.\n\t\t\tresizer._reset();\n\t\t}\n\t});\n}\n\nfunction removeResizeListener(node) {\n\tvar expando = node[EXPANDO_KEY] || {};\n\tvar resizer = expando.resizer;\n\n\tdelete expando.resizer;\n\tunwatchForRender(node);\n\n\tif (resizer && resizer.parentNode) {\n\t\tresizer.parentNode.removeChild(resizer);\n\t}\n}\n\nfunction injectCSS(platform, css) {\n\t// http://stackoverflow.com/q/3922139\n\tvar style = platform._style || document.createElement('style');\n\tif (!platform._style) {\n\t\tplatform._style = style;\n\t\tcss = '/* Chart.js */\\n' + css;\n\t\tstyle.setAttribute('type', 'text/css');\n\t\tdocument.getElementsByTagName('head')[0].appendChild(style);\n\t}\n\n\tstyle.appendChild(document.createTextNode(css));\n}\n\nmodule.exports = {\n\t/**\n\t * This property holds whether this platform is enabled for the current environment.\n\t * Currently used by platform.js to select the proper implementation.\n\t * @private\n\t */\n\t_enabled: typeof window !== 'undefined' && typeof document !== 'undefined',\n\n\tinitialize: function() {\n\t\tvar keyframes = 'from{opacity:0.99}to{opacity:1}';\n\n\t\tinjectCSS(this,\n\t\t\t// DOM rendering detection\n\t\t\t// https://davidwalsh.name/detect-node-insertion\n\t\t\t'@-webkit-keyframes ' + CSS_RENDER_ANIMATION + '{' + keyframes + '}' +\n\t\t\t'@keyframes ' + CSS_RENDER_ANIMATION + '{' + keyframes + '}' +\n\t\t\t'.' + CSS_RENDER_MONITOR + '{' +\n\t\t\t\t'-webkit-animation:' + CSS_RENDER_ANIMATION + ' 0.001s;' +\n\t\t\t\t'animation:' + CSS_RENDER_ANIMATION + ' 0.001s;' +\n\t\t\t'}'\n\t\t);\n\t},\n\n\tacquireContext: function(item, config) {\n\t\tif (typeof item === 'string') {\n\t\t\titem = document.getElementById(item);\n\t\t} else if (item.length) {\n\t\t\t// Support for array based queries (such as jQuery)\n\t\t\titem = item[0];\n\t\t}\n\n\t\tif (item && item.canvas) {\n\t\t\t// Support for any object associated to a canvas (including a context2d)\n\t\t\titem = item.canvas;\n\t\t}\n\n\t\t// To prevent canvas fingerprinting, some add-ons undefine the getContext\n\t\t// method, for example: https://github.com/kkapsner/CanvasBlocker\n\t\t// https://github.com/chartjs/Chart.js/issues/2807\n\t\tvar context = item && item.getContext && item.getContext('2d');\n\n\t\t// `instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is\n\t\t// inside an iframe or when running in a protected environment. We could guess the\n\t\t// types from their toString() value but let's keep things flexible and assume it's\n\t\t// a sufficient condition if the item has a context2D which has item as `canvas`.\n\t\t// https://github.com/chartjs/Chart.js/issues/3887\n\t\t// https://github.com/chartjs/Chart.js/issues/4102\n\t\t// https://github.com/chartjs/Chart.js/issues/4152\n\t\tif (context && context.canvas === item) {\n\t\t\tinitCanvas(item, config);\n\t\t\treturn context;\n\t\t}\n\n\t\treturn null;\n\t},\n\n\treleaseContext: function(context) {\n\t\tvar canvas = context.canvas;\n\t\tif (!canvas[EXPANDO_KEY]) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar initial = canvas[EXPANDO_KEY].initial;\n\t\t['height', 'width'].forEach(function(prop) {\n\t\t\tvar value = initial[prop];\n\t\t\tif (helpers.isNullOrUndef(value)) {\n\t\t\t\tcanvas.removeAttribute(prop);\n\t\t\t} else {\n\t\t\t\tcanvas.setAttribute(prop, value);\n\t\t\t}\n\t\t});\n\n\t\thelpers.each(initial.style || {}, function(value, key) {\n\t\t\tcanvas.style[key] = value;\n\t\t});\n\n\t\t// The canvas render size might have been changed (and thus the state stack discarded),\n\t\t// we can't use save() and restore() to restore the initial state. So make sure that at\n\t\t// least the canvas context is reset to the default state by setting the canvas width.\n\t\t// https://www.w3.org/TR/2011/WD-html5-20110525/the-canvas-element.html\n\t\tcanvas.width = canvas.width;\n\n\t\tdelete canvas[EXPANDO_KEY];\n\t},\n\n\taddEventListener: function(chart, type, listener) {\n\t\tvar canvas = chart.canvas;\n\t\tif (type === 'resize') {\n\t\t\t// Note: the resize event is not supported on all browsers.\n\t\t\taddResizeListener(canvas, listener, chart);\n\t\t\treturn;\n\t\t}\n\n\t\tvar expando = listener[EXPANDO_KEY] || (listener[EXPANDO_KEY] = {});\n\t\tvar proxies = expando.proxies || (expando.proxies = {});\n\t\tvar proxy = proxies[chart.id + '_' + type] = function(event) {\n\t\t\tlistener(fromNativeEvent(event, chart));\n\t\t};\n\n\t\taddEventListener(canvas, type, proxy);\n\t},\n\n\tremoveEventListener: function(chart, type, listener) {\n\t\tvar canvas = chart.canvas;\n\t\tif (type === 'resize') {\n\t\t\t// Note: the resize event is not supported on all browsers.\n\t\t\tremoveResizeListener(canvas, listener);\n\t\t\treturn;\n\t\t}\n\n\t\tvar expando = listener[EXPANDO_KEY] || {};\n\t\tvar proxies = expando.proxies || {};\n\t\tvar proxy = proxies[chart.id + '_' + type];\n\t\tif (!proxy) {\n\t\t\treturn;\n\t\t}\n\n\t\tremoveEventListener(canvas, type, proxy);\n\t}\n};\n\n// DEPRECATIONS\n\n/**\n * Provided for backward compatibility, use EventTarget.addEventListener instead.\n * EventTarget.addEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\n * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\n * @function Chart.helpers.addEvent\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.addEvent = addEventListener;\n\n/**\n * Provided for backward compatibility, use EventTarget.removeEventListener instead.\n * EventTarget.removeEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\n * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener\n * @function Chart.helpers.removeEvent\n * @deprecated since version 2.7.0\n * @todo remove at version 3\n * @private\n */\nhelpers.removeEvent = removeEventListener;\n\n},{\"46\":46}],49:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\nvar basic = require(47);\nvar dom = require(48);\n\n// @TODO Make possible to select another platform at build time.\nvar implementation = dom._enabled ? dom : basic;\n\n/**\n * @namespace Chart.platform\n * @see https://chartjs.gitbooks.io/proposals/content/Platform.html\n * @since 2.4.0\n */\nmodule.exports = helpers.extend({\n\t/**\n\t * @since 2.7.0\n\t */\n\tinitialize: function() {},\n\n\t/**\n\t * Called at chart construction time, returns a context2d instance implementing\n\t * the [W3C Canvas 2D Context API standard]{@link https://www.w3.org/TR/2dcontext/}.\n\t * @param {*} item - The native item from which to acquire context (platform specific)\n\t * @param {Object} options - The chart options\n\t * @returns {CanvasRenderingContext2D} context2d instance\n\t */\n\tacquireContext: function() {},\n\n\t/**\n\t * Called at chart destruction time, releases any resources associated to the context\n\t * previously returned by the acquireContext() method.\n\t * @param {CanvasRenderingContext2D} context - The context2d instance\n\t * @returns {Boolean} true if the method succeeded, else false\n\t */\n\treleaseContext: function() {},\n\n\t/**\n\t * Registers the specified listener on the given chart.\n\t * @param {Chart} chart - Chart from which to listen for event\n\t * @param {String} type - The ({@link IEvent}) type to listen for\n\t * @param {Function} listener - Receives a notification (an object that implements\n\t * the {@link IEvent} interface) when an event of the specified type occurs.\n\t */\n\taddEventListener: function() {},\n\n\t/**\n\t * Removes the specified listener previously registered with addEventListener.\n\t * @param {Chart} chart -Chart from which to remove the listener\n\t * @param {String} type - The ({@link IEvent}) type to remove\n\t * @param {Function} listener - The listener function to remove from the event target.\n\t */\n\tremoveEventListener: function() {}\n\n}, implementation);\n\n/**\n * @interface IPlatform\n * Allows abstracting platform dependencies away from the chart\n * @borrows Chart.platform.acquireContext as acquireContext\n * @borrows Chart.platform.releaseContext as releaseContext\n * @borrows Chart.platform.addEventListener as addEventListener\n * @borrows Chart.platform.removeEventListener as removeEventListener\n */\n\n/**\n * @interface IEvent\n * @prop {String} type - The event type name, possible values are:\n * 'contextmenu', 'mouseenter', 'mousedown', 'mousemove', 'mouseup', 'mouseout',\n * 'click', 'dblclick', 'keydown', 'keypress', 'keyup' and 'resize'\n * @prop {*} native - The original native event (null for emulated events, e.g. 'resize')\n * @prop {Number} x - The mouse x position, relative to the canvas (null for incompatible events)\n * @prop {Number} y - The mouse y position, relative to the canvas (null for incompatible events)\n */\n\n},{\"46\":46,\"47\":47,\"48\":48}],50:[function(require,module,exports){\n'use strict';\n\nmodule.exports = {};\nmodule.exports.filler = require(51);\nmodule.exports.legend = require(52);\nmodule.exports.title = require(53);\n\n},{\"51\":51,\"52\":52,\"53\":53}],51:[function(require,module,exports){\n/**\n * Plugin based on discussion from the following Chart.js issues:\n * @see https://github.com/chartjs/Chart.js/issues/2380#issuecomment-279961569\n * @see https://github.com/chartjs/Chart.js/issues/2440#issuecomment-256461897\n */\n\n'use strict';\n\nvar defaults = require(26);\nvar elements = require(41);\nvar helpers = require(46);\n\ndefaults._set('global', {\n\tplugins: {\n\t\tfiller: {\n\t\t\tpropagate: true\n\t\t}\n\t}\n});\n\nvar mappers = {\n\tdataset: function(source) {\n\t\tvar index = source.fill;\n\t\tvar chart = source.chart;\n\t\tvar meta = chart.getDatasetMeta(index);\n\t\tvar visible = meta && chart.isDatasetVisible(index);\n\t\tvar points = (visible && meta.dataset._children) || [];\n\t\tvar length = points.length || 0;\n\n\t\treturn !length ? null : function(point, i) {\n\t\t\treturn (i < length && points[i]._view) || null;\n\t\t};\n\t},\n\n\tboundary: function(source) {\n\t\tvar boundary = source.boundary;\n\t\tvar x = boundary ? boundary.x : null;\n\t\tvar y = boundary ? boundary.y : null;\n\n\t\treturn function(point) {\n\t\t\treturn {\n\t\t\t\tx: x === null ? point.x : x,\n\t\t\t\ty: y === null ? point.y : y,\n\t\t\t};\n\t\t};\n\t}\n};\n\n// @todo if (fill[0] === '#')\nfunction decodeFill(el, index, count) {\n\tvar model = el._model || {};\n\tvar fill = model.fill;\n\tvar target;\n\n\tif (fill === undefined) {\n\t\tfill = !!model.backgroundColor;\n\t}\n\n\tif (fill === false || fill === null) {\n\t\treturn false;\n\t}\n\n\tif (fill === true) {\n\t\treturn 'origin';\n\t}\n\n\ttarget = parseFloat(fill, 10);\n\tif (isFinite(target) && Math.floor(target) === target) {\n\t\tif (fill[0] === '-' || fill[0] === '+') {\n\t\t\ttarget = index + target;\n\t\t}\n\n\t\tif (target === index || target < 0 || target >= count) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn target;\n\t}\n\n\tswitch (fill) {\n\t// compatibility\n\tcase 'bottom':\n\t\treturn 'start';\n\tcase 'top':\n\t\treturn 'end';\n\tcase 'zero':\n\t\treturn 'origin';\n\t// supported boundaries\n\tcase 'origin':\n\tcase 'start':\n\tcase 'end':\n\t\treturn fill;\n\t// invalid fill values\n\tdefault:\n\t\treturn false;\n\t}\n}\n\nfunction computeBoundary(source) {\n\tvar model = source.el._model || {};\n\tvar scale = source.el._scale || {};\n\tvar fill = source.fill;\n\tvar target = null;\n\tvar horizontal;\n\n\tif (isFinite(fill)) {\n\t\treturn null;\n\t}\n\n\t// Backward compatibility: until v3, we still need to support boundary values set on\n\t// the model (scaleTop, scaleBottom and scaleZero) because some external plugins and\n\t// controllers might still use it (e.g. the Smith chart).\n\n\tif (fill === 'start') {\n\t\ttarget = model.scaleBottom === undefined ? scale.bottom : model.scaleBottom;\n\t} else if (fill === 'end') {\n\t\ttarget = model.scaleTop === undefined ? scale.top : model.scaleTop;\n\t} else if (model.scaleZero !== undefined) {\n\t\ttarget = model.scaleZero;\n\t} else if (scale.getBasePosition) {\n\t\ttarget = scale.getBasePosition();\n\t} else if (scale.getBasePixel) {\n\t\ttarget = scale.getBasePixel();\n\t}\n\n\tif (target !== undefined && target !== null) {\n\t\tif (target.x !== undefined && target.y !== undefined) {\n\t\t\treturn target;\n\t\t}\n\n\t\tif (typeof target === 'number' && isFinite(target)) {\n\t\t\thorizontal = scale.isHorizontal();\n\t\t\treturn {\n\t\t\t\tx: horizontal ? target : null,\n\t\t\t\ty: horizontal ? null : target\n\t\t\t};\n\t\t}\n\t}\n\n\treturn null;\n}\n\nfunction resolveTarget(sources, index, propagate) {\n\tvar source = sources[index];\n\tvar fill = source.fill;\n\tvar visited = [index];\n\tvar target;\n\n\tif (!propagate) {\n\t\treturn fill;\n\t}\n\n\twhile (fill !== false && visited.indexOf(fill) === -1) {\n\t\tif (!isFinite(fill)) {\n\t\t\treturn fill;\n\t\t}\n\n\t\ttarget = sources[fill];\n\t\tif (!target) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (target.visible) {\n\t\t\treturn fill;\n\t\t}\n\n\t\tvisited.push(fill);\n\t\tfill = target.fill;\n\t}\n\n\treturn false;\n}\n\nfunction createMapper(source) {\n\tvar fill = source.fill;\n\tvar type = 'dataset';\n\n\tif (fill === false) {\n\t\treturn null;\n\t}\n\n\tif (!isFinite(fill)) {\n\t\ttype = 'boundary';\n\t}\n\n\treturn mappers[type](source);\n}\n\nfunction isDrawable(point) {\n\treturn point && !point.skip;\n}\n\nfunction drawArea(ctx, curve0, curve1, len0, len1) {\n\tvar i;\n\n\tif (!len0 || !len1) {\n\t\treturn;\n\t}\n\n\t// building first area curve (normal)\n\tctx.moveTo(curve0[0].x, curve0[0].y);\n\tfor (i = 1; i < len0; ++i) {\n\t\thelpers.canvas.lineTo(ctx, curve0[i - 1], curve0[i]);\n\t}\n\n\t// joining the two area curves\n\tctx.lineTo(curve1[len1 - 1].x, curve1[len1 - 1].y);\n\n\t// building opposite area curve (reverse)\n\tfor (i = len1 - 1; i > 0; --i) {\n\t\thelpers.canvas.lineTo(ctx, curve1[i], curve1[i - 1], true);\n\t}\n}\n\nfunction doFill(ctx, points, mapper, view, color, loop) {\n\tvar count = points.length;\n\tvar span = view.spanGaps;\n\tvar curve0 = [];\n\tvar curve1 = [];\n\tvar len0 = 0;\n\tvar len1 = 0;\n\tvar i, ilen, index, p0, p1, d0, d1;\n\n\tctx.beginPath();\n\n\tfor (i = 0, ilen = (count + !!loop); i < ilen; ++i) {\n\t\tindex = i % count;\n\t\tp0 = points[index]._view;\n\t\tp1 = mapper(p0, index, view);\n\t\td0 = isDrawable(p0);\n\t\td1 = isDrawable(p1);\n\n\t\tif (d0 && d1) {\n\t\t\tlen0 = curve0.push(p0);\n\t\t\tlen1 = curve1.push(p1);\n\t\t} else if (len0 && len1) {\n\t\t\tif (!span) {\n\t\t\t\tdrawArea(ctx, curve0, curve1, len0, len1);\n\t\t\t\tlen0 = len1 = 0;\n\t\t\t\tcurve0 = [];\n\t\t\t\tcurve1 = [];\n\t\t\t} else {\n\t\t\t\tif (d0) {\n\t\t\t\t\tcurve0.push(p0);\n\t\t\t\t}\n\t\t\t\tif (d1) {\n\t\t\t\t\tcurve1.push(p1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tdrawArea(ctx, curve0, curve1, len0, len1);\n\n\tctx.closePath();\n\tctx.fillStyle = color;\n\tctx.fill();\n}\n\nmodule.exports = {\n\tid: 'filler',\n\n\tafterDatasetsUpdate: function(chart, options) {\n\t\tvar count = (chart.data.datasets || []).length;\n\t\tvar propagate = options.propagate;\n\t\tvar sources = [];\n\t\tvar meta, i, el, source;\n\n\t\tfor (i = 0; i < count; ++i) {\n\t\t\tmeta = chart.getDatasetMeta(i);\n\t\t\tel = meta.dataset;\n\t\t\tsource = null;\n\n\t\t\tif (el && el._model && el instanceof elements.Line) {\n\t\t\t\tsource = {\n\t\t\t\t\tvisible: chart.isDatasetVisible(i),\n\t\t\t\t\tfill: decodeFill(el, i, count),\n\t\t\t\t\tchart: chart,\n\t\t\t\t\tel: el\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tmeta.$filler = source;\n\t\t\tsources.push(source);\n\t\t}\n\n\t\tfor (i = 0; i < count; ++i) {\n\t\t\tsource = sources[i];\n\t\t\tif (!source) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tsource.fill = resolveTarget(sources, i, propagate);\n\t\t\tsource.boundary = computeBoundary(source);\n\t\t\tsource.mapper = createMapper(source);\n\t\t}\n\t},\n\n\tbeforeDatasetDraw: function(chart, args) {\n\t\tvar meta = args.meta.$filler;\n\t\tif (!meta) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar ctx = chart.ctx;\n\t\tvar el = meta.el;\n\t\tvar view = el._view;\n\t\tvar points = el._children || [];\n\t\tvar mapper = meta.mapper;\n\t\tvar color = view.backgroundColor || defaults.global.defaultColor;\n\n\t\tif (mapper && color && points.length) {\n\t\t\thelpers.canvas.clipArea(ctx, chart.chartArea);\n\t\t\tdoFill(ctx, points, mapper, view, color, el._loop);\n\t\t\thelpers.canvas.unclipArea(ctx);\n\t\t}\n\t}\n};\n\n},{\"26\":26,\"41\":41,\"46\":46}],52:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\nvar layouts = require(31);\n\nvar noop = helpers.noop;\n\ndefaults._set('global', {\n\tlegend: {\n\t\tdisplay: true,\n\t\tposition: 'top',\n\t\tfullWidth: true,\n\t\treverse: false,\n\t\tweight: 1000,\n\n\t\t// a callback that will handle\n\t\tonClick: function(e, legendItem) {\n\t\t\tvar index = legendItem.datasetIndex;\n\t\t\tvar ci = this.chart;\n\t\t\tvar meta = ci.getDatasetMeta(index);\n\n\t\t\t// See controller.isDatasetVisible comment\n\t\t\tmeta.hidden = meta.hidden === null ? !ci.data.datasets[index].hidden : null;\n\n\t\t\t// We hid a dataset ... rerender the chart\n\t\t\tci.update();\n\t\t},\n\n\t\tonHover: null,\n\n\t\tlabels: {\n\t\t\tboxWidth: 40,\n\t\t\tpadding: 10,\n\t\t\t// Generates labels shown in the legend\n\t\t\t// Valid properties to return:\n\t\t\t// text : text to display\n\t\t\t// fillStyle : fill of coloured box\n\t\t\t// strokeStyle: stroke of coloured box\n\t\t\t// hidden : if this legend item refers to a hidden item\n\t\t\t// lineCap : cap style for line\n\t\t\t// lineDash\n\t\t\t// lineDashOffset :\n\t\t\t// lineJoin :\n\t\t\t// lineWidth :\n\t\t\tgenerateLabels: function(chart) {\n\t\t\t\tvar data = chart.data;\n\t\t\t\treturn helpers.isArray(data.datasets) ? data.datasets.map(function(dataset, i) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\ttext: dataset.label,\n\t\t\t\t\t\tfillStyle: (!helpers.isArray(dataset.backgroundColor) ? dataset.backgroundColor : dataset.backgroundColor[0]),\n\t\t\t\t\t\thidden: !chart.isDatasetVisible(i),\n\t\t\t\t\t\tlineCap: dataset.borderCapStyle,\n\t\t\t\t\t\tlineDash: dataset.borderDash,\n\t\t\t\t\t\tlineDashOffset: dataset.borderDashOffset,\n\t\t\t\t\t\tlineJoin: dataset.borderJoinStyle,\n\t\t\t\t\t\tlineWidth: dataset.borderWidth,\n\t\t\t\t\t\tstrokeStyle: dataset.borderColor,\n\t\t\t\t\t\tpointStyle: dataset.pointStyle,\n\n\t\t\t\t\t\t// Below is extra data used for toggling the datasets\n\t\t\t\t\t\tdatasetIndex: i\n\t\t\t\t\t};\n\t\t\t\t}, this) : [];\n\t\t\t}\n\t\t}\n\t},\n\n\tlegendCallback: function(chart) {\n\t\tvar text = [];\n\t\ttext.push('<ul class=\"' + chart.id + '-legend\">');\n\t\tfor (var i = 0; i < chart.data.datasets.length; i++) {\n\t\t\ttext.push('<li><span style=\"background-color:' + chart.data.datasets[i].backgroundColor + '\"></span>');\n\t\t\tif (chart.data.datasets[i].label) {\n\t\t\t\ttext.push(chart.data.datasets[i].label);\n\t\t\t}\n\t\t\ttext.push('</li>');\n\t\t}\n\t\ttext.push('</ul>');\n\t\treturn text.join('');\n\t}\n});\n\n/**\n * Helper function to get the box width based on the usePointStyle option\n * @param labelopts {Object} the label options on the legend\n * @param fontSize {Number} the label font size\n * @return {Number} width of the color box area\n */\nfunction getBoxWidth(labelOpts, fontSize) {\n\treturn labelOpts.usePointStyle ?\n\t\tfontSize * Math.SQRT2 :\n\t\tlabelOpts.boxWidth;\n}\n\n/**\n * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\n */\nvar Legend = Element.extend({\n\n\tinitialize: function(config) {\n\t\thelpers.extend(this, config);\n\n\t\t// Contains hit boxes for each dataset (in dataset order)\n\t\tthis.legendHitBoxes = [];\n\n\t\t// Are we in doughnut mode which has a different data type\n\t\tthis.doughnutMode = false;\n\t},\n\n\t// These methods are ordered by lifecycle. Utilities then follow.\n\t// Any function defined here is inherited by all legend types.\n\t// Any function can be extended by the legend type\n\n\tbeforeUpdate: noop,\n\tupdate: function(maxWidth, maxHeight, margins) {\n\t\tvar me = this;\n\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\n\t\tme.beforeUpdate();\n\n\t\t// Absorb the master measurements\n\t\tme.maxWidth = maxWidth;\n\t\tme.maxHeight = maxHeight;\n\t\tme.margins = margins;\n\n\t\t// Dimensions\n\t\tme.beforeSetDimensions();\n\t\tme.setDimensions();\n\t\tme.afterSetDimensions();\n\t\t// Labels\n\t\tme.beforeBuildLabels();\n\t\tme.buildLabels();\n\t\tme.afterBuildLabels();\n\n\t\t// Fit\n\t\tme.beforeFit();\n\t\tme.fit();\n\t\tme.afterFit();\n\t\t//\n\t\tme.afterUpdate();\n\n\t\treturn me.minSize;\n\t},\n\tafterUpdate: noop,\n\n\t//\n\n\tbeforeSetDimensions: noop,\n\tsetDimensions: function() {\n\t\tvar me = this;\n\t\t// Set the unconstrained dimension before label rotation\n\t\tif (me.isHorizontal()) {\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.width = me.maxWidth;\n\t\t\tme.left = 0;\n\t\t\tme.right = me.width;\n\t\t} else {\n\t\t\tme.height = me.maxHeight;\n\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.top = 0;\n\t\t\tme.bottom = me.height;\n\t\t}\n\n\t\t// Reset padding\n\t\tme.paddingLeft = 0;\n\t\tme.paddingTop = 0;\n\t\tme.paddingRight = 0;\n\t\tme.paddingBottom = 0;\n\n\t\t// Reset minSize\n\t\tme.minSize = {\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t};\n\t},\n\tafterSetDimensions: noop,\n\n\t//\n\n\tbeforeBuildLabels: noop,\n\tbuildLabels: function() {\n\t\tvar me = this;\n\t\tvar labelOpts = me.options.labels || {};\n\t\tvar legendItems = helpers.callback(labelOpts.generateLabels, [me.chart], me) || [];\n\n\t\tif (labelOpts.filter) {\n\t\t\tlegendItems = legendItems.filter(function(item) {\n\t\t\t\treturn labelOpts.filter(item, me.chart.data);\n\t\t\t});\n\t\t}\n\n\t\tif (me.options.reverse) {\n\t\t\tlegendItems.reverse();\n\t\t}\n\n\t\tme.legendItems = legendItems;\n\t},\n\tafterBuildLabels: noop,\n\n\t//\n\n\tbeforeFit: noop,\n\tfit: function() {\n\t\tvar me = this;\n\t\tvar opts = me.options;\n\t\tvar labelOpts = opts.labels;\n\t\tvar display = opts.display;\n\n\t\tvar ctx = me.ctx;\n\n\t\tvar globalDefault = defaults.global;\n\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\tvar fontSize = valueOrDefault(labelOpts.fontSize, globalDefault.defaultFontSize);\n\t\tvar fontStyle = valueOrDefault(labelOpts.fontStyle, globalDefault.defaultFontStyle);\n\t\tvar fontFamily = valueOrDefault(labelOpts.fontFamily, globalDefault.defaultFontFamily);\n\t\tvar labelFont = helpers.fontString(fontSize, fontStyle, fontFamily);\n\n\t\t// Reset hit boxes\n\t\tvar hitboxes = me.legendHitBoxes = [];\n\n\t\tvar minSize = me.minSize;\n\t\tvar isHorizontal = me.isHorizontal();\n\n\t\tif (isHorizontal) {\n\t\t\tminSize.width = me.maxWidth; // fill all the width\n\t\t\tminSize.height = display ? 10 : 0;\n\t\t} else {\n\t\t\tminSize.width = display ? 10 : 0;\n\t\t\tminSize.height = me.maxHeight; // fill all the height\n\t\t}\n\n\t\t// Increase sizes here\n\t\tif (display) {\n\t\t\tctx.font = labelFont;\n\n\t\t\tif (isHorizontal) {\n\t\t\t\t// Labels\n\n\t\t\t\t// Width of each line of legend boxes. Labels wrap onto multiple lines when there are too many to fit on one\n\t\t\t\tvar lineWidths = me.lineWidths = [0];\n\t\t\t\tvar totalHeight = me.legendItems.length ? fontSize + (labelOpts.padding) : 0;\n\n\t\t\t\tctx.textAlign = 'left';\n\t\t\t\tctx.textBaseline = 'top';\n\n\t\t\t\thelpers.each(me.legendItems, function(legendItem, i) {\n\t\t\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\n\t\t\t\t\tvar width = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;\n\n\t\t\t\t\tif (lineWidths[lineWidths.length - 1] + width + labelOpts.padding >= me.width) {\n\t\t\t\t\t\ttotalHeight += fontSize + (labelOpts.padding);\n\t\t\t\t\t\tlineWidths[lineWidths.length] = me.left;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Store the hitbox width and height here. Final position will be updated in `draw`\n\t\t\t\t\thitboxes[i] = {\n\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\twidth: width,\n\t\t\t\t\t\theight: fontSize\n\t\t\t\t\t};\n\n\t\t\t\t\tlineWidths[lineWidths.length - 1] += width + labelOpts.padding;\n\t\t\t\t});\n\n\t\t\t\tminSize.height += totalHeight;\n\n\t\t\t} else {\n\t\t\t\tvar vPadding = labelOpts.padding;\n\t\t\t\tvar columnWidths = me.columnWidths = [];\n\t\t\t\tvar totalWidth = labelOpts.padding;\n\t\t\t\tvar currentColWidth = 0;\n\t\t\t\tvar currentColHeight = 0;\n\t\t\t\tvar itemHeight = fontSize + vPadding;\n\n\t\t\t\thelpers.each(me.legendItems, function(legendItem, i) {\n\t\t\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\n\t\t\t\t\tvar itemWidth = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;\n\n\t\t\t\t\t// If too tall, go to new column\n\t\t\t\t\tif (currentColHeight + itemHeight > minSize.height) {\n\t\t\t\t\t\ttotalWidth += currentColWidth + labelOpts.padding;\n\t\t\t\t\t\tcolumnWidths.push(currentColWidth); // previous column width\n\n\t\t\t\t\t\tcurrentColWidth = 0;\n\t\t\t\t\t\tcurrentColHeight = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get max width\n\t\t\t\t\tcurrentColWidth = Math.max(currentColWidth, itemWidth);\n\t\t\t\t\tcurrentColHeight += itemHeight;\n\n\t\t\t\t\t// Store the hitbox width and height here. Final position will be updated in `draw`\n\t\t\t\t\thitboxes[i] = {\n\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\twidth: itemWidth,\n\t\t\t\t\t\theight: fontSize\n\t\t\t\t\t};\n\t\t\t\t});\n\n\t\t\t\ttotalWidth += currentColWidth;\n\t\t\t\tcolumnWidths.push(currentColWidth);\n\t\t\t\tminSize.width += totalWidth;\n\t\t\t}\n\t\t}\n\n\t\tme.width = minSize.width;\n\t\tme.height = minSize.height;\n\t},\n\tafterFit: noop,\n\n\t// Shared Methods\n\tisHorizontal: function() {\n\t\treturn this.options.position === 'top' || this.options.position === 'bottom';\n\t},\n\n\t// Actually draw the legend on the canvas\n\tdraw: function() {\n\t\tvar me = this;\n\t\tvar opts = me.options;\n\t\tvar labelOpts = opts.labels;\n\t\tvar globalDefault = defaults.global;\n\t\tvar lineDefault = globalDefault.elements.line;\n\t\tvar legendWidth = me.width;\n\t\tvar lineWidths = me.lineWidths;\n\n\t\tif (opts.display) {\n\t\t\tvar ctx = me.ctx;\n\t\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\t\tvar fontColor = valueOrDefault(labelOpts.fontColor, globalDefault.defaultFontColor);\n\t\t\tvar fontSize = valueOrDefault(labelOpts.fontSize, globalDefault.defaultFontSize);\n\t\t\tvar fontStyle = valueOrDefault(labelOpts.fontStyle, globalDefault.defaultFontStyle);\n\t\t\tvar fontFamily = valueOrDefault(labelOpts.fontFamily, globalDefault.defaultFontFamily);\n\t\t\tvar labelFont = helpers.fontString(fontSize, fontStyle, fontFamily);\n\t\t\tvar cursor;\n\n\t\t\t// Canvas setup\n\t\t\tctx.textAlign = 'left';\n\t\t\tctx.textBaseline = 'middle';\n\t\t\tctx.lineWidth = 0.5;\n\t\t\tctx.strokeStyle = fontColor; // for strikethrough effect\n\t\t\tctx.fillStyle = fontColor; // render in correct colour\n\t\t\tctx.font = labelFont;\n\n\t\t\tvar boxWidth = getBoxWidth(labelOpts, fontSize);\n\t\t\tvar hitboxes = me.legendHitBoxes;\n\n\t\t\t// current position\n\t\t\tvar drawLegendBox = function(x, y, legendItem) {\n\t\t\t\tif (isNaN(boxWidth) || boxWidth <= 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Set the ctx for the box\n\t\t\t\tctx.save();\n\n\t\t\t\tctx.fillStyle = valueOrDefault(legendItem.fillStyle, globalDefault.defaultColor);\n\t\t\t\tctx.lineCap = valueOrDefault(legendItem.lineCap, lineDefault.borderCapStyle);\n\t\t\t\tctx.lineDashOffset = valueOrDefault(legendItem.lineDashOffset, lineDefault.borderDashOffset);\n\t\t\t\tctx.lineJoin = valueOrDefault(legendItem.lineJoin, lineDefault.borderJoinStyle);\n\t\t\t\tctx.lineWidth = valueOrDefault(legendItem.lineWidth, lineDefault.borderWidth);\n\t\t\t\tctx.strokeStyle = valueOrDefault(legendItem.strokeStyle, globalDefault.defaultColor);\n\t\t\t\tvar isLineWidthZero = (valueOrDefault(legendItem.lineWidth, lineDefault.borderWidth) === 0);\n\n\t\t\t\tif (ctx.setLineDash) {\n\t\t\t\t\t// IE 9 and 10 do not support line dash\n\t\t\t\t\tctx.setLineDash(valueOrDefault(legendItem.lineDash, lineDefault.borderDash));\n\t\t\t\t}\n\n\t\t\t\tif (opts.labels && opts.labels.usePointStyle) {\n\t\t\t\t\t// Recalculate x and y for drawPoint() because its expecting\n\t\t\t\t\t// x and y to be center of figure (instead of top left)\n\t\t\t\t\tvar radius = fontSize * Math.SQRT2 / 2;\n\t\t\t\t\tvar offSet = radius / Math.SQRT2;\n\t\t\t\t\tvar centerX = x + offSet;\n\t\t\t\t\tvar centerY = y + offSet;\n\n\t\t\t\t\t// Draw pointStyle as legend symbol\n\t\t\t\t\thelpers.canvas.drawPoint(ctx, legendItem.pointStyle, radius, centerX, centerY);\n\t\t\t\t} else {\n\t\t\t\t\t// Draw box as legend symbol\n\t\t\t\t\tif (!isLineWidthZero) {\n\t\t\t\t\t\tctx.strokeRect(x, y, boxWidth, fontSize);\n\t\t\t\t\t}\n\t\t\t\t\tctx.fillRect(x, y, boxWidth, fontSize);\n\t\t\t\t}\n\n\t\t\t\tctx.restore();\n\t\t\t};\n\t\t\tvar fillText = function(x, y, legendItem, textWidth) {\n\t\t\t\tvar halfFontSize = fontSize / 2;\n\t\t\t\tvar xLeft = boxWidth + halfFontSize + x;\n\t\t\t\tvar yMiddle = y + halfFontSize;\n\n\t\t\t\tctx.fillText(legendItem.text, xLeft, yMiddle);\n\n\t\t\t\tif (legendItem.hidden) {\n\t\t\t\t\t// Strikethrough the text if hidden\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tctx.lineWidth = 2;\n\t\t\t\t\tctx.moveTo(xLeft, yMiddle);\n\t\t\t\t\tctx.lineTo(xLeft + textWidth, yMiddle);\n\t\t\t\t\tctx.stroke();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t// Horizontal\n\t\t\tvar isHorizontal = me.isHorizontal();\n\t\t\tif (isHorizontal) {\n\t\t\t\tcursor = {\n\t\t\t\t\tx: me.left + ((legendWidth - lineWidths[0]) / 2),\n\t\t\t\t\ty: me.top + labelOpts.padding,\n\t\t\t\t\tline: 0\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tcursor = {\n\t\t\t\t\tx: me.left + labelOpts.padding,\n\t\t\t\t\ty: me.top + labelOpts.padding,\n\t\t\t\t\tline: 0\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tvar itemHeight = fontSize + labelOpts.padding;\n\t\t\thelpers.each(me.legendItems, function(legendItem, i) {\n\t\t\t\tvar textWidth = ctx.measureText(legendItem.text).width;\n\t\t\t\tvar width = boxWidth + (fontSize / 2) + textWidth;\n\t\t\t\tvar x = cursor.x;\n\t\t\t\tvar y = cursor.y;\n\n\t\t\t\tif (isHorizontal) {\n\t\t\t\t\tif (x + width >= legendWidth) {\n\t\t\t\t\t\ty = cursor.y += itemHeight;\n\t\t\t\t\t\tcursor.line++;\n\t\t\t\t\t\tx = cursor.x = me.left + ((legendWidth - lineWidths[cursor.line]) / 2);\n\t\t\t\t\t}\n\t\t\t\t} else if (y + itemHeight > me.bottom) {\n\t\t\t\t\tx = cursor.x = x + me.columnWidths[cursor.line] + labelOpts.padding;\n\t\t\t\t\ty = cursor.y = me.top + labelOpts.padding;\n\t\t\t\t\tcursor.line++;\n\t\t\t\t}\n\n\t\t\t\tdrawLegendBox(x, y, legendItem);\n\n\t\t\t\thitboxes[i].left = x;\n\t\t\t\thitboxes[i].top = y;\n\n\t\t\t\t// Fill the actual label\n\t\t\t\tfillText(x, y, legendItem, textWidth);\n\n\t\t\t\tif (isHorizontal) {\n\t\t\t\t\tcursor.x += width + (labelOpts.padding);\n\t\t\t\t} else {\n\t\t\t\t\tcursor.y += itemHeight;\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\t},\n\n\t/**\n\t * Handle an event\n\t * @private\n\t * @param {IEvent} event - The event to handle\n\t * @return {Boolean} true if a change occured\n\t */\n\thandleEvent: function(e) {\n\t\tvar me = this;\n\t\tvar opts = me.options;\n\t\tvar type = e.type === 'mouseup' ? 'click' : e.type;\n\t\tvar changed = false;\n\n\t\tif (type === 'mousemove') {\n\t\t\tif (!opts.onHover) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (type === 'click') {\n\t\t\tif (!opts.onClick) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\n\t\t// Chart event already has relative position in it\n\t\tvar x = e.x;\n\t\tvar y = e.y;\n\n\t\tif (x >= me.left && x <= me.right && y >= me.top && y <= me.bottom) {\n\t\t\t// See if we are touching one of the dataset boxes\n\t\t\tvar lh = me.legendHitBoxes;\n\t\t\tfor (var i = 0; i < lh.length; ++i) {\n\t\t\t\tvar hitBox = lh[i];\n\n\t\t\t\tif (x >= hitBox.left && x <= hitBox.left + hitBox.width && y >= hitBox.top && y <= hitBox.top + hitBox.height) {\n\t\t\t\t\t// Touching an element\n\t\t\t\t\tif (type === 'click') {\n\t\t\t\t\t\t// use e.native for backwards compatibility\n\t\t\t\t\t\topts.onClick.call(me, e.native, me.legendItems[i]);\n\t\t\t\t\t\tchanged = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (type === 'mousemove') {\n\t\t\t\t\t\t// use e.native for backwards compatibility\n\t\t\t\t\t\topts.onHover.call(me, e.native, me.legendItems[i]);\n\t\t\t\t\t\tchanged = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn changed;\n\t}\n});\n\nfunction createNewLegendAndAttach(chart, legendOpts) {\n\tvar legend = new Legend({\n\t\tctx: chart.ctx,\n\t\toptions: legendOpts,\n\t\tchart: chart\n\t});\n\n\tlayouts.configure(chart, legend, legendOpts);\n\tlayouts.addBox(chart, legend);\n\tchart.legend = legend;\n}\n\nmodule.exports = {\n\tid: 'legend',\n\n\t/**\n\t * Backward compatibility: since 2.1.5, the legend is registered as a plugin, making\n\t * Chart.Legend obsolete. To avoid a breaking change, we export the Legend as part of\n\t * the plugin, which one will be re-exposed in the chart.js file.\n\t * https://github.com/chartjs/Chart.js/pull/2640\n\t * @private\n\t */\n\t_element: Legend,\n\n\tbeforeInit: function(chart) {\n\t\tvar legendOpts = chart.options.legend;\n\n\t\tif (legendOpts) {\n\t\t\tcreateNewLegendAndAttach(chart, legendOpts);\n\t\t}\n\t},\n\n\tbeforeUpdate: function(chart) {\n\t\tvar legendOpts = chart.options.legend;\n\t\tvar legend = chart.legend;\n\n\t\tif (legendOpts) {\n\t\t\thelpers.mergeIf(legendOpts, defaults.global.legend);\n\n\t\t\tif (legend) {\n\t\t\t\tlayouts.configure(chart, legend, legendOpts);\n\t\t\t\tlegend.options = legendOpts;\n\t\t\t} else {\n\t\t\t\tcreateNewLegendAndAttach(chart, legendOpts);\n\t\t\t}\n\t\t} else if (legend) {\n\t\t\tlayouts.removeBox(chart, legend);\n\t\t\tdelete chart.legend;\n\t\t}\n\t},\n\n\tafterEvent: function(chart, e) {\n\t\tvar legend = chart.legend;\n\t\tif (legend) {\n\t\t\tlegend.handleEvent(e);\n\t\t}\n\t}\n};\n\n},{\"26\":26,\"27\":27,\"31\":31,\"46\":46}],53:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar Element = require(27);\nvar helpers = require(46);\nvar layouts = require(31);\n\nvar noop = helpers.noop;\n\ndefaults._set('global', {\n\ttitle: {\n\t\tdisplay: false,\n\t\tfontStyle: 'bold',\n\t\tfullWidth: true,\n\t\tlineHeight: 1.2,\n\t\tpadding: 10,\n\t\tposition: 'top',\n\t\ttext: '',\n\t\tweight: 2000         // by default greater than legend (1000) to be above\n\t}\n});\n\n/**\n * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\n */\nvar Title = Element.extend({\n\tinitialize: function(config) {\n\t\tvar me = this;\n\t\thelpers.extend(me, config);\n\n\t\t// Contains hit boxes for each dataset (in dataset order)\n\t\tme.legendHitBoxes = [];\n\t},\n\n\t// These methods are ordered by lifecycle. Utilities then follow.\n\n\tbeforeUpdate: noop,\n\tupdate: function(maxWidth, maxHeight, margins) {\n\t\tvar me = this;\n\n\t\t// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\n\t\tme.beforeUpdate();\n\n\t\t// Absorb the master measurements\n\t\tme.maxWidth = maxWidth;\n\t\tme.maxHeight = maxHeight;\n\t\tme.margins = margins;\n\n\t\t// Dimensions\n\t\tme.beforeSetDimensions();\n\t\tme.setDimensions();\n\t\tme.afterSetDimensions();\n\t\t// Labels\n\t\tme.beforeBuildLabels();\n\t\tme.buildLabels();\n\t\tme.afterBuildLabels();\n\n\t\t// Fit\n\t\tme.beforeFit();\n\t\tme.fit();\n\t\tme.afterFit();\n\t\t//\n\t\tme.afterUpdate();\n\n\t\treturn me.minSize;\n\n\t},\n\tafterUpdate: noop,\n\n\t//\n\n\tbeforeSetDimensions: noop,\n\tsetDimensions: function() {\n\t\tvar me = this;\n\t\t// Set the unconstrained dimension before label rotation\n\t\tif (me.isHorizontal()) {\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.width = me.maxWidth;\n\t\t\tme.left = 0;\n\t\t\tme.right = me.width;\n\t\t} else {\n\t\t\tme.height = me.maxHeight;\n\n\t\t\t// Reset position before calculating rotation\n\t\t\tme.top = 0;\n\t\t\tme.bottom = me.height;\n\t\t}\n\n\t\t// Reset padding\n\t\tme.paddingLeft = 0;\n\t\tme.paddingTop = 0;\n\t\tme.paddingRight = 0;\n\t\tme.paddingBottom = 0;\n\n\t\t// Reset minSize\n\t\tme.minSize = {\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t};\n\t},\n\tafterSetDimensions: noop,\n\n\t//\n\n\tbeforeBuildLabels: noop,\n\tbuildLabels: noop,\n\tafterBuildLabels: noop,\n\n\t//\n\n\tbeforeFit: noop,\n\tfit: function() {\n\t\tvar me = this;\n\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\tvar opts = me.options;\n\t\tvar display = opts.display;\n\t\tvar fontSize = valueOrDefault(opts.fontSize, defaults.global.defaultFontSize);\n\t\tvar minSize = me.minSize;\n\t\tvar lineCount = helpers.isArray(opts.text) ? opts.text.length : 1;\n\t\tvar lineHeight = helpers.options.toLineHeight(opts.lineHeight, fontSize);\n\t\tvar textSize = display ? (lineCount * lineHeight) + (opts.padding * 2) : 0;\n\n\t\tif (me.isHorizontal()) {\n\t\t\tminSize.width = me.maxWidth; // fill all the width\n\t\t\tminSize.height = textSize;\n\t\t} else {\n\t\t\tminSize.width = textSize;\n\t\t\tminSize.height = me.maxHeight; // fill all the height\n\t\t}\n\n\t\tme.width = minSize.width;\n\t\tme.height = minSize.height;\n\n\t},\n\tafterFit: noop,\n\n\t// Shared Methods\n\tisHorizontal: function() {\n\t\tvar pos = this.options.position;\n\t\treturn pos === 'top' || pos === 'bottom';\n\t},\n\n\t// Actually draw the title block on the canvas\n\tdraw: function() {\n\t\tvar me = this;\n\t\tvar ctx = me.ctx;\n\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\tvar opts = me.options;\n\t\tvar globalDefaults = defaults.global;\n\n\t\tif (opts.display) {\n\t\t\tvar fontSize = valueOrDefault(opts.fontSize, globalDefaults.defaultFontSize);\n\t\t\tvar fontStyle = valueOrDefault(opts.fontStyle, globalDefaults.defaultFontStyle);\n\t\t\tvar fontFamily = valueOrDefault(opts.fontFamily, globalDefaults.defaultFontFamily);\n\t\t\tvar titleFont = helpers.fontString(fontSize, fontStyle, fontFamily);\n\t\t\tvar lineHeight = helpers.options.toLineHeight(opts.lineHeight, fontSize);\n\t\t\tvar offset = lineHeight / 2 + opts.padding;\n\t\t\tvar rotation = 0;\n\t\t\tvar top = me.top;\n\t\t\tvar left = me.left;\n\t\t\tvar bottom = me.bottom;\n\t\t\tvar right = me.right;\n\t\t\tvar maxWidth, titleX, titleY;\n\n\t\t\tctx.fillStyle = valueOrDefault(opts.fontColor, globalDefaults.defaultFontColor); // render in correct colour\n\t\t\tctx.font = titleFont;\n\n\t\t\t// Horizontal\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\ttitleX = left + ((right - left) / 2); // midpoint of the width\n\t\t\t\ttitleY = top + offset;\n\t\t\t\tmaxWidth = right - left;\n\t\t\t} else {\n\t\t\t\ttitleX = opts.position === 'left' ? left + offset : right - offset;\n\t\t\t\ttitleY = top + ((bottom - top) / 2);\n\t\t\t\tmaxWidth = bottom - top;\n\t\t\t\trotation = Math.PI * (opts.position === 'left' ? -0.5 : 0.5);\n\t\t\t}\n\n\t\t\tctx.save();\n\t\t\tctx.translate(titleX, titleY);\n\t\t\tctx.rotate(rotation);\n\t\t\tctx.textAlign = 'center';\n\t\t\tctx.textBaseline = 'middle';\n\n\t\t\tvar text = opts.text;\n\t\t\tif (helpers.isArray(text)) {\n\t\t\t\tvar y = 0;\n\t\t\t\tfor (var i = 0; i < text.length; ++i) {\n\t\t\t\t\tctx.fillText(text[i], 0, y, maxWidth);\n\t\t\t\t\ty += lineHeight;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tctx.fillText(text, 0, 0, maxWidth);\n\t\t\t}\n\n\t\t\tctx.restore();\n\t\t}\n\t}\n});\n\nfunction createNewTitleBlockAndAttach(chart, titleOpts) {\n\tvar title = new Title({\n\t\tctx: chart.ctx,\n\t\toptions: titleOpts,\n\t\tchart: chart\n\t});\n\n\tlayouts.configure(chart, title, titleOpts);\n\tlayouts.addBox(chart, title);\n\tchart.titleBlock = title;\n}\n\nmodule.exports = {\n\tid: 'title',\n\n\t/**\n\t * Backward compatibility: since 2.1.5, the title is registered as a plugin, making\n\t * Chart.Title obsolete. To avoid a breaking change, we export the Title as part of\n\t * the plugin, which one will be re-exposed in the chart.js file.\n\t * https://github.com/chartjs/Chart.js/pull/2640\n\t * @private\n\t */\n\t_element: Title,\n\n\tbeforeInit: function(chart) {\n\t\tvar titleOpts = chart.options.title;\n\n\t\tif (titleOpts) {\n\t\t\tcreateNewTitleBlockAndAttach(chart, titleOpts);\n\t\t}\n\t},\n\n\tbeforeUpdate: function(chart) {\n\t\tvar titleOpts = chart.options.title;\n\t\tvar titleBlock = chart.titleBlock;\n\n\t\tif (titleOpts) {\n\t\t\thelpers.mergeIf(titleOpts, defaults.global.title);\n\n\t\t\tif (titleBlock) {\n\t\t\t\tlayouts.configure(chart, titleBlock, titleOpts);\n\t\t\t\ttitleBlock.options = titleOpts;\n\t\t\t} else {\n\t\t\t\tcreateNewTitleBlockAndAttach(chart, titleOpts);\n\t\t\t}\n\t\t} else if (titleBlock) {\n\t\t\tlayouts.removeBox(chart, titleBlock);\n\t\t\tdelete chart.titleBlock;\n\t\t}\n\t}\n};\n\n},{\"26\":26,\"27\":27,\"31\":31,\"46\":46}],54:[function(require,module,exports){\n'use strict';\n\nvar Scale = require(33);\nvar scaleService = require(34);\n\nmodule.exports = function() {\n\n\t// Default config for a category scale\n\tvar defaultConfig = {\n\t\tposition: 'bottom'\n\t};\n\n\tvar DatasetScale = Scale.extend({\n\t\t/**\n\t\t* Internal function to get the correct labels. If data.xLabels or data.yLabels are defined, use those\n\t\t* else fall back to data.labels\n\t\t* @private\n\t\t*/\n\t\tgetLabels: function() {\n\t\t\tvar data = this.chart.data;\n\t\t\treturn this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels;\n\t\t},\n\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar labels = me.getLabels();\n\t\t\tme.minIndex = 0;\n\t\t\tme.maxIndex = labels.length - 1;\n\t\t\tvar findIndex;\n\n\t\t\tif (me.options.ticks.min !== undefined) {\n\t\t\t\t// user specified min value\n\t\t\t\tfindIndex = labels.indexOf(me.options.ticks.min);\n\t\t\t\tme.minIndex = findIndex !== -1 ? findIndex : me.minIndex;\n\t\t\t}\n\n\t\t\tif (me.options.ticks.max !== undefined) {\n\t\t\t\t// user specified max value\n\t\t\t\tfindIndex = labels.indexOf(me.options.ticks.max);\n\t\t\t\tme.maxIndex = findIndex !== -1 ? findIndex : me.maxIndex;\n\t\t\t}\n\n\t\t\tme.min = labels[me.minIndex];\n\t\t\tme.max = labels[me.maxIndex];\n\t\t},\n\n\t\tbuildTicks: function() {\n\t\t\tvar me = this;\n\t\t\tvar labels = me.getLabels();\n\t\t\t// If we are viewing some subset of labels, slice the original array\n\t\t\tme.ticks = (me.minIndex === 0 && me.maxIndex === labels.length - 1) ? labels : labels.slice(me.minIndex, me.maxIndex + 1);\n\t\t},\n\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar data = me.chart.data;\n\t\t\tvar isHorizontal = me.isHorizontal();\n\n\t\t\tif (data.yLabels && !isHorizontal) {\n\t\t\t\treturn me.getRightValue(data.datasets[datasetIndex].data[index]);\n\t\t\t}\n\t\t\treturn me.ticks[index - me.minIndex];\n\t\t},\n\n\t\t// Used to get data value locations.  Value can either be an index or a numerical value\n\t\tgetPixelForValue: function(value, index) {\n\t\t\tvar me = this;\n\t\t\tvar offset = me.options.offset;\n\t\t\t// 1 is added because we need the length but we have the indexes\n\t\t\tvar offsetAmt = Math.max((me.maxIndex + 1 - me.minIndex - (offset ? 0 : 1)), 1);\n\n\t\t\t// If value is a data object, then index is the index in the data array,\n\t\t\t// not the index of the scale. We need to change that.\n\t\t\tvar valueCategory;\n\t\t\tif (value !== undefined && value !== null) {\n\t\t\t\tvalueCategory = me.isHorizontal() ? value.x : value.y;\n\t\t\t}\n\t\t\tif (valueCategory !== undefined || (value !== undefined && isNaN(index))) {\n\t\t\t\tvar labels = me.getLabels();\n\t\t\t\tvalue = valueCategory || value;\n\t\t\t\tvar idx = labels.indexOf(value);\n\t\t\t\tindex = idx !== -1 ? idx : index;\n\t\t\t}\n\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tvar valueWidth = me.width / offsetAmt;\n\t\t\t\tvar widthOffset = (valueWidth * (index - me.minIndex));\n\n\t\t\t\tif (offset) {\n\t\t\t\t\twidthOffset += (valueWidth / 2);\n\t\t\t\t}\n\n\t\t\t\treturn me.left + Math.round(widthOffset);\n\t\t\t}\n\t\t\tvar valueHeight = me.height / offsetAmt;\n\t\t\tvar heightOffset = (valueHeight * (index - me.minIndex));\n\n\t\t\tif (offset) {\n\t\t\t\theightOffset += (valueHeight / 2);\n\t\t\t}\n\n\t\t\treturn me.top + Math.round(heightOffset);\n\t\t},\n\t\tgetPixelForTick: function(index) {\n\t\t\treturn this.getPixelForValue(this.ticks[index], index + this.minIndex, null);\n\t\t},\n\t\tgetValueForPixel: function(pixel) {\n\t\t\tvar me = this;\n\t\t\tvar offset = me.options.offset;\n\t\t\tvar value;\n\t\t\tvar offsetAmt = Math.max((me._ticks.length - (offset ? 0 : 1)), 1);\n\t\t\tvar horz = me.isHorizontal();\n\t\t\tvar valueDimension = (horz ? me.width : me.height) / offsetAmt;\n\n\t\t\tpixel -= horz ? me.left : me.top;\n\n\t\t\tif (offset) {\n\t\t\t\tpixel -= (valueDimension / 2);\n\t\t\t}\n\n\t\t\tif (pixel <= 0) {\n\t\t\t\tvalue = 0;\n\t\t\t} else {\n\t\t\t\tvalue = Math.round(pixel / valueDimension);\n\t\t\t}\n\n\t\t\treturn value + me.minIndex;\n\t\t},\n\t\tgetBasePixel: function() {\n\t\t\treturn this.bottom;\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('category', DatasetScale, defaultConfig);\n};\n\n},{\"33\":33,\"34\":34}],55:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\nvar scaleService = require(34);\nvar Ticks = require(35);\n\nmodule.exports = function(Chart) {\n\n\tvar defaultConfig = {\n\t\tposition: 'left',\n\t\tticks: {\n\t\t\tcallback: Ticks.formatters.linear\n\t\t}\n\t};\n\n\tvar LinearScale = Chart.LinearScaleBase.extend({\n\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar chart = me.chart;\n\t\t\tvar data = chart.data;\n\t\t\tvar datasets = data.datasets;\n\t\t\tvar isHorizontal = me.isHorizontal();\n\t\t\tvar DEFAULT_MIN = 0;\n\t\t\tvar DEFAULT_MAX = 1;\n\n\t\t\tfunction IDMatches(meta) {\n\t\t\t\treturn isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id;\n\t\t\t}\n\n\t\t\t// First Calculate the range\n\t\t\tme.min = null;\n\t\t\tme.max = null;\n\n\t\t\tvar hasStacks = opts.stacked;\n\t\t\tif (hasStacks === undefined) {\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tif (hasStacks) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta) &&\n\t\t\t\t\t\tmeta.stack !== undefined) {\n\t\t\t\t\t\thasStacks = true;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (opts.stacked || hasStacks) {\n\t\t\t\tvar valuesPerStack = {};\n\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tvar key = [\n\t\t\t\t\t\tmeta.type,\n\t\t\t\t\t\t// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\n\t\t\t\t\t\t((opts.stacked === undefined && meta.stack === undefined) ? datasetIndex : ''),\n\t\t\t\t\t\tmeta.stack\n\t\t\t\t\t].join('.');\n\n\t\t\t\t\tif (valuesPerStack[key] === undefined) {\n\t\t\t\t\t\tvaluesPerStack[key] = {\n\t\t\t\t\t\t\tpositiveValues: [],\n\t\t\t\t\t\t\tnegativeValues: []\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\t// Store these per type\n\t\t\t\t\tvar positiveValues = valuesPerStack[key].positiveValues;\n\t\t\t\t\tvar negativeValues = valuesPerStack[key].negativeValues;\n\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\n\t\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpositiveValues[index] = positiveValues[index] || 0;\n\t\t\t\t\t\t\tnegativeValues[index] = negativeValues[index] || 0;\n\n\t\t\t\t\t\t\tif (opts.relativePoints) {\n\t\t\t\t\t\t\t\tpositiveValues[index] = 100;\n\t\t\t\t\t\t\t} else if (value < 0) {\n\t\t\t\t\t\t\t\tnegativeValues[index] += value;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpositiveValues[index] += value;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\thelpers.each(valuesPerStack, function(valuesForType) {\n\t\t\t\t\tvar values = valuesForType.positiveValues.concat(valuesForType.negativeValues);\n\t\t\t\t\tvar minVal = helpers.min(values);\n\t\t\t\t\tvar maxVal = helpers.max(values);\n\t\t\t\t\tme.min = me.min === null ? minVal : Math.min(me.min, minVal);\n\t\t\t\t\tme.max = me.max === null ? maxVal : Math.max(me.max, maxVal);\n\t\t\t\t});\n\n\t\t\t} else {\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\n\t\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (me.min === null) {\n\t\t\t\t\t\t\t\tme.min = value;\n\t\t\t\t\t\t\t} else if (value < me.min) {\n\t\t\t\t\t\t\t\tme.min = value;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (me.max === null) {\n\t\t\t\t\t\t\t\tme.max = value;\n\t\t\t\t\t\t\t} else if (value > me.max) {\n\t\t\t\t\t\t\t\tme.max = value;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tme.min = isFinite(me.min) && !isNaN(me.min) ? me.min : DEFAULT_MIN;\n\t\t\tme.max = isFinite(me.max) && !isNaN(me.max) ? me.max : DEFAULT_MAX;\n\n\t\t\t// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\n\t\t\tthis.handleTickRangeOptions();\n\t\t},\n\t\tgetTickLimit: function() {\n\t\t\tvar maxTicks;\n\t\t\tvar me = this;\n\t\t\tvar tickOpts = me.options.ticks;\n\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tmaxTicks = Math.min(tickOpts.maxTicksLimit ? tickOpts.maxTicksLimit : 11, Math.ceil(me.width / 50));\n\t\t\t} else {\n\t\t\t\t// The factor of 2 used to scale the font size has been experimentally determined.\n\t\t\t\tvar tickFontSize = helpers.valueOrDefault(tickOpts.fontSize, defaults.global.defaultFontSize);\n\t\t\t\tmaxTicks = Math.min(tickOpts.maxTicksLimit ? tickOpts.maxTicksLimit : 11, Math.ceil(me.height / (2 * tickFontSize)));\n\t\t\t}\n\n\t\t\treturn maxTicks;\n\t\t},\n\t\t// Called after the ticks are built. We need\n\t\thandleDirectionalChanges: function() {\n\t\t\tif (!this.isHorizontal()) {\n\t\t\t\t// We are in a vertical orientation. The top value is the highest. So reverse the array\n\t\t\t\tthis.ticks.reverse();\n\t\t\t}\n\t\t},\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\treturn +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);\n\t\t},\n\t\t// Utils\n\t\tgetPixelForValue: function(value) {\n\t\t\t// This must be called after fit has been run so that\n\t\t\t// this.left, this.top, this.right, and this.bottom have been defined\n\t\t\tvar me = this;\n\t\t\tvar start = me.start;\n\n\t\t\tvar rightValue = +me.getRightValue(value);\n\t\t\tvar pixel;\n\t\t\tvar range = me.end - start;\n\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tpixel = me.left + (me.width / range * (rightValue - start));\n\t\t\t} else {\n\t\t\t\tpixel = me.bottom - (me.height / range * (rightValue - start));\n\t\t\t}\n\t\t\treturn pixel;\n\t\t},\n\t\tgetValueForPixel: function(pixel) {\n\t\t\tvar me = this;\n\t\t\tvar isHorizontal = me.isHorizontal();\n\t\t\tvar innerDimension = isHorizontal ? me.width : me.height;\n\t\t\tvar offset = (isHorizontal ? pixel - me.left : me.bottom - pixel) / innerDimension;\n\t\t\treturn me.start + ((me.end - me.start) * offset);\n\t\t},\n\t\tgetPixelForTick: function(index) {\n\t\t\treturn this.getPixelForValue(this.ticksAsNumbers[index]);\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('linear', LinearScale, defaultConfig);\n};\n\n},{\"26\":26,\"34\":34,\"35\":35,\"46\":46}],56:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\nvar Scale = require(33);\n\n/**\n * Generate a set of linear ticks\n * @param generationOptions the options used to generate the ticks\n * @param dataRange the range of the data\n * @returns {Array<Number>} array of tick values\n */\nfunction generateTicks(generationOptions, dataRange) {\n\tvar ticks = [];\n\t// To get a \"nice\" value for the tick spacing, we will use the appropriately named\n\t// \"nice number\" algorithm. See http://stackoverflow.com/questions/8506881/nice-label-algorithm-for-charts-with-minimum-ticks\n\t// for details.\n\n\tvar factor;\n\tvar precision;\n\tvar spacing;\n\n\tif (generationOptions.stepSize && generationOptions.stepSize > 0) {\n\t\tspacing = generationOptions.stepSize;\n\t} else {\n\t\tvar niceRange = helpers.niceNum(dataRange.max - dataRange.min, false);\n\t\tspacing = helpers.niceNum(niceRange / (generationOptions.maxTicks - 1), true);\n\n\t\tprecision = generationOptions.precision;\n\t\tif (precision !== undefined) {\n\t\t\t// If the user specified a precision, round to that number of decimal places\n\t\t\tfactor = Math.pow(10, precision);\n\t\t\tspacing = Math.ceil(spacing * factor) / factor;\n\t\t}\n\t}\n\tvar niceMin = Math.floor(dataRange.min / spacing) * spacing;\n\tvar niceMax = Math.ceil(dataRange.max / spacing) * spacing;\n\n\t// If min, max and stepSize is set and they make an evenly spaced scale use it.\n\tif (!helpers.isNullOrUndef(generationOptions.min) && !helpers.isNullOrUndef(generationOptions.max) && generationOptions.stepSize) {\n\t\t// If very close to our whole number, use it.\n\t\tif (helpers.almostWhole((generationOptions.max - generationOptions.min) / generationOptions.stepSize, spacing / 1000)) {\n\t\t\tniceMin = generationOptions.min;\n\t\t\tniceMax = generationOptions.max;\n\t\t}\n\t}\n\n\tvar numSpaces = (niceMax - niceMin) / spacing;\n\t// If very close to our rounded value, use it.\n\tif (helpers.almostEquals(numSpaces, Math.round(numSpaces), spacing / 1000)) {\n\t\tnumSpaces = Math.round(numSpaces);\n\t} else {\n\t\tnumSpaces = Math.ceil(numSpaces);\n\t}\n\n\tprecision = 1;\n\tif (spacing < 1) {\n\t\tprecision = Math.pow(10, 1 - Math.floor(helpers.log10(spacing)));\n\t\tniceMin = Math.round(niceMin * precision) / precision;\n\t\tniceMax = Math.round(niceMax * precision) / precision;\n\t}\n\tticks.push(generationOptions.min !== undefined ? generationOptions.min : niceMin);\n\tfor (var j = 1; j < numSpaces; ++j) {\n\t\tticks.push(Math.round((niceMin + j * spacing) * precision) / precision);\n\t}\n\tticks.push(generationOptions.max !== undefined ? generationOptions.max : niceMax);\n\n\treturn ticks;\n}\n\nmodule.exports = function(Chart) {\n\n\tvar noop = helpers.noop;\n\n\tChart.LinearScaleBase = Scale.extend({\n\t\tgetRightValue: function(value) {\n\t\t\tif (typeof value === 'string') {\n\t\t\t\treturn +value;\n\t\t\t}\n\t\t\treturn Scale.prototype.getRightValue.call(this, value);\n\t\t},\n\n\t\thandleTickRangeOptions: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\n\t\t\t// If we are forcing it to begin at 0, but 0 will already be rendered on the chart,\n\t\t\t// do nothing since that would make the chart weird. If the user really wants a weird chart\n\t\t\t// axis, they can manually override it\n\t\t\tif (tickOpts.beginAtZero) {\n\t\t\t\tvar minSign = helpers.sign(me.min);\n\t\t\t\tvar maxSign = helpers.sign(me.max);\n\n\t\t\t\tif (minSign < 0 && maxSign < 0) {\n\t\t\t\t\t// move the top up to 0\n\t\t\t\t\tme.max = 0;\n\t\t\t\t} else if (minSign > 0 && maxSign > 0) {\n\t\t\t\t\t// move the bottom down to 0\n\t\t\t\t\tme.min = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar setMin = tickOpts.min !== undefined || tickOpts.suggestedMin !== undefined;\n\t\t\tvar setMax = tickOpts.max !== undefined || tickOpts.suggestedMax !== undefined;\n\n\t\t\tif (tickOpts.min !== undefined) {\n\t\t\t\tme.min = tickOpts.min;\n\t\t\t} else if (tickOpts.suggestedMin !== undefined) {\n\t\t\t\tif (me.min === null) {\n\t\t\t\t\tme.min = tickOpts.suggestedMin;\n\t\t\t\t} else {\n\t\t\t\t\tme.min = Math.min(me.min, tickOpts.suggestedMin);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (tickOpts.max !== undefined) {\n\t\t\t\tme.max = tickOpts.max;\n\t\t\t} else if (tickOpts.suggestedMax !== undefined) {\n\t\t\t\tif (me.max === null) {\n\t\t\t\t\tme.max = tickOpts.suggestedMax;\n\t\t\t\t} else {\n\t\t\t\t\tme.max = Math.max(me.max, tickOpts.suggestedMax);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (setMin !== setMax) {\n\t\t\t\t// We set the min or the max but not both.\n\t\t\t\t// So ensure that our range is good\n\t\t\t\t// Inverted or 0 length range can happen when\n\t\t\t\t// ticks.min is set, and no datasets are visible\n\t\t\t\tif (me.min >= me.max) {\n\t\t\t\t\tif (setMin) {\n\t\t\t\t\t\tme.max = me.min + 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tme.min = me.max - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (me.min === me.max) {\n\t\t\t\tme.max++;\n\n\t\t\t\tif (!tickOpts.beginAtZero) {\n\t\t\t\t\tme.min--;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tgetTickLimit: noop,\n\t\thandleDirectionalChanges: noop,\n\n\t\tbuildTicks: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\n\t\t\t// Figure out what the max number of ticks we can support it is based on the size of\n\t\t\t// the axis area. For now, we say that the minimum tick spacing in pixels must be 50\n\t\t\t// We also limit the maximum number of ticks to 11 which gives a nice 10 squares on\n\t\t\t// the graph. Make sure we always have at least 2 ticks\n\t\t\tvar maxTicks = me.getTickLimit();\n\t\t\tmaxTicks = Math.max(2, maxTicks);\n\n\t\t\tvar numericGeneratorOptions = {\n\t\t\t\tmaxTicks: maxTicks,\n\t\t\t\tmin: tickOpts.min,\n\t\t\t\tmax: tickOpts.max,\n\t\t\t\tprecision: tickOpts.precision,\n\t\t\t\tstepSize: helpers.valueOrDefault(tickOpts.fixedStepSize, tickOpts.stepSize)\n\t\t\t};\n\t\t\tvar ticks = me.ticks = generateTicks(numericGeneratorOptions, me);\n\n\t\t\tme.handleDirectionalChanges();\n\n\t\t\t// At this point, we need to update our max and min given the tick values since we have expanded the\n\t\t\t// range of the scale\n\t\t\tme.max = helpers.max(ticks);\n\t\t\tme.min = helpers.min(ticks);\n\n\t\t\tif (tickOpts.reverse) {\n\t\t\t\tticks.reverse();\n\n\t\t\t\tme.start = me.max;\n\t\t\t\tme.end = me.min;\n\t\t\t} else {\n\t\t\t\tme.start = me.min;\n\t\t\t\tme.end = me.max;\n\t\t\t}\n\t\t},\n\t\tconvertTicksToLabels: function() {\n\t\t\tvar me = this;\n\t\t\tme.ticksAsNumbers = me.ticks.slice();\n\t\t\tme.zeroLineIndex = me.ticks.indexOf(0);\n\n\t\t\tScale.prototype.convertTicksToLabels.call(me);\n\t\t}\n\t});\n};\n\n},{\"33\":33,\"46\":46}],57:[function(require,module,exports){\n'use strict';\n\nvar helpers = require(46);\nvar Scale = require(33);\nvar scaleService = require(34);\nvar Ticks = require(35);\n\n/**\n * Generate a set of logarithmic ticks\n * @param generationOptions the options used to generate the ticks\n * @param dataRange the range of the data\n * @returns {Array<Number>} array of tick values\n */\nfunction generateTicks(generationOptions, dataRange) {\n\tvar ticks = [];\n\tvar valueOrDefault = helpers.valueOrDefault;\n\n\t// Figure out what the max number of ticks we can support it is based on the size of\n\t// the axis area. For now, we say that the minimum tick spacing in pixels must be 50\n\t// We also limit the maximum number of ticks to 11 which gives a nice 10 squares on\n\t// the graph\n\tvar tickVal = valueOrDefault(generationOptions.min, Math.pow(10, Math.floor(helpers.log10(dataRange.min))));\n\n\tvar endExp = Math.floor(helpers.log10(dataRange.max));\n\tvar endSignificand = Math.ceil(dataRange.max / Math.pow(10, endExp));\n\tvar exp, significand;\n\n\tif (tickVal === 0) {\n\t\texp = Math.floor(helpers.log10(dataRange.minNotZero));\n\t\tsignificand = Math.floor(dataRange.minNotZero / Math.pow(10, exp));\n\n\t\tticks.push(tickVal);\n\t\ttickVal = significand * Math.pow(10, exp);\n\t} else {\n\t\texp = Math.floor(helpers.log10(tickVal));\n\t\tsignificand = Math.floor(tickVal / Math.pow(10, exp));\n\t}\n\tvar precision = exp < 0 ? Math.pow(10, Math.abs(exp)) : 1;\n\n\tdo {\n\t\tticks.push(tickVal);\n\n\t\t++significand;\n\t\tif (significand === 10) {\n\t\t\tsignificand = 1;\n\t\t\t++exp;\n\t\t\tprecision = exp >= 0 ? 1 : precision;\n\t\t}\n\n\t\ttickVal = Math.round(significand * Math.pow(10, exp) * precision) / precision;\n\t} while (exp < endExp || (exp === endExp && significand < endSignificand));\n\n\tvar lastTick = valueOrDefault(generationOptions.max, tickVal);\n\tticks.push(lastTick);\n\n\treturn ticks;\n}\n\n\nmodule.exports = function(Chart) {\n\n\tvar defaultConfig = {\n\t\tposition: 'left',\n\n\t\t// label settings\n\t\tticks: {\n\t\t\tcallback: Ticks.formatters.logarithmic\n\t\t}\n\t};\n\n\tvar LogarithmicScale = Scale.extend({\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar chart = me.chart;\n\t\t\tvar data = chart.data;\n\t\t\tvar datasets = data.datasets;\n\t\t\tvar isHorizontal = me.isHorizontal();\n\t\t\tfunction IDMatches(meta) {\n\t\t\t\treturn isHorizontal ? meta.xAxisID === me.id : meta.yAxisID === me.id;\n\t\t\t}\n\n\t\t\t// Calculate Range\n\t\t\tme.min = null;\n\t\t\tme.max = null;\n\t\t\tme.minNotZero = null;\n\n\t\t\tvar hasStacks = opts.stacked;\n\t\t\tif (hasStacks === undefined) {\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tif (hasStacks) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta) &&\n\t\t\t\t\t\tmeta.stack !== undefined) {\n\t\t\t\t\t\thasStacks = true;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (opts.stacked || hasStacks) {\n\t\t\t\tvar valuesPerStack = {};\n\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tvar key = [\n\t\t\t\t\t\tmeta.type,\n\t\t\t\t\t\t// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\n\t\t\t\t\t\t((opts.stacked === undefined && meta.stack === undefined) ? datasetIndex : ''),\n\t\t\t\t\t\tmeta.stack\n\t\t\t\t\t].join('.');\n\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\n\t\t\t\t\t\tif (valuesPerStack[key] === undefined) {\n\t\t\t\t\t\t\tvaluesPerStack[key] = [];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\t\tvar values = valuesPerStack[key];\n\t\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\t\t// invalid, hidden and negative values are ignored\n\t\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden || value < 0) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalues[index] = values[index] || 0;\n\t\t\t\t\t\t\tvalues[index] += value;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\thelpers.each(valuesPerStack, function(valuesForType) {\n\t\t\t\t\tif (valuesForType.length > 0) {\n\t\t\t\t\t\tvar minVal = helpers.min(valuesForType);\n\t\t\t\t\t\tvar maxVal = helpers.max(valuesForType);\n\t\t\t\t\t\tme.min = me.min === null ? minVal : Math.min(me.min, minVal);\n\t\t\t\t\t\tme.max = me.max === null ? maxVal : Math.max(me.max, maxVal);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else {\n\t\t\t\thelpers.each(datasets, function(dataset, datasetIndex) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\t\t\t\t\tif (chart.isDatasetVisible(datasetIndex) && IDMatches(meta)) {\n\t\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\t\t// invalid, hidden and negative values are ignored\n\t\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden || value < 0) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (me.min === null) {\n\t\t\t\t\t\t\t\tme.min = value;\n\t\t\t\t\t\t\t} else if (value < me.min) {\n\t\t\t\t\t\t\t\tme.min = value;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (me.max === null) {\n\t\t\t\t\t\t\t\tme.max = value;\n\t\t\t\t\t\t\t} else if (value > me.max) {\n\t\t\t\t\t\t\t\tme.max = value;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (value !== 0 && (me.minNotZero === null || value < me.minNotZero)) {\n\t\t\t\t\t\t\t\tme.minNotZero = value;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// Common base implementation to handle ticks.min, ticks.max\n\t\t\tthis.handleTickRangeOptions();\n\t\t},\n\t\thandleTickRangeOptions: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\t\t\tvar valueOrDefault = helpers.valueOrDefault;\n\t\t\tvar DEFAULT_MIN = 1;\n\t\t\tvar DEFAULT_MAX = 10;\n\n\t\t\tme.min = valueOrDefault(tickOpts.min, me.min);\n\t\t\tme.max = valueOrDefault(tickOpts.max, me.max);\n\n\t\t\tif (me.min === me.max) {\n\t\t\t\tif (me.min !== 0 && me.min !== null) {\n\t\t\t\t\tme.min = Math.pow(10, Math.floor(helpers.log10(me.min)) - 1);\n\t\t\t\t\tme.max = Math.pow(10, Math.floor(helpers.log10(me.max)) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tme.min = DEFAULT_MIN;\n\t\t\t\t\tme.max = DEFAULT_MAX;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (me.min === null) {\n\t\t\t\tme.min = Math.pow(10, Math.floor(helpers.log10(me.max)) - 1);\n\t\t\t}\n\t\t\tif (me.max === null) {\n\t\t\t\tme.max = me.min !== 0\n\t\t\t\t\t? Math.pow(10, Math.floor(helpers.log10(me.min)) + 1)\n\t\t\t\t\t: DEFAULT_MAX;\n\t\t\t}\n\t\t\tif (me.minNotZero === null) {\n\t\t\t\tif (me.min > 0) {\n\t\t\t\t\tme.minNotZero = me.min;\n\t\t\t\t} else if (me.max < 1) {\n\t\t\t\t\tme.minNotZero = Math.pow(10, Math.floor(helpers.log10(me.max)));\n\t\t\t\t} else {\n\t\t\t\t\tme.minNotZero = DEFAULT_MIN;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tbuildTicks: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\t\t\tvar reverse = !me.isHorizontal();\n\n\t\t\tvar generationOptions = {\n\t\t\t\tmin: tickOpts.min,\n\t\t\t\tmax: tickOpts.max\n\t\t\t};\n\t\t\tvar ticks = me.ticks = generateTicks(generationOptions, me);\n\n\t\t\t// At this point, we need to update our max and min given the tick values since we have expanded the\n\t\t\t// range of the scale\n\t\t\tme.max = helpers.max(ticks);\n\t\t\tme.min = helpers.min(ticks);\n\n\t\t\tif (tickOpts.reverse) {\n\t\t\t\treverse = !reverse;\n\t\t\t\tme.start = me.max;\n\t\t\t\tme.end = me.min;\n\t\t\t} else {\n\t\t\t\tme.start = me.min;\n\t\t\t\tme.end = me.max;\n\t\t\t}\n\t\t\tif (reverse) {\n\t\t\t\tticks.reverse();\n\t\t\t}\n\t\t},\n\t\tconvertTicksToLabels: function() {\n\t\t\tthis.tickValues = this.ticks.slice();\n\n\t\t\tScale.prototype.convertTicksToLabels.call(this);\n\t\t},\n\t\t// Get the correct tooltip label\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\treturn +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);\n\t\t},\n\t\tgetPixelForTick: function(index) {\n\t\t\treturn this.getPixelForValue(this.tickValues[index]);\n\t\t},\n\t\t/**\n\t\t * Returns the value of the first tick.\n\t\t * @param {Number} value - The minimum not zero value.\n\t\t * @return {Number} The first tick value.\n\t\t * @private\n\t\t */\n\t\t_getFirstTickValue: function(value) {\n\t\t\tvar exp = Math.floor(helpers.log10(value));\n\t\t\tvar significand = Math.floor(value / Math.pow(10, exp));\n\n\t\t\treturn significand * Math.pow(10, exp);\n\t\t},\n\t\tgetPixelForValue: function(value) {\n\t\t\tvar me = this;\n\t\t\tvar reverse = me.options.ticks.reverse;\n\t\t\tvar log10 = helpers.log10;\n\t\t\tvar firstTickValue = me._getFirstTickValue(me.minNotZero);\n\t\t\tvar offset = 0;\n\t\t\tvar innerDimension, pixel, start, end, sign;\n\n\t\t\tvalue = +me.getRightValue(value);\n\t\t\tif (reverse) {\n\t\t\t\tstart = me.end;\n\t\t\t\tend = me.start;\n\t\t\t\tsign = -1;\n\t\t\t} else {\n\t\t\t\tstart = me.start;\n\t\t\t\tend = me.end;\n\t\t\t\tsign = 1;\n\t\t\t}\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tinnerDimension = me.width;\n\t\t\t\tpixel = reverse ? me.right : me.left;\n\t\t\t} else {\n\t\t\t\tinnerDimension = me.height;\n\t\t\t\tsign *= -1; // invert, since the upper-left corner of the canvas is at pixel (0, 0)\n\t\t\t\tpixel = reverse ? me.top : me.bottom;\n\t\t\t}\n\t\t\tif (value !== start) {\n\t\t\t\tif (start === 0) { // include zero tick\n\t\t\t\t\toffset = helpers.getValueOrDefault(\n\t\t\t\t\t\tme.options.ticks.fontSize,\n\t\t\t\t\t\tChart.defaults.global.defaultFontSize\n\t\t\t\t\t);\n\t\t\t\t\tinnerDimension -= offset;\n\t\t\t\t\tstart = firstTickValue;\n\t\t\t\t}\n\t\t\t\tif (value !== 0) {\n\t\t\t\t\toffset += innerDimension / (log10(end) - log10(start)) * (log10(value) - log10(start));\n\t\t\t\t}\n\t\t\t\tpixel += sign * offset;\n\t\t\t}\n\t\t\treturn pixel;\n\t\t},\n\t\tgetValueForPixel: function(pixel) {\n\t\t\tvar me = this;\n\t\t\tvar reverse = me.options.ticks.reverse;\n\t\t\tvar log10 = helpers.log10;\n\t\t\tvar firstTickValue = me._getFirstTickValue(me.minNotZero);\n\t\t\tvar innerDimension, start, end, value;\n\n\t\t\tif (reverse) {\n\t\t\t\tstart = me.end;\n\t\t\t\tend = me.start;\n\t\t\t} else {\n\t\t\t\tstart = me.start;\n\t\t\t\tend = me.end;\n\t\t\t}\n\t\t\tif (me.isHorizontal()) {\n\t\t\t\tinnerDimension = me.width;\n\t\t\t\tvalue = reverse ? me.right - pixel : pixel - me.left;\n\t\t\t} else {\n\t\t\t\tinnerDimension = me.height;\n\t\t\t\tvalue = reverse ? pixel - me.top : me.bottom - pixel;\n\t\t\t}\n\t\t\tif (value !== start) {\n\t\t\t\tif (start === 0) { // include zero tick\n\t\t\t\t\tvar offset = helpers.getValueOrDefault(\n\t\t\t\t\t\tme.options.ticks.fontSize,\n\t\t\t\t\t\tChart.defaults.global.defaultFontSize\n\t\t\t\t\t);\n\t\t\t\t\tvalue -= offset;\n\t\t\t\t\tinnerDimension -= offset;\n\t\t\t\t\tstart = firstTickValue;\n\t\t\t\t}\n\t\t\t\tvalue *= log10(end) - log10(start);\n\t\t\t\tvalue /= innerDimension;\n\t\t\t\tvalue = Math.pow(10, log10(start) + value);\n\t\t\t}\n\t\t\treturn value;\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('logarithmic', LogarithmicScale, defaultConfig);\n};\n\n},{\"33\":33,\"34\":34,\"35\":35,\"46\":46}],58:[function(require,module,exports){\n'use strict';\n\nvar defaults = require(26);\nvar helpers = require(46);\nvar scaleService = require(34);\nvar Ticks = require(35);\n\nmodule.exports = function(Chart) {\n\n\tvar globalDefaults = defaults.global;\n\n\tvar defaultConfig = {\n\t\tdisplay: true,\n\n\t\t// Boolean - Whether to animate scaling the chart from the centre\n\t\tanimate: true,\n\t\tposition: 'chartArea',\n\n\t\tangleLines: {\n\t\t\tdisplay: true,\n\t\t\tcolor: 'rgba(0, 0, 0, 0.1)',\n\t\t\tlineWidth: 1\n\t\t},\n\n\t\tgridLines: {\n\t\t\tcircular: false\n\t\t},\n\n\t\t// label settings\n\t\tticks: {\n\t\t\t// Boolean - Show a backdrop to the scale label\n\t\t\tshowLabelBackdrop: true,\n\n\t\t\t// String - The colour of the label backdrop\n\t\t\tbackdropColor: 'rgba(255,255,255,0.75)',\n\n\t\t\t// Number - The backdrop padding above & below the label in pixels\n\t\t\tbackdropPaddingY: 2,\n\n\t\t\t// Number - The backdrop padding to the side of the label in pixels\n\t\t\tbackdropPaddingX: 2,\n\n\t\t\tcallback: Ticks.formatters.linear\n\t\t},\n\n\t\tpointLabels: {\n\t\t\t// Boolean - if true, show point labels\n\t\t\tdisplay: true,\n\n\t\t\t// Number - Point label font size in pixels\n\t\t\tfontSize: 10,\n\n\t\t\t// Function - Used to convert point labels\n\t\t\tcallback: function(label) {\n\t\t\t\treturn label;\n\t\t\t}\n\t\t}\n\t};\n\n\tfunction getValueCount(scale) {\n\t\tvar opts = scale.options;\n\t\treturn opts.angleLines.display || opts.pointLabels.display ? scale.chart.data.labels.length : 0;\n\t}\n\n\tfunction getPointLabelFontOptions(scale) {\n\t\tvar pointLabelOptions = scale.options.pointLabels;\n\t\tvar fontSize = helpers.valueOrDefault(pointLabelOptions.fontSize, globalDefaults.defaultFontSize);\n\t\tvar fontStyle = helpers.valueOrDefault(pointLabelOptions.fontStyle, globalDefaults.defaultFontStyle);\n\t\tvar fontFamily = helpers.valueOrDefault(pointLabelOptions.fontFamily, globalDefaults.defaultFontFamily);\n\t\tvar font = helpers.fontString(fontSize, fontStyle, fontFamily);\n\n\t\treturn {\n\t\t\tsize: fontSize,\n\t\t\tstyle: fontStyle,\n\t\t\tfamily: fontFamily,\n\t\t\tfont: font\n\t\t};\n\t}\n\n\tfunction measureLabelSize(ctx, fontSize, label) {\n\t\tif (helpers.isArray(label)) {\n\t\t\treturn {\n\t\t\t\tw: helpers.longestText(ctx, ctx.font, label),\n\t\t\t\th: (label.length * fontSize) + ((label.length - 1) * 1.5 * fontSize)\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tw: ctx.measureText(label).width,\n\t\t\th: fontSize\n\t\t};\n\t}\n\n\tfunction determineLimits(angle, pos, size, min, max) {\n\t\tif (angle === min || angle === max) {\n\t\t\treturn {\n\t\t\t\tstart: pos - (size / 2),\n\t\t\t\tend: pos + (size / 2)\n\t\t\t};\n\t\t} else if (angle < min || angle > max) {\n\t\t\treturn {\n\t\t\t\tstart: pos - size - 5,\n\t\t\t\tend: pos\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tstart: pos,\n\t\t\tend: pos + size + 5\n\t\t};\n\t}\n\n\t/**\n\t * Helper function to fit a radial linear scale with point labels\n\t */\n\tfunction fitWithPointLabels(scale) {\n\t\t/*\n\t\t * Right, this is really confusing and there is a lot of maths going on here\n\t\t * The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9\n\t\t *\n\t\t * Reaction: https://dl.dropboxusercontent.com/u/34601363/toomuchscience.gif\n\t\t *\n\t\t * Solution:\n\t\t *\n\t\t * We assume the radius of the polygon is half the size of the canvas at first\n\t\t * at each index we check if the text overlaps.\n\t\t *\n\t\t * Where it does, we store that angle and that index.\n\t\t *\n\t\t * After finding the largest index and angle we calculate how much we need to remove\n\t\t * from the shape radius to move the point inwards by that x.\n\t\t *\n\t\t * We average the left and right distances to get the maximum shape radius that can fit in the box\n\t\t * along with labels.\n\t\t *\n\t\t * Once we have that, we can find the centre point for the chart, by taking the x text protrusion\n\t\t * on each side, removing that from the size, halving it and adding the left x protrusion width.\n\t\t *\n\t\t * This will mean we have a shape fitted to the canvas, as large as it can be with the labels\n\t\t * and position it in the most space efficient manner\n\t\t *\n\t\t * https://dl.dropboxusercontent.com/u/34601363/yeahscience.gif\n\t\t */\n\n\t\tvar plFont = getPointLabelFontOptions(scale);\n\n\t\t// Get maximum radius of the polygon. Either half the height (minus the text width) or half the width.\n\t\t// Use this to calculate the offset + change. - Make sure L/R protrusion is at least 0 to stop issues with centre points\n\t\tvar largestPossibleRadius = Math.min(scale.height / 2, scale.width / 2);\n\t\tvar furthestLimits = {\n\t\t\tr: scale.width,\n\t\t\tl: 0,\n\t\t\tt: scale.height,\n\t\t\tb: 0\n\t\t};\n\t\tvar furthestAngles = {};\n\t\tvar i, textSize, pointPosition;\n\n\t\tscale.ctx.font = plFont.font;\n\t\tscale._pointLabelSizes = [];\n\n\t\tvar valueCount = getValueCount(scale);\n\t\tfor (i = 0; i < valueCount; i++) {\n\t\t\tpointPosition = scale.getPointPosition(i, largestPossibleRadius);\n\t\t\ttextSize = measureLabelSize(scale.ctx, plFont.size, scale.pointLabels[i] || '');\n\t\t\tscale._pointLabelSizes[i] = textSize;\n\n\t\t\t// Add quarter circle to make degree 0 mean top of circle\n\t\t\tvar angleRadians = scale.getIndexAngle(i);\n\t\t\tvar angle = helpers.toDegrees(angleRadians) % 360;\n\t\t\tvar hLimits = determineLimits(angle, pointPosition.x, textSize.w, 0, 180);\n\t\t\tvar vLimits = determineLimits(angle, pointPosition.y, textSize.h, 90, 270);\n\n\t\t\tif (hLimits.start < furthestLimits.l) {\n\t\t\t\tfurthestLimits.l = hLimits.start;\n\t\t\t\tfurthestAngles.l = angleRadians;\n\t\t\t}\n\n\t\t\tif (hLimits.end > furthestLimits.r) {\n\t\t\t\tfurthestLimits.r = hLimits.end;\n\t\t\t\tfurthestAngles.r = angleRadians;\n\t\t\t}\n\n\t\t\tif (vLimits.start < furthestLimits.t) {\n\t\t\t\tfurthestLimits.t = vLimits.start;\n\t\t\t\tfurthestAngles.t = angleRadians;\n\t\t\t}\n\n\t\t\tif (vLimits.end > furthestLimits.b) {\n\t\t\t\tfurthestLimits.b = vLimits.end;\n\t\t\t\tfurthestAngles.b = angleRadians;\n\t\t\t}\n\t\t}\n\n\t\tscale.setReductions(largestPossibleRadius, furthestLimits, furthestAngles);\n\t}\n\n\t/**\n\t * Helper function to fit a radial linear scale with no point labels\n\t */\n\tfunction fit(scale) {\n\t\tvar largestPossibleRadius = Math.min(scale.height / 2, scale.width / 2);\n\t\tscale.drawingArea = Math.round(largestPossibleRadius);\n\t\tscale.setCenterPoint(0, 0, 0, 0);\n\t}\n\n\tfunction getTextAlignForAngle(angle) {\n\t\tif (angle === 0 || angle === 180) {\n\t\t\treturn 'center';\n\t\t} else if (angle < 180) {\n\t\t\treturn 'left';\n\t\t}\n\n\t\treturn 'right';\n\t}\n\n\tfunction fillText(ctx, text, position, fontSize) {\n\t\tif (helpers.isArray(text)) {\n\t\t\tvar y = position.y;\n\t\t\tvar spacing = 1.5 * fontSize;\n\n\t\t\tfor (var i = 0; i < text.length; ++i) {\n\t\t\t\tctx.fillText(text[i], position.x, y);\n\t\t\t\ty += spacing;\n\t\t\t}\n\t\t} else {\n\t\t\tctx.fillText(text, position.x, position.y);\n\t\t}\n\t}\n\n\tfunction adjustPointPositionForLabelHeight(angle, textSize, position) {\n\t\tif (angle === 90 || angle === 270) {\n\t\t\tposition.y -= (textSize.h / 2);\n\t\t} else if (angle > 270 || angle < 90) {\n\t\t\tposition.y -= textSize.h;\n\t\t}\n\t}\n\n\tfunction drawPointLabels(scale) {\n\t\tvar ctx = scale.ctx;\n\t\tvar opts = scale.options;\n\t\tvar angleLineOpts = opts.angleLines;\n\t\tvar pointLabelOpts = opts.pointLabels;\n\n\t\tctx.lineWidth = angleLineOpts.lineWidth;\n\t\tctx.strokeStyle = angleLineOpts.color;\n\n\t\tvar outerDistance = scale.getDistanceFromCenterForValue(opts.ticks.reverse ? scale.min : scale.max);\n\n\t\t// Point Label Font\n\t\tvar plFont = getPointLabelFontOptions(scale);\n\n\t\tctx.textBaseline = 'top';\n\n\t\tfor (var i = getValueCount(scale) - 1; i >= 0; i--) {\n\t\t\tif (angleLineOpts.display) {\n\t\t\t\tvar outerPosition = scale.getPointPosition(i, outerDistance);\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(scale.xCenter, scale.yCenter);\n\t\t\t\tctx.lineTo(outerPosition.x, outerPosition.y);\n\t\t\t\tctx.stroke();\n\t\t\t\tctx.closePath();\n\t\t\t}\n\n\t\t\tif (pointLabelOpts.display) {\n\t\t\t\t// Extra 3px out for some label spacing\n\t\t\t\tvar pointLabelPosition = scale.getPointPosition(i, outerDistance + 5);\n\n\t\t\t\t// Keep this in loop since we may support array properties here\n\t\t\t\tvar pointLabelFontColor = helpers.valueAtIndexOrDefault(pointLabelOpts.fontColor, i, globalDefaults.defaultFontColor);\n\t\t\t\tctx.font = plFont.font;\n\t\t\t\tctx.fillStyle = pointLabelFontColor;\n\n\t\t\t\tvar angleRadians = scale.getIndexAngle(i);\n\t\t\t\tvar angle = helpers.toDegrees(angleRadians);\n\t\t\t\tctx.textAlign = getTextAlignForAngle(angle);\n\t\t\t\tadjustPointPositionForLabelHeight(angle, scale._pointLabelSizes[i], pointLabelPosition);\n\t\t\t\tfillText(ctx, scale.pointLabels[i] || '', pointLabelPosition, plFont.size);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction drawRadiusLine(scale, gridLineOpts, radius, index) {\n\t\tvar ctx = scale.ctx;\n\t\tctx.strokeStyle = helpers.valueAtIndexOrDefault(gridLineOpts.color, index - 1);\n\t\tctx.lineWidth = helpers.valueAtIndexOrDefault(gridLineOpts.lineWidth, index - 1);\n\n\t\tif (scale.options.gridLines.circular) {\n\t\t\t// Draw circular arcs between the points\n\t\t\tctx.beginPath();\n\t\t\tctx.arc(scale.xCenter, scale.yCenter, radius, 0, Math.PI * 2);\n\t\t\tctx.closePath();\n\t\t\tctx.stroke();\n\t\t} else {\n\t\t\t// Draw straight lines connecting each index\n\t\t\tvar valueCount = getValueCount(scale);\n\n\t\t\tif (valueCount === 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tctx.beginPath();\n\t\t\tvar pointPosition = scale.getPointPosition(0, radius);\n\t\t\tctx.moveTo(pointPosition.x, pointPosition.y);\n\n\t\t\tfor (var i = 1; i < valueCount; i++) {\n\t\t\t\tpointPosition = scale.getPointPosition(i, radius);\n\t\t\t\tctx.lineTo(pointPosition.x, pointPosition.y);\n\t\t\t}\n\n\t\t\tctx.closePath();\n\t\t\tctx.stroke();\n\t\t}\n\t}\n\n\tfunction numberOrZero(param) {\n\t\treturn helpers.isNumber(param) ? param : 0;\n\t}\n\n\tvar LinearRadialScale = Chart.LinearScaleBase.extend({\n\t\tsetDimensions: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar tickOpts = opts.ticks;\n\t\t\t// Set the unconstrained dimension before label rotation\n\t\t\tme.width = me.maxWidth;\n\t\t\tme.height = me.maxHeight;\n\t\t\tme.xCenter = Math.round(me.width / 2);\n\t\t\tme.yCenter = Math.round(me.height / 2);\n\n\t\t\tvar minSize = helpers.min([me.height, me.width]);\n\t\t\tvar tickFontSize = helpers.valueOrDefault(tickOpts.fontSize, globalDefaults.defaultFontSize);\n\t\t\tme.drawingArea = opts.display ? (minSize / 2) - (tickFontSize / 2 + tickOpts.backdropPaddingY) : (minSize / 2);\n\t\t},\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar min = Number.POSITIVE_INFINITY;\n\t\t\tvar max = Number.NEGATIVE_INFINITY;\n\n\t\t\thelpers.each(chart.data.datasets, function(dataset, datasetIndex) {\n\t\t\t\tif (chart.isDatasetVisible(datasetIndex)) {\n\t\t\t\t\tvar meta = chart.getDatasetMeta(datasetIndex);\n\n\t\t\t\t\thelpers.each(dataset.data, function(rawValue, index) {\n\t\t\t\t\t\tvar value = +me.getRightValue(rawValue);\n\t\t\t\t\t\tif (isNaN(value) || meta.data[index].hidden) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tmin = Math.min(value, min);\n\t\t\t\t\t\tmax = Math.max(value, max);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tme.min = (min === Number.POSITIVE_INFINITY ? 0 : min);\n\t\t\tme.max = (max === Number.NEGATIVE_INFINITY ? 0 : max);\n\n\t\t\t// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\n\t\t\tme.handleTickRangeOptions();\n\t\t},\n\t\tgetTickLimit: function() {\n\t\t\tvar tickOpts = this.options.ticks;\n\t\t\tvar tickFontSize = helpers.valueOrDefault(tickOpts.fontSize, globalDefaults.defaultFontSize);\n\t\t\treturn Math.min(tickOpts.maxTicksLimit ? tickOpts.maxTicksLimit : 11, Math.ceil(this.drawingArea / (1.5 * tickFontSize)));\n\t\t},\n\t\tconvertTicksToLabels: function() {\n\t\t\tvar me = this;\n\n\t\t\tChart.LinearScaleBase.prototype.convertTicksToLabels.call(me);\n\n\t\t\t// Point labels\n\t\t\tme.pointLabels = me.chart.data.labels.map(me.options.pointLabels.callback, me);\n\t\t},\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\treturn +this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);\n\t\t},\n\t\tfit: function() {\n\t\t\tif (this.options.pointLabels.display) {\n\t\t\t\tfitWithPointLabels(this);\n\t\t\t} else {\n\t\t\t\tfit(this);\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Set radius reductions and determine new radius and center point\n\t\t * @private\n\t\t */\n\t\tsetReductions: function(largestPossibleRadius, furthestLimits, furthestAngles) {\n\t\t\tvar me = this;\n\t\t\tvar radiusReductionLeft = furthestLimits.l / Math.sin(furthestAngles.l);\n\t\t\tvar radiusReductionRight = Math.max(furthestLimits.r - me.width, 0) / Math.sin(furthestAngles.r);\n\t\t\tvar radiusReductionTop = -furthestLimits.t / Math.cos(furthestAngles.t);\n\t\t\tvar radiusReductionBottom = -Math.max(furthestLimits.b - me.height, 0) / Math.cos(furthestAngles.b);\n\n\t\t\tradiusReductionLeft = numberOrZero(radiusReductionLeft);\n\t\t\tradiusReductionRight = numberOrZero(radiusReductionRight);\n\t\t\tradiusReductionTop = numberOrZero(radiusReductionTop);\n\t\t\tradiusReductionBottom = numberOrZero(radiusReductionBottom);\n\n\t\t\tme.drawingArea = Math.min(\n\t\t\t\tMath.round(largestPossibleRadius - (radiusReductionLeft + radiusReductionRight) / 2),\n\t\t\t\tMath.round(largestPossibleRadius - (radiusReductionTop + radiusReductionBottom) / 2));\n\t\t\tme.setCenterPoint(radiusReductionLeft, radiusReductionRight, radiusReductionTop, radiusReductionBottom);\n\t\t},\n\t\tsetCenterPoint: function(leftMovement, rightMovement, topMovement, bottomMovement) {\n\t\t\tvar me = this;\n\t\t\tvar maxRight = me.width - rightMovement - me.drawingArea;\n\t\t\tvar maxLeft = leftMovement + me.drawingArea;\n\t\t\tvar maxTop = topMovement + me.drawingArea;\n\t\t\tvar maxBottom = me.height - bottomMovement - me.drawingArea;\n\n\t\t\tme.xCenter = Math.round(((maxLeft + maxRight) / 2) + me.left);\n\t\t\tme.yCenter = Math.round(((maxTop + maxBottom) / 2) + me.top);\n\t\t},\n\n\t\tgetIndexAngle: function(index) {\n\t\t\tvar angleMultiplier = (Math.PI * 2) / getValueCount(this);\n\t\t\tvar startAngle = this.chart.options && this.chart.options.startAngle ?\n\t\t\t\tthis.chart.options.startAngle :\n\t\t\t\t0;\n\n\t\t\tvar startAngleRadians = startAngle * Math.PI * 2 / 360;\n\n\t\t\t// Start from the top instead of right, so remove a quarter of the circle\n\t\t\treturn index * angleMultiplier + startAngleRadians;\n\t\t},\n\t\tgetDistanceFromCenterForValue: function(value) {\n\t\t\tvar me = this;\n\n\t\t\tif (value === null) {\n\t\t\t\treturn 0; // null always in center\n\t\t\t}\n\n\t\t\t// Take into account half font size + the yPadding of the top value\n\t\t\tvar scalingFactor = me.drawingArea / (me.max - me.min);\n\t\t\tif (me.options.ticks.reverse) {\n\t\t\t\treturn (me.max - value) * scalingFactor;\n\t\t\t}\n\t\t\treturn (value - me.min) * scalingFactor;\n\t\t},\n\t\tgetPointPosition: function(index, distanceFromCenter) {\n\t\t\tvar me = this;\n\t\t\tvar thisAngle = me.getIndexAngle(index) - (Math.PI / 2);\n\t\t\treturn {\n\t\t\t\tx: Math.round(Math.cos(thisAngle) * distanceFromCenter) + me.xCenter,\n\t\t\t\ty: Math.round(Math.sin(thisAngle) * distanceFromCenter) + me.yCenter\n\t\t\t};\n\t\t},\n\t\tgetPointPositionForValue: function(index, value) {\n\t\t\treturn this.getPointPosition(index, this.getDistanceFromCenterForValue(value));\n\t\t},\n\n\t\tgetBasePosition: function() {\n\t\t\tvar me = this;\n\t\t\tvar min = me.min;\n\t\t\tvar max = me.max;\n\n\t\t\treturn me.getPointPositionForValue(0,\n\t\t\t\tme.beginAtZero ? 0 :\n\t\t\t\tmin < 0 && max < 0 ? max :\n\t\t\t\tmin > 0 && max > 0 ? min :\n\t\t\t\t0);\n\t\t},\n\n\t\tdraw: function() {\n\t\t\tvar me = this;\n\t\t\tvar opts = me.options;\n\t\t\tvar gridLineOpts = opts.gridLines;\n\t\t\tvar tickOpts = opts.ticks;\n\t\t\tvar valueOrDefault = helpers.valueOrDefault;\n\n\t\t\tif (opts.display) {\n\t\t\t\tvar ctx = me.ctx;\n\t\t\t\tvar startAngle = this.getIndexAngle(0);\n\n\t\t\t\t// Tick Font\n\t\t\t\tvar tickFontSize = valueOrDefault(tickOpts.fontSize, globalDefaults.defaultFontSize);\n\t\t\t\tvar tickFontStyle = valueOrDefault(tickOpts.fontStyle, globalDefaults.defaultFontStyle);\n\t\t\t\tvar tickFontFamily = valueOrDefault(tickOpts.fontFamily, globalDefaults.defaultFontFamily);\n\t\t\t\tvar tickLabelFont = helpers.fontString(tickFontSize, tickFontStyle, tickFontFamily);\n\n\t\t\t\thelpers.each(me.ticks, function(label, index) {\n\t\t\t\t\t// Don't draw a centre value (if it is minimum)\n\t\t\t\t\tif (index > 0 || tickOpts.reverse) {\n\t\t\t\t\t\tvar yCenterOffset = me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);\n\n\t\t\t\t\t\t// Draw circular lines around the scale\n\t\t\t\t\t\tif (gridLineOpts.display && index !== 0) {\n\t\t\t\t\t\t\tdrawRadiusLine(me, gridLineOpts, yCenterOffset, index);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (tickOpts.display) {\n\t\t\t\t\t\t\tvar tickFontColor = valueOrDefault(tickOpts.fontColor, globalDefaults.defaultFontColor);\n\t\t\t\t\t\t\tctx.font = tickLabelFont;\n\n\t\t\t\t\t\t\tctx.save();\n\t\t\t\t\t\t\tctx.translate(me.xCenter, me.yCenter);\n\t\t\t\t\t\t\tctx.rotate(startAngle);\n\n\t\t\t\t\t\t\tif (tickOpts.showLabelBackdrop) {\n\t\t\t\t\t\t\t\tvar labelWidth = ctx.measureText(label).width;\n\t\t\t\t\t\t\t\tctx.fillStyle = tickOpts.backdropColor;\n\t\t\t\t\t\t\t\tctx.fillRect(\n\t\t\t\t\t\t\t\t\t-labelWidth / 2 - tickOpts.backdropPaddingX,\n\t\t\t\t\t\t\t\t\t-yCenterOffset - tickFontSize / 2 - tickOpts.backdropPaddingY,\n\t\t\t\t\t\t\t\t\tlabelWidth + tickOpts.backdropPaddingX * 2,\n\t\t\t\t\t\t\t\t\ttickFontSize + tickOpts.backdropPaddingY * 2\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tctx.textAlign = 'center';\n\t\t\t\t\t\t\tctx.textBaseline = 'middle';\n\t\t\t\t\t\t\tctx.fillStyle = tickFontColor;\n\t\t\t\t\t\t\tctx.fillText(label, 0, -yCenterOffset);\n\t\t\t\t\t\t\tctx.restore();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tif (opts.angleLines.display || opts.pointLabels.display) {\n\t\t\t\t\tdrawPointLabels(me);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('radialLinear', LinearRadialScale, defaultConfig);\n};\n\n},{\"26\":26,\"34\":34,\"35\":35,\"46\":46}],59:[function(require,module,exports){\n/* global window: false */\n'use strict';\n\nvar moment = require(1);\nmoment = typeof moment === 'function' ? moment : window.moment;\n\nvar defaults = require(26);\nvar helpers = require(46);\nvar Scale = require(33);\nvar scaleService = require(34);\n\n// Integer constants are from the ES6 spec.\nvar MIN_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;\nvar MAX_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;\n\nvar INTERVALS = {\n\tmillisecond: {\n\t\tcommon: true,\n\t\tsize: 1,\n\t\tsteps: [1, 2, 5, 10, 20, 50, 100, 250, 500]\n\t},\n\tsecond: {\n\t\tcommon: true,\n\t\tsize: 1000,\n\t\tsteps: [1, 2, 5, 10, 15, 30]\n\t},\n\tminute: {\n\t\tcommon: true,\n\t\tsize: 60000,\n\t\tsteps: [1, 2, 5, 10, 15, 30]\n\t},\n\thour: {\n\t\tcommon: true,\n\t\tsize: 3600000,\n\t\tsteps: [1, 2, 3, 6, 12]\n\t},\n\tday: {\n\t\tcommon: true,\n\t\tsize: 86400000,\n\t\tsteps: [1, 2, 5]\n\t},\n\tweek: {\n\t\tcommon: false,\n\t\tsize: 604800000,\n\t\tsteps: [1, 2, 3, 4]\n\t},\n\tmonth: {\n\t\tcommon: true,\n\t\tsize: 2.628e9,\n\t\tsteps: [1, 2, 3]\n\t},\n\tquarter: {\n\t\tcommon: false,\n\t\tsize: 7.884e9,\n\t\tsteps: [1, 2, 3, 4]\n\t},\n\tyear: {\n\t\tcommon: true,\n\t\tsize: 3.154e10\n\t}\n};\n\nvar UNITS = Object.keys(INTERVALS);\n\nfunction sorter(a, b) {\n\treturn a - b;\n}\n\nfunction arrayUnique(items) {\n\tvar hash = {};\n\tvar out = [];\n\tvar i, ilen, item;\n\n\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\n\t\titem = items[i];\n\t\tif (!hash[item]) {\n\t\t\thash[item] = true;\n\t\t\tout.push(item);\n\t\t}\n\t}\n\n\treturn out;\n}\n\n/**\n * Returns an array of {time, pos} objects used to interpolate a specific `time` or position\n * (`pos`) on the scale, by searching entries before and after the requested value. `pos` is\n * a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other\n * extremity (left + width or top + height). Note that it would be more optimized to directly\n * store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need\n * to create the lookup table. The table ALWAYS contains at least two items: min and max.\n *\n * @param {Number[]} timestamps - timestamps sorted from lowest to highest.\n * @param {String} distribution - If 'linear', timestamps will be spread linearly along the min\n * and max range, so basically, the table will contains only two items: {min, 0} and {max, 1}.\n * If 'series', timestamps will be positioned at the same distance from each other. In this\n * case, only timestamps that break the time linearity are registered, meaning that in the\n * best case, all timestamps are linear, the table contains only min and max.\n */\nfunction buildLookupTable(timestamps, min, max, distribution) {\n\tif (distribution === 'linear' || !timestamps.length) {\n\t\treturn [\n\t\t\t{time: min, pos: 0},\n\t\t\t{time: max, pos: 1}\n\t\t];\n\t}\n\n\tvar table = [];\n\tvar items = [min];\n\tvar i, ilen, prev, curr, next;\n\n\tfor (i = 0, ilen = timestamps.length; i < ilen; ++i) {\n\t\tcurr = timestamps[i];\n\t\tif (curr > min && curr < max) {\n\t\t\titems.push(curr);\n\t\t}\n\t}\n\n\titems.push(max);\n\n\tfor (i = 0, ilen = items.length; i < ilen; ++i) {\n\t\tnext = items[i + 1];\n\t\tprev = items[i - 1];\n\t\tcurr = items[i];\n\n\t\t// only add points that breaks the scale linearity\n\t\tif (prev === undefined || next === undefined || Math.round((next + prev) / 2) !== curr) {\n\t\t\ttable.push({time: curr, pos: i / (ilen - 1)});\n\t\t}\n\t}\n\n\treturn table;\n}\n\n// @see adapted from http://www.anujgakhar.com/2014/03/01/binary-search-in-javascript/\nfunction lookup(table, key, value) {\n\tvar lo = 0;\n\tvar hi = table.length - 1;\n\tvar mid, i0, i1;\n\n\twhile (lo >= 0 && lo <= hi) {\n\t\tmid = (lo + hi) >> 1;\n\t\ti0 = table[mid - 1] || null;\n\t\ti1 = table[mid];\n\n\t\tif (!i0) {\n\t\t\t// given value is outside table (before first item)\n\t\t\treturn {lo: null, hi: i1};\n\t\t} else if (i1[key] < value) {\n\t\t\tlo = mid + 1;\n\t\t} else if (i0[key] > value) {\n\t\t\thi = mid - 1;\n\t\t} else {\n\t\t\treturn {lo: i0, hi: i1};\n\t\t}\n\t}\n\n\t// given value is outside table (after last item)\n\treturn {lo: i1, hi: null};\n}\n\n/**\n * Linearly interpolates the given source `value` using the table items `skey` values and\n * returns the associated `tkey` value. For example, interpolate(table, 'time', 42, 'pos')\n * returns the position for a timestamp equal to 42. If value is out of bounds, values at\n * index [0, 1] or [n - 1, n] are used for the interpolation.\n */\nfunction interpolate(table, skey, sval, tkey) {\n\tvar range = lookup(table, skey, sval);\n\n\t// Note: the lookup table ALWAYS contains at least 2 items (min and max)\n\tvar prev = !range.lo ? table[0] : !range.hi ? table[table.length - 2] : range.lo;\n\tvar next = !range.lo ? table[1] : !range.hi ? table[table.length - 1] : range.hi;\n\n\tvar span = next[skey] - prev[skey];\n\tvar ratio = span ? (sval - prev[skey]) / span : 0;\n\tvar offset = (next[tkey] - prev[tkey]) * ratio;\n\n\treturn prev[tkey] + offset;\n}\n\n/**\n * Convert the given value to a moment object using the given time options.\n * @see http://momentjs.com/docs/#/parsing/\n */\nfunction momentify(value, options) {\n\tvar parser = options.parser;\n\tvar format = options.parser || options.format;\n\n\tif (typeof parser === 'function') {\n\t\treturn parser(value);\n\t}\n\n\tif (typeof value === 'string' && typeof format === 'string') {\n\t\treturn moment(value, format);\n\t}\n\n\tif (!(value instanceof moment)) {\n\t\tvalue = moment(value);\n\t}\n\n\tif (value.isValid()) {\n\t\treturn value;\n\t}\n\n\t// Labels are in an incompatible moment format and no `parser` has been provided.\n\t// The user might still use the deprecated `format` option to convert his inputs.\n\tif (typeof format === 'function') {\n\t\treturn format(value);\n\t}\n\n\treturn value;\n}\n\nfunction parse(input, scale) {\n\tif (helpers.isNullOrUndef(input)) {\n\t\treturn null;\n\t}\n\n\tvar options = scale.options.time;\n\tvar value = momentify(scale.getRightValue(input), options);\n\tif (!value.isValid()) {\n\t\treturn null;\n\t}\n\n\tif (options.round) {\n\t\tvalue.startOf(options.round);\n\t}\n\n\treturn value.valueOf();\n}\n\n/**\n * Returns the number of unit to skip to be able to display up to `capacity` number of ticks\n * in `unit` for the given `min` / `max` range and respecting the interval steps constraints.\n */\nfunction determineStepSize(min, max, unit, capacity) {\n\tvar range = max - min;\n\tvar interval = INTERVALS[unit];\n\tvar milliseconds = interval.size;\n\tvar steps = interval.steps;\n\tvar i, ilen, factor;\n\n\tif (!steps) {\n\t\treturn Math.ceil(range / (capacity * milliseconds));\n\t}\n\n\tfor (i = 0, ilen = steps.length; i < ilen; ++i) {\n\t\tfactor = steps[i];\n\t\tif (Math.ceil(range / (milliseconds * factor)) <= capacity) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn factor;\n}\n\n/**\n * Figures out what unit results in an appropriate number of auto-generated ticks\n */\nfunction determineUnitForAutoTicks(minUnit, min, max, capacity) {\n\tvar ilen = UNITS.length;\n\tvar i, interval, factor;\n\n\tfor (i = UNITS.indexOf(minUnit); i < ilen - 1; ++i) {\n\t\tinterval = INTERVALS[UNITS[i]];\n\t\tfactor = interval.steps ? interval.steps[interval.steps.length - 1] : MAX_INTEGER;\n\n\t\tif (interval.common && Math.ceil((max - min) / (factor * interval.size)) <= capacity) {\n\t\t\treturn UNITS[i];\n\t\t}\n\t}\n\n\treturn UNITS[ilen - 1];\n}\n\n/**\n * Figures out what unit to format a set of ticks with\n */\nfunction determineUnitForFormatting(ticks, minUnit, min, max) {\n\tvar duration = moment.duration(moment(max).diff(moment(min)));\n\tvar ilen = UNITS.length;\n\tvar i, unit;\n\n\tfor (i = ilen - 1; i >= UNITS.indexOf(minUnit); i--) {\n\t\tunit = UNITS[i];\n\t\tif (INTERVALS[unit].common && duration.as(unit) >= ticks.length) {\n\t\t\treturn unit;\n\t\t}\n\t}\n\n\treturn UNITS[minUnit ? UNITS.indexOf(minUnit) : 0];\n}\n\nfunction determineMajorUnit(unit) {\n\tfor (var i = UNITS.indexOf(unit) + 1, ilen = UNITS.length; i < ilen; ++i) {\n\t\tif (INTERVALS[UNITS[i]].common) {\n\t\t\treturn UNITS[i];\n\t\t}\n\t}\n}\n\n/**\n * Generates a maximum of `capacity` timestamps between min and max, rounded to the\n * `minor` unit, aligned on the `major` unit and using the given scale time `options`.\n * Important: this method can return ticks outside the min and max range, it's the\n * responsibility of the calling code to clamp values if needed.\n */\nfunction generate(min, max, capacity, options) {\n\tvar timeOpts = options.time;\n\tvar minor = timeOpts.unit || determineUnitForAutoTicks(timeOpts.minUnit, min, max, capacity);\n\tvar major = determineMajorUnit(minor);\n\tvar stepSize = helpers.valueOrDefault(timeOpts.stepSize, timeOpts.unitStepSize);\n\tvar weekday = minor === 'week' ? timeOpts.isoWeekday : false;\n\tvar majorTicksEnabled = options.ticks.major.enabled;\n\tvar interval = INTERVALS[minor];\n\tvar first = moment(min);\n\tvar last = moment(max);\n\tvar ticks = [];\n\tvar time;\n\n\tif (!stepSize) {\n\t\tstepSize = determineStepSize(min, max, minor, capacity);\n\t}\n\n\t// For 'week' unit, handle the first day of week option\n\tif (weekday) {\n\t\tfirst = first.isoWeekday(weekday);\n\t\tlast = last.isoWeekday(weekday);\n\t}\n\n\t// Align first/last ticks on unit\n\tfirst = first.startOf(weekday ? 'day' : minor);\n\tlast = last.startOf(weekday ? 'day' : minor);\n\n\t// Make sure that the last tick include max\n\tif (last < max) {\n\t\tlast.add(1, minor);\n\t}\n\n\ttime = moment(first);\n\n\tif (majorTicksEnabled && major && !weekday && !timeOpts.round) {\n\t\t// Align the first tick on the previous `minor` unit aligned on the `major` unit:\n\t\t// we first aligned time on the previous `major` unit then add the number of full\n\t\t// stepSize there is between first and the previous major time.\n\t\ttime.startOf(major);\n\t\ttime.add(~~((first - time) / (interval.size * stepSize)) * stepSize, minor);\n\t}\n\n\tfor (; time < last; time.add(stepSize, minor)) {\n\t\tticks.push(+time);\n\t}\n\n\tticks.push(+time);\n\n\treturn ticks;\n}\n\n/**\n * Returns the right and left offsets from edges in the form of {left, right}.\n * Offsets are added when the `offset` option is true.\n */\nfunction computeOffsets(table, ticks, min, max, options) {\n\tvar left = 0;\n\tvar right = 0;\n\tvar upper, lower;\n\n\tif (options.offset && ticks.length) {\n\t\tif (!options.time.min) {\n\t\t\tupper = ticks.length > 1 ? ticks[1] : max;\n\t\t\tlower = ticks[0];\n\t\t\tleft = (\n\t\t\t\tinterpolate(table, 'time', upper, 'pos') -\n\t\t\t\tinterpolate(table, 'time', lower, 'pos')\n\t\t\t) / 2;\n\t\t}\n\t\tif (!options.time.max) {\n\t\t\tupper = ticks[ticks.length - 1];\n\t\t\tlower = ticks.length > 1 ? ticks[ticks.length - 2] : min;\n\t\t\tright = (\n\t\t\t\tinterpolate(table, 'time', upper, 'pos') -\n\t\t\t\tinterpolate(table, 'time', lower, 'pos')\n\t\t\t) / 2;\n\t\t}\n\t}\n\n\treturn {left: left, right: right};\n}\n\nfunction ticksFromTimestamps(values, majorUnit) {\n\tvar ticks = [];\n\tvar i, ilen, value, major;\n\n\tfor (i = 0, ilen = values.length; i < ilen; ++i) {\n\t\tvalue = values[i];\n\t\tmajor = majorUnit ? value === +moment(value).startOf(majorUnit) : false;\n\n\t\tticks.push({\n\t\t\tvalue: value,\n\t\t\tmajor: major\n\t\t});\n\t}\n\n\treturn ticks;\n}\n\nfunction determineLabelFormat(data, timeOpts) {\n\tvar i, momentDate, hasTime;\n\tvar ilen = data.length;\n\n\t// find the label with the most parts (milliseconds, minutes, etc.)\n\t// format all labels with the same level of detail as the most specific label\n\tfor (i = 0; i < ilen; i++) {\n\t\tmomentDate = momentify(data[i], timeOpts);\n\t\tif (momentDate.millisecond() !== 0) {\n\t\t\treturn 'MMM D, YYYY h:mm:ss.SSS a';\n\t\t}\n\t\tif (momentDate.second() !== 0 || momentDate.minute() !== 0 || momentDate.hour() !== 0) {\n\t\t\thasTime = true;\n\t\t}\n\t}\n\tif (hasTime) {\n\t\treturn 'MMM D, YYYY h:mm:ss a';\n\t}\n\treturn 'MMM D, YYYY';\n}\n\nmodule.exports = function() {\n\n\tvar defaultConfig = {\n\t\tposition: 'bottom',\n\n\t\t/**\n\t\t * Data distribution along the scale:\n\t\t * - 'linear': data are spread according to their time (distances can vary),\n\t\t * - 'series': data are spread at the same distance from each other.\n\t\t * @see https://github.com/chartjs/Chart.js/pull/4507\n\t\t * @since 2.7.0\n\t\t */\n\t\tdistribution: 'linear',\n\n\t\t/**\n\t\t * Scale boundary strategy (bypassed by min/max time options)\n\t\t * - `data`: make sure data are fully visible, ticks outside are removed\n\t\t * - `ticks`: make sure ticks are fully visible, data outside are truncated\n\t\t * @see https://github.com/chartjs/Chart.js/pull/4556\n\t\t * @since 2.7.0\n\t\t */\n\t\tbounds: 'data',\n\n\t\ttime: {\n\t\t\tparser: false, // false == a pattern string from http://momentjs.com/docs/#/parsing/string-format/ or a custom callback that converts its argument to a moment\n\t\t\tformat: false, // DEPRECATED false == date objects, moment object, callback or a pattern string from http://momentjs.com/docs/#/parsing/string-format/\n\t\t\tunit: false, // false == automatic or override with week, month, year, etc.\n\t\t\tround: false, // none, or override with week, month, year, etc.\n\t\t\tdisplayFormat: false, // DEPRECATED\n\t\t\tisoWeekday: false, // override week start day - see http://momentjs.com/docs/#/get-set/iso-weekday/\n\t\t\tminUnit: 'millisecond',\n\n\t\t\t// defaults to unit's corresponding unitFormat below or override using pattern string from http://momentjs.com/docs/#/displaying/format/\n\t\t\tdisplayFormats: {\n\t\t\t\tmillisecond: 'h:mm:ss.SSS a', // 11:20:01.123 AM,\n\t\t\t\tsecond: 'h:mm:ss a', // 11:20:01 AM\n\t\t\t\tminute: 'h:mm a', // 11:20 AM\n\t\t\t\thour: 'hA', // 5PM\n\t\t\t\tday: 'MMM D', // Sep 4\n\t\t\t\tweek: 'll', // Week 46, or maybe \"[W]WW - YYYY\" ?\n\t\t\t\tmonth: 'MMM YYYY', // Sept 2015\n\t\t\t\tquarter: '[Q]Q - YYYY', // Q3\n\t\t\t\tyear: 'YYYY' // 2015\n\t\t\t},\n\t\t},\n\t\tticks: {\n\t\t\tautoSkip: false,\n\n\t\t\t/**\n\t\t\t * Ticks generation input values:\n\t\t\t * - 'auto': generates \"optimal\" ticks based on scale size and time options.\n\t\t\t * - 'data': generates ticks from data (including labels from data {t|x|y} objects).\n\t\t\t * - 'labels': generates ticks from user given `data.labels` values ONLY.\n\t\t\t * @see https://github.com/chartjs/Chart.js/pull/4507\n\t\t\t * @since 2.7.0\n\t\t\t */\n\t\t\tsource: 'auto',\n\n\t\t\tmajor: {\n\t\t\t\tenabled: false\n\t\t\t}\n\t\t}\n\t};\n\n\tvar TimeScale = Scale.extend({\n\t\tinitialize: function() {\n\t\t\tif (!moment) {\n\t\t\t\tthrow new Error('Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com');\n\t\t\t}\n\n\t\t\tthis.mergeTicksOptions();\n\n\t\t\tScale.prototype.initialize.call(this);\n\t\t},\n\n\t\tupdate: function() {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options;\n\n\t\t\t// DEPRECATIONS: output a message only one time per update\n\t\t\tif (options.time && options.time.format) {\n\t\t\t\tconsole.warn('options.time.format is deprecated and replaced by options.time.parser.');\n\t\t\t}\n\n\t\t\treturn Scale.prototype.update.apply(me, arguments);\n\t\t},\n\n\t\t/**\n\t\t * Allows data to be referenced via 't' attribute\n\t\t */\n\t\tgetRightValue: function(rawValue) {\n\t\t\tif (rawValue && rawValue.t !== undefined) {\n\t\t\t\trawValue = rawValue.t;\n\t\t\t}\n\t\t\treturn Scale.prototype.getRightValue.call(this, rawValue);\n\t\t},\n\n\t\tdetermineDataLimits: function() {\n\t\t\tvar me = this;\n\t\t\tvar chart = me.chart;\n\t\t\tvar timeOpts = me.options.time;\n\t\t\tvar unit = timeOpts.unit || 'day';\n\t\t\tvar min = MAX_INTEGER;\n\t\t\tvar max = MIN_INTEGER;\n\t\t\tvar timestamps = [];\n\t\t\tvar datasets = [];\n\t\t\tvar labels = [];\n\t\t\tvar i, j, ilen, jlen, data, timestamp;\n\n\t\t\t// Convert labels to timestamps\n\t\t\tfor (i = 0, ilen = chart.data.labels.length; i < ilen; ++i) {\n\t\t\t\tlabels.push(parse(chart.data.labels[i], me));\n\t\t\t}\n\n\t\t\t// Convert data to timestamps\n\t\t\tfor (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n\t\t\t\tif (chart.isDatasetVisible(i)) {\n\t\t\t\t\tdata = chart.data.datasets[i].data;\n\n\t\t\t\t\t// Let's consider that all data have the same format.\n\t\t\t\t\tif (helpers.isObject(data[0])) {\n\t\t\t\t\t\tdatasets[i] = [];\n\n\t\t\t\t\t\tfor (j = 0, jlen = data.length; j < jlen; ++j) {\n\t\t\t\t\t\t\ttimestamp = parse(data[j], me);\n\t\t\t\t\t\t\ttimestamps.push(timestamp);\n\t\t\t\t\t\t\tdatasets[i][j] = timestamp;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttimestamps.push.apply(timestamps, labels);\n\t\t\t\t\t\tdatasets[i] = labels.slice(0);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tdatasets[i] = [];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (labels.length) {\n\t\t\t\t// Sort labels **after** data have been converted\n\t\t\t\tlabels = arrayUnique(labels).sort(sorter);\n\t\t\t\tmin = Math.min(min, labels[0]);\n\t\t\t\tmax = Math.max(max, labels[labels.length - 1]);\n\t\t\t}\n\n\t\t\tif (timestamps.length) {\n\t\t\t\ttimestamps = arrayUnique(timestamps).sort(sorter);\n\t\t\t\tmin = Math.min(min, timestamps[0]);\n\t\t\t\tmax = Math.max(max, timestamps[timestamps.length - 1]);\n\t\t\t}\n\n\t\t\tmin = parse(timeOpts.min, me) || min;\n\t\t\tmax = parse(timeOpts.max, me) || max;\n\n\t\t\t// In case there is no valid min/max, set limits based on unit time option\n\t\t\tmin = min === MAX_INTEGER ? +moment().startOf(unit) : min;\n\t\t\tmax = max === MIN_INTEGER ? +moment().endOf(unit) + 1 : max;\n\n\t\t\t// Make sure that max is strictly higher than min (required by the lookup table)\n\t\t\tme.min = Math.min(min, max);\n\t\t\tme.max = Math.max(min + 1, max);\n\n\t\t\t// PRIVATE\n\t\t\tme._horizontal = me.isHorizontal();\n\t\t\tme._table = [];\n\t\t\tme._timestamps = {\n\t\t\t\tdata: timestamps,\n\t\t\t\tdatasets: datasets,\n\t\t\t\tlabels: labels\n\t\t\t};\n\t\t},\n\n\t\tbuildTicks: function() {\n\t\t\tvar me = this;\n\t\t\tvar min = me.min;\n\t\t\tvar max = me.max;\n\t\t\tvar options = me.options;\n\t\t\tvar timeOpts = options.time;\n\t\t\tvar timestamps = [];\n\t\t\tvar ticks = [];\n\t\t\tvar i, ilen, timestamp;\n\n\t\t\tswitch (options.ticks.source) {\n\t\t\tcase 'data':\n\t\t\t\ttimestamps = me._timestamps.data;\n\t\t\t\tbreak;\n\t\t\tcase 'labels':\n\t\t\t\ttimestamps = me._timestamps.labels;\n\t\t\t\tbreak;\n\t\t\tcase 'auto':\n\t\t\tdefault:\n\t\t\t\ttimestamps = generate(min, max, me.getLabelCapacity(min), options);\n\t\t\t}\n\n\t\t\tif (options.bounds === 'ticks' && timestamps.length) {\n\t\t\t\tmin = timestamps[0];\n\t\t\t\tmax = timestamps[timestamps.length - 1];\n\t\t\t}\n\n\t\t\t// Enforce limits with user min/max options\n\t\t\tmin = parse(timeOpts.min, me) || min;\n\t\t\tmax = parse(timeOpts.max, me) || max;\n\n\t\t\t// Remove ticks outside the min/max range\n\t\t\tfor (i = 0, ilen = timestamps.length; i < ilen; ++i) {\n\t\t\t\ttimestamp = timestamps[i];\n\t\t\t\tif (timestamp >= min && timestamp <= max) {\n\t\t\t\t\tticks.push(timestamp);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tme.min = min;\n\t\t\tme.max = max;\n\n\t\t\t// PRIVATE\n\t\t\tme._unit = timeOpts.unit || determineUnitForFormatting(ticks, timeOpts.minUnit, me.min, me.max);\n\t\t\tme._majorUnit = determineMajorUnit(me._unit);\n\t\t\tme._table = buildLookupTable(me._timestamps.data, min, max, options.distribution);\n\t\t\tme._offsets = computeOffsets(me._table, ticks, min, max, options);\n\t\t\tme._labelFormat = determineLabelFormat(me._timestamps.data, timeOpts);\n\n\t\t\treturn ticksFromTimestamps(ticks, me._majorUnit);\n\t\t},\n\n\t\tgetLabelForIndex: function(index, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar data = me.chart.data;\n\t\t\tvar timeOpts = me.options.time;\n\t\t\tvar label = data.labels && index < data.labels.length ? data.labels[index] : '';\n\t\t\tvar value = data.datasets[datasetIndex].data[index];\n\n\t\t\tif (helpers.isObject(value)) {\n\t\t\t\tlabel = me.getRightValue(value);\n\t\t\t}\n\t\t\tif (timeOpts.tooltipFormat) {\n\t\t\t\treturn momentify(label, timeOpts).format(timeOpts.tooltipFormat);\n\t\t\t}\n\t\t\tif (typeof label === 'string') {\n\t\t\t\treturn label;\n\t\t\t}\n\n\t\t\treturn momentify(label, timeOpts).format(me._labelFormat);\n\t\t},\n\n\t\t/**\n\t\t * Function to format an individual tick mark\n\t\t * @private\n\t\t */\n\t\ttickFormatFunction: function(tick, index, ticks, formatOverride) {\n\t\t\tvar me = this;\n\t\t\tvar options = me.options;\n\t\t\tvar time = tick.valueOf();\n\t\t\tvar formats = options.time.displayFormats;\n\t\t\tvar minorFormat = formats[me._unit];\n\t\t\tvar majorUnit = me._majorUnit;\n\t\t\tvar majorFormat = formats[majorUnit];\n\t\t\tvar majorTime = tick.clone().startOf(majorUnit).valueOf();\n\t\t\tvar majorTickOpts = options.ticks.major;\n\t\t\tvar major = majorTickOpts.enabled && majorUnit && majorFormat && time === majorTime;\n\t\t\tvar label = tick.format(formatOverride ? formatOverride : major ? majorFormat : minorFormat);\n\t\t\tvar tickOpts = major ? majorTickOpts : options.ticks.minor;\n\t\t\tvar formatter = helpers.valueOrDefault(tickOpts.callback, tickOpts.userCallback);\n\n\t\t\treturn formatter ? formatter(label, index, ticks) : label;\n\t\t},\n\n\t\tconvertTicksToLabels: function(ticks) {\n\t\t\tvar labels = [];\n\t\t\tvar i, ilen;\n\n\t\t\tfor (i = 0, ilen = ticks.length; i < ilen; ++i) {\n\t\t\t\tlabels.push(this.tickFormatFunction(moment(ticks[i].value), i, ticks));\n\t\t\t}\n\n\t\t\treturn labels;\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetPixelForOffset: function(time) {\n\t\t\tvar me = this;\n\t\t\tvar size = me._horizontal ? me.width : me.height;\n\t\t\tvar start = me._horizontal ? me.left : me.top;\n\t\t\tvar pos = interpolate(me._table, 'time', time, 'pos');\n\n\t\t\treturn start + size * (me._offsets.left + pos) / (me._offsets.left + 1 + me._offsets.right);\n\t\t},\n\n\t\tgetPixelForValue: function(value, index, datasetIndex) {\n\t\t\tvar me = this;\n\t\t\tvar time = null;\n\n\t\t\tif (index !== undefined && datasetIndex !== undefined) {\n\t\t\t\ttime = me._timestamps.datasets[datasetIndex][index];\n\t\t\t}\n\n\t\t\tif (time === null) {\n\t\t\t\ttime = parse(value, me);\n\t\t\t}\n\n\t\t\tif (time !== null) {\n\t\t\t\treturn me.getPixelForOffset(time);\n\t\t\t}\n\t\t},\n\n\t\tgetPixelForTick: function(index) {\n\t\t\tvar ticks = this.getTicks();\n\t\t\treturn index >= 0 && index < ticks.length ?\n\t\t\t\tthis.getPixelForOffset(ticks[index].value) :\n\t\t\t\tnull;\n\t\t},\n\n\t\tgetValueForPixel: function(pixel) {\n\t\t\tvar me = this;\n\t\t\tvar size = me._horizontal ? me.width : me.height;\n\t\t\tvar start = me._horizontal ? me.left : me.top;\n\t\t\tvar pos = (size ? (pixel - start) / size : 0) * (me._offsets.left + 1 + me._offsets.left) - me._offsets.right;\n\t\t\tvar time = interpolate(me._table, 'pos', pos, 'time');\n\n\t\t\treturn moment(time);\n\t\t},\n\n\t\t/**\n\t\t * Crude approximation of what the label width might be\n\t\t * @private\n\t\t */\n\t\tgetLabelWidth: function(label) {\n\t\t\tvar me = this;\n\t\t\tvar ticksOpts = me.options.ticks;\n\t\t\tvar tickLabelWidth = me.ctx.measureText(label).width;\n\t\t\tvar angle = helpers.toRadians(ticksOpts.maxRotation);\n\t\t\tvar cosRotation = Math.cos(angle);\n\t\t\tvar sinRotation = Math.sin(angle);\n\t\t\tvar tickFontSize = helpers.valueOrDefault(ticksOpts.fontSize, defaults.global.defaultFontSize);\n\n\t\t\treturn (tickLabelWidth * cosRotation) + (tickFontSize * sinRotation);\n\t\t},\n\n\t\t/**\n\t\t * @private\n\t\t */\n\t\tgetLabelCapacity: function(exampleTime) {\n\t\t\tvar me = this;\n\n\t\t\tvar formatOverride = me.options.time.displayFormats.millisecond;\t// Pick the longest format for guestimation\n\n\t\t\tvar exampleLabel = me.tickFormatFunction(moment(exampleTime), 0, [], formatOverride);\n\t\t\tvar tickLabelWidth = me.getLabelWidth(exampleLabel);\n\t\t\tvar innerWidth = me.isHorizontal() ? me.width : me.height;\n\n\t\t\tvar capacity = Math.floor(innerWidth / tickLabelWidth);\n\t\t\treturn capacity > 0 ? capacity : 1;\n\t\t}\n\t});\n\n\tscaleService.registerScaleType('time', TimeScale, defaultConfig);\n};\n\n},{\"1\":1,\"26\":26,\"33\":33,\"34\":34,\"46\":46}]},{},[7])(7)\n});\n"
  },
  {
    "path": "student/content/mdb/js/modules/default-file-input.js",
    "content": "\"use strict\";\n\n(function ($) {\n  $('.input-default-wrapper').on('change', '.input-default-js', function (e) {\n    var $this = $(e.target),\n        $label = $this.next('label'),\n        $files = $this[0].files;\n    var fileName = '';\n\n    if ($files && $files.length > 1) {\n      fileName = ($this.attr('data-multiple-target') || '').replace('{target}', $files.length);\n    } else if (e.target.value) {\n      fileName = e.target.value.split('\\\\').pop();\n    }\n\n    if (fileName) {\n      $label.find('.span-choose-file').html(fileName);\n    } else {\n      $label.html($label.html());\n    }\n  });\n})(jQuery);"
  },
  {
    "path": "student/content/mdb/js/modules/enhanced-modals.js",
    "content": "/*\n    Enhanced Bootstrap Modals\n    https://mdbootstrap.com\n    office@mdbootstrap.com\n*/\n\n(function($){\n  $('body').on('shown.bs.modal', '.modal', function() {\n    if(!$('.modal-backdrop').length) {\n\n      $modal_dialog = $(this).children('.modal-dialog')\n\n      if($modal_dialog.hasClass('modal-side')) {\n        $(this).addClass('modal-scrolling');\n        $('body').addClass('scrollable');\n      }\n\n      if($modal_dialog.hasClass('modal-frame')) {\n        $(this).addClass('modal-content-clickable');\n        $('body').addClass('scrollable');\n      }\n    }\n  });\n  $('body').on('hidden.bs.modal', '.modal', function() {\n    $('body').removeClass('scrollable');\n  });\n})(jQuery);\n"
  },
  {
    "path": "student/content/mdb/js/modules/forms-free.js",
    "content": "\"use strict\";\n\nvar _this = void 0;\n\n(function ($) {\n  var inputSelector = \"\".concat(['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md'].map(function (selector) {\n    return \"input[type=\".concat(selector, \"]\");\n  }).join(', '), \", textarea\");\n  var textAreaSelector = '.materialize-textarea';\n\n  var updateTextFields = function updateTextFields($input) {\n    var $labelAndIcon = $input.siblings('label, i');\n    var hasValue = $input.val().length;\n    var hasPlaceholder = $input.attr('placeholder');\n    var addOrRemove = \"\".concat(hasValue || hasPlaceholder ? 'add' : 'remove', \"Class\");\n    $labelAndIcon[addOrRemove]('active');\n  };\n\n  var validateField = function validateField($input) {\n    if ($input.hasClass('validate')) {\n      var value = $input.val();\n      var noValue = !value.length;\n      var isValid = !$input[0].validity.badInput;\n\n      if (noValue && isValid) {\n        $input.removeClass('valid').removeClass('invalid');\n      } else {\n        var valid = $input.is(':valid');\n        var length = Number($input.attr('length')) || 0;\n\n        if (valid && (!length || length > value.length)) {\n          $input.removeClass('invalid').addClass('valid');\n        } else {\n          $input.removeClass('valid').addClass('invalid');\n        }\n      }\n    }\n  };\n\n  var textAreaAutoResize = function textAreaAutoResize() {\n    var $textarea = $(_this);\n\n    if ($textarea.val().length) {\n      var $hiddenDiv = $('.hiddendiv');\n      var fontFamily = $textarea.css('font-family');\n      var fontSize = $textarea.css('font-size');\n\n      if (fontSize) {\n        $hiddenDiv.css('font-size', fontSize);\n      }\n\n      if (fontFamily) {\n        $hiddenDiv.css('font-family', fontFamily);\n      }\n\n      if ($textarea.attr('wrap') === 'off') {\n        $hiddenDiv.css('overflow-wrap', 'normal').css('white-space', 'pre');\n      }\n\n      $hiddenDiv.text(\"\".concat($textarea.val(), \"\\n\"));\n      var content = $hiddenDiv.html().replace(/\\n/g, '<br>');\n      $hiddenDiv.html(content); // When textarea is hidden, width goes crazy.\n      // Approximate with half of window size\n\n      $hiddenDiv.css('width', $textarea.is(':visible') ? $textarea.width() : $(window).width() / 2);\n      $textarea.css('height', $hiddenDiv.height());\n    }\n  };\n\n  $(inputSelector).each(function (index, input) {\n    var $this = $(input);\n    var $labelAndIcon = $this.siblings('label, i');\n    updateTextFields($this);\n    var isValid = input.validity.badInput;\n\n    if (isValid) {\n      $labelAndIcon.addClass('active');\n    }\n  });\n  $(document).on('focus', inputSelector, function (e) {\n    $(e.target).siblings('label, i').addClass('active');\n  });\n  $(document).on('blur', inputSelector, function (e) {\n    var $this = $(e.target);\n    var noValue = !$this.val();\n    var invalid = !e.target.validity.badInput;\n    var noPlaceholder = $this.attr('placeholder') === undefined;\n\n    if (noValue && invalid && noPlaceholder) {\n      $this.siblings('label, i').removeClass('active');\n    }\n\n    validateField($this);\n  });\n  $(document).on('change', inputSelector, function (e) {\n    var $this = $(e.target);\n    updateTextFields($this);\n    validateField($this);\n  });\n  $('input[autofocus]').siblings('label, i').addClass('active');\n  $(document).on('reset', function (e) {\n    var $formReset = $(e.target);\n\n    if ($formReset.is('form')) {\n      var $formInputs = $formReset.find(inputSelector);\n      $formInputs.removeClass('valid').removeClass('invalid').each(function (index, input) {\n        var $this = $(input);\n        var noDefaultValue = !$this.val();\n        var noPlaceholder = !$this.attr('placeholder');\n\n        if (noDefaultValue && noPlaceholder) {\n          $this.siblings('label, i').removeClass('active');\n        }\n      });\n      $formReset.find('select.initialized').each(function (index, select) {\n        var $select = $(select);\n        var $visibleInput = $select.siblings('input.select-dropdown');\n        var defaultValue = $select.children('[selected]').val();\n        $select.val(defaultValue);\n        $visibleInput.val(defaultValue);\n      });\n    }\n  });\n\n  function init() {\n    var $text = $('.md-textarea-auto');\n\n    if ($text.length) {\n      var observe;\n\n      if (window.attachEvent) {\n        observe = function observe(element, event, handler) {\n          element.attachEvent(\"on\".concat(event), handler);\n        };\n      } else {\n        observe = function observe(element, event, handler) {\n          element.addEventListener(event, handler, false);\n        };\n      }\n\n      $text.each(function () {\n        var self = this;\n\n        function resize() {\n          self.style.height = 'auto';\n          self.style.height = \"\".concat(self.scrollHeight, \"px\");\n        }\n\n        function delayedResize() {\n          window.setTimeout(resize, 0);\n        }\n\n        observe(self, 'change', resize);\n        observe(self, 'cut', delayedResize);\n        observe(self, 'paste', delayedResize);\n        observe(self, 'drop', delayedResize);\n        observe(self, 'keydown', delayedResize);\n        resize();\n      });\n    }\n  }\n\n  init();\n  var $body = $('body');\n\n  if (!$('.hiddendiv').first().length) {\n    var $hiddenDiv = $('<div class=\"hiddendiv common\"></div>');\n    $body.append($hiddenDiv);\n  }\n\n  $(textAreaSelector).each(textAreaAutoResize);\n  $body.on('keyup keydown', textAreaSelector, textAreaAutoResize);\n})(jQuery);"
  },
  {
    "path": "student/content/mdb/js/modules/jquery.easing.js",
    "content": "/*\n * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/\n *\n * Uses the built in easing capabilities added In jQuery 1.1\n * to offer multiple easing options\n *\n * TERMS OF USE - jQuery Easing\n *\n * Open source under the BSD License.\n *\n * Copyright © 2008 George McGinley Smith\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n *\n * Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * Neither the name of the author nor the names of contributors may be used to endorse\n * or promote products derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\n * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n * OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n*/\n\n// t: current time, b: begInnIng value, c: change In value, d: duration\njQuery.easing['jswing'] = jQuery.easing['swing'];\n\njQuery.extend( jQuery.easing,\n{\n    def: 'easeOutQuad',\n    swing: function (x, t, b, c, d) {\n        //alert(jQuery.easing.default);\n        return jQuery.easing[jQuery.easing.def](x, t, b, c, d);\n    },\n    easeInQuad: function (x, t, b, c, d) {\n        return c*(t/=d)*t + b;\n    },\n    easeOutQuad: function (x, t, b, c, d) {\n        return -c *(t/=d)*(t-2) + b;\n    },\n    easeInOutQuad: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return c/2*t*t + b;\n        return -c/2 * ((--t)*(t-2) - 1) + b;\n    },\n    easeInCubic: function (x, t, b, c, d) {\n        return c*(t/=d)*t*t + b;\n    },\n    easeOutCubic: function (x, t, b, c, d) {\n        return c*((t=t/d-1)*t*t + 1) + b;\n    },\n    easeInOutCubic: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return c/2*t*t*t + b;\n        return c/2*((t-=2)*t*t + 2) + b;\n    },\n    easeInQuart: function (x, t, b, c, d) {\n        return c*(t/=d)*t*t*t + b;\n    },\n    easeOutQuart: function (x, t, b, c, d) {\n        return -c * ((t=t/d-1)*t*t*t - 1) + b;\n    },\n    easeInOutQuart: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return c/2*t*t*t*t + b;\n        return -c/2 * ((t-=2)*t*t*t - 2) + b;\n    },\n    easeInQuint: function (x, t, b, c, d) {\n        return c*(t/=d)*t*t*t*t + b;\n    },\n    easeOutQuint: function (x, t, b, c, d) {\n        return c*((t=t/d-1)*t*t*t*t + 1) + b;\n    },\n    easeInOutQuint: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;\n        return c/2*((t-=2)*t*t*t*t + 2) + b;\n    },\n    easeInSine: function (x, t, b, c, d) {\n        return -c * Math.cos(t/d * (Math.PI/2)) + c + b;\n    },\n    easeOutSine: function (x, t, b, c, d) {\n        return c * Math.sin(t/d * (Math.PI/2)) + b;\n    },\n    easeInOutSine: function (x, t, b, c, d) {\n        return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;\n    },\n    easeInExpo: function (x, t, b, c, d) {\n        return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;\n    },\n    easeOutExpo: function (x, t, b, c, d) {\n        return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;\n    },\n    easeInOutExpo: function (x, t, b, c, d) {\n        if (t==0) return b;\n        if (t==d) return b+c;\n        if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;\n        return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;\n    },\n    easeInCirc: function (x, t, b, c, d) {\n        return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;\n    },\n    easeOutCirc: function (x, t, b, c, d) {\n        return c * Math.sqrt(1 - (t=t/d-1)*t) + b;\n    },\n    easeInOutCirc: function (x, t, b, c, d) {\n        if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;\n        return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;\n    },\n    easeInElastic: function (x, t, b, c, d) {\n        var s=1.70158;var p=0;var a=c;\n        if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;\n        if (a < Math.abs(c)) { a=c; var s=p/4; }\n        else var s = p/(2*Math.PI) * Math.asin (c/a);\n        return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\n    },\n    easeOutElastic: function (x, t, b, c, d) {\n        var s=1.70158;var p=0;var a=c;\n        if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;\n        if (a < Math.abs(c)) { a=c; var s=p/4; }\n        else var s = p/(2*Math.PI) * Math.asin (c/a);\n        return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;\n    },\n    easeInOutElastic: function (x, t, b, c, d) {\n        var s=1.70158;var p=0;var a=c;\n        if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);\n        if (a < Math.abs(c)) { a=c; var s=p/4; }\n        else var s = p/(2*Math.PI) * Math.asin (c/a);\n        if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\n        return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;\n    },\n    easeInBack: function (x, t, b, c, d, s) {\n        if (s == undefined) s = 1.70158;\n        return c*(t/=d)*t*((s+1)*t - s) + b;\n    },\n    easeOutBack: function (x, t, b, c, d, s) {\n        if (s == undefined) s = 1.70158;\n        return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;\n    },\n    easeInOutBack: function (x, t, b, c, d, s) {\n        if (s == undefined) s = 1.70158;\n        if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;\n        return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;\n    },\n    easeInBounce: function (x, t, b, c, d) {\n        return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;\n    },\n    easeOutBounce: function (x, t, b, c, d) {\n        if ((t/=d) < (1/2.75)) {\n            return c*(7.5625*t*t) + b;\n        } else if (t < (2/2.75)) {\n            return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;\n        } else if (t < (2.5/2.75)) {\n            return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;\n        } else {\n            return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;\n        }\n    },\n    easeInOutBounce: function (x, t, b, c, d) {\n        if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;\n        return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;\n    }\n});\n\n/*\n *\n * TERMS OF USE - EASING EQUATIONS\n *\n * Open source under the BSD License.\n *\n * Copyright © 2001 Robert Penner\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n *\n * Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * Neither the name of the author nor the names of contributors may be used to endorse\n * or promote products derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\n * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n * OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n */"
  },
  {
    "path": "student/content/mdb/js/modules/scrolling-navbar.js",
    "content": "\"use strict\";\n\n(function ($) {\n  var SCROLLING_NAVBAR_OFFSET_TOP = 50;\n  $(window).on('scroll', function () {\n    var $navbar = $('.navbar');\n\n    if ($navbar.length) {\n      if ($navbar.offset().top > SCROLLING_NAVBAR_OFFSET_TOP) {\n        $('.scrolling-navbar').addClass('top-nav-collapse');\n      } else {\n        $('.scrolling-navbar').removeClass('top-nav-collapse');\n      }\n    }\n  });\n})(jQuery);"
  },
  {
    "path": "student/content/mdb/js/modules/velocity.js",
    "content": "/*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */\n/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */\n/*! Note that this has been modified by Materialize to confirm that Velocity is not already being imported. */\njQuery.Velocity?console.log(\"Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity.\"):(!function(e){function t(e){var t=e.length,a=r.type(e);return\"function\"===a||r.isWindow(e)?!1:1===e.nodeType&&t?!0:\"array\"===a||0===t||\"number\"==typeof t&&t>0&&t-1 in e}if(!e.jQuery){var r=function(e,t){return new r.fn.init(e,t)};r.isWindow=function(e){return null!=e&&e==e.window},r.type=function(e){return null==e?e+\"\":\"object\"==typeof e||\"function\"==typeof e?n[i.call(e)]||\"object\":typeof e},r.isArray=Array.isArray||function(e){return\"array\"===r.type(e)},r.isPlainObject=function(e){var t;if(!e||\"object\"!==r.type(e)||e.nodeType||r.isWindow(e))return!1;try{if(e.constructor&&!o.call(e,\"constructor\")&&!o.call(e.constructor.prototype,\"isPrototypeOf\"))return!1}catch(a){return!1}for(t in e);return void 0===t||o.call(e,t)},r.each=function(e,r,a){var n,o=0,i=e.length,s=t(e);if(a){if(s)for(;i>o&&(n=r.apply(e[o],a),n!==!1);o++);else for(o in e)if(n=r.apply(e[o],a),n===!1)break}else if(s)for(;i>o&&(n=r.call(e[o],o,e[o]),n!==!1);o++);else for(o in e)if(n=r.call(e[o],o,e[o]),n===!1)break;return e},r.data=function(e,t,n){if(void 0===n){var o=e[r.expando],i=o&&a[o];if(void 0===t)return i;if(i&&t in i)return i[t]}else if(void 0!==t){var o=e[r.expando]||(e[r.expando]=++r.uuid);return a[o]=a[o]||{},a[o][t]=n,n}},r.removeData=function(e,t){var n=e[r.expando],o=n&&a[n];o&&r.each(t,function(e,t){delete o[t]})},r.extend=function(){var e,t,a,n,o,i,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for(\"boolean\"==typeof s&&(c=s,s=arguments[l]||{},l++),\"object\"!=typeof s&&\"function\"!==r.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(o=arguments[l]))for(n in o)e=s[n],a=o[n],s!==a&&(c&&a&&(r.isPlainObject(a)||(t=r.isArray(a)))?(t?(t=!1,i=e&&r.isArray(e)?e:[]):i=e&&r.isPlainObject(e)?e:{},s[n]=r.extend(c,i,a)):void 0!==a&&(s[n]=a));return s},r.queue=function(e,a,n){function o(e,r){var a=r||[];return null!=e&&(t(Object(e))?!function(e,t){for(var r=+t.length,a=0,n=e.length;r>a;)e[n++]=t[a++];if(r!==r)for(;void 0!==t[a];)e[n++]=t[a++];return e.length=n,e}(a,\"string\"==typeof e?[e]:e):[].push.call(a,e)),a}if(e){a=(a||\"fx\")+\"queue\";var i=r.data(e,a);return n?(!i||r.isArray(n)?i=r.data(e,a,o(n)):i.push(n),i):i||[]}},r.dequeue=function(e,t){r.each(e.nodeType?[e]:e,function(e,a){t=t||\"fx\";var n=r.queue(a,t),o=n.shift();\"inprogress\"===o&&(o=n.shift()),o&&(\"fx\"===t&&n.unshift(\"inprogress\"),o.call(a,function(){r.dequeue(a,t)}))})},r.fn=r.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error(\"Not a DOM node.\")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&\"html\"===!e.nodeType.toLowerCase&&\"static\"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),a=this.offset(),n=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:r(e).offset();return a.top-=parseFloat(t.style.marginTop)||0,a.left-=parseFloat(t.style.marginLeft)||0,e.style&&(n.top+=parseFloat(e.style.borderTopWidth)||0,n.left+=parseFloat(e.style.borderLeftWidth)||0),{top:a.top-n.top,left:a.left-n.left}}};var a={};r.expando=\"velocity\"+(new Date).getTime(),r.uuid=0;for(var n={},o=n.hasOwnProperty,i=n.toString,s=\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),l=0;l<s.length;l++)n[\"[object \"+s[l]+\"]\"]=s[l].toLowerCase();r.fn.init.prototype=r.fn,e.Velocity={Utilities:r}}}(window),function(e){\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=e():\"function\"==typeof define&&define.amd?define(e):e()}(function(){return function(e,t,r,a){function n(e){for(var t=-1,r=e?e.length:0,a=[];++t<r;){var n=e[t];n&&a.push(n)}return a}function o(e){return m.isWrapped(e)?e=[].slice.call(e):m.isNode(e)&&(e=[e]),e}function i(e){var t=f.data(e,\"velocity\");return null===t?a:t}function s(e){return function(t){return Math.round(t*e)*(1/e)}}function l(e,r,a,n){function o(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((o(t,r)*e+i(t,r))*e+s(t))*e}function u(e,t,r){return 3*o(t,r)*e*e+2*i(t,r)*e+s(t)}function c(t,r){for(var n=0;m>n;++n){var o=u(r,e,a);if(0===o)return r;var i=l(r,e,a)-t;r-=i/o}return r}function p(){for(var t=0;b>t;++t)w[t]=l(t*x,e,a)}function f(t,r,n){var o,i,s=0;do i=r+(n-r)/2,o=l(i,e,a)-t,o>0?n=i:r=i;while(Math.abs(o)>h&&++s<v);return i}function d(t){for(var r=0,n=1,o=b-1;n!=o&&w[n]<=t;++n)r+=x;--n;var i=(t-w[n])/(w[n+1]-w[n]),s=r+i*x,l=u(s,e,a);return l>=y?c(t,s):0==l?s:f(t,r,r+x)}function g(){V=!0,(e!=r||a!=n)&&p()}var m=4,y=.001,h=1e-7,v=10,b=11,x=1/(b-1),S=\"Float32Array\"in t;if(4!==arguments.length)return!1;for(var P=0;4>P;++P)if(\"number\"!=typeof arguments[P]||isNaN(arguments[P])||!isFinite(arguments[P]))return!1;e=Math.min(e,1),a=Math.min(a,1),e=Math.max(e,0),a=Math.max(a,0);var w=S?new Float32Array(b):new Array(b),V=!1,C=function(t){return V||g(),e===r&&a===n?t:0===t?0:1===t?1:l(d(t),r,n)};C.getControlPoints=function(){return[{x:e,y:r},{x:a,y:n}]};var T=\"generateBezier(\"+[e,r,a,n]+\")\";return C.toString=function(){return T},C}function u(e,t){var r=e;return m.isString(e)?b.Easings[e]||(r=!1):r=m.isArray(e)&&1===e.length?s.apply(null,e):m.isArray(e)&&2===e.length?x.apply(null,e.concat([t])):m.isArray(e)&&4===e.length?l.apply(null,e):!1,r===!1&&(r=b.Easings[b.defaults.easing]?b.defaults.easing:v),r}function c(e){if(e){var t=(new Date).getTime(),r=b.State.calls.length;r>1e4&&(b.State.calls=n(b.State.calls));for(var o=0;r>o;o++)if(b.State.calls[o]){var s=b.State.calls[o],l=s[0],u=s[2],d=s[3],g=!!d,y=null;d||(d=b.State.calls[o][3]=t-16);for(var h=Math.min((t-d)/u.duration,1),v=0,x=l.length;x>v;v++){var P=l[v],V=P.element;if(i(V)){var C=!1;if(u.display!==a&&null!==u.display&&\"none\"!==u.display){if(\"flex\"===u.display){var T=[\"-webkit-box\",\"-moz-box\",\"-ms-flexbox\",\"-webkit-flex\"];f.each(T,function(e,t){S.setPropertyValue(V,\"display\",t)})}S.setPropertyValue(V,\"display\",u.display)}u.visibility!==a&&\"hidden\"!==u.visibility&&S.setPropertyValue(V,\"visibility\",u.visibility);for(var k in P)if(\"element\"!==k){var A,F=P[k],j=m.isString(F.easing)?b.Easings[F.easing]:F.easing;if(1===h)A=F.endValue;else{var E=F.endValue-F.startValue;if(A=F.startValue+E*j(h,u,E),!g&&A===F.currentValue)continue}if(F.currentValue=A,\"tween\"===k)y=A;else{if(S.Hooks.registered[k]){var H=S.Hooks.getRoot(k),N=i(V).rootPropertyValueCache[H];N&&(F.rootPropertyValue=N)}var L=S.setPropertyValue(V,k,F.currentValue+(0===parseFloat(A)?\"\":F.unitType),F.rootPropertyValue,F.scrollData);S.Hooks.registered[k]&&(i(V).rootPropertyValueCache[H]=S.Normalizations.registered[H]?S.Normalizations.registered[H](\"extract\",null,L[1]):L[1]),\"transform\"===L[0]&&(C=!0)}}u.mobileHA&&i(V).transformCache.translate3d===a&&(i(V).transformCache.translate3d=\"(0px, 0px, 0px)\",C=!0),C&&S.flushTransformCache(V)}}u.display!==a&&\"none\"!==u.display&&(b.State.calls[o][2].display=!1),u.visibility!==a&&\"hidden\"!==u.visibility&&(b.State.calls[o][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],h,Math.max(0,d+u.duration-t),d,y),1===h&&p(o)}}b.State.isTicking&&w(c)}function p(e,t){if(!b.State.calls[e])return!1;for(var r=b.State.calls[e][0],n=b.State.calls[e][1],o=b.State.calls[e][2],s=b.State.calls[e][4],l=!1,u=0,c=r.length;c>u;u++){var p=r[u].element;if(t||o.loop||(\"none\"===o.display&&S.setPropertyValue(p,\"display\",o.display),\"hidden\"===o.visibility&&S.setPropertyValue(p,\"visibility\",o.visibility)),o.loop!==!0&&(f.queue(p)[1]===a||!/\\.velocityQueueEntryFlag/i.test(f.queue(p)[1]))&&i(p)){i(p).isAnimating=!1,i(p).rootPropertyValueCache={};var d=!1;f.each(S.Lists.transforms3D,function(e,t){var r=/^scale/.test(t)?1:0,n=i(p).transformCache[t];i(p).transformCache[t]!==a&&new RegExp(\"^\\\\(\"+r+\"[^.]\").test(n)&&(d=!0,delete i(p).transformCache[t])}),o.mobileHA&&(d=!0,delete i(p).transformCache.translate3d),d&&S.flushTransformCache(p),S.Values.removeClass(p,\"velocity-animating\")}if(!t&&o.complete&&!o.loop&&u===c-1)try{o.complete.call(n,n)}catch(g){setTimeout(function(){throw g},1)}s&&o.loop!==!0&&s(n),i(p)&&o.loop===!0&&!t&&(f.each(i(p).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&\"%\"===t.unitType&&(t.endValue=0,t.startValue=100)}),b(p,\"reverse\",{loop:!0,delay:o.delay})),o.queue!==!1&&f.dequeue(p,o.queue)}b.State.calls[e]=!1;for(var m=0,y=b.State.calls.length;y>m;m++)if(b.State.calls[m]!==!1){l=!0;break}l===!1&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var f,d=function(){if(r.documentMode)return r.documentMode;for(var e=7;e>4;e--){var t=r.createElement(\"div\");if(t.innerHTML=\"<!--[if IE \"+e+\"]><span></span><![endif]-->\",t.getElementsByTagName(\"span\").length)return t=null,e}return a}(),g=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var r,a=(new Date).getTime();return r=Math.max(0,16-(a-e)),e=a+r,setTimeout(function(){t(a+r)},r)}}(),m={isString:function(e){return\"string\"==typeof e},isArray:Array.isArray||function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},isFunction:function(e){return\"[object Function]\"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return\"object\"==typeof e&&/^\\[object (HTMLCollection|NodeList|Object)\\]$/.test(Object.prototype.toString.call(e))&&e.length!==a&&(0===e.length||\"object\"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},y=!1;if(e.fn&&e.fn.jquery?(f=e,y=!0):f=t.Velocity.Utilities,8>=d&&!y)throw new Error(\"Velocity: IE8 and below require jQuery to be loaded before Velocity.\");if(7>=d)return void(jQuery.fn.velocity=jQuery.fn.animate);var h=400,v=\"swing\",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\\.3\\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:r.createElement(\"div\"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:f,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:\"\",duration:h,easing:v,begin:a,complete:a,progress:a,display:a,visibility:a,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){f.data(e,\"velocity\",{isSVG:m.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==a?(b.State.scrollAnchor=t,b.State.scrollPropertyLeft=\"pageXOffset\",b.State.scrollPropertyTop=\"pageYOffset\"):(b.State.scrollAnchor=r.documentElement||r.body.parentNode||r.body,b.State.scrollPropertyLeft=\"scrollLeft\",b.State.scrollPropertyTop=\"scrollTop\");var x=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,a){var n={x:t.x+a.dx*r,v:t.v+a.dv*r,tension:t.tension,friction:t.friction};return{dx:n.v,dv:e(n)}}function r(r,a){var n={dx:r.v,dv:e(r)},o=t(r,.5*a,n),i=t(r,.5*a,o),s=t(r,a,i),l=1/6*(n.dx+2*(o.dx+i.dx)+s.dx),u=1/6*(n.dv+2*(o.dv+i.dv)+s.dv);return r.x=r.x+l*a,r.v=r.v+u*a,r}return function a(e,t,n){var o,i,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,p=1e-4,f=.016;for(e=parseFloat(e)||500,t=parseFloat(t)||20,n=n||null,l.tension=e,l.friction=t,o=null!==n,o?(c=a(e,t),i=c/n*f):i=f;s=r(s||l,i),u.push(1+s.x),c+=16,Math.abs(s.x)>p&&Math.abs(s.v)>p;);return o?function(e){return u[e*(u.length-1)|0]}:c}}();b.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},f.each([[\"ease\",[.25,.1,.25,1]],[\"ease-in\",[.42,0,1,1]],[\"ease-out\",[0,0,.58,1]],[\"ease-in-out\",[.42,0,.58,1]],[\"easeInSine\",[.47,0,.745,.715]],[\"easeOutSine\",[.39,.575,.565,1]],[\"easeInOutSine\",[.445,.05,.55,.95]],[\"easeInQuad\",[.55,.085,.68,.53]],[\"easeOutQuad\",[.25,.46,.45,.94]],[\"easeInOutQuad\",[.455,.03,.515,.955]],[\"easeInCubic\",[.55,.055,.675,.19]],[\"easeOutCubic\",[.215,.61,.355,1]],[\"easeInOutCubic\",[.645,.045,.355,1]],[\"easeInQuart\",[.895,.03,.685,.22]],[\"easeOutQuart\",[.165,.84,.44,1]],[\"easeInOutQuart\",[.77,0,.175,1]],[\"easeInQuint\",[.755,.05,.855,.06]],[\"easeOutQuint\",[.23,1,.32,1]],[\"easeInOutQuint\",[.86,0,.07,1]],[\"easeInExpo\",[.95,.05,.795,.035]],[\"easeOutExpo\",[.19,1,.22,1]],[\"easeInOutExpo\",[1,0,0,1]],[\"easeInCirc\",[.6,.04,.98,.335]],[\"easeOutCirc\",[.075,.82,.165,1]],[\"easeInOutCirc\",[.785,.135,.15,.86]]],function(e,t){b.Easings[t[0]]=l.apply(null,t[1])});var S=b.CSS={RegEx:{isHex:/^#([A-f\\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\\((.*)\\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\\(.+\\))|(([A-z0-9#-.]+?)(?=\\s|$))/gi},Lists:{colors:[\"fill\",\"stroke\",\"stopColor\",\"color\",\"backgroundColor\",\"borderColor\",\"borderTopColor\",\"borderRightColor\",\"borderBottomColor\",\"borderLeftColor\",\"outlineColor\"],transformsBase:[\"translateX\",\"translateY\",\"scale\",\"scaleX\",\"scaleY\",\"skewX\",\"skewY\",\"rotateZ\"],transforms3D:[\"transformPerspective\",\"translateZ\",\"scaleZ\",\"rotateX\",\"rotateY\"]},Hooks:{templates:{textShadow:[\"Color X Y Blur\",\"black 0px 0px 0px\"],boxShadow:[\"Color X Y Blur Spread\",\"black 0px 0px 0px 0px\"],clip:[\"Top Right Bottom Left\",\"0px 0px 0px 0px\"],backgroundPosition:[\"X Y\",\"0% 0%\"],transformOrigin:[\"X Y Z\",\"50% 50% 0px\"],perspectiveOrigin:[\"X Y\",\"50% 50%\"]},registered:{},register:function(){for(var e=0;e<S.Lists.colors.length;e++){var t=\"color\"===S.Lists.colors[e]?\"0 0 0 1\":\"255 255 255 1\";S.Hooks.templates[S.Lists.colors[e]]=[\"Red Green Blue Alpha\",t]}var r,a,n;if(d)for(r in S.Hooks.templates){a=S.Hooks.templates[r],n=a[0].split(\" \");var o=a[1].match(S.RegEx.valueSplit);\"Color\"===n[0]&&(n.push(n.shift()),o.push(o.shift()),S.Hooks.templates[r]=[n.join(\" \"),o.join(\" \")])}for(r in S.Hooks.templates){a=S.Hooks.templates[r],n=a[0].split(\" \");for(var e in n){var i=r+n[e],s=e;S.Hooks.registered[i]=[r,s]}}},getRoot:function(e){var t=S.Hooks.registered[e];return t?t[0]:e},cleanRootPropertyValue:function(e,t){return S.RegEx.valueUnwrap.test(t)&&(t=t.match(S.RegEx.valueUnwrap)[1]),S.Values.isCSSNullValue(t)&&(t=S.Hooks.templates[e][1]),t},extractValue:function(e,t){var r=S.Hooks.registered[e];if(r){var a=r[0],n=r[1];return t=S.Hooks.cleanRootPropertyValue(a,t),t.toString().match(S.RegEx.valueSplit)[n]}return t},injectValue:function(e,t,r){var a=S.Hooks.registered[e];if(a){var n,o,i=a[0],s=a[1];return r=S.Hooks.cleanRootPropertyValue(i,r),n=r.toString().match(S.RegEx.valueSplit),n[s]=t,o=n.join(\" \")}return r}},Normalizations:{registered:{clip:function(e,t,r){switch(e){case\"name\":return\"clip\";case\"extract\":var a;return S.RegEx.wrappedValueAlreadyExtracted.test(r)?a=r:(a=r.toString().match(S.RegEx.valueUnwrap),a=a?a[1].replace(/,(\\s+)?/g,\" \"):r),a;case\"inject\":return\"rect(\"+r+\")\"}},blur:function(e,t,r){switch(e){case\"name\":return b.State.isFirefox?\"filter\":\"-webkit-filter\";case\"extract\":var a=parseFloat(r);if(!a&&0!==a){var n=r.toString().match(/blur\\(([0-9]+[A-z]+)\\)/i);a=n?n[1]:0}return a;case\"inject\":return parseFloat(r)?\"blur(\"+r+\")\":\"none\"}},opacity:function(e,t,r){if(8>=d)switch(e){case\"name\":return\"filter\";case\"extract\":var a=r.toString().match(/alpha\\(opacity=(.*)\\)/i);return r=a?a[1]/100:1;case\"inject\":return t.style.zoom=1,parseFloat(r)>=1?\"\":\"alpha(opacity=\"+parseInt(100*parseFloat(r),10)+\")\"}else switch(e){case\"name\":return\"opacity\";case\"extract\":return r;case\"inject\":return r}}},register:function(){9>=d||b.State.isGingerbread||(S.Lists.transformsBase=S.Lists.transformsBase.concat(S.Lists.transforms3D));for(var e=0;e<S.Lists.transformsBase.length;e++)!function(){var t=S.Lists.transformsBase[e];S.Normalizations.registered[t]=function(e,r,n){switch(e){case\"name\":return\"transform\";case\"extract\":return i(r)===a||i(r).transformCache[t]===a?/^scale/i.test(t)?1:0:i(r).transformCache[t].replace(/[()]/g,\"\");case\"inject\":var o=!1;switch(t.substr(0,t.length-1)){case\"translate\":o=!/(%|px|em|rem|vw|vh|\\d)$/i.test(n);break;case\"scal\":case\"scale\":b.State.isAndroid&&i(r).transformCache[t]===a&&1>n&&(n=1),o=!/(\\d)$/i.test(n);break;case\"skew\":o=!/(deg|\\d)$/i.test(n);break;case\"rotate\":o=!/(deg|\\d)$/i.test(n)}return o||(i(r).transformCache[t]=\"(\"+n+\")\"),i(r).transformCache[t]}}}();for(var e=0;e<S.Lists.colors.length;e++)!function(){var t=S.Lists.colors[e];S.Normalizations.registered[t]=function(e,r,n){switch(e){case\"name\":return t;case\"extract\":var o;if(S.RegEx.wrappedValueAlreadyExtracted.test(n))o=n;else{var i,s={black:\"rgb(0, 0, 0)\",blue:\"rgb(0, 0, 255)\",gray:\"rgb(128, 128, 128)\",green:\"rgb(0, 128, 0)\",red:\"rgb(255, 0, 0)\",white:\"rgb(255, 255, 255)\"};/^[A-z]+$/i.test(n)?i=s[n]!==a?s[n]:s.black:S.RegEx.isHex.test(n)?i=\"rgb(\"+S.Values.hexToRgb(n).join(\" \")+\")\":/^rgba?\\(/i.test(n)||(i=s.black),o=(i||n).toString().match(S.RegEx.valueUnwrap)[1].replace(/,(\\s+)?/g,\" \")}return 8>=d||3!==o.split(\" \").length||(o+=\" 1\"),o;case\"inject\":return 8>=d?4===n.split(\" \").length&&(n=n.split(/\\s+/).slice(0,3).join(\" \")):3===n.split(\" \").length&&(n+=\" 1\"),(8>=d?\"rgb\":\"rgba\")+\"(\"+n.replace(/\\s+/g,\",\").replace(/\\.(\\d)+(?=,)/g,\"\")+\")\"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t=\"width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2\";return(d||b.State.isAndroid&&!b.State.isChrome)&&(t+=\"|transform\"),new RegExp(\"^(\"+t+\")$\",\"i\").test(e)},prefixCheck:function(e){if(b.State.prefixMatches[e])return[b.State.prefixMatches[e],!0];for(var t=[\"\",\"Webkit\",\"Moz\",\"ms\",\"O\"],r=0,a=t.length;a>r;r++){var n;if(n=0===r?e:t[r]+e.replace(/^\\w/,function(e){return e.toUpperCase()}),m.isString(b.State.prefixElement.style[n]))return b.State.prefixMatches[e]=n,[n,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t,r=/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,a=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i;return e=e.replace(r,function(e,t,r,a){return t+t+r+r+a+a}),t=a.exec(e),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\\(0, ?0, ?0, ?0\\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?\"deg\":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?\"\":\"px\"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?\"inline\":/^(li)$/i.test(t)?\"list-item\":/^(tr)$/i.test(t)?\"table-row\":/^(table)$/i.test(t)?\"table\":/^(tbody)$/i.test(t)?\"table-row-group\":\"block\"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?\" \":\"\")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp(\"(^|\\\\s)\"+t.split(\" \").join(\"|\")+\"(\\\\s|$)\",\"gi\"),\" \")}},getPropertyValue:function(e,r,n,o){function s(e,r){function n(){u&&S.setPropertyValue(e,\"display\",\"none\")}var l=0;if(8>=d)l=f.css(e,r);else{var u=!1;if(/^(width|height)$/.test(r)&&0===S.getPropertyValue(e,\"display\")&&(u=!0,S.setPropertyValue(e,\"display\",S.Values.getDisplayType(e))),!o){if(\"height\"===r&&\"border-box\"!==S.getPropertyValue(e,\"boxSizing\").toString().toLowerCase()){var c=e.offsetHeight-(parseFloat(S.getPropertyValue(e,\"borderTopWidth\"))||0)-(parseFloat(S.getPropertyValue(e,\"borderBottomWidth\"))||0)-(parseFloat(S.getPropertyValue(e,\"paddingTop\"))||0)-(parseFloat(S.getPropertyValue(e,\"paddingBottom\"))||0);return n(),c}if(\"width\"===r&&\"border-box\"!==S.getPropertyValue(e,\"boxSizing\").toString().toLowerCase()){var p=e.offsetWidth-(parseFloat(S.getPropertyValue(e,\"borderLeftWidth\"))||0)-(parseFloat(S.getPropertyValue(e,\"borderRightWidth\"))||0)-(parseFloat(S.getPropertyValue(e,\"paddingLeft\"))||0)-(parseFloat(S.getPropertyValue(e,\"paddingRight\"))||0);return n(),p}}var g;g=i(e)===a?t.getComputedStyle(e,null):i(e).computedStyle?i(e).computedStyle:i(e).computedStyle=t.getComputedStyle(e,null),\"borderColor\"===r&&(r=\"borderTopColor\"),l=9===d&&\"filter\"===r?g.getPropertyValue(r):g[r],(\"\"===l||null===l)&&(l=e.style[r]),n()}if(\"auto\"===l&&/^(top|right|bottom|left)$/i.test(r)){var m=s(e,\"position\");(\"fixed\"===m||\"absolute\"===m&&/top|left/i.test(r))&&(l=f(e).position()[r]+\"px\")}return l}var l;if(S.Hooks.registered[r]){var u=r,c=S.Hooks.getRoot(u);n===a&&(n=S.getPropertyValue(e,S.Names.prefixCheck(c)[0])),S.Normalizations.registered[c]&&(n=S.Normalizations.registered[c](\"extract\",e,n)),l=S.Hooks.extractValue(u,n)}else if(S.Normalizations.registered[r]){var p,g;p=S.Normalizations.registered[r](\"name\",e),\"transform\"!==p&&(g=s(e,S.Names.prefixCheck(p)[0]),S.Values.isCSSNullValue(g)&&S.Hooks.templates[r]&&(g=S.Hooks.templates[r][1])),l=S.Normalizations.registered[r](\"extract\",e,g)}if(!/^[\\d-]/.test(l))if(i(e)&&i(e).isSVG&&S.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(m){l=0}else l=e.getAttribute(r);else l=s(e,S.Names.prefixCheck(r)[0]);return S.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&console.log(\"Get \"+r+\": \"+l),l},setPropertyValue:function(e,r,a,n,o){var s=r;if(\"scroll\"===r)o.container?o.container[\"scroll\"+o.direction]=a:\"Left\"===o.direction?t.scrollTo(a,o.alternateValue):t.scrollTo(o.alternateValue,a);else if(S.Normalizations.registered[r]&&\"transform\"===S.Normalizations.registered[r](\"name\",e))S.Normalizations.registered[r](\"inject\",e,a),s=\"transform\",a=i(e).transformCache[r];else{if(S.Hooks.registered[r]){var l=r,u=S.Hooks.getRoot(r);n=n||S.getPropertyValue(e,u),a=S.Hooks.injectValue(l,a,n),r=u}if(S.Normalizations.registered[r]&&(a=S.Normalizations.registered[r](\"inject\",e,a),r=S.Normalizations.registered[r](\"name\",e)),s=S.Names.prefixCheck(r)[0],8>=d)try{e.style[s]=a}catch(c){b.debug&&console.log(\"Browser does not support [\"+a+\"] for [\"+s+\"]\")}else i(e)&&i(e).isSVG&&S.Names.SVGAttribute(r)?e.setAttribute(r,a):e.style[s]=a;b.debug>=2&&console.log(\"Set \"+r+\" (\"+s+\"): \"+a)}return[s,a]},flushTransformCache:function(e){function t(t){return parseFloat(S.getPropertyValue(e,t))}var r=\"\";if((d||b.State.isAndroid&&!b.State.isChrome)&&i(e).isSVG){var a={translate:[t(\"translateX\"),t(\"translateY\")],skewX:[t(\"skewX\")],skewY:[t(\"skewY\")],scale:1!==t(\"scale\")?[t(\"scale\"),t(\"scale\")]:[t(\"scaleX\"),t(\"scaleY\")],rotate:[t(\"rotateZ\"),0,0]};f.each(i(e).transformCache,function(e){/^translate/i.test(e)?e=\"translate\":/^scale/i.test(e)?e=\"scale\":/^rotate/i.test(e)&&(e=\"rotate\"),a[e]&&(r+=e+\"(\"+a[e].join(\" \")+\") \",delete a[e])})}else{var n,o;f.each(i(e).transformCache,function(t){return n=i(e).transformCache[t],\"transformPerspective\"===t?(o=n,!0):(9===d&&\"rotateZ\"===t&&(t=\"rotate\"),void(r+=t+n+\" \"))}),o&&(r=\"perspective\"+o+\" \"+r)}S.setPropertyValue(e,\"transform\",r)}};S.Hooks.register(),S.Normalizations.register(),b.hook=function(e,t,r){var n=a;return e=o(e),f.each(e,function(e,o){if(i(o)===a&&b.init(o),r===a)n===a&&(n=b.CSS.getPropertyValue(o,t));else{var s=b.CSS.setPropertyValue(o,t,r);\"transform\"===s[0]&&b.CSS.flushTransformCache(o),n=s}}),n};var P=function(){function e(){return s?k.promise||null:l}function n(){function e(e){function p(e,t){var r=a,n=a,i=a;return m.isArray(e)?(r=e[0],!m.isArray(e[1])&&/^[\\d-]/.test(e[1])||m.isFunction(e[1])||S.RegEx.isHex.test(e[1])?i=e[1]:(m.isString(e[1])&&!S.RegEx.isHex.test(e[1])||m.isArray(e[1]))&&(n=t?e[1]:u(e[1],s.duration),e[2]!==a&&(i=e[2]))):r=e,t||(n=n||s.easing),m.isFunction(r)&&(r=r.call(o,V,w)),m.isFunction(i)&&(i=i.call(o,V,w)),[r||0,n,i]}function d(e,t){var r,a;return a=(t||\"0\").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return r=e,\"\"}),r||(r=S.Values.getUnitType(e)),[a,r]}function h(){var e={myParent:o.parentNode||r.body,position:S.getPropertyValue(o,\"position\"),fontSize:S.getPropertyValue(o,\"fontSize\")},a=e.position===L.lastPosition&&e.myParent===L.lastParent,n=e.fontSize===L.lastFontSize;L.lastParent=e.myParent,L.lastPosition=e.position,L.lastFontSize=e.fontSize;var s=100,l={};if(n&&a)l.emToPx=L.lastEmToPx,l.percentToPxWidth=L.lastPercentToPxWidth,l.percentToPxHeight=L.lastPercentToPxHeight;else{var u=i(o).isSVG?r.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\"):r.createElement(\"div\");b.init(u),e.myParent.appendChild(u),f.each([\"overflow\",\"overflowX\",\"overflowY\"],function(e,t){b.CSS.setPropertyValue(u,t,\"hidden\")}),b.CSS.setPropertyValue(u,\"position\",e.position),b.CSS.setPropertyValue(u,\"fontSize\",e.fontSize),b.CSS.setPropertyValue(u,\"boxSizing\",\"content-box\"),f.each([\"minWidth\",\"maxWidth\",\"width\",\"minHeight\",\"maxHeight\",\"height\"],function(e,t){b.CSS.setPropertyValue(u,t,s+\"%\")}),b.CSS.setPropertyValue(u,\"paddingLeft\",s+\"em\"),l.percentToPxWidth=L.lastPercentToPxWidth=(parseFloat(S.getPropertyValue(u,\"width\",null,!0))||1)/s,l.percentToPxHeight=L.lastPercentToPxHeight=(parseFloat(S.getPropertyValue(u,\"height\",null,!0))||1)/s,l.emToPx=L.lastEmToPx=(parseFloat(S.getPropertyValue(u,\"paddingLeft\"))||1)/s,e.myParent.removeChild(u)}return null===L.remToPx&&(L.remToPx=parseFloat(S.getPropertyValue(r.body,\"fontSize\"))||16),null===L.vwToPx&&(L.vwToPx=parseFloat(t.innerWidth)/100,L.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=L.remToPx,l.vwToPx=L.vwToPx,l.vhToPx=L.vhToPx,b.debug>=1&&console.log(\"Unit ratios: \"+JSON.stringify(l),o),l}if(s.begin&&0===V)try{s.begin.call(g,g)}catch(x){setTimeout(function(){throw x},1)}if(\"scroll\"===A){var P,C,T,F=/^x$/i.test(s.axis)?\"Left\":\"Top\",j=parseFloat(s.offset)||0;s.container?m.isWrapped(s.container)||m.isNode(s.container)?(s.container=s.container[0]||s.container,P=s.container[\"scroll\"+F],T=P+f(o).position()[F.toLowerCase()]+j):s.container=null:(P=b.State.scrollAnchor[b.State[\"scrollProperty\"+F]],C=b.State.scrollAnchor[b.State[\"scrollProperty\"+(\"Left\"===F?\"Top\":\"Left\")]],T=f(o).offset()[F.toLowerCase()]+j),l={scroll:{rootPropertyValue:!1,startValue:P,currentValue:P,endValue:T,unitType:\"\",easing:s.easing,scrollData:{container:s.container,direction:F,alternateValue:C}},element:o},b.debug&&console.log(\"tweensContainer (scroll): \",l.scroll,o)}else if(\"reverse\"===A){if(!i(o).tweensContainer)return void f.dequeue(o,s.queue);\"none\"===i(o).opts.display&&(i(o).opts.display=\"auto\"),\"hidden\"===i(o).opts.visibility&&(i(o).opts.visibility=\"visible\"),i(o).opts.loop=!1,i(o).opts.begin=null,i(o).opts.complete=null,v.easing||delete s.easing,v.duration||delete s.duration,s=f.extend({},i(o).opts,s);var E=f.extend(!0,{},i(o).tweensContainer);for(var H in E)if(\"element\"!==H){var N=E[H].startValue;E[H].startValue=E[H].currentValue=E[H].endValue,E[H].endValue=N,m.isEmptyObject(v)||(E[H].easing=s.easing),b.debug&&console.log(\"reverse tweensContainer (\"+H+\"): \"+JSON.stringify(E[H]),o)}l=E}else if(\"start\"===A){var E;i(o).tweensContainer&&i(o).isAnimating===!0&&(E=i(o).tweensContainer),f.each(y,function(e,t){if(RegExp(\"^\"+S.Lists.colors.join(\"$|^\")+\"$\").test(e)){var r=p(t,!0),n=r[0],o=r[1],i=r[2];if(S.RegEx.isHex.test(n)){for(var s=[\"Red\",\"Green\",\"Blue\"],l=S.Values.hexToRgb(n),u=i?S.Values.hexToRgb(i):a,c=0;c<s.length;c++){var f=[l[c]];o&&f.push(o),u!==a&&f.push(u[c]),y[e+s[c]]=f}delete y[e]}}});for(var z in y){var O=p(y[z]),q=O[0],$=O[1],M=O[2];z=S.Names.camelCase(z);var I=S.Hooks.getRoot(z),B=!1;if(i(o).isSVG||\"tween\"===I||S.Names.prefixCheck(I)[1]!==!1||S.Normalizations.registered[I]!==a){(s.display!==a&&null!==s.display&&\"none\"!==s.display||s.visibility!==a&&\"hidden\"!==s.visibility)&&/opacity|filter/.test(z)&&!M&&0!==q&&(M=0),s._cacheValues&&E&&E[z]?(M===a&&(M=E[z].endValue+E[z].unitType),B=i(o).rootPropertyValueCache[I]):S.Hooks.registered[z]?M===a?(B=S.getPropertyValue(o,I),M=S.getPropertyValue(o,z,B)):B=S.Hooks.templates[I][1]:M===a&&(M=S.getPropertyValue(o,z));var W,G,Y,D=!1;if(W=d(z,M),M=W[0],Y=W[1],W=d(z,q),q=W[0].replace(/^([+-\\/*])=/,function(e,t){return D=t,\"\"}),G=W[1],M=parseFloat(M)||0,q=parseFloat(q)||0,\"%\"===G&&(/^(fontSize|lineHeight)$/.test(z)?(q/=100,G=\"em\"):/^scale/.test(z)?(q/=100,G=\"\"):/(Red|Green|Blue)$/i.test(z)&&(q=q/100*255,G=\"\")),/[\\/*]/.test(D))G=Y;else if(Y!==G&&0!==M)if(0===q)G=Y;else{n=n||h();var Q=/margin|padding|left|right|width|text|word|letter/i.test(z)||/X$/.test(z)||\"x\"===z?\"x\":\"y\";switch(Y){case\"%\":M*=\"x\"===Q?n.percentToPxWidth:n.percentToPxHeight;break;case\"px\":break;default:M*=n[Y+\"ToPx\"]}switch(G){case\"%\":M*=1/(\"x\"===Q?n.percentToPxWidth:n.percentToPxHeight);break;case\"px\":break;default:M*=1/n[G+\"ToPx\"]}}switch(D){case\"+\":q=M+q;break;case\"-\":q=M-q;break;case\"*\":q=M*q;break;case\"/\":q=M/q}l[z]={rootPropertyValue:B,startValue:M,currentValue:M,endValue:q,unitType:G,easing:$},b.debug&&console.log(\"tweensContainer (\"+z+\"): \"+JSON.stringify(l[z]),o)}else b.debug&&console.log(\"Skipping [\"+I+\"] due to a lack of browser support.\")}l.element=o}l.element&&(S.Values.addClass(o,\"velocity-animating\"),R.push(l),\"\"===s.queue&&(i(o).tweensContainer=l,i(o).opts=s),i(o).isAnimating=!0,V===w-1?(b.State.calls.push([R,g,s,null,k.resolver]),b.State.isTicking===!1&&(b.State.isTicking=!0,c())):V++)}var n,o=this,s=f.extend({},b.defaults,v),l={};switch(i(o)===a&&b.init(o),parseFloat(s.delay)&&s.queue!==!1&&f.queue(o,s.queue,function(e){b.velocityQueueEntryFlag=!0,i(o).delayTimer={setTimeout:setTimeout(e,parseFloat(s.delay)),next:e}}),s.duration.toString().toLowerCase()){case\"fast\":s.duration=200;break;case\"normal\":s.duration=h;break;case\"slow\":s.duration=600;break;default:s.duration=parseFloat(s.duration)||1}b.mock!==!1&&(b.mock===!0?s.duration=s.delay=1:(s.duration*=parseFloat(b.mock)||1,s.delay*=parseFloat(b.mock)||1)),s.easing=u(s.easing,s.duration),s.begin&&!m.isFunction(s.begin)&&(s.begin=null),s.progress&&!m.isFunction(s.progress)&&(s.progress=null),s.complete&&!m.isFunction(s.complete)&&(s.complete=null),s.display!==a&&null!==s.display&&(s.display=s.display.toString().toLowerCase(),\"auto\"===s.display&&(s.display=b.CSS.Values.getDisplayType(o))),s.visibility!==a&&null!==s.visibility&&(s.visibility=s.visibility.toString().toLowerCase()),s.mobileHA=s.mobileHA&&b.State.isMobile&&!b.State.isGingerbread,s.queue===!1?s.delay?setTimeout(e,s.delay):e():f.queue(o,s.queue,function(t,r){return r===!0?(k.promise&&k.resolver(g),!0):(b.velocityQueueEntryFlag=!0,void e(t))}),\"\"!==s.queue&&\"fx\"!==s.queue||\"inprogress\"===f.queue(o)[0]||f.dequeue(o)}var s,l,d,g,y,v,x=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||m.isString(arguments[0].properties));if(m.isWrapped(this)?(s=!1,d=0,g=this,l=this):(s=!0,d=1,g=x?arguments[0].elements||arguments[0].e:arguments[0]),g=o(g)){x?(y=arguments[0].properties||arguments[0].p,v=arguments[0].options||arguments[0].o):(y=arguments[d],v=arguments[d+1]);var w=g.length,V=0;if(!/^(stop|finish)$/i.test(y)&&!f.isPlainObject(v)){var C=d+1;v={};for(var T=C;T<arguments.length;T++)m.isArray(arguments[T])||!/^(fast|normal|slow)$/i.test(arguments[T])&&!/^\\d/.test(arguments[T])?m.isString(arguments[T])||m.isArray(arguments[T])?v.easing=arguments[T]:m.isFunction(arguments[T])&&(v.complete=arguments[T]):v.duration=arguments[T]}var k={promise:null,resolver:null,rejecter:null};s&&b.Promise&&(k.promise=new b.Promise(function(e,t){k.resolver=e,k.rejecter=t}));var A;switch(y){case\"scroll\":A=\"scroll\";break;case\"reverse\":A=\"reverse\";break;case\"finish\":case\"stop\":f.each(g,function(e,t){i(t)&&i(t).delayTimer&&(clearTimeout(i(t).delayTimer.setTimeout),i(t).delayTimer.next&&i(t).delayTimer.next(),delete i(t).delayTimer)});var F=[];return f.each(b.State.calls,function(e,t){t&&f.each(t[1],function(r,n){var o=v===a?\"\":v;return o===!0||t[2].queue===o||v===a&&t[2].queue===!1?void f.each(g,function(r,a){a===n&&((v===!0||m.isString(v))&&(f.each(f.queue(a,m.isString(v)?v:\"\"),function(e,t){\nm.isFunction(t)&&t(null,!0)}),f.queue(a,m.isString(v)?v:\"\",[])),\"stop\"===y?(i(a)&&i(a).tweensContainer&&o!==!1&&f.each(i(a).tweensContainer,function(e,t){t.endValue=t.currentValue}),F.push(e)):\"finish\"===y&&(t[2].duration=1))}):!0})}),\"stop\"===y&&(f.each(F,function(e,t){p(t,!0)}),k.promise&&k.resolver(g)),e();default:if(!f.isPlainObject(y)||m.isEmptyObject(y)){if(m.isString(y)&&b.Redirects[y]){var j=f.extend({},v),E=j.duration,H=j.delay||0;return j.backwards===!0&&(g=f.extend(!0,[],g).reverse()),f.each(g,function(e,t){parseFloat(j.stagger)?j.delay=H+parseFloat(j.stagger)*e:m.isFunction(j.stagger)&&(j.delay=H+j.stagger.call(t,e,w)),j.drag&&(j.duration=parseFloat(E)||(/^(callout|transition)/.test(y)?1e3:h),j.duration=Math.max(j.duration*(j.backwards?1-e/w:(e+1)/w),.75*j.duration,200)),b.Redirects[y].call(t,t,j||{},e,w,g,k.promise?k:a)}),e()}var N=\"Velocity: First argument (\"+y+\") was not a property map, a known action, or a registered redirect. Aborting.\";return k.promise?k.rejecter(new Error(N)):console.log(N),e()}A=\"start\"}var L={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},R=[];f.each(g,function(e,t){m.isNode(t)&&n.call(t)});var z,j=f.extend({},b.defaults,v);if(j.loop=parseInt(j.loop),z=2*j.loop-1,j.loop)for(var O=0;z>O;O++){var q={delay:j.delay,progress:j.progress};O===z-1&&(q.display=j.display,q.visibility=j.visibility,q.complete=j.complete),P(g,\"reverse\",q)}return e()}};b=f.extend(P,b),b.animate=P;var w=t.requestAnimationFrame||g;return b.State.isMobile||r.hidden===a||r.addEventListener(\"visibilitychange\",function(){r.hidden?(w=function(e){return setTimeout(function(){e(!0)},16)},c()):w=t.requestAnimationFrame||g}),e.Velocity=b,e!==t&&(e.fn.velocity=P,e.fn.velocity.defaults=b.defaults),f.each([\"Down\",\"Up\"],function(e,t){b.Redirects[\"slide\"+t]=function(e,r,n,o,i,s){var l=f.extend({},r),u=l.begin,c=l.complete,p={height:\"\",marginTop:\"\",marginBottom:\"\",paddingTop:\"\",paddingBottom:\"\"},d={};l.display===a&&(l.display=\"Down\"===t?\"inline\"===b.CSS.Values.getDisplayType(e)?\"inline-block\":\"block\":\"none\"),l.begin=function(){u&&u.call(i,i);for(var r in p){d[r]=e.style[r];var a=b.CSS.getPropertyValue(e,r);p[r]=\"Down\"===t?[a,0]:[0,a]}d.overflow=e.style.overflow,e.style.overflow=\"hidden\"},l.complete=function(){for(var t in d)e.style[t]=d[t];c&&c.call(i,i),s&&s.resolver(i)},b(e,p,l)}}),f.each([\"In\",\"Out\"],function(e,t){b.Redirects[\"fade\"+t]=function(e,r,n,o,i,s){var l=f.extend({},r),u={opacity:\"In\"===t?1:0},c=l.complete;l.complete=n!==o-1?l.begin=null:function(){c&&c.call(i,i),s&&s.resolver(i)},l.display===a&&(l.display=\"In\"===t?\"auto\":\"none\"),b(this,u,l)}}),b}(window.jQuery||window.Zepto||window,window,document)}));\n"
  },
  {
    "path": "student/content/mdb/js/modules/waves.js",
    "content": "/*!\n * Waves v0.7.6\n * http://fian.my.id/Waves\n *\n * Copyright 2014-2018 Alfiana E. Sibuea and other contributors\n * Released under the MIT license\n * https://github.com/fians/Waves/blob/master/LICENSE\n */\n\n;(function(window, factory) {\n    'use strict';\n\n    // AMD. Register as an anonymous module.  Wrap in function so we have access\n    // to root via `this`.\n    if (typeof define === 'function' && define.amd) {\n        define([], function() {\n            window.Waves = factory.call(window);\n            return window.Waves;\n        });\n    }\n\n    // Node. Does not work with strict CommonJS, but only CommonJS-like\n    // environments that support module.exports, like Node.\n    else if (typeof exports === 'object') {\n        module.exports = factory.call(window);\n    }\n\n    // Browser globals.\n    else {\n        window.Waves = factory.call(window);\n    }\n})(typeof global === 'object' ? global : this, function() {\n    'use strict';\n\n    var Waves            = Waves || {};\n    var $$               = document.querySelectorAll.bind(document);\n    var toString         = Object.prototype.toString;\n    var isTouchAvailable = 'ontouchstart' in window;\n\n\n    // Find exact position of element\n    function isWindow(obj) {\n        return obj !== null && obj === obj.window;\n    }\n\n    function getWindow(elem) {\n        return isWindow(elem) ? elem : elem.nodeType === 9 && elem.defaultView;\n    }\n\n    function isObject(value) {\n        var type = typeof value;\n        return type === 'function' || type === 'object' && !!value;\n    }\n\n    function isDOMNode(obj) {\n        return isObject(obj) && obj.nodeType > 0;\n    }\n\n    function getWavesElements(nodes) {\n        var stringRepr = toString.call(nodes);\n\n        if (stringRepr === '[object String]') {\n            return $$(nodes);\n        } else if (isObject(nodes) && /^\\[object (Array|HTMLCollection|NodeList|Object)\\]$/.test(stringRepr) && nodes.hasOwnProperty('length')) {\n            return nodes;\n        } else if (isDOMNode(nodes)) {\n            return [nodes];\n        }\n\n        return [];\n    }\n\n    function offset(elem) {\n        var docElem, win,\n            box = { top: 0, left: 0 },\n            doc = elem && elem.ownerDocument;\n\n        docElem = doc.documentElement;\n\n        if (typeof elem.getBoundingClientRect !== typeof undefined) {\n            box = elem.getBoundingClientRect();\n        }\n        win = getWindow(doc);\n        return {\n            top: box.top + win.pageYOffset - docElem.clientTop,\n            left: box.left + win.pageXOffset - docElem.clientLeft\n        };\n    }\n\n    function convertStyle(styleObj) {\n        var style = '';\n\n        for (var prop in styleObj) {\n            if (styleObj.hasOwnProperty(prop)) {\n                style += (prop + ':' + styleObj[prop] + ';');\n            }\n        }\n\n        return style;\n    }\n\n    var Effect = {\n\n        // Effect duration\n        duration: 750,\n\n        // Effect delay (check for scroll before showing effect)\n        delay: 200,\n\n        show: function(e, element, velocity) {\n\n            // Disable right click\n            if (e.button === 2) {\n                return false;\n            }\n\n            element = element || this;\n\n            // Create ripple\n            var ripple = document.createElement('div');\n            ripple.className = 'waves-ripple waves-rippling';\n            element.appendChild(ripple);\n\n            // Get click coordinate and element width\n            var pos       = offset(element);\n            var relativeY = 0;\n            var relativeX = 0;\n            // Support for touch devices\n            if('touches' in e && e.touches.length) {\n                relativeY   = (e.touches[0].pageY - pos.top);\n                relativeX   = (e.touches[0].pageX - pos.left);\n            }\n            //Normal case\n            else {\n                relativeY   = (e.pageY - pos.top);\n                relativeX   = (e.pageX - pos.left);\n            }\n            // Support for synthetic events\n            relativeX = relativeX >= 0 ? relativeX : 0;\n            relativeY = relativeY >= 0 ? relativeY : 0;\n\n            var scale     = 'scale(' + ((element.clientWidth / 100) * 3) + ')';\n            var translate = 'translate(0,0)';\n\n            if (velocity) {\n                translate = 'translate(' + (velocity.x) + 'px, ' + (velocity.y) + 'px)';\n            }\n\n            // Attach data to element\n            ripple.setAttribute('data-hold', Date.now());\n            ripple.setAttribute('data-x', relativeX);\n            ripple.setAttribute('data-y', relativeY);\n            ripple.setAttribute('data-scale', scale);\n            ripple.setAttribute('data-translate', translate);\n\n            // Set ripple position\n            var rippleStyle = {\n                top: relativeY + 'px',\n                left: relativeX + 'px'\n            };\n\n            ripple.classList.add('waves-notransition');\n            ripple.setAttribute('style', convertStyle(rippleStyle));\n            ripple.classList.remove('waves-notransition');\n\n            // Scale the ripple\n            rippleStyle['-webkit-transform'] = scale + ' ' + translate;\n            rippleStyle['-moz-transform'] = scale + ' ' + translate;\n            rippleStyle['-ms-transform'] = scale + ' ' + translate;\n            rippleStyle['-o-transform'] = scale + ' ' + translate;\n            rippleStyle.transform = scale + ' ' + translate;\n            rippleStyle.opacity = '1';\n\n            var duration = e.type === 'mousemove' ? 2500 : Effect.duration;\n            rippleStyle['-webkit-transition-duration'] = duration + 'ms';\n            rippleStyle['-moz-transition-duration']    = duration + 'ms';\n            rippleStyle['-o-transition-duration']      = duration + 'ms';\n            rippleStyle['transition-duration']         = duration + 'ms';\n\n            ripple.setAttribute('style', convertStyle(rippleStyle));\n        },\n\n        hide: function(e, element) {\n            element = element || this;\n\n            var ripples = element.getElementsByClassName('waves-rippling');\n\n            for (var i = 0, len = ripples.length; i < len; i++) {\n                removeRipple(e, element, ripples[i]);\n            }\n\n            if (isTouchAvailable) {\n                element.removeEventListener('touchend', Effect.hide);\n                element.removeEventListener('touchcancel', Effect.hide);\n            }\n\n            element.removeEventListener('mouseup', Effect.hide);\n            element.removeEventListener('mouseleave', Effect.hide);\n        }\n    };\n\n    /**\n     * Collection of wrapper for HTML element that only have single tag\n     * like <input> and <img>\n     */\n    var TagWrapper = {\n\n        // Wrap <input> tag so it can perform the effect\n        input: function(element) {\n\n            var parent = element.parentNode;\n\n            // If input already have parent just pass through\n            if (parent.tagName.toLowerCase() === 'span' && parent.classList.contains('waves-effect')) {\n                return;\n            }\n\n            // Put element class and style to the specified parent\n            var wrapper       = document.createElement('span');\n            wrapper.className = 'waves-input-wrapper';\n            // element.className = 'waves-button-input';\n\n            // Put element as child\n            parent.replaceChild(wrapper, element);\n            wrapper.appendChild(element);\n\n        },\n\n        // Wrap <img> tag so it can perform the effect\n        img: function(element) {\n\n            var parent = element.parentNode;\n\n            // If input already have parent just pass through\n            if (parent.tagName.toLowerCase() === 'i' && parent.classList.contains('waves-effect')) {\n                return;\n            }\n\n            // Put element as child\n            var wrapper  = document.createElement('i');\n            parent.replaceChild(wrapper, element);\n            wrapper.appendChild(element);\n\n        }\n    };\n\n    /**\n     * Hide the effect and remove the ripple. Must be\n     * a separate function to pass the JSLint...\n     */\n    function removeRipple(e, el, ripple) {\n\n        // Check if the ripple still exist\n        if (!ripple) {\n            return;\n        }\n\n        ripple.classList.remove('waves-rippling');\n\n        var relativeX = ripple.getAttribute('data-x');\n        var relativeY = ripple.getAttribute('data-y');\n        var scale     = ripple.getAttribute('data-scale');\n        var translate = ripple.getAttribute('data-translate');\n\n        // Get delay beetween mousedown and mouse leave\n        var diff = Date.now() - Number(ripple.getAttribute('data-hold'));\n        var delay = 350 - diff;\n\n        if (delay < 0) {\n            delay = 0;\n        }\n\n        if (e.type === 'mousemove') {\n            delay = 150;\n        }\n\n        // Fade out ripple after delay\n        var duration = e.type === 'mousemove' ? 2500 : Effect.duration;\n\n        setTimeout(function() {\n\n            var style = {\n                top: relativeY + 'px',\n                left: relativeX + 'px',\n                opacity: '0',\n\n                // Duration\n                '-webkit-transition-duration': duration + 'ms',\n                '-moz-transition-duration': duration + 'ms',\n                '-o-transition-duration': duration + 'ms',\n                'transition-duration': duration + 'ms',\n                '-webkit-transform': scale + ' ' + translate,\n                '-moz-transform': scale + ' ' + translate,\n                '-ms-transform': scale + ' ' + translate,\n                '-o-transform': scale + ' ' + translate,\n                'transform': scale + ' ' + translate\n            };\n\n            ripple.setAttribute('style', convertStyle(style));\n\n            setTimeout(function() {\n                try {\n                    el.removeChild(ripple);\n                } catch (e) {\n                    return false;\n                }\n            }, duration);\n\n        }, delay);\n    }\n\n\n    /**\n     * Disable mousedown event for 500ms during and after touch\n     */\n    var TouchHandler = {\n\n        /* uses an integer rather than bool so there's no issues with\n         * needing to clear timeouts if another touch event occurred\n         * within the 500ms. Cannot mouseup between touchstart and\n         * touchend, nor in the 500ms after touchend. */\n        touches: 0,\n\n        allowEvent: function(e) {\n\n            var allow = true;\n\n            if (/^(mousedown|mousemove)$/.test(e.type) && TouchHandler.touches) {\n                allow = false;\n            }\n\n            return allow;\n        },\n        registerEvent: function(e) {\n            var eType = e.type;\n\n            if (eType === 'touchstart') {\n\n                TouchHandler.touches += 1; // push\n\n            } else if (/^(touchend|touchcancel)$/.test(eType)) {\n\n                setTimeout(function() {\n                    if (TouchHandler.touches) {\n                        TouchHandler.touches -= 1; // pop after 500ms\n                    }\n                }, 500);\n\n            }\n        }\n    };\n\n\n    /**\n     * Delegated click handler for .waves-effect element.\n     * returns null when .waves-effect element not in \"click tree\"\n     */\n    function getWavesEffectElement(e) {\n\n        if (TouchHandler.allowEvent(e) === false) {\n            return null;\n        }\n\n        var element = null;\n        var target = e.target || e.srcElement;\n\n        while (target.parentElement) {\n            if ( (!(target instanceof SVGElement)) && target.classList.contains('waves-effect')) {\n                element = target;\n                break;\n            }\n            target = target.parentElement;\n        }\n\n        return element;\n    }\n\n    /**\n     * Bubble the click and show effect if .waves-effect elem was found\n     */\n    function showEffect(e) {\n\n        // Disable effect if element has \"disabled\" property on it\n        // In some cases, the event is not triggered by the current element\n        // if (e.target.getAttribute('disabled') !== null) {\n        //     return;\n        // }\n\n        var element = getWavesEffectElement(e);\n\n        if (element !== null) {\n\n            // Make it sure the element has either disabled property, disabled attribute or 'disabled' class\n            if (element.disabled || element.getAttribute('disabled') || element.classList.contains('disabled')) {\n                return;\n            }\n\n            TouchHandler.registerEvent(e);\n\n            if (e.type === 'touchstart' && Effect.delay) {\n\n                var hidden = false;\n\n                var timer = setTimeout(function () {\n                    timer = null;\n                    Effect.show(e, element);\n                }, Effect.delay);\n\n                var hideEffect = function(hideEvent) {\n\n                    // if touch hasn't moved, and effect not yet started: start effect now\n                    if (timer) {\n                        clearTimeout(timer);\n                        timer = null;\n                        Effect.show(e, element);\n                    }\n                    if (!hidden) {\n                        hidden = true;\n                        Effect.hide(hideEvent, element);\n                    }\n\n                    removeListeners();\n                };\n\n                var touchMove = function(moveEvent) {\n                    if (timer) {\n                        clearTimeout(timer);\n                        timer = null;\n                    }\n                    hideEffect(moveEvent);\n\n                    removeListeners();\n                };\n\n                element.addEventListener('touchmove', touchMove, false);\n                element.addEventListener('touchend', hideEffect, false);\n                element.addEventListener('touchcancel', hideEffect, false);\n\n                var removeListeners = function() {\n                    element.removeEventListener('touchmove', touchMove);\n                    element.removeEventListener('touchend', hideEffect);\n                    element.removeEventListener('touchcancel', hideEffect);\n                };\n            } else {\n\n                Effect.show(e, element);\n\n                if (isTouchAvailable) {\n                    element.addEventListener('touchend', Effect.hide, false);\n                    element.addEventListener('touchcancel', Effect.hide, false);\n                }\n\n                element.addEventListener('mouseup', Effect.hide, false);\n                element.addEventListener('mouseleave', Effect.hide, false);\n            }\n        }\n    }\n\n    Waves.init = function(options) {\n        var body = document.body;\n\n        options = options || {};\n\n        if ('duration' in options) {\n            Effect.duration = options.duration;\n        }\n\n        if ('delay' in options) {\n            Effect.delay = options.delay;\n        }\n\n        if (isTouchAvailable) {\n            body.addEventListener('touchstart', showEffect, false);\n            body.addEventListener('touchcancel', TouchHandler.registerEvent, false);\n            body.addEventListener('touchend', TouchHandler.registerEvent, false);\n        }\n\n        body.addEventListener('mousedown', showEffect, false);\n    };\n\n\n    /**\n     * Attach Waves to dynamically loaded inputs, or add .waves-effect and other\n     * waves classes to a set of elements. Set drag to true if the ripple mouseover\n     * or skimming effect should be applied to the elements.\n     */\n    Waves.attach = function(elements, classes) {\n\n        elements = getWavesElements(elements);\n\n        if (toString.call(classes) === '[object Array]') {\n            classes = classes.join(' ');\n        }\n\n        classes = classes ? ' ' + classes : '';\n\n        var element, tagName;\n\n        for (var i = 0, len = elements.length; i < len; i++) {\n\n            element = elements[i];\n            tagName = element.tagName.toLowerCase();\n\n            if (['input', 'img'].indexOf(tagName) !== -1) {\n                TagWrapper[tagName](element);\n                element = element.parentElement;\n            }\n\n            if (element.className.indexOf('waves-effect') === -1) {\n                element.className += ' waves-effect' + classes;\n            }\n        }\n    };\n\n\n    /**\n     * Cause a ripple to appear in an element via code.\n     */\n    Waves.ripple = function(elements, options) {\n        elements = getWavesElements(elements);\n        var elementsLen = elements.length;\n\n        options          = options || {};\n        options.wait     = options.wait || 0;\n        options.position = options.position || null; // default = centre of element\n\n\n        if (elementsLen) {\n            var element, pos, off, centre = {}, i = 0;\n            var mousedown = {\n                type: 'mousedown',\n                button: 1\n            };\n            var hideRipple = function(mouseup, element) {\n                return function() {\n                    Effect.hide(mouseup, element);\n                };\n            };\n\n            for (; i < elementsLen; i++) {\n                element = elements[i];\n                pos = options.position || {\n                    x: element.clientWidth / 2,\n                    y: element.clientHeight / 2\n                };\n\n                off      = offset(element);\n                centre.x = off.left + pos.x;\n                centre.y = off.top + pos.y;\n\n                mousedown.pageX = centre.x;\n                mousedown.pageY = centre.y;\n\n                Effect.show(mousedown, element);\n\n                if (options.wait >= 0 && options.wait !== null) {\n                    var mouseup = {\n                        type: 'mouseup',\n                        button: 1\n                    };\n\n                    setTimeout(hideRipple(mouseup, element), options.wait);\n                }\n            }\n        }\n    };\n\n    /**\n     * Remove all ripples from an element.\n     */\n    Waves.calm = function(elements) {\n        elements = getWavesElements(elements);\n        var mouseup = {\n            type: 'mouseup',\n            button: 1\n        };\n\n        for (var i = 0, len = elements.length; i < len; i++) {\n            Effect.hide(mouseup, elements[i]);\n        }\n    };\n\n    /**\n     * Deprecated API fallback\n     */\n    Waves.displayEffect = function(options) {\n        console.error('Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect');\n        Waves.init(options);\n    };\n\n    return Waves;\n});\n\n//Initialization\nWaves.attach('.btn:not(.btn-flat), .btn-floating', ['waves-light']);\nWaves.attach('.btn-flat', ['waves-effect']);\nWaves.attach('.chip', ['waves-effect']);\nWaves.attach('.view a .mask', ['waves-light']);\nWaves.attach('.waves-light', ['waves-light']);\nWaves.attach('.navbar-nav a:not(.navbar-brand), .nav-icons li a, .nav-tabs .nav-item:not(.dropdown)', ['waves-light']);\nWaves.attach('.pager li a', ['waves-light']);\nWaves.attach('.pagination .page-item .page-link', ['waves-effect']);\nWaves.init();"
  },
  {
    "path": "student/content/mdb/js/modules/wow.js",
    "content": "'use strict';\n\nvar WOW;\n\n(function($) {\n\n    WOW = function WOW() {\n\n        return {\n\n            init: function init() {\n\n                var animationName = [];\n\n                var once = 1;\n\n                function mdbWow() {\n\n                    var windowHeight = window.innerHeight;\n                    var scroll = window.scrollY;\n\n                    $('.wow').each(function() {\n\n                        if ($(this).css('visibility') == 'visible') {\n                            return;\n                        }\n\n                        if (windowHeight + scroll - 100 > getOffset(this) && scroll < getOffset(this) || windowHeight + scroll - 100 > getOffset(this) + $(this).height() && scroll < getOffset(this) + $(this).height() || windowHeight + scroll == $(document).height() && getOffset(this) + 100 > $(document).height()) {\n\n                            var index = $(this).index('.wow');\n\n                            var delay = $(this).attr('data-wow-delay');\n\n                            if (delay) {\n\n                                delay = $(this).attr('data-wow-delay').slice(0, -1\n\n                                );\n                                var self = this;\n\n                                var timeout = parseFloat(delay) * 1000;\n\n                                $(self).addClass('animated');\n                                $(self).css({ 'visibility': 'visible' });\n                                $(self).css({ 'animation-delay': delay });\n                                $(self).css({ 'animation-name': animationName[index] });\n\n                                var removeTime = $(this).css('animation-duration').slice(0, -1) * 1000;\n\n                                if ($(this).attr('data-wow-delay')) {\n\n                                    removeTime += $(this).attr('data-wow-delay').slice(0, -1) * 1000;\n                                }\n\n                                var self = this;\n\n                                setTimeout(function() {\n\n                                    $(self).removeClass('animated');\n                                }, removeTime);\n                            } else {\n\n                                $(this).addClass('animated');\n                                $(this).css({ 'visibility': 'visible' });\n                                $(this).css({ 'animation-name': animationName[index] });\n\n                                var removeTime = $(this).css('animation-duration').slice(0, -1) * 1000;\n\n                                var self = this;\n\n                                setTimeout(function() {\n\n                                    $(self).removeClass('animated');\n                                }, removeTime);\n                            }\n                        }\n                    });\n                }\n\n                function appear() {\n\n                    $('.wow').each(function() {\n\n                        var index = $(this).index('.wow');\n\n                        var delay = $(this).attr('data-wow-delay');\n\n                        if (delay) {\n\n                            delay = $(this).attr('data-wow-delay').slice(0, -1);\n\n                            var timeout = parseFloat(delay) * 1000;\n\n                            $(this).addClass('animated');\n                            $(this).css({ 'visibility': 'visible' });\n                            $(this).css({ 'animation-delay': delay + 's' });\n                            $(this).css({ 'animation-name': animationName[index] });\n                        } else {\n\n                            $(this).addClass('animated');\n                            $(this).css({ 'visibility': 'visible' });\n                            $(this).css({ 'animation-name': animationName[index] });\n                        }\n                    });\n                }\n\n                function hide() {\n\n                    var windowHeight = window.innerHeight;\n                    var scroll = window.scrollY;\n\n                    $('.wow.animated').each(function() {\n\n                        if (windowHeight + scroll - 100 > getOffset(this) && scroll > getOffset(this) + 100 || windowHeight + scroll - 100 < getOffset(this) && scroll < getOffset(this) + 100 || getOffset(this) + $(this).height > $(document).height() - 100) {\n\n                            $(this).removeClass('animated');\n                            $(this).css({ 'animation-name': 'none' });\n                            $(this).css({ 'visibility': 'hidden' });\n                        } else {\n\n                            var removeTime = $(this).css('animation-duration').slice(0, -1) * 1000;\n\n                            if ($(this).attr('data-wow-delay')) {\n\n                                removeTime += $(this).attr('data-wow-delay').slice(0, -1) * 1000;\n                            }\n\n                            var self = this;\n\n                            setTimeout(function() {\n\n                                $(self).removeClass('animated');\n                            }, removeTime);\n                        }\n                    });\n\n                    mdbWow();\n\n                    once--;\n                }\n\n                function getOffset(elem) {\n\n                    var box = elem.getBoundingClientRect();\n\n                    var body = document.body;\n                    var docEl = document.documentElement;\n\n                    var scrollTop = window.pageYOffset || docEl.scrollTop || body.scrollTop;\n\n                    var clientTop = docEl.clientTop || body.clientTop || 0;\n\n                    var top = box.top + scrollTop - clientTop;\n\n                    return Math.round(top);\n                }\n\n                $('.wow').each(function() {\n\n                    $(this).css({ 'visibility': 'hidden' });\n                    animationName[$(this).index('.wow')] = $(this).css('animation-name');\n                    $(this).css({ 'animation-name': 'none' });\n                });\n\n                $(window).scroll(function() {\n\n                    if (once) {\n\n                        hide();\n                    } else {\n\n                        mdbWow();\n                    }\n                });\n\n                appear();\n            }\n        };\n    };\n})(jQuery);\n"
  },
  {
    "path": "student/content/mdb/scss/_custom-styles.scss",
    "content": "// Your custom styles"
  },
  {
    "path": "student/content/mdb/scss/_custom-variables.scss",
    "content": "// Your custom variables"
  },
  {
    "path": "student/content/mdb/scss/addons/_datatables-select.scss",
    "content": "/*\n * MDBootstrap integration with Datatables\n * Learn more: https://mdbootstrap.com/docs/jquery/tables/datatables/\n * About MDBootstrap: https://mdbootstrap.com/\n *\n * This combined file was created taking that code from this webstie:\n\n *  https://cdn.datatables.net/select/1.2.7/css/select.dataTables.min.css\n *\n *\n * To rebuild or modify this file with the latest versions of the included\n * software please visit:\n *   https://datatables.net/download/#bs4/dt-1.10.18\n *\n * Included libraries:\n *   DataTables 1.10.18\n */\n\n\n table.dataTable {\n  tbody > tr {\n    &.selected, > .selected {\n      background-color: #B0BED9;\n    }\n  }\n  &.stripe tbody > tr.odd {\n    &.selected, > .selected {\n      background-color: #acbad4;\n    }\n  }\n  &.display tbody > tr.odd {\n    &.selected, > .selected {\n      background-color: #acbad4;\n    }\n  }\n  &.hover tbody > tr {\n    &.selected:hover, > .selected:hover {\n      background-color: #aab7d1;\n    }\n  }\n  &.display tbody > tr {\n    &.selected:hover, > .selected:hover {\n      background-color: #aab7d1;\n    }\n  }\n  &.order-column tbody > tr {\n    &.selected > {\n      .sorting_1, .sorting_2, .sorting_3 {\n        background-color: #acbad5;\n      }\n    }\n    > .selected {\n      background-color: #acbad5;\n    }\n  }\n  &.display tbody > tr {\n    &.selected > {\n      .sorting_1, .sorting_2, .sorting_3 {\n        background-color: #acbad5;\n      }\n    }\n    > .selected {\n      background-color: #acbad5;\n    }\n    &.odd.selected > .sorting_1 {\n      background-color: #a6b4cd;\n    }\n  }\n  &.order-column.stripe tbody > tr.odd.selected > .sorting_1 {\n    background-color: #a6b4cd;\n  }\n  &.display tbody > tr.odd.selected > .sorting_2, &.order-column.stripe tbody > tr.odd.selected > .sorting_2 {\n    background-color: #a8b5cf;\n  }\n  &.display tbody > tr.odd.selected > .sorting_3, &.order-column.stripe tbody > tr.odd.selected > .sorting_3 {\n    background-color: #a9b7d1;\n  }\n  &.display tbody > tr.even.selected > .sorting_1, &.order-column.stripe tbody > tr.even.selected > .sorting_1 {\n    background-color: #acbad5;\n  }\n  &.display tbody > tr.even.selected > .sorting_2, &.order-column.stripe tbody > tr.even.selected > .sorting_2 {\n    background-color: #aebcd6;\n  }\n  &.display tbody > tr.even.selected > .sorting_3, &.order-column.stripe tbody > tr.even.selected > .sorting_3 {\n    background-color: #afbdd8;\n  }\n  &.display tbody > tr.odd > .selected, &.order-column.stripe tbody > tr.odd > .selected {\n    background-color: #a6b4cd;\n  }\n  &.display tbody > tr.even > .selected, &.order-column.stripe tbody > tr.even > .selected {\n    background-color: #acbad5;\n  }\n  &.display tbody > tr.selected:hover > .sorting_1, &.order-column.hover tbody > tr.selected:hover > .sorting_1 {\n    background-color: #a2aec7;\n  }\n  &.display tbody > tr.selected:hover > .sorting_2, &.order-column.hover tbody > tr.selected:hover > .sorting_2 {\n    background-color: #a3b0c9;\n  }\n  &.display tbody > tr.selected:hover > .sorting_3, &.order-column.hover tbody > tr.selected:hover > .sorting_3 {\n    background-color: #a5b2cb;\n  }\n  &.display tbody > tr {\n    &:hover > .selected, > .selected:hover {\n      background-color: #a2aec7;\n    }\n  }\n  &.order-column.hover tbody > tr {\n    &:hover > .selected, > .selected:hover {\n      background-color: #a2aec7;\n    }\n  }\n  tbody {\n    td.select-checkbox, th.select-checkbox {\n      position: relative;\n    }\n    td.select-checkbox {\n      &:before, &:after {\n        display: block;\n        position: absolute;\n        top: 1.2em;\n        left: 50%;\n        width: 12px;\n        height: 12px;\n        box-sizing: border-box;\n      }\n    }\n    th.select-checkbox {\n      &:before, &:after {\n        display: block;\n        position: absolute;\n        top: 1.2em;\n        left: 50%;\n        width: 12px;\n        height: 12px;\n        box-sizing: border-box;\n      }\n    }\n    td.select-checkbox:before, th.select-checkbox:before {\n      content: ' ';\n      margin-top: 4px;\n      margin-left: -6px;\n      border: 1px solid black;\n      border-radius: 3px;\n    }\n  }\n  tr.selected {\n    td.select-checkbox:after, th.select-checkbox:after {\n      content: '\\2714';\n      margin-top: 0px;\n      margin-left: -4px;\n      text-align: center;\n      text-shadow: 1px 1px #B0BED9, -1px -1px #B0BED9, 1px -1px #B0BED9, -1px 1px #B0BED9;\n    }\n  }\n}\n\ndiv.dataTables_wrapper span {\n  &.select-info, &.select-item {\n    margin-left: 0.5em;\n  }\n}\n\n@media screen and (max-width: 640px) {\n  div.dataTables_wrapper span {\n    &.select-info, &.select-item {\n      margin-left: 0;\n      display: block;\n    }\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/addons/_datatables.scss",
    "content": "/*\n * MDBootstrap integration with Datatables\n * Learn more: https://mdbootstrap.com/docs/jquery/tables/datatables/\n * About MDBootstrap: https://mdbootstrap.com/\n *\n * This combined file was created by the DataTables downloader builder:\n *   https://datatables.net/download\n *\n * To rebuild or modify this file with the latest versions of the included\n * software please visit:\n *   https://datatables.net/download/#bs4/dt-1.10.18\n *\n * Included libraries:\n *   DataTables 1.10.18\n */\n\n table.dataTable thead {\n  cursor: pointer;\n  > tr > {\n    th:active, td:active {\n      outline: none;\n    }\n  }\n}\n\ndiv.dataTables_wrapper div {\n  &.dataTables_length {\n    &.d-flex.flex-row {\n      label {\n        margin-top: 1.2rem;\n        margin-right: 1rem;\n      }\n      .select-wrapper.mdb-select {\n        span, .select-dropdown {\n          margin-top: 1rem;\n        }\n      }\n    }\n    label {\n      text-align: left;\n      font-weight: normal;\n      padding-top: .5rem;\n      padding-bottom: .5rem;\n    }\n  }\n  &.dataTables_filter label {\n    text-align: left;\n    font-weight: normal;\n    padding-top: .5rem;\n    padding-bottom: .5rem;\n  }\n  &.dataTables_length {\n    select, input {\n      width: auto;\n    }\n  }\n  &.dataTables_filter {\n    select {\n      width: auto;\n    }\n    input {\n      width: auto;\n      margin-left: .5rem;\n      display: inline-block;\n    }\n    text-align: right;\n  }\n  &.dataTables_info {\n    font-weight: normal;\n    padding-top: 1rem;\n    padding-bottom: 1rem;\n  }\n  &.dataTables_paginate {\n    font-weight: normal;\n    padding-top: 1rem;\n    padding-bottom: 1rem;\n    text-align: right;\n    margin: 0;\n    ul.pagination {\n      -webkit-box-pack: end;\n      -webkit-justify-content: flex-end;\n      -ms-flex-pack: end;\n      justify-content: flex-end;\n      .page-item {\n        &.active .page-link:focus {\n          background-color: #4285f4;\n        }\n        .page-link:focus {\n          -webkit-box-shadow: none;\n          box-shadow: none;\n        }\n      }\n    }\n  }\n}\n\n@media (max-width: 767px) {\n  div.dataTables_wrapper div {\n    .dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate ul.pagination {\n      text-align: center;\n      -webkit-box-pack: center;\n      -webkit-justify-content: center;\n      -ms-flex-pack: center;\n      justify-content: center;\n    }\n  }\n}\n\n.bs-select select {\n  display: inline-block !important;\n}\n\ntable.dataTable thead {\n  > tr > {\n    th {\n      &.sorting_asc, &.sorting_desc, &.sorting {\n        padding-right: 30px;\n      }\n    }\n    td {\n      &.sorting_asc, &.sorting_desc, &.sorting {\n        padding-right: 30px;\n      }\n    }\n    th:active, td:active {\n      outline: none;\n    }\n  }\n  .sorting, .sorting_asc, .sorting_desc, .sorting_asc_disabled, .sorting_desc_disabled {\n    cursor: pointer;\n    position: relative;\n  }\n  .sorting {\n    &:before, &:after {\n      position: absolute;\n      bottom: 0.9em;\n      display: block;\n      opacity: 0.3;\n    }\n  }\n  .sorting_asc {\n    &:before, &:after {\n      position: absolute;\n      bottom: 0.9em;\n      display: block;\n      opacity: 0.3;\n    }\n  }\n  .sorting_desc {\n    &:before, &:after {\n      position: absolute;\n      bottom: 0.9em;\n      display: block;\n      opacity: 0.3;\n    }\n  }\n  .sorting_asc_disabled {\n    &:before, &:after {\n      position: absolute;\n      bottom: 0.9em;\n      display: block;\n      opacity: 0.3;\n    }\n  }\n  .sorting_desc_disabled {\n    &:before, &:after {\n      position: absolute;\n      bottom: 0.9em;\n      display: block;\n      opacity: 0.3;\n    }\n  }\n  .sorting:before, .sorting_asc:before, .sorting_desc:before, .sorting_asc_disabled:before, .sorting_desc_disabled:before {\n    right: 1em;\n    content: \"\\f0de\";\n    font-family: 'Font Awesome\\ 5 Free';\n    font-weight: 900;\n    font-size: 1rem;\n  }\n  .sorting:after, .sorting_asc:after, .sorting_desc:after, .sorting_asc_disabled:after, .sorting_desc_disabled:after {\n    right: 0.5em;\n    content: \"\\f0dd\";\n    font-family: 'Font Awesome\\ 5 Free';\n    font-weight: 900;\n    right: 16px;\n    font-size: 1rem;\n  }\n  .sorting_asc:before, .sorting_desc:after {\n    opacity: 1;\n  }\n  .sorting_asc_disabled:before, .sorting_desc_disabled:after {\n    opacity: 0;\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/core/_colors.scss",
    "content": "// Colors\n$mdb-color-lighten-5:  #d0d6e2 !default;\n$mdb-color-lighten-4:  #b1bace !default;\n$mdb-color-lighten-3:  #929fba !default;\n$mdb-color-lighten-2:  #7283a7 !default;\n$mdb-color-lighten-1:  #59698d !default;\n$mdb-color-base:       #45526e !default;\n$mdb-color-darken-1:   #3b465e !default;\n$mdb-color-darken-2:   #2e3951 !default;\n$mdb-color-darken-3:   #1c2a48 !default;\n$mdb-color-darken-4:   #1c2331 !default;\n\n$red-lighten-5:  #ffebee !default;\n$red-lighten-4:  #ffcdd2 !default;\n$red-lighten-3:  #ef9a9a !default;\n$red-lighten-2:  #e57373 !default;\n$red-lighten-1:  #ef5350 !default;\n$red-base:       #f44336 !default;\n$red-darken-1:   #e53935 !default;\n$red-darken-2:   #d32f2f !default;\n$red-darken-3:   #c62828 !default;\n$red-darken-4:   #b71c1c !default;\n$red-accent-1:   #ff8a80 !default;\n$red-accent-2:   #ff5252 !default;\n$red-accent-3:   #ff1744 !default;\n$red-accent-4:   #d50000 !default;\n\n$pink-lighten-5:  #fce4ec !default;\n$pink-lighten-4:  #f8bbd0 !default;\n$pink-lighten-3:  #f48fb1 !default;\n$pink-lighten-2:  #f06292 !default;\n$pink-lighten-1:  #ec407a !default;\n$pink-base:       #e91e63 !default;\n$pink-darken-1:   #d81b60 !default;\n$pink-darken-2:   #c2185b !default;\n$pink-darken-3:   #ad1457 !default;\n$pink-darken-4:   #880e4f !default;\n$pink-accent-1:   #ff80ab !default;\n$pink-accent-2:   #ff4081 !default;\n$pink-accent-3:   #f50057 !default;\n$pink-accent-4:   #c51162 !default;\n\n$purple-lighten-5:  #f3e5f5 !default;\n$purple-lighten-4:  #e1bee7 !default;\n$purple-lighten-3:  #ce93d8 !default;\n$purple-lighten-2:  #ba68c8 !default;\n$purple-lighten-1:  #ab47bc !default;\n$purple-base:       #9c27b0 !default;\n$purple-darken-1:   #8e24aa !default;\n$purple-darken-2:   #7b1fa2 !default;\n$purple-darken-3:   #6a1b9a !default;\n$purple-darken-4:   #4a148c !default;\n$purple-accent-1:   #ea80fc !default;\n$purple-accent-2:   #e040fb !default;\n$purple-accent-3:   #d500f9 !default;\n$purple-accent-4:   #aa00ff !default;\n\n$deep-purple-lighten-5:  #ede7f6 !default;\n$deep-purple-lighten-4:  #d1c4e9 !default;\n$deep-purple-lighten-3:  #b39ddb !default;\n$deep-purple-lighten-2:  #9575cd !default;\n$deep-purple-lighten-1:  #7e57c2 !default;\n$deep-purple-base:       #673ab7 !default;\n$deep-purple-darken-1:   #5e35b1 !default;\n$deep-purple-darken-2:   #512da8 !default;\n$deep-purple-darken-3:   #4527a0 !default;\n$deep-purple-darken-4:   #311b92 !default;\n$deep-purple-accent-1:   #b388ff !default;\n$deep-purple-accent-2:   #7c4dff !default;\n$deep-purple-accent-3:   #651fff !default;\n$deep-purple-accent-4:   #6200ea !default;\n\n$indigo-lighten-5:  #e8eaf6 !default;\n$indigo-lighten-4:  #c5cae9 !default;\n$indigo-lighten-3:  #9fa8da !default;\n$indigo-lighten-2:  #7986cb !default;\n$indigo-lighten-1:  #5c6bc0 !default;\n$indigo-base:       #3f51b5 !default;\n$indigo-darken-1:   #3949ab !default;\n$indigo-darken-2:   #303f9f !default;\n$indigo-darken-3:   #283593 !default;\n$indigo-darken-4:   #1a237e !default;\n$indigo-accent-1:   #8c9eff !default;\n$indigo-accent-2:   #536dfe !default;\n$indigo-accent-3:   #3d5afe !default;\n$indigo-accent-4:   #304ffe !default;\n\n$blue-lighten-5:  #e3f2fd !default;\n$blue-lighten-4:  #bbdefb !default;\n$blue-lighten-3:  #90caf9 !default;\n$blue-lighten-2:  #64b5f6 !default;\n$blue-lighten-1:  #42a5f5 !default;\n$blue-base:       #2196f3 !default;\n$blue-darken-1:   #1e88e5 !default;\n$blue-darken-2:   #1976d2 !default;\n$blue-darken-3:   #1565c0 !default;\n$blue-darken-4:   #0d47a1 !default;\n$blue-accent-1:   #82b1ff !default;\n$blue-accent-2:   #448aff !default;\n$blue-accent-3:   #2979ff !default;\n$blue-accent-4:   #2962ff !default;\n\n$light-blue-lighten-5:  #e1f5fe !default;\n$light-blue-lighten-4:  #b3e5fc !default;\n$light-blue-lighten-3:  #81d4fa !default;\n$light-blue-lighten-2:  #4fc3f7 !default;\n$light-blue-lighten-1:  #29b6f6 !default;\n$light-blue-base:       #03a9f4 !default;\n$light-blue-darken-1:   #039be5 !default;\n$light-blue-darken-2:   #0288d1 !default;\n$light-blue-darken-3:   #0277bd !default;\n$light-blue-darken-4:   #01579b !default;\n$light-blue-accent-1:   #80d8ff !default;\n$light-blue-accent-2:   #40c4ff !default;\n$light-blue-accent-3:   #00b0ff !default;\n$light-blue-accent-4:   #0091ea !default;\n\n$cyan-lighten-5:  #e0f7fa !default;\n$cyan-lighten-4:  #b2ebf2 !default;\n$cyan-lighten-3:  #80deea !default;\n$cyan-lighten-2:  #4dd0e1 !default;\n$cyan-lighten-1:  #26c6da !default;\n$cyan-base:       #00bcd4 !default;\n$cyan-darken-1:   #00acc1 !default;\n$cyan-darken-2:   #0097a7 !default;\n$cyan-darken-3:   #00838f !default;\n$cyan-darken-4:   #006064 !default;\n$cyan-accent-1:   #84ffff !default;\n$cyan-accent-2:   #18ffff !default;\n$cyan-accent-3:   #00e5ff !default;\n$cyan-accent-4:   #00b8d4 !default;\n\n$teal-lighten-5:  #e0f2f1 !default;\n$teal-lighten-4:  #b2dfdb !default;\n$teal-lighten-3:  #80cbc4 !default;\n$teal-lighten-2:  #4db6ac !default;\n$teal-lighten-1:  #26a69a !default;\n$teal-base:       #009688 !default;\n$teal-darken-1:   #00897b !default;\n$teal-darken-2:   #00796b !default;\n$teal-darken-3:   #00695c !default;\n$teal-darken-4:   #004d40 !default;\n$teal-accent-1:   #a7ffeb !default;\n$teal-accent-2:   #64ffda !default;\n$teal-accent-3:   #1de9b6 !default;\n$teal-accent-4:   #00bfa5 !default;\n\n$green-lighten-5:  #e8f5e9 !default;\n$green-lighten-4:  #c8e6c9 !default;\n$green-lighten-3:  #a5d6a7 !default;\n$green-lighten-2:  #81c784 !default;\n$green-lighten-1:  #66bb6a !default;\n$green-base:       #4caf50 !default;\n$green-darken-1:   #43a047 !default;\n$green-darken-2:   #388e3c !default;\n$green-darken-3:   #2e7d32 !default;\n$green-darken-4:   #1b5e20 !default;\n$green-accent-1:   #b9f6ca !default;\n$green-accent-2:   #69f0ae !default;\n$green-accent-3:   #00e676 !default;\n$green-accent-4:   #00c853 !default;\n\n\n$light-green-lighten-5:  #f1f8e9 !default;\n$light-green-lighten-4:  #dcedc8 !default;\n$light-green-lighten-3:  #c5e1a5 !default;\n$light-green-lighten-2:  #aed581 !default;\n$light-green-lighten-1:  #9ccc65 !default;\n$light-green-base:       #8bc34a !default;\n$light-green-darken-1:   #7cb342 !default;\n$light-green-darken-2:   #689f38 !default;\n$light-green-darken-3:   #558b2f !default;\n$light-green-darken-4:   #33691e !default;\n$light-green-accent-1:   #ccff90 !default;\n$light-green-accent-2:   #b2ff59 !default;\n$light-green-accent-3:   #76ff03 !default;\n$light-green-accent-4:   #64dd17 !default;\n\n$lime-lighten-5:  #f9fbe7 !default;\n$lime-lighten-4:  #f0f4c3 !default;\n$lime-lighten-3:  #e6ee9c !default;\n$lime-lighten-2:  #dce775 !default;\n$lime-lighten-1:  #d4e157 !default;\n$lime-base:       #cddc39 !default;\n$lime-darken-1:   #c0ca33 !default;\n$lime-darken-2:   #afb42b !default;\n$lime-darken-3:   #9e9d24 !default;\n$lime-darken-4:   #827717 !default;\n$lime-accent-1:   #f4ff81 !default;\n$lime-accent-2:   #eeff41 !default;\n$lime-accent-3:   #c6ff00 !default;\n$lime-accent-4:   #aeea00 !default;\n\n$yellow-lighten-5:  #fffde7 !default;\n$yellow-lighten-4:  #fff9c4 !default;\n$yellow-lighten-3:  #fff59d !default;\n$yellow-lighten-2:  #fff176 !default;\n$yellow-lighten-1:  #ffee58 !default;\n$yellow-base:       #ffeb3b !default;\n$yellow-darken-1:   #fdd835 !default;\n$yellow-darken-2:   #fbc02d !default;\n$yellow-darken-3:   #f9a825 !default;\n$yellow-darken-4:   #f57f17 !default;\n$yellow-accent-1:   #ffff8d !default;\n$yellow-accent-2:   #ffff00 !default;\n$yellow-accent-3:   #ffea00 !default;\n$yellow-accent-4:   #ffd600 !default;\n\n$amber-lighten-5:  #fff8e1 !default;\n$amber-lighten-4:  #ffecb3 !default;\n$amber-lighten-3:  #ffe082 !default;\n$amber-lighten-2:  #ffd54f !default;\n$amber-lighten-1:  #ffca28 !default;\n$amber-base:       #ffc107 !default;\n$amber-darken-1:   #ffb300 !default;\n$amber-darken-2:   #ffa000 !default;\n$amber-darken-3:   #ff8f00 !default;\n$amber-darken-4:   #ff6f00 !default;\n$amber-accent-1:   #ffe57f !default;\n$amber-accent-2:   #ffd740 !default;\n$amber-accent-3:   #ffc400 !default;\n$amber-accent-4:   #ffab00 !default;\n\n$orange-lighten-5:  #fff3e0 !default;\n$orange-lighten-4:  #ffe0b2 !default;\n$orange-lighten-3:  #ffcc80 !default;\n$orange-lighten-2:  #ffb74d !default;\n$orange-lighten-1:  #ffa726 !default;\n$orange-base:       #ff9800 !default;\n$orange-darken-1:   #fb8c00 !default;\n$orange-darken-2:   #f57c00 !default;\n$orange-darken-3:   #ef6c00 !default;\n$orange-darken-4:   #e65100 !default;\n$orange-accent-1:   #ffd180 !default;\n$orange-accent-2:   #ffab40 !default;\n$orange-accent-3:   #ff9100 !default;\n$orange-accent-4:   #ff6d00 !default;\n\n$deep-orange-lighten-5:  #fbe9e7 !default;\n$deep-orange-lighten-4:  #ffccbc !default;\n$deep-orange-lighten-3:  #ffab91 !default;\n$deep-orange-lighten-2:  #ff8a65 !default;\n$deep-orange-lighten-1:  #ff7043 !default;\n$deep-orange-base:       #ff5722 !default;\n$deep-orange-darken-1:   #f4511e !default;\n$deep-orange-darken-2:   #e64a19 !default;\n$deep-orange-darken-3:   #d84315 !default;\n$deep-orange-darken-4:   #bf360c !default;\n$deep-orange-accent-1:   #ff9e80 !default;\n$deep-orange-accent-2:   #ff6e40 !default;\n$deep-orange-accent-3:   #ff3d00 !default;\n$deep-orange-accent-4:   #dd2c00 !default;\n\n$brown-lighten-5:  #efebe9 !default;\n$brown-lighten-4:  #d7ccc8 !default;\n$brown-lighten-3:  #bcaaa4 !default;\n$brown-lighten-2:  #a1887f !default;\n$brown-lighten-1:  #8d6e63 !default;\n$brown-base:       #795548 !default;\n$brown-darken-1:   #6d4c41 !default;\n$brown-darken-2:   #5d4037 !default;\n$brown-darken-3:   #4e342e !default;\n$brown-darken-4:   #3e2723 !default;\n\n$blue-grey-lighten-5:  #eceff1 !default;\n$blue-grey-lighten-4:  #cfd8dc !default;\n$blue-grey-lighten-3:  #b0bec5 !default;\n$blue-grey-lighten-2:  #90a4ae !default;\n$blue-grey-lighten-1:  #78909c !default;\n$blue-grey-base:       #607d8b !default;\n$blue-grey-darken-1:   #546e7a !default;\n$blue-grey-darken-2:   #455a64 !default;\n$blue-grey-darken-3:   #37474f !default;\n$blue-grey-darken-4:   #263238 !default;\n\n$grey-lighten-5:  #fafafa !default;\n$grey-lighten-4:  #f5f5f5 !default;\n$grey-lighten-3:  #eeeeee !default;\n$grey-lighten-2:  #e0e0e0 !default;\n$grey-lighten-1:  #bdbdbd !default;\n$grey-base:       #9e9e9e !default;\n$grey-darken-1:   #757575 !default;\n$grey-darken-2:   #616161 !default;\n$grey-darken-3:   #424242 !default;\n$grey-darken-4:   #212121 !default;\n\n$black-base: #000 !default;\n$white-base: #fff !default;\n\n$mdb-colors-1: () !default;\n$mdb-colors-1: map-merge((\n  \"mdb-color\": (\n    \"lighten-5\":  $mdb-color-lighten-5,\n    \"lighten-4\":  $mdb-color-lighten-4,\n    \"lighten-3\":  $mdb-color-lighten-3,\n    \"lighten-2\":  $mdb-color-lighten-2,\n    \"lighten-1\":  $mdb-color-lighten-1,\n    \"base\":       $mdb-color-base,\n    \"darken-1\":   $mdb-color-darken-1,\n    \"darken-2\":   $mdb-color-darken-2,\n    \"darken-3\":   $mdb-color-darken-3,\n    \"darken-4\":   $mdb-color-darken-4\n  ),\n  \"red\": (\n    \"lighten-5\":  $red-lighten-5,\n    \"lighten-4\":  $red-lighten-4,\n    \"lighten-3\":  $red-lighten-3,\n    \"lighten-2\":  $red-lighten-2,\n    \"lighten-1\":  $red-lighten-1,\n    \"base\":       $red-base,\n    \"darken-1\":   $red-darken-1,\n    \"darken-2\":   $red-darken-2,\n    \"darken-3\":   $red-darken-3,\n    \"darken-4\":   $red-darken-4,\n    \"accent-1\":   $red-accent-1,\n    \"accent-2\":   $red-accent-2,\n    \"accent-3\":   $red-accent-3,\n    \"accent-4\":   $red-accent-4\n  ),\n  \"pink\": (\n    \"lighten-5\":  $pink-lighten-5,\n    \"lighten-4\":  $pink-lighten-4,\n    \"lighten-3\":  $pink-lighten-3,\n    \"lighten-2\":  $pink-lighten-2,\n    \"lighten-1\":  $pink-lighten-1,\n    \"base\":       $pink-base,\n    \"darken-1\":   $pink-darken-1,\n    \"darken-2\":   $pink-darken-2,\n    \"darken-3\":   $pink-darken-3,\n    \"darken-4\":   $pink-darken-4,\n    \"accent-1\":   $pink-accent-1,\n    \"accent-2\":   $pink-accent-2,\n    \"accent-3\":   $pink-accent-3,\n    \"accent-4\":   $pink-accent-4\n  ),\n  \"purple\": (\n    \"lighten-5\":  $purple-lighten-5,\n    \"lighten-4\":  $purple-lighten-4,\n    \"lighten-3\":  $purple-lighten-3,\n    \"lighten-2\":  $purple-lighten-2,\n    \"lighten-1\":  $purple-lighten-1,\n    \"base\":       $purple-base,\n    \"darken-1\":   $purple-darken-1,\n    \"darken-2\":   $purple-darken-2,\n    \"darken-3\":   $purple-darken-3,\n    \"darken-4\":   $purple-darken-4,\n    \"accent-1\":   $purple-accent-1,\n    \"accent-2\":   $purple-accent-2,\n    \"accent-3\":   $purple-accent-3,\n    \"accent-4\":   $purple-accent-4\n  ),\n  \"deep-purple\": (\n    \"lighten-5\":  $deep-purple-lighten-5,\n    \"lighten-4\":  $deep-purple-lighten-4,\n    \"lighten-3\":  $deep-purple-lighten-3,\n    \"lighten-2\":  $deep-purple-lighten-2,\n    \"lighten-1\":  $deep-purple-lighten-1,\n    \"base\":       $deep-purple-base,\n    \"darken-1\":   $deep-purple-darken-1,\n    \"darken-2\":   $deep-purple-darken-2,\n    \"darken-3\":   $deep-purple-darken-3,\n    \"darken-4\":   $deep-purple-darken-4,\n    \"accent-1\":   $deep-purple-accent-1,\n    \"accent-2\":   $deep-purple-accent-2,\n    \"accent-3\":   $deep-purple-accent-3,\n    \"accent-4\":   $deep-purple-accent-4\n  ),\n  \"indigo\": (\n    \"lighten-5\":  $indigo-lighten-5,\n    \"lighten-4\":  $indigo-lighten-4,\n    \"lighten-3\":  $indigo-lighten-3,\n    \"lighten-2\":  $indigo-lighten-2,\n    \"lighten-1\":  $indigo-lighten-1,\n    \"base\":       $indigo-base,\n    \"darken-1\":   $indigo-darken-1,\n    \"darken-2\":   $indigo-darken-2,\n    \"darken-3\":   $indigo-darken-3,\n    \"darken-4\":   $indigo-darken-4,\n    \"accent-1\":   $indigo-accent-1,\n    \"accent-2\":   $indigo-accent-2,\n    \"accent-3\":   $indigo-accent-3,\n    \"accent-4\":   $indigo-accent-4\n  ),\n  \"blue\": (\n    \"lighten-5\":  $blue-lighten-5,\n    \"lighten-4\":  $blue-lighten-4,\n    \"lighten-3\":  $blue-lighten-3,\n    \"lighten-2\":  $blue-lighten-2,\n    \"lighten-1\":  $blue-lighten-1,\n    \"base\":       $blue-base,\n    \"darken-1\":   $blue-darken-1,\n    \"darken-2\":   $blue-darken-2,\n    \"darken-3\":   $blue-darken-3,\n    \"darken-4\":   $blue-darken-4,\n    \"accent-1\":   $blue-accent-1,\n    \"accent-2\":   $blue-accent-2,\n    \"accent-3\":   $blue-accent-3,\n    \"accent-4\":   $blue-accent-4\n  ),\n  \"light-blue\": (\n    \"lighten-5\":  $light-blue-lighten-5,\n    \"lighten-4\":  $light-blue-lighten-4,\n    \"lighten-3\":  $light-blue-lighten-3,\n    \"lighten-2\":  $light-blue-lighten-2,\n    \"lighten-1\":  $light-blue-lighten-1,\n    \"base\":       $light-blue-base,\n    \"darken-1\":   $light-blue-darken-1,\n    \"darken-2\":   $light-blue-darken-2,\n    \"darken-3\":   $light-blue-darken-3,\n    \"darken-4\":   $light-blue-darken-4,\n    \"accent-1\":   $light-blue-accent-1,\n    \"accent-2\":   $light-blue-accent-2,\n    \"accent-3\":   $light-blue-accent-3,\n    \"accent-4\":   $light-blue-accent-4\n  ),\n  \"cyan\": (\n    \"lighten-5\":  $cyan-lighten-5,\n    \"lighten-4\":  $cyan-lighten-4,\n    \"lighten-3\":  $cyan-lighten-3,\n    \"lighten-2\":  $cyan-lighten-2,\n    \"lighten-1\":  $cyan-lighten-1,\n    \"base\":       $cyan-base,\n    \"darken-1\":   $cyan-darken-1,\n    \"darken-2\":   $cyan-darken-2,\n    \"darken-3\":   $cyan-darken-3,\n    \"darken-4\":   $cyan-darken-4,\n    \"accent-1\":   $cyan-accent-1,\n    \"accent-2\":   $cyan-accent-2,\n    \"accent-3\":   $cyan-accent-3,\n    \"accent-4\":   $cyan-accent-4\n  ),\n  \"teal\": (\n    \"lighten-5\":  $teal-lighten-5,\n    \"lighten-4\":  $teal-lighten-4,\n    \"lighten-3\":  $teal-lighten-3,\n    \"lighten-2\":  $teal-lighten-2,\n    \"lighten-1\":  $teal-lighten-1,\n    \"base\":       $teal-base,\n    \"darken-1\":   $teal-darken-1,\n    \"darken-2\":   $teal-darken-2,\n    \"darken-3\":   $teal-darken-3,\n    \"darken-4\":   $teal-darken-4,\n    \"accent-1\":   $teal-accent-1,\n    \"accent-2\":   $teal-accent-2,\n    \"accent-3\":   $teal-accent-3,\n    \"accent-4\":   $teal-accent-4\n  ),\n  \"green\": (\n    \"lighten-5\":  $green-lighten-5,\n    \"lighten-4\":  $green-lighten-4,\n    \"lighten-3\":  $green-lighten-3,\n    \"lighten-2\":  $green-lighten-2,\n    \"lighten-1\":  $green-lighten-1,\n    \"base\":       $green-base,\n    \"darken-1\":   $green-darken-1,\n    \"darken-2\":   $green-darken-2,\n    \"darken-3\":   $green-darken-3,\n    \"darken-4\":   $green-darken-4,\n    \"accent-1\":   $green-accent-1,\n    \"accent-2\":   $green-accent-2,\n    \"accent-3\":   $green-accent-3,\n    \"accent-4\":   $green-accent-4\n  ),\n  \"light-green\": (\n    \"lighten-5\":  $light-green-lighten-5,\n    \"lighten-4\":  $light-green-lighten-4,\n    \"lighten-3\":  $light-green-lighten-3,\n    \"lighten-2\":  $light-green-lighten-2,\n    \"lighten-1\":  $light-green-lighten-1,\n    \"base\":       $light-green-base,\n    \"darken-1\":   $light-green-darken-1,\n    \"darken-2\":   $light-green-darken-2,\n    \"darken-3\":   $light-green-darken-3,\n    \"darken-4\":   $light-green-darken-4,\n    \"accent-1\":   $light-green-accent-1,\n    \"accent-2\":   $light-green-accent-2,\n    \"accent-3\":   $light-green-accent-3,\n    \"accent-4\":   $light-green-accent-4\n  ),\n  \"lime\": (\n    \"lighten-5\":  $lime-lighten-5,\n    \"lighten-4\":  $lime-lighten-4,\n    \"lighten-3\":  $lime-lighten-3,\n    \"lighten-2\":  $lime-lighten-2,\n    \"lighten-1\":  $lime-lighten-1,\n    \"base\":       $lime-base,\n    \"darken-1\":   $lime-darken-1,\n    \"darken-2\":   $lime-darken-2,\n    \"darken-3\":   $lime-darken-3,\n    \"darken-4\":   $lime-darken-4,\n    \"accent-1\":   $lime-accent-1,\n    \"accent-2\":   $lime-accent-2,\n    \"accent-3\":   $lime-accent-3,\n    \"accent-4\":   $lime-accent-4\n  ),\n  \"yellow\": (\n    \"lighten-5\":  $yellow-lighten-5,\n    \"lighten-4\":  $yellow-lighten-4,\n    \"lighten-3\":  $yellow-lighten-3,\n    \"lighten-2\":  $yellow-lighten-2,\n    \"lighten-1\":  $yellow-lighten-1,\n    \"base\":       $yellow-base,\n    \"darken-1\":   $yellow-darken-1,\n    \"darken-2\":   $yellow-darken-2,\n    \"darken-3\":   $yellow-darken-3,\n    \"darken-4\":   $yellow-darken-4,\n    \"accent-1\":   $yellow-accent-1,\n    \"accent-2\":   $yellow-accent-2,\n    \"accent-3\":   $yellow-accent-3,\n    \"accent-4\":   $yellow-accent-4\n  ),\n  \"amber\": (\n    \"lighten-5\":  $amber-lighten-5,\n    \"lighten-4\":  $amber-lighten-4,\n    \"lighten-3\":  $amber-lighten-3,\n    \"lighten-2\":  $amber-lighten-2,\n    \"lighten-1\":  $amber-lighten-1,\n    \"base\":       $amber-base,\n    \"darken-1\":   $amber-darken-1,\n    \"darken-2\":   $amber-darken-2,\n    \"darken-3\":   $amber-darken-3,\n    \"darken-4\":   $amber-darken-4,\n    \"accent-1\":   $amber-accent-1,\n    \"accent-2\":   $amber-accent-2,\n    \"accent-3\":   $amber-accent-3,\n    \"accent-4\":   $amber-accent-4\n  ),\n  \"orange\": (\n    \"lighten-5\":  $orange-lighten-5,\n    \"lighten-4\":  $orange-lighten-4,\n    \"lighten-3\":  $orange-lighten-3,\n    \"lighten-2\":  $orange-lighten-2,\n    \"lighten-1\":  $orange-lighten-1,\n    \"base\":       $orange-base,\n    \"darken-1\":   $orange-darken-1,\n    \"darken-2\":   $orange-darken-2,\n    \"darken-3\":   $orange-darken-3,\n    \"darken-4\":   $orange-darken-4,\n    \"accent-1\":   $orange-accent-1,\n    \"accent-2\":   $orange-accent-2,\n    \"accent-3\":   $orange-accent-3,\n    \"accent-4\":   $orange-accent-4\n  ),\n  \"deep-orange\": (\n    \"lighten-5\":  $deep-orange-lighten-5,\n    \"lighten-4\":  $deep-orange-lighten-4,\n    \"lighten-3\":  $deep-orange-lighten-3,\n    \"lighten-2\":  $deep-orange-lighten-2,\n    \"lighten-1\":  $deep-orange-lighten-1,\n    \"base\":       $deep-orange-base,\n    \"darken-1\":   $deep-orange-darken-1,\n    \"darken-2\":   $deep-orange-darken-2,\n    \"darken-3\":   $deep-orange-darken-3,\n    \"darken-4\":   $deep-orange-darken-4,\n    \"accent-1\":   $deep-orange-accent-1,\n    \"accent-2\":   $deep-orange-accent-2,\n    \"accent-3\":   $deep-orange-accent-3,\n    \"accent-4\":   $deep-orange-accent-4\n  ),\n  \"brown\": (\n    \"lighten-5\":  $brown-lighten-5,\n    \"lighten-4\":  $brown-lighten-4,\n    \"lighten-3\":  $brown-lighten-3,\n    \"lighten-2\":  $brown-lighten-2,\n    \"lighten-1\":  $brown-lighten-1,\n    \"base\":       $brown-base,\n    \"darken-1\":   $brown-darken-1,\n    \"darken-2\":   $brown-darken-2,\n    \"darken-3\":   $brown-darken-3,\n    \"darken-4\":   $brown-darken-4\n  ),\n  \"blue-grey\": (\n    \"lighten-5\":  $blue-grey-lighten-5,\n    \"lighten-4\":  $blue-grey-lighten-4,\n    \"lighten-3\":  $blue-grey-lighten-3,\n    \"lighten-2\":  $blue-grey-lighten-2,\n    \"lighten-1\":  $blue-grey-lighten-1,\n    \"base\":       $blue-grey-base,\n    \"darken-1\":   $blue-grey-darken-1,\n    \"darken-2\":   $blue-grey-darken-2,\n    \"darken-3\":   $blue-grey-darken-3,\n    \"darken-4\":   $blue-grey-darken-4\n  ),\n  \"grey\": (\n    \"lighten-5\":  $grey-lighten-5,\n    \"lighten-4\":  $grey-lighten-4,\n    \"lighten-3\":  $grey-lighten-3,\n    \"lighten-2\":  $grey-lighten-2,\n    \"lighten-1\":  $grey-lighten-1,\n    \"base\":       $grey-base,\n    \"darken-1\":   $grey-darken-1,\n    \"darken-2\":   $grey-darken-2,\n    \"darken-3\":   $grey-darken-3,\n    \"darken-4\":   $grey-darken-4\n  ),\n  \"black\": (\n    \"base\":  $black-base\n  ),\n  \"white\": (\n    \"base\":  $white-base\n  )\n), $mdb-colors-1);\n\n// Full palette of colors\n$enable_full_palette: true !default;\n\n// Stylish rgba colors\n$stylish-rgba: (\n  \"rgba-stylish-slight\": rgba(62, 69, 81, .1),\n  \"rgba-stylish-light\": rgba(62, 69, 81, .3),\n  \"rgba-stylish-strong\": rgba(62, 69, 81, .7),\n);\n\n// Material colors\n$primary-color:        #4285f4 !default;\n$primary-color-dark:   #0d47a1 !default;\n$secondary-color:      #aa66cc !default;\n$secondary-color-dark: #9933cc !default;\n$default-color:        #2bbbad !default;\n$default-color-dark:   #00695c !default;\n$info-color:           #33b5e5 !default;\n$info-color-dark:      #0099cc !default;\n$success-color:        #00c851 !default;\n$success-color-dark:   #007e33 !default;\n$warning-color:        #ffbb33 !default;\n$warning-color-dark:   #ff8800 !default;\n$danger-color:         #ff3547 !default;\n$danger-color-dark:    #cc0000 !default;\n$elegant-color:        #2e2e2e !default;\n$elegant-color-dark:   #212121 !default;\n$stylish-color:        #4b515d !default;\n$stylish-color-dark:   #3e4551 !default;\n$unique-color:         #3f729b !default;\n$unique-color-dark:    #1c2331 !default;\n$special-color:        #37474f !default;\n$special-color-dark:   #263238 !default;\n$white:                #fff;\n$black:                #000;\n$error-color:          $red-base !default;\n\n$material-colors: () !default;\n$material-colors: map-merge((\n  \"primary-color\":        $primary-color,\n  \"primary-color-dark\":   $primary-color-dark,\n  \"secondary-color\":      $secondary-color,\n  \"secondary-color-dark\": $secondary-color-dark,\n  \"default-color\":        $default-color,\n  \"default-color-dark\":   $default-color-dark,\n  \"info-color\":           $info-color,\n  \"info-color-dark\":      $info-color-dark,\n  \"success-color\":        $success-color,\n  \"success-color-dark\":   $success-color-dark,\n  \"warning-color\":        $warning-color,\n  \"warning-color-dark\":   $warning-color-dark,\n  \"danger-color\":         $danger-color,\n  \"danger-color-dark\":    $danger-color-dark,\n  \"elegant-color\":        $elegant-color,\n  \"elegant-color-dark\":   $elegant-color-dark,\n  \"stylish-color\":        $stylish-color,\n  \"stylish-color-dark\":   $stylish-color-dark,\n  \"unique-color\":         $unique-color,\n  \"unique-color-dark\":    $unique-color-dark,\n  \"special-color\":        $special-color,\n  \"special-color-dark\":   $special-color-dark\n), $material-colors);\n\n// Social colors\n$fb-color:      #3b5998 !default;\n$tw-color:      #55acee !default;\n$gplus-color:   #dd4b39 !default;\n$yt-color:      #ed302f !default;\n$li-color:      #0082ca !default;\n$pin-color:     #c61118 !default;\n$ins-color:     #2e5e86 !default;\n$git-color:     #333333 !default;\n$comm-color:    #30cfc0 !default;\n$vk-color:      #4c75a3 !default;\n$drib-color:    #ec4a89 !default;\n$so-color:      #ffac44 !default;\n$slack-color:   #56b68b !default;\n$email-color:   #4b515d !default;\n$redd-color:    #ff4500 !default;\n$twitch-color:  #6441a4 !default;\n$discord-color: #7289da !default;\n\n$social-colors: () !default;\n$social-colors: map-merge((\n  \"fb\":       $fb-color,\n  \"tw\":       $tw-color,\n  \"gplus\":    $gplus-color,\n  \"yt\":       $yt-color,\n  \"li\":       $li-color,\n  \"pin\":      $pin-color,\n  \"ins\":      $ins-color,\n  \"git\":      $git-color,\n  \"comm\":     $comm-color,\n  \"vk\":       $vk-color,\n  \"dribbble\": $drib-color,\n  \"so\":       $so-color,\n  \"slack\":    $slack-color,\n  \"email\":    $email-color,\n  \"reddit\":   $redd-color,\n  \"twitch\":   $twitch-color,\n  \"discord\":   $discord-color,\n), $social-colors);\n\n// MDB buttons colors\n$mdb-colors: () !default;\n$mdb-colors: map-merge((\n  \"primary\":     $primary-color,\n  \"danger\":      $danger-color,\n  \"warning\":     $warning-color,\n  \"success\":     $success-color,\n  \"info\":        $info-color,\n  \"default\":     $default-color,\n  \"secondary\":   $secondary-color,\n  \"elegant\":     $elegant-color,\n  \"unique\":      $pink-darken-4,\n  \"dark-green\":  $green-darken-2,\n  \"mdb-color\":   $mdb-color-lighten-1,\n  \"red\":         $red-darken-2,\n  \"pink\":        $pink-lighten-1,\n  \"purple\":      $purple-darken-1,\n  \"deep-purple\": $deep-purple-darken-2,\n  \"indigo\":      $indigo-base,\n  \"blue\":        $blue-darken-2,\n  \"light-blue\":  $blue-accent-1,\n  \"cyan\":        $cyan-base,\n  \"teal\":        $teal-darken-2,\n  \"green\":       $green-darken-2,\n  \"light-green\": $light-green-base,\n  \"lime\":        $lime-darken-2,\n  \"yellow\":      $yellow-darken-2,\n  \"amber\":       $amber-darken-2,\n  \"orange\":      $orange-darken-2,\n  \"deep-orange\": $deep-orange-lighten-1,\n  \"brown\":       $brown-base,\n  \"grey\":        $grey-darken-2,\n  \"blue-grey\":   $blue-grey-lighten-1,\n  \"dark\":        $grey-darken-4,\n  \"light\":       $grey-lighten-2,\n  \"white\":       $white-base,\n  \"black\":       $black-base\n), $mdb-colors);\n\n// Basic colors\n$basic: () !default;\n$basic: map-merge((\n  \"primary\":  $primary-color,\n  \"danger\":   $danger-color,\n  \"warning\":  $warning-color,\n  \"success\":  $success-color,\n  \"info\":     $info-color\n), $basic);\n\n$basic-mdb-colors: () !default;\n$basic-mdb-colors: map-merge((\n  \"primary\":     $primary-color,\n  \"danger\":      $danger-color,\n  \"warning\":     $warning-color,\n  \"success\":     $success-color,\n  \"info\":        $info-color,\n  \"default\":     $default-color,\n  \"secondary\":   $secondary-color,\n  \"dark\":        $grey-darken-4,\n  \"light\":       $grey-lighten-2\n), $basic-mdb-colors);\n\n$pagination-colors: () !default;\n$pagination-colors: map-merge((\n  \"blue\": $primary-color,\n  \"red\": $danger-color,\n  \"teal\": $default-color,\n  \"dark-grey\": $special-color,\n  \"dark\": $elegant-color,\n  \"blue-grey\": $unique-color,\n  \"amber\": $amber-darken-4,\n  \"purple\": $deep-purple-darken-1\n), $pagination-colors);\n\n$ctbc: () !default;\n$ctbc: map-merge((\n  \"tabs-cyan\": $yellow-base,\n  \"tabs-orange\": $red-darken-1,\n  \"tabs-grey\": $white-base,\n  \"tabs-pink\": $deep-purple-base,\n  \"tabs-green\": $blue-darken-3,\n  \"tabs-primary\": $white-base\n), $ctbc);\n\n$switch-color-bg:                 $secondary-color !default;\n$switch-color-checked-lever-bg:   desaturate(lighten($secondary-color, 25%), 25%) !default;\n$switch-color-unchecked-bg:       #F1F1F1 !default;\n$switch-color-unchecked-lever-bg: #818181 !default;\n\n$switch-colors: () !default;\n$switch-colors: map-merge((\n  \"bg\":                 $switch-color-bg,\n  \"checked-lever-bg\":   $switch-color-checked-lever-bg,\n  \"unchecked-bg\":       $switch-color-unchecked-bg,\n  \"unchecked-lever-bg\": $switch-color-unchecked-lever-bg,\n), $switch-colors);\n\n$dropdown-colors: () !default;\n$dropdown-colors: map-merge((\n  \"primary\"  : $primary-color,\n  \"danger\"   : $danger-color-dark,\n  \"default\"  : $default-color,\n  \"secondary\": $secondary-color,\n  \"success\"  : $success-color,\n  \"info\"     : $info-color,\n  \"warning\"  : $warning-color,\n  \"dark\"     : map-get($mdb-colors, \"elegant\"),\n  \"ins\"      : map-get($social-colors, \"ins\")\n), $dropdown-colors);\n\n// Gradients\n$gradients: () !default;\n$gradients: map-merge((\n  \"purple\": (\n    \"start\": #ff6ec4,\n    \"end\": #7873f5\n  ),\n  \"peach\": (\n    \"start\": #FFD86F,\n    \"end\": #FC6262\n  ),\n  \"aqua\": (\n    \"start\": #2096ff,\n    \"end\": #05ffa3\n  ),\n  \"blue\": (\n    \"start\": #45cafc,\n    \"end\": $indigo-darken-2\n  ),\n), $gradients);\n\n// Gradients RGBA Version\n$gradients-rgba: () !default;\n$gradients-rgba: map-merge((\n  \"purple\": (\n    \"start\": rgba(255,110,196,.9),\n    \"end\": rgba(120,115,245,.9)\n  ),\n  \"peach\": (\n    \"start\": rgba(255,216,111,.9),\n    \"end\": rgba(252,98,98,.9)\n  ),\n  \"aqua\": (\n    \"start\": rgba(32,150,255,.9),\n    \"end\": rgba(5,255,163,.9)\n  ),\n  \"blue\": (\n    \"start\": rgba(69,202,252,.9),\n    \"end\": rgba(48,63,159,.9)\n  ),\n), $gradients-rgba);\n\n\n$note: () !default;\n$note: map-merge((\n  \"note-primary\": #176ac4,\n  \"note-secondary\": #58595a,\n  \"note-success\": #49a75f,\n  \"note-danger\": #e45460,\n  \"note-warning\": #c2a442,\n  \"note-info\": #2492a5,\n  \"note-light\": #0f0f0f\n), $note);\n"
  },
  {
    "path": "student/content/mdb/scss/core/_global.scss",
    "content": "// Globals\n// Full palette of colors\n@each $color_name, $color in $mdb-colors-1 {\n  @each $color_type, $color_value in $color {\n    @if $color_type == \"base\" {\n      .#{$color_name} {\n        background-color: $color_value !important;\n      }\n      .#{$color_name}-text {\n        color: $color-value !important;\n      }\n      .rgba-#{$color_name}-slight,\n      .rgba-#{$color_name}-slight:after {\n        background-color: rgba($color_value, .1);\n      }\n      .rgba-#{$color_name}-light,\n      .rgba-#{$color_name}-light:after {\n        background-color: rgba($color_value, .3);\n      }\n      .rgba-#{$color_name}-strong,\n      .rgba-#{$color_name}-strong:after {\n        background-color: rgba($color_value, .7);\n      }\n    }\n    @else {\n      @if $enable_full_palette {\n        .#{$color_name}.#{$color_type} {\n          background-color: $color_value !important;\n        }\n      }\n    }\n  }\n}\n\n// Stylish color\n@each $color_name, $color_value in $stylish-rgba {\n  .#{$color_name} {\n    background-color: $color_value;\n  }\n}\n\n// Material colors palette\n@each $color_name, $color in $material-colors {\n  .#{$color_name} {\n    background-color: $color !important;\n  }\n}\n\n// Basic gradients\n@each $name, $val in $gradients {\n  @include make-gradient($name, $val);\n}\n@each $name, $val in $gradients-rgba {\n  @include make-gradient-rgba($name, $val);\n}\n\n.dark-grey-text {\n  color: #4f4f4f !important;\n  &:hover,\n  &:focus {\n    color: #4f4f4f !important;\n  }\n}\n\n// Shadow on hover\n.hoverable {\n  box-shadow: none;\n  transition: $transition-hoverable;\n  &:hover {\n    box-shadow: $z-depth-2;\n    transition: $transition-hoverable;\n  }\n}\n\n// Shadows\n.z-depth-0 {\n  box-shadow: none !important;\n}\n.z-depth-1 {\n  box-shadow: $z-depth-1 !important;\n}\n.z-depth-1-half {\n  box-shadow: $z-depth-1-half !important;\n}\n.z-depth-2 {\n  box-shadow: $z-depth-2 !important;\n}\n.z-depth-3 {\n  box-shadow: $z-depth-3 !important;\n}\n.z-depth-4 {\n  box-shadow: $z-depth-4 !important;\n}\n.z-depth-5 {\n  box-shadow: $z-depth-5 !important;\n}\n\n// Disabled cursor\n.disabled,\n:disabled {\n  pointer-events: none !important;\n}\n\n// Links\na {\n  cursor: pointer;\n  text-decoration: none;\n  color: $link-color;\n  transition: $transition-basic;\n  &:hover {\n    text-decoration: none;\n    color: $link-hover-color;\n    transition: $transition-basic;\n  }\n  &.disabled,\n  &:disabled {\n    &:hover {\n      color: $link-color;\n    }\n  }\n}\n\na:not([href]):not([tabindex]), a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {\n  color: inherit;\n  text-decoration: none;\n}\n"
  },
  {
    "path": "student/content/mdb/scss/core/_helpers.scss",
    "content": "// Helpers\n// MDB helpers\n.img-fluid,\n.video-fluid {\n  max-width: 100%;\n  height: auto;\n}\n\n.flex-center {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 100%;\n  p {\n    margin: 0;\n  }\n  ul {\n    text-align: center;\n    li {\n      margin-bottom: $flex-center-ul-mb;\n      &:last-of-type {\n        margin-bottom: 0;\n      }\n    }\n  }\n}\n\n.hr-light {\n  border-top: 1px solid $hr-light;\n}\n\n.hr-dark {\n  border-top: 1px solid $hr-dark;\n}\n\n// Responsive width\n.w-responsive {\n  width: 75%;\n  @media (max-width: 740px) {\n    width: 100%;\n  }\n}\n\n// Collapsible body\n.collapsible-body {\n  display: none;\n}\n\n.jumbotron {\n  box-shadow: $z-depth-1;\n  border-radius: $border-radius-base;\n  background-color: $white-base;\n}\n\n@each $name, $color in $basic-mdb-colors {\n  @include bg-variant(\".bg-#{$name}\", $color);\n  .border-#{$name} {\n    border-color: $color !important;\n  }\n}\n\n.card-img-100 {\n  width: 100px;\n  height: 100px;\n}\n.card-img-64 {\n  width: 64px;\n  height: 64px;\n}\n\n.mml-1 {\n  margin-left: - 0.25rem !important;\n}\n\n.flex-1 {\n  flex: 1;\n}\n"
  },
  {
    "path": "student/content/mdb/scss/core/_masks.scss",
    "content": "// Masks\n// General properties\n.view {\n  position: relative;\n  overflow: hidden;\n  cursor: default;\n  .mask {\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    overflow: hidden;\n    width: 100%;\n    height: 100%;\n    background-attachment: fixed;\n  }\n  img, video {\n    position: relative;\n    display: block;\n  }\n  video {\n    &.video-intro {\n      z-index: -100;\n      top: 50%;\n      left: 50%;\n      transform: $intro-video-transform;\n      transition: $intro-video-transition opacity;\n      min-width: 100%;\n      min-height: 100%;\n      width: auto;\n      height: auto;\n    }\n  }\n}\n\n// Overlay\n.overlay {\n  .mask {\n    opacity: 0;\n    transition: $mask-overlay-transition;\n    &:hover {\n      opacity: 1;\n    }\n  }\n}\n\n// Zoom\n.zoom {\n  img, video {\n    transition: $mask-zoom-transition;\n  }\n  &:hover {\n    img, video {\n      transform: $mask-zoom-transform;\n    }\n  }\n}\n\n// Patterns\n$patterns: (\n  1: \"01\",\n  2: \"02\",\n  3: \"03\",\n  4: \"04\",\n  5: \"05\",\n  6: \"06\",\n  7: \"07\",\n  8: \"08\",\n  9: \"09\"\n);\n\n@each $no, $filename in $patterns {\n  .pattern-#{$no} {\n    background: url(\"#{$image-path}/overlays/#{$filename}.png\");\n    background-attachment: fixed;\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/core/_mixins.scss",
    "content": "// Mixins\n// Bootstrap Mixins\n@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {\n  $n: index($breakpoint-names, $name);\n  @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);\n}\n\n@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {\n  $min: map-get($breakpoints, $name);\n  @return if($min !=0, $min, null);\n}\n\n@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {\n  $next: breakpoint-next($name, $breakpoints);\n  @return if($next, breakpoint-min($next, $breakpoints) - .02px, null);\n}\n\n// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n// Makes the @content apply to the given breakpoint and wider.\n@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {\n  $min: breakpoint-min($name, $breakpoints);\n  @if $min {\n    @media (min-width: $min) {\n      @content;\n    }\n  }\n  @else {\n    @content;\n  }\n}\n\n// Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n// Makes the @content apply to the given breakpoint and narrower.\n@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {\n  $max: breakpoint-max($name, $breakpoints);\n  @if $max {\n    @media (max-width: $max) {\n      @content;\n    }\n  }\n  @else {\n    @content;\n  }\n}\n\n// Media that spans multiple breakpoint widths.\n// Makes the @content apply between the min and max breakpoints\n@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {\n  $min: breakpoint-min($lower, $breakpoints);\n  $max: breakpoint-max($upper, $breakpoints);\n  @if $min !=null and $max !=null {\n    @media (min-width: $min) and (max-width: $max) {\n      @content;\n    }\n  }\n  @else if $max==null {\n    @include media-breakpoint-up($lower, $breakpoints) {\n      @content;\n    }\n  }\n  @else if $min==null {\n    @include media-breakpoint-down($upper, $breakpoints) {\n      @content;\n    }\n  }\n}\n\n// Media between the breakpoint's minimum and maximum widths.\n// No minimum for the smallest breakpoint, and no maximum for the largest one.\n// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {\n  $min: breakpoint-min($name, $breakpoints);\n  $max: breakpoint-max($name, $breakpoints);\n  @if $min !=null and $max !=null {\n    @media (min-width: $min) and (max-width: $max) {\n      @content;\n    }\n  }\n  @else if $max==null {\n    @include media-breakpoint-up($name, $breakpoints) {\n      @content;\n    }\n  }\n  @else if $min==null {\n    @include media-breakpoint-down($name, $breakpoints) {\n      @content;\n    }\n  }\n}\n\n@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {\n  @return if(breakpoint-min($name, $breakpoints)==null, \"\", \"-#{$name}\");\n}\n\n@mixin hover-focus {\n  &:hover,\n  &:focus {\n    @content;\n  }\n}\n\n// Background color\n@mixin bg-variant($parent, $color) {\n  #{$parent} {\n    background-color: $color !important;\n  }\n  a#{$parent},\n  button#{$parent} {\n    @include hover-focus {\n      background-color: darken($color, 10%) !important;\n    }\n  }\n}\n\n// Typography\n@mixin text-emphasis-variant($parent, $color) {\n  #{$parent} {\n    color: $color !important;\n  }\n  a#{$parent} {\n    @include hover-focus {\n      color: darken($color, 10%) !important;\n    }\n  }\n}\n\n// Placeholder\n@mixin placeholder {\n  &::placeholder {\n    @content\n  }\n}\n\n/// Grid system\n//\n// Generate semantic grid columns with these mixins.\n\n@mixin make-container() {\n  width: 100%;\n  padding-right: ($grid-gutter-width / 2);\n  padding-left: ($grid-gutter-width / 2);\n  margin-right: auto;\n  margin-left: auto;\n}\n\n\n// For each breakpoint, define the maximum width of the container in a media query\n@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {\n  @each $breakpoint, $container-max-width in $max-widths {\n    @include media-breakpoint-up($breakpoint, $breakpoints) {\n      max-width: $container-max-width;\n    }\n  }\n}\n\n@mixin make-row() {\n  display: flex;\n  flex-wrap: wrap;\n  margin-right: ($grid-gutter-width / -2);\n  margin-left: ($grid-gutter-width / -2);\n}\n\n@mixin make-col-ready() {\n  position: relative;\n  // Prevent columns from becoming too narrow when at smaller grid tiers by\n  // always setting `width: 100%;`. This works because we use `flex` values\n  // later on to override this initial width.\n  width: 100%;\n  min-height: 1px; // Prevent collapsing\n  padding-right: ($grid-gutter-width / 2);\n  padding-left: ($grid-gutter-width / 2);\n}\n\n@mixin make-col($size, $columns: $grid-columns) {\n  flex: 0 0 percentage($size / $columns);\n  // Add a `max-width` to ensure content within each column does not blow out\n  // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari\n  // do not appear to require this.\n  max-width: percentage($size / $columns);\n}\n\n@mixin make-col-offset($size, $columns: $grid-columns) {\n  $num: $size / $columns;\n  margin-left: if($num == 0, 0, percentage($num));\n}\n\n@mixin clearfix() {\n  &::after {\n    display: block;\n    clear: both;\n    content: \"\";\n  }\n}\n\n@mixin float-left {\n  float: left !important;\n}\n@mixin float-right {\n  float: right !important;\n}\n@mixin float-none {\n  float: none !important;\n}\n\n// CSS image replacement\n@mixin text-hide($ignore-warning: false) {\n  // stylelint-disable-next-line font-family-no-missing-generic-family-keyword\n  font: 0/0 a;\n  color: transparent;\n  text-shadow: none;\n  background-color: transparent;\n  border: 0;\n\n  @if ($ignore-warning != true) {\n    @warn \"The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.\";\n  }\n}\n\n// Only display content to screen readers\n//\n// See: https://a11yproject.com/posts/how-to-hide-content/\n// See: https://hugogiraudel.com/2016/10/13/css-hide-and-seek/\n\n@mixin sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border: 0;\n}\n\n// Use in conjunction with .sr-only to only display content when it's focused.\n//\n// Useful for \"Skip to main content\" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1\n//\n// Credit: HTML5 Boilerplate\n\n@mixin sr-only-focusable {\n  &:active,\n  &:focus {\n    position: static;\n    width: auto;\n    height: auto;\n    overflow: visible;\n    clip: auto;\n    white-space: normal;\n  }\n}\n\n@mixin invisible($visibility) {\n  visibility: $visibility !important;\n}\n\n// MDB Mixins\n// Set the color of the button and badge\n@function set-notification-text-color($color) {\n  @if (lightness($color) > 80) {\n    @return $black-base; // Lighter backgorund, return dark color\n  }\n  @else {\n    @return $white-base; // Darker background, return light color\n  }\n}\n\n// Make button\n@mixin make-button ($name, $color) {\n  .btn-#{$name} {\n    background-color: $color !important;\n    color: set-notification-text-color($color) !important;\n    &:hover {\n      background-color: lighten($color, 5%);\n    }\n    &:focus,\n    &.focus {\n      box-shadow: $z-depth-1-half;\n    }\n    &:focus,\n    &:active,\n    &.active {\n      background-color: darken($color, 20%);\n    }\n    &.dropdown-toggle {\n      background-color: $color !important;\n      &:hover,\n      &:focus {\n        background-color: lighten($color, 5%) !important;\n      }\n    }\n    &:not([disabled]):not(.disabled):active,\n    &:not([disabled]):not(.disabled).active,\n    .show>&.dropdown-toggle {\n      box-shadow: $z-depth-1-half;\n      background-color: darken($color, 20%) !important;\n    }\n    &:not([disabled]):not(.disabled):active:focus,\n    &:not([disabled]):not(.disabled).active:focus,\n    .show>&.dropdown-toggle:focus {\n      box-shadow: $z-depth-1-half;\n    }\n  }\n  .#{$name}-ic {\n    color: $color !important;\n    &:hover,\n    &:focus {\n      color: $color;\n    }\n  }\n}\n\n// Make outline button\n@mixin make-outline-button ($name, $color) {\n  .btn-outline-#{$name} {\n    border: 2px solid $color !important;\n    background-color: transparent !important;\n    color: $color !important;\n    &:hover,\n    &:focus,\n    &:active,\n    &:active:focus,\n    &.active {\n      border-color: $color !important;\n      background-color: transparent !important;\n      color: $color !important;\n    }\n    &:not([disabled]):not(.disabled):active,\n    &:not([disabled]):not(.disabled).active,\n    .show>&.dropdown-toggle {\n      box-shadow: $z-depth-1-half;\n      background-color: transparent !important;\n      border-color: $color !important;\n    }\n    &:not([disabled]):not(.disabled):active:focus,\n    &:not([disabled]):not(.disabled).active:focus,\n    .show>&.dropdown-toggle:focus {\n      box-shadow: $z-depth-1-half;\n    }\n  }\n}\n// Make gradient\n@mixin make-gradient($name, $value) {\n  .#{$name}-gradient {\n    background: linear-gradient(40deg, map-get($value, start), map-get($value, end)) !important;\n  }\n}\n\n$opacity: .9;\n// Make gradient\n@mixin make-gradient-rgba($name, $value) {\n  .#{$name}-gradient-rgba {\n    background: linear-gradient(40deg, map-get($value, start), map-get($value, end)) !important;\n  }\n}\n\n// Make gradient button\n@mixin make-gradient-button($name, $value) {\n  .btn {\n    &.#{$name}-gradient {\n      transition: .5s ease;\n      color: $white-base;\n      &:hover,\n      &:focus,\n      &:active,\n      &:active:focus &.active {\n        background: linear-gradient(lighten(map-get($value, start), 5%), lighten(map-get($value, end), 5%));\n      }\n    }\n  }\n}\n\n// Button size\n@mixin button-size($padding-y, $padding-x, $font-size) {\n  padding: $padding-y $padding-x;\n  font-size: $font-size;\n}\n\n@mixin make-badge($name, $color) {\n  .badge-#{$name} {\n    background-color: $color !important;\n    color: set-notification-text-color($color) !important;\n  }\n}\n\n// Make input\n@mixin make-input($margin-bottom, $label-font-size, $label-active-font-size, $top, $prefix-font-size, $margin-left, $width, $margin-left-2) {\n  .validate {\n    margin-bottom: $margin-bottom;\n  }\n  label {\n    font-size: $label-font-size;\n    &.active {\n      font-size: $label-active-font-size;\n    }\n  }\n  .prefix {\n    top: $top;\n    font-size: $prefix-font-size;\n    ~input,\n    ~textarea {\n      margin-left: $margin-left;\n      width: $width;\n    }\n    ~label {\n      margin-left: $margin-left;\n    }\n    ~.form-text {\n      margin-left: $margin-left-2;\n    }\n  }\n}\n\n// Make navbar\n@mixin make-navbar($color-0, $background-image, $color, $color-2, $color-3) {\n  .navbar-nav {\n    .nav-item {\n      .nav-link {\n        &.disbled {\n          color: $color-0;\n          &:hover {\n            color: $color-0;\n          }\n        }\n      }\n    }\n  }\n  .navbar-toggler-icon {\n    background-image: $background-image;\n    cursor: pointer;\n  }\n  .breadcrumb,\n  .navbar-nav {\n    .nav-item {\n      .nav-link {\n        color: $color;\n        transition: $navbar-nav-transition;\n        &:hover {\n          color: $color-2;\n        }\n      }\n      &.active>.nav-link {\n        background-color: $color-3;\n        &:hover {\n          color: $color;\n        }\n      }\n    }\n  }\n  .navbar-toggler {\n    color: $color;\n  }\n  form {\n    .md-form {\n      input {\n        border-bottom: 1px solid $color;\n        &:focus:not([readonly]) {\n          border-color: $input-md-focus-color;\n        }\n      }\n      .form-control {\n        color: $color;\n        @include placeholder {\n          color: $color;\n          font-weight: $navbar-font-weight;\n        }\n      }\n    }\n  }\n}\n\n// Make floating button\n@mixin make-btn-floating($width, $height, $font-size, $line-height) {\n  width: $width;\n  height: $height;\n  i {\n    font-size: $font-size;\n    line-height: $line-height;\n  }\n}\n\n// Keyframes\n@mixin keyframes($animation-name) {\n  @keyframes #{$animation-name} {\n    @content;\n  }\n}\n\n// Scroll bar and scroll spy width and height\n@mixin scroll-width($scrollbar-width) {\n  width: $scrollbar-width;\n}\n\n@mixin scroll-height($scrollbar-height) {\n  height: $scrollbar-height;\n}\n\n// Scroll spy font-weight\n@mixin scrollspy-font-weight($scrollspy-font-weight) {\n  font-weight: $scrollspy-font-weight;\n}\n\n// Switch width and height\n@mixin switch-width-height($switchWidth, $switchHeight) {\n  width: $switchWidth;\n  height: $switchHeight;\n}\n\n// Make Box-shadows\n@mixin box-shadows($shadow...) {\n  box-shadow: $shadow;\n}\n\n// Make Transition\n@mixin transition-main($transition...) {\n  transition: $transition;\n}\n\n// Make border-radius scrollspy\n@mixin scrollspy-border-radius($scrollspy-radius) {\n  border-radius: $scrollspy-radius;\n}\n\n// Make border-radius scrollspy 4rows\n@mixin scrollspy-border-radius-4rows($top-left, $top-right, $bottom-right, $bottom-left) {\n  border-radius: $top-left $top-right $bottom-right $bottom-left;\n}\n\n//Make animation for progresss\n@mixin progress-animation-default($animation...){\n  animation: $animation;\n}\n//Make transform\n@mixin transform($transform...){\n  transform: $transform;\n}\n"
  },
  {
    "path": "student/content/mdb/scss/core/_typography.scss",
    "content": "// Typography\n// ROBOTO FONT\n@font-face {\n  font-family: \"Roboto\";\n  src: local(Roboto Thin),\n    url(\"#{$roboto-font-path}Roboto-Thin.eot\");\n  src: url(\"#{$roboto-font-path}Roboto-Thin.eot?#iefix\") format(\"embedded-opentype\"),\n    url(\"#{$roboto-font-path}Roboto-Thin.woff2\") format(\"woff2\"),\n    url(\"#{$roboto-font-path}Roboto-Thin.woff\") format(\"woff\"),\n    url(\"#{$roboto-font-path}Roboto-Thin.ttf\") format(\"truetype\");\n  font-weight: 200;\n}\n\n@font-face {\n  font-family: \"Roboto\";\n  src: local(Roboto Light),\n    url(\"#{$roboto-font-path}Roboto-Light.eot\");\n  src: url(\"#{$roboto-font-path}Roboto-Light.eot?#iefix\") format(\"embedded-opentype\"),\n    url(\"#{$roboto-font-path}Roboto-Light.woff2\") format(\"woff2\"),\n    url(\"#{$roboto-font-path}Roboto-Light.woff\") format(\"woff\"),\n    url(\"#{$roboto-font-path}Roboto-Light.ttf\") format(\"truetype\");\n  font-weight: 300;\n}\n\n@font-face {\n  font-family: \"Roboto\";\n  src: local(Roboto Regular),\n    url(\"#{$roboto-font-path}Roboto-Regular.eot\");\n  src: url(\"#{$roboto-font-path}Roboto-Regular.eot?#iefix\") format(\"embedded-opentype\"),\n    url(\"#{$roboto-font-path}Roboto-Regular.woff2\") format(\"woff2\"),\n    url(\"#{$roboto-font-path}Roboto-Regular.woff\") format(\"woff\"),\n    url(\"#{$roboto-font-path}Roboto-Regular.ttf\") format(\"truetype\");\n  font-weight: 400;\n}\n\n@font-face {\n  font-family: \"Roboto\";\n  src: url(\"#{$roboto-font-path}Roboto-Medium.eot\");\n  src: url(\"#{$roboto-font-path}Roboto-Medium.eot?#iefix\") format(\"embedded-opentype\"),\n    url(\"#{$roboto-font-path}Roboto-Medium.woff2\") format(\"woff2\"),\n    url(\"#{$roboto-font-path}Roboto-Medium.woff\") format(\"woff\"),\n    url(\"#{$roboto-font-path}Roboto-Medium.ttf\") format(\"truetype\");\n  font-weight: 500;\n}\n\n@font-face {\n  font-family: \"Roboto\";\n  src: url(\"#{$roboto-font-path}Roboto-Bold.eot\");\n  src: url(\"#{$roboto-font-path}Roboto-Bold.eot?#iefix\") format(\"embedded-opentype\"),\n    url(\"#{$roboto-font-path}Roboto-Bold.woff2\") format(\"woff2\"),\n    url(\"#{$roboto-font-path}Roboto-Bold.woff\") format(\"woff\"),\n    url(\"#{$roboto-font-path}Roboto-Bold.ttf\") format(\"truetype\");\n  font-weight: 700;\n}\n\nbody {\n  font-family: \"Roboto\", sans-serif;\n  font-weight: 300;\n}\n\nh1, h2, h3, h4, h5, h6 {\n  font-weight: 300;\n}\n\n// Responsive headings\n@each $key, $val in $grid-breakpoints {\n  @include media-breakpoint-up($key) {\n    $y: map-get($responsive-headings, $key);\n    @each $name,\n      $value in $y {\n      .#{$name}-responsive {\n        font-size: $value;\n      }\n    }\n  }\n}\n\n// Divider\n.divider-new {\n  flex-direction: row;\n  justify-content: center;\n  align-items: center;\n  display: flex;\n  margin-top: $divider-margin-y;\n  margin-bottom: $divider-margin-y;\n  > h1, h2, h3, h4, h5, h6 {\n    margin-bottom: 0;\n  }\n  &:before,\n  &:after {\n    content: \"\";\n    height: 1.5px;\n    flex: 1;\n    height: $divider-height;\n    background: #c6c6c6;\n  }\n  &:before {\n    margin: 0 $divider-margin-x 0 0;\n  }\n  &:after {\n    margin: 0 0 0 $divider-margin-x;\n  }\n}\n\n// Blockquote\n.blockquote {\n  padding: $blockquote-padding-y $blockquote-padding-x;\n  border-left: .25rem solid #eceeef;\n  &.text-right {\n    border-left: none;\n    border-right: .25rem solid #eceeef;\n  }\n  .bq-title {\n    margin-bottom: 0;\n    font-size: $font-size-large;\n    font-weight: 400;\n  }\n  p {\n    padding: $blockquote-p-padding-y 0;\n    font-size: $blockquote-p-font-size;\n  }\n}\n\n@each $name, $color in $basic {\n  .bq-#{$name} {\n    border-left: 3px solid $color !important;\n    .bq-title {\n      color: $color !important;\n    }\n  }\n}\n\n@each $name, $color in $basic-mdb-colors {\n  @include text-emphasis-variant(\".text-#{$name}\", $color);\n}\n\n.font-small {\n  font-size: $font-small;\n}\n"
  },
  {
    "path": "student/content/mdb/scss/core/_variables.scss",
    "content": "// Variables\n// Fonts\n$roboto-font-path:            \"../font/roboto/\" !default;\n\n$font-size-large:             1.5rem !default;\n$font-bold:                   500 !default;\n$font-small:                  .9rem !default;\n\n$line-height-small:           1 !default;\n$line-height-extra-large:     2.5 !default;\n\n// Reponsive Headings\n$responsive-headings: () !default;\n$responsive-headings: map-merge((\n  \"xs\": (\n    \"h1\": 150%,\n    \"h2\": 145%,\n    \"h3\": 135%,\n    \"h4\": 135%,\n    \"h5\": 135%\n  ),\n  \"sm\": (\n    \"h1\": 170%,\n    \"h2\": 140%,\n    \"h3\": 125%,\n    \"h4\": 125%,\n    \"h5\": 125%\n  ),\n  \"md\": (\n    \"h1\": 200%,\n    \"h2\": 170%,\n    \"h3\": 140%,\n    \"h4\": 125%,\n    \"h5\": 125%\n  ),\n  \"lg\": (\n    \"h1\": 200%,\n    \"h2\": 170%,\n    \"h3\": 140%,\n    \"h4\": 125%,\n    \"h5\": 125%\n  ),\n  \"xl\": (\n    \"h1\": 250%,\n    \"h2\": 200%,\n    \"h3\": 170%,\n    \"h4\": 140%,\n    \"h5\": 125%\n  ),\n), $responsive-headings);\n\n// Blockquote\n$blockquote-padding-y:      .5rem !default;\n$blockquote-padding-x:      1rem !default;\n$blockquote-p-padding-y:    $blockquote-padding-x !default;\n$blockquote-p-padding-l:    2rem !default;\n$blockquote-p-font-size:    1.1rem !default;\n\n// Shadows\n$z-depth-1:          0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !default;\n$z-depth-1-half:     0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15) !default;\n$z-depth-2:          0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !default;\n$z-depth-3:          0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19) !default;\n$z-depth-4:          0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21) !default;\n$z-depth-5:          0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22) !default;\n\n// Transitions\n$transition-basic:            all .2s ease-in-out !default;\n$transition-hoverable:        all .55s ease-in-out !default;\n\n// Border radius\n$border-radius-base:          .125rem !default;\n$border-radius-circle:        50% !default;\n\n// Buttons\n$btn-color-basic:             $white-base !default;\n$btn-margin-basic:            .375rem !default;\n$btn-padding-y-basic:         .84rem !default;\n$btn-padding-x-basic:         2.14rem !default;\n$btn-font-size-basic:         .81rem !default;\n\n$btn-padding-y-large:         1rem !default;\n$btn-padding-x-large:         2.4rem !default;\n$btn-font-size-large:         .94rem !default;\n\n$btn-padding-y-medium:        .7rem !default;\n$btn-padding-x-medium:        1.6rem !default;\n$btn-font-size-medium:        .7rem !default;\n\n$btn-padding-y-small:         .5rem !default;\n$btn-padding-x-small:         1.6rem !default;\n$btn-font-size-small:         .64rem !default;\n\n$btn-outline-padding-y-basic:         .7rem !default;\n$btn-outline-padding-y-large:         .88rem !default;\n$btn-outline-padding-y-medium:        .58rem !default;\n$btn-outline-padding-y-small:         .38rem !default;\n\n$btn-tb-padding-y:       0.3rem !default;\n$btn-tb-padding-x:       1rem !default;\n\n$btn-transition:         $transition-basic !default;\n\n$btn-icon-basic:         .9rem !default;\n$btn-icon-large:         1rem !default;\n$btn-icon-medium:        .8rem !default;\n$btn-icon-small:         .7rem !default;\n$btn-icon-margin:        .3rem !default;\n\n/*** Global ***/\n// Media Query Ranges\n$small-screen-up:     601px !default;\n$medium-screen-up:    993px !default;\n$large-screen-up:     1201px !default;\n$small-screen:        600px !default;\n$medium-screen:       992px !default;\n$large-screen:        1200px !default;\n$sidenav-breakpoint:  1440px !default;\n\n$medium-and-up: \"only screen and (min-width : #{$small-screen-up})\" !default;\n$large-and-up: \"only screen and (min-width : #{$medium-screen-up})\" !default;\n$small-and-down: \"only screen and (max-width : #{$small-screen})\" !default;\n$medium-and-down: \"only screen and (max-width : #{$medium-screen})\" !default;\n$medium-only: \"only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})\" !default;\n$hide-sidenav: \"only screen and (max-width : #{$sidenav-breakpoint})\" !default;\n\n// Link color\n$link-color: #0275d8 !default;\n\n// Dividers colors\n$hr-light:            $white-base !default;\n$hr-dark:             #666 !default;\n$flex-center-ul-mb:   1rem !default;\n\n// Divider\n$divider-margin-y:         2.8rem !default;\n$divider-margin-x:         .5rem !default;\n$divider-height:           2px !default;\n\n// Masks\n$mask-overlay-transition:     all .4s ease-in-out !default;\n$mask-zoom-transition:        all .2s linear !default;\n$mask-zoom-transform:         scale(1.1) !default;\n$intro-video-transform:       translateX(-50%) translateY(-50%) !default;\n$intro-video-transition:      1s !default;\n\n// Cards\n$md-card-border-radius:          .25rem !default;\n$md-card-link-transition:        .2s ease-in-out !default;\n$md-card-font-size:              .9rem !default;\n$md-card-text-color:             #747373 !default;\n\n// Images\n$image-path: \"../img\" !default;\n$avatar-img-max-width: 100px !default;\n\n// Carousels\n$carousel-control-icon-width:         2.25rem !default;\n$carousel-control-icon-height:        $carousel-control-icon-width !default;\n$carousel-control-prev-icon:          url(#{$image-path}/svg/arrow_left.svg) !default;\n$carousel-control-next-icon:          url(#{$image-path}/svg/arrow_right.svg) !default;\n$carousel-indicators-width:           .625rem !default;\n$carousel-indicators-height:          $carousel-indicators-width !default;\n$carousel-indicators-border-radius:   $border-radius-circle !default;\n$carousel-transition-duration:        .6s !default;\n$carousel-item-transform:             translateX(0) !default;\n$carousel-item-transform-2:           translate3d(0, 0, 0) !default;\n\n// Badges\n$badge-pill-padding-x:                .6rem !default;\n$badge-pill-border-radius:            10rem !default;\n\n// Footers\n$footer-copyright-color:               rgba($white-base, .6) !default;\n$footer-copyright-bg-color:            rgba($black-base, .2) !default;\n$footer-font-size:                     .9rem !default;\n\n// Forms\n$input-bg-color:                      $white-base !default;\n$label-font-size:                     .8rem !default;\n$input-transition:                    all .3s !default;\n$input-disabled-color:                rgba(0,0,0, .46) !default;\n$input-md-focus-color:                $primary-color !default;\n$input-error-color:                   $error-color !default;\n$input-success-color:                 $success-color !default;\n$input-label-after-top:               65px !default;\n$input-label-after-transition:        .2s opacity ease-out, .2s color ease-out !default;\n$input-border-color:                  #ced4da !default;\n\n$input-label-transition:              .2s ease-out !default;\n$input-label-color:                   #757575 !default;\n$input-label-top:                     .65rem !default;\n$input-label-active-transform:        translateY(-140%) !default;\n$input-prefix-transition:             color .2s !default;\n\n$input-md-form-margin-top:            1.5rem !default;\n$input-md-form-margin-bottom:         $input-md-form-margin-top !default;\n$input-label-font-size:               1rem !default;\n$input-label-active-font-size:        .8rem !default;\n$input-prefix-top:                    .25rem !default;\n$input-prefix-font-size:               1.75rem !default;\n$input-prefix-margin-left:             2.5rem !default;\n$input-prefix-width:                   calc(100% - 2.5rem) !default;\n$input-group-addon-font-size:          1.4rem !default;\n$input-form-text-ml:                   2.6rem !default;\n$input-validate-mb:                    2.5rem !default;\n$input-label-valid-top:                3.56rem !default;\n$input-label-invalid-top:              3.44rem !default;\n\n$input-label-font-size-lg:             1.25rem !default;\n$input-label-active-font-size-lg:      .95rem !default;\n$input-prefix-top-lg:                  .4rem !default;\n$input-prefix-font-size-lg:            2rem !default;\n$input-prefix-margin-left-lg:          3rem !default;\n$input-prefix-width-lg:                calc(100% - 3rem) !default;\n$input-group-addon-font-size-lg:       1.65rem !default;\n$input-form-text-ml-lg:                3.1rem !default;\n$input-validate-mb-lg:                 2.8rem !default;\n$input-label-valid-top-lg:             4.1rem !default;\n$input-label-invalid-top-lg:           4rem !default;\n\n$input-label-font-size-sm:             .875rem !default;\n$input-label-active-font-size-sm:      .75rem !default;\n$input-prefix-top-sm:                  .35rem !default;\n$input-prefix-font-size-sm:            1.5rem !default;\n$input-prefix-margin-left-sm:          2rem !default;\n$input-prefix-width-sm:                calc(100% - 2rem) !default;\n$input-group-addon-font-size-sm:       1.15rem !default;\n$input-form-text-ml-sm:                2rem !default;\n$input-validate-mb-sm:                 2.3rem !default;\n$input-label-valid-top-sm:             3.2rem !default;\n$input-label-invalid-top-sm:           3.1rem !default;\n\n$textarea-padding:                     1.5rem !default;\n\n$input-form-control-margin-bottom:     .5rem !default;\n$input-form-control-padding-top:       .3rem !default;\n$input-form-control-padding-bottom:    .55rem !default;\n$input-disabled-solid-color:           #BDBDBD !default;\n\n// Input group\n$input-group-text-bgc:                #e0e0e0 !default;\n$input-group-form-control-px:         .75rem !default;\n$input-group-form-control-py:         .375rem !default;\n\n// List group\n$list-group-padding:                   0 10px 10px 0 !default;\n$list-group-transition:                .5s !default;\n\n// Modals\n$modal-distance:                       10px !default;\n$modal-width:                          400px !default;\n$modal-full-height-medium-screen:      800px !default;\n$modal-full-height-large-screen:       1000px !default;\n$modal-fade-top-transform:             translate3d(0, -25%, 0) !default;\n$modal-fade-bottom-transform:          translate3d(0, 25%, 0) !default;\n$modal-fade-right-transform:           translate3d(25%, 0, 0) !default;\n$modal-fade-left-transform:            translate3d(-25%, 0, 0) !default;\n$modal-notify-body-padding:            1.5rem !default;\n$modal-notify-heading-padding:         .3rem !default;\n$modal-notify-font-size:               1.15rem !default;\n$modal-avatar-margin-top:              6rem !default;\n$modal-avatar-header-margin-top:       -6rem !default;\n$modal-avatar-header-margin-bottom:    -1rem !default;\n$modal-avatar-img-width:               130px !default;\n$modal-body-padding-right:             2rem !default;\n$modal-body-padding-left:              $modal-body-padding-right !default;\n$modal-body-margin-top:                1rem !default;\n$cascading-modal-margin-top:           -2rem !default;\n$cascading-modal-margin-right:         1rem !default;\n$cascading-modal-margin-bottom:        $cascading-modal-margin-right !default;\n$cascading-modal-margin-left:          $cascading-modal-margin-right !default;\n$cascading-modal-padding:              1.5rem !default;\n$cascading-modal-close-margin-right:   $cascading-modal-margin-right !default;\n$cascading-modal-font-size:            1.25rem !default;\n$cascading-modal-fa-margin-right:      9px !default;\n$cascading-modal-social-margin-top:    $cascading-modal-padding !default;\n$cascading-modal-a-font-size:          1rem !default;\n$cascading-modal-tabs-margin-x:        1rem !default;\n$cascading-modal-tabs-margin-top:      -1.5rem !default;\n$cascading-modal-tabs-padding-top:     1.7rem !default;\n\n// Miscellaneous\n$edge-header-height:                   278px !default;\n$edge-header-background-color:         #ccc !default;\n$edge-header-margin-top:               -100px !default;\n\n// Navbars\n$navbar-font-weight:                   300 !default;\n$navbar-double-font-size:              15px !default;\n\n$navbar-light-toggler-icon:            url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\") !default;\n$navbar-light-bg-active-color:         rgba($black-base, .1) !default;\n$navbar-light-hover-color:             rgba($black-base, .75) !default;\n$navbar-light-disabled-color:          rgba(0, 0, 0, 0.5) !default;\n\n$navbar-dark-toggler-icon:             url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\") !default;\n$navbar-dark-bg-active-color:          rgba($white-base, .1) !default;\n$navbar-dark-hover-color:              rgba($white-base, .75) !default;\n$navbar-dark-disabled-color:           rgba(255, 255, 255, 0.5) !default;\n\n$navbar-scrolling-transition:          background .5s ease-in-out, padding .5s ease-in-out !default;\n$navbar-scrolling-transition-duration: 1s !default;\n$navbar-scrolling-padding:             12px !default;\n$navbar-top-collapse-padding:          5px !default;\n$navbar-nav-transition:                .35s !default;\n$navbar-dropdown-font-size:            0.9375rem !default;\n$navbar-dropdown-menu-padding:         10px !default;\n$navbar-flex-icons-padding-md:         6px !default;\n$navbar-flex-icons-padding-lg:         3px !default;\n$navbar-form-input-mr:                 5px !default;\n$navbar-form-input-mb:                 1px !default;\n$navbar-form-input-ml:                 8px !default;\n$navbar-form-input-height:             1rem !default;\n$navbar-breadcrumb-padding-top:        .3rem !default;\n$navbar-breadcrumb-padding-left:       1rem !default;\n$navbar-breadcrumb-color:              rgba(255,255,255,.65) !default;\n\n// Pagination\n$pagination-active-transition:         all .2s linear !default;\n$pagination-page-link-transition:      all .3s linear !default;\n$pagination-page-link-font-size:       .9rem !default;\n$pagination-page-link-font-size-lg:    1rem !default;\n$pagination-page-link-font-size-sm:    .8rem !default;\n$pagination-page-item-disabled-color:  #868e96 !default;\n$pagination-page-link-color:           #212529 !default;\n$pagination-page-link-hover-bg-color:  #eee !default;\n$pagination-circle-margin-x:           2px !default;\n$pagination-circle-border-radius:      $border-radius-circle !default;\n\n// Tables\n$table-th-font-size:                   .9rem !default;\n$table-td-font-size:                   $table-th-font-size !default;\n$table-th-padding-top:                 1.1rem !default;\n$table-td-padding-bottom:              1rem !default;\n$table-a-color:                        #212529 !default;\n$table-hover-transition:               .5s !default;\n$table-hover-background-color:         rgba(0, 0, 0, 0.075) !default;\n$table-sm-padding-y:                   .6rem !default;\n$table-inverse-color-border:           $white-base !default;\n$product-table-img-max-height:         150px !default;\n$product-table-img-min-width:          50px !default;\n$table-th-lg-min-width:                9rem !default;\n$table-th-sm-min-width:                6rem !default;\n$table-scroll-vertical-max-height:     300px !default;\n$table-label-height:                   0.94rem !default;\n$table-label-line-height:              $table-label-height !default;\n\n// Steppers\n$stepper-li-a-padding:                              1.5rem!default;\n$stepper-li-a-circle-color:                         $white !default;\n$stepper-li-a-circle-border-radius:                 $border-radius-circle !default;\n$stepper-li-a-circle-bg:                            rgba($black, .38) !default;\n$stepper-li-a-circle-mr:                            .5rem !default;\n$stepper-li-a-label-color:                          rgba($black, .87) !default;\n\n$stepper-horizontal-li-transition:                  .5s !default;\n$stepper-horizontal-li-a-label-mt:                  .63rem !default;\n$stepper-horizontal-li-after-margin:                .5rem !default;\n$stepper-horizontal-li-after-height:                1px  !default;\n$stepper-horizontal-li-after-bgc:                   rgba($black, .1) !default;\n$stepper-horizontal-breakpoint:                     47.9375rem !default;\n$stepper-horizontal-small-li-a-label-mt:            .2rem !default;\n$stepper-horizontal-small-li-after-width:           $stepper-horizontal-li-after-height !default;\n$stepper-horizontal-small-li-after-height:          calc(100% - 40px) !default;\n$stepper-horizontal-small-li-after-left:            2.19rem !default;\n$stepper-horizontal-small-li-after-top:             3.75rem !default;\n\n$stepper-vertical-li-a-label-mt:                    $stepper-horizontal-small-li-a-label-mt !default;\n$stepper-vertical-li-step-content-ml:               3.13rem !default;\n$stepper-vertical-li-step-content-padding:          .94rem !default;\n$stepper-vertical-li-step-content-p-font-size:      .88rem  !default;\n$stepper-vertical-li-after-width:                   1px !default;\n$stepper-vertical-li-after-height:                  $stepper-horizontal-small-li-after-height !default;\n$stepper-vertical-li-after-left:                    $stepper-horizontal-small-li-after-left !default;\n$stepper-vertical-li-after-top:                     3.44rem !default;\n$stepper-vertical-li-after-bgc:                     $stepper-horizontal-li-after-bgc !default;\n"
  },
  {
    "path": "student/content/mdb/scss/core/_waves.scss",
    "content": "/*!\n * Waves v0.7.6\n * http://fian.my.id/Waves\n *\n * Copyright 2014-2018 Alfiana E. Sibuea and other contributors\n * Released under the MIT license\n * https://github.com/fians/Waves/blob/master/LICENSE */\n\n@mixin waves-transition($transition){\n    -webkit-transition: $transition;\n    -moz-transition: $transition;\n    -o-transition: $transition;\n    transition: $transition;\n}\n\n@mixin waves-transform($string){\n    -webkit-transform: $string;\n    -moz-transform: $string;\n    -ms-transform: $string;\n    -o-transform: $string;\n    transform: $string;\n}\n\n@mixin waves-box-shadow($shadow){\n    -webkit-box-shadow: $shadow;\n    box-shadow: $shadow;\n}\n\n.waves-effect {\n    position: relative;\n    cursor: pointer;\n    overflow: hidden;\n    -webkit-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none;\n    -webkit-tap-highlight-color: transparent;\n\n    .waves-ripple {\n        position: absolute;\n        border-radius: 50%;\n        width: 100px;\n        height: 100px;\n        margin-top:-50px;\n        margin-left:-50px;\n        opacity: 0;\n        background: rgba(0,0,0,0.2);\n        $gradient: rgba(0,0,0,0.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(255,255,255,0) 70%;\n        background: -webkit-radial-gradient($gradient);\n        background: -o-radial-gradient($gradient);\n        background: -moz-radial-gradient($gradient);\n        background: radial-gradient($gradient);\n        @include waves-transition(all 0.5s ease-out);\n        -webkit-transition-property: -webkit-transform, opacity;\n        -moz-transition-property: -moz-transform, opacity;\n        -o-transition-property: -o-transform, opacity;\n        transition-property: transform, opacity;\n        @include waves-transform(scale(0) translate(0,0));\n        pointer-events: none;\n    }\n\n    &.waves-light .waves-ripple {\n        background: rgba(255,255,255,0.4);\n        $gradient: rgba(255,255,255,0.2) 0,rgba(255,255,255,.3) 40%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 70%;\n        background: -webkit-radial-gradient($gradient);\n        background: -o-radial-gradient($gradient);\n        background: -moz-radial-gradient($gradient);\n        background: radial-gradient($gradient);\n    }\n\n    &.waves-classic .waves-ripple {\n        background: rgba(0,0,0,0.2);\n    }\n\n    &.waves-classic.waves-light .waves-ripple {\n        background: rgba(255,255,255,0.4);\n    }\n}\n\n.waves-notransition {\n    @include waves-transition(none #{\"!important\"});\n}\n\n.waves-button,\n.waves-circle {\n    @include waves-transform(translateZ(0));\n    -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);\n}\n\n.waves-button,\n.waves-button:hover,\n.waves-button:visited,\n.waves-button-input {\n    white-space: nowrap;\n    vertical-align: middle;\n    cursor: pointer;\n    border: none;\n    outline: none;\n    color: inherit;\n    background-color: rgba(0, 0, 0, 0);\n    font-size: 1em;\n    line-height:1em;\n    text-align: center;\n    text-decoration: none;\n    z-index: 1;\n}\n\n.waves-button {\n    padding: 0.85em 1.1em;\n    border-radius: 0.2em;\n}\n\n.waves-button-input {\n    margin: 0;\n    padding: 0.85em 1.1em;\n}\n\n.waves-input-wrapper {\n    display: inline-block;\n    position: relative;\n    vertical-align: middle;\n    border-radius: 0.2em;\n\n    &.waves-button {\n        padding: 0;\n    }\n\n    .waves-button-input {\n        position: relative;\n        top: 0;\n        left: 0;\n        z-index: 1;\n    }\n}\n\n.waves-circle {\n    text-align: center;\n    width: 2.5em;\n    height: 2.5em;\n    line-height: 2.5em;\n    border-radius: 50%;\n}\n\n.waves-float {\n    -webkit-mask-image: none;\n    @include waves-box-shadow(0px 1px 1.5px 1px rgba(0, 0, 0, 0.12));\n    @include waves-transition(all 300ms);\n\n    &:active {\n        @include waves-box-shadow(0px 8px 20px 1px rgba(0, 0, 0, 0.30));\n    }\n}\n\n.waves-block {\n    display: block;\n}\n\na {\n  &.waves-effect,\n  &.waves-light {\n    display:inline-block;\n  }\n }\n"
  },
  {
    "path": "student/content/mdb/scss/core/bootstrap/_functions.scss",
    "content": "// Bootstrap functions\n//\n// Utility mixins and functions for evaluating source code across our variables, maps, and mixins.\n\n// Ascending\n// Used to evaluate Sass maps like our grid breakpoints.\n@mixin _assert-ascending($map, $map-name) {\n  $prev-key: null;\n  $prev-num: null;\n  @each $key, $num in $map {\n    @if $prev-num == null or unit($num) == \"%\" {\n      // Do nothing\n    } @else if not comparable($prev-num, $num) {\n      @warn \"Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !\";\n    } @else if $prev-num >= $num {\n      @warn \"Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !\";\n    }\n    $prev-key: $key;\n    $prev-num: $num;\n  }\n}\n\n// Starts at zero\n// Another grid mixin that ensures the min-width of the lowest breakpoint starts at 0.\n@mixin _assert-starts-at-zero($map) {\n  $values: map-values($map);\n  $first-value: nth($values, 1);\n  @if $first-value != 0 {\n    @warn \"First breakpoint in `$grid-breakpoints` must start at 0, but starts at #{$first-value}.\";\n  }\n}\n\n// Replace `$search` with `$replace` in `$string`\n// Used on our SVG icon backgrounds for custom forms.\n//\n// @author Hugo Giraudel\n// @param {String} $string - Initial string\n// @param {String} $search - Substring to replace\n// @param {String} $replace ('') - New value\n// @return {String} - Updated string\n@function str-replace($string, $search, $replace: \"\") {\n  $index: str-index($string, $search);\n\n  @if $index {\n    @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);\n  }\n\n  @return $string;\n}\n\n// Color contrast\n@function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) {\n  $r: red($color);\n  $g: green($color);\n  $b: blue($color);\n\n  $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;\n\n  @if ($yiq >= $yiq-contrasted-threshold) {\n    @return $dark;\n  } @else {\n    @return $light;\n  }\n}\n\n// Retrieve color Sass maps\n@function color($key: \"blue\") {\n  @return map-get($colors, $key);\n}\n\n@function theme-color($key: \"primary\") {\n  @return map-get($theme-colors, $key);\n}\n\n@function gray($key: \"100\") {\n  @return map-get($grays, $key);\n}\n\n// Request a theme color level\n@function theme-color-level($color-name: \"primary\", $level: 0) {\n  $color: theme-color($color-name);\n  $color-base: if($level > 0, $black, $white);\n  $level: abs($level);\n\n  @return mix($color-base, $color, $level * $theme-color-interval);\n}\n"
  },
  {
    "path": "student/content/mdb/scss/core/bootstrap/_variables.scss",
    "content": "// Variables\n//\n// Variables should follow the `$component-state-property-size` formula for\n// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.\n\n// Color system\n\n$white:    #fff !default;\n$gray-100: #f8f9fa !default;\n$gray-200: #e9ecef !default;\n$gray-300: #dee2e6 !default;\n$gray-400: #ced4da !default;\n$gray-500: #adb5bd !default;\n$gray-600: #6c757d !default;\n$gray-700: #495057 !default;\n$gray-800: #343a40 !default;\n$gray-900: #212529 !default;\n$black:    #000 !default;\n\n$grays: () !default;\n// stylelint-disable-next-line scss/dollar-variable-default\n$grays: map-merge(\n  (\n    \"100\": $gray-100,\n    \"200\": $gray-200,\n    \"300\": $gray-300,\n    \"400\": $gray-400,\n    \"500\": $gray-500,\n    \"600\": $gray-600,\n    \"700\": $gray-700,\n    \"800\": $gray-800,\n    \"900\": $gray-900\n  ),\n  $grays\n);\n\n$blue:    #007bff !default;\n$indigo:  #6610f2 !default;\n$purple:  #6f42c1 !default;\n$pink:    #e83e8c !default;\n$red:     #dc3545 !default;\n$orange:  #fd7e14 !default;\n$yellow:  #ffc107 !default;\n$green:   #28a745 !default;\n$teal:    #20c997 !default;\n$cyan:    #17a2b8 !default;\n\n$colors: () !default;\n// stylelint-disable-next-line scss/dollar-variable-default\n$colors: map-merge(\n  (\n    \"blue\":       $blue,\n    \"indigo\":     $indigo,\n    \"purple\":     $purple,\n    \"pink\":       $pink,\n    \"red\":        $red,\n    \"orange\":     $orange,\n    \"yellow\":     $yellow,\n    \"green\":      $green,\n    \"teal\":       $teal,\n    \"cyan\":       $cyan,\n    \"white\":      $white,\n    \"gray\":       $gray-600,\n    \"gray-dark\":  $gray-800\n  ),\n  $colors\n);\n\n$primary:       $blue !default;\n$secondary:     $gray-600 !default;\n$success:       $green !default;\n$info:          $cyan !default;\n$warning:       $yellow !default;\n$danger:        $red !default;\n$light:         $gray-100 !default;\n$dark:          $gray-800 !default;\n\n$theme-colors: () !default;\n// stylelint-disable-next-line scss/dollar-variable-default\n$theme-colors: map-merge(\n  (\n    \"primary\":    $primary,\n    \"secondary\":  $secondary,\n    \"success\":    $success,\n    \"info\":       $info,\n    \"warning\":    $warning,\n    \"danger\":     $danger,\n    \"light\":      $light,\n    \"dark\":       $dark\n  ),\n  $theme-colors\n);\n\n// Set a specific jump point for requesting color jumps\n$theme-color-interval:      8% !default;\n\n// The yiq lightness value that determines when the lightness of color changes from \"dark\" to \"light\". Acceptable values are between 0 and 255.\n$yiq-contrasted-threshold:  150 !default;\n\n// Customize the light and dark text colors for use in our YIQ color contrast function.\n$yiq-text-dark:             $gray-900 !default;\n$yiq-text-light:            $white !default;\n\n\n// Options\n//\n// Quickly modify global styling by enabling or disabling optional features.\n\n$enable-caret:                                true !default;\n$enable-rounded:                              true !default;\n$enable-shadows:                              false !default;\n$enable-gradients:                            false !default;\n$enable-transitions:                          true !default;\n$enable-prefers-reduced-motion-media-query:   true !default;\n$enable-hover-media-query:                    false !default; // Deprecated, no longer affects any compiled CSS\n$enable-grid-classes:                         true !default;\n$enable-print-styles:                         true !default;\n$enable-validation-icons:                     true !default;\n\n\n// Spacing\n//\n// Control the default styling of most Bootstrap elements by modifying these\n// variables. Mostly focused on spacing.\n// You can add more entries to the $spacers map, should you need more variation.\n\n$spacer: 1rem !default;\n$spacers: () !default;\n// stylelint-disable-next-line scss/dollar-variable-default\n$spacers: map-merge(\n  (\n    0: 0,\n    1: ($spacer * .25),\n    2: ($spacer * .5),\n    3: $spacer,\n    4: ($spacer * 1.5),\n    5: ($spacer * 3)\n  ),\n  $spacers\n);\n\n// This variable affects the `.h-*` and `.w-*` classes.\n$sizes: () !default;\n// stylelint-disable-next-line scss/dollar-variable-default\n$sizes: map-merge(\n  (\n    25: 25%,\n    50: 50%,\n    75: 75%,\n    100: 100%,\n    auto: auto\n  ),\n  $sizes\n);\n\n\n// Body\n//\n// Settings for the `<body>` element.\n\n$body-bg:                   $white !default;\n$body-color:                $gray-900 !default;\n\n\n// Links\n//\n// Style anchor elements.\n\n$link-color:                              theme-color(\"primary\") !default;\n$link-decoration:                         none !default;\n$link-hover-color:                        darken($link-color, 15%) !default;\n$link-hover-decoration:                   underline !default;\n// Darken percentage for links with `.text-*` class (e.g. `.text-success`)\n$emphasized-link-hover-darken-percentage: 15% !default;\n\n// Paragraphs\n//\n// Style p element.\n\n$paragraph-margin-bottom:   1rem !default;\n\n\n// Grid breakpoints\n//\n// Define the minimum dimensions at which your layout will change,\n// adapting to different screen sizes, for use in media queries.\n\n$grid-breakpoints: () !default;\n// stylelint-disable-next-line scss/dollar-variable-default\n$grid-breakpoints: map-merge(\n  (\n    xs: 0,\n    sm: 576px,\n    md: 768px,\n    lg: 992px,\n    xl: 1200px\n  ),\n  $grid-breakpoints\n);\n\n@include _assert-ascending($grid-breakpoints, \"$grid-breakpoints\");\n@include _assert-starts-at-zero($grid-breakpoints);\n\n\n// Grid containers\n//\n// Define the maximum width of `.container` for different screen sizes.\n\n$container-max-widths: () !default;\n// stylelint-disable-next-line scss/dollar-variable-default\n$container-max-widths: map-merge(\n  (\n    sm: 540px,\n    md: 720px,\n    lg: 960px,\n    xl: 1140px\n  ),\n  $container-max-widths\n);\n\n@include _assert-ascending($container-max-widths, \"$container-max-widths\");\n\n\n// Grid columns\n//\n// Set the number of columns and specify the width of the gutters.\n\n$grid-columns:                12 !default;\n$grid-gutter-width:           30px !default;\n\n\n// Components\n//\n// Define common padding and border radius sizes and more.\n\n$line-height-lg:              1.5 !default;\n$line-height-sm:              1.5 !default;\n\n$border-width:                1px !default;\n$border-color:                $gray-300 !default;\n\n$border-radius:               .25rem !default;\n$border-radius-lg:            .3rem !default;\n$border-radius-sm:            .2rem !default;\n\n$rounded-pill:                50rem !default;\n\n$box-shadow-sm:               0 .125rem .25rem rgba($black, .075) !default;\n$box-shadow:                  0 .5rem 1rem rgba($black, .15) !default;\n$box-shadow-lg:               0 1rem 3rem rgba($black, .175) !default;\n\n$component-active-color:      $white !default;\n$component-active-bg:         theme-color(\"primary\") !default;\n\n$caret-width:                 .3em !default;\n\n$transition-base:             all .2s ease-in-out !default;\n$transition-fade:             opacity .15s linear !default;\n$transition-collapse:         height .35s ease !default;\n\n$embed-responsive-aspect-ratios: () !default;\n// stylelint-disable-next-line scss/dollar-variable-default\n$embed-responsive-aspect-ratios: join(\n  (\n    (21 9),\n    (16 9),\n    (3 4),\n    (1 1),\n  ),\n  $embed-responsive-aspect-ratios\n);\n\n// Fonts\n//\n// Font, line-height, and color for body text, headings, and more.\n\n// stylelint-disable value-keyword-case\n$font-family-sans-serif:      -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\" !default;\n$font-family-monospace:       SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace !default;\n$font-family-base:            $font-family-sans-serif !default;\n// stylelint-enable value-keyword-case\n\n$font-size-base:              1rem !default; // Assumes the browser default, typically `16px`\n$font-size-lg:                ($font-size-base * 1.25) !default;\n$font-size-sm:                ($font-size-base * .875) !default;\n\n$font-weight-lighter:         lighter !default;\n$font-weight-light:           300 !default;\n$font-weight-normal:          400 !default;\n$font-weight-bold:            700 !default;\n$font-weight-bolder:          bolder !default;\n\n$font-weight-base:            $font-weight-normal !default;\n$line-height-base:            1.5 !default;\n\n$h1-font-size:                $font-size-base * 2.5 !default;\n$h2-font-size:                $font-size-base * 2 !default;\n$h3-font-size:                $font-size-base * 1.75 !default;\n$h4-font-size:                $font-size-base * 1.5 !default;\n$h5-font-size:                $font-size-base * 1.25 !default;\n$h6-font-size:                $font-size-base !default;\n\n$headings-margin-bottom:      $spacer / 2 !default;\n$headings-font-family:        inherit !default;\n$headings-font-weight:        500 !default;\n$headings-line-height:        1.2 !default;\n$headings-color:              inherit !default;\n\n$display1-size:               6rem !default;\n$display2-size:               5.5rem !default;\n$display3-size:               4.5rem !default;\n$display4-size:               3.5rem !default;\n\n$display1-weight:             300 !default;\n$display2-weight:             300 !default;\n$display3-weight:             300 !default;\n$display4-weight:             300 !default;\n$display-line-height:         $headings-line-height !default;\n\n$lead-font-size:              ($font-size-base * 1.25) !default;\n$lead-font-weight:            300 !default;\n\n$small-font-size:             80% !default;\n\n$text-muted:                  $gray-600 !default;\n\n$blockquote-small-color:      $gray-600 !default;\n$blockquote-small-font-size:  $small-font-size !default;\n$blockquote-font-size:        ($font-size-base * 1.25) !default;\n\n$hr-border-color:             rgba($black, .1) !default;\n$hr-border-width:             $border-width !default;\n\n$mark-padding:                .2em !default;\n\n$dt-font-weight:              $font-weight-bold !default;\n\n$kbd-box-shadow:              inset 0 -.1rem 0 rgba($black, .25) !default;\n$nested-kbd-font-weight:      $font-weight-bold !default;\n\n$list-inline-padding:         .5rem !default;\n\n$mark-bg:                     #fcf8e3 !default;\n\n$hr-margin-y:                 $spacer !default;\n\n\n// Tables\n//\n// Customizes the `.table` component with basic values, each used across all table variations.\n\n$table-cell-padding:          .75rem !default;\n$table-cell-padding-sm:       .3rem !default;\n\n$table-bg:                    transparent !default;\n$table-accent-bg:             rgba($black, .05) !default;\n$table-hover-bg:              rgba($black, .075) !default;\n$table-active-bg:             $table-hover-bg !default;\n\n$table-border-width:          $border-width !default;\n$table-border-color:          $gray-300 !default;\n\n$table-head-bg:               $gray-200 !default;\n$table-head-color:            $gray-700 !default;\n\n$table-dark-bg:               $gray-900 !default;\n$table-dark-accent-bg:        rgba($white, .05) !default;\n$table-dark-hover-bg:         rgba($white, .075) !default;\n$table-dark-border-color:     lighten($gray-900, 7.5%) !default;\n$table-dark-color:            $white !default;\n\n$table-striped-order:         odd !default;\n\n$table-caption-color:         $text-muted !default;\n\n$table-bg-level:              -9 !default;\n$table-border-level:          -6 !default;\n\n\n// Buttons + Forms\n//\n// Shared variables that are reassigned to `$input-` and `$btn-` specific variables.\n\n$input-btn-padding-y:         .375rem !default;\n$input-btn-padding-x:         .75rem !default;\n$input-btn-font-size:         $font-size-base !default;\n$input-btn-line-height:       $line-height-base !default;\n\n$input-btn-focus-width:       .2rem !default;\n$input-btn-focus-color:       rgba($component-active-bg, .25) !default;\n$input-btn-focus-box-shadow:  0 0 0 $input-btn-focus-width $input-btn-focus-color !default;\n\n$input-btn-padding-y-sm:      .25rem !default;\n$input-btn-padding-x-sm:      .5rem !default;\n$input-btn-font-size-sm:      $font-size-sm !default;\n$input-btn-line-height-sm:    $line-height-sm !default;\n\n$input-btn-padding-y-lg:      .5rem !default;\n$input-btn-padding-x-lg:      1rem !default;\n$input-btn-font-size-lg:      $font-size-lg !default;\n$input-btn-line-height-lg:    $line-height-lg !default;\n\n$input-btn-border-width:      $border-width !default;\n\n\n// Buttons\n//\n// For each of Bootstrap's buttons, define text, background, and border color.\n\n$btn-padding-y:               $input-btn-padding-y !default;\n$btn-padding-x:               $input-btn-padding-x !default;\n$btn-font-size:               $input-btn-font-size !default;\n$btn-line-height:             $input-btn-line-height !default;\n\n$btn-padding-y-sm:            $input-btn-padding-y-sm !default;\n$btn-padding-x-sm:            $input-btn-padding-x-sm !default;\n$btn-font-size-sm:            $input-btn-font-size-sm !default;\n$btn-line-height-sm:          $input-btn-line-height-sm !default;\n\n$btn-padding-y-lg:            $input-btn-padding-y-lg !default;\n$btn-padding-x-lg:            $input-btn-padding-x-lg !default;\n$btn-font-size-lg:            $input-btn-font-size-lg !default;\n$btn-line-height-lg:          $input-btn-line-height-lg !default;\n\n$btn-border-width:            $input-btn-border-width !default;\n\n$btn-font-weight:             $font-weight-normal !default;\n$btn-box-shadow:              inset 0 1px 0 rgba($white, .15), 0 1px 1px rgba($black, .075) !default;\n$btn-focus-width:             $input-btn-focus-width !default;\n$btn-focus-box-shadow:        $input-btn-focus-box-shadow !default;\n$btn-disabled-opacity:        .65 !default;\n$btn-active-box-shadow:       inset 0 3px 5px rgba($black, .125) !default;\n\n$btn-link-disabled-color:     $gray-600 !default;\n\n$btn-block-spacing-y:         .5rem !default;\n\n// Allows for customizing button radius independently from global border radius\n$btn-border-radius:           $border-radius !default;\n$btn-border-radius-lg:        $border-radius-lg !default;\n$btn-border-radius-sm:        $border-radius-sm !default;\n\n$btn-transition:              color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;\n\n\n// Forms\n\n$label-margin-bottom:                   .5rem !default;\n\n$input-padding-y:                       $input-btn-padding-y !default;\n$input-padding-x:                       $input-btn-padding-x !default;\n$input-font-size:                       $input-btn-font-size !default;\n$input-font-weight:                     $font-weight-base !default;\n$input-line-height:                     $input-btn-line-height !default;\n\n$input-padding-y-sm:                    $input-btn-padding-y-sm !default;\n$input-padding-x-sm:                    $input-btn-padding-x-sm !default;\n$input-font-size-sm:                    $input-btn-font-size-sm !default;\n$input-line-height-sm:                  $input-btn-line-height-sm !default;\n\n$input-padding-y-lg:                    $input-btn-padding-y-lg !default;\n$input-padding-x-lg:                    $input-btn-padding-x-lg !default;\n$input-font-size-lg:                    $input-btn-font-size-lg !default;\n$input-line-height-lg:                  $input-btn-line-height-lg !default;\n\n$input-bg:                              $white !default;\n$input-disabled-bg:                     $gray-200 !default;\n\n$input-color:                           $gray-700 !default;\n$input-border-color:                    $gray-400 !default;\n$input-border-width:                    $input-btn-border-width !default;\n$input-box-shadow:                      inset 0 1px 1px rgba($black, .075) !default;\n\n$input-border-radius:                   $border-radius !default;\n$input-border-radius-lg:                $border-radius-lg !default;\n$input-border-radius-sm:                $border-radius-sm !default;\n\n$input-focus-bg:                        $input-bg !default;\n$input-focus-border-color:              lighten($component-active-bg, 25%) !default;\n$input-focus-color:                     $input-color !default;\n$input-focus-width:                     $input-btn-focus-width !default;\n$input-focus-box-shadow:                $input-btn-focus-box-shadow !default;\n\n$input-placeholder-color:               $gray-600 !default;\n$input-plaintext-color:                 $body-color !default;\n\n$input-height-border:                   $input-border-width * 2 !default;\n\n$input-height-inner:                    ($input-btn-font-size * $input-btn-line-height) + ($input-btn-padding-y * 2) !default;\n$input-height:                          calc(#{$input-height-inner} + #{$input-height-border}) !default;\n\n$input-height-inner-sm:                 ($input-btn-font-size-sm * $input-btn-line-height-sm) + ($input-btn-padding-y-sm * 2) !default;\n$input-height-sm:                       calc(#{$input-height-inner-sm} + #{$input-height-border}) !default;\n\n$input-height-inner-lg:                 ($input-btn-font-size-lg * $input-btn-line-height-lg) + ($input-btn-padding-y-lg * 2) !default;\n$input-height-lg:                       calc(#{$input-height-inner-lg} + #{$input-height-border}) !default;\n\n$input-transition:                      border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;\n\n$form-text-margin-top:                  .25rem !default;\n\n$form-check-input-gutter:               1.25rem !default;\n$form-check-input-margin-y:             .3rem !default;\n$form-check-input-margin-x:             .25rem !default;\n\n$form-check-inline-margin-x:            .75rem !default;\n$form-check-inline-input-margin-x:      .3125rem !default;\n\n$form-grid-gutter-width:                10px !default;\n$form-group-margin-bottom:              1rem !default;\n\n$input-group-addon-color:               $input-color !default;\n$input-group-addon-bg:                  $gray-200 !default;\n$input-group-addon-border-color:        $input-border-color !default;\n\n$custom-forms-transition:               background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;\n\n$custom-control-gutter:                 .5rem !default;\n$custom-control-spacer-x:               1rem !default;\n\n$custom-control-indicator-size:         1rem !default;\n$custom-control-indicator-bg:           $input-bg !default;\n\n$custom-control-indicator-bg-size:      50% 50% !default;\n$custom-control-indicator-box-shadow:   $input-box-shadow !default;\n$custom-control-indicator-border-color: $gray-500 !default;\n$custom-control-indicator-border-width: $input-border-width !default;\n\n$custom-control-indicator-disabled-bg:          $input-disabled-bg !default;\n$custom-control-label-disabled-color:           $gray-600 !default;\n\n$custom-control-indicator-checked-color:        $component-active-color !default;\n$custom-control-indicator-checked-bg:           $component-active-bg !default;\n$custom-control-indicator-checked-disabled-bg:  rgba(theme-color(\"primary\"), .5) !default;\n$custom-control-indicator-checked-box-shadow:   none !default;\n$custom-control-indicator-checked-border-color: $custom-control-indicator-checked-bg !default;\n\n$custom-control-indicator-focus-box-shadow:     $input-btn-focus-box-shadow !default;\n$custom-control-indicator-focus-border-color:   $input-focus-border-color !default;\n\n$custom-control-indicator-active-color:         $component-active-color !default;\n$custom-control-indicator-active-bg:            lighten($component-active-bg, 35%) !default;\n$custom-control-indicator-active-box-shadow:    none !default;\n$custom-control-indicator-active-border-color:  $custom-control-indicator-active-bg !default;\n\n$custom-checkbox-indicator-border-radius:       $border-radius !default;\n$custom-checkbox-indicator-icon-checked:        str-replace(url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='#{$custom-control-indicator-checked-color}' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e\"), \"#\", \"%23\") !default;\n\n$custom-checkbox-indicator-indeterminate-bg:           $component-active-bg !default;\n$custom-checkbox-indicator-indeterminate-color:        $custom-control-indicator-checked-color !default;\n$custom-checkbox-indicator-icon-indeterminate:         str-replace(url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3e%3cpath stroke='#{$custom-checkbox-indicator-indeterminate-color}' d='M0 2h4'/%3e%3c/svg%3e\"), \"#\", \"%23\") !default;\n$custom-checkbox-indicator-indeterminate-box-shadow:   none !default;\n$custom-checkbox-indicator-indeterminate-border-color: $custom-checkbox-indicator-indeterminate-bg !default;\n\n$custom-radio-indicator-border-radius:          50% !default;\n$custom-radio-indicator-icon-checked:           str-replace(url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3e%3c/svg%3e\"), \"#\", \"%23\") !default;\n\n$custom-switch-width:                           $custom-control-indicator-size * 1.75 !default;\n$custom-switch-indicator-border-radius:         $custom-control-indicator-size / 2 !default;\n$custom-switch-indicator-size:                  calc(#{$custom-control-indicator-size} - #{$custom-control-indicator-border-width * 4}) !default;\n\n$custom-select-padding-y:           $input-btn-padding-y !default;\n$custom-select-padding-x:           $input-btn-padding-x !default;\n$custom-select-height:              $input-height !default;\n$custom-select-indicator-padding:   1rem !default; // Extra padding to account for the presence of the background-image based indicator\n$custom-select-font-weight:         $input-font-weight !default;\n$custom-select-line-height:         $input-line-height !default;\n$custom-select-color:               $input-color !default;\n$custom-select-disabled-color:      $gray-600 !default;\n$custom-select-bg:                  $input-bg !default;\n$custom-select-disabled-bg:         $gray-200 !default;\n$custom-select-bg-size:             8px 10px !default; // In pixels because image dimensions\n$custom-select-indicator-color:     $gray-800 !default;\n$custom-select-indicator:           str-replace(url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='#{$custom-select-indicator-color}' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\"), \"#\", \"%23\") !default;\n$custom-select-background:          $custom-select-indicator no-repeat right $custom-select-padding-x center / $custom-select-bg-size !default; // Used so we can have multiple background elements (e.g., arrow and feedback icon)\n\n$custom-select-feedback-icon-padding-right: $input-height-inner * 3 / 4 + $custom-select-padding-x + $custom-select-indicator-padding !default;\n$custom-select-feedback-icon-position:      center right ($custom-select-padding-x + $custom-select-indicator-padding) !default;\n$custom-select-feedback-icon-size:          ($input-height-inner / 2) ($input-height-inner / 2) !default;\n\n$custom-select-border-width:        $input-border-width !default;\n$custom-select-border-color:        $input-border-color !default;\n$custom-select-border-radius:       $border-radius !default;\n$custom-select-box-shadow:          inset 0 1px 2px rgba($black, .075) !default;\n\n$custom-select-focus-border-color:  $input-focus-border-color !default;\n$custom-select-focus-width:         $input-focus-width !default;\n$custom-select-focus-box-shadow:    0 0 0 $custom-select-focus-width rgba($custom-select-focus-border-color, .5) !default;\n\n$custom-select-padding-y-sm:        $input-padding-y-sm !default;\n$custom-select-padding-x-sm:        $input-padding-x-sm !default;\n$custom-select-font-size-sm:        $input-btn-font-size-sm !default;\n$custom-select-height-sm:           $input-height-sm !default;\n\n$custom-select-padding-y-lg:        $input-padding-y-lg !default;\n$custom-select-padding-x-lg:        $input-padding-x-lg !default;\n$custom-select-font-size-lg:        $input-btn-font-size-lg !default;\n$custom-select-height-lg:           $input-height-lg !default;\n\n$custom-range-track-width:          100% !default;\n$custom-range-track-height:         .5rem !default;\n$custom-range-track-cursor:         pointer !default;\n$custom-range-track-bg:             $gray-300 !default;\n$custom-range-track-border-radius:  1rem !default;\n$custom-range-track-box-shadow:     inset 0 .25rem .25rem rgba($black, .1) !default;\n\n$custom-range-thumb-width:                   1rem !default;\n$custom-range-thumb-height:                  $custom-range-thumb-width !default;\n$custom-range-thumb-bg:                      $component-active-bg !default;\n$custom-range-thumb-border:                  0 !default;\n$custom-range-thumb-border-radius:           1rem !default;\n$custom-range-thumb-box-shadow:              0 .1rem .25rem rgba($black, .1) !default;\n$custom-range-thumb-focus-box-shadow:        0 0 0 1px $body-bg, $input-focus-box-shadow !default;\n$custom-range-thumb-focus-box-shadow-width:  $input-focus-width !default; // For focus box shadow issue in IE/Edge\n$custom-range-thumb-active-bg:               lighten($component-active-bg, 35%) !default;\n$custom-range-thumb-disabled-bg:             $gray-500 !default;\n\n$custom-file-height:                $input-height !default;\n$custom-file-height-inner:          $input-height-inner !default;\n$custom-file-focus-border-color:    $input-focus-border-color !default;\n$custom-file-focus-box-shadow:      $input-focus-box-shadow !default;\n$custom-file-disabled-bg:           $input-disabled-bg !default;\n\n$custom-file-padding-y:             $input-padding-y !default;\n$custom-file-padding-x:             $input-padding-x !default;\n$custom-file-line-height:           $input-line-height !default;\n$custom-file-font-weight:           $input-font-weight !default;\n$custom-file-color:                 $input-color !default;\n$custom-file-bg:                    $input-bg !default;\n$custom-file-border-width:          $input-border-width !default;\n$custom-file-border-color:          $input-border-color !default;\n$custom-file-border-radius:         $input-border-radius !default;\n$custom-file-box-shadow:            $input-box-shadow !default;\n$custom-file-button-color:          $custom-file-color !default;\n$custom-file-button-bg:             $input-group-addon-bg !default;\n$custom-file-text: (\n  en: \"Browse\"\n) !default;\n\n\n// Form validation\n\n$form-feedback-margin-top:          $form-text-margin-top !default;\n$form-feedback-font-size:           $small-font-size !default;\n$form-feedback-valid-color:         theme-color(\"success\") !default;\n$form-feedback-invalid-color:       theme-color(\"danger\") !default;\n\n$form-feedback-icon-valid-color:    $form-feedback-valid-color !default;\n$form-feedback-icon-valid:          str-replace(url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='#{$form-feedback-icon-valid-color}' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\"), \"#\", \"%23\") !default;\n$form-feedback-icon-invalid-color:  $form-feedback-invalid-color !default;\n$form-feedback-icon-invalid:        str-replace(url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='#{$form-feedback-icon-invalid-color}' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E\"), \"#\", \"%23\") !default;\n\n\n// Dropdowns\n//\n// Dropdown menu container and contents.\n\n$dropdown-min-width:                10rem !default;\n$dropdown-padding-y:                .5rem !default;\n$dropdown-spacer:                   .125rem !default;\n$dropdown-bg:                       $white !default;\n$dropdown-border-color:             rgba($black, .15) !default;\n$dropdown-border-radius:            $border-radius !default;\n$dropdown-border-width:             $border-width !default;\n$dropdown-inner-border-radius:      calc(#{$dropdown-border-radius} - #{$dropdown-border-width}) !default;\n$dropdown-divider-bg:               $gray-200 !default;\n$dropdown-box-shadow:               0 .5rem 1rem rgba($black, .175) !default;\n\n$dropdown-link-color:               $gray-900 !default;\n$dropdown-link-hover-color:         darken($gray-900, 5%) !default;\n$dropdown-link-hover-bg:            $gray-100 !default;\n\n$dropdown-link-active-color:        $component-active-color !default;\n$dropdown-link-active-bg:           $component-active-bg !default;\n\n$dropdown-link-disabled-color:      $gray-600 !default;\n\n$dropdown-item-padding-y:           .25rem !default;\n$dropdown-item-padding-x:           1.5rem !default;\n\n$dropdown-header-color:             $gray-600 !default;\n\n\n// Z-index master list\n//\n// Warning: Avoid customizing these values. They're used for a bird's eye view\n// of components dependent on the z-axis and are designed to all work together.\n\n$zindex-dropdown:                   1000 !default;\n$zindex-sticky:                     1020 !default;\n$zindex-fixed:                      1030 !default;\n$zindex-modal-backdrop:             1040 !default;\n$zindex-modal:                      1050 !default;\n$zindex-popover:                    1060 !default;\n$zindex-tooltip:                    1070 !default;\n\n\n// Navs\n\n$nav-link-padding-y:                .5rem !default;\n$nav-link-padding-x:                1rem !default;\n$nav-link-disabled-color:           $gray-600 !default;\n\n$nav-tabs-border-color:             $gray-300 !default;\n$nav-tabs-border-width:             $border-width !default;\n$nav-tabs-border-radius:            $border-radius !default;\n$nav-tabs-link-hover-border-color:  $gray-200 $gray-200 $nav-tabs-border-color !default;\n$nav-tabs-link-active-color:        $gray-700 !default;\n$nav-tabs-link-active-bg:           $body-bg !default;\n$nav-tabs-link-active-border-color: $gray-300 $gray-300 $nav-tabs-link-active-bg !default;\n\n$nav-pills-border-radius:           $border-radius !default;\n$nav-pills-link-active-color:       $component-active-color !default;\n$nav-pills-link-active-bg:          $component-active-bg !default;\n\n$nav-divider-color:                 $gray-200 !default;\n$nav-divider-margin-y:              $spacer / 2 !default;\n\n\n// Navbar\n\n$navbar-padding-y:                  $spacer / 2 !default;\n$navbar-padding-x:                  $spacer !default;\n\n$navbar-nav-link-padding-x:         .5rem !default;\n\n$navbar-brand-font-size:            $font-size-lg !default;\n// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link\n$nav-link-height:                   $font-size-base * $line-height-base + $nav-link-padding-y * 2 !default;\n$navbar-brand-height:               $navbar-brand-font-size * $line-height-base !default;\n$navbar-brand-padding-y:            ($nav-link-height - $navbar-brand-height) / 2 !default;\n\n$navbar-toggler-padding-y:          .25rem !default;\n$navbar-toggler-padding-x:          .75rem !default;\n$navbar-toggler-font-size:          $font-size-lg !default;\n$navbar-toggler-border-radius:      $btn-border-radius !default;\n\n$navbar-dark-color:                 rgba($white, .5) !default;\n$navbar-dark-hover-color:           rgba($white, .75) !default;\n$navbar-dark-active-color:          $white !default;\n$navbar-dark-disabled-color:        rgba($white, .25) !default;\n$navbar-dark-toggler-icon-bg:       str-replace(url(\"data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='#{$navbar-dark-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\"), \"#\", \"%23\") !default;\n$navbar-dark-toggler-border-color:  rgba($white, .1) !default;\n\n$navbar-light-color:                rgba($black, .5) !default;\n$navbar-light-hover-color:          rgba($black, .7) !default;\n$navbar-light-active-color:         rgba($black, .9) !default;\n$navbar-light-disabled-color:       rgba($black, .3) !default;\n$navbar-light-toggler-icon-bg:      str-replace(url(\"data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='#{$navbar-light-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\"), \"#\", \"%23\") !default;\n$navbar-light-toggler-border-color: rgba($black, .1) !default;\n\n$navbar-light-brand-color:                $navbar-light-active-color !default;\n$navbar-light-brand-hover-color:          $navbar-light-active-color !default;\n$navbar-dark-brand-color:                 $navbar-dark-active-color !default;\n$navbar-dark-brand-hover-color:           $navbar-dark-active-color !default;\n\n\n// Pagination\n\n$pagination-padding-y:              .5rem !default;\n$pagination-padding-x:              .75rem !default;\n$pagination-padding-y-sm:           .25rem !default;\n$pagination-padding-x-sm:           .5rem !default;\n$pagination-padding-y-lg:           .75rem !default;\n$pagination-padding-x-lg:           1.5rem !default;\n$pagination-line-height:            1.25 !default;\n\n$pagination-color:                  $link-color !default;\n$pagination-bg:                     $white !default;\n$pagination-border-width:           $border-width !default;\n$pagination-border-color:           $gray-300 !default;\n\n$pagination-focus-box-shadow:       $input-btn-focus-box-shadow !default;\n$pagination-focus-outline:          0 !default;\n\n$pagination-hover-color:            $link-hover-color !default;\n$pagination-hover-bg:               $gray-200 !default;\n$pagination-hover-border-color:     $gray-300 !default;\n\n$pagination-active-color:           $component-active-color !default;\n$pagination-active-bg:              $component-active-bg !default;\n$pagination-active-border-color:    $pagination-active-bg !default;\n\n$pagination-disabled-color:         $gray-600 !default;\n$pagination-disabled-bg:            $white !default;\n$pagination-disabled-border-color:  $gray-300 !default;\n\n\n// Jumbotron\n\n$jumbotron-padding:                 2rem !default;\n$jumbotron-bg:                      $gray-200 !default;\n\n\n// Cards\n\n$card-spacer-y:                     .75rem !default;\n$card-spacer-x:                     1.25rem !default;\n$card-border-width:                 $border-width !default;\n$card-border-radius:                $border-radius !default;\n$card-border-color:                 rgba($black, .125) !default;\n$card-inner-border-radius:          calc(#{$card-border-radius} - #{$card-border-width}) !default;\n$card-cap-bg:                       rgba($black, .03) !default;\n$card-cap-color:                    inherit !default;\n$card-bg:                           $white !default;\n\n$card-img-overlay-padding:          1.25rem !default;\n\n$card-group-margin:                 $grid-gutter-width / 2 !default;\n$card-deck-margin:                  $card-group-margin !default;\n\n$card-columns-count:                3 !default;\n$card-columns-gap:                  1.25rem !default;\n$card-columns-margin:               $card-spacer-y !default;\n\n\n// Tooltips\n\n$tooltip-font-size:                 $font-size-sm !default;\n$tooltip-max-width:                 200px !default;\n$tooltip-color:                     $white !default;\n$tooltip-bg:                        $black !default;\n$tooltip-border-radius:             $border-radius !default;\n$tooltip-opacity:                   .9 !default;\n$tooltip-padding-y:                 .25rem !default;\n$tooltip-padding-x:                 .5rem !default;\n$tooltip-margin:                    0 !default;\n\n$tooltip-arrow-width:               .8rem !default;\n$tooltip-arrow-height:              .4rem !default;\n$tooltip-arrow-color:               $tooltip-bg !default;\n\n// Form tooltips must come after regular tooltips\n$form-feedback-tooltip-padding-y:     $tooltip-padding-y !default;\n$form-feedback-tooltip-padding-x:     $tooltip-padding-x !default;\n$form-feedback-tooltip-font-size:     $tooltip-font-size !default;\n$form-feedback-tooltip-line-height:   $line-height-base !default;\n$form-feedback-tooltip-opacity:       $tooltip-opacity !default;\n$form-feedback-tooltip-border-radius: $tooltip-border-radius !default;\n\n\n// Popovers\n\n$popover-font-size:                 $font-size-sm !default;\n$popover-bg:                        $white !default;\n$popover-max-width:                 276px !default;\n$popover-border-width:              $border-width !default;\n$popover-border-color:              rgba($black, .2) !default;\n$popover-border-radius:             $border-radius-lg !default;\n$popover-box-shadow:                0 .25rem .5rem rgba($black, .2) !default;\n\n$popover-header-bg:                 darken($popover-bg, 3%) !default;\n$popover-header-color:              $headings-color !default;\n$popover-header-padding-y:          .5rem !default;\n$popover-header-padding-x:          .75rem !default;\n\n$popover-body-color:                $body-color !default;\n$popover-body-padding-y:            $popover-header-padding-y !default;\n$popover-body-padding-x:            $popover-header-padding-x !default;\n\n$popover-arrow-width:               1rem !default;\n$popover-arrow-height:              .5rem !default;\n$popover-arrow-color:               $popover-bg !default;\n\n$popover-arrow-outer-color:         fade-in($popover-border-color, .05) !default;\n\n\n// Toasts\n$toast-max-width: 350px !default;\n$toast-padding-x: .75rem !default;\n$toast-padding-y: .25rem !default;\n$toast-font-size: .875rem !default;\n$toast-background-color: rgba($white, .85) !default;\n$toast-border-width: 1px !default;\n$toast-border-color: rgba(0, 0, 0, .1) !default;\n$toast-border-radius: .25rem !default;\n$toast-box-shadow: 0 .25rem .75rem rgba($black, .1) !default;\n\n$toast-header-color: $gray-600 !default;\n$toast-header-background-color: rgba($white, .85) !default;\n$toast-header-border-color: rgba(0, 0, 0, .05) !default;\n\n\n// Badges\n\n$badge-font-size:                   75% !default;\n$badge-font-weight:                 $font-weight-bold !default;\n$badge-padding-y:                   .25em !default;\n$badge-padding-x:                   .4em !default;\n$badge-border-radius:               $border-radius !default;\n\n$badge-pill-padding-x:              .6em !default;\n// Use a higher than normal value to ensure completely rounded edges when\n// customizing padding or font-size on labels.\n$badge-pill-border-radius:          10rem !default;\n\n\n// Modals\n\n// Padding applied to the modal body\n$modal-inner-padding:               1rem !default;\n\n$modal-dialog-margin:               .5rem !default;\n$modal-dialog-margin-y-sm-up:       1.75rem !default;\n\n$modal-title-line-height:           $line-height-base !default;\n\n$modal-content-bg:                  $white !default;\n$modal-content-border-color:        rgba($black, .2) !default;\n$modal-content-border-width:        $border-width !default;\n$modal-content-border-radius:       $border-radius-lg !default;\n$modal-content-box-shadow-xs:       0 .25rem .5rem rgba($black, .5) !default;\n$modal-content-box-shadow-sm-up:    0 .5rem 1rem rgba($black, .5) !default;\n\n$modal-backdrop-bg:                 $black !default;\n$modal-backdrop-opacity:            .5 !default;\n$modal-header-border-color:         $gray-200 !default;\n$modal-footer-border-color:         $modal-header-border-color !default;\n$modal-header-border-width:         $modal-content-border-width !default;\n$modal-footer-border-width:         $modal-header-border-width !default;\n$modal-header-padding-y:            1rem !default;\n$modal-header-padding-x:            1rem !default;\n$modal-header-padding:              $modal-header-padding-y $modal-header-padding-x !default; // Keep this for backwards compatibility\n\n$modal-xl:                          1140px !default;\n$modal-lg:                          800px !default;\n$modal-md:                          500px !default;\n$modal-sm:                          300px !default;\n\n$modal-fade-transform:              translate(0, -50px) !default;\n$modal-show-transform:              none !default;\n$modal-transition:                  transform .3s ease-out !default;\n\n\n// Alerts\n//\n// Define alert colors, border radius, and padding.\n\n$alert-padding-y:                   .75rem !default;\n$alert-padding-x:                   1.25rem !default;\n$alert-margin-bottom:               1rem !default;\n$alert-border-radius:               $border-radius !default;\n$alert-link-font-weight:            $font-weight-bold !default;\n$alert-border-width:                $border-width !default;\n\n$alert-bg-level:                    -10 !default;\n$alert-border-level:                -9 !default;\n$alert-color-level:                 6 !default;\n\n\n// Progress bars\n\n$progress-height:                   1rem !default;\n$progress-font-size:                ($font-size-base * .75) !default;\n$progress-bg:                       $gray-200 !default;\n$progress-border-radius:            $border-radius !default;\n$progress-box-shadow:               inset 0 .1rem .1rem rgba($black, .1) !default;\n$progress-bar-color:                $white !default;\n$progress-bar-bg:                   theme-color(\"primary\") !default;\n$progress-bar-animation-timing:     1s linear infinite !default;\n$progress-bar-transition:           width .6s ease !default;\n\n\n// List group\n\n$list-group-bg:                     $white !default;\n$list-group-border-color:           rgba($black, .125) !default;\n$list-group-border-width:           $border-width !default;\n$list-group-border-radius:          $border-radius !default;\n\n$list-group-item-padding-y:         .75rem !default;\n$list-group-item-padding-x:         1.25rem !default;\n\n$list-group-hover-bg:               $gray-100 !default;\n$list-group-active-color:           $component-active-color !default;\n$list-group-active-bg:              $component-active-bg !default;\n$list-group-active-border-color:    $list-group-active-bg !default;\n\n$list-group-disabled-color:         $gray-600 !default;\n$list-group-disabled-bg:            $list-group-bg !default;\n\n$list-group-action-color:           $gray-700 !default;\n$list-group-action-hover-color:     $list-group-action-color !default;\n\n$list-group-action-active-color:    $body-color !default;\n$list-group-action-active-bg:       $gray-200 !default;\n\n\n// Image thumbnails\n\n$thumbnail-padding:                 .25rem !default;\n$thumbnail-bg:                      $body-bg !default;\n$thumbnail-border-width:            $border-width !default;\n$thumbnail-border-color:            $gray-300 !default;\n$thumbnail-border-radius:           $border-radius !default;\n$thumbnail-box-shadow:              0 1px 2px rgba($black, .075) !default;\n\n\n// Figures\n\n$figure-caption-font-size:          90% !default;\n$figure-caption-color:              $gray-600 !default;\n\n\n// Breadcrumbs\n\n$breadcrumb-padding-y:              .75rem !default;\n$breadcrumb-padding-x:              1rem !default;\n$breadcrumb-item-padding:           .5rem !default;\n\n$breadcrumb-margin-bottom:          1rem !default;\n\n$breadcrumb-bg:                     $gray-200 !default;\n$breadcrumb-divider-color:          $gray-600 !default;\n$breadcrumb-active-color:           $gray-600 !default;\n$breadcrumb-divider:                quote(\"/\") !default;\n\n$breadcrumb-border-radius:          $border-radius !default;\n\n\n// Carousel\n\n$carousel-control-color:             $white !default;\n$carousel-control-width:             15% !default;\n$carousel-control-opacity:           .5 !default;\n$carousel-control-hover-opacity:     .9 !default;\n$carousel-control-transition:        opacity .15s ease !default;\n\n$carousel-indicator-width:           30px !default;\n$carousel-indicator-height:          3px !default;\n$carousel-indicator-hit-area-height: 10px !default;\n$carousel-indicator-spacer:          3px !default;\n$carousel-indicator-active-bg:       $white !default;\n$carousel-indicator-transition:      opacity .6s ease !default;\n\n$carousel-caption-width:             70% !default;\n$carousel-caption-color:             $white !default;\n\n$carousel-control-icon-width:        20px !default;\n\n$carousel-control-prev-icon-bg:      str-replace(url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e\"), \"#\", \"%23\") !default;\n$carousel-control-next-icon-bg:      str-replace(url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e\"), \"#\", \"%23\") !default;\n\n$carousel-transition-duration:       .6s !default;\n$carousel-transition:                transform $carousel-transition-duration ease-in-out !default; // Define transform transition first if using multiple transitions (e.g., `transform 2s ease, opacity .5s ease-out`)\n\n\n// Spinners\n\n$spinner-width:         2rem !default;\n$spinner-height:        $spinner-width !default;\n$spinner-border-width:  .25em !default;\n\n$spinner-width-sm:        1rem !default;\n$spinner-height-sm:       $spinner-width-sm !default;\n$spinner-border-width-sm: .2em !default;\n\n\n// Close\n\n$close-font-size:                   $font-size-base * 1.5 !default;\n$close-font-weight:                 $font-weight-bold !default;\n$close-color:                       $black !default;\n$close-text-shadow:                 0 1px 0 $white !default;\n\n\n// Code\n\n$code-font-size:                    87.5% !default;\n$code-color:                        $pink !default;\n\n$kbd-padding-y:                     .2rem !default;\n$kbd-padding-x:                     .4rem !default;\n$kbd-font-size:                     $code-font-size !default;\n$kbd-color:                         $white !default;\n$kbd-bg:                            $gray-900 !default;\n\n$pre-color:                         $gray-900 !default;\n$pre-scrollable-max-height:         340px !default;\n\n\n// Utilities\n\n$overflows: auto, hidden !default;\n$positions: static, relative, absolute, fixed, sticky !default;\n\n\n// Printing\n\n$print-page-size:                   a3 !default;\n$print-body-min-width:              map-get($grid-breakpoints, \"lg\") !default;\n"
  },
  {
    "path": "student/content/mdb/scss/free/_animations-basic.scss",
    "content": "/*!\n * animate.css -http://daneden.me/animate\n * Version - 3.7.0\n * Licensed under the MIT license - http://opensource.org/licenses/MIT\n *\n * Copyright (c) 2018 Daniel Eden\n */\n.animated {\n  animation-duration: 1s;\n  animation-fill-mode: both;\n  &.infinite {\n    animation-iteration-count: infinite;\n  }\n  &.delay-1s {\n    animation-delay: 1s;\n  }\n  &.delay-2s {\n    animation-delay: 2s;\n  }\n  &.delay-3s {\n    animation-delay: 3s;\n  }\n  &.delay-4s {\n    animation-delay: 4s;\n  }\n  &.delay-5s {\n    animation-delay: 5s;\n  }\n  &.fast {\n    animation-duration: 800ms;\n  }\n  &.faster {\n    animation-duration: 500ms;\n  }\n  &.slow {\n    animation-duration: 2s;\n  }\n  &.slower {\n    animation-duration: 3s;\n  }\n}\n\n@media (prefers-reduced-motion) {\n  .animated {\n    animation: unset !important;\n    transition: none !important;\n  }\n}\n\n@keyframes fadeIn {\n  from {\n    opacity: 0;\n  }\n\n  to {\n    opacity: 1;\n  }\n}\n\n.fadeIn {\n  animation-name: fadeIn;\n}\n\n@keyframes fadeInDown {\n  from {\n    opacity: 0;\n    transform: translate3d(0, -100%, 0);\n  }\n\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.fadeInDown {\n  animation-name: fadeInDown;\n}\n\n@keyframes fadeInLeft {\n  from {\n    opacity: 0;\n    transform: translate3d(-100%, 0, 0);\n  }\n\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.fadeInLeft {\n  animation-name: fadeInLeft;\n}\n\n\n@keyframes fadeInRight {\n  from {\n    opacity: 0;\n    transform: translate3d(100%, 0, 0);\n  }\n\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.fadeInRight {\n  animation-name: fadeInRight;\n}\n\n\n@keyframes fadeInUp {\n  from {\n    opacity: 0;\n    transform: translate3d(0, 100%, 0);\n  }\n\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.fadeInUp {\n  animation-name: fadeInUp;\n}\n\n\n@keyframes fadeOut {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n  }\n}\n\n.fadeOut {\n  animation-name: fadeOut;\n}\n\n\n@keyframes fadeOutDown {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(0, 100%, 0);\n  }\n}\n\n.fadeOutDown {\n  animation-name: fadeOutDown;\n}\n\n\n@keyframes fadeOutLeft {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(-100%, 0, 0);\n  }\n}\n\n.fadeOutLeft {\n  animation-name: fadeOutLeft;\n}\n\n\n@keyframes fadeOutRight {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(100%, 0, 0);\n  }\n}\n\n.fadeOutRight {\n  animation-name: fadeOutRight;\n}\n\n\n@keyframes fadeOutUp {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(0, -100%, 0);\n  }\n}\n\n.fadeOutUp {\n  animation-name: fadeOutUp;\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_badges.scss",
    "content": "// Badges\n.badge {\n  box-shadow: $z-depth-1;\n  border-radius: $border-radius-base;\n  color: $white !important;\n}\n.badge-pill {\n  border-radius: $badge-pill-border-radius;\n  padding-right: $badge-pill-padding-x;\n  padding-left: $badge-pill-padding-x;\n}\n@each $name, $color in $basic-mdb-colors {\n  @include make-badge($name, $color);\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_buttons.scss",
    "content": "// Buttons\n.btn {\n  box-shadow: $z-depth-1;\n  @include button-size($btn-padding-y-basic, $btn-padding-x-basic, $btn-font-size-basic);\n  transition: $btn-transition;\n  margin: $btn-margin-basic;\n  border: 0;\n  border-radius: $border-radius-base;\n  cursor: pointer;\n  text-transform: uppercase;\n  white-space: normal;\n  word-wrap: break-word;\n  color: $btn-color-basic;\n  &:hover,\n  &:active,\n  &:focus {\n    box-shadow: $z-depth-1-half;\n    outline: 0;\n  }\n  &:not([disabled]):not(.disabled):active,\n  &:not([disabled]):not(.disabled).active {\n    box-shadow: $z-depth-1-half;\n  }\n  .fas, .fab, .far {\n    position: relative;\n    font-size: $btn-icon-basic;\n    &.right {\n      margin-left: $btn-icon-margin;\n    }\n    &.left {\n      margin-right: $btn-icon-margin;\n    }\n  }\n  &.btn-lg {\n    @include button-size($btn-padding-y-large, $btn-padding-x-large, $btn-font-size-large);\n    .fas, .fab, .far {\n      font-size: $btn-icon-large;\n    }\n  }\n  &.btn-md {\n    @include button-size($btn-padding-y-medium, $btn-padding-x-medium, $btn-font-size-medium);\n    .fas, .fab, .far {\n      font-size: $btn-icon-medium;\n    }\n  }\n  &.btn-sm {\n    @include button-size($btn-padding-y-small, $btn-padding-x-small, $btn-font-size-small);\n    .fas, .fab, .far {\n      font-size: $btn-icon-small;\n    }\n  }\n  &.btn-tb {\n    padding: $btn-tb-padding-y $btn-tb-padding-x;\n  }\n  &.disabled,\n  &:disabled {\n    &:active,\n    &:focus,\n    &:hover {\n      box-shadow: $z-depth-1;\n    }\n  }\n  &.btn-block {\n    margin: inherit;\n  }\n  &.btn-link {\n    @extend .black-text;\n    box-shadow: none;\n    background-color: transparent;\n    &:active,\n    &:focus,\n    &:hover {\n      box-shadow: none !important;\n      background-color: transparent;\n    }\n  }\n  &[class*=\"btn-outline-\"] {\n    padding-top: $btn-outline-padding-y-basic;\n    padding-bottom: $btn-outline-padding-y-basic;\n    &.btn-lg {\n      padding-top: $btn-outline-padding-y-large;\n      padding-bottom: $btn-outline-padding-y-large;\n    }\n    &.btn-md {\n      padding-top: $btn-outline-padding-y-medium;\n      padding-bottom: $btn-outline-padding-y-medium;\n    }\n    &.btn-sm {\n      padding-top: $btn-outline-padding-y-small;\n      padding-bottom: $btn-outline-padding-y-small;\n    }\n  }\n}\n.btn-group {\n  .btn {\n    margin: 0;\n  }\n}\n// Overwrite default button icon size\n.btn,\n.btn-floating {\n  .fa-lg {\n    font-size: 1.33333em  !important;\n  }\n\n  .fa-xs {\n    font-size: .75em !important;\n  }\n\n  .fa-sm {\n    font-size: .875em !important;\n  }\n\n  .fa-1x {\n    font-size: 1em !important;\n  }\n\n  .fa-2x {\n    font-size: 2em !important;\n  }\n\n  .fa-3x {\n    font-size: 3em !important;\n  }\n\n  .fa-4x {\n    font-size: 4em !important;\n  }\n\n  .fa-5x {\n    font-size: 5em !important;\n  }\n\n  .fa-6x {\n    font-size: 6em !important;\n  }\n\n  .fa-7x {\n    font-size: 7em !important;\n  }\n\n  .fa-8x {\n    font-size: 8em !important;\n  }\n\n  .fa-9x {\n    font-size: 9em !important;\n  }\n\n  .fa-10x {\n    font-size: 10em !important;\n  }\n}\n@each $btn_name, $color_value in $mdb-colors {\n  @include make-button($btn_name, $color_value);\n  @include make-outline-button($btn_name, $color_value);\n}\n\n// button,\n// html [type=\"file\"] {\n//   -webkit-appearance: button;\n//   appearance: button;\n// }\n\n// button::-moz-focus-inner,\n// [type=\"file\"]::-moz-focus-inner {\n//   padding: 0;\n//   border-style: none;\n// }\n"
  },
  {
    "path": "student/content/mdb/scss/free/_cards.scss",
    "content": "// Cards\n.card {\n  box-shadow: $z-depth-1;\n  border: 0;\n  font-weight: 400;\n  &[class*=\"border\"] {\n    border: 1px solid $grey-base;\n    box-shadow: none;\n  }\n  .card-body {\n    h1, h2, h3, h4, h5, h6 {\n      font-weight: 400;\n    }\n    .card-title {\n      a {\n        transition: $md-card-link-transition;\n        &:hover {\n          transition: $md-card-link-transition;\n        }\n      }\n    }\n    .card-text {\n      color: $md-card-text-color;\n      font-size: $md-card-font-size;\n      font-weight: 400;\n    }\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_carousels.scss",
    "content": "// Carousels\n.carousel {\n  .carousel-control-prev-icon,\n  .carousel-control-next-icon {\n    width: $carousel-control-icon-width;\n    height: $carousel-control-icon-height;\n  }\n  .carousel-control-prev-icon {\n    background-image: $carousel-control-prev-icon;\n  }\n  .carousel-control-next-icon {\n    background-image: $carousel-control-next-icon;\n  }\n  .carousel-indicators {\n    li {\n      width: $carousel-indicators-width;\n      height: $carousel-indicators-height;\n      border-radius: $carousel-indicators-border-radius;\n      cursor: pointer;\n    }\n  }\n}\n.carousel-fade {\n  .carousel-item {\n    opacity: 0;\n    transition-duration: $carousel-transition-duration;\n    transition-property: opacity;\n  }\n  .carousel-item.active,\n  .carousel-item-next.carousel-item-left,\n  .carousel-item-prev.carousel-item-right {\n    opacity: 1;\n  }\n  .carousel-item-left,\n  .carousel-item-right {\n    &.active {\n      opacity: 0;\n    }\n  }\n  .carousel-item-next,\n  .carousel-item-prev,\n  .carousel-item.active,\n  .carousel-item-left.active,\n  .carousel-item-prev.active {\n    transform: $carousel-item-transform;\n    @supports (transform-style: preserve-3d) {\n      transform: $carousel-item-transform-2;\n    }\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_depreciated.scss",
    "content": "// These settings will be only for one version\n"
  },
  {
    "path": "student/content/mdb/scss/free/_dropdowns.scss",
    "content": "// Dropdowns\n.dropdown {\n  .dropdown-menu {\n    .dropdown-item {\n      &:active {\n        background-color: $grey-darken-1;\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_footers.scss",
    "content": "// Footers\nfooter {\n  &.page-footer {\n    bottom: 0;\n    color: $white-base;\n    .container-fluid {\n      width: auto;\n    }\n    .footer-copyright {\n      overflow: hidden;\n      background-color: $footer-copyright-bg-color;\n      color: $footer-copyright-color;\n    }\n    a {\n      color: $white-base;\n    }\n  }\n}"
  },
  {
    "path": "student/content/mdb/scss/free/_forms.scss",
    "content": "// Forms basic\n// Input + label wrapper styles\n.md-form {\n  // Text inputs\n  input[type=text],\n  input[type=password],\n  input[type=email],\n  input[type=url],\n  input[type=time],\n  input[type=date],\n  input[type=datetime-local],\n  input[type=tel],\n  input[type=number],\n  input[type=search-md],\n  input[type=search],\n  textarea.md-textarea {\n    // General Styles\n    transition: $input-transition;\n    outline: none;\n    box-shadow: none;\n    border: none;\n    border-bottom: 1px solid $input-border-color;\n    border-radius: 0;\n    box-sizing: content-box;\n    background-color: transparent;\n\n    // Focused input style\n    &:focus:not([readonly]) {\n      box-shadow: 0 1px 0 0 $input-md-focus-color;\n      border-bottom: 1px solid $input-md-focus-color;\n      // Focused label style\n      + label {\n        color: $input-md-focus-color;\n      }\n    }\n\n    // Form message shared styles\n    + label:after {\n      content: \"\";\n      position: absolute;\n      top: $input-label-after-top;\n      display: block;\n      opacity: 0;\n      transition: $input-label-after-transition;\n    }\n\n    // Valid input style\n    &.valid, &:focus.valid {\n      border-bottom: 1px solid $input-success-color;\n      box-shadow: 0 1px 0 0 $input-success-color;\n    }\n\n    &.valid + label:after, &:focus.valid + label:after {\n      content: attr(data-success);\n      color: $input-success-color;\n      opacity: 1;\n    }\n    // Invalid input style\n    &.invalid, &:focus.invalid {\n      border-bottom: 1px solid $input-error-color;\n      box-shadow: 0 1px 0 0 $input-error-color;\n    }\n    &.invalid + label:after, &:focus.invalid + label:after {\n      content: attr(data-error);\n      color: $input-error-color;\n      opacity: 1;\n    }\n\n    &.form-control.valid + label:after,\n    &.form-control:focus.valid + label:after  {\n      top: $input-label-valid-top;\n    }\n    &.form-control.invalid + label:after,\n    &.form-control:focus.invalid + label:after  {\n      top: $input-label-invalid-top;\n    }\n    &.form-control-lg.valid + label:after,\n    &.form-control-lg:focus.valid + label:after  {\n      top: $input-label-valid-top-lg;\n    }\n    &.form-control-lg.invalid + label:after,\n    &.form-control-lg:focus.invalid + label:after  {\n      top: $input-label-invalid-top-lg;\n    }\n    &.form-control-sm.valid + label:after,\n    &.form-control-sm:focus.valid + label:after  {\n      top: $input-label-valid-top-sm;\n    }\n    &.form-control-sm.invalid + label:after,\n    &.form-control-sm:focus.invalid + label:after  {\n      top: $input-label-invalid-top-sm;\n    }\n  }\n\n  .was-validated {\n    input[type=text] {\n      &:valid {\n        + label {\n          color: $input-success-color !important;\n        }\n      }\n      &:invalid {\n        + label {\n          color: $input-error-color !important;\n        }\n      }\n    }\n    .form-control {\n      &:valid:focus {\n        box-shadow: 0 1px 0 0 $input-success-color !important;\n      }\n      &:valid {\n        border-color: $input-success-color !important;\n      }\n      &:invalid:focus {\n        box-shadow: 0 1px 0 0 $input-error-color !important;\n      }\n      &:invalid {\n        border-color: $input-error-color !important;\n      }\n    }\n  }\n\n  // Input with label\n  .form-control {\n    margin: 0 0 $input-form-control-margin-bottom 0;\n    border-radius: 0;\n    padding: $input-form-control-padding-top 0 $input-form-control-padding-bottom 0;\n    background-image: none;\n    background-color: transparent;\n    height: auto;\n    &:focus {\n      box-shadow: none;\n      background: transparent;\n    }\n    &:disabled,\n    &[readonly] {\n      border-bottom: 1px solid $grey-lighten-1;\n      background-color: transparent;\n    }\n  }\n\n  @include make-input($input-validate-mb, $input-label-font-size, $input-label-active-font-size, $input-prefix-top, $input-prefix-font-size, $input-prefix-margin-left, $input-prefix-width, $input-form-text-ml);\n  position: relative;\n  margin-top: $input-md-form-margin-top;\n  margin-bottom: $input-md-form-margin-bottom;\n  label {\n    position: absolute;\n    top: $input-label-top;\n    left: 0;\n    transition: $input-label-transition;\n    cursor: text;\n    color: $input-label-color;\n    &.active {\n      transform: $input-label-active-transform;\n    }\n  }\n  .prefix {\n    position: absolute;\n    transition: $input-prefix-transition;\n    &.active {\n      color: $input-md-focus-color;\n    }\n  }\n  &.form-lg {\n    @include make-input($input-validate-mb-lg, $input-label-font-size-lg, $input-label-active-font-size-lg, $input-prefix-top-lg, $input-prefix-font-size-lg, $input-prefix-margin-left-lg, $input-prefix-width-lg, $input-form-text-ml-lg);\n  }\n  &.form-sm {\n    @include make-input($input-validate-mb-sm, $input-label-font-size-sm, $input-label-active-font-size-sm, $input-prefix-top-sm, $input-prefix-font-size-sm, $input-prefix-margin-left-sm, $input-prefix-width-sm, $input-form-text-ml-sm);\n  }\n\n  // Textarea\n  textarea {\n    &.md-textarea {\n      overflow-y: hidden;\n      padding: $textarea-padding 0;\n      resize: none;\n    }\n    &.md-textarea-auto {\n      padding: 0;\n      padding-top: $textarea-padding;\n    }\n    // Label color for textarea\n    ~ label {\n      &.active {\n        color: $input-md-focus-color;\n      }\n    }\n  }\n}\n\n.md-form .form-control.is-invalid, \n.was-validated .md-form .form-control:invalid {\n  padding-right: 0;\n}\n.md-form .form-control.is-valid, \n.was-validated .md-form .form-control:valid {\n  padding-right: 0;\n}\n.needs-validation .md-form label {\n  left: .3rem;\n}"
  },
  {
    "path": "student/content/mdb/scss/free/_input-group.scss",
    "content": "// Input group\n.md-form {\n  &.input-group {\n    label {\n      top: 0;\n      margin-bottom: 0;\n    }\n    .input-group-text {\n      background-color: $input-group-text-bgc;\n      &.md-addon {\n        border: none;\n        background-color: transparent;\n        font-weight: 500;\n      }\n    }\n    .form-control {\n      margin: 0;\n      padding: $input-group-form-control-py $input-group-form-control-px;\n    }\n  }\n}\n\n.input-default-wrapper {\n  display: flex;\n\n  .input-default-js {\n    width: 0.1px;\n    height: 0.1px;\n    opacity: 0;\n    overflow: hidden;\n    position: absolute;\n    z-index: -1;\n\n    &:focus+label {\n      border-color: #80bdff;\n      outline: 0;\n      box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);\n    }\n\n    +label {\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      cursor: pointer;\n      display: inline-block;\n      overflow: hidden;\n      color: #000;\n      border: 1px solid rgba(33, 47, 41, 0.2);\n      background-color: transparent;\n      padding: 0;\n\n      span {\n        padding: 0.425rem .7rem;\n        color: #495057;\n\n        &:not(.span-browse) {\n          width: 200px;\n          display: inline-block;\n          text-overflow: ellipsis;\n          white-space: nowrap;\n          overflow: hidden;\n          vertical-align: top;\n        }\n      }\n\n      .span-browse {\n        height: 100%;\n        color: #000;\n        background-color: #E8EBEF;\n        border-left: 1px solid rgba(33, 47, 41, 0.2);\n        display: inline-block;\n        padding: 0.425rem .8rem;\n        color: #495057;\n      }\n    }\n  }\n}\n\n@media screen and (max-width: 50em) {\n  .input-default-js+label .span-browse {\n    display: block;\n  }\n}\n\n.label-for-default-js {\n  width: 100%;\n  height: calc(2.25rem + 2px);\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_list-group.scss",
    "content": "// List group\n.media {\n  .media-left {\n    padding: $list-group-padding;\n\n    img {\n      box-shadow: $z-depth-1;\n    }\n  }\n}\n\n.list-group {\n  .list-group-item {\n    &:first-child {\n      border-top-left-radius: $border-radius-base;\n      border-top-right-radius: $border-radius-base;\n    }\n\n    &:last-child {\n      border-bottom-left-radius: $border-radius-base;\n      border-bottom-right-radius: $border-radius-base;\n    }\n  }\n\n  a,\n  button {\n    transition: $list-group-transition;\n\n    &:hover {\n      transition: $list-group-transition;\n    }\n  }\n}\n\n"
  },
  {
    "path": "student/content/mdb/scss/free/_loader.scss",
    "content": "// Loader / Spinner\n.fast {\n  &.spinner-border {\n    animation: spinner-border .4s linear infinite;\n  }\n  &.spinner-grow {\n    animation: spinner-grow .4s linear infinite\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_modals.scss",
    "content": "// Modals\n// Styles for body\nbody {\n  &.modal-open {\n    overflow: auto;\n    padding-right: 0 !important;\n  }\n  &.scrollable {\n    overflow-y: auto;\n  }\n}\n\n// *** ENHANCED BOOTSTRAP MODALS ***///\n// General styles\n.modal-dialog {\n  .modal-content {\n    box-shadow: $z-depth-1-half;\n    border: 0;\n    border-radius: $border-radius-base;\n    .modal-header {\n      border-top-left-radius: $border-radius-base;\n      border-top-right-radius: $border-radius-base;\n    }\n  }\n  // Cascading modals\n  &.cascading-modal {\n    margin-top: 10%;\n    .close {\n      opacity: 1;\n      text-shadow: none;\n      color: $white-base;\n      outline: 0;\n    }\n    // Cascading header\n    .modal-header {\n      box-shadow: $z-depth-1-half;\n      margin: $cascading-modal-margin-top $cascading-modal-margin-right $cascading-modal-margin-bottom $cascading-modal-margin-left;\n      border: none;\n      border-radius: $border-radius-base;\n      padding: $cascading-modal-padding;\n      text-align: center;\n      .close {\n        margin-right: $cascading-modal-close-margin-right;\n      }\n      .title {\n        margin-bottom: 0;\n        width: 100%;\n        font-size: $cascading-modal-font-size;\n        .fas, .fab, .far {\n          margin-right: $cascading-modal-fa-margin-right;\n        }\n      }\n      .social-buttons {\n        margin-top: $cascading-modal-social-margin-top;\n        a {\n          font-size: $cascading-modal-a-font-size;\n        }\n      }\n    }\n    // Cascading tabs nav\n    .modal-c-tabs {\n      .md-tabs {\n        box-shadow: $z-depth-1;\n        margin: $cascading-modal-tabs-margin-top $cascading-modal-tabs-margin-x 0 $cascading-modal-tabs-margin-x;\n      \tdisplay: flex;\n      \tli {\n      \t  flex: 1;\n      \t  a {\n      \t    text-align: center;\n      \t  }\n      \t}\n      }\n      .tab-content {\n        padding: $cascading-modal-tabs-padding-top 0 0 0;\n      }\n      //.md-tabs {\n      //  border-radius: $md-card-border-radius;\n      //  .nav-item {\n      //    .nav-link {\n      //      border-radius: $md-card-border-radius;\n      //      background-color: inherit;\n      //      color: $white-base;\n      //    }\n      //  }\n      //}\n    }\n    // Footer customization\n    .modal-body,\n    .modal-footer {\n      padding-left: $modal-body-padding-left;\n      padding-right: $modal-body-padding-right;\n      color: $grey-darken-2;\n      .additional-option {\n        margin-top: $modal-body-margin-top;\n        text-align: center;\n      }\n    }\n    // Cascading avatar\n    &.modal-avatar {\n      margin-top: $modal-avatar-margin-top;\n      .modal-header {\n        box-shadow: none;\n        @extend .img-fluid;\n        margin: $modal-avatar-header-margin-top 0 $modal-avatar-header-margin-bottom;\n        img {\n          width: $modal-avatar-img-width;\n          box-shadow: $z-depth-2;\n          margin-left: auto;\n          margin-right: auto;\n        }\n      }\n    }\n  }\n  // Modal notify\n  &.modal-notify {\n    .heading {\n      margin: 0;\n      padding: $modal-notify-heading-padding;\n      font-size: $modal-notify-font-size;\n      color: $white-base;\n    }\n    .modal-header {\n      box-shadow: $z-depth-1;\n      border: 0;\n    }\n    .close {\n      opacity: 1;\n    }\n    .modal-body {\n      padding: $modal-notify-body-padding;\n      color: $grey-darken-2;\n    }\n    @each $name, $color in $basic {\n      &.modal-#{$name}  {\n        .modal-header {\n          background-color: $color;\n        }\n        .fas, .fab, .far {\n          color: $color;\n        }\n        .badge {\n          background-color: $color;\n        }\n        .btn {\n          .fas, .fab, .far {\n            color: #fff;\n          }\n          &.btn-outline-#{$name} {\n            .fas, .fab, .far {\n              color: $color;\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\n// Position & Size\n.modal {\n  padding-right: 0 !important;\n  .modal-dialog {\n    @media (min-width: 768px) {\n      &.modal-top {\n        top: 0;\n      }\n      &.modal-left {\n        left: 0;\n      }\n      &.modal-right {\n        right: 0;\n      }\n      &.modal-bottom {\n        bottom: 0;\n      }\n      &.modal-top-left {\n        top: $modal-distance;\n        left: $modal-distance;\n      }\n      &.modal-top-right {\n        top: $modal-distance;\n        right: $modal-distance;\n      }\n      &.modal-bottom-left {\n        bottom: $modal-distance;\n        left: $modal-distance;\n      }\n      &.modal-bottom-right {\n        bottom: $modal-distance;\n        right: $modal-distance;\n      }\n    }\n  }\n  &.fade {\n    &.top:not(.show) .modal-dialog {\n      transform: $modal-fade-top-transform;\n    }\n    &.left:not(.show) .modal-dialog {\n      transform: $modal-fade-left-transform;\n    }\n    &.right:not(.show) .modal-dialog {\n      transform: $modal-fade-right-transform;\n    }\n    &.bottom:not(.show) .modal-dialog {\n      transform: $modal-fade-bottom-transform;\n    }\n  }\n  @media (min-width: $medium-screen) {\n    &.modal-scrolling {\n      position: relative;\n      .modal-dialog {\n        position: fixed;\n        z-index: 1050;\n      }\n    }\n    &.modal-content-clickable {\n      top: auto;\n      bottom: auto;\n      .modal-dialog {\n        position: fixed;\n      }\n    }\n    .modal-fluid {\n      width: 100%;\n      max-width: 100%;\n      .modal-content {\n        width: 100%;\n      }\n    }\n    .modal-frame {\n      position: absolute;\n      margin: 0;\n      width: 100%;\n      max-width: 100%;\n      &.modal-bottom {\n        bottom: 0;\n      }\n    }\n    .modal-full-height {\n      position: absolute;\n      display: flex;\n      margin: 0;\n      width: $modal-width;\n      min-height: 100%;\n      height: auto;\n      min-height: 100%;\n      top: 0;\n      right: 0;\n      &.modal-top,\n      &.modal-bottom {\n        display: block;\n        width: 100%;\n        max-width: 100%;\n        height: auto;\n      }\n      &.modal-top {\n        bottom: auto;\n      }\n      &.modal-bottom {\n        min-height: 0;\n        top: auto;\n      }\n      .modal-content {\n        width: 100%;\n      }\n      &.modal-lg {\n        width: 90%;\n        max-width: 90%;\n        @media (min-width: $medium-screen) {\n          width: $modal-full-height-medium-screen;\n          max-width: $modal-full-height-medium-screen;\n        }\n        @media (min-width: $large-screen) {\n          width: $modal-full-height-large-screen;\n          max-width: $modal-full-height-large-screen;\n        }\n      }\n    }\n    .modal-side {\n      position: absolute;\n      bottom: $modal-distance;\n      right: $modal-distance;\n      margin: 0;\n      width: $modal-width;\n    }\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_msc.scss",
    "content": "// Miscellaneous\n// Edge Headers\n.edge-header {\n  display: block;\n  height: $edge-header-height;\n  background-color: $edge-header-background-color;\n}\n\n.free-bird {\n  margin-top: $edge-header-margin-top;\n}\n\n// Additional gradients\n.juicy-peach-gradient {\n  background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);\n}\n\n.young-passion-gradient {\n  background-image: linear-gradient(to right, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%);\n}\n\n.lady-lips-gradient {\n  background-image: linear-gradient(to top, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);\n}\n\n.sunny-morning-gradient {\n  background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);\n}\n\n.rainy-ashville-gradient {\n  background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%);\n}\n\n.frozen-dreams-gradient {\n  background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);\n}\n\n.warm-flame-gradient {\n  background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);\n}\n\n.night-fade-gradient {\n  background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);\n}\n\n.spring-warmth-gradient {\n  background-image: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%);\n}\n\n.winter-neva-gradient {\n  background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);\n}\n\n.dusty-grass-gradient {\n  background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);\n}\n\n.tempting-azure-gradient {\n  background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);\n}\n\n.heavy-rain-gradient {\n  background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);\n}\n\n.amy-crisp-gradient {\n  background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%);\n}\n\n.mean-fruit-gradient {\n  background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);\n}\n\n.deep-blue-gradient {\n  background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);\n}\n\n.ripe-malinka-gradient {\n  background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);\n}\n\n.cloudy-knoxville-gradient {\n  background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);\n}\n\n.morpheus-den-gradient {\n  background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);\n}\n\n.rare-wind-gradient {\n  background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);\n}\n\n.near-moon-gradient {\n  background-image: linear-gradient(to top, #5ee7df 0%, #b490ca 100%);\n}\n\n.schedule-list {\n  .hr-bold {\n    border-top: 2px solid #212529;\n  }\n\n  .font-smaller {\n    font-size: .8rem;\n  }\n}\n\n.note {\n  padding: 10px;\n  border-left: 6px solid;\n  border-radius: 5px;\n  strong {\n      font-weight: 600;\n  }\n  p {\n      font-weight: 500;\n  }\n  &.note-primary {\n      background-color: #dfeefd;\n      border-color: #176ac4;\n  }\n  &.note-secondary {\n      background-color: #e2e3e5;\n      border-color: #58595a;\n  }\n  &.note-success {\n      background-color: #e2f0e5;\n      border-color: #49a75f;\n  }\n  &.note-danger {\n      background-color: #fae7e8;\n      border-color: #e45460;\n  }\n  &.note-warning {\n      background-color: #faf4e0;\n      border-color: #c2a442;\n  }\n  &.note-info {\n      background-color: #e4f2f5;\n      border-color: #2492a5;\n  }\n  &.note-light {\n      background-color: #fefefe;\n      border-color: #0f0f0f;\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_navbars.scss",
    "content": "// Navbars\n.navbar {\n  box-shadow: $z-depth-1;\n  font-weight: $navbar-font-weight;\n  form {\n    .md-form {\n      input {\n        margin: 0 $navbar-form-input-mr $navbar-form-input-mb $navbar-form-input-ml;\n      }\n    }\n  }\n  .breadcrumb {\n    margin: 0;\n    padding: $navbar-breadcrumb-padding-top 0 0 $navbar-breadcrumb-padding-left;\n    background-color: inherit;\n    font-size: $navbar-double-font-size;\n    font-weight: $navbar-font-weight;\n    .breadcrumb-item {\n      color: $white-base;\n      &.active {\n        color: $navbar-breadcrumb-color;\n      }\n      &:before {\n        color: $navbar-breadcrumb-color;\n      }\n    }\n  }\n  .navbar-toggler {\n    outline: 0;\n    border-width: 0;\n  }\n  .nav-flex-icons {\n    flex-direction: row;\n  }\n  .container {\n    @media (max-width: $medium-screen) {\n      width: 100%;\n      .navbar-toggler-right {\n        right: 0;\n      }\n    }\n  }\n  .nav-item {\n    .nav-link {\n      display: block;\n      &.disabled {\n        &:active {\n          pointer-events: none;\n        }\n      }\n      .fas, .fab, .far {\n        padding-right: $navbar-flex-icons-padding-lg;\n        padding-left: $navbar-flex-icons-padding-lg;\n      }\n      @media (max-width: $medium-screen) {\n        padding-right: $navbar-flex-icons-padding-md;\n        padding-left: $navbar-flex-icons-padding-md;\n      }\n    }\n  }\n  .dropdown-menu {\n    position: absolute !important;\n    margin-top: 0;\n    a {\n      padding: $navbar-dropdown-menu-padding;\n      font-size: $navbar-dropdown-font-size;\n      font-weight: $navbar-font-weight;\n      color: $black;\n    }\n    form {\n      @media (max-width: $small-screen) {\n        width: 17rem;\n      }\n      @media (min-width: $small-screen) {\n        width: 22rem;\n      }\n    }\n  }\n  &.navbar-light {\n    @include make-navbar($navbar-light-disabled-color, $navbar-light-toggler-icon, $black, $navbar-light-hover-color, $navbar-light-bg-active-color);\n  }\n  &.navbar-dark {\n    @include make-navbar($navbar-dark-disabled-color, $navbar-dark-toggler-icon, $white, $navbar-dark-hover-color, $navbar-dark-bg-active-color);\n  }\n  &.scrolling-navbar {\n    @media (min-width: $small-screen) {\n      transition: $navbar-scrolling-transition;\n      padding-top: $navbar-scrolling-padding;\n      padding-bottom: $navbar-scrolling-padding;\n      .navbar-nav > li {\n        transition-duration: $navbar-scrolling-transition-duration;\n      }\n      &.top-nav-collapse {\n        padding-top: $navbar-top-collapse-padding;\n        padding-bottom: $navbar-top-collapse-padding;\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_pagination.scss",
    "content": "// Pagination\n.pagination {\n  .page-item {\n    &.active {\n      .page-link {\n        box-shadow: $z-depth-1;\n        transition: $pagination-active-transition;\n        border-radius: $border-radius-base;\n        background-color: $primary-color;\n        color: $white-base;\n        &:hover {\n          background-color: $primary-color;\n        }\n      }\n    }\n    &.disabled {\n      .page-link {\n        color: $pagination-page-item-disabled-color;\n      }\n    }\n    .page-link {\n      transition: $pagination-page-link-transition;\n      outline: 0;\n      border: 0;\n      background-color: transparent;\n      font-size: $pagination-page-link-font-size;\n      color: $pagination-page-link-color;\n      &:hover {\n        transition: $pagination-page-link-transition;\n        border-radius: $border-radius-base;\n        background-color: $pagination-page-link-hover-bg-color;\n      }\n      &:focus {\n        background-color: transparent;\n      }\n    }\n  }\n  &.pagination-lg {\n    .page-item {\n      .page-link {\n        font-size: $pagination-page-link-font-size-lg;\n      }\n    }\n  }\n  &.pagination-sm {\n    .page-item {\n      .page-link {\n        font-size: $pagination-page-link-font-size-sm;\n      }\n    }\n  }\n  &.pagination-circle {\n    .page-item {\n      .page-link {\n        margin-left: $pagination-circle-margin-x;\n        margin-right: $pagination-circle-margin-x;\n        border-radius: $pagination-circle-border-radius;\n        &:hover {\n          border-radius: $pagination-circle-border-radius;\n        }\n      }\n      &.active {\n        .page-link {\n          border-radius: $pagination-circle-border-radius;\n        }\n      }\n    }\n  }\n  @each $name, $color in $pagination-colors {\n    &.pg-#{$name} {\n      .page-item {\n        &.active {\n          .page-link {\n            background-color: $color;\n            &:hover {\n              background-color: $color;\n            }\n          }\n        }\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_steppers.scss",
    "content": "// Steppers\nul.stepper {\n  counter-reset: section;\n  overflow-y: auto;\n  overflow-x: hidden;\n  margin: 1em -1.5rem;\n  padding: 0 1.5rem;\n  padding: 1.5rem;\n\n  li {\n    a {\n      padding: $stepper-li-a-padding;\n      text-align: center;\n\n      .circle {\n        display: inline-block;\n        color: $stepper-li-a-circle-color;\n        border-radius: $stepper-li-a-circle-border-radius;\n        background: $stepper-li-a-circle-bg;\n        width: 1.75rem;\n        height: 1.75rem;\n        text-align: center;\n        line-height: 1.7rem;\n        margin-right: $stepper-li-a-circle-mr;\n      }\n\n      .label {\n        display: inline-block;\n        color: $stepper-li-a-circle-bg;\n      }\n    }\n\n    &.active,\n    &.completed {\n      a {\n        .circle {\n          @extend .primary-color;\n        }\n\n        .label {\n          font-weight: 600;\n          color: $stepper-li-a-label-color;\n        }\n      }\n    }\n\n    &.warning {\n      a {\n        .circle {\n          @extend .danger-color;\n        }\n      }\n    }\n  }\n}\n\n// Horizontal\n.stepper-horizontal {\n  position: relative;\n  display: flex;\n  justify-content: space-between;\n\n  li {\n    transition: $stepper-horizontal-li-transition;\n    display: flex;\n    align-items: center;\n    flex: 1;\n    position: relative;\n\n    a {\n      .label {\n        margin-top: $stepper-horizontal-li-a-label-mt;\n      }\n    }\n\n    &:not(:last-child):after {\n      content: \"\";\n      position: relative;\n      flex: 1;\n      margin: $stepper-horizontal-li-after-margin 0 0 0;\n      height: $stepper-horizontal-li-after-height;\n      background-color: $stepper-horizontal-li-after-bgc;\n    }\n\n    &:not(:first-child):before {\n      content: \"\";\n      position: relative;\n      flex: 1;\n      margin: $stepper-horizontal-li-after-margin 0 0 0;\n      height: $stepper-horizontal-li-after-height;\n      background-color: $stepper-horizontal-li-after-bgc;\n    }\n\n    &:hover {\n      background-color: rgba(0, 0, 0, .06);\n    }\n  }\n\n  @media (max-width: $stepper-horizontal-breakpoint) {\n    flex-direction: column;\n\n    li {\n      align-items: flex-start;\n      flex-direction: column;\n\n      a {\n        .label {\n          flex-flow: column nowrap;\n          order: 2;\n          margin-top: $stepper-horizontal-small-li-a-label-mt;\n        }\n      }\n\n      &:not(:last-child):after {\n        content: \"\";\n        position: absolute;\n        width: $stepper-horizontal-small-li-after-width;\n        height: $stepper-horizontal-small-li-after-height;\n        left: $stepper-horizontal-small-li-after-left;\n        top: $stepper-horizontal-small-li-after-top;\n      }\n    }\n  }\n\n  >li:not(:last-of-type) {\n    margin-bottom: 0 !important;\n  }\n}\n\n// Vertical\n.stepper-vertical {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n\n  li {\n    display: flex;\n    align-items: flex-start;\n    flex: 1;\n    flex-direction: column;\n    position: relative;\n\n    a {\n      align-self: flex-start;\n      display: flex;\n      position: relative;\n\n      .circle {\n        order: 1;\n      }\n\n      .label {\n        flex-flow: column nowrap;\n        order: 2;\n        margin-top: $stepper-vertical-li-a-label-mt;\n      }\n    }\n\n    &.completed {\n      a {\n        .label {\n          font-weight: 500;\n        }\n      }\n    }\n\n    .step-content {\n      display: block;\n      margin-top: 0;\n      margin-left: $stepper-vertical-li-step-content-ml;\n      padding: $stepper-vertical-li-step-content-padding;\n\n      p {\n        font-size: $stepper-vertical-li-step-content-p-font-size;\n      }\n    }\n\n    &:not(:last-child):after {\n      content: \"\";\n      position: absolute;\n      width: $stepper-vertical-li-after-width;\n      height: $stepper-vertical-li-after-height;\n      left: $stepper-vertical-li-after-left;\n      top: $stepper-vertical-li-after-top;\n      background-color: $stepper-vertical-li-after-bgc;\n    }\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_switch.scss",
    "content": "// Switch free\n.bs-switch {\n  position: relative;\n  display: inline-block;\n  width: 60px;\n  height: 34px;\n  input {\n    display: none;\n    &:checked {\n      + .slider {\n        background-color: #2196F3;\n        &:before {\n          transform: translateX(26px);\n        }\n      }\n    }\n    &:focus {\n      + .slider {\n        box-shadow: 0 0 1px #2196F3;\n      }\n    }\n  }\n  .slider {\n    position: absolute;\n    cursor: pointer;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    background-color: #ccc;\n    -webkit-transition: .4s;\n    transition: .4s;\n    &:before {\n      position: absolute;\n      content: \"\";\n      height: 26px;\n      width: 26px;\n      left: 4px;\n      bottom: 4px;\n      background-color: white;\n      -webkit-transition: .4s;\n      transition: .4s;\n    }\n    &.round {\n      border-radius: 34px;\n      &:before {\n        border-radius: 50%;\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/_tables.scss",
    "content": "// Tables\ntable {\n  th {\n    font-size: $table-th-font-size;\n    font-weight: 400;\n  }\n  td {\n    font-size: $table-td-font-size;\n    font-weight: 300;\n  }\n  &.table {\n    thead th {\n      border-top: none;\n    }\n    th,\n    td {\n      padding-top: $table-th-padding-top;\n      padding-bottom: $table-td-padding-bottom;\n    }\n    a {\n      margin: 0;\n      color: $table-a-color;\n    }\n    .label-table {\n      margin: 0;\n      padding: 0;\n      line-height: $table-label-height;\n      height: $table-label-line-height;\n    }\n    &.btn-table {\n      td {\n        vertical-align: middle;\n      }\n    }\n  }\n  &.table-hover {\n    tbody {\n      tr {\n        &:hover {\n          transition: $table-hover-transition;\n          background-color: $table-hover-background-color;\n        }\n      }\n    }\n  }\n  .th-lg {\n    min-width: $table-th-lg-min-width;\n  }\n  .th-sm {\n    min-width: $table-th-sm-min-width;\n  }\n  &.table-sm {\n    th,\n    td {\n      padding-top: $table-sm-padding-y;\n      padding-bottom: $table-sm-padding-y;\n    }\n  }\n}\n.table-scroll-vertical {\n  max-height: $table-scroll-vertical-max-height;\n  overflow-y: auto;\n}\n.table-fixed {\n  table-layout: fixed;\n}\n.table-responsive,\n.table-responsive-sm,\n.table-responsive-md,\n.table-responsive-lg,\n.table-responsive-xl {\n  > .table-bordered {\n    border-top: 1px solid #dee2e6;\n  }\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/modules/animations-extended/_module.scss",
    "content": "/*!\n * animate.css -http://daneden.me/animate\n * Version - 3.7.0\n * Licensed under the MIT license - http://opensource.org/licenses/MIT\n *\n * Copyright (c) 2018 Daniel Eden\n */\n\n@keyframes bounce {\n  from,\n  20%,\n  53%,\n  80%,\n  to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n    transform: translate3d(0, 0, 0);\n  }\n\n  40%,\n  43% {\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    transform: translate3d(0, -30px, 0);\n  }\n\n  70% {\n    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n    transform: translate3d(0, -15px, 0);\n  }\n\n  90% {\n    transform: translate3d(0, -4px, 0);\n  }\n}\n\n.bounce {\n  animation-name: bounce;\n  transform-origin: center bottom;\n}\n\n@keyframes flash {\n  from,\n  50%,\n  to {\n    opacity: 1;\n  }\n\n  25%,\n  75% {\n    opacity: 0;\n  }\n}\n\n.flash {\n  animation-name: flash;\n}\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n\n@keyframes pulse {\n  from {\n    transform: scale3d(1, 1, 1);\n  }\n\n  50% {\n    transform: scale3d(1.05, 1.05, 1.05);\n  }\n\n  to {\n    transform: scale3d(1, 1, 1);\n  }\n}\n\n.pulse {\n  animation-name: pulse;\n}\n\n@keyframes rubberBand {\n  from {\n    transform: scale3d(1, 1, 1);\n  }\n\n  30% {\n    transform: scale3d(1.25, 0.75, 1);\n  }\n\n  40% {\n    transform: scale3d(0.75, 1.25, 1);\n  }\n\n  50% {\n    transform: scale3d(1.15, 0.85, 1);\n  }\n\n  65% {\n    transform: scale3d(0.95, 1.05, 1);\n  }\n\n  75% {\n    transform: scale3d(1.05, 0.95, 1);\n  }\n\n  to {\n    transform: scale3d(1, 1, 1);\n  }\n}\n\n.rubberBand {\n  animation-name: rubberBand;\n}\n\n@keyframes shake {\n  from,\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n\n  10%,\n  30%,\n  50%,\n  70%,\n  90% {\n    transform: translate3d(-10px, 0, 0);\n  }\n\n  20%,\n  40%,\n  60%,\n  80% {\n    transform: translate3d(10px, 0, 0);\n  }\n}\n\n.shake {\n  animation-name: shake;\n}\n\n@keyframes headShake {\n  0% {\n    transform: translateX(0);\n  }\n\n  6.5% {\n    transform: translateX(-6px) rotateY(-9deg);\n  }\n\n  18.5% {\n    transform: translateX(5px) rotateY(7deg);\n  }\n\n  31.5% {\n    transform: translateX(-3px) rotateY(-5deg);\n  }\n\n  43.5% {\n    transform: translateX(2px) rotateY(3deg);\n  }\n\n  50% {\n    transform: translateX(0);\n  }\n}\n\n.headShake {\n  animation-timing-function: ease-in-out;\n  animation-name: headShake;\n}\n\n@keyframes swing {\n  20% {\n    transform: rotate3d(0, 0, 1, 15deg);\n  }\n\n  40% {\n    transform: rotate3d(0, 0, 1, -10deg);\n  }\n\n  60% {\n    transform: rotate3d(0, 0, 1, 5deg);\n  }\n\n  80% {\n    transform: rotate3d(0, 0, 1, -5deg);\n  }\n\n  to {\n    transform: rotate3d(0, 0, 1, 0deg);\n  }\n}\n\n.swing {\n  transform-origin: top center;\n  animation-name: swing;\n}\n\n@keyframes tada {\n  from {\n    transform: scale3d(1, 1, 1);\n  }\n\n  10%,\n  20% {\n    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);\n  }\n\n  30%,\n  50%,\n  70%,\n  90% {\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);\n  }\n\n  40%,\n  60%,\n  80% {\n    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);\n  }\n\n  to {\n    transform: scale3d(1, 1, 1);\n  }\n}\n\n.tada {\n  animation-name: tada;\n}\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n\n@keyframes wobble {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n\n  15% {\n    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);\n  }\n\n  30% {\n    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);\n  }\n\n  45% {\n    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);\n  }\n\n  60% {\n    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);\n  }\n\n  75% {\n    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.wobble {\n  animation-name: wobble;\n}\n\n@keyframes jello {\n  from,\n  11.1%,\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n\n  22.2% {\n    transform: skewX(-12.5deg) skewY(-12.5deg);\n  }\n\n  33.3% {\n    transform: skewX(6.25deg) skewY(6.25deg);\n  }\n\n  44.4% {\n    transform: skewX(-3.125deg) skewY(-3.125deg);\n  }\n\n  55.5% {\n    transform: skewX(1.5625deg) skewY(1.5625deg);\n  }\n\n  66.6% {\n    transform: skewX(-0.78125deg) skewY(-0.78125deg);\n  }\n\n  77.7% {\n    transform: skewX(0.390625deg) skewY(0.390625deg);\n  }\n\n  88.8% {\n    transform: skewX(-0.1953125deg) skewY(-0.1953125deg);\n  }\n}\n\n.jello {\n  animation-name: jello;\n  transform-origin: center;\n}\n\n@keyframes heartBeat {\n  0% {\n    transform: scale(1);\n  }\n\n  14% {\n    transform: scale(1.3);\n  }\n\n  28% {\n    transform: scale(1);\n  }\n\n  42% {\n    transform: scale(1.3);\n  }\n\n  70% {\n    transform: scale(1);\n  }\n}\n\n.heartBeat {\n  animation-name: heartBeat;\n  animation-duration: 1.3s;\n  animation-timing-function: ease-in-out;\n}\n\n@keyframes bounceIn {\n  from,\n  20%,\n  40%,\n  60%,\n  80%,\n  to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n\n  0% {\n    opacity: 0;\n    transform: scale3d(0.3, 0.3, 0.3);\n  }\n\n  20% {\n    transform: scale3d(1.1, 1.1, 1.1);\n  }\n\n  40% {\n    transform: scale3d(0.9, 0.9, 0.9);\n  }\n\n  60% {\n    opacity: 1;\n    transform: scale3d(1.03, 1.03, 1.03);\n  }\n\n  80% {\n    transform: scale3d(0.97, 0.97, 0.97);\n  }\n\n  to {\n    opacity: 1;\n    transform: scale3d(1, 1, 1);\n  }\n}\n\n.bounceIn {\n  animation-duration: 0.75s;\n  animation-name: bounceIn;\n}\n\n@keyframes bounceInDown {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n\n  0% {\n    opacity: 0;\n    transform: translate3d(0, -3000px, 0);\n  }\n\n  60% {\n    opacity: 1;\n    transform: translate3d(0, 25px, 0);\n  }\n\n  75% {\n    transform: translate3d(0, -10px, 0);\n  }\n\n  90% {\n    transform: translate3d(0, 5px, 0);\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.bounceInDown {\n  animation-name: bounceInDown;\n}\n\n@keyframes bounceInLeft {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n\n  0% {\n    opacity: 0;\n    transform: translate3d(-3000px, 0, 0);\n  }\n\n  60% {\n    opacity: 1;\n    transform: translate3d(25px, 0, 0);\n  }\n\n  75% {\n    transform: translate3d(-10px, 0, 0);\n  }\n\n  90% {\n    transform: translate3d(5px, 0, 0);\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.bounceInLeft {\n  animation-name: bounceInLeft;\n}\n\n@keyframes bounceInRight {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n\n  from {\n    opacity: 0;\n    transform: translate3d(3000px, 0, 0);\n  }\n\n  60% {\n    opacity: 1;\n    transform: translate3d(-25px, 0, 0);\n  }\n\n  75% {\n    transform: translate3d(10px, 0, 0);\n  }\n\n  90% {\n    transform: translate3d(-5px, 0, 0);\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.bounceInRight {\n  animation-name: bounceInRight;\n}\n\n@keyframes bounceInUp {\n  from,\n  60%,\n  75%,\n  90%,\n  to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n\n  from {\n    opacity: 0;\n    transform: translate3d(0, 3000px, 0);\n  }\n\n  60% {\n    opacity: 1;\n    transform: translate3d(0, -20px, 0);\n  }\n\n  75% {\n    transform: translate3d(0, 10px, 0);\n  }\n\n  90% {\n    transform: translate3d(0, -5px, 0);\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.bounceInUp {\n  animation-name: bounceInUp;\n}\n\n@keyframes bounceOut {\n  20% {\n    transform: scale3d(0.9, 0.9, 0.9);\n  }\n\n  50%,\n  55% {\n    opacity: 1;\n    transform: scale3d(1.1, 1.1, 1.1);\n  }\n\n  to {\n    opacity: 0;\n    transform: scale3d(0.3, 0.3, 0.3);\n  }\n}\n\n.bounceOut {\n  animation-duration: 0.75s;\n  animation-name: bounceOut;\n}\n\n@keyframes bounceOutDown {\n  20% {\n    transform: translate3d(0, 10px, 0);\n  }\n\n  40%,\n  45% {\n    opacity: 1;\n    transform: translate3d(0, -20px, 0);\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(0, 2000px, 0);\n  }\n}\n\n.bounceOutDown {\n  animation-name: bounceOutDown;\n}\n\n@keyframes bounceOutLeft {\n  20% {\n    opacity: 1;\n    transform: translate3d(20px, 0, 0);\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(-2000px, 0, 0);\n  }\n}\n\n.bounceOutLeft {\n  animation-name: bounceOutLeft;\n}\n\n@keyframes bounceOutRight {\n  20% {\n    opacity: 1;\n    transform: translate3d(-20px, 0, 0);\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(2000px, 0, 0);\n  }\n}\n\n.bounceOutRight {\n  animation-name: bounceOutRight;\n}\n\n@keyframes bounceOutUp {\n  20% {\n    transform: translate3d(0, -10px, 0);\n  }\n\n  40%,\n  45% {\n    opacity: 1;\n    transform: translate3d(0, 20px, 0);\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(0, -2000px, 0);\n  }\n}\n\n.bounceOutUp {\n  animation-name: bounceOutUp;\n}\n\n@keyframes fadeInDownBig {\n  from {\n    opacity: 0;\n    transform: translate3d(0, -2000px, 0);\n  }\n\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.fadeInDownBig {\n  animation-name: fadeInDownBig;\n}\n\n@keyframes fadeInLeftBig {\n  from {\n    opacity: 0;\n    transform: translate3d(-2000px, 0, 0);\n  }\n\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.fadeInLeftBig {\n  animation-name: fadeInLeftBig;\n}\n\n@keyframes fadeInRightBig {\n  from {\n    opacity: 0;\n    transform: translate3d(2000px, 0, 0);\n  }\n\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.fadeInRightBig {\n  animation-name: fadeInRightBig;\n}\n\n@keyframes fadeInUpBig {\n  from {\n    opacity: 0;\n    transform: translate3d(0, 2000px, 0);\n  }\n\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.fadeInUpBig {\n  animation-name: fadeInUpBig;\n}\n\n@keyframes fadeOutDownBig {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(0, 2000px, 0);\n  }\n}\n\n.fadeOutDownBig {\n  animation-name: fadeOutDownBig;\n}\n\n@keyframes fadeOutLeftBig {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(-2000px, 0, 0);\n  }\n}\n\n.fadeOutLeftBig {\n  animation-name: fadeOutLeftBig;\n}\n\n@keyframes fadeOutRightBig {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(2000px, 0, 0);\n  }\n}\n\n.fadeOutRightBig {\n  animation-name: fadeOutRightBig;\n}\n\n@keyframes fadeOutUpBig {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(0, -2000px, 0);\n  }\n}\n\n.fadeOutUpBig {\n  animation-name: fadeOutUpBig;\n}\n\n@keyframes flip {\n  from {\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);\n    animation-timing-function: ease-out;\n  }\n\n  40% {\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)\n      rotate3d(0, 1, 0, -190deg);\n    animation-timing-function: ease-out;\n  }\n\n  50% {\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)\n      rotate3d(0, 1, 0, -170deg);\n    animation-timing-function: ease-in;\n  }\n\n  80% {\n    transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0)\n      rotate3d(0, 1, 0, 0deg);\n    animation-timing-function: ease-in;\n  }\n\n  to {\n    transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);\n    animation-timing-function: ease-in;\n  }\n}\n\n.flip {\n  backface-visibility: visible;\n  animation-name: flip;\n}\n\n@keyframes flipInX {\n  from {\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    animation-timing-function: ease-in;\n    opacity: 0;\n  }\n\n  40% {\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    animation-timing-function: ease-in;\n  }\n\n  60% {\n    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    opacity: 1;\n  }\n\n  80% {\n    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n  }\n\n  to {\n    transform: perspective(400px);\n  }\n}\n\n.flipInX {\n  backface-visibility: visible !important;\n  animation-name: flipInX;\n}\n\n@keyframes flipInY {\n  from {\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    animation-timing-function: ease-in;\n    opacity: 0;\n  }\n\n  40% {\n    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n    animation-timing-function: ease-in;\n  }\n\n  60% {\n    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n    opacity: 1;\n  }\n\n  80% {\n    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);\n  }\n\n  to {\n    transform: perspective(400px);\n  }\n}\n\n.flipInY {\n  backface-visibility: visible !important;\n  animation-name: flipInY;\n}\n\n@keyframes flipOutX {\n  from {\n    transform: perspective(400px);\n  }\n\n  30% {\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    opacity: 1;\n  }\n\n  to {\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    opacity: 0;\n  }\n}\n\n.flipOutX {\n  animation-duration: 0.75s;\n  animation-name: flipOutX;\n  backface-visibility: visible !important;\n}\n\n@keyframes flipOutY {\n  from {\n    transform: perspective(400px);\n  }\n\n  30% {\n    transform: perspective(400px) rotate3d(0, 1, 0, -15deg);\n    opacity: 1;\n  }\n\n  to {\n    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n    opacity: 0;\n  }\n}\n\n.flipOutY {\n  animation-duration: 0.75s;\n  backface-visibility: visible !important;\n  animation-name: flipOutY;\n}\n\n@keyframes lightSpeedIn {\n  from {\n    transform: translate3d(100%, 0, 0) skewX(-30deg);\n    opacity: 0;\n  }\n\n  60% {\n    transform: skewX(20deg);\n    opacity: 1;\n  }\n\n  80% {\n    transform: skewX(-5deg);\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.lightSpeedIn {\n  animation-name: lightSpeedIn;\n  animation-timing-function: ease-out;\n}\n\n@keyframes lightSpeedOut {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    transform: translate3d(100%, 0, 0) skewX(30deg);\n    opacity: 0;\n  }\n}\n\n.lightSpeedOut {\n  animation-name: lightSpeedOut;\n  animation-timing-function: ease-in;\n}\n\n@keyframes rotateIn {\n  from {\n    transform-origin: center;\n    transform: rotate3d(0, 0, 1, -200deg);\n    opacity: 0;\n  }\n\n  to {\n    transform-origin: center;\n    transform: translate3d(0, 0, 0);\n    opacity: 1;\n  }\n}\n\n.rotateIn {\n  animation-name: rotateIn;\n}\n\n@keyframes rotateInDownLeft {\n  from {\n    transform-origin: left bottom;\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0;\n  }\n\n  to {\n    transform-origin: left bottom;\n    transform: translate3d(0, 0, 0);\n    opacity: 1;\n  }\n}\n\n.rotateInDownLeft {\n  animation-name: rotateInDownLeft;\n}\n\n@keyframes rotateInDownRight {\n  from {\n    transform-origin: right bottom;\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0;\n  }\n\n  to {\n    transform-origin: right bottom;\n    transform: translate3d(0, 0, 0);\n    opacity: 1;\n  }\n}\n\n.rotateInDownRight {\n  animation-name: rotateInDownRight;\n}\n\n@keyframes rotateInUpLeft {\n  from {\n    transform-origin: left bottom;\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0;\n  }\n\n  to {\n    transform-origin: left bottom;\n    transform: translate3d(0, 0, 0);\n    opacity: 1;\n  }\n}\n\n.rotateInUpLeft {\n  animation-name: rotateInUpLeft;\n}\n\n@keyframes rotateInUpRight {\n  from {\n    transform-origin: right bottom;\n    transform: rotate3d(0, 0, 1, -90deg);\n    opacity: 0;\n  }\n\n  to {\n    transform-origin: right bottom;\n    transform: translate3d(0, 0, 0);\n    opacity: 1;\n  }\n}\n\n.rotateInUpRight {\n  animation-name: rotateInUpRight;\n}\n\n@keyframes rotateOut {\n  from {\n    transform-origin: center;\n    opacity: 1;\n  }\n\n  to {\n    transform-origin: center;\n    transform: rotate3d(0, 0, 1, 200deg);\n    opacity: 0;\n  }\n}\n\n.rotateOut {\n  animation-name: rotateOut;\n}\n\n@keyframes rotateOutDownLeft {\n  from {\n    transform-origin: left bottom;\n    opacity: 1;\n  }\n\n  to {\n    transform-origin: left bottom;\n    transform: rotate3d(0, 0, 1, 45deg);\n    opacity: 0;\n  }\n}\n\n.rotateOutDownLeft {\n  animation-name: rotateOutDownLeft;\n}\n\n@keyframes rotateOutDownRight {\n  from {\n    transform-origin: right bottom;\n    opacity: 1;\n  }\n\n  to {\n    transform-origin: right bottom;\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0;\n  }\n}\n\n.rotateOutDownRight {\n  animation-name: rotateOutDownRight;\n}\n\n@keyframes rotateOutUpLeft {\n  from {\n    transform-origin: left bottom;\n    opacity: 1;\n  }\n\n  to {\n    transform-origin: left bottom;\n    transform: rotate3d(0, 0, 1, -45deg);\n    opacity: 0;\n  }\n}\n\n.rotateOutUpLeft {\n  animation-name: rotateOutUpLeft;\n}\n\n@keyframes rotateOutUpRight {\n  from {\n    transform-origin: right bottom;\n    opacity: 1;\n  }\n\n  to {\n    transform-origin: right bottom;\n    transform: rotate3d(0, 0, 1, 90deg);\n    opacity: 0;\n  }\n}\n\n.rotateOutUpRight {\n  animation-name: rotateOutUpRight;\n}\n\n@keyframes hinge {\n  0% {\n    transform-origin: top left;\n    animation-timing-function: ease-in-out;\n  }\n\n  20%,\n  60% {\n    transform: rotate3d(0, 0, 1, 80deg);\n    transform-origin: top left;\n    animation-timing-function: ease-in-out;\n  }\n\n  40%,\n  80% {\n    transform: rotate3d(0, 0, 1, 60deg);\n    transform-origin: top left;\n    animation-timing-function: ease-in-out;\n    opacity: 1;\n  }\n\n  to {\n    transform: translate3d(0, 700px, 0);\n    opacity: 0;\n  }\n}\n\n.hinge {\n  animation-duration: 2s;\n  animation-name: hinge;\n}\n\n@keyframes jackInTheBox {\n  from {\n    opacity: 0;\n    transform: scale(0.1) rotate(30deg);\n    transform-origin: center bottom;\n  }\n\n  50% {\n    transform: rotate(-10deg);\n  }\n\n  70% {\n    transform: rotate(3deg);\n  }\n\n  to {\n    opacity: 1;\n    transform: scale(1);\n  }\n}\n\n.jackInTheBox {\n  animation-name: jackInTheBox;\n}\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n\n@keyframes rollIn {\n  from {\n    opacity: 0;\n    transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);\n  }\n\n  to {\n    opacity: 1;\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.rollIn {\n  animation-name: rollIn;\n}\n\n/* originally authored by Nick Pettit - https://github.com/nickpettit/glide */\n\n@keyframes rollOut {\n  from {\n    opacity: 1;\n  }\n\n  to {\n    opacity: 0;\n    transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);\n  }\n}\n\n.rollOut {\n  animation-name: rollOut;\n}\n\n@keyframes zoomIn {\n  from {\n    opacity: 0;\n    transform: scale3d(0.3, 0.3, 0.3);\n  }\n\n  50% {\n    opacity: 1;\n  }\n}\n\n.zoomIn {\n  animation-name: zoomIn;\n}\n\n@keyframes zoomInDown {\n  from {\n    opacity: 0;\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n  }\n\n  60% {\n    opacity: 1;\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n  }\n}\n\n.zoomInDown {\n  animation-name: zoomInDown;\n}\n\n@keyframes zoomInLeft {\n  from {\n    opacity: 0;\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n  }\n\n  60% {\n    opacity: 1;\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n  }\n}\n\n.zoomInLeft {\n  animation-name: zoomInLeft;\n}\n\n@keyframes zoomInRight {\n  from {\n    opacity: 0;\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n  }\n\n  60% {\n    opacity: 1;\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n  }\n}\n\n.zoomInRight {\n  animation-name: zoomInRight;\n}\n\n@keyframes zoomInUp {\n  from {\n    opacity: 0;\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n  }\n\n  60% {\n    opacity: 1;\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n  }\n}\n\n.zoomInUp {\n  animation-name: zoomInUp;\n}\n\n@keyframes zoomOut {\n  from {\n    opacity: 1;\n  }\n\n  50% {\n    opacity: 0;\n    transform: scale3d(0.3, 0.3, 0.3);\n  }\n\n  to {\n    opacity: 0;\n  }\n}\n\n.zoomOut {\n  animation-name: zoomOut;\n}\n\n@keyframes zoomOutDown {\n  40% {\n    opacity: 1;\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n  }\n\n  to {\n    opacity: 0;\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);\n    transform-origin: center bottom;\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n  }\n}\n\n.zoomOutDown {\n  animation-name: zoomOutDown;\n}\n\n@keyframes zoomOutLeft {\n  40% {\n    opacity: 1;\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0);\n  }\n\n  to {\n    opacity: 0;\n    transform: scale(0.1) translate3d(-2000px, 0, 0);\n    transform-origin: left center;\n  }\n}\n\n.zoomOutLeft {\n  animation-name: zoomOutLeft;\n}\n\n@keyframes zoomOutRight {\n  40% {\n    opacity: 1;\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0);\n  }\n\n  to {\n    opacity: 0;\n    transform: scale(0.1) translate3d(2000px, 0, 0);\n    transform-origin: right center;\n  }\n}\n\n.zoomOutRight {\n  animation-name: zoomOutRight;\n}\n\n@keyframes zoomOutUp {\n  40% {\n    opacity: 1;\n    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);\n    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n  }\n\n  to {\n    opacity: 0;\n    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);\n    transform-origin: center bottom;\n    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);\n  }\n}\n\n.zoomOutUp {\n  animation-name: zoomOutUp;\n}\n\n@keyframes slideInDown {\n  from {\n    transform: translate3d(0, -100%, 0);\n    visibility: visible;\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.slideInDown {\n  animation-name: slideInDown;\n}\n\n@keyframes slideInLeft {\n  from {\n    transform: translate3d(-100%, 0, 0);\n    visibility: visible;\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.slideInLeft {\n  animation-name: slideInLeft;\n}\n\n@keyframes slideInRight {\n  from {\n    transform: translate3d(100%, 0, 0);\n    visibility: visible;\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.slideInRight {\n  animation-name: slideInRight;\n}\n\n@keyframes slideInUp {\n  from {\n    transform: translate3d(0, 100%, 0);\n    visibility: visible;\n  }\n\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n.slideInUp {\n  animation-name: slideInUp;\n}\n\n@keyframes slideOutDown {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n\n  to {\n    visibility: hidden;\n    transform: translate3d(0, 100%, 0);\n  }\n}\n\n.slideOutDown {\n  animation-name: slideOutDown;\n}\n\n@keyframes slideOutLeft {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n\n  to {\n    visibility: hidden;\n    transform: translate3d(-100%, 0, 0);\n  }\n}\n\n.slideOutLeft {\n  animation-name: slideOutLeft;\n}\n\n@keyframes slideOutRight {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n\n  to {\n    visibility: hidden;\n    transform: translate3d(100%, 0, 0);\n  }\n}\n\n.slideOutRight {\n  animation-name: slideOutRight;\n}\n\n@keyframes slideOutUp {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n\n  to {\n    visibility: hidden;\n    transform: translate3d(0, -100%, 0);\n  }\n}\n\n.slideOutUp {\n  animation-name: slideOutUp;\n}\n"
  },
  {
    "path": "student/content/mdb/scss/free/modules/animations-extended/animations-extended.scss",
    "content": "/*\n * MDBootstrap Animations Extended\n * Learn more: https://mdbootstrap.com/docs/jquery/css/animations/\n * About MDBootstrap: https://mdbootstrap.com/\n */\n\n@import \"module\";\n"
  },
  {
    "path": "student/content/mdb/scss/mdb.lite.scss",
    "content": "/*!\n * Material Design for Bootstrap 4\n * Version: MDB Lite 4.7.0\n *\n *\n * Copyright: Material Design for Bootstrap\n * https://mdbootstrap.com/\n *\n * Read the license: https://mdbootstrap.com/general/license/\n *\n *\n * Documentation: https://mdbootstrap.com/\n *\n * Getting started: https://mdbootstrap.com/docs/jquery/getting-started/download/\n *\n * Tutorials: https://mdbootstrap.com/education/bootstrap/\n *\n * Templates: https://mdbootstrap.com/templates/\n *\n * Support: https://mdbootstrap.com/support/\n *\n * Contact: office@mdbootstrap.com\n *\n * Attribution: Animate CSS, Twitter Bootstrap, Materialize CSS, Normalize CSS, Waves JS, WOW JS, Toastr, Chart.js , Hammer.js\n *\n */\n\n@charset \"UTF-8\";\n\n// Bootstrap\n@import \"core/bootstrap/functions\";\n@import \"core/bootstrap/variables\";\n\n// CORE\n@import \"core/mixins\";\n// Your custom variables\n@import \"custom-variables\";\n@import \"core/colors\";\n@import \"core/variables\";\n@import \"core/global\";\n@import \"core/helpers\";\n@import \"core/typography\";\n@import \"core/masks\";\n@import \"core/waves\";\n\n// FREE\n@import \"free/animations-basic\";\n@import \"free/buttons\";\n@import \"free/cards\";\n@import \"free/dropdowns\";\n@import \"free/input-group\";\n@import \"free/navbars\";\n@import \"free/pagination\";\n@import \"free/badges\";\n@import \"free/modals\";\n@import \"free/carousels\";\n@import \"free/forms\";\n@import \"free/msc\";\n@import \"free/footers\";\n@import \"free/list-group\";\n@import \"free/tables\";\n@import \"free/depreciated\";\n@import \"free/steppers\";\n@import \"free/loader\";\n\n// Your custom styles\n@import \"custom-styles\";\n"
  },
  {
    "path": "student/content/mdb/scss/mdb.scss",
    "content": "/*!\n * Material Design for Bootstrap 4\n * Version: MDB FREE 4.7.0\n *\n *\n * Copyright: Material Design for Bootstrap\n * https://mdbootstrap.com/\n *\n * Read the license: https://mdbootstrap.com/general/license/\n *\n *\n * Documentation: https://mdbootstrap.com/\n *\n * Getting started: https://mdbootstrap.com/docs/jquery/getting-started/download/\n *\n * Tutorials: https://mdbootstrap.com/education/bootstrap/\n *\n * Templates: https://mdbootstrap.com/templates/\n *\n * Support: https://mdbootstrap.com/support/\n *\n * Contact: office@mdbootstrap.com\n *\n * Attribution: Animate CSS, Twitter Bootstrap, Materialize CSS, Normalize CSS, Waves JS, WOW JS, Toastr, Chart.js , Hammer.js\n *\n */\n\n@charset \"UTF-8\";\n\n// Bootstrap\n@import \"core/bootstrap/functions\";\n@import \"core/bootstrap/variables\";\n\n// CORE\n@import \"core/mixins\";\n// Your custom variables\n@import \"custom-variables\";\n@import \"core/colors\";\n@import \"core/variables\";\n@import \"core/global\";\n@import \"core/helpers\";\n@import \"core/typography\";\n@import \"core/masks\";\n@import \"core/waves\";\n\n// FREE\n@import \"free/animations-basic\";\n@import \"free/modules/animations-extended/module\";\n@import \"free/buttons\";\n@import \"free/cards\";\n@import \"free/dropdowns\";\n@import \"free/input-group\";\n@import \"free/navbars\";\n@import \"free/pagination\";\n@import \"free/badges\";\n@import \"free/modals\";\n@import \"free/carousels\";\n@import \"free/forms\";\n@import \"free/msc\";\n@import \"free/footers\";\n@import \"free/list-group\";\n@import \"free/tables\";\n@import \"free/depreciated\";\n@import \"free/steppers\";\n@import \"free/loader\";\n// Free addons\n// @import \"addons/datatables\";\n\n// Your custom styles\n@import \"custom-styles\";\n"
  },
  {
    "path": "student/controller/controller.js",
    "content": "\nsite_url=\"http://localhost/project/youth/api.php?key=12345\";\nurl=\"http://localhost/project/youth/api.php?key=12345&type=student_info&student_id=10001\";\nsend_sms_url=site_url+\"&type=send_sms\";\n\napp.controller(\"dashboard\", function($scope, $http) {\n    \n  var theme=\"views/send_sms.html\";\n\n \t$http.get(send_sms_url).then(function(response){\n        $scope.sms_error=response.data.error\n        $scope.sms = response.data.data;\n  });\n\n  $http.get(url).then(function (response) {\n        $scope.error=response.data.error\n        $scope.student = response.data.data;\n  });\n\n \n    \n    $scope.units = [\n        {'name': 'Profile', 'icon': 'user','function': '3'},\n        {'name': 'Result', 'icon': 'list-alt','function': '2'},\n        {'name': 'Payment', 'icon': 'eur','function': '1'},\n        {'name': 'Attendence', 'icon': 'check','function': '2'},\n        {'name': 'Live Chat', 'icon': 'envelope','function': '1'}\n    ]\n    \n    $scope.getPartial = function () {\n      return theme;\n  \t}\n\n    $scope.get_login=function(no){\n\n      if(no==1)theme=\"views/login.html\";\n      else if(no==2)theme=\"views/send_sms.html\"; \n      else if(no==2)theme=\"views/login.html\";\n      else if(no==2)theme=\"views/login.html\";\n      else if(no==3)theme=\"views/student_info.html\";\n      return theme;\n    }\n\n  \t$scope.get_student_list= function(){\n  \t\ttheme=\"views/login.html\";\n  \t}\n\n  \t$scope.get_template= function (name){\n  \t\treturn name;\n  \t}\n\n    $scope.send_sms=function(){\n      var mobile=document.getElementById('mobile').value;\n      var text=document.getElementById('text').value;\n      var sms_data={\n        'mobile': mobile,\n        'text': text\n      }\n      sms_data=JSON.stringify(sms_data);\n      var make_url=\"&type=post_sms&data=\"+sms_data;\n      make_url=site_url+make_url;\n      $http.get(make_url).then(function(response1){\n        console.log(response1.data.data);\n      });\n\n    }\n\n});\n\n\napp.controller(\"login\", function($scope, $http,$window) {\n \n \t$scope.submit=function(){\n    var user_name=$scope.user_name;\n    var pass=$scope.pass;\n    if(user_name==\"admin\" && pass==\"12345\"){\n      alert(user_name);\n      $window.location.href = '../student/';\n    }\n    else alert(\"Wrong Pass\");\n  }\n\n  $scope.islogin=function(){\n      \n  }\n\n  $scope.logout=function(){\n\n  }\n\n  \n\n});\n\napp.controller(\"student\", function($scope, $http) {\n \n  $http.get(url).then(function (response) {\n        $scope.error=response.data.error\n        $scope.student = response.data.data;\n  });\n\n});\n\napp.controller(\"send_sms\",function($scope,$http){\n\n\n    $http.get(send_sms_url).then(function(response){\n        $scope.error=response.data.error\n        $scope.sms = response.data.data;\n    });\n\n}); "
  },
  {
    "path": "student/data/dashboard_menu_list.html",
    "content": "{name:'Jani',icon:'flag'},\n{name:'Hege',icon:'flag1'},\n{name:'Kai',icon:'flag2'}\n"
  },
  {
    "path": "student/example/login/Gruntfile.js",
    "content": "module.exports = function (grunt) {\n  grunt.loadNpmTasks('grunt-html2js');\n  grunt.loadNpmTasks('grunt-contrib-less');\n  grunt.loadNpmTasks('grunt-contrib-connect');\n  grunt.loadNpmTasks('grunt-contrib-watch');\n  grunt.loadNpmTasks('grunt-contrib-concat');\n  grunt.loadNpmTasks('grunt-concat-sourcemap');\n  grunt.loadNpmTasks('grunt-contrib-copy');\n  grunt.loadNpmTasks('grunt-contrib-clean');\n  grunt.loadNpmTasks('grunt-karma');\n\n\n  grunt.initConfig({\n    pkg: grunt.file.readJSON('package.json'),\n    html2js: {\n      /**\n       * These are the templates from `src/app`.\n       */\n      app: {\n        options: {\n          base: 'src'\n        },\n        src: ['src/**/*.tpl.html'],\n        dest: 'build/templates-app.js'\n      }\n    },\n    less: {\n      all: {\n        src: 'style.less',\n        dest: 'build/style.css',\n        options: {\n          report: 'gzip'\n        }\n      }\n    },\n    connect: {\n      serve: {\n        options: {\n          port: 8080,\n          base: 'build/',\n          hostname: '*',\n          debug: true\n        }\n      }\n    },\n    watch: {\n      options: {\n        atBegin: true\n      },\n      templates: {\n        files: ['src/**/*.tpl.html'],\n        tasks: ['html2js']\n      },\n      less: {\n        files: ['style.less', 'src/**/*.less'],\n        tasks: ['less']\n      },\n      sources: {\n        files: ['src/**/*.js', 'src/*.js'],\n        tasks: ['concat_sourcemap:app']\n      },\n      index: {\n        files: 'index.html',\n        tasks: ['copy:index']\n      }\n      // Useful for watching / rerunning karma tests\n      // jsTest: {\n      //    files: ['test/spec/{,*/}*.js'],\n      //    tasks: ['karma']\n      //}\n    },\n    concat_sourcemap: {\n      options: {\n        sourcesContent: true\n      },\n      app: {\n        src: ['src/**/*.js', 'src/*.js'],\n        dest: 'build/app.js'\n      },\n      libs: {\n        src: [\n          'libs/angular/angular.js',\n          'libs/angular-animate/angular-animate.js',\n          'libs/angular-mocks/angular-mocks.js',\n          'libs/angular-ui-router/release/angular-ui-router.js'\n        ],\n        dest: 'build/libs.js'\n      }\n    },\n    copy: {\n      index: {\n        src: 'index.html',\n        dest: 'build/',\n        options: {\n          processContent: function (content, srcpath) {\n            // Compiling index.html file!\n            var packageVersion = require('./package.json').version;\n            return grunt.template.process(content, {\n              data: {\n                version: packageVersion\n              }\n            });\n          }\n        }\n      }\n    },\n    clean: {\n      all: {\n        src: ['build/']\n      }\n    },\n    // Test settings\n    karma: {\n      unit: {\n        configFile: 'test/karma.conf.js',\n        singleRun: true\n      }\n    }\n  });\n\n  // Build process:\n  // - clean build/\n  // - creates build/templates-app.js from *.tpl.html files\n  // - creates build/style.css from all the .less files\n  // - concatenates all the source files in build/app.js - banner with git revision\n  // - concatenates all the libraries in build/libs.js\n  // - copies index.html over build/\n  grunt.registerTask('build', ['clean', 'html2js', 'less', 'concat_sourcemap:app', 'concat_sourcemap:libs', 'copy']);\n  grunt.registerTask('default', ['clean', 'concat_sourcemap:libs', 'connect', 'watch']);\n  grunt.registerTask('test', ['karma']);\n};\n"
  },
  {
    "path": "student/example/login/LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2013 Valerio Coltrè\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "student/example/login/index.html",
    "content": "<!DOCTYPE html>\n<html ng-app=\"BasicHttpAuthExample\">\n\n  <head>\n    <meta charset=\"utf-8\" />\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css\">\n    <link rel=\"stylesheet\" href=\"//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css\" />\n  </head>\n\n  <body>\n  \n    <div class=\"jumbotron\">\n      <div class=\"container\">\n        <div class=\"col-xs-offset-2 col-xs-8\">\n          <div ng-view></div>\n        </div>\n      </div>\n    </div>\n\n\n\n    <script src=\"//code.jquery.com/jquery-2.0.3.min.js\"></script>\n    <script src=\"//code.angularjs.org/1.2.20/angular.js\"></script>\n    <script src=\"//code.angularjs.org/1.2.20/angular-route.js\"></script>\n    <script src=\"//code.angularjs.org/1.2.13/angular-cookies.js\"></script>\n    \n    <script src=\"scripts/app.js\"></script>\n    <script src=\"modules/authentication/services.js\"></script>\n    <script src=\"modules/authentication/controllers.js\"></script>\n    <script src=\"modules/home/controllers.js\"></script>\n  </body>\n\n</html>"
  },
  {
    "path": "student/example/login/modules/authentication/controllers.js",
    "content": "'use strict';\n \nangular.module('Authentication')\n \n.controller('LoginController',\n    ['$scope', '$rootScope', '$location', 'AuthenticationService',\n    function ($scope, $rootScope, $location, AuthenticationService) {\n        // reset login status\n        AuthenticationService.ClearCredentials();\n \n        $scope.login = function () {\n            $scope.dataLoading = true;\n            AuthenticationService.Login($scope.username, $scope.password, function(response) {\n                if(response.success) {\n                    AuthenticationService.SetCredentials($scope.username, $scope.password);\n                    $location.path('/');\n                } else {\n                    $scope.error = response.message;\n                    $scope.dataLoading = false;\n                }\n            });\n        };\n    }]);"
  },
  {
    "path": "student/example/login/modules/authentication/services.js",
    "content": "'use strict';\n \nangular.module('Authentication')\n \n.factory('AuthenticationService',\n    ['Base64', '$http', '$cookieStore', '$rootScope', '$timeout',\n\n    function (Base64, $http, $cookieStore, $rootScope, $timeout) {\n        var service = {};\n\n        service.Login = function (username, password, callback) {\n\n            /* Dummy authentication for testing, uses $timeout to simulate api call\n             ----------------------------------------------*/\n            $timeout(function(){\n                var response = { success: username === 'test' && password === 'test' };\n                if(!response.success) {\n                    response.message = 'Username or password is incorrect';\n                }\n                callback(response);\n            }, 1000);\n \n\n            /* Use this for real authentication\n             ----------------------------------------------*/\n            //$http.post('/api/authenticate', { username: username, password: password })\n            //    .success(function (response) {\n            //        callback(response);\n            //    });\n\n        };\n \n        service.SetCredentials = function (username, password) {\n            var authdata = Base64.encode(username + ':' + password);\n \n            $rootScope.globals = {\n                currentUser: {\n                    username: username,\n                    authdata: authdata\n                }\n            };\n \n            $http.defaults.headers.common['Authorization'] = 'Basic ' + authdata; // jshint ignore:line\n            $cookieStore.put('globals', $rootScope.globals);\n        };\n \n        service.ClearCredentials = function () {\n            $rootScope.globals = {};\n            $cookieStore.remove('globals');\n            $http.defaults.headers.common.Authorization = 'Basic ';\n        };\n \n        return service;\n    }])\n \n.factory('Base64', function () {\n    /* jshint ignore:start */\n \n    var keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n \n    return {\n        encode: function (input) {\n            var output = \"\";\n            var chr1, chr2, chr3 = \"\";\n            var enc1, enc2, enc3, enc4 = \"\";\n            var i = 0;\n \n            do {\n                chr1 = input.charCodeAt(i++);\n                chr2 = input.charCodeAt(i++);\n                chr3 = input.charCodeAt(i++);\n \n                enc1 = chr1 >> 2;\n                enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n                enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n                enc4 = chr3 & 63;\n \n                if (isNaN(chr2)) {\n                    enc3 = enc4 = 64;\n                } else if (isNaN(chr3)) {\n                    enc4 = 64;\n                }\n \n                output = output +\n                    keyStr.charAt(enc1) +\n                    keyStr.charAt(enc2) +\n                    keyStr.charAt(enc3) +\n                    keyStr.charAt(enc4);\n                chr1 = chr2 = chr3 = \"\";\n                enc1 = enc2 = enc3 = enc4 = \"\";\n            } while (i < input.length);\n \n            return output;\n        },\n \n        decode: function (input) {\n            var output = \"\";\n            var chr1, chr2, chr3 = \"\";\n            var enc1, enc2, enc3, enc4 = \"\";\n            var i = 0;\n \n            // remove all characters that are not A-Z, a-z, 0-9, +, /, or =\n            var base64test = /[^A-Za-z0-9\\+\\/\\=]/g;\n            if (base64test.exec(input)) {\n                window.alert(\"There were invalid base64 characters in the input text.\\n\" +\n                    \"Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\\n\" +\n                    \"Expect errors in decoding.\");\n            }\n            input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\n \n            do {\n                enc1 = keyStr.indexOf(input.charAt(i++));\n                enc2 = keyStr.indexOf(input.charAt(i++));\n                enc3 = keyStr.indexOf(input.charAt(i++));\n                enc4 = keyStr.indexOf(input.charAt(i++));\n \n                chr1 = (enc1 << 2) | (enc2 >> 4);\n                chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n                chr3 = ((enc3 & 3) << 6) | enc4;\n \n                output = output + String.fromCharCode(chr1);\n \n                if (enc3 != 64) {\n                    output = output + String.fromCharCode(chr2);\n                }\n                if (enc4 != 64) {\n                    output = output + String.fromCharCode(chr3);\n                }\n \n                chr1 = chr2 = chr3 = \"\";\n                enc1 = enc2 = enc3 = enc4 = \"\";\n \n            } while (i < input.length);\n \n            return output;\n        }\n    };\n \n    /* jshint ignore:end */\n});"
  },
  {
    "path": "student/example/login/modules/authentication/views/login.html",
    "content": "<div class=\"alert alert-info\">\n    Username: test<br />\n    Password: test\n</div>\n<div ng-show=\"error\" class=\"alert alert-danger\">{{error}}</div>\n<form name=\"form\" ng-submit=\"login()\" role=\"form\">\n    <div class=\"form-group\">\n        <label for=\"username\">Username</label>\n        <i class=\"fa fa-key\"></i>\n        <input type=\"text\" name=\"username\" id=\"username\" class=\"form-control\" ng-model=\"username\" required />\n        <span ng-show=\"form.username.$dirty && form.username.$error.required\" class=\"help-block\">Username is required</span>\n    </div>\n    <div class=\"form-group\">\n        <label for=\"password\">Password</label>\n        <i class=\"fa fa-lock\"></i>\n        <input type=\"password\" name=\"password\" id=\"password\" class=\"form-control\" ng-model=\"password\" required />\n        <span ng-show=\"form.password.$dirty && form.password.$error.required\" class=\"help-block\">Password is required</span>\n    </div>\n    <div class=\"form-actions\">\n        <button type=\"submit\" ng-disabled=\"form.$invalid || dataLoading\" class=\"btn btn-danger\">Login</button>\n        <img ng-if=\"dataLoading\" src=\"data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==\"/>\n    </div>\n</form>"
  },
  {
    "path": "student/example/login/modules/home/controllers.js",
    "content": "'use strict';\n \nangular.module('Home')\n \n.controller('HomeController',\n    ['$scope',\n    function ($scope) {\n      \n    }]);"
  },
  {
    "path": "student/example/login/modules/home/views/home.html",
    "content": "<h1>Home</h1>\n<p>You're logged in!!</p>\n<p><a href=\"#/login\">Logout</a></a></p>"
  },
  {
    "path": "student/example/login/scripts/app.js",
    "content": "'use strict';\n\n// declare modules\nangular.module('Authentication', []);\nangular.module('Home', []);\n\nangular.module('BasicHttpAuthExample', [\n    'Authentication',\n    'Home',\n    'ngRoute',\n    'ngCookies'\n])\n \n.config(['$routeProvider', function ($routeProvider) {\n\n    $routeProvider\n        .when('/login', {\n            controller: 'LoginController',\n            templateUrl: 'modules/authentication/views/login.html',\n            hideMenus: true\n        })\n \n        .when('/', {\n            controller: 'HomeController',\n            templateUrl: 'modules/home/views/home.html'\n        })\n \n        .otherwise({ redirectTo: '/login' });\n}])\n \n.run(['$rootScope', '$location', '$cookieStore', '$http',\n    function ($rootScope, $location, $cookieStore, $http) {\n        // keep user logged in after page refresh\n        $rootScope.globals = $cookieStore.get('globals') || {};\n        if ($rootScope.globals.currentUser) {\n            $http.defaults.headers.common['Authorization'] = 'Basic ' + $rootScope.globals.currentUser.authdata; // jshint ignore:line\n        }\n \n        $rootScope.$on('$locationChangeStart', function (event, next, current) {\n            // redirect to login page if not logged in\n            if ($location.path() !== '/login' && !$rootScope.globals.currentUser) {\n                $location.path('/login');\n            }\n        });\n    }]);"
  },
  {
    "path": "student/example/login/src/app.js",
    "content": "angular.module('angular-login', [\n  // login service\n  'loginService',\n  'angular-login.mock',\n  'angular-login.directives',\n  // different app sections\n  'angular-login.home',\n  'angular-login.pages',\n  'angular-login.register',\n  'angular-login.error',\n  // components\n  'ngAnimate'\n])\n.config(function ($urlRouterProvider) {\n  $urlRouterProvider.otherwise('/');\n})\n.run(function ($rootScope, $window) {\n  // google analytics\n  $rootScope.$on('$stateChangeSuccess', function (event, toState, toParams) {\n    var realURL = toState.url;\n    if (!!$window.ga) {\n      // resolves variables inside urls, ex: /error/:error in /error/unauthorized\n      for (var v in toParams) {\n        realURL = realURL.replace(':' + v, toParams[v]);\n      }\n      $window.ga('send', 'pageview', realURL);\n    }\n  });\n  /**\n   * $rootScope.doingResolve is a flag useful to display a spinner on changing states.\n   * Some states may require remote data so it will take awhile to load.\n   */\n  var resolveDone = function () { $rootScope.doingResolve = false; };\n  $rootScope.doingResolve = false;\n\n  $rootScope.$on('$stateChangeStart', function () {\n    $rootScope.doingResolve = true;\n  });\n  $rootScope.$on('$stateChangeSuccess', resolveDone);\n  $rootScope.$on('$stateChangeError', resolveDone);\n  $rootScope.$on('$statePermissionError', resolveDone);\n})\n.controller('BodyController', function ($scope, $state, $stateParams, loginService, $http, $timeout) {\n  // Expose $state and $stateParams to the <body> tag\n  $scope.$state = $state;\n  $scope.$stateParams = $stateParams;\n\n  // loginService exposed and a new Object containing login user/pwd\n  $scope.ls = loginService;\n  $scope.login = {\n    working: false,\n    wrong: false\n  };\n  $scope.loginMe = function () {\n    // setup promise, and 'working' flag\n    var loginPromise = $http.post('/login', $scope.login);\n    $scope.login.working = true;\n    $scope.login.wrong = false;\n\n    loginService.loginUser(loginPromise);\n    loginPromise.error(function () {\n      $scope.login.wrong = true;\n      $timeout(function () { $scope.login.wrong = false; }, 8000);\n    });\n    loginPromise.finally(function () {\n      $scope.login.working = false;\n    });\n  };\n  $scope.logoutMe = function () {\n    loginService.logoutUser($http.get('/logout'));\n  };\n});\n"
  },
  {
    "path": "student/example/login/src/directives/form-helpers.js",
    "content": "angular.module('angular-login.directives', [])\n/**\n * Simple directive to check password equality\n *\n * usage:\n * <input type=\"password\" ng-model=\"password\" password-match=\"password2\">\n * <input type=\"password\" ng-model=\"password2\">\n */\n.directive('passwordMatch', function () {\n  return {\n    restrict: 'A',\n    scope: false,\n    require: 'ngModel',\n    link: function (scope, elem, attrs, controller) {\n      var checker = function () {\n        // get the value of the first password\n        var pwd = scope.$eval(attrs.ngModel);\n        // get the value of the other password\n        var pwd2 = scope.$eval(attrs.passwordMatch);\n        return pwd === pwd2;\n      };\n      scope.$watch(checker, function (pwdMatch) {\n        controller.$setValidity('match', pwdMatch);\n      });\n    }\n  };\n})\n/**\n * Directive to manage valid/invalid states of remote-validated Data.\n * It stores an internal array of values declared invalid by the server.\n * Generates the form error specified in case the user re-types the same invalid values,\n * clears the errors in case the user changes the ngModel.\n *\n * usage:\n * <input type=\"email\" ng-model=\"email\" remote-validated=\"used\">\n *\n * NOTE: Your controllers have to make the field invalid in case *your* server says so.\n */\n.directive('remoteValidated', function () {\n  return {\n    restrict: 'A',\n    scope: false,\n    require: 'ngModel',\n    link: function (scope, elem, attrs, controller) {\n      var invalidItems = [];\n      scope.$watch(attrs.ngModel, function (newValue, oldValue) {\n        if (newValue) {\n          // Check the array of already-bad items\n          if (invalidItems.indexOf(newValue) !== -1) {\n            return controller.$setValidity(attrs.remoteValidated, false);\n          }\n          // When the model changes, it checks if the previous value was\n          // triggering the error from server-side\n          if (controller.$error[attrs.remoteValidated]) {\n            invalidItems.push(oldValue);\n          }\n          controller.$setValidity(attrs.remoteValidated, true);\n        }\n      });\n    }\n  };\n});\n"
  },
  {
    "path": "student/example/login/src/error/error.js",
    "content": "angular.module('angular-login.error', ['angular-login.grandfather'])\n.config(function ($stateProvider) {\n  $stateProvider\n    .state('app.error', {\n      url: '/error/:error',\n      templateUrl: 'error/error.tpl.html',\n      accessLevel: accessLevels.public\n    });\n});\n"
  },
  {
    "path": "student/example/login/src/error/error.tpl.html",
    "content": "<div class=\"jumbotron\">\n  <h1>Error</h1>\n  <div ng-switch=\"$stateParams.error\">\n    <p class=\"text-danger\" ng-switch-when=\"unauthorized\">You are not authorized</p>\n    <p class=\"text-danger\" ng-switch-when=\"401\">You are not authorized</p>\n    <p class=\"text-danger\" ng-switch-default>Some error has occurred</p>\n  </div ng-switch>\n</div>\n"
  },
  {
    "path": "student/example/login/src/grandfather.js",
    "content": "angular.module('angular-login.grandfather', ['ui.router', 'templates-app'])\n.config(function ($stateProvider) {\n  $stateProvider\n    .state('app', {\n      abstract: true,\n      template: '<ui-view></ui-view>',\n      resolve: {\n        'login': function (loginService, $q, $http) {\n          var roleDefined = $q.defer();\n\n          /**\n           * In case there is a pendingStateChange means the user requested a $state,\n           * but we don't know yet user's userRole.\n           *\n           * Calling resolvePendingState makes the loginService retrieve his userRole remotely.\n           */\n          if (loginService.pendingStateChange) {\n            return loginService.resolvePendingState($http.get('/user'));\n          } else {\n            roleDefined.resolve();\n          }\n          return roleDefined.promise;\n        }\n      }\n    });\n});\n"
  },
  {
    "path": "student/example/login/src/home/home.js",
    "content": "angular.module('angular-login.home', ['angular-login.grandfather'])\n.config(function ($stateProvider) {\n  $stateProvider\n    .state('app.home', {\n      url: '/',\n      templateUrl: 'home/home.tpl.html',\n      controller: 'HomeController'\n    });\n})\n.controller('HomeController', function ($scope) {\n  $scope.users = angular.fromJson(localStorage.getItem('userStorage'));\n});\n"
  },
  {
    "path": "student/example/login/src/home/home.tpl.html",
    "content": "<div class=\"jumbotron\">\n  <h1>This is home!</h1>\n  <p>Everybody can access this page, the other credentials stored are:</p>\n  <div ng-repeat=\"user in users\">\n    <h2>{{ user.name }}</h2>\n    <p ng-class=\"{ 'text-info': user.userRole.title === 'user', 'text-danger': user.userRole.title === 'admin' }\">\n      username: {{ user.username }}, password: {{ user.password }}, email: {{ user.email }}, permission: {{ user.userRole.title }}\n    </p>\n  </div>\n</div>\n\n<h2>native json</h2>\n<p>angular provides the real json object</p>\n<pre>\n  <code>\n{{ users | json }}\n  </code>\n</pre>\n\n<h2>You can keep track of mocked http requests</h2>\n<p>Just open the console of your favourite browser and the ngMock will print out the requests as console.info.</p>\n"
  },
  {
    "path": "student/example/login/src/login-service.js",
    "content": "angular.module('loginService', ['ui.router'])\n.provider('loginService', function () {\n  var userToken = localStorage.getItem('userToken'),\n      errorState = 'app.error',\n      logoutState = 'app.home';\n\n  this.$get = function ($rootScope, $http, $q, $state) {\n\n    /**\n     * Low-level, private functions.\n     */\n    var setHeaders = function (token) {\n      if (!token) {\n        delete $http.defaults.headers.common['X-Token'];\n        return;\n      }\n      $http.defaults.headers.common['X-Token'] = token.toString();\n    };\n\n    var setToken = function (token) {\n      if (!token) {\n        localStorage.removeItem('userToken');\n      } else {\n        localStorage.setItem('userToken', token);\n      }\n      setHeaders(token);\n    };\n\n    var getLoginData = function () {\n      if (userToken) {\n        setHeaders(userToken);\n      } else {\n        wrappedService.userRole = userRoles.public;\n        wrappedService.isLogged = false;\n        wrappedService.doneLoading = true;\n      }\n    };\n\n    var managePermissions = function () {\n      // Register routing function.\n      $rootScope.$on('$stateChangeStart', function (event, to, toParams, from, fromParams) {\n\n        /**\n         * $stateChangeStart is a synchronous check to the accessLevels property\n         * if it's not set, it will setup a pendingStateChange and will let\n         * the grandfather resolve do his job.\n         *\n         * In short:\n         * If accessLevels is still undefined, it let the user change the state.\n         * Grandfather.resolve will either let the user in or reject the promise later!\n         */\n        if (wrappedService.userRole === null) {\n          wrappedService.doneLoading = false;\n          wrappedService.pendingStateChange = {\n            to: to,\n            toParams: toParams\n          };\n          return;\n        }\n\n        // if the state has undefined accessLevel, anyone can access it.\n        // NOTE: if `wrappedService.userRole === undefined` means the service still doesn't know the user role,\n        // we need to rely on grandfather resolve, so we let the stateChange success, for now.\n        if (to.accessLevel === undefined || to.accessLevel.bitMask & wrappedService.userRole.bitMask) {\n          angular.noop(); // requested state can be transitioned to.\n        } else {\n          event.preventDefault();\n          $rootScope.$emit('$statePermissionError');\n          $state.go(errorState, { error: 'unauthorized' }, { location: false, inherit: false });\n        }\n      });\n\n      /**\n       * Gets triggered when a resolve isn't fulfilled\n       * NOTE: when the user doesn't have required permissions for a state, this event\n       *       it's not triggered.\n       *\n       * In order to redirect to the desired state, the $http status code gets parsed.\n       * If it's an HTTP code (ex: 403), could be prefixed with a string (ex: resolvename403),\n       * to handle same status codes for different resolve(s).\n       * This is defined inside $state.redirectMap.\n       */\n      $rootScope.$on('$stateChangeError', function (event, to, toParams, from, fromParams, error) {\n        /**\n         * This is a very clever way to implement failure redirection.\n         * You can use the value of redirectMap, based on the value of the rejection\n         * So you can setup DIFFERENT redirections based on different promise errors.\n         */\n        var errorObj, redirectObj;\n        // in case the promise given to resolve function is an $http request\n        // the error is a object containing the error and additional informations\n        error = (typeof error === 'object') ? error.status.toString() : error;\n        // in case of a random 4xx/5xx status code from server, user gets loggedout\n        // otherwise it *might* forever loop (look call diagram)\n        if (/^[45]\\d{2}$/.test(error)) {\n          wrappedService.logoutUser();\n        }\n        /**\n         * Generic redirect handling.\n         * If a state transition has been prevented and it's not one of the 2 above errors, means it's a\n         * custom error in your application.\n         *\n         * redirectMap should be defined in the $state(s) that can generate transition errors.\n         */\n        if (angular.isDefined(to.redirectMap) && angular.isDefined(to.redirectMap[error])) {\n          if (typeof to.redirectMap[error] === 'string') {\n            return $state.go(to.redirectMap[error], { error: error }, { location: false, inherit: false });\n          } else if (typeof to.redirectMap[error] === 'object') {\n            redirectObj = to.redirectMap[error];\n            return $state.go(redirectObj.state, { error: redirectObj.prefix + error }, { location: false, inherit: false });\n          }\n        }\n        return $state.go(errorState, { error: error }, { location: false, inherit: false });\n      });\n    };\n\n    /**\n     * High level, public methods\n     */\n    var wrappedService = {\n      loginHandler: function (user, status, headers, config) {\n        /**\n         * Custom logic to manually set userRole goes here\n         *\n         * Commented example shows an userObj coming with a 'completed'\n         * property defining if the user has completed his registration process,\n         * validating his/her email or not.\n         *\n         * EXAMPLE:\n         * if (user.hasValidatedEmail) {\n         *   wrappedService.userRole = userRoles.registered;\n         * } else {\n         *   wrappedService.userRole = userRoles.invalidEmail;\n         *   $state.go('app.nagscreen');\n         * }\n         */\n        // setup token\n        setToken(user.token);\n        // update user\n        angular.extend(wrappedService.user, user);\n        // flag true on isLogged\n        wrappedService.isLogged = true;\n        // update userRole\n        wrappedService.userRole = user.userRole;\n        return user;\n      },\n      loginUser: function (httpPromise) {\n        httpPromise.success(this.loginHandler);\n      },\n      logoutUser: function (httpPromise) {\n        /**\n         * De-registers the userToken remotely\n         * then clears the loginService as it was on startup\n         */\n        setToken(null);\n        this.userRole = userRoles.public;\n        this.user = {};\n        this.isLogged = false;\n        $state.go(logoutState);\n      },\n      resolvePendingState: function (httpPromise) {\n        var checkUser = $q.defer(),\n            self = this,\n            pendingState = self.pendingStateChange;\n\n        // When the $http is done, we register the http result into loginHandler, `data` parameter goes into loginService.loginHandler\n        httpPromise.success(self.loginHandler);\n\n        httpPromise.then(\n          function success(httpObj) {\n            self.doneLoading = true;\n            // duplicated logic from $stateChangeStart, slightly different, now we surely have the userRole informations.\n            if (pendingState.to.accessLevel === undefined || pendingState.to.accessLevel.bitMask & self.userRole.bitMask) {\n              checkUser.resolve();\n            } else {\n              checkUser.reject('unauthorized');\n            }\n          },\n          function reject(httpObj) {\n            checkUser.reject(httpObj.status.toString());\n          }\n        );\n        /**\n         * I setted up the state change inside the promises success/error,\n         * so i can safely assign pendingStateChange back to null.\n         */\n        self.pendingStateChange = null;\n        return checkUser.promise;\n      },\n      /**\n       * Public properties\n       */\n      userRole: null,\n      user: {},\n      isLogged: null,\n      pendingStateChange: null,\n      doneLoading: null\n    };\n\n    getLoginData();\n    managePermissions();\n\n    return wrappedService;\n  };\n});\n"
  },
  {
    "path": "student/example/login/src/mockhttp.js",
    "content": "/* jshint -W084 */\nangular.module('angular-login.mock', ['ngMockE2E'])\n.factory('delayHTTP', function ($q, $timeout) {\n  return {\n    request: function (request) {\n      var delayedResponse = $q.defer();\n      $timeout(function () {\n        delayedResponse.resolve(request);\n      }, 700);\n      return delayedResponse.promise;\n    },\n    response: function (response) {\n      var deferResponse = $q.defer();\n\n      if (response.config.timeout && response.config.timeout.then) {\n        response.config.timeout.then(function () {\n          deferResponse.reject();\n        });\n      } else {\n        deferResponse.resolve(response);\n      }\n\n      return $timeout(function () {\n        deferResponse.resolve(response);\n        return deferResponse.promise;\n      });\n    }\n  };\n})\n// delay HTTP\n.config(['$httpProvider', function ($httpProvider) {\n  $httpProvider.interceptors.push('delayHTTP');\n}])\n.constant('loginExampleData', {\n  version: '0.2.0'\n})\n.run(function ($httpBackend, $log, loginExampleData) {\n  var userStorage = angular.fromJson(localStorage.getItem('userStorage')),\n      emailStorage = angular.fromJson(localStorage.getItem('emailStorage')),\n      tokenStorage = angular.fromJson(localStorage.getItem('tokenStorage')) || {},\n      loginExample = angular.fromJson(localStorage.getItem('loginExample'));\n\n  // Check and corrects old localStorage values, backward-compatibility!\n  if (!loginExample || loginExample.version !== loginExampleData.version) {\n    userStorage = null;\n    tokenStorage = {};\n    localStorage.setItem('loginExample', angular.toJson(loginExampleData));\n  }\n\n  if (userStorage === null || emailStorage === null) {\n    userStorage = {\n      'johnm': { name: 'John', username: 'johnm', password: 'hello', email: 'john.dott@myemail.com', userRole: userRoles.user, tokens: [] },\n      'sandrab': { name: 'Sandra', username: 'sandrab', password: 'world', email: 'bitter.s@provider.com', userRole: userRoles.admin, tokens: [] }\n    };\n    emailStorage = {\n      'john.dott@myemail.com': 'johnm',\n      'bitter.s@provider.com': 'sandrab'\n    };\n    localStorage.setItem('userStorage', angular.toJson(userStorage));\n    localStorage.setItem('emailStorage', angular.toJson(emailStorage));\n  }\n\n  /**\n   * Generates random Token\n   */\n  var randomUUID = function () {\n    var charSet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n    var randomToken = '';\n    for (var i = 0; i < 36; i++) {\n      if (i === 8 || i === 13 || i === 18 || i === 23) {\n        randomToken += '';\n        continue;\n      }\n      var randomPoz = Math.floor(Math.random() * charSet.length);\n      randomToken += charSet.substring(randomPoz, randomPoz + 1);\n    }\n    return randomToken;\n  };\n\n  // fakeLogin\n  $httpBackend.when('POST', '/login').respond(function (method, url, data, headers) {\n    var postData = angular.fromJson(data),\n        user = userStorage[postData.username],\n        newToken,\n        tokenObj;\n    $log.info(method, '->', url);\n\n    if (angular.isDefined(user) && user.password === postData.password) {\n      newToken = randomUUID();\n      user.tokens.push(newToken);\n      tokenStorage[newToken] = postData.username;\n      localStorage.setItem('userStorage', angular.toJson(userStorage));\n      localStorage.setItem('tokenStorage', angular.toJson(tokenStorage));\n      return [200, { name: user.name, userRole: user.userRole, token: newToken }, {}];\n    } else {\n      return [401, 'wrong combination username/password', {}];\n    }\n  });\n\n  // fakeLogout\n  $httpBackend.when('GET', '/logout').respond(function (method, url, data, headers) {\n    var queryToken, userTokens;\n    $log.info(method, '->', url);\n\n    if (queryToken = headers['X-Token']) {\n      if (angular.isDefined(tokenStorage[queryToken])) {\n        userTokens = userStorage[tokenStorage[queryToken]].tokens;\n        // Update userStorage AND tokenStorage\n        userTokens.splice(userTokens.indexOf(queryToken));\n        delete tokenStorage[queryToken];\n        localStorage.setItem('userStorage', angular.toJson(userStorage));\n        localStorage.setItem('tokenStorage', angular.toJson(tokenStorage));\n        return [200, {}, {}];\n      } else {\n        return [401, 'auth token invalid or expired', {}];\n      }\n    } else {\n      return [401, 'auth token invalid or expired', {}];\n    }\n  });\n\n  // fakeUser\n  $httpBackend.when('GET', '/user').respond(function (method, url, data, headers) {\n    var queryToken, userObject;\n    $log.info(method, '->', url);\n\n    // if is present in a registered users array.\n    if (queryToken = headers['X-Token']) {\n      if (angular.isDefined(tokenStorage[queryToken])) {\n        userObject = userStorage[tokenStorage[queryToken]];\n        return [200, { token: queryToken, name: userObject.name, userRole: userObject.userRole }, {}];\n      } else {\n        return [401, 'auth token invalid or expired', {}];\n      }\n    } else {\n      return [401, 'auth token invalid or expired', {}];\n    }\n  });\n\n  // fakeRegister\n  $httpBackend.when('POST', '/user').respond(function (method, url, data, headers) {\n    var postData = angular.fromJson(data),\n        newUser,\n        errors = [];\n    $log.info(method, '->', url);\n\n    if (angular.isDefined(userStorage[postData.username])) {\n      errors.push({ field: 'username', name: 'used' });\n    }\n\n    if (angular.isDefined(emailStorage[postData.email])) {\n      errors.push({ field: 'email', name: 'used' });\n    }\n\n    if (errors.length) {\n      return [409, {\n        valid: false,\n        errors: errors\n      }, {}];\n    } else {\n      newUser = angular.extend(postData, { userRole: userRoles[postData.role], tokens: [] });\n      delete newUser.role;\n\n      userStorage[newUser.username] = newUser;\n      emailStorage[newUser.email] = newUser.username;\n      localStorage.setItem('userStorage', angular.toJson(userStorage));\n      localStorage.setItem('emailStorage', angular.toJson(emailStorage));\n      return [201, { valid: true, creationDate: Date.now() }, {}];\n    }\n  });\n\n});\n"
  },
  {
    "path": "student/example/login/src/pages/admin.tpl.html",
    "content": "<div class=\"jumbotron\">\n  <h1>Admin interface</h1>\n  <p class=\"text-danger\">Only accessible by <b>admins</b></p>\n</div>\n"
  },
  {
    "path": "student/example/login/src/pages/pages.js",
    "content": "angular.module('angular-login.pages', ['angular-login.grandfather'])\n.config(function ($stateProvider) {\n  $stateProvider\n    .state('app.admin', {\n      url: '/admin',\n      templateUrl: 'pages/admin.tpl.html',\n      accessLevel: accessLevels.admin\n    })\n    .state('app.user', {\n      url: '/user',\n      templateUrl: 'pages/user.tpl.html',\n      accessLevel: accessLevels.user\n    });\n});\n"
  },
  {
    "path": "student/example/login/src/pages/user.tpl.html",
    "content": "<div class=\"jumbotron\">\n  <h1>Page for registered users</h1>\n  <p class=\"text-info\">Both <b>users</b> and <b>admins</b> can access to this page!</p>\n</div>\n"
  },
  {
    "path": "student/example/login/src/register/register.js",
    "content": "angular.module('angular-login.register', ['angular-login.grandfather'])\n.config(function ($stateProvider) {\n  $stateProvider\n    .state('app.register', {\n      url: '/register',\n      templateUrl: 'register/register.tpl.html',\n      controller: 'RegisterController',\n      accessLevel: accessLevels.anon\n    });\n})\n.controller('RegisterController', function ($scope, $http, $timeout, $state) {\n  $scope.xhr = false;\n  $scope.redirect = false;\n\n  $scope.registerObj = {\n    role: 'user'\n  };\n\n  $scope.submit = function (formInstance) {\n    // xhr is departing\n    $scope.xhr = true;\n    $http.post('/user', $scope.registerObj)\n    .success(function (data, status, headers, config) {\n      console.info('post success - ', data);\n      $scope.xhr = false;\n      $scope.redirect = true;\n      $timeout(function () {\n        $state.go('app.home');\n      }, 2000);\n    })\n    .error(function (data, status, headers, config) {\n      data.errors.forEach(function (error, index, array) {\n        formInstance[error.field].$error[error.name] = true;\n      });\n      formInstance.$setPristine();\n      console.info('post error - ', data);\n      $scope.xhr = false;\n    });\n  };\n});\n"
  },
  {
    "path": "student/example/login/src/register/register.less",
    "content": "@slate-color: rgb(39, 43, 48);\n\n.form-signin {\n  max-width: 400px;\n  padding: 15px;\n  margin: 0 auto;\n  background-color: lighten(@slate-color, 10%);\n  box-shadow: 1px 1px 2px 2px lighten(@slate-color, 20%);\n  border-radius: 5px;\n  .form-control:focus {\n    z-index: 2;\n  }\n  .form-control {\n    position: relative;\n    font-size: 16px;\n    height: auto;\n    padding: 10px;\n  }\n  input {\n    // margin-bottom: 10px;\n    &.password {\n      margin-bottom: -1px;\n      border-bottom-left-radius: 0;\n      border-bottom-right-radius: 0;\n    }\n    &.password2 {\n      border-top-left-radius: 0;\n      border-top-right-radius: 0;\n    }\n  }\n  .form-input {\n    margin-bottom: 10px;\n    .errors {\n      background-color: softlight(@slate-color, white);\n      border: 1px solid transparent;\n      border-radius: 4px;\n      transition: border-color 1s;\n\n      // hides borders if .errors is empty\n      &.active {\n        border-color: #666666;\n      }\n      .error {\n        margin: 3px 5px;\n        white-space: nowrap; // white-space div align\n        overflow: hidden;\n\n        // FIXME: needs rework.\n        &.ng-hide-add {\n          transition: max-height .5s;\n          max-height: 60px;\n          display: block!important;\n\n          &.ng-hide-add-active {\n            max-height: 0px;\n          }\n        }\n        &.ng-hide-remove {\n          transition: max-height .5s;\n          max-height: 0px;\n          display: block!important;\n\n          &.ng-hide-remove-active {\n            max-height: 60px;\n          }\n        }\n\n        // Message inside the .error div\n        &:before {\n          content: 'Error:';\n          display: inline-block;\n          color: #FA3F3C;\n          font-weight: 800;\n          width: 40px;\n          vertical-align: top;\n        }\n        p {\n          display: inline-block;\n          white-space: normal; // reset it on children\n          margin: 0;\n          &:first-child {\n            width: 40px;\n            vertical-align: top;\n          }\n          &:last-child {\n            width: 316px;\n          }\n        }\n      }\n    }\n  }\n  .form-signin-heading {\n    font-weight: 800;\n    text-shadow: 2px 2px 4px black;\n    margin-bottom: 10px\n  }\n  .checkbox {\n    font-weight: normal;\n    margin-bottom: 10px;\n  }\n}\n"
  },
  {
    "path": "student/example/login/src/register/register.tpl.html",
    "content": "<form class=\"form-signin\" name=\"registerForm\" role=\"registration\" ng-submit=\"submit(registerForm)\">\n  <div class=\"alert alert-warning\">\n    <p class=\"text-center\"><strong>Please NOTE</strong></p>\n    <p class=\"text-center\">All the data here is fake, it gets stored in your localStorage, it will <strong>NEVER</strong> leave your browser.</p>\n  </div>\n  <h2 class=\"form-signin-heading\"><i class=\"fa fa-user\"></i> New User</h2>\n  <!--div class=\"form-group\">\n    <label for=\"username\" class=\"col-lg-2 control-label\">Email</label>\n    <div class=\"col-lg-10\">\n      <input type=\"text\" class=\"form-control\" id=\"username\" placeholder=\"Username\">\n    </div>\n  </div-->\n  <div class=\"form-input username\">\n    <input type=\"text\" class=\"form-control\" placeholder=\"Username\" name=\"username\" ng-model=\"registerObj.username\" autofocus=\"true\"\n      ng-minlength=\"4\" ng-maxlength=\"16\" ng-required=\"true\" remote-validated=\"used\">\n    <div class=\"errors\" ng-class=\"{ active: registerForm.username.$invalid && registerForm.username.$dirty }\">\n      <div class=\"error ng-hide\" ng-show=\"registerForm.username.$error.minlength\">\n        <p>Username is too short!</p>\n      </div>\n      <div class=\"error ng-hide\" ng-show=\"registerForm.username.$error.maxlength\">\n        <p>Max username length is 16, please shorten it.</p>\n      </div>\n      <div class=\"error ng-hide\" ng-show=\"registerForm.username.$error.used\">\n        <p>Username is already taken.</p>\n      </div>\n    </div>\n  </div>\n  <div class=\"form-input name\">\n    <input type=\"text\" class=\"form-control\" placeholder=\"Real Name\" name=\"name\" ng-model=\"registerObj.name\" ng-minlength=\"4\" ng-maxlength=\"32\" ng-required=\"true\">\n    <div class=\"errors\" ng-class=\"{ active: registerForm.name.$invalid && registerForm.name.$dirty }\">\n      <div class=\"error ng-hide\" ng-show=\"registerForm.name.$error.minlength\">\n        <p>Provided name is too short!</p>\n      </div>\n      <div class=\"error ng-hide\" ng-show=\"registerForm.name.$error.maxlength\">\n        <p>Max name length is 32, please shorten it.</p>\n      </div>\n    </div>\n  </div>\n  <div class=\"form-input password\">\n    <input type=\"password\" class=\"form-control password\" placeholder=\"Password\" name=\"password\" ng-model=\"registerObj.password\" ng-minlength=\"4\" ng-maxlength=\"16\" ng-required=\"true\" password-match=\"registerObj.password2\">\n    <input type=\"password\" class=\"form-control password2\" placeholder=\"Repeat Password\" name=\"password2\" ng-model=\"registerObj.password2\">\n    <div class=\"errors\" ng-class=\"{ active: registerForm.password.$invalid && registerForm.password.$dirty }\">\n      <div class=\"error ng-hide\" ng-show=\"registerForm.password.$error.match\">\n        <p>Passwords do not match.</p>\n      </div>\n      <div class=\"error ng-hide\" ng-show=\"registerForm.password.$error.minlength\">\n        <p>For your own safety, use a password longer than 4 characters.</p>\n      </div>\n      <div class=\"error ng-hide\" ng-show=\"registerForm.password.$error.maxlength\">\n        <p>For your own <b>SANITY</b>, use a password shorter than 16 characters.</p>\n      </div>\n    </div>\n  </div>\n  <div class=\"form-input email\">\n    <input type=\"email\" class=\"form-control email\" placeholder=\"E-Mail\" name=\"email\" ng-model=\"registerObj.email\" ng-required=\"true\" remote-validated=\"used\">\n    <div class=\"errors\" ng-class=\"{ active: registerForm.email.$invalid && registerForm.email.$dirty }\">\n      <div class=\"error ng-hide\" ng-show=\"registerForm.email.$error.email\">\n        <p>E-Mail seems invalid.</p>\n      </div>\n      <div class=\"error ng-hide\" ng-show=\"registerForm.email.$error.used\">\n        <p>E-Mail is already taken.</p>\n      </div>\n    </div>\n  </div>\n  <div class=\"form-input role\">\n    <select class=\"form-control\" name=\"role\" ng-model=\"registerObj.role\">\n      <option value=\"user\" selected>User</option>\n      <option value=\"admin\">Administrator</option>\n    </select>\n  </div>\n  <button class=\"btn btn-lg btn-block\" type=\"submit\"\n    ng-class=\"{ 'btn-primary': registerForm.$valid && registerForm.$dirty, 'btn-success': redirect }\"\n    ng-disabled=\"registerForm.$invalid || registerForm.$pristine || xhr || redirect\">\n    <span ng-hide=\"redirect\">Register <i class=\"fa fa-repeat fa-spin\" ng-show=\"xhr\"></i></span>\n    <span ng-show=\"redirect\">Redirecting... <i class=\"fa fa-repeat fa-spin\"></i></span>\n  </button>\n</form>\n"
  },
  {
    "path": "student/example/login/src/routing-config.js",
    "content": "/**\n * Directly from fnakstad\n * https://github.com/fnakstad/angular-client-side-auth/blob/master/client/js/routingConfig.js\n */\n\n(function (exports) {\n\n  var config = {\n\n    /* List all the roles you wish to use in the app\n    * You have a max of 31 before the bit shift pushes the accompanying integer out of\n    * the memory footprint for an integer\n    */\n    roles: [\n      'public',\n      'user',\n      'admin'\n    ],\n\n    /*\n    Build out all the access levels you want referencing the roles listed above\n    You can use the \"*\" symbol to represent access to all roles\n     */\n    accessLevels: {\n      'public' : '*',\n      'anon': ['public'],\n      'user' : ['user', 'admin'],\n      'admin': ['admin']\n    }\n\n  };\n\n  /*\n    Method to build a distinct bit mask for each role\n    It starts off with \"1\" and shifts the bit to the left for each element in the\n    roles array parameter\n   */\n  function buildRoles(roles) {\n\n    var bitMask = \"01\";\n    var userRoles = {};\n\n    for (var role in roles) {\n      var intCode = parseInt(bitMask, 2);\n      userRoles[roles[role]] = {\n        bitMask: intCode,\n        title: roles[role]\n      };\n      bitMask = (intCode << 1).toString(2);\n    }\n\n    return userRoles;\n  }\n\n  /*\n  This method builds access level bit masks based on the accessLevelDeclaration parameter which must\n  contain an array for each access level containing the allowed user roles.\n   */\n  function buildAccessLevels(accessLevelDeclarations, userRoles) {\n\n    var accessLevels = {},\n        resultBitMask,\n        role;\n    for (var level in accessLevelDeclarations) {\n\n      if (typeof accessLevelDeclarations[level] === 'string') {\n        if (accessLevelDeclarations[level] === '*') {\n\n          resultBitMask = '';\n\n          for (role in userRoles) {\n            resultBitMask += \"1\";\n          }\n          //accessLevels[level] = parseInt(resultBitMask, 2);\n          accessLevels[level] = {\n            bitMask: parseInt(resultBitMask, 2),\n            title: accessLevelDeclarations[level]\n          };\n        }\n        else {\n          console.log(\"Access Control Error: Could not parse '\" + accessLevelDeclarations[level] + \"' as access definition for level '\" + level + \"'\");\n        }\n      }\n      else {\n\n        resultBitMask = 0;\n        for (role in accessLevelDeclarations[level]) {\n          if (userRoles.hasOwnProperty(accessLevelDeclarations[level][role])) {\n            resultBitMask = resultBitMask | userRoles[accessLevelDeclarations[level][role]].bitMask;\n          }\n          else {\n            console.log(\"Access Control Error: Could not find role '\" + accessLevelDeclarations[level][role] + \"' in registered roles while building access for '\" + level + \"'\");\n          }\n        }\n        accessLevels[level] = {\n          bitMask: resultBitMask,\n          title: accessLevelDeclarations[level][role]\n        };\n      }\n    }\n\n    return accessLevels;\n  }\n\n\n  exports.userRoles = buildRoles(config.roles);\n  exports.accessLevels = buildAccessLevels(config.accessLevels, exports.userRoles);\n\n})(typeof exports === 'undefined' ? this : exports);\n"
  },
  {
    "path": "student/example/login/test/karma.conf.js",
    "content": "// Karma configuration\n// http://karma-runner.github.io/0.12/config/configuration-file.html\nmodule.exports = function(config) {\n  config.set({\n    // enable / disable watching file and executing tests whenever any file changes\n    autoWatch: true,\n\n    // base path, that will be used to resolve files and exclude\n    basePath: '../',\n\n    // testing framework to use (jasmine/mocha/qunit/...)\n    frameworks: ['jasmine'],\n\n    // list of files / patterns to load in the browser\n    files: [\n      'libs/angular/angular.js',\n      'libs/angular-animate/angular-animate.js',\n      'libs/angular-mocks/angular-mocks.js',\n      'libs/angular-ui-router/release/angular-ui-router.js',\n      'src/**/*.js',\n      'test/spec/**/*.js'\n    ],\n\n    // list of files / patterns to exclude\n    exclude: [],\n\n    // web server port\n    port: 8080,\n\n    // Start these browsers, currently available:\n    // - Chrome\n    // - ChromeCanary\n    // - Firefox\n    // - Opera\n    // - Safari (only Mac)\n    // - PhantomJS\n    // - IE (only Windows)\n    browsers: [\n      'PhantomJS'\n    ],\n\n    // Which plugins to enable\n    plugins: [\n      'karma-phantomjs-launcher',\n      'karma-jasmine'\n    ],\n\n    // Continuous Integration mode\n    // if true, it capture browsers, run tests and exit\n    singleRun: false,\n\n    colors: true,\n\n    // level of logging\n    // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG\n    logLevel: config.LOG_INFO\n\n    // Uncomment the following lines if you are using grunt's server to run the tests\n    // proxies: {\n    //   '/': 'http://localhost:9000/'\n    // },\n    // URL root prevent conflicts with the site root\n    // urlRoot: '_karma_'\n  });\n};\n"
  },
  {
    "path": "student/example/login/test/spec/login-service.js",
    "content": "describe('Provider: login-service', function() {\n  'use strict';\n\n  var loginService;\n\n  beforeEach(module('loginService'));\n\n  // Initialize the controller and a mock scope\n  beforeEach(inject(function(_loginService_) {\n    loginService = _loginService_;\n  }));\n\n  describe('loginHandler', function() {\n    it('should create loginService.user with JSON from first argument', function() {\n      var user = {\n        foo: 'bar'\n      };\n\n      expect(loginService.user).toEqual({});\n      loginService.loginHandler(user);\n      expect(loginService.user).toEqual(user);\n    });\n\n    it('should extend loginService.user with JSON from subsequent calls', function() {\n      var user1 = {\n        foo: 'bar'\n      };\n      var user2 = {\n        'baz': 'qux'\n      };\n      var combined = {\n        'foo': 'bar',\n        'baz': 'qux'\n      };\n\n      expect(loginService.user).toEqual({});\n      loginService.loginHandler(user1);\n      expect(loginService.user).toEqual(user1);\n      loginService.loginHandler(user2);\n      expect(loginService.user).toEqual(combined);\n\n    });\n\n    it('should set the user as logged in when called', function() {\n      //TODO this is not secure!\n      var user = {\n        foo: 'bar'\n      };\n\n      expect(loginService.isLogged).toBeFalsy();\n      loginService.loginHandler(user);\n      expect(loginService.isLogged).toBeTruthy();\n\n    });\n\n    it('should set the user role when called', function() {\n      var user = {\n        userRole: userRoles.admin\n      };\n\n      expect(loginService.userRole).toEqual(userRoles.public);\n      loginService.loginHandler(user);\n      expect(loginService.userRole).toBe(user.userRole);\n\n    });\n\n    it('should set a token', function() {\n      var user = {\n        token: 'supersecret'\n      };\n\n      expect(localStorage.getItem('userToken')).toEqual(null);\n      loginService.loginHandler(user);\n      expect(localStorage.getItem('userToken')).toEqual(user.token);\n\n    });\n  });\n});\n"
  },
  {
    "path": "student/index.html",
    "content": "<!DOCTYPE html>\n<html ng-app=\"myApp\">\n\n  <head>\n    <title>First Angular App</title>\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\" />\n    <meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />\n<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n<meta http-equiv=\"Expires\" content=\"0\" />\n    <meta name=\"viewport\" content=\"user-scalable=no, width=device-width\" />\n    <script type=\"text/javascript\" src=\"app/lib/angular.min.js\"></script>\n    <script type=\"text/javascript\" src=\"app/lib/angular-route.js\"></script>\n    <script type=\"text/javascript\" src=\"app/app.js\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.6.3/css/all.css\">\n  \n    <link href=\"content/css/style.css\" rel=\"stylesheet\">\n    <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css\">\n\n    <!-- jQuery library -->\n    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\"></script>\n\n    <!-- Latest compiled JavaScript -->\n    <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js\"></script>\n\n    <script type=\"text/javascript\" src=\"controller/controller.js\"></script>\n\n     <link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.6.3/css/all.css\">\n  <!-- Bootstrap core CSS -->\n      <link href=\"content/mdb/css/bootstrap.min.css\" rel=\"stylesheet\">\n  <!-- Material Design Bootstrap -->\n      <link href=\"content/mdb/css/mdb.min.css\" rel=\"stylesheet\">\n  <!-- Your custom styles (optional) -->\n      <link href=\"content/mdb/css/style.css\" rel=\"stylesheet\">\n\n      <script type=\"text/javascript\" src=\"content/mdb/js/jquery-3.3.1.min.js\"></script>\n  <!-- Bootstrap tooltips -->\n      <script type=\"text/javascript\" src=\"content/mdb/js/popper.min.js\"></script>\n  <!-- Bootstrap core JavaScript -->\n  <script type=\"text/javascript\" src=\"content/mdb/js/bootstrap.min.js\"></script>\n  <!-- MDB core JavaScript -->\n  <script type=\"text/javascript\" src=\"content/mdb/js/mdb.js\"></script>\n\n    \n  </head>\n\n  <body>\n\n    <div style=\"background-color: #ECECEB\" ng-view></div>\n\n  </body>\n\n</html>"
  },
  {
    "path": "student/test.html",
    "content": "<!DOCTYPE html>\n<html>\n<script src=\"https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js\"></script>\n<body>\n\n<div ng-app=\"myApp\" ng-controller=\"customersCtrl\"> \n\n<ul>\n  <li ng-repeat=\"x in myData\">\n    {{ x.name + ', ' + x.nick }}\n  </li>\n</ul>\n\n</div>\n\n<script>\nvar app = angular.module('myApp', []);\nurl=\"http://localhost/project/youth/api.php?key=12345&type=student_info\";\napp.controller('customersCtrl', function($scope, $http) {\n  $http.get(url).then(function (response) {\n      $scope.myData = response.data.data;\n      console.log(response);\n  });\n});\n</script>\n\n</body>\n</html>\n"
  },
  {
    "path": "student/views/404.html",
    "content": "404 Not Found"
  },
  {
    "path": "student/views/batch_info.html",
    "content": "Batch Info"
  },
  {
    "path": "student/views/dashboard.html",
    "content": "<ng-include src=\"'views/header.html'\"></ng-include>\n\n<div class=\"container-fluid\">\n\t<div class=\"row\">\n\t\t<div class=\"col-md-2 col-sm-12\">\n\t\t\t<div class=\"row  left_panel_body\">\n\t\t\t\t<ng-include src=\"'views/side_bar.html'\"></ng-include>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"col-md-10 right_panel_body\">\n\t\t\t<div ng-show=\"loading\" class=\"loading\"><img src=\"...\">LOADING...</div>\n\t\t\t<ng-include src=\"getPartial()\"></ng-include>\n\t\t</div>\n\t\t<div class=\"col-md-12 footer\">Design And Developed By: TechSerm</div>\n\n\n\t</div>\n</div>"
  },
  {
    "path": "student/views/header.html",
    "content": "<div class=\"header_dashboard\">\n   TechSerm Education Soft\t\n</div>"
  },
  {
    "path": "student/views/home.html",
    "content": "\n<a href=\"#!/student_info\">Get Student Info</a><br/>\n<a href=\"#!/program_info\">Get Program</a><br/>\n<a href=\"#!/batch_info\">Get Batch Info</a>\n"
  },
  {
    "path": "student/views/login.html",
    "content": " \n\n <div class=\"row\">\n                <!-- Grid column -->\n                <div class=\"col-md-3\"></div>\n                <div class=\"col-md-6 mb-4\">\n                    <div class=\"card\">\n                        <div class=\"card-body\">\n                            <h3 class=\"text-center default-text py-3\"><i class=\"fa fa-lock\"></i> Login:</h3>\n                            <!--Body-->\n                            <div class=\"md-form\">\n                                <i class=\"fa fa-envelope prefix grey-text\"></i>\n                                <input type=\"text\" id=\"defaultForm-email\" ng-model=\"user_name\" class=\"form-control\">\n                                \n                            </div>\n                            <div class=\"md-form\">\n                                <i class=\"fa fa-lock prefix grey-text\"></i>\n                                <input type=\"password\" id=\"defaultForm-pass\" ng-model=\"pass\" class=\"form-control\">\n                                \n                            </div>\n                            <div class=\"text-center\">\n                                <button class=\"btn btn-default waves-effect waves-light\" ng-click=\"submit()\">Submit</button>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n</div>\n"
  },
  {
    "path": "student/views/program_info.html",
    "content": "Program Info"
  },
  {
    "path": "student/views/result.html",
    "content": "<select>\n\t<option value=\"\">Select Program</option>\n\t\n</select>"
  },
  {
    "path": "student/views/send_sms.html",
    "content": "sms page\n\n<div ng-if=\"sms_error==0\">\n\t{{sms.sms}}\n\t<br/>\n\t<input type=\"text\" id=\"mobile\" placeholder=\"Enter Your Mobile\" name=\"\"><br/>\n\t<textarea id=\"text\" placeholder=\"Enter Your SMS\"></textarea><br/>\n\t<button ng-click=\"send_sms()\">Send SMS</button>\n</div>\n\n<div ng-if=\"sms_error==1\">\n\tfailed send\n</div>"
  },
  {
    "path": "student/views/side_bar.html",
    "content": "<div class=\"col-md-12 col-sm-12 nopadding\" ng-repeat=\"x in units\">\n\t<div class=\"side_btn\" ng-click=\"get_login(x.function)\">\n\t\t<span class=\"glyphicon glyphicon-{{x.icon}} btn_span\" aria-hidden=\"true\"></span><br/>\n\t\t<span class=\"side_btn_name\">{{x.name}}</span>\n\t</div>\n</div>\n"
  },
  {
    "path": "student/views/student_info.html",
    "content": "<div ng-if=\"error==0\">\n\t\n\t{{student.id}}<br/>\n\t{{student.name}}<br/>\n\t{{student.nick}}<br/>\n\t{{student.email}}<br/>\n\t{{student.father_name}}<br/>\n   \n\n   \n</div>\n\n\n\n<div ng-if=\"error==1\">\n\tSorry Data Is Not Found\n</div>"
  },
  {
    "path": "student.php",
    "content": "<?php\n \t\tinclude \"layout/header.php\";\n \t\t$file=\"404.php\";\n \t\tif(isset($_GET['page'])){\n \t\t\t$page=$_GET['page'];\n \t\t\tif($page==\"student_list\")$file=\"page/student/student_list1.php\";\n \t\t\telse if($page==\"add_student\")$file=\"page/student/add_student.php\";\n \t\t\telse if($page==\"attendence\")$file=\"page/attend/attend.php\";\n \t\t}\n \t\tinclude \"$file\";\n \t\t//include \"page/student/student_list.php\";\n \t\tinclude \"layout/footer.php\";\n  ?>\n\n\n"
  },
  {
    "path": "student_action.php",
    "content": "<?php\n\ninclude \"layout/header_script.php\";\n\n\nfunction valid_input($val){\n  return !empty($val)?\"{$val}\": 0;\n}\n\nif(isset($_POST['test_data'])){\n  $info=$_POST;\n  unset($info['id']);\n  $info['id1']=1;\n  $data=json_encode($info);\n  echo \"$data\";\n}\n\nif(isset($_POST['insert_name'])){\n \n  $id=$student_ob->new_id();\n\t$info['id']=$id;\n\t$info['name']=$_POST['insert_name'];\n\t$info['nick']=$_POST['nick'];\n\t$info['father_name']=$_POST['father_name'];\n\t$info['mother_name']=$_POST['mother_name'];\n\t$info['personal_mobile']=$_POST['student_mobile'];\n\t$info['father_mobile']=$_POST['father_mobile'];\n\t$info['mother_mobile']=$_POST['mother_mobile'];\n\t$info['email']=$_POST['email'];\n\t$info['birth_day']=$_POST['birthday'];\n\t$info['gender']=$_POST['gender'];\n\t$info['religion']=$_POST['religion'];\n\t$info['address']=$_POST['address'];\n\n\t$info['school']=$_POST['school_name'];\n\t$info['ssc_rool']=valid_input($_POST['ssc_rool']);\n\t$info['ssc_reg']=valid_input($_POST['ssc_reg']);\n\t$info['ssc_board']=$_POST['ssc_board'];\n\t$info['ssc_result']=valid_input($_POST['ssc_result']);\n    \n  \n\t$info['date']=$db->date();\n\n//image option\n   $imagename=\"avatar.png\";\n\n   if(isset($_FILES['image'])){\n \n      $errors= array();\n      $file_name = $_FILES['image']['name'];\n      $file_size = $_FILES['image']['size'];\n      $file_tmp = $_FILES['image']['tmp_name'];\n      $file_type = $_FILES['image']['type'];\n      $f_type=$_FILES['image']['type'];\n      $file_ext=(explode('.',$file_name));\n      $file_ext=end($file_ext);\n      \n      $imagename=\"avatar.png\";\n      $expensions= array(\"jpeg\",\"jpg\",\"png\");\n      \n      if(in_array($file_ext,$expensions)== false){\n         $errors[]=\"extension not allowed, please choose a JPEG or PNG file.\";\n      }\n      \n      if($file_size > 2097152) {\n         $errors[]='File size must be excately 2 MB';\n      }\n      \n      if(empty($errors)==true) {\n         move_uploaded_file($file_tmp,\"upload/student_photo/\".$id.'.'.$file_ext);\n         $imagename=$id.'.'.$file_ext;\n      }else{\n         //print_r($errors);\n      }\n   }     \n  //end image option\n\n$info['photo']=$imagename;\n\n$data=json_encode($info);\n  echo \"$data\";\n$db->sql_action(\"student\",\"insert\",$info,\"no\");\n\t\n}\n\nelse if(isset($_POST['update'])){\n    \n  $info['id']=$_POST['student_id'];\n  $id=$info['id'];\n  $student_id=$_POST['student_id'];\n  $info['name']=$_POST['name'];\n  $info['nick']=$_POST['nick'];\n  $info['father_name']=$_POST['father_name'];\n  $info['mother_name']=$_POST['mother_name'];\n  $info['personal_mobile']=valid_input($_POST['student_mobile']);\n\n  $info['father_mobile']=valid_input($_POST['father_mobile']);\n  $info['mother_mobile']=valid_input($_POST['mother_mobile']);\n  $info['email']=$_POST['email'];\n  $info['birth_day']=$_POST['birthday'];\n  $info['gender']=$_POST['gender'];\n  $info['religion']=$_POST['religion'];\n  $info['address']=$_POST['address'];\n\n  $info['school']=$_POST['school_name'];\n  $info['ssc_rool']=valid_input($_POST['ssc_rool']);\n  $info['ssc_reg']=valid_input($_POST['ssc_reg']);\n  $info['ssc_board']=$_POST['ssc_board'];\n  $info['ssc_result']=valid_input($_POST['ssc_result']);\n\n\n//image option\n$flag=0;\n$imagename=$student[$student_id]['photo'];\n\n   if(isset($_FILES['image'])){\n \n      $errors= array();\n      $file_name = $_FILES['image']['name'];\n      $file_size = $_FILES['image']['size'];\n      $file_tmp = $_FILES['image']['tmp_name'];\n      $file_type = $_FILES['image']['type'];\n      $f_type=$_FILES['image']['type'];\n      $file_ext=(explode('.',$file_name));\n      $file_ext=end($file_ext);\n      \n      $imagename=$imagename;\n      $expensions= array(\"jpeg\",\"jpg\",\"png\",\"PNG\");\n      \n      if(in_array($file_ext,$expensions)== false){\n         $errors[]=\"extension not allowed, please choose a JPEG or PNG file.\";\n      }\n      \n      if($file_size > 5097152) {\n         $errors[]='File size must be excately 2 MB';\n      }\n      \n      if(empty($errors)==true) {\n         move_uploaded_file($file_tmp,\"upload/student_photo/\".$id.'.'.$file_ext);\n         $imagename=$id.'.'.$file_ext;\n         $flag=1;\n      }else{\n         //print_r($errors);\n      }\n   }     \n  //end image option\nif($flag==1){\n $info['photo']=$imagename;\n} \n\n\n//$site->myprint_r($info);\n\n  $db->sql_action(\"student\",\"update\",$info,\"no\");\n  echo \"<script>alert('Successfully Update Student Information!');</script><script>document.location='student_profile.php?get_id=$id'</script>\";\n\t\n}\n\nelse if(isset($_POST['delete'])){\n\n$student_id=$_POST['id'];\n$info['id']=$student_id;\n\n$payment_info=$payment->get_payment_info();\nforeach ($payment_info as $key => $value) {\n   $id=$value['id'];\n   $sid=$value['student_id'];\n   if($sid==$student_id){\n    $info['id']=$id;\n    $db->sql_action(\"payment\",\"delete\",$info,'no');\n   }\n}\n\nforeach ($result_info as $key => $value) {\n   $id=$value['id'];\n   $sid=$value['student_id'];\n   if($sid==$student_id){\n    $info['id']=$id;\n    $db->sql_action(\"result\",\"delete\",$info,'no');\n   }\n}\n$info['id']=$student_id;\n$db->sql_action(\"student\",\"delete\",$info,'yes');\n\n\n}\n\n?>"
  },
  {
    "path": "student_add_ajax.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\n\nif(isset($_POST['select_program'])){\n\t$id=$_POST['select_program'];\n\t $program_ob->select_batch_option($id); \n}\nif(isset($_POST['total_pament'])){\n\t$id=$_POST['total_pament'];\n\tif($id!=0){$total=$program[$id]['fee'];\n\techo \"$total\";\n      }\n      else{\n      \techo \"\";\n      }\n\n}\n\n\nif(isset($_POST['attend'])){\n\t$id=$_POST['attend'];\n\t$currentDateTime = date('Y-m-d H:i:s', time() - 6*3600);\n    $newDateTime = date('h:i A', strtotime($currentDateTime));\n    $date=date('Y-m-d');\n\t$flag=0;\n\tforeach ($student as $key => $value) {\n\t\t$id1=$value['id'];\n\t\t$name=$value['name'];\n\t\t$nick=$value['nick'];\n\t\t$to=$value['personal_mobile'];\n\t\tif($id==$id1){\n         $msg=\"Hello \".$name.\" Gurdians.\\n\\nToday Is \".$date.\".\\n\";\n         $msg.=$nick.\" Comes Today Coaching at \".$newDateTime.\".\\n\\n\";\n         $msg.=\"\\n\\nYouth Admission Care\\nArambag,Dhaka\"; \n        $sms->send_sms($to,$msg);\n\t\t\t$flag=1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif($flag==1)echo \"<font color='green'>Sucessfully Attendends</font>\";\n\telse echo \"<font color='red'>Sorry Student is Not Found</font>\";\n}\n\nif(isset($_POST['edit_student']))\n{\n   $id=$_POST['edit_student'];\n   $info=$student[$id];\n   $name=$info['name'];\n     ?>\n\n\n \n     <div class=\"row\">\n      <div class=\"col-xs-12 col-sm-12\"> \n <div class=\"box\" >\n\n<div class=\"box_header\">\n        <div class=\"panel-title\">Personal Information</div>                   \n</div>     \n\n<div style=\"padding-top:30px\" class=\"box_body\" >\n    <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\"></div>\n    <form action=\"student_action.php\" method=\"post\" enctype=\"multipart/form-data\">\n      \n      <?php\n\n      //$site->form_input($level,$name,$id,$type=\"text\",$icon=\"exclamation-sign\",$value=\"\",$ex=\"\",$req=\"yes\")\n      \n\n      $site->form_input(\"Student Full Name\",\"name\",\"name\");\n      $site->form_input(\"Student Nick Name\",\"nick\",\"nick\");\n      $site->form_input(\"Father Name\",\"father_name\",\"father_name\");\n      $site->form_input(\"Mother Name\",\"mother_name\",\"mother_name\");\n      $site->form_input(\"Sudent mobile\",\"student_mobile\",\"student_mobile\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n\n      $site->form_input(\"Father mobile\",\"father_mobile\",\"number\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n\n      $site->form_input(\"Mother mobile\",\"mother_mobile\",\"mobile\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n\n      $site->form_input(\"Email\",\"email\",\"mobile\",\"text\",\"exclamation-sign\",\"$name\",\"\",\"no\");\n      $site->form_input(\"Birthday\",\"birthday\",\"mobile\",\"date\",\"exclamation-sign\",\"\",\"\",\"yes\");\n\n      ?>\n\n\n<div class='form-group'>\n        <label class='control-label' for='inputName'><b>Religion</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n<select class='form-control'  name='religion' id='brand_add' class='cs-select cs-skin-border' required=\"\">\n\n  <option value=\"Muslim\">Muslim</option>\n  <option value=\"Hindu\">Hindu</option>\n  <option value=\"Buddo\">Buddo</option>\n  <option value=\"Cristan\">Cristan</option>\n</select>\n</div></div>\n\n<div class='form-group'>\n        <label class='control-label' for='inputName'><b>Gender</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n<select class='form-control'  name='gender' id='brand_add' class='cs-select cs-skin-border' required=\"\">\n  <option value=\"Male\">Male</option>\n  <option value=\"Female\">Female</option>\n  \n</select>\n</div></div>\n\n\n      <?php\n      \n      $site->form_input(\"Address\",\"address\",\"address\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n\n       ?>   \n  <div class=\"form-group\">\n    <label class=\"control-label\" for=\"inputName\"><b>Upload Student Photo</b></label>\n    <div class=\"input-group\">\n      <span class=\"input-group-addon\"><i class=\"glyphicon glyphicon-camera\"></i></span>\n      <input type=\"file\" class=\"form-control\" id=\"image\" name=\"image\" accept=\"image/*\"  onchange=\"loadFile(event)\" />\n        <br/>\n    </div>\n    <div id=\"err_product_image\" class=\"error\"></div>\n  <img id=\"add_thumbnil1\" style=\"width:20%; margin-top:10px;\"  src=\"<?php echo \"upload/student_photo/avatar.png\";?>\" alt=\"image\"/>\n</div> \n\n\n\n         \n</div>  \n\n<!-- Start Academic Information -->\n\n<div class=\"box_header\">\n        <div class=\"panel-title\">Academic Information</div>                   \n    </div>     \n\n<div style=\"padding-top:30px\" class=\"box_body\" >\n    <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\"></div>\n                                 \n        \n       <?php \n\n    $site->form_input(\"School Name\",\"school_name\",\"school_name\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n    $site->form_input(\"SSC Rool Number\",\"ssc_rool\",\"ssc_rool\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n    $site->form_input(\"SSC Registration Number\",\"ssc_reg\",\"ssc_reg\",\"number\",\"exclamation-sign\",\"\",\"\",\"no\");\n    $site->form_input(\"SSC Board Name\",\"ssc_board\",\"ssc_board\",\"text\",\"exclamation-sign\",\"\",\"\",\"no\");\n    \n  ?>\n<div class='form-group'>\n        <label class='control-label' for='inputName'><b>SSC Result</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span>     \n            <input class='form-control' data-error='' id='ssc_result' value='' step=\"0.01\" placeholder='Enter SSC Result'  type='number' name='ssc_result'  />\n        </div>  \n        <div id='err_product_date' class='error'></div>\n</div>\n           \n</div>  \n\n<!-- End Academic Information -->\n\n<!-- Start Academic Information -->\n\n<div class=\"box_header\">\n        <div class=\"panel-title\">Admission</div>                   \n    </div>     \n\n<div style=\"padding-top:30px\" class=\"box_body\" >\n    <div style=\"display:none\" id=\"login-alert\" class=\"alert alert-danger col-sm-12\"></div>\n                                 \n<div class='form-group'>\n  <label class='control-label' for='inputName'><b>Select Program</b></label>\n  <div class='input-group'>\n  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n\n<select class='form-control'  name='program' id='program' class='cs-select cs-skin-border' onchange=\"select_program()\"  required=\"\">\n  <option value=\"0\">Select Program</option>\n  <?php $program_ob->select_program(); ?>\n</select>\n</div></div>\n\n\n<div class='form-group'>\n  <label class='control-label' for='inputName'><b>Select Batch</b></label>\n  <div class='input-group'>\n  <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span> \n\n<select class='form-control'  name='batch' id='batch' class='cs-select cs-skin-border' required=\"\">\n  <div id=\"batch_field\">\n  \n  </div>\n</select>\n\n</div>\n</div>\n  <div class='form-group'>\n        <label class='control-label' for='inputName'><b>Total Payment</b></label>\n        <div class='input-group'>\n            <span class='input-group-addon'><i class='glyphicon glyphicon-exclamation-sign'></i></span>     \n            <input class='form-control' data-error='Please enter name field.' id='total' value='' onchange=\"cal_advanced()\" placeholder='Total Payment'  type='text' name='total'  />\n        </div>  \n        <div id='err_product_date' class='error'></div>\n</div>\n          \n</div>  \n\n<!-- End Academic Information -->\n\n\n\n       <button class=\"box_btn\" name=\"insert\" type=\"submit\" style=\"\"><span class=\"glyphicon glyphicon-floppy-save\"></span> Save Information</button>                  \n    \n</form>\n\n<!-- end body -->\n        </div>\n</div>\n</div>\n<?php\n}\n\n\n\n?>"
  },
  {
    "path": "student_list.php",
    "content": "<?php\n \t\tinclude \"layout/header.php\";\n \t\tinclude \"page/student/student_list1.php\";\n \t\t//include \"page/student/student_list.php\";\n \t\tinclude \"layout/footer.php\";\n  ?>\n\n\n"
  },
  {
    "path": "student_list_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\ninclude \"page_action/student_list/student_list.php\";\n\n?>"
  },
  {
    "path": "student_profile.php",
    "content": "<?php\n\ninclude 'layout/header.php';\ninclude 'page/student/student_profile_panel.php';\ninclude 'layout/footer.php';\n\n\n?>\n\n"
  },
  {
    "path": "student_profile_action.php",
    "content": "\n\n<?php \n\n\ninclude 'layout/header_script.php';\ninclude 'page_action/student_profile/payment.php'; \ninclude 'page_action/student_profile/program.php'; \ninclude 'page_action/student_profile/info.php'; \n\n?>"
  },
  {
    "path": "style/css/id_card.css",
    "content": ".id_card{\n\n}\n"
  },
  {
    "path": "style/css/nav_bar.css",
    "content": ".navbar-right:hover{\n  background-color: rgba(0,0,0,0.3)!important;\n  outline: 0 !important;\n}\n.dropdown-toggle{\n  background-color: rgba(0,0,0.1,0.1)!important;\n  color: var(--font-color)!important;\n  padding: 12px;\n  border-radius: 15px;\n  margin-left: 5px;\n  border: 1px solid rgba(0,0,0.1,0.1);\n  font-size: 15px;\n  font-family: \"Trebuchet MS\", Helvetica, sans-serif;\n}\n.dropdown-toggle:hover{\n  background-color: rgba(0,0,0,0.3)!important;\n  outline: 0 !important;\n}\n.dropdown-toggle:focus{\n    outline: 0 !important;\n    background-color: rgba(0,0,0,0.3)!important;\n}\n\n.navbar_right_custom:hover{\n  background-color:none!important;\n  outline: 0 !important;\n\n}\n.navbar_right_custom:focus{\n    outline: 0 !important;\n    background-color: rgba(0,0,0,0.3)!important;\n}\n.dropdown:hover{\n  background: none;\n  outline: 0 !important;\n  border-radius: 15px;\n  \n}\n.dropdown:focus{\n    outline: 0 !important;\n    background-color: rgba(0,0,0,0.3)!important;\n    border-radius: 15px;\n}\n\n\n  .dropdown-menu{\n    \n    width: auto !important;\n    padding: 20px !important;\n    border-radius: 10px !important;\n\n  }\n  \n\n.profile_nav{\n    background-color: var(--bg-color);\n    color: var(--font-color);\n    border: 1px solid;\n    max-height: 45px;\n    overflow: hidden;\n    max-width: 100px;\n    border-color: var(--font-color); \n    padding: 13px;\n    border-radius: 7%;\n    margin-right: 5px;\n    width: 100px;\n    box-shadow: 2px 3px var(--font-color);\n  }\n.btn_nav_toggle{\n  background-color: rgba(0,0,0.1,0.1);\n  color: var(--font-color);\n  width: 55px;\n  height: 47px;\n  border-radius: 120px;\n  margin-left: 5px;\n  border: 1px solid rgba(0,0,0.1,0.1);\n  font-size: 30px;\n  font-family: \"Trebuchet MS\", Helvetica, sans-serif;\n}\n\n.btn_nav_toggle:hover{\n  background-color: rgba(0,0,0,0.3);\n}\n.btn_nav_toggle:focus{\n    outline: 0 !important;\n    background-color: rgba(0,0,0,0.3);\n}\n\n\n\n.btn_tab{\n  background-color: rgba(0,0,0.1,0.1);\n  color: var(--font-color);\n  padding: 12px;\n  border-radius: 15px;\n  margin-left: 5px;\n  border: 1px solid rgba(0,0,0.1,0.1);\n  font-size: 15px;\n  font-family: \"Trebuchet MS\", Helvetica, sans-serif;\n}\n.btn_tab:hover{\n   background-color: rgba(0,0,0,0.3);\n}\n.btn_tab:focus {\n    outline: 0 !important;\n    background-color: rgba(0,0,0,0.3);\n}\n.btn_toggle:focus {\n    outline: 0 !important;\n}\n\n.logo_title{\n  font-family: Verdana, Geneva, sans-serif ;\n}\n.mainbody {\n    background:#f0f0f0;\n}\n/* Special class on .container surrounding .navbar, used for positioning it into place. */\n.navbar-wrapper {\n  position: fixed;\n  top: 0;\n  left: 0;\n  right: 0;\n  z-index: 20;\n  margin-left: -15px;\n  margin-right: -15px;\n}\n\n.navbar_button{\n  padding: 10px !important;\n  border-radius: 100%;\n  padding-left: 15px;\n  padding-right: 15px;\n  margin-right: 10px;\n  border-width: 0px;\n}\n\n.navbar_button:hover{\n  padding: 10px !important;\n  border-width: 0px;\n}\n.navbar_button:active{\n  padding: 10px !important;\n  border-width: 0px;\n}\n\n/* Flip around the padding for proper display in narrow viewports */\n.navbar-wrapper .container {\n  padding-left: 0;\n  padding-right: 0;\n}\n.navbar-wrapper .navbar {\n  padding-left: 15px;\n  padding-right: 15px;\n}\n\n.navbar-content\n{\n    width:320px;\n    padding: 15px;\n    padding-bottom:0px;\n}\n.navbar-content:before, .navbar-content:after\n{\n    display: table;\n    content: \"\";\n    line-height: 0;\n}\n.navbar-nav.navbar-right:last-child {\n    margin-right: 15px !important;\n}\n.navbar-footer \n{\n    background-color:#DDD;\n}\n.navbar-footer-content { padding:15px 15px 15px 15px; }\n.dropdown-menu {\npadding: 0px;\noverflow: hidden;\n}\n\n.brand_network {\n    color: #9D9D9D;\n    float: left;\n    position: absolute;\n    left: 70px;\n    top: 30px;\n    font-size: smaller;\n}\n\n.post-content {\n    margin-left:58px;\n}\n\n.badge-important {\n    margin-top: 3px;\n    margin-left: 25px;\n    position: absolute;\n}\n"
  },
  {
    "path": "style/css/table.css",
    "content": ".table_class{\n\twidth: 100%;\n}\n\n.tr1_class{\n\n}\n\n.tr2_class{\n\n}\n\n.td1_class{\n\n}\n\n.td2_class{\n\n}"
  },
  {
    "path": "style/images/blog/images.txt",
    "content": "Images from: http://www.sxc.hu/"
  },
  {
    "path": "style/images/faces/images.txt",
    "content": "Images from: http://www.sxc.hu/"
  },
  {
    "path": "style/images/gallery/images.txt",
    "content": "Images from: http://www.sxc.hu/"
  },
  {
    "path": "style/images/loading-icons/images.txt",
    "content": "Images from: http://www.ajaxload.info/"
  },
  {
    "path": "style/lib/bootstrap/css/bootstrap-theme.css",
    "content": "/*!\n * Bootstrap v3.1.1 (http://getbootstrap.com)\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n.btn-default,\n.btn-primary,\n.btn-success,\n.btn-info,\n.btn-warning,\n.btn-danger {\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);\n  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);\n          box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);\n}\n.btn-default:active,\n.btn-primary:active,\n.btn-success:active,\n.btn-info:active,\n.btn-warning:active,\n.btn-danger:active,\n.btn-default.active,\n.btn-primary.active,\n.btn-success.active,\n.btn-info.active,\n.btn-warning.active,\n.btn-danger.active {\n  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n          box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n}\n.btn:active,\n.btn.active {\n  background-image: none;\n}\n.btn-default {\n  text-shadow: 0 1px 0 #fff;\n  background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);\n  background-image:         linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n  background-repeat: repeat-x;\n  border-color: #dbdbdb;\n  border-color: #ccc;\n}\n.btn-default:hover,\n.btn-default:focus {\n  background-color: #e0e0e0;\n  background-position: 0 -15px;\n}\n.btn-default:active,\n.btn-default.active {\n  background-color: #e0e0e0;\n  border-color: #dbdbdb;\n}\n.btn-primary {\n  background-image: -webkit-linear-gradient(top, #428bca 0%, #2d6ca2 100%);\n  background-image:         linear-gradient(to bottom, #428bca 0%, #2d6ca2 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff2d6ca2', GradientType=0);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n  background-repeat: repeat-x;\n  border-color: #2b669a;\n}\n.btn-primary:hover,\n.btn-primary:focus {\n  background-color: #2d6ca2;\n  background-position: 0 -15px;\n}\n.btn-primary:active,\n.btn-primary.active {\n  background-color: #2d6ca2;\n  border-color: #2b669a;\n}\n.btn-success {\n  background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);\n  background-image:         linear-gradient(to bottom, #5cb85c 0%, #419641 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n  background-repeat: repeat-x;\n  border-color: #3e8f3e;\n}\n.btn-success:hover,\n.btn-success:focus {\n  background-color: #419641;\n  background-position: 0 -15px;\n}\n.btn-success:active,\n.btn-success.active {\n  background-color: #419641;\n  border-color: #3e8f3e;\n}\n.btn-info {\n  background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);\n  background-image:         linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n  background-repeat: repeat-x;\n  border-color: #28a4c9;\n}\n.btn-info:hover,\n.btn-info:focus {\n  background-color: #2aabd2;\n  background-position: 0 -15px;\n}\n.btn-info:active,\n.btn-info.active {\n  background-color: #2aabd2;\n  border-color: #28a4c9;\n}\n.btn-warning {\n  background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);\n  background-image:         linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n  background-repeat: repeat-x;\n  border-color: #e38d13;\n}\n.btn-warning:hover,\n.btn-warning:focus {\n  background-color: #eb9316;\n  background-position: 0 -15px;\n}\n.btn-warning:active,\n.btn-warning.active {\n  background-color: #eb9316;\n  border-color: #e38d13;\n}\n.btn-danger {\n  background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);\n  background-image:         linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n  background-repeat: repeat-x;\n  border-color: #b92c28;\n}\n.btn-danger:hover,\n.btn-danger:focus {\n  background-color: #c12e2a;\n  background-position: 0 -15px;\n}\n.btn-danger:active,\n.btn-danger.active {\n  background-color: #c12e2a;\n  border-color: #b92c28;\n}\n.thumbnail,\n.img-thumbnail {\n  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);\n          box-shadow: 0 1px 2px rgba(0, 0, 0, .075);\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n  background-color: #e8e8e8;\n  background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n  background-image:         linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);\n  background-repeat: repeat-x;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n  background-color: #357ebd;\n  background-image: -webkit-linear-gradient(top, #428bca 0%, #357ebd 100%);\n  background-image:         linear-gradient(to bottom, #428bca 0%, #357ebd 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);\n  background-repeat: repeat-x;\n}\n.navbar-default {\n  background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%);\n  background-image:         linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n  background-repeat: repeat-x;\n  border-radius: 4px;\n  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);\n          box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);\n}\n.navbar-default .navbar-nav > .active > a {\n  background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f3f3f3 100%);\n  background-image:         linear-gradient(to bottom, #ebebeb 0%, #f3f3f3 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff3f3f3', GradientType=0);\n  background-repeat: repeat-x;\n  -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);\n          box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);\n}\n.navbar-brand,\n.navbar-nav > li > a {\n  text-shadow: 0 1px 0 rgba(255, 255, 255, .25);\n}\n.navbar-inverse {\n  background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);\n  background-image:         linear-gradient(to bottom, #3c3c3c 0%, #222 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n  background-repeat: repeat-x;\n}\n.navbar-inverse .navbar-nav > .active > a {\n  background-image: -webkit-linear-gradient(top, #222 0%, #282828 100%);\n  background-image:         linear-gradient(to bottom, #222 0%, #282828 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff282828', GradientType=0);\n  background-repeat: repeat-x;\n  -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);\n          box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);\n}\n.navbar-inverse .navbar-brand,\n.navbar-inverse .navbar-nav > li > a {\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);\n}\n.navbar-static-top,\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n  border-radius: 0;\n}\n.alert {\n  text-shadow: 0 1px 0 rgba(255, 255, 255, .2);\n  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);\n          box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);\n}\n.alert-success {\n  background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);\n  background-image:         linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);\n  background-repeat: repeat-x;\n  border-color: #b2dba1;\n}\n.alert-info {\n  background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);\n  background-image:         linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);\n  background-repeat: repeat-x;\n  border-color: #9acfea;\n}\n.alert-warning {\n  background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);\n  background-image:         linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);\n  background-repeat: repeat-x;\n  border-color: #f5e79e;\n}\n.alert-danger {\n  background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);\n  background-image:         linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);\n  background-repeat: repeat-x;\n  border-color: #dca7a7;\n}\n.progress {\n  background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);\n  background-image:         linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);\n  background-repeat: repeat-x;\n}\n.progress-bar {\n  background-image: -webkit-linear-gradient(top, #428bca 0%, #3071a9 100%);\n  background-image:         linear-gradient(to bottom, #428bca 0%, #3071a9 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0);\n  background-repeat: repeat-x;\n}\n.progress-bar-success {\n  background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);\n  background-image:         linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);\n  background-repeat: repeat-x;\n}\n.progress-bar-info {\n  background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);\n  background-image:         linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);\n  background-repeat: repeat-x;\n}\n.progress-bar-warning {\n  background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);\n  background-image:         linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);\n  background-repeat: repeat-x;\n}\n.progress-bar-danger {\n  background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);\n  background-image:         linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);\n  background-repeat: repeat-x;\n}\n.list-group {\n  border-radius: 4px;\n  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);\n          box-shadow: 0 1px 2px rgba(0, 0, 0, .075);\n}\n.list-group-item.active,\n.list-group-item.active:hover,\n.list-group-item.active:focus {\n  text-shadow: 0 -1px 0 #3071a9;\n  background-image: -webkit-linear-gradient(top, #428bca 0%, #3278b3 100%);\n  background-image:         linear-gradient(to bottom, #428bca 0%, #3278b3 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0);\n  background-repeat: repeat-x;\n  border-color: #3278b3;\n}\n.panel {\n  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);\n          box-shadow: 0 1px 2px rgba(0, 0, 0, .05);\n}\n.panel-default > .panel-heading {\n  background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);\n  background-image:         linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);\n  background-repeat: repeat-x;\n}\n.panel-primary > .panel-heading {\n  background-image: -webkit-linear-gradient(top, #428bca 0%, #357ebd 100%);\n  background-image:         linear-gradient(to bottom, #428bca 0%, #357ebd 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);\n  background-repeat: repeat-x;\n}\n.panel-success > .panel-heading {\n  background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);\n  background-image:         linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);\n  background-repeat: repeat-x;\n}\n.panel-info > .panel-heading {\n  background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);\n  background-image:         linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);\n  background-repeat: repeat-x;\n}\n.panel-warning > .panel-heading {\n  background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);\n  background-image:         linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);\n  background-repeat: repeat-x;\n}\n.panel-danger > .panel-heading {\n  background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);\n  background-image:         linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);\n  background-repeat: repeat-x;\n}\n.well {\n  background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);\n  background-image:         linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);\n  background-repeat: repeat-x;\n  border-color: #dcdcdc;\n  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);\n          box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);\n}\n/*# sourceMappingURL=bootstrap-theme.css.map */\n"
  },
  {
    "path": "style/lib/bootstrap/css/bootstrap.css",
    "content": "/*!\n * Bootstrap v3.1.1 (http://getbootstrap.com)\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n/*! normalize.css v3.0.0 | MIT License | git.io/normalize */\nhtml {\n  font-family: sans-serif;\n  -webkit-text-size-adjust: 100%;\n      -ms-text-size-adjust: 100%;\n}\nbody {\n  margin: 0;\n}\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection,\nsummary {\n  display: block;\n}\naudio,\ncanvas,\nprogress,\nvideo {\n  display: inline-block;\n  vertical-align: baseline;\n}\naudio:not([controls]) {\n  display: none;\n  height: 0;\n}\n[hidden],\ntemplate {\n  display: none;\n}\na {\n  background: transparent;\n}\na:active,\na:hover {\n  outline: 0;\n}\nabbr[title] {\n  border-bottom: 1px dotted;\n}\nb,\nstrong {\n  font-weight: bold;\n}\ndfn {\n  font-style: italic;\n}\nh1 {\n  margin: .67em 0;\n  font-size: 2em;\n}\nmark {\n  color: #000;\n  background: #ff0;\n}\nsmall {\n  font-size: 80%;\n}\nsub,\nsup {\n  position: relative;\n  font-size: 75%;\n  line-height: 0;\n  vertical-align: baseline;\n}\nsup {\n  top: -.5em;\n}\nsub {\n  bottom: -.25em;\n}\nimg {\n  border: 0;\n}\nsvg:not(:root) {\n  overflow: hidden;\n}\nfigure {\n  margin: 1em 40px;\n}\nhr {\n  height: 0;\n  -moz-box-sizing: content-box;\n       box-sizing: content-box;\n}\npre {\n  overflow: auto;\n}\ncode,\nkbd,\npre,\nsamp {\n  font-family: monospace, monospace;\n  font-size: 1em;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n  margin: 0;\n  font: inherit;\n  color: inherit;\n}\nbutton {\n  overflow: visible;\n}\nbutton,\nselect {\n  text-transform: none;\n}\nbutton,\nhtml input[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n  -webkit-appearance: button;\n  cursor: pointer;\n}\nbutton[disabled],\nhtml input[disabled] {\n  cursor: default;\n}\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n  padding: 0;\n  border: 0;\n}\ninput {\n  line-height: normal;\n}\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n  box-sizing: border-box;\n  padding: 0;\n}\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n  height: auto;\n}\ninput[type=\"search\"] {\n  -webkit-box-sizing: content-box;\n     -moz-box-sizing: content-box;\n          box-sizing: content-box;\n  -webkit-appearance: textfield;\n}\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\nfieldset {\n  padding: .35em .625em .75em;\n  margin: 0 2px;\n  border: 1px solid #c0c0c0;\n}\nlegend {\n  padding: 0;\n  border: 0;\n}\ntextarea {\n  overflow: auto;\n}\noptgroup {\n  font-weight: bold;\n}\ntable {\n  border-spacing: 0;\n  border-collapse: collapse;\n}\ntd,\nth {\n  padding: 0;\n}\n@media print {\n  * {\n    color: #000 !important;\n    text-shadow: none !important;\n    background: transparent !important;\n    box-shadow: none !important;\n  }\n  a,\n  a:visited {\n    text-decoration: underline;\n  }\n  a[href]:after {\n    content: \" (\" attr(href) \")\";\n  }\n  abbr[title]:after {\n    content: \" (\" attr(title) \")\";\n  }\n  a[href^=\"javascript:\"]:after,\n  a[href^=\"#\"]:after {\n    content: \"\";\n  }\n  pre,\n  blockquote {\n    border: 1px solid #999;\n\n    page-break-inside: avoid;\n  }\n  thead {\n    display: table-header-group;\n  }\n  tr,\n  img {\n    page-break-inside: avoid;\n  }\n  img {\n    max-width: 100% !important;\n  }\n  p,\n  h2,\n  h3 {\n    orphans: 3;\n    widows: 3;\n  }\n  h2,\n  h3 {\n    page-break-after: avoid;\n  }\n  select {\n    background: #fff !important;\n  }\n  .navbar {\n    display: none;\n  }\n  .table td,\n  .table th {\n    background-color: #fff !important;\n  }\n  .btn > .caret,\n  .dropup > .btn > .caret {\n    border-top-color: #000 !important;\n  }\n  .label {\n    border: 1px solid #000;\n  }\n  .table {\n    border-collapse: collapse !important;\n  }\n  .table-bordered th,\n  .table-bordered td {\n    border: 1px solid #ddd !important;\n  }\n}\n* {\n  -webkit-box-sizing: border-box;\n     -moz-box-sizing: border-box;\n          box-sizing: border-box;\n}\n*:before,\n*:after {\n  -webkit-box-sizing: border-box;\n     -moz-box-sizing: border-box;\n          box-sizing: border-box;\n}\nhtml {\n  font-size: 62.5%;\n\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\nbody {\n  font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n  font-size: 14px;\n  line-height: 1.42857143;\n  color: #333;\n  background-color: #fff;\n}\ninput,\nbutton,\nselect,\ntextarea {\n  font-family: inherit;\n  font-size: inherit;\n  line-height: inherit;\n}\na {\n  color: #428bca;\n  text-decoration: none;\n}\na:hover,\na:focus {\n  color: #2a6496;\n  text-decoration: underline;\n}\na:focus {\n  outline: thin dotted;\n  outline: 5px auto -webkit-focus-ring-color;\n  outline-offset: -2px;\n}\nfigure {\n  margin: 0;\n}\nimg {\n  vertical-align: middle;\n}\n.img-responsive,\n.thumbnail > img,\n.thumbnail a > img,\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n  display: block;\n  max-width: 100%;\n  height: auto;\n}\n.img-rounded {\n  border-radius: 6px;\n}\n.img-thumbnail {\n  display: inline-block;\n  max-width: 100%;\n  height: auto;\n  padding: 4px;\n  line-height: 1.42857143;\n  background-color: #fff;\n  border: 1px solid #ddd;\n  border-radius: 4px;\n  -webkit-transition: all .2s ease-in-out;\n          transition: all .2s ease-in-out;\n}\n.img-circle {\n  border-radius: 50%;\n}\nhr {\n  margin-top: 20px;\n  margin-bottom: 20px;\n  border: 0;\n  border-top: 1px solid #eee;\n}\n.sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  border: 0;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n  font-family: inherit;\n  font-weight: 500;\n  line-height: 1.1;\n  color: inherit;\n}\nh1 small,\nh2 small,\nh3 small,\nh4 small,\nh5 small,\nh6 small,\n.h1 small,\n.h2 small,\n.h3 small,\n.h4 small,\n.h5 small,\n.h6 small,\nh1 .small,\nh2 .small,\nh3 .small,\nh4 .small,\nh5 .small,\nh6 .small,\n.h1 .small,\n.h2 .small,\n.h3 .small,\n.h4 .small,\n.h5 .small,\n.h6 .small {\n  font-weight: normal;\n  line-height: 1;\n  color: #999;\n}\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n  margin-top: 20px;\n  margin-bottom: 10px;\n}\nh1 small,\n.h1 small,\nh2 small,\n.h2 small,\nh3 small,\n.h3 small,\nh1 .small,\n.h1 .small,\nh2 .small,\n.h2 .small,\nh3 .small,\n.h3 .small {\n  font-size: 65%;\n}\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n  margin-top: 10px;\n  margin-bottom: 10px;\n}\nh4 small,\n.h4 small,\nh5 small,\n.h5 small,\nh6 small,\n.h6 small,\nh4 .small,\n.h4 .small,\nh5 .small,\n.h5 .small,\nh6 .small,\n.h6 .small {\n  font-size: 75%;\n}\nh1,\n.h1 {\n  font-size: 36px;\n}\nh2,\n.h2 {\n  font-size: 30px;\n}\nh3,\n.h3 {\n  font-size: 24px;\n}\nh4,\n.h4 {\n  font-size: 18px;\n}\nh5,\n.h5 {\n  font-size: 14px;\n}\nh6,\n.h6 {\n  font-size: 12px;\n}\np {\n  margin: 0 0 10px;\n}\n.lead {\n  margin-bottom: 20px;\n  font-size: 16px;\n  font-weight: 200;\n  line-height: 1.4;\n}\n@media (min-width: 768px) {\n  .lead {\n    font-size: 21px;\n  }\n}\nsmall,\n.small {\n  font-size: 85%;\n}\ncite {\n  font-style: normal;\n}\n.text-left {\n  text-align: left;\n}\n.text-right {\n  text-align: right;\n}\n.text-center {\n  text-align: center;\n}\n.text-justify {\n  text-align: justify;\n}\n.text-muted {\n  color: #999;\n}\n.text-primary {\n  color: #428bca;\n}\na.text-primary:hover {\n  color: #3071a9;\n}\n.text-success {\n  color: #3c763d;\n}\na.text-success:hover {\n  color: #2b542c;\n}\n.text-info {\n  color: #31708f;\n}\na.text-info:hover {\n  color: #245269;\n}\n.text-warning {\n  color: #8a6d3b;\n}\na.text-warning:hover {\n  color: #66512c;\n}\n.text-danger {\n  color: #a94442;\n}\na.text-danger:hover {\n  color: #843534;\n}\n.bg-primary {\n  color: #fff;\n  background-color: #428bca;\n}\na.bg-primary:hover {\n  background-color: #3071a9;\n}\n.bg-success {\n  background-color: #dff0d8;\n}\na.bg-success:hover {\n  background-color: #c1e2b3;\n}\n.bg-info {\n  background-color: #d9edf7;\n}\na.bg-info:hover {\n  background-color: #afd9ee;\n}\n.bg-warning {\n  background-color: #fcf8e3;\n}\na.bg-warning:hover {\n  background-color: #f7ecb5;\n}\n.bg-danger {\n  background-color: #f2dede;\n}\na.bg-danger:hover {\n  background-color: #e4b9b9;\n}\n.page-header {\n  padding-bottom: 9px;\n  margin: 40px 0 20px;\n  border-bottom: 1px solid #eee;\n}\nul,\nol {\n  margin-top: 0;\n  margin-bottom: 10px;\n}\nul ul,\nol ul,\nul ol,\nol ol {\n  margin-bottom: 0;\n}\n.list-unstyled {\n  padding-left: 0;\n  list-style: none;\n}\n.list-inline {\n  padding-left: 0;\n  margin-left: -5px;\n  list-style: none;\n}\n.list-inline > li {\n  display: inline-block;\n  padding-right: 5px;\n  padding-left: 5px;\n}\ndl {\n  margin-top: 0;\n  margin-bottom: 20px;\n}\ndt,\ndd {\n  line-height: 1.42857143;\n}\ndt {\n  font-weight: bold;\n}\ndd {\n  margin-left: 0;\n}\n@media (min-width: 768px) {\n  .dl-horizontal dt {\n    float: left;\n    width: 160px;\n    overflow: hidden;\n    clear: left;\n    text-align: right;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n  }\n  .dl-horizontal dd {\n    margin-left: 180px;\n  }\n}\nabbr[title],\nabbr[data-original-title] {\n  cursor: help;\n  border-bottom: 1px dotted #999;\n}\n.initialism {\n  font-size: 90%;\n  text-transform: uppercase;\n}\nblockquote {\n  padding: 10px 20px;\n  margin: 0 0 20px;\n  font-size: 17.5px;\n  border-left: 5px solid #eee;\n}\nblockquote p:last-child,\nblockquote ul:last-child,\nblockquote ol:last-child {\n  margin-bottom: 0;\n}\nblockquote footer,\nblockquote small,\nblockquote .small {\n  display: block;\n  font-size: 80%;\n  line-height: 1.42857143;\n  color: #999;\n}\nblockquote footer:before,\nblockquote small:before,\nblockquote .small:before {\n  content: '\\2014 \\00A0';\n}\n.blockquote-reverse,\nblockquote.pull-right {\n  padding-right: 15px;\n  padding-left: 0;\n  text-align: right;\n  border-right: 5px solid #eee;\n  border-left: 0;\n}\n.blockquote-reverse footer:before,\nblockquote.pull-right footer:before,\n.blockquote-reverse small:before,\nblockquote.pull-right small:before,\n.blockquote-reverse .small:before,\nblockquote.pull-right .small:before {\n  content: '';\n}\n.blockquote-reverse footer:after,\nblockquote.pull-right footer:after,\n.blockquote-reverse small:after,\nblockquote.pull-right small:after,\n.blockquote-reverse .small:after,\nblockquote.pull-right .small:after {\n  content: '\\00A0 \\2014';\n}\nblockquote:before,\nblockquote:after {\n  content: \"\";\n}\naddress {\n  margin-bottom: 20px;\n  font-style: normal;\n  line-height: 1.42857143;\n}\ncode,\nkbd,\npre,\nsamp {\n  font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n}\ncode {\n  padding: 2px 4px;\n  font-size: 90%;\n  color: #c7254e;\n  white-space: nowrap;\n  background-color: #f9f2f4;\n  border-radius: 4px;\n}\nkbd {\n  padding: 2px 4px;\n  font-size: 90%;\n  color: #fff;\n  background-color: #333;\n  border-radius: 3px;\n  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);\n}\npre {\n  display: block;\n  padding: 9.5px;\n  margin: 0 0 10px;\n  font-size: 13px;\n  line-height: 1.42857143;\n  color: #333;\n  word-break: break-all;\n  word-wrap: break-word;\n  background-color: #f5f5f5;\n  border: 1px solid #ccc;\n  border-radius: 4px;\n}\npre code {\n  padding: 0;\n  font-size: inherit;\n  color: inherit;\n  white-space: pre-wrap;\n  background-color: transparent;\n  border-radius: 0;\n}\n.pre-scrollable {\n  max-height: 340px;\n  overflow-y: scroll;\n}\n.container {\n  padding-right: 15px;\n  padding-left: 15px;\n  margin-right: auto;\n  margin-left: auto;\n}\n@media (min-width: 768px) {\n  .container {\n    width: 750px;\n  }\n}\n@media (min-width: 992px) {\n  .container {\n    width: 970px;\n  }\n}\n@media (min-width: 1200px) {\n  .container {\n    width: 1170px;\n  }\n}\n.container-fluid {\n  padding-right: 15px;\n  padding-left: 15px;\n  margin-right: auto;\n  margin-left: auto;\n}\n.row {\n  margin-right: -15px;\n  margin-left: -15px;\n}\n.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {\n  \n  min-height: 1px;\n  padding-right: 15px;\n  padding-left: 15px;\n}\n.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {\n  float: left;\n}\n.col-xs-12 {\n  width: 100%;\n}\n.col-xs-11 {\n  width: 91.66666667%;\n}\n.col-xs-10 {\n  width: 83.33333333%;\n}\n.col-xs-9 {\n  width: 75%;\n}\n.col-xs-8 {\n  width: 66.66666667%;\n}\n.col-xs-7 {\n  width: 58.33333333%;\n}\n.col-xs-6 {\n  width: 50%;\n}\n.col-xs-5 {\n  width: 41.66666667%;\n}\n.col-xs-4 {\n  width: 33.33333333%;\n}\n.col-xs-3 {\n  width: 25%;\n}\n.col-xs-2 {\n  width: 16.66666667%;\n}\n.col-xs-1 {\n  width: 8.33333333%;\n}\n.col-xs-pull-12 {\n  right: 100%;\n}\n.col-xs-pull-11 {\n  right: 91.66666667%;\n}\n.col-xs-pull-10 {\n  right: 83.33333333%;\n}\n.col-xs-pull-9 {\n  right: 75%;\n}\n.col-xs-pull-8 {\n  right: 66.66666667%;\n}\n.col-xs-pull-7 {\n  right: 58.33333333%;\n}\n.col-xs-pull-6 {\n  right: 50%;\n}\n.col-xs-pull-5 {\n  right: 41.66666667%;\n}\n.col-xs-pull-4 {\n  right: 33.33333333%;\n}\n.col-xs-pull-3 {\n  right: 25%;\n}\n.col-xs-pull-2 {\n  right: 16.66666667%;\n}\n.col-xs-pull-1 {\n  right: 8.33333333%;\n}\n.col-xs-pull-0 {\n  right: 0;\n}\n.col-xs-push-12 {\n  left: 100%;\n}\n.col-xs-push-11 {\n  left: 91.66666667%;\n}\n.col-xs-push-10 {\n  left: 83.33333333%;\n}\n.col-xs-push-9 {\n  left: 75%;\n}\n.col-xs-push-8 {\n  left: 66.66666667%;\n}\n.col-xs-push-7 {\n  left: 58.33333333%;\n}\n.col-xs-push-6 {\n  left: 50%;\n}\n.col-xs-push-5 {\n  left: 41.66666667%;\n}\n.col-xs-push-4 {\n  left: 33.33333333%;\n}\n.col-xs-push-3 {\n  left: 25%;\n}\n.col-xs-push-2 {\n  left: 16.66666667%;\n}\n.col-xs-push-1 {\n  left: 8.33333333%;\n}\n.col-xs-push-0 {\n  left: 0;\n}\n.col-xs-offset-12 {\n  margin-left: 100%;\n}\n.col-xs-offset-11 {\n  margin-left: 91.66666667%;\n}\n.col-xs-offset-10 {\n  margin-left: 83.33333333%;\n}\n.col-xs-offset-9 {\n  margin-left: 75%;\n}\n.col-xs-offset-8 {\n  margin-left: 66.66666667%;\n}\n.col-xs-offset-7 {\n  margin-left: 58.33333333%;\n}\n.col-xs-offset-6 {\n  margin-left: 50%;\n}\n.col-xs-offset-5 {\n  margin-left: 41.66666667%;\n}\n.col-xs-offset-4 {\n  margin-left: 33.33333333%;\n}\n.col-xs-offset-3 {\n  margin-left: 25%;\n}\n.col-xs-offset-2 {\n  margin-left: 16.66666667%;\n}\n.col-xs-offset-1 {\n  margin-left: 8.33333333%;\n}\n.col-xs-offset-0 {\n  margin-left: 0;\n}\n@media (min-width: 768px) {\n  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {\n    float: left;\n  }\n  .col-sm-12 {\n    width: 100%;\n  }\n  .col-sm-11 {\n    width: 91.66666667%;\n  }\n  .col-sm-10 {\n    width: 83.33333333%;\n  }\n  .col-sm-9 {\n    width: 75%;\n  }\n  .col-sm-8 {\n    width: 66.66666667%;\n  }\n  .col-sm-7 {\n    width: 58.33333333%;\n  }\n  .col-sm-6 {\n    width: 50%;\n  }\n  .col-sm-5 {\n    width: 41.66666667%;\n  }\n  .col-sm-4 {\n    width: 33.33333333%;\n  }\n  .col-sm-3 {\n    width: 25%;\n  }\n  .col-sm-2 {\n    width: 16.66666667%;\n  }\n  .col-sm-1 {\n    width: 8.33333333%;\n  }\n  .col-sm-pull-12 {\n    right: 100%;\n  }\n  .col-sm-pull-11 {\n    right: 91.66666667%;\n  }\n  .col-sm-pull-10 {\n    right: 83.33333333%;\n  }\n  .col-sm-pull-9 {\n    right: 75%;\n  }\n  .col-sm-pull-8 {\n    right: 66.66666667%;\n  }\n  .col-sm-pull-7 {\n    right: 58.33333333%;\n  }\n  .col-sm-pull-6 {\n    right: 50%;\n  }\n  .col-sm-pull-5 {\n    right: 41.66666667%;\n  }\n  .col-sm-pull-4 {\n    right: 33.33333333%;\n  }\n  .col-sm-pull-3 {\n    right: 25%;\n  }\n  .col-sm-pull-2 {\n    right: 16.66666667%;\n  }\n  .col-sm-pull-1 {\n    right: 8.33333333%;\n  }\n  .col-sm-pull-0 {\n    right: 0;\n  }\n  .col-sm-push-12 {\n    left: 100%;\n  }\n  .col-sm-push-11 {\n    left: 91.66666667%;\n  }\n  .col-sm-push-10 {\n    left: 83.33333333%;\n  }\n  .col-sm-push-9 {\n    left: 75%;\n  }\n  .col-sm-push-8 {\n    left: 66.66666667%;\n  }\n  .col-sm-push-7 {\n    left: 58.33333333%;\n  }\n  .col-sm-push-6 {\n    left: 50%;\n  }\n  .col-sm-push-5 {\n    left: 41.66666667%;\n  }\n  .col-sm-push-4 {\n    left: 33.33333333%;\n  }\n  .col-sm-push-3 {\n    left: 25%;\n  }\n  .col-sm-push-2 {\n    left: 16.66666667%;\n  }\n  .col-sm-push-1 {\n    left: 8.33333333%;\n  }\n  .col-sm-push-0 {\n    left: 0;\n  }\n  .col-sm-offset-12 {\n    margin-left: 100%;\n  }\n  .col-sm-offset-11 {\n    margin-left: 91.66666667%;\n  }\n  .col-sm-offset-10 {\n    margin-left: 83.33333333%;\n  }\n  .col-sm-offset-9 {\n    margin-left: 75%;\n  }\n  .col-sm-offset-8 {\n    margin-left: 66.66666667%;\n  }\n  .col-sm-offset-7 {\n    margin-left: 58.33333333%;\n  }\n  .col-sm-offset-6 {\n    margin-left: 50%;\n  }\n  .col-sm-offset-5 {\n    margin-left: 41.66666667%;\n  }\n  .col-sm-offset-4 {\n    margin-left: 33.33333333%;\n  }\n  .col-sm-offset-3 {\n    margin-left: 25%;\n  }\n  .col-sm-offset-2 {\n    margin-left: 16.66666667%;\n  }\n  .col-sm-offset-1 {\n    margin-left: 8.33333333%;\n  }\n  .col-sm-offset-0 {\n    margin-left: 0;\n  }\n}\n@media (min-width: 992px) {\n  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {\n    float: left;\n  }\n  .col-md-12 {\n    width: 100%;\n  }\n  .col-md-11 {\n    width: 91.66666667%;\n  }\n  .col-md-10 {\n    width: 83.33333333%;\n  }\n  .col-md-9 {\n    width: 75%;\n  }\n  .col-md-8 {\n    width: 66.66666667%;\n  }\n  .col-md-7 {\n    width: 58.33333333%;\n  }\n  .col-md-6 {\n    width: 50%;\n  }\n  .col-md-5 {\n    width: 41.66666667%;\n  }\n  .col-md-4 {\n    width: 33.33333333%;\n  }\n  .col-md-3 {\n    width: 25%;\n  }\n  .col-md-2 {\n    width: 16.66666667%;\n  }\n  .col-md-1 {\n    width: 8.33333333%;\n  }\n  .col-md-pull-12 {\n    right: 100%;\n  }\n  .col-md-pull-11 {\n    right: 91.66666667%;\n  }\n  .col-md-pull-10 {\n    right: 83.33333333%;\n  }\n  .col-md-pull-9 {\n    right: 75%;\n  }\n  .col-md-pull-8 {\n    right: 66.66666667%;\n  }\n  .col-md-pull-7 {\n    right: 58.33333333%;\n  }\n  .col-md-pull-6 {\n    right: 50%;\n  }\n  .col-md-pull-5 {\n    right: 41.66666667%;\n  }\n  .col-md-pull-4 {\n    right: 33.33333333%;\n  }\n  .col-md-pull-3 {\n    right: 25%;\n  }\n  .col-md-pull-2 {\n    right: 16.66666667%;\n  }\n  .col-md-pull-1 {\n    right: 8.33333333%;\n  }\n  .col-md-pull-0 {\n    right: 0;\n  }\n  .col-md-push-12 {\n    left: 100%;\n  }\n  .col-md-push-11 {\n    left: 91.66666667%;\n  }\n  .col-md-push-10 {\n    left: 83.33333333%;\n  }\n  .col-md-push-9 {\n    left: 75%;\n  }\n  .col-md-push-8 {\n    left: 66.66666667%;\n  }\n  .col-md-push-7 {\n    left: 58.33333333%;\n  }\n  .col-md-push-6 {\n    left: 50%;\n  }\n  .col-md-push-5 {\n    left: 41.66666667%;\n  }\n  .col-md-push-4 {\n    left: 33.33333333%;\n  }\n  .col-md-push-3 {\n    left: 25%;\n  }\n  .col-md-push-2 {\n    left: 16.66666667%;\n  }\n  .col-md-push-1 {\n    left: 8.33333333%;\n  }\n  .col-md-push-0 {\n    left: 0;\n  }\n  .col-md-offset-12 {\n    margin-left: 100%;\n  }\n  .col-md-offset-11 {\n    margin-left: 91.66666667%;\n  }\n  .col-md-offset-10 {\n    margin-left: 83.33333333%;\n  }\n  .col-md-offset-9 {\n    margin-left: 75%;\n  }\n  .col-md-offset-8 {\n    margin-left: 66.66666667%;\n  }\n  .col-md-offset-7 {\n    margin-left: 58.33333333%;\n  }\n  .col-md-offset-6 {\n    margin-left: 50%;\n  }\n  .col-md-offset-5 {\n    margin-left: 41.66666667%;\n  }\n  .col-md-offset-4 {\n    margin-left: 33.33333333%;\n  }\n  .col-md-offset-3 {\n    margin-left: 25%;\n  }\n  .col-md-offset-2 {\n    margin-left: 16.66666667%;\n  }\n  .col-md-offset-1 {\n    margin-left: 8.33333333%;\n  }\n  .col-md-offset-0 {\n    margin-left: 0;\n  }\n}\n@media (min-width: 1200px) {\n  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {\n    float: left;\n  }\n  .col-lg-12 {\n    width: 100%;\n  }\n  .col-lg-11 {\n    width: 91.66666667%;\n  }\n  .col-lg-10 {\n    width: 83.33333333%;\n  }\n  .col-lg-9 {\n    width: 75%;\n  }\n  .col-lg-8 {\n    width: 66.66666667%;\n  }\n  .col-lg-7 {\n    width: 58.33333333%;\n  }\n  .col-lg-6 {\n    width: 50%;\n  }\n  .col-lg-5 {\n    width: 41.66666667%;\n  }\n  .col-lg-4 {\n    width: 33.33333333%;\n  }\n  .col-lg-3 {\n    width: 25%;\n  }\n  .col-lg-2 {\n    width: 16.66666667%;\n  }\n  .col-lg-1 {\n    width: 8.33333333%;\n  }\n  .col-lg-pull-12 {\n    right: 100%;\n  }\n  .col-lg-pull-11 {\n    right: 91.66666667%;\n  }\n  .col-lg-pull-10 {\n    right: 83.33333333%;\n  }\n  .col-lg-pull-9 {\n    right: 75%;\n  }\n  .col-lg-pull-8 {\n    right: 66.66666667%;\n  }\n  .col-lg-pull-7 {\n    right: 58.33333333%;\n  }\n  .col-lg-pull-6 {\n    right: 50%;\n  }\n  .col-lg-pull-5 {\n    right: 41.66666667%;\n  }\n  .col-lg-pull-4 {\n    right: 33.33333333%;\n  }\n  .col-lg-pull-3 {\n    right: 25%;\n  }\n  .col-lg-pull-2 {\n    right: 16.66666667%;\n  }\n  .col-lg-pull-1 {\n    right: 8.33333333%;\n  }\n  .col-lg-pull-0 {\n    right: 0;\n  }\n  .col-lg-push-12 {\n    left: 100%;\n  }\n  .col-lg-push-11 {\n    left: 91.66666667%;\n  }\n  .col-lg-push-10 {\n    left: 83.33333333%;\n  }\n  .col-lg-push-9 {\n    left: 75%;\n  }\n  .col-lg-push-8 {\n    left: 66.66666667%;\n  }\n  .col-lg-push-7 {\n    left: 58.33333333%;\n  }\n  .col-lg-push-6 {\n    left: 50%;\n  }\n  .col-lg-push-5 {\n    left: 41.66666667%;\n  }\n  .col-lg-push-4 {\n    left: 33.33333333%;\n  }\n  .col-lg-push-3 {\n    left: 25%;\n  }\n  .col-lg-push-2 {\n    left: 16.66666667%;\n  }\n  .col-lg-push-1 {\n    left: 8.33333333%;\n  }\n  .col-lg-push-0 {\n    left: 0;\n  }\n  .col-lg-offset-12 {\n    margin-left: 100%;\n  }\n  .col-lg-offset-11 {\n    margin-left: 91.66666667%;\n  }\n  .col-lg-offset-10 {\n    margin-left: 83.33333333%;\n  }\n  .col-lg-offset-9 {\n    margin-left: 75%;\n  }\n  .col-lg-offset-8 {\n    margin-left: 66.66666667%;\n  }\n  .col-lg-offset-7 {\n    margin-left: 58.33333333%;\n  }\n  .col-lg-offset-6 {\n    margin-left: 50%;\n  }\n  .col-lg-offset-5 {\n    margin-left: 41.66666667%;\n  }\n  .col-lg-offset-4 {\n    margin-left: 33.33333333%;\n  }\n  .col-lg-offset-3 {\n    margin-left: 25%;\n  }\n  .col-lg-offset-2 {\n    margin-left: 16.66666667%;\n  }\n  .col-lg-offset-1 {\n    margin-left: 8.33333333%;\n  }\n  .col-lg-offset-0 {\n    margin-left: 0;\n  }\n}\ntable {\n  max-width: 100%;\n  background-color: transparent;\n}\nth {\n  text-align: left;\n}\n.table {\n  width: 100%;\n  margin-bottom: 20px;\n}\n.table > thead > tr > th,\n.table > tbody > tr > th,\n.table > tfoot > tr > th,\n.table > thead > tr > td,\n.table > tbody > tr > td,\n.table > tfoot > tr > td {\n  padding: 8px;\n  line-height: 1.42857143;\n  vertical-align: top;\n  border-top: 1px solid #ddd;\n}\n.table > thead > tr > th {\n  vertical-align: bottom;\n  border-bottom: 2px solid #ddd;\n}\n.table > caption + thead > tr:first-child > th,\n.table > colgroup + thead > tr:first-child > th,\n.table > thead:first-child > tr:first-child > th,\n.table > caption + thead > tr:first-child > td,\n.table > colgroup + thead > tr:first-child > td,\n.table > thead:first-child > tr:first-child > td {\n  border-top: 0;\n}\n.table > tbody + tbody {\n  border-top: 2px solid #ddd;\n}\n.table .table {\n  background-color: #fff;\n}\n.table-condensed > thead > tr > th,\n.table-condensed > tbody > tr > th,\n.table-condensed > tfoot > tr > th,\n.table-condensed > thead > tr > td,\n.table-condensed > tbody > tr > td,\n.table-condensed > tfoot > tr > td {\n  padding: 5px;\n}\n.table-bordered {\n  border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > tbody > tr > th,\n.table-bordered > tfoot > tr > th,\n.table-bordered > thead > tr > td,\n.table-bordered > tbody > tr > td,\n.table-bordered > tfoot > tr > td {\n  border: 1px solid #ddd;\n}\n.table-bordered > thead > tr > th,\n.table-bordered > thead > tr > td {\n  border-bottom-width: 2px;\n}\n.table-striped > tbody > tr:nth-child(odd) > td,\n.table-striped > tbody > tr:nth-child(odd) > th {\n  background-color: #f9f9f9;\n}\n.table-hover > tbody > tr:hover > td,\n.table-hover > tbody > tr:hover > th {\n  background-color: #f5f5f5;\n}\ntable col[class*=\"col-\"] {\n  position: static;\n  display: table-column;\n  float: none;\n}\ntable td[class*=\"col-\"],\ntable th[class*=\"col-\"] {\n  position: static;\n  display: table-cell;\n  float: none;\n}\n.table > thead > tr > td.active,\n.table > tbody > tr > td.active,\n.table > tfoot > tr > td.active,\n.table > thead > tr > th.active,\n.table > tbody > tr > th.active,\n.table > tfoot > tr > th.active,\n.table > thead > tr.active > td,\n.table > tbody > tr.active > td,\n.table > tfoot > tr.active > td,\n.table > thead > tr.active > th,\n.table > tbody > tr.active > th,\n.table > tfoot > tr.active > th {\n  background-color: #f5f5f5;\n}\n.table-hover > tbody > tr > td.active:hover,\n.table-hover > tbody > tr > th.active:hover,\n.table-hover > tbody > tr.active:hover > td,\n.table-hover > tbody > tr.active:hover > th {\n  background-color: #e8e8e8;\n}\n.table > thead > tr > td.success,\n.table > tbody > tr > td.success,\n.table > tfoot > tr > td.success,\n.table > thead > tr > th.success,\n.table > tbody > tr > th.success,\n.table > tfoot > tr > th.success,\n.table > thead > tr.success > td,\n.table > tbody > tr.success > td,\n.table > tfoot > tr.success > td,\n.table > thead > tr.success > th,\n.table > tbody > tr.success > th,\n.table > tfoot > tr.success > th {\n  background-color: #dff0d8;\n}\n.table-hover > tbody > tr > td.success:hover,\n.table-hover > tbody > tr > th.success:hover,\n.table-hover > tbody > tr.success:hover > td,\n.table-hover > tbody > tr.success:hover > th {\n  background-color: #d0e9c6;\n}\n.table > thead > tr > td.info,\n.table > tbody > tr > td.info,\n.table > tfoot > tr > td.info,\n.table > thead > tr > th.info,\n.table > tbody > tr > th.info,\n.table > tfoot > tr > th.info,\n.table > thead > tr.info > td,\n.table > tbody > tr.info > td,\n.table > tfoot > tr.info > td,\n.table > thead > tr.info > th,\n.table > tbody > tr.info > th,\n.table > tfoot > tr.info > th {\n  background-color: #d9edf7;\n}\n.table-hover > tbody > tr > td.info:hover,\n.table-hover > tbody > tr > th.info:hover,\n.table-hover > tbody > tr.info:hover > td,\n.table-hover > tbody > tr.info:hover > th {\n  background-color: #c4e3f3;\n}\n.table > thead > tr > td.warning,\n.table > tbody > tr > td.warning,\n.table > tfoot > tr > td.warning,\n.table > thead > tr > th.warning,\n.table > tbody > tr > th.warning,\n.table > tfoot > tr > th.warning,\n.table > thead > tr.warning > td,\n.table > tbody > tr.warning > td,\n.table > tfoot > tr.warning > td,\n.table > thead > tr.warning > th,\n.table > tbody > tr.warning > th,\n.table > tfoot > tr.warning > th {\n  background-color: #fcf8e3;\n}\n.table-hover > tbody > tr > td.warning:hover,\n.table-hover > tbody > tr > th.warning:hover,\n.table-hover > tbody > tr.warning:hover > td,\n.table-hover > tbody > tr.warning:hover > th {\n  background-color: #faf2cc;\n}\n.table > thead > tr > td.danger,\n.table > tbody > tr > td.danger,\n.table > tfoot > tr > td.danger,\n.table > thead > tr > th.danger,\n.table > tbody > tr > th.danger,\n.table > tfoot > tr > th.danger,\n.table > thead > tr.danger > td,\n.table > tbody > tr.danger > td,\n.table > tfoot > tr.danger > td,\n.table > thead > tr.danger > th,\n.table > tbody > tr.danger > th,\n.table > tfoot > tr.danger > th {\n  background-color: #f2dede;\n}\n.table-hover > tbody > tr > td.danger:hover,\n.table-hover > tbody > tr > th.danger:hover,\n.table-hover > tbody > tr.danger:hover > td,\n.table-hover > tbody > tr.danger:hover > th {\n  background-color: #ebcccc;\n}\n@media (max-width: 767px) {\n  .table-responsive {\n    width: 100%;\n    margin-bottom: 15px;\n    overflow-x: scroll;\n    overflow-y: hidden;\n    -webkit-overflow-scrolling: touch;\n    -ms-overflow-style: -ms-autohiding-scrollbar;\n    border: 1px solid #ddd;\n  }\n  .table-responsive > .table {\n    margin-bottom: 0;\n  }\n  .table-responsive > .table > thead > tr > th,\n  .table-responsive > .table > tbody > tr > th,\n  .table-responsive > .table > tfoot > tr > th,\n  .table-responsive > .table > thead > tr > td,\n  .table-responsive > .table > tbody > tr > td,\n  .table-responsive > .table > tfoot > tr > td {\n    white-space: nowrap;\n  }\n  .table-responsive > .table-bordered {\n    border: 0;\n  }\n  .table-responsive > .table-bordered > thead > tr > th:first-child,\n  .table-responsive > .table-bordered > tbody > tr > th:first-child,\n  .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n  .table-responsive > .table-bordered > thead > tr > td:first-child,\n  .table-responsive > .table-bordered > tbody > tr > td:first-child,\n  .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n    border-left: 0;\n  }\n  .table-responsive > .table-bordered > thead > tr > th:last-child,\n  .table-responsive > .table-bordered > tbody > tr > th:last-child,\n  .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n  .table-responsive > .table-bordered > thead > tr > td:last-child,\n  .table-responsive > .table-bordered > tbody > tr > td:last-child,\n  .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n    border-right: 0;\n  }\n  .table-responsive > .table-bordered > tbody > tr:last-child > th,\n  .table-responsive > .table-bordered > tfoot > tr:last-child > th,\n  .table-responsive > .table-bordered > tbody > tr:last-child > td,\n  .table-responsive > .table-bordered > tfoot > tr:last-child > td {\n    border-bottom: 0;\n  }\n}\nfieldset {\n  min-width: 0;\n  padding: 0;\n  margin: 0;\n  border: 0;\n}\nlegend {\n  display: block;\n  width: 100%;\n  padding: 0;\n  margin-bottom: 20px;\n  font-size: 21px;\n  line-height: inherit;\n  color: #333;\n  border: 0;\n  border-bottom: 1px solid #e5e5e5;\n}\nlabel {\n  display: inline-block;\n  margin-bottom: 5px;\n  font-weight: bold;\n}\ninput[type=\"search\"] {\n  -webkit-box-sizing: border-box;\n     -moz-box-sizing: border-box;\n          box-sizing: border-box;\n}\ninput[type=\"radio\"],\ninput[type=\"checkbox\"] {\n  margin: 4px 0 0;\n  margin-top: 1px \\9;\n  /* IE8-9 */\n  line-height: normal;\n}\ninput[type=\"file\"] {\n  display: block;\n}\ninput[type=\"range\"] {\n  display: block;\n  width: 100%;\n}\nselect[multiple],\nselect[size] {\n  height: auto;\n}\ninput[type=\"file\"]:focus,\ninput[type=\"radio\"]:focus,\ninput[type=\"checkbox\"]:focus {\n  outline: thin dotted;\n  outline: 5px auto -webkit-focus-ring-color;\n  outline-offset: -2px;\n}\noutput {\n  display: block;\n  padding-top: 7px;\n  font-size: 14px;\n  line-height: 1.42857143;\n  color: #555;\n}\n.form-control {\n  display: block;\n  width: 100%;\n  height: 34px;\n  padding: 6px 12px;\n  font-size: 14px;\n  line-height: 1.42857143;\n  color: #555;\n  background-color: #fff;\n  background-image: none;\n  border: 1px solid #ccc;\n  border-radius: 4px;\n  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n  -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n          transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n}\n.form-control:focus {\n  border-color: #66afe9;\n  outline: 0;\n  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);\n          box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);\n}\n.form-control::-moz-placeholder {\n  color: #999;\n  opacity: 1;\n}\n.form-control:-ms-input-placeholder {\n  color: #999;\n}\n.form-control::-webkit-input-placeholder {\n  color: #999;\n}\n.form-control[disabled],\n.form-control[readonly],\nfieldset[disabled] .form-control {\n  cursor: not-allowed;\n  background-color: #eee;\n  opacity: 1;\n}\ntextarea.form-control {\n  height: auto;\n}\ninput[type=\"search\"] {\n  -webkit-appearance: none;\n}\ninput[type=\"date\"] {\n  line-height: 34px;\n}\n.form-group {\n  margin-bottom: 15px;\n}\n.radio,\n.checkbox {\n  display: block;\n  min-height: 20px;\n  padding-left: 20px;\n  margin-top: 10px;\n  margin-bottom: 10px;\n}\n.radio label,\n.checkbox label {\n  display: inline;\n  font-weight: normal;\n  cursor: pointer;\n}\n.radio input[type=\"radio\"],\n.radio-inline input[type=\"radio\"],\n.checkbox input[type=\"checkbox\"],\n.checkbox-inline input[type=\"checkbox\"] {\n  float: left;\n  margin-left: -20px;\n}\n.radio + .radio,\n.checkbox + .checkbox {\n  margin-top: -5px;\n}\n.radio-inline,\n.checkbox-inline {\n  display: inline-block;\n  padding-left: 20px;\n  margin-bottom: 0;\n  font-weight: normal;\n  vertical-align: middle;\n  cursor: pointer;\n}\n.radio-inline + .radio-inline,\n.checkbox-inline + .checkbox-inline {\n  margin-top: 0;\n  margin-left: 10px;\n}\ninput[type=\"radio\"][disabled],\ninput[type=\"checkbox\"][disabled],\n.radio[disabled],\n.radio-inline[disabled],\n.checkbox[disabled],\n.checkbox-inline[disabled],\nfieldset[disabled] input[type=\"radio\"],\nfieldset[disabled] input[type=\"checkbox\"],\nfieldset[disabled] .radio,\nfieldset[disabled] .radio-inline,\nfieldset[disabled] .checkbox,\nfieldset[disabled] .checkbox-inline {\n  cursor: not-allowed;\n}\n.input-sm {\n  height: 30px;\n  padding: 5px 10px;\n  font-size: 12px;\n  line-height: 1.5;\n  border-radius: 3px;\n}\nselect.input-sm {\n  height: 30px;\n  line-height: 30px;\n}\ntextarea.input-sm,\nselect[multiple].input-sm {\n  height: auto;\n}\n.input-lg {\n  height: 46px;\n  padding: 10px 16px;\n  font-size: 18px;\n  line-height: 1.33;\n  border-radius: 6px;\n}\nselect.input-lg {\n  height: 46px;\n  line-height: 46px;\n}\ntextarea.input-lg,\nselect[multiple].input-lg {\n  height: auto;\n}\n.has-feedback {\n  position: relative;\n}\n.has-feedback .form-control {\n  padding-right: 42.5px;\n}\n.has-feedback .form-control-feedback {\n  position: absolute;\n  top: 25px;\n  right: 0;\n  display: block;\n  width: 34px;\n  height: 34px;\n  line-height: 34px;\n  text-align: center;\n}\n.has-success .help-block,\n.has-success .control-label,\n.has-success .radio,\n.has-success .checkbox,\n.has-success .radio-inline,\n.has-success .checkbox-inline {\n  color: #3c763d;\n}\n.has-success .form-control {\n  border-color: #3c763d;\n  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n}\n.has-success .form-control:focus {\n  border-color: #2b542c;\n  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;\n          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;\n}\n.has-success .input-group-addon {\n  color: #3c763d;\n  background-color: #dff0d8;\n  border-color: #3c763d;\n}\n.has-success .form-control-feedback {\n  color: #3c763d;\n}\n.has-warning .help-block,\n.has-warning .control-label,\n.has-warning .radio,\n.has-warning .checkbox,\n.has-warning .radio-inline,\n.has-warning .checkbox-inline {\n  color: #8a6d3b;\n}\n.has-warning .form-control {\n  border-color: #8a6d3b;\n  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n}\n.has-warning .form-control:focus {\n  border-color: #66512c;\n  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;\n          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;\n}\n.has-warning .input-group-addon {\n  color: #8a6d3b;\n  background-color: #fcf8e3;\n  border-color: #8a6d3b;\n}\n.has-warning .form-control-feedback {\n  color: #8a6d3b;\n}\n.has-error .help-block,\n.has-error .control-label,\n.has-error .radio,\n.has-error .checkbox,\n.has-error .radio-inline,\n.has-error .checkbox-inline {\n  color: #a94442;\n}\n.has-error .form-control {\n  border-color: #a94442;\n  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);\n}\n.has-error .form-control:focus {\n  border-color: #843534;\n  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;\n          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;\n}\n.has-error .input-group-addon {\n  color: #a94442;\n  background-color: #f2dede;\n  border-color: #a94442;\n}\n.has-error .form-control-feedback {\n  color: #a94442;\n}\n.form-control-static {\n  margin-bottom: 0;\n}\n.help-block {\n  display: block;\n  margin-top: 5px;\n  margin-bottom: 10px;\n  color: #737373;\n}\n@media (min-width: 768px) {\n  .form-inline .form-group {\n    display: inline-block;\n    margin-bottom: 0;\n    vertical-align: middle;\n  }\n  .form-inline .form-control {\n    display: inline-block;\n    width: auto;\n    vertical-align: middle;\n  }\n  .form-inline .input-group > .form-control {\n    width: 100%;\n  }\n  .form-inline .control-label {\n    margin-bottom: 0;\n    vertical-align: middle;\n  }\n  .form-inline .radio,\n  .form-inline .checkbox {\n    display: inline-block;\n    padding-left: 0;\n    margin-top: 0;\n    margin-bottom: 0;\n    vertical-align: middle;\n  }\n  .form-inline .radio input[type=\"radio\"],\n  .form-inline .checkbox input[type=\"checkbox\"] {\n    float: none;\n    margin-left: 0;\n  }\n  .form-inline .has-feedback .form-control-feedback {\n    top: 0;\n  }\n}\n.form-horizontal .control-label,\n.form-horizontal .radio,\n.form-horizontal .checkbox,\n.form-horizontal .radio-inline,\n.form-horizontal .checkbox-inline {\n  padding-top: 7px;\n  margin-top: 0;\n  margin-bottom: 0;\n}\n.form-horizontal .radio,\n.form-horizontal .checkbox {\n  min-height: 27px;\n}\n.form-horizontal .form-group {\n  margin-right: -15px;\n  margin-left: -15px;\n}\n.form-horizontal .form-control-static {\n  padding-top: 7px;\n}\n@media (min-width: 768px) {\n  .form-horizontal .control-label {\n    text-align: right;\n  }\n}\n.form-horizontal .has-feedback .form-control-feedback {\n  top: 0;\n  right: 15px;\n}\n.btn {\n  display: inline-block;\n  padding: 6px 12px;\n  margin-bottom: 0;\n  font-size: 14px;\n  font-weight: normal;\n  line-height: 1.42857143;\n  text-align: center;\n  white-space: nowrap;\n  vertical-align: middle;\n  cursor: pointer;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  background-image: none;\n  border: 1px solid transparent;\n  border-radius: 4px;\n}\n.btn:focus,\n.btn:active:focus,\n.btn.active:focus {\n  outline: thin dotted;\n  outline: 5px auto -webkit-focus-ring-color;\n  outline-offset: -2px;\n}\n.btn:hover,\n.btn:focus {\n  color: #333;\n  text-decoration: none;\n}\n.btn:active,\n.btn.active {\n  background-image: none;\n  outline: 0;\n  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n          box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n}\n.btn.disabled,\n.btn[disabled],\nfieldset[disabled] .btn {\n  pointer-events: none;\n  cursor: not-allowed;\n  filter: alpha(opacity=65);\n  -webkit-box-shadow: none;\n          box-shadow: none;\n  opacity: .65;\n}\n.btn-default {\n  color: #333;\n  background-color: #fff;\n  border-color: #ccc;\n}\n.btn-default:hover,\n.btn-default:focus,\n.btn-default:active,\n.btn-default.active,\n.open .dropdown-toggle.btn-default {\n  color: #333;\n  background-color: #ebebeb;\n  border-color: #adadad;\n}\n.btn-default:active,\n.btn-default.active,\n.open .dropdown-toggle.btn-default {\n  background-image: none;\n}\n.btn-default.disabled,\n.btn-default[disabled],\nfieldset[disabled] .btn-default,\n.btn-default.disabled:hover,\n.btn-default[disabled]:hover,\nfieldset[disabled] .btn-default:hover,\n.btn-default.disabled:focus,\n.btn-default[disabled]:focus,\nfieldset[disabled] .btn-default:focus,\n.btn-default.disabled:active,\n.btn-default[disabled]:active,\nfieldset[disabled] .btn-default:active,\n.btn-default.disabled.active,\n.btn-default[disabled].active,\nfieldset[disabled] .btn-default.active {\n  background-color: #fff;\n  border-color: #ccc;\n}\n.btn-default .badge {\n  color: #fff;\n  background-color: #333;\n}\n.btn-primary {\n  color: #fff;\n  background-color: #428bca;\n  border-color: #357ebd;\n}\n.btn-primary:hover,\n.btn-primary:focus,\n.btn-primary:active,\n.btn-primary.active,\n.open .dropdown-toggle.btn-primary {\n  color: #fff;\n  background-color: #3276b1;\n  border-color: #285e8e;\n}\n.btn-primary:active,\n.btn-primary.active,\n.open .dropdown-toggle.btn-primary {\n  background-image: none;\n}\n.btn-primary.disabled,\n.btn-primary[disabled],\nfieldset[disabled] .btn-primary,\n.btn-primary.disabled:hover,\n.btn-primary[disabled]:hover,\nfieldset[disabled] .btn-primary:hover,\n.btn-primary.disabled:focus,\n.btn-primary[disabled]:focus,\nfieldset[disabled] .btn-primary:focus,\n.btn-primary.disabled:active,\n.btn-primary[disabled]:active,\nfieldset[disabled] .btn-primary:active,\n.btn-primary.disabled.active,\n.btn-primary[disabled].active,\nfieldset[disabled] .btn-primary.active {\n  background-color: #428bca;\n  border-color: #357ebd;\n}\n.btn-primary .badge {\n  color: #428bca;\n  background-color: #fff;\n}\n.btn-success {\n  color: #fff;\n  background-color: #5cb85c;\n  border-color: #4cae4c;\n}\n.btn-success:hover,\n.btn-success:focus,\n.btn-success:active,\n.btn-success.active,\n.open .dropdown-toggle.btn-success {\n  color: #fff;\n  background-color: #47a447;\n  border-color: #398439;\n}\n.btn-success:active,\n.btn-success.active,\n.open .dropdown-toggle.btn-success {\n  background-image: none;\n}\n.btn-success.disabled,\n.btn-success[disabled],\nfieldset[disabled] .btn-success,\n.btn-success.disabled:hover,\n.btn-success[disabled]:hover,\nfieldset[disabled] .btn-success:hover,\n.btn-success.disabled:focus,\n.btn-success[disabled]:focus,\nfieldset[disabled] .btn-success:focus,\n.btn-success.disabled:active,\n.btn-success[disabled]:active,\nfieldset[disabled] .btn-success:active,\n.btn-success.disabled.active,\n.btn-success[disabled].active,\nfieldset[disabled] .btn-success.active {\n  background-color: #5cb85c;\n  border-color: #4cae4c;\n}\n.btn-success .badge {\n  color: #5cb85c;\n  background-color: #fff;\n}\n.btn-info {\n  color: #fff;\n  background-color: #5bc0de;\n  border-color: #46b8da;\n}\n.btn-info:hover,\n.btn-info:focus,\n.btn-info:active,\n.btn-info.active,\n.open .dropdown-toggle.btn-info {\n  color: #fff;\n  background-color: #39b3d7;\n  border-color: #269abc;\n}\n.btn-info:active,\n.btn-info.active,\n.open .dropdown-toggle.btn-info {\n  background-image: none;\n}\n.btn-info.disabled,\n.btn-info[disabled],\nfieldset[disabled] .btn-info,\n.btn-info.disabled:hover,\n.btn-info[disabled]:hover,\nfieldset[disabled] .btn-info:hover,\n.btn-info.disabled:focus,\n.btn-info[disabled]:focus,\nfieldset[disabled] .btn-info:focus,\n.btn-info.disabled:active,\n.btn-info[disabled]:active,\nfieldset[disabled] .btn-info:active,\n.btn-info.disabled.active,\n.btn-info[disabled].active,\nfieldset[disabled] .btn-info.active {\n  background-color: #5bc0de;\n  border-color: #46b8da;\n}\n.btn-info .badge {\n  color: #5bc0de;\n  background-color: #fff;\n}\n.btn-warning {\n  color: #fff;\n  background-color: #f0ad4e;\n  border-color: #eea236;\n}\n.btn-warning:hover,\n.btn-warning:focus,\n.btn-warning:active,\n.btn-warning.active,\n.open .dropdown-toggle.btn-warning {\n  color: #fff;\n  background-color: #ed9c28;\n  border-color: #d58512;\n}\n.btn-warning:active,\n.btn-warning.active,\n.open .dropdown-toggle.btn-warning {\n  background-image: none;\n}\n.btn-warning.disabled,\n.btn-warning[disabled],\nfieldset[disabled] .btn-warning,\n.btn-warning.disabled:hover,\n.btn-warning[disabled]:hover,\nfieldset[disabled] .btn-warning:hover,\n.btn-warning.disabled:focus,\n.btn-warning[disabled]:focus,\nfieldset[disabled] .btn-warning:focus,\n.btn-warning.disabled:active,\n.btn-warning[disabled]:active,\nfieldset[disabled] .btn-warning:active,\n.btn-warning.disabled.active,\n.btn-warning[disabled].active,\nfieldset[disabled] .btn-warning.active {\n  background-color: #f0ad4e;\n  border-color: #eea236;\n}\n.btn-warning .badge {\n  color: #f0ad4e;\n  background-color: #fff;\n}\n.btn-danger {\n  color: #fff;\n  background-color: #d9534f;\n  border-color: #d43f3a;\n}\n.btn-danger:hover,\n.btn-danger:focus,\n.btn-danger:active,\n.btn-danger.active,\n.open .dropdown-toggle.btn-danger {\n  color: #fff;\n  background-color: #d2322d;\n  border-color: #ac2925;\n}\n.btn-danger:active,\n.btn-danger.active,\n.open .dropdown-toggle.btn-danger {\n  background-image: none;\n}\n.btn-danger.disabled,\n.btn-danger[disabled],\nfieldset[disabled] .btn-danger,\n.btn-danger.disabled:hover,\n.btn-danger[disabled]:hover,\nfieldset[disabled] .btn-danger:hover,\n.btn-danger.disabled:focus,\n.btn-danger[disabled]:focus,\nfieldset[disabled] .btn-danger:focus,\n.btn-danger.disabled:active,\n.btn-danger[disabled]:active,\nfieldset[disabled] .btn-danger:active,\n.btn-danger.disabled.active,\n.btn-danger[disabled].active,\nfieldset[disabled] .btn-danger.active {\n  background-color: #d9534f;\n  border-color: #d43f3a;\n}\n.btn-danger .badge {\n  color: #d9534f;\n  background-color: #fff;\n}\n.btn-link {\n  font-weight: normal;\n  color: #428bca;\n  cursor: pointer;\n  border-radius: 0;\n}\n.btn-link,\n.btn-link:active,\n.btn-link[disabled],\nfieldset[disabled] .btn-link {\n  background-color: transparent;\n  -webkit-box-shadow: none;\n          box-shadow: none;\n}\n.btn-link,\n.btn-link:hover,\n.btn-link:focus,\n.btn-link:active {\n  border-color: transparent;\n}\n.btn-link:hover,\n.btn-link:focus {\n  color: #2a6496;\n  text-decoration: underline;\n  background-color: transparent;\n}\n.btn-link[disabled]:hover,\nfieldset[disabled] .btn-link:hover,\n.btn-link[disabled]:focus,\nfieldset[disabled] .btn-link:focus {\n  color: #999;\n  text-decoration: none;\n}\n.btn-lg,\n.btn-group-lg > .btn {\n  padding: 10px 16px;\n  font-size: 18px;\n  line-height: 1.33;\n  border-radius: 6px;\n}\n.btn-sm,\n.btn-group-sm > .btn {\n  padding: 5px 10px;\n  font-size: 12px;\n  line-height: 1.5;\n  border-radius: 3px;\n}\n.btn-xs,\n.btn-group-xs > .btn {\n  padding: 1px 5px;\n  font-size: 12px;\n  line-height: 1.5;\n  border-radius: 3px;\n}\n.btn-block {\n  display: block;\n  width: 100%;\n  padding-right: 0;\n  padding-left: 0;\n}\n.btn-block + .btn-block {\n  margin-top: 5px;\n}\ninput[type=\"submit\"].btn-block,\ninput[type=\"reset\"].btn-block,\ninput[type=\"button\"].btn-block {\n  width: 100%;\n}\n.fade {\n  opacity: 0;\n  -webkit-transition: opacity .15s linear;\n          transition: opacity .15s linear;\n}\n.fade.in {\n  opacity: 1;\n}\n.collapse {\n  display: none;\n}\n.collapse.in {\n  display: block;\n}\n.collapsing {\n  position: relative;\n  height: 0;\n  overflow: hidden;\n  -webkit-transition: height .35s ease;\n          transition: height .35s ease;\n}\n@font-face {\n  font-family: 'Glyphicons Halflings';\n\n  src: url('../fonts/glyphicons-halflings-regular.eot');\n  src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');\n}\n.glyphicon {\n  \n  top: 1px;\n  display: inline-block;\n  font-family: 'Glyphicons Halflings';\n  font-style: normal;\n  font-weight: normal;\n  line-height: 1;\n\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.glyphicon-asterisk:before {\n  content: \"\\2a\";\n}\n.glyphicon-plus:before {\n  content: \"\\2b\";\n}\n.glyphicon-euro:before {\n  content: \"\\20ac\";\n}\n.glyphicon-minus:before {\n  content: \"\\2212\";\n}\n.glyphicon-cloud:before {\n  content: \"\\2601\";\n}\n.glyphicon-envelope:before {\n  content: \"\\2709\";\n}\n.glyphicon-pencil:before {\n  content: \"\\270f\";\n}\n.glyphicon-glass:before {\n  content: \"\\e001\";\n}\n.glyphicon-music:before {\n  content: \"\\e002\";\n}\n.glyphicon-search:before {\n  content: \"\\e003\";\n}\n.glyphicon-heart:before {\n  content: \"\\e005\";\n}\n.glyphicon-star:before {\n  content: \"\\e006\";\n}\n.glyphicon-star-empty:before {\n  content: \"\\e007\";\n}\n.glyphicon-user:before {\n  content: \"\\e008\";\n}\n.glyphicon-film:before {\n  content: \"\\e009\";\n}\n.glyphicon-th-large:before {\n  content: \"\\e010\";\n}\n.glyphicon-th:before {\n  content: \"\\e011\";\n}\n.glyphicon-th-list:before {\n  content: \"\\e012\";\n}\n.glyphicon-ok:before {\n  content: \"\\e013\";\n}\n.glyphicon-remove:before {\n  content: \"\\e014\";\n}\n.glyphicon-zoom-in:before {\n  content: \"\\e015\";\n}\n.glyphicon-zoom-out:before {\n  content: \"\\e016\";\n}\n.glyphicon-off:before {\n  content: \"\\e017\";\n}\n.glyphicon-signal:before {\n  content: \"\\e018\";\n}\n.glyphicon-cog:before {\n  content: \"\\e019\";\n}\n.glyphicon-trash:before {\n  content: \"\\e020\";\n}\n.glyphicon-home:before {\n  content: \"\\e021\";\n}\n.glyphicon-file:before {\n  content: \"\\e022\";\n}\n.glyphicon-time:before {\n  content: \"\\e023\";\n}\n.glyphicon-road:before {\n  content: \"\\e024\";\n}\n.glyphicon-download-alt:before {\n  content: \"\\e025\";\n}\n.glyphicon-download:before {\n  content: \"\\e026\";\n}\n.glyphicon-upload:before {\n  content: \"\\e027\";\n}\n.glyphicon-inbox:before {\n  content: \"\\e028\";\n}\n.glyphicon-play-circle:before {\n  content: \"\\e029\";\n}\n.glyphicon-repeat:before {\n  content: \"\\e030\";\n}\n.glyphicon-refresh:before {\n  content: \"\\e031\";\n}\n.glyphicon-list-alt:before {\n  content: \"\\e032\";\n}\n.glyphicon-lock:before {\n  content: \"\\e033\";\n}\n.glyphicon-flag:before {\n  content: \"\\e034\";\n}\n.glyphicon-headphones:before {\n  content: \"\\e035\";\n}\n.glyphicon-volume-off:before {\n  content: \"\\e036\";\n}\n.glyphicon-volume-down:before {\n  content: \"\\e037\";\n}\n.glyphicon-volume-up:before {\n  content: \"\\e038\";\n}\n.glyphicon-qrcode:before {\n  content: \"\\e039\";\n}\n.glyphicon-barcode:before {\n  content: \"\\e040\";\n}\n.glyphicon-tag:before {\n  content: \"\\e041\";\n}\n.glyphicon-tags:before {\n  content: \"\\e042\";\n}\n.glyphicon-book:before {\n  content: \"\\e043\";\n}\n.glyphicon-bookmark:before {\n  content: \"\\e044\";\n}\n.glyphicon-print:before {\n  content: \"\\e045\";\n}\n.glyphicon-camera:before {\n  content: \"\\e046\";\n}\n.glyphicon-font:before {\n  content: \"\\e047\";\n}\n.glyphicon-bold:before {\n  content: \"\\e048\";\n}\n.glyphicon-italic:before {\n  content: \"\\e049\";\n}\n.glyphicon-text-height:before {\n  content: \"\\e050\";\n}\n.glyphicon-text-width:before {\n  content: \"\\e051\";\n}\n.glyphicon-align-left:before {\n  content: \"\\e052\";\n}\n.glyphicon-align-center:before {\n  content: \"\\e053\";\n}\n.glyphicon-align-right:before {\n  content: \"\\e054\";\n}\n.glyphicon-align-justify:before {\n  content: \"\\e055\";\n}\n.glyphicon-list:before {\n  content: \"\\e056\";\n}\n.glyphicon-indent-left:before {\n  content: \"\\e057\";\n}\n.glyphicon-indent-right:before {\n  content: \"\\e058\";\n}\n.glyphicon-facetime-video:before {\n  content: \"\\e059\";\n}\n.glyphicon-picture:before {\n  content: \"\\e060\";\n}\n.glyphicon-map-marker:before {\n  content: \"\\e062\";\n}\n.glyphicon-adjust:before {\n  content: \"\\e063\";\n}\n.glyphicon-tint:before {\n  content: \"\\e064\";\n}\n.glyphicon-edit:before {\n  content: \"\\e065\";\n}\n.glyphicon-share:before {\n  content: \"\\e066\";\n}\n.glyphicon-check:before {\n  content: \"\\e067\";\n}\n.glyphicon-move:before {\n  content: \"\\e068\";\n}\n.glyphicon-step-backward:before {\n  content: \"\\e069\";\n}\n.glyphicon-fast-backward:before {\n  content: \"\\e070\";\n}\n.glyphicon-backward:before {\n  content: \"\\e071\";\n}\n.glyphicon-play:before {\n  content: \"\\e072\";\n}\n.glyphicon-pause:before {\n  content: \"\\e073\";\n}\n.glyphicon-stop:before {\n  content: \"\\e074\";\n}\n.glyphicon-forward:before {\n  content: \"\\e075\";\n}\n.glyphicon-fast-forward:before {\n  content: \"\\e076\";\n}\n.glyphicon-step-forward:before {\n  content: \"\\e077\";\n}\n.glyphicon-eject:before {\n  content: \"\\e078\";\n}\n.glyphicon-chevron-left:before {\n  content: \"\\e079\";\n}\n.glyphicon-chevron-right:before {\n  content: \"\\e080\";\n}\n.glyphicon-plus-sign:before {\n  content: \"\\e081\";\n}\n.glyphicon-minus-sign:before {\n  content: \"\\e082\";\n}\n.glyphicon-remove-sign:before {\n  content: \"\\e083\";\n}\n.glyphicon-ok-sign:before {\n  content: \"\\e084\";\n}\n.glyphicon-question-sign:before {\n  content: \"\\e085\";\n}\n.glyphicon-info-sign:before {\n  content: \"\\e086\";\n}\n.glyphicon-screenshot:before {\n  content: \"\\e087\";\n}\n.glyphicon-remove-circle:before {\n  content: \"\\e088\";\n}\n.glyphicon-ok-circle:before {\n  content: \"\\e089\";\n}\n.glyphicon-ban-circle:before {\n  content: \"\\e090\";\n}\n.glyphicon-arrow-left:before {\n  content: \"\\e091\";\n}\n.glyphicon-arrow-right:before {\n  content: \"\\e092\";\n}\n.glyphicon-arrow-up:before {\n  content: \"\\e093\";\n}\n.glyphicon-arrow-down:before {\n  content: \"\\e094\";\n}\n.glyphicon-share-alt:before {\n  content: \"\\e095\";\n}\n.glyphicon-resize-full:before {\n  content: \"\\e096\";\n}\n.glyphicon-resize-small:before {\n  content: \"\\e097\";\n}\n.glyphicon-exclamation-sign:before {\n  content: \"\\e101\";\n}\n.glyphicon-gift:before {\n  content: \"\\e102\";\n}\n.glyphicon-leaf:before {\n  content: \"\\e103\";\n}\n.glyphicon-fire:before {\n  content: \"\\e104\";\n}\n.glyphicon-eye-open:before {\n  content: \"\\e105\";\n}\n.glyphicon-eye-close:before {\n  content: \"\\e106\";\n}\n.glyphicon-warning-sign:before {\n  content: \"\\e107\";\n}\n.glyphicon-plane:before {\n  content: \"\\e108\";\n}\n.glyphicon-calendar:before {\n  content: \"\\e109\";\n}\n.glyphicon-random:before {\n  content: \"\\e110\";\n}\n.glyphicon-comment:before {\n  content: \"\\e111\";\n}\n.glyphicon-magnet:before {\n  content: \"\\e112\";\n}\n.glyphicon-chevron-up:before {\n  content: \"\\e113\";\n}\n.glyphicon-chevron-down:before {\n  content: \"\\e114\";\n}\n.glyphicon-retweet:before {\n  content: \"\\e115\";\n}\n.glyphicon-shopping-cart:before {\n  content: \"\\e116\";\n}\n.glyphicon-folder-close:before {\n  content: \"\\e117\";\n}\n.glyphicon-folder-open:before {\n  content: \"\\e118\";\n}\n.glyphicon-resize-vertical:before {\n  content: \"\\e119\";\n}\n.glyphicon-resize-horizontal:before {\n  content: \"\\e120\";\n}\n.glyphicon-hdd:before {\n  content: \"\\e121\";\n}\n.glyphicon-bullhorn:before {\n  content: \"\\e122\";\n}\n.glyphicon-bell:before {\n  content: \"\\e123\";\n}\n.glyphicon-certificate:before {\n  content: \"\\e124\";\n}\n.glyphicon-thumbs-up:before {\n  content: \"\\e125\";\n}\n.glyphicon-thumbs-down:before {\n  content: \"\\e126\";\n}\n.glyphicon-hand-right:before {\n  content: \"\\e127\";\n}\n.glyphicon-hand-left:before {\n  content: \"\\e128\";\n}\n.glyphicon-hand-up:before {\n  content: \"\\e129\";\n}\n.glyphicon-hand-down:before {\n  content: \"\\e130\";\n}\n.glyphicon-circle-arrow-right:before {\n  content: \"\\e131\";\n}\n.glyphicon-circle-arrow-left:before {\n  content: \"\\e132\";\n}\n.glyphicon-circle-arrow-up:before {\n  content: \"\\e133\";\n}\n.glyphicon-circle-arrow-down:before {\n  content: \"\\e134\";\n}\n.glyphicon-globe:before {\n  content: \"\\e135\";\n}\n.glyphicon-wrench:before {\n  content: \"\\e136\";\n}\n.glyphicon-tasks:before {\n  content: \"\\e137\";\n}\n.glyphicon-filter:before {\n  content: \"\\e138\";\n}\n.glyphicon-briefcase:before {\n  content: \"\\e139\";\n}\n.glyphicon-fullscreen:before {\n  content: \"\\e140\";\n}\n.glyphicon-dashboard:before {\n  content: \"\\e141\";\n}\n.glyphicon-paperclip:before {\n  content: \"\\e142\";\n}\n.glyphicon-heart-empty:before {\n  content: \"\\e143\";\n}\n.glyphicon-link:before {\n  content: \"\\e144\";\n}\n.glyphicon-phone:before {\n  content: \"\\e145\";\n}\n.glyphicon-pushpin:before {\n  content: \"\\e146\";\n}\n.glyphicon-usd:before {\n  content: \"\\e148\";\n}\n.glyphicon-gbp:before {\n  content: \"\\e149\";\n}\n.glyphicon-sort:before {\n  content: \"\\e150\";\n}\n.glyphicon-sort-by-alphabet:before {\n  content: \"\\e151\";\n}\n.glyphicon-sort-by-alphabet-alt:before {\n  content: \"\\e152\";\n}\n.glyphicon-sort-by-order:before {\n  content: \"\\e153\";\n}\n.glyphicon-sort-by-order-alt:before {\n  content: \"\\e154\";\n}\n.glyphicon-sort-by-attributes:before {\n  content: \"\\e155\";\n}\n.glyphicon-sort-by-attributes-alt:before {\n  content: \"\\e156\";\n}\n.glyphicon-unchecked:before {\n  content: \"\\e157\";\n}\n.glyphicon-expand:before {\n  content: \"\\e158\";\n}\n.glyphicon-collapse-down:before {\n  content: \"\\e159\";\n}\n.glyphicon-collapse-up:before {\n  content: \"\\e160\";\n}\n.glyphicon-log-in:before {\n  content: \"\\e161\";\n}\n.glyphicon-flash:before {\n  content: \"\\e162\";\n}\n.glyphicon-log-out:before {\n  content: \"\\e163\";\n}\n.glyphicon-new-window:before {\n  content: \"\\e164\";\n}\n.glyphicon-record:before {\n  content: \"\\e165\";\n}\n.glyphicon-save:before {\n  content: \"\\e166\";\n}\n.glyphicon-open:before {\n  content: \"\\e167\";\n}\n.glyphicon-saved:before {\n  content: \"\\e168\";\n}\n.glyphicon-import:before {\n  content: \"\\e169\";\n}\n.glyphicon-export:before {\n  content: \"\\e170\";\n}\n.glyphicon-send:before {\n  content: \"\\e171\";\n}\n.glyphicon-floppy-disk:before {\n  content: \"\\e172\";\n}\n.glyphicon-floppy-saved:before {\n  content: \"\\e173\";\n}\n.glyphicon-floppy-remove:before {\n  content: \"\\e174\";\n}\n.glyphicon-floppy-save:before {\n  content: \"\\e175\";\n}\n.glyphicon-floppy-open:before {\n  content: \"\\e176\";\n}\n.glyphicon-credit-card:before {\n  content: \"\\e177\";\n}\n.glyphicon-transfer:before {\n  content: \"\\e178\";\n}\n.glyphicon-cutlery:before {\n  content: \"\\e179\";\n}\n.glyphicon-header:before {\n  content: \"\\e180\";\n}\n.glyphicon-compressed:before {\n  content: \"\\e181\";\n}\n.glyphicon-earphone:before {\n  content: \"\\e182\";\n}\n.glyphicon-phone-alt:before {\n  content: \"\\e183\";\n}\n.glyphicon-tower:before {\n  content: \"\\e184\";\n}\n.glyphicon-stats:before {\n  content: \"\\e185\";\n}\n.glyphicon-sd-video:before {\n  content: \"\\e186\";\n}\n.glyphicon-hd-video:before {\n  content: \"\\e187\";\n}\n.glyphicon-subtitles:before {\n  content: \"\\e188\";\n}\n.glyphicon-sound-stereo:before {\n  content: \"\\e189\";\n}\n.glyphicon-sound-dolby:before {\n  content: \"\\e190\";\n}\n.glyphicon-sound-5-1:before {\n  content: \"\\e191\";\n}\n.glyphicon-sound-6-1:before {\n  content: \"\\e192\";\n}\n.glyphicon-sound-7-1:before {\n  content: \"\\e193\";\n}\n.glyphicon-copyright-mark:before {\n  content: \"\\e194\";\n}\n.glyphicon-registration-mark:before {\n  content: \"\\e195\";\n}\n.glyphicon-cloud-download:before {\n  content: \"\\e197\";\n}\n.glyphicon-cloud-upload:before {\n  content: \"\\e198\";\n}\n.glyphicon-tree-conifer:before {\n  content: \"\\e199\";\n}\n.glyphicon-tree-deciduous:before {\n  content: \"\\e200\";\n}\n.caret {\n  display: inline-block;\n  width: 0;\n  height: 0;\n  margin-left: 2px;\n  vertical-align: middle;\n  border-top: 4px solid;\n  border-right: 4px solid transparent;\n  border-left: 4px solid transparent;\n}\n.dropdown {\n  position: relative;\n}\n.dropdown-toggle:focus {\n  outline: 0;\n}\n.dropdown-menu {\n  position: absolute;\n  top: 100%;\n  left: 0;\n  z-index: 1000;\n  display: none;\n  float: left;\n  min-width: 160px;\n  padding: 5px 0;\n  margin: 2px 0 0;\n  font-size: 14px;\n  list-style: none;\n  background-color: #fff;\n  background-clip: padding-box;\n  border: 1px solid #ccc;\n  border: 1px solid rgba(0, 0, 0, .15);\n  border-radius: 4px;\n  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);\n          box-shadow: 0 6px 12px rgba(0, 0, 0, .175);\n}\n.dropdown-menu.pull-right {\n  right: 0;\n  left: auto;\n}\n.dropdown-menu .divider {\n  height: 1px;\n  margin: 9px 0;\n  overflow: hidden;\n  background-color: #e5e5e5;\n}\n.dropdown-menu > li > a {\n  display: block;\n  padding: 3px 20px;\n  clear: both;\n  font-weight: normal;\n  line-height: 1.42857143;\n  color: #333;\n  white-space: nowrap;\n}\n.dropdown-menu > li > a:hover,\n.dropdown-menu > li > a:focus {\n  color: #262626;\n  text-decoration: none;\n  background-color: #f5f5f5;\n}\n.dropdown-menu > .active > a,\n.dropdown-menu > .active > a:hover,\n.dropdown-menu > .active > a:focus {\n  color: #fff;\n  text-decoration: none;\n  background-color: #428bca;\n  outline: 0;\n}\n.dropdown-menu > .disabled > a,\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n  color: #999;\n}\n.dropdown-menu > .disabled > a:hover,\n.dropdown-menu > .disabled > a:focus {\n  text-decoration: none;\n  cursor: not-allowed;\n  background-color: transparent;\n  background-image: none;\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.open > .dropdown-menu {\n  display: block;\n}\n.open > a {\n  outline: 0;\n}\n.dropdown-menu-right {\n  right: 0;\n  left: auto;\n}\n.dropdown-menu-left {\n  right: auto;\n  left: 0;\n}\n.dropdown-header {\n  display: block;\n  padding: 3px 20px;\n  font-size: 12px;\n  line-height: 1.42857143;\n  color: #999;\n}\n.dropdown-backdrop {\n  position: fixed;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 990;\n}\n.pull-right > .dropdown-menu {\n  right: 0;\n  left: auto;\n}\n.dropup .caret,\n.navbar-fixed-bottom .dropdown .caret {\n  content: \"\";\n  border-top: 0;\n  border-bottom: 4px solid;\n}\n.dropup .dropdown-menu,\n.navbar-fixed-bottom .dropdown .dropdown-menu {\n  top: auto;\n  bottom: 100%;\n  margin-bottom: 1px;\n}\n@media (min-width: 768px) {\n  .navbar-right .dropdown-menu {\n    right: 0;\n    left: auto;\n  }\n  .navbar-right .dropdown-menu-left {\n    right: auto;\n    left: 0;\n  }\n}\n.btn-group,\n.btn-group-vertical {\n  position: relative;\n  display: inline-block;\n  vertical-align: middle;\n}\n.btn-group > .btn,\n.btn-group-vertical > .btn {\n  position: relative;\n  float: left;\n}\n.btn-group > .btn:hover,\n.btn-group-vertical > .btn:hover,\n.btn-group > .btn:focus,\n.btn-group-vertical > .btn:focus,\n.btn-group > .btn:active,\n.btn-group-vertical > .btn:active,\n.btn-group > .btn.active,\n.btn-group-vertical > .btn.active {\n  z-index: 2;\n}\n.btn-group > .btn:focus,\n.btn-group-vertical > .btn:focus {\n  outline: none;\n}\n.btn-group .btn + .btn,\n.btn-group .btn + .btn-group,\n.btn-group .btn-group + .btn,\n.btn-group .btn-group + .btn-group {\n  margin-left: -1px;\n}\n.btn-toolbar {\n  margin-left: -5px;\n}\n.btn-toolbar .btn-group,\n.btn-toolbar .input-group {\n  float: left;\n}\n.btn-toolbar > .btn,\n.btn-toolbar > .btn-group,\n.btn-toolbar > .input-group {\n  margin-left: 5px;\n}\n.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {\n  border-radius: 0;\n}\n.btn-group > .btn:first-child {\n  margin-left: 0;\n}\n.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n.btn-group > .btn:last-child:not(:first-child),\n.btn-group > .dropdown-toggle:not(:first-child) {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n.btn-group > .btn-group {\n  float: left;\n}\n.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {\n  border-radius: 0;\n}\n.btn-group > .btn-group:first-child > .btn:last-child,\n.btn-group > .btn-group:first-child > .dropdown-toggle {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n.btn-group > .btn-group:last-child > .btn:first-child {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n.btn-group .dropdown-toggle:active,\n.btn-group.open .dropdown-toggle {\n  outline: 0;\n}\n.btn-group > .btn + .dropdown-toggle {\n  padding-right: 8px;\n  padding-left: 8px;\n}\n.btn-group > .btn-lg + .dropdown-toggle {\n  padding-right: 12px;\n  padding-left: 12px;\n}\n.btn-group.open .dropdown-toggle {\n  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n          box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);\n}\n.btn-group.open .dropdown-toggle.btn-link {\n  -webkit-box-shadow: none;\n          box-shadow: none;\n}\n.btn .caret {\n  margin-left: 0;\n}\n.btn-lg .caret {\n  border-width: 5px 5px 0;\n  border-bottom-width: 0;\n}\n.dropup .btn-lg .caret {\n  border-width: 0 5px 5px;\n}\n.btn-group-vertical > .btn,\n.btn-group-vertical > .btn-group,\n.btn-group-vertical > .btn-group > .btn {\n  display: block;\n  float: none;\n  width: 100%;\n  max-width: 100%;\n}\n.btn-group-vertical > .btn-group > .btn {\n  float: none;\n}\n.btn-group-vertical > .btn + .btn,\n.btn-group-vertical > .btn + .btn-group,\n.btn-group-vertical > .btn-group + .btn,\n.btn-group-vertical > .btn-group + .btn-group {\n  margin-top: -1px;\n  margin-left: 0;\n}\n.btn-group-vertical > .btn:not(:first-child):not(:last-child) {\n  border-radius: 0;\n}\n.btn-group-vertical > .btn:first-child:not(:last-child) {\n  border-top-right-radius: 4px;\n  border-bottom-right-radius: 0;\n  border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn:last-child:not(:first-child) {\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n  border-bottom-left-radius: 4px;\n}\n.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {\n  border-radius: 0;\n}\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,\n.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {\n  border-bottom-right-radius: 0;\n  border-bottom-left-radius: 0;\n}\n.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n}\n.btn-group-justified {\n  display: table;\n  width: 100%;\n  table-layout: fixed;\n  border-collapse: separate;\n}\n.btn-group-justified > .btn,\n.btn-group-justified > .btn-group {\n  display: table-cell;\n  float: none;\n  width: 1%;\n}\n.btn-group-justified > .btn-group .btn {\n  width: 100%;\n}\n[data-toggle=\"buttons\"] > .btn > input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .btn > input[type=\"checkbox\"] {\n  display: none;\n}\n.input-group {\n  position: relative;\n  display: table;\n  border-collapse: separate;\n}\n.input-group[class*=\"col-\"] {\n  float: none;\n  padding-right: 0;\n  padding-left: 0;\n}\n.input-group .form-control {\n  position: relative;\n  z-index: 2;\n  float: left;\n  width: 100%;\n  margin-bottom: 0;\n}\n.input-group-lg > .form-control,\n.input-group-lg > .input-group-addon,\n.input-group-lg > .input-group-btn > .btn {\n  height: 46px;\n  padding: 10px 16px;\n  font-size: 18px;\n  line-height: 1.33;\n  border-radius: 6px;\n}\nselect.input-group-lg > .form-control,\nselect.input-group-lg > .input-group-addon,\nselect.input-group-lg > .input-group-btn > .btn {\n  height: 46px;\n  line-height: 46px;\n}\ntextarea.input-group-lg > .form-control,\ntextarea.input-group-lg > .input-group-addon,\ntextarea.input-group-lg > .input-group-btn > .btn,\nselect[multiple].input-group-lg > .form-control,\nselect[multiple].input-group-lg > .input-group-addon,\nselect[multiple].input-group-lg > .input-group-btn > .btn {\n  height: auto;\n}\n.input-group-sm > .form-control,\n.input-group-sm > .input-group-addon,\n.input-group-sm > .input-group-btn > .btn {\n  height: 30px;\n  padding: 5px 10px;\n  font-size: 12px;\n  line-height: 1.5;\n  border-radius: 3px;\n}\nselect.input-group-sm > .form-control,\nselect.input-group-sm > .input-group-addon,\nselect.input-group-sm > .input-group-btn > .btn {\n  height: 30px;\n  line-height: 30px;\n}\ntextarea.input-group-sm > .form-control,\ntextarea.input-group-sm > .input-group-addon,\ntextarea.input-group-sm > .input-group-btn > .btn,\nselect[multiple].input-group-sm > .form-control,\nselect[multiple].input-group-sm > .input-group-addon,\nselect[multiple].input-group-sm > .input-group-btn > .btn {\n  height: auto;\n}\n.input-group-addon,\n.input-group-btn,\n.input-group .form-control {\n  display: table-cell;\n}\n.input-group-addon:not(:first-child):not(:last-child),\n.input-group-btn:not(:first-child):not(:last-child),\n.input-group .form-control:not(:first-child):not(:last-child) {\n  border-radius: 0;\n}\n.input-group-addon,\n.input-group-btn {\n  width: 1%;\n  white-space: nowrap;\n  vertical-align: middle;\n}\n.input-group-addon {\n  padding: 6px 12px;\n  font-size: 14px;\n  font-weight: normal;\n  line-height: 1;\n  color: #555;\n  text-align: center;\n  background-color: #eee;\n  border: 1px solid #ccc;\n  border-radius: 4px;\n}\n.input-group-addon.input-sm {\n  padding: 5px 10px;\n  font-size: 12px;\n  border-radius: 3px;\n}\n.input-group-addon.input-lg {\n  padding: 10px 16px;\n  font-size: 18px;\n  border-radius: 6px;\n}\n.input-group-addon input[type=\"radio\"],\n.input-group-addon input[type=\"checkbox\"] {\n  margin-top: 0;\n}\n.input-group .form-control:first-child,\n.input-group-addon:first-child,\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group > .btn,\n.input-group-btn:first-child > .dropdown-toggle,\n.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),\n.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n.input-group-addon:first-child {\n  border-right: 0;\n}\n.input-group .form-control:last-child,\n.input-group-addon:last-child,\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group > .btn,\n.input-group-btn:last-child > .dropdown-toggle,\n.input-group-btn:first-child > .btn:not(:first-child),\n.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n.input-group-addon:last-child {\n  border-left: 0;\n}\n.input-group-btn {\n  position: relative;\n  font-size: 0;\n  white-space: nowrap;\n}\n.input-group-btn > .btn {\n  position: relative;\n}\n.input-group-btn > .btn + .btn {\n  margin-left: -1px;\n}\n.input-group-btn > .btn:hover,\n.input-group-btn > .btn:focus,\n.input-group-btn > .btn:active {\n  z-index: 2;\n}\n.input-group-btn:first-child > .btn,\n.input-group-btn:first-child > .btn-group {\n  margin-right: -1px;\n}\n.input-group-btn:last-child > .btn,\n.input-group-btn:last-child > .btn-group {\n  margin-left: -1px;\n}\n.nav {\n  padding-left: 0;\n  margin-bottom: 0;\n  list-style: none;\n}\n.nav > li {\n  position: relative;\n  display: block;\n}\n.nav > li > a {\n  position: relative;\n  display: block;\n  padding: 10px 15px;\n}\n.nav > li > a:hover,\n.nav > li > a:focus {\n  text-decoration: none;\n  background-color: #eee;\n}\n.nav > li.disabled > a {\n  color: #999;\n}\n.nav > li.disabled > a:hover,\n.nav > li.disabled > a:focus {\n  color: #999;\n  text-decoration: none;\n  cursor: not-allowed;\n  background-color: transparent;\n}\n.nav .open > a,\n.nav .open > a:hover,\n.nav .open > a:focus {\n  background-color: #eee;\n  border-color: #428bca;\n}\n.nav .nav-divider {\n  height: 1px;\n  margin: 9px 0;\n  overflow: hidden;\n  background-color: #e5e5e5;\n}\n.nav > li > a > img {\n  max-width: none;\n}\n.nav-tabs {\n  border-bottom: 1px solid #ddd;\n}\n.nav-tabs > li {\n  float: left;\n  margin-bottom: -1px;\n}\n.nav-tabs > li > a {\n  margin-right: 2px;\n  line-height: 1.42857143;\n  border: 1px solid transparent;\n  border-radius: 4px 4px 0 0;\n}\n.nav-tabs > li > a:hover {\n  border-color: #eee #eee #ddd;\n}\n.nav-tabs > li.active > a,\n.nav-tabs > li.active > a:hover,\n.nav-tabs > li.active > a:focus {\n  color: #555;\n  cursor: default;\n  background-color: #fff;\n  border: 1px solid #ddd;\n  border-bottom-color: transparent;\n}\n.nav-tabs.nav-justified {\n  width: 100%;\n  border-bottom: 0;\n}\n.nav-tabs.nav-justified > li {\n  float: none;\n}\n.nav-tabs.nav-justified > li > a {\n  margin-bottom: 5px;\n  text-align: center;\n}\n.nav-tabs.nav-justified > .dropdown .dropdown-menu {\n  top: auto;\n  left: auto;\n}\n@media (min-width: 768px) {\n  .nav-tabs.nav-justified > li {\n    display: table-cell;\n    width: 1%;\n  }\n  .nav-tabs.nav-justified > li > a {\n    margin-bottom: 0;\n  }\n}\n.nav-tabs.nav-justified > li > a {\n  margin-right: 0;\n  border-radius: 4px;\n}\n.nav-tabs.nav-justified > .active > a,\n.nav-tabs.nav-justified > .active > a:hover,\n.nav-tabs.nav-justified > .active > a:focus {\n  border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n  .nav-tabs.nav-justified > li > a {\n    border-bottom: 1px solid #ddd;\n    border-radius: 4px 4px 0 0;\n  }\n  .nav-tabs.nav-justified > .active > a,\n  .nav-tabs.nav-justified > .active > a:hover,\n  .nav-tabs.nav-justified > .active > a:focus {\n    border-bottom-color: #fff;\n  }\n}\n.nav-pills > li {\n  float: left;\n}\n.nav-pills > li > a {\n  border-radius: 4px;\n}\n.nav-pills > li + li {\n  margin-left: 2px;\n}\n.nav-pills > li.active > a,\n.nav-pills > li.active > a:hover,\n.nav-pills > li.active > a:focus {\n  color: #fff;\n  background-color: #428bca;\n}\n.nav-stacked > li {\n  float: none;\n}\n.nav-stacked > li + li {\n  margin-top: 2px;\n  margin-left: 0;\n}\n.nav-justified {\n  width: 100%;\n}\n.nav-justified > li {\n  float: none;\n}\n.nav-justified > li > a {\n  margin-bottom: 5px;\n  text-align: center;\n}\n.nav-justified > .dropdown .dropdown-menu {\n  top: auto;\n  left: auto;\n}\n@media (min-width: 768px) {\n  .nav-justified > li {\n    display: table-cell;\n    width: 1%;\n  }\n  .nav-justified > li > a {\n    margin-bottom: 0;\n  }\n}\n.nav-tabs-justified {\n  border-bottom: 0;\n}\n.nav-tabs-justified > li > a {\n  margin-right: 0;\n  border-radius: 4px;\n}\n.nav-tabs-justified > .active > a,\n.nav-tabs-justified > .active > a:hover,\n.nav-tabs-justified > .active > a:focus {\n  border: 1px solid #ddd;\n}\n@media (min-width: 768px) {\n  .nav-tabs-justified > li > a {\n    border-bottom: 1px solid #ddd;\n    border-radius: 4px 4px 0 0;\n  }\n  .nav-tabs-justified > .active > a,\n  .nav-tabs-justified > .active > a:hover,\n  .nav-tabs-justified > .active > a:focus {\n    border-bottom-color: #fff;\n  }\n}\n.tab-content > .tab-pane {\n  display: none;\n}\n.tab-content > .active {\n  display: block;\n}\n.nav-tabs .dropdown-menu {\n  margin-top: -1px;\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n}\n.navbar {\n  position: relative;\n  min-height: 50px;\n  margin-bottom: 20px;\n  border: 1px solid transparent;\n}\n@media (min-width: 768px) {\n  .navbar {\n    border-radius: 4px;\n  }\n}\n@media (min-width: 768px) {\n  .navbar-header {\n    float: left;\n  }\n}\n.navbar-collapse {\n  max-height: 340px;\n  padding-right: 15px;\n  padding-left: 15px;\n  overflow-x: visible;\n  -webkit-overflow-scrolling: touch;\n  border-top: 1px solid transparent;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);\n}\n.navbar-collapse.in {\n  overflow-y: auto;\n}\n@media (min-width: 768px) {\n  .navbar-collapse {\n    width: auto;\n    border-top: 0;\n    box-shadow: none;\n  }\n  .navbar-collapse.collapse {\n    display: block !important;\n    height: auto !important;\n    padding-bottom: 0;\n    overflow: visible !important;\n  }\n  .navbar-collapse.in {\n    overflow-y: visible;\n  }\n  .navbar-fixed-top .navbar-collapse,\n  .navbar-static-top .navbar-collapse,\n  .navbar-fixed-bottom .navbar-collapse {\n    padding-right: 0;\n    padding-left: 0;\n  }\n}\n.container > .navbar-header,\n.container-fluid > .navbar-header,\n.container > .navbar-collapse,\n.container-fluid > .navbar-collapse {\n  margin-right: -15px;\n  margin-left: -15px;\n}\n@media (min-width: 768px) {\n  .container > .navbar-header,\n  .container-fluid > .navbar-header,\n  .container > .navbar-collapse,\n  .container-fluid > .navbar-collapse {\n    margin-right: 0;\n    margin-left: 0;\n  }\n}\n.navbar-static-top {\n  z-index: 1000;\n  border-width: 0 0 1px;\n}\n@media (min-width: 768px) {\n  .navbar-static-top {\n    border-radius: 0;\n  }\n}\n.navbar-fixed-top,\n.navbar-fixed-bottom {\n  position: fixed;\n  right: 0;\n  left: 0;\n  z-index: 1030;\n}\n@media (min-width: 768px) {\n  .navbar-fixed-top,\n  .navbar-fixed-bottom {\n    border-radius: 0;\n  }\n}\n.navbar-fixed-top {\n  top: 0;\n  border-width: 0 0 1px;\n}\n.navbar-fixed-bottom {\n  bottom: 0;\n  margin-bottom: 0;\n  border-width: 1px 0 0;\n}\n.navbar-brand {\n  \n  height: 50px;\n  padding: 0px 0px 0px 10px;\n  font-size: 20px;\n  line-height: 20px;\n  font-weight: bold;\n}\n.navbar-brand:hover,\n.navbar-brand:focus {\n  text-decoration: none;\n}\n@media (min-width: 768px) {\n  .navbar > .container .navbar-brand,\n  .navbar > .container-fluid .navbar-brand {\n    margin-left: -15px;\n  }\n}\n.navbar-toggle {\n  position: relative;\n  float: right;\n  padding: 9px 10px;\n  margin-top: 8px;\n  margin-right: 15px;\n  margin-bottom: 8px;\n  background-color: transparent;\n  background-image: none;\n  border: 1px solid transparent;\n  border-radius: 4px;\n}\n.navbar-toggle:focus {\n  outline: none;\n}\n.navbar-toggle .icon-bar {\n  display: block;\n  width: 22px;\n  height: 2px;\n  border-radius: 1px;\n}\n.navbar-toggle .icon-bar + .icon-bar {\n  margin-top: 4px;\n}\n@media (min-width: 768px) {\n  .navbar-toggle {\n    display: none;\n  }\n}\n.navbar-nav {\n  margin: 7.5px -15px;\n}\n.navbar-nav > li > a {\n  padding-top: 10px;\n  padding-bottom: 10px;\n  line-height: 20px;\n}\n@media (max-width: 767px) {\n  .navbar-nav .open .dropdown-menu {\n    position: static;\n    float: none;\n    width: auto;\n    margin-top: 0;\n    background-color: transparent;\n    border: 0;\n    box-shadow: none;\n  }\n  .navbar-nav .open .dropdown-menu > li > a,\n  .navbar-nav .open .dropdown-menu .dropdown-header {\n    padding: 5px 15px 5px 25px;\n  }\n  .navbar-nav .open .dropdown-menu > li > a {\n    line-height: 20px;\n  }\n  .navbar-nav .open .dropdown-menu > li > a:hover,\n  .navbar-nav .open .dropdown-menu > li > a:focus {\n    background-image: none;\n  }\n}\n@media (min-width: 768px) {\n  .navbar-nav {\n    float: left;\n    margin: 0;\n  }\n  .navbar-nav > li {\n    float: left;\n  }\n  .navbar-nav > li > a {\n    padding-top: 15px;\n    padding-bottom: 15px;\n  }\n  .navbar-nav.navbar-right:last-child {\n    margin-right: -15px;\n  }\n}\n@media (min-width: 768px) {\n  .navbar-left {\n    float: left !important;\n  }\n  .navbar-right {\n    float: right !important;\n  }\n}\n.navbar-form {\n  padding: 10px 15px;\n  margin-top: 8px;\n  margin-right: -15px;\n  margin-bottom: 8px;\n  margin-left: -15px;\n  border-top: 1px solid transparent;\n  border-bottom: 1px solid transparent;\n  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);\n          box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);\n}\n@media (min-width: 768px) {\n  .navbar-form .form-group {\n    display: inline-block;\n    margin-bottom: 0;\n    vertical-align: middle;\n  }\n  .navbar-form .form-control {\n    display: inline-block;\n    width: auto;\n    vertical-align: middle;\n  }\n  .navbar-form .input-group > .form-control {\n    width: 100%;\n  }\n  .navbar-form .control-label {\n    margin-bottom: 0;\n    vertical-align: middle;\n  }\n  .navbar-form .radio,\n  .navbar-form .checkbox {\n    display: inline-block;\n    padding-left: 0;\n    margin-top: 0;\n    margin-bottom: 0;\n    vertical-align: middle;\n  }\n  .navbar-form .radio input[type=\"radio\"],\n  .navbar-form .checkbox input[type=\"checkbox\"] {\n    float: none;\n    margin-left: 0;\n  }\n  .navbar-form .has-feedback .form-control-feedback {\n    top: 0;\n  }\n}\n@media (max-width: 767px) {\n  .navbar-form .form-group {\n    margin-bottom: 5px;\n  }\n}\n@media (min-width: 768px) {\n  .navbar-form {\n    width: auto;\n    padding-top: 0;\n    padding-bottom: 0;\n    margin-right: 0;\n    margin-left: 0;\n    border: 0;\n    -webkit-box-shadow: none;\n            box-shadow: none;\n  }\n  .navbar-form.navbar-right:last-child {\n    margin-right: -15px;\n  }\n}\n.navbar-nav > li > .dropdown-menu {\n  margin-top: 0;\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n}\n.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {\n  border-bottom-right-radius: 0;\n  border-bottom-left-radius: 0;\n}\n.navbar-btn {\n  margin-top: 8px;\n  margin-bottom: 8px;\n}\n.navbar-btn.btn-sm {\n  margin-top: 10px;\n  margin-bottom: 10px;\n}\n.navbar-btn.btn-xs {\n  margin-top: 14px;\n  margin-bottom: 14px;\n}\n.navbar-text {\n  margin-top: 15px;\n  margin-bottom: 15px;\n}\n@media (min-width: 768px) {\n  .navbar-text {\n    float: left;\n    margin-right: 15px;\n    margin-left: 15px;\n  }\n  .navbar-text.navbar-right:last-child {\n    margin-right: 0;\n  }\n}\n.navbar-default {\n  background-color: #f8f8f8;\n  border-color: #e7e7e7;\n}\n.navbar-default .navbar-brand {\n  color: #777;\n}\n.navbar-default .navbar-brand:hover,\n.navbar-default .navbar-brand:focus {\n  color: #5e5e5e;\n  background-color: transparent;\n}\n.navbar-default .navbar-text {\n  color: #777;\n}\n.navbar-default .navbar-nav > li > a {\n  color: #777;\n}\n.navbar-default .navbar-nav > li > a:hover,\n.navbar-default .navbar-nav > li > a:focus {\n  color: #333;\n  background-color: transparent;\n}\n.navbar-default .navbar-nav > .active > a,\n.navbar-default .navbar-nav > .active > a:hover,\n.navbar-default .navbar-nav > .active > a:focus {\n  color: #555;\n  background-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .disabled > a,\n.navbar-default .navbar-nav > .disabled > a:hover,\n.navbar-default .navbar-nav > .disabled > a:focus {\n  color: #ccc;\n  background-color: transparent;\n}\n.navbar-default .navbar-toggle {\n  border-color: #ddd;\n}\n.navbar-default .navbar-toggle:hover,\n.navbar-default .navbar-toggle:focus {\n  background-color: #ddd;\n}\n.navbar-default .navbar-toggle .icon-bar {\n  background-color: #888;\n}\n.navbar-default .navbar-collapse,\n.navbar-default .navbar-form {\n  border-color: #e7e7e7;\n}\n.navbar-default .navbar-nav > .open > a,\n.navbar-default .navbar-nav > .open > a:hover,\n.navbar-default .navbar-nav > .open > a:focus {\n  color: #555;\n  background-color: #e7e7e7;\n}\n@media (max-width: 767px) {\n  .navbar-default .navbar-nav .open .dropdown-menu > li > a {\n    color: #777;\n  }\n  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,\n  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {\n    color: #333;\n    background-color: transparent;\n  }\n  .navbar-default .navbar-nav .open .dropdown-menu > .active > a,\n  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,\n  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {\n    color: #555;\n    background-color: #e7e7e7;\n  }\n  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,\n  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n    color: #ccc;\n    background-color: transparent;\n  }\n}\n.navbar-default .navbar-link {\n  color: #777;\n}\n.navbar-default .navbar-link:hover {\n  color: #333;\n}\n.navbar-inverse {\n  background-color: #222;\n  border-color: #080808;\n}\n.navbar-inverse .navbar-brand {\n  color: #999;\n}\n.navbar-inverse .navbar-brand:hover,\n.navbar-inverse .navbar-brand:focus {\n  color: #fff;\n  background-color: transparent;\n}\n.navbar-inverse .navbar-text {\n  color: #999;\n}\n.navbar-inverse .navbar-nav > li > a {\n  color: #999;\n}\n.navbar-inverse .navbar-nav > li > a:hover,\n.navbar-inverse .navbar-nav > li > a:focus {\n  color: #fff;\n  background-color: transparent;\n}\n.navbar-inverse .navbar-nav > .active > a,\n.navbar-inverse .navbar-nav > .active > a:hover,\n.navbar-inverse .navbar-nav > .active > a:focus {\n  color: #fff;\n  background-color: #080808;\n}\n.navbar-inverse .navbar-nav > .disabled > a,\n.navbar-inverse .navbar-nav > .disabled > a:hover,\n.navbar-inverse .navbar-nav > .disabled > a:focus {\n  color: #444;\n  background-color: transparent;\n}\n.navbar-inverse .navbar-toggle {\n  border-color: #333;\n}\n.navbar-inverse .navbar-toggle:hover,\n.navbar-inverse .navbar-toggle:focus {\n  background-color: #333;\n}\n.navbar-inverse .navbar-toggle .icon-bar {\n  background-color: #fff;\n}\n.navbar-inverse .navbar-collapse,\n.navbar-inverse .navbar-form {\n  border-color: #101010;\n}\n.navbar-inverse .navbar-nav > .open > a,\n.navbar-inverse .navbar-nav > .open > a:hover,\n.navbar-inverse .navbar-nav > .open > a:focus {\n  color: #fff;\n  background-color: #080808;\n}\n@media (max-width: 767px) {\n  .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {\n    border-color: #080808;\n  }\n  .navbar-inverse .navbar-nav .open .dropdown-menu .divider {\n    background-color: #080808;\n  }\n  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {\n    color: #999;\n  }\n  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,\n  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {\n    color: #fff;\n    background-color: transparent;\n  }\n  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,\n  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,\n  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {\n    color: #fff;\n    background-color: #080808;\n  }\n  .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,\n  .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,\n  .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {\n    color: #444;\n    background-color: transparent;\n  }\n}\n.navbar-inverse .navbar-link {\n  color: #999;\n}\n.navbar-inverse .navbar-link:hover {\n  color: #fff;\n}\n.breadcrumb {\n  padding: 8px 15px;\n  margin-bottom: 20px;\n  list-style: none;\n  background-color: #f5f5f5;\n  border-radius: 4px;\n}\n.breadcrumb > li {\n  display: inline-block;\n}\n.breadcrumb > li + li:before {\n  padding: 0 5px;\n  color: #ccc;\n  content: \"/\\00a0\";\n}\n.breadcrumb > .active {\n  color: #999;\n}\n.pagination {\n  display: inline-block;\n  padding-left: 0;\n  margin: 20px 0;\n  border-radius: 4px;\n}\n.pagination > li {\n  display: inline;\n}\n.pagination > li > a,\n.pagination > li > span {\n  position: relative;\n  float: left;\n  padding: 6px 12px;\n  margin-left: -1px;\n  line-height: 1.42857143;\n  color: #428bca;\n  text-decoration: none;\n  background-color: #fff;\n  border: 1px solid #ddd;\n}\n.pagination > li:first-child > a,\n.pagination > li:first-child > span {\n  margin-left: 0;\n  border-top-left-radius: 4px;\n  border-bottom-left-radius: 4px;\n}\n.pagination > li:last-child > a,\n.pagination > li:last-child > span {\n  border-top-right-radius: 4px;\n  border-bottom-right-radius: 4px;\n}\n.pagination > li > a:hover,\n.pagination > li > span:hover,\n.pagination > li > a:focus,\n.pagination > li > span:focus {\n  color: #2a6496;\n  background-color: #eee;\n  border-color: #ddd;\n}\n.pagination > .active > a,\n.pagination > .active > span,\n.pagination > .active > a:hover,\n.pagination > .active > span:hover,\n.pagination > .active > a:focus,\n.pagination > .active > span:focus {\n  z-index: 2;\n  color: #fff;\n  cursor: default;\n  background-color: #428bca;\n  border-color: #428bca;\n}\n.pagination > .disabled > span,\n.pagination > .disabled > span:hover,\n.pagination > .disabled > span:focus,\n.pagination > .disabled > a,\n.pagination > .disabled > a:hover,\n.pagination > .disabled > a:focus {\n  color: #999;\n  cursor: not-allowed;\n  background-color: #fff;\n  border-color: #ddd;\n}\n.pagination-lg > li > a,\n.pagination-lg > li > span {\n  padding: 10px 16px;\n  font-size: 18px;\n}\n.pagination-lg > li:first-child > a,\n.pagination-lg > li:first-child > span {\n  border-top-left-radius: 6px;\n  border-bottom-left-radius: 6px;\n}\n.pagination-lg > li:last-child > a,\n.pagination-lg > li:last-child > span {\n  border-top-right-radius: 6px;\n  border-bottom-right-radius: 6px;\n}\n.pagination-sm > li > a,\n.pagination-sm > li > span {\n  padding: 5px 10px;\n  font-size: 12px;\n}\n.pagination-sm > li:first-child > a,\n.pagination-sm > li:first-child > span {\n  border-top-left-radius: 3px;\n  border-bottom-left-radius: 3px;\n}\n.pagination-sm > li:last-child > a,\n.pagination-sm > li:last-child > span {\n  border-top-right-radius: 3px;\n  border-bottom-right-radius: 3px;\n}\n.pager {\n  padding-left: 0;\n  margin: 20px 0;\n  text-align: center;\n  list-style: none;\n}\n.pager li {\n  display: inline;\n}\n.pager li > a,\n.pager li > span {\n  display: inline-block;\n  padding: 5px 14px;\n  background-color: #fff;\n  border: 1px solid #ddd;\n  border-radius: 15px;\n}\n.pager li > a:hover,\n.pager li > a:focus {\n  text-decoration: none;\n  background-color: #eee;\n}\n.pager .next > a,\n.pager .next > span {\n  float: right;\n}\n.pager .previous > a,\n.pager .previous > span {\n  float: left;\n}\n.pager .disabled > a,\n.pager .disabled > a:hover,\n.pager .disabled > a:focus,\n.pager .disabled > span {\n  color: #999;\n  cursor: not-allowed;\n  background-color: #fff;\n}\n.label {\n  display: inline;\n  padding: .2em .6em .3em;\n  font-size: 75%;\n  font-weight: bold;\n  line-height: 1;\n  color: #fff;\n  text-align: center;\n  white-space: nowrap;\n  vertical-align: baseline;\n  border-radius: .25em;\n}\n.label[href]:hover,\n.label[href]:focus {\n  color: #fff;\n  text-decoration: none;\n  cursor: pointer;\n}\n.label:empty {\n  display: none;\n}\n.btn .label {\n  \n  top: -1px;\n}\n.label-default {\n  background-color: #999;\n}\n.label-default[href]:hover,\n.label-default[href]:focus {\n  background-color: #808080;\n}\n.label-primary {\n  background-color: #428bca;\n}\n.label-primary[href]:hover,\n.label-primary[href]:focus {\n  background-color: #3071a9;\n}\n.label-success {\n  background-color: #5cb85c;\n}\n.label-success[href]:hover,\n.label-success[href]:focus {\n  background-color: #449d44;\n}\n.label-info {\n  background-color: #5bc0de;\n}\n.label-info[href]:hover,\n.label-info[href]:focus {\n  background-color: #31b0d5;\n}\n.label-warning {\n  background-color: #f0ad4e;\n}\n.label-warning[href]:hover,\n.label-warning[href]:focus {\n  background-color: #ec971f;\n}\n.label-danger {\n  background-color: #d9534f;\n}\n.label-danger[href]:hover,\n.label-danger[href]:focus {\n  background-color: #c9302c;\n}\n.badge {\n  display: inline-block;\n  min-width: 10px;\n  padding: 3px 7px;\n  font-size: 12px;\n  font-weight: bold;\n  line-height: 1;\n  color: #fff;\n  text-align: center;\n  white-space: nowrap;\n  vertical-align: baseline;\n  background-color: #999;\n  border-radius: 10px;\n}\n.badge:empty {\n  display: none;\n}\n.btn .badge {\n  position: relative;\n  top: -1px;\n}\n.btn-xs .badge {\n  top: 0;\n  padding: 1px 5px;\n}\na.badge:hover,\na.badge:focus {\n  color: #fff;\n  text-decoration: none;\n  cursor: pointer;\n}\na.list-group-item.active > .badge,\n.nav-pills > .active > a > .badge {\n  color: #428bca;\n  background-color: #fff;\n}\n.nav-pills > li > a > .badge {\n  margin-left: 3px;\n}\n.jumbotron {\n  padding: 30px;\n  margin-bottom: 30px;\n  color: inherit;\n  background-color: #eee;\n}\n.jumbotron h1,\n.jumbotron .h1 {\n  color: inherit;\n}\n.jumbotron p {\n  margin-bottom: 15px;\n  font-size: 21px;\n  font-weight: 200;\n}\n.container .jumbotron {\n  border-radius: 6px;\n}\n.jumbotron .container {\n  max-width: 100%;\n}\n@media screen and (min-width: 768px) {\n  .jumbotron {\n    padding-top: 48px;\n    padding-bottom: 48px;\n  }\n  .container .jumbotron {\n    padding-right: 60px;\n    padding-left: 60px;\n  }\n  .jumbotron h1,\n  .jumbotron .h1 {\n    font-size: 63px;\n  }\n}\n.thumbnail {\n  display: block;\n  padding: 4px;\n  margin-bottom: 20px;\n  line-height: 1.42857143;\n  background-color: #fff;\n  border: 1px solid #ddd;\n  border-radius: 4px;\n  -webkit-transition: all .2s ease-in-out;\n          transition: all .2s ease-in-out;\n}\n.thumbnail > img,\n.thumbnail a > img {\n  margin-right: auto;\n  margin-left: auto;\n}\na.thumbnail:hover,\na.thumbnail:focus,\na.thumbnail.active {\n  border-color: #428bca;\n}\n.thumbnail .caption {\n  padding: 9px;\n  color: #333;\n}\n.alert {\n  padding: 15px;\n  margin-bottom: 20px;\n  border: 1px solid transparent;\n  border-radius: 4px;\n}\n.alert h4 {\n  margin-top: 0;\n  color: inherit;\n}\n.alert .alert-link {\n  font-weight: bold;\n}\n.alert > p,\n.alert > ul {\n  margin-bottom: 0;\n}\n.alert > p + p {\n  margin-top: 5px;\n}\n.alert-dismissable {\n  padding-right: 35px;\n}\n.alert-dismissable .close {\n  position: relative;\n  top: -2px;\n  right: -21px;\n  color: inherit;\n}\n.alert-success {\n  color: #3c763d;\n  background-color: #dff0d8;\n  border-color: #d6e9c6;\n}\n.alert-success hr {\n  border-top-color: #c9e2b3;\n}\n.alert-success .alert-link {\n  color: #2b542c;\n}\n.alert-info {\n  color: #31708f;\n  background-color: #d9edf7;\n  border-color: #bce8f1;\n}\n.alert-info hr {\n  border-top-color: #a6e1ec;\n}\n.alert-info .alert-link {\n  color: #245269;\n}\n.alert-warning {\n  color: #8a6d3b;\n  background-color: #fcf8e3;\n  border-color: #faebcc;\n}\n.alert-warning hr {\n  border-top-color: #f7e1b5;\n}\n.alert-warning .alert-link {\n  color: #66512c;\n}\n.alert-danger {\n  color: #a94442;\n  background-color: #f2dede;\n  border-color: #ebccd1;\n}\n.alert-danger hr {\n  border-top-color: #e4b9c0;\n}\n.alert-danger .alert-link {\n  color: #843534;\n}\n@-webkit-keyframes progress-bar-stripes {\n  from {\n    background-position: 40px 0;\n  }\n  to {\n    background-position: 0 0;\n  }\n}\n@keyframes progress-bar-stripes {\n  from {\n    background-position: 40px 0;\n  }\n  to {\n    background-position: 0 0;\n  }\n}\n.progress {\n  height: 20px;\n  margin-bottom: 20px;\n  overflow: hidden;\n  background-color: #f5f5f5;\n  border-radius: 4px;\n  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);\n          box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);\n}\n.progress-bar {\n  float: left;\n  width: 0;\n  height: 100%;\n  font-size: 12px;\n  line-height: 20px;\n  color: #fff;\n  text-align: center;\n  background-color: #428bca;\n  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);\n          box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);\n  -webkit-transition: width .6s ease;\n          transition: width .6s ease;\n}\n.progress-striped .progress-bar {\n  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n  background-image:         linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n  background-size: 40px 40px;\n}\n.progress.active .progress-bar {\n  -webkit-animation: progress-bar-stripes 2s linear infinite;\n          animation: progress-bar-stripes 2s linear infinite;\n}\n.progress-bar-success {\n  background-color: #5cb85c;\n}\n.progress-striped .progress-bar-success {\n  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n  background-image:         linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n}\n.progress-bar-info {\n  background-color: #5bc0de;\n}\n.progress-striped .progress-bar-info {\n  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n  background-image:         linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n}\n.progress-bar-warning {\n  background-color: #f0ad4e;\n}\n.progress-striped .progress-bar-warning {\n  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n  background-image:         linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n}\n.progress-bar-danger {\n  background-color: #d9534f;\n}\n.progress-striped .progress-bar-danger {\n  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n  background-image:         linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n}\n.media,\n.media-body {\n  overflow: hidden;\n  zoom: 1;\n}\n.media,\n.media .media {\n  margin-top: 15px;\n}\n.media:first-child {\n  margin-top: 0;\n}\n.media-object {\n  display: block;\n}\n.media-heading {\n  margin: 0 0 5px;\n}\n.media > .pull-left {\n  margin-right: 10px;\n}\n.media > .pull-right {\n  margin-left: 10px;\n}\n.media-list {\n  padding-left: 0;\n  list-style: none;\n}\n.list-group {\n  padding-left: 0;\n  margin-bottom: 20px;\n}\n.list-group-item {\n  position: relative;\n  display: block;\n  padding: 10px 15px;\n  margin-bottom: -1px;\n  background-color: #fff;\n  border: 1px solid #ddd;\n}\n.list-group-item:first-child {\n  border-top-left-radius: 4px;\n  border-top-right-radius: 4px;\n}\n.list-group-item:last-child {\n  margin-bottom: 0;\n  border-bottom-right-radius: 4px;\n  border-bottom-left-radius: 4px;\n}\n.list-group-item > .badge {\n  float: right;\n}\n.list-group-item > .badge + .badge {\n  margin-right: 5px;\n}\na.list-group-item {\n  color: #555;\n}\na.list-group-item .list-group-item-heading {\n  color: #333;\n}\na.list-group-item:hover,\na.list-group-item:focus {\n  text-decoration: none;\n  background-color: #f5f5f5;\n}\na.list-group-item.active,\na.list-group-item.active:hover,\na.list-group-item.active:focus {\n  z-index: 2;\n  color: #fff;\n  background-color: #428bca;\n  border-color: #428bca;\n}\na.list-group-item.active .list-group-item-heading,\na.list-group-item.active:hover .list-group-item-heading,\na.list-group-item.active:focus .list-group-item-heading {\n  color: inherit;\n}\na.list-group-item.active .list-group-item-text,\na.list-group-item.active:hover .list-group-item-text,\na.list-group-item.active:focus .list-group-item-text {\n  color: #e1edf7;\n}\n.list-group-item-success {\n  color: #3c763d;\n  background-color: #dff0d8;\n}\na.list-group-item-success {\n  color: #3c763d;\n}\na.list-group-item-success .list-group-item-heading {\n  color: inherit;\n}\na.list-group-item-success:hover,\na.list-group-item-success:focus {\n  color: #3c763d;\n  background-color: #d0e9c6;\n}\na.list-group-item-success.active,\na.list-group-item-success.active:hover,\na.list-group-item-success.active:focus {\n  color: #fff;\n  background-color: #3c763d;\n  border-color: #3c763d;\n}\n.list-group-item-info {\n  color: #31708f;\n  background-color: #d9edf7;\n}\na.list-group-item-info {\n  color: #31708f;\n}\na.list-group-item-info .list-group-item-heading {\n  color: inherit;\n}\na.list-group-item-info:hover,\na.list-group-item-info:focus {\n  color: #31708f;\n  background-color: #c4e3f3;\n}\na.list-group-item-info.active,\na.list-group-item-info.active:hover,\na.list-group-item-info.active:focus {\n  color: #fff;\n  background-color: #31708f;\n  border-color: #31708f;\n}\n.list-group-item-warning {\n  color: #8a6d3b;\n  background-color: #fcf8e3;\n}\na.list-group-item-warning {\n  color: #8a6d3b;\n}\na.list-group-item-warning .list-group-item-heading {\n  color: inherit;\n}\na.list-group-item-warning:hover,\na.list-group-item-warning:focus {\n  color: #8a6d3b;\n  background-color: #faf2cc;\n}\na.list-group-item-warning.active,\na.list-group-item-warning.active:hover,\na.list-group-item-warning.active:focus {\n  color: #fff;\n  background-color: #8a6d3b;\n  border-color: #8a6d3b;\n}\n.list-group-item-danger {\n  color: #a94442;\n  background-color: #f2dede;\n}\na.list-group-item-danger {\n  color: #a94442;\n}\na.list-group-item-danger .list-group-item-heading {\n  color: inherit;\n}\na.list-group-item-danger:hover,\na.list-group-item-danger:focus {\n  color: #a94442;\n  background-color: #ebcccc;\n}\na.list-group-item-danger.active,\na.list-group-item-danger.active:hover,\na.list-group-item-danger.active:focus {\n  color: #fff;\n  background-color: #a94442;\n  border-color: #a94442;\n}\n.list-group-item-heading {\n  margin-top: 0;\n  margin-bottom: 5px;\n}\n.list-group-item-text {\n  margin-bottom: 0;\n  line-height: 1.3;\n}\n.panel {\n  margin-bottom: 20px;\n  background-color: #fff;\n  border: 1px solid transparent;\n  border-radius: 4px;\n  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);\n          box-shadow: 0 1px 1px rgba(0, 0, 0, .05);\n}\n.panel-body {\n  padding: 15px;\n}\n.panel-heading {\n  padding: 10px 15px;\n  border-bottom: 1px solid transparent;\n  border-top-left-radius: 3px;\n  border-top-right-radius: 3px;\n}\n.panel-heading > .dropdown .dropdown-toggle {\n  color: inherit;\n}\n.panel-title {\n  margin-top: 0;\n  margin-bottom: 0;\n  font-size: 16px;\n  color: inherit;\n}\n.panel-title > a {\n  color: inherit;\n}\n.panel-footer {\n  padding: 10px 15px;\n  background-color: #f5f5f5;\n  border-top: 1px solid #ddd;\n  border-bottom-right-radius: 3px;\n  border-bottom-left-radius: 3px;\n}\n.panel > .list-group {\n  margin-bottom: 0;\n}\n.panel > .list-group .list-group-item {\n  border-width: 1px 0;\n  border-radius: 0;\n}\n.panel > .list-group:first-child .list-group-item:first-child {\n  border-top: 0;\n  border-top-left-radius: 3px;\n  border-top-right-radius: 3px;\n}\n.panel > .list-group:last-child .list-group-item:last-child {\n  border-bottom: 0;\n  border-bottom-right-radius: 3px;\n  border-bottom-left-radius: 3px;\n}\n.panel-heading + .list-group .list-group-item:first-child {\n  border-top-width: 0;\n}\n.panel > .table,\n.panel > .table-responsive > .table {\n  margin-bottom: 0;\n}\n.panel > .table:first-child,\n.panel > .table-responsive:first-child > .table:first-child {\n  border-top-left-radius: 3px;\n  border-top-right-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {\n  border-top-left-radius: 3px;\n}\n.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,\n.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,\n.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,\n.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {\n  border-top-right-radius: 3px;\n}\n.panel > .table:last-child,\n.panel > .table-responsive:last-child > .table:last-child {\n  border-bottom-right-radius: 3px;\n  border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {\n  border-bottom-left-radius: 3px;\n}\n.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,\n.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,\n.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,\n.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {\n  border-bottom-right-radius: 3px;\n}\n.panel > .panel-body + .table,\n.panel > .panel-body + .table-responsive {\n  border-top: 1px solid #ddd;\n}\n.panel > .table > tbody:first-child > tr:first-child th,\n.panel > .table > tbody:first-child > tr:first-child td {\n  border-top: 0;\n}\n.panel > .table-bordered,\n.panel > .table-responsive > .table-bordered {\n  border: 0;\n}\n.panel > .table-bordered > thead > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,\n.panel > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,\n.panel > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,\n.panel > .table-bordered > thead > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,\n.panel > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,\n.panel > .table-bordered > tfoot > tr > td:first-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {\n  border-left: 0;\n}\n.panel > .table-bordered > thead > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,\n.panel > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,\n.panel > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,\n.panel > .table-bordered > thead > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,\n.panel > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,\n.panel > .table-bordered > tfoot > tr > td:last-child,\n.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {\n  border-right: 0;\n}\n.panel > .table-bordered > thead > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,\n.panel > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,\n.panel > .table-bordered > thead > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,\n.panel > .table-bordered > tbody > tr:first-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {\n  border-bottom: 0;\n}\n.panel > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,\n.panel > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,\n.panel > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,\n.panel > .table-bordered > tfoot > tr:last-child > th,\n.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {\n  border-bottom: 0;\n}\n.panel > .table-responsive {\n  margin-bottom: 0;\n  border: 0;\n}\n.panel-group {\n  margin-bottom: 20px;\n}\n.panel-group .panel {\n  margin-bottom: 0;\n  overflow: hidden;\n  border-radius: 4px;\n}\n.panel-group .panel + .panel {\n  margin-top: 5px;\n}\n.panel-group .panel-heading {\n  border-bottom: 0;\n}\n.panel-group .panel-heading + .panel-collapse .panel-body {\n  border-top: 1px solid #ddd;\n}\n.panel-group .panel-footer {\n  border-top: 0;\n}\n.panel-group .panel-footer + .panel-collapse .panel-body {\n  border-bottom: 1px solid #ddd;\n}\n.panel-default {\n  border-color: #ddd;\n}\n.panel-default > .panel-heading {\n  color: #333;\n  background-color: #f5f5f5;\n  border-color: #ddd;\n}\n.panel-default > .panel-heading + .panel-collapse .panel-body {\n  border-top-color: #ddd;\n}\n.panel-default > .panel-footer + .panel-collapse .panel-body {\n  border-bottom-color: #ddd;\n}\n.panel-primary {\n  border-color: #428bca;\n}\n.panel-primary > .panel-heading {\n  color: #fff;\n  background-color: #428bca;\n  border-color: #428bca;\n}\n.panel-primary > .panel-heading + .panel-collapse .panel-body {\n  border-top-color: #428bca;\n}\n.panel-primary > .panel-footer + .panel-collapse .panel-body {\n  border-bottom-color: #428bca;\n}\n.panel-success {\n  border-color: #d6e9c6;\n}\n.panel-success > .panel-heading {\n  color: #3c763d;\n  background-color: #dff0d8;\n  border-color: #d6e9c6;\n}\n.panel-success > .panel-heading + .panel-collapse .panel-body {\n  border-top-color: #d6e9c6;\n}\n.panel-success > .panel-footer + .panel-collapse .panel-body {\n  border-bottom-color: #d6e9c6;\n}\n.panel-info {\n  border-color: #bce8f1;\n}\n.panel-info > .panel-heading {\n  color: #31708f;\n  background-color: #d9edf7;\n  border-color: #bce8f1;\n}\n.panel-info > .panel-heading + .panel-collapse .panel-body {\n  border-top-color: #bce8f1;\n}\n.panel-info > .panel-footer + .panel-collapse .panel-body {\n  border-bottom-color: #bce8f1;\n}\n.panel-warning {\n  border-color: #faebcc;\n}\n.panel-warning > .panel-heading {\n  color: #8a6d3b;\n  background-color: #fcf8e3;\n  border-color: #faebcc;\n}\n.panel-warning > .panel-heading + .panel-collapse .panel-body {\n  border-top-color: #faebcc;\n}\n.panel-warning > .panel-footer + .panel-collapse .panel-body {\n  border-bottom-color: #faebcc;\n}\n.panel-danger {\n  border-color: #ebccd1;\n}\n.panel-danger > .panel-heading {\n  color: #a94442;\n  background-color: #f2dede;\n  border-color: #ebccd1;\n}\n.panel-danger > .panel-heading + .panel-collapse .panel-body {\n  border-top-color: #ebccd1;\n}\n.panel-danger > .panel-footer + .panel-collapse .panel-body {\n  border-bottom-color: #ebccd1;\n}\n.well {\n  min-height: 20px;\n  padding: 19px;\n  margin-bottom: 20px;\n  background-color: #f5f5f5;\n  border: 1px solid #e3e3e3;\n  border-radius: 4px;\n  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);\n          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);\n}\n.well blockquote {\n  border-color: #ddd;\n  border-color: rgba(0, 0, 0, .15);\n}\n.well-lg {\n  padding: 24px;\n  border-radius: 6px;\n}\n.well-sm {\n  padding: 9px;\n  border-radius: 3px;\n}\n.close {\n  float: right;\n  font-size: 21px;\n  font-weight: bold;\n  line-height: 1;\n  color: #000;\n  text-shadow: 0 1px 0 #fff;\n  filter: alpha(opacity=20);\n  opacity: .2;\n}\n.close:hover,\n.close:focus {\n  color: #000;\n  text-decoration: none;\n  cursor: pointer;\n  filter: alpha(opacity=50);\n  opacity: .5;\n}\nbutton.close {\n  -webkit-appearance: none;\n  padding: 0;\n  cursor: pointer;\n  background: transparent;\n  border: 0;\n}\n.modal-open {\n  overflow: hidden;\n}\n.modal {\n  position: fixed;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 1050;\n  display: none;\n  overflow: auto;\n  overflow-y: scroll;\n  -webkit-overflow-scrolling: touch;\n  outline: 0;\n}\n.modal.fade .modal-dialog {\n  -webkit-transition: -webkit-transform .3s ease-out;\n     -moz-transition:    -moz-transform .3s ease-out;\n       -o-transition:      -o-transform .3s ease-out;\n          transition:         transform .3s ease-out;\n  -webkit-transform: translate(0, -25%);\n      -ms-transform: translate(0, -25%);\n          transform: translate(0, -25%);\n}\n.modal.in .modal-dialog {\n  -webkit-transform: translate(0, 0);\n      -ms-transform: translate(0, 0);\n          transform: translate(0, 0);\n}\n.modal-dialog {\n  position: relative;\n  width: auto;\n  margin: 10px;\n}\n.modal-content {\n  position: relative;\n  background-color: #fff;\n  background-clip: padding-box;\n  border: 1px solid #999;\n  border: 1px solid rgba(0, 0, 0, .2);\n  border-radius: 6px;\n  outline: none;\n  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);\n          box-shadow: 0 3px 9px rgba(0, 0, 0, .5);\n}\n.modal-backdrop {\n  position: fixed;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 1040;\n  background-color: #000;\n}\n.modal-backdrop.fade {\n  filter: alpha(opacity=0);\n  opacity: 0;\n}\n.modal-backdrop.in {\n  filter: alpha(opacity=50);\n  opacity: .5;\n}\n.modal-header {\n  min-height: 16.42857143px;\n  padding: 15px;\n  border-bottom: 1px solid #e5e5e5;\n}\n.modal-header .close {\n  margin-top: -2px;\n}\n.modal-title {\n  margin: 0;\n  line-height: 1.42857143;\n}\n.modal-body {\n  position: relative;\n  padding: 20px;\n}\n.modal-footer {\n  padding: 19px 20px 20px;\n  margin-top: 15px;\n  text-align: right;\n  border-top: 1px solid #e5e5e5;\n}\n.modal-footer .btn + .btn {\n  margin-bottom: 0;\n  margin-left: 5px;\n}\n.modal-footer .btn-group .btn + .btn {\n  margin-left: -1px;\n}\n.modal-footer .btn-block + .btn-block {\n  margin-left: 0;\n}\n@media (min-width: 768px) {\n  .modal-dialog {\n    width: 600px;\n    margin: 30px auto;\n  }\n  .modal-content {\n    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);\n            box-shadow: 0 5px 15px rgba(0, 0, 0, .5);\n  }\n  .modal-sm {\n    width: 300px;\n  }\n}\n@media (min-width: 992px) {\n  .modal-lg {\n    width: 900px;\n  }\n}\n.tooltip {\n  position: absolute;\n  z-index: 1030;\n  display: block;\n  font-size: 12px;\n  line-height: 1.4;\n  visibility: visible;\n  filter: alpha(opacity=0);\n  opacity: 0;\n}\n.tooltip.in {\n  filter: alpha(opacity=90);\n  opacity: .9;\n}\n.tooltip.top {\n  padding: 5px 0;\n  margin-top: -3px;\n}\n.tooltip.right {\n  padding: 0 5px;\n  margin-left: 3px;\n}\n.tooltip.bottom {\n  padding: 5px 0;\n  margin-top: 3px;\n}\n.tooltip.left {\n  padding: 0 5px;\n  margin-left: -3px;\n}\n.tooltip-inner {\n  max-width: 200px;\n  padding: 3px 8px;\n  color: #fff;\n  text-align: center;\n  text-decoration: none;\n  background-color: #000;\n  border-radius: 4px;\n}\n.tooltip-arrow {\n  position: absolute;\n  width: 0;\n  height: 0;\n  border-color: transparent;\n  border-style: solid;\n}\n.tooltip.top .tooltip-arrow {\n  bottom: 0;\n  left: 50%;\n  margin-left: -5px;\n  border-width: 5px 5px 0;\n  border-top-color: #000;\n}\n.tooltip.top-left .tooltip-arrow {\n  bottom: 0;\n  left: 5px;\n  border-width: 5px 5px 0;\n  border-top-color: #000;\n}\n.tooltip.top-right .tooltip-arrow {\n  right: 5px;\n  bottom: 0;\n  border-width: 5px 5px 0;\n  border-top-color: #000;\n}\n.tooltip.right .tooltip-arrow {\n  top: 50%;\n  left: 0;\n  margin-top: -5px;\n  border-width: 5px 5px 5px 0;\n  border-right-color: #000;\n}\n.tooltip.left .tooltip-arrow {\n  top: 50%;\n  right: 0;\n  margin-top: -5px;\n  border-width: 5px 0 5px 5px;\n  border-left-color: #000;\n}\n.tooltip.bottom .tooltip-arrow {\n  top: 0;\n  left: 50%;\n  margin-left: -5px;\n  border-width: 0 5px 5px;\n  border-bottom-color: #000;\n}\n.tooltip.bottom-left .tooltip-arrow {\n  top: 0;\n  left: 5px;\n  border-width: 0 5px 5px;\n  border-bottom-color: #000;\n}\n.tooltip.bottom-right .tooltip-arrow {\n  top: 0;\n  right: 5px;\n  border-width: 0 5px 5px;\n  border-bottom-color: #000;\n}\n.popover {\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: 1010;\n  display: none;\n  max-width: 276px;\n  padding: 1px;\n  text-align: left;\n  white-space: normal;\n  background-color: #fff;\n  background-clip: padding-box;\n  border: 1px solid #ccc;\n  border: 1px solid rgba(0, 0, 0, .2);\n  border-radius: 6px;\n  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);\n          box-shadow: 0 5px 10px rgba(0, 0, 0, .2);\n}\n.popover.top {\n  margin-top: -10px;\n}\n.popover.right {\n  margin-left: 10px;\n}\n.popover.bottom {\n  margin-top: 10px;\n}\n.popover.left {\n  margin-left: -10px;\n}\n.popover-title {\n  padding: 8px 14px;\n  margin: 0;\n  font-size: 14px;\n  font-weight: normal;\n  line-height: 18px;\n  background-color: #f7f7f7;\n  border-bottom: 1px solid #ebebeb;\n  border-radius: 5px 5px 0 0;\n}\n.popover-content {\n  padding: 9px 14px;\n}\n.popover > .arrow,\n.popover > .arrow:after {\n  position: absolute;\n  display: block;\n  width: 0;\n  height: 0;\n  border-color: transparent;\n  border-style: solid;\n}\n.popover > .arrow {\n  border-width: 11px;\n}\n.popover > .arrow:after {\n  content: \"\";\n  border-width: 10px;\n}\n.popover.top > .arrow {\n  bottom: -11px;\n  left: 50%;\n  margin-left: -11px;\n  border-top-color: #999;\n  border-top-color: rgba(0, 0, 0, .25);\n  border-bottom-width: 0;\n}\n.popover.top > .arrow:after {\n  bottom: 1px;\n  margin-left: -10px;\n  content: \" \";\n  border-top-color: #fff;\n  border-bottom-width: 0;\n}\n.popover.right > .arrow {\n  top: 50%;\n  left: -11px;\n  margin-top: -11px;\n  border-right-color: #999;\n  border-right-color: rgba(0, 0, 0, .25);\n  border-left-width: 0;\n}\n.popover.right > .arrow:after {\n  bottom: -10px;\n  left: 1px;\n  content: \" \";\n  border-right-color: #fff;\n  border-left-width: 0;\n}\n.popover.bottom > .arrow {\n  top: -11px;\n  left: 50%;\n  margin-left: -11px;\n  border-top-width: 0;\n  border-bottom-color: #999;\n  border-bottom-color: rgba(0, 0, 0, .25);\n}\n.popover.bottom > .arrow:after {\n  top: 1px;\n  margin-left: -10px;\n  content: \" \";\n  border-top-width: 0;\n  border-bottom-color: #fff;\n}\n.popover.left > .arrow {\n  top: 50%;\n  right: -11px;\n  margin-top: -11px;\n  border-right-width: 0;\n  border-left-color: #999;\n  border-left-color: rgba(0, 0, 0, .25);\n}\n.popover.left > .arrow:after {\n  right: 1px;\n  bottom: -10px;\n  content: \" \";\n  border-right-width: 0;\n  border-left-color: #fff;\n}\n.carousel {\n  position: relative;\n}\n.carousel-inner {\n  position: relative;\n  width: 100%;\n  overflow: hidden;\n}\n.carousel-inner > .item {\n  position: relative;\n  display: none;\n  -webkit-transition: .6s ease-in-out left;\n          transition: .6s ease-in-out left;\n}\n.carousel-inner > .item > img,\n.carousel-inner > .item > a > img {\n  line-height: 1;\n}\n.carousel-inner > .active,\n.carousel-inner > .next,\n.carousel-inner > .prev {\n  display: block;\n}\n.carousel-inner > .active {\n  left: 0;\n}\n.carousel-inner > .next,\n.carousel-inner > .prev {\n  position: absolute;\n  top: 0;\n  width: 100%;\n}\n.carousel-inner > .next {\n  left: 100%;\n}\n.carousel-inner > .prev {\n  left: -100%;\n}\n.carousel-inner > .next.left,\n.carousel-inner > .prev.right {\n  left: 0;\n}\n.carousel-inner > .active.left {\n  left: -100%;\n}\n.carousel-inner > .active.right {\n  left: 100%;\n}\n.carousel-control {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  width: 15%;\n  font-size: 20px;\n  color: #fff;\n  text-align: center;\n  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);\n  filter: alpha(opacity=50);\n  opacity: .5;\n}\n.carousel-control.left {\n  background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, .5) 0%), color-stop(rgba(0, 0, 0, .0001) 100%));\n  background-image:         linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);\n  background-repeat: repeat-x;\n}\n.carousel-control.right {\n  right: 0;\n  left: auto;\n  background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, .0001) 0%), color-stop(rgba(0, 0, 0, .5) 100%));\n  background-image:         linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);\n  background-repeat: repeat-x;\n}\n.carousel-control:hover,\n.carousel-control:focus {\n  color: #fff;\n  text-decoration: none;\n  filter: alpha(opacity=90);\n  outline: none;\n  opacity: .9;\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-left,\n.carousel-control .glyphicon-chevron-right {\n  \n  top: 50%;\n  z-index: 5;\n  \n}\n.carousel-control .icon-prev,\n.carousel-control .glyphicon-chevron-left {\n  left: 50%;\n}\n.carousel-control .icon-next,\n.carousel-control .glyphicon-chevron-right {\n  right: 50%;\n}\n.carousel-control .icon-prev,\n.carousel-control .icon-next {\n  width: 20px;\n  height: 20px;\n  margin-top: -10px;\n  margin-left: -10px;\n  font-family: serif;\n}\n.carousel-control .icon-prev:before {\n  content: '\\2039';\n}\n.carousel-control .icon-next:before {\n  content: '\\203a';\n}\n.carousel-indicators {\n  position: absolute;\n  bottom: 10px;\n  left: 50%;\n  z-index: 15;\n  width: 60%;\n  padding-left: 0;\n  margin-left: -30%;\n  text-align: center;\n  list-style: none;\n}\n.carousel-indicators li {\n  display: inline-block;\n  width: 10px;\n  height: 10px;\n  margin: 1px;\n  text-indent: -999px;\n  cursor: pointer;\n  background-color: #000 \\9;\n  background-color: rgba(0, 0, 0, 0);\n  border: 1px solid #fff;\n  border-radius: 10px;\n}\n.carousel-indicators .active {\n  width: 12px;\n  height: 12px;\n  margin: 0;\n  background-color: #fff;\n}\n.carousel-caption {\n  position: absolute;\n  right: 15%;\n  bottom: 20px;\n  left: 15%;\n  z-index: 10;\n  padding-top: 20px;\n  padding-bottom: 20px;\n  color: #fff;\n  text-align: center;\n  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);\n}\n.carousel-caption .btn {\n  text-shadow: none;\n}\n@media screen and (min-width: 768px) {\n  .carousel-control .glyphicon-chevron-left,\n  .carousel-control .glyphicon-chevron-right,\n  .carousel-control .icon-prev,\n  .carousel-control .icon-next {\n    width: 30px;\n    height: 30px;\n    margin-top: -15px;\n    margin-left: -15px;\n    font-size: 30px;\n  }\n  .carousel-caption {\n    right: 20%;\n    left: 20%;\n    padding-bottom: 30px;\n  }\n  .carousel-indicators {\n    bottom: 20px;\n  }\n}\n.clearfix:before,\n.clearfix:after,\n.container:before,\n.container:after,\n.container-fluid:before,\n.container-fluid:after,\n.row:before,\n.row:after,\n.form-horizontal .form-group:before,\n.form-horizontal .form-group:after,\n.btn-toolbar:before,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:before,\n.btn-group-vertical > .btn-group:after,\n.nav:before,\n.nav:after,\n.navbar:before,\n.navbar:after,\n.navbar-header:before,\n.navbar-header:after,\n.navbar-collapse:before,\n.navbar-collapse:after,\n.pager:before,\n.pager:after,\n.panel-body:before,\n.panel-body:after,\n.modal-footer:before,\n.modal-footer:after {\n  display: table;\n  content: \" \";\n}\n.clearfix:after,\n.container:after,\n.container-fluid:after,\n.row:after,\n.form-horizontal .form-group:after,\n.btn-toolbar:after,\n.btn-group-vertical > .btn-group:after,\n.nav:after,\n.navbar:after,\n.navbar-header:after,\n.navbar-collapse:after,\n.pager:after,\n.panel-body:after,\n.modal-footer:after {\n  clear: both;\n}\n.center-block {\n  display: block;\n  margin-right: auto;\n  margin-left: auto;\n}\n.pull-right {\n  float: right !important;\n}\n.pull-left {\n  float: left !important;\n}\n.hide {\n  display: none !important;\n}\n.show {\n  display: block !important;\n}\n.invisible {\n  visibility: hidden;\n}\n.text-hide {\n  font: 0/0 a;\n  color: transparent;\n  text-shadow: none;\n  background-color: transparent;\n  border: 0;\n}\n.hidden {\n  display: none !important;\n  visibility: hidden !important;\n}\n.affix {\n  position: fixed;\n}\n@-ms-viewport {\n  width: device-width;\n}\n.visible-xs,\n.visible-sm,\n.visible-md,\n.visible-lg {\n  display: none !important;\n}\n@media (max-width: 767px) {\n  .visible-xs {\n    display: block !important;\n  }\n  table.visible-xs {\n    display: table;\n  }\n  tr.visible-xs {\n    display: table-row !important;\n  }\n  th.visible-xs,\n  td.visible-xs {\n    display: table-cell !important;\n  }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n  .visible-sm {\n    display: block !important;\n  }\n  table.visible-sm {\n    display: table;\n  }\n  tr.visible-sm {\n    display: table-row !important;\n  }\n  th.visible-sm,\n  td.visible-sm {\n    display: table-cell !important;\n  }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n  .visible-md {\n    display: block !important;\n  }\n  table.visible-md {\n    display: table;\n  }\n  tr.visible-md {\n    display: table-row !important;\n  }\n  th.visible-md,\n  td.visible-md {\n    display: table-cell !important;\n  }\n}\n@media (min-width: 1200px) {\n  .visible-lg {\n    display: block !important;\n  }\n  table.visible-lg {\n    display: table;\n  }\n  tr.visible-lg {\n    display: table-row !important;\n  }\n  th.visible-lg,\n  td.visible-lg {\n    display: table-cell !important;\n  }\n}\n@media (max-width: 767px) {\n  .hidden-xs {\n    display: none !important;\n  }\n}\n@media (min-width: 768px) and (max-width: 991px) {\n  .hidden-sm {\n    display: none !important;\n  }\n}\n@media (min-width: 992px) and (max-width: 1199px) {\n  .hidden-md {\n    display: none !important;\n  }\n}\n@media (min-width: 1200px) {\n  .hidden-lg {\n    display: none !important;\n  }\n}\n.visible-print {\n  display: none !important;\n}\n@media print {\n  .visible-print {\n    display: block !important;\n  }\n  table.visible-print {\n    display: table;\n  }\n  tr.visible-print {\n    display: table-row !important;\n  }\n  th.visible-print,\n  td.visible-print {\n    display: table-cell !important;\n  }\n}\n@media print {\n  .hidden-print {\n    display: none !important;\n  }\n}\n/*# sourceMappingURL=bootstrap.css.map */\n"
  },
  {
    "path": "style/lib/bootstrap/js/bootstrap.js",
    "content": "/*!\n * Bootstrap v3.1.1 (http://getbootstrap.com)\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\nif (typeof jQuery === 'undefined') { throw new Error('Bootstrap\\'s JavaScript requires jQuery') }\n\n/* ========================================================================\n * Bootstrap: transition.js v3.1.1\n * http://getbootstrap.com/javascript/#transitions\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)\n  // ============================================================\n\n  function transitionEnd() {\n    var el = document.createElement('bootstrap')\n\n    var transEndEventNames = {\n      'WebkitTransition' : 'webkitTransitionEnd',\n      'MozTransition'    : 'transitionend',\n      'OTransition'      : 'oTransitionEnd otransitionend',\n      'transition'       : 'transitionend'\n    }\n\n    for (var name in transEndEventNames) {\n      if (el.style[name] !== undefined) {\n        return { end: transEndEventNames[name] }\n      }\n    }\n\n    return false // explicit for ie8 (  ._.)\n  }\n\n  // http://blog.alexmaccaw.com/css-transitions\n  $.fn.emulateTransitionEnd = function (duration) {\n    var called = false, $el = this\n    $(this).one($.support.transition.end, function () { called = true })\n    var callback = function () { if (!called) $($el).trigger($.support.transition.end) }\n    setTimeout(callback, duration)\n    return this\n  }\n\n  $(function () {\n    $.support.transition = transitionEnd()\n  })\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: alert.js v3.1.1\n * http://getbootstrap.com/javascript/#alerts\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // ALERT CLASS DEFINITION\n  // ======================\n\n  var dismiss = '[data-dismiss=\"alert\"]'\n  var Alert   = function (el) {\n    $(el).on('click', dismiss, this.close)\n  }\n\n  Alert.prototype.close = function (e) {\n    var $this    = $(this)\n    var selector = $this.attr('data-target')\n\n    if (!selector) {\n      selector = $this.attr('href')\n      selector = selector && selector.replace(/.*(?=#[^\\s]*$)/, '') // strip for ie7\n    }\n\n    var $parent = $(selector)\n\n    if (e) e.preventDefault()\n\n    if (!$parent.length) {\n      $parent = $this.hasClass('alert') ? $this : $this.parent()\n    }\n\n    $parent.trigger(e = $.Event('close.bs.alert'))\n\n    if (e.isDefaultPrevented()) return\n\n    $parent.removeClass('in')\n\n    function removeElement() {\n      $parent.trigger('closed.bs.alert').remove()\n    }\n\n    $.support.transition && $parent.hasClass('fade') ?\n      $parent\n        .one($.support.transition.end, removeElement)\n        .emulateTransitionEnd(150) :\n      removeElement()\n  }\n\n\n  // ALERT PLUGIN DEFINITION\n  // =======================\n\n  var old = $.fn.alert\n\n  $.fn.alert = function (option) {\n    return this.each(function () {\n      var $this = $(this)\n      var data  = $this.data('bs.alert')\n\n      if (!data) $this.data('bs.alert', (data = new Alert(this)))\n      if (typeof option == 'string') data[option].call($this)\n    })\n  }\n\n  $.fn.alert.Constructor = Alert\n\n\n  // ALERT NO CONFLICT\n  // =================\n\n  $.fn.alert.noConflict = function () {\n    $.fn.alert = old\n    return this\n  }\n\n\n  // ALERT DATA-API\n  // ==============\n\n  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: button.js v3.1.1\n * http://getbootstrap.com/javascript/#buttons\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // BUTTON PUBLIC CLASS DEFINITION\n  // ==============================\n\n  var Button = function (element, options) {\n    this.$element  = $(element)\n    this.options   = $.extend({}, Button.DEFAULTS, options)\n    this.isLoading = false\n  }\n\n  Button.DEFAULTS = {\n    loadingText: 'loading...'\n  }\n\n  Button.prototype.setState = function (state) {\n    var d    = 'disabled'\n    var $el  = this.$element\n    var val  = $el.is('input') ? 'val' : 'html'\n    var data = $el.data()\n\n    state = state + 'Text'\n\n    if (!data.resetText) $el.data('resetText', $el[val]())\n\n    $el[val](data[state] || this.options[state])\n\n    // push to event loop to allow forms to submit\n    setTimeout($.proxy(function () {\n      if (state == 'loadingText') {\n        this.isLoading = true\n        $el.addClass(d).attr(d, d)\n      } else if (this.isLoading) {\n        this.isLoading = false\n        $el.removeClass(d).removeAttr(d)\n      }\n    }, this), 0)\n  }\n\n  Button.prototype.toggle = function () {\n    var changed = true\n    var $parent = this.$element.closest('[data-toggle=\"buttons\"]')\n\n    if ($parent.length) {\n      var $input = this.$element.find('input')\n      if ($input.prop('type') == 'radio') {\n        if ($input.prop('checked') && this.$element.hasClass('active')) changed = false\n        else $parent.find('.active').removeClass('active')\n      }\n      if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')\n    }\n\n    if (changed) this.$element.toggleClass('active')\n  }\n\n\n  // BUTTON PLUGIN DEFINITION\n  // ========================\n\n  var old = $.fn.button\n\n  $.fn.button = function (option) {\n    return this.each(function () {\n      var $this   = $(this)\n      var data    = $this.data('bs.button')\n      var options = typeof option == 'object' && option\n\n      if (!data) $this.data('bs.button', (data = new Button(this, options)))\n\n      if (option == 'toggle') data.toggle()\n      else if (option) data.setState(option)\n    })\n  }\n\n  $.fn.button.Constructor = Button\n\n\n  // BUTTON NO CONFLICT\n  // ==================\n\n  $.fn.button.noConflict = function () {\n    $.fn.button = old\n    return this\n  }\n\n\n  // BUTTON DATA-API\n  // ===============\n\n  $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) {\n    var $btn = $(e.target)\n    if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')\n    $btn.button('toggle')\n    e.preventDefault()\n  })\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: carousel.js v3.1.1\n * http://getbootstrap.com/javascript/#carousel\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // CAROUSEL CLASS DEFINITION\n  // =========================\n\n  var Carousel = function (element, options) {\n    this.$element    = $(element)\n    this.$indicators = this.$element.find('.carousel-indicators')\n    this.options     = options\n    this.paused      =\n    this.sliding     =\n    this.interval    =\n    this.$active     =\n    this.$items      = null\n\n    this.options.pause == 'hover' && this.$element\n      .on('mouseenter', $.proxy(this.pause, this))\n      .on('mouseleave', $.proxy(this.cycle, this))\n  }\n\n  Carousel.DEFAULTS = {\n    interval: 5000,\n    pause: 'hover',\n    wrap: true\n  }\n\n  Carousel.prototype.cycle =  function (e) {\n    e || (this.paused = false)\n\n    this.interval && clearInterval(this.interval)\n\n    this.options.interval\n      && !this.paused\n      && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))\n\n    return this\n  }\n\n  Carousel.prototype.getActiveIndex = function () {\n    this.$active = this.$element.find('.item.active')\n    this.$items  = this.$active.parent().children()\n\n    return this.$items.index(this.$active)\n  }\n\n  Carousel.prototype.to = function (pos) {\n    var that        = this\n    var activeIndex = this.getActiveIndex()\n\n    if (pos > (this.$items.length - 1) || pos < 0) return\n\n    if (this.sliding)       return this.$element.one('slid.bs.carousel', function () { that.to(pos) })\n    if (activeIndex == pos) return this.pause().cycle()\n\n    return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))\n  }\n\n  Carousel.prototype.pause = function (e) {\n    e || (this.paused = true)\n\n    if (this.$element.find('.next, .prev').length && $.support.transition) {\n      this.$element.trigger($.support.transition.end)\n      this.cycle(true)\n    }\n\n    this.interval = clearInterval(this.interval)\n\n    return this\n  }\n\n  Carousel.prototype.next = function () {\n    if (this.sliding) return\n    return this.slide('next')\n  }\n\n  Carousel.prototype.prev = function () {\n    if (this.sliding) return\n    return this.slide('prev')\n  }\n\n  Carousel.prototype.slide = function (type, next) {\n    var $active   = this.$element.find('.item.active')\n    var $next     = next || $active[type]()\n    var isCycling = this.interval\n    var direction = type == 'next' ? 'left' : 'right'\n    var fallback  = type == 'next' ? 'first' : 'last'\n    var that      = this\n\n    if (!$next.length) {\n      if (!this.options.wrap) return\n      $next = this.$element.find('.item')[fallback]()\n    }\n\n    if ($next.hasClass('active')) return this.sliding = false\n\n    var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction })\n    this.$element.trigger(e)\n    if (e.isDefaultPrevented()) return\n\n    this.sliding = true\n\n    isCycling && this.pause()\n\n    if (this.$indicators.length) {\n      this.$indicators.find('.active').removeClass('active')\n      this.$element.one('slid.bs.carousel', function () {\n        var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])\n        $nextIndicator && $nextIndicator.addClass('active')\n      })\n    }\n\n    if ($.support.transition && this.$element.hasClass('slide')) {\n      $next.addClass(type)\n      $next[0].offsetWidth // force reflow\n      $active.addClass(direction)\n      $next.addClass(direction)\n      $active\n        .one($.support.transition.end, function () {\n          $next.removeClass([type, direction].join(' ')).addClass('active')\n          $active.removeClass(['active', direction].join(' '))\n          that.sliding = false\n          setTimeout(function () { that.$element.trigger('slid.bs.carousel') }, 0)\n        })\n        .emulateTransitionEnd($active.css('transition-duration').slice(0, -1) * 1000)\n    } else {\n      $active.removeClass('active')\n      $next.addClass('active')\n      this.sliding = false\n      this.$element.trigger('slid.bs.carousel')\n    }\n\n    isCycling && this.cycle()\n\n    return this\n  }\n\n\n  // CAROUSEL PLUGIN DEFINITION\n  // ==========================\n\n  var old = $.fn.carousel\n\n  $.fn.carousel = function (option) {\n    return this.each(function () {\n      var $this   = $(this)\n      var data    = $this.data('bs.carousel')\n      var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)\n      var action  = typeof option == 'string' ? option : options.slide\n\n      if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))\n      if (typeof option == 'number') data.to(option)\n      else if (action) data[action]()\n      else if (options.interval) data.pause().cycle()\n    })\n  }\n\n  $.fn.carousel.Constructor = Carousel\n\n\n  // CAROUSEL NO CONFLICT\n  // ====================\n\n  $.fn.carousel.noConflict = function () {\n    $.fn.carousel = old\n    return this\n  }\n\n\n  // CAROUSEL DATA-API\n  // =================\n\n  $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {\n    var $this   = $(this), href\n    var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\\s]+$)/, '')) //strip for ie7\n    var options = $.extend({}, $target.data(), $this.data())\n    var slideIndex = $this.attr('data-slide-to')\n    if (slideIndex) options.interval = false\n\n    $target.carousel(options)\n\n    if (slideIndex = $this.attr('data-slide-to')) {\n      $target.data('bs.carousel').to(slideIndex)\n    }\n\n    e.preventDefault()\n  })\n\n  $(window).on('load', function () {\n    $('[data-ride=\"carousel\"]').each(function () {\n      var $carousel = $(this)\n      $carousel.carousel($carousel.data())\n    })\n  })\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: collapse.js v3.1.1\n * http://getbootstrap.com/javascript/#collapse\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // COLLAPSE PUBLIC CLASS DEFINITION\n  // ================================\n\n  var Collapse = function (element, options) {\n    this.$element      = $(element)\n    this.options       = $.extend({}, Collapse.DEFAULTS, options)\n    this.transitioning = null\n\n    if (this.options.parent) this.$parent = $(this.options.parent)\n    if (this.options.toggle) this.toggle()\n  }\n\n  Collapse.DEFAULTS = {\n    toggle: true\n  }\n\n  Collapse.prototype.dimension = function () {\n    var hasWidth = this.$element.hasClass('width')\n    return hasWidth ? 'width' : 'height'\n  }\n\n  Collapse.prototype.show = function () {\n    if (this.transitioning || this.$element.hasClass('in')) return\n\n    var startEvent = $.Event('show.bs.collapse')\n    this.$element.trigger(startEvent)\n    if (startEvent.isDefaultPrevented()) return\n\n    var actives = this.$parent && this.$parent.find('> .panel > .in')\n\n    if (actives && actives.length) {\n      var hasData = actives.data('bs.collapse')\n      if (hasData && hasData.transitioning) return\n      actives.collapse('hide')\n      hasData || actives.data('bs.collapse', null)\n    }\n\n    var dimension = this.dimension()\n\n    this.$element\n      .removeClass('collapse')\n      .addClass('collapsing')\n      [dimension](0)\n\n    this.transitioning = 1\n\n    var complete = function () {\n      this.$element\n        .removeClass('collapsing')\n        .addClass('collapse in')\n        [dimension]('auto')\n      this.transitioning = 0\n      this.$element.trigger('shown.bs.collapse')\n    }\n\n    if (!$.support.transition) return complete.call(this)\n\n    var scrollSize = $.camelCase(['scroll', dimension].join('-'))\n\n    this.$element\n      .one($.support.transition.end, $.proxy(complete, this))\n      .emulateTransitionEnd(350)\n      [dimension](this.$element[0][scrollSize])\n  }\n\n  Collapse.prototype.hide = function () {\n    if (this.transitioning || !this.$element.hasClass('in')) return\n\n    var startEvent = $.Event('hide.bs.collapse')\n    this.$element.trigger(startEvent)\n    if (startEvent.isDefaultPrevented()) return\n\n    var dimension = this.dimension()\n\n    this.$element\n      [dimension](this.$element[dimension]())\n      [0].offsetHeight\n\n    this.$element\n      .addClass('collapsing')\n      .removeClass('collapse')\n      .removeClass('in')\n\n    this.transitioning = 1\n\n    var complete = function () {\n      this.transitioning = 0\n      this.$element\n        .trigger('hidden.bs.collapse')\n        .removeClass('collapsing')\n        .addClass('collapse')\n    }\n\n    if (!$.support.transition) return complete.call(this)\n\n    this.$element\n      [dimension](0)\n      .one($.support.transition.end, $.proxy(complete, this))\n      .emulateTransitionEnd(350)\n  }\n\n  Collapse.prototype.toggle = function () {\n    this[this.$element.hasClass('in') ? 'hide' : 'show']()\n  }\n\n\n  // COLLAPSE PLUGIN DEFINITION\n  // ==========================\n\n  var old = $.fn.collapse\n\n  $.fn.collapse = function (option) {\n    return this.each(function () {\n      var $this   = $(this)\n      var data    = $this.data('bs.collapse')\n      var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)\n\n      if (!data && options.toggle && option == 'show') option = !option\n      if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))\n      if (typeof option == 'string') data[option]()\n    })\n  }\n\n  $.fn.collapse.Constructor = Collapse\n\n\n  // COLLAPSE NO CONFLICT\n  // ====================\n\n  $.fn.collapse.noConflict = function () {\n    $.fn.collapse = old\n    return this\n  }\n\n\n  // COLLAPSE DATA-API\n  // =================\n\n  $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) {\n    var $this   = $(this), href\n    var target  = $this.attr('data-target')\n        || e.preventDefault()\n        || (href = $this.attr('href')) && href.replace(/.*(?=#[^\\s]+$)/, '') //strip for ie7\n    var $target = $(target)\n    var data    = $target.data('bs.collapse')\n    var option  = data ? 'toggle' : $this.data()\n    var parent  = $this.attr('data-parent')\n    var $parent = parent && $(parent)\n\n    if (!data || !data.transitioning) {\n      if ($parent) $parent.find('[data-toggle=collapse][data-parent=\"' + parent + '\"]').not($this).addClass('collapsed')\n      $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed')\n    }\n\n    $target.collapse(option)\n  })\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: dropdown.js v3.1.1\n * http://getbootstrap.com/javascript/#dropdowns\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // DROPDOWN CLASS DEFINITION\n  // =========================\n\n  var backdrop = '.dropdown-backdrop'\n  var toggle   = '[data-toggle=dropdown]'\n  var Dropdown = function (element) {\n    $(element).on('click.bs.dropdown', this.toggle)\n  }\n\n  Dropdown.prototype.toggle = function (e) {\n    var $this = $(this)\n\n    if ($this.is('.disabled, :disabled')) return\n\n    var $parent  = getParent($this)\n    var isActive = $parent.hasClass('open')\n\n    clearMenus()\n\n    if (!isActive) {\n      if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {\n        // if mobile we use a backdrop because click events don't delegate\n        $('<div class=\"dropdown-backdrop\"/>').insertAfter($(this)).on('click', clearMenus)\n      }\n\n      var relatedTarget = { relatedTarget: this }\n      $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))\n\n      if (e.isDefaultPrevented()) return\n\n      $parent\n        .toggleClass('open')\n        .trigger('shown.bs.dropdown', relatedTarget)\n\n      $this.focus()\n    }\n\n    return false\n  }\n\n  Dropdown.prototype.keydown = function (e) {\n    if (!/(38|40|27)/.test(e.keyCode)) return\n\n    var $this = $(this)\n\n    e.preventDefault()\n    e.stopPropagation()\n\n    if ($this.is('.disabled, :disabled')) return\n\n    var $parent  = getParent($this)\n    var isActive = $parent.hasClass('open')\n\n    if (!isActive || (isActive && e.keyCode == 27)) {\n      if (e.which == 27) $parent.find(toggle).focus()\n      return $this.click()\n    }\n\n    var desc = ' li:not(.divider):visible a'\n    var $items = $parent.find('[role=menu]' + desc + ', [role=listbox]' + desc)\n\n    if (!$items.length) return\n\n    var index = $items.index($items.filter(':focus'))\n\n    if (e.keyCode == 38 && index > 0)                 index--                        // up\n    if (e.keyCode == 40 && index < $items.length - 1) index++                        // down\n    if (!~index)                                      index = 0\n\n    $items.eq(index).focus()\n  }\n\n  function clearMenus(e) {\n    $(backdrop).remove()\n    $(toggle).each(function () {\n      var $parent = getParent($(this))\n      var relatedTarget = { relatedTarget: this }\n      if (!$parent.hasClass('open')) return\n      $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))\n      if (e.isDefaultPrevented()) return\n      $parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)\n    })\n  }\n\n  function getParent($this) {\n    var selector = $this.attr('data-target')\n\n    if (!selector) {\n      selector = $this.attr('href')\n      selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\\s]*$)/, '') //strip for ie7\n    }\n\n    var $parent = selector && $(selector)\n\n    return $parent && $parent.length ? $parent : $this.parent()\n  }\n\n\n  // DROPDOWN PLUGIN DEFINITION\n  // ==========================\n\n  var old = $.fn.dropdown\n\n  $.fn.dropdown = function (option) {\n    return this.each(function () {\n      var $this = $(this)\n      var data  = $this.data('bs.dropdown')\n\n      if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))\n      if (typeof option == 'string') data[option].call($this)\n    })\n  }\n\n  $.fn.dropdown.Constructor = Dropdown\n\n\n  // DROPDOWN NO CONFLICT\n  // ====================\n\n  $.fn.dropdown.noConflict = function () {\n    $.fn.dropdown = old\n    return this\n  }\n\n\n  // APPLY TO STANDARD DROPDOWN ELEMENTS\n  // ===================================\n\n  $(document)\n    .on('click.bs.dropdown.data-api', clearMenus)\n    .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })\n    .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)\n    .on('keydown.bs.dropdown.data-api', toggle + ', [role=menu], [role=listbox]', Dropdown.prototype.keydown)\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: modal.js v3.1.1\n * http://getbootstrap.com/javascript/#modals\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // MODAL CLASS DEFINITION\n  // ======================\n\n  var Modal = function (element, options) {\n    this.options   = options\n    this.$element  = $(element)\n    this.$backdrop =\n    this.isShown   = null\n\n    if (this.options.remote) {\n      this.$element\n        .find('.modal-content')\n        .load(this.options.remote, $.proxy(function () {\n          this.$element.trigger('loaded.bs.modal')\n        }, this))\n    }\n  }\n\n  Modal.DEFAULTS = {\n    backdrop: true,\n    keyboard: true,\n    show: true\n  }\n\n  Modal.prototype.toggle = function (_relatedTarget) {\n    return this[!this.isShown ? 'show' : 'hide'](_relatedTarget)\n  }\n\n  Modal.prototype.show = function (_relatedTarget) {\n    var that = this\n    var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })\n\n    this.$element.trigger(e)\n\n    if (this.isShown || e.isDefaultPrevented()) return\n\n    this.isShown = true\n\n    this.escape()\n\n    this.$element.on('click.dismiss.bs.modal', '[data-dismiss=\"modal\"]', $.proxy(this.hide, this))\n\n    this.backdrop(function () {\n      var transition = $.support.transition && that.$element.hasClass('fade')\n\n      if (!that.$element.parent().length) {\n        that.$element.appendTo(document.body) // don't move modals dom position\n      }\n\n      that.$element\n        .show()\n        .scrollTop(0)\n\n      if (transition) {\n        that.$element[0].offsetWidth // force reflow\n      }\n\n      that.$element\n        .addClass('in')\n        .attr('aria-hidden', false)\n\n      that.enforceFocus()\n\n      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })\n\n      transition ?\n        that.$element.find('.modal-dialog') // wait for modal to slide in\n          .one($.support.transition.end, function () {\n            that.$element.focus().trigger(e)\n          })\n          .emulateTransitionEnd(300) :\n        that.$element.focus().trigger(e)\n    })\n  }\n\n  Modal.prototype.hide = function (e) {\n    if (e) e.preventDefault()\n\n    e = $.Event('hide.bs.modal')\n\n    this.$element.trigger(e)\n\n    if (!this.isShown || e.isDefaultPrevented()) return\n\n    this.isShown = false\n\n    this.escape()\n\n    $(document).off('focusin.bs.modal')\n\n    this.$element\n      .removeClass('in')\n      .attr('aria-hidden', true)\n      .off('click.dismiss.bs.modal')\n\n    $.support.transition && this.$element.hasClass('fade') ?\n      this.$element\n        .one($.support.transition.end, $.proxy(this.hideModal, this))\n        .emulateTransitionEnd(300) :\n      this.hideModal()\n  }\n\n  Modal.prototype.enforceFocus = function () {\n    $(document)\n      .off('focusin.bs.modal') // guard against infinite focus loop\n      .on('focusin.bs.modal', $.proxy(function (e) {\n        if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {\n          this.$element.focus()\n        }\n      }, this))\n  }\n\n  Modal.prototype.escape = function () {\n    if (this.isShown && this.options.keyboard) {\n      this.$element.on('keyup.dismiss.bs.modal', $.proxy(function (e) {\n        e.which == 27 && this.hide()\n      }, this))\n    } else if (!this.isShown) {\n      this.$element.off('keyup.dismiss.bs.modal')\n    }\n  }\n\n  Modal.prototype.hideModal = function () {\n    var that = this\n    this.$element.hide()\n    this.backdrop(function () {\n      that.removeBackdrop()\n      that.$element.trigger('hidden.bs.modal')\n    })\n  }\n\n  Modal.prototype.removeBackdrop = function () {\n    this.$backdrop && this.$backdrop.remove()\n    this.$backdrop = null\n  }\n\n  Modal.prototype.backdrop = function (callback) {\n    var animate = this.$element.hasClass('fade') ? 'fade' : ''\n\n    if (this.isShown && this.options.backdrop) {\n      var doAnimate = $.support.transition && animate\n\n      this.$backdrop = $('<div class=\"modal-backdrop ' + animate + '\" />')\n        .appendTo(document.body)\n\n      this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {\n        if (e.target !== e.currentTarget) return\n        this.options.backdrop == 'static'\n          ? this.$element[0].focus.call(this.$element[0])\n          : this.hide.call(this)\n      }, this))\n\n      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow\n\n      this.$backdrop.addClass('in')\n\n      if (!callback) return\n\n      doAnimate ?\n        this.$backdrop\n          .one($.support.transition.end, callback)\n          .emulateTransitionEnd(150) :\n        callback()\n\n    } else if (!this.isShown && this.$backdrop) {\n      this.$backdrop.removeClass('in')\n\n      $.support.transition && this.$element.hasClass('fade') ?\n        this.$backdrop\n          .one($.support.transition.end, callback)\n          .emulateTransitionEnd(150) :\n        callback()\n\n    } else if (callback) {\n      callback()\n    }\n  }\n\n\n  // MODAL PLUGIN DEFINITION\n  // =======================\n\n  var old = $.fn.modal\n\n  $.fn.modal = function (option, _relatedTarget) {\n    return this.each(function () {\n      var $this   = $(this)\n      var data    = $this.data('bs.modal')\n      var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)\n\n      if (!data) $this.data('bs.modal', (data = new Modal(this, options)))\n      if (typeof option == 'string') data[option](_relatedTarget)\n      else if (options.show) data.show(_relatedTarget)\n    })\n  }\n\n  $.fn.modal.Constructor = Modal\n\n\n  // MODAL NO CONFLICT\n  // =================\n\n  $.fn.modal.noConflict = function () {\n    $.fn.modal = old\n    return this\n  }\n\n\n  // MODAL DATA-API\n  // ==============\n\n  $(document).on('click.bs.modal.data-api', '[data-toggle=\"modal\"]', function (e) {\n    var $this   = $(this)\n    var href    = $this.attr('href')\n    var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\\s]+$)/, ''))) //strip for ie7\n    var option  = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())\n\n    if ($this.is('a')) e.preventDefault()\n\n    $target\n      .modal(option, this)\n      .one('hide', function () {\n        $this.is(':visible') && $this.focus()\n      })\n  })\n\n  $(document)\n    .on('show.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })\n    .on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: tooltip.js v3.1.1\n * http://getbootstrap.com/javascript/#tooltip\n * Inspired by the original jQuery.tipsy by Jason Frame\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // TOOLTIP PUBLIC CLASS DEFINITION\n  // ===============================\n\n  var Tooltip = function (element, options) {\n    this.type       =\n    this.options    =\n    this.enabled    =\n    this.timeout    =\n    this.hoverState =\n    this.$element   = null\n\n    this.init('tooltip', element, options)\n  }\n\n  Tooltip.DEFAULTS = {\n    animation: true,\n    placement: 'top',\n    selector: false,\n    template: '<div class=\"tooltip\"><div class=\"tooltip-arrow\"></div><div class=\"tooltip-inner\"></div></div>',\n    trigger: 'hover focus',\n    title: '',\n    delay: 0,\n    html: false,\n    container: false\n  }\n\n  Tooltip.prototype.init = function (type, element, options) {\n    this.enabled  = true\n    this.type     = type\n    this.$element = $(element)\n    this.options  = this.getOptions(options)\n\n    var triggers = this.options.trigger.split(' ')\n\n    for (var i = triggers.length; i--;) {\n      var trigger = triggers[i]\n\n      if (trigger == 'click') {\n        this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))\n      } else if (trigger != 'manual') {\n        var eventIn  = trigger == 'hover' ? 'mouseenter' : 'focusin'\n        var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'\n\n        this.$element.on(eventIn  + '.' + this.type, this.options.selector, $.proxy(this.enter, this))\n        this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))\n      }\n    }\n\n    this.options.selector ?\n      (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :\n      this.fixTitle()\n  }\n\n  Tooltip.prototype.getDefaults = function () {\n    return Tooltip.DEFAULTS\n  }\n\n  Tooltip.prototype.getOptions = function (options) {\n    options = $.extend({}, this.getDefaults(), this.$element.data(), options)\n\n    if (options.delay && typeof options.delay == 'number') {\n      options.delay = {\n        show: options.delay,\n        hide: options.delay\n      }\n    }\n\n    return options\n  }\n\n  Tooltip.prototype.getDelegateOptions = function () {\n    var options  = {}\n    var defaults = this.getDefaults()\n\n    this._options && $.each(this._options, function (key, value) {\n      if (defaults[key] != value) options[key] = value\n    })\n\n    return options\n  }\n\n  Tooltip.prototype.enter = function (obj) {\n    var self = obj instanceof this.constructor ?\n      obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)\n\n    clearTimeout(self.timeout)\n\n    self.hoverState = 'in'\n\n    if (!self.options.delay || !self.options.delay.show) return self.show()\n\n    self.timeout = setTimeout(function () {\n      if (self.hoverState == 'in') self.show()\n    }, self.options.delay.show)\n  }\n\n  Tooltip.prototype.leave = function (obj) {\n    var self = obj instanceof this.constructor ?\n      obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)\n\n    clearTimeout(self.timeout)\n\n    self.hoverState = 'out'\n\n    if (!self.options.delay || !self.options.delay.hide) return self.hide()\n\n    self.timeout = setTimeout(function () {\n      if (self.hoverState == 'out') self.hide()\n    }, self.options.delay.hide)\n  }\n\n  Tooltip.prototype.show = function () {\n    var e = $.Event('show.bs.' + this.type)\n\n    if (this.hasContent() && this.enabled) {\n      this.$element.trigger(e)\n\n      if (e.isDefaultPrevented()) return\n      var that = this;\n\n      var $tip = this.tip()\n\n      this.setContent()\n\n      if (this.options.animation) $tip.addClass('fade')\n\n      var placement = typeof this.options.placement == 'function' ?\n        this.options.placement.call(this, $tip[0], this.$element[0]) :\n        this.options.placement\n\n      var autoToken = /\\s?auto?\\s?/i\n      var autoPlace = autoToken.test(placement)\n      if (autoPlace) placement = placement.replace(autoToken, '') || 'top'\n\n      $tip\n        .detach()\n        .css({ top: 0, left: 0, display: 'block' })\n        .addClass(placement)\n\n      this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)\n\n      var pos          = this.getPosition()\n      var actualWidth  = $tip[0].offsetWidth\n      var actualHeight = $tip[0].offsetHeight\n\n      if (autoPlace) {\n        var $parent = this.$element.parent()\n\n        var orgPlacement = placement\n        var docScroll    = document.documentElement.scrollTop || document.body.scrollTop\n        var parentWidth  = this.options.container == 'body' ? window.innerWidth  : $parent.outerWidth()\n        var parentHeight = this.options.container == 'body' ? window.innerHeight : $parent.outerHeight()\n        var parentLeft   = this.options.container == 'body' ? 0 : $parent.offset().left\n\n        placement = placement == 'bottom' && pos.top   + pos.height  + actualHeight - docScroll > parentHeight  ? 'top'    :\n                    placement == 'top'    && pos.top   - docScroll   - actualHeight < 0                         ? 'bottom' :\n                    placement == 'right'  && pos.right + actualWidth > parentWidth                              ? 'left'   :\n                    placement == 'left'   && pos.left  - actualWidth < parentLeft                               ? 'right'  :\n                    placement\n\n        $tip\n          .removeClass(orgPlacement)\n          .addClass(placement)\n      }\n\n      var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)\n\n      this.applyPlacement(calculatedOffset, placement)\n      this.hoverState = null\n\n      var complete = function() {\n        that.$element.trigger('shown.bs.' + that.type)\n      }\n\n      $.support.transition && this.$tip.hasClass('fade') ?\n        $tip\n          .one($.support.transition.end, complete)\n          .emulateTransitionEnd(150) :\n        complete()\n    }\n  }\n\n  Tooltip.prototype.applyPlacement = function (offset, placement) {\n    var replace\n    var $tip   = this.tip()\n    var width  = $tip[0].offsetWidth\n    var height = $tip[0].offsetHeight\n\n    // manually read margins because getBoundingClientRect includes difference\n    var marginTop = parseInt($tip.css('margin-top'), 10)\n    var marginLeft = parseInt($tip.css('margin-left'), 10)\n\n    // we must check for NaN for ie 8/9\n    if (isNaN(marginTop))  marginTop  = 0\n    if (isNaN(marginLeft)) marginLeft = 0\n\n    offset.top  = offset.top  + marginTop\n    offset.left = offset.left + marginLeft\n\n    // $.fn.offset doesn't round pixel values\n    // so we use setOffset directly with our own function B-0\n    $.offset.setOffset($tip[0], $.extend({\n      using: function (props) {\n        $tip.css({\n          top: Math.round(props.top),\n          left: Math.round(props.left)\n        })\n      }\n    }, offset), 0)\n\n    $tip.addClass('in')\n\n    // check to see if placing tip in new offset caused the tip to resize itself\n    var actualWidth  = $tip[0].offsetWidth\n    var actualHeight = $tip[0].offsetHeight\n\n    if (placement == 'top' && actualHeight != height) {\n      replace = true\n      offset.top = offset.top + height - actualHeight\n    }\n\n    if (/bottom|top/.test(placement)) {\n      var delta = 0\n\n      if (offset.left < 0) {\n        delta       = offset.left * -2\n        offset.left = 0\n\n        $tip.offset(offset)\n\n        actualWidth  = $tip[0].offsetWidth\n        actualHeight = $tip[0].offsetHeight\n      }\n\n      this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')\n    } else {\n      this.replaceArrow(actualHeight - height, actualHeight, 'top')\n    }\n\n    if (replace) $tip.offset(offset)\n  }\n\n  Tooltip.prototype.replaceArrow = function (delta, dimension, position) {\n    this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + '%') : '')\n  }\n\n  Tooltip.prototype.setContent = function () {\n    var $tip  = this.tip()\n    var title = this.getTitle()\n\n    $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)\n    $tip.removeClass('fade in top bottom left right')\n  }\n\n  Tooltip.prototype.hide = function () {\n    var that = this\n    var $tip = this.tip()\n    var e    = $.Event('hide.bs.' + this.type)\n\n    function complete() {\n      if (that.hoverState != 'in') $tip.detach()\n      that.$element.trigger('hidden.bs.' + that.type)\n    }\n\n    this.$element.trigger(e)\n\n    if (e.isDefaultPrevented()) return\n\n    $tip.removeClass('in')\n\n    $.support.transition && this.$tip.hasClass('fade') ?\n      $tip\n        .one($.support.transition.end, complete)\n        .emulateTransitionEnd(150) :\n      complete()\n\n    this.hoverState = null\n\n    return this\n  }\n\n  Tooltip.prototype.fixTitle = function () {\n    var $e = this.$element\n    if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {\n      $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')\n    }\n  }\n\n  Tooltip.prototype.hasContent = function () {\n    return this.getTitle()\n  }\n\n  Tooltip.prototype.getPosition = function () {\n    var el = this.$element[0]\n    return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {\n      width: el.offsetWidth,\n      height: el.offsetHeight\n    }, this.$element.offset())\n  }\n\n  Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {\n    return placement == 'bottom' ? { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2  } :\n           placement == 'top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2  } :\n           placement == 'left'   ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :\n        /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width   }\n  }\n\n  Tooltip.prototype.getTitle = function () {\n    var title\n    var $e = this.$element\n    var o  = this.options\n\n    title = $e.attr('data-original-title')\n      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)\n\n    return title\n  }\n\n  Tooltip.prototype.tip = function () {\n    return this.$tip = this.$tip || $(this.options.template)\n  }\n\n  Tooltip.prototype.arrow = function () {\n    return this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')\n  }\n\n  Tooltip.prototype.validate = function () {\n    if (!this.$element[0].parentNode) {\n      this.hide()\n      this.$element = null\n      this.options  = null\n    }\n  }\n\n  Tooltip.prototype.enable = function () {\n    this.enabled = true\n  }\n\n  Tooltip.prototype.disable = function () {\n    this.enabled = false\n  }\n\n  Tooltip.prototype.toggleEnabled = function () {\n    this.enabled = !this.enabled\n  }\n\n  Tooltip.prototype.toggle = function (e) {\n    var self = e ? $(e.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type) : this\n    self.tip().hasClass('in') ? self.leave(self) : self.enter(self)\n  }\n\n  Tooltip.prototype.destroy = function () {\n    clearTimeout(this.timeout)\n    this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)\n  }\n\n\n  // TOOLTIP PLUGIN DEFINITION\n  // =========================\n\n  var old = $.fn.tooltip\n\n  $.fn.tooltip = function (option) {\n    return this.each(function () {\n      var $this   = $(this)\n      var data    = $this.data('bs.tooltip')\n      var options = typeof option == 'object' && option\n\n      if (!data && option == 'destroy') return\n      if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))\n      if (typeof option == 'string') data[option]()\n    })\n  }\n\n  $.fn.tooltip.Constructor = Tooltip\n\n\n  // TOOLTIP NO CONFLICT\n  // ===================\n\n  $.fn.tooltip.noConflict = function () {\n    $.fn.tooltip = old\n    return this\n  }\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: popover.js v3.1.1\n * http://getbootstrap.com/javascript/#popovers\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // POPOVER PUBLIC CLASS DEFINITION\n  // ===============================\n\n  var Popover = function (element, options) {\n    this.init('popover', element, options)\n  }\n\n  if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')\n\n  Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {\n    placement: 'right',\n    trigger: 'click',\n    content: '',\n    template: '<div class=\"popover\"><div class=\"arrow\"></div><h3 class=\"popover-title\"></h3><div class=\"popover-content\"></div></div>'\n  })\n\n\n  // NOTE: POPOVER EXTENDS tooltip.js\n  // ================================\n\n  Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)\n\n  Popover.prototype.constructor = Popover\n\n  Popover.prototype.getDefaults = function () {\n    return Popover.DEFAULTS\n  }\n\n  Popover.prototype.setContent = function () {\n    var $tip    = this.tip()\n    var title   = this.getTitle()\n    var content = this.getContent()\n\n    $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)\n    $tip.find('.popover-content')[ // we use append for html objects to maintain js events\n      this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'\n    ](content)\n\n    $tip.removeClass('fade top bottom left right in')\n\n    // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do\n    // this manually by checking the contents.\n    if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()\n  }\n\n  Popover.prototype.hasContent = function () {\n    return this.getTitle() || this.getContent()\n  }\n\n  Popover.prototype.getContent = function () {\n    var $e = this.$element\n    var o  = this.options\n\n    return $e.attr('data-content')\n      || (typeof o.content == 'function' ?\n            o.content.call($e[0]) :\n            o.content)\n  }\n\n  Popover.prototype.arrow = function () {\n    return this.$arrow = this.$arrow || this.tip().find('.arrow')\n  }\n\n  Popover.prototype.tip = function () {\n    if (!this.$tip) this.$tip = $(this.options.template)\n    return this.$tip\n  }\n\n\n  // POPOVER PLUGIN DEFINITION\n  // =========================\n\n  var old = $.fn.popover\n\n  $.fn.popover = function (option) {\n    return this.each(function () {\n      var $this   = $(this)\n      var data    = $this.data('bs.popover')\n      var options = typeof option == 'object' && option\n\n      if (!data && option == 'destroy') return\n      if (!data) $this.data('bs.popover', (data = new Popover(this, options)))\n      if (typeof option == 'string') data[option]()\n    })\n  }\n\n  $.fn.popover.Constructor = Popover\n\n\n  // POPOVER NO CONFLICT\n  // ===================\n\n  $.fn.popover.noConflict = function () {\n    $.fn.popover = old\n    return this\n  }\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: scrollspy.js v3.1.1\n * http://getbootstrap.com/javascript/#scrollspy\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // SCROLLSPY CLASS DEFINITION\n  // ==========================\n\n  function ScrollSpy(element, options) {\n    var href\n    var process  = $.proxy(this.process, this)\n\n    this.$element       = $(element).is('body') ? $(window) : $(element)\n    this.$body          = $('body')\n    this.$scrollElement = this.$element.on('scroll.bs.scroll-spy.data-api', process)\n    this.options        = $.extend({}, ScrollSpy.DEFAULTS, options)\n    this.selector       = (this.options.target\n      || ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\\s]+$)/, '')) //strip for ie7\n      || '') + ' .nav li > a'\n    this.offsets        = $([])\n    this.targets        = $([])\n    this.activeTarget   = null\n\n    this.refresh()\n    this.process()\n  }\n\n  ScrollSpy.DEFAULTS = {\n    offset: 10\n  }\n\n  ScrollSpy.prototype.refresh = function () {\n    var offsetMethod = this.$element[0] == window ? 'offset' : 'position'\n\n    this.offsets = $([])\n    this.targets = $([])\n\n    var self     = this\n    var $targets = this.$body\n      .find(this.selector)\n      .map(function () {\n        var $el   = $(this)\n        var href  = $el.data('target') || $el.attr('href')\n        var $href = /^#./.test(href) && $(href)\n\n        return ($href\n          && $href.length\n          && $href.is(':visible')\n          && [[ $href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null\n      })\n      .sort(function (a, b) { return a[0] - b[0] })\n      .each(function () {\n        self.offsets.push(this[0])\n        self.targets.push(this[1])\n      })\n  }\n\n  ScrollSpy.prototype.process = function () {\n    var scrollTop    = this.$scrollElement.scrollTop() + this.options.offset\n    var scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight\n    var maxScroll    = scrollHeight - this.$scrollElement.height()\n    var offsets      = this.offsets\n    var targets      = this.targets\n    var activeTarget = this.activeTarget\n    var i\n\n    if (scrollTop >= maxScroll) {\n      return activeTarget != (i = targets.last()[0]) && this.activate(i)\n    }\n\n    if (activeTarget && scrollTop <= offsets[0]) {\n      return activeTarget != (i = targets[0]) && this.activate(i)\n    }\n\n    for (i = offsets.length; i--;) {\n      activeTarget != targets[i]\n        && scrollTop >= offsets[i]\n        && (!offsets[i + 1] || scrollTop <= offsets[i + 1])\n        && this.activate( targets[i] )\n    }\n  }\n\n  ScrollSpy.prototype.activate = function (target) {\n    this.activeTarget = target\n\n    $(this.selector)\n      .parentsUntil(this.options.target, '.active')\n      .removeClass('active')\n\n    var selector = this.selector +\n        '[data-target=\"' + target + '\"],' +\n        this.selector + '[href=\"' + target + '\"]'\n\n    var active = $(selector)\n      .parents('li')\n      .addClass('active')\n\n    if (active.parent('.dropdown-menu').length) {\n      active = active\n        .closest('li.dropdown')\n        .addClass('active')\n    }\n\n    active.trigger('activate.bs.scrollspy')\n  }\n\n\n  // SCROLLSPY PLUGIN DEFINITION\n  // ===========================\n\n  var old = $.fn.scrollspy\n\n  $.fn.scrollspy = function (option) {\n    return this.each(function () {\n      var $this   = $(this)\n      var data    = $this.data('bs.scrollspy')\n      var options = typeof option == 'object' && option\n\n      if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))\n      if (typeof option == 'string') data[option]()\n    })\n  }\n\n  $.fn.scrollspy.Constructor = ScrollSpy\n\n\n  // SCROLLSPY NO CONFLICT\n  // =====================\n\n  $.fn.scrollspy.noConflict = function () {\n    $.fn.scrollspy = old\n    return this\n  }\n\n\n  // SCROLLSPY DATA-API\n  // ==================\n\n  $(window).on('load', function () {\n    $('[data-spy=\"scroll\"]').each(function () {\n      var $spy = $(this)\n      $spy.scrollspy($spy.data())\n    })\n  })\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: tab.js v3.1.1\n * http://getbootstrap.com/javascript/#tabs\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // TAB CLASS DEFINITION\n  // ====================\n\n  var Tab = function (element) {\n    this.element = $(element)\n  }\n\n  Tab.prototype.show = function () {\n    var $this    = this.element\n    var $ul      = $this.closest('ul:not(.dropdown-menu)')\n    var selector = $this.data('target')\n\n    if (!selector) {\n      selector = $this.attr('href')\n      selector = selector && selector.replace(/.*(?=#[^\\s]*$)/, '') //strip for ie7\n    }\n\n    if ($this.parent('li').hasClass('active')) return\n\n    var previous = $ul.find('.active:last a')[0]\n    var e        = $.Event('show.bs.tab', {\n      relatedTarget: previous\n    })\n\n    $this.trigger(e)\n\n    if (e.isDefaultPrevented()) return\n\n    var $target = $(selector)\n\n    this.activate($this.parent('li'), $ul)\n    this.activate($target, $target.parent(), function () {\n      $this.trigger({\n        type: 'shown.bs.tab',\n        relatedTarget: previous\n      })\n    })\n  }\n\n  Tab.prototype.activate = function (element, container, callback) {\n    var $active    = container.find('> .active')\n    var transition = callback\n      && $.support.transition\n      && $active.hasClass('fade')\n\n    function next() {\n      $active\n        .removeClass('active')\n        .find('> .dropdown-menu > .active')\n        .removeClass('active')\n\n      element.addClass('active')\n\n      if (transition) {\n        element[0].offsetWidth // reflow for transition\n        element.addClass('in')\n      } else {\n        element.removeClass('fade')\n      }\n\n      if (element.parent('.dropdown-menu')) {\n        element.closest('li.dropdown').addClass('active')\n      }\n\n      callback && callback()\n    }\n\n    transition ?\n      $active\n        .one($.support.transition.end, next)\n        .emulateTransitionEnd(150) :\n      next()\n\n    $active.removeClass('in')\n  }\n\n\n  // TAB PLUGIN DEFINITION\n  // =====================\n\n  var old = $.fn.tab\n\n  $.fn.tab = function ( option ) {\n    return this.each(function () {\n      var $this = $(this)\n      var data  = $this.data('bs.tab')\n\n      if (!data) $this.data('bs.tab', (data = new Tab(this)))\n      if (typeof option == 'string') data[option]()\n    })\n  }\n\n  $.fn.tab.Constructor = Tab\n\n\n  // TAB NO CONFLICT\n  // ===============\n\n  $.fn.tab.noConflict = function () {\n    $.fn.tab = old\n    return this\n  }\n\n\n  // TAB DATA-API\n  // ============\n\n  $(document).on('click.bs.tab.data-api', '[data-toggle=\"tab\"], [data-toggle=\"pill\"]', function (e) {\n    e.preventDefault()\n    $(this).tab('show')\n  })\n\n}(jQuery);\n\n/* ========================================================================\n * Bootstrap: affix.js v3.1.1\n * http://getbootstrap.com/javascript/#affix\n * ========================================================================\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // AFFIX CLASS DEFINITION\n  // ======================\n\n  var Affix = function (element, options) {\n    this.options = $.extend({}, Affix.DEFAULTS, options)\n    this.$window = $(window)\n      .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))\n      .on('click.bs.affix.data-api',  $.proxy(this.checkPositionWithEventLoop, this))\n\n    this.$element     = $(element)\n    this.affixed      =\n    this.unpin        =\n    this.pinnedOffset = null\n\n    this.checkPosition()\n  }\n\n  Affix.RESET = 'affix affix-top affix-bottom'\n\n  Affix.DEFAULTS = {\n    offset: 0\n  }\n\n  Affix.prototype.getPinnedOffset = function () {\n    if (this.pinnedOffset) return this.pinnedOffset\n    this.$element.removeClass(Affix.RESET).addClass('affix')\n    var scrollTop = this.$window.scrollTop()\n    var position  = this.$element.offset()\n    return (this.pinnedOffset = position.top - scrollTop)\n  }\n\n  Affix.prototype.checkPositionWithEventLoop = function () {\n    setTimeout($.proxy(this.checkPosition, this), 1)\n  }\n\n  Affix.prototype.checkPosition = function () {\n    if (!this.$element.is(':visible')) return\n\n    var scrollHeight = $(document).height()\n    var scrollTop    = this.$window.scrollTop()\n    var position     = this.$element.offset()\n    var offset       = this.options.offset\n    var offsetTop    = offset.top\n    var offsetBottom = offset.bottom\n\n    if (this.affixed == 'top') position.top += scrollTop\n\n    if (typeof offset != 'object')         offsetBottom = offsetTop = offset\n    if (typeof offsetTop == 'function')    offsetTop    = offset.top(this.$element)\n    if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)\n\n    var affix = this.unpin   != null && (scrollTop + this.unpin <= position.top) ? false :\n                offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' :\n                offsetTop    != null && (scrollTop <= offsetTop) ? 'top' : false\n\n    if (this.affixed === affix) return\n    if (this.unpin) this.$element.css('top', '')\n\n    var affixType = 'affix' + (affix ? '-' + affix : '')\n    var e         = $.Event(affixType + '.bs.affix')\n\n    this.$element.trigger(e)\n\n    if (e.isDefaultPrevented()) return\n\n    this.affixed = affix\n    this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null\n\n    this.$element\n      .removeClass(Affix.RESET)\n      .addClass(affixType)\n      .trigger($.Event(affixType.replace('affix', 'affixed')))\n\n    if (affix == 'bottom') {\n      this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() })\n    }\n  }\n\n\n  // AFFIX PLUGIN DEFINITION\n  // =======================\n\n  var old = $.fn.affix\n\n  $.fn.affix = function (option) {\n    return this.each(function () {\n      var $this   = $(this)\n      var data    = $this.data('bs.affix')\n      var options = typeof option == 'object' && option\n\n      if (!data) $this.data('bs.affix', (data = new Affix(this, options)))\n      if (typeof option == 'string') data[option]()\n    })\n  }\n\n  $.fn.affix.Constructor = Affix\n\n\n  // AFFIX NO CONFLICT\n  // =================\n\n  $.fn.affix.noConflict = function () {\n    $.fn.affix = old\n    return this\n  }\n\n\n  // AFFIX DATA-API\n  // ==============\n\n  $(window).on('load', function () {\n    $('[data-spy=\"affix\"]').each(function () {\n      var $spy = $(this)\n      var data = $spy.data()\n\n      data.offset = data.offset || {}\n\n      if (data.offsetBottom) data.offset.bottom = data.offsetBottom\n      if (data.offsetTop)    data.offset.top    = data.offsetTop\n\n      $spy.affix(data)\n    })\n  })\n\n}(jQuery);\n"
  },
  {
    "path": "style/lib/custom/custom.js",
    "content": "\nwindow.success = function(msg) {\n    var dom = '<div class=\"top-alert\"><div class=\"alert alert-success-alt alert-dismissable fade in \" role=\"alert\"><i class=\"glyphicon glyphicon-ok\"></i> ' + msg + '<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button></div></div>';\n    var jdom = $(dom);\n    jdom.hide();\n  $(\"body\").append(jdom);\n  jdom.fadeIn();\n  setTimeout(function() {\n    jdom.fadeOut(function() {\n      jdom.remove();\n    });\n  }, 2000);\n}\n\n\n\n  function hideModal(){\n  $(\".modal\").removeClass(\"in\");\n  $(\".modal-backdrop\").remove();\n  $('body').removeClass('modal-open');\n  $('body').css('padding-right', '');\n  $(\".modal\").hide();\n}\n\nfunction loader(divname){\n  document.getElementById(divname).innerHTML = \"<img src='https://public.udvash.com/Content/Image/ajax-loader.gif' />\";\n}\nfunction close_loader(divname){\n  document.getElementById(divname).innerHTML = \"\";\n}"
  },
  {
    "path": "style/lib/fancy-zoom/css/fancyzoom.css",
    "content": "\n#zoom-box {\n\tbackground: white;\n\tborder-radius: 10px;\n\tbox-shadow: 0px 0px 10px rgba(50, 50, 50, 0.75);\n    padding: 10px;\n    z-index: 1000;\n    border: 1px solid #999;\n}\n\n#zoom-box img {\npadding:0px;\n}\n\n#zoom-box > .zoom-close {\n\tposition: absolute;\n\ttop: -10px;\n\tleft: -13px;\n}\n\n#zoom-box img {\n\tborder: none;\n}\n\n"
  },
  {
    "path": "style/lib/fancy-zoom/index.html",
    "content": "<!doctype html>\n<html>\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/> \n\t<title>Fancy Zoom</title> \n\t<link rel=\"stylesheet\" href=\"css/fancyzoom.css\" type=\"text/css\" />\n\t<script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js\"></script>\n\t<script type=\"text/javascript\" src=\"src/fancyzoom.js\"></script>\n\t<script type=\"text/javascript\" charset=\"utf-8\">\n\t\t$(document).ready(function() {\n\t\t\t$('section img').fancyZoom({closeOnClick: true});\n\t\t});\n\t</script>\n\t\n\t<style type=\"text/css\" media=\"screen\">\n\t\tsection {\n\t\t\tborder: 1px solid red;\n\t\t\twidth: 600px;\n\t\t}\n\n\t\tsection img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t</style>\n</head>\n<body>\n<div id=\"wrapper\">\n\t<header>\n\t\t<h1>Fancy Zoom (jQuery)</h1>\n\t</header>\n\n\t<section>\n\t\t<img src=\"http://karlsruhe.boedger.de/wp-content/uploads/2008/05/ansicht-faecherstadt-karlsruhe-aus-dem-turm-des-ka.jpg\">\n\t\t<img src=\"http://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Karlsruhe_Germany_CastleByNight.jpg/268px-Karlsruhe_Germany_CastleByNight.jpg\">\n\t</section>\n\t\n</body>\n</html>\n"
  },
  {
    "path": "style/lib/fancy-zoom/src/fancyzoom.coffee",
    "content": "$ = jQuery\n\n$.fn.fancyZoom = (options) ->\n  show = (e) ->\n    return false  if zooming\n    return hide() if zoom.data('el') is this\n\n    zoom_width = options.width\n    zoom_height = options.height\n    width = $(window).innerWidth()\n    height = $(window).innerHeight()\n    x = $(window).scrollLeft()\n    y = $(window).scrollTop()\n    window_size =\n      width: width\n      height: height\n      x: x\n      y: y\n\n    width = (zoom_width or @naturalWidth)\n    height = (zoom_height or @naturalHeight)\n\n    if window_size.width < width\n      new_width = window_size.width - 50\n      height *= new_width / width\n      width = new_width\n\n    return false if !options.showAlways and (width <= @width or height <= @height)\n\n    # ensure that the top isn't too high and the close button is fully visible\n    newTop = Math.max((window_size.height / 2) - (height / 2) + y, 10)\n    newLeft = (window_size.width / 2) - (width / 2)\n    curTop = e.pageY\n    curLeft = e.pageX\n    zoom_close.data \"curTop\", curTop\n    zoom_close.data \"curLeft\", curLeft\n    zoom.hide().css\n      position: \"absolute\"\n      top: curTop + \"px\"\n      left: curLeft + \"px\"\n      width: \"1px\"\n      height: \"1px\"\n\n    zoom_close.hide()\n    zoom.click hide  if options.closeOnClick\n\n    zoom_content.html $(this).clone()\n    zoom_content.children().css width: '100%'\n\n    zoom.animate\n      top: newTop + \"px\"\n      left: newLeft + \"px\"\n      opacity: \"show\"\n      width: width\n      height: height\n    , 500, null, ->\n      zoom_close.show()\n      zooming = false\n\n    zooming = true\n    zoom.data 'el', this\n    false\n  hide = ->\n    return false  if zooming\n    zooming = true\n    zoom.data 'el', null\n    zoom.unbind \"click\"\n    zoom_close.hide()\n    zoom.animate\n      top: zoom_close.data(\"curTop\") + \"px\"\n      left: zoom_close.data(\"curLeft\") + \"px\"\n      opacity: \"hide\"\n      width: \"1px\"\n      height: \"1px\"\n    , 500, null, ->\n      zoom_content.html \"\"\n      zooming = false\n\n    false\n\n  options or= {}\n  directory = (if options and options.directory then options.directory else \"img\")\n  zooming = false\n  if $(\"#zoom-box\").length is 0\n    html = \"\"\"\n    <div id=\"zoom-box\" style=\"display:none;\">\n       <div class=\"zoom-content\">\n       </div>\n       <a href=\"javascript:void(0)\" class=\"zoom-close\">\n         <img src=\"#{directory}/closebox.png\" alt=\"&#215;\">\n       </a>\n     </div>\n    \"\"\"\n    $(\"body\").append html\n    $(\"html\").click (e) ->\n      # Don't handle clicks on the zoom box.\n      if zoom.is(':visible') and $(e.target).parents('#zoom-box').length is 0\n        hide()\n      else\n        undefined\n\n    $(document).keyup (event) ->\n      hide()  if event.keyCode is 27 and $(\"#zoom-box:visible\").length > 0\n\n    $('#zoom-box > .zoom-close').click hide\n\n  zoom = $('#zoom-box')\n  zoom_close = zoom.children('.zoom-close')\n  zoom_content = zoom.children('.zoom-content')\n\n  @each (i) ->\n    $(this).click show\n\n  return this\n"
  },
  {
    "path": "style/lib/fancy-zoom/src/fancyzoom.js",
    "content": "// Generated by CoffeeScript 1.3.3\n(function() {\n  var $;\n\n  $ = jQuery;\n\n  $.fn.fancyZoom = function(options) {\n    var directory, hide, html, show, zoom, zoom_close, zoom_content, zooming;\n    show = function(e) {\n      var curLeft, curTop, height, newLeft, newTop, new_width, width, window_size, x, y, zoom_height, zoom_width, zooming;\n      if (zooming) {\n        return false;\n      }\n      if (zoom.data('el') === this) {\n        return hide();\n      }\n      zoom_width = options.width;\n      zoom_height = options.height;\n      width = $(window).innerWidth();\n      height = $(window).innerHeight();\n      x = $(window).scrollLeft();\n      y = $(window).scrollTop();\n      window_size = {\n        width: width,\n        height: height,\n        x: x,\n        y: y\n      };\n      width = zoom_width || this.naturalWidth;\n      height = zoom_height || this.naturalHeight;\n      if (window_size.width < width) {\n        new_width = window_size.width - 50;\n        height *= new_width / width;\n        width = new_width;\n      }\n      if (!options.showAlways && (width <= this.width || height <= this.height)) {\n        return false;\n      }\n      newTop = Math.max((window_size.height / 2) - (height / 2) + y, 10);\n      newLeft = (window_size.width / 2) - (width / 2);\n      curTop = e.pageY;\n      curLeft = e.pageX;\n      zoom_close.data(\"curTop\", curTop);\n      zoom_close.data(\"curLeft\", curLeft);\n      zoom.hide().css({\n        position: \"absolute\",\n        top: curTop + \"px\",\n        left: curLeft + \"px\",\n        width: \"1px\",\n        height: \"1px\"\n      });\n      zoom_close.hide();\n      if (options.closeOnClick) {\n        zoom.click(hide);\n      }\n      zoom_content.html($(this).clone());\n      zoom_content.children().css({\n        width: '100%'\n      });\n      zoom.animate({\n        top: newTop + \"px\",\n        left: newLeft + \"px\",\n        opacity: \"show\",\n        width: width,\n        height: height\n      }, 500, null, function() {\n        var zooming;\n        zoom_close.show();\n        return zooming = false;\n      });\n      zooming = true;\n      zoom.data('el', this);\n      return false;\n    };\n    hide = function() {\n      var zooming;\n      if (zooming) {\n        return false;\n      }\n      zooming = true;\n      zoom.data('el', null);\n      zoom.unbind(\"click\");\n      zoom_close.hide();\n      zoom.animate({\n        top: zoom_close.data(\"curTop\") + \"px\",\n        left: zoom_close.data(\"curLeft\") + \"px\",\n        opacity: \"hide\",\n        width: \"1px\",\n        height: \"1px\"\n      }, 500, null, function() {\n        zoom_content.html(\"\");\n        return zooming = false;\n      });\n      return false;\n    };\n    options || (options = {});\n    directory = (options && options.directory ? options.directory : \"img\");\n    zooming = false;\n    if ($(\"#zoom-box\").length === 0) {\n      html = \"<div id=\\\"zoom-box\\\" style=\\\"display:none;\\\">\\n   <div class=\\\"zoom-content\\\">\\n   </div>\\n   <a href=\\\"javascript:void(0)\\\" class=\\\"zoom-close\\\">\\n     <img src=\\\"\" + directory + \"/closebox.png\\\" alt=\\\"&#215;\\\">\\n   </a>\\n </div>\";\n      $(\"body\").append(html);\n      $(\"html\").click(function(e) {\n        if (zoom.is(':visible') && $(e.target).parents('#zoom-box').length === 0) {\n          return hide();\n        } else {\n          return void 0;\n        }\n      });\n      $(document).keyup(function(event) {\n        if (event.keyCode === 27 && $(\"#zoom-box:visible\").length > 0) {\n          return hide();\n        }\n      });\n      $('#zoom-box > .zoom-close').click(hide);\n    }\n    zoom = $('#zoom-box');\n    zoom_close = zoom.children('.zoom-close');\n    zoom_content = zoom.children('.zoom-content');\n    this.each(function(i) {\n      return $(this).click(show);\n    });\n    return this;\n  };\n\n}).call(this);\n"
  },
  {
    "path": "style/lib/flot/API.txt",
    "content": "Flot Reference\n--------------\n\nConsider a call to the plot function:\n\n   var plot = $.plot(placeholder, data, options)\n\nThe placeholder is a jQuery object or DOM element or jQuery expression\nthat the plot will be put into. This placeholder needs to have its\nwidth and height set as explained in the README (go read that now if\nyou haven't, it's short). The plot will modify some properties of the\nplaceholder so it's recommended you simply pass in a div that you\ndon't use for anything else. Make sure you check any fancy styling\nyou apply to the div, e.g. background images have been reported to be a\nproblem on IE 7.\n\nThe format of the data is documented below, as is the available\noptions. The plot object returned from the call has some methods you\ncan call. These are documented separately below.\n\nNote that in general Flot gives no guarantees if you change any of the\nobjects you pass in to the plot function or get out of it since\nthey're not necessarily deep-copied.\n\n\nData Format\n-----------\n\nThe data is an array of data series:\n\n  [ series1, series2, ... ]\n\nA series can either be raw data or an object with properties. The raw\ndata format is an array of points:\n\n  [ [x1, y1], [x2, y2], ... ]\n\nE.g.\n\n  [ [1, 3], [2, 14.01], [3.5, 3.14] ]\n\nNote that to simplify the internal logic in Flot both the x and y\nvalues must be numbers (even if specifying time series, see below for\nhow to do this). This is a common problem because you might retrieve\ndata from the database and serialize them directly to JSON without\nnoticing the wrong type. If you're getting mysterious errors, double\ncheck that you're inputting numbers and not strings.\n\nIf a null is specified as a point or if one of the coordinates is null\nor couldn't be converted to a number, the point is ignored when\ndrawing. As a special case, a null value for lines is interpreted as a\nline segment end, i.e. the points before and after the null value are\nnot connected.\n\nLines and points take two coordinates. For filled lines and bars, you\ncan specify a third coordinate which is the bottom of the filled\narea/bar (defaults to 0).\n\nThe format of a single series object is as follows:\n\n  {\n    color: color or number\n    data: rawdata\n    label: string\n    lines: specific lines options\n    bars: specific bars options\n    points: specific points options\n    xaxis: number\n    yaxis: number\n    clickable: boolean\n    hoverable: boolean\n    shadowSize: number\n  }\n\nYou don't have to specify any of them except the data, the rest are\noptions that will get default values. Typically you'd only specify\nlabel and data, like this:\n\n  {\n    label: \"y = 3\",\n    data: [[0, 3], [10, 3]]\n  }\n\nThe label is used for the legend, if you don't specify one, the series\nwill not show up in the legend.\n\nIf you don't specify color, the series will get a color from the\nauto-generated colors. The color is either a CSS color specification\n(like \"rgb(255, 100, 123)\") or an integer that specifies which of\nauto-generated colors to select, e.g. 0 will get color no. 0, etc.\n\nThe latter is mostly useful if you let the user add and remove series,\nin which case you can hard-code the color index to prevent the colors\nfrom jumping around between the series.\n\nThe \"xaxis\" and \"yaxis\" options specify which axis to use. The axes\nare numbered from 1 (default), so { yaxis: 2} means that the series\nshould be plotted against the second y axis.\n\n\"clickable\" and \"hoverable\" can be set to false to disable\ninteractivity for specific series if interactivity is turned on in\nthe plot, see below.\n\nThe rest of the options are all documented below as they are the same\nas the default options passed in via the options parameter in the plot\ncommmand. When you specify them for a specific data series, they will\noverride the default options for the plot for that data series.\n\nHere's a complete example of a simple data specification:\n\n  [ { label: \"Foo\", data: [ [10, 1], [17, -14], [30, 5] ] },\n    { label: \"Bar\", data: [ [11, 13], [19, 11], [30, -7] ] } ]\n\n\nPlot Options\n------------\n\nAll options are completely optional. They are documented individually\nbelow, to change them you just specify them in an object, e.g.\n\n  var options = {\n    series: {\n      lines: { show: true },\n      points: { show: true }\n    }\n  };\n\n  $.plot(placeholder, data, options);\n\n\nCustomizing the legend\n======================\n\n  legend: {\n    show: boolean\n    labelFormatter: null or (fn: string, series object -> string)\n    labelBoxBorderColor: color\n    noColumns: number\n    position: \"ne\" or \"nw\" or \"se\" or \"sw\"\n    margin: number of pixels or [x margin, y margin]\n    backgroundColor: null or color\n    backgroundOpacity: number between 0 and 1\n    container: null or jQuery object/DOM element/jQuery expression\n  }\n\nThe legend is generated as a table with the data series labels and\nsmall label boxes with the color of the series. If you want to format\nthe labels in some way, e.g. make them to links, you can pass in a\nfunction for \"labelFormatter\". Here's an example that makes them\nclickable:\n\n  labelFormatter: function(label, series) {\n    // series is the series object for the label\n    return '<a href=\"#' + label + '\">' + label + '</a>';\n  }\n\n\"noColumns\" is the number of columns to divide the legend table into.\n\"position\" specifies the overall placement of the legend within the\nplot (top-right, top-left, etc.) and margin the distance to the plot\nedge (this can be either a number or an array of two numbers like [x,\ny]). \"backgroundColor\" and \"backgroundOpacity\" specifies the\nbackground. The default is a partly transparent auto-detected\nbackground.\n\nIf you want the legend to appear somewhere else in the DOM, you can\nspecify \"container\" as a jQuery object/expression to put the legend\ntable into. The \"position\" and \"margin\" etc. options will then be\nignored. Note that Flot will overwrite the contents of the container.\n\n\nCustomizing the axes\n====================\n\n  xaxis, yaxis: {\n    show: null or true/false\n    position: \"bottom\" or \"top\" or \"left\" or \"right\"\n    mode: null or \"time\"\n\n    color: null or color spec\n    tickColor: null or color spec\n    \n    min: null or number\n    max: null or number\n    autoscaleMargin: null or number\n    \n    transform: null or fn: number -> number\n    inverseTransform: null or fn: number -> number\n    \n    ticks: null or number or ticks array or (fn: range -> ticks array)\n    tickSize: number or array\n    minTickSize: number or array\n    tickFormatter: (fn: number, object -> string) or string\n    tickDecimals: null or number\n\n    labelWidth: null or number\n    labelHeight: null or number\n    reserveSpace: null or true\n    \n    tickLength: null or number\n\n    alignTicksWithAxis: null or number\n  }\n\nAll axes have the same kind of options. The following describes how to\nconfigure one axis, see below for what to do if you've got more than\none x axis or y axis.\n\nIf you don't set the \"show\" option (i.e. it is null), visibility is\nauto-detected, i.e. the axis will show up if there's data associated\nwith it. You can override this by setting the \"show\" option to true or\nfalse.\n\nThe \"position\" option specifies where the axis is placed, bottom or\ntop for x axes, left or right for y axes. The \"mode\" option determines\nhow the data is interpreted, the default of null means as decimal\nnumbers. Use \"time\" for time series data, see the time series data\nsection.\n\nThe \"color\" option determines the color of the labels and ticks for\nthe axis (default is the grid color). For more fine-grained control\nyou can also set the color of the ticks separately with \"tickColor\"\n(otherwise it's autogenerated as the base color with some\ntransparency).\n\nThe options \"min\"/\"max\" are the precise minimum/maximum value on the\nscale. If you don't specify either of them, a value will automatically\nbe chosen based on the minimum/maximum data values. Note that Flot\nalways examines all the data values you feed to it, even if a\nrestriction on another axis may make some of them invisible (this\nmakes interactive use more stable).\n\nThe \"autoscaleMargin\" is a bit esoteric: it's the fraction of margin\nthat the scaling algorithm will add to avoid that the outermost points\nends up on the grid border. Note that this margin is only applied when\na min or max value is not explicitly set. If a margin is specified,\nthe plot will furthermore extend the axis end-point to the nearest\nwhole tick. The default value is \"null\" for the x axes and 0.02 for y\naxes which seems appropriate for most cases.\n\n\"transform\" and \"inverseTransform\" are callbacks you can put in to\nchange the way the data is drawn. You can design a function to\ncompress or expand certain parts of the axis non-linearly, e.g.\nsuppress weekends or compress far away points with a logarithm or some\nother means. When Flot draws the plot, each value is first put through\nthe transform function. Here's an example, the x axis can be turned\ninto a natural logarithm axis with the following code:\n\n  xaxis: {\n    transform: function (v) { return Math.log(v); },\n    inverseTransform: function (v) { return Math.exp(v); }\n  }\n\nSimilarly, for reversing the y axis so the values appear in inverse\norder:\n  \n  yaxis: {\n    transform: function (v) { return -v; },\n    inverseTransform: function (v) { return -v; }\n  }\n\nNote that for finding extrema, Flot assumes that the transform\nfunction does not reorder values (it should be monotone).\n\nThe inverseTransform is simply the inverse of the transform function\n(so v == inverseTransform(transform(v)) for all relevant v). It is\nrequired for converting from canvas coordinates to data coordinates,\ne.g. for a mouse interaction where a certain pixel is clicked. If you\ndon't use any interactive features of Flot, you may not need it.\n\n\nThe rest of the options deal with the ticks.\n\nIf you don't specify any ticks, a tick generator algorithm will make\nsome for you. The algorithm has two passes. It first estimates how\nmany ticks would be reasonable and uses this number to compute a nice\nround tick interval size. Then it generates the ticks.\n\nYou can specify how many ticks the algorithm aims for by setting\n\"ticks\" to a number. The algorithm always tries to generate reasonably\nround tick values so even if you ask for three ticks, you might get\nfive if that fits better with the rounding. If you don't want any\nticks at all, set \"ticks\" to 0 or an empty array.\n\nAnother option is to skip the rounding part and directly set the tick\ninterval size with \"tickSize\". If you set it to 2, you'll get ticks at\n2, 4, 6, etc. Alternatively, you can specify that you just don't want\nticks at a size less than a specific tick size with \"minTickSize\".\nNote that for time series, the format is an array like [2, \"month\"],\nsee the next section.\n\nIf you want to completely override the tick algorithm, you can specify\nan array for \"ticks\", either like this:\n\n  ticks: [0, 1.2, 2.4]\n\nOr like this where the labels are also customized:\n\n  ticks: [[0, \"zero\"], [1.2, \"one mark\"], [2.4, \"two marks\"]]\n\nYou can mix the two if you like.\n  \nFor extra flexibility you can specify a function as the \"ticks\"\nparameter. The function will be called with an object with the axis\nmin and max and should return a ticks array. Here's a simplistic tick\ngenerator that spits out intervals of pi, suitable for use on the x\naxis for trigonometric functions:\n\n  function piTickGenerator(axis) {\n    var res = [], i = Math.floor(axis.min / Math.PI);\n    do {\n      var v = i * Math.PI;\n      res.push([v, i + \"\\u03c0\"]);\n      ++i;\n    } while (v < axis.max);\n    \n    return res;\n  }\n\nYou can control how the ticks look like with \"tickDecimals\", the\nnumber of decimals to display (default is auto-detected).\n\nAlternatively, for ultimate control over how ticks are formatted you can\nprovide a function to \"tickFormatter\". The function is passed two\nparameters, the tick value and an axis object with information, and\nshould return a string. The default formatter looks like this:\n\n  function formatter(val, axis) {\n    return val.toFixed(axis.tickDecimals);\n  }\n\nThe axis object has \"min\" and \"max\" with the range of the axis,\n\"tickDecimals\" with the number of decimals to round the value to and\n\"tickSize\" with the size of the interval between ticks as calculated\nby the automatic axis scaling algorithm (or specified by you). Here's\nan example of a custom formatter:\n\n  function suffixFormatter(val, axis) {\n    if (val > 1000000)\n      return (val / 1000000).toFixed(axis.tickDecimals) + \" MB\";\n    else if (val > 1000)\n      return (val / 1000).toFixed(axis.tickDecimals) + \" kB\";\n    else\n      return val.toFixed(axis.tickDecimals) + \" B\";\n  }\n\n\"labelWidth\" and \"labelHeight\" specifies a fixed size of the tick\nlabels in pixels. They're useful in case you need to align several\nplots. \"reserveSpace\" means that even if an axis isn't shown, Flot\nshould reserve space for it - it is useful in combination with\nlabelWidth and labelHeight for aligning multi-axis charts.\n\n\"tickLength\" is the length of the tick lines in pixels. By default, the\ninnermost axes will have ticks that extend all across the plot, while\nany extra axes use small ticks. A value of null means use the default,\nwhile a number means small ticks of that length - set it to 0 to hide\nthe lines completely.\n\nIf you set \"alignTicksWithAxis\" to the number of another axis, e.g.\nalignTicksWithAxis: 1, Flot will ensure that the autogenerated ticks\nof this axis are aligned with the ticks of the other axis. This may\nimprove the looks, e.g. if you have one y axis to the left and one to\nthe right, because the grid lines will then match the ticks in both\nends. The trade-off is that the forced ticks won't necessarily be at\nnatural places.\n\n\nMultiple axes\n=============\n\nIf you need more than one x axis or y axis, you need to specify for\neach data series which axis they are to use, as described under the\nformat of the data series, e.g. { data: [...], yaxis: 2 } specifies\nthat a series should be plotted against the second y axis.\n\nTo actually configure that axis, you can't use the xaxis/yaxis options\ndirectly - instead there are two arrays in the options:\n\n   xaxes: []\n   yaxes: []\n\nHere's an example of configuring a single x axis and two y axes (we\ncan leave options of the first y axis empty as the defaults are fine):\n\n  {\n    xaxes: [ { position: \"top\" } ],\n    yaxes: [ { }, { position: \"right\", min: 20 } ]\n  }\n\nThe arrays get their default values from the xaxis/yaxis settings, so\nsay you want to have all y axes start at zero, you can simply specify\nyaxis: { min: 0 } instead of adding a min parameter to all the axes.\n\nGenerally, the various interfaces in Flot dealing with data points\neither accept an xaxis/yaxis parameter to specify which axis number to\nuse (starting from 1), or lets you specify the coordinate directly as\nx2/x3/... or x2axis/x3axis/... instead of \"x\" or \"xaxis\".\n\n  \nTime series data\n================\n\nTime series are a bit more difficult than scalar data because\ncalendars don't follow a simple base 10 system. For many cases, Flot\nabstracts most of this away, but it can still be a bit difficult to\nget the data into Flot. So we'll first discuss the data format.\n\nThe time series support in Flot is based on Javascript timestamps,\ni.e. everywhere a time value is expected or handed over, a Javascript\ntimestamp number is used. This is a number, not a Date object. A\nJavascript timestamp is the number of milliseconds since January 1,\n1970 00:00:00 UTC. This is almost the same as Unix timestamps, except it's\nin milliseconds, so remember to multiply by 1000!\n\nYou can see a timestamp like this\n\n  alert((new Date()).getTime())\n\nNormally you want the timestamps to be displayed according to a\ncertain time zone, usually the time zone in which the data has been\nproduced. However, Flot always displays timestamps according to UTC.\nIt has to as the only alternative with core Javascript is to interpret\nthe timestamps according to the time zone that the visitor is in,\nwhich means that the ticks will shift unpredictably with the time zone\nand daylight savings of each visitor.\n\nSo given that there's no good support for custom time zones in\nJavascript, you'll have to take care of this server-side.\n\nThe easiest way to think about it is to pretend that the data\nproduction time zone is UTC, even if it isn't. So if you have a\ndatapoint at 2002-02-20 08:00, you can generate a timestamp for eight\no'clock UTC even if it really happened eight o'clock UTC+0200.\n\nIn PHP you can get an appropriate timestamp with\n'strtotime(\"2002-02-20 UTC\") * 1000', in Python with\n'calendar.timegm(datetime_object.timetuple()) * 1000', in .NET with\nsomething like:\n\n  public static int GetJavascriptTimestamp(System.DateTime input)\n  {\n    System.TimeSpan span = new System.TimeSpan(System.DateTime.Parse(\"1/1/1970\").Ticks);\n    System.DateTime time = input.Subtract(span);\n    return (long)(time.Ticks / 10000);\n  }\n\nJavascript also has some support for parsing date strings, so it is\npossible to generate the timestamps manually client-side.\n\nIf you've already got the real UTC timestamp, it's too late to use the\npretend trick described above. But you can fix up the timestamps by\nadding the time zone offset, e.g. for UTC+0200 you would add 2 hours\nto the UTC timestamp you got. Then it'll look right on the plot. Most\nprogramming environments have some means of getting the timezone\noffset for a specific date (note that you need to get the offset for\neach individual timestamp to account for daylight savings).\n\nOnce you've gotten the timestamps into the data and specified \"time\"\nas the axis mode, Flot will automatically generate relevant ticks and\nformat them. As always, you can tweak the ticks via the \"ticks\" option\n- just remember that the values should be timestamps (numbers), not\nDate objects.\n\nTick generation and formatting can also be controlled separately\nthrough the following axis options:\n\n  minTickSize: array\n  timeformat: null or format string\n  monthNames: null or array of size 12 of strings\n  twelveHourClock: boolean\n\nHere \"timeformat\" is a format string to use. You might use it like\nthis:\n\n  xaxis: {\n    mode: \"time\"\n    timeformat: \"%y/%m/%d\"\n  }\n  \nThis will result in tick labels like \"2000/12/24\". The following\nspecifiers are supported\n\n  %h: hours\n  %H: hours (left-padded with a zero)\n  %M: minutes (left-padded with a zero)\n  %S: seconds (left-padded with a zero)\n  %d: day of month (1-31), use %0d for zero-padding\n  %m: month (1-12), use %0m for zero-padding\n  %y: year (four digits)\n  %b: month name (customizable)\n  %p: am/pm, additionally switches %h/%H to 12 hour instead of 24\n  %P: AM/PM (uppercase version of %p)\n\nInserting a zero like %0m or %0d means that the specifier will be\nleft-padded with a zero if it's only single-digit. So %y-%0m-%0d\nresults in unambigious ISO timestamps like 2007-05-10 (for May 10th).\n\nYou can customize the month names with the \"monthNames\" option. For\ninstance, for Danish you might specify:\n\n  monthNames: [\"jan\", \"feb\", \"mar\", \"apr\", \"maj\", \"jun\", \"jul\", \"aug\", \"sep\", \"okt\", \"nov\", \"dec\"]\n\nIf you set \"twelveHourClock\" to true, the autogenerated timestamps\nwill use 12 hour AM/PM timestamps instead of 24 hour.\n  \nThe format string and month names are used by a very simple built-in\nformat function that takes a date object, a format string (and\noptionally an array of month names) and returns the formatted string.\nIf needed, you can access it as $.plot.formatDate(date, formatstring,\nmonthNames) or even replace it with another more advanced function\nfrom a date library if you're feeling adventurous.\n\nIf everything else fails, you can control the formatting by specifying\na custom tick formatter function as usual. Here's a simple example\nwhich will format December 24 as 24/12:\n\n  tickFormatter: function (val, axis) {\n    var d = new Date(val);\n    return d.getUTCDate() + \"/\" + (d.getUTCMonth() + 1);\n  }\n\nNote that for the time mode \"tickSize\" and \"minTickSize\" are a bit\nspecial in that they are arrays on the form \"[value, unit]\" where unit\nis one of \"second\", \"minute\", \"hour\", \"day\", \"month\" and \"year\". So\nyou can specify\n\n  minTickSize: [1, \"month\"]\n\nto get a tick interval size of at least 1 month and correspondingly,\nif axis.tickSize is [2, \"day\"] in the tick formatter, the ticks have\nbeen produced with two days in-between.\n\n\n\nCustomizing the data series\n===========================\n\n  series: {\n    lines, points, bars: {\n      show: boolean\n      lineWidth: number\n      fill: boolean or number\n      fillColor: null or color/gradient\n    }\n\n    points: {\n      radius: number\n      symbol: \"circle\" or function\n    }\n\n    bars: {\n      barWidth: number\n      align: \"left\" or \"center\"\n      horizontal: boolean\n    }\n\n    lines: {\n      steps: boolean\n    }\n\n    shadowSize: number\n  }\n  \n  colors: [ color1, color2, ... ]\n\nThe options inside \"series: {}\" are copied to each of the series. So\nyou can specify that all series should have bars by putting it in the\nglobal options, or override it for individual series by specifying\nbars in a particular the series object in the array of data.\n  \nThe most important options are \"lines\", \"points\" and \"bars\" that\nspecify whether and how lines, points and bars should be shown for\neach data series. In case you don't specify anything at all, Flot will\ndefault to showing lines (you can turn this off with\nlines: { show: false }). You can specify the various types\nindependently of each other, and Flot will happily draw each of them\nin turn (this is probably only useful for lines and points), e.g.\n\n  var options = {\n    series: {\n      lines: { show: true, fill: true, fillColor: \"rgba(255, 255, 255, 0.8)\" },\n      points: { show: true, fill: false }\n    }\n  };\n\n\"lineWidth\" is the thickness of the line or outline in pixels. You can\nset it to 0 to prevent a line or outline from being drawn; this will\nalso hide the shadow.\n\n\"fill\" is whether the shape should be filled. For lines, this produces\narea graphs. You can use \"fillColor\" to specify the color of the fill.\nIf \"fillColor\" evaluates to false (default for everything except\npoints which are filled with white), the fill color is auto-set to the\ncolor of the data series. You can adjust the opacity of the fill by\nsetting fill to a number between 0 (fully transparent) and 1 (fully\nopaque).\n\nFor bars, fillColor can be a gradient, see the gradient documentation\nbelow. \"barWidth\" is the width of the bars in units of the x axis (or\nthe y axis if \"horizontal\" is true), contrary to most other measures\nthat are specified in pixels. For instance, for time series the unit\nis milliseconds so 24 * 60 * 60 * 1000 produces bars with the width of\na day. \"align\" specifies whether a bar should be left-aligned\n(default) or centered on top of the value it represents. When\n\"horizontal\" is on, the bars are drawn horizontally, i.e. from the y\naxis instead of the x axis; note that the bar end points are still\ndefined in the same way so you'll probably want to swap the\ncoordinates if you've been plotting vertical bars first.\n\nFor lines, \"steps\" specifies whether two adjacent data points are\nconnected with a straight (possibly diagonal) line or with first a\nhorizontal and then a vertical line. Note that this transforms the\ndata by adding extra points.\n\nFor points, you can specify the radius and the symbol. The only\nbuilt-in symbol type is circles, for other types you can use a plugin\nor define them yourself by specifying a callback:\n\n  function cross(ctx, x, y, radius, shadow) {\n      var size = radius * Math.sqrt(Math.PI) / 2;\n      ctx.moveTo(x - size, y - size);\n      ctx.lineTo(x + size, y + size);\n      ctx.moveTo(x - size, y + size);\n      ctx.lineTo(x + size, y - size);\n  }\n\nThe parameters are the drawing context, x and y coordinates of the\ncenter of the point, a radius which corresponds to what the circle\nwould have used and whether the call is to draw a shadow (due to\nlimited canvas support, shadows are currently faked through extra\ndraws). It's good practice to ensure that the area covered by the\nsymbol is the same as for the circle with the given radius, this\nensures that all symbols have approximately the same visual weight.\n\n\"shadowSize\" is the default size of shadows in pixels. Set it to 0 to\nremove shadows.\n\nThe \"colors\" array specifies a default color theme to get colors for\nthe data series from. You can specify as many colors as you like, like\nthis:\n\n  colors: [\"#d18b2c\", \"#dba255\", \"#919733\"]\n\nIf there are more data series than colors, Flot will try to generate\nextra colors by lightening and darkening colors in the theme.\n\n\nCustomizing the grid\n====================\n\n  grid: {\n    show: boolean\n    aboveData: boolean\n    color: color\n    backgroundColor: color/gradient or null\n    labelMargin: number\n    axisMargin: number\n    markings: array of markings or (fn: axes -> array of markings)\n    borderWidth: number\n    borderColor: color or null\n    minBorderMargin: number or null\n    clickable: boolean\n    hoverable: boolean\n    autoHighlight: boolean\n    mouseActiveRadius: number\n  }\n\nThe grid is the thing with the axes and a number of ticks. Many of the\nthings in the grid are configured under the individual axes, but not\nall. \"color\" is the color of the grid itself whereas \"backgroundColor\"\nspecifies the background color inside the grid area, here null means\nthat the background is transparent. You can also set a gradient, see\nthe gradient documentation below.\n\nYou can turn off the whole grid including tick labels by setting\n\"show\" to false. \"aboveData\" determines whether the grid is drawn\nabove the data or below (below is default).\n\n\"labelMargin\" is the space in pixels between tick labels and axis\nline, and \"axisMargin\" is the space in pixels between axes when there\nare two next to each other. Note that you can style the tick labels\nwith CSS, e.g. to change the color. They have class \"tickLabel\".\n\n\"borderWidth\" is the width of the border around the plot. Set it to 0\nto disable the border. You can also set \"borderColor\" if you want the\nborder to have a different color than the grid lines.\n\"minBorderMargin\" controls the default minimum margin around the\nborder - it's used to make sure that points aren't accidentally\nclipped by the canvas edge so by default the value is computed from\nthe point radius.\n\n\"markings\" is used to draw simple lines and rectangular areas in the\nbackground of the plot. You can either specify an array of ranges on\nthe form { xaxis: { from, to }, yaxis: { from, to } } (with multiple\naxes, you can specify coordinates for other axes instead, e.g. as\nx2axis/x3axis/...) or with a function that returns such an array given\nthe axes for the plot in an object as the first parameter.\n\nYou can set the color of markings by specifying \"color\" in the ranges\nobject. Here's an example array:\n\n  markings: [ { xaxis: { from: 0, to: 2 }, yaxis: { from: 10, to: 10 }, color: \"#bb0000\" }, ... ]\n\nIf you leave out one of the values, that value is assumed to go to the\nborder of the plot. So for example if you only specify { xaxis: {\nfrom: 0, to: 2 } } it means an area that extends from the top to the\nbottom of the plot in the x range 0-2.\n\nA line is drawn if from and to are the same, e.g.\n\n  markings: [ { yaxis: { from: 1, to: 1 } }, ... ]\n\nwould draw a line parallel to the x axis at y = 1. You can control the\nline width with \"lineWidth\" in the range object.\n\nAn example function that makes vertical stripes might look like this:\n\n  markings: function (axes) {\n    var markings = [];\n    for (var x = Math.floor(axes.xaxis.min); x < axes.xaxis.max; x += 2)\n      markings.push({ xaxis: { from: x, to: x + 1 } });\n    return markings;\n  }\n\n\nIf you set \"clickable\" to true, the plot will listen for click events\non the plot area and fire a \"plotclick\" event on the placeholder with\na position and a nearby data item object as parameters. The coordinates\nare available both in the unit of the axes (not in pixels) and in\nglobal screen coordinates.\n\nLikewise, if you set \"hoverable\" to true, the plot will listen for\nmouse move events on the plot area and fire a \"plothover\" event with\nthe same parameters as the \"plotclick\" event. If \"autoHighlight\" is\ntrue (the default), nearby data items are highlighted automatically.\nIf needed, you can disable highlighting and control it yourself with\nthe highlight/unhighlight plot methods described elsewhere.\n\nYou can use \"plotclick\" and \"plothover\" events like this:\n\n    $.plot($(\"#placeholder\"), [ d ], { grid: { clickable: true } });\n\n    $(\"#placeholder\").bind(\"plotclick\", function (event, pos, item) {\n        alert(\"You clicked at \" + pos.x + \", \" + pos.y);\n        // axis coordinates for other axes, if present, are in pos.x2, pos.x3, ...\n        // if you need global screen coordinates, they are pos.pageX, pos.pageY\n\n        if (item) {\n          highlight(item.series, item.datapoint);\n          alert(\"You clicked a point!\");\n        }\n    });\n\nThe item object in this example is either null or a nearby object on the form:\n\n  item: {\n      datapoint: the point, e.g. [0, 2]\n      dataIndex: the index of the point in the data array\n      series: the series object\n      seriesIndex: the index of the series\n      pageX, pageY: the global screen coordinates of the point\n  }\n\nFor instance, if you have specified the data like this \n\n    $.plot($(\"#placeholder\"), [ { label: \"Foo\", data: [[0, 10], [7, 3]] } ], ...);\n\nand the mouse is near the point (7, 3), \"datapoint\" is [7, 3],\n\"dataIndex\" will be 1, \"series\" is a normalized series object with\namong other things the \"Foo\" label in series.label and the color in\nseries.color, and \"seriesIndex\" is 0. Note that plugins and options\nthat transform the data can shift the indexes from what you specified\nin the original data array.\n\nIf you use the above events to update some other information and want\nto clear out that info in case the mouse goes away, you'll probably\nalso need to listen to \"mouseout\" events on the placeholder div.\n\n\"mouseActiveRadius\" specifies how far the mouse can be from an item\nand still activate it. If there are two or more points within this\nradius, Flot chooses the closest item. For bars, the top-most bar\n(from the latest specified data series) is chosen.\n\nIf you want to disable interactivity for a specific data series, you\ncan set \"hoverable\" and \"clickable\" to false in the options for that\nseries, like this { data: [...], label: \"Foo\", clickable: false }.\n\n\nSpecifying gradients\n====================\n\nA gradient is specified like this:\n\n  { colors: [ color1, color2, ... ] }\n\nFor instance, you might specify a background on the grid going from\nblack to gray like this:\n\n  grid: {\n    backgroundColor: { colors: [\"#000\", \"#999\"] }\n  }\n\nFor the series you can specify the gradient as an object that\nspecifies the scaling of the brightness and the opacity of the series\ncolor, e.g.\n\n  { colors: [{ opacity: 0.8 }, { brightness: 0.6, opacity: 0.8 } ] }\n\nwhere the first color simply has its alpha scaled, whereas the second\nis also darkened. For instance, for bars the following makes the bars\ngradually disappear, without outline:\n\n  bars: {\n      show: true,\n      lineWidth: 0,\n      fill: true,\n      fillColor: { colors: [ { opacity: 0.8 }, { opacity: 0.1 } ] }\n  }\n  \nFlot currently only supports vertical gradients drawn from top to\nbottom because that's what works with IE.\n\n\nPlot Methods\n------------\n\nThe Plot object returned from the plot function has some methods you\ncan call:\n\n  - highlight(series, datapoint)\n\n    Highlight a specific datapoint in the data series. You can either\n    specify the actual objects, e.g. if you got them from a\n    \"plotclick\" event, or you can specify the indices, e.g.\n    highlight(1, 3) to highlight the fourth point in the second series\n    (remember, zero-based indexing).\n\n  \n  - unhighlight(series, datapoint) or unhighlight()\n\n    Remove the highlighting of the point, same parameters as\n    highlight.\n\n    If you call unhighlight with no parameters, e.g. as\n    plot.unhighlight(), all current highlights are removed.\n\n\n  - setData(data)\n\n    You can use this to reset the data used. Note that axis scaling,\n    ticks, legend etc. will not be recomputed (use setupGrid() to do\n    that). You'll probably want to call draw() afterwards.\n\n    You can use this function to speed up redrawing a small plot if\n    you know that the axes won't change. Put in the new data with\n    setData(newdata), call draw(), and you're good to go. Note that\n    for large datasets, almost all the time is consumed in draw()\n    plotting the data so in this case don't bother.\n\n    \n  - setupGrid()\n\n    Recalculate and set axis scaling, ticks, legend etc.\n\n    Note that because of the drawing model of the canvas, this\n    function will immediately redraw (actually reinsert in the DOM)\n    the labels and the legend, but not the actual tick lines because\n    they're drawn on the canvas. You need to call draw() to get the\n    canvas redrawn.\n    \n  - draw()\n\n    Redraws the plot canvas.\n\n  - triggerRedrawOverlay()\n\n    Schedules an update of an overlay canvas used for drawing\n    interactive things like a selection and point highlights. This\n    is mostly useful for writing plugins. The redraw doesn't happen\n    immediately, instead a timer is set to catch multiple successive\n    redraws (e.g. from a mousemove). You can get to the overlay by\n    setting up a drawOverlay hook.\n\n  - width()/height()\n\n    Gets the width and height of the plotting area inside the grid.\n    This is smaller than the canvas or placeholder dimensions as some\n    extra space is needed (e.g. for labels).\n\n  - offset()\n\n    Returns the offset of the plotting area inside the grid relative\n    to the document, useful for instance for calculating mouse\n    positions (event.pageX/Y minus this offset is the pixel position\n    inside the plot).\n\n  - pointOffset({ x: xpos, y: ypos })\n\n    Returns the calculated offset of the data point at (x, y) in data\n    space within the placeholder div. If you are working with multiple axes, you\n    can specify the x and y axis references, e.g. \n\n      o = pointOffset({ x: xpos, y: ypos, xaxis: 2, yaxis: 3 })\n      // o.left and o.top now contains the offset within the div\n\n  - resize()\n\n    Tells Flot to resize the drawing canvas to the size of the\n    placeholder. You need to run setupGrid() and draw() afterwards as\n    canvas resizing is a destructive operation. This is used\n    internally by the resize plugin.\n\n  - shutdown()\n\n    Cleans up any event handlers Flot has currently registered. This\n    is used internally.\n\n\nThere are also some members that let you peek inside the internal\nworkings of Flot which is useful in some cases. Note that if you change\nsomething in the objects returned, you're changing the objects used by\nFlot to keep track of its state, so be careful.\n\n  - getData()\n\n    Returns an array of the data series currently used in normalized\n    form with missing settings filled in according to the global\n    options. So for instance to find out what color Flot has assigned\n    to the data series, you could do this:\n\n      var series = plot.getData();\n      for (var i = 0; i < series.length; ++i)\n        alert(series[i].color);\n\n    A notable other interesting field besides color is datapoints\n    which has a field \"points\" with the normalized data points in a\n    flat array (the field \"pointsize\" is the increment in the flat\n    array to get to the next point so for a dataset consisting only of\n    (x,y) pairs it would be 2).\n\n  - getAxes()\n\n    Gets an object with the axes. The axes are returned as the\n    attributes of the object, so for instance getAxes().xaxis is the\n    x axis.\n\n    Various things are stuffed inside an axis object, e.g. you could\n    use getAxes().xaxis.ticks to find out what the ticks are for the\n    xaxis. Two other useful attributes are p2c and c2p, functions for\n    transforming from data point space to the canvas plot space and\n    back. Both returns values that are offset with the plot offset.\n    Check the Flot source code for the complete set of attributes (or\n    output an axis with console.log() and inspect it).\n\n    With multiple axes, the extra axes are returned as x2axis, x3axis,\n    etc., e.g. getAxes().y2axis is the second y axis. You can check\n    y2axis.used to see whether the axis is associated with any data\n    points and y2axis.show to see if it is currently shown. \n \n  - getPlaceholder()\n\n    Returns placeholder that the plot was put into. This can be useful\n    for plugins for adding DOM elements or firing events.\n\n  - getCanvas()\n\n    Returns the canvas used for drawing in case you need to hack on it\n    yourself. You'll probably need to get the plot offset too.\n  \n  - getPlotOffset()\n\n    Gets the offset that the grid has within the canvas as an object\n    with distances from the canvas edges as \"left\", \"right\", \"top\",\n    \"bottom\". I.e., if you draw a circle on the canvas with the center\n    placed at (left, top), its center will be at the top-most, left\n    corner of the grid.\n\n  - getOptions()\n\n    Gets the options for the plot, normalized, with default values\n    filled in. You get a reference to actual values used by Flot, so\n    if you modify the values in here, Flot will use the new values.\n    If you change something, you probably have to call draw() or\n    setupGrid() or triggerRedrawOverlay() to see the change.\n    \n\nHooks\n=====\n\nIn addition to the public methods, the Plot object also has some hooks\nthat can be used to modify the plotting process. You can install a\ncallback function at various points in the process, the function then\ngets access to the internal data structures in Flot.\n\nHere's an overview of the phases Flot goes through:\n\n  1. Plugin initialization, parsing options\n  \n  2. Constructing the canvases used for drawing\n\n  3. Set data: parsing data specification, calculating colors,\n     copying raw data points into internal format,\n     normalizing them, finding max/min for axis auto-scaling\n\n  4. Grid setup: calculating axis spacing, ticks, inserting tick\n     labels, the legend\n\n  5. Draw: drawing the grid, drawing each of the series in turn\n\n  6. Setting up event handling for interactive features\n\n  7. Responding to events, if any\n\n  8. Shutdown: this mostly happens in case a plot is overwritten \n\nEach hook is simply a function which is put in the appropriate array.\nYou can add them through the \"hooks\" option, and they are also available\nafter the plot is constructed as the \"hooks\" attribute on the returned\nplot object, e.g.\n\n  // define a simple draw hook\n  function hellohook(plot, canvascontext) { alert(\"hello!\"); };\n\n  // pass it in, in an array since we might want to specify several\n  var plot = $.plot(placeholder, data, { hooks: { draw: [hellohook] } });\n\n  // we can now find it again in plot.hooks.draw[0] unless a plugin\n  // has added other hooks\n\nThe available hooks are described below. All hook callbacks get the\nplot object as first parameter. You can find some examples of defined\nhooks in the plugins bundled with Flot.\n\n - processOptions  [phase 1]\n\n   function(plot, options)\n   \n   Called after Flot has parsed and merged options. Useful in the\n   instance where customizations beyond simple merging of default\n   values is needed. A plugin might use it to detect that it has been\n   enabled and then turn on or off other options.\n\n \n - processRawData  [phase 3]\n\n   function(plot, series, data, datapoints)\n \n   Called before Flot copies and normalizes the raw data for the given\n   series. If the function fills in datapoints.points with normalized\n   points and sets datapoints.pointsize to the size of the points,\n   Flot will skip the copying/normalization step for this series.\n   \n   In any case, you might be interested in setting datapoints.format,\n   an array of objects for specifying how a point is normalized and\n   how it interferes with axis scaling.\n\n   The default format array for points is something along the lines of:\n\n     [\n       { x: true, number: true, required: true },\n       { y: true, number: true, required: true }\n     ]\n\n   The first object means that for the first coordinate it should be\n   taken into account when scaling the x axis, that it must be a\n   number, and that it is required - so if it is null or cannot be\n   converted to a number, the whole point will be zeroed out with\n   nulls. Beyond these you can also specify \"defaultValue\", a value to\n   use if the coordinate is null. This is for instance handy for bars\n   where one can omit the third coordinate (the bottom of the bar)\n   which then defaults to 0.\n\n\n - processDatapoints  [phase 3]\n\n   function(plot, series, datapoints)\n \n   Called after normalization of the given series but before finding\n   min/max of the data points. This hook is useful for implementing data\n   transformations. \"datapoints\" contains the normalized data points in\n   a flat array as datapoints.points with the size of a single point\n   given in datapoints.pointsize. Here's a simple transform that\n   multiplies all y coordinates by 2:\n\n     function multiply(plot, series, datapoints) {\n         var points = datapoints.points, ps = datapoints.pointsize;\n         for (var i = 0; i < points.length; i += ps)\n             points[i + 1] *= 2;\n     }\n\n   Note that you must leave datapoints in a good condition as Flot\n   doesn't check it or do any normalization on it afterwards.\n\n\n - drawSeries  [phase 5]\n\n   function(plot, canvascontext, series)\n\n   Hook for custom drawing of a single series. Called just before the\n   standard drawing routine has been called in the loop that draws\n   each series.\n   \n \n - draw  [phase 5]\n\n   function(plot, canvascontext)\n \n   Hook for drawing on the canvas. Called after the grid is drawn\n   (unless it's disabled or grid.aboveData is set) and the series have\n   been plotted (in case any points, lines or bars have been turned\n   on). For examples of how to draw things, look at the source code.\n   \n \n - bindEvents  [phase 6]\n\n   function(plot, eventHolder)\n\n   Called after Flot has setup its event handlers. Should set any\n   necessary event handlers on eventHolder, a jQuery object with the\n   canvas, e.g.\n\n     function (plot, eventHolder) {\n         eventHolder.mousedown(function (e) {\n             alert(\"You pressed the mouse at \" + e.pageX + \" \" + e.pageY);\n         });\n     }\n\n   Interesting events include click, mousemove, mouseup/down. You can\n   use all jQuery events. Usually, the event handlers will update the\n   state by drawing something (add a drawOverlay hook and call\n   triggerRedrawOverlay) or firing an externally visible event for\n   user code. See the crosshair plugin for an example.\n     \n   Currently, eventHolder actually contains both the static canvas\n   used for the plot itself and the overlay canvas used for\n   interactive features because some versions of IE get the stacking\n   order wrong. The hook only gets one event, though (either for the\n   overlay or for the static canvas).\n\n   Note that custom plot events generated by Flot are not generated on\n   eventHolder, but on the div placeholder supplied as the first\n   argument to the plot call. You can get that with\n   plot.getPlaceholder() - that's probably also the one you should use\n   if you need to fire a custom event.\n\n\n - drawOverlay  [phase 7]\n\n   function (plot, canvascontext)\n\n   The drawOverlay hook is used for interactive things that need a\n   canvas to draw on. The model currently used by Flot works the way\n   that an extra overlay canvas is positioned on top of the static\n   canvas. This overlay is cleared and then completely redrawn\n   whenever something interesting happens. This hook is called when\n   the overlay canvas is to be redrawn.\n\n   \"canvascontext\" is the 2D context of the overlay canvas. You can\n   use this to draw things. You'll most likely need some of the\n   metrics computed by Flot, e.g. plot.width()/plot.height(). See the\n   crosshair plugin for an example.\n\n\n - shutdown  [phase 8]\n\n   function (plot, eventHolder)\n\n   Run when plot.shutdown() is called, which usually only happens in\n   case a plot is overwritten by a new plot. If you're writing a\n   plugin that adds extra DOM elements or event handlers, you should\n   add a callback to clean up after you. Take a look at the section in\n   PLUGINS.txt for more info.\n\n   \nPlugins\n-------\n\nPlugins extend the functionality of Flot. To use a plugin, simply\ninclude its Javascript file after Flot in the HTML page.\n\nIf you're worried about download size/latency, you can concatenate all\nthe plugins you use, and Flot itself for that matter, into one big file\n(make sure you get the order right), then optionally run it through a\nJavascript minifier such as YUI Compressor.\n\nHere's a brief explanation of how the plugin plumbings work:\n\nEach plugin registers itself in the global array $.plot.plugins. When\nyou make a new plot object with $.plot, Flot goes through this array\ncalling the \"init\" function of each plugin and merging default options\nfrom the \"option\" attribute of the plugin. The init function gets a\nreference to the plot object created and uses this to register hooks\nand add new public methods if needed.\n\nSee the PLUGINS.txt file for details on how to write a plugin. As the\nabove description hints, it's actually pretty easy.\n\n\nVersion number\n--------------\n\nThe version number of Flot is available in $.plot.version.\n"
  },
  {
    "path": "style/lib/flot/FAQ.txt",
    "content": "Frequently asked questions\n--------------------------\n\nQ: How much data can Flot cope with?\n\nA: Flot will happily draw everything you send to it so the answer\ndepends on the browser. The excanvas emulation used for IE (built with\nVML) makes IE by far the slowest browser so be sure to test with that\nif IE users are in your target group.\n\n1000 points is not a problem, but as soon as you start having more\npoints than the pixel width, you should probably start thinking about\ndownsampling/aggregation as this is near the resolution limit of the\nchart anyway. If you downsample server-side, you also save bandwidth.\n\n\nQ: Flot isn't working when I'm using JSON data as source!\n\nA: Actually, Flot loves JSON data, you just got the format wrong.\nDouble check that you're not inputting strings instead of numbers,\nlike [[\"0\", \"-2.13\"], [\"5\", \"4.3\"]]. This is most common mistake, and\nthe error might not show up immediately because Javascript can do some\nconversion automatically.\n\n\nQ: Can I export the graph?\n\nA: This is a limitation of the canvas technology. There's a hook in\nthe canvas object for getting an image out, but you won't get the tick\nlabels. And it's not likely to be supported by IE. At this point, your\nbest bet is probably taking a screenshot, e.g. with PrtScn.\n\n\nQ: The bars are all tiny in time mode?\n\nA: It's not really possible to determine the bar width automatically.\nSo you have to set the width with the barWidth option which is NOT in\npixels, but in the units of the x axis (or the y axis for horizontal\nbars). For time mode that's milliseconds so the default value of 1\nmakes the bars 1 millisecond wide.\n\n\nQ: Can I use Flot with libraries like Mootools or Prototype?\n\nA: Yes, Flot supports it out of the box and it's easy! Just use jQuery\ninstead of $, e.g. call jQuery.plot instead of $.plot and use\njQuery(something) instead of $(something). As a convenience, you can\nput in a DOM element for the graph placeholder where the examples and\nthe API documentation are using jQuery objects.\n\nDepending on how you include jQuery, you may have to add one line of\ncode to prevent jQuery from overwriting functions from the other\nlibraries, see the documentation in jQuery (\"Using jQuery with other\nlibraries\") for details.\n\n\nQ: Flot doesn't work with [insert name of Javascript UI framework]!\n\nA: The only non-standard thing used by Flot is the canvas tag;\notherwise it is simply a series of absolute positioned divs within the\nplaceholder tag you put in. If this is not working, it's probably\nbecause the framework you're using is doing something weird with the\nDOM, or you're using it the wrong way.\n\nA common problem is that there's display:none on a container until the\nuser does something. Many tab widgets work this way, and there's\nnothing wrong with it - you just can't call Flot inside a display:none\ncontainer as explained in the README so you need to hold off the Flot\ncall until the container is actually displayed (or use\nvisibility:hidden instead of display:none or move the container\noff-screen).\n\nIf you find there's a specific thing we can do to Flot to help, feel\nfree to submit a bug report. Otherwise, you're welcome to ask for help\non the forum/mailing list, but please don't submit a bug report to\nFlot.\n"
  },
  {
    "path": "style/lib/flot/LICENSE.txt",
    "content": "Copyright (c) 2007-2009 IOLA and Ole Laursen\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "style/lib/flot/Makefile",
    "content": "# Makefile for generating minified files\n\n.PHONY: all\n\n# we cheat and process all .js files instead of an exhaustive list\nall: $(patsubst %.js,%.min.js,$(filter-out %.min.js,$(wildcard *.js)))\n\n%.min.js: %.js\n\tyui-compressor $< -o $@\n"
  },
  {
    "path": "style/lib/flot/NEWS.txt",
    "content": "Flot 0.7\n--------\n\nAPI changes:\n\nMultiple axes support. Code using dual axes should be changed from\nusing x2axis/y2axis in the options to using an array (although\nbackwards-compatibility hooks are in place). For instance,\n\n  {\n    xaxis: { ... }, x2axis: { ... },\n    yaxis: { ... }, y2axis: { ... }\n  }\n\nbecomes\n\n  {\n    xaxes: [ { ... }, { ... } ],\n    yaxes: [ { ... }, { ... } ]\n  }\n\nNote that if you're just using one axis, continue to use the\nxaxis/yaxis directly (it now sets the default settings for the\narrays). Plugins touching the axes must be ported to take the extra\naxes into account, check the source to see some examples.\n\nA related change is that the visibility of axes is now auto-detected.\nSo if you were relying on an axis to show up even without any data in\nthe chart, you now need to set the axis \"show\" option explicitly.\n\n\"tickColor\" on the grid options is now deprecated in favour of a\ncorresponding option on the axes, so { grid: { tickColor: \"#000\" }}\nbecomes { xaxis: { tickColor: \"#000\"}, yaxis: { tickColor: \"#000\"} },\nbut if you just configure a base color Flot will now autogenerate a\ntick color by adding transparency. Backwards-compatibility hooks are\nin place.\n\nFinal note: now that IE 9 is coming out with canvas support, you may\nwant to adapt the excanvas include to skip loading it in IE 9 (the\nexamples have been adapted thanks to Ryley Breiddal). An alternative\nto excanvas using Flash has also surfaced, if your graphs are slow in\nIE, you may want to give it a spin:\n\n  http://code.google.com/p/flashcanvas/\n\n\nChanges:\n\n- Support for specifying a bottom for each point for line charts when\n  filling them, this means that an arbitrary bottom can be used\n  instead of just the x axis (based on patches patiently provided by\n  Roman V. Prikhodchenko).\n- New fillbetween plugin that can compute a bottom for a series from\n  another series, useful for filling areas between lines (see new\n  example percentiles.html for a use case).\n- More predictable handling of gaps for the stacking plugin, now all\n  undefined ranges are skipped.\n- Stacking plugin can stack horizontal bar charts.\n- Navigate plugin now redraws the plot while panning instead of only\n  after the fact (can be disabled by setting the pan.frameRate option\n  to null), raised by lastthemy (issue 235).\n- Date formatter now accepts %0m and %0d to get a zero-padded month or\n  day (issue raised by Maximillian Dornseif).\n- Revamped internals to support an unlimited number of axes, not just\n  dual (sponsored by Flight Data Services,\n  www.flightdataservices.com).\n- New setting on axes, \"tickLength\", to control the size of ticks or\n  turn them off without turning off the labels.\n- Axis labels are now put in container divs with classes, for instance\n  labels in the x axes can be reached via \".xAxis .tickLabel\".\n- Support for setting the color of an axis (sponsored by Flight Data\n  Services, www.flightdataservices.com).\n- Tick color is now auto-generated as the base color with some\n  transparency (unless you override it).\n- Support for aligning ticks in the axes with \"alignTicksWithAxis\" to\n  ensure that they appear next to each other rather than in between,\n  at the expense of possibly awkward tick steps (sponsored by Flight\n  Data Services, www.flightdataservices.com).\n- Support for customizing the point type through a callback when\n  plotting points and new symbol plugin with some predefined point\n  types (sponsored by Utility Data Corporation).\n- Resize plugin for automatically redrawing when the placeholder\n  changes size, e.g. on window resizes (sponsored by Novus Partners).\n  A resize() method has been added to plot object facilitate this.\n- Support Infinity/-Infinity for plotting asymptotes by hacking it\n  into +/-Number.MAX_VALUE (reported by rabaea.mircea).\n- Support for restricting navigate plugin to not pan/zoom an axis (based\n  on patch by kkaefer).\n- Support for providing the drag cursor for the navigate plugin as an\n  option (based on patch by Kelly T. Moore).\n- Options for controlling whether an axis is shown or not (suggestion\n  by Timo Tuominen) and whether to reserve space for it even if it\n  isn't shown.\n- New attribute $.plot.version with the Flot version as a string.\n- The version comment is now included in the minified jquery.flot.min.js.\n- New options.grid.minBorderMargin for adjusting the minimum margin\n  provided around the border (based on patch by corani, issue 188).\n- Refactor replot behaviour so Flot tries to reuse the existing\n  canvas, adding shutdown() methods to the plot (based on patch by\n  Ryley Breiddal, issue 269). This prevents a memory leak in Chrome\n  and hopefully makes replotting faster for those who are using $.plot\n  instead of .setData()/.draw(). Also update jQuery to 1.5.1 to\n  prevent IE leaks fixed in jQuery.\n- New real-time line chart example.\n\n- New hooks: drawSeries, shutdown\n\nBug fixes:\n\n- Fixed problem with findNearbyItem and bars on top of each other\n  (reported by ragingchikn, issue 242).\n- Fixed problem with ticks and the border (based on patch from\n  ultimatehustler69, issue 236).\n- Fixed problem with plugins adding options to the series objects.\n- Fixed a problem introduced in 0.6 with specifying a gradient with {\n  brightness: x, opacity: y }.\n- Don't use $.browser.msie, check for getContext on the created canvas\n  element instead and try to use excanvas if it's not found (fixes IE\n  9 compatibility).\n- highlight(s, index) was looking up the point in the original s.data\n  instead of in the computed datapoints array, which breaks with\n  plugins that modify the datapoints (such as the stacking plugin).\n  Issue 316 reported by curlypaul924.\n- More robust handling of axis from data passed in from getData()\n  (problem reported by Morgan).\n- Fixed problem with turning off bar outline (issue 253, fix by Jordi\n  Castells).\n- Check the selection passed into setSelection in the selection\n  plugin, to guard against errors when synchronizing plots (fix by Lau\n  Bech Lauritzen).\n- Fix bug in crosshair code with mouseout resetting the crosshair even\n  if it is locked (fix by Lau Bech Lauritzen and Banko Adam).\n- Fix bug with points plotting using line width from lines rather than\n  points.\n- Fix bug with passing non-array 0 data (for plugins that don't expect\n  arrays, patch by vpapp1).\n- Fix errors in JSON in examples so they work with jQuery 1.4.2\n  (fix reported by honestbleeps, issue 357).\n- Fix bug with tooltip in interacting.html, this makes the tooltip\n  much smoother (fix by bdkahn). Fix related bug inside highlighting\n  handler in Flot.\n- Use closure trick to make inline colorhelpers plugin respect\n  jQuery.noConflict(true), renaming the global jQuery object (reported\n  by Nick Stielau).\n- Listen for mouseleave events and fire a plothover event with empty\n  item when it occurs to drop highlights when the mouse leaves the\n  plot (reported by by outspirit).\n- Fix bug with using aboveData with a background (reported by\n  amitayd).\n- Fix possible excanvas leak (report and suggested fix by tom9729).\n- Fix bug with backwards compatibility for shadowSize = 0 (report and\n  suggested fix by aspinak).\n- Adapt examples to skip loading excanvas (fix by Ryley Breiddal).\n- Fix bug that prevent a simple f(x) = -x transform from working\n  correctly (fix by Mike, issue 263).\n- Fix bug in restoring cursor in navigate plugin (reported by Matteo\n  Gattanini, issue 395).\n- Fix bug in picking items when transform/inverseTransform is in use\n  (reported by Ofri Raviv, and patches and analysis by Jan and Tom\n  Paton, issue 334 and 467).\n- Fix problem with unaligned ticks and hover/click events caused by\n  padding on the placeholder by hardcoding the placeholder padding to\n  0 (reported by adityadineshsaxena, Matt Sommer, Daniel Atos and some\n  other people, issue 301).\n- Update colorhelpers plugin to avoid dying when trying to parse an\n  invalid string (reported by cadavor, issue 483).\n\n\nFlot 0.6\n--------\n\nAPI changes:\n\n1. Selection support has been moved to a plugin. Thus if you're\npassing selection: { mode: something }, you MUST include the file\njquery.flot.selection.js after jquery.flot.js. This reduces the size\nof base Flot and makes it easier to customize the selection as well as\nimproving code clarity. The change is based on a patch from andershol.\n\n2. In the global options specified in the $.plot command,\n\"lines\", \"points\", \"bars\" and \"shadowSize\" have been moved to a\nsub-object called \"series\", i.e.\n\n  $.plot(placeholder, data, { lines: { show: true }})\n\nshould be changed to\n\n  $.plot(placeholder, data, { series: { lines: { show: true }}})\n\nAll future series-specific options will go into this sub-object to\nsimplify plugin writing. Backward-compatibility code is in place, so\nold code should not break.\n\n3. \"plothover\" no longer provides the original data point, but instead\na normalized one, since there may be no corresponding original point.\n\n4. Due to a bug in previous versions of jQuery, you now need at least\njQuery 1.2.6. But if you can, try jQuery 1.3.2 as it got some\nimprovements in event handling speed.\n\n\nChanges:\n\n- Added support for disabling interactivity for specific data series\n  (request from Ronald Schouten and Steve Upton).\n\n- Flot now calls $() on the placeholder and optional legend container\n  passed in so you can specify DOM elements or CSS expressions to make\n  it easier to use Flot with libraries like Prototype or Mootools or\n  through raw JSON from Ajax responses.\n\n- A new \"plotselecting\" event is now emitted while the user is making\n  a selection.\n\n- The \"plothover\" event is now emitted immediately instead of at most\n  10 times per second, you'll have to put in a setTimeout yourself if\n  you're doing something really expensive on this event.\n\n- The built-in date formatter can now be accessed as\n  $.plot.formatDate(...) (suggestion by Matt Manela) and even\n  replaced.\n\n- Added \"borderColor\" option to the grid (patch from Amaury Chamayou\n  and patch from Mike R. Williamson).\n\n- Added support for gradient backgrounds for the grid, take a look at\n  the \"setting options\" example (based on patch from Amaury Chamayou,\n  issue 90).\n\n- Gradient bars (suggestion by stefpet).\n  \n- Added a \"plotunselected\" event which is triggered when the selection\n  is removed, see \"selection\" example (suggestion by Meda Ugo);\n\n- The option legend.margin can now specify horizontal and vertical\n  margins independently (suggestion by someone who's annoyed).\n\n- Data passed into Flot is now copied to a new canonical format to\n  enable further processing before it hits the drawing routines. As a\n  side-effect, this should make Flot more robust in the face of bad\n  data (and fixes issue 112).\n\n- Step-wise charting: line charts have a new option \"steps\" that when\n  set to true connects the points with horizontal/vertical steps\n  instead of diagonal lines.\n\n- The legend labelFormatter now passes the series in addition to just\n  the label (suggestion by Vincent Lemeltier).\n\n- Horizontal bars (based on patch by Jason LeBrun).\n\n- Support for partial bars by specifying a third coordinate, i.e. they\n  don't have to start from the axis. This can be used to make stacked\n  bars.\n\n- New option to disable the (grid.show).\n\n- Added pointOffset method for converting a point in data space to an\n  offset within the placeholder.\n  \n- Plugin system: register an init method in the $.flot.plugins array\n  to get started, see PLUGINS.txt for details on how to write plugins\n  (it's easy). There are also some extra methods to enable access to\n  internal state.\n\n- Hooks: you can register functions that are called while Flot is\n  crunching the data and doing the plot. This can be used to modify\n  Flot without changing the source, useful for writing plugins. Some\n  hooks are defined, more are likely to come.\n  \n- Threshold plugin: you can set a threshold and a color, and the data\n  points below that threshold will then get the color. Useful for\n  marking data below 0, for instance.\n\n- Stack plugin: you can specify a stack key for each series to have\n  them summed. This is useful for drawing additive/cumulative graphs\n  with bars and (currently unfilled) lines.\n\n- Crosshairs plugin: trace the mouse position on the axes, enable with\n  crosshair: { mode: \"x\"} (see the new tracking example for a use).\n\n- Image plugin: plot prerendered images.\n\n- Navigation plugin for panning and zooming a plot.\n\n- More configurable grid.\n\n- Axis transformation support, useful for non-linear plots, e.g. log\n  axes and compressed time axes (like omitting weekends).\n\n- Support for twelve-hour date formatting (patch by Forrest Aldridge).\n\n- The color parsing code in Flot has been cleaned up and split out so\n  it's now available as a separate jQuery plugin. It's included inline\n  in the Flot source to make dependency managing easier. This also\n  makes it really easy to use the color helpers in Flot plugins.\n\nBug fixes:\n\n- Fixed two corner-case bugs when drawing filled curves (report and\n  analysis by Joshua Varner).\n- Fix auto-adjustment code when setting min to 0 for an axis where the\n  dataset is completely flat on that axis (report by chovy).\n- Fixed a bug with passing in data from getData to setData when the\n  secondary axes are used (issue 65, reported by nperelman).\n- Fixed so that it is possible to turn lines off when no other chart\n  type is shown (based on problem reported by Glenn Vanderburg), and\n  fixed so that setting lineWidth to 0 also hides the shadow (based on\n  problem reported by Sergio Nunes).\n- Updated mousemove position expression to the latest from jQuery (bug\n  reported by meyuchas).\n- Use CSS borders instead of background in legend (fix printing issue 25\n  and 45).\n- Explicitly convert axis min/max to numbers.\n- Fixed a bug with drawing marking lines with different colors\n  (reported by Khurram).\n- Fixed a bug with returning y2 values in the selection event (fix\n  by exists, issue 75).\n- Only set position relative on placeholder if it hasn't already a\n  position different from static (reported by kyberneticist, issue 95).\n- Don't round markings to prevent sub-pixel problems (reported by Dan\n  Lipsitt).\n- Make the grid border act similarly to a regular CSS border, i.e.\n  prevent it from overlapping the plot itself. This also fixes a\n  problem with anti-aliasing when the width is 1 pixel (reported by\n  Anthony Ettinger).\n- Imported version 3 of excanvas and fixed two issues with the newer\n  version. Hopefully, this will make Flot work with IE8 (nudge by\n  Fabien Menager, further analysis by Booink, issue 133).\n- Changed the shadow code for lines to hopefully look a bit better\n  with vertical lines.\n- Round tick positions to avoid possible problems with fractions\n  (suggestion by Fred, issue 130).\n- Made the heuristic for determining how many ticks to aim for a bit\n  smarter.\n- Fix for uneven axis margins (report and patch by Paul Kienzle) and\n  snapping to ticks (concurrent report and patch by lifthrasiir).\n- Fixed bug with slicing in findNearbyItems (patch by zollman).\n- Make heuristic for x axis label widths more dynamic (patch by\n  rickinhethuis).\n- Make sure points on top take precedence when finding nearby points\n  when hovering (reported by didroe, issue 224).\n\nFlot 0.5\n--------\n\nBackwards API change summary: Timestamps are now in UTC. Also\n\"selected\" event -> becomes \"plotselected\" with new data, the\nparameters for setSelection are now different (but backwards\ncompatibility hooks are in place), coloredAreas becomes markings with\na new interface (but backwards compatibility hooks are in place).\n\n\nInteractivity: added a new \"plothover\" event and this and the\n\"plotclick\" event now returns the closest data item (based on patch by\n/david, patch by Mark Byers for bar support). See the revamped\n\"interacting with the data\" example for some hints on what you can do.\n\nHighlighting: you can now highlight points and datapoints are\nautohighlighted when you hover over them (if hovering is turned on).\n\nSupport for dual axis has been added (based on patch by someone who's\nannoyed and /david). For each data series you can specify which axes\nit belongs to, and there are two more axes, x2axis and y2axis, to\ncustomize. This affects the \"selected\" event which has been renamed to\n\"plotselected\" and spews out { xaxis: { from: -10, to: 20 } ... },\nsetSelection in which the parameters are on a new form (backwards\ncompatible hooks are in place so old code shouldn't break) and\nmarkings (formerly coloredAreas).\n\nTimestamps in time mode are now displayed according to\nUTC instead of the time zone of the visitor. This affects the way the\ntimestamps should be input; you'll probably have to offset the\ntimestamps according to your local time zone. It also affects any\ncustom date handling code (which basically now should use the\nequivalent UTC date mehods, e.g. .setUTCMonth() instead of\n.setMonth().\n\nAdded support for specifying the size of tick labels (axis.labelWidth,\naxis.labelHeight). Useful for specifying a max label size to keep\nmultiple plots aligned.\n\nMarkings, previously coloredAreas, are now specified as ranges on the\naxes, like { xaxis: { from: 0, to: 10 }}. Furthermore with markings\nyou can now draw horizontal/vertical lines by setting from and to to\nthe same coordinate (idea from line support patch by by Ryan Funduk).\n\nThe \"fill\" option can now be a number that specifies the opacity of\nthe fill.\n\nYou can now specify a coordinate as null (like [2, null]) and Flot\nwill take the other coordinate into account when scaling the axes\n(based on patch by joebno).\n\nNew option for bars \"align\". Set it to \"center\" to center the bars on\nthe value they represent.\n\nsetSelection now takes a second parameter which you can use to prevent\nthe method from firing the \"plotselected\" handler. \n\nUsing the \"container\" option in legend now overwrites the container\nelement instead of just appending to it (fixes infinite legend bug,\nreported by several people, fix by Brad Dewey).\n\nFixed a bug in calculating spacing around the plot (reported by\ntimothytoe). Fixed a bug in finding max values for all-negative data\nsets. Prevent the possibility of eternal looping in tick calculations.\nFixed a bug when borderWidth is set to 0 (reported by\nRob/sanchothefat). Fixed a bug with drawing bars extending below 0\n(reported by James Hewitt, patch by Ryan Funduk). Fixed a\nbug with line widths of bars (reported by MikeM). Fixed a bug with\n'nw' and 'sw' legend positions. Improved the handling of axis\nauto-scaling with bars. Fixed a bug with multi-line x-axis tick\nlabels (reported by Luca Ciano). IE-fix help by Savage Zhang.\n\n\nFlot 0.4\n--------\n\nAPI changes: deprecated axis.noTicks in favor of just specifying the\nnumber as axis.ticks. So \"xaxis: { noTicks: 10 }\" becomes\n\"xaxis: { ticks: 10 }\"\n\nTime series support. Specify axis.mode: \"time\", put in Javascript\ntimestamps as data, and Flot will automatically spit out sensible\nticks. Take a look at the two new examples. The format can be\ncustomized with axis.timeformat and axis.monthNames, or if that fails\nwith axis.tickFormatter.\n\nSupport for colored background areas via grid.coloredAreas. Specify an\narray of { x1, y1, x2, y2 } objects or a function that returns these\ngiven { xmin, xmax, ymin, ymax }.\n\nMore members on the plot object (report by Chris Davies and others).\n\"getData\" for inspecting the assigned settings on data series (e.g.\ncolor) and \"setData\", \"setupGrid\" and \"draw\" for updating the contents\nwithout a total replot.\n\nThe default number of ticks to aim for is now dependent on the size of\nthe plot in pixels. Support for customizing tick interval sizes\ndirectly with axis.minTickSize and axis.tickSize.\n\nCleaned up the automatic axis scaling algorithm and fixed how it\ninteracts with ticks. Also fixed a couple of tick-related corner case\nbugs (one reported by mainstreetmark, another reported by timothytoe).\n\nThe option axis.tickFormatter now takes a function with two\nparameters, the second parameter is an optional object with\ninformation about the axis. It has min, max, tickDecimals, tickSize.\n\nAdded support for segmented lines (based on patch from Michael\nMacDonald) and for ignoring null and bad values (suggestion from Nick\nKonidaris and joshwaihi). \n\nAdded support for changing the border width (joebno and safoo).\nLabel colors can be changed via CSS by selecting the tickLabel class.\n\nFixed a bug in handling single-item bar series (reported by Emil\nFilipov). Fixed erratic behaviour when interacting with the plot\nwith IE 7 (reported by Lau Bech Lauritzen). Prevent IE/Safari text\nselection when selecting stuff on the canvas.\n\n\n\nFlot 0.3\n--------\n\nThis is mostly a quick-fix release because jquery.js wasn't included\nin the previous zip/tarball.\n\nSupport clicking on the plot. Turn it on with grid: { clickable: true },\nthen you get a \"plotclick\" event on the graph placeholder with the\nposition in units of the plot.\n\nFixed a bug in dealing with data where min = max, thanks to Michael\nMessinides.\n\nInclude jquery.js in the zip/tarball.\n\n\nFlot 0.2\n--------\n\nAdded support for putting a background behind the default legend. The\ndefault is the partly transparent background color. Added\nbackgroundColor and backgroundOpacity to the legend options to control\nthis.\n\nThe ticks options can now be a callback function that takes one\nparameter, an object with the attributes min and max. The function\nshould return a ticks array.\n\nAdded labelFormatter option in legend, useful for turning the legend\nlabels into links.\n\nFixed a couple of bugs.\n\nThe API should now be fully documented.\n\nPatch from Guy Fraser to make parts of the code smaller.\n\nAPI changes: Moved labelMargin option to grid from x/yaxis.\n\n\nFlot 0.1\n--------\n\nFirst public release.\n"
  },
  {
    "path": "style/lib/flot/PLUGINS.txt",
    "content": "Writing plugins\n---------------\n\nAll you need to do to make a new plugin is creating an init function\nand a set of options (if needed), stuffing it into an object and\nputting it in the $.plot.plugins array. For example:\n\n  function myCoolPluginInit(plot) {\n    plot.coolstring = \"Hello!\";\n  };\n\n  $.plot.plugins.push({ init: myCoolPluginInit, options: { ... } });\n\n  // if $.plot is called, it will return a plot object with the\n  // attribute \"coolstring\"\n\nNow, given that the plugin might run in many different places, it's\na good idea to avoid leaking names. The usual trick here is wrap the\nabove lines in an anonymous function which is called immediately, like\nthis: (function () { inner code ... })(). To make it even more robust\nin case $ is not bound to jQuery but some other Javascript library, we\ncan write it as\n\n  (function ($) {\n    // plugin definition\n    // ...\n  })(jQuery);\n\nThere's a complete example below, but you should also check out the\nplugins bundled with Flot.\n\n\nComplete example\n----------------\n  \nHere is a simple debug plugin which alerts each of the series in the\nplot. It has a single option that control whether it is enabled and\nhow much info to output:\n\n  (function ($) {\n    function init(plot) {\n      var debugLevel = 1;\n    \n      function checkDebugEnabled(plot, options) {\n        if (options.debug) {\n          debugLevel = options.debug;\n            \n          plot.hooks.processDatapoints.push(alertSeries);\n        }\n      }\n\n      function alertSeries(plot, series, datapoints) {\n        var msg = \"series \" + series.label;\n        if (debugLevel > 1)\n          msg += \" with \" + series.data.length + \" points\";\n        alert(msg);\n      }\n    \n      plot.hooks.processOptions.push(checkDebugEnabled);\n    }\n\n    var options = { debug: 0 };\n    \n    $.plot.plugins.push({\n        init: init,\n        options: options,\n        name: \"simpledebug\",\n        version: \"0.1\"\n    });\n  })(jQuery);\n\nWe also define \"name\" and \"version\". It's not used by Flot, but might\nbe helpful for other plugins in resolving dependencies.\n  \nPut the above in a file named \"jquery.flot.debug.js\", include it in an\nHTML page and then it can be used with:\n\n  $.plot($(\"#placeholder\"), [...], { debug: 2 });\n\nThis simple plugin illustrates a couple of points:\n\n - It uses the anonymous function trick to avoid name pollution.\n - It can be enabled/disabled through an option.\n - Variables in the init function can be used to store plot-specific\n   state between the hooks.\n\nThe two last points are important because there may be multiple plots\non the same page, and you'd want to make sure they are not mixed up.\n\n\nShutting down a plugin\n----------------------\n\nEach plot object has a shutdown hook which is run when plot.shutdown()\nis called. This usually mostly happens in case another plot is made on\ntop of an existing one.\n\nThe purpose of the hook is to give you a chance to unbind any event\nhandlers you've registered and remove any extra DOM things you've\ninserted.\n\nThe problem with event handlers is that you can have registered a\nhandler which is run in some point in the future, e.g. with\nsetTimeout(). Meanwhile, the plot may have been shutdown and removed,\nbut because your event handler is still referencing it, it can't be\ngarbage collected yet, and worse, if your handler eventually runs, it\nmay overwrite stuff on a completely different plot.\n\n \nSome hints on the options\n-------------------------\n   \nPlugins should always support appropriate options to enable/disable\nthem because the plugin user may have several plots on the same page\nwhere only one should use the plugin. In most cases it's probably a\ngood idea if the plugin is turned off rather than on per default, just\nlike most of the powerful features in Flot.\n\nIf the plugin needs options that are specific to each series, like the\npoints or lines options in core Flot, you can put them in \"series\" in\nthe options object, e.g.\n\n  var options = {\n    series: {\n      downsample: {\n        algorithm: null,\n        maxpoints: 1000\n      }\n    }\n  }\n\nThen they will be copied by Flot into each series, providing default\nvalues in case none are specified.\n\nThink hard and long about naming the options. These names are going to\nbe public API, and code is going to depend on them if the plugin is\nsuccessful.\n"
  },
  {
    "path": "style/lib/flot/README.txt",
    "content": "About\n-----\n\nFlot is a Javascript plotting library for jQuery. Read more at the\nwebsite:\n\n  http://code.google.com/p/flot/\n\nTake a look at the examples linked from above, they should give a good\nimpression of what Flot can do and the source code of the examples is\nprobably the fastest way to learn how to use Flot.\n  \n\nInstallation\n------------\n\nJust include the Javascript file after you've included jQuery.\n\nGenerally, all browsers that support the HTML5 canvas tag are\nsupported.\n\nFor support for Internet Explorer < 9, you can use Excanvas, a canvas\nemulator; this is used in the examples bundled with Flot. You just\ninclude the excanvas script like this:\n\n  <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"excanvas.min.js\"></script><![endif]-->\n\nIf it's not working on your development IE 6.0, check that it has\nsupport for VML which Excanvas is relying on. It appears that some\nstripped down versions used for test environments on virtual machines\nlack the VML support.\n\nYou can also try using Flashcanvas (see\nhttp://code.google.com/p/flashcanvas/), which uses Flash to do the\nemulation. Although Flash can be a bit slower to load than VML, if\nyou've got a lot of points, the Flash version can be much faster\noverall. Flot contains some wrapper code for activating Excanvas which\nFlashcanvas is compatible with.\n\nYou need at least jQuery 1.2.6, but try at least 1.3.2 for interactive\ncharts because of performance improvements in event handling.\n\n\nBasic usage\n-----------\n\nCreate a placeholder div to put the graph in:\n\n   <div id=\"placeholder\"></div>\n\nYou need to set the width and height of this div, otherwise the plot\nlibrary doesn't know how to scale the graph. You can do it inline like\nthis:\n\n   <div id=\"placeholder\" style=\"width:600px;height:300px\"></div>\n\nYou can also do it with an external stylesheet. Make sure that the\nplaceholder isn't within something with a display:none CSS property -\nin that case, Flot has trouble measuring label dimensions which\nresults in garbled looks and might have trouble measuring the\nplaceholder dimensions which is fatal (it'll throw an exception).\n\nThen when the div is ready in the DOM, which is usually on document\nready, run the plot function:\n\n  $.plot($(\"#placeholder\"), data, options);\n\nHere, data is an array of data series and options is an object with\nsettings if you want to customize the plot. Take a look at the\nexamples for some ideas of what to put in or look at the reference\nin the file \"API.txt\". Here's a quick example that'll draw a line from\n(0, 0) to (1, 1):\n\n  $.plot($(\"#placeholder\"), [ [[0, 0], [1, 1]] ], { yaxis: { max: 1 } });\n\nThe plot function immediately draws the chart and then returns a plot\nobject with a couple of methods.\n\n\nWhat's with the name?\n---------------------\n\nFirst: it's pronounced with a short o, like \"plot\". Not like \"flawed\".\n\nSo \"Flot\" rhymes with \"plot\".\n\nAnd if you look up \"flot\" in a Danish-to-English dictionary, some up\nthe words that come up are \"good-looking\", \"attractive\", \"stylish\",\n\"smart\", \"impressive\", \"extravagant\". One of the main goals with Flot\nis pretty looks.\n"
  },
  {
    "path": "style/lib/flot/examples/ajax.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>Example of loading data dynamically with AJAX. Percentage change in GDP (source: <a href=\"http://epp.eurostat.ec.europa.eu/tgm/table.do?tab=table&init=1&plugin=1&language=en&pcode=tsieb020\">Eurostat</a>). Click the buttons below.</p>\n\n    <p>The data is fetched over HTTP, in this case directly from text\n    files. Usually the URL would point to some web server handler\n    (e.g. a PHP page or Java/.NET/Python/Ruby on Rails handler) that\n    extracts it from a database and serializes it to JSON.</p>\n\n    <p>\n      <input class=\"fetchSeries\" type=\"button\" value=\"First dataset\"> -\n      <a href=\"data-eu-gdp-growth.json\">data</a> -\n      <span></span>\n    </p>\n\n    <p>\n      <input class=\"fetchSeries\" type=\"button\" value=\"Second dataset\"> -\n      <a href=\"data-japan-gdp-growth.json\">data</a> -\n      <span></span>\n    </p>\n\n    <p>\n      <input class=\"fetchSeries\" type=\"button\" value=\"Third dataset\"> -\n      <a href=\"data-usa-gdp-growth.json\">data</a> -\n      <span></span>\n    </p>\n\n    <p>If you combine AJAX with setTimeout, you can poll the server\n       for new data.</p>\n\n    <p>\n      <input class=\"dataUpdate\" type=\"button\" value=\"Poll for data\">\n    </p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var options = {\n        lines: { show: true },\n        points: { show: true },\n        xaxis: { tickDecimals: 0, tickSize: 1 }\n    };\n    var data = [];\n    var placeholder = $(\"#placeholder\");\n    \n    $.plot(placeholder, data, options);\n\n    \n    // fetch one series, adding to what we got\n    var alreadyFetched = {};\n    \n    $(\"input.fetchSeries\").click(function () {\n        var button = $(this);\n        \n        // find the URL in the link right next to us \n        var dataurl = button.siblings('a').attr('href');\n\n        // then fetch the data with jQuery\n        function onDataReceived(series) {\n            // extract the first coordinate pair so you can see that\n            // data is now an ordinary Javascript object\n            var firstcoordinate = '(' + series.data[0][0] + ', ' + series.data[0][1] + ')';\n\n            button.siblings('span').text('Fetched ' + series.label + ', first point: ' + firstcoordinate);\n\n            // let's add it to our current data\n            if (!alreadyFetched[series.label]) {\n                alreadyFetched[series.label] = true;\n                data.push(series);\n            }\n            \n            // and plot all we got\n            $.plot(placeholder, data, options);\n         }\n        \n        $.ajax({\n            url: dataurl,\n            method: 'GET',\n            dataType: 'json',\n            success: onDataReceived\n        });\n    });\n\n\n    // initiate a recurring data update\n    $(\"input.dataUpdate\").click(function () {\n        // reset data\n        data = [];\n        alreadyFetched = {};\n        \n        $.plot(placeholder, data, options);\n\n        var iteration = 0;\n        \n        function fetchData() {\n            ++iteration;\n\n            function onDataReceived(series) {\n                // we get all the data in one go, if we only got partial\n                // data, we could merge it with what we already got\n                data = [ series ];\n                \n                $.plot($(\"#placeholder\"), data, options);\n            }\n        \n            $.ajax({\n                // usually, we'll just call the same URL, a script\n                // connected to a database, but in this case we only\n                // have static example files so we need to modify the\n                // URL\n                url: \"data-eu-gdp-growth-\" + iteration + \".json\",\n                method: 'GET',\n                dataType: 'json',\n                success: onDataReceived\n            });\n            \n            if (iteration < 5)\n                setTimeout(fetchData, 1000);\n            else {\n                data = [];\n                alreadyFetched = {};\n            }\n        }\n\n        setTimeout(fetchData, 1000);\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/annotating.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>Flot has support for simple background decorations such as\n    lines and rectangles. They can be useful for marking up certain\n    areas. You can easily add any HTML you need with standard DOM\n    manipulation, e.g. for labels. For drawing custom shapes there is\n    also direct access to the canvas.</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    // generate a dataset\n    var d1 = [];\n    for (var i = 0; i < 20; ++i)\n        d1.push([i, Math.sin(i)]);\n    \n    var data = [{ data: d1, label: \"Pressure\", color: \"#333\" }];\n\n    // setup background areas\n    var markings = [\n        { color: '#f6f6f6', yaxis: { from: 1 } },\n        { color: '#f6f6f6', yaxis: { to: -1 } },\n        { color: '#000', lineWidth: 1, xaxis: { from: 2, to: 2 } },\n        { color: '#000', lineWidth: 1, xaxis: { from: 8, to: 8 } }\n    ];\n    \n    var placeholder = $(\"#placeholder\");\n    \n    // plot it\n    var plot = $.plot(placeholder, data, {\n        bars: { show: true, barWidth: 0.5, fill: 0.9 },\n        xaxis: { ticks: [], autoscaleMargin: 0.02 },\n        yaxis: { min: -2, max: 2 },\n        grid: { markings: markings }\n    });\n\n    // add labels\n    var o;\n\n    o = plot.pointOffset({ x: 2, y: -1.2});\n    // we just append it to the placeholder which Flot already uses\n    // for positioning\n    placeholder.append('<div style=\"position:absolute;left:' + (o.left + 4) + 'px;top:' + o.top + 'px;color:#666;font-size:smaller\">Warming up</div>');\n\n    o = plot.pointOffset({ x: 8, y: -1.2});\n    placeholder.append('<div style=\"position:absolute;left:' + (o.left + 4) + 'px;top:' + o.top + 'px;color:#666;font-size:smaller\">Actual measurements</div>');\n\n    // draw a little arrow on top of the last label to demonstrate\n    // canvas drawing\n    var ctx = plot.getCanvas().getContext(\"2d\");\n    ctx.beginPath();\n    o.left += 4;\n    ctx.moveTo(o.left, o.top);\n    ctx.lineTo(o.left, o.top - 10);\n    ctx.lineTo(o.left + 10, o.top - 5);\n    ctx.lineTo(o.left, o.top);\n    ctx.fillStyle = \"#000\";\n    ctx.fill();\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/basic.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>Simple example. You don't need to specify much to get an\n       attractive look. Put in a placeholder, make sure you set its\n       dimensions (otherwise the plot library will barf) and call the\n       plot function with the data. The axes are automatically\n       scaled.</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var d1 = [];\n    for (var i = 0; i < 14; i += 0.5)\n        d1.push([i, Math.sin(i)]);\n\n    var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];\n\n    // a null signifies separate line segments\n    var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];\n    \n    $.plot($(\"#placeholder\"), [ d1, d2, d3 ]);\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/data-eu-gdp-growth-1.json",
    "content": "{\n    \"label\": \"Europe (EU27)\",\n    \"data\": [[1999, 3.0], [2000, 3.9]]\n}\n"
  },
  {
    "path": "style/lib/flot/examples/data-eu-gdp-growth-2.json",
    "content": "{\n    \"label\": \"Europe (EU27)\",\n    \"data\": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2]]\n}\n"
  },
  {
    "path": "style/lib/flot/examples/data-eu-gdp-growth-3.json",
    "content": "{\n    \"label\": \"Europe (EU27)\",\n    \"data\": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5]]\n}\n"
  },
  {
    "path": "style/lib/flot/examples/data-eu-gdp-growth-4.json",
    "content": "{\n    \"label\": \"Europe (EU27)\",\n    \"data\": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1]]\n}\n"
  },
  {
    "path": "style/lib/flot/examples/data-eu-gdp-growth-5.json",
    "content": "{\n    \"label\": \"Europe (EU27)\",\n    \"data\": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1], [2007, 2.9], [2008, 0.9]]\n}\n"
  },
  {
    "path": "style/lib/flot/examples/data-eu-gdp-growth.json",
    "content": "{\n    \"label\": \"Europe (EU27)\",\n    \"data\": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1], [2007, 2.9], [2008, 0.9]]\n}\n"
  },
  {
    "path": "style/lib/flot/examples/data-japan-gdp-growth.json",
    "content": "{\n    \"label\": \"Japan\",\n    \"data\": [[1999, -0.1], [2000, 2.9], [2001, 0.2], [2002, 0.3], [2003, 1.4], [2004, 2.7], [2005, 1.9], [2006, 2.0], [2007, 2.3], [2008, -0.7]]\n}\n"
  },
  {
    "path": "style/lib/flot/examples/data-usa-gdp-growth.json",
    "content": "{\n    \"label\": \"USA\",\n    \"data\": [[1999, 4.4], [2000, 3.7], [2001, 0.8], [2002, 1.6], [2003, 2.5], [2004, 3.6], [2005, 2.9], [2006, 2.8], [2007, 2.0], [2008, 1.1]]\n}\n"
  },
  {
    "path": "style/lib/flot/examples/graph-types.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px\"></div>\n\n    <p>Flot supports lines, points, filled areas, bars and any\n    combinations of these, in the same plot and even on the same data\n    series.</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var d1 = [];\n    for (var i = 0; i < 14; i += 0.5)\n        d1.push([i, Math.sin(i)]);\n\n    var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];\n\n    var d3 = [];\n    for (var i = 0; i < 14; i += 0.5)\n        d3.push([i, Math.cos(i)]);\n\n    var d4 = [];\n    for (var i = 0; i < 14; i += 0.1)\n        d4.push([i, Math.sqrt(i * 10)]);\n    \n    var d5 = [];\n    for (var i = 0; i < 14; i += 0.5)\n        d5.push([i, Math.sqrt(i)]);\n\n    var d6 = [];\n    for (var i = 0; i < 14; i += 0.5 + Math.random())\n        d6.push([i, Math.sqrt(2*i + Math.sin(i) + 5)]);\n                        \n    $.plot($(\"#placeholder\"), [\n        {\n            data: d1,\n            lines: { show: true, fill: true }\n        },\n        {\n            data: d2,\n            bars: { show: true }\n        },\n        {\n            data: d3,\n            points: { show: true }\n        },\n        {\n            data: d4,\n            lines: { show: true }\n        },\n        {\n            data: d5,\n            lines: { show: true },\n            points: { show: true }\n        },\n        {\n            data: d6,\n            lines: { show: true, steps: true }\n        }\n    ]);\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/image.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.image.js\"></script>\n </head>\n <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:400px;height:400px;\"></div>\n\n    <p>The Cat's Eye Nebula (<a href=\"http://hubblesite.org/gallery/album/nebula/pr2004027a/\">picture from Hubble</a>).</p>\n    \n    <p>With the image plugin, you can plot images. This is for example\n    useful for getting ticks on complex prerendered visualizations.\n    Instead of inputting data points, you put in the images and where\n    their two opposite corners are supposed to be in plot space.</p>\n\n    <p>Images represent a little further complication because you need\n    to make sure they are loaded before you can use them (Flot skips\n    incomplete images). The plugin comes with a couple of helpers\n    for doing that.</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var data = [ [ [\"hs-2004-27-a-large_web.jpg\", -10, -10, 10, 10] ] ];\n    var options = {\n            series: { images: { show: true } },\n            xaxis: { min: -8, max: 4 },\n            yaxis: { min: -8, max: 4 }\n    };\n\n    $.plot.image.loadDataImages(data, options, function () {\n        $.plot($(\"#placeholder\"), data, options);\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/index.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n </head>\n <body>\n    <h1>Flot Examples</h1>\n\n    <p>Here are some examples for <a href=\"http://code.google.com/p/flot/\">Flot</a>, the Javascript charting library for jQuery:</p>\n\n    <ul>\n      <li><a href=\"basic.html\">Basic example</a></li>\n      <li><a href=\"graph-types.html\">Different graph types</a></li>\n      <li><a href=\"setting-options.html\">Setting various options</a> and <a href=\"annotating.html\">annotating a chart</a></li>\n      <li><a href=\"ajax.html\">Updating graphs with AJAX</a> and <a href=\"realtime.html\">real-time updates</a></li>\n    </ul>\n\n    <p>Being interactive:</p>\n    \n    <ul>\n      <li><a href=\"turning-series.html\">Turning series on/off</a></li>\n      <li><a href=\"selection.html\">Rectangular selection support and zooming</a> and <a href=\"zooming.html\">zooming with overview</a> (both with selection plugin)</li>\n      <li><a href=\"interacting.html\">Interacting with the data points</a></li>\n      <li><a href=\"navigate.html\">Panning and zooming</a> (with navigation plugin)</li>\n      <li><a href=\"resize.html\">Automatically redraw when window is resized</a> (with resize plugin)</li>\n    </ul>\n\n    <p>Various features:</p>\n    \n    <ul>\n      <li><a href=\"symbols.html\">Using other symbols than circles for points</a> (with symbol plugin)</li>\n      <li><a href=\"time.html\">Plotting time series</a> and <a href=\"visitors.html\">visitors per day with zooming and weekends</a> (with selection plugin)</li>\n      <li><a href=\"multiple-axes.html\">Multiple axes</a> and <a href=\"interacting-axes.html\">interacting with the axes</a></li>\n      <li><a href=\"thresholding.html\">Thresholding the data</a> (with threshold plugin)</li>\n      <li><a href=\"stacking.html\">Stacked charts</a> (with stacking plugin)</li>\n      <li><a href=\"percentiles.html\">Using filled areas to plot percentiles</a> (with fillbetween plugin)</li>\n      <li><a href=\"tracking.html\">Tracking curves with crosshair</a> (with crosshair plugin)</li>\n      <li><a href=\"image.html\">Plotting prerendered images</a> (with image plugin)</li>\n      <li><a href=\"pie.html\">Pie charts</a> (with pie plugin)</li>\n    </ul>\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/interacting-axes.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>With multiple axes, you sometimes need to interact with them. A\n    simple way to do this is to draw the plot, deduce the axis\n    placements and insert a couple of divs on top to catch events.\n    Try clicking an axis.</p>\n\n    <p id=\"click\"></p>\n\n<script type=\"text/javascript\">\n$(function () {\n    function generate(start, end, fn) {\n        var res = [];\n        for (var i = 0; i <= 100; ++i) {\n            var x = start + i / 100 * (end - start);\n            res.push([x, fn(x)]);\n        }\n        return res;\n    }\n\n    var data = [\n        { data: generate(0, 10, function (x) { return Math.sqrt(x)}), xaxis: 1, yaxis:1 },\n        { data: generate(0, 10, function (x) { return Math.sin(x)}), xaxis: 1, yaxis:2 },\n        { data: generate(0, 10, function (x) { return Math.cos(x)}), xaxis: 1, yaxis:3 },\n        { data: generate(2, 10, function (x) { return Math.tan(x)}), xaxis: 2, yaxis: 4 }\n    ];\n\n    var plot = $.plot($(\"#placeholder\"),\n                      data,\n                      {\n                          xaxes: [\n                              { position: 'bottom' },\n                              { position: 'top'}\n                          ],\n                          yaxes: [\n                              { position: 'left' },\n                              { position: 'left' },\n                              { position: 'right' },\n                              { position: 'left' }\n                          ]\n                      });\n\n    // now for each axis, create a div\n\n    function getBoundingBoxForAxis(plot, axis) {\n        var left = axis.box.left, top = axis.box.top,\n            right = left + axis.box.width, bottom = top + axis.box.height;\n\n        // some ticks may stick out, enlarge the box to encompass all ticks\n        var cls = axis.direction + axis.n + 'Axis';\n        plot.getPlaceholder().find('.' + cls + ' .tickLabel').each(function () {\n            var pos = $(this).position();\n            left = Math.min(pos.left, left);\n            top = Math.min(pos.top, top);\n            right = Math.max(Math.round(pos.left) + $(this).outerWidth(), right);\n            bottom = Math.max(Math.round(pos.top) + $(this).outerHeight(), bottom);\n        });\n        \n        return { left: left, top: top, width: right - left, height: bottom - top };\n    }\n    \n    $.each(plot.getAxes(), function (i, axis) {\n        if (!axis.show)\n            return;\n        \n        var box = getBoundingBoxForAxis(plot, axis);\n        \n        $('<div class=\"axisTarget\" style=\"position:absolute;left:' + box.left + 'px;top:' + box.top + 'px;width:' + box.width +  'px;height:' + box.height + 'px\"></div>')\n            .data('axis.direction', axis.direction)\n            .data('axis.n', axis.n)\n            .css({ backgroundColor: \"#f00\", opacity: 0, cursor: \"pointer\" })\n            .appendTo(plot.getPlaceholder())\n            .hover(\n                function () { $(this).css({ opacity: 0.10 }) },\n                function () { $(this).css({ opacity: 0 }) }\n            )\n            .click(function () {\n                $(\"#click\").text(\"You clicked the \" + axis.direction + axis.n + \"axis!\")\n            });\n    });\n});\n</script>\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/interacting.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px\"></div>\n\n    <p>One of the goals of Flot is to support user interactions. Try\n    pointing and clicking on the points.</p>\n\n    <p id=\"hoverdata\">Mouse hovers at\n    (<span id=\"x\">0</span>, <span id=\"y\">0</span>). <span id=\"clickdata\"></span></p>\n\n    <p>A tooltip is easy to build with a bit of jQuery code and the\n    data returned from the plot.</p>\n\n    <p><input id=\"enableTooltip\" type=\"checkbox\">Enable tooltip</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var sin = [], cos = [];\n    for (var i = 0; i < 14; i += 0.5) {\n        sin.push([i, Math.sin(i)]);\n        cos.push([i, Math.cos(i)]);\n    }\n\n    var plot = $.plot($(\"#placeholder\"),\n           [ { data: sin, label: \"sin(x)\"}, { data: cos, label: \"cos(x)\" } ], {\n               series: {\n                   lines: { show: true },\n                   points: { show: true }\n               },\n               grid: { hoverable: true, clickable: true },\n               yaxis: { min: -1.2, max: 1.2 }\n             });\n\n    function showTooltip(x, y, contents) {\n        $('<div id=\"tooltip\">' + contents + '</div>').css( {\n            position: 'absolute',\n            display: 'none',\n            top: y + 5,\n            left: x + 5,\n            border: '1px solid #fdd',\n            padding: '2px',\n            'background-color': '#fee',\n            opacity: 0.80\n        }).appendTo(\"body\").fadeIn(200);\n    }\n\n    var previousPoint = null;\n    $(\"#placeholder\").bind(\"plothover\", function (event, pos, item) {\n        $(\"#x\").text(pos.x.toFixed(2));\n        $(\"#y\").text(pos.y.toFixed(2));\n\n        if ($(\"#enableTooltip:checked\").length > 0) {\n            if (item) {\n                if (previousPoint != item.dataIndex) {\n                    previousPoint = item.dataIndex;\n                    \n                    $(\"#tooltip\").remove();\n                    var x = item.datapoint[0].toFixed(2),\n                        y = item.datapoint[1].toFixed(2);\n                    \n                    showTooltip(item.pageX, item.pageY,\n                                item.series.label + \" of \" + x + \" = \" + y);\n                }\n            }\n            else {\n                $(\"#tooltip\").remove();\n                previousPoint = null;            \n            }\n        }\n    });\n\n    $(\"#placeholder\").bind(\"plotclick\", function (event, pos, item) {\n        if (item) {\n            $(\"#clickdata\").text(\"You clicked point \" + item.dataIndex + \" in \" + item.series.label + \".\");\n            plot.highlight(item.series, item.datapoint);\n        }\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/layout.css",
    "content": "body {\n  font-family: sans-serif;\n  font-size: 16px;\n  margin: 50px;\n  max-width: 800px;\n}\n"
  },
  {
    "path": "style/lib/flot/examples/multiple-axes.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>Multiple axis support showing the raw oil price in US $/barrel of\n    crude oil vs. the exchange rate from US $ to €.</p>\n\n    <p>As illustrated, you can put in multiple axes if you\n    need to. For each data series, simply specify the axis number.\n    In the options, you can then configure where you want the extra\n    axes to appear.</p>\n\n    <p>Position axis <button>left</button> or <button>right</button>.</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var oilprices = [[1167692400000,61.05], [1167778800000,58.32], [1167865200000,57.35], [1167951600000,56.31], [1168210800000,55.55], [1168297200000,55.64], [1168383600000,54.02], [1168470000000,51.88], [1168556400000,52.99], [1168815600000,52.99], [1168902000000,51.21], [1168988400000,52.24], [1169074800000,50.48], [1169161200000,51.99], [1169420400000,51.13], [1169506800000,55.04], [1169593200000,55.37], [1169679600000,54.23], [1169766000000,55.42], [1170025200000,54.01], [1170111600000,56.97], [1170198000000,58.14], [1170284400000,58.14], [1170370800000,59.02], [1170630000000,58.74], [1170716400000,58.88], [1170802800000,57.71], [1170889200000,59.71], [1170975600000,59.89], [1171234800000,57.81], [1171321200000,59.06], [1171407600000,58.00], [1171494000000,57.99], [1171580400000,59.39], [1171839600000,59.39], [1171926000000,58.07], [1172012400000,60.07], [1172098800000,61.14], [1172444400000,61.39], [1172530800000,61.46], [1172617200000,61.79], [1172703600000,62.00], [1172790000000,60.07], [1173135600000,60.69], [1173222000000,61.82], [1173308400000,60.05], [1173654000000,58.91], [1173740400000,57.93], [1173826800000,58.16], [1173913200000,57.55], [1173999600000,57.11], [1174258800000,56.59], [1174345200000,59.61], [1174518000000,61.69], [1174604400000,62.28], [1174860000000,62.91], [1174946400000,62.93], [1175032800000,64.03], [1175119200000,66.03], [1175205600000,65.87], [1175464800000,64.64], [1175637600000,64.38], [1175724000000,64.28], [1175810400000,64.28], [1176069600000,61.51], [1176156000000,61.89], [1176242400000,62.01], [1176328800000,63.85], [1176415200000,63.63], [1176674400000,63.61], [1176760800000,63.10], [1176847200000,63.13], [1176933600000,61.83], [1177020000000,63.38], [1177279200000,64.58], [1177452000000,65.84], [1177538400000,65.06], [1177624800000,66.46], [1177884000000,64.40], [1178056800000,63.68], [1178143200000,63.19], [1178229600000,61.93], [1178488800000,61.47], [1178575200000,61.55], [1178748000000,61.81], [1178834400000,62.37], [1179093600000,62.46], [1179180000000,63.17], [1179266400000,62.55], [1179352800000,64.94], [1179698400000,66.27], [1179784800000,65.50], [1179871200000,65.77], [1179957600000,64.18], [1180044000000,65.20], [1180389600000,63.15], [1180476000000,63.49], [1180562400000,65.08], [1180908000000,66.30], [1180994400000,65.96], [1181167200000,66.93], [1181253600000,65.98], [1181599200000,65.35], [1181685600000,66.26], [1181858400000,68.00], [1182117600000,69.09], [1182204000000,69.10], [1182290400000,68.19], [1182376800000,68.19], [1182463200000,69.14], [1182722400000,68.19], [1182808800000,67.77], [1182895200000,68.97], [1182981600000,69.57], [1183068000000,70.68], [1183327200000,71.09], [1183413600000,70.92], [1183586400000,71.81], [1183672800000,72.81], [1183932000000,72.19], [1184018400000,72.56], [1184191200000,72.50], [1184277600000,74.15], [1184623200000,75.05], [1184796000000,75.92], [1184882400000,75.57], [1185141600000,74.89], [1185228000000,73.56], [1185314400000,75.57], [1185400800000,74.95], [1185487200000,76.83], [1185832800000,78.21], [1185919200000,76.53], [1186005600000,76.86], [1186092000000,76.00], [1186437600000,71.59], [1186696800000,71.47], [1186956000000,71.62], [1187042400000,71.00], [1187301600000,71.98], [1187560800000,71.12], [1187647200000,69.47], [1187733600000,69.26], [1187820000000,69.83], [1187906400000,71.09], [1188165600000,71.73], [1188338400000,73.36], [1188511200000,74.04], [1188856800000,76.30], [1189116000000,77.49], [1189461600000,78.23], [1189548000000,79.91], [1189634400000,80.09], [1189720800000,79.10], [1189980000000,80.57], [1190066400000,81.93], [1190239200000,83.32], [1190325600000,81.62], [1190584800000,80.95], [1190671200000,79.53], [1190757600000,80.30], [1190844000000,82.88], [1190930400000,81.66], [1191189600000,80.24], [1191276000000,80.05], [1191362400000,79.94], [1191448800000,81.44], [1191535200000,81.22], [1191794400000,79.02], [1191880800000,80.26], [1191967200000,80.30], [1192053600000,83.08], [1192140000000,83.69], [1192399200000,86.13], [1192485600000,87.61], [1192572000000,87.40], [1192658400000,89.47], [1192744800000,88.60], [1193004000000,87.56], [1193090400000,87.56], [1193176800000,87.10], [1193263200000,91.86], [1193612400000,93.53], [1193698800000,94.53], [1193871600000,95.93], [1194217200000,93.98], [1194303600000,96.37], [1194476400000,95.46], [1194562800000,96.32], [1195081200000,93.43], [1195167600000,95.10], [1195426800000,94.64], [1195513200000,95.10], [1196031600000,97.70], [1196118000000,94.42], [1196204400000,90.62], [1196290800000,91.01], [1196377200000,88.71], [1196636400000,88.32], [1196809200000,90.23], [1196982000000,88.28], [1197241200000,87.86], [1197327600000,90.02], [1197414000000,92.25], [1197586800000,90.63], [1197846000000,90.63], [1197932400000,90.49], [1198018800000,91.24], [1198105200000,91.06], [1198191600000,90.49], [1198710000000,96.62], [1198796400000,96.00], [1199142000000,99.62], [1199314800000,99.18], [1199401200000,95.09], [1199660400000,96.33], [1199833200000,95.67], [1200351600000,91.90], [1200438000000,90.84], [1200524400000,90.13], [1200610800000,90.57], [1200956400000,89.21], [1201042800000,86.99], [1201129200000,89.85], [1201474800000,90.99], [1201561200000,91.64], [1201647600000,92.33], [1201734000000,91.75], [1202079600000,90.02], [1202166000000,88.41], [1202252400000,87.14], [1202338800000,88.11], [1202425200000,91.77], [1202770800000,92.78], [1202857200000,93.27], [1202943600000,95.46], [1203030000000,95.46], [1203289200000,101.74], [1203462000000,98.81], [1203894000000,100.88], [1204066800000,99.64], [1204153200000,102.59], [1204239600000,101.84], [1204498800000,99.52], [1204585200000,99.52], [1204671600000,104.52], [1204758000000,105.47], [1204844400000,105.15], [1205103600000,108.75], [1205276400000,109.92], [1205362800000,110.33], [1205449200000,110.21], [1205708400000,105.68], [1205967600000,101.84], [1206313200000,100.86], [1206399600000,101.22], [1206486000000,105.90], [1206572400000,107.58], [1206658800000,105.62], [1206914400000,101.58], [1207000800000,100.98], [1207173600000,103.83], [1207260000000,106.23], [1207605600000,108.50], [1207778400000,110.11], [1207864800000,110.14], [1208210400000,113.79], [1208296800000,114.93], [1208383200000,114.86], [1208728800000,117.48], [1208815200000,118.30], [1208988000000,116.06], [1209074400000,118.52], [1209333600000,118.75], [1209420000000,113.46], [1209592800000,112.52], [1210024800000,121.84], [1210111200000,123.53], [1210197600000,123.69], [1210543200000,124.23], [1210629600000,125.80], [1210716000000,126.29], [1211148000000,127.05], [1211320800000,129.07], [1211493600000,132.19], [1211839200000,128.85], [1212357600000,127.76], [1212703200000,138.54], [1212962400000,136.80], [1213135200000,136.38], [1213308000000,134.86], [1213653600000,134.01], [1213740000000,136.68], [1213912800000,135.65], [1214172000000,134.62], [1214258400000,134.62], [1214344800000,134.62], [1214431200000,139.64], [1214517600000,140.21], [1214776800000,140.00], [1214863200000,140.97], [1214949600000,143.57], [1215036000000,145.29], [1215381600000,141.37], [1215468000000,136.04], [1215727200000,146.40], [1215986400000,145.18], [1216072800000,138.74], [1216159200000,134.60], [1216245600000,129.29], [1216332000000,130.65], [1216677600000,127.95], [1216850400000,127.95], [1217282400000,122.19], [1217455200000,124.08], [1217541600000,125.10], [1217800800000,121.41], [1217887200000,119.17], [1217973600000,118.58], [1218060000000,120.02], [1218405600000,114.45], [1218492000000,113.01], [1218578400000,116.00], [1218751200000,113.77], [1219010400000,112.87], [1219096800000,114.53], [1219269600000,114.98], [1219356000000,114.98], [1219701600000,116.27], [1219788000000,118.15], [1219874400000,115.59], [1219960800000,115.46], [1220306400000,109.71], [1220392800000,109.35], [1220565600000,106.23], [1220824800000,106.34]];\n    var exchangerates = [[1167606000000,0.7580], [1167692400000,0.7580], [1167778800000,0.75470], [1167865200000,0.75490], [1167951600000,0.76130], [1168038000000,0.76550], [1168124400000,0.76930], [1168210800000,0.76940], [1168297200000,0.76880], [1168383600000,0.76780], [1168470000000,0.77080], [1168556400000,0.77270], [1168642800000,0.77490], [1168729200000,0.77410], [1168815600000,0.77410], [1168902000000,0.77320], [1168988400000,0.77270], [1169074800000,0.77370], [1169161200000,0.77240], [1169247600000,0.77120], [1169334000000,0.7720], [1169420400000,0.77210], [1169506800000,0.77170], [1169593200000,0.77040], [1169679600000,0.7690], [1169766000000,0.77110], [1169852400000,0.7740], [1169938800000,0.77450], [1170025200000,0.77450], [1170111600000,0.7740], [1170198000000,0.77160], [1170284400000,0.77130], [1170370800000,0.76780], [1170457200000,0.76880], [1170543600000,0.77180], [1170630000000,0.77180], [1170716400000,0.77280], [1170802800000,0.77290], [1170889200000,0.76980], [1170975600000,0.76850], [1171062000000,0.76810], [1171148400000,0.7690], [1171234800000,0.7690], [1171321200000,0.76980], [1171407600000,0.76990], [1171494000000,0.76510], [1171580400000,0.76130], [1171666800000,0.76160], [1171753200000,0.76140], [1171839600000,0.76140], [1171926000000,0.76070], [1172012400000,0.76020], [1172098800000,0.76110], [1172185200000,0.76220], [1172271600000,0.76150], [1172358000000,0.75980], [1172444400000,0.75980], [1172530800000,0.75920], [1172617200000,0.75730], [1172703600000,0.75660], [1172790000000,0.75670], [1172876400000,0.75910], [1172962800000,0.75820], [1173049200000,0.75850], [1173135600000,0.76130], [1173222000000,0.76310], [1173308400000,0.76150], [1173394800000,0.760], [1173481200000,0.76130], [1173567600000,0.76270], [1173654000000,0.76270], [1173740400000,0.76080], [1173826800000,0.75830], [1173913200000,0.75750], [1173999600000,0.75620], [1174086000000,0.7520], [1174172400000,0.75120], [1174258800000,0.75120], [1174345200000,0.75170], [1174431600000,0.7520], [1174518000000,0.75110], [1174604400000,0.7480], [1174690800000,0.75090], [1174777200000,0.75310], [1174860000000,0.75310], [1174946400000,0.75270], [1175032800000,0.74980], [1175119200000,0.74930], [1175205600000,0.75040], [1175292000000,0.750], [1175378400000,0.74910], [1175464800000,0.74910], [1175551200000,0.74850], [1175637600000,0.74840], [1175724000000,0.74920], [1175810400000,0.74710], [1175896800000,0.74590], [1175983200000,0.74770], [1176069600000,0.74770], [1176156000000,0.74830], [1176242400000,0.74580], [1176328800000,0.74480], [1176415200000,0.7430], [1176501600000,0.73990], [1176588000000,0.73950], [1176674400000,0.73950], [1176760800000,0.73780], [1176847200000,0.73820], [1176933600000,0.73620], [1177020000000,0.73550], [1177106400000,0.73480], [1177192800000,0.73610], [1177279200000,0.73610], [1177365600000,0.73650], [1177452000000,0.73620], [1177538400000,0.73310], [1177624800000,0.73390], [1177711200000,0.73440], [1177797600000,0.73270], [1177884000000,0.73270], [1177970400000,0.73360], [1178056800000,0.73330], [1178143200000,0.73590], [1178229600000,0.73590], [1178316000000,0.73720], [1178402400000,0.7360], [1178488800000,0.7360], [1178575200000,0.7350], [1178661600000,0.73650], [1178748000000,0.73840], [1178834400000,0.73950], [1178920800000,0.74130], [1179007200000,0.73970], [1179093600000,0.73960], [1179180000000,0.73850], [1179266400000,0.73780], [1179352800000,0.73660], [1179439200000,0.740], [1179525600000,0.74110], [1179612000000,0.74060], [1179698400000,0.74050], [1179784800000,0.74140], [1179871200000,0.74310], [1179957600000,0.74310], [1180044000000,0.74380], [1180130400000,0.74430], [1180216800000,0.74430], [1180303200000,0.74430], [1180389600000,0.74340], [1180476000000,0.74290], [1180562400000,0.74420], [1180648800000,0.7440], [1180735200000,0.74390], [1180821600000,0.74370], [1180908000000,0.74370], [1180994400000,0.74290], [1181080800000,0.74030], [1181167200000,0.73990], [1181253600000,0.74180], [1181340000000,0.74680], [1181426400000,0.7480], [1181512800000,0.7480], [1181599200000,0.7490], [1181685600000,0.74940], [1181772000000,0.75220], [1181858400000,0.75150], [1181944800000,0.75020], [1182031200000,0.74720], [1182117600000,0.74720], [1182204000000,0.74620], [1182290400000,0.74550], [1182376800000,0.74490], [1182463200000,0.74670], [1182549600000,0.74580], [1182636000000,0.74270], [1182722400000,0.74270], [1182808800000,0.7430], [1182895200000,0.74290], [1182981600000,0.7440], [1183068000000,0.7430], [1183154400000,0.74220], [1183240800000,0.73880], [1183327200000,0.73880], [1183413600000,0.73690], [1183500000000,0.73450], [1183586400000,0.73450], [1183672800000,0.73450], [1183759200000,0.73520], [1183845600000,0.73410], [1183932000000,0.73410], [1184018400000,0.7340], [1184104800000,0.73240], [1184191200000,0.72720], [1184277600000,0.72640], [1184364000000,0.72550], [1184450400000,0.72580], [1184536800000,0.72580], [1184623200000,0.72560], [1184709600000,0.72570], [1184796000000,0.72470], [1184882400000,0.72430], [1184968800000,0.72440], [1185055200000,0.72350], [1185141600000,0.72350], [1185228000000,0.72350], [1185314400000,0.72350], [1185400800000,0.72620], [1185487200000,0.72880], [1185573600000,0.73010], [1185660000000,0.73370], [1185746400000,0.73370], [1185832800000,0.73240], [1185919200000,0.72970], [1186005600000,0.73170], [1186092000000,0.73150], [1186178400000,0.72880], [1186264800000,0.72630], [1186351200000,0.72630], [1186437600000,0.72420], [1186524000000,0.72530], [1186610400000,0.72640], [1186696800000,0.7270], [1186783200000,0.73120], [1186869600000,0.73050], [1186956000000,0.73050], [1187042400000,0.73180], [1187128800000,0.73580], [1187215200000,0.74090], [1187301600000,0.74540], [1187388000000,0.74370], [1187474400000,0.74240], [1187560800000,0.74240], [1187647200000,0.74150], [1187733600000,0.74190], [1187820000000,0.74140], [1187906400000,0.73770], [1187992800000,0.73550], [1188079200000,0.73150], [1188165600000,0.73150], [1188252000000,0.7320], [1188338400000,0.73320], [1188424800000,0.73460], [1188511200000,0.73280], [1188597600000,0.73230], [1188684000000,0.7340], [1188770400000,0.7340], [1188856800000,0.73360], [1188943200000,0.73510], [1189029600000,0.73460], [1189116000000,0.73210], [1189202400000,0.72940], [1189288800000,0.72660], [1189375200000,0.72660], [1189461600000,0.72540], [1189548000000,0.72420], [1189634400000,0.72130], [1189720800000,0.71970], [1189807200000,0.72090], [1189893600000,0.7210], [1189980000000,0.7210], [1190066400000,0.7210], [1190152800000,0.72090], [1190239200000,0.71590], [1190325600000,0.71330], [1190412000000,0.71050], [1190498400000,0.70990], [1190584800000,0.70990], [1190671200000,0.70930], [1190757600000,0.70930], [1190844000000,0.70760], [1190930400000,0.7070], [1191016800000,0.70490], [1191103200000,0.70120], [1191189600000,0.70110], [1191276000000,0.70190], [1191362400000,0.70460], [1191448800000,0.70630], [1191535200000,0.70890], [1191621600000,0.70770], [1191708000000,0.70770], [1191794400000,0.70770], [1191880800000,0.70910], [1191967200000,0.71180], [1192053600000,0.70790], [1192140000000,0.70530], [1192226400000,0.7050], [1192312800000,0.70550], [1192399200000,0.70550], [1192485600000,0.70450], [1192572000000,0.70510], [1192658400000,0.70510], [1192744800000,0.70170], [1192831200000,0.70], [1192917600000,0.69950], [1193004000000,0.69940], [1193090400000,0.70140], [1193176800000,0.70360], [1193263200000,0.70210], [1193349600000,0.70020], [1193436000000,0.69670], [1193522400000,0.6950], [1193612400000,0.6950], [1193698800000,0.69390], [1193785200000,0.6940], [1193871600000,0.69220], [1193958000000,0.69190], [1194044400000,0.69140], [1194130800000,0.68940], [1194217200000,0.68910], [1194303600000,0.69040], [1194390000000,0.6890], [1194476400000,0.68340], [1194562800000,0.68230], [1194649200000,0.68070], [1194735600000,0.68150], [1194822000000,0.68150], [1194908400000,0.68470], [1194994800000,0.68590], [1195081200000,0.68220], [1195167600000,0.68270], [1195254000000,0.68370], [1195340400000,0.68230], [1195426800000,0.68220], [1195513200000,0.68220], [1195599600000,0.67920], [1195686000000,0.67460], [1195772400000,0.67350], [1195858800000,0.67310], [1195945200000,0.67420], [1196031600000,0.67440], [1196118000000,0.67390], [1196204400000,0.67310], [1196290800000,0.67610], [1196377200000,0.67610], [1196463600000,0.67850], [1196550000000,0.68180], [1196636400000,0.68360], [1196722800000,0.68230], [1196809200000,0.68050], [1196895600000,0.67930], [1196982000000,0.68490], [1197068400000,0.68330], [1197154800000,0.68250], [1197241200000,0.68250], [1197327600000,0.68160], [1197414000000,0.67990], [1197500400000,0.68130], [1197586800000,0.68090], [1197673200000,0.68680], [1197759600000,0.69330], [1197846000000,0.69330], [1197932400000,0.69450], [1198018800000,0.69440], [1198105200000,0.69460], [1198191600000,0.69640], [1198278000000,0.69650], [1198364400000,0.69560], [1198450800000,0.69560], [1198537200000,0.6950], [1198623600000,0.69480], [1198710000000,0.69280], [1198796400000,0.68870], [1198882800000,0.68240], [1198969200000,0.67940], [1199055600000,0.67940], [1199142000000,0.68030], [1199228400000,0.68550], [1199314800000,0.68240], [1199401200000,0.67910], [1199487600000,0.67830], [1199574000000,0.67850], [1199660400000,0.67850], [1199746800000,0.67970], [1199833200000,0.680], [1199919600000,0.68030], [1200006000000,0.68050], [1200092400000,0.6760], [1200178800000,0.6770], [1200265200000,0.6770], [1200351600000,0.67360], [1200438000000,0.67260], [1200524400000,0.67640], [1200610800000,0.68210], [1200697200000,0.68310], [1200783600000,0.68420], [1200870000000,0.68420], [1200956400000,0.68870], [1201042800000,0.69030], [1201129200000,0.68480], [1201215600000,0.68240], [1201302000000,0.67880], [1201388400000,0.68140], [1201474800000,0.68140], [1201561200000,0.67970], [1201647600000,0.67690], [1201734000000,0.67650], [1201820400000,0.67330], [1201906800000,0.67290], [1201993200000,0.67580], [1202079600000,0.67580], [1202166000000,0.6750], [1202252400000,0.6780], [1202338800000,0.68330], [1202425200000,0.68560], [1202511600000,0.69030], [1202598000000,0.68960], [1202684400000,0.68960], [1202770800000,0.68820], [1202857200000,0.68790], [1202943600000,0.68620], [1203030000000,0.68520], [1203116400000,0.68230], [1203202800000,0.68130], [1203289200000,0.68130], [1203375600000,0.68220], [1203462000000,0.68020], [1203548400000,0.68020], [1203634800000,0.67840], [1203721200000,0.67480], [1203807600000,0.67470], [1203894000000,0.67470], [1203980400000,0.67480], [1204066800000,0.67330], [1204153200000,0.6650], [1204239600000,0.66110], [1204326000000,0.65830], [1204412400000,0.6590], [1204498800000,0.6590], [1204585200000,0.65810], [1204671600000,0.65780], [1204758000000,0.65740], [1204844400000,0.65320], [1204930800000,0.65020], [1205017200000,0.65140], [1205103600000,0.65140], [1205190000000,0.65070], [1205276400000,0.6510], [1205362800000,0.64890], [1205449200000,0.64240], [1205535600000,0.64060], [1205622000000,0.63820], [1205708400000,0.63820], [1205794800000,0.63410], [1205881200000,0.63440], [1205967600000,0.63780], [1206054000000,0.64390], [1206140400000,0.64780], [1206226800000,0.64810], [1206313200000,0.64810], [1206399600000,0.64940], [1206486000000,0.64380], [1206572400000,0.63770], [1206658800000,0.63290], [1206745200000,0.63360], [1206831600000,0.63330], [1206914400000,0.63330], [1207000800000,0.6330], [1207087200000,0.63710], [1207173600000,0.64030], [1207260000000,0.63960], [1207346400000,0.63640], [1207432800000,0.63560], [1207519200000,0.63560], [1207605600000,0.63680], [1207692000000,0.63570], [1207778400000,0.63540], [1207864800000,0.6320], [1207951200000,0.63320], [1208037600000,0.63280], [1208124000000,0.63310], [1208210400000,0.63420], [1208296800000,0.63210], [1208383200000,0.63020], [1208469600000,0.62780], [1208556000000,0.63080], [1208642400000,0.63240], [1208728800000,0.63240], [1208815200000,0.63070], [1208901600000,0.62770], [1208988000000,0.62690], [1209074400000,0.63350], [1209160800000,0.63920], [1209247200000,0.640], [1209333600000,0.64010], [1209420000000,0.63960], [1209506400000,0.64070], [1209592800000,0.64230], [1209679200000,0.64290], [1209765600000,0.64720], [1209852000000,0.64850], [1209938400000,0.64860], [1210024800000,0.64670], [1210111200000,0.64440], [1210197600000,0.64670], [1210284000000,0.65090], [1210370400000,0.64780], [1210456800000,0.64610], [1210543200000,0.64610], [1210629600000,0.64680], [1210716000000,0.64490], [1210802400000,0.6470], [1210888800000,0.64610], [1210975200000,0.64520], [1211061600000,0.64220], [1211148000000,0.64220], [1211234400000,0.64250], [1211320800000,0.64140], [1211407200000,0.63660], [1211493600000,0.63460], [1211580000000,0.6350], [1211666400000,0.63460], [1211752800000,0.63460], [1211839200000,0.63430], [1211925600000,0.63460], [1212012000000,0.63790], [1212098400000,0.64160], [1212184800000,0.64420], [1212271200000,0.64310], [1212357600000,0.64310], [1212444000000,0.64350], [1212530400000,0.6440], [1212616800000,0.64730], [1212703200000,0.64690], [1212789600000,0.63860], [1212876000000,0.63560], [1212962400000,0.6340], [1213048800000,0.63460], [1213135200000,0.6430], [1213221600000,0.64520], [1213308000000,0.64670], [1213394400000,0.65060], [1213480800000,0.65040], [1213567200000,0.65030], [1213653600000,0.64810], [1213740000000,0.64510], [1213826400000,0.6450], [1213912800000,0.64410], [1213999200000,0.64140], [1214085600000,0.64090], [1214172000000,0.64090], [1214258400000,0.64280], [1214344800000,0.64310], [1214431200000,0.64180], [1214517600000,0.63710], [1214604000000,0.63490], [1214690400000,0.63330], [1214776800000,0.63340], [1214863200000,0.63380], [1214949600000,0.63420], [1215036000000,0.6320], [1215122400000,0.63180], [1215208800000,0.6370], [1215295200000,0.63680], [1215381600000,0.63680], [1215468000000,0.63830], [1215554400000,0.63710], [1215640800000,0.63710], [1215727200000,0.63550], [1215813600000,0.6320], [1215900000000,0.62770], [1215986400000,0.62760], [1216072800000,0.62910], [1216159200000,0.62740], [1216245600000,0.62930], [1216332000000,0.63110], [1216418400000,0.6310], [1216504800000,0.63120], [1216591200000,0.63120], [1216677600000,0.63040], [1216764000000,0.62940], [1216850400000,0.63480], [1216936800000,0.63780], [1217023200000,0.63680], [1217109600000,0.63680], [1217196000000,0.63680], [1217282400000,0.6360], [1217368800000,0.6370], [1217455200000,0.64180], [1217541600000,0.64110], [1217628000000,0.64350], [1217714400000,0.64270], [1217800800000,0.64270], [1217887200000,0.64190], [1217973600000,0.64460], [1218060000000,0.64680], [1218146400000,0.64870], [1218232800000,0.65940], [1218319200000,0.66660], [1218405600000,0.66660], [1218492000000,0.66780], [1218578400000,0.67120], [1218664800000,0.67050], [1218751200000,0.67180], [1218837600000,0.67840], [1218924000000,0.68110], [1219010400000,0.68110], [1219096800000,0.67940], [1219183200000,0.68040], [1219269600000,0.67810], [1219356000000,0.67560], [1219442400000,0.67350], [1219528800000,0.67630], [1219615200000,0.67620], [1219701600000,0.67770], [1219788000000,0.68150], [1219874400000,0.68020], [1219960800000,0.6780], [1220047200000,0.67960], [1220133600000,0.68170], [1220220000000,0.68170], [1220306400000,0.68320], [1220392800000,0.68770], [1220479200000,0.69120], [1220565600000,0.69140], [1220652000000,0.70090], [1220738400000,0.70120], [1220824800000,0.7010], [1220911200000,0.70050]];\n\n    function euroFormatter(v, axis) {\n        return v.toFixed(axis.tickDecimals) +\"€\";\n    }\n    \n    function doPlot(position) {\n        $.plot($(\"#placeholder\"),\n           [ { data: oilprices, label: \"Oil price ($)\" },\n             { data: exchangerates, label: \"USD/EUR exchange rate\", yaxis: 2 }],\n           { \n               xaxes: [ { mode: 'time' } ],\n               yaxes: [ { min: 0 },\n                        {\n                          // align if we are to the right\n                          alignTicksWithAxis: position == \"right\" ? 1 : null,\n                          position: position,\n                          tickFormatter: euroFormatter\n                        } ],\n               legend: { position: 'sw' }\n           });\n    }\n\n    doPlot(\"right\");\n    \n    $(\"button\").click(function () {\n        doPlot($(this).text());\n    });\n});\n</script>\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/navigate.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.navigate.js\"></script>\n    <style type=\"text/css\">\n    #placeholder .button {\n        position: absolute;\n        cursor: pointer;\n    }\n    #placeholder div.button {\n        font-size: smaller;\n        color: #999;\n        background-color: #eee;\n        padding: 2px;\n    }\n    .message {\n        padding-left: 50px;\n        font-size: smaller;\n    }\n    </style>\n </head>\n <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p class=\"message\"></p>\n\n    <p>With the navigate plugin it is easy to add panning and zooming.\n    Drag to pan, double click to zoom (or use the mouse scrollwheel).</p>\n\n    <p>The plugin fires events (useful for synchronizing several\n    plots) and adds a couple of public methods so you can easily build\n    a little user interface around it, like the little buttons at the\n    top right in the plot.</p>\n    \n\n<script type=\"text/javascript\">\n$(function () {\n    // generate data set from a parametric function with a fractal\n    // look\n    function sumf(f, t, m) {\n        var res = 0;\n        for (var i = 1; i < m; ++i)\n            res += f(i * i * t) / (i * i);\n        return res;\n    }\n    \n    var d1 = [];\n    for (var t = 0; t <= 2 * Math.PI; t += 0.01)\n        d1.push([sumf(Math.cos, t, 10), sumf(Math.sin, t, 10)]);\n    var data = [ d1 ];\n\n    \n    var placeholder = $(\"#placeholder\");\n    var options = {\n        series: { lines: { show: true }, shadowSize: 0 },\n        xaxis: { zoomRange: [0.1, 10], panRange: [-10, 10] },\n        yaxis: { zoomRange: [0.1, 10], panRange: [-10, 10] },\n        zoom: {\n            interactive: true\n        },\n        pan: {\n            interactive: true\n        }\n    };\n\n    var plot = $.plot(placeholder, data, options);\n\n    // show pan/zoom messages to illustrate events \n    placeholder.bind('plotpan', function (event, plot) {\n        var axes = plot.getAxes();\n        $(\".message\").html(\"Panning to x: \"  + axes.xaxis.min.toFixed(2)\n                           + \" &ndash; \" + axes.xaxis.max.toFixed(2)\n                           + \" and y: \" + axes.yaxis.min.toFixed(2)\n                           + \" &ndash; \" + axes.yaxis.max.toFixed(2));\n    });\n\n    placeholder.bind('plotzoom', function (event, plot) {\n        var axes = plot.getAxes();\n        $(\".message\").html(\"Zooming to x: \"  + axes.xaxis.min.toFixed(2)\n                           + \" &ndash; \" + axes.xaxis.max.toFixed(2)\n                           + \" and y: \" + axes.yaxis.min.toFixed(2)\n                           + \" &ndash; \" + axes.yaxis.max.toFixed(2));\n    });\n\n    // add zoom out button \n    $('<div class=\"button\" style=\"right:20px;top:20px\">zoom out</div>').appendTo(placeholder).click(function (e) {\n        e.preventDefault();\n        plot.zoomOut();\n    });\n\n    // and add panning buttons\n    \n    // little helper for taking the repetitive work out of placing\n    // panning arrows\n    function addArrow(dir, right, top, offset) {\n        $('<img class=\"button\" src=\"arrow-' + dir + '.gif\" style=\"right:' + right + 'px;top:' + top + 'px\">').appendTo(placeholder).click(function (e) {\n            e.preventDefault();\n            plot.pan(offset);\n        });\n    }\n\n    addArrow('left', 55, 60, { left: -100 });\n    addArrow('right', 25, 60, { left: 100 });\n    addArrow('up', 40, 45, { top: -100 });\n    addArrow('down', 40, 75, { top: 100 });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/percentiles.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.fillbetween.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:400px;\"></div>\n\n    <p>Height in centimeters of individuals from the US (2003-2006) as function of\n    age in years (source: <a href=\"http://www.cdc.gov/nchs/data/nhsr/nhsr010.pdf\">CDC</a>).\n    The 15%-85%, 25%-75% and 50% percentiles are indicated.</p>\n\n    <p>For each point of a filled curve, you can specify an arbitrary\n    bottom. As this example illustrates, this can be useful for\n    plotting percentiles. If you have the data sets available without\n    appropriate fill bottoms, you can use the fillbetween plugin to\n    compute the data point bottoms automatically.</p>\n    \n<script type=\"text/javascript\">\n$(function () {\n    var males = {'15%': [[2, 88.0], [3, 93.3], [4, 102.0], [5, 108.5], [6, 115.7], [7, 115.6], [8, 124.6], [9, 130.3], [10, 134.3], [11, 141.4], [12, 146.5], [13, 151.7], [14, 159.9], [15, 165.4], [16, 167.8], [17, 168.7], [18, 169.5], [19, 168.0]], '90%': [[2, 96.8], [3, 105.2], [4, 113.9], [5, 120.8], [6, 127.0], [7, 133.1], [8, 139.1], [9, 143.9], [10, 151.3], [11, 161.1], [12, 164.8], [13, 173.5], [14, 179.0], [15, 182.0], [16, 186.9], [17, 185.2], [18, 186.3], [19, 186.6]], '25%': [[2, 89.2], [3, 94.9], [4, 104.4], [5, 111.4], [6, 117.5], [7, 120.2], [8, 127.1], [9, 132.9], [10, 136.8], [11, 144.4], [12, 149.5], [13, 154.1], [14, 163.1], [15, 169.2], [16, 170.4], [17, 171.2], [18, 172.4], [19, 170.8]], '10%': [[2, 86.9], [3, 92.6], [4, 99.9], [5, 107.0], [6, 114.0], [7, 113.5], [8, 123.6], [9, 129.2], [10, 133.0], [11, 140.6], [12, 145.2], [13, 149.7], [14, 158.4], [15, 163.5], [16, 166.9], [17, 167.5], [18, 167.1], [19, 165.3]], 'mean': [[2, 91.9], [3, 98.5], [4, 107.1], [5, 114.4], [6, 120.6], [7, 124.7], [8, 131.1], [9, 136.8], [10, 142.3], [11, 150.0], [12, 154.7], [13, 161.9], [14, 168.7], [15, 173.6], [16, 175.9], [17, 176.6], [18, 176.8], [19, 176.7]], '75%': [[2, 94.5], [3, 102.1], [4, 110.8], [5, 117.9], [6, 124.0], [7, 129.3], [8, 134.6], [9, 141.4], [10, 147.0], [11, 156.1], [12, 160.3], [13, 168.3], [14, 174.7], [15, 178.0], [16, 180.2], [17, 181.7], [18, 181.3], [19, 182.5]], '85%': [[2, 96.2], [3, 103.8], [4, 111.8], [5, 119.6], [6, 125.6], [7, 131.5], [8, 138.0], [9, 143.3], [10, 149.3], [11, 159.8], [12, 162.5], [13, 171.3], [14, 177.5], [15, 180.2], [16, 183.8], [17, 183.4], [18, 183.5], [19, 185.5]], '50%': [[2, 91.9], [3, 98.2], [4, 106.8], [5, 114.6], [6, 120.8], [7, 125.2], [8, 130.3], [9, 137.1], [10, 141.5], [11, 149.4], [12, 153.9], [13, 162.2], [14, 169.0], [15, 174.8], [16, 176.0], [17, 176.8], [18, 176.4], [19, 177.4]]};\n    var females = {'15%': [[2, 84.8], [3, 93.7], [4, 100.6], [5, 105.8], [6, 113.3], [7, 119.3], [8, 124.3], [9, 131.4], [10, 136.9], [11, 143.8], [12, 149.4], [13, 151.2], [14, 152.3], [15, 155.9], [16, 154.7], [17, 157.0], [18, 156.1], [19, 155.4]], '90%': [[2, 95.6], [3, 104.1], [4, 111.9], [5, 119.6], [6, 127.6], [7, 133.1], [8, 138.7], [9, 147.1], [10, 152.8], [11, 161.3], [12, 166.6], [13, 167.9], [14, 169.3], [15, 170.1], [16, 172.4], [17, 169.2], [18, 171.1], [19, 172.4]], '25%': [[2, 87.2], [3, 95.9], [4, 101.9], [5, 107.4], [6, 114.8], [7, 121.4], [8, 126.8], [9, 133.4], [10, 138.6], [11, 146.2], [12, 152.0], [13, 153.8], [14, 155.7], [15, 158.4], [16, 157.0], [17, 158.5], [18, 158.4], [19, 158.1]], '10%': [[2, 84.0], [3, 91.9], [4, 99.2], [5, 105.2], [6, 112.7], [7, 118.0], [8, 123.3], [9, 130.2], [10, 135.0], [11, 141.1], [12, 148.3], [13, 150.0], [14, 150.7], [15, 154.3], [16, 153.6], [17, 155.6], [18, 154.7], [19, 153.1]], 'mean': [[2, 90.2], [3, 98.3], [4, 105.2], [5, 112.2], [6, 119.0], [7, 125.8], [8, 131.3], [9, 138.6], [10, 144.2], [11, 151.3], [12, 156.7], [13, 158.6], [14, 160.5], [15, 162.1], [16, 162.9], [17, 162.2], [18, 163.0], [19, 163.1]], '75%': [[2, 93.2], [3, 101.5], [4, 107.9], [5, 116.6], [6, 122.8], [7, 129.3], [8, 135.2], [9, 143.7], [10, 148.7], [11, 156.9], [12, 160.8], [13, 163.0], [14, 165.0], [15, 165.8], [16, 168.7], [17, 166.2], [18, 167.6], [19, 168.0]], '85%': [[2, 94.5], [3, 102.8], [4, 110.4], [5, 119.0], [6, 125.7], [7, 131.5], [8, 137.9], [9, 146.0], [10, 151.3], [11, 159.9], [12, 164.0], [13, 166.5], [14, 167.5], [15, 168.5], [16, 171.5], [17, 168.0], [18, 169.8], [19, 170.3]], '50%': [[2, 90.2], [3, 98.1], [4, 105.2], [5, 111.7], [6, 118.2], [7, 125.6], [8, 130.5], [9, 138.3], [10, 143.7], [11, 151.4], [12, 156.7], [13, 157.7], [14, 161.0], [15, 162.0], [16, 162.8], [17, 162.2], [18, 162.8], [19, 163.3]]};\n\n    var dataset = [\n       { label: 'Female mean', data: females['mean'], lines: { show: true }, color: \"rgb(255,50,50)\" },\n       { id: 'f15%', data: females['15%'], lines: { show: true, lineWidth: 0, fill: false }, color: \"rgb(255,50,50)\" },\n       { id: 'f25%', data: females['25%'], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: \"rgb(255,50,50)\", fillBetween: 'f15%' },\n       { id: 'f50%', data: females['50%'], lines: { show: true, lineWidth: 0.5, fill: 0.4, shadowSize: 0 }, color: \"rgb(255,50,50)\", fillBetween: 'f25%' },\n       { id: 'f75%', data: females['75%'], lines: { show: true, lineWidth: 0, fill: 0.4 }, color: \"rgb(255,50,50)\", fillBetween: 'f50%' },\n       { id: 'f85%', data: females['85%'], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: \"rgb(255,50,50)\", fillBetween: 'f75%' },\n       \n       { label: 'Male mean', data: males['mean'], lines: { show: true }, color: \"rgb(50,50,255)\" },\n       { id: 'm15%', data: males['15%'], lines: { show: true, lineWidth: 0, fill: false }, color: \"rgb(50,50,255)\" },\n       { id: 'm25%', data: males['25%'], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: \"rgb(50,50,255)\", fillBetween: 'm15%' },\n       { id: 'm50%', data: males['50%'], lines: { show: true, lineWidth: 0.5, fill: 0.4, shadowSize: 0 }, color: \"rgb(50,50,255)\", fillBetween: 'm25%' },\n       { id: 'm75%', data: males['75%'], lines: { show: true, lineWidth: 0, fill: 0.4 }, color: \"rgb(50,50,255)\", fillBetween: 'm50%' },\n       { id: 'm85%', data: males['85%'], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: \"rgb(50,50,255)\", fillBetween: 'm75%' }\n    ]\n\n    $.plot($(\"#placeholder\"), dataset, {\n            xaxis: { tickDecimals: 0 },\n            yaxis: { tickFormatter: function (v) { return v + \" cm\"; } },\n            legend: { position: 'se' }\n        });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/pie.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Pie Examples</title>\n\t<!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n\t<script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.pie.js\"></script>\n\t\n<script type=\"text/javascript\">\n$(function () {\n\t// data\n\t/*var data = [\n\t\t{ label: \"Series1\",  data: 10},\n\t\t{ label: \"Series2\",  data: 30},\n\t\t{ label: \"Series3\",  data: 90},\n\t\t{ label: \"Series4\",  data: 70},\n\t\t{ label: \"Series5\",  data: 80},\n\t\t{ label: \"Series6\",  data: 110}\n\t];*/\n\t/*var data = [\n\t\t{ label: \"Series1\",  data: [[1,10]]},\n\t\t{ label: \"Series2\",  data: [[1,30]]},\n\t\t{ label: \"Series3\",  data: [[1,90]]},\n\t\t{ label: \"Series4\",  data: [[1,70]]},\n\t\t{ label: \"Series5\",  data: [[1,80]]},\n\t\t{ label: \"Series6\",  data: [[1,0]]}\n\t];*/\n\tvar data = [];\n\tvar series = Math.floor(Math.random()*10)+1;\n\tfor( var i = 0; i<series; i++)\n\t{\n\t\tdata[i] = { label: \"Series\"+(i+1), data: Math.floor(Math.random()*100)+1 }\n\t}\n\n\t// DEFAULT\n    $.plot($(\"#default\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true\n\t\t\t}\n\t\t}\n\t});\n\t\n\t// GRAPH 1\n\t$.plot($(\"#graph1\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true\n\t\t\t}\n\t\t},\n\t\tlegend: {\n\t\t\tshow: false\n\t\t}\n\t});\n\t\n\t// GRAPH 2\n\t$.plot($(\"#graph2\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true,\n\t\t\t\tradius: 1,\n\t\t\t\tlabel: {\n\t\t\t\t\tshow: true,\n\t\t\t\t\tradius: 1,\n\t\t\t\t\tformatter: function(label, series){\n\t\t\t\t\t\treturn '<div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\">'+label+'<br/>'+Math.round(series.percent)+'%</div>';\n\t\t\t\t\t},\n\t\t\t\t\tbackground: { opacity: 0.8 }\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlegend: {\n\t\t\tshow: false\n\t\t}\n\t});\n\t\n\t// GRAPH 3\n\t$.plot($(\"#graph3\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true,\n\t\t\t\tradius: 1,\n\t\t\t\tlabel: {\n\t\t\t\t\tshow: true,\n\t\t\t\t\tradius: 3/4,\n\t\t\t\t\tformatter: function(label, series){\n\t\t\t\t\t\treturn '<div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\">'+label+'<br/>'+Math.round(series.percent)+'%</div>';\n\t\t\t\t\t},\n\t\t\t\t\tbackground: { opacity: 0.5 }\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlegend: {\n\t\t\tshow: false\n\t\t}\n\t});\n\t\n\t// GRAPH 4\n\t$.plot($(\"#graph4\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true,\n\t\t\t\tradius: 1,\n\t\t\t\tlabel: {\n\t\t\t\t\tshow: true,\n\t\t\t\t\tradius: 3/4,\n\t\t\t\t\tformatter: function(label, series){\n\t\t\t\t\t\treturn '<div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\">'+label+'<br/>'+Math.round(series.percent)+'%</div>';\n\t\t\t\t\t},\n\t\t\t\t\tbackground: { \n\t\t\t\t\t\topacity: 0.5,\n\t\t\t\t\t\tcolor: '#000'\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlegend: {\n\t\t\tshow: false\n\t\t}\n\t});\n\t\n\t// GRAPH 5\n\t$.plot($(\"#graph5\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true,\n\t\t\t\tradius: 3/4,\n\t\t\t\tlabel: {\n\t\t\t\t\tshow: true,\n\t\t\t\t\tradius: 3/4,\n\t\t\t\t\tformatter: function(label, series){\n\t\t\t\t\t\treturn '<div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\">'+label+'<br/>'+Math.round(series.percent)+'%</div>';\n\t\t\t\t\t},\n\t\t\t\t\tbackground: { \n\t\t\t\t\t\topacity: 0.5,\n\t\t\t\t\t\tcolor: '#000'\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlegend: {\n\t\t\tshow: false\n\t\t}\n\t});\n\t\n\t// GRAPH 6\n\t$.plot($(\"#graph6\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true,\n\t\t\t\tradius: 1,\n\t\t\t\tlabel: {\n\t\t\t\t\tshow: true,\n\t\t\t\t\tradius: 2/3,\n\t\t\t\t\tformatter: function(label, series){\n\t\t\t\t\t\treturn '<div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\">'+label+'<br/>'+Math.round(series.percent)+'%</div>';\n\t\t\t\t\t},\n\t\t\t\t\tthreshold: 0.1\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlegend: {\n\t\t\tshow: false\n\t\t}\n\t});\n\t\n\t// GRAPH 7\n\t$.plot($(\"#graph7\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true,\n\t\t\t\tcombine: {\n\t\t\t\t\tcolor: '#999',\n\t\t\t\t\tthreshold: 0.1\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlegend: {\n\t\t\tshow: false\n\t\t}\n\t});\n\t\n\t// GRAPH 8\n\t$.plot($(\"#graph8\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true,\n\t\t\t\tradius:300,\n\t\t\t\tlabel: {\n\t\t\t\t\tshow: true,\n\t\t\t\t\tformatter: function(label, series){\n\t\t\t\t\t\treturn '<div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\">'+label+'<br/>'+Math.round(series.percent)+'%</div>';\n\t\t\t\t\t},\n\t\t\t\t\tthreshold: 0.1\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlegend: {\n\t\t\tshow: false\n\t\t}\n\t});\n\t\n\t// GRAPH 9\n\t$.plot($(\"#graph9\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true,\n\t\t\t\tradius: 1,\n\t\t\t\ttilt: 0.5,\n\t\t\t\tlabel: {\n\t\t\t\t\tshow: true,\n\t\t\t\t\tradius: 1,\n\t\t\t\t\tformatter: function(label, series){\n\t\t\t\t\t\treturn '<div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\">'+label+'<br/>'+Math.round(series.percent)+'%</div>';\n\t\t\t\t\t},\n\t\t\t\t\tbackground: { opacity: 0.8 }\n\t\t\t\t},\n\t\t\t\tcombine: {\n\t\t\t\t\tcolor: '#999',\n\t\t\t\t\tthreshold: 0.1\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlegend: {\n\t\t\tshow: false\n\t\t}\n\t});\n\t\n\t// DONUT\n    $.plot($(\"#donut\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tinnerRadius: 0.5,\n\t\t\t\tshow: true\n\t\t\t}\n\t\t}\n\t});\n\n\t// INTERACTIVE\n    $.plot($(\"#interactive\"), data, \n\t{\n\t\tseries: {\n\t\t\tpie: { \n\t\t\t\tshow: true\n\t\t\t}\n\t\t},\n\t\tgrid: {\n\t\t\thoverable: true,\n\t\t\tclickable: true\n\t\t}\n\t});\n\t$(\"#interactive\").bind(\"plothover\", pieHover);\n\t$(\"#interactive\").bind(\"plotclick\", pieClick);\n\n});\n\nfunction pieHover(event, pos, obj) \n{\n\tif (!obj)\n                return;\n\tpercent = parseFloat(obj.series.percent).toFixed(2);\n\t$(\"#hover\").html('<span style=\"font-weight: bold; color: '+obj.series.color+'\">'+obj.series.label+' ('+percent+'%)</span>');\n}\n\nfunction pieClick(event, pos, obj) \n{\n\tif (!obj)\n                return;\n\tpercent = parseFloat(obj.series.percent).toFixed(2);\n\talert(''+obj.series.label+': '+percent+'%');\n}\n</script>\n\t<style type=\"text/css\">\n\t\t* {\n\t\t  font-family: sans-serif;\n\t\t}\n\t\t\n\t\tbody\n\t\t{\n\t\t\tpadding: 0 1em 1em 1em;\n\t\t}\n\t\t\n\t\tdiv.graph\n\t\t{\n\t\t\twidth: 400px;\n\t\t\theight: 300px;\n\t\t\tfloat: left;\n\t\t\tborder: 1px dashed gainsboro;\n\t\t}\n\t\t\n\t\tlabel\n\t\t{\n\t\t\tdisplay: block;\n\t\t\tmargin-left: 400px;\n\t\t\tpadding-left: 1em;\n\t\t}\n\t\t\n\t\th2\n\t\t{\n\t\t\tpadding-top: 1em;\n\t\t\tmargin-bottom: 0;\n\t\t\tclear: both;\n\t\t\tcolor: #ccc;\n\t\t}\n\t\t\n\t\tcode\n\t\t{\n\t\t\tdisplay: block;\n\t\t\tbackground-color: #eee;\n\t\t\tborder: 1px dashed #999;\n\t\t\tpadding: 0.5em;\n\t\t\tmargin: 0.5em;\n\t\t\tcolor: #666;\n\t\t\tfont-size: 10pt;\n\t\t}\n\t\t\n\t\tcode b\n\t\t{\n\t\t\tcolor: black;\n\t\t}\n\t\t\n\t\tul\n\t\t{\n\t\t\tfont-size: 10pt;\n\t\t}\n\t\t\n\t\tul li\n\t\t{\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t\t\n\t\tul.options li\n\t\t{\n\t\t\tlist-style: none;\n\t\t\tmargin-bottom: 1em;\n\t\t}\n\t\t\n\t\tul li i\n\t\t{\n\t\t\tcolor: #999;\n\t\t}\n\t</style>\n </head>\n    <body>\n    <h1>Flot Pie Examples</h1>\n\n\t<h2>Default with Legend</h2>\n    <div id=\"default\" class=\"graph\"></div>\n\t<label for=\"default\">\n\t\tDefault pie graph with no options set.\n\t\t<code>\n$.plot($(\"#default\"), data,<br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\n\t<h2>Default without Legend</h2>\n    <div id=\"graph1\" class=\"graph\"></div>\n\t<label for=\"graph1\">\n\t\tDefault pie graph when legend is disabled. Since the labels would normally be outside the container, the graph is resized to fit.\n\t\t<code>\n$.plot($(\"#graph1\"), data, <br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>legend: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: false<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</b><br/>\n});<br/>\n\t\t</code>\n\t</label>\n\t\n\t<h2>Graph2</h2>\n    <div id=\"graph2\" class=\"graph\"></div>\n\t<label for=\"graph2\">\n\t\tAdded a semi-transparent background to the labels and a custom labelFormatter function.\n\t\t<code>\n$.plot($(\"#graph2\"), data, <br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radius: 1,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>label: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radius: 1,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatter: function(label, series){<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return '&lt;div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\"&gt;'+label+'&lt;br/&gt;'+Math.round(series.percent)+'%&lt;/div&gt;';<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background: { opacity: 0.8 }<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;legend: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: false<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\t\n\t<h2>Graph3</h2>\n    <div id=\"graph3\" class=\"graph\"></div>\n\t<label for=\"graph3\">\n\t\tSlightly more transparent label backgrounds and adjusted the radius values to place them within the pie.\n\t\t<code>\n$.plot($(\"#graph3\"), data, <br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radius: 1,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>radius: 3/4,</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatter: function(label, series){<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return '&lt;div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\"&gt;'+label+'&lt;br/&gt;'+Math.round(series.percent)+'%&lt;/div&gt;';<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>background: { opacity: 0.5 }</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;legend: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: false<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\t\n\t<h2>Graph4</h2>\n    <div id=\"graph4\" class=\"graph\"></div>\n\t<label for=\"graph4\">\n\t\tSemi-transparent, black-colored label background.\n\t\t<code>\n$.plot($(\"#graph4\"), data, <br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radius: 1,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radius: 3/4,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatter: function(label, series){<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return '&lt;div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\"&gt;'+label+'&lt;br/&gt;'+Math.round(series.percent)+'%&lt;/div&gt;';<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;opacity: 0.5,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>color: '#000'</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;legend: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: false<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\t\n\t<h2>Graph5</h2>\n    <div id=\"graph5\" class=\"graph\"></div>\n\t<label for=\"graph5\">\n\t\tSemi-transparent, black-colored label background placed at pie edge.\n\t\t<code>\n$.plot($(\"#graph5\"), data, <br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>radius: 3/4,</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radius: 3/4,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatter: function(label, series){<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return '&lt;div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\"&gt;'+label+'&lt;br/&gt;'+Math.round(series.percent)+'%&lt;/div&gt;';<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;opacity: 0.5,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: '#000'<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;legend: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: false<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\t\n\t<h2>Graph6</h2>\n    <div id=\"graph6\" class=\"graph\"></div>\n\t<label for=\"graph6\">\n\t\tLabels can be hidden if the slice is less than a given percentage of the pie (10% in this case).\n\t\t<br><span style=\"color: red\">Note: you may need to refresh the page to see this effect.</span>\n\t\t<code>\n$.plot($(\"#graph6\"), data, <br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>radius: 1,</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>radius: 2/3,</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatter: function(label, series){<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return '&lt;div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\"&gt;'+label+'&lt;br/&gt;'+Math.round(series.percent)+'%&lt;/div&gt;';<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>threshold: 0.1</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;legend: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: false<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\t\n\t<h2>Graph7</h2>\n    <div id=\"graph7\" class=\"graph\"></div>\n\t<label for=\"graph7\">\n\t\tAll slices less than a given percentage of the pie can be combined into a single, larger slice (10% in this case).\n\t\t<br><span style=\"color: red\">Note: you may need to refresh the page to see this effect.</span>\n\t\t<code>\n$.plot($(\"#graph7\"), data, <br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>combine: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: '#999',<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;threshold: 0.1<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;legend: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: false<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\t\n\t<h2>Graph8</h2>\n    <div id=\"graph8\" class=\"graph\"></div>\n\t<label for=\"graph8\">\n\t\tThe radius can also be set to a specific size (even larger than the container itself).\n\t\t<code>\n$.plot($(\"#graph8\"), data, <br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>radius:300,</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatter: function(label, series){<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return '&lt;div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\"&gt;'+label+'&lt;br/&gt;'+Math.round(series.percent)+'%&lt;/div&gt;';<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;threshold: 0.1<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;legend: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: false<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\n\t<h2>Graph9</h2>\n    <div id=\"graph9\" class=\"graph\" style=\"height: 250px;\"></div>\n\t<label for=\"graph9\">\n\t\tThe pie can be tilted at an angle.\n\t\t<code>\n$.plot($(\"#graph9\"), data, <br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radius: 1,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>tilt: 0.5,</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;radius: 1,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatter: function(label, series){<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return '&lt;div style=\"font-size:8pt;text-align:center;padding:2px;color:white;\"&gt;'+label+'&lt;br/&gt;'+Math.round(series.percent)+'%&lt;/div&gt;';<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background: { opacity: 0.8 }<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;combine: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: '#999',<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;threshold: 0.1<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;legend: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: false<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\t\n\t<h2>Donut</h2>\n    <div id=\"donut\" class=\"graph\"></div>\n\t<label for=\"donut\">\n\t\tA donut hole can be added.\n\t\t<code>\n$.plot($(\"#donut\"), data,<br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>innerRadius: 0.5,</b><br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n});<br/>\n\t\t</code>\n\t</label>\n\t\n\t<h2>Interactive</h2>\n    <div id=\"interactive\" class=\"graph\"></div>\n\t<label for=\"interactive\">\n\t\tThe pie can be made interactive with hover and click events.\n\t\t<code>\n$.plot($(\"#interactive\"), data,<br/>\n{<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;series: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pie: { <br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show: true<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>grid: {<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hoverable: true,<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;clickable: true<br/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</b><br/>\n});<br/>\n<b>$(\"#interactive\").bind(\"plothover\", pieHover);<br/>\n$(\"#interactive\").bind(\"plotclick\", pieClick);</b><br/>\n\t\t</code>\n\t\t<div id=\"hover\"></div>\n\t</label>\n\t\t\n\t<h2>Pie Options</h2>\n\t<ul class=\"options\">\n\t\t<li style=\"border-bottom: 1px dotted #ccc;\"><b>option:</b> <i>default value</i> - Description of option</li>\n\t\t<li><b>show:</b> <i>false</i> - Enable the plugin and draw as a pie.</li>\n\t\t<li><b>radius:</b> <i>'auto'</i> - Sets the radius of the pie. If value is between 0 and 1 (inclusive) then it will use that as a percentage of the available space (size of the container), otherwise it will use the value as a direct pixel length. If set to 'auto', it will be set to 1 if the legend is enabled and 3/4 if not.</li>\n\t\t<li><b>innerRadius:</b> <i>0</i> - Sets the radius of the donut hole. If value is between 0 and 1 (inclusive) then it will use that as a percentage of the radius, otherwise it will use the value as a direct pixel length.</li>\n\t\t<li><b>startAngle:</b> <i>3/2</i> - Factor of PI used for the starting angle (in radians) It can range between 0 and 2 (where 0 and 2 have the same result).</li>\n\t\t<li><b>tilt:</b> <i>1</i> - Percentage of tilt ranging from 0 and 1, where 1 has no change (fully vertical) and 0 is completely flat (fully horizontal -- in which case nothing actually gets drawn).</li>\n\t\t<li><b>offset:</b> <ul>\n\t\t\t<li><b>top:</b> <i>0</i> - Pixel distance to move the pie up and down (relative to the center).</li>\n\t\t\t<li><b>left:</b> <i>'auto'</i> - Pixel distance to move the pie left and right (relative to the center).</li>\n\t\t</ul>\n\t\t<li><b>stroke:</b> <ul>\n\t\t\t<li><b>color:</b> <i>'#FFF'</i> - Color of the border of each slice. Hexadecimal color definitions are prefered (other formats may or may not work).</li>\n\t\t\t<li><b>width:</b> <i>1</i> - Pixel width of the border of each slice.</li>\n\t\t</ul>\n\t\t<li><b>label:</b> <ul>\n\t\t\t<li><b>show:</b> <i>'auto'</i> - Enable/Disable the labels. This can be set to true, false, or 'auto'. When set to 'auto', it will be set to false if the legend is enabled and true if not.</li>\n\t\t\t<li><b>radius:</b> <i>1</i> - Sets the radius at which to place the labels. If value is between 0 and 1 (inclusive) then it will use that as a percentage of the available space (size of the container), otherwise it will use the value as a direct pixel length.</li>\n\t\t\t<li><b>threshold:</b> <i>0</i> - Hides the labels of any pie slice that is smaller than the specified percentage (ranging from 0 to 1) i.e. a value of '0.03' will hide all slices 3% or less of the total.</li>\n\t\t\t<li><b>formatter:</b> <i>[function]</i> - This function specifies how the positioned labels should be formatted, and is applied after the legend's labelFormatter function. The labels can also still be styled using the class \"pieLabel\" (i.e. \".pieLabel\" or \"#graph1 .pieLabel\").</li>\n\t\t\t<li><b>radius:</b> <i>1</i> - Sets the radius at which to place the labels. If value is between 0 and 1 (inclusive) then it will use that as a percentage of the available space (size of the container), otherwise it will use the value as a direct pixel length.</li>\n\t\t\t<li><b>background:</b> <ul>\n\t\t\t\t<li><b>color:</b> <i>null</i> - Backgound color of the positioned labels. If null, the plugin will automatically use the color of the slice.</li>\n\t\t\t\t<li><b>opacity:</b> <i>0</i> - Opacity of the background for the positioned labels. Acceptable values range from 0 to 1, where 0 is completely transparent and 1 is completely opaque.</li>\n\t\t\t</ul>\n\t\t</ul>\n\t\t<li><b>combine:</b> <ul>\n\t\t\t<li><b>threshold:</b> <i>0</i> - Combines all slices that are smaller than the specified percentage (ranging from 0 to 1) i.e. a value of '0.03' will combine all slices 3% or less into one slice).</li>\n\t\t\t<li><b>color:</b> <i>null</i> - Backgound color of the positioned labels. If null, the plugin will automatically use the color of the first slice to be combined.</li>\n\t\t\t<li><b>label:</b> <i>'Other'</i> - Label text for the combined slice.</li>\n\t\t</ul>\n\t\t<li><b>highlight:</b> <ul>\n\t\t\t<li><b>opacity:</b> <i>0.5</i> - Opacity of the highlight overlay on top of the current pie slice. Currently this just uses a white overlay, but support for changing the color of the overlay will also be added at a later date.\n\t\t</ul>\n\t</ul>\n\t\n\t<h2>Changes/Features</h2>\n\t<ul>\n\t\t<li style=\"list-style: none;\"><i>v1.0 - November 20th, 2009 - Brian Medendorp</i></li>\n\t\t<li>The pie plug-in is now part of the Flot repository! This should make it a lot easier to deal with.</li>\n\t\t<li>Added a new option (innerRadius) to add a \"donut hole\" to the center of the pie, based on comtributions from Anthony Aragues. I was a little reluctant to add this feature because it doesn't work very well with the shadow created for the tilted pie, but figured it was worthwhile for non-tilted pies. Also, excanvas apparently doesn't support compositing, so it will fall back to using the stroke color to fill in the center (but I recommend setting the stroke color to the background color anyway).</li>\n\t\t<li>Changed the lineJoin for the border of the pie slices to use the 'round' option. This should make the center of the pie look better, particularly when there are numerous thin slices.</li>\n\t\t<li>Included a bug fix submitted by btburnett3 to display a slightly smaller slice in the event that the slice is 100% and being rendered with Internet Explorer. I haven't experienced this bug myself, but it doesn't seem to hurt anything so I've included it.</li>\n\t\t<li>The tilt value is now used when calculating the maximum radius of the pie in relation to the height of the container. This should prevent the pie from being smaller than it needed to in some cases, as well as reducing the amount of extra white space generated above and below the pie.</li>\n\t\t<li><b>Hover and Click functionality are now availabe!</b><ul>\n\t\t\t<li>Thanks to btburnett3 for the original hover functionality and Anthony Aragues for the modification that makes it compatable with excanvas, this was a huge help!</li>\n\t\t\t<li>Added a new option (highlight opacity) to modify the highlight created when mousing over a slice. Currently this just uses a white overlay, but an option to change the hightlight color will be added when the appropriate functionality becomes available.\n\t\t\t<li>I had a major setback that required me to practically rebuild the hover/click events from scratch one piece at a time (I discovered that it only worked with a single pie on a page at a time), but the end result ended up being virtually identical to the original, so I'm not quite sure what exactly made it work.</li>\n\t\t\t<li><span style=\"color: red;\">Warning:</span> There are some minor issues with using this functionality in conjuction with some of the other more advanced features (tilt and donut). When using a donut hole, the inner portion still triggers the events even though that portion of the pie is no longer visible. When tilted, the interactive portions still use the original, untilted version of the pie when determining mouse position (this is because the isPointInPath function apparently doesn't work with transformations), however hover and click both work this way, so the appropriate slice is still highlighted when clicking, and it isn't as noticable of a problem.</li>\n\t\t</ul></li>\n\t\t<li>Included a bug fix submitted by Xavi Ivars to fix array issues when other javascript libraries are included in addition to jQuery</li>\n\t\t<br/>\n\t\t<li style=\"list-style: none;\"><i>v0.4 - July 1st, 2009 - Brian Medendorp</i></li>\n\t\t<li>Each series will now be shown in the legend, even if it's value is zero. The series will not get a positioned label because it will overlap with the other labels present and often makes them unreadable.</li>\n\t\t<li>Data can now be passed in using the standard Flot method using an array of datapoints, the pie plugin will simply use the first y-value that it finds for each series in this case. The plugin uses this datastructure internally, but you can still use the old method of passing in a single numerical value for each series (the plugin will convert it as necessary). This should make it easier to transition from other types of graphs (such as a stacked bar graph) to a pie.</li>\n\t\t<li>The pie can now be tilted at an angle with a new \"tilt\" option. Acceptable values range from 0-1, where 1 has no change (fully vertical) and 0 is completely flat (fully horizontal -- in which case nothing actually gets drawn). If the plugin determines that it will fit within the canvas, a drop shadow will be drawn under the tilted pie (this also requires a tilt value of 0.8 or less).</li>\n\t\t<br/>\n\t\t<li style=\"list-style: none;\"><i>v0.3.2 - June 25th, 2009 - Brian Medendorp</i></li>\n\t\t<li>Fixed a bug that was causing the pie to be shifted too far left or right when the legend is showing in some cases.</li>\n\t\t<br/>\n\t\t<li style=\"list-style: none;\"><i>v0.3.1 - June 24th, 2009 - Brian Medendorp</i></li>\n\t\t<li>Fixed a bug that was causing nothing to be drawn and generating a javascript error if any of the data values were set to zero.</li>\n\t\t<br/>\n\t\t<li style=\"list-style: none;\"><i>v0.3 - June 23rd, 2009 - Brian Medendorp</i></li>\n\t\t<li>The legend now works without any modifications! Because of changes made to flot and the plugin system (thanks Ole Laursen!) I was able to simplify a number of things and am now able to use the legend without the direct access hack that was required in the previous version.</li>\n\t\t<br/>\n\t\t<li style=\"list-style: none;\"><i>v0.2 - June 22nd, 2009 - Brian Medendorp</i></li>\n\t\t<li>The legend now works but only if you make the necessary changes to jquery.flot.js. Because of this, I changed the default values for pie.radius and pie.label.show to new 'auto' settings that change the default behavior of the size and labels depending on whether the legend functionality is available or not.</li>\n\t\t<br/>\n\t\t<li style=\"list-style: none;\"><i>v0.1 - June 18th, 2009 - Brian Medendorp</i></li>\n\t\t<li>Rewrote the entire pie code into a flot plugin (since that is now an option), so it should be much easier to use and the code is cleaned up a bit. However, the (standard flot) legend is no longer available because the only way to prevent the grid lines from being displayed also prevents the legend from being displayed. Hopefully this can be fixed at a later date.</li>\n\t\t<li>Restructured and combined some of the options. It should be much easier to deal with now.</li>\n\t\t<li>Added the ability to change the starting point of the pie (still defaults to the top).</li>\n\t\t<li>Modified the default options to show the labels to compensate for the lack of a legend.</li>\n\t\t<li>Modified this page to use a random dataset. <span style=\"color: red\">Note: you may need to refresh the page to see the effects of some of the examples.</span></li>\n\t\t<br/>\n\t\t<li style=\"list-style: none;\"><i>May 21st, 2009 - Brian Medendorp</i></li>\n\t\t<li>Merged original pie modifications by Sergey Nosenko into the latest SVN version <i>(as of May 15th, 2009)</i> so that it will work with ie8.</li>\n\t\t<li>Pie graph will now be centered in the canvas unless moved because of the legend or manually via the options. Additionally it prevents the pie from being moved beyond the edge of the canvas.</li>\n\t\t<li>Modified the code related to the labelFormatter option to apply flot's legend labelFormatter first. This is so that the labels will be consistent, but still provide extra formatting for the positioned labels (such as adding the percentage value).</li>\n\t\t<li>Positioned labels now have their backgrounds applied as a seperate element (much like the legend background) so that the opacity value can be set independently from the label itself (foreground). Additionally, the background color defaults to that of the matching slice.</li>\n\t\t<li>As long as the labelOffset and radiusLimit are not set to hard values, the pie will be shrunk if the labels will extend outside the edge of the canvas</li>\n\t\t<li>Added new options \"radiusLimitFactor\" and \"radiusLimit\" which limits how large the (visual) radius of the pie is in relation to the full radius (as calculated from the canvas dimensions) or a hard-pixel value (respectively). This allows for pushing the labels \"outside\" the pie.</li>\n\t\t<li>Added a new option \"labelHidePercent\" that does not show the positioned labels of slices smaller than the specified percentage. This is to help prevent a bunch of overlapping labels from small slices.</li>\n\t\t<li>Added a new option \"sliceCombinePercent\" that combines all slices smaller than the specified percentage into one larger slice. This is to help make the pie more attractive when there are a number of tiny slices. The options \"sliceCombineColor\" and \"sliceCombineLabel\" have also been added to change the color and name of the new slice if desired.</li>\n\t\t<li>Tested in Firefox (3.0.10, 3.5b4), Internet Explorer (6.0.2900, 7.0.5730, 8.0.6001), Chrome (1.0.154), Opera (9.64), and Safari (3.1.1, 4 beta 5528.16).\n\t</ul>\n\n\t\n </body>\n</html>\n\n"
  },
  {
    "path": "style/lib/flot/examples/realtime.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>You can update a chart periodically to get a real-time effect\n    by using a timer to insert the new data in the plot and redraw it.</p>\n\n    <p>Time between updates: <input id=\"updateInterval\" type=\"text\" value=\"\" style=\"text-align: right; width:5em\"> milliseconds</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    // we use an inline data source in the example, usually data would\n    // be fetched from a server\n    var data = [], totalPoints = 300;\n    function getRandomData() {\n        if (data.length > 0)\n            data = data.slice(1);\n\n        // do a random walk\n        while (data.length < totalPoints) {\n            var prev = data.length > 0 ? data[data.length - 1] : 50;\n            var y = prev + Math.random() * 10 - 5;\n            if (y < 0)\n                y = 0;\n            if (y > 100)\n                y = 100;\n            data.push(y);\n        }\n\n        // zip the generated y values with the x values\n        var res = [];\n        for (var i = 0; i < data.length; ++i)\n            res.push([i, data[i]])\n        return res;\n    }\n\n    // setup control widget\n    var updateInterval = 30;\n    $(\"#updateInterval\").val(updateInterval).change(function () {\n        var v = $(this).val();\n        if (v && !isNaN(+v)) {\n            updateInterval = +v;\n            if (updateInterval < 1)\n                updateInterval = 1;\n            if (updateInterval > 2000)\n                updateInterval = 2000;\n            $(this).val(\"\" + updateInterval);\n        }\n    });\n\n    // setup plot\n    var options = {\n        series: { shadowSize: 0 }, // drawing is faster without shadows\n        yaxis: { min: 0, max: 100 },\n        xaxis: { show: false }\n    };\n    var plot = $.plot($(\"#placeholder\"), [ getRandomData() ], options);\n\n    function update() {\n        plot.setData([ getRandomData() ]);\n        // since the axes don't change, we don't need to call plot.setupGrid()\n        plot.draw();\n        \n        setTimeout(update, updateInterval);\n    }\n\n    update();\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/resize.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.resize.js\"></script>\n    <style type=\"text/css\">\n    html, body {\n        height: 100%; /* make the percentage height on placeholder work */\n    }\n    .message {\n        padding-left: 50px;\n        font-size: smaller;\n    }\n    </style>\n </head>\n <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:80%;height:40%;\"></div>\n\n    <p class=\"message\"></p>\n\n    <p>Sometimes it makes more sense to just let the plot take up the\n    available space. In that case, we need to redraw the plot each\n    time the placeholder changes its size. If you include the resize\n    plugin, this is handled automatically.</p>\n\n    <p>Try resizing the window.</p>\n\n\n<script type=\"text/javascript\">\n$(function () {\n    var d1 = [];\n    for (var i = 0; i < 14; i += 0.5)\n        d1.push([i, Math.sin(i)]);\n\n    var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];\n    var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];\n\n    var placeholder = $(\"#placeholder\");\n    \n    var plot = $.plot(placeholder, [d1, d2, d3]);\n    \n    // the plugin includes a jQuery plugin for adding resize events to\n    // any element, let's just add a callback so we can display the\n    // placeholder size\n    placeholder.resize(function () {\n        $(\".message\").text(\"Placeholder is now \"\n                           + $(this).width() + \"x\" + $(this).height()\n                           + \" pixels\");\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/selection.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.selection.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px\"></div>\n\n    <p>1000 kg. CO<sub>2</sub> emissions per year per capita for various countries (source: <a href=\"http://en.wikipedia.org/wiki/List_of_countries_by_carbon_dioxide_emissions_per_capita\">Wikipedia</a>).</p>\n\n    <p>Flot supports selections through the selection plugin.\n       You can enable rectangular selection\n       or one-dimensional selection if the user should only be able to\n       select on one axis. Try left-click and drag on the plot above\n       where selection on the x axis is enabled.</p>\n\n    <p>You selected: <span id=\"selection\"></span></p>\n\n    <p>The plot command returns a plot object you can use to control\n       the selection. Click the buttons below.</p>\n\n    <p><input id=\"clearSelection\" type=\"button\" value=\"Clear selection\" />\n       <input id=\"setSelection\" type=\"button\" value=\"Select year 1994\" /></p>\n\n    <p>Selections are really useful for zooming. Just replot the\n       chart with min and max values for the axes set to the values\n       in the \"plotselected\" event triggered. Enable the checkbox\n       below and select a region again.</p>\n\n    <p><label><input id=\"zoom\" type=\"checkbox\" />Zoom to selection.</label></p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var data = [\n        {\n            label: \"United States\",\n            data: [[1990, 18.9], [1991, 18.7], [1992, 18.4], [1993, 19.3], [1994, 19.5], [1995, 19.3], [1996, 19.4], [1997, 20.2], [1998, 19.8], [1999, 19.9], [2000, 20.4], [2001, 20.1], [2002, 20.0], [2003, 19.8], [2004, 20.4]]\n        },\n        {\n            label: \"Russia\", \n            data: [[1992, 13.4], [1993, 12.2], [1994, 10.6], [1995, 10.2], [1996, 10.1], [1997, 9.7], [1998, 9.5], [1999, 9.7], [2000, 9.9], [2001, 9.9], [2002, 9.9], [2003, 10.3], [2004, 10.5]]\n        },\n        {\n            label: \"United Kingdom\",\n            data: [[1990, 10.0], [1991, 11.3], [1992, 9.9], [1993, 9.6], [1994, 9.5], [1995, 9.5], [1996, 9.9], [1997, 9.3], [1998, 9.2], [1999, 9.2], [2000, 9.5], [2001, 9.6], [2002, 9.3], [2003, 9.4], [2004, 9.79]]\n        },\n        {\n            label: \"Germany\",\n            data: [[1990, 12.4], [1991, 11.2], [1992, 10.8], [1993, 10.5], [1994, 10.4], [1995, 10.2], [1996, 10.5], [1997, 10.2], [1998, 10.1], [1999, 9.6], [2000, 9.7], [2001, 10.0], [2002, 9.7], [2003, 9.8], [2004, 9.79]]\n        },\n        {\n            label: \"Denmark\",\n \t    data: [[1990, 9.7], [1991, 12.1], [1992, 10.3], [1993, 11.3], [1994, 11.7], [1995, 10.6], [1996, 12.8], [1997, 10.8], [1998, 10.3], [1999, 9.4], [2000, 8.7], [2001, 9.0], [2002, 8.9], [2003, 10.1], [2004, 9.80]]\n        },\n        {\n            label: \"Sweden\",\n            data: [[1990, 5.8], [1991, 6.0], [1992, 5.9], [1993, 5.5], [1994, 5.7], [1995, 5.3], [1996, 6.1], [1997, 5.4], [1998, 5.4], [1999, 5.1], [2000, 5.2], [2001, 5.4], [2002, 6.2], [2003, 5.9], [2004, 5.89]]\n        },\n        {\n            label: \"Norway\",\n            data: [[1990, 8.3], [1991, 8.3], [1992, 7.8], [1993, 8.3], [1994, 8.4], [1995, 5.9], [1996, 6.4], [1997, 6.7], [1998, 6.9], [1999, 7.6], [2000, 7.4], [2001, 8.1], [2002, 12.5], [2003, 9.9], [2004, 19.0]]\n        }\n    ];\n\n    var options = {\n        series: {\n            lines: { show: true },\n            points: { show: true }\n        },\n        legend: { noColumns: 2 },\n        xaxis: { tickDecimals: 0 },\n        yaxis: { min: 0 },\n        selection: { mode: \"x\" }\n    };\n\n    var placeholder = $(\"#placeholder\");\n\n    placeholder.bind(\"plotselected\", function (event, ranges) {\n        $(\"#selection\").text(ranges.xaxis.from.toFixed(1) + \" to \" + ranges.xaxis.to.toFixed(1));\n\n        var zoom = $(\"#zoom\").attr(\"checked\");\n        if (zoom)\n            plot = $.plot(placeholder, data,\n                          $.extend(true, {}, options, {\n                              xaxis: { min: ranges.xaxis.from, max: ranges.xaxis.to }\n                          }));\n    });\n\n    placeholder.bind(\"plotunselected\", function (event) {\n        $(\"#selection\").text(\"\");\n    });\n    \n    var plot = $.plot(placeholder, data, options);\n\n    $(\"#clearSelection\").click(function () {\n        plot.clearSelection();\n    });\n\n    $(\"#setSelection\").click(function () {\n        plot.setSelection({ xaxis: { from: 1994, to: 1995 } });\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/setting-options.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px\"></div>\n\n    <p>There are plenty of options you can set to control the precise\n    looks of your plot. You can control the ticks on the axes, the\n    legend, the graph type, etc. The idea is that Flot goes to great\n    lengths to provide sensible defaults so that you don't have to\n    customize much for a good result.</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var d1 = [];\n    for (var i = 0; i < Math.PI * 2; i += 0.25)\n        d1.push([i, Math.sin(i)]);\n    \n    var d2 = [];\n    for (var i = 0; i < Math.PI * 2; i += 0.25)\n        d2.push([i, Math.cos(i)]);\n\n    var d3 = [];\n    for (var i = 0; i < Math.PI * 2; i += 0.1)\n        d3.push([i, Math.tan(i)]);\n    \n    $.plot($(\"#placeholder\"), [\n        { label: \"sin(x)\",  data: d1},\n        { label: \"cos(x)\",  data: d2},\n        { label: \"tan(x)\",  data: d3}\n    ], {\n        series: {\n            lines: { show: true },\n            points: { show: true }\n        },\n        xaxis: {\n            ticks: [0, [Math.PI/2, \"\\u03c0/2\"], [Math.PI, \"\\u03c0\"], [Math.PI * 3/2, \"3\\u03c0/2\"], [Math.PI * 2, \"2\\u03c0\"]]\n        },\n        yaxis: {\n            ticks: 10,\n            min: -2,\n            max: 2\n        },\n        grid: {\n            backgroundColor: { colors: [\"#fff\", \"#eee\"] }\n        }\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/stacking.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.stack.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>With the stack plugin, you can have Flot stack the\n    series. This is useful if you wish to display both a total and the\n    constituents it is made of. The only requirement is that you provide\n    the input sorted on x.</p>\n\n    <p class=\"stackControls\">\n    <input type=\"button\" value=\"With stacking\">\n    <input type=\"button\" value=\"Without stacking\">\n    </p>\n\n    <p class=\"graphControls\">\n    <input type=\"button\" value=\"Bars\">\n    <input type=\"button\" value=\"Lines\">\n    <input type=\"button\" value=\"Lines with steps\">\n    </p>\n\n<script id=\"source\">\n$(function () {\n    var d1 = [];\n    for (var i = 0; i <= 10; i += 1)\n        d1.push([i, parseInt(Math.random() * 30)]);\n\n    var d2 = [];\n    for (var i = 0; i <= 10; i += 1)\n        d2.push([i, parseInt(Math.random() * 30)]);\n\n    var d3 = [];\n    for (var i = 0; i <= 10; i += 1)\n        d3.push([i, parseInt(Math.random() * 30)]);\n\n    var stack = 0, bars = true, lines = false, steps = false;\n    \n    function plotWithOptions() {\n        $.plot($(\"#placeholder\"), [ d1, d2, d3 ], {\n            series: {\n                stack: stack,\n                lines: { show: lines, fill: true, steps: steps },\n                bars: { show: bars, barWidth: 0.6 }\n            }\n        });\n    }\n\n    plotWithOptions();\n    \n    $(\".stackControls input\").click(function (e) {\n        e.preventDefault();\n        stack = $(this).val() == \"With stacking\" ? true : null;\n        plotWithOptions();\n    });\n    $(\".graphControls input\").click(function (e) {\n        e.preventDefault();\n        bars = $(this).val().indexOf(\"Bars\") != -1;\n        lines = $(this).val().indexOf(\"Lines\") != -1;\n        steps = $(this).val().indexOf(\"steps\") != -1;\n        plotWithOptions();\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/symbols.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.symbol.js\"></script>\n </head>\n <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px\"></div>\n\n    <p>Various point types. Circles are built-in. For other\n    point types, you can define a little callback function to draw the\n    symbol; some common ones are available in the symbol plugin.</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    function generate(offset, amplitude) {\n        var res = [];\n        var start = 0, end = 10;\n        for (var i = 0; i <= 50; ++i) {\n            var x = start + i / 50 * (end - start);\n            res.push([x, amplitude * Math.sin(x + offset)]);\n        }\n        return res;\n    }\n\n    var data = [\n        { data: generate(2, 1.8), points: { symbol: \"circle\" } },\n        { data: generate(3, 1.5), points: { symbol: \"square\" } },\n        { data: generate(4, 0.9), points: { symbol: \"diamond\" } },\n        { data: generate(6, 1.4), points: { symbol: \"triangle\" } },\n        { data: generate(7, 1.1), points: { symbol: \"cross\" } }\n    ];\n\n    $.plot($(\"#placeholder\"), data, {\n        series: { points: { show: true, radius: 3 } },\n        grid: { hoverable: true }\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/thresholding.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.threshold.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>With the threshold plugin, you can apply a specific color to\n    the part of a data series below a threshold. This is can be useful\n    for highlighting negative values, e.g. when displaying net results\n    or what's in stock.</p>\n\n    <p class=\"controls\">\n    <input type=\"button\" value=\"Threshold at 5\">\n    <input type=\"button\" value=\"Threshold at 0\">\n    <input type=\"button\" value=\"Threshold at -2.5\">\n    </p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var d1 = [];\n    for (var i = 0; i <= 60; i += 1)\n        d1.push([i, parseInt(Math.random() * 30 - 10)]);\n\n    function plotWithOptions(t) {\n        $.plot($(\"#placeholder\"), [ {\n            data: d1,\n            color: \"rgb(30, 180, 20)\",\n            threshold: { below: t, color: \"rgb(200, 20, 30)\" },\n            lines: { steps: true }\n        } ]);\n    }\n\n    plotWithOptions(0);\n    \n    $(\".controls input\").click(function (e) {\n        e.preventDefault();\n        var t = parseFloat($(this).val().replace('Threshold at ', ''));\n        plotWithOptions(t);\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/time.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>Monthly mean atmospheric CO<sub>2</sub> in PPM at Mauna Loa, Hawaii (source: <a href=\"http://www.esrl.noaa.gov/gmd/ccgg/trends/\">NOAA/ESRL</a>).</p>\n\n    <p>If you tell Flot that an axis represents time, the data will\n      be interpreted as timestamps and the ticks adjusted and\n      formatted accordingly.</p>\n\n    <p>Zoom to: <button id=\"whole\">Whole period</button>\n      <button id=\"nineties\">1990-2000</button>\n      <button id=\"ninetynine\">1999</button></p>\n\n    <p>The timestamps must be specified as Javascript timestamps, as\n      milliseconds since January 1, 1970 00:00. This is like Unix\n      timestamps, but in milliseconds instead of seconds (remember to\n      multiply with 1000!).</p>\n\n    <p>As an extra caveat, the timestamps are interpreted according to\n      UTC to avoid having the graph shift with each visitor's local\n      time zone. So you might have to add your local time zone offset\n      to the timestamps or simply pretend that the data was produced\n      in UTC instead of your local time zone.</p>\n\n<script id=\"source\">\n$(function () {\n    var d = [[-373597200000, 315.71], [-370918800000, 317.45], [-368326800000, 317.50], [-363056400000, 315.86], [-360378000000, 314.93], [-357699600000, 313.19], [-352429200000, 313.34], [-349837200000, 314.67], [-347158800000, 315.58], [-344480400000, 316.47], [-342061200000, 316.65], [-339382800000, 317.71], [-336790800000, 318.29], [-334112400000, 318.16], [-331520400000, 316.55], [-328842000000, 314.80], [-326163600000, 313.84], [-323571600000, 313.34], [-320893200000, 314.81], [-318301200000, 315.59], [-315622800000, 316.43], [-312944400000, 316.97], [-310438800000, 317.58], [-307760400000, 319.03], [-305168400000, 320.03], [-302490000000, 319.59], [-299898000000, 318.18], [-297219600000, 315.91], [-294541200000, 314.16], [-291949200000, 313.83], [-289270800000, 315.00], [-286678800000, 316.19], [-284000400000, 316.89], [-281322000000, 317.70], [-278902800000, 318.54], [-276224400000, 319.48], [-273632400000, 320.58], [-270954000000, 319.78], [-268362000000, 318.58], [-265683600000, 316.79], [-263005200000, 314.99], [-260413200000, 315.31], [-257734800000, 316.10], [-255142800000, 317.01], [-252464400000, 317.94], [-249786000000, 318.56], [-247366800000, 319.69], [-244688400000, 320.58], [-242096400000, 321.01], [-239418000000, 320.61], [-236826000000, 319.61], [-234147600000, 317.40], [-231469200000, 316.26], [-228877200000, 315.42], [-226198800000, 316.69], [-223606800000, 317.69], [-220928400000, 318.74], [-218250000000, 319.08], [-215830800000, 319.86], [-213152400000, 321.39], [-210560400000, 322.24], [-207882000000, 321.47], [-205290000000, 319.74], [-202611600000, 317.77], [-199933200000, 316.21], [-197341200000, 315.99], [-194662800000, 317.07], [-192070800000, 318.36], [-189392400000, 319.57], [-178938000000, 322.23], [-176259600000, 321.89], [-173667600000, 320.44], [-170989200000, 318.70], [-168310800000, 316.70], [-165718800000, 316.87], [-163040400000, 317.68], [-160448400000, 318.71], [-157770000000, 319.44], [-155091600000, 320.44], [-152672400000, 320.89], [-149994000000, 322.13], [-147402000000, 322.16], [-144723600000, 321.87], [-142131600000, 321.21], [-139453200000, 318.87], [-136774800000, 317.81], [-134182800000, 317.30], [-131504400000, 318.87], [-128912400000, 319.42], [-126234000000, 320.62], [-123555600000, 321.59], [-121136400000, 322.39], [-118458000000, 323.70], [-115866000000, 324.07], [-113187600000, 323.75], [-110595600000, 322.40], [-107917200000, 320.37], [-105238800000, 318.64], [-102646800000, 318.10], [-99968400000, 319.79], [-97376400000, 321.03], [-94698000000, 322.33], [-92019600000, 322.50], [-89600400000, 323.04], [-86922000000, 324.42], [-84330000000, 325.00], [-81651600000, 324.09], [-79059600000, 322.55], [-76381200000, 320.92], [-73702800000, 319.26], [-71110800000, 319.39], [-68432400000, 320.72], [-65840400000, 321.96], [-63162000000, 322.57], [-60483600000, 323.15], [-57978000000, 323.89], [-55299600000, 325.02], [-52707600000, 325.57], [-50029200000, 325.36], [-47437200000, 324.14], [-44758800000, 322.11], [-42080400000, 320.33], [-39488400000, 320.25], [-36810000000, 321.32], [-34218000000, 322.90], [-31539600000, 324.00], [-28861200000, 324.42], [-26442000000, 325.64], [-23763600000, 326.66], [-21171600000, 327.38], [-18493200000, 326.70], [-15901200000, 325.89], [-13222800000, 323.67], [-10544400000, 322.38], [-7952400000, 321.78], [-5274000000, 322.85], [-2682000000, 324.12], [-3600000, 325.06], [2674800000, 325.98], [5094000000, 326.93], [7772400000, 328.13], [10364400000, 328.07], [13042800000, 327.66], [15634800000, 326.35], [18313200000, 324.69], [20991600000, 323.10], [23583600000, 323.07], [26262000000, 324.01], [28854000000, 325.13], [31532400000, 326.17], [34210800000, 326.68], [36630000000, 327.18], [39308400000, 327.78], [41900400000, 328.92], [44578800000, 328.57], [47170800000, 327.37], [49849200000, 325.43], [52527600000, 323.36], [55119600000, 323.56], [57798000000, 324.80], [60390000000, 326.01], [63068400000, 326.77], [65746800000, 327.63], [68252400000, 327.75], [70930800000, 329.72], [73522800000, 330.07], [76201200000, 329.09], [78793200000, 328.05], [81471600000, 326.32], [84150000000, 324.84], [86742000000, 325.20], [89420400000, 326.50], [92012400000, 327.55], [94690800000, 328.54], [97369200000, 329.56], [99788400000, 330.30], [102466800000, 331.50], [105058800000, 332.48], [107737200000, 332.07], [110329200000, 330.87], [113007600000, 329.31], [115686000000, 327.51], [118278000000, 327.18], [120956400000, 328.16], [123548400000, 328.64], [126226800000, 329.35], [128905200000, 330.71], [131324400000, 331.48], [134002800000, 332.65], [136594800000, 333.16], [139273200000, 332.06], [141865200000, 330.99], [144543600000, 329.17], [147222000000, 327.41], [149814000000, 327.20], [152492400000, 328.33], [155084400000, 329.50], [157762800000, 330.68], [160441200000, 331.41], [162860400000, 331.85], [165538800000, 333.29], [168130800000, 333.91], [170809200000, 333.40], [173401200000, 331.78], [176079600000, 329.88], [178758000000, 328.57], [181350000000, 328.46], [184028400000, 329.26], [189298800000, 331.71], [191977200000, 332.76], [194482800000, 333.48], [197161200000, 334.78], [199753200000, 334.78], [202431600000, 334.17], [205023600000, 332.78], [207702000000, 330.64], [210380400000, 328.95], [212972400000, 328.77], [215650800000, 330.23], [218242800000, 331.69], [220921200000, 332.70], [223599600000, 333.24], [226018800000, 334.96], [228697200000, 336.04], [231289200000, 336.82], [233967600000, 336.13], [236559600000, 334.73], [239238000000, 332.52], [241916400000, 331.19], [244508400000, 331.19], [247186800000, 332.35], [249778800000, 333.47], [252457200000, 335.11], [255135600000, 335.26], [257554800000, 336.60], [260233200000, 337.77], [262825200000, 338.00], [265503600000, 337.99], [268095600000, 336.48], [270774000000, 334.37], [273452400000, 332.27], [276044400000, 332.41], [278722800000, 333.76], [281314800000, 334.83], [283993200000, 336.21], [286671600000, 336.64], [289090800000, 338.12], [291769200000, 339.02], [294361200000, 339.02], [297039600000, 339.20], [299631600000, 337.58], [302310000000, 335.55], [304988400000, 333.89], [307580400000, 334.14], [310258800000, 335.26], [312850800000, 336.71], [315529200000, 337.81], [318207600000, 338.29], [320713200000, 340.04], [323391600000, 340.86], [325980000000, 341.47], [328658400000, 341.26], [331250400000, 339.29], [333928800000, 337.60], [336607200000, 336.12], [339202800000, 336.08], [341881200000, 337.22], [344473200000, 338.34], [347151600000, 339.36], [349830000000, 340.51], [352249200000, 341.57], [354924000000, 342.56], [357516000000, 343.01], [360194400000, 342.47], [362786400000, 340.71], [365464800000, 338.52], [368143200000, 336.96], [370738800000, 337.13], [373417200000, 338.58], [376009200000, 339.89], [378687600000, 340.93], [381366000000, 341.69], [383785200000, 342.69], [389052000000, 344.30], [391730400000, 343.43], [394322400000, 341.88], [397000800000, 339.89], [399679200000, 337.95], [402274800000, 338.10], [404953200000, 339.27], [407545200000, 340.67], [410223600000, 341.42], [412902000000, 342.68], [415321200000, 343.46], [417996000000, 345.10], [420588000000, 345.76], [423266400000, 345.36], [425858400000, 343.91], [428536800000, 342.05], [431215200000, 340.00], [433810800000, 340.12], [436489200000, 341.33], [439081200000, 342.94], [441759600000, 343.87], [444438000000, 344.60], [446943600000, 345.20], [452210400000, 347.36], [454888800000, 346.74], [457480800000, 345.41], [460159200000, 343.01], [462837600000, 341.23], [465433200000, 341.52], [468111600000, 342.86], [470703600000, 344.41], [473382000000, 345.09], [476060400000, 345.89], [478479600000, 347.49], [481154400000, 348.00], [483746400000, 348.75], [486424800000, 348.19], [489016800000, 346.54], [491695200000, 344.63], [494373600000, 343.03], [496969200000, 342.92], [499647600000, 344.24], [502239600000, 345.62], [504918000000, 346.43], [507596400000, 346.94], [510015600000, 347.88], [512690400000, 349.57], [515282400000, 350.35], [517960800000, 349.72], [520552800000, 347.78], [523231200000, 345.86], [525909600000, 344.84], [528505200000, 344.32], [531183600000, 345.67], [533775600000, 346.88], [536454000000, 348.19], [539132400000, 348.55], [541551600000, 349.52], [544226400000, 351.12], [546818400000, 351.84], [549496800000, 351.49], [552088800000, 349.82], [554767200000, 347.63], [557445600000, 346.38], [560041200000, 346.49], [562719600000, 347.75], [565311600000, 349.03], [567990000000, 350.20], [570668400000, 351.61], [573174000000, 352.22], [575848800000, 353.53], [578440800000, 354.14], [581119200000, 353.62], [583711200000, 352.53], [586389600000, 350.41], [589068000000, 348.84], [591663600000, 348.94], [594342000000, 350.04], [596934000000, 351.29], [599612400000, 352.72], [602290800000, 353.10], [604710000000, 353.65], [607384800000, 355.43], [609976800000, 355.70], [612655200000, 355.11], [615247200000, 353.79], [617925600000, 351.42], [620604000000, 349.81], [623199600000, 350.11], [625878000000, 351.26], [628470000000, 352.63], [631148400000, 353.64], [633826800000, 354.72], [636246000000, 355.49], [638920800000, 356.09], [641512800000, 357.08], [644191200000, 356.11], [646783200000, 354.70], [649461600000, 352.68], [652140000000, 351.05], [654735600000, 351.36], [657414000000, 352.81], [660006000000, 354.22], [662684400000, 354.85], [665362800000, 355.66], [667782000000, 357.04], [670456800000, 358.40], [673048800000, 359.00], [675727200000, 357.99], [678319200000, 356.00], [680997600000, 353.78], [683676000000, 352.20], [686271600000, 352.22], [688950000000, 353.70], [691542000000, 354.98], [694220400000, 356.09], [696898800000, 356.85], [699404400000, 357.73], [702079200000, 358.91], [704671200000, 359.45], [707349600000, 359.19], [709941600000, 356.72], [712620000000, 354.79], [715298400000, 352.79], [717894000000, 353.20], [720572400000, 354.15], [723164400000, 355.39], [725842800000, 356.77], [728521200000, 357.17], [730940400000, 358.26], [733615200000, 359.16], [736207200000, 360.07], [738885600000, 359.41], [741477600000, 357.44], [744156000000, 355.30], [746834400000, 353.87], [749430000000, 354.04], [752108400000, 355.27], [754700400000, 356.70], [757378800000, 358.00], [760057200000, 358.81], [762476400000, 359.68], [765151200000, 361.13], [767743200000, 361.48], [770421600000, 360.60], [773013600000, 359.20], [775692000000, 357.23], [778370400000, 355.42], [780966000000, 355.89], [783644400000, 357.41], [786236400000, 358.74], [788914800000, 359.73], [791593200000, 360.61], [794012400000, 361.58], [796687200000, 363.05], [799279200000, 363.62], [801957600000, 363.03], [804549600000, 361.55], [807228000000, 358.94], [809906400000, 357.93], [812502000000, 357.80], [815180400000, 359.22], [817772400000, 360.44], [820450800000, 361.83], [823129200000, 362.95], [825634800000, 363.91], [828309600000, 364.28], [830901600000, 364.94], [833580000000, 364.70], [836172000000, 363.31], [838850400000, 361.15], [841528800000, 359.40], [844120800000, 359.34], [846802800000, 360.62], [849394800000, 361.96], [852073200000, 362.81], [854751600000, 363.87], [857170800000, 364.25], [859845600000, 366.02], [862437600000, 366.46], [865116000000, 365.32], [867708000000, 364.07], [870386400000, 361.95], [873064800000, 360.06], [875656800000, 360.49], [878338800000, 362.19], [880930800000, 364.12], [883609200000, 364.99], [886287600000, 365.82], [888706800000, 366.95], [891381600000, 368.42], [893973600000, 369.33], [896652000000, 368.78], [899244000000, 367.59], [901922400000, 365.84], [904600800000, 363.83], [907192800000, 364.18], [909874800000, 365.34], [912466800000, 366.93], [915145200000, 367.94], [917823600000, 368.82], [920242800000, 369.46], [922917600000, 370.77], [925509600000, 370.66], [928188000000, 370.10], [930780000000, 369.08], [933458400000, 366.66], [936136800000, 364.60], [938728800000, 365.17], [941410800000, 366.51], [944002800000, 367.89], [946681200000, 369.04], [949359600000, 369.35], [951865200000, 370.38], [954540000000, 371.63], [957132000000, 371.32], [959810400000, 371.53], [962402400000, 369.75], [965080800000, 368.23], [967759200000, 366.87], [970351200000, 366.94], [973033200000, 368.27], [975625200000, 369.64], [978303600000, 370.46], [980982000000, 371.44], [983401200000, 372.37], [986076000000, 373.33], [988668000000, 373.77], [991346400000, 373.09], [993938400000, 371.51], [996616800000, 369.55], [999295200000, 368.12], [1001887200000, 368.38], [1004569200000, 369.66], [1007161200000, 371.11], [1009839600000, 372.36], [1012518000000, 373.09], [1014937200000, 373.81], [1017612000000, 374.93], [1020204000000, 375.58], [1022882400000, 375.44], [1025474400000, 373.86], [1028152800000, 371.77], [1030831200000, 370.73], [1033423200000, 370.50], [1036105200000, 372.18], [1038697200000, 373.70], [1041375600000, 374.92], [1044054000000, 375.62], [1046473200000, 376.51], [1049148000000, 377.75], [1051740000000, 378.54], [1054418400000, 378.20], [1057010400000, 376.68], [1059688800000, 374.43], [1062367200000, 373.11], [1064959200000, 373.10], [1067641200000, 374.77], [1070233200000, 375.97], [1072911600000, 377.03], [1075590000000, 377.87], [1078095600000, 378.88], [1080770400000, 380.42], [1083362400000, 380.62], [1086040800000, 379.70], [1088632800000, 377.43], [1091311200000, 376.32], [1093989600000, 374.19], [1096581600000, 374.47], [1099263600000, 376.15], [1101855600000, 377.51], [1104534000000, 378.43], [1107212400000, 379.70], [1109631600000, 380.92], [1112306400000, 382.18], [1114898400000, 382.45], [1117576800000, 382.14], [1120168800000, 380.60], [1122847200000, 378.64], [1125525600000, 376.73], [1128117600000, 376.84], [1130799600000, 378.29], [1133391600000, 380.06], [1136070000000, 381.40], [1138748400000, 382.20], [1141167600000, 382.66], [1143842400000, 384.69], [1146434400000, 384.94], [1149112800000, 384.01], [1151704800000, 382.14], [1154383200000, 380.31], [1157061600000, 378.81], [1159653600000, 379.03], [1162335600000, 380.17], [1164927600000, 381.85], [1167606000000, 382.94], [1170284400000, 383.86], [1172703600000, 384.49], [1175378400000, 386.37], [1177970400000, 386.54], [1180648800000, 385.98], [1183240800000, 384.36], [1185919200000, 381.85], [1188597600000, 380.74], [1191189600000, 381.15], [1193871600000, 382.38], [1196463600000, 383.94], [1199142000000, 385.44]]; \n\n    $.plot($(\"#placeholder\"), [d], { xaxis: { mode: \"time\" } });\n\n    $(\"#whole\").click(function () {\n        $.plot($(\"#placeholder\"), [d], { xaxis: { mode: \"time\" } });\n    });\n\n    $(\"#nineties\").click(function () {\n        $.plot($(\"#placeholder\"), [d], {\n            xaxis: {\n                mode: \"time\",\n                min: (new Date(1990, 1, 1)).getTime(),\n                max: (new Date(2000, 1, 1)).getTime()\n            }\n        });\n    });\n\n    $(\"#ninetynine\").click(function () {\n        $.plot($(\"#placeholder\"), [d], {\n            xaxis: {\n                mode: \"time\",\n                minTickSize: [1, \"month\"],\n                min: (new Date(1999, 1, 1)).getTime(),\n                max: (new Date(2000, 1, 1)).getTime()\n            }\n        });\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/tracking.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.crosshair.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px\"></div>\n\n    <p>You can add crosshairs that'll track the mouse position, either\n    on both axes or as here on only one.</p>\n\n    <p>If you combine it with listening on hover events, you can use\n    it to track the intersection on the curves by interpolating\n    the data points (look at the legend).</p>\n\n    <p id=\"hoverdata\"></p>\n\n<script type=\"text/javascript\">\nvar plot;\n$(function () {\n    var sin = [], cos = [];\n    for (var i = 0; i < 14; i += 0.1) {\n        sin.push([i, Math.sin(i)]);\n        cos.push([i, Math.cos(i)]);\n    }\n\n    plot = $.plot($(\"#placeholder\"),\n                      [ { data: sin, label: \"sin(x) = -0.00\"},\n                        { data: cos, label: \"cos(x) = -0.00\" } ], {\n                            series: {\n                                lines: { show: true }\n                            },\n                            crosshair: { mode: \"x\" },\n                            grid: { hoverable: true, autoHighlight: false },\n                            yaxis: { min: -1.2, max: 1.2 }\n                        });\n    var legends = $(\"#placeholder .legendLabel\");\n    legends.each(function () {\n        // fix the widths so they don't jump around\n        $(this).css('width', $(this).width());\n    });\n\n    var updateLegendTimeout = null;\n    var latestPosition = null;\n    \n    function updateLegend() {\n        updateLegendTimeout = null;\n        \n        var pos = latestPosition;\n        \n        var axes = plot.getAxes();\n        if (pos.x < axes.xaxis.min || pos.x > axes.xaxis.max ||\n            pos.y < axes.yaxis.min || pos.y > axes.yaxis.max)\n            return;\n\n        var i, j, dataset = plot.getData();\n        for (i = 0; i < dataset.length; ++i) {\n            var series = dataset[i];\n\n            // find the nearest points, x-wise\n            for (j = 0; j < series.data.length; ++j)\n                if (series.data[j][0] > pos.x)\n                    break;\n            \n            // now interpolate\n            var y, p1 = series.data[j - 1], p2 = series.data[j];\n            if (p1 == null)\n                y = p2[1];\n            else if (p2 == null)\n                y = p1[1];\n            else\n                y = p1[1] + (p2[1] - p1[1]) * (pos.x - p1[0]) / (p2[0] - p1[0]);\n\n            legends.eq(i).text(series.label.replace(/=.*/, \"= \" + y.toFixed(2)));\n        }\n    }\n    \n    $(\"#placeholder\").bind(\"plothover\",  function (event, pos, item) {\n        latestPosition = pos;\n        if (!updateLegendTimeout)\n            updateLegendTimeout = setTimeout(updateLegend, 50);\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/turning-series.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>Here is an example with real data: military budgets for\n        various countries in constant (2005) million US dollars (source: <a href=\"http://www.sipri.org/\">SIPRI</a>).</p>\n\n    <p>Since all data is available client-side, it's pretty easy to\n       make the plot interactive. Try turning countries on/off with the\n       checkboxes below.</p>\n\n    <p id=\"choices\">Show:</p>\n\n<script type=\"text/javascript\">\n$(function () {\n    var datasets = {\n        \"usa\": {\n            label: \"USA\",\n            data: [[1988, 483994], [1989, 479060], [1990, 457648], [1991, 401949], [1992, 424705], [1993, 402375], [1994, 377867], [1995, 357382], [1996, 337946], [1997, 336185], [1998, 328611], [1999, 329421], [2000, 342172], [2001, 344932], [2002, 387303], [2003, 440813], [2004, 480451], [2005, 504638], [2006, 528692]]\n        },        \n        \"russia\": {\n            label: \"Russia\",\n            data: [[1988, 218000], [1989, 203000], [1990, 171000], [1992, 42500], [1993, 37600], [1994, 36600], [1995, 21700], [1996, 19200], [1997, 21300], [1998, 13600], [1999, 14000], [2000, 19100], [2001, 21300], [2002, 23600], [2003, 25100], [2004, 26100], [2005, 31100], [2006, 34700]]\n        },\n        \"uk\": {\n            label: \"UK\",\n            data: [[1988, 62982], [1989, 62027], [1990, 60696], [1991, 62348], [1992, 58560], [1993, 56393], [1994, 54579], [1995, 50818], [1996, 50554], [1997, 48276], [1998, 47691], [1999, 47529], [2000, 47778], [2001, 48760], [2002, 50949], [2003, 57452], [2004, 60234], [2005, 60076], [2006, 59213]]\n        },\n        \"germany\": {\n            label: \"Germany\",\n            data: [[1988, 55627], [1989, 55475], [1990, 58464], [1991, 55134], [1992, 52436], [1993, 47139], [1994, 43962], [1995, 43238], [1996, 42395], [1997, 40854], [1998, 40993], [1999, 41822], [2000, 41147], [2001, 40474], [2002, 40604], [2003, 40044], [2004, 38816], [2005, 38060], [2006, 36984]]\n        },\n        \"denmark\": {\n            label: \"Denmark\",\n            data: [[1988, 3813], [1989, 3719], [1990, 3722], [1991, 3789], [1992, 3720], [1993, 3730], [1994, 3636], [1995, 3598], [1996, 3610], [1997, 3655], [1998, 3695], [1999, 3673], [2000, 3553], [2001, 3774], [2002, 3728], [2003, 3618], [2004, 3638], [2005, 3467], [2006, 3770]]\n        },\n        \"sweden\": {\n            label: \"Sweden\",\n            data: [[1988, 6402], [1989, 6474], [1990, 6605], [1991, 6209], [1992, 6035], [1993, 6020], [1994, 6000], [1995, 6018], [1996, 3958], [1997, 5780], [1998, 5954], [1999, 6178], [2000, 6411], [2001, 5993], [2002, 5833], [2003, 5791], [2004, 5450], [2005, 5521], [2006, 5271]]\n        },\n        \"norway\": {\n            label: \"Norway\",\n            data: [[1988, 4382], [1989, 4498], [1990, 4535], [1991, 4398], [1992, 4766], [1993, 4441], [1994, 4670], [1995, 4217], [1996, 4275], [1997, 4203], [1998, 4482], [1999, 4506], [2000, 4358], [2001, 4385], [2002, 5269], [2003, 5066], [2004, 5194], [2005, 4887], [2006, 4891]]\n        }\n    };\n\n    // hard-code color indices to prevent them from shifting as\n    // countries are turned on/off\n    var i = 0;\n    $.each(datasets, function(key, val) {\n        val.color = i;\n        ++i;\n    });\n    \n    // insert checkboxes \n    var choiceContainer = $(\"#choices\");\n    $.each(datasets, function(key, val) {\n        choiceContainer.append('<br/><input type=\"checkbox\" name=\"' + key +\n                               '\" checked=\"checked\" id=\"id' + key + '\">' +\n                               '<label for=\"id' + key + '\">'\n                                + val.label + '</label>');\n    });\n    choiceContainer.find(\"input\").click(plotAccordingToChoices);\n\n    \n    function plotAccordingToChoices() {\n        var data = [];\n\n        choiceContainer.find(\"input:checked\").each(function () {\n            var key = $(this).attr(\"name\");\n            if (key && datasets[key])\n                data.push(datasets[key]);\n        });\n\n        if (data.length > 0)\n            $.plot($(\"#placeholder\"), data, {\n                yaxis: { min: 0 },\n                xaxis: { tickDecimals: 0 }\n            });\n    }\n\n    plotAccordingToChoices();\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/visitors.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.selection.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div id=\"placeholder\" style=\"width:600px;height:300px;\"></div>\n\n    <p>Visitors per day to the Flot homepage. Weekends are colored. Try zooming.\n      The plot below shows an overview.</p>\n\n    <div id=\"overview\" style=\"margin-left:50px;margin-top:20px;width:400px;height:50px\"></div>\n\n<script id=\"source\">\n$(function () {\n    var d = [[1196463600000, 0], [1196550000000, 0], [1196636400000, 0], [1196722800000, 77], [1196809200000, 3636], [1196895600000, 3575], [1196982000000, 2736], [1197068400000, 1086], [1197154800000, 676], [1197241200000, 1205], [1197327600000, 906], [1197414000000, 710], [1197500400000, 639], [1197586800000, 540], [1197673200000, 435], [1197759600000, 301], [1197846000000, 575], [1197932400000, 481], [1198018800000, 591], [1198105200000, 608], [1198191600000, 459], [1198278000000, 234], [1198364400000, 1352], [1198450800000, 686], [1198537200000, 279], [1198623600000, 449], [1198710000000, 468], [1198796400000, 392], [1198882800000, 282], [1198969200000, 208], [1199055600000, 229], [1199142000000, 177], [1199228400000, 374], [1199314800000, 436], [1199401200000, 404], [1199487600000, 253], [1199574000000, 218], [1199660400000, 476], [1199746800000, 462], [1199833200000, 448], [1199919600000, 442], [1200006000000, 403], [1200092400000, 204], [1200178800000, 194], [1200265200000, 327], [1200351600000, 374], [1200438000000, 507], [1200524400000, 546], [1200610800000, 482], [1200697200000, 283], [1200783600000, 221], [1200870000000, 483], [1200956400000, 523], [1201042800000, 528], [1201129200000, 483], [1201215600000, 452], [1201302000000, 270], [1201388400000, 222], [1201474800000, 439], [1201561200000, 559], [1201647600000, 521], [1201734000000, 477], [1201820400000, 442], [1201906800000, 252], [1201993200000, 236], [1202079600000, 525], [1202166000000, 477], [1202252400000, 386], [1202338800000, 409], [1202425200000, 408], [1202511600000, 237], [1202598000000, 193], [1202684400000, 357], [1202770800000, 414], [1202857200000, 393], [1202943600000, 353], [1203030000000, 364], [1203116400000, 215], [1203202800000, 214], [1203289200000, 356], [1203375600000, 399], [1203462000000, 334], [1203548400000, 348], [1203634800000, 243], [1203721200000, 126], [1203807600000, 157], [1203894000000, 288]];\n\n    // first correct the timestamps - they are recorded as the daily\n    // midnights in UTC+0100, but Flot always displays dates in UTC\n    // so we have to add one hour to hit the midnights in the plot\n    for (var i = 0; i < d.length; ++i)\n      d[i][0] += 60 * 60 * 1000;\n\n    // helper for returning the weekends in a period\n    function weekendAreas(axes) {\n        var markings = [];\n        var d = new Date(axes.xaxis.min);\n        // go to the first Saturday\n        d.setUTCDate(d.getUTCDate() - ((d.getUTCDay() + 1) % 7))\n        d.setUTCSeconds(0);\n        d.setUTCMinutes(0);\n        d.setUTCHours(0);\n        var i = d.getTime();\n        do {\n            // when we don't set yaxis, the rectangle automatically\n            // extends to infinity upwards and downwards\n            markings.push({ xaxis: { from: i, to: i + 2 * 24 * 60 * 60 * 1000 } });\n            i += 7 * 24 * 60 * 60 * 1000;\n        } while (i < axes.xaxis.max);\n\n        return markings;\n    }\n    \n    var options = {\n        xaxis: { mode: \"time\", tickLength: 5 },\n        selection: { mode: \"x\" },\n        grid: { markings: weekendAreas }\n    };\n    \n    var plot = $.plot($(\"#placeholder\"), [d], options);\n    \n    var overview = $.plot($(\"#overview\"), [d], {\n        series: {\n            lines: { show: true, lineWidth: 1 },\n            shadowSize: 0\n        },\n        xaxis: { ticks: [], mode: \"time\" },\n        yaxis: { ticks: [], min: 0, autoscaleMargin: 0.1 },\n        selection: { mode: \"x\" }\n    });\n\n    // now connect the two\n    \n    $(\"#placeholder\").bind(\"plotselected\", function (event, ranges) {\n        // do the zooming\n        plot = $.plot($(\"#placeholder\"), [d],\n                      $.extend(true, {}, options, {\n                          xaxis: { min: ranges.xaxis.from, max: ranges.xaxis.to }\n                      }));\n\n        // don't fire event on the overview to prevent eternal loop\n        overview.setSelection(ranges, true);\n    });\n    \n    $(\"#overview\").bind(\"plotselected\", function (event, ranges) {\n        plot.setSelection(ranges);\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/examples/zooming.html",
    "content": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Flot Examples</title>\n    <link href=\"layout.css\" rel=\"stylesheet\" type=\"text/css\">\n    <!--[if lte IE 8]><script language=\"javascript\" type=\"text/javascript\" src=\"../excanvas.min.js\"></script><![endif]-->\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.js\"></script>\n    <script language=\"javascript\" type=\"text/javascript\" src=\"../jquery.flot.selection.js\"></script>\n </head>\n    <body>\n    <h1>Flot Examples</h1>\n\n    <div style=\"float:left\">\n      <div id=\"placeholder\" style=\"width:500px;height:300px\"></div>\n    </div>\n    \n    <div id=\"miniature\" style=\"float:left;margin-left:20px\">\n      <div id=\"overview\" style=\"width:166px;height:100px\"></div>\n\n      <p id=\"overviewLegend\" style=\"margin-left:10px\"></p>\n    </div>\n\n    <p style=\"clear:left\">The selection support makes it easy to\n    construct flexible zooming schemes. With a few lines of code, the\n    small overview plot to the right has been connected to the large\n    plot. Try selecting a rectangle on either of them.</p>\n\n<script id=\"source\">\n$(function () {\n    // setup plot\n    function getData(x1, x2) {\n        var d = [];\n        for (var i = 0; i <= 100; ++i) {\n            var x = x1 + i * (x2 - x1) / 100;\n            d.push([x, Math.sin(x * Math.sin(x))]);\n        }\n\n        return [\n            { label: \"sin(x sin(x))\", data: d }\n        ];\n    }\n\n    var options = {\n        legend: { show: false },\n        series: {\n            lines: { show: true },\n            points: { show: true }\n        },\n        yaxis: { ticks: 10 },\n        selection: { mode: \"xy\" }\n    };\n\n    var startData = getData(0, 3 * Math.PI);\n    \n    var plot = $.plot($(\"#placeholder\"), startData, options);\n\n    // setup overview\n    var overview = $.plot($(\"#overview\"), startData, {\n        legend: { show: true, container: $(\"#overviewLegend\") },\n        series: {\n            lines: { show: true, lineWidth: 1 },\n            shadowSize: 0\n        },\n        xaxis: { ticks: 4 },\n        yaxis: { ticks: 3, min: -2, max: 2 },\n        grid: { color: \"#999\" },\n        selection: { mode: \"xy\" }\n    });\n\n    // now connect the two\n    \n    $(\"#placeholder\").bind(\"plotselected\", function (event, ranges) {\n        // clamp the zooming to prevent eternal zoom\n        if (ranges.xaxis.to - ranges.xaxis.from < 0.00001)\n            ranges.xaxis.to = ranges.xaxis.from + 0.00001;\n        if (ranges.yaxis.to - ranges.yaxis.from < 0.00001)\n            ranges.yaxis.to = ranges.yaxis.from + 0.00001;\n        \n        // do the zooming\n        plot = $.plot($(\"#placeholder\"), getData(ranges.xaxis.from, ranges.xaxis.to),\n                      $.extend(true, {}, options, {\n                          xaxis: { min: ranges.xaxis.from, max: ranges.xaxis.to },\n                          yaxis: { min: ranges.yaxis.from, max: ranges.yaxis.to }\n                      }));\n        \n        // don't fire event on the overview to prevent eternal loop\n        overview.setSelection(ranges, true);\n    });\n    $(\"#overview\").bind(\"plotselected\", function (event, ranges) {\n        plot.setSelection(ranges);\n    });\n});\n</script>\n\n </body>\n</html>\n"
  },
  {
    "path": "style/lib/flot/excanvas.js",
    "content": "// Copyright 2006 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//   http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n\n// Known Issues:\n//\n// * Patterns only support repeat.\n// * Radial gradient are not implemented. The VML version of these look very\n//   different from the canvas one.\n// * Clipping paths are not implemented.\n// * Coordsize. The width and height attribute have higher priority than the\n//   width and height style values which isn't correct.\n// * Painting mode isn't implemented.\n// * Canvas width/height should is using content-box by default. IE in\n//   Quirks mode will draw the canvas using border-box. Either change your\n//   doctype to HTML5\n//   (http://www.whatwg.org/specs/web-apps/current-work/#the-doctype)\n//   or use Box Sizing Behavior from WebFX\n//   (http://webfx.eae.net/dhtml/boxsizing/boxsizing.html)\n// * Non uniform scaling does not correctly scale strokes.\n// * Filling very large shapes (above 5000 points) is buggy.\n// * Optimize. There is always room for speed improvements.\n\n// Only add this code if we do not already have a canvas implementation\nif (!document.createElement('canvas').getContext) {\n\n(function() {\n\n  // alias some functions to make (compiled) code shorter\n  var m = Math;\n  var mr = m.round;\n  var ms = m.sin;\n  var mc = m.cos;\n  var abs = m.abs;\n  var sqrt = m.sqrt;\n\n  // this is used for sub pixel precision\n  var Z = 10;\n  var Z2 = Z / 2;\n\n  /**\n   * This funtion is assigned to the <canvas> elements as element.getContext().\n   * @this {HTMLElement}\n   * @return {CanvasRenderingContext2D_}\n   */\n  function getContext() {\n    return this.context_ ||\n        (this.context_ = new CanvasRenderingContext2D_(this));\n  }\n\n  var slice = Array.prototype.slice;\n\n  /**\n   * Binds a function to an object. The returned function will always use the\n   * passed in {@code obj} as {@code this}.\n   *\n   * Example:\n   *\n   *   g = bind(f, obj, a, b)\n   *   g(c, d) // will do f.call(obj, a, b, c, d)\n   *\n   * @param {Function} f The function to bind the object to\n   * @param {Object} obj The object that should act as this when the function\n   *     is called\n   * @param {*} var_args Rest arguments that will be used as the initial\n   *     arguments when the function is called\n   * @return {Function} A new function that has bound this\n   */\n  function bind(f, obj, var_args) {\n    var a = slice.call(arguments, 2);\n    return function() {\n      return f.apply(obj, a.concat(slice.call(arguments)));\n    };\n  }\n\n  function encodeHtmlAttribute(s) {\n    return String(s).replace(/&/g, '&amp;').replace(/\"/g, '&quot;');\n  }\n\n  function addNamespacesAndStylesheet(doc) {\n    // create xmlns\n    if (!doc.namespaces['g_vml_']) {\n      doc.namespaces.add('g_vml_', 'urn:schemas-microsoft-com:vml',\n                         '#default#VML');\n\n    }\n    if (!doc.namespaces['g_o_']) {\n      doc.namespaces.add('g_o_', 'urn:schemas-microsoft-com:office:office',\n                         '#default#VML');\n    }\n\n    // Setup default CSS.  Only add one style sheet per document\n    if (!doc.styleSheets['ex_canvas_']) {\n      var ss = doc.createStyleSheet();\n      ss.owningElement.id = 'ex_canvas_';\n      ss.cssText = 'canvas{display:inline-block;overflow:hidden;' +\n          // default size is 300x150 in Gecko and Opera\n          'text-align:left;width:300px;height:150px}';\n    }\n  }\n\n  // Add namespaces and stylesheet at startup.\n  addNamespacesAndStylesheet(document);\n\n  var G_vmlCanvasManager_ = {\n    init: function(opt_doc) {\n      if (/MSIE/.test(navigator.userAgent) && !window.opera) {\n        var doc = opt_doc || document;\n        // Create a dummy element so that IE will allow canvas elements to be\n        // recognized.\n        doc.createElement('canvas');\n        doc.attachEvent('onreadystatechange', bind(this.init_, this, doc));\n      }\n    },\n\n    init_: function(doc) {\n      // find all canvas elements\n      var els = doc.getElementsByTagName('canvas');\n      for (var i = 0; i < els.length; i++) {\n        this.initElement(els[i]);\n      }\n    },\n\n    /**\n     * Public initializes a canvas element so that it can be used as canvas\n     * element from now on. This is called automatically before the page is\n     * loaded but if you are creating elements using createElement you need to\n     * make sure this is called on the element.\n     * @param {HTMLElement} el The canvas element to initialize.\n     * @return {HTMLElement} the element that was created.\n     */\n    initElement: function(el) {\n      if (!el.getContext) {\n        el.getContext = getContext;\n\n        // Add namespaces and stylesheet to document of the element.\n        addNamespacesAndStylesheet(el.ownerDocument);\n\n        // Remove fallback content. There is no way to hide text nodes so we\n        // just remove all childNodes. We could hide all elements and remove\n        // text nodes but who really cares about the fallback content.\n        el.innerHTML = '';\n\n        // do not use inline function because that will leak memory\n        el.attachEvent('onpropertychange', onPropertyChange);\n        el.attachEvent('onresize', onResize);\n\n        var attrs = el.attributes;\n        if (attrs.width && attrs.width.specified) {\n          // TODO: use runtimeStyle and coordsize\n          // el.getContext().setWidth_(attrs.width.nodeValue);\n          el.style.width = attrs.width.nodeValue + 'px';\n        } else {\n          el.width = el.clientWidth;\n        }\n        if (attrs.height && attrs.height.specified) {\n          // TODO: use runtimeStyle and coordsize\n          // el.getContext().setHeight_(attrs.height.nodeValue);\n          el.style.height = attrs.height.nodeValue + 'px';\n        } else {\n          el.height = el.clientHeight;\n        }\n        //el.getContext().setCoordsize_()\n      }\n      return el;\n    }\n  };\n\n  function onPropertyChange(e) {\n    var el = e.srcElement;\n\n    switch (e.propertyName) {\n      case 'width':\n        el.getContext().clearRect();\n        el.style.width = el.attributes.width.nodeValue + 'px';\n        // In IE8 this does not trigger onresize.\n        el.firstChild.style.width =  el.clientWidth + 'px';\n        break;\n      case 'height':\n        el.getContext().clearRect();\n        el.style.height = el.attributes.height.nodeValue + 'px';\n        el.firstChild.style.height = el.clientHeight + 'px';\n        break;\n    }\n  }\n\n  function onResize(e) {\n    var el = e.srcElement;\n    if (el.firstChild) {\n      el.firstChild.style.width =  el.clientWidth + 'px';\n      el.firstChild.style.height = el.clientHeight + 'px';\n    }\n  }\n\n  G_vmlCanvasManager_.init();\n\n  // precompute \"00\" to \"FF\"\n  var decToHex = [];\n  for (var i = 0; i < 16; i++) {\n    for (var j = 0; j < 16; j++) {\n      decToHex[i * 16 + j] = i.toString(16) + j.toString(16);\n    }\n  }\n\n  function createMatrixIdentity() {\n    return [\n      [1, 0, 0],\n      [0, 1, 0],\n      [0, 0, 1]\n    ];\n  }\n\n  function matrixMultiply(m1, m2) {\n    var result = createMatrixIdentity();\n\n    for (var x = 0; x < 3; x++) {\n      for (var y = 0; y < 3; y++) {\n        var sum = 0;\n\n        for (var z = 0; z < 3; z++) {\n          sum += m1[x][z] * m2[z][y];\n        }\n\n        result[x][y] = sum;\n      }\n    }\n    return result;\n  }\n\n  function copyState(o1, o2) {\n    o2.fillStyle     = o1.fillStyle;\n    o2.lineCap       = o1.lineCap;\n    o2.lineJoin      = o1.lineJoin;\n    o2.lineWidth     = o1.lineWidth;\n    o2.miterLimit    = o1.miterLimit;\n    o2.shadowBlur    = o1.shadowBlur;\n    o2.shadowColor   = o1.shadowColor;\n    o2.shadowOffsetX = o1.shadowOffsetX;\n    o2.shadowOffsetY = o1.shadowOffsetY;\n    o2.strokeStyle   = o1.strokeStyle;\n    o2.globalAlpha   = o1.globalAlpha;\n    o2.font          = o1.font;\n    o2.textAlign     = o1.textAlign;\n    o2.textBaseline  = o1.textBaseline;\n    o2.arcScaleX_    = o1.arcScaleX_;\n    o2.arcScaleY_    = o1.arcScaleY_;\n    o2.lineScale_    = o1.lineScale_;\n  }\n\n  var colorData = {\n    aliceblue: '#F0F8FF',\n    antiquewhite: '#FAEBD7',\n    aquamarine: '#7FFFD4',\n    azure: '#F0FFFF',\n    beige: '#F5F5DC',\n    bisque: '#FFE4C4',\n    black: '#000000',\n    blanchedalmond: '#FFEBCD',\n    blueviolet: '#8A2BE2',\n    brown: '#A52A2A',\n    burlywood: '#DEB887',\n    cadetblue: '#5F9EA0',\n    chartreuse: '#7FFF00',\n    chocolate: '#D2691E',\n    coral: '#FF7F50',\n    cornflowerblue: '#6495ED',\n    cornsilk: '#FFF8DC',\n    crimson: '#DC143C',\n    cyan: '#00FFFF',\n    darkblue: '#00008B',\n    darkcyan: '#008B8B',\n    darkgoldenrod: '#B8860B',\n    darkgray: '#A9A9A9',\n    darkgreen: '#006400',\n    darkgrey: '#A9A9A9',\n    darkkhaki: '#BDB76B',\n    darkmagenta: '#8B008B',\n    darkolivegreen: '#556B2F',\n    darkorange: '#FF8C00',\n    darkorchid: '#9932CC',\n    darkred: '#8B0000',\n    darksalmon: '#E9967A',\n    darkseagreen: '#8FBC8F',\n    darkslateblue: '#483D8B',\n    darkslategray: '#2F4F4F',\n    darkslategrey: '#2F4F4F',\n    darkturquoise: '#00CED1',\n    darkviolet: '#9400D3',\n    deeppink: '#FF1493',\n    deepskyblue: '#00BFFF',\n    dimgray: '#696969',\n    dimgrey: '#696969',\n    dodgerblue: '#1E90FF',\n    firebrick: '#B22222',\n    floralwhite: '#FFFAF0',\n    forestgreen: '#228B22',\n    gainsboro: '#DCDCDC',\n    ghostwhite: '#F8F8FF',\n    gold: '#FFD700',\n    goldenrod: '#DAA520',\n    grey: '#808080',\n    greenyellow: '#ADFF2F',\n    honeydew: '#F0FFF0',\n    hotpink: '#FF69B4',\n    indianred: '#CD5C5C',\n    indigo: '#4B0082',\n    ivory: '#FFFFF0',\n    khaki: '#F0E68C',\n    lavender: '#E6E6FA',\n    lavenderblush: '#FFF0F5',\n    lawngreen: '#7CFC00',\n    lemonchiffon: '#FFFACD',\n    lightblue: '#ADD8E6',\n    lightcoral: '#F08080',\n    lightcyan: '#E0FFFF',\n    lightgoldenrodyellow: '#FAFAD2',\n    lightgreen: '#90EE90',\n    lightgrey: '#D3D3D3',\n    lightpink: '#FFB6C1',\n    lightsalmon: '#FFA07A',\n    lightseagreen: '#20B2AA',\n    lightskyblue: '#87CEFA',\n    lightslategray: '#778899',\n    lightslategrey: '#778899',\n    lightsteelblue: '#B0C4DE',\n    lightyellow: '#FFFFE0',\n    limegreen: '#32CD32',\n    linen: '#FAF0E6',\n    magenta: '#FF00FF',\n    mediumaquamarine: '#66CDAA',\n    mediumblue: '#0000CD',\n    mediumorchid: '#BA55D3',\n    mediumpurple: '#9370DB',\n    mediumseagreen: '#3CB371',\n    mediumslateblue: '#7B68EE',\n    mediumspringgreen: '#00FA9A',\n    mediumturquoise: '#48D1CC',\n    mediumvioletred: '#C71585',\n    midnightblue: '#191970',\n    mintcream: '#F5FFFA',\n    mistyrose: '#FFE4E1',\n    moccasin: '#FFE4B5',\n    navajowhite: '#FFDEAD',\n    oldlace: '#FDF5E6',\n    olivedrab: '#6B8E23',\n    orange: '#FFA500',\n    orangered: '#FF4500',\n    orchid: '#DA70D6',\n    palegoldenrod: '#EEE8AA',\n    palegreen: '#98FB98',\n    paleturquoise: '#AFEEEE',\n    palevioletred: '#DB7093',\n    papayawhip: '#FFEFD5',\n    peachpuff: '#FFDAB9',\n    peru: '#CD853F',\n    pink: '#FFC0CB',\n    plum: '#DDA0DD',\n    powderblue: '#B0E0E6',\n    rosybrown: '#BC8F8F',\n    royalblue: '#4169E1',\n    saddlebrown: '#8B4513',\n    salmon: '#FA8072',\n    sandybrown: '#F4A460',\n    seagreen: '#2E8B57',\n    seashell: '#FFF5EE',\n    sienna: '#A0522D',\n    skyblue: '#87CEEB',\n    slateblue: '#6A5ACD',\n    slategray: '#708090',\n    slategrey: '#708090',\n    snow: '#FFFAFA',\n    springgreen: '#00FF7F',\n    steelblue: '#4682B4',\n    tan: '#D2B48C',\n    thistle: '#D8BFD8',\n    tomato: '#FF6347',\n    turquoise: '#40E0D0',\n    violet: '#EE82EE',\n    wheat: '#F5DEB3',\n    whitesmoke: '#F5F5F5',\n    yellowgreen: '#9ACD32'\n  };\n\n\n  function getRgbHslContent(styleString) {\n    var start = styleString.indexOf('(', 3);\n    var end = styleString.indexOf(')', start + 1);\n    var parts = styleString.substring(start + 1, end).split(',');\n    // add alpha if needed\n    if (parts.length == 4 && styleString.substr(3, 1) == 'a') {\n      alpha = Number(parts[3]);\n    } else {\n      parts[3] = 1;\n    }\n    return parts;\n  }\n\n  function percent(s) {\n    return parseFloat(s) / 100;\n  }\n\n  function clamp(v, min, max) {\n    return Math.min(max, Math.max(min, v));\n  }\n\n  function hslToRgb(parts){\n    var r, g, b;\n    h = parseFloat(parts[0]) / 360 % 360;\n    if (h < 0)\n      h++;\n    s = clamp(percent(parts[1]), 0, 1);\n    l = clamp(percent(parts[2]), 0, 1);\n    if (s == 0) {\n      r = g = b = l; // achromatic\n    } else {\n      var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n      var p = 2 * l - q;\n      r = hueToRgb(p, q, h + 1 / 3);\n      g = hueToRgb(p, q, h);\n      b = hueToRgb(p, q, h - 1 / 3);\n    }\n\n    return '#' + decToHex[Math.floor(r * 255)] +\n        decToHex[Math.floor(g * 255)] +\n        decToHex[Math.floor(b * 255)];\n  }\n\n  function hueToRgb(m1, m2, h) {\n    if (h < 0)\n      h++;\n    if (h > 1)\n      h--;\n\n    if (6 * h < 1)\n      return m1 + (m2 - m1) * 6 * h;\n    else if (2 * h < 1)\n      return m2;\n    else if (3 * h < 2)\n      return m1 + (m2 - m1) * (2 / 3 - h) * 6;\n    else\n      return m1;\n  }\n\n  function processStyle(styleString) {\n    var str, alpha = 1;\n\n    styleString = String(styleString);\n    if (styleString.charAt(0) == '#') {\n      str = styleString;\n    } else if (/^rgb/.test(styleString)) {\n      var parts = getRgbHslContent(styleString);\n      var str = '#', n;\n      for (var i = 0; i < 3; i++) {\n        if (parts[i].indexOf('%') != -1) {\n          n = Math.floor(percent(parts[i]) * 255);\n        } else {\n          n = Number(parts[i]);\n        }\n        str += decToHex[clamp(n, 0, 255)];\n      }\n      alpha = parts[3];\n    } else if (/^hsl/.test(styleString)) {\n      var parts = getRgbHslContent(styleString);\n      str = hslToRgb(parts);\n      alpha = parts[3];\n    } else {\n      str = colorData[styleString] || styleString;\n    }\n    return {color: str, alpha: alpha};\n  }\n\n  var DEFAULT_STYLE = {\n    style: 'normal',\n    variant: 'normal',\n    weight: 'normal',\n    size: 10,\n    family: 'sans-serif'\n  };\n\n  // Internal text style cache\n  var fontStyleCache = {};\n\n  function processFontStyle(styleString) {\n    if (fontStyleCache[styleString]) {\n      return fontStyleCache[styleString];\n    }\n\n    var el = document.createElement('div');\n    var style = el.style;\n    try {\n      style.font = styleString;\n    } catch (ex) {\n      // Ignore failures to set to invalid font.\n    }\n\n    return fontStyleCache[styleString] = {\n      style: style.fontStyle || DEFAULT_STYLE.style,\n      variant: style.fontVariant || DEFAULT_STYLE.variant,\n      weight: style.fontWeight || DEFAULT_STYLE.weight,\n      size: style.fontSize || DEFAULT_STYLE.size,\n      family: style.fontFamily || DEFAULT_STYLE.family\n    };\n  }\n\n  function getComputedStyle(style, element) {\n    var computedStyle = {};\n\n    for (var p in style) {\n      computedStyle[p] = style[p];\n    }\n\n    // Compute the size\n    var canvasFontSize = parseFloat(element.currentStyle.fontSize),\n        fontSize = parseFloat(style.size);\n\n    if (typeof style.size == 'number') {\n      computedStyle.size = style.size;\n    } else if (style.size.indexOf('px') != -1) {\n      computedStyle.size = fontSize;\n    } else if (style.size.indexOf('em') != -1) {\n      computedStyle.size = canvasFontSize * fontSize;\n    } else if(style.size.indexOf('%') != -1) {\n      computedStyle.size = (canvasFontSize / 100) * fontSize;\n    } else if (style.size.indexOf('pt') != -1) {\n      computedStyle.size = fontSize / .75;\n    } else {\n      computedStyle.size = canvasFontSize;\n    }\n\n    // Different scaling between normal text and VML text. This was found using\n    // trial and error to get the same size as non VML text.\n    computedStyle.size *= 0.981;\n\n    return computedStyle;\n  }\n\n  function buildStyle(style) {\n    return style.style + ' ' + style.variant + ' ' + style.weight + ' ' +\n        style.size + 'px ' + style.family;\n  }\n\n  function processLineCap(lineCap) {\n    switch (lineCap) {\n      case 'butt':\n        return 'flat';\n      case 'round':\n        return 'round';\n      case 'square':\n      default:\n        return 'square';\n    }\n  }\n\n  /**\n   * This class implements CanvasRenderingContext2D interface as described by\n   * the WHATWG.\n   * @param {HTMLElement} surfaceElement The element that the 2D context should\n   * be associated with\n   */\n  function CanvasRenderingContext2D_(surfaceElement) {\n    this.m_ = createMatrixIdentity();\n\n    this.mStack_ = [];\n    this.aStack_ = [];\n    this.currentPath_ = [];\n\n    // Canvas context properties\n    this.strokeStyle = '#000';\n    this.fillStyle = '#000';\n\n    this.lineWidth = 1;\n    this.lineJoin = 'miter';\n    this.lineCap = 'butt';\n    this.miterLimit = Z * 1;\n    this.globalAlpha = 1;\n    this.font = '10px sans-serif';\n    this.textAlign = 'left';\n    this.textBaseline = 'alphabetic';\n    this.canvas = surfaceElement;\n\n    var el = surfaceElement.ownerDocument.createElement('div');\n    el.style.width =  surfaceElement.clientWidth + 'px';\n    el.style.height = surfaceElement.clientHeight + 'px';\n    el.style.overflow = 'hidden';\n    el.style.position = 'absolute';\n    surfaceElement.appendChild(el);\n\n    this.element_ = el;\n    this.arcScaleX_ = 1;\n    this.arcScaleY_ = 1;\n    this.lineScale_ = 1;\n  }\n\n  var contextPrototype = CanvasRenderingContext2D_.prototype;\n  contextPrototype.clearRect = function() {\n    if (this.textMeasureEl_) {\n      this.textMeasureEl_.removeNode(true);\n      this.textMeasureEl_ = null;\n    }\n    this.element_.innerHTML = '';\n  };\n\n  contextPrototype.beginPath = function() {\n    // TODO: Branch current matrix so that save/restore has no effect\n    //       as per safari docs.\n    this.currentPath_ = [];\n  };\n\n  contextPrototype.moveTo = function(aX, aY) {\n    var p = this.getCoords_(aX, aY);\n    this.currentPath_.push({type: 'moveTo', x: p.x, y: p.y});\n    this.currentX_ = p.x;\n    this.currentY_ = p.y;\n  };\n\n  contextPrototype.lineTo = function(aX, aY) {\n    var p = this.getCoords_(aX, aY);\n    this.currentPath_.push({type: 'lineTo', x: p.x, y: p.y});\n\n    this.currentX_ = p.x;\n    this.currentY_ = p.y;\n  };\n\n  contextPrototype.bezierCurveTo = function(aCP1x, aCP1y,\n                                            aCP2x, aCP2y,\n                                            aX, aY) {\n    var p = this.getCoords_(aX, aY);\n    var cp1 = this.getCoords_(aCP1x, aCP1y);\n    var cp2 = this.getCoords_(aCP2x, aCP2y);\n    bezierCurveTo(this, cp1, cp2, p);\n  };\n\n  // Helper function that takes the already fixed cordinates.\n  function bezierCurveTo(self, cp1, cp2, p) {\n    self.currentPath_.push({\n      type: 'bezierCurveTo',\n      cp1x: cp1.x,\n      cp1y: cp1.y,\n      cp2x: cp2.x,\n      cp2y: cp2.y,\n      x: p.x,\n      y: p.y\n    });\n    self.currentX_ = p.x;\n    self.currentY_ = p.y;\n  }\n\n  contextPrototype.quadraticCurveTo = function(aCPx, aCPy, aX, aY) {\n    // the following is lifted almost directly from\n    // http://developer.mozilla.org/en/docs/Canvas_tutorial:Drawing_shapes\n\n    var cp = this.getCoords_(aCPx, aCPy);\n    var p = this.getCoords_(aX, aY);\n\n    var cp1 = {\n      x: this.currentX_ + 2.0 / 3.0 * (cp.x - this.currentX_),\n      y: this.currentY_ + 2.0 / 3.0 * (cp.y - this.currentY_)\n    };\n    var cp2 = {\n      x: cp1.x + (p.x - this.currentX_) / 3.0,\n      y: cp1.y + (p.y - this.currentY_) / 3.0\n    };\n\n    bezierCurveTo(this, cp1, cp2, p);\n  };\n\n  contextPrototype.arc = function(aX, aY, aRadius,\n                                  aStartAngle, aEndAngle, aClockwise) {\n    aRadius *= Z;\n    var arcType = aClockwise ? 'at' : 'wa';\n\n    var xStart = aX + mc(aStartAngle) * aRadius - Z2;\n    var yStart = aY + ms(aStartAngle) * aRadius - Z2;\n\n    var xEnd = aX + mc(aEndAngle) * aRadius - Z2;\n    var yEnd = aY + ms(aEndAngle) * aRadius - Z2;\n\n    // IE won't render arches drawn counter clockwise if xStart == xEnd.\n    if (xStart == xEnd && !aClockwise) {\n      xStart += 0.125; // Offset xStart by 1/80 of a pixel. Use something\n                       // that can be represented in binary\n    }\n\n    var p = this.getCoords_(aX, aY);\n    var pStart = this.getCoords_(xStart, yStart);\n    var pEnd = this.getCoords_(xEnd, yEnd);\n\n    this.currentPath_.push({type: arcType,\n                           x: p.x,\n                           y: p.y,\n                           radius: aRadius,\n                           xStart: pStart.x,\n                           yStart: pStart.y,\n                           xEnd: pEnd.x,\n                           yEnd: pEnd.y});\n\n  };\n\n  contextPrototype.rect = function(aX, aY, aWidth, aHeight) {\n    this.moveTo(aX, aY);\n    this.lineTo(aX + aWidth, aY);\n    this.lineTo(aX + aWidth, aY + aHeight);\n    this.lineTo(aX, aY + aHeight);\n    this.closePath();\n  };\n\n  contextPrototype.strokeRect = function(aX, aY, aWidth, aHeight) {\n    var oldPath = this.currentPath_;\n    this.beginPath();\n\n    this.moveTo(aX, aY);\n    this.lineTo(aX + aWidth, aY);\n    this.lineTo(aX + aWidth, aY + aHeight);\n    this.lineTo(aX, aY + aHeight);\n    this.closePath();\n    this.stroke();\n\n    this.currentPath_ = oldPath;\n  };\n\n  contextPrototype.fillRect = function(aX, aY, aWidth, aHeight) {\n    var oldPath = this.currentPath_;\n    this.beginPath();\n\n    this.moveTo(aX, aY);\n    this.lineTo(aX + aWidth, aY);\n    this.lineTo(aX + aWidth, aY + aHeight);\n    this.lineTo(aX, aY + aHeight);\n    this.closePath();\n    this.fill();\n\n    this.currentPath_ = oldPath;\n  };\n\n  contextPrototype.createLinearGradient = function(aX0, aY0, aX1, aY1) {\n    var gradient = new CanvasGradient_('gradient');\n    gradient.x0_ = aX0;\n    gradient.y0_ = aY0;\n    gradient.x1_ = aX1;\n    gradient.y1_ = aY1;\n    return gradient;\n  };\n\n  contextPrototype.createRadialGradient = function(aX0, aY0, aR0,\n                                                   aX1, aY1, aR1) {\n    var gradient = new CanvasGradient_('gradientradial');\n    gradient.x0_ = aX0;\n    gradient.y0_ = aY0;\n    gradient.r0_ = aR0;\n    gradient.x1_ = aX1;\n    gradient.y1_ = aY1;\n    gradient.r1_ = aR1;\n    return gradient;\n  };\n\n  contextPrototype.drawImage = function(image, var_args) {\n    var dx, dy, dw, dh, sx, sy, sw, sh;\n\n    // to find the original width we overide the width and height\n    var oldRuntimeWidth = image.runtimeStyle.width;\n    var oldRuntimeHeight = image.runtimeStyle.height;\n    image.runtimeStyle.width = 'auto';\n    image.runtimeStyle.height = 'auto';\n\n    // get the original size\n    var w = image.width;\n    var h = image.height;\n\n    // and remove overides\n    image.runtimeStyle.width = oldRuntimeWidth;\n    image.runtimeStyle.height = oldRuntimeHeight;\n\n    if (arguments.length == 3) {\n      dx = arguments[1];\n      dy = arguments[2];\n      sx = sy = 0;\n      sw = dw = w;\n      sh = dh = h;\n    } else if (arguments.length == 5) {\n      dx = arguments[1];\n      dy = arguments[2];\n      dw = arguments[3];\n      dh = arguments[4];\n      sx = sy = 0;\n      sw = w;\n      sh = h;\n    } else if (arguments.length == 9) {\n      sx = arguments[1];\n      sy = arguments[2];\n      sw = arguments[3];\n      sh = arguments[4];\n      dx = arguments[5];\n      dy = arguments[6];\n      dw = arguments[7];\n      dh = arguments[8];\n    } else {\n      throw Error('Invalid number of arguments');\n    }\n\n    var d = this.getCoords_(dx, dy);\n\n    var w2 = sw / 2;\n    var h2 = sh / 2;\n\n    var vmlStr = [];\n\n    var W = 10;\n    var H = 10;\n\n    // For some reason that I've now forgotten, using divs didn't work\n    vmlStr.push(' <g_vml_:group',\n                ' coordsize=\"', Z * W, ',', Z * H, '\"',\n                ' coordorigin=\"0,0\"' ,\n                ' style=\"width:', W, 'px;height:', H, 'px;position:absolute;');\n\n    // If filters are necessary (rotation exists), create them\n    // filters are bog-slow, so only create them if abbsolutely necessary\n    // The following check doesn't account for skews (which don't exist\n    // in the canvas spec (yet) anyway.\n\n    if (this.m_[0][0] != 1 || this.m_[0][1] ||\n        this.m_[1][1] != 1 || this.m_[1][0]) {\n      var filter = [];\n\n      // Note the 12/21 reversal\n      filter.push('M11=', this.m_[0][0], ',',\n                  'M12=', this.m_[1][0], ',',\n                  'M21=', this.m_[0][1], ',',\n                  'M22=', this.m_[1][1], ',',\n                  'Dx=', mr(d.x / Z), ',',\n                  'Dy=', mr(d.y / Z), '');\n\n      // Bounding box calculation (need to minimize displayed area so that\n      // filters don't waste time on unused pixels.\n      var max = d;\n      var c2 = this.getCoords_(dx + dw, dy);\n      var c3 = this.getCoords_(dx, dy + dh);\n      var c4 = this.getCoords_(dx + dw, dy + dh);\n\n      max.x = m.max(max.x, c2.x, c3.x, c4.x);\n      max.y = m.max(max.y, c2.y, c3.y, c4.y);\n\n      vmlStr.push('padding:0 ', mr(max.x / Z), 'px ', mr(max.y / Z),\n                  'px 0;filter:progid:DXImageTransform.Microsoft.Matrix(',\n                  filter.join(''), \", sizingmethod='clip');\");\n\n    } else {\n      vmlStr.push('top:', mr(d.y / Z), 'px;left:', mr(d.x / Z), 'px;');\n    }\n\n    vmlStr.push(' \">' ,\n                '<g_vml_:image src=\"', image.src, '\"',\n                ' style=\"width:', Z * dw, 'px;',\n                ' height:', Z * dh, 'px\"',\n                ' cropleft=\"', sx / w, '\"',\n                ' croptop=\"', sy / h, '\"',\n                ' cropright=\"', (w - sx - sw) / w, '\"',\n                ' cropbottom=\"', (h - sy - sh) / h, '\"',\n                ' />',\n                '</g_vml_:group>');\n\n    this.element_.insertAdjacentHTML('BeforeEnd', vmlStr.join(''));\n  };\n\n  contextPrototype.stroke = function(aFill) {\n    var W = 10;\n    var H = 10;\n    // Divide the shape into chunks if it's too long because IE has a limit\n    // somewhere for how long a VML shape can be. This simple division does\n    // not work with fills, only strokes, unfortunately.\n    var chunkSize = 5000;\n\n    var min = {x: null, y: null};\n    var max = {x: null, y: null};\n\n    for (var j = 0; j < this.currentPath_.length; j += chunkSize) {\n      var lineStr = [];\n      var lineOpen = false;\n\n      lineStr.push('<g_vml_:shape',\n                   ' filled=\"', !!aFill, '\"',\n                   ' style=\"position:absolute;width:', W, 'px;height:', H, 'px;\"',\n                   ' coordorigin=\"0,0\"',\n                   ' coordsize=\"', Z * W, ',', Z * H, '\"',\n                   ' stroked=\"', !aFill, '\"',\n                   ' path=\"');\n\n      var newSeq = false;\n\n      for (var i = j; i < Math.min(j + chunkSize, this.currentPath_.length); i++) {\n        if (i % chunkSize == 0 && i > 0) { // move into position for next chunk\n          lineStr.push(' m ', mr(this.currentPath_[i-1].x), ',', mr(this.currentPath_[i-1].y));\n        }\n\n        var p = this.currentPath_[i];\n        var c;\n\n        switch (p.type) {\n          case 'moveTo':\n            c = p;\n            lineStr.push(' m ', mr(p.x), ',', mr(p.y));\n            break;\n          case 'lineTo':\n            lineStr.push(' l ', mr(p.x), ',', mr(p.y));\n            break;\n          case 'close':\n            lineStr.push(' x ');\n            p = null;\n            break;\n          case 'bezierCurveTo':\n            lineStr.push(' c ',\n                         mr(p.cp1x), ',', mr(p.cp1y), ',',\n                         mr(p.cp2x), ',', mr(p.cp2y), ',',\n                         mr(p.x), ',', mr(p.y));\n            break;\n          case 'at':\n          case 'wa':\n            lineStr.push(' ', p.type, ' ',\n                         mr(p.x - this.arcScaleX_ * p.radius), ',',\n                         mr(p.y - this.arcScaleY_ * p.radius), ' ',\n                         mr(p.x + this.arcScaleX_ * p.radius), ',',\n                         mr(p.y + this.arcScaleY_ * p.radius), ' ',\n                         mr(p.xStart), ',', mr(p.yStart), ' ',\n                         mr(p.xEnd), ',', mr(p.yEnd));\n            break;\n        }\n  \n  \n        // TODO: Following is broken for curves due to\n        //       move to proper paths.\n  \n        // Figure out dimensions so we can do gradient fills\n        // properly\n        if (p) {\n          if (min.x == null || p.x < min.x) {\n            min.x = p.x;\n          }\n          if (max.x == null || p.x > max.x) {\n            max.x = p.x;\n          }\n          if (min.y == null || p.y < min.y) {\n            min.y = p.y;\n          }\n          if (max.y == null || p.y > max.y) {\n            max.y = p.y;\n          }\n        }\n      }\n      lineStr.push(' \">');\n  \n      if (!aFill) {\n        appendStroke(this, lineStr);\n      } else {\n        appendFill(this, lineStr, min, max);\n      }\n  \n      lineStr.push('</g_vml_:shape>');\n  \n      this.element_.insertAdjacentHTML('beforeEnd', lineStr.join(''));\n    }\n  };\n\n  function appendStroke(ctx, lineStr) {\n    var a = processStyle(ctx.strokeStyle);\n    var color = a.color;\n    var opacity = a.alpha * ctx.globalAlpha;\n    var lineWidth = ctx.lineScale_ * ctx.lineWidth;\n\n    // VML cannot correctly render a line if the width is less than 1px.\n    // In that case, we dilute the color to make the line look thinner.\n    if (lineWidth < 1) {\n      opacity *= lineWidth;\n    }\n\n    lineStr.push(\n      '<g_vml_:stroke',\n      ' opacity=\"', opacity, '\"',\n      ' joinstyle=\"', ctx.lineJoin, '\"',\n      ' miterlimit=\"', ctx.miterLimit, '\"',\n      ' endcap=\"', processLineCap(ctx.lineCap), '\"',\n      ' weight=\"', lineWidth, 'px\"',\n      ' color=\"', color, '\" />'\n    );\n  }\n\n  function appendFill(ctx, lineStr, min, max) {\n    var fillStyle = ctx.fillStyle;\n    var arcScaleX = ctx.arcScaleX_;\n    var arcScaleY = ctx.arcScaleY_;\n    var width = max.x - min.x;\n    var height = max.y - min.y;\n    if (fillStyle instanceof CanvasGradient_) {\n      // TODO: Gradients transformed with the transformation matrix.\n      var angle = 0;\n      var focus = {x: 0, y: 0};\n\n      // additional offset\n      var shift = 0;\n      // scale factor for offset\n      var expansion = 1;\n\n      if (fillStyle.type_ == 'gradient') {\n        var x0 = fillStyle.x0_ / arcScaleX;\n        var y0 = fillStyle.y0_ / arcScaleY;\n        var x1 = fillStyle.x1_ / arcScaleX;\n        var y1 = fillStyle.y1_ / arcScaleY;\n        var p0 = ctx.getCoords_(x0, y0);\n        var p1 = ctx.getCoords_(x1, y1);\n        var dx = p1.x - p0.x;\n        var dy = p1.y - p0.y;\n        angle = Math.atan2(dx, dy) * 180 / Math.PI;\n\n        // The angle should be a non-negative number.\n        if (angle < 0) {\n          angle += 360;\n        }\n\n        // Very small angles produce an unexpected result because they are\n        // converted to a scientific notation string.\n        if (angle < 1e-6) {\n          angle = 0;\n        }\n      } else {\n        var p0 = ctx.getCoords_(fillStyle.x0_, fillStyle.y0_);\n        focus = {\n          x: (p0.x - min.x) / width,\n          y: (p0.y - min.y) / height\n        };\n\n        width  /= arcScaleX * Z;\n        height /= arcScaleY * Z;\n        var dimension = m.max(width, height);\n        shift = 2 * fillStyle.r0_ / dimension;\n        expansion = 2 * fillStyle.r1_ / dimension - shift;\n      }\n\n      // We need to sort the color stops in ascending order by offset,\n      // otherwise IE won't interpret it correctly.\n      var stops = fillStyle.colors_;\n      stops.sort(function(cs1, cs2) {\n        return cs1.offset - cs2.offset;\n      });\n\n      var length = stops.length;\n      var color1 = stops[0].color;\n      var color2 = stops[length - 1].color;\n      var opacity1 = stops[0].alpha * ctx.globalAlpha;\n      var opacity2 = stops[length - 1].alpha * ctx.globalAlpha;\n\n      var colors = [];\n      for (var i = 0; i < length; i++) {\n        var stop = stops[i];\n        colors.push(stop.offset * expansion + shift + ' ' + stop.color);\n      }\n\n      // When colors attribute is used, the meanings of opacity and o:opacity2\n      // are reversed.\n      lineStr.push('<g_vml_:fill type=\"', fillStyle.type_, '\"',\n                   ' method=\"none\" focus=\"100%\"',\n                   ' color=\"', color1, '\"',\n                   ' color2=\"', color2, '\"',\n                   ' colors=\"', colors.join(','), '\"',\n                   ' opacity=\"', opacity2, '\"',\n                   ' g_o_:opacity2=\"', opacity1, '\"',\n                   ' angle=\"', angle, '\"',\n                   ' focusposition=\"', focus.x, ',', focus.y, '\" />');\n    } else if (fillStyle instanceof CanvasPattern_) {\n      if (width && height) {\n        var deltaLeft = -min.x;\n        var deltaTop = -min.y;\n        lineStr.push('<g_vml_:fill',\n                     ' position=\"',\n                     deltaLeft / width * arcScaleX * arcScaleX, ',',\n                     deltaTop / height * arcScaleY * arcScaleY, '\"',\n                     ' type=\"tile\"',\n                     // TODO: Figure out the correct size to fit the scale.\n                     //' size=\"', w, 'px ', h, 'px\"',\n                     ' src=\"', fillStyle.src_, '\" />');\n       }\n    } else {\n      var a = processStyle(ctx.fillStyle);\n      var color = a.color;\n      var opacity = a.alpha * ctx.globalAlpha;\n      lineStr.push('<g_vml_:fill color=\"', color, '\" opacity=\"', opacity,\n                   '\" />');\n    }\n  }\n\n  contextPrototype.fill = function() {\n    this.stroke(true);\n  };\n\n  contextPrototype.closePath = function() {\n    this.currentPath_.push({type: 'close'});\n  };\n\n  /**\n   * @private\n   */\n  contextPrototype.getCoords_ = function(aX, aY) {\n    var m = this.m_;\n    return {\n      x: Z * (aX * m[0][0] + aY * m[1][0] + m[2][0]) - Z2,\n      y: Z * (aX * m[0][1] + aY * m[1][1] + m[2][1]) - Z2\n    };\n  };\n\n  contextPrototype.save = function() {\n    var o = {};\n    copyState(this, o);\n    this.aStack_.push(o);\n    this.mStack_.push(this.m_);\n    this.m_ = matrixMultiply(createMatrixIdentity(), this.m_);\n  };\n\n  contextPrototype.restore = function() {\n    if (this.aStack_.length) {\n      copyState(this.aStack_.pop(), this);\n      this.m_ = this.mStack_.pop();\n    }\n  };\n\n  function matrixIsFinite(m) {\n    return isFinite(m[0][0]) && isFinite(m[0][1]) &&\n        isFinite(m[1][0]) && isFinite(m[1][1]) &&\n        isFinite(m[2][0]) && isFinite(m[2][1]);\n  }\n\n  function setM(ctx, m, updateLineScale) {\n    if (!matrixIsFinite(m)) {\n      return;\n    }\n    ctx.m_ = m;\n\n    if (updateLineScale) {\n      // Get the line scale.\n      // Determinant of this.m_ means how much the area is enlarged by the\n      // transformation. So its square root can be used as a scale factor\n      // for width.\n      var det = m[0][0] * m[1][1] - m[0][1] * m[1][0];\n      ctx.lineScale_ = sqrt(abs(det));\n    }\n  }\n\n  contextPrototype.translate = function(aX, aY) {\n    var m1 = [\n      [1,  0,  0],\n      [0,  1,  0],\n      [aX, aY, 1]\n    ];\n\n    setM(this, matrixMultiply(m1, this.m_), false);\n  };\n\n  contextPrototype.rotate = function(aRot) {\n    var c = mc(aRot);\n    var s = ms(aRot);\n\n    var m1 = [\n      [c,  s, 0],\n      [-s, c, 0],\n      [0,  0, 1]\n    ];\n\n    setM(this, matrixMultiply(m1, this.m_), false);\n  };\n\n  contextPrototype.scale = function(aX, aY) {\n    this.arcScaleX_ *= aX;\n    this.arcScaleY_ *= aY;\n    var m1 = [\n      [aX, 0,  0],\n      [0,  aY, 0],\n      [0,  0,  1]\n    ];\n\n    setM(this, matrixMultiply(m1, this.m_), true);\n  };\n\n  contextPrototype.transform = function(m11, m12, m21, m22, dx, dy) {\n    var m1 = [\n      [m11, m12, 0],\n      [m21, m22, 0],\n      [dx,  dy,  1]\n    ];\n\n    setM(this, matrixMultiply(m1, this.m_), true);\n  };\n\n  contextPrototype.setTransform = function(m11, m12, m21, m22, dx, dy) {\n    var m = [\n      [m11, m12, 0],\n      [m21, m22, 0],\n      [dx,  dy,  1]\n    ];\n\n    setM(this, m, true);\n  };\n\n  /**\n   * The text drawing function.\n   * The maxWidth argument isn't taken in account, since no browser supports\n   * it yet.\n   */\n  contextPrototype.drawText_ = function(text, x, y, maxWidth, stroke) {\n    var m = this.m_,\n        delta = 1000,\n        left = 0,\n        right = delta,\n        offset = {x: 0, y: 0},\n        lineStr = [];\n\n    var fontStyle = getComputedStyle(processFontStyle(this.font),\n                                     this.element_);\n\n    var fontStyleString = buildStyle(fontStyle);\n\n    var elementStyle = this.element_.currentStyle;\n    var textAlign = this.textAlign.toLowerCase();\n    switch (textAlign) {\n      case 'left':\n      case 'center':\n      case 'right':\n        break;\n      case 'end':\n        textAlign = elementStyle.direction == 'ltr' ? 'right' : 'left';\n        break;\n      case 'start':\n        textAlign = elementStyle.direction == 'rtl' ? 'right' : 'left';\n        break;\n      default:\n        textAlign = 'left';\n    }\n\n    // 1.75 is an arbitrary number, as there is no info about the text baseline\n    switch (this.textBaseline) {\n      case 'hanging':\n      case 'top':\n        offset.y = fontStyle.size / 1.75;\n        break;\n      case 'middle':\n        break;\n      default:\n      case null:\n      case 'alphabetic':\n      case 'ideographic':\n      case 'bottom':\n        offset.y = -fontStyle.size / 2.25;\n        break;\n    }\n\n    switch(textAlign) {\n      case 'right':\n        left = delta;\n        right = 0.05;\n        break;\n      case 'center':\n        left = right = delta / 2;\n        break;\n    }\n\n    var d = this.getCoords_(x + offset.x, y + offset.y);\n\n    lineStr.push('<g_vml_:line from=\"', -left ,' 0\" to=\"', right ,' 0.05\" ',\n                 ' coordsize=\"100 100\" coordorigin=\"0 0\"',\n                 ' filled=\"', !stroke, '\" stroked=\"', !!stroke,\n                 '\" style=\"position:absolute;width:1px;height:1px;\">');\n\n    if (stroke) {\n      appendStroke(this, lineStr);\n    } else {\n      // TODO: Fix the min and max params.\n      appendFill(this, lineStr, {x: -left, y: 0},\n                 {x: right, y: fontStyle.size});\n    }\n\n    var skewM = m[0][0].toFixed(3) + ',' + m[1][0].toFixed(3) + ',' +\n                m[0][1].toFixed(3) + ',' + m[1][1].toFixed(3) + ',0,0';\n\n    var skewOffset = mr(d.x / Z) + ',' + mr(d.y / Z);\n\n    lineStr.push('<g_vml_:skew on=\"t\" matrix=\"', skewM ,'\" ',\n                 ' offset=\"', skewOffset, '\" origin=\"', left ,' 0\" />',\n                 '<g_vml_:path textpathok=\"true\" />',\n                 '<g_vml_:textpath on=\"true\" string=\"',\n                 encodeHtmlAttribute(text),\n                 '\" style=\"v-text-align:', textAlign,\n                 ';font:', encodeHtmlAttribute(fontStyleString),\n                 '\" /></g_vml_:line>');\n\n    this.element_.insertAdjacentHTML('beforeEnd', lineStr.join(''));\n  };\n\n  contextPrototype.fillText = function(text, x, y, maxWidth) {\n    this.drawText_(text, x, y, maxWidth, false);\n  };\n\n  contextPrototype.strokeText = function(text, x, y, maxWidth) {\n    this.drawText_(text, x, y, maxWidth, true);\n  };\n\n  contextPrototype.measureText = function(text) {\n    if (!this.textMeasureEl_) {\n      var s = '<span style=\"position:absolute;' +\n          'top:-20000px;left:0;padding:0;margin:0;border:none;' +\n          'white-space:pre;\"></span>';\n      this.element_.insertAdjacentHTML('beforeEnd', s);\n      this.textMeasureEl_ = this.element_.lastChild;\n    }\n    var doc = this.element_.ownerDocument;\n    this.textMeasureEl_.innerHTML = '';\n    this.textMeasureEl_.style.font = this.font;\n    // Don't use innerHTML or innerText because they allow markup/whitespace.\n    this.textMeasureEl_.appendChild(doc.createTextNode(text));\n    return {width: this.textMeasureEl_.offsetWidth};\n  };\n\n  /******** STUBS ********/\n  contextPrototype.clip = function() {\n    // TODO: Implement\n  };\n\n  contextPrototype.arcTo = function() {\n    // TODO: Implement\n  };\n\n  contextPrototype.createPattern = function(image, repetition) {\n    return new CanvasPattern_(image, repetition);\n  };\n\n  // Gradient / Pattern Stubs\n  function CanvasGradient_(aType) {\n    this.type_ = aType;\n    this.x0_ = 0;\n    this.y0_ = 0;\n    this.r0_ = 0;\n    this.x1_ = 0;\n    this.y1_ = 0;\n    this.r1_ = 0;\n    this.colors_ = [];\n  }\n\n  CanvasGradient_.prototype.addColorStop = function(aOffset, aColor) {\n    aColor = processStyle(aColor);\n    this.colors_.push({offset: aOffset,\n                       color: aColor.color,\n                       alpha: aColor.alpha});\n  };\n\n  function CanvasPattern_(image, repetition) {\n    assertImageIsValid(image);\n    switch (repetition) {\n      case 'repeat':\n      case null:\n      case '':\n        this.repetition_ = 'repeat';\n        break\n      case 'repeat-x':\n      case 'repeat-y':\n      case 'no-repeat':\n        this.repetition_ = repetition;\n        break;\n      default:\n        throwException('SYNTAX_ERR');\n    }\n\n    this.src_ = image.src;\n    this.width_ = image.width;\n    this.height_ = image.height;\n  }\n\n  function throwException(s) {\n    throw new DOMException_(s);\n  }\n\n  function assertImageIsValid(img) {\n    if (!img || img.nodeType != 1 || img.tagName != 'IMG') {\n      throwException('TYPE_MISMATCH_ERR');\n    }\n    if (img.readyState != 'complete') {\n      throwException('INVALID_STATE_ERR');\n    }\n  }\n\n  function DOMException_(s) {\n    this.code = this[s];\n    this.message = s +': DOM Exception ' + this.code;\n  }\n  var p = DOMException_.prototype = new Error;\n  p.INDEX_SIZE_ERR = 1;\n  p.DOMSTRING_SIZE_ERR = 2;\n  p.HIERARCHY_REQUEST_ERR = 3;\n  p.WRONG_DOCUMENT_ERR = 4;\n  p.INVALID_CHARACTER_ERR = 5;\n  p.NO_DATA_ALLOWED_ERR = 6;\n  p.NO_MODIFICATION_ALLOWED_ERR = 7;\n  p.NOT_FOUND_ERR = 8;\n  p.NOT_SUPPORTED_ERR = 9;\n  p.INUSE_ATTRIBUTE_ERR = 10;\n  p.INVALID_STATE_ERR = 11;\n  p.SYNTAX_ERR = 12;\n  p.INVALID_MODIFICATION_ERR = 13;\n  p.NAMESPACE_ERR = 14;\n  p.INVALID_ACCESS_ERR = 15;\n  p.VALIDATION_ERR = 16;\n  p.TYPE_MISMATCH_ERR = 17;\n\n  // set up externs\n  G_vmlCanvasManager = G_vmlCanvasManager_;\n  CanvasRenderingContext2D = CanvasRenderingContext2D_;\n  CanvasGradient = CanvasGradient_;\n  CanvasPattern = CanvasPattern_;\n  DOMException = DOMException_;\n})();\n\n} // if\n"
  },
  {
    "path": "style/lib/flot/jquery.colorhelpers.js",
    "content": "/* Plugin for jQuery for working with colors.\n * \n * Version 1.1.\n * \n * Inspiration from jQuery color animation plugin by John Resig.\n *\n * Released under the MIT license by Ole Laursen, October 2009.\n *\n * Examples:\n *\n *   $.color.parse(\"#fff\").scale('rgb', 0.25).add('a', -0.5).toString()\n *   var c = $.color.extract($(\"#mydiv\"), 'background-color');\n *   console.log(c.r, c.g, c.b, c.a);\n *   $.color.make(100, 50, 25, 0.4).toString() // returns \"rgba(100,50,25,0.4)\"\n *\n * Note that .scale() and .add() return the same modified object\n * instead of making a new one.\n *\n * V. 1.1: Fix error handling so e.g. parsing an empty string does\n * produce a color rather than just crashing.\n */ \n\n(function($) {\n    $.color = {};\n\n    // construct color object with some convenient chainable helpers\n    $.color.make = function (r, g, b, a) {\n        var o = {};\n        o.r = r || 0;\n        o.g = g || 0;\n        o.b = b || 0;\n        o.a = a != null ? a : 1;\n\n        o.add = function (c, d) {\n            for (var i = 0; i < c.length; ++i)\n                o[c.charAt(i)] += d;\n            return o.normalize();\n        };\n        \n        o.scale = function (c, f) {\n            for (var i = 0; i < c.length; ++i)\n                o[c.charAt(i)] *= f;\n            return o.normalize();\n        };\n        \n        o.toString = function () {\n            if (o.a >= 1.0) {\n                return \"rgb(\"+[o.r, o.g, o.b].join(\",\")+\")\";\n            } else {\n                return \"rgba(\"+[o.r, o.g, o.b, o.a].join(\",\")+\")\";\n            }\n        };\n\n        o.normalize = function () {\n            function clamp(min, value, max) {\n                return value < min ? min: (value > max ? max: value);\n            }\n            \n            o.r = clamp(0, parseInt(o.r), 255);\n            o.g = clamp(0, parseInt(o.g), 255);\n            o.b = clamp(0, parseInt(o.b), 255);\n            o.a = clamp(0, o.a, 1);\n            return o;\n        };\n\n        o.clone = function () {\n            return $.color.make(o.r, o.b, o.g, o.a);\n        };\n\n        return o.normalize();\n    }\n\n    // extract CSS color property from element, going up in the DOM\n    // if it's \"transparent\"\n    $.color.extract = function (elem, css) {\n        var c;\n        do {\n            c = elem.css(css).toLowerCase();\n            // keep going until we find an element that has color, or\n            // we hit the body\n            if (c != '' && c != 'transparent')\n                break;\n            elem = elem.parent();\n        } while (!$.nodeName(elem.get(0), \"body\"));\n\n        // catch Safari's way of signalling transparent\n        if (c == \"rgba(0, 0, 0, 0)\")\n            c = \"transparent\";\n        \n        return $.color.parse(c);\n    }\n    \n    // parse CSS color string (like \"rgb(10, 32, 43)\" or \"#fff\"),\n    // returns color object, if parsing failed, you get black (0, 0,\n    // 0) out\n    $.color.parse = function (str) {\n        var res, m = $.color.make;\n\n        // Look for rgb(num,num,num)\n        if (res = /rgb\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.exec(str))\n            return m(parseInt(res[1], 10), parseInt(res[2], 10), parseInt(res[3], 10));\n        \n        // Look for rgba(num,num,num,num)\n        if (res = /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(str))\n            return m(parseInt(res[1], 10), parseInt(res[2], 10), parseInt(res[3], 10), parseFloat(res[4]));\n            \n        // Look for rgb(num%,num%,num%)\n        if (res = /rgb\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.exec(str))\n            return m(parseFloat(res[1])*2.55, parseFloat(res[2])*2.55, parseFloat(res[3])*2.55);\n\n        // Look for rgba(num%,num%,num%,num)\n        if (res = /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(str))\n            return m(parseFloat(res[1])*2.55, parseFloat(res[2])*2.55, parseFloat(res[3])*2.55, parseFloat(res[4]));\n        \n        // Look for #a0b1c2\n        if (res = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(str))\n            return m(parseInt(res[1], 16), parseInt(res[2], 16), parseInt(res[3], 16));\n\n        // Look for #fff\n        if (res = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(str))\n            return m(parseInt(res[1]+res[1], 16), parseInt(res[2]+res[2], 16), parseInt(res[3]+res[3], 16));\n\n        // Otherwise, we're most likely dealing with a named color\n        var name = $.trim(str).toLowerCase();\n        if (name == \"transparent\")\n            return m(255, 255, 255, 0);\n        else {\n            // default to black\n            res = lookupColors[name] || [0, 0, 0];\n            return m(res[0], res[1], res[2]);\n        }\n    }\n    \n    var lookupColors = {\n        aqua:[0,255,255],\n        azure:[240,255,255],\n        beige:[245,245,220],\n        black:[0,0,0],\n        blue:[0,0,255],\n        brown:[165,42,42],\n        cyan:[0,255,255],\n        darkblue:[0,0,139],\n        darkcyan:[0,139,139],\n        darkgrey:[169,169,169],\n        darkgreen:[0,100,0],\n        darkkhaki:[189,183,107],\n        darkmagenta:[139,0,139],\n        darkolivegreen:[85,107,47],\n        darkorange:[255,140,0],\n        darkorchid:[153,50,204],\n        darkred:[139,0,0],\n        darksalmon:[233,150,122],\n        darkviolet:[148,0,211],\n        fuchsia:[255,0,255],\n        gold:[255,215,0],\n        green:[0,128,0],\n        indigo:[75,0,130],\n        khaki:[240,230,140],\n        lightblue:[173,216,230],\n        lightcyan:[224,255,255],\n        lightgreen:[144,238,144],\n        lightgrey:[211,211,211],\n        lightpink:[255,182,193],\n        lightyellow:[255,255,224],\n        lime:[0,255,0],\n        magenta:[255,0,255],\n        maroon:[128,0,0],\n        navy:[0,0,128],\n        olive:[128,128,0],\n        orange:[255,165,0],\n        pink:[255,192,203],\n        purple:[128,0,128],\n        violet:[128,0,128],\n        red:[255,0,0],\n        silver:[192,192,192],\n        white:[255,255,255],\n        yellow:[255,255,0]\n    };\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.crosshair.js",
    "content": "/*\nFlot plugin for showing crosshairs, thin lines, when the mouse hovers\nover the plot.\n\n  crosshair: {\n    mode: null or \"x\" or \"y\" or \"xy\"\n    color: color\n    lineWidth: number\n  }\n\nSet the mode to one of \"x\", \"y\" or \"xy\". The \"x\" mode enables a\nvertical crosshair that lets you trace the values on the x axis, \"y\"\nenables a horizontal crosshair and \"xy\" enables them both. \"color\" is\nthe color of the crosshair (default is \"rgba(170, 0, 0, 0.80)\"),\n\"lineWidth\" is the width of the drawn lines (default is 1).\n\nThe plugin also adds four public methods:\n\n  - setCrosshair(pos)\n\n    Set the position of the crosshair. Note that this is cleared if\n    the user moves the mouse. \"pos\" is in coordinates of the plot and\n    should be on the form { x: xpos, y: ypos } (you can use x2/x3/...\n    if you're using multiple axes), which is coincidentally the same\n    format as what you get from a \"plothover\" event. If \"pos\" is null,\n    the crosshair is cleared.\n\n  - clearCrosshair()\n\n    Clear the crosshair.\n\n  - lockCrosshair(pos)\n\n    Cause the crosshair to lock to the current location, no longer\n    updating if the user moves the mouse. Optionally supply a position\n    (passed on to setCrosshair()) to move it to.\n\n    Example usage:\n      var myFlot = $.plot( $(\"#graph\"), ..., { crosshair: { mode: \"x\" } } };\n      $(\"#graph\").bind(\"plothover\", function (evt, position, item) {\n        if (item) {\n          // Lock the crosshair to the data point being hovered\n          myFlot.lockCrosshair({ x: item.datapoint[0], y: item.datapoint[1] });\n        }\n        else {\n          // Return normal crosshair operation\n          myFlot.unlockCrosshair();\n        }\n      });\n\n  - unlockCrosshair()\n\n    Free the crosshair to move again after locking it.\n*/\n\n(function ($) {\n    var options = {\n        crosshair: {\n            mode: null, // one of null, \"x\", \"y\" or \"xy\",\n            color: \"rgba(170, 0, 0, 0.80)\",\n            lineWidth: 1\n        }\n    };\n    \n    function init(plot) {\n        // position of crosshair in pixels\n        var crosshair = { x: -1, y: -1, locked: false };\n\n        plot.setCrosshair = function setCrosshair(pos) {\n            if (!pos)\n                crosshair.x = -1;\n            else {\n                var o = plot.p2c(pos);\n                crosshair.x = Math.max(0, Math.min(o.left, plot.width()));\n                crosshair.y = Math.max(0, Math.min(o.top, plot.height()));\n            }\n            \n            plot.triggerRedrawOverlay();\n        };\n        \n        plot.clearCrosshair = plot.setCrosshair; // passes null for pos\n        \n        plot.lockCrosshair = function lockCrosshair(pos) {\n            if (pos)\n                plot.setCrosshair(pos);\n            crosshair.locked = true;\n        }\n\n        plot.unlockCrosshair = function unlockCrosshair() {\n            crosshair.locked = false;\n        }\n\n        function onMouseOut(e) {\n            if (crosshair.locked)\n                return;\n\n            if (crosshair.x != -1) {\n                crosshair.x = -1;\n                plot.triggerRedrawOverlay();\n            }\n        }\n\n        function onMouseMove(e) {\n            if (crosshair.locked)\n                return;\n                \n            if (plot.getSelection && plot.getSelection()) {\n                crosshair.x = -1; // hide the crosshair while selecting\n                return;\n            }\n                \n            var offset = plot.offset();\n            crosshair.x = Math.max(0, Math.min(e.pageX - offset.left, plot.width()));\n            crosshair.y = Math.max(0, Math.min(e.pageY - offset.top, plot.height()));\n            plot.triggerRedrawOverlay();\n        }\n        \n        plot.hooks.bindEvents.push(function (plot, eventHolder) {\n            if (!plot.getOptions().crosshair.mode)\n                return;\n\n            eventHolder.mouseout(onMouseOut);\n            eventHolder.mousemove(onMouseMove);\n        });\n\n        plot.hooks.drawOverlay.push(function (plot, ctx) {\n            var c = plot.getOptions().crosshair;\n            if (!c.mode)\n                return;\n\n            var plotOffset = plot.getPlotOffset();\n            \n            ctx.save();\n            ctx.translate(plotOffset.left, plotOffset.top);\n\n            if (crosshair.x != -1) {\n                ctx.strokeStyle = c.color;\n                ctx.lineWidth = c.lineWidth;\n                ctx.lineJoin = \"round\";\n\n                ctx.beginPath();\n                if (c.mode.indexOf(\"x\") != -1) {\n                    ctx.moveTo(crosshair.x, 0);\n                    ctx.lineTo(crosshair.x, plot.height());\n                }\n                if (c.mode.indexOf(\"y\") != -1) {\n                    ctx.moveTo(0, crosshair.y);\n                    ctx.lineTo(plot.width(), crosshair.y);\n                }\n                ctx.stroke();\n            }\n            ctx.restore();\n        });\n\n        plot.hooks.shutdown.push(function (plot, eventHolder) {\n            eventHolder.unbind(\"mouseout\", onMouseOut);\n            eventHolder.unbind(\"mousemove\", onMouseMove);\n        });\n    }\n    \n    $.plot.plugins.push({\n        init: init,\n        options: options,\n        name: 'crosshair',\n        version: '1.0'\n    });\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.fillbetween.js",
    "content": "/*\nFlot plugin for computing bottoms for filled line and bar charts.\n\nThe case: you've got two series that you want to fill the area\nbetween. In Flot terms, you need to use one as the fill bottom of the\nother. You can specify the bottom of each data point as the third\ncoordinate manually, or you can use this plugin to compute it for you.\n\nIn order to name the other series, you need to give it an id, like this\n\n  var dataset = [\n       { data: [ ... ], id: \"foo\" } ,         // use default bottom\n       { data: [ ... ], fillBetween: \"foo\" }, // use first dataset as bottom\n       ];\n\n  $.plot($(\"#placeholder\"), dataset, { line: { show: true, fill: true }});\n\nAs a convenience, if the id given is a number that doesn't appear as\nan id in the series, it is interpreted as the index in the array\ninstead (so fillBetween: 0 can also mean the first series).\n  \nInternally, the plugin modifies the datapoints in each series. For\nline series, extra data points might be inserted through\ninterpolation. Note that at points where the bottom line is not\ndefined (due to a null point or start/end of line), the current line\nwill show a gap too. The algorithm comes from the jquery.flot.stack.js\nplugin, possibly some code could be shared.\n*/\n\n(function ($) {\n    var options = {\n        series: { fillBetween: null } // or number\n    };\n    \n    function init(plot) {\n        function findBottomSeries(s, allseries) {\n            var i;\n            for (i = 0; i < allseries.length; ++i) {\n                if (allseries[i].id == s.fillBetween)\n                    return allseries[i];\n            }\n\n            if (typeof s.fillBetween == \"number\") {\n                i = s.fillBetween;\n            \n                if (i < 0 || i >= allseries.length)\n                    return null;\n\n                return allseries[i];\n            }\n            \n            return null;\n        }\n        \n        function computeFillBottoms(plot, s, datapoints) {\n            if (s.fillBetween == null)\n                return;\n\n            var other = findBottomSeries(s, plot.getData());\n            if (!other)\n                return;\n\n            var ps = datapoints.pointsize,\n                points = datapoints.points,\n                otherps = other.datapoints.pointsize,\n                otherpoints = other.datapoints.points,\n                newpoints = [],\n                px, py, intery, qx, qy, bottom,\n                withlines = s.lines.show,\n                withbottom = ps > 2 && datapoints.format[2].y,\n                withsteps = withlines && s.lines.steps,\n                fromgap = true,\n                i = 0, j = 0, l;\n\n            while (true) {\n                if (i >= points.length)\n                    break;\n\n                l = newpoints.length;\n\n                if (points[i] == null) {\n                    // copy gaps\n                    for (m = 0; m < ps; ++m)\n                        newpoints.push(points[i + m]);\n                    i += ps;\n                }\n                else if (j >= otherpoints.length) {\n                    // for lines, we can't use the rest of the points\n                    if (!withlines) {\n                        for (m = 0; m < ps; ++m)\n                            newpoints.push(points[i + m]);\n                    }\n                    i += ps;\n                }\n                else if (otherpoints[j] == null) {\n                    // oops, got a gap\n                    for (m = 0; m < ps; ++m)\n                        newpoints.push(null);\n                    fromgap = true;\n                    j += otherps;\n                }\n                else {\n                    // cases where we actually got two points\n                    px = points[i];\n                    py = points[i + 1];\n                    qx = otherpoints[j];\n                    qy = otherpoints[j + 1];\n                    bottom = 0;\n\n                    if (px == qx) {\n                        for (m = 0; m < ps; ++m)\n                            newpoints.push(points[i + m]);\n\n                        //newpoints[l + 1] += qy;\n                        bottom = qy;\n                        \n                        i += ps;\n                        j += otherps;\n                    }\n                    else if (px > qx) {\n                        // we got past point below, might need to\n                        // insert interpolated extra point\n                        if (withlines && i > 0 && points[i - ps] != null) {\n                            intery = py + (points[i - ps + 1] - py) * (qx - px) / (points[i - ps] - px);\n                            newpoints.push(qx);\n                            newpoints.push(intery)\n                            for (m = 2; m < ps; ++m)\n                                newpoints.push(points[i + m]);\n                            bottom = qy; \n                        }\n\n                        j += otherps;\n                    }\n                    else { // px < qx\n                        if (fromgap && withlines) {\n                            // if we come from a gap, we just skip this point\n                            i += ps;\n                            continue;\n                        }\n                            \n                        for (m = 0; m < ps; ++m)\n                            newpoints.push(points[i + m]);\n                        \n                        // we might be able to interpolate a point below,\n                        // this can give us a better y\n                        if (withlines && j > 0 && otherpoints[j - otherps] != null)\n                            bottom = qy + (otherpoints[j - otherps + 1] - qy) * (px - qx) / (otherpoints[j - otherps] - qx);\n\n                        //newpoints[l + 1] += bottom;\n                        \n                        i += ps;\n                    }\n\n                    fromgap = false;\n                    \n                    if (l != newpoints.length && withbottom)\n                        newpoints[l + 2] = bottom;\n                }\n\n                // maintain the line steps invariant\n                if (withsteps && l != newpoints.length && l > 0\n                    && newpoints[l] != null\n                    && newpoints[l] != newpoints[l - ps]\n                    && newpoints[l + 1] != newpoints[l - ps + 1]) {\n                    for (m = 0; m < ps; ++m)\n                        newpoints[l + ps + m] = newpoints[l + m];\n                    newpoints[l + 1] = newpoints[l - ps + 1];\n                }\n            }\n\n            datapoints.points = newpoints;\n        }\n        \n        plot.hooks.processDatapoints.push(computeFillBottoms);\n    }\n    \n    $.plot.plugins.push({\n        init: init,\n        options: options,\n        name: 'fillbetween',\n        version: '1.0'\n    });\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.image.js",
    "content": "/*\nFlot plugin for plotting images, e.g. useful for putting ticks on a\nprerendered complex visualization.\n\nThe data syntax is [[image, x1, y1, x2, y2], ...] where (x1, y1) and\n(x2, y2) are where you intend the two opposite corners of the image to\nend up in the plot. Image must be a fully loaded Javascript image (you\ncan make one with new Image()). If the image is not complete, it's\nskipped when plotting.\n\nThere are two helpers included for retrieving images. The easiest work\nthe way that you put in URLs instead of images in the data (like\n[\"myimage.png\", 0, 0, 10, 10]), then call $.plot.image.loadData(data,\noptions, callback) where data and options are the same as you pass in\nto $.plot. This loads the images, replaces the URLs in the data with\nthe corresponding images and calls \"callback\" when all images are\nloaded (or failed loading). In the callback, you can then call $.plot\nwith the data set. See the included example.\n\nA more low-level helper, $.plot.image.load(urls, callback) is also\nincluded. Given a list of URLs, it calls callback with an object\nmapping from URL to Image object when all images are loaded or have\nfailed loading.\n\nOptions for the plugin are\n\n  series: {\n      images: {\n          show: boolean\n          anchor: \"corner\" or \"center\"\n          alpha: [0,1]\n      }\n  }\n\nwhich can be specified for a specific series\n\n  $.plot($(\"#placeholder\"), [{ data: [ ... ], images: { ... } ])\n\nNote that because the data format is different from usual data points,\nyou can't use images with anything else in a specific data series.\n\nSetting \"anchor\" to \"center\" causes the pixels in the image to be\nanchored at the corner pixel centers inside of at the pixel corners,\neffectively letting half a pixel stick out to each side in the plot.\n\n\nA possible future direction could be support for tiling for large\nimages (like Google Maps).\n\n*/\n\n(function ($) {\n    var options = {\n        series: {\n            images: {\n                show: false,\n                alpha: 1,\n                anchor: \"corner\" // or \"center\"\n            }\n        }\n    };\n\n    $.plot.image = {};\n\n    $.plot.image.loadDataImages = function (series, options, callback) {\n        var urls = [], points = [];\n\n        var defaultShow = options.series.images.show;\n        \n        $.each(series, function (i, s) {\n            if (!(defaultShow || s.images.show))\n                return;\n            \n            if (s.data)\n                s = s.data;\n\n            $.each(s, function (i, p) {\n                if (typeof p[0] == \"string\") {\n                    urls.push(p[0]);\n                    points.push(p);\n                }\n            });\n        });\n\n        $.plot.image.load(urls, function (loadedImages) {\n            $.each(points, function (i, p) {\n                var url = p[0];\n                if (loadedImages[url])\n                    p[0] = loadedImages[url];\n            });\n\n            callback();\n        });\n    }\n    \n    $.plot.image.load = function (urls, callback) {\n        var missing = urls.length, loaded = {};\n        if (missing == 0)\n            callback({});\n\n        $.each(urls, function (i, url) {\n            var handler = function () {\n                --missing;\n                \n                loaded[url] = this;\n                \n                if (missing == 0)\n                    callback(loaded);\n            };\n\n            $('<img />').load(handler).error(handler).attr('src', url);\n        });\n    }\n    \n    function drawSeries(plot, ctx, series) {\n        var plotOffset = plot.getPlotOffset();\n        \n        if (!series.images || !series.images.show)\n            return;\n        \n        var points = series.datapoints.points,\n            ps = series.datapoints.pointsize;\n        \n        for (var i = 0; i < points.length; i += ps) {\n            var img = points[i],\n                x1 = points[i + 1], y1 = points[i + 2],\n                x2 = points[i + 3], y2 = points[i + 4],\n                xaxis = series.xaxis, yaxis = series.yaxis,\n                tmp;\n\n            // actually we should check img.complete, but it\n            // appears to be a somewhat unreliable indicator in\n            // IE6 (false even after load event)\n            if (!img || img.width <= 0 || img.height <= 0)\n                continue;\n\n            if (x1 > x2) {\n                tmp = x2;\n                x2 = x1;\n                x1 = tmp;\n            }\n            if (y1 > y2) {\n                tmp = y2;\n                y2 = y1;\n                y1 = tmp;\n            }\n            \n            // if the anchor is at the center of the pixel, expand the \n            // image by 1/2 pixel in each direction\n            if (series.images.anchor == \"center\") {\n                tmp = 0.5 * (x2-x1) / (img.width - 1);\n                x1 -= tmp;\n                x2 += tmp;\n                tmp = 0.5 * (y2-y1) / (img.height - 1);\n                y1 -= tmp;\n                y2 += tmp;\n            }\n            \n            // clip\n            if (x1 == x2 || y1 == y2 ||\n                x1 >= xaxis.max || x2 <= xaxis.min ||\n                y1 >= yaxis.max || y2 <= yaxis.min)\n                continue;\n\n            var sx1 = 0, sy1 = 0, sx2 = img.width, sy2 = img.height;\n            if (x1 < xaxis.min) {\n                sx1 += (sx2 - sx1) * (xaxis.min - x1) / (x2 - x1);\n                x1 = xaxis.min;\n            }\n\n            if (x2 > xaxis.max) {\n                sx2 += (sx2 - sx1) * (xaxis.max - x2) / (x2 - x1);\n                x2 = xaxis.max;\n            }\n\n            if (y1 < yaxis.min) {\n                sy2 += (sy1 - sy2) * (yaxis.min - y1) / (y2 - y1);\n                y1 = yaxis.min;\n            }\n\n            if (y2 > yaxis.max) {\n                sy1 += (sy1 - sy2) * (yaxis.max - y2) / (y2 - y1);\n                y2 = yaxis.max;\n            }\n            \n            x1 = xaxis.p2c(x1);\n            x2 = xaxis.p2c(x2);\n            y1 = yaxis.p2c(y1);\n            y2 = yaxis.p2c(y2);\n            \n            // the transformation may have swapped us\n            if (x1 > x2) {\n                tmp = x2;\n                x2 = x1;\n                x1 = tmp;\n            }\n            if (y1 > y2) {\n                tmp = y2;\n                y2 = y1;\n                y1 = tmp;\n            }\n\n            tmp = ctx.globalAlpha;\n            ctx.globalAlpha *= series.images.alpha;\n            ctx.drawImage(img,\n                          sx1, sy1, sx2 - sx1, sy2 - sy1,\n                          x1 + plotOffset.left, y1 + plotOffset.top,\n                          x2 - x1, y2 - y1);\n            ctx.globalAlpha = tmp;\n        }\n    }\n\n    function processRawData(plot, series, data, datapoints) {\n        if (!series.images.show)\n            return;\n\n        // format is Image, x1, y1, x2, y2 (opposite corners)\n        datapoints.format = [\n            { required: true },\n            { x: true, number: true, required: true },\n            { y: true, number: true, required: true },\n            { x: true, number: true, required: true },\n            { y: true, number: true, required: true }\n        ];\n    }\n    \n    function init(plot) {\n        plot.hooks.processRawData.push(processRawData);\n        plot.hooks.drawSeries.push(drawSeries);\n    }\n    \n    $.plot.plugins.push({\n        init: init,\n        options: options,\n        name: 'image',\n        version: '1.1'\n    });\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.js",
    "content": "/*! Javascript plotting library for jQuery, v. 0.7.\n *\n * Released under the MIT license by IOLA, December 2007.\n *\n */\n\n// first an inline dependency, jquery.colorhelpers.js, we inline it here\n// for convenience\n\n/* Plugin for jQuery for working with colors.\n * \n * Version 1.1.\n * \n * Inspiration from jQuery color animation plugin by John Resig.\n *\n * Released under the MIT license by Ole Laursen, October 2009.\n *\n * Examples:\n *\n *   $.color.parse(\"#fff\").scale('rgb', 0.25).add('a', -0.5).toString()\n *   var c = $.color.extract($(\"#mydiv\"), 'background-color');\n *   console.log(c.r, c.g, c.b, c.a);\n *   $.color.make(100, 50, 25, 0.4).toString() // returns \"rgba(100,50,25,0.4)\"\n *\n * Note that .scale() and .add() return the same modified object\n * instead of making a new one.\n *\n * V. 1.1: Fix error handling so e.g. parsing an empty string does\n * produce a color rather than just crashing.\n */ \n(function(B){B.color={};B.color.make=function(F,E,C,D){var G={};G.r=F||0;G.g=E||0;G.b=C||0;G.a=D!=null?D:1;G.add=function(J,I){for(var H=0;H<J.length;++H){G[J.charAt(H)]+=I}return G.normalize()};G.scale=function(J,I){for(var H=0;H<J.length;++H){G[J.charAt(H)]*=I}return G.normalize()};G.toString=function(){if(G.a>=1){return\"rgb(\"+[G.r,G.g,G.b].join(\",\")+\")\"}else{return\"rgba(\"+[G.r,G.g,G.b,G.a].join(\",\")+\")\"}};G.normalize=function(){function H(J,K,I){return K<J?J:(K>I?I:K)}G.r=H(0,parseInt(G.r),255);G.g=H(0,parseInt(G.g),255);G.b=H(0,parseInt(G.b),255);G.a=H(0,G.a,1);return G};G.clone=function(){return B.color.make(G.r,G.b,G.g,G.a)};return G.normalize()};B.color.extract=function(D,C){var E;do{E=D.css(C).toLowerCase();if(E!=\"\"&&E!=\"transparent\"){break}D=D.parent()}while(!B.nodeName(D.get(0),\"body\"));if(E==\"rgba(0, 0, 0, 0)\"){E=\"transparent\"}return B.color.parse(E)};B.color.parse=function(F){var E,C=B.color.make;if(E=/rgb\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.exec(F)){return C(parseInt(E[1],10),parseInt(E[2],10),parseInt(E[3],10))}if(E=/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(F)){return C(parseInt(E[1],10),parseInt(E[2],10),parseInt(E[3],10),parseFloat(E[4]))}if(E=/rgb\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.exec(F)){return C(parseFloat(E[1])*2.55,parseFloat(E[2])*2.55,parseFloat(E[3])*2.55)}if(E=/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(F)){return C(parseFloat(E[1])*2.55,parseFloat(E[2])*2.55,parseFloat(E[3])*2.55,parseFloat(E[4]))}if(E=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(F)){return C(parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16))}if(E=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(F)){return C(parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16))}var D=B.trim(F).toLowerCase();if(D==\"transparent\"){return C(255,255,255,0)}else{E=A[D]||[0,0,0];return C(E[0],E[1],E[2])}};var A={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]}})(jQuery);\n\n// the actual Flot code\n(function($) {\n    function Plot(placeholder, data_, options_, plugins) {\n        // data is on the form:\n        //   [ series1, series2 ... ]\n        // where series is either just the data as [ [x1, y1], [x2, y2], ... ]\n        // or { data: [ [x1, y1], [x2, y2], ... ], label: \"some label\", ... }\n        \n        var series = [],\n            options = {\n                // the color theme used for graphs\n                colors: [\"#edc240\", \"#afd8f8\", \"#cb4b4b\", \"#4da74d\", \"#9440ed\"],\n                legend: {\n                    show: true,\n                    noColumns: 1, // number of colums in legend table\n                    labelFormatter: null, // fn: string -> string\n                    labelBoxBorderColor: \"#ccc\", // border color for the little label boxes\n                    container: null, // container (as jQuery object) to put legend in, null means default on top of graph\n                    position: \"ne\", // position of default legend container within plot\n                    margin: 5, // distance from grid edge to default legend container within plot\n                    backgroundColor: null, // null means auto-detect\n                    backgroundOpacity: 0.85 // set to 0 to avoid background\n                },\n                xaxis: {\n                    show: null, // null = auto-detect, true = always, false = never\n                    position: \"bottom\", // or \"top\"\n                    mode: null, // null or \"time\"\n                    color: null, // base color, labels, ticks\n                    tickColor: null, // possibly different color of ticks, e.g. \"rgba(0,0,0,0.15)\"\n                    transform: null, // null or f: number -> number to transform axis\n                    inverseTransform: null, // if transform is set, this should be the inverse function\n                    min: null, // min. value to show, null means set automatically\n                    max: null, // max. value to show, null means set automatically\n                    autoscaleMargin: null, // margin in % to add if auto-setting min/max\n                    ticks: null, // either [1, 3] or [[1, \"a\"], 3] or (fn: axis info -> ticks) or app. number of ticks for auto-ticks\n                    tickFormatter: null, // fn: number -> string\n                    labelWidth: null, // size of tick labels in pixels\n                    labelHeight: null,\n                    reserveSpace: null, // whether to reserve space even if axis isn't shown\n                    tickLength: null, // size in pixels of ticks, or \"full\" for whole line\n                    alignTicksWithAxis: null, // axis number or null for no sync\n                    \n                    // mode specific options\n                    tickDecimals: null, // no. of decimals, null means auto\n                    tickSize: null, // number or [number, \"unit\"]\n                    minTickSize: null, // number or [number, \"unit\"]\n                    monthNames: null, // list of names of months\n                    timeformat: null, // format string to use\n                    twelveHourClock: false // 12 or 24 time in time mode\n                },\n                yaxis: {\n                    autoscaleMargin: 0.02,\n                    position: \"left\" // or \"right\"\n                },\n                xaxes: [],\n                yaxes: [],\n                series: {\n                    points: {\n                        show: false,\n                        radius: 3,\n                        lineWidth: 2, // in pixels\n                        fill: true,\n                        fillColor: \"#ffffff\",\n                        symbol: \"circle\" // or callback\n                    },\n                    lines: {\n                        // we don't put in show: false so we can see\n                        // whether lines were actively disabled \n                        lineWidth: 2, // in pixels\n                        fill: false,\n                        fillColor: null,\n                        steps: false\n                    },\n                    bars: {\n                        show: false,\n                        lineWidth: 2, // in pixels\n                        barWidth: 1, // in units of the x axis\n                        fill: true,\n                        fillColor: null,\n                        align: \"left\", // or \"center\" \n                        horizontal: false\n                    },\n                    shadowSize: 3\n                },\n                grid: {\n                    show: true,\n                    aboveData: false,\n                    color: \"#545454\", // primary color used for outline and labels\n                    backgroundColor: null, // null for transparent, else color\n                    borderColor: null, // set if different from the grid color\n                    tickColor: null, // color for the ticks, e.g. \"rgba(0,0,0,0.15)\"\n                    labelMargin: 5, // in pixels\n                    axisMargin: 8, // in pixels\n                    borderWidth: 2, // in pixels\n                    minBorderMargin: null, // in pixels, null means taken from points radius\n                    markings: null, // array of ranges or fn: axes -> array of ranges\n                    markingsColor: \"#f4f4f4\",\n                    markingsLineWidth: 2,\n                    // interactive stuff\n                    clickable: false,\n                    hoverable: false,\n                    autoHighlight: true, // highlight in case mouse is near\n                    mouseActiveRadius: 10 // how far the mouse can be away to activate an item\n                },\n                hooks: {}\n            },\n        canvas = null,      // the canvas for the plot itself\n        overlay = null,     // canvas for interactive stuff on top of plot\n        eventHolder = null, // jQuery object that events should be bound to\n        ctx = null, octx = null,\n        xaxes = [], yaxes = [],\n        plotOffset = { left: 0, right: 0, top: 0, bottom: 0},\n        canvasWidth = 0, canvasHeight = 0,\n        plotWidth = 0, plotHeight = 0,\n        hooks = {\n            processOptions: [],\n            processRawData: [],\n            processDatapoints: [],\n            drawSeries: [],\n            draw: [],\n            bindEvents: [],\n            drawOverlay: [],\n            shutdown: []\n        },\n        plot = this;\n\n        // public functions\n        plot.setData = setData;\n        plot.setupGrid = setupGrid;\n        plot.draw = draw;\n        plot.getPlaceholder = function() { return placeholder; };\n        plot.getCanvas = function() { return canvas; };\n        plot.getPlotOffset = function() { return plotOffset; };\n        plot.width = function () { return plotWidth; };\n        plot.height = function () { return plotHeight; };\n        plot.offset = function () {\n            var o = eventHolder.offset();\n            o.left += plotOffset.left;\n            o.top += plotOffset.top;\n            return o;\n        };\n        plot.getData = function () { return series; };\n        plot.getAxes = function () {\n            var res = {}, i;\n            $.each(xaxes.concat(yaxes), function (_, axis) {\n                if (axis)\n                    res[axis.direction + (axis.n != 1 ? axis.n : \"\") + \"axis\"] = axis;\n            });\n            return res;\n        };\n        plot.getXAxes = function () { return xaxes; };\n        plot.getYAxes = function () { return yaxes; };\n        plot.c2p = canvasToAxisCoords;\n        plot.p2c = axisToCanvasCoords;\n        plot.getOptions = function () { return options; };\n        plot.highlight = highlight;\n        plot.unhighlight = unhighlight;\n        plot.triggerRedrawOverlay = triggerRedrawOverlay;\n        plot.pointOffset = function(point) {\n            return {\n                left: parseInt(xaxes[axisNumber(point, \"x\") - 1].p2c(+point.x) + plotOffset.left),\n                top: parseInt(yaxes[axisNumber(point, \"y\") - 1].p2c(+point.y) + plotOffset.top)\n            };\n        };\n        plot.shutdown = shutdown;\n        plot.resize = function () {\n            getCanvasDimensions();\n            resizeCanvas(canvas);\n            resizeCanvas(overlay);\n        };\n\n        // public attributes\n        plot.hooks = hooks;\n        \n        // initialize\n        initPlugins(plot);\n        parseOptions(options_);\n        setupCanvases();\n        setData(data_);\n        setupGrid();\n        draw();\n        bindEvents();\n\n\n        function executeHooks(hook, args) {\n            args = [plot].concat(args);\n            for (var i = 0; i < hook.length; ++i)\n                hook[i].apply(this, args);\n        }\n\n        function initPlugins() {\n            for (var i = 0; i < plugins.length; ++i) {\n                var p = plugins[i];\n                p.init(plot);\n                if (p.options)\n                    $.extend(true, options, p.options);\n            }\n        }\n        \n        function parseOptions(opts) {\n            var i;\n            \n            $.extend(true, options, opts);\n            \n            if (options.xaxis.color == null)\n                options.xaxis.color = options.grid.color;\n            if (options.yaxis.color == null)\n                options.yaxis.color = options.grid.color;\n            \n            if (options.xaxis.tickColor == null) // backwards-compatibility\n                options.xaxis.tickColor = options.grid.tickColor;\n            if (options.yaxis.tickColor == null) // backwards-compatibility\n                options.yaxis.tickColor = options.grid.tickColor;\n\n            if (options.grid.borderColor == null)\n                options.grid.borderColor = options.grid.color;\n            if (options.grid.tickColor == null)\n                options.grid.tickColor = $.color.parse(options.grid.color).scale('a', 0.22).toString();\n            \n            // fill in defaults in axes, copy at least always the\n            // first as the rest of the code assumes it'll be there\n            for (i = 0; i < Math.max(1, options.xaxes.length); ++i)\n                options.xaxes[i] = $.extend(true, {}, options.xaxis, options.xaxes[i]);\n            for (i = 0; i < Math.max(1, options.yaxes.length); ++i)\n                options.yaxes[i] = $.extend(true, {}, options.yaxis, options.yaxes[i]);\n\n            // backwards compatibility, to be removed in future\n            if (options.xaxis.noTicks && options.xaxis.ticks == null)\n                options.xaxis.ticks = options.xaxis.noTicks;\n            if (options.yaxis.noTicks && options.yaxis.ticks == null)\n                options.yaxis.ticks = options.yaxis.noTicks;\n            if (options.x2axis) {\n                options.xaxes[1] = $.extend(true, {}, options.xaxis, options.x2axis);\n                options.xaxes[1].position = \"top\";\n            }\n            if (options.y2axis) {\n                options.yaxes[1] = $.extend(true, {}, options.yaxis, options.y2axis);\n                options.yaxes[1].position = \"right\";\n            }\n            if (options.grid.coloredAreas)\n                options.grid.markings = options.grid.coloredAreas;\n            if (options.grid.coloredAreasColor)\n                options.grid.markingsColor = options.grid.coloredAreasColor;\n            if (options.lines)\n                $.extend(true, options.series.lines, options.lines);\n            if (options.points)\n                $.extend(true, options.series.points, options.points);\n            if (options.bars)\n                $.extend(true, options.series.bars, options.bars);\n            if (options.shadowSize != null)\n                options.series.shadowSize = options.shadowSize;\n\n            // save options on axes for future reference\n            for (i = 0; i < options.xaxes.length; ++i)\n                getOrCreateAxis(xaxes, i + 1).options = options.xaxes[i];\n            for (i = 0; i < options.yaxes.length; ++i)\n                getOrCreateAxis(yaxes, i + 1).options = options.yaxes[i];\n\n            // add hooks from options\n            for (var n in hooks)\n                if (options.hooks[n] && options.hooks[n].length)\n                    hooks[n] = hooks[n].concat(options.hooks[n]);\n\n            executeHooks(hooks.processOptions, [options]);\n        }\n\n        function setData(d) {\n            series = parseData(d);\n            fillInSeriesOptions();\n            processData();\n        }\n        \n        function parseData(d) {\n            var res = [];\n            for (var i = 0; i < d.length; ++i) {\n                var s = $.extend(true, {}, options.series);\n\n                if (d[i].data != null) {\n                    s.data = d[i].data; // move the data instead of deep-copy\n                    delete d[i].data;\n\n                    $.extend(true, s, d[i]);\n\n                    d[i].data = s.data;\n                }\n                else\n                    s.data = d[i];\n                res.push(s);\n            }\n\n            return res;\n        }\n        \n        function axisNumber(obj, coord) {\n            var a = obj[coord + \"axis\"];\n            if (typeof a == \"object\") // if we got a real axis, extract number\n                a = a.n;\n            if (typeof a != \"number\")\n                a = 1; // default to first axis\n            return a;\n        }\n\n        function allAxes() {\n            // return flat array without annoying null entries\n            return $.grep(xaxes.concat(yaxes), function (a) { return a; });\n        }\n        \n        function canvasToAxisCoords(pos) {\n            // return an object with x/y corresponding to all used axes \n            var res = {}, i, axis;\n            for (i = 0; i < xaxes.length; ++i) {\n                axis = xaxes[i];\n                if (axis && axis.used)\n                    res[\"x\" + axis.n] = axis.c2p(pos.left);\n            }\n\n            for (i = 0; i < yaxes.length; ++i) {\n                axis = yaxes[i];\n                if (axis && axis.used)\n                    res[\"y\" + axis.n] = axis.c2p(pos.top);\n            }\n            \n            if (res.x1 !== undefined)\n                res.x = res.x1;\n            if (res.y1 !== undefined)\n                res.y = res.y1;\n\n            return res;\n        }\n        \n        function axisToCanvasCoords(pos) {\n            // get canvas coords from the first pair of x/y found in pos\n            var res = {}, i, axis, key;\n\n            for (i = 0; i < xaxes.length; ++i) {\n                axis = xaxes[i];\n                if (axis && axis.used) {\n                    key = \"x\" + axis.n;\n                    if (pos[key] == null && axis.n == 1)\n                        key = \"x\";\n\n                    if (pos[key] != null) {\n                        res.left = axis.p2c(pos[key]);\n                        break;\n                    }\n                }\n            }\n            \n            for (i = 0; i < yaxes.length; ++i) {\n                axis = yaxes[i];\n                if (axis && axis.used) {\n                    key = \"y\" + axis.n;\n                    if (pos[key] == null && axis.n == 1)\n                        key = \"y\";\n\n                    if (pos[key] != null) {\n                        res.top = axis.p2c(pos[key]);\n                        break;\n                    }\n                }\n            }\n            \n            return res;\n        }\n        \n        function getOrCreateAxis(axes, number) {\n            if (!axes[number - 1])\n                axes[number - 1] = {\n                    n: number, // save the number for future reference\n                    direction: axes == xaxes ? \"x\" : \"y\",\n                    options: $.extend(true, {}, axes == xaxes ? options.xaxis : options.yaxis)\n                };\n                \n            return axes[number - 1];\n        }\n\n        function fillInSeriesOptions() {\n            var i;\n            \n            // collect what we already got of colors\n            var neededColors = series.length,\n                usedColors = [],\n                assignedColors = [];\n            for (i = 0; i < series.length; ++i) {\n                var sc = series[i].color;\n                if (sc != null) {\n                    --neededColors;\n                    if (typeof sc == \"number\")\n                        assignedColors.push(sc);\n                    else\n                        usedColors.push($.color.parse(series[i].color));\n                }\n            }\n            \n            // we might need to generate more colors if higher indices\n            // are assigned\n            for (i = 0; i < assignedColors.length; ++i) {\n                neededColors = Math.max(neededColors, assignedColors[i] + 1);\n            }\n\n            // produce colors as needed\n            var colors = [], variation = 0;\n            i = 0;\n            while (colors.length < neededColors) {\n                var c;\n                if (options.colors.length == i) // check degenerate case\n                    c = $.color.make(100, 100, 100);\n                else\n                    c = $.color.parse(options.colors[i]);\n\n                // vary color if needed\n                var sign = variation % 2 == 1 ? -1 : 1;\n                c.scale('rgb', 1 + sign * Math.ceil(variation / 2) * 0.2)\n\n                // FIXME: if we're getting to close to something else,\n                // we should probably skip this one\n                colors.push(c);\n                \n                ++i;\n                if (i >= options.colors.length) {\n                    i = 0;\n                    ++variation;\n                }\n            }\n\n            // fill in the options\n            var colori = 0, s;\n            for (i = 0; i < series.length; ++i) {\n                s = series[i];\n                \n                // assign colors\n                if (s.color == null) {\n                    s.color = colors[colori].toString();\n                    ++colori;\n                }\n                else if (typeof s.color == \"number\")\n                    s.color = colors[s.color].toString();\n\n                // turn on lines automatically in case nothing is set\n                if (s.lines.show == null) {\n                    var v, show = true;\n                    for (v in s)\n                        if (s[v] && s[v].show) {\n                            show = false;\n                            break;\n                        }\n                    if (show)\n                        s.lines.show = true;\n                }\n\n                // setup axes\n                s.xaxis = getOrCreateAxis(xaxes, axisNumber(s, \"x\"));\n                s.yaxis = getOrCreateAxis(yaxes, axisNumber(s, \"y\"));\n            }\n        }\n        \n        function processData() {\n            var topSentry = Number.POSITIVE_INFINITY,\n                bottomSentry = Number.NEGATIVE_INFINITY,\n                fakeInfinity = Number.MAX_VALUE,\n                i, j, k, m, length,\n                s, points, ps, x, y, axis, val, f, p;\n\n            function updateAxis(axis, min, max) {\n                if (min < axis.datamin && min != -fakeInfinity)\n                    axis.datamin = min;\n                if (max > axis.datamax && max != fakeInfinity)\n                    axis.datamax = max;\n            }\n\n            $.each(allAxes(), function (_, axis) {\n                // init axis\n                axis.datamin = topSentry;\n                axis.datamax = bottomSentry;\n                axis.used = false;\n            });\n            \n            for (i = 0; i < series.length; ++i) {\n                s = series[i];\n                s.datapoints = { points: [] };\n                \n                executeHooks(hooks.processRawData, [ s, s.data, s.datapoints ]);\n            }\n            \n            // first pass: clean and copy data\n            for (i = 0; i < series.length; ++i) {\n                s = series[i];\n\n                var data = s.data, format = s.datapoints.format;\n\n                if (!format) {\n                    format = [];\n                    // find out how to copy\n                    format.push({ x: true, number: true, required: true });\n                    format.push({ y: true, number: true, required: true });\n\n                    if (s.bars.show || (s.lines.show && s.lines.fill)) {\n                        format.push({ y: true, number: true, required: false, defaultValue: 0 });\n                        if (s.bars.horizontal) {\n                            delete format[format.length - 1].y;\n                            format[format.length - 1].x = true;\n                        }\n                    }\n                    \n                    s.datapoints.format = format;\n                }\n\n                if (s.datapoints.pointsize != null)\n                    continue; // already filled in\n\n                s.datapoints.pointsize = format.length;\n                \n                ps = s.datapoints.pointsize;\n                points = s.datapoints.points;\n\n                insertSteps = s.lines.show && s.lines.steps;\n                s.xaxis.used = s.yaxis.used = true;\n                \n                for (j = k = 0; j < data.length; ++j, k += ps) {\n                    p = data[j];\n\n                    var nullify = p == null;\n                    if (!nullify) {\n                        for (m = 0; m < ps; ++m) {\n                            val = p[m];\n                            f = format[m];\n\n                            if (f) {\n                                if (f.number && val != null) {\n                                    val = +val; // convert to number\n                                    if (isNaN(val))\n                                        val = null;\n                                    else if (val == Infinity)\n                                        val = fakeInfinity;\n                                    else if (val == -Infinity)\n                                        val = -fakeInfinity;\n                                }\n\n                                if (val == null) {\n                                    if (f.required)\n                                        nullify = true;\n                                    \n                                    if (f.defaultValue != null)\n                                        val = f.defaultValue;\n                                }\n                            }\n                            \n                            points[k + m] = val;\n                        }\n                    }\n                    \n                    if (nullify) {\n                        for (m = 0; m < ps; ++m) {\n                            val = points[k + m];\n                            if (val != null) {\n                                f = format[m];\n                                // extract min/max info\n                                if (f.x)\n                                    updateAxis(s.xaxis, val, val);\n                                if (f.y)\n                                    updateAxis(s.yaxis, val, val);\n                            }\n                            points[k + m] = null;\n                        }\n                    }\n                    else {\n                        // a little bit of line specific stuff that\n                        // perhaps shouldn't be here, but lacking\n                        // better means...\n                        if (insertSteps && k > 0\n                            && points[k - ps] != null\n                            && points[k - ps] != points[k]\n                            && points[k - ps + 1] != points[k + 1]) {\n                            // copy the point to make room for a middle point\n                            for (m = 0; m < ps; ++m)\n                                points[k + ps + m] = points[k + m];\n\n                            // middle point has same y\n                            points[k + 1] = points[k - ps + 1];\n\n                            // we've added a point, better reflect that\n                            k += ps;\n                        }\n                    }\n                }\n            }\n\n            // give the hooks a chance to run\n            for (i = 0; i < series.length; ++i) {\n                s = series[i];\n                \n                executeHooks(hooks.processDatapoints, [ s, s.datapoints]);\n            }\n\n            // second pass: find datamax/datamin for auto-scaling\n            for (i = 0; i < series.length; ++i) {\n                s = series[i];\n                points = s.datapoints.points,\n                ps = s.datapoints.pointsize;\n\n                var xmin = topSentry, ymin = topSentry,\n                    xmax = bottomSentry, ymax = bottomSentry;\n                \n                for (j = 0; j < points.length; j += ps) {\n                    if (points[j] == null)\n                        continue;\n\n                    for (m = 0; m < ps; ++m) {\n                        val = points[j + m];\n                        f = format[m];\n                        if (!f || val == fakeInfinity || val == -fakeInfinity)\n                            continue;\n                        \n                        if (f.x) {\n                            if (val < xmin)\n                                xmin = val;\n                            if (val > xmax)\n                                xmax = val;\n                        }\n                        if (f.y) {\n                            if (val < ymin)\n                                ymin = val;\n                            if (val > ymax)\n                                ymax = val;\n                        }\n                    }\n                }\n                \n                if (s.bars.show) {\n                    // make sure we got room for the bar on the dancing floor\n                    var delta = s.bars.align == \"left\" ? 0 : -s.bars.barWidth/2;\n                    if (s.bars.horizontal) {\n                        ymin += delta;\n                        ymax += delta + s.bars.barWidth;\n                    }\n                    else {\n                        xmin += delta;\n                        xmax += delta + s.bars.barWidth;\n                    }\n                }\n                \n                updateAxis(s.xaxis, xmin, xmax);\n                updateAxis(s.yaxis, ymin, ymax);\n            }\n\n            $.each(allAxes(), function (_, axis) {\n                if (axis.datamin == topSentry)\n                    axis.datamin = null;\n                if (axis.datamax == bottomSentry)\n                    axis.datamax = null;\n            });\n        }\n\n        function makeCanvas(skipPositioning, cls) {\n            var c = document.createElement('canvas');\n            c.className = cls;\n            c.width = canvasWidth;\n            c.height = canvasHeight;\n                    \n            if (!skipPositioning)\n                $(c).css({ position: 'absolute', left: 0, top: 0 });\n                \n            $(c).appendTo(placeholder);\n                \n            if (!c.getContext) // excanvas hack\n                c = window.G_vmlCanvasManager.initElement(c);\n\n            // used for resetting in case we get replotted\n            c.getContext(\"2d\").save();\n            \n            return c;\n        }\n\n        function getCanvasDimensions() {\n            canvasWidth = placeholder.width();\n            canvasHeight = placeholder.height();\n            \n            if (canvasWidth <= 0 || canvasHeight <= 0)\n                throw \"Invalid dimensions for plot, width = \" + canvasWidth + \", height = \" + canvasHeight;\n        }\n\n        function resizeCanvas(c) {\n            // resizing should reset the state (excanvas seems to be\n            // buggy though)\n            if (c.width != canvasWidth)\n                c.width = canvasWidth;\n\n            if (c.height != canvasHeight)\n                c.height = canvasHeight;\n\n            // so try to get back to the initial state (even if it's\n            // gone now, this should be safe according to the spec)\n            var cctx = c.getContext(\"2d\");\n            cctx.restore();\n\n            // and save again\n            cctx.save();\n        }\n        \n        function setupCanvases() {\n            var reused,\n                existingCanvas = placeholder.children(\"canvas.base\"),\n                existingOverlay = placeholder.children(\"canvas.overlay\");\n\n            if (existingCanvas.length == 0 || existingOverlay == 0) {\n                // init everything\n                \n                placeholder.html(\"\"); // make sure placeholder is clear\n            \n                placeholder.css({ padding: 0 }); // padding messes up the positioning\n                \n                if (placeholder.css(\"position\") == 'static')\n                    placeholder.css(\"position\", \"relative\"); // for positioning labels and overlay\n\n                getCanvasDimensions();\n                \n                canvas = makeCanvas(true, \"base\");\n                overlay = makeCanvas(false, \"overlay\"); // overlay canvas for interactive features\n\n                reused = false;\n            }\n            else {\n                // reuse existing elements\n\n                canvas = existingCanvas.get(0);\n                overlay = existingOverlay.get(0);\n\n                reused = true;\n            }\n\n            ctx = canvas.getContext(\"2d\");\n            octx = overlay.getContext(\"2d\");\n\n            // we include the canvas in the event holder too, because IE 7\n            // sometimes has trouble with the stacking order\n            eventHolder = $([overlay, canvas]);\n\n            if (reused) {\n                // run shutdown in the old plot object\n                placeholder.data(\"plot\").shutdown();\n\n                // reset reused canvases\n                plot.resize();\n                \n                // make sure overlay pixels are cleared (canvas is cleared when we redraw)\n                octx.clearRect(0, 0, canvasWidth, canvasHeight);\n                \n                // then whack any remaining obvious garbage left\n                eventHolder.unbind();\n                placeholder.children().not([canvas, overlay]).remove();\n            }\n\n            // save in case we get replotted\n            placeholder.data(\"plot\", plot);\n        }\n\n        function bindEvents() {\n            // bind events\n            if (options.grid.hoverable) {\n                eventHolder.mousemove(onMouseMove);\n                eventHolder.mouseleave(onMouseLeave);\n            }\n\n            if (options.grid.clickable)\n                eventHolder.click(onClick);\n\n            executeHooks(hooks.bindEvents, [eventHolder]);\n        }\n\n        function shutdown() {\n            if (redrawTimeout)\n                clearTimeout(redrawTimeout);\n            \n            eventHolder.unbind(\"mousemove\", onMouseMove);\n            eventHolder.unbind(\"mouseleave\", onMouseLeave);\n            eventHolder.unbind(\"click\", onClick);\n            \n            executeHooks(hooks.shutdown, [eventHolder]);\n        }\n\n        function setTransformationHelpers(axis) {\n            // set helper functions on the axis, assumes plot area\n            // has been computed already\n            \n            function identity(x) { return x; }\n            \n            var s, m, t = axis.options.transform || identity,\n                it = axis.options.inverseTransform;\n            \n            // precompute how much the axis is scaling a point\n            // in canvas space\n            if (axis.direction == \"x\") {\n                s = axis.scale = plotWidth / Math.abs(t(axis.max) - t(axis.min));\n                m = Math.min(t(axis.max), t(axis.min));\n            }\n            else {\n                s = axis.scale = plotHeight / Math.abs(t(axis.max) - t(axis.min));\n                s = -s;\n                m = Math.max(t(axis.max), t(axis.min));\n            }\n\n            // data point to canvas coordinate\n            if (t == identity) // slight optimization\n                axis.p2c = function (p) { return (p - m) * s; };\n            else\n                axis.p2c = function (p) { return (t(p) - m) * s; };\n            // canvas coordinate to data point\n            if (!it)\n                axis.c2p = function (c) { return m + c / s; };\n            else\n                axis.c2p = function (c) { return it(m + c / s); };\n        }\n\n        function measureTickLabels(axis) {\n            var opts = axis.options, i, ticks = axis.ticks || [], labels = [],\n                l, w = opts.labelWidth, h = opts.labelHeight, dummyDiv;\n\n            function makeDummyDiv(labels, width) {\n                return $('<div style=\"position:absolute;top:-10000px;' + width + 'font-size:smaller\">' +\n                         '<div class=\"' + axis.direction + 'Axis ' + axis.direction + axis.n + 'Axis\">'\n                         + labels.join(\"\") + '</div></div>')\n                    .appendTo(placeholder);\n            }\n            \n            if (axis.direction == \"x\") {\n                // to avoid measuring the widths of the labels (it's slow), we\n                // construct fixed-size boxes and put the labels inside\n                // them, we don't need the exact figures and the\n                // fixed-size box content is easy to center\n                if (w == null)\n                    w = Math.floor(canvasWidth / (ticks.length > 0 ? ticks.length : 1));\n\n                // measure x label heights\n                if (h == null) {\n                    labels = [];\n                    for (i = 0; i < ticks.length; ++i) {\n                        l = ticks[i].label;\n                        if (l)\n                            labels.push('<div class=\"tickLabel\" style=\"float:left;width:' + w + 'px\">' + l + '</div>');\n                    }\n\n                    if (labels.length > 0) {\n                        // stick them all in the same div and measure\n                        // collective height\n                        labels.push('<div style=\"clear:left\"></div>');\n                        dummyDiv = makeDummyDiv(labels, \"width:10000px;\");\n                        h = dummyDiv.height();\n                        dummyDiv.remove();\n                    }\n                }\n            }\n            else if (w == null || h == null) {\n                // calculate y label dimensions\n                for (i = 0; i < ticks.length; ++i) {\n                    l = ticks[i].label;\n                    if (l)\n                        labels.push('<div class=\"tickLabel\">' + l + '</div>');\n                }\n                \n                if (labels.length > 0) {\n                    dummyDiv = makeDummyDiv(labels, \"\");\n                    if (w == null)\n                        w = dummyDiv.children().width();\n                    if (h == null)\n                        h = dummyDiv.find(\"div.tickLabel\").height();\n                    dummyDiv.remove();\n                }\n            }\n\n            if (w == null)\n                w = 0;\n            if (h == null)\n                h = 0;\n\n            axis.labelWidth = w;\n            axis.labelHeight = h;\n        }\n\n        function allocateAxisBoxFirstPhase(axis) {\n            // find the bounding box of the axis by looking at label\n            // widths/heights and ticks, make room by diminishing the\n            // plotOffset\n\n            var lw = axis.labelWidth,\n                lh = axis.labelHeight,\n                pos = axis.options.position,\n                tickLength = axis.options.tickLength,\n                axismargin = options.grid.axisMargin,\n                padding = options.grid.labelMargin,\n                all = axis.direction == \"x\" ? xaxes : yaxes,\n                index;\n\n            // determine axis margin\n            var samePosition = $.grep(all, function (a) {\n                return a && a.options.position == pos && a.reserveSpace;\n            });\n            if ($.inArray(axis, samePosition) == samePosition.length - 1)\n                axismargin = 0; // outermost\n\n            // determine tick length - if we're innermost, we can use \"full\"\n            if (tickLength == null)\n                tickLength = \"full\";\n\n            var sameDirection = $.grep(all, function (a) {\n                return a && a.reserveSpace;\n            });\n\n            var innermost = $.inArray(axis, sameDirection) == 0;\n            if (!innermost && tickLength == \"full\")\n                tickLength = 5;\n                \n            if (!isNaN(+tickLength))\n                padding += +tickLength;\n\n            // compute box\n            if (axis.direction == \"x\") {\n                lh += padding;\n                \n                if (pos == \"bottom\") {\n                    plotOffset.bottom += lh + axismargin;\n                    axis.box = { top: canvasHeight - plotOffset.bottom, height: lh };\n                }\n                else {\n                    axis.box = { top: plotOffset.top + axismargin, height: lh };\n                    plotOffset.top += lh + axismargin;\n                }\n            }\n            else {\n                lw += padding;\n                \n                if (pos == \"left\") {\n                    axis.box = { left: plotOffset.left + axismargin, width: lw };\n                    plotOffset.left += lw + axismargin;\n                }\n                else {\n                    plotOffset.right += lw + axismargin;\n                    axis.box = { left: canvasWidth - plotOffset.right, width: lw };\n                }\n            }\n\n             // save for future reference\n            axis.position = pos;\n            axis.tickLength = tickLength;\n            axis.box.padding = padding;\n            axis.innermost = innermost;\n        }\n\n        function allocateAxisBoxSecondPhase(axis) {\n            // set remaining bounding box coordinates\n            if (axis.direction == \"x\") {\n                axis.box.left = plotOffset.left;\n                axis.box.width = plotWidth;\n            }\n            else {\n                axis.box.top = plotOffset.top;\n                axis.box.height = plotHeight;\n            }\n        }\n        \n        function setupGrid() {\n            var i, axes = allAxes();\n\n            // first calculate the plot and axis box dimensions\n\n            $.each(axes, function (_, axis) {\n                axis.show = axis.options.show;\n                if (axis.show == null)\n                    axis.show = axis.used; // by default an axis is visible if it's got data\n                \n                axis.reserveSpace = axis.show || axis.options.reserveSpace;\n\n                setRange(axis);\n            });\n\n            allocatedAxes = $.grep(axes, function (axis) { return axis.reserveSpace; });\n\n            plotOffset.left = plotOffset.right = plotOffset.top = plotOffset.bottom = 0;\n            if (options.grid.show) {\n                $.each(allocatedAxes, function (_, axis) {\n                    // make the ticks\n                    setupTickGeneration(axis);\n                    setTicks(axis);\n                    snapRangeToTicks(axis, axis.ticks);\n\n                    // find labelWidth/Height for axis\n                    measureTickLabels(axis);\n                });\n\n                // with all dimensions in house, we can compute the\n                // axis boxes, start from the outside (reverse order)\n                for (i = allocatedAxes.length - 1; i >= 0; --i)\n                    allocateAxisBoxFirstPhase(allocatedAxes[i]);\n\n                // make sure we've got enough space for things that\n                // might stick out\n                var minMargin = options.grid.minBorderMargin;\n                if (minMargin == null) {\n                    minMargin = 0;\n                    for (i = 0; i < series.length; ++i)\n                        minMargin = Math.max(minMargin, series[i].points.radius + series[i].points.lineWidth/2);\n                }\n                    \n                for (var a in plotOffset) {\n                    plotOffset[a] += options.grid.borderWidth;\n                    plotOffset[a] = Math.max(minMargin, plotOffset[a]);\n                }\n            }\n            \n            plotWidth = canvasWidth - plotOffset.left - plotOffset.right;\n            plotHeight = canvasHeight - plotOffset.bottom - plotOffset.top;\n\n            // now we got the proper plotWidth/Height, we can compute the scaling\n            $.each(axes, function (_, axis) {\n                setTransformationHelpers(axis);\n            });\n\n            if (options.grid.show) {\n                $.each(allocatedAxes, function (_, axis) {\n                    allocateAxisBoxSecondPhase(axis);\n                });\n\n                insertAxisLabels();\n            }\n            \n            insertLegend();\n        }\n        \n        function setRange(axis) {\n            var opts = axis.options,\n                min = +(opts.min != null ? opts.min : axis.datamin),\n                max = +(opts.max != null ? opts.max : axis.datamax),\n                delta = max - min;\n\n            if (delta == 0.0) {\n                // degenerate case\n                var widen = max == 0 ? 1 : 0.01;\n\n                if (opts.min == null)\n                    min -= widen;\n                // always widen max if we couldn't widen min to ensure we\n                // don't fall into min == max which doesn't work\n                if (opts.max == null || opts.min != null)\n                    max += widen;\n            }\n            else {\n                // consider autoscaling\n                var margin = opts.autoscaleMargin;\n                if (margin != null) {\n                    if (opts.min == null) {\n                        min -= delta * margin;\n                        // make sure we don't go below zero if all values\n                        // are positive\n                        if (min < 0 && axis.datamin != null && axis.datamin >= 0)\n                            min = 0;\n                    }\n                    if (opts.max == null) {\n                        max += delta * margin;\n                        if (max > 0 && axis.datamax != null && axis.datamax <= 0)\n                            max = 0;\n                    }\n                }\n            }\n            axis.min = min;\n            axis.max = max;\n        }\n\n        function setupTickGeneration(axis) {\n            var opts = axis.options;\n                \n            // estimate number of ticks\n            var noTicks;\n            if (typeof opts.ticks == \"number\" && opts.ticks > 0)\n                noTicks = opts.ticks;\n            else\n                // heuristic based on the model a*sqrt(x) fitted to\n                // some data points that seemed reasonable\n                noTicks = 0.3 * Math.sqrt(axis.direction == \"x\" ? canvasWidth : canvasHeight);\n\n            var delta = (axis.max - axis.min) / noTicks,\n                size, generator, unit, formatter, i, magn, norm;\n\n            if (opts.mode == \"time\") {\n                // pretty handling of time\n                \n                // map of app. size of time units in milliseconds\n                var timeUnitSize = {\n                    \"second\": 1000,\n                    \"minute\": 60 * 1000,\n                    \"hour\": 60 * 60 * 1000,\n                    \"day\": 24 * 60 * 60 * 1000,\n                    \"month\": 30 * 24 * 60 * 60 * 1000,\n                    \"year\": 365.2425 * 24 * 60 * 60 * 1000\n                };\n\n\n                // the allowed tick sizes, after 1 year we use\n                // an integer algorithm\n                var spec = [\n                    [1, \"second\"], [2, \"second\"], [5, \"second\"], [10, \"second\"],\n                    [30, \"second\"], \n                    [1, \"minute\"], [2, \"minute\"], [5, \"minute\"], [10, \"minute\"],\n                    [30, \"minute\"], \n                    [1, \"hour\"], [2, \"hour\"], [4, \"hour\"],\n                    [8, \"hour\"], [12, \"hour\"],\n                    [1, \"day\"], [2, \"day\"], [3, \"day\"],\n                    [0.25, \"month\"], [0.5, \"month\"], [1, \"month\"],\n                    [2, \"month\"], [3, \"month\"], [6, \"month\"],\n                    [1, \"year\"]\n                ];\n\n                var minSize = 0;\n                if (opts.minTickSize != null) {\n                    if (typeof opts.tickSize == \"number\")\n                        minSize = opts.tickSize;\n                    else\n                        minSize = opts.minTickSize[0] * timeUnitSize[opts.minTickSize[1]];\n                }\n\n                for (var i = 0; i < spec.length - 1; ++i)\n                    if (delta < (spec[i][0] * timeUnitSize[spec[i][1]]\n                                 + spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2\n                       && spec[i][0] * timeUnitSize[spec[i][1]] >= minSize)\n                        break;\n                size = spec[i][0];\n                unit = spec[i][1];\n                \n                // special-case the possibility of several years\n                if (unit == \"year\") {\n                    magn = Math.pow(10, Math.floor(Math.log(delta / timeUnitSize.year) / Math.LN10));\n                    norm = (delta / timeUnitSize.year) / magn;\n                    if (norm < 1.5)\n                        size = 1;\n                    else if (norm < 3)\n                        size = 2;\n                    else if (norm < 7.5)\n                        size = 5;\n                    else\n                        size = 10;\n\n                    size *= magn;\n                }\n\n                axis.tickSize = opts.tickSize || [size, unit];\n                \n                generator = function(axis) {\n                    var ticks = [],\n                        tickSize = axis.tickSize[0], unit = axis.tickSize[1],\n                        d = new Date(axis.min);\n                    \n                    var step = tickSize * timeUnitSize[unit];\n\n                    if (unit == \"second\")\n                        d.setUTCSeconds(floorInBase(d.getUTCSeconds(), tickSize));\n                    if (unit == \"minute\")\n                        d.setUTCMinutes(floorInBase(d.getUTCMinutes(), tickSize));\n                    if (unit == \"hour\")\n                        d.setUTCHours(floorInBase(d.getUTCHours(), tickSize));\n                    if (unit == \"month\")\n                        d.setUTCMonth(floorInBase(d.getUTCMonth(), tickSize));\n                    if (unit == \"year\")\n                        d.setUTCFullYear(floorInBase(d.getUTCFullYear(), tickSize));\n                    \n                    // reset smaller components\n                    d.setUTCMilliseconds(0);\n                    if (step >= timeUnitSize.minute)\n                        d.setUTCSeconds(0);\n                    if (step >= timeUnitSize.hour)\n                        d.setUTCMinutes(0);\n                    if (step >= timeUnitSize.day)\n                        d.setUTCHours(0);\n                    if (step >= timeUnitSize.day * 4)\n                        d.setUTCDate(1);\n                    if (step >= timeUnitSize.year)\n                        d.setUTCMonth(0);\n\n\n                    var carry = 0, v = Number.NaN, prev;\n                    do {\n                        prev = v;\n                        v = d.getTime();\n                        ticks.push(v);\n                        if (unit == \"month\") {\n                            if (tickSize < 1) {\n                                // a bit complicated - we'll divide the month\n                                // up but we need to take care of fractions\n                                // so we don't end up in the middle of a day\n                                d.setUTCDate(1);\n                                var start = d.getTime();\n                                d.setUTCMonth(d.getUTCMonth() + 1);\n                                var end = d.getTime();\n                                d.setTime(v + carry * timeUnitSize.hour + (end - start) * tickSize);\n                                carry = d.getUTCHours();\n                                d.setUTCHours(0);\n                            }\n                            else\n                                d.setUTCMonth(d.getUTCMonth() + tickSize);\n                        }\n                        else if (unit == \"year\") {\n                            d.setUTCFullYear(d.getUTCFullYear() + tickSize);\n                        }\n                        else\n                            d.setTime(v + step);\n                    } while (v < axis.max && v != prev);\n\n                    return ticks;\n                };\n\n                formatter = function (v, axis) {\n                    var d = new Date(v);\n\n                    // first check global format\n                    if (opts.timeformat != null)\n                        return $.plot.formatDate(d, opts.timeformat, opts.monthNames);\n                    \n                    var t = axis.tickSize[0] * timeUnitSize[axis.tickSize[1]];\n                    var span = axis.max - axis.min;\n                    var suffix = (opts.twelveHourClock) ? \" %p\" : \"\";\n                    \n                    if (t < timeUnitSize.minute)\n                        fmt = \"%h:%M:%S\" + suffix;\n                    else if (t < timeUnitSize.day) {\n                        if (span < 2 * timeUnitSize.day)\n                            fmt = \"%h:%M\" + suffix;\n                        else\n                            fmt = \"%b %d %h:%M\" + suffix;\n                    }\n                    else if (t < timeUnitSize.month)\n                        fmt = \"%b %d\";\n                    else if (t < timeUnitSize.year) {\n                        if (span < timeUnitSize.year)\n                            fmt = \"%b\";\n                        else\n                            fmt = \"%b %y\";\n                    }\n                    else\n                        fmt = \"%y\";\n                    \n                    return $.plot.formatDate(d, fmt, opts.monthNames);\n                };\n            }\n            else {\n                // pretty rounding of base-10 numbers\n                var maxDec = opts.tickDecimals;\n                var dec = -Math.floor(Math.log(delta) / Math.LN10);\n                if (maxDec != null && dec > maxDec)\n                    dec = maxDec;\n\n                magn = Math.pow(10, -dec);\n                norm = delta / magn; // norm is between 1.0 and 10.0\n                \n                if (norm < 1.5)\n                    size = 1;\n                else if (norm < 3) {\n                    size = 2;\n                    // special case for 2.5, requires an extra decimal\n                    if (norm > 2.25 && (maxDec == null || dec + 1 <= maxDec)) {\n                        size = 2.5;\n                        ++dec;\n                    }\n                }\n                else if (norm < 7.5)\n                    size = 5;\n                else\n                    size = 10;\n\n                size *= magn;\n                \n                if (opts.minTickSize != null && size < opts.minTickSize)\n                    size = opts.minTickSize;\n\n                axis.tickDecimals = Math.max(0, maxDec != null ? maxDec : dec);\n                axis.tickSize = opts.tickSize || size;\n\n                generator = function (axis) {\n                    var ticks = [];\n\n                    // spew out all possible ticks\n                    var start = floorInBase(axis.min, axis.tickSize),\n                        i = 0, v = Number.NaN, prev;\n                    do {\n                        prev = v;\n                        v = start + i * axis.tickSize;\n                        ticks.push(v);\n                        ++i;\n                    } while (v < axis.max && v != prev);\n                    return ticks;\n                };\n\n                formatter = function (v, axis) {\n                    return v.toFixed(axis.tickDecimals);\n                };\n            }\n\n            if (opts.alignTicksWithAxis != null) {\n                var otherAxis = (axis.direction == \"x\" ? xaxes : yaxes)[opts.alignTicksWithAxis - 1];\n                if (otherAxis && otherAxis.used && otherAxis != axis) {\n                    // consider snapping min/max to outermost nice ticks\n                    var niceTicks = generator(axis);\n                    if (niceTicks.length > 0) {\n                        if (opts.min == null)\n                            axis.min = Math.min(axis.min, niceTicks[0]);\n                        if (opts.max == null && niceTicks.length > 1)\n                            axis.max = Math.max(axis.max, niceTicks[niceTicks.length - 1]);\n                    }\n                    \n                    generator = function (axis) {\n                        // copy ticks, scaled to this axis\n                        var ticks = [], v, i;\n                        for (i = 0; i < otherAxis.ticks.length; ++i) {\n                            v = (otherAxis.ticks[i].v - otherAxis.min) / (otherAxis.max - otherAxis.min);\n                            v = axis.min + v * (axis.max - axis.min);\n                            ticks.push(v);\n                        }\n                        return ticks;\n                    };\n                    \n                    // we might need an extra decimal since forced\n                    // ticks don't necessarily fit naturally\n                    if (axis.mode != \"time\" && opts.tickDecimals == null) {\n                        var extraDec = Math.max(0, -Math.floor(Math.log(delta) / Math.LN10) + 1),\n                            ts = generator(axis);\n\n                        // only proceed if the tick interval rounded\n                        // with an extra decimal doesn't give us a\n                        // zero at end\n                        if (!(ts.length > 1 && /\\..*0$/.test((ts[1] - ts[0]).toFixed(extraDec))))\n                            axis.tickDecimals = extraDec;\n                    }\n                }\n            }\n\n            axis.tickGenerator = generator;\n            if ($.isFunction(opts.tickFormatter))\n                axis.tickFormatter = function (v, axis) { return \"\" + opts.tickFormatter(v, axis); };\n            else\n                axis.tickFormatter = formatter;\n        }\n        \n        function setTicks(axis) {\n            var oticks = axis.options.ticks, ticks = [];\n            if (oticks == null || (typeof oticks == \"number\" && oticks > 0))\n                ticks = axis.tickGenerator(axis);\n            else if (oticks) {\n                if ($.isFunction(oticks))\n                    // generate the ticks\n                    ticks = oticks({ min: axis.min, max: axis.max });\n                else\n                    ticks = oticks;\n            }\n\n            // clean up/labelify the supplied ticks, copy them over\n            var i, v;\n            axis.ticks = [];\n            for (i = 0; i < ticks.length; ++i) {\n                var label = null;\n                var t = ticks[i];\n                if (typeof t == \"object\") {\n                    v = +t[0];\n                    if (t.length > 1)\n                        label = t[1];\n                }\n                else\n                    v = +t;\n                if (label == null)\n                    label = axis.tickFormatter(v, axis);\n                if (!isNaN(v))\n                    axis.ticks.push({ v: v, label: label });\n            }\n        }\n\n        function snapRangeToTicks(axis, ticks) {\n            if (axis.options.autoscaleMargin && ticks.length > 0) {\n                // snap to ticks\n                if (axis.options.min == null)\n                    axis.min = Math.min(axis.min, ticks[0].v);\n                if (axis.options.max == null && ticks.length > 1)\n                    axis.max = Math.max(axis.max, ticks[ticks.length - 1].v);\n            }\n        }\n      \n        function draw() {\n            ctx.clearRect(0, 0, canvasWidth, canvasHeight);\n\n            var grid = options.grid;\n\n            // draw background, if any\n            if (grid.show && grid.backgroundColor)\n                drawBackground();\n            \n            if (grid.show && !grid.aboveData)\n                drawGrid();\n\n            for (var i = 0; i < series.length; ++i) {\n                executeHooks(hooks.drawSeries, [ctx, series[i]]);\n                drawSeries(series[i]);\n            }\n\n            executeHooks(hooks.draw, [ctx]);\n            \n            if (grid.show && grid.aboveData)\n                drawGrid();\n        }\n\n        function extractRange(ranges, coord) {\n            var axis, from, to, key, axes = allAxes();\n\n            for (i = 0; i < axes.length; ++i) {\n                axis = axes[i];\n                if (axis.direction == coord) {\n                    key = coord + axis.n + \"axis\";\n                    if (!ranges[key] && axis.n == 1)\n                        key = coord + \"axis\"; // support x1axis as xaxis\n                    if (ranges[key]) {\n                        from = ranges[key].from;\n                        to = ranges[key].to;\n                        break;\n                    }\n                }\n            }\n\n            // backwards-compat stuff - to be removed in future\n            if (!ranges[key]) {\n                axis = coord == \"x\" ? xaxes[0] : yaxes[0];\n                from = ranges[coord + \"1\"];\n                to = ranges[coord + \"2\"];\n            }\n\n            // auto-reverse as an added bonus\n            if (from != null && to != null && from > to) {\n                var tmp = from;\n                from = to;\n                to = tmp;\n            }\n            \n            return { from: from, to: to, axis: axis };\n        }\n        \n        function drawBackground() {\n            ctx.save();\n            ctx.translate(plotOffset.left, plotOffset.top);\n\n            ctx.fillStyle = getColorOrGradient(options.grid.backgroundColor, plotHeight, 0, \"rgba(255, 255, 255, 0)\");\n            ctx.fillRect(0, 0, plotWidth, plotHeight);\n            ctx.restore();\n        }\n\n        function drawGrid() {\n            var i;\n            \n            ctx.save();\n            ctx.translate(plotOffset.left, plotOffset.top);\n\n            // draw markings\n            var markings = options.grid.markings;\n            if (markings) {\n                if ($.isFunction(markings)) {\n                    var axes = plot.getAxes();\n                    // xmin etc. is backwards compatibility, to be\n                    // removed in the future\n                    axes.xmin = axes.xaxis.min;\n                    axes.xmax = axes.xaxis.max;\n                    axes.ymin = axes.yaxis.min;\n                    axes.ymax = axes.yaxis.max;\n                    \n                    markings = markings(axes);\n                }\n\n                for (i = 0; i < markings.length; ++i) {\n                    var m = markings[i],\n                        xrange = extractRange(m, \"x\"),\n                        yrange = extractRange(m, \"y\");\n\n                    // fill in missing\n                    if (xrange.from == null)\n                        xrange.from = xrange.axis.min;\n                    if (xrange.to == null)\n                        xrange.to = xrange.axis.max;\n                    if (yrange.from == null)\n                        yrange.from = yrange.axis.min;\n                    if (yrange.to == null)\n                        yrange.to = yrange.axis.max;\n\n                    // clip\n                    if (xrange.to < xrange.axis.min || xrange.from > xrange.axis.max ||\n                        yrange.to < yrange.axis.min || yrange.from > yrange.axis.max)\n                        continue;\n\n                    xrange.from = Math.max(xrange.from, xrange.axis.min);\n                    xrange.to = Math.min(xrange.to, xrange.axis.max);\n                    yrange.from = Math.max(yrange.from, yrange.axis.min);\n                    yrange.to = Math.min(yrange.to, yrange.axis.max);\n\n                    if (xrange.from == xrange.to && yrange.from == yrange.to)\n                        continue;\n\n                    // then draw\n                    xrange.from = xrange.axis.p2c(xrange.from);\n                    xrange.to = xrange.axis.p2c(xrange.to);\n                    yrange.from = yrange.axis.p2c(yrange.from);\n                    yrange.to = yrange.axis.p2c(yrange.to);\n                    \n                    if (xrange.from == xrange.to || yrange.from == yrange.to) {\n                        // draw line\n                        ctx.beginPath();\n                        ctx.strokeStyle = m.color || options.grid.markingsColor;\n                        ctx.lineWidth = m.lineWidth || options.grid.markingsLineWidth;\n                        ctx.moveTo(xrange.from, yrange.from);\n                        ctx.lineTo(xrange.to, yrange.to);\n                        ctx.stroke();\n                    }\n                    else {\n                        // fill area\n                        ctx.fillStyle = m.color || options.grid.markingsColor;\n                        ctx.fillRect(xrange.from, yrange.to,\n                                     xrange.to - xrange.from,\n                                     yrange.from - yrange.to);\n                    }\n                }\n            }\n            \n            // draw the ticks\n            var axes = allAxes(), bw = options.grid.borderWidth;\n\n            for (var j = 0; j < axes.length; ++j) {\n                var axis = axes[j], box = axis.box,\n                    t = axis.tickLength, x, y, xoff, yoff;\n                if (!axis.show || axis.ticks.length == 0)\n                    continue\n                \n                ctx.strokeStyle = axis.options.tickColor || $.color.parse(axis.options.color).scale('a', 0.22).toString();\n                ctx.lineWidth = 1;\n\n                // find the edges\n                if (axis.direction == \"x\") {\n                    x = 0;\n                    if (t == \"full\")\n                        y = (axis.position == \"top\" ? 0 : plotHeight);\n                    else\n                        y = box.top - plotOffset.top + (axis.position == \"top\" ? box.height : 0);\n                }\n                else {\n                    y = 0;\n                    if (t == \"full\")\n                        x = (axis.position == \"left\" ? 0 : plotWidth);\n                    else\n                        x = box.left - plotOffset.left + (axis.position == \"left\" ? box.width : 0);\n                }\n                \n                // draw tick bar\n                if (!axis.innermost) {\n                    ctx.beginPath();\n                    xoff = yoff = 0;\n                    if (axis.direction == \"x\")\n                        xoff = plotWidth;\n                    else\n                        yoff = plotHeight;\n                    \n                    if (ctx.lineWidth == 1) {\n                        x = Math.floor(x) + 0.5;\n                        y = Math.floor(y) + 0.5;\n                    }\n\n                    ctx.moveTo(x, y);\n                    ctx.lineTo(x + xoff, y + yoff);\n                    ctx.stroke();\n                }\n\n                // draw ticks\n                ctx.beginPath();\n                for (i = 0; i < axis.ticks.length; ++i) {\n                    var v = axis.ticks[i].v;\n                    \n                    xoff = yoff = 0;\n\n                    if (v < axis.min || v > axis.max\n                        // skip those lying on the axes if we got a border\n                        || (t == \"full\" && bw > 0\n                            && (v == axis.min || v == axis.max)))\n                        continue;\n\n                    if (axis.direction == \"x\") {\n                        x = axis.p2c(v);\n                        yoff = t == \"full\" ? -plotHeight : t;\n                        \n                        if (axis.position == \"top\")\n                            yoff = -yoff;\n                    }\n                    else {\n                        y = axis.p2c(v);\n                        xoff = t == \"full\" ? -plotWidth : t;\n                        \n                        if (axis.position == \"left\")\n                            xoff = -xoff;\n                    }\n\n                    if (ctx.lineWidth == 1) {\n                        if (axis.direction == \"x\")\n                            x = Math.floor(x) + 0.5;\n                        else\n                            y = Math.floor(y) + 0.5;\n                    }\n\n                    ctx.moveTo(x, y);\n                    ctx.lineTo(x + xoff, y + yoff);\n                }\n                \n                ctx.stroke();\n            }\n            \n            \n            // draw border\n            if (bw) {\n                ctx.lineWidth = bw;\n                ctx.strokeStyle = options.grid.borderColor;\n                ctx.strokeRect(-bw/2, -bw/2, plotWidth + bw, plotHeight + bw);\n            }\n\n            ctx.restore();\n        }\n\n        function insertAxisLabels() {\n            placeholder.find(\".tickLabels\").remove();\n            \n            var html = ['<div class=\"tickLabels\" style=\"font-size:smaller\">'];\n\n            var axes = allAxes();\n            for (var j = 0; j < axes.length; ++j) {\n                var axis = axes[j], box = axis.box;\n                if (!axis.show)\n                    continue;\n                //debug: html.push('<div style=\"position:absolute;opacity:0.10;background-color:red;left:' + box.left + 'px;top:' + box.top + 'px;width:' + box.width +  'px;height:' + box.height + 'px\"></div>')\n                html.push('<div class=\"' + axis.direction + 'Axis ' + axis.direction + axis.n + 'Axis\" style=\"color:' + axis.options.color + '\">');\n                for (var i = 0; i < axis.ticks.length; ++i) {\n                    var tick = axis.ticks[i];\n                    if (!tick.label || tick.v < axis.min || tick.v > axis.max)\n                        continue;\n\n                    var pos = {}, align;\n                    \n                    if (axis.direction == \"x\") {\n                        align = \"center\";\n                        pos.left = Math.round(plotOffset.left + axis.p2c(tick.v) - axis.labelWidth/2);\n                        if (axis.position == \"bottom\")\n                            pos.top = box.top + box.padding;\n                        else\n                            pos.bottom = canvasHeight - (box.top + box.height - box.padding);\n                    }\n                    else {\n                        pos.top = Math.round(plotOffset.top + axis.p2c(tick.v) - axis.labelHeight/2);\n                        if (axis.position == \"left\") {\n                            pos.right = canvasWidth - (box.left + box.width - box.padding)\n                            align = \"right\";\n                        }\n                        else {\n                            pos.left = box.left + box.padding;\n                            align = \"left\";\n                        }\n                    }\n\n                    pos.width = axis.labelWidth;\n\n                    var style = [\"position:absolute\", \"text-align:\" + align ];\n                    for (var a in pos)\n                        style.push(a + \":\" + pos[a] + \"px\")\n                    \n                    html.push('<div class=\"tickLabel\" style=\"' + style.join(';') + '\">' + tick.label + '</div>');\n                }\n                html.push('</div>');\n            }\n\n            html.push('</div>');\n\n            placeholder.append(html.join(\"\"));\n        }\n\n        function drawSeries(series) {\n            if (series.lines.show)\n                drawSeriesLines(series);\n            if (series.bars.show)\n                drawSeriesBars(series);\n            if (series.points.show)\n                drawSeriesPoints(series);\n        }\n        \n        function drawSeriesLines(series) {\n            function plotLine(datapoints, xoffset, yoffset, axisx, axisy) {\n                var points = datapoints.points,\n                    ps = datapoints.pointsize,\n                    prevx = null, prevy = null;\n                \n                ctx.beginPath();\n                for (var i = ps; i < points.length; i += ps) {\n                    var x1 = points[i - ps], y1 = points[i - ps + 1],\n                        x2 = points[i], y2 = points[i + 1];\n                    \n                    if (x1 == null || x2 == null)\n                        continue;\n\n                    // clip with ymin\n                    if (y1 <= y2 && y1 < axisy.min) {\n                        if (y2 < axisy.min)\n                            continue;   // line segment is outside\n                        // compute new intersection point\n                        x1 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1;\n                        y1 = axisy.min;\n                    }\n                    else if (y2 <= y1 && y2 < axisy.min) {\n                        if (y1 < axisy.min)\n                            continue;\n                        x2 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1;\n                        y2 = axisy.min;\n                    }\n\n                    // clip with ymax\n                    if (y1 >= y2 && y1 > axisy.max) {\n                        if (y2 > axisy.max)\n                            continue;\n                        x1 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1;\n                        y1 = axisy.max;\n                    }\n                    else if (y2 >= y1 && y2 > axisy.max) {\n                        if (y1 > axisy.max)\n                            continue;\n                        x2 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1;\n                        y2 = axisy.max;\n                    }\n\n                    // clip with xmin\n                    if (x1 <= x2 && x1 < axisx.min) {\n                        if (x2 < axisx.min)\n                            continue;\n                        y1 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1;\n                        x1 = axisx.min;\n                    }\n                    else if (x2 <= x1 && x2 < axisx.min) {\n                        if (x1 < axisx.min)\n                            continue;\n                        y2 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1;\n                        x2 = axisx.min;\n                    }\n\n                    // clip with xmax\n                    if (x1 >= x2 && x1 > axisx.max) {\n                        if (x2 > axisx.max)\n                            continue;\n                        y1 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1;\n                        x1 = axisx.max;\n                    }\n                    else if (x2 >= x1 && x2 > axisx.max) {\n                        if (x1 > axisx.max)\n                            continue;\n                        y2 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1;\n                        x2 = axisx.max;\n                    }\n\n                    if (x1 != prevx || y1 != prevy)\n                        ctx.moveTo(axisx.p2c(x1) + xoffset, axisy.p2c(y1) + yoffset);\n                    \n                    prevx = x2;\n                    prevy = y2;\n                    ctx.lineTo(axisx.p2c(x2) + xoffset, axisy.p2c(y2) + yoffset);\n                }\n                ctx.stroke();\n            }\n\n            function plotLineArea(datapoints, axisx, axisy) {\n                var points = datapoints.points,\n                    ps = datapoints.pointsize,\n                    bottom = Math.min(Math.max(0, axisy.min), axisy.max),\n                    i = 0, top, areaOpen = false,\n                    ypos = 1, segmentStart = 0, segmentEnd = 0;\n\n                // we process each segment in two turns, first forward\n                // direction to sketch out top, then once we hit the\n                // end we go backwards to sketch the bottom\n                while (true) {\n                    if (ps > 0 && i > points.length + ps)\n                        break;\n\n                    i += ps; // ps is negative if going backwards\n\n                    var x1 = points[i - ps],\n                        y1 = points[i - ps + ypos],\n                        x2 = points[i], y2 = points[i + ypos];\n\n                    if (areaOpen) {\n                        if (ps > 0 && x1 != null && x2 == null) {\n                            // at turning point\n                            segmentEnd = i;\n                            ps = -ps;\n                            ypos = 2;\n                            continue;\n                        }\n\n                        if (ps < 0 && i == segmentStart + ps) {\n                            // done with the reverse sweep\n                            ctx.fill();\n                            areaOpen = false;\n                            ps = -ps;\n                            ypos = 1;\n                            i = segmentStart = segmentEnd + ps;\n                            continue;\n                        }\n                    }\n\n                    if (x1 == null || x2 == null)\n                        continue;\n\n                    // clip x values\n                    \n                    // clip with xmin\n                    if (x1 <= x2 && x1 < axisx.min) {\n                        if (x2 < axisx.min)\n                            continue;\n                        y1 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1;\n                        x1 = axisx.min;\n                    }\n                    else if (x2 <= x1 && x2 < axisx.min) {\n                        if (x1 < axisx.min)\n                            continue;\n                        y2 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1;\n                        x2 = axisx.min;\n                    }\n\n                    // clip with xmax\n                    if (x1 >= x2 && x1 > axisx.max) {\n                        if (x2 > axisx.max)\n                            continue;\n                        y1 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1;\n                        x1 = axisx.max;\n                    }\n                    else if (x2 >= x1 && x2 > axisx.max) {\n                        if (x1 > axisx.max)\n                            continue;\n                        y2 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1;\n                        x2 = axisx.max;\n                    }\n\n                    if (!areaOpen) {\n                        // open area\n                        ctx.beginPath();\n                        ctx.moveTo(axisx.p2c(x1), axisy.p2c(bottom));\n                        areaOpen = true;\n                    }\n                    \n                    // now first check the case where both is outside\n                    if (y1 >= axisy.max && y2 >= axisy.max) {\n                        ctx.lineTo(axisx.p2c(x1), axisy.p2c(axisy.max));\n                        ctx.lineTo(axisx.p2c(x2), axisy.p2c(axisy.max));\n                        continue;\n                    }\n                    else if (y1 <= axisy.min && y2 <= axisy.min) {\n                        ctx.lineTo(axisx.p2c(x1), axisy.p2c(axisy.min));\n                        ctx.lineTo(axisx.p2c(x2), axisy.p2c(axisy.min));\n                        continue;\n                    }\n                    \n                    // else it's a bit more complicated, there might\n                    // be a flat maxed out rectangle first, then a\n                    // triangular cutout or reverse; to find these\n                    // keep track of the current x values\n                    var x1old = x1, x2old = x2;\n\n                    // clip the y values, without shortcutting, we\n                    // go through all cases in turn\n                    \n                    // clip with ymin\n                    if (y1 <= y2 && y1 < axisy.min && y2 >= axisy.min) {\n                        x1 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1;\n                        y1 = axisy.min;\n                    }\n                    else if (y2 <= y1 && y2 < axisy.min && y1 >= axisy.min) {\n                        x2 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1;\n                        y2 = axisy.min;\n                    }\n\n                    // clip with ymax\n                    if (y1 >= y2 && y1 > axisy.max && y2 <= axisy.max) {\n                        x1 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1;\n                        y1 = axisy.max;\n                    }\n                    else if (y2 >= y1 && y2 > axisy.max && y1 <= axisy.max) {\n                        x2 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1;\n                        y2 = axisy.max;\n                    }\n\n                    // if the x value was changed we got a rectangle\n                    // to fill\n                    if (x1 != x1old) {\n                        ctx.lineTo(axisx.p2c(x1old), axisy.p2c(y1));\n                        // it goes to (x1, y1), but we fill that below\n                    }\n                    \n                    // fill triangular section, this sometimes result\n                    // in redundant points if (x1, y1) hasn't changed\n                    // from previous line to, but we just ignore that\n                    ctx.lineTo(axisx.p2c(x1), axisy.p2c(y1));\n                    ctx.lineTo(axisx.p2c(x2), axisy.p2c(y2));\n\n                    // fill the other rectangle if it's there\n                    if (x2 != x2old) {\n                        ctx.lineTo(axisx.p2c(x2), axisy.p2c(y2));\n                        ctx.lineTo(axisx.p2c(x2old), axisy.p2c(y2));\n                    }\n                }\n            }\n\n            ctx.save();\n            ctx.translate(plotOffset.left, plotOffset.top);\n            ctx.lineJoin = \"round\";\n\n            var lw = series.lines.lineWidth,\n                sw = series.shadowSize;\n            // FIXME: consider another form of shadow when filling is turned on\n            if (lw > 0 && sw > 0) {\n                // draw shadow as a thick and thin line with transparency\n                ctx.lineWidth = sw;\n                ctx.strokeStyle = \"rgba(0,0,0,0.1)\";\n                // position shadow at angle from the mid of line\n                var angle = Math.PI/18;\n                plotLine(series.datapoints, Math.sin(angle) * (lw/2 + sw/2), Math.cos(angle) * (lw/2 + sw/2), series.xaxis, series.yaxis);\n                ctx.lineWidth = sw/2;\n                plotLine(series.datapoints, Math.sin(angle) * (lw/2 + sw/4), Math.cos(angle) * (lw/2 + sw/4), series.xaxis, series.yaxis);\n            }\n\n            ctx.lineWidth = lw;\n            ctx.strokeStyle = series.color;\n            var fillStyle = getFillStyle(series.lines, series.color, 0, plotHeight);\n            if (fillStyle) {\n                ctx.fillStyle = fillStyle;\n                plotLineArea(series.datapoints, series.xaxis, series.yaxis);\n            }\n\n            if (lw > 0)\n                plotLine(series.datapoints, 0, 0, series.xaxis, series.yaxis);\n            ctx.restore();\n        }\n\n        function drawSeriesPoints(series) {\n            function plotPoints(datapoints, radius, fillStyle, offset, shadow, axisx, axisy, symbol) {\n                var points = datapoints.points, ps = datapoints.pointsize;\n\n                for (var i = 0; i < points.length; i += ps) {\n                    var x = points[i], y = points[i + 1];\n                    if (x == null || x < axisx.min || x > axisx.max || y < axisy.min || y > axisy.max)\n                        continue;\n                    \n                    ctx.beginPath();\n                    x = axisx.p2c(x);\n                    y = axisy.p2c(y) + offset;\n                    if (symbol == \"circle\")\n                        ctx.arc(x, y, radius, 0, shadow ? Math.PI : Math.PI * 2, false);\n                    else\n                        symbol(ctx, x, y, radius, shadow);\n                    ctx.closePath();\n                    \n                    if (fillStyle) {\n                        ctx.fillStyle = fillStyle;\n                        ctx.fill();\n                    }\n                    ctx.stroke();\n                }\n            }\n            \n            ctx.save();\n            ctx.translate(plotOffset.left, plotOffset.top);\n\n            var lw = series.points.lineWidth,\n                sw = series.shadowSize,\n                radius = series.points.radius,\n                symbol = series.points.symbol;\n            if (lw > 0 && sw > 0) {\n                // draw shadow in two steps\n                var w = sw / 2;\n                ctx.lineWidth = w;\n                ctx.strokeStyle = \"rgba(0,0,0,0.1)\";\n                plotPoints(series.datapoints, radius, null, w + w/2, true,\n                           series.xaxis, series.yaxis, symbol);\n\n                ctx.strokeStyle = \"rgba(0,0,0,0.2)\";\n                plotPoints(series.datapoints, radius, null, w/2, true,\n                           series.xaxis, series.yaxis, symbol);\n            }\n\n            ctx.lineWidth = lw;\n            ctx.strokeStyle = series.color;\n            plotPoints(series.datapoints, radius,\n                       getFillStyle(series.points, series.color), 0, false,\n                       series.xaxis, series.yaxis, symbol);\n            ctx.restore();\n        }\n\n        function drawBar(x, y, b, barLeft, barRight, offset, fillStyleCallback, axisx, axisy, c, horizontal, lineWidth) {\n            var left, right, bottom, top,\n                drawLeft, drawRight, drawTop, drawBottom,\n                tmp;\n\n            // in horizontal mode, we start the bar from the left\n            // instead of from the bottom so it appears to be\n            // horizontal rather than vertical\n            if (horizontal) {\n                drawBottom = drawRight = drawTop = true;\n                drawLeft = false;\n                left = b;\n                right = x;\n                top = y + barLeft;\n                bottom = y + barRight;\n\n                // account for negative bars\n                if (right < left) {\n                    tmp = right;\n                    right = left;\n                    left = tmp;\n                    drawLeft = true;\n                    drawRight = false;\n                }\n            }\n            else {\n                drawLeft = drawRight = drawTop = true;\n                drawBottom = false;\n                left = x + barLeft;\n                right = x + barRight;\n                bottom = b;\n                top = y;\n\n                // account for negative bars\n                if (top < bottom) {\n                    tmp = top;\n                    top = bottom;\n                    bottom = tmp;\n                    drawBottom = true;\n                    drawTop = false;\n                }\n            }\n           \n            // clip\n            if (right < axisx.min || left > axisx.max ||\n                top < axisy.min || bottom > axisy.max)\n                return;\n            \n            if (left < axisx.min) {\n                left = axisx.min;\n                drawLeft = false;\n            }\n\n            if (right > axisx.max) {\n                right = axisx.max;\n                drawRight = false;\n            }\n\n            if (bottom < axisy.min) {\n                bottom = axisy.min;\n                drawBottom = false;\n            }\n            \n            if (top > axisy.max) {\n                top = axisy.max;\n                drawTop = false;\n            }\n\n            left = axisx.p2c(left);\n            bottom = axisy.p2c(bottom);\n            right = axisx.p2c(right);\n            top = axisy.p2c(top);\n            \n            // fill the bar\n            if (fillStyleCallback) {\n                c.beginPath();\n                c.moveTo(left, bottom);\n                c.lineTo(left, top);\n                c.lineTo(right, top);\n                c.lineTo(right, bottom);\n                c.fillStyle = fillStyleCallback(bottom, top);\n                c.fill();\n            }\n\n            // draw outline\n            if (lineWidth > 0 && (drawLeft || drawRight || drawTop || drawBottom)) {\n                c.beginPath();\n\n                // FIXME: inline moveTo is buggy with excanvas\n                c.moveTo(left, bottom + offset);\n                if (drawLeft)\n                    c.lineTo(left, top + offset);\n                else\n                    c.moveTo(left, top + offset);\n                if (drawTop)\n                    c.lineTo(right, top + offset);\n                else\n                    c.moveTo(right, top + offset);\n                if (drawRight)\n                    c.lineTo(right, bottom + offset);\n                else\n                    c.moveTo(right, bottom + offset);\n                if (drawBottom)\n                    c.lineTo(left, bottom + offset);\n                else\n                    c.moveTo(left, bottom + offset);\n                c.stroke();\n            }\n        }\n        \n        function drawSeriesBars(series) {\n            function plotBars(datapoints, barLeft, barRight, offset, fillStyleCallback, axisx, axisy) {\n                var points = datapoints.points, ps = datapoints.pointsize;\n                \n                for (var i = 0; i < points.length; i += ps) {\n                    if (points[i] == null)\n                        continue;\n                    drawBar(points[i], points[i + 1], points[i + 2], barLeft, barRight, offset, fillStyleCallback, axisx, axisy, ctx, series.bars.horizontal, series.bars.lineWidth);\n                }\n            }\n\n            ctx.save();\n            ctx.translate(plotOffset.left, plotOffset.top);\n\n            // FIXME: figure out a way to add shadows (for instance along the right edge)\n            ctx.lineWidth = series.bars.lineWidth;\n            ctx.strokeStyle = series.color;\n            var barLeft = series.bars.align == \"left\" ? 0 : -series.bars.barWidth/2;\n            var fillStyleCallback = series.bars.fill ? function (bottom, top) { return getFillStyle(series.bars, series.color, bottom, top); } : null;\n            plotBars(series.datapoints, barLeft, barLeft + series.bars.barWidth, 0, fillStyleCallback, series.xaxis, series.yaxis);\n            ctx.restore();\n        }\n\n        function getFillStyle(filloptions, seriesColor, bottom, top) {\n            var fill = filloptions.fill;\n            if (!fill)\n                return null;\n\n            if (filloptions.fillColor)\n                return getColorOrGradient(filloptions.fillColor, bottom, top, seriesColor);\n            \n            var c = $.color.parse(seriesColor);\n            c.a = typeof fill == \"number\" ? fill : 0.4;\n            c.normalize();\n            return c.toString();\n        }\n        \n        function insertLegend() {\n            placeholder.find(\".legend\").remove();\n\n            if (!options.legend.show)\n                return;\n            \n            var fragments = [], rowStarted = false,\n                lf = options.legend.labelFormatter, s, label;\n            for (var i = 0; i < series.length; ++i) {\n                s = series[i];\n                label = s.label;\n                if (!label)\n                    continue;\n                \n                if (i % options.legend.noColumns == 0) {\n                    if (rowStarted)\n                        fragments.push('</tr>');\n                    fragments.push('<tr>');\n                    rowStarted = true;\n                }\n\n                if (lf)\n                    label = lf(label, s);\n                \n                fragments.push(\n                    '<td class=\"legendColorBox\"><div style=\"border:1px solid ' + options.legend.labelBoxBorderColor + ';padding:1px\"><div style=\"width:4px;height:0;border:5px solid ' + s.color + ';overflow:hidden\"></div></div></td>' +\n                    '<td class=\"legendLabel\">' + label + '</td>');\n            }\n            if (rowStarted)\n                fragments.push('</tr>');\n            \n            if (fragments.length == 0)\n                return;\n\n            var table = '<table style=\"font-size:smaller;color:' + options.grid.color + '\">' + fragments.join(\"\") + '</table>';\n            if (options.legend.container != null)\n                $(options.legend.container).html(table);\n            else {\n                var pos = \"\",\n                    p = options.legend.position,\n                    m = options.legend.margin;\n                if (m[0] == null)\n                    m = [m, m];\n                if (p.charAt(0) == \"n\")\n                    pos += 'top:' + (m[1] + plotOffset.top) + 'px;';\n                else if (p.charAt(0) == \"s\")\n                    pos += 'bottom:' + (m[1] + plotOffset.bottom) + 'px;';\n                if (p.charAt(1) == \"e\")\n                    pos += 'right:' + (m[0] + plotOffset.right) + 'px;';\n                else if (p.charAt(1) == \"w\")\n                    pos += 'left:' + (m[0] + plotOffset.left) + 'px;';\n                var legend = $('<div class=\"legend\">' + table.replace('style=\"', 'style=\"position:absolute;' + pos +';') + '</div>').appendTo(placeholder);\n                if (options.legend.backgroundOpacity != 0.0) {\n                    // put in the transparent background\n                    // separately to avoid blended labels and\n                    // label boxes\n                    var c = options.legend.backgroundColor;\n                    if (c == null) {\n                        c = options.grid.backgroundColor;\n                        if (c && typeof c == \"string\")\n                            c = $.color.parse(c);\n                        else\n                            c = $.color.extract(legend, 'background-color');\n                        c.a = 1;\n                        c = c.toString();\n                    }\n                    var div = legend.children();\n                    $('<div style=\"position:absolute;width:' + div.width() + 'px;height:' + div.height() + 'px;' + pos +'background-color:' + c + ';\"> </div>').prependTo(legend).css('opacity', options.legend.backgroundOpacity);\n                }\n            }\n        }\n\n\n        // interactive features\n        \n        var highlights = [],\n            redrawTimeout = null;\n        \n        // returns the data item the mouse is over, or null if none is found\n        function findNearbyItem(mouseX, mouseY, seriesFilter) {\n            var maxDistance = options.grid.mouseActiveRadius,\n                smallestDistance = maxDistance * maxDistance + 1,\n                item = null, foundPoint = false, i, j;\n\n            for (i = series.length - 1; i >= 0; --i) {\n                if (!seriesFilter(series[i]))\n                    continue;\n                \n                var s = series[i],\n                    axisx = s.xaxis,\n                    axisy = s.yaxis,\n                    points = s.datapoints.points,\n                    ps = s.datapoints.pointsize,\n                    mx = axisx.c2p(mouseX), // precompute some stuff to make the loop faster\n                    my = axisy.c2p(mouseY),\n                    maxx = maxDistance / axisx.scale,\n                    maxy = maxDistance / axisy.scale;\n\n                // with inverse transforms, we can't use the maxx/maxy\n                // optimization, sadly\n                if (axisx.options.inverseTransform)\n                    maxx = Number.MAX_VALUE;\n                if (axisy.options.inverseTransform)\n                    maxy = Number.MAX_VALUE;\n                \n                if (s.lines.show || s.points.show) {\n                    for (j = 0; j < points.length; j += ps) {\n                        var x = points[j], y = points[j + 1];\n                        if (x == null)\n                            continue;\n                        \n                        // For points and lines, the cursor must be within a\n                        // certain distance to the data point\n                        if (x - mx > maxx || x - mx < -maxx ||\n                            y - my > maxy || y - my < -maxy)\n                            continue;\n\n                        // We have to calculate distances in pixels, not in\n                        // data units, because the scales of the axes may be different\n                        var dx = Math.abs(axisx.p2c(x) - mouseX),\n                            dy = Math.abs(axisy.p2c(y) - mouseY),\n                            dist = dx * dx + dy * dy; // we save the sqrt\n\n                        // use <= to ensure last point takes precedence\n                        // (last generally means on top of)\n                        if (dist < smallestDistance) {\n                            smallestDistance = dist;\n                            item = [i, j / ps];\n                        }\n                    }\n                }\n                    \n                if (s.bars.show && !item) { // no other point can be nearby\n                    var barLeft = s.bars.align == \"left\" ? 0 : -s.bars.barWidth/2,\n                        barRight = barLeft + s.bars.barWidth;\n                    \n                    for (j = 0; j < points.length; j += ps) {\n                        var x = points[j], y = points[j + 1], b = points[j + 2];\n                        if (x == null)\n                            continue;\n  \n                        // for a bar graph, the cursor must be inside the bar\n                        if (series[i].bars.horizontal ? \n                            (mx <= Math.max(b, x) && mx >= Math.min(b, x) && \n                             my >= y + barLeft && my <= y + barRight) :\n                            (mx >= x + barLeft && mx <= x + barRight &&\n                             my >= Math.min(b, y) && my <= Math.max(b, y)))\n                                item = [i, j / ps];\n                    }\n                }\n            }\n\n            if (item) {\n                i = item[0];\n                j = item[1];\n                ps = series[i].datapoints.pointsize;\n                \n                return { datapoint: series[i].datapoints.points.slice(j * ps, (j + 1) * ps),\n                         dataIndex: j,\n                         series: series[i],\n                         seriesIndex: i };\n            }\n            \n            return null;\n        }\n\n        function onMouseMove(e) {\n            if (options.grid.hoverable)\n                triggerClickHoverEvent(\"plothover\", e,\n                                       function (s) { return s[\"hoverable\"] != false; });\n        }\n\n        function onMouseLeave(e) {\n            if (options.grid.hoverable)\n                triggerClickHoverEvent(\"plothover\", e,\n                                       function (s) { return false; });\n        }\n\n        function onClick(e) {\n            triggerClickHoverEvent(\"plotclick\", e,\n                                   function (s) { return s[\"clickable\"] != false; });\n        }\n\n        // trigger click or hover event (they send the same parameters\n        // so we share their code)\n        function triggerClickHoverEvent(eventname, event, seriesFilter) {\n            var offset = eventHolder.offset(),\n                canvasX = event.pageX - offset.left - plotOffset.left,\n                canvasY = event.pageY - offset.top - plotOffset.top,\n            pos = canvasToAxisCoords({ left: canvasX, top: canvasY });\n\n            pos.pageX = event.pageX;\n            pos.pageY = event.pageY;\n\n            var item = findNearbyItem(canvasX, canvasY, seriesFilter);\n\n            if (item) {\n                // fill in mouse pos for any listeners out there\n                item.pageX = parseInt(item.series.xaxis.p2c(item.datapoint[0]) + offset.left + plotOffset.left);\n                item.pageY = parseInt(item.series.yaxis.p2c(item.datapoint[1]) + offset.top + plotOffset.top);\n            }\n\n            if (options.grid.autoHighlight) {\n                // clear auto-highlights\n                for (var i = 0; i < highlights.length; ++i) {\n                    var h = highlights[i];\n                    if (h.auto == eventname &&\n                        !(item && h.series == item.series &&\n                          h.point[0] == item.datapoint[0] &&\n                          h.point[1] == item.datapoint[1]))\n                        unhighlight(h.series, h.point);\n                }\n                \n                if (item)\n                    highlight(item.series, item.datapoint, eventname);\n            }\n            \n            placeholder.trigger(eventname, [ pos, item ]);\n        }\n\n        function triggerRedrawOverlay() {\n            if (!redrawTimeout)\n                redrawTimeout = setTimeout(drawOverlay, 30);\n        }\n\n        function drawOverlay() {\n            redrawTimeout = null;\n\n            // draw highlights\n            octx.save();\n            octx.clearRect(0, 0, canvasWidth, canvasHeight);\n            octx.translate(plotOffset.left, plotOffset.top);\n            \n            var i, hi;\n            for (i = 0; i < highlights.length; ++i) {\n                hi = highlights[i];\n\n                if (hi.series.bars.show)\n                    drawBarHighlight(hi.series, hi.point);\n                else\n                    drawPointHighlight(hi.series, hi.point);\n            }\n            octx.restore();\n            \n            executeHooks(hooks.drawOverlay, [octx]);\n        }\n        \n        function highlight(s, point, auto) {\n            if (typeof s == \"number\")\n                s = series[s];\n\n            if (typeof point == \"number\") {\n                var ps = s.datapoints.pointsize;\n                point = s.datapoints.points.slice(ps * point, ps * (point + 1));\n            }\n\n            var i = indexOfHighlight(s, point);\n            if (i == -1) {\n                highlights.push({ series: s, point: point, auto: auto });\n\n                triggerRedrawOverlay();\n            }\n            else if (!auto)\n                highlights[i].auto = false;\n        }\n            \n        function unhighlight(s, point) {\n            if (s == null && point == null) {\n                highlights = [];\n                triggerRedrawOverlay();\n            }\n            \n            if (typeof s == \"number\")\n                s = series[s];\n\n            if (typeof point == \"number\")\n                point = s.data[point];\n\n            var i = indexOfHighlight(s, point);\n            if (i != -1) {\n                highlights.splice(i, 1);\n\n                triggerRedrawOverlay();\n            }\n        }\n        \n        function indexOfHighlight(s, p) {\n            for (var i = 0; i < highlights.length; ++i) {\n                var h = highlights[i];\n                if (h.series == s && h.point[0] == p[0]\n                    && h.point[1] == p[1])\n                    return i;\n            }\n            return -1;\n        }\n        \n        function drawPointHighlight(series, point) {\n            var x = point[0], y = point[1],\n                axisx = series.xaxis, axisy = series.yaxis;\n            \n            if (x < axisx.min || x > axisx.max || y < axisy.min || y > axisy.max)\n                return;\n            \n            var pointRadius = series.points.radius + series.points.lineWidth / 2;\n            octx.lineWidth = pointRadius;\n            octx.strokeStyle = $.color.parse(series.color).scale('a', 0.5).toString();\n            var radius = 1.5 * pointRadius,\n                x = axisx.p2c(x),\n                y = axisy.p2c(y);\n            \n            octx.beginPath();\n            if (series.points.symbol == \"circle\")\n                octx.arc(x, y, radius, 0, 2 * Math.PI, false);\n            else\n                series.points.symbol(octx, x, y, radius, false);\n            octx.closePath();\n            octx.stroke();\n        }\n\n        function drawBarHighlight(series, point) {\n            octx.lineWidth = series.bars.lineWidth;\n            octx.strokeStyle = $.color.parse(series.color).scale('a', 0.5).toString();\n            var fillStyle = $.color.parse(series.color).scale('a', 0.5).toString();\n            var barLeft = series.bars.align == \"left\" ? 0 : -series.bars.barWidth/2;\n            drawBar(point[0], point[1], point[2] || 0, barLeft, barLeft + series.bars.barWidth,\n                    0, function () { return fillStyle; }, series.xaxis, series.yaxis, octx, series.bars.horizontal, series.bars.lineWidth);\n        }\n\n        function getColorOrGradient(spec, bottom, top, defaultColor) {\n            if (typeof spec == \"string\")\n                return spec;\n            else {\n                // assume this is a gradient spec; IE currently only\n                // supports a simple vertical gradient properly, so that's\n                // what we support too\n                var gradient = ctx.createLinearGradient(0, top, 0, bottom);\n                \n                for (var i = 0, l = spec.colors.length; i < l; ++i) {\n                    var c = spec.colors[i];\n                    if (typeof c != \"string\") {\n                        var co = $.color.parse(defaultColor);\n                        if (c.brightness != null)\n                            co = co.scale('rgb', c.brightness)\n                        if (c.opacity != null)\n                            co.a *= c.opacity;\n                        c = co.toString();\n                    }\n                    gradient.addColorStop(i / (l - 1), c);\n                }\n                \n                return gradient;\n            }\n        }\n    }\n\n    $.plot = function(placeholder, data, options) {\n        //var t0 = new Date();\n        var plot = new Plot($(placeholder), data, options, $.plot.plugins);\n        //(window.console ? console.log : alert)(\"time used (msecs): \" + ((new Date()).getTime() - t0.getTime()));\n        return plot;\n    };\n\n    $.plot.version = \"0.7\";\n    \n    $.plot.plugins = [];\n\n    // returns a string with the date d formatted according to fmt\n    $.plot.formatDate = function(d, fmt, monthNames) {\n        var leftPad = function(n) {\n            n = \"\" + n;\n            return n.length == 1 ? \"0\" + n : n;\n        };\n        \n        var r = [];\n        var escape = false, padNext = false;\n        var hours = d.getUTCHours();\n        var isAM = hours < 12;\n        if (monthNames == null)\n            monthNames = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\n\n        if (fmt.search(/%p|%P/) != -1) {\n            if (hours > 12) {\n                hours = hours - 12;\n            } else if (hours == 0) {\n                hours = 12;\n            }\n        }\n        for (var i = 0; i < fmt.length; ++i) {\n            var c = fmt.charAt(i);\n            \n            if (escape) {\n                switch (c) {\n                case 'h': c = \"\" + hours; break;\n                case 'H': c = leftPad(hours); break;\n                case 'M': c = leftPad(d.getUTCMinutes()); break;\n                case 'S': c = leftPad(d.getUTCSeconds()); break;\n                case 'd': c = \"\" + d.getUTCDate(); break;\n                case 'm': c = \"\" + (d.getUTCMonth() + 1); break;\n                case 'y': c = \"\" + d.getUTCFullYear(); break;\n                case 'b': c = \"\" + monthNames[d.getUTCMonth()]; break;\n                case 'p': c = (isAM) ? (\"\" + \"am\") : (\"\" + \"pm\"); break;\n                case 'P': c = (isAM) ? (\"\" + \"AM\") : (\"\" + \"PM\"); break;\n                case '0': c = \"\"; padNext = true; break;\n                }\n                if (c && padNext) {\n                    c = leftPad(c);\n                    padNext = false;\n                }\n                r.push(c);\n                if (!padNext)\n                    escape = false;\n            }\n            else {\n                if (c == \"%\")\n                    escape = true;\n                else\n                    r.push(c);\n            }\n        }\n        return r.join(\"\");\n    };\n    \n    // round to nearby lower multiple of base\n    function floorInBase(n, base) {\n        return base * Math.floor(n / base);\n    }\n    \n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.navigate.js",
    "content": "/*\nFlot plugin for adding panning and zooming capabilities to a plot.\n\nThe default behaviour is double click and scrollwheel up/down to zoom\nin, drag to pan. The plugin defines plot.zoom({ center }),\nplot.zoomOut() and plot.pan(offset) so you easily can add custom\ncontrols. It also fires a \"plotpan\" and \"plotzoom\" event when\nsomething happens, useful for synchronizing plots.\n\nOptions:\n\n  zoom: {\n    interactive: false\n    trigger: \"dblclick\" // or \"click\" for single click\n    amount: 1.5         // 2 = 200% (zoom in), 0.5 = 50% (zoom out)\n  }\n  \n  pan: {\n    interactive: false\n    cursor: \"move\"      // CSS mouse cursor value used when dragging, e.g. \"pointer\"\n    frameRate: 20\n  }\n\n  xaxis, yaxis, x2axis, y2axis: {\n    zoomRange: null  // or [number, number] (min range, max range) or false\n    panRange: null   // or [number, number] (min, max) or false\n  }\n  \n\"interactive\" enables the built-in drag/click behaviour. If you enable\ninteractive for pan, then you'll have a basic plot that supports\nmoving around; the same for zoom.\n\n\"amount\" specifies the default amount to zoom in (so 1.5 = 150%)\nrelative to the current viewport.\n\n\"cursor\" is a standard CSS mouse cursor string used for visual\nfeedback to the user when dragging.\n\n\"frameRate\" specifies the maximum number of times per second the plot\nwill update itself while the user is panning around on it (set to null\nto disable intermediate pans, the plot will then not update until the\nmouse button is released).\n\n\"zoomRange\" is the interval in which zooming can happen, e.g. with\nzoomRange: [1, 100] the zoom will never scale the axis so that the\ndifference between min and max is smaller than 1 or larger than 100.\nYou can set either end to null to ignore, e.g. [1, null]. If you set\nzoomRange to false, zooming on that axis will be disabled.\n\n\"panRange\" confines the panning to stay within a range, e.g. with\npanRange: [-10, 20] panning stops at -10 in one end and at 20 in the\nother. Either can be null, e.g. [-10, null]. If you set\npanRange to false, panning on that axis will be disabled.\n\nExample API usage:\n\n  plot = $.plot(...);\n  \n  // zoom default amount in on the pixel (10, 20) \n  plot.zoom({ center: { left: 10, top: 20 } });\n\n  // zoom out again\n  plot.zoomOut({ center: { left: 10, top: 20 } });\n\n  // zoom 200% in on the pixel (10, 20) \n  plot.zoom({ amount: 2, center: { left: 10, top: 20 } });\n  \n  // pan 100 pixels to the left and 20 down\n  plot.pan({ left: -100, top: 20 })\n\nHere, \"center\" specifies where the center of the zooming should\nhappen. Note that this is defined in pixel space, not the space of the\ndata points (you can use the p2c helpers on the axes in Flot to help\nyou convert between these).\n\n\"amount\" is the amount to zoom the viewport relative to the current\nrange, so 1 is 100% (i.e. no change), 1.5 is 150% (zoom in), 0.7 is\n70% (zoom out). You can set the default in the options.\n  \n*/\n\n\n// First two dependencies, jquery.event.drag.js and\n// jquery.mousewheel.js, we put them inline here to save people the\n// effort of downloading them.\n\n/*\njquery.event.drag.js ~ v1.5 ~ Copyright (c) 2008, Three Dub Media (http://threedubmedia.com)  \nLicensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-LICENSE.txt\n*/\n(function(E){E.fn.drag=function(L,K,J){if(K){this.bind(\"dragstart\",L)}if(J){this.bind(\"dragend\",J)}return !L?this.trigger(\"drag\"):this.bind(\"drag\",K?K:L)};var A=E.event,B=A.special,F=B.drag={not:\":input\",distance:0,which:1,dragging:false,setup:function(J){J=E.extend({distance:F.distance,which:F.which,not:F.not},J||{});J.distance=I(J.distance);A.add(this,\"mousedown\",H,J);if(this.attachEvent){this.attachEvent(\"ondragstart\",D)}},teardown:function(){A.remove(this,\"mousedown\",H);if(this===F.dragging){F.dragging=F.proxy=false}G(this,true);if(this.detachEvent){this.detachEvent(\"ondragstart\",D)}}};B.dragstart=B.dragend={setup:function(){},teardown:function(){}};function H(L){var K=this,J,M=L.data||{};if(M.elem){K=L.dragTarget=M.elem;L.dragProxy=F.proxy||K;L.cursorOffsetX=M.pageX-M.left;L.cursorOffsetY=M.pageY-M.top;L.offsetX=L.pageX-L.cursorOffsetX;L.offsetY=L.pageY-L.cursorOffsetY}else{if(F.dragging||(M.which>0&&L.which!=M.which)||E(L.target).is(M.not)){return }}switch(L.type){case\"mousedown\":E.extend(M,E(K).offset(),{elem:K,target:L.target,pageX:L.pageX,pageY:L.pageY});A.add(document,\"mousemove mouseup\",H,M);G(K,false);F.dragging=null;return false;case !F.dragging&&\"mousemove\":if(I(L.pageX-M.pageX)+I(L.pageY-M.pageY)<M.distance){break}L.target=M.target;J=C(L,\"dragstart\",K);if(J!==false){F.dragging=K;F.proxy=L.dragProxy=E(J||K)[0]}case\"mousemove\":if(F.dragging){J=C(L,\"drag\",K);if(B.drop){B.drop.allowed=(J!==false);B.drop.handler(L)}if(J!==false){break}L.type=\"mouseup\"}case\"mouseup\":A.remove(document,\"mousemove mouseup\",H);if(F.dragging){if(B.drop){B.drop.handler(L)}C(L,\"dragend\",K)}G(K,true);F.dragging=F.proxy=M.elem=false;break}return true}function C(M,K,L){M.type=K;var J=E.event.handle.call(L,M);return J===false?false:J||M.result}function I(J){return Math.pow(J,2)}function D(){return(F.dragging===false)}function G(K,J){if(!K){return }K.unselectable=J?\"off\":\"on\";K.onselectstart=function(){return J};if(K.style){K.style.MozUserSelect=J?\"\":\"none\"}}})(jQuery);\n\n\n/* jquery.mousewheel.min.js\n * Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)\n * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)\n * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.\n * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.\n * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.\n *\n * Version: 3.0.2\n * \n * Requires: 1.2.2+\n */\n(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);\n\n\n\n\n(function ($) {\n    var options = {\n        xaxis: {\n            zoomRange: null, // or [number, number] (min range, max range)\n            panRange: null // or [number, number] (min, max)\n        },\n        zoom: {\n            interactive: false,\n            trigger: \"dblclick\", // or \"click\" for single click\n            amount: 1.5 // how much to zoom relative to current position, 2 = 200% (zoom in), 0.5 = 50% (zoom out)\n        },\n        pan: {\n            interactive: false,\n            cursor: \"move\",\n            frameRate: 20\n        }\n    };\n\n    function init(plot) {\n        function onZoomClick(e, zoomOut) {\n            var c = plot.offset();\n            c.left = e.pageX - c.left;\n            c.top = e.pageY - c.top;\n            if (zoomOut)\n                plot.zoomOut({ center: c });\n            else\n                plot.zoom({ center: c });\n        }\n\n        function onMouseWheel(e, delta) {\n            onZoomClick(e, delta < 0);\n            return false;\n        }\n        \n        var prevCursor = 'default', prevPageX = 0, prevPageY = 0,\n            panTimeout = null;\n\n        function onDragStart(e) {\n            if (e.which != 1)  // only accept left-click\n                return false;\n            var c = plot.getPlaceholder().css('cursor');\n            if (c)\n                prevCursor = c;\n            plot.getPlaceholder().css('cursor', plot.getOptions().pan.cursor);\n            prevPageX = e.pageX;\n            prevPageY = e.pageY;\n        }\n        \n        function onDrag(e) {\n            var frameRate = plot.getOptions().pan.frameRate;\n            if (panTimeout || !frameRate)\n                return;\n\n            panTimeout = setTimeout(function () {\n                plot.pan({ left: prevPageX - e.pageX,\n                           top: prevPageY - e.pageY });\n                prevPageX = e.pageX;\n                prevPageY = e.pageY;\n                                                    \n                panTimeout = null;\n            }, 1 / frameRate * 1000);\n        }\n\n        function onDragEnd(e) {\n            if (panTimeout) {\n                clearTimeout(panTimeout);\n                panTimeout = null;\n            }\n                    \n            plot.getPlaceholder().css('cursor', prevCursor);\n            plot.pan({ left: prevPageX - e.pageX,\n                       top: prevPageY - e.pageY });\n        }\n        \n        function bindEvents(plot, eventHolder) {\n            var o = plot.getOptions();\n            if (o.zoom.interactive) {\n                eventHolder[o.zoom.trigger](onZoomClick);\n                eventHolder.mousewheel(onMouseWheel);\n            }\n\n            if (o.pan.interactive) {\n                eventHolder.bind(\"dragstart\", { distance: 10 }, onDragStart);\n                eventHolder.bind(\"drag\", onDrag);\n                eventHolder.bind(\"dragend\", onDragEnd);\n            }\n        }\n\n        plot.zoomOut = function (args) {\n            if (!args)\n                args = {};\n            \n            if (!args.amount)\n                args.amount = plot.getOptions().zoom.amount\n\n            args.amount = 1 / args.amount;\n            plot.zoom(args);\n        }\n        \n        plot.zoom = function (args) {\n            if (!args)\n                args = {};\n            \n            var c = args.center,\n                amount = args.amount || plot.getOptions().zoom.amount,\n                w = plot.width(), h = plot.height();\n\n            if (!c)\n                c = { left: w / 2, top: h / 2 };\n                \n            var xf = c.left / w,\n                yf = c.top / h,\n                minmax = {\n                    x: {\n                        min: c.left - xf * w / amount,\n                        max: c.left + (1 - xf) * w / amount\n                    },\n                    y: {\n                        min: c.top - yf * h / amount,\n                        max: c.top + (1 - yf) * h / amount\n                    }\n                };\n\n            $.each(plot.getAxes(), function(_, axis) {\n                var opts = axis.options,\n                    min = minmax[axis.direction].min,\n                    max = minmax[axis.direction].max,\n                    zr = opts.zoomRange;\n\n                if (zr === false) // no zooming on this axis\n                    return;\n                    \n                min = axis.c2p(min);\n                max = axis.c2p(max);\n                if (min > max) {\n                    // make sure min < max\n                    var tmp = min;\n                    min = max;\n                    max = tmp;\n                }\n\n                var range = max - min;\n                if (zr &&\n                    ((zr[0] != null && range < zr[0]) ||\n                     (zr[1] != null && range > zr[1])))\n                    return;\n            \n                opts.min = min;\n                opts.max = max;\n            });\n            \n            plot.setupGrid();\n            plot.draw();\n            \n            if (!args.preventEvent)\n                plot.getPlaceholder().trigger(\"plotzoom\", [ plot ]);\n        }\n\n        plot.pan = function (args) {\n            var delta = {\n                x: +args.left,\n                y: +args.top\n            };\n\n            if (isNaN(delta.x))\n                delta.x = 0;\n            if (isNaN(delta.y))\n                delta.y = 0;\n\n            $.each(plot.getAxes(), function (_, axis) {\n                var opts = axis.options,\n                    min, max, d = delta[axis.direction];\n\n                min = axis.c2p(axis.p2c(axis.min) + d),\n                max = axis.c2p(axis.p2c(axis.max) + d);\n\n                var pr = opts.panRange;\n                if (pr === false) // no panning on this axis\n                    return;\n                \n                if (pr) {\n                    // check whether we hit the wall\n                    if (pr[0] != null && pr[0] > min) {\n                        d = pr[0] - min;\n                        min += d;\n                        max += d;\n                    }\n                    \n                    if (pr[1] != null && pr[1] < max) {\n                        d = pr[1] - max;\n                        min += d;\n                        max += d;\n                    }\n                }\n                \n                opts.min = min;\n                opts.max = max;\n            });\n            \n            plot.setupGrid();\n            plot.draw();\n            \n            if (!args.preventEvent)\n                plot.getPlaceholder().trigger(\"plotpan\", [ plot ]);\n        }\n\n        function shutdown(plot, eventHolder) {\n            eventHolder.unbind(plot.getOptions().zoom.trigger, onZoomClick);\n            eventHolder.unbind(\"mousewheel\", onMouseWheel);\n            eventHolder.unbind(\"dragstart\", onDragStart);\n            eventHolder.unbind(\"drag\", onDrag);\n            eventHolder.unbind(\"dragend\", onDragEnd);\n            if (panTimeout)\n                clearTimeout(panTimeout);\n        }\n        \n        plot.hooks.bindEvents.push(bindEvents);\n        plot.hooks.shutdown.push(shutdown);\n    }\n    \n    $.plot.plugins.push({\n        init: init,\n        options: options,\n        name: 'navigate',\n        version: '1.3'\n    });\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.pie.js",
    "content": "/*\nFlot plugin for rendering pie charts. The plugin assumes the data is \ncoming is as a single data value for each series, and each of those \nvalues is a positive value or zero (negative numbers don't make \nany sense and will cause strange effects). The data values do \nNOT need to be passed in as percentage values because it \ninternally calculates the total and percentages.\n\n* Created by Brian Medendorp, June 2009\n* Updated November 2009 with contributions from: btburnett3, Anthony Aragues and Xavi Ivars\n\n* Changes:\n\t2009-10-22: lineJoin set to round\n\t2009-10-23: IE full circle fix, donut\n\t2009-11-11: Added basic hover from btburnett3 - does not work in IE, and center is off in Chrome and Opera\n\t2009-11-17: Added IE hover capability submitted by Anthony Aragues\n\t2009-11-18: Added bug fix submitted by Xavi Ivars (issues with arrays when other JS libraries are included as well)\n\t\t\n\nAvailable options are:\nseries: {\n\tpie: {\n\t\tshow: true/false\n\t\tradius: 0-1 for percentage of fullsize, or a specified pixel length, or 'auto'\n\t\tinnerRadius: 0-1 for percentage of fullsize or a specified pixel length, for creating a donut effect\n\t\tstartAngle: 0-2 factor of PI used for starting angle (in radians) i.e 3/2 starts at the top, 0 and 2 have the same result\n\t\ttilt: 0-1 for percentage to tilt the pie, where 1 is no tilt, and 0 is completely flat (nothing will show)\n\t\toffset: {\n\t\t\ttop: integer value to move the pie up or down\n\t\t\tleft: integer value to move the pie left or right, or 'auto'\n\t\t},\n\t\tstroke: {\n\t\t\tcolor: any hexidecimal color value (other formats may or may not work, so best to stick with something like '#FFF')\n\t\t\twidth: integer pixel width of the stroke\n\t\t},\n\t\tlabel: {\n\t\t\tshow: true/false, or 'auto'\n\t\t\tformatter:  a user-defined function that modifies the text/style of the label text\n\t\t\tradius: 0-1 for percentage of fullsize, or a specified pixel length\n\t\t\tbackground: {\n\t\t\t\tcolor: any hexidecimal color value (other formats may or may not work, so best to stick with something like '#000')\n\t\t\t\topacity: 0-1\n\t\t\t},\n\t\t\tthreshold: 0-1 for the percentage value at which to hide labels (if they're too small)\n\t\t},\n\t\tcombine: {\n\t\t\tthreshold: 0-1 for the percentage value at which to combine slices (if they're too small)\n\t\t\tcolor: any hexidecimal color value (other formats may or may not work, so best to stick with something like '#CCC'), if null, the plugin will automatically use the color of the first slice to be combined\n\t\t\tlabel: any text value of what the combined slice should be labeled\n\t\t}\n\t\thighlight: {\n\t\t\topacity: 0-1\n\t\t}\n\t}\n}\n\nMore detail and specific examples can be found in the included HTML file.\n\n*/\n\n(function ($) \n{\n\tfunction init(plot) // this is the \"body\" of the plugin\n\t{\n\t\tvar canvas = null;\n\t\tvar target = null;\n\t\tvar maxRadius = null;\n\t\tvar centerLeft = null;\n\t\tvar centerTop = null;\n\t\tvar total = 0;\n\t\tvar redraw = true;\n\t\tvar redrawAttempts = 10;\n\t\tvar shrink = 0.95;\n\t\tvar legendWidth = 0;\n\t\tvar processed = false;\n\t\tvar raw = false;\n\t\t\n\t\t// interactive variables\t\n\t\tvar highlights = [];\t\n\t\n\t\t// add hook to determine if pie plugin in enabled, and then perform necessary operations\n\t\tplot.hooks.processOptions.push(checkPieEnabled);\n\t\tplot.hooks.bindEvents.push(bindEvents);\t\n\n\t\t// check to see if the pie plugin is enabled\n\t\tfunction checkPieEnabled(plot, options)\n\t\t{\n\t\t\tif (options.series.pie.show)\n\t\t\t{\n\t\t\t\t//disable grid\n\t\t\t\toptions.grid.show = false;\n\t\t\t\t\n\t\t\t\t// set labels.show\n\t\t\t\tif (options.series.pie.label.show=='auto')\n\t\t\t\t\tif (options.legend.show)\n\t\t\t\t\t\toptions.series.pie.label.show = false;\n\t\t\t\t\telse\n\t\t\t\t\t\toptions.series.pie.label.show = true;\n\t\t\t\t\n\t\t\t\t// set radius\n\t\t\t\tif (options.series.pie.radius=='auto')\n\t\t\t\t\tif (options.series.pie.label.show)\n\t\t\t\t\t\toptions.series.pie.radius = 3/4;\n\t\t\t\t\telse\n\t\t\t\t\t\toptions.series.pie.radius = 1;\n\t\t\t\t\t\t\n\t\t\t\t// ensure sane tilt\n\t\t\t\tif (options.series.pie.tilt>1)\n\t\t\t\t\toptions.series.pie.tilt=1;\n\t\t\t\tif (options.series.pie.tilt<0)\n\t\t\t\t\toptions.series.pie.tilt=0;\n\t\t\t\n\t\t\t\t// add processData hook to do transformations on the data\n\t\t\t\tplot.hooks.processDatapoints.push(processDatapoints);\n\t\t\t\tplot.hooks.drawOverlay.push(drawOverlay);\t\n\t\t\t\t\n\t\t\t\t// add draw hook\n\t\t\t\tplot.hooks.draw.push(draw);\n\t\t\t}\n\t\t}\n\t\n\t\t// bind hoverable events\n\t\tfunction bindEvents(plot, eventHolder) \t\t\n\t\t{\t\t\n\t\t\tvar options = plot.getOptions();\n\t\t\t\n\t\t\tif (options.series.pie.show && options.grid.hoverable)\n\t\t\t\teventHolder.unbind('mousemove').mousemove(onMouseMove);\n\t\t\t\t\n\t\t\tif (options.series.pie.show && options.grid.clickable)\n\t\t\t\teventHolder.unbind('click').click(onClick);\n\t\t}\t\n\t\t\n\n\t\t// debugging function that prints out an object\n\t\tfunction alertObject(obj)\n\t\t{\n\t\t\tvar msg = '';\n\t\t\tfunction traverse(obj, depth)\n\t\t\t{\n\t\t\t\tif (!depth)\n\t\t\t\t\tdepth = 0;\n\t\t\t\tfor (var i = 0; i < obj.length; ++i)\n\t\t\t\t{\n\t\t\t\t\tfor (var j=0; j<depth; j++)\n\t\t\t\t\t\tmsg += '\\t';\n\t\t\t\t\n\t\t\t\t\tif( typeof obj[i] == \"object\")\n\t\t\t\t\t{\t// its an object\n\t\t\t\t\t\tmsg += ''+i+':\\n';\n\t\t\t\t\t\ttraverse(obj[i], depth+1);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\t// its a value\n\t\t\t\t\t\tmsg += ''+i+': '+obj[i]+'\\n';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttraverse(obj);\n\t\t\talert(msg);\n\t\t}\n\t\t\n\t\tfunction calcTotal(data)\n\t\t{\n\t\t\tfor (var i = 0; i < data.length; ++i)\n\t\t\t{\n\t\t\t\tvar item = parseFloat(data[i].data[0][1]);\n\t\t\t\tif (item)\n\t\t\t\t\ttotal += item;\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tfunction processDatapoints(plot, series, data, datapoints) \n\t\t{\t\n\t\t\tif (!processed)\n\t\t\t{\n\t\t\t\tprocessed = true;\n\t\t\t\n\t\t\t\tcanvas = plot.getCanvas();\n\t\t\t\ttarget = $(canvas).parent();\n\t\t\t\toptions = plot.getOptions();\n\t\t\t\n\t\t\t\tplot.setData(combine(plot.getData()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tfunction setupPie()\n\t\t{\n\t\t\tlegendWidth = target.children().filter('.legend').children().width();\n\t\t\n\t\t\t// calculate maximum radius and center point\n\t\t\tmaxRadius =  Math.min(canvas.width,(canvas.height/options.series.pie.tilt))/2;\n\t\t\tcenterTop = (canvas.height/2)+options.series.pie.offset.top;\n\t\t\tcenterLeft = (canvas.width/2);\n\t\t\t\n\t\t\tif (options.series.pie.offset.left=='auto')\n\t\t\t\tif (options.legend.position.match('w'))\n\t\t\t\t\tcenterLeft += legendWidth/2;\n\t\t\t\telse\n\t\t\t\t\tcenterLeft -= legendWidth/2;\n\t\t\telse\n\t\t\t\tcenterLeft += options.series.pie.offset.left;\n\t\t\t\t\t\n\t\t\tif (centerLeft<maxRadius)\n\t\t\t\tcenterLeft = maxRadius;\n\t\t\telse if (centerLeft>canvas.width-maxRadius)\n\t\t\t\tcenterLeft = canvas.width-maxRadius;\n\t\t}\n\t\t\n\t\tfunction fixData(data)\n\t\t{\n\t\t\tfor (var i = 0; i < data.length; ++i)\n\t\t\t{\n\t\t\t\tif (typeof(data[i].data)=='number')\n\t\t\t\t\tdata[i].data = [[1,data[i].data]];\n\t\t\t\telse if (typeof(data[i].data)=='undefined' || typeof(data[i].data[0])=='undefined')\n\t\t\t\t{\n\t\t\t\t\tif (typeof(data[i].data)!='undefined' && typeof(data[i].data.label)!='undefined')\n\t\t\t\t\t\tdata[i].label = data[i].data.label; // fix weirdness coming from flot\n\t\t\t\t\tdata[i].data = [[1,0]];\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn data;\n\t\t}\n\t\t\n\t\tfunction combine(data)\n\t\t{\n\t\t\tdata = fixData(data);\n\t\t\tcalcTotal(data);\n\t\t\tvar combined = 0;\n\t\t\tvar numCombined = 0;\n\t\t\tvar color = options.series.pie.combine.color;\n\t\t\t\n\t\t\tvar newdata = [];\n\t\t\tfor (var i = 0; i < data.length; ++i)\n\t\t\t{\n\t\t\t\t// make sure its a number\n\t\t\t\tdata[i].data[0][1] = parseFloat(data[i].data[0][1]);\n\t\t\t\tif (!data[i].data[0][1])\n\t\t\t\t\tdata[i].data[0][1] = 0;\n\t\t\t\t\t\n\t\t\t\tif (data[i].data[0][1]/total<=options.series.pie.combine.threshold)\n\t\t\t\t{\n\t\t\t\t\tcombined += data[i].data[0][1];\n\t\t\t\t\tnumCombined++;\n\t\t\t\t\tif (!color)\n\t\t\t\t\t\tcolor = data[i].color;\n\t\t\t\t}\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnewdata.push({\n\t\t\t\t\t\tdata: [[1,data[i].data[0][1]]], \n\t\t\t\t\t\tcolor: data[i].color, \n\t\t\t\t\t\tlabel: data[i].label,\n\t\t\t\t\t\tangle: (data[i].data[0][1]*(Math.PI*2))/total,\n\t\t\t\t\t\tpercent: (data[i].data[0][1]/total*100)\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (numCombined>0)\n\t\t\t\tnewdata.push({\n\t\t\t\t\tdata: [[1,combined]], \n\t\t\t\t\tcolor: color, \n\t\t\t\t\tlabel: options.series.pie.combine.label,\n\t\t\t\t\tangle: (combined*(Math.PI*2))/total,\n\t\t\t\t\tpercent: (combined/total*100)\n\t\t\t\t});\n\t\t\treturn newdata;\n\t\t}\t\t\n\t\t\n\t\tfunction draw(plot, newCtx)\n\t\t{\n\t\t\tif (!target) return; // if no series were passed\n\t\t\tctx = newCtx;\n\t\t\n\t\t\tsetupPie();\n\t\t\tvar slices = plot.getData();\n\t\t\n\t\t\tvar attempts = 0;\n\t\t\twhile (redraw && attempts<redrawAttempts)\n\t\t\t{\n\t\t\t\tredraw = false;\n\t\t\t\tif (attempts>0)\n\t\t\t\t\tmaxRadius *= shrink;\n\t\t\t\tattempts += 1;\n\t\t\t\tclear();\n\t\t\t\tif (options.series.pie.tilt<=0.8)\n\t\t\t\t\tdrawShadow();\n\t\t\t\tdrawPie();\n\t\t\t}\n\t\t\tif (attempts >= redrawAttempts) {\n\t\t\t\tclear();\n\t\t\t\ttarget.prepend('<div class=\"error\">Could not draw pie with labels contained inside canvas</div>');\n\t\t\t}\n\t\t\t\n\t\t\tif ( plot.setSeries && plot.insertLegend )\n\t\t\t{\n\t\t\t\tplot.setSeries(slices);\n\t\t\t\tplot.insertLegend();\n\t\t\t}\n\t\t\t\n\t\t\t// we're actually done at this point, just defining internal functions at this point\n\t\t\t\n\t\t\tfunction clear()\n\t\t\t{\n\t\t\t\tctx.clearRect(0,0,canvas.width,canvas.height);\n\t\t\t\ttarget.children().filter('.pieLabel, .pieLabelBackground').remove();\n\t\t\t}\n\t\t\t\n\t\t\tfunction drawShadow()\n\t\t\t{\n\t\t\t\tvar shadowLeft = 5;\n\t\t\t\tvar shadowTop = 15;\n\t\t\t\tvar edge = 10;\n\t\t\t\tvar alpha = 0.02;\n\t\t\t\n\t\t\t\t// set radius\n\t\t\t\tif (options.series.pie.radius>1)\n\t\t\t\t\tvar radius = options.series.pie.radius;\n\t\t\t\telse\n\t\t\t\t\tvar radius = maxRadius * options.series.pie.radius;\n\t\t\t\t\t\n\t\t\t\tif (radius>=(canvas.width/2)-shadowLeft || radius*options.series.pie.tilt>=(canvas.height/2)-shadowTop || radius<=edge)\n\t\t\t\t\treturn;\t// shadow would be outside canvas, so don't draw it\n\t\t\t\n\t\t\t\tctx.save();\n\t\t\t\tctx.translate(shadowLeft,shadowTop);\n\t\t\t\tctx.globalAlpha = alpha;\n\t\t\t\tctx.fillStyle = '#000';\n\n\t\t\t\t// center and rotate to starting position\n\t\t\t\tctx.translate(centerLeft,centerTop);\n\t\t\t\tctx.scale(1, options.series.pie.tilt);\n\t\t\t\t\n\t\t\t\t//radius -= edge;\n\t\t\t\tfor (var i=1; i<=edge; i++)\n\t\t\t\t{\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tctx.arc(0,0,radius,0,Math.PI*2,false);\n\t\t\t\t\tctx.fill();\n\t\t\t\t\tradius -= i;\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tctx.restore();\n\t\t\t}\n\t\t\t\n\t\t\tfunction drawPie()\n\t\t\t{\n\t\t\t\tstartAngle = Math.PI*options.series.pie.startAngle;\n\t\t\t\t\n\t\t\t\t// set radius\n\t\t\t\tif (options.series.pie.radius>1)\n\t\t\t\t\tvar radius = options.series.pie.radius;\n\t\t\t\telse\n\t\t\t\t\tvar radius = maxRadius * options.series.pie.radius;\n\t\t\t\t\n\t\t\t\t// center and rotate to starting position\n\t\t\t\tctx.save();\n\t\t\t\tctx.translate(centerLeft,centerTop);\n\t\t\t\tctx.scale(1, options.series.pie.tilt);\n\t\t\t\t//ctx.rotate(startAngle); // start at top; -- This doesn't work properly in Opera\n\t\t\t\t\n\t\t\t\t// draw slices\n\t\t\t\tctx.save();\n\t\t\t\tvar currentAngle = startAngle;\n\t\t\t\tfor (var i = 0; i < slices.length; ++i)\n\t\t\t\t{\n\t\t\t\t\tslices[i].startAngle = currentAngle;\n\t\t\t\t\tdrawSlice(slices[i].angle, slices[i].color, true);\n\t\t\t\t}\n\t\t\t\tctx.restore();\n\t\t\t\t\n\t\t\t\t// draw slice outlines\n\t\t\t\tctx.save();\n\t\t\t\tctx.lineWidth = options.series.pie.stroke.width;\n\t\t\t\tcurrentAngle = startAngle;\n\t\t\t\tfor (var i = 0; i < slices.length; ++i)\n\t\t\t\t\tdrawSlice(slices[i].angle, options.series.pie.stroke.color, false);\n\t\t\t\tctx.restore();\n\t\t\t\t\t\n\t\t\t\t// draw donut hole\n\t\t\t\tdrawDonutHole(ctx);\n\t\t\t\t\n\t\t\t\t// draw labels\n\t\t\t\tif (options.series.pie.label.show)\n\t\t\t\t\tdrawLabels();\n\t\t\t\t\n\t\t\t\t// restore to original state\n\t\t\t\tctx.restore();\n\t\t\t\t\n\t\t\t\tfunction drawSlice(angle, color, fill)\n\t\t\t\t{\t\n\t\t\t\t\tif (angle<=0)\n\t\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\t\tif (fill)\n\t\t\t\t\t\tctx.fillStyle = color;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tctx.strokeStyle = color;\n\t\t\t\t\t\tctx.lineJoin = 'round';\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tif (Math.abs(angle - Math.PI*2) > 0.000000001)\n\t\t\t\t\t\tctx.moveTo(0,0); // Center of the pie\n\t\t\t\t\telse if ($.browser.msie)\n\t\t\t\t\t\tangle -= 0.0001;\n\t\t\t\t\t//ctx.arc(0,0,radius,0,angle,false); // This doesn't work properly in Opera\n\t\t\t\t\tctx.arc(0,0,radius,currentAngle,currentAngle+angle,false);\n\t\t\t\t\tctx.closePath();\n\t\t\t\t\t//ctx.rotate(angle); // This doesn't work properly in Opera\n\t\t\t\t\tcurrentAngle += angle;\n\t\t\t\t\t\n\t\t\t\t\tif (fill)\n\t\t\t\t\t\tctx.fill();\n\t\t\t\t\telse\n\t\t\t\t\t\tctx.stroke();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfunction drawLabels()\n\t\t\t\t{\n\t\t\t\t\tvar currentAngle = startAngle;\n\t\t\t\t\t\n\t\t\t\t\t// set radius\n\t\t\t\t\tif (options.series.pie.label.radius>1)\n\t\t\t\t\t\tvar radius = options.series.pie.label.radius;\n\t\t\t\t\telse\n\t\t\t\t\t\tvar radius = maxRadius * options.series.pie.label.radius;\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 0; i < slices.length; ++i)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (slices[i].percent >= options.series.pie.label.threshold*100)\n\t\t\t\t\t\t\tdrawLabel(slices[i], currentAngle, i);\n\t\t\t\t\t\tcurrentAngle += slices[i].angle;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfunction drawLabel(slice, startAngle, index)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (slice.data[0][1]==0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// format label text\n\t\t\t\t\t\tvar lf = options.legend.labelFormatter, text, plf = options.series.pie.label.formatter;\n\t\t\t\t\t\tif (lf)\n\t\t\t\t\t\t\ttext = lf(slice.label, slice);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext = slice.label;\n\t\t\t\t\t\tif (plf)\n\t\t\t\t\t\t\ttext = plf(text, slice);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tvar halfAngle = ((startAngle+slice.angle) + startAngle)/2;\n\t\t\t\t\t\tvar x = centerLeft + Math.round(Math.cos(halfAngle) * radius);\n\t\t\t\t\t\tvar y = centerTop + Math.round(Math.sin(halfAngle) * radius) * options.series.pie.tilt;\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar html = '<span class=\"pieLabel\" id=\"pieLabel'+index+'\" style=\"position:absolute;top:' + y + 'px;left:' + x + 'px;\">' + text + \"</span>\";\n\t\t\t\t\t\ttarget.append(html);\n\t\t\t\t\t\tvar label = target.children('#pieLabel'+index);\n\t\t\t\t\t\tvar labelTop = (y - label.height()/2);\n\t\t\t\t\t\tvar labelLeft = (x - label.width()/2);\n\t\t\t\t\t\tlabel.css('top', labelTop);\n\t\t\t\t\t\tlabel.css('left', labelLeft);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// check to make sure that the label is not outside the canvas\n\t\t\t\t\t\tif (0-labelTop>0 || 0-labelLeft>0 || canvas.height-(labelTop+label.height())<0 || canvas.width-(labelLeft+label.width())<0)\n\t\t\t\t\t\t\tredraw = true;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (options.series.pie.label.background.opacity != 0) {\n\t\t\t\t\t\t\t// put in the transparent background separately to avoid blended labels and label boxes\n\t\t\t\t\t\t\tvar c = options.series.pie.label.background.color;\n\t\t\t\t\t\t\tif (c == null) {\n\t\t\t\t\t\t\t\tc = slice.color;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvar pos = 'top:'+labelTop+'px;left:'+labelLeft+'px;';\n\t\t\t\t\t\t\t$('<div class=\"pieLabelBackground\" style=\"position:absolute;width:' + label.width() + 'px;height:' + label.height() + 'px;' + pos +'background-color:' + c + ';\"> </div>').insertBefore(label).css('opacity', options.series.pie.label.background.opacity);\n\t\t\t\t\t\t}\n\t\t\t\t\t} // end individual label function\n\t\t\t\t} // end drawLabels function\n\t\t\t} // end drawPie function\n\t\t} // end draw function\n\t\t\n\t\t// Placed here because it needs to be accessed from multiple locations \n\t\tfunction drawDonutHole(layer)\n\t\t{\n\t\t\t// draw donut hole\n\t\t\tif(options.series.pie.innerRadius > 0)\n\t\t\t{\n\t\t\t\t// subtract the center\n\t\t\t\tlayer.save();\n\t\t\t\tinnerRadius = options.series.pie.innerRadius > 1 ? options.series.pie.innerRadius : maxRadius * options.series.pie.innerRadius;\n\t\t\t\tlayer.globalCompositeOperation = 'destination-out'; // this does not work with excanvas, but it will fall back to using the stroke color\n\t\t\t\tlayer.beginPath();\n\t\t\t\tlayer.fillStyle = options.series.pie.stroke.color;\n\t\t\t\tlayer.arc(0,0,innerRadius,0,Math.PI*2,false);\n\t\t\t\tlayer.fill();\n\t\t\t\tlayer.closePath();\n\t\t\t\tlayer.restore();\n\t\t\t\t\n\t\t\t\t// add inner stroke\n\t\t\t\tlayer.save();\n\t\t\t\tlayer.beginPath();\n\t\t\t\tlayer.strokeStyle = options.series.pie.stroke.color;\n\t\t\t\tlayer.arc(0,0,innerRadius,0,Math.PI*2,false);\n\t\t\t\tlayer.stroke();\n\t\t\t\tlayer.closePath();\n\t\t\t\tlayer.restore();\n\t\t\t\t// TODO: add extra shadow inside hole (with a mask) if the pie is tilted.\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-- Additional Interactive related functions --\n\t\t\n\t\tfunction isPointInPoly(poly, pt)\n\t\t{\n\t\t\tfor(var c = false, i = -1, l = poly.length, j = l - 1; ++i < l; j = i)\n\t\t\t\t((poly[i][1] <= pt[1] && pt[1] < poly[j][1]) || (poly[j][1] <= pt[1] && pt[1]< poly[i][1]))\n\t\t\t\t&& (pt[0] < (poly[j][0] - poly[i][0]) * (pt[1] - poly[i][1]) / (poly[j][1] - poly[i][1]) + poly[i][0])\n\t\t\t\t&& (c = !c);\n\t\t\treturn c;\n\t\t}\n\t\t\n\t\tfunction findNearbySlice(mouseX, mouseY)\n\t\t{\n\t\t\tvar slices = plot.getData(),\n\t\t\t\toptions = plot.getOptions(),\n\t\t\t\tradius = options.series.pie.radius > 1 ? options.series.pie.radius : maxRadius * options.series.pie.radius;\n\t\t\t\n\t\t\tfor (var i = 0; i < slices.length; ++i) \n\t\t\t{\n\t\t\t\tvar s = slices[i];\t\n\t\t\t\t\n\t\t\t\tif(s.pie.show)\n\t\t\t\t{\n\t\t\t\t\tctx.save();\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tctx.moveTo(0,0); // Center of the pie\n\t\t\t\t\t//ctx.scale(1, options.series.pie.tilt);\t// this actually seems to break everything when here.\n\t\t\t\t\tctx.arc(0,0,radius,s.startAngle,s.startAngle+s.angle,false);\n\t\t\t\t\tctx.closePath();\n\t\t\t\t\tx = mouseX-centerLeft;\n\t\t\t\t\ty = mouseY-centerTop;\n\t\t\t\t\tif(ctx.isPointInPath)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (ctx.isPointInPath(mouseX-centerLeft, mouseY-centerTop))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//alert('found slice!');\n\t\t\t\t\t\t\tctx.restore();\n\t\t\t\t\t\t\treturn {datapoint: [s.percent, s.data], dataIndex: 0, series: s, seriesIndex: i};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// excanvas for IE doesn;t support isPointInPath, this is a workaround. \n\t\t\t\t\t\tp1X = (radius * Math.cos(s.startAngle));\n\t\t\t\t\t\tp1Y = (radius * Math.sin(s.startAngle));\n\t\t\t\t\t\tp2X = (radius * Math.cos(s.startAngle+(s.angle/4)));\n\t\t\t\t\t\tp2Y = (radius * Math.sin(s.startAngle+(s.angle/4)));\n\t\t\t\t\t\tp3X = (radius * Math.cos(s.startAngle+(s.angle/2)));\n\t\t\t\t\t\tp3Y = (radius * Math.sin(s.startAngle+(s.angle/2)));\n\t\t\t\t\t\tp4X = (radius * Math.cos(s.startAngle+(s.angle/1.5)));\n\t\t\t\t\t\tp4Y = (radius * Math.sin(s.startAngle+(s.angle/1.5)));\n\t\t\t\t\t\tp5X = (radius * Math.cos(s.startAngle+s.angle));\n\t\t\t\t\t\tp5Y = (radius * Math.sin(s.startAngle+s.angle));\n\t\t\t\t\t\tarrPoly = [[0,0],[p1X,p1Y],[p2X,p2Y],[p3X,p3Y],[p4X,p4Y],[p5X,p5Y]];\n\t\t\t\t\t\tarrPoint = [x,y];\n\t\t\t\t\t\t// TODO: perhaps do some mathmatical trickery here with the Y-coordinate to compensate for pie tilt?\n\t\t\t\t\t\tif(isPointInPoly(arrPoly, arrPoint))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tctx.restore();\n\t\t\t\t\t\t\treturn {datapoint: [s.percent, s.data], dataIndex: 0, series: s, seriesIndex: i};\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tctx.restore();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\n\t\tfunction onMouseMove(e) \n\t\t{\n\t\t\ttriggerClickHoverEvent('plothover', e);\n\t\t}\n\t\t\n        function onClick(e) \n\t\t{\n\t\t\ttriggerClickHoverEvent('plotclick', e);\n        }\n\n\t\t// trigger click or hover event (they send the same parameters so we share their code)\n\t\tfunction triggerClickHoverEvent(eventname, e) \n\t\t{\n\t\t\tvar offset = plot.offset(),\n\t\t\t\tcanvasX = parseInt(e.pageX - offset.left),\n\t\t\t\tcanvasY =  parseInt(e.pageY - offset.top),\n\t\t\t\titem = findNearbySlice(canvasX, canvasY);\n\t\t\t\n\t\t\tif (options.grid.autoHighlight) \n\t\t\t{\n\t\t\t\t// clear auto-highlights\n\t\t\t\tfor (var i = 0; i < highlights.length; ++i) \n\t\t\t\t{\n\t\t\t\t\tvar h = highlights[i];\n\t\t\t\t\tif (h.auto == eventname && !(item && h.series == item.series))\n\t\t\t\t\t\tunhighlight(h.series);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// highlight the slice\n\t\t\tif (item) \n\t\t\t    highlight(item.series, eventname);\n\t\t\t\t\n\t\t\t// trigger any hover bind events\n\t\t\tvar pos = { pageX: e.pageX, pageY: e.pageY };\n\t\t\ttarget.trigger(eventname, [ pos, item ]);\t\n\t\t}\n\n\t\tfunction highlight(s, auto) \n\t\t{\n\t\t\tif (typeof s == \"number\")\n\t\t\t\ts = series[s];\n\n\t\t\tvar i = indexOfHighlight(s);\n\t\t\tif (i == -1) \n\t\t\t{\n\t\t\t\thighlights.push({ series: s, auto: auto });\n\t\t\t\tplot.triggerRedrawOverlay();\n\t\t\t}\n\t\t\telse if (!auto)\n\t\t\t\thighlights[i].auto = false;\n\t\t}\n\n\t\tfunction unhighlight(s) \n\t\t{\n\t\t\tif (s == null) \n\t\t\t{\n\t\t\t\thighlights = [];\n\t\t\t\tplot.triggerRedrawOverlay();\n\t\t\t}\n\t\t\t\n\t\t\tif (typeof s == \"number\")\n\t\t\t\ts = series[s];\n\n\t\t\tvar i = indexOfHighlight(s);\n\t\t\tif (i != -1) \n\t\t\t{\n\t\t\t\thighlights.splice(i, 1);\n\t\t\t\tplot.triggerRedrawOverlay();\n\t\t\t}\n\t\t}\n\n\t\tfunction indexOfHighlight(s) \n\t\t{\n\t\t\tfor (var i = 0; i < highlights.length; ++i) \n\t\t\t{\n\t\t\t\tvar h = highlights[i];\n\t\t\t\tif (h.series == s)\n\t\t\t\t\treturn i;\n\t\t\t}\n\t\t\treturn -1;\n\t\t}\n\n\t\tfunction drawOverlay(plot, octx) \n\t\t{\n\t\t\t//alert(options.series.pie.radius);\n\t\t\tvar options = plot.getOptions();\n\t\t\t//alert(options.series.pie.radius);\n\t\t\t\n\t\t\tvar radius = options.series.pie.radius > 1 ? options.series.pie.radius : maxRadius * options.series.pie.radius;\n\n\t\t\toctx.save();\n\t\t\toctx.translate(centerLeft, centerTop);\n\t\t\toctx.scale(1, options.series.pie.tilt);\n\t\t\t\n\t\t\tfor (i = 0; i < highlights.length; ++i) \n\t\t\t\tdrawHighlight(highlights[i].series);\n\t\t\t\n\t\t\tdrawDonutHole(octx);\n\n\t\t\toctx.restore();\n\n\t\t\tfunction drawHighlight(series) \n\t\t\t{\n\t\t\t\tif (series.angle < 0) return;\n\t\t\t\t\n\t\t\t\t//octx.fillStyle = parseColor(options.series.pie.highlight.color).scale(null, null, null, options.series.pie.highlight.opacity).toString();\n\t\t\t\toctx.fillStyle = \"rgba(255, 255, 255, \"+options.series.pie.highlight.opacity+\")\"; // this is temporary until we have access to parseColor\n\t\t\t\t\n\t\t\t\toctx.beginPath();\n\t\t\t\tif (Math.abs(series.angle - Math.PI*2) > 0.000000001)\n\t\t\t\t\toctx.moveTo(0,0); // Center of the pie\n\t\t\t\toctx.arc(0,0,radius,series.startAngle,series.startAngle+series.angle,false);\n\t\t\t\toctx.closePath();\n\t\t\t\toctx.fill();\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\t\n\t} // end init (plugin body)\n\t\n\t// define pie specific options and their default values\n\tvar options = {\n\t\tseries: {\n\t\t\tpie: {\n\t\t\t\tshow: false,\n\t\t\t\tradius: 'auto',\t// actual radius of the visible pie (based on full calculated radius if <=1, or hard pixel value)\n\t\t\t\tinnerRadius:0, /* for donut */\n\t\t\t\tstartAngle: 3/2,\n\t\t\t\ttilt: 1,\n\t\t\t\toffset: {\n\t\t\t\t\ttop: 0,\n\t\t\t\t\tleft: 'auto'\n\t\t\t\t},\n\t\t\t\tstroke: {\n\t\t\t\t\tcolor: '#FFF',\n\t\t\t\t\twidth: 1\n\t\t\t\t},\n\t\t\t\tlabel: {\n\t\t\t\t\tshow: 'auto',\n\t\t\t\t\tformatter: function(label, slice){\n\t\t\t\t\t\treturn '<div style=\"font-size:x-small;text-align:center;padding:2px;color:'+slice.color+';\">'+label+'<br/>'+Math.round(slice.percent)+'%</div>';\n\t\t\t\t\t},\t// formatter function\n\t\t\t\t\tradius: 1,\t// radius at which to place the labels (based on full calculated radius if <=1, or hard pixel value)\n\t\t\t\t\tbackground: {\n\t\t\t\t\t\tcolor: null,\n\t\t\t\t\t\topacity: 0\n\t\t\t\t\t},\n\t\t\t\t\tthreshold: 0\t// percentage at which to hide the label (i.e. the slice is too narrow)\n\t\t\t\t},\n\t\t\t\tcombine: {\n\t\t\t\t\tthreshold: -1,\t// percentage at which to combine little slices into one larger slice\n\t\t\t\t\tcolor: null,\t// color to give the new slice (auto-generated if null)\n\t\t\t\t\tlabel: 'Other'\t// label to give the new slice\n\t\t\t\t},\n\t\t\t\thighlight: {\n\t\t\t\t\t//color: '#FFF',\t\t// will add this functionality once parseColor is available\n\t\t\t\t\topacity: 0.5\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n    \n\t$.plot.plugins.push({\n\t\tinit: init,\n\t\toptions: options,\n\t\tname: \"pie\",\n\t\tversion: \"1.0\"\n\t});\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.resize.js",
    "content": "/*\nFlot plugin for automatically redrawing plots when the placeholder\nsize changes, e.g. on window resizes.\n\nIt works by listening for changes on the placeholder div (through the\njQuery resize event plugin) - if the size changes, it will redraw the\nplot.\n\nThere are no options. If you need to disable the plugin for some\nplots, you can just fix the size of their placeholders.\n*/\n\n\n/* Inline dependency: \n * jQuery resize event - v1.1 - 3/14/2010\n * http://benalman.com/projects/jquery-resize-plugin/\n * \n * Copyright (c) 2010 \"Cowboy\" Ben Alman\n * Dual licensed under the MIT and GPL licenses.\n * http://benalman.com/about/license/\n */\n(function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k=\"setTimeout\",j=\"resize\",d=j+\"-special-event\",b=\"delay\",f=\"throttleWindow\";e[b]=250;e[f]=true;$.event.special[j]={setup:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.add(l);$.data(this,d,{w:l.width(),h:l.height()});if(a.length===1){g()}},teardown:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.not(l);l.removeData(d);if(!a.length){clearTimeout(i)}},add:function(l){if(!e[f]&&this[k]){return false}var n;function m(s,o,p){var q=$(this),r=$.data(this,d);r.w=o!==c?o:q.width();r.h=p!==c?p:q.height();n.apply(this,arguments)}if($.isFunction(l)){n=l;return m}else{n=l.handler;l.handler=m}}};function g(){i=h[k](function(){a.each(function(){var n=$(this),m=n.width(),l=n.height(),o=$.data(this,d);if(m!==o.w||l!==o.h){n.trigger(j,[o.w=m,o.h=l])}});g()},e[b])}})(jQuery,this);\n\n\n(function ($) {\n    var options = { }; // no options\n\n    function init(plot) {\n        function onResize() {\n            var placeholder = plot.getPlaceholder();\n\n            // somebody might have hidden us and we can't plot\n            // when we don't have the dimensions\n            if (placeholder.width() == 0 || placeholder.height() == 0)\n                return;\n\n            plot.resize();\n            plot.setupGrid();\n            plot.draw();\n        }\n        \n        function bindEvents(plot, eventHolder) {\n            plot.getPlaceholder().resize(onResize);\n        }\n\n        function shutdown(plot, eventHolder) {\n            plot.getPlaceholder().unbind(\"resize\", onResize);\n        }\n        \n        plot.hooks.bindEvents.push(bindEvents);\n        plot.hooks.shutdown.push(shutdown);\n    }\n    \n    $.plot.plugins.push({\n        init: init,\n        options: options,\n        name: 'resize',\n        version: '1.0'\n    });\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.selection.js",
    "content": "/*\nFlot plugin for selecting regions.\n\nThe plugin defines the following options:\n\n  selection: {\n    mode: null or \"x\" or \"y\" or \"xy\",\n    color: color\n  }\n\nSelection support is enabled by setting the mode to one of \"x\", \"y\" or\n\"xy\". In \"x\" mode, the user will only be able to specify the x range,\nsimilarly for \"y\" mode. For \"xy\", the selection becomes a rectangle\nwhere both ranges can be specified. \"color\" is color of the selection\n(if you need to change the color later on, you can get to it with\nplot.getOptions().selection.color).\n\nWhen selection support is enabled, a \"plotselected\" event will be\nemitted on the DOM element you passed into the plot function. The\nevent handler gets a parameter with the ranges selected on the axes,\nlike this:\n\n  placeholder.bind(\"plotselected\", function(event, ranges) {\n    alert(\"You selected \" + ranges.xaxis.from + \" to \" + ranges.xaxis.to)\n    // similar for yaxis - with multiple axes, the extra ones are in\n    // x2axis, x3axis, ...\n  });\n\nThe \"plotselected\" event is only fired when the user has finished\nmaking the selection. A \"plotselecting\" event is fired during the\nprocess with the same parameters as the \"plotselected\" event, in case\nyou want to know what's happening while it's happening,\n\nA \"plotunselected\" event with no arguments is emitted when the user\nclicks the mouse to remove the selection.\n\nThe plugin allso adds the following methods to the plot object:\n\n- setSelection(ranges, preventEvent)\n\n  Set the selection rectangle. The passed in ranges is on the same\n  form as returned in the \"plotselected\" event. If the selection mode\n  is \"x\", you should put in either an xaxis range, if the mode is \"y\"\n  you need to put in an yaxis range and both xaxis and yaxis if the\n  selection mode is \"xy\", like this:\n\n    setSelection({ xaxis: { from: 0, to: 10 }, yaxis: { from: 40, to: 60 } });\n\n  setSelection will trigger the \"plotselected\" event when called. If\n  you don't want that to happen, e.g. if you're inside a\n  \"plotselected\" handler, pass true as the second parameter. If you\n  are using multiple axes, you can specify the ranges on any of those,\n  e.g. as x2axis/x3axis/... instead of xaxis, the plugin picks the\n  first one it sees.\n  \n- clearSelection(preventEvent)\n\n  Clear the selection rectangle. Pass in true to avoid getting a\n  \"plotunselected\" event.\n\n- getSelection()\n\n  Returns the current selection in the same format as the\n  \"plotselected\" event. If there's currently no selection, the\n  function returns null.\n\n*/\n\n(function ($) {\n    function init(plot) {\n        var selection = {\n                first: { x: -1, y: -1}, second: { x: -1, y: -1},\n                show: false,\n                active: false\n            };\n\n        // FIXME: The drag handling implemented here should be\n        // abstracted out, there's some similar code from a library in\n        // the navigation plugin, this should be massaged a bit to fit\n        // the Flot cases here better and reused. Doing this would\n        // make this plugin much slimmer.\n        var savedhandlers = {};\n\n        var mouseUpHandler = null;\n        \n        function onMouseMove(e) {\n            if (selection.active) {\n                updateSelection(e);\n                \n                plot.getPlaceholder().trigger(\"plotselecting\", [ getSelection() ]);\n            }\n        }\n\n        function onMouseDown(e) {\n            if (e.which != 1)  // only accept left-click\n                return;\n            \n            // cancel out any text selections\n            document.body.focus();\n\n            // prevent text selection and drag in old-school browsers\n            if (document.onselectstart !== undefined && savedhandlers.onselectstart == null) {\n                savedhandlers.onselectstart = document.onselectstart;\n                document.onselectstart = function () { return false; };\n            }\n            if (document.ondrag !== undefined && savedhandlers.ondrag == null) {\n                savedhandlers.ondrag = document.ondrag;\n                document.ondrag = function () { return false; };\n            }\n\n            setSelectionPos(selection.first, e);\n\n            selection.active = true;\n\n            // this is a bit silly, but we have to use a closure to be\n            // able to whack the same handler again\n            mouseUpHandler = function (e) { onMouseUp(e); };\n            \n            $(document).one(\"mouseup\", mouseUpHandler);\n        }\n\n        function onMouseUp(e) {\n            mouseUpHandler = null;\n            \n            // revert drag stuff for old-school browsers\n            if (document.onselectstart !== undefined)\n                document.onselectstart = savedhandlers.onselectstart;\n            if (document.ondrag !== undefined)\n                document.ondrag = savedhandlers.ondrag;\n\n            // no more dragging\n            selection.active = false;\n            updateSelection(e);\n\n            if (selectionIsSane())\n                triggerSelectedEvent();\n            else {\n                // this counts as a clear\n                plot.getPlaceholder().trigger(\"plotunselected\", [ ]);\n                plot.getPlaceholder().trigger(\"plotselecting\", [ null ]);\n            }\n\n            return false;\n        }\n\n        function getSelection() {\n            if (!selectionIsSane())\n                return null;\n\n            var r = {}, c1 = selection.first, c2 = selection.second;\n            $.each(plot.getAxes(), function (name, axis) {\n                if (axis.used) {\n                    var p1 = axis.c2p(c1[axis.direction]), p2 = axis.c2p(c2[axis.direction]); \n                    r[name] = { from: Math.min(p1, p2), to: Math.max(p1, p2) };\n                }\n            });\n            return r;\n        }\n\n        function triggerSelectedEvent() {\n            var r = getSelection();\n\n            plot.getPlaceholder().trigger(\"plotselected\", [ r ]);\n\n            // backwards-compat stuff, to be removed in future\n            if (r.xaxis && r.yaxis)\n                plot.getPlaceholder().trigger(\"selected\", [ { x1: r.xaxis.from, y1: r.yaxis.from, x2: r.xaxis.to, y2: r.yaxis.to } ]);\n        }\n\n        function clamp(min, value, max) {\n            return value < min ? min: (value > max ? max: value);\n        }\n\n        function setSelectionPos(pos, e) {\n            var o = plot.getOptions();\n            var offset = plot.getPlaceholder().offset();\n            var plotOffset = plot.getPlotOffset();\n            pos.x = clamp(0, e.pageX - offset.left - plotOffset.left, plot.width());\n            pos.y = clamp(0, e.pageY - offset.top - plotOffset.top, plot.height());\n\n            if (o.selection.mode == \"y\")\n                pos.x = pos == selection.first ? 0 : plot.width();\n\n            if (o.selection.mode == \"x\")\n                pos.y = pos == selection.first ? 0 : plot.height();\n        }\n\n        function updateSelection(pos) {\n            if (pos.pageX == null)\n                return;\n\n            setSelectionPos(selection.second, pos);\n            if (selectionIsSane()) {\n                selection.show = true;\n                plot.triggerRedrawOverlay();\n            }\n            else\n                clearSelection(true);\n        }\n\n        function clearSelection(preventEvent) {\n            if (selection.show) {\n                selection.show = false;\n                plot.triggerRedrawOverlay();\n                if (!preventEvent)\n                    plot.getPlaceholder().trigger(\"plotunselected\", [ ]);\n            }\n        }\n\n        // function taken from markings support in Flot\n        function extractRange(ranges, coord) {\n            var axis, from, to, key, axes = plot.getAxes();\n\n            for (var k in axes) {\n                axis = axes[k];\n                if (axis.direction == coord) {\n                    key = coord + axis.n + \"axis\";\n                    if (!ranges[key] && axis.n == 1)\n                        key = coord + \"axis\"; // support x1axis as xaxis\n                    if (ranges[key]) {\n                        from = ranges[key].from;\n                        to = ranges[key].to;\n                        break;\n                    }\n                }\n            }\n\n            // backwards-compat stuff - to be removed in future\n            if (!ranges[key]) {\n                axis = coord == \"x\" ? plot.getXAxes()[0] : plot.getYAxes()[0];\n                from = ranges[coord + \"1\"];\n                to = ranges[coord + \"2\"];\n            }\n\n            // auto-reverse as an added bonus\n            if (from != null && to != null && from > to) {\n                var tmp = from;\n                from = to;\n                to = tmp;\n            }\n            \n            return { from: from, to: to, axis: axis };\n        }\n        \n        function setSelection(ranges, preventEvent) {\n            var axis, range, o = plot.getOptions();\n\n            if (o.selection.mode == \"y\") {\n                selection.first.x = 0;\n                selection.second.x = plot.width();\n            }\n            else {\n                range = extractRange(ranges, \"x\");\n\n                selection.first.x = range.axis.p2c(range.from);\n                selection.second.x = range.axis.p2c(range.to);\n            }\n\n            if (o.selection.mode == \"x\") {\n                selection.first.y = 0;\n                selection.second.y = plot.height();\n            }\n            else {\n                range = extractRange(ranges, \"y\");\n\n                selection.first.y = range.axis.p2c(range.from);\n                selection.second.y = range.axis.p2c(range.to);\n            }\n\n            selection.show = true;\n            plot.triggerRedrawOverlay();\n            if (!preventEvent && selectionIsSane())\n                triggerSelectedEvent();\n        }\n\n        function selectionIsSane() {\n            var minSize = 5;\n            return Math.abs(selection.second.x - selection.first.x) >= minSize &&\n                Math.abs(selection.second.y - selection.first.y) >= minSize;\n        }\n\n        plot.clearSelection = clearSelection;\n        plot.setSelection = setSelection;\n        plot.getSelection = getSelection;\n\n        plot.hooks.bindEvents.push(function(plot, eventHolder) {\n            var o = plot.getOptions();\n            if (o.selection.mode != null) {\n                eventHolder.mousemove(onMouseMove);\n                eventHolder.mousedown(onMouseDown);\n            }\n        });\n\n\n        plot.hooks.drawOverlay.push(function (plot, ctx) {\n            // draw selection\n            if (selection.show && selectionIsSane()) {\n                var plotOffset = plot.getPlotOffset();\n                var o = plot.getOptions();\n\n                ctx.save();\n                ctx.translate(plotOffset.left, plotOffset.top);\n\n                var c = $.color.parse(o.selection.color);\n\n                ctx.strokeStyle = c.scale('a', 0.8).toString();\n                ctx.lineWidth = 1;\n                ctx.lineJoin = \"round\";\n                ctx.fillStyle = c.scale('a', 0.4).toString();\n\n                var x = Math.min(selection.first.x, selection.second.x),\n                    y = Math.min(selection.first.y, selection.second.y),\n                    w = Math.abs(selection.second.x - selection.first.x),\n                    h = Math.abs(selection.second.y - selection.first.y);\n\n                ctx.fillRect(x, y, w, h);\n                ctx.strokeRect(x, y, w, h);\n\n                ctx.restore();\n            }\n        });\n        \n        plot.hooks.shutdown.push(function (plot, eventHolder) {\n            eventHolder.unbind(\"mousemove\", onMouseMove);\n            eventHolder.unbind(\"mousedown\", onMouseDown);\n            \n            if (mouseUpHandler)\n                $(document).unbind(\"mouseup\", mouseUpHandler);\n        });\n\n    }\n\n    $.plot.plugins.push({\n        init: init,\n        options: {\n            selection: {\n                mode: null, // one of null, \"x\", \"y\" or \"xy\"\n                color: \"#e8cfac\"\n            }\n        },\n        name: 'selection',\n        version: '1.1'\n    });\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.stack.js",
    "content": "/*\nFlot plugin for stacking data sets, i.e. putting them on top of each\nother, for accumulative graphs.\n\nThe plugin assumes the data is sorted on x (or y if stacking\nhorizontally). For line charts, it is assumed that if a line has an\nundefined gap (from a null point), then the line above it should have\nthe same gap - insert zeros instead of \"null\" if you want another\nbehaviour. This also holds for the start and end of the chart. Note\nthat stacking a mix of positive and negative values in most instances\ndoesn't make sense (so it looks weird).\n\nTwo or more series are stacked when their \"stack\" attribute is set to\nthe same key (which can be any number or string or just \"true\"). To\nspecify the default stack, you can set\n\n  series: {\n    stack: null or true or key (number/string)\n  }\n\nor specify it for a specific series\n\n  $.plot($(\"#placeholder\"), [{ data: [ ... ], stack: true }])\n  \nThe stacking order is determined by the order of the data series in\nthe array (later series end up on top of the previous).\n\nInternally, the plugin modifies the datapoints in each series, adding\nan offset to the y value. For line series, extra data points are\ninserted through interpolation. If there's a second y value, it's also\nadjusted (e.g for bar charts or filled areas).\n*/\n\n(function ($) {\n    var options = {\n        series: { stack: null } // or number/string\n    };\n    \n    function init(plot) {\n        function findMatchingSeries(s, allseries) {\n            var res = null\n            for (var i = 0; i < allseries.length; ++i) {\n                if (s == allseries[i])\n                    break;\n                \n                if (allseries[i].stack == s.stack)\n                    res = allseries[i];\n            }\n            \n            return res;\n        }\n        \n        function stackData(plot, s, datapoints) {\n            if (s.stack == null)\n                return;\n\n            var other = findMatchingSeries(s, plot.getData());\n            if (!other)\n                return;\n\n            var ps = datapoints.pointsize,\n                points = datapoints.points,\n                otherps = other.datapoints.pointsize,\n                otherpoints = other.datapoints.points,\n                newpoints = [],\n                px, py, intery, qx, qy, bottom,\n                withlines = s.lines.show,\n                horizontal = s.bars.horizontal,\n                withbottom = ps > 2 && (horizontal ? datapoints.format[2].x : datapoints.format[2].y),\n                withsteps = withlines && s.lines.steps,\n                fromgap = true,\n                keyOffset = horizontal ? 1 : 0,\n                accumulateOffset = horizontal ? 0 : 1,\n                i = 0, j = 0, l;\n\n            while (true) {\n                if (i >= points.length)\n                    break;\n\n                l = newpoints.length;\n\n                if (points[i] == null) {\n                    // copy gaps\n                    for (m = 0; m < ps; ++m)\n                        newpoints.push(points[i + m]);\n                    i += ps;\n                }\n                else if (j >= otherpoints.length) {\n                    // for lines, we can't use the rest of the points\n                    if (!withlines) {\n                        for (m = 0; m < ps; ++m)\n                            newpoints.push(points[i + m]);\n                    }\n                    i += ps;\n                }\n                else if (otherpoints[j] == null) {\n                    // oops, got a gap\n                    for (m = 0; m < ps; ++m)\n                        newpoints.push(null);\n                    fromgap = true;\n                    j += otherps;\n                }\n                else {\n                    // cases where we actually got two points\n                    px = points[i + keyOffset];\n                    py = points[i + accumulateOffset];\n                    qx = otherpoints[j + keyOffset];\n                    qy = otherpoints[j + accumulateOffset];\n                    bottom = 0;\n\n                    if (px == qx) {\n                        for (m = 0; m < ps; ++m)\n                            newpoints.push(points[i + m]);\n\n                        newpoints[l + accumulateOffset] += qy;\n                        bottom = qy;\n                        \n                        i += ps;\n                        j += otherps;\n                    }\n                    else if (px > qx) {\n                        // we got past point below, might need to\n                        // insert interpolated extra point\n                        if (withlines && i > 0 && points[i - ps] != null) {\n                            intery = py + (points[i - ps + accumulateOffset] - py) * (qx - px) / (points[i - ps + keyOffset] - px);\n                            newpoints.push(qx);\n                            newpoints.push(intery + qy);\n                            for (m = 2; m < ps; ++m)\n                                newpoints.push(points[i + m]);\n                            bottom = qy; \n                        }\n\n                        j += otherps;\n                    }\n                    else { // px < qx\n                        if (fromgap && withlines) {\n                            // if we come from a gap, we just skip this point\n                            i += ps;\n                            continue;\n                        }\n                            \n                        for (m = 0; m < ps; ++m)\n                            newpoints.push(points[i + m]);\n                        \n                        // we might be able to interpolate a point below,\n                        // this can give us a better y\n                        if (withlines && j > 0 && otherpoints[j - otherps] != null)\n                            bottom = qy + (otherpoints[j - otherps + accumulateOffset] - qy) * (px - qx) / (otherpoints[j - otherps + keyOffset] - qx);\n\n                        newpoints[l + accumulateOffset] += bottom;\n                        \n                        i += ps;\n                    }\n\n                    fromgap = false;\n                    \n                    if (l != newpoints.length && withbottom)\n                        newpoints[l + 2] += bottom;\n                }\n\n                // maintain the line steps invariant\n                if (withsteps && l != newpoints.length && l > 0\n                    && newpoints[l] != null\n                    && newpoints[l] != newpoints[l - ps]\n                    && newpoints[l + 1] != newpoints[l - ps + 1]) {\n                    for (m = 0; m < ps; ++m)\n                        newpoints[l + ps + m] = newpoints[l + m];\n                    newpoints[l + 1] = newpoints[l - ps + 1];\n                }\n            }\n\n            datapoints.points = newpoints;\n        }\n        \n        plot.hooks.processDatapoints.push(stackData);\n    }\n    \n    $.plot.plugins.push({\n        init: init,\n        options: options,\n        name: 'stack',\n        version: '1.2'\n    });\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.symbol.js",
    "content": "/*\nFlot plugin that adds some extra symbols for plotting points.\n\nThe symbols are accessed as strings through the standard symbol\nchoice:\n\n  series: {\n      points: {\n          symbol: \"square\" // or \"diamond\", \"triangle\", \"cross\"\n      }\n  }\n\n*/\n\n(function ($) {\n    function processRawData(plot, series, datapoints) {\n        // we normalize the area of each symbol so it is approximately the\n        // same as a circle of the given radius\n\n        var handlers = {\n            square: function (ctx, x, y, radius, shadow) {\n                // pi * r^2 = (2s)^2  =>  s = r * sqrt(pi)/2\n                var size = radius * Math.sqrt(Math.PI) / 2;\n                ctx.rect(x - size, y - size, size + size, size + size);\n            },\n            diamond: function (ctx, x, y, radius, shadow) {\n                // pi * r^2 = 2s^2  =>  s = r * sqrt(pi/2)\n                var size = radius * Math.sqrt(Math.PI / 2);\n                ctx.moveTo(x - size, y);\n                ctx.lineTo(x, y - size);\n                ctx.lineTo(x + size, y);\n                ctx.lineTo(x, y + size);\n                ctx.lineTo(x - size, y);\n            },\n            triangle: function (ctx, x, y, radius, shadow) {\n                // pi * r^2 = 1/2 * s^2 * sin (pi / 3)  =>  s = r * sqrt(2 * pi / sin(pi / 3))\n                var size = radius * Math.sqrt(2 * Math.PI / Math.sin(Math.PI / 3));\n                var height = size * Math.sin(Math.PI / 3);\n                ctx.moveTo(x - size/2, y + height/2);\n                ctx.lineTo(x + size/2, y + height/2);\n                if (!shadow) {\n                    ctx.lineTo(x, y - height/2);\n                    ctx.lineTo(x - size/2, y + height/2);\n                }\n            },\n            cross: function (ctx, x, y, radius, shadow) {\n                // pi * r^2 = (2s)^2  =>  s = r * sqrt(pi)/2\n                var size = radius * Math.sqrt(Math.PI) / 2;\n                ctx.moveTo(x - size, y - size);\n                ctx.lineTo(x + size, y + size);\n                ctx.moveTo(x - size, y + size);\n                ctx.lineTo(x + size, y - size);\n            }\n        }\n\n        var s = series.points.symbol;\n        if (handlers[s])\n            series.points.symbol = handlers[s];\n    }\n    \n    function init(plot) {\n        plot.hooks.processDatapoints.push(processRawData);\n    }\n    \n    $.plot.plugins.push({\n        init: init,\n        name: 'symbols',\n        version: '1.0'\n    });\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.flot.threshold.js",
    "content": "/*\nFlot plugin for thresholding data. Controlled through the option\n\"threshold\" in either the global series options\n\n  series: {\n    threshold: {\n      below: number\n      color: colorspec\n    }\n  }\n\nor in a specific series\n\n  $.plot($(\"#placeholder\"), [{ data: [ ... ], threshold: { ... }}])\n\nThe data points below \"below\" are drawn with the specified color. This\nmakes it easy to mark points below 0, e.g. for budget data.\n\nInternally, the plugin works by splitting the data into two series,\nabove and below the threshold. The extra series below the threshold\nwill have its label cleared and the special \"originSeries\" attribute\nset to the original series. You may need to check for this in hover\nevents.\n*/\n\n(function ($) {\n    var options = {\n        series: { threshold: null } // or { below: number, color: color spec}\n    };\n    \n    function init(plot) {\n        function thresholdData(plot, s, datapoints) {\n            if (!s.threshold)\n                return;\n            \n            var ps = datapoints.pointsize, i, x, y, p, prevp,\n                thresholded = $.extend({}, s); // note: shallow copy\n\n            thresholded.datapoints = { points: [], pointsize: ps };\n            thresholded.label = null;\n            thresholded.color = s.threshold.color;\n            thresholded.threshold = null;\n            thresholded.originSeries = s;\n            thresholded.data = [];\n\n            var below = s.threshold.below,\n                origpoints = datapoints.points,\n                addCrossingPoints = s.lines.show;\n\n            threspoints = [];\n            newpoints = [];\n\n            for (i = 0; i < origpoints.length; i += ps) {\n                x = origpoints[i]\n                y = origpoints[i + 1];\n\n                prevp = p;\n                if (y < below)\n                    p = threspoints;\n                else\n                    p = newpoints;\n\n                if (addCrossingPoints && prevp != p && x != null\n                    && i > 0 && origpoints[i - ps] != null) {\n                    var interx = (x - origpoints[i - ps]) / (y - origpoints[i - ps + 1]) * (below - y) + x;\n                    prevp.push(interx);\n                    prevp.push(below);\n                    for (m = 2; m < ps; ++m)\n                        prevp.push(origpoints[i + m]);\n                    \n                    p.push(null); // start new segment\n                    p.push(null);\n                    for (m = 2; m < ps; ++m)\n                        p.push(origpoints[i + m]);\n                    p.push(interx);\n                    p.push(below);\n                    for (m = 2; m < ps; ++m)\n                        p.push(origpoints[i + m]);\n                }\n\n                p.push(x);\n                p.push(y);\n            }\n\n            datapoints.points = newpoints;\n            thresholded.datapoints.points = threspoints;\n            \n            if (thresholded.datapoints.points.length > 0)\n                plot.getData().push(thresholded);\n                \n            // FIXME: there are probably some edge cases left in bars\n        }\n        \n        plot.hooks.processDatapoints.push(thresholdData);\n    }\n    \n    $.plot.plugins.push({\n        init: init,\n        options: options,\n        name: 'threshold',\n        version: '1.0'\n    });\n})(jQuery);\n"
  },
  {
    "path": "style/lib/flot/jquery.js",
    "content": "/*!\n * jQuery JavaScript Library v1.5.1\n * http://jquery.com/\n *\n * Copyright 2011, John Resig\n * Dual licensed under the MIT or GPL Version 2 licenses.\n * http://jquery.org/license\n *\n * Includes Sizzle.js\n * http://sizzlejs.com/\n * Copyright 2011, The Dojo Foundation\n * Released under the MIT, BSD, and GPL Licenses.\n *\n * Date: Wed Feb 23 13:55:29 2011 -0500\n */\n(function( window, undefined ) {\n\n// Use the correct document accordingly with window argument (sandbox)\nvar document = window.document;\nvar jQuery = (function() {\n\n// Define a local copy of jQuery\nvar jQuery = function( selector, context ) {\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\treturn new jQuery.fn.init( selector, context, rootjQuery );\n\t},\n\n\t// Map over jQuery in case of overwrite\n\t_jQuery = window.jQuery,\n\n\t// Map over the $ in case of overwrite\n\t_$ = window.$,\n\n\t// A central reference to the root jQuery(document)\n\trootjQuery,\n\n\t// A simple way to check for HTML strings or ID strings\n\t// (both of which we optimize for)\n\tquickExpr = /^(?:[^<]*(<[\\w\\W]+>)[^>]*$|#([\\w\\-]+)$)/,\n\n\t// Check if a string has a non-whitespace character in it\n\trnotwhite = /\\S/,\n\n\t// Used for trimming whitespace\n\ttrimLeft = /^\\s+/,\n\ttrimRight = /\\s+$/,\n\n\t// Check for digits\n\trdigit = /\\d/,\n\n\t// Match a standalone tag\n\trsingleTag = /^<(\\w+)\\s*\\/?>(?:<\\/\\1>)?$/,\n\n\t// JSON RegExp\n\trvalidchars = /^[\\],:{}\\s]*$/,\n\trvalidescape = /\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,\n\trvalidtokens = /\"[^\"\\\\\\n\\r]*\"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g,\n\trvalidbraces = /(?:^|:|,)(?:\\s*\\[)+/g,\n\n\t// Useragent RegExp\n\trwebkit = /(webkit)[ \\/]([\\w.]+)/,\n\tropera = /(opera)(?:.*version)?[ \\/]([\\w.]+)/,\n\trmsie = /(msie) ([\\w.]+)/,\n\trmozilla = /(mozilla)(?:.*? rv:([\\w.]+))?/,\n\n\t// Keep a UserAgent string for use with jQuery.browser\n\tuserAgent = navigator.userAgent,\n\n\t// For matching the engine and version of the browser\n\tbrowserMatch,\n\n\t// Has the ready events already been bound?\n\treadyBound = false,\n\n\t// The deferred used on DOM ready\n\treadyList,\n\n\t// Promise methods\n\tpromiseMethods = \"then done fail isResolved isRejected promise\".split( \" \" ),\n\n\t// The ready event handler\n\tDOMContentLoaded,\n\n\t// Save a reference to some core methods\n\ttoString = Object.prototype.toString,\n\thasOwn = Object.prototype.hasOwnProperty,\n\tpush = Array.prototype.push,\n\tslice = Array.prototype.slice,\n\ttrim = String.prototype.trim,\n\tindexOf = Array.prototype.indexOf,\n\n\t// [[Class]] -> type pairs\n\tclass2type = {};\n\njQuery.fn = jQuery.prototype = {\n\tconstructor: jQuery,\n\tinit: function( selector, context, rootjQuery ) {\n\t\tvar match, elem, ret, doc;\n\n\t\t// Handle $(\"\"), $(null), or $(undefined)\n\t\tif ( !selector ) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// Handle $(DOMElement)\n\t\tif ( selector.nodeType ) {\n\t\t\tthis.context = this[0] = selector;\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\t\t}\n\n\t\t// The body element only exists once, optimize finding it\n\t\tif ( selector === \"body\" && !context && document.body ) {\n\t\t\tthis.context = document;\n\t\t\tthis[0] = document.body;\n\t\t\tthis.selector = \"body\";\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\t\t}\n\n\t\t// Handle HTML strings\n\t\tif ( typeof selector === \"string\" ) {\n\t\t\t// Are we dealing with HTML string or an ID?\n\t\t\tmatch = quickExpr.exec( selector );\n\n\t\t\t// Verify a match, and that no context was specified for #id\n\t\t\tif ( match && (match[1] || !context) ) {\n\n\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\tif ( match[1] ) {\n\t\t\t\t\tcontext = context instanceof jQuery ? context[0] : context;\n\t\t\t\t\tdoc = (context ? context.ownerDocument || context : document);\n\n\t\t\t\t\t// If a single string is passed in and it's a single tag\n\t\t\t\t\t// just do a createElement and skip the rest\n\t\t\t\t\tret = rsingleTag.exec( selector );\n\n\t\t\t\t\tif ( ret ) {\n\t\t\t\t\t\tif ( jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\t\tselector = [ document.createElement( ret[1] ) ];\n\t\t\t\t\t\t\tjQuery.fn.attr.call( selector, context, true );\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tselector = [ doc.createElement( ret[1] ) ];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tret = jQuery.buildFragment( [ match[1] ], [ doc ] );\n\t\t\t\t\t\tselector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn jQuery.merge( this, selector );\n\n\t\t\t\t// HANDLE: $(\"#id\")\n\t\t\t\t} else {\n\t\t\t\t\telem = document.getElementById( match[2] );\n\n\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\t\t\t\t\t// nodes that are no longer in the document #6963\n\t\t\t\t\tif ( elem && elem.parentNode ) {\n\t\t\t\t\t\t// Handle the case where IE and Opera return items\n\t\t\t\t\t\t// by name instead of ID\n\t\t\t\t\t\tif ( elem.id !== match[2] ) {\n\t\t\t\t\t\t\treturn rootjQuery.find( selector );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Otherwise, we inject the element directly into the jQuery object\n\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t\tthis[0] = elem;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.context = document;\n\t\t\t\t\tthis.selector = selector;\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\treturn (context || rootjQuery).find( selector );\n\n\t\t\t// HANDLE: $(expr, context)\n\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t} else {\n\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t}\n\n\t\t// HANDLE: $(function)\n\t\t// Shortcut for document ready\n\t\t} else if ( jQuery.isFunction( selector ) ) {\n\t\t\treturn rootjQuery.ready( selector );\n\t\t}\n\n\t\tif (selector.selector !== undefined) {\n\t\t\tthis.selector = selector.selector;\n\t\t\tthis.context = selector.context;\n\t\t}\n\n\t\treturn jQuery.makeArray( selector, this );\n\t},\n\n\t// Start with an empty selector\n\tselector: \"\",\n\n\t// The current version of jQuery being used\n\tjquery: \"1.5.1\",\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\t// The number of elements contained in the matched element set\n\tsize: function() {\n\t\treturn this.length;\n\t},\n\n\ttoArray: function() {\n\t\treturn slice.call( this, 0 );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\t\treturn num == null ?\n\n\t\t\t// Return a 'clean' array\n\t\t\tthis.toArray() :\n\n\t\t\t// Return just the object\n\t\t\t( num < 0 ? this[ this.length + num ] : this[ num ] );\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems, name, selector ) {\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = this.constructor();\n\n\t\tif ( jQuery.isArray( elems ) ) {\n\t\t\tpush.apply( ret, elems );\n\n\t\t} else {\n\t\t\tjQuery.merge( ret, elems );\n\t\t}\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\n\t\tret.context = this.context;\n\n\t\tif ( name === \"find\" ) {\n\t\t\tret.selector = this.selector + (this.selector ? \" \" : \"\") + selector;\n\t\t} else if ( name ) {\n\t\t\tret.selector = this.selector + \".\" + name + \"(\" + selector + \")\";\n\t\t}\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\t// (You can seed the arguments with an array of args, but this is\n\t// only used internally.)\n\teach: function( callback, args ) {\n\t\treturn jQuery.each( this, callback, args );\n\t},\n\n\tready: function( fn ) {\n\t\t// Attach the listeners\n\t\tjQuery.bindReady();\n\n\t\t// Add the callback\n\t\treadyList.done( fn );\n\n\t\treturn this;\n\t},\n\n\teq: function( i ) {\n\t\treturn i === -1 ?\n\t\t\tthis.slice( i ) :\n\t\t\tthis.slice( i, +i + 1 );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( slice.apply( this, arguments ),\n\t\t\t\"slice\", slice.call(arguments).join(\",\") );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map(this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t}));\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor(null);\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: push,\n\tsort: [].sort,\n\tsplice: [].splice\n};\n\n// Give the init function the jQuery prototype for later instantiation\njQuery.fn.init.prototype = jQuery.fn;\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[0] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !jQuery.isFunction(target) ) {\n\t\ttarget = {};\n\t}\n\n\t// extend jQuery itself if only one argument is passed\n\tif ( length === i ) {\n\t\ttarget = this;\n\t\t--i;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\t\t// Only deal with non-null/undefined values\n\t\tif ( (options = arguments[ i ]) != null ) {\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tsrc = target[ name ];\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {\n\t\t\t\t\tif ( copyIsArray ) {\n\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\tclone = src && jQuery.isArray(src) ? src : [];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src && jQuery.isPlainObject(src) ? src : {};\n\t\t\t\t\t}\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend({\n\tnoConflict: function( deep ) {\n\t\twindow.$ = _$;\n\n\t\tif ( deep ) {\n\t\t\twindow.jQuery = _jQuery;\n\t\t}\n\n\t\treturn jQuery;\n\t},\n\n\t// Is the DOM ready to be used? Set to true once it occurs.\n\tisReady: false,\n\n\t// A counter to track how many items to wait for before\n\t// the ready event fires. See #6781\n\treadyWait: 1,\n\n\t// Handle when the DOM is ready\n\tready: function( wait ) {\n\t\t// A third-party is pushing the ready event forwards\n\t\tif ( wait === true ) {\n\t\t\tjQuery.readyWait--;\n\t\t}\n\n\t\t// Make sure that the DOM is not already loaded\n\t\tif ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) {\n\t\t\t// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\n\t\t\tif ( !document.body ) {\n\t\t\t\treturn setTimeout( jQuery.ready, 1 );\n\t\t\t}\n\n\t\t\t// Remember that the DOM is ready\n\t\t\tjQuery.isReady = true;\n\n\t\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If there are functions bound, to execute\n\t\t\treadyList.resolveWith( document, [ jQuery ] );\n\n\t\t\t// Trigger any bound ready events\n\t\t\tif ( jQuery.fn.trigger ) {\n\t\t\t\tjQuery( document ).trigger( \"ready\" ).unbind( \"ready\" );\n\t\t\t}\n\t\t}\n\t},\n\n\tbindReady: function() {\n\t\tif ( readyBound ) {\n\t\t\treturn;\n\t\t}\n\n\t\treadyBound = true;\n\n\t\t// Catch cases where $(document).ready() is called after the\n\t\t// browser event has already occurred.\n\t\tif ( document.readyState === \"complete\" ) {\n\t\t\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\t\t\treturn setTimeout( jQuery.ready, 1 );\n\t\t}\n\n\t\t// Mozilla, Opera and webkit nightlies currently support this event\n\t\tif ( document.addEventListener ) {\n\t\t\t// Use the handy event callback\n\t\t\tdocument.addEventListener( \"DOMContentLoaded\", DOMContentLoaded, false );\n\n\t\t\t// A fallback to window.onload, that will always work\n\t\t\twindow.addEventListener( \"load\", jQuery.ready, false );\n\n\t\t// If IE event model is used\n\t\t} else if ( document.attachEvent ) {\n\t\t\t// ensure firing before onload,\n\t\t\t// maybe late but safe also for iframes\n\t\t\tdocument.attachEvent(\"onreadystatechange\", DOMContentLoaded);\n\n\t\t\t// A fallback to window.onload, that will always work\n\t\t\twindow.attachEvent( \"onload\", jQuery.ready );\n\n\t\t\t// If IE and not a frame\n\t\t\t// continually check to see if the document is ready\n\t\t\tvar toplevel = false;\n\n\t\t\ttry {\n\t\t\t\ttoplevel = window.frameElement == null;\n\t\t\t} catch(e) {}\n\n\t\t\tif ( document.documentElement.doScroll && toplevel ) {\n\t\t\t\tdoScrollCheck();\n\t\t\t}\n\t\t}\n\t},\n\n\t// See test/unit/core.js for details concerning isFunction.\n\t// Since version 1.3, DOM methods and functions like alert\n\t// aren't supported. They return false on IE (#2968).\n\tisFunction: function( obj ) {\n\t\treturn jQuery.type(obj) === \"function\";\n\t},\n\n\tisArray: Array.isArray || function( obj ) {\n\t\treturn jQuery.type(obj) === \"array\";\n\t},\n\n\t// A crude way of determining if an object is a window\n\tisWindow: function( obj ) {\n\t\treturn obj && typeof obj === \"object\" && \"setInterval\" in obj;\n\t},\n\n\tisNaN: function( obj ) {\n\t\treturn obj == null || !rdigit.test( obj ) || isNaN( obj );\n\t},\n\n\ttype: function( obj ) {\n\t\treturn obj == null ?\n\t\t\tString( obj ) :\n\t\t\tclass2type[ toString.call(obj) ] || \"object\";\n\t},\n\n\tisPlainObject: function( obj ) {\n\t\t// Must be an Object.\n\t\t// Because of IE, we also have to check the presence of the constructor property.\n\t\t// Make sure that DOM nodes and window objects don't pass through, as well\n\t\tif ( !obj || jQuery.type(obj) !== \"object\" || obj.nodeType || jQuery.isWindow( obj ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Not own constructor property must be Object\n\t\tif ( obj.constructor &&\n\t\t\t!hasOwn.call(obj, \"constructor\") &&\n\t\t\t!hasOwn.call(obj.constructor.prototype, \"isPrototypeOf\") ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Own properties are enumerated firstly, so to speed up,\n\t\t// if last one is own, then all properties are own.\n\n\t\tvar key;\n\t\tfor ( key in obj ) {}\n\n\t\treturn key === undefined || hasOwn.call( obj, key );\n\t},\n\n\tisEmptyObject: function( obj ) {\n\t\tfor ( var name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\terror: function( msg ) {\n\t\tthrow msg;\n\t},\n\n\tparseJSON: function( data ) {\n\t\tif ( typeof data !== \"string\" || !data ) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// Make sure leading/trailing whitespace is removed (IE can't handle it)\n\t\tdata = jQuery.trim( data );\n\n\t\t// Make sure the incoming data is actual JSON\n\t\t// Logic borrowed from http://json.org/json2.js\n\t\tif ( rvalidchars.test(data.replace(rvalidescape, \"@\")\n\t\t\t.replace(rvalidtokens, \"]\")\n\t\t\t.replace(rvalidbraces, \"\")) ) {\n\n\t\t\t// Try to use the native JSON parser first\n\t\t\treturn window.JSON && window.JSON.parse ?\n\t\t\t\twindow.JSON.parse( data ) :\n\t\t\t\t(new Function(\"return \" + data))();\n\n\t\t} else {\n\t\t\tjQuery.error( \"Invalid JSON: \" + data );\n\t\t}\n\t},\n\n\t// Cross-browser xml parsing\n\t// (xml & tmp used internally)\n\tparseXML: function( data , xml , tmp ) {\n\n\t\tif ( window.DOMParser ) { // Standard\n\t\t\ttmp = new DOMParser();\n\t\t\txml = tmp.parseFromString( data , \"text/xml\" );\n\t\t} else { // IE\n\t\t\txml = new ActiveXObject( \"Microsoft.XMLDOM\" );\n\t\t\txml.async = \"false\";\n\t\t\txml.loadXML( data );\n\t\t}\n\n\t\ttmp = xml.documentElement;\n\n\t\tif ( ! tmp || ! tmp.nodeName || tmp.nodeName === \"parsererror\" ) {\n\t\t\tjQuery.error( \"Invalid XML: \" + data );\n\t\t}\n\n\t\treturn xml;\n\t},\n\n\tnoop: function() {},\n\n\t// Evalulates a script in a global context\n\tglobalEval: function( data ) {\n\t\tif ( data && rnotwhite.test(data) ) {\n\t\t\t// Inspired by code by Andrea Giammarchi\n\t\t\t// http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html\n\t\t\tvar head = document.head || document.getElementsByTagName( \"head\" )[0] || document.documentElement,\n\t\t\t\tscript = document.createElement( \"script\" );\n\n\t\t\tif ( jQuery.support.scriptEval() ) {\n\t\t\t\tscript.appendChild( document.createTextNode( data ) );\n\t\t\t} else {\n\t\t\t\tscript.text = data;\n\t\t\t}\n\n\t\t\t// Use insertBefore instead of appendChild to circumvent an IE6 bug.\n\t\t\t// This arises when a base node is used (#2709).\n\t\t\thead.insertBefore( script, head.firstChild );\n\t\t\thead.removeChild( script );\n\t\t}\n\t},\n\n\tnodeName: function( elem, name ) {\n\t\treturn elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();\n\t},\n\n\t// args is for internal usage only\n\teach: function( object, callback, args ) {\n\t\tvar name, i = 0,\n\t\t\tlength = object.length,\n\t\t\tisObj = length === undefined || jQuery.isFunction(object);\n\n\t\tif ( args ) {\n\t\t\tif ( isObj ) {\n\t\t\t\tfor ( name in object ) {\n\t\t\t\t\tif ( callback.apply( object[ name ], args ) === false ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( ; i < length; ) {\n\t\t\t\t\tif ( callback.apply( object[ i++ ], args ) === false ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// A special, fast, case for the most common use of each\n\t\t} else {\n\t\t\tif ( isObj ) {\n\t\t\t\tfor ( name in object ) {\n\t\t\t\t\tif ( callback.call( object[ name ], name, object[ name ] ) === false ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( var value = object[0];\n\t\t\t\t\ti < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}\n\t\t\t}\n\t\t}\n\n\t\treturn object;\n\t},\n\n\t// Use native String.trim function wherever possible\n\ttrim: trim ?\n\t\tfunction( text ) {\n\t\t\treturn text == null ?\n\t\t\t\t\"\" :\n\t\t\t\ttrim.call( text );\n\t\t} :\n\n\t\t// Otherwise use our own trimming functionality\n\t\tfunction( text ) {\n\t\t\treturn text == null ?\n\t\t\t\t\"\" :\n\t\t\t\ttext.toString().replace( trimLeft, \"\" ).replace( trimRight, \"\" );\n\t\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( array, results ) {\n\t\tvar ret = results || [];\n\n\t\tif ( array != null ) {\n\t\t\t// The window, strings (and functions) also have 'length'\n\t\t\t// The extra typeof function check is to prevent crashes\n\t\t\t// in Safari 2 (See: #3039)\n\t\t\t// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930\n\t\t\tvar type = jQuery.type(array);\n\n\t\t\tif ( array.length == null || type === \"string\" || type === \"function\" || type === \"regexp\" || jQuery.isWindow( array ) ) {\n\t\t\t\tpush.call( ret, array );\n\t\t\t} else {\n\t\t\t\tjQuery.merge( ret, array );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, array ) {\n\t\tif ( array.indexOf ) {\n\t\t\treturn array.indexOf( elem );\n\t\t}\n\n\t\tfor ( var i = 0, length = array.length; i < length; i++ ) {\n\t\t\tif ( array[ i ] === elem ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t},\n\n\tmerge: function( first, second ) {\n\t\tvar i = first.length,\n\t\t\tj = 0;\n\n\t\tif ( typeof second.length === \"number\" ) {\n\t\t\tfor ( var l = second.length; j < l; j++ ) {\n\t\t\t\tfirst[ i++ ] = second[ j ];\n\t\t\t}\n\n\t\t} else {\n\t\t\twhile ( second[j] !== undefined ) {\n\t\t\t\tfirst[ i++ ] = second[ j++ ];\n\t\t\t}\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, inv ) {\n\t\tvar ret = [], retVal;\n\t\tinv = !!inv;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( var i = 0, length = elems.length; i < length; i++ ) {\n\t\t\tretVal = !!callback( elems[ i ], i );\n\t\t\tif ( inv !== retVal ) {\n\t\t\t\tret.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar ret = [], value;\n\n\t\t// Go through the array, translating each of the items to their\n\t\t// new value (or values).\n\t\tfor ( var i = 0, length = elems.length; i < length; i++ ) {\n\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\tif ( value != null ) {\n\t\t\t\tret[ ret.length ] = value;\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn ret.concat.apply( [], ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\tproxy: function( fn, proxy, thisObject ) {\n\t\tif ( arguments.length === 2 ) {\n\t\t\tif ( typeof proxy === \"string\" ) {\n\t\t\t\tthisObject = fn;\n\t\t\t\tfn = thisObject[ proxy ];\n\t\t\t\tproxy = undefined;\n\n\t\t\t} else if ( proxy && !jQuery.isFunction( proxy ) ) {\n\t\t\t\tthisObject = proxy;\n\t\t\t\tproxy = undefined;\n\t\t\t}\n\t\t}\n\n\t\tif ( !proxy && fn ) {\n\t\t\tproxy = function() {\n\t\t\t\treturn fn.apply( thisObject || this, arguments );\n\t\t\t};\n\t\t}\n\n\t\t// Set the guid of unique handler to the same of original handler, so it can be removed\n\t\tif ( fn ) {\n\t\t\tproxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;\n\t\t}\n\n\t\t// So proxy can be declared as an argument\n\t\treturn proxy;\n\t},\n\n\t// Mutifunctional method to get and set values to a collection\n\t// The value/s can be optionally by executed if its a function\n\taccess: function( elems, key, value, exec, fn, pass ) {\n\t\tvar length = elems.length;\n\n\t\t// Setting many attributes\n\t\tif ( typeof key === \"object\" ) {\n\t\t\tfor ( var k in key ) {\n\t\t\t\tjQuery.access( elems, k, key[k], exec, fn, value );\n\t\t\t}\n\t\t\treturn elems;\n\t\t}\n\n\t\t// Setting one attribute\n\t\tif ( value !== undefined ) {\n\t\t\t// Optionally, function values get executed if exec is true\n\t\t\texec = !pass && exec && jQuery.isFunction(value);\n\n\t\t\tfor ( var i = 0; i < length; i++ ) {\n\t\t\t\tfn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );\n\t\t\t}\n\n\t\t\treturn elems;\n\t\t}\n\n\t\t// Getting an attribute\n\t\treturn length ? fn( elems[0], key ) : undefined;\n\t},\n\n\tnow: function() {\n\t\treturn (new Date()).getTime();\n\t},\n\n\t// Create a simple deferred (one callbacks list)\n\t_Deferred: function() {\n\t\tvar // callbacks list\n\t\t\tcallbacks = [],\n\t\t\t// stored [ context , args ]\n\t\t\tfired,\n\t\t\t// to avoid firing when already doing so\n\t\t\tfiring,\n\t\t\t// flag to know if the deferred has been cancelled\n\t\t\tcancelled,\n\t\t\t// the deferred itself\n\t\t\tdeferred  = {\n\n\t\t\t\t// done( f1, f2, ...)\n\t\t\t\tdone: function() {\n\t\t\t\t\tif ( !cancelled ) {\n\t\t\t\t\t\tvar args = arguments,\n\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\tlength,\n\t\t\t\t\t\t\telem,\n\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\t_fired;\n\t\t\t\t\t\tif ( fired ) {\n\t\t\t\t\t\t\t_fired = fired;\n\t\t\t\t\t\t\tfired = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor ( i = 0, length = args.length; i < length; i++ ) {\n\t\t\t\t\t\t\telem = args[ i ];\n\t\t\t\t\t\t\ttype = jQuery.type( elem );\n\t\t\t\t\t\t\tif ( type === \"array\" ) {\n\t\t\t\t\t\t\t\tdeferred.done.apply( deferred, elem );\n\t\t\t\t\t\t\t} else if ( type === \"function\" ) {\n\t\t\t\t\t\t\t\tcallbacks.push( elem );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( _fired ) {\n\t\t\t\t\t\t\tdeferred.resolveWith( _fired[ 0 ], _fired[ 1 ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// resolve with given context and args\n\t\t\t\tresolveWith: function( context, args ) {\n\t\t\t\t\tif ( !cancelled && !fired && !firing ) {\n\t\t\t\t\t\tfiring = 1;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twhile( callbacks[ 0 ] ) {\n\t\t\t\t\t\t\t\tcallbacks.shift().apply( context, args );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// We have to add a catch block for\n\t\t\t\t\t\t// IE prior to 8 or else the finally\n\t\t\t\t\t\t// block will never get executed\n\t\t\t\t\t\tcatch (e) {\n\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\tfired = [ context, args ];\n\t\t\t\t\t\t\tfiring = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// resolve with this as context and given arguments\n\t\t\t\tresolve: function() {\n\t\t\t\t\tdeferred.resolveWith( jQuery.isFunction( this.promise ) ? this.promise() : this, arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Has this deferred been resolved?\n\t\t\t\tisResolved: function() {\n\t\t\t\t\treturn !!( firing || fired );\n\t\t\t\t},\n\n\t\t\t\t// Cancel\n\t\t\t\tcancel: function() {\n\t\t\t\t\tcancelled = 1;\n\t\t\t\t\tcallbacks = [];\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t};\n\n\t\treturn deferred;\n\t},\n\n\t// Full fledged deferred (two callbacks list)\n\tDeferred: function( func ) {\n\t\tvar deferred = jQuery._Deferred(),\n\t\t\tfailDeferred = jQuery._Deferred(),\n\t\t\tpromise;\n\t\t// Add errorDeferred methods, then and promise\n\t\tjQuery.extend( deferred, {\n\t\t\tthen: function( doneCallbacks, failCallbacks ) {\n\t\t\t\tdeferred.done( doneCallbacks ).fail( failCallbacks );\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tfail: failDeferred.done,\n\t\t\trejectWith: failDeferred.resolveWith,\n\t\t\treject: failDeferred.resolve,\n\t\t\tisRejected: failDeferred.isResolved,\n\t\t\t// Get a promise for this deferred\n\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\tpromise: function( obj ) {\n\t\t\t\tif ( obj == null ) {\n\t\t\t\t\tif ( promise ) {\n\t\t\t\t\t\treturn promise;\n\t\t\t\t\t}\n\t\t\t\t\tpromise = obj = {};\n\t\t\t\t}\n\t\t\t\tvar i = promiseMethods.length;\n\t\t\t\twhile( i-- ) {\n\t\t\t\t\tobj[ promiseMethods[i] ] = deferred[ promiseMethods[i] ];\n\t\t\t\t}\n\t\t\t\treturn obj;\n\t\t\t}\n\t\t} );\n\t\t// Make sure only one callback list will be used\n\t\tdeferred.done( failDeferred.cancel ).fail( deferred.cancel );\n\t\t// Unexpose cancel\n\t\tdelete deferred.cancel;\n\t\t// Call given func if any\n\t\tif ( func ) {\n\t\t\tfunc.call( deferred, deferred );\n\t\t}\n\t\treturn deferred;\n\t},\n\n\t// Deferred helper\n\twhen: function( object ) {\n\t\tvar lastIndex = arguments.length,\n\t\t\tdeferred = lastIndex <= 1 && object && jQuery.isFunction( object.promise ) ?\n\t\t\t\tobject :\n\t\t\t\tjQuery.Deferred(),\n\t\t\tpromise = deferred.promise();\n\n\t\tif ( lastIndex > 1 ) {\n\t\t\tvar array = slice.call( arguments, 0 ),\n\t\t\t\tcount = lastIndex,\n\t\t\t\tiCallback = function( index ) {\n\t\t\t\t\treturn function( value ) {\n\t\t\t\t\t\tarray[ index ] = arguments.length > 1 ? slice.call( arguments, 0 ) : value;\n\t\t\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\t\t\tdeferred.resolveWith( promise, array );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\twhile( ( lastIndex-- ) ) {\n\t\t\t\tobject = array[ lastIndex ];\n\t\t\t\tif ( object && jQuery.isFunction( object.promise ) ) {\n\t\t\t\t\tobject.promise().then( iCallback(lastIndex), deferred.reject );\n\t\t\t\t} else {\n\t\t\t\t\t--count;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( !count ) {\n\t\t\t\tdeferred.resolveWith( promise, array );\n\t\t\t}\n\t\t} else if ( deferred !== object ) {\n\t\t\tdeferred.resolve( object );\n\t\t}\n\t\treturn promise;\n\t},\n\n\t// Use of jQuery.browser is frowned upon.\n\t// More details: http://docs.jquery.com/Utilities/jQuery.browser\n\tuaMatch: function( ua ) {\n\t\tua = ua.toLowerCase();\n\n\t\tvar match = rwebkit.exec( ua ) ||\n\t\t\tropera.exec( ua ) ||\n\t\t\trmsie.exec( ua ) ||\n\t\t\tua.indexOf(\"compatible\") < 0 && rmozilla.exec( ua ) ||\n\t\t\t[];\n\n\t\treturn { browser: match[1] || \"\", version: match[2] || \"0\" };\n\t},\n\n\tsub: function() {\n\t\tfunction jQuerySubclass( selector, context ) {\n\t\t\treturn new jQuerySubclass.fn.init( selector, context );\n\t\t}\n\t\tjQuery.extend( true, jQuerySubclass, this );\n\t\tjQuerySubclass.superclass = this;\n\t\tjQuerySubclass.fn = jQuerySubclass.prototype = this();\n\t\tjQuerySubclass.fn.constructor = jQuerySubclass;\n\t\tjQuerySubclass.subclass = this.subclass;\n\t\tjQuerySubclass.fn.init = function init( selector, context ) {\n\t\t\tif ( context && context instanceof jQuery && !(context instanceof jQuerySubclass) ) {\n\t\t\t\tcontext = jQuerySubclass(context);\n\t\t\t}\n\n\t\t\treturn jQuery.fn.init.call( this, selector, context, rootjQuerySubclass );\n\t\t};\n\t\tjQuerySubclass.fn.init.prototype = jQuerySubclass.fn;\n\t\tvar rootjQuerySubclass = jQuerySubclass(document);\n\t\treturn jQuerySubclass;\n\t},\n\n\tbrowser: {}\n});\n\n// Create readyList deferred\nreadyList = jQuery._Deferred();\n\n// Populate the class2type map\njQuery.each(\"Boolean Number String Function Array Date RegExp Object\".split(\" \"), function(i, name) {\n\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n});\n\nbrowserMatch = jQuery.uaMatch( userAgent );\nif ( browserMatch.browser ) {\n\tjQuery.browser[ browserMatch.browser ] = true;\n\tjQuery.browser.version = browserMatch.version;\n}\n\n// Deprecated, use jQuery.browser.webkit instead\nif ( jQuery.browser.webkit ) {\n\tjQuery.browser.safari = true;\n}\n\nif ( indexOf ) {\n\tjQuery.inArray = function( elem, array ) {\n\t\treturn indexOf.call( array, elem );\n\t};\n}\n\n// IE doesn't match non-breaking spaces with \\s\nif ( rnotwhite.test( \"\\xA0\" ) ) {\n\ttrimLeft = /^[\\s\\xA0]+/;\n\ttrimRight = /[\\s\\xA0]+$/;\n}\n\n// All jQuery objects should point back to these\nrootjQuery = jQuery(document);\n\n// Cleanup functions for the document ready method\nif ( document.addEventListener ) {\n\tDOMContentLoaded = function() {\n\t\tdocument.removeEventListener( \"DOMContentLoaded\", DOMContentLoaded, false );\n\t\tjQuery.ready();\n\t};\n\n} else if ( document.attachEvent ) {\n\tDOMContentLoaded = function() {\n\t\t// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\n\t\tif ( document.readyState === \"complete\" ) {\n\t\t\tdocument.detachEvent( \"onreadystatechange\", DOMContentLoaded );\n\t\t\tjQuery.ready();\n\t\t}\n\t};\n}\n\n// The DOM ready check for Internet Explorer\nfunction doScrollCheck() {\n\tif ( jQuery.isReady ) {\n\t\treturn;\n\t}\n\n\ttry {\n\t\t// If IE is used, use the trick by Diego Perini\n\t\t// http://javascript.nwbox.com/IEContentLoaded/\n\t\tdocument.documentElement.doScroll(\"left\");\n\t} catch(e) {\n\t\tsetTimeout( doScrollCheck, 1 );\n\t\treturn;\n\t}\n\n\t// and execute any waiting functions\n\tjQuery.ready();\n}\n\n// Expose jQuery to the global object\nreturn jQuery;\n\n})();\n\n\n(function() {\n\n\tjQuery.support = {};\n\n\tvar div = document.createElement(\"div\");\n\n\tdiv.style.display = \"none\";\n\tdiv.innerHTML = \"   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>\";\n\n\tvar all = div.getElementsByTagName(\"*\"),\n\t\ta = div.getElementsByTagName(\"a\")[0],\n\t\tselect = document.createElement(\"select\"),\n\t\topt = select.appendChild( document.createElement(\"option\") ),\n\t\tinput = div.getElementsByTagName(\"input\")[0];\n\n\t// Can't get basic test support\n\tif ( !all || !all.length || !a ) {\n\t\treturn;\n\t}\n\n\tjQuery.support = {\n\t\t// IE strips leading whitespace when .innerHTML is used\n\t\tleadingWhitespace: div.firstChild.nodeType === 3,\n\n\t\t// Make sure that tbody elements aren't automatically inserted\n\t\t// IE will insert them into empty tables\n\t\ttbody: !div.getElementsByTagName(\"tbody\").length,\n\n\t\t// Make sure that link elements get serialized correctly by innerHTML\n\t\t// This requires a wrapper element in IE\n\t\thtmlSerialize: !!div.getElementsByTagName(\"link\").length,\n\n\t\t// Get the style information from getAttribute\n\t\t// (IE uses .cssText insted)\n\t\tstyle: /red/.test( a.getAttribute(\"style\") ),\n\n\t\t// Make sure that URLs aren't manipulated\n\t\t// (IE normalizes it by default)\n\t\threfNormalized: a.getAttribute(\"href\") === \"/a\",\n\n\t\t// Make sure that element opacity exists\n\t\t// (IE uses filter instead)\n\t\t// Use a regex to work around a WebKit issue. See #5145\n\t\topacity: /^0.55$/.test( a.style.opacity ),\n\n\t\t// Verify style float existence\n\t\t// (IE uses styleFloat instead of cssFloat)\n\t\tcssFloat: !!a.style.cssFloat,\n\n\t\t// Make sure that if no value is specified for a checkbox\n\t\t// that it defaults to \"on\".\n\t\t// (WebKit defaults to \"\" instead)\n\t\tcheckOn: input.value === \"on\",\n\n\t\t// Make sure that a selected-by-default option has a working selected property.\n\t\t// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)\n\t\toptSelected: opt.selected,\n\n\t\t// Will be defined later\n\t\tdeleteExpando: true,\n\t\toptDisabled: false,\n\t\tcheckClone: false,\n\t\tnoCloneEvent: true,\n\t\tnoCloneChecked: true,\n\t\tboxModel: null,\n\t\tinlineBlockNeedsLayout: false,\n\t\tshrinkWrapBlocks: false,\n\t\treliableHiddenOffsets: true\n\t};\n\n\tinput.checked = true;\n\tjQuery.support.noCloneChecked = input.cloneNode( true ).checked;\n\n\t// Make sure that the options inside disabled selects aren't marked as disabled\n\t// (WebKit marks them as diabled)\n\tselect.disabled = true;\n\tjQuery.support.optDisabled = !opt.disabled;\n\n\tvar _scriptEval = null;\n\tjQuery.support.scriptEval = function() {\n\t\tif ( _scriptEval === null ) {\n\t\t\tvar root = document.documentElement,\n\t\t\t\tscript = document.createElement(\"script\"),\n\t\t\t\tid = \"script\" + jQuery.now();\n\n\t\t\ttry {\n\t\t\t\tscript.appendChild( document.createTextNode( \"window.\" + id + \"=1;\" ) );\n\t\t\t} catch(e) {}\n\n\t\t\troot.insertBefore( script, root.firstChild );\n\n\t\t\t// Make sure that the execution of code works by injecting a script\n\t\t\t// tag with appendChild/createTextNode\n\t\t\t// (IE doesn't support this, fails, and uses .text instead)\n\t\t\tif ( window[ id ] ) {\n\t\t\t\t_scriptEval = true;\n\t\t\t\tdelete window[ id ];\n\t\t\t} else {\n\t\t\t\t_scriptEval = false;\n\t\t\t}\n\n\t\t\troot.removeChild( script );\n\t\t\t// release memory in IE\n\t\t\troot = script = id  = null;\n\t\t}\n\n\t\treturn _scriptEval;\n\t};\n\n\t// Test to see if it's possible to delete an expando from an element\n\t// Fails in Internet Explorer\n\ttry {\n\t\tdelete div.test;\n\n\t} catch(e) {\n\t\tjQuery.support.deleteExpando = false;\n\t}\n\n\tif ( !div.addEventListener && div.attachEvent && div.fireEvent ) {\n\t\tdiv.attachEvent(\"onclick\", function click() {\n\t\t\t// Cloning a node shouldn't copy over any\n\t\t\t// bound event handlers (IE does this)\n\t\t\tjQuery.support.noCloneEvent = false;\n\t\t\tdiv.detachEvent(\"onclick\", click);\n\t\t});\n\t\tdiv.cloneNode(true).fireEvent(\"onclick\");\n\t}\n\n\tdiv = document.createElement(\"div\");\n\tdiv.innerHTML = \"<input type='radio' name='radiotest' checked='checked'/>\";\n\n\tvar fragment = document.createDocumentFragment();\n\tfragment.appendChild( div.firstChild );\n\n\t// WebKit doesn't clone checked state correctly in fragments\n\tjQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;\n\n\t// Figure out if the W3C box model works as expected\n\t// document.body must exist before we can do this\n\tjQuery(function() {\n\t\tvar div = document.createElement(\"div\"),\n\t\t\tbody = document.getElementsByTagName(\"body\")[0];\n\n\t\t// Frameset documents with no body should not run this code\n\t\tif ( !body ) {\n\t\t\treturn;\n\t\t}\n\n\t\tdiv.style.width = div.style.paddingLeft = \"1px\";\n\t\tbody.appendChild( div );\n\t\tjQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;\n\n\t\tif ( \"zoom\" in div.style ) {\n\t\t\t// Check if natively block-level elements act like inline-block\n\t\t\t// elements when setting their display to 'inline' and giving\n\t\t\t// them layout\n\t\t\t// (IE < 8 does this)\n\t\t\tdiv.style.display = \"inline\";\n\t\t\tdiv.style.zoom = 1;\n\t\t\tjQuery.support.inlineBlockNeedsLayout = div.offsetWidth === 2;\n\n\t\t\t// Check if elements with layout shrink-wrap their children\n\t\t\t// (IE 6 does this)\n\t\t\tdiv.style.display = \"\";\n\t\t\tdiv.innerHTML = \"<div style='width:4px;'></div>\";\n\t\t\tjQuery.support.shrinkWrapBlocks = div.offsetWidth !== 2;\n\t\t}\n\n\t\tdiv.innerHTML = \"<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>\";\n\t\tvar tds = div.getElementsByTagName(\"td\");\n\n\t\t// Check if table cells still have offsetWidth/Height when they are set\n\t\t// to display:none and there are still other visible table cells in a\n\t\t// table row; if so, offsetWidth/Height are not reliable for use when\n\t\t// determining if an element has been hidden directly using\n\t\t// display:none (it is still safe to use offsets if a parent element is\n\t\t// hidden; don safety goggles and see bug #4512 for more information).\n\t\t// (only IE 8 fails this test)\n\t\tjQuery.support.reliableHiddenOffsets = tds[0].offsetHeight === 0;\n\n\t\ttds[0].style.display = \"\";\n\t\ttds[1].style.display = \"none\";\n\n\t\t// Check if empty table cells still have offsetWidth/Height\n\t\t// (IE < 8 fail this test)\n\t\tjQuery.support.reliableHiddenOffsets = jQuery.support.reliableHiddenOffsets && tds[0].offsetHeight === 0;\n\t\tdiv.innerHTML = \"\";\n\n\t\tbody.removeChild( div ).style.display = \"none\";\n\t\tdiv = tds = null;\n\t});\n\n\t// Technique from Juriy Zaytsev\n\t// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/\n\tvar eventSupported = function( eventName ) {\n\t\tvar el = document.createElement(\"div\");\n\t\teventName = \"on\" + eventName;\n\n\t\t// We only care about the case where non-standard event systems\n\t\t// are used, namely in IE. Short-circuiting here helps us to\n\t\t// avoid an eval call (in setAttribute) which can cause CSP\n\t\t// to go haywire. See: https://developer.mozilla.org/en/Security/CSP\n\t\tif ( !el.attachEvent ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tvar isSupported = (eventName in el);\n\t\tif ( !isSupported ) {\n\t\t\tel.setAttribute(eventName, \"return;\");\n\t\t\tisSupported = typeof el[eventName] === \"function\";\n\t\t}\n\t\tel = null;\n\n\t\treturn isSupported;\n\t};\n\n\tjQuery.support.submitBubbles = eventSupported(\"submit\");\n\tjQuery.support.changeBubbles = eventSupported(\"change\");\n\n\t// release memory in IE\n\tdiv = all = a = null;\n})();\n\n\n\nvar rbrace = /^(?:\\{.*\\}|\\[.*\\])$/;\n\njQuery.extend({\n\tcache: {},\n\n\t// Please use with caution\n\tuuid: 0,\n\n\t// Unique for each copy of jQuery on the page\n\t// Non-digits removed to match rinlinejQuery\n\texpando: \"jQuery\" + ( jQuery.fn.jquery + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// The following elements throw uncatchable exceptions if you\n\t// attempt to add expando properties to them.\n\tnoData: {\n\t\t\"embed\": true,\n\t\t// Ban all objects except for Flash (which handle expandos)\n\t\t\"object\": \"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\",\n\t\t\"applet\": true\n\t},\n\n\thasData: function( elem ) {\n\t\telem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];\n\n\t\treturn !!elem && !isEmptyDataObject( elem );\n\t},\n\n\tdata: function( elem, name, data, pvt /* Internal Use Only */ ) {\n\t\tif ( !jQuery.acceptData( elem ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar internalKey = jQuery.expando, getByName = typeof name === \"string\", thisCache,\n\n\t\t\t// We have to handle DOM nodes and JS objects differently because IE6-7\n\t\t\t// can't GC object references properly across the DOM-JS boundary\n\t\t\tisNode = elem.nodeType,\n\n\t\t\t// Only DOM nodes need the global jQuery cache; JS object data is\n\t\t\t// attached directly to the object so GC can occur automatically\n\t\t\tcache = isNode ? jQuery.cache : elem,\n\n\t\t\t// Only defining an ID for JS objects if its cache already exists allows\n\t\t\t// the code to shortcut on the same path as a DOM node with no cache\n\t\t\tid = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando;\n\n\t\t// Avoid doing any more work than we need to when trying to get data on an\n\t\t// object that has no data at all\n\t\tif ( (!id || (pvt && id && !cache[ id ][ internalKey ])) && getByName && data === undefined ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !id ) {\n\t\t\t// Only DOM nodes need a new unique ID for each element since their data\n\t\t\t// ends up in the global cache\n\t\t\tif ( isNode ) {\n\t\t\t\telem[ jQuery.expando ] = id = ++jQuery.uuid;\n\t\t\t} else {\n\t\t\t\tid = jQuery.expando;\n\t\t\t}\n\t\t}\n\n\t\tif ( !cache[ id ] ) {\n\t\t\tcache[ id ] = {};\n\n\t\t\t// TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery\n\t\t\t// metadata on plain JS objects when the object is serialized using\n\t\t\t// JSON.stringify\n\t\t\tif ( !isNode ) {\n\t\t\t\tcache[ id ].toJSON = jQuery.noop;\n\t\t\t}\n\t\t}\n\n\t\t// An object can be passed to jQuery.data instead of a key/value pair; this gets\n\t\t// shallow copied over onto the existing cache\n\t\tif ( typeof name === \"object\" || typeof name === \"function\" ) {\n\t\t\tif ( pvt ) {\n\t\t\t\tcache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name);\n\t\t\t} else {\n\t\t\t\tcache[ id ] = jQuery.extend(cache[ id ], name);\n\t\t\t}\n\t\t}\n\n\t\tthisCache = cache[ id ];\n\n\t\t// Internal jQuery data is stored in a separate object inside the object's data\n\t\t// cache in order to avoid key collisions between internal data and user-defined\n\t\t// data\n\t\tif ( pvt ) {\n\t\t\tif ( !thisCache[ internalKey ] ) {\n\t\t\t\tthisCache[ internalKey ] = {};\n\t\t\t}\n\n\t\t\tthisCache = thisCache[ internalKey ];\n\t\t}\n\n\t\tif ( data !== undefined ) {\n\t\t\tthisCache[ name ] = data;\n\t\t}\n\n\t\t// TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should\n\t\t// not attempt to inspect the internal events object using jQuery.data, as this\n\t\t// internal data object is undocumented and subject to change.\n\t\tif ( name === \"events\" && !thisCache[name] ) {\n\t\t\treturn thisCache[ internalKey ] && thisCache[ internalKey ].events;\n\t\t}\n\n\t\treturn getByName ? thisCache[ name ] : thisCache;\n\t},\n\n\tremoveData: function( elem, name, pvt /* Internal Use Only */ ) {\n\t\tif ( !jQuery.acceptData( elem ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar internalKey = jQuery.expando, isNode = elem.nodeType,\n\n\t\t\t// See jQuery.data for more information\n\t\t\tcache = isNode ? jQuery.cache : elem,\n\n\t\t\t// See jQuery.data for more information\n\t\t\tid = isNode ? elem[ jQuery.expando ] : jQuery.expando;\n\n\t\t// If there is already no cache entry for this object, there is no\n\t\t// purpose in continuing\n\t\tif ( !cache[ id ] ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( name ) {\n\t\t\tvar thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ];\n\n\t\t\tif ( thisCache ) {\n\t\t\t\tdelete thisCache[ name ];\n\n\t\t\t\t// If there is no data left in the cache, we want to continue\n\t\t\t\t// and let the cache object itself get destroyed\n\t\t\t\tif ( !isEmptyDataObject(thisCache) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// See jQuery.data for more information\n\t\tif ( pvt ) {\n\t\t\tdelete cache[ id ][ internalKey ];\n\n\t\t\t// Don't destroy the parent cache unless the internal data object\n\t\t\t// had been the only thing left in it\n\t\t\tif ( !isEmptyDataObject(cache[ id ]) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tvar internalCache = cache[ id ][ internalKey ];\n\n\t\t// Browsers that fail expando deletion also refuse to delete expandos on\n\t\t// the window, but it will allow it on all other JS objects; other browsers\n\t\t// don't care\n\t\tif ( jQuery.support.deleteExpando || cache != window ) {\n\t\t\tdelete cache[ id ];\n\t\t} else {\n\t\t\tcache[ id ] = null;\n\t\t}\n\n\t\t// We destroyed the entire user cache at once because it's faster than\n\t\t// iterating through each key, but we need to continue to persist internal\n\t\t// data if it existed\n\t\tif ( internalCache ) {\n\t\t\tcache[ id ] = {};\n\t\t\t// TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery\n\t\t\t// metadata on plain JS objects when the object is serialized using\n\t\t\t// JSON.stringify\n\t\t\tif ( !isNode ) {\n\t\t\t\tcache[ id ].toJSON = jQuery.noop;\n\t\t\t}\n\n\t\t\tcache[ id ][ internalKey ] = internalCache;\n\n\t\t// Otherwise, we need to eliminate the expando on the node to avoid\n\t\t// false lookups in the cache for entries that no longer exist\n\t\t} else if ( isNode ) {\n\t\t\t// IE does not allow us to delete expando properties from nodes,\n\t\t\t// nor does it have a removeAttribute function on Document nodes;\n\t\t\t// we must handle all of these cases\n\t\t\tif ( jQuery.support.deleteExpando ) {\n\t\t\t\tdelete elem[ jQuery.expando ];\n\t\t\t} else if ( elem.removeAttribute ) {\n\t\t\t\telem.removeAttribute( jQuery.expando );\n\t\t\t} else {\n\t\t\t\telem[ jQuery.expando ] = null;\n\t\t\t}\n\t\t}\n\t},\n\n\t// For internal use only.\n\t_data: function( elem, name, data ) {\n\t\treturn jQuery.data( elem, name, data, true );\n\t},\n\n\t// A method for determining if a DOM node can handle the data expando\n\tacceptData: function( elem ) {\n\t\tif ( elem.nodeName ) {\n\t\t\tvar match = jQuery.noData[ elem.nodeName.toLowerCase() ];\n\n\t\t\tif ( match ) {\n\t\t\t\treturn !(match === true || elem.getAttribute(\"classid\") !== match);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n});\n\njQuery.fn.extend({\n\tdata: function( key, value ) {\n\t\tvar data = null;\n\n\t\tif ( typeof key === \"undefined\" ) {\n\t\t\tif ( this.length ) {\n\t\t\t\tdata = jQuery.data( this[0] );\n\n\t\t\t\tif ( this[0].nodeType === 1 ) {\n\t\t\t\t\tvar attr = this[0].attributes, name;\n\t\t\t\t\tfor ( var i = 0, l = attr.length; i < l; i++ ) {\n\t\t\t\t\t\tname = attr[i].name;\n\n\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\t\t\t\t\t\t\tname = name.substr( 5 );\n\t\t\t\t\t\t\tdataAttr( this[0], name, data[ name ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn data;\n\n\t\t} else if ( typeof key === \"object\" ) {\n\t\t\treturn this.each(function() {\n\t\t\t\tjQuery.data( this, key );\n\t\t\t});\n\t\t}\n\n\t\tvar parts = key.split(\".\");\n\t\tparts[1] = parts[1] ? \".\" + parts[1] : \"\";\n\n\t\tif ( value === undefined ) {\n\t\t\tdata = this.triggerHandler(\"getData\" + parts[1] + \"!\", [parts[0]]);\n\n\t\t\t// Try to fetch any internally stored data first\n\t\t\tif ( data === undefined && this.length ) {\n\t\t\t\tdata = jQuery.data( this[0], key );\n\t\t\t\tdata = dataAttr( this[0], key, data );\n\t\t\t}\n\n\t\t\treturn data === undefined && parts[1] ?\n\t\t\t\tthis.data( parts[0] ) :\n\t\t\t\tdata;\n\n\t\t} else {\n\t\t\treturn this.each(function() {\n\t\t\t\tvar $this = jQuery( this ),\n\t\t\t\t\targs = [ parts[0], value ];\n\n\t\t\t\t$this.triggerHandler( \"setData\" + parts[1] + \"!\", args );\n\t\t\t\tjQuery.data( this, key, value );\n\t\t\t\t$this.triggerHandler( \"changeData\" + parts[1] + \"!\", args );\n\t\t\t});\n\t\t}\n\t},\n\n\tremoveData: function( key ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.removeData( this, key );\n\t\t});\n\t}\n});\n\nfunction dataAttr( elem, key, data ) {\n\t// If nothing was found internally, try to fetch any\n\t// data from the HTML5 data-* attribute\n\tif ( data === undefined && elem.nodeType === 1 ) {\n\t\tdata = elem.getAttribute( \"data-\" + key );\n\n\t\tif ( typeof data === \"string\" ) {\n\t\t\ttry {\n\t\t\t\tdata = data === \"true\" ? true :\n\t\t\t\tdata === \"false\" ? false :\n\t\t\t\tdata === \"null\" ? null :\n\t\t\t\t!jQuery.isNaN( data ) ? parseFloat( data ) :\n\t\t\t\t\trbrace.test( data ) ? jQuery.parseJSON( data ) :\n\t\t\t\t\tdata;\n\t\t\t} catch( e ) {}\n\n\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\tjQuery.data( elem, key, data );\n\n\t\t} else {\n\t\t\tdata = undefined;\n\t\t}\n\t}\n\n\treturn data;\n}\n\n// TODO: This is a hack for 1.5 ONLY to allow objects with a single toJSON\n// property to be considered empty objects; this property always exists in\n// order to make sure JSON.stringify does not expose internal metadata\nfunction isEmptyDataObject( obj ) {\n\tfor ( var name in obj ) {\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\n\n\n\njQuery.extend({\n\tqueue: function( elem, type, data ) {\n\t\tif ( !elem ) {\n\t\t\treturn;\n\t\t}\n\n\t\ttype = (type || \"fx\") + \"queue\";\n\t\tvar q = jQuery._data( elem, type );\n\n\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\tif ( !data ) {\n\t\t\treturn q || [];\n\t\t}\n\n\t\tif ( !q || jQuery.isArray(data) ) {\n\t\t\tq = jQuery._data( elem, type, jQuery.makeArray(data) );\n\n\t\t} else {\n\t\t\tq.push( data );\n\t\t}\n\n\t\treturn q;\n\t},\n\n\tdequeue: function( elem, type ) {\n\t\ttype = type || \"fx\";\n\n\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\tfn = queue.shift();\n\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\tif ( fn === \"inprogress\" ) {\n\t\t\tfn = queue.shift();\n\t\t}\n\n\t\tif ( fn ) {\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t// automatically dequeued\n\t\t\tif ( type === \"fx\" ) {\n\t\t\t\tqueue.unshift(\"inprogress\");\n\t\t\t}\n\n\t\t\tfn.call(elem, function() {\n\t\t\t\tjQuery.dequeue(elem, type);\n\t\t\t});\n\t\t}\n\n\t\tif ( !queue.length ) {\n\t\t\tjQuery.removeData( elem, type + \"queue\", true );\n\t\t}\n\t}\n});\n\njQuery.fn.extend({\n\tqueue: function( type, data ) {\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tdata = type;\n\t\t\ttype = \"fx\";\n\t\t}\n\n\t\tif ( data === undefined ) {\n\t\t\treturn jQuery.queue( this[0], type );\n\t\t}\n\t\treturn this.each(function( i ) {\n\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\tif ( type === \"fx\" && queue[0] !== \"inprogress\" ) {\n\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t}\n\t\t});\n\t},\n\tdequeue: function( type ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.dequeue( this, type );\n\t\t});\n\t},\n\n\t// Based off of the plugin by Clint Helfers, with permission.\n\t// http://blindsignals.com/index.php/2009/07/jquery-delay/\n\tdelay: function( time, type ) {\n\t\ttime = jQuery.fx ? jQuery.fx.speeds[time] || time : time;\n\t\ttype = type || \"fx\";\n\n\t\treturn this.queue( type, function() {\n\t\t\tvar elem = this;\n\t\t\tsetTimeout(function() {\n\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t}, time );\n\t\t});\n\t},\n\n\tclearQueue: function( type ) {\n\t\treturn this.queue( type || \"fx\", [] );\n\t}\n});\n\n\n\n\nvar rclass = /[\\n\\t\\r]/g,\n\trspaces = /\\s+/,\n\trreturn = /\\r/g,\n\trspecialurl = /^(?:href|src|style)$/,\n\trtype = /^(?:button|input)$/i,\n\trfocusable = /^(?:button|input|object|select|textarea)$/i,\n\trclickable = /^a(?:rea)?$/i,\n\trradiocheck = /^(?:radio|checkbox)$/i;\n\njQuery.props = {\n\t\"for\": \"htmlFor\",\n\t\"class\": \"className\",\n\treadonly: \"readOnly\",\n\tmaxlength: \"maxLength\",\n\tcellspacing: \"cellSpacing\",\n\trowspan: \"rowSpan\",\n\tcolspan: \"colSpan\",\n\ttabindex: \"tabIndex\",\n\tusemap: \"useMap\",\n\tframeborder: \"frameBorder\"\n};\n\njQuery.fn.extend({\n\tattr: function( name, value ) {\n\t\treturn jQuery.access( this, name, value, true, jQuery.attr );\n\t},\n\n\tremoveAttr: function( name, fn ) {\n\t\treturn this.each(function(){\n\t\t\tjQuery.attr( this, name, \"\" );\n\t\t\tif ( this.nodeType === 1 ) {\n\t\t\t\tthis.removeAttribute( name );\n\t\t\t}\n\t\t});\n\t},\n\n\taddClass: function( value ) {\n\t\tif ( jQuery.isFunction(value) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tvar self = jQuery(this);\n\t\t\t\tself.addClass( value.call(this, i, self.attr(\"class\")) );\n\t\t\t});\n\t\t}\n\n\t\tif ( value && typeof value === \"string\" ) {\n\t\t\tvar classNames = (value || \"\").split( rspaces );\n\n\t\t\tfor ( var i = 0, l = this.length; i < l; i++ ) {\n\t\t\t\tvar elem = this[i];\n\n\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\tif ( !elem.className ) {\n\t\t\t\t\t\telem.className = value;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar className = \" \" + elem.className + \" \",\n\t\t\t\t\t\t\tsetClass = elem.className;\n\n\t\t\t\t\t\tfor ( var c = 0, cl = classNames.length; c < cl; c++ ) {\n\t\t\t\t\t\t\tif ( className.indexOf( \" \" + classNames[c] + \" \" ) < 0 ) {\n\t\t\t\t\t\t\t\tsetClass += \" \" + classNames[c];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telem.className = jQuery.trim( setClass );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tremoveClass: function( value ) {\n\t\tif ( jQuery.isFunction(value) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tvar self = jQuery(this);\n\t\t\t\tself.removeClass( value.call(this, i, self.attr(\"class\")) );\n\t\t\t});\n\t\t}\n\n\t\tif ( (value && typeof value === \"string\") || value === undefined ) {\n\t\t\tvar classNames = (value || \"\").split( rspaces );\n\n\t\t\tfor ( var i = 0, l = this.length; i < l; i++ ) {\n\t\t\t\tvar elem = this[i];\n\n\t\t\t\tif ( elem.nodeType === 1 && elem.className ) {\n\t\t\t\t\tif ( value ) {\n\t\t\t\t\t\tvar className = (\" \" + elem.className + \" \").replace(rclass, \" \");\n\t\t\t\t\t\tfor ( var c = 0, cl = classNames.length; c < cl; c++ ) {\n\t\t\t\t\t\t\tclassName = className.replace(\" \" + classNames[c] + \" \", \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telem.className = jQuery.trim( className );\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\telem.className = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\ttoggleClass: function( value, stateVal ) {\n\t\tvar type = typeof value,\n\t\t\tisBool = typeof stateVal === \"boolean\";\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tvar self = jQuery(this);\n\t\t\t\tself.toggleClass( value.call(this, i, self.attr(\"class\"), stateVal), stateVal );\n\t\t\t});\n\t\t}\n\n\t\treturn this.each(function() {\n\t\t\tif ( type === \"string\" ) {\n\t\t\t\t// toggle individual class names\n\t\t\t\tvar className,\n\t\t\t\t\ti = 0,\n\t\t\t\t\tself = jQuery( this ),\n\t\t\t\t\tstate = stateVal,\n\t\t\t\t\tclassNames = value.split( rspaces );\n\n\t\t\t\twhile ( (className = classNames[ i++ ]) ) {\n\t\t\t\t\t// check each className given, space seperated list\n\t\t\t\t\tstate = isBool ? state : !self.hasClass( className );\n\t\t\t\t\tself[ state ? \"addClass\" : \"removeClass\" ]( className );\n\t\t\t\t}\n\n\t\t\t} else if ( type === \"undefined\" || type === \"boolean\" ) {\n\t\t\t\tif ( this.className ) {\n\t\t\t\t\t// store className if set\n\t\t\t\t\tjQuery._data( this, \"__className__\", this.className );\n\t\t\t\t}\n\n\t\t\t\t// toggle whole className\n\t\t\t\tthis.className = this.className || value === false ? \"\" : jQuery._data( this, \"__className__\" ) || \"\";\n\t\t\t}\n\t\t});\n\t},\n\n\thasClass: function( selector ) {\n\t\tvar className = \" \" + selector + \" \";\n\t\tfor ( var i = 0, l = this.length; i < l; i++ ) {\n\t\t\tif ( (\" \" + this[i].className + \" \").replace(rclass, \" \").indexOf( className ) > -1 ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t},\n\n\tval: function( value ) {\n\t\tif ( !arguments.length ) {\n\t\t\tvar elem = this[0];\n\n\t\t\tif ( elem ) {\n\t\t\t\tif ( jQuery.nodeName( elem, \"option\" ) ) {\n\t\t\t\t\t// attributes.value is undefined in Blackberry 4.7 but\n\t\t\t\t\t// uses .value. See #6932\n\t\t\t\t\tvar val = elem.attributes.value;\n\t\t\t\t\treturn !val || val.specified ? elem.value : elem.text;\n\t\t\t\t}\n\n\t\t\t\t// We need to handle select boxes special\n\t\t\t\tif ( jQuery.nodeName( elem, \"select\" ) ) {\n\t\t\t\t\tvar index = elem.selectedIndex,\n\t\t\t\t\t\tvalues = [],\n\t\t\t\t\t\toptions = elem.options,\n\t\t\t\t\t\tone = elem.type === \"select-one\";\n\n\t\t\t\t\t// Nothing was selected\n\t\t\t\t\tif ( index < 0 ) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Loop through all the selected options\n\t\t\t\t\tfor ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {\n\t\t\t\t\t\tvar option = options[ i ];\n\n\t\t\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\n\t\t\t\t\t\tif ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute(\"disabled\") === null) &&\n\t\t\t\t\t\t\t\t(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, \"optgroup\" )) ) {\n\n\t\t\t\t\t\t\t// Get the specific value for the option\n\t\t\t\t\t\t\tvalue = jQuery(option).val();\n\n\t\t\t\t\t\t\t// We don't need an array for one selects\n\t\t\t\t\t\t\tif ( one ) {\n\t\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Multi-Selects return an array\n\t\t\t\t\t\t\tvalues.push( value );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Fixes Bug #2551 -- select.val() broken in IE after form.reset()\n\t\t\t\t\tif ( one && !values.length && options.length ) {\n\t\t\t\t\t\treturn jQuery( options[ index ] ).val();\n\t\t\t\t\t}\n\n\t\t\t\t\treturn values;\n\t\t\t\t}\n\n\t\t\t\t// Handle the case where in Webkit \"\" is returned instead of \"on\" if a value isn't specified\n\t\t\t\tif ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {\n\t\t\t\t\treturn elem.getAttribute(\"value\") === null ? \"on\" : elem.value;\n\t\t\t\t}\n\n\t\t\t\t// Everything else, we just grab the value\n\t\t\t\treturn (elem.value || \"\").replace(rreturn, \"\");\n\n\t\t\t}\n\n\t\t\treturn undefined;\n\t\t}\n\n\t\tvar isFunction = jQuery.isFunction(value);\n\n\t\treturn this.each(function(i) {\n\t\t\tvar self = jQuery(this), val = value;\n\n\t\t\tif ( this.nodeType !== 1 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( isFunction ) {\n\t\t\t\tval = value.call(this, i, self.val());\n\t\t\t}\n\n\t\t\t// Treat null/undefined as \"\"; convert numbers to string\n\t\t\tif ( val == null ) {\n\t\t\t\tval = \"\";\n\t\t\t} else if ( typeof val === \"number\" ) {\n\t\t\t\tval += \"\";\n\t\t\t} else if ( jQuery.isArray(val) ) {\n\t\t\t\tval = jQuery.map(val, function (value) {\n\t\t\t\t\treturn value == null ? \"\" : value + \"\";\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {\n\t\t\t\tthis.checked = jQuery.inArray( self.val(), val ) >= 0;\n\n\t\t\t} else if ( jQuery.nodeName( this, \"select\" ) ) {\n\t\t\t\tvar values = jQuery.makeArray(val);\n\n\t\t\t\tjQuery( \"option\", this ).each(function() {\n\t\t\t\t\tthis.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;\n\t\t\t\t});\n\n\t\t\t\tif ( !values.length ) {\n\t\t\t\t\tthis.selectedIndex = -1;\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tthis.value = val;\n\t\t\t}\n\t\t});\n\t}\n});\n\njQuery.extend({\n\tattrFn: {\n\t\tval: true,\n\t\tcss: true,\n\t\thtml: true,\n\t\ttext: true,\n\t\tdata: true,\n\t\twidth: true,\n\t\theight: true,\n\t\toffset: true\n\t},\n\n\tattr: function( elem, name, value, pass ) {\n\t\t// don't get/set attributes on text, comment and attribute nodes\n\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || elem.nodeType === 2 ) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tif ( pass && name in jQuery.attrFn ) {\n\t\t\treturn jQuery(elem)[name](value);\n\t\t}\n\n\t\tvar notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ),\n\t\t\t// Whether we are setting (or getting)\n\t\t\tset = value !== undefined;\n\n\t\t// Try to normalize/fix the name\n\t\tname = notxml && jQuery.props[ name ] || name;\n\n\t\t// Only do all the following if this is a node (faster for style)\n\t\tif ( elem.nodeType === 1 ) {\n\t\t\t// These attributes require special treatment\n\t\t\tvar special = rspecialurl.test( name );\n\n\t\t\t// Safari mis-reports the default selected property of an option\n\t\t\t// Accessing the parent's selectedIndex property fixes it\n\t\t\tif ( name === \"selected\" && !jQuery.support.optSelected ) {\n\t\t\t\tvar parent = elem.parentNode;\n\t\t\t\tif ( parent ) {\n\t\t\t\t\tparent.selectedIndex;\n\n\t\t\t\t\t// Make sure that it also works with optgroups, see #5701\n\t\t\t\t\tif ( parent.parentNode ) {\n\t\t\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If applicable, access the attribute via the DOM 0 way\n\t\t\t// 'in' checks fail in Blackberry 4.7 #6931\n\t\t\tif ( (name in elem || elem[ name ] !== undefined) && notxml && !special ) {\n\t\t\t\tif ( set ) {\n\t\t\t\t\t// We can't allow the type property to be changed (since it causes problems in IE)\n\t\t\t\t\tif ( name === \"type\" && rtype.test( elem.nodeName ) && elem.parentNode ) {\n\t\t\t\t\t\tjQuery.error( \"type property can't be changed\" );\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( value === null ) {\n\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\t\telem.removeAttribute( name );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\telem[ name ] = value;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// browsers index elements by id/name on forms, give priority to attributes.\n\t\t\t\tif ( jQuery.nodeName( elem, \"form\" ) && elem.getAttributeNode(name) ) {\n\t\t\t\t\treturn elem.getAttributeNode( name ).nodeValue;\n\t\t\t\t}\n\n\t\t\t\t// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set\n\t\t\t\t// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\n\t\t\t\tif ( name === \"tabIndex\" ) {\n\t\t\t\t\tvar attributeNode = elem.getAttributeNode( \"tabIndex\" );\n\n\t\t\t\t\treturn attributeNode && attributeNode.specified ?\n\t\t\t\t\t\tattributeNode.value :\n\t\t\t\t\t\trfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?\n\t\t\t\t\t\t\t0 :\n\t\t\t\t\t\t\tundefined;\n\t\t\t\t}\n\n\t\t\t\treturn elem[ name ];\n\t\t\t}\n\n\t\t\tif ( !jQuery.support.style && notxml && name === \"style\" ) {\n\t\t\t\tif ( set ) {\n\t\t\t\t\telem.style.cssText = \"\" + value;\n\t\t\t\t}\n\n\t\t\t\treturn elem.style.cssText;\n\t\t\t}\n\n\t\t\tif ( set ) {\n\t\t\t\t// convert the value to a string (all browsers do this but IE) see #1070\n\t\t\t\telem.setAttribute( name, \"\" + value );\n\t\t\t}\n\n\t\t\t// Ensure that missing attributes return undefined\n\t\t\t// Blackberry 4.7 returns \"\" from getAttribute #6938\n\t\t\tif ( !elem.attributes[ name ] && (elem.hasAttribute && !elem.hasAttribute( name )) ) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\n\t\t\tvar attr = !jQuery.support.hrefNormalized && notxml && special ?\n\t\t\t\t\t// Some attributes require a special call on IE\n\t\t\t\t\telem.getAttribute( name, 2 ) :\n\t\t\t\t\telem.getAttribute( name );\n\n\t\t\t// Non-existent attributes return null, we normalize to undefined\n\t\t\treturn attr === null ? undefined : attr;\n\t\t}\n\t\t// Handle everything which isn't a DOM element node\n\t\tif ( set ) {\n\t\t\telem[ name ] = value;\n\t\t}\n\t\treturn elem[ name ];\n\t}\n});\n\n\n\n\nvar rnamespaces = /\\.(.*)$/,\n\trformElems = /^(?:textarea|input|select)$/i,\n\trperiod = /\\./g,\n\trspace = / /g,\n\trescape = /[^\\w\\s.|`]/g,\n\tfcleanup = function( nm ) {\n\t\treturn nm.replace(rescape, \"\\\\$&\");\n\t};\n\n/*\n * A number of helper functions used for managing events.\n * Many of the ideas behind this code originated from\n * Dean Edwards' addEvent library.\n */\njQuery.event = {\n\n\t// Bind an event to an element\n\t// Original by Dean Edwards\n\tadd: function( elem, types, handler, data ) {\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// TODO :: Use a try/catch until it's safe to pull this out (likely 1.6)\n\t\t// Minor release fix for bug #8018\n\t\ttry {\n\t\t\t// For whatever reason, IE has trouble passing the window object\n\t\t\t// around, causing it to be cloned in the process\n\t\t\tif ( jQuery.isWindow( elem ) && ( elem !== window && !elem.frameElement ) ) {\n\t\t\t\telem = window;\n\t\t\t}\n\t\t}\n\t\tcatch ( e ) {}\n\n\t\tif ( handler === false ) {\n\t\t\thandler = returnFalse;\n\t\t} else if ( !handler ) {\n\t\t\t// Fixes bug #7229. Fix recommended by jdalton\n\t\t\treturn;\n\t\t}\n\n\t\tvar handleObjIn, handleObj;\n\n\t\tif ( handler.handler ) {\n\t\t\thandleObjIn = handler;\n\t\t\thandler = handleObjIn.handler;\n\t\t}\n\n\t\t// Make sure that the function being executed has a unique ID\n\t\tif ( !handler.guid ) {\n\t\t\thandler.guid = jQuery.guid++;\n\t\t}\n\n\t\t// Init the element's event structure\n\t\tvar elemData = jQuery._data( elem );\n\n\t\t// If no elemData is found then we must be trying to bind to one of the\n\t\t// banned noData elements\n\t\tif ( !elemData ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar events = elemData.events,\n\t\t\teventHandle = elemData.handle;\n\n\t\tif ( !events ) {\n\t\t\telemData.events = events = {};\n\t\t}\n\n\t\tif ( !eventHandle ) {\n\t\t\telemData.handle = eventHandle = function() {\n\t\t\t\t// Handle the second event of a trigger and when\n\t\t\t\t// an event is called after a page has unloaded\n\t\t\t\treturn typeof jQuery !== \"undefined\" && !jQuery.event.triggered ?\n\t\t\t\t\tjQuery.event.handle.apply( eventHandle.elem, arguments ) :\n\t\t\t\t\tundefined;\n\t\t\t};\n\t\t}\n\n\t\t// Add elem as a property of the handle function\n\t\t// This is to prevent a memory leak with non-native events in IE.\n\t\teventHandle.elem = elem;\n\n\t\t// Handle multiple events separated by a space\n\t\t// jQuery(...).bind(\"mouseover mouseout\", fn);\n\t\ttypes = types.split(\" \");\n\n\t\tvar type, i = 0, namespaces;\n\n\t\twhile ( (type = types[ i++ ]) ) {\n\t\t\thandleObj = handleObjIn ?\n\t\t\t\tjQuery.extend({}, handleObjIn) :\n\t\t\t\t{ handler: handler, data: data };\n\n\t\t\t// Namespaced event handlers\n\t\t\tif ( type.indexOf(\".\") > -1 ) {\n\t\t\t\tnamespaces = type.split(\".\");\n\t\t\t\ttype = namespaces.shift();\n\t\t\t\thandleObj.namespace = namespaces.slice(0).sort().join(\".\");\n\n\t\t\t} else {\n\t\t\t\tnamespaces = [];\n\t\t\t\thandleObj.namespace = \"\";\n\t\t\t}\n\n\t\t\thandleObj.type = type;\n\t\t\tif ( !handleObj.guid ) {\n\t\t\t\thandleObj.guid = handler.guid;\n\t\t\t}\n\n\t\t\t// Get the current list of functions bound to this event\n\t\t\tvar handlers = events[ type ],\n\t\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// Init the event handler queue\n\t\t\tif ( !handlers ) {\n\t\t\t\thandlers = events[ type ] = [];\n\n\t\t\t\t// Check for a special event handler\n\t\t\t\t// Only use addEventListener/attachEvent if the special\n\t\t\t\t// events handler returns false\n\t\t\t\tif ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\t\t\t\t\t// Bind the global event handler to the element\n\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\telem.addEventListener( type, eventHandle, false );\n\n\t\t\t\t\t} else if ( elem.attachEvent ) {\n\t\t\t\t\t\telem.attachEvent( \"on\" + type, eventHandle );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( special.add ) {\n\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add the function to the element's handler list\n\t\t\thandlers.push( handleObj );\n\n\t\t\t// Keep track of which events have been used, for global triggering\n\t\t\tjQuery.event.global[ type ] = true;\n\t\t}\n\n\t\t// Nullify elem to prevent memory leaks in IE\n\t\telem = null;\n\t},\n\n\tglobal: {},\n\n\t// Detach an event or set of events from an element\n\tremove: function( elem, types, handler, pos ) {\n\t\t// don't do events on text and comment nodes\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( handler === false ) {\n\t\t\thandler = returnFalse;\n\t\t}\n\n\t\tvar ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,\n\t\t\telemData = jQuery.hasData( elem ) && jQuery._data( elem ),\n\t\t\tevents = elemData && elemData.events;\n\n\t\tif ( !elemData || !events ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// types is actually an event object here\n\t\tif ( types && types.type ) {\n\t\t\thandler = types.handler;\n\t\t\ttypes = types.type;\n\t\t}\n\n\t\t// Unbind all events for the element\n\t\tif ( !types || typeof types === \"string\" && types.charAt(0) === \".\" ) {\n\t\t\ttypes = types || \"\";\n\n\t\t\tfor ( type in events ) {\n\t\t\t\tjQuery.event.remove( elem, type + types );\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Handle multiple events separated by a space\n\t\t// jQuery(...).unbind(\"mouseover mouseout\", fn);\n\t\ttypes = types.split(\" \");\n\n\t\twhile ( (type = types[ i++ ]) ) {\n\t\t\torigType = type;\n\t\t\thandleObj = null;\n\t\t\tall = type.indexOf(\".\") < 0;\n\t\t\tnamespaces = [];\n\n\t\t\tif ( !all ) {\n\t\t\t\t// Namespaced event handlers\n\t\t\t\tnamespaces = type.split(\".\");\n\t\t\t\ttype = namespaces.shift();\n\n\t\t\t\tnamespace = new RegExp(\"(^|\\\\.)\" +\n\t\t\t\t\tjQuery.map( namespaces.slice(0).sort(), fcleanup ).join(\"\\\\.(?:.*\\\\.)?\") + \"(\\\\.|$)\");\n\t\t\t}\n\n\t\t\teventType = events[ type ];\n\n\t\t\tif ( !eventType ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( !handler ) {\n\t\t\t\tfor ( j = 0; j < eventType.length; j++ ) {\n\t\t\t\t\thandleObj = eventType[ j ];\n\n\t\t\t\t\tif ( all || namespace.test( handleObj.namespace ) ) {\n\t\t\t\t\t\tjQuery.event.remove( elem, origType, handleObj.handler, j );\n\t\t\t\t\t\teventType.splice( j--, 1 );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\tfor ( j = pos || 0; j < eventType.length; j++ ) {\n\t\t\t\thandleObj = eventType[ j ];\n\n\t\t\t\tif ( handler.guid === handleObj.guid ) {\n\t\t\t\t\t// remove the given handler for the given type\n\t\t\t\t\tif ( all || namespace.test( handleObj.namespace ) ) {\n\t\t\t\t\t\tif ( pos == null ) {\n\t\t\t\t\t\t\teventType.splice( j--, 1 );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( pos != null ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// remove generic event handler if no more handlers exist\n\t\t\tif ( eventType.length === 0 || pos != null && eventType.length === 1 ) {\n\t\t\t\tif ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t}\n\n\t\t\t\tret = null;\n\t\t\t\tdelete events[ type ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove the expando if it's no longer used\n\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\tvar handle = elemData.handle;\n\t\t\tif ( handle ) {\n\t\t\t\thandle.elem = null;\n\t\t\t}\n\n\t\t\tdelete elemData.events;\n\t\t\tdelete elemData.handle;\n\n\t\t\tif ( jQuery.isEmptyObject( elemData ) ) {\n\t\t\t\tjQuery.removeData( elem, undefined, true );\n\t\t\t}\n\t\t}\n\t},\n\n\t// bubbling is internal\n\ttrigger: function( event, data, elem /*, bubbling */ ) {\n\t\t// Event object or event type\n\t\tvar type = event.type || event,\n\t\t\tbubbling = arguments[3];\n\n\t\tif ( !bubbling ) {\n\t\t\tevent = typeof event === \"object\" ?\n\t\t\t\t// jQuery.Event object\n\t\t\t\tevent[ jQuery.expando ] ? event :\n\t\t\t\t// Object literal\n\t\t\t\tjQuery.extend( jQuery.Event(type), event ) :\n\t\t\t\t// Just the event type (string)\n\t\t\t\tjQuery.Event(type);\n\n\t\t\tif ( type.indexOf(\"!\") >= 0 ) {\n\t\t\t\tevent.type = type = type.slice(0, -1);\n\t\t\t\tevent.exclusive = true;\n\t\t\t}\n\n\t\t\t// Handle a global trigger\n\t\t\tif ( !elem ) {\n\t\t\t\t// Don't bubble custom events when global (to avoid too much overhead)\n\t\t\t\tevent.stopPropagation();\n\n\t\t\t\t// Only trigger if we've ever bound an event for it\n\t\t\t\tif ( jQuery.event.global[ type ] ) {\n\t\t\t\t\t// XXX This code smells terrible. event.js should not be directly\n\t\t\t\t\t// inspecting the data cache\n\t\t\t\t\tjQuery.each( jQuery.cache, function() {\n\t\t\t\t\t\t// internalKey variable is just used to make it easier to find\n\t\t\t\t\t\t// and potentially change this stuff later; currently it just\n\t\t\t\t\t\t// points to jQuery.expando\n\t\t\t\t\t\tvar internalKey = jQuery.expando,\n\t\t\t\t\t\t\tinternalCache = this[ internalKey ];\n\t\t\t\t\t\tif ( internalCache && internalCache.events && internalCache.events[ type ] ) {\n\t\t\t\t\t\t\tjQuery.event.trigger( event, data, internalCache.handle.elem );\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Handle triggering a single element\n\n\t\t\t// don't do events on text and comment nodes\n\t\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\n\t\t\t// Clean up in case it is reused\n\t\t\tevent.result = undefined;\n\t\t\tevent.target = elem;\n\n\t\t\t// Clone the incoming data, if any\n\t\t\tdata = jQuery.makeArray( data );\n\t\t\tdata.unshift( event );\n\t\t}\n\n\t\tevent.currentTarget = elem;\n\n\t\t// Trigger the event, it is assumed that \"handle\" is a function\n\t\tvar handle = jQuery._data( elem, \"handle\" );\n\n\t\tif ( handle ) {\n\t\t\thandle.apply( elem, data );\n\t\t}\n\n\t\tvar parent = elem.parentNode || elem.ownerDocument;\n\n\t\t// Trigger an inline bound script\n\t\ttry {\n\t\t\tif ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {\n\t\t\t\tif ( elem[ \"on\" + type ] && elem[ \"on\" + type ].apply( elem, data ) === false ) {\n\t\t\t\t\tevent.result = false;\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t}\n\n\t\t// prevent IE from throwing an error for some elements with some event types, see #3533\n\t\t} catch (inlineError) {}\n\n\t\tif ( !event.isPropagationStopped() && parent ) {\n\t\t\tjQuery.event.trigger( event, data, parent, true );\n\n\t\t} else if ( !event.isDefaultPrevented() ) {\n\t\t\tvar old,\n\t\t\t\ttarget = event.target,\n\t\t\t\ttargetType = type.replace( rnamespaces, \"\" ),\n\t\t\t\tisClick = jQuery.nodeName( target, \"a\" ) && targetType === \"click\",\n\t\t\t\tspecial = jQuery.event.special[ targetType ] || {};\n\n\t\t\tif ( (!special._default || special._default.call( elem, event ) === false) &&\n\t\t\t\t!isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {\n\n\t\t\t\ttry {\n\t\t\t\t\tif ( target[ targetType ] ) {\n\t\t\t\t\t\t// Make sure that we don't accidentally re-trigger the onFOO events\n\t\t\t\t\t\told = target[ \"on\" + targetType ];\n\n\t\t\t\t\t\tif ( old ) {\n\t\t\t\t\t\t\ttarget[ \"on\" + targetType ] = null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tjQuery.event.triggered = true;\n\t\t\t\t\t\ttarget[ targetType ]();\n\t\t\t\t\t}\n\n\t\t\t\t// prevent IE from throwing an error for some elements with some event types, see #3533\n\t\t\t\t} catch (triggerError) {}\n\n\t\t\t\tif ( old ) {\n\t\t\t\t\ttarget[ \"on\" + targetType ] = old;\n\t\t\t\t}\n\n\t\t\t\tjQuery.event.triggered = false;\n\t\t\t}\n\t\t}\n\t},\n\n\thandle: function( event ) {\n\t\tvar all, handlers, namespaces, namespace_re, events,\n\t\t\tnamespace_sort = [],\n\t\t\targs = jQuery.makeArray( arguments );\n\n\t\tevent = args[0] = jQuery.event.fix( event || window.event );\n\t\tevent.currentTarget = this;\n\n\t\t// Namespaced event handlers\n\t\tall = event.type.indexOf(\".\") < 0 && !event.exclusive;\n\n\t\tif ( !all ) {\n\t\t\tnamespaces = event.type.split(\".\");\n\t\t\tevent.type = namespaces.shift();\n\t\t\tnamespace_sort = namespaces.slice(0).sort();\n\t\t\tnamespace_re = new RegExp(\"(^|\\\\.)\" + namespace_sort.join(\"\\\\.(?:.*\\\\.)?\") + \"(\\\\.|$)\");\n\t\t}\n\n\t\tevent.namespace = event.namespace || namespace_sort.join(\".\");\n\n\t\tevents = jQuery._data(this, \"events\");\n\n\t\thandlers = (events || {})[ event.type ];\n\n\t\tif ( events && handlers ) {\n\t\t\t// Clone the handlers to prevent manipulation\n\t\t\thandlers = handlers.slice(0);\n\n\t\t\tfor ( var j = 0, l = handlers.length; j < l; j++ ) {\n\t\t\t\tvar handleObj = handlers[ j ];\n\n\t\t\t\t// Filter the functions by class\n\t\t\t\tif ( all || namespace_re.test( handleObj.namespace ) ) {\n\t\t\t\t\t// Pass in a reference to the handler function itself\n\t\t\t\t\t// So that we can later remove it\n\t\t\t\t\tevent.handler = handleObj.handler;\n\t\t\t\t\tevent.data = handleObj.data;\n\t\t\t\t\tevent.handleObj = handleObj;\n\n\t\t\t\t\tvar ret = handleObj.handler.apply( this, args );\n\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\tevent.result = ret;\n\t\t\t\t\t\tif ( ret === false ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( event.isImmediatePropagationStopped() ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\tprops: \"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(\" \"),\n\n\tfix: function( event ) {\n\t\tif ( event[ jQuery.expando ] ) {\n\t\t\treturn event;\n\t\t}\n\n\t\t// store a copy of the original event object\n\t\t// and \"clone\" to set read-only properties\n\t\tvar originalEvent = event;\n\t\tevent = jQuery.Event( originalEvent );\n\n\t\tfor ( var i = this.props.length, prop; i; ) {\n\t\t\tprop = this.props[ --i ];\n\t\t\tevent[ prop ] = originalEvent[ prop ];\n\t\t}\n\n\t\t// Fix target property, if necessary\n\t\tif ( !event.target ) {\n\t\t\t// Fixes #1925 where srcElement might not be defined either\n\t\t\tevent.target = event.srcElement || document;\n\t\t}\n\n\t\t// check if target is a textnode (safari)\n\t\tif ( event.target.nodeType === 3 ) {\n\t\t\tevent.target = event.target.parentNode;\n\t\t}\n\n\t\t// Add relatedTarget, if necessary\n\t\tif ( !event.relatedTarget && event.fromElement ) {\n\t\t\tevent.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;\n\t\t}\n\n\t\t// Calculate pageX/Y if missing and clientX/Y available\n\t\tif ( event.pageX == null && event.clientX != null ) {\n\t\t\tvar doc = document.documentElement,\n\t\t\t\tbody = document.body;\n\n\t\t\tevent.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);\n\t\t\tevent.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);\n\t\t}\n\n\t\t// Add which for key events\n\t\tif ( event.which == null && (event.charCode != null || event.keyCode != null) ) {\n\t\t\tevent.which = event.charCode != null ? event.charCode : event.keyCode;\n\t\t}\n\n\t\t// Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)\n\t\tif ( !event.metaKey && event.ctrlKey ) {\n\t\t\tevent.metaKey = event.ctrlKey;\n\t\t}\n\n\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\n\t\t// Note: button is not normalized, so don't use it\n\t\tif ( !event.which && event.button !== undefined ) {\n\t\t\tevent.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));\n\t\t}\n\n\t\treturn event;\n\t},\n\n\t// Deprecated, use jQuery.guid instead\n\tguid: 1E8,\n\n\t// Deprecated, use jQuery.proxy instead\n\tproxy: jQuery.proxy,\n\n\tspecial: {\n\t\tready: {\n\t\t\t// Make sure the ready event is setup\n\t\t\tsetup: jQuery.bindReady,\n\t\t\tteardown: jQuery.noop\n\t\t},\n\n\t\tlive: {\n\t\t\tadd: function( handleObj ) {\n\t\t\t\tjQuery.event.add( this,\n\t\t\t\t\tliveConvert( handleObj.origType, handleObj.selector ),\n\t\t\t\t\tjQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) );\n\t\t\t},\n\n\t\t\tremove: function( handleObj ) {\n\t\t\t\tjQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj );\n\t\t\t}\n\t\t},\n\n\t\tbeforeunload: {\n\t\t\tsetup: function( data, namespaces, eventHandle ) {\n\t\t\t\t// We only want to do this special case on windows\n\t\t\t\tif ( jQuery.isWindow( this ) ) {\n\t\t\t\t\tthis.onbeforeunload = eventHandle;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tteardown: function( namespaces, eventHandle ) {\n\t\t\t\tif ( this.onbeforeunload === eventHandle ) {\n\t\t\t\t\tthis.onbeforeunload = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\njQuery.removeEvent = document.removeEventListener ?\n\tfunction( elem, type, handle ) {\n\t\tif ( elem.removeEventListener ) {\n\t\t\telem.removeEventListener( type, handle, false );\n\t\t}\n\t} :\n\tfunction( elem, type, handle ) {\n\t\tif ( elem.detachEvent ) {\n\t\t\telem.detachEvent( \"on\" + type, handle );\n\t\t}\n\t};\n\njQuery.Event = function( src ) {\n\t// Allow instantiation without the 'new' keyword\n\tif ( !this.preventDefault ) {\n\t\treturn new jQuery.Event( src );\n\t}\n\n\t// Event object\n\tif ( src && src.type ) {\n\t\tthis.originalEvent = src;\n\t\tthis.type = src.type;\n\n\t\t// Events bubbling up the document may have been marked as prevented\n\t\t// by a handler lower down the tree; reflect the correct value.\n\t\tthis.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false ||\n\t\t\tsrc.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse;\n\n\t// Event type\n\t} else {\n\t\tthis.type = src;\n\t}\n\n\t// timeStamp is buggy for some events on Firefox(#3843)\n\t// So we won't rely on the native value\n\tthis.timeStamp = jQuery.now();\n\n\t// Mark it as fixed\n\tthis[ jQuery.expando ] = true;\n};\n\nfunction returnFalse() {\n\treturn false;\n}\nfunction returnTrue() {\n\treturn true;\n}\n\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype = {\n\tpreventDefault: function() {\n\t\tthis.isDefaultPrevented = returnTrue;\n\n\t\tvar e = this.originalEvent;\n\t\tif ( !e ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// if preventDefault exists run it on the original event\n\t\tif ( e.preventDefault ) {\n\t\t\te.preventDefault();\n\n\t\t// otherwise set the returnValue property of the original event to false (IE)\n\t\t} else {\n\t\t\te.returnValue = false;\n\t\t}\n\t},\n\tstopPropagation: function() {\n\t\tthis.isPropagationStopped = returnTrue;\n\n\t\tvar e = this.originalEvent;\n\t\tif ( !e ) {\n\t\t\treturn;\n\t\t}\n\t\t// if stopPropagation exists run it on the original event\n\t\tif ( e.stopPropagation ) {\n\t\t\te.stopPropagation();\n\t\t}\n\t\t// otherwise set the cancelBubble property of the original event to true (IE)\n\t\te.cancelBubble = true;\n\t},\n\tstopImmediatePropagation: function() {\n\t\tthis.isImmediatePropagationStopped = returnTrue;\n\t\tthis.stopPropagation();\n\t},\n\tisDefaultPrevented: returnFalse,\n\tisPropagationStopped: returnFalse,\n\tisImmediatePropagationStopped: returnFalse\n};\n\n// Checks if an event happened on an element within another element\n// Used in jQuery.event.special.mouseenter and mouseleave handlers\nvar withinElement = function( event ) {\n\t// Check if mouse(over|out) are still within the same parent element\n\tvar parent = event.relatedTarget;\n\n\t// Firefox sometimes assigns relatedTarget a XUL element\n\t// which we cannot access the parentNode property of\n\ttry {\n\n\t\t// Chrome does something similar, the parentNode property\n\t\t// can be accessed but is null.\n\t\tif ( parent !== document && !parent.parentNode ) {\n\t\t\treturn;\n\t\t}\n\t\t// Traverse up the tree\n\t\twhile ( parent && parent !== this ) {\n\t\t\tparent = parent.parentNode;\n\t\t}\n\n\t\tif ( parent !== this ) {\n\t\t\t// set the correct event type\n\t\t\tevent.type = event.data;\n\n\t\t\t// handle event if we actually just moused on to a non sub-element\n\t\t\tjQuery.event.handle.apply( this, arguments );\n\t\t}\n\n\t// assuming we've left the element since we most likely mousedover a xul element\n\t} catch(e) { }\n},\n\n// In case of event delegation, we only need to rename the event.type,\n// liveHandler will take care of the rest.\ndelegate = function( event ) {\n\tevent.type = event.data;\n\tjQuery.event.handle.apply( this, arguments );\n};\n\n// Create mouseenter and mouseleave events\njQuery.each({\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\"\n}, function( orig, fix ) {\n\tjQuery.event.special[ orig ] = {\n\t\tsetup: function( data ) {\n\t\t\tjQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );\n\t\t},\n\t\tteardown: function( data ) {\n\t\t\tjQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );\n\t\t}\n\t};\n});\n\n// submit delegation\nif ( !jQuery.support.submitBubbles ) {\n\n\tjQuery.event.special.submit = {\n\t\tsetup: function( data, namespaces ) {\n\t\t\tif ( this.nodeName && this.nodeName.toLowerCase() !== \"form\" ) {\n\t\t\t\tjQuery.event.add(this, \"click.specialSubmit\", function( e ) {\n\t\t\t\t\tvar elem = e.target,\n\t\t\t\t\t\ttype = elem.type;\n\n\t\t\t\t\tif ( (type === \"submit\" || type === \"image\") && jQuery( elem ).closest(\"form\").length ) {\n\t\t\t\t\t\ttrigger( \"submit\", this, arguments );\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tjQuery.event.add(this, \"keypress.specialSubmit\", function( e ) {\n\t\t\t\t\tvar elem = e.target,\n\t\t\t\t\t\ttype = elem.type;\n\n\t\t\t\t\tif ( (type === \"text\" || type === \"password\") && jQuery( elem ).closest(\"form\").length && e.keyCode === 13 ) {\n\t\t\t\t\t\ttrigger( \"submit\", this, arguments );\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\n\t\tteardown: function( namespaces ) {\n\t\t\tjQuery.event.remove( this, \".specialSubmit\" );\n\t\t}\n\t};\n\n}\n\n// change delegation, happens here so we have bind.\nif ( !jQuery.support.changeBubbles ) {\n\n\tvar changeFilters,\n\n\tgetVal = function( elem ) {\n\t\tvar type = elem.type, val = elem.value;\n\n\t\tif ( type === \"radio\" || type === \"checkbox\" ) {\n\t\t\tval = elem.checked;\n\n\t\t} else if ( type === \"select-multiple\" ) {\n\t\t\tval = elem.selectedIndex > -1 ?\n\t\t\t\tjQuery.map( elem.options, function( elem ) {\n\t\t\t\t\treturn elem.selected;\n\t\t\t\t}).join(\"-\") :\n\t\t\t\t\"\";\n\n\t\t} else if ( elem.nodeName.toLowerCase() === \"select\" ) {\n\t\t\tval = elem.selectedIndex;\n\t\t}\n\n\t\treturn val;\n\t},\n\n\ttestChange = function testChange( e ) {\n\t\tvar elem = e.target, data, val;\n\n\t\tif ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {\n\t\t\treturn;\n\t\t}\n\n\t\tdata = jQuery._data( elem, \"_change_data\" );\n\t\tval = getVal(elem);\n\n\t\t// the current data will be also retrieved by beforeactivate\n\t\tif ( e.type !== \"focusout\" || elem.type !== \"radio\" ) {\n\t\t\tjQuery._data( elem, \"_change_data\", val );\n\t\t}\n\n\t\tif ( data === undefined || val === data ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( data != null || val ) {\n\t\t\te.type = \"change\";\n\t\t\te.liveFired = undefined;\n\t\t\tjQuery.event.trigger( e, arguments[1], elem );\n\t\t}\n\t};\n\n\tjQuery.event.special.change = {\n\t\tfilters: {\n\t\t\tfocusout: testChange,\n\n\t\t\tbeforedeactivate: testChange,\n\n\t\t\tclick: function( e ) {\n\t\t\t\tvar elem = e.target, type = elem.type;\n\n\t\t\t\tif ( type === \"radio\" || type === \"checkbox\" || elem.nodeName.toLowerCase() === \"select\" ) {\n\t\t\t\t\ttestChange.call( this, e );\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t// Change has to be called before submit\n\t\t\t// Keydown will be called before keypress, which is used in submit-event delegation\n\t\t\tkeydown: function( e ) {\n\t\t\t\tvar elem = e.target, type = elem.type;\n\n\t\t\t\tif ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== \"textarea\") ||\n\t\t\t\t\t(e.keyCode === 32 && (type === \"checkbox\" || type === \"radio\")) ||\n\t\t\t\t\ttype === \"select-multiple\" ) {\n\t\t\t\t\ttestChange.call( this, e );\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t// Beforeactivate happens also before the previous element is blurred\n\t\t\t// with this event you can't trigger a change event, but you can store\n\t\t\t// information\n\t\t\tbeforeactivate: function( e ) {\n\t\t\t\tvar elem = e.target;\n\t\t\t\tjQuery._data( elem, \"_change_data\", getVal(elem) );\n\t\t\t}\n\t\t},\n\n\t\tsetup: function( data, namespaces ) {\n\t\t\tif ( this.type === \"file\" ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tfor ( var type in changeFilters ) {\n\t\t\t\tjQuery.event.add( this, type + \".specialChange\", changeFilters[type] );\n\t\t\t}\n\n\t\t\treturn rformElems.test( this.nodeName );\n\t\t},\n\n\t\tteardown: function( namespaces ) {\n\t\t\tjQuery.event.remove( this, \".specialChange\" );\n\n\t\t\treturn rformElems.test( this.nodeName );\n\t\t}\n\t};\n\n\tchangeFilters = jQuery.event.special.change.filters;\n\n\t// Handle when the input is .focus()'d\n\tchangeFilters.focus = changeFilters.beforeactivate;\n}\n\nfunction trigger( type, elem, args ) {\n\t// Piggyback on a donor event to simulate a different one.\n\t// Fake originalEvent to avoid donor's stopPropagation, but if the\n\t// simulated event prevents default then we do the same on the donor.\n\t// Don't pass args or remember liveFired; they apply to the donor event.\n\tvar event = jQuery.extend( {}, args[ 0 ] );\n\tevent.type = type;\n\tevent.originalEvent = {};\n\tevent.liveFired = undefined;\n\tjQuery.event.handle.call( elem, event );\n\tif ( event.isDefaultPrevented() ) {\n\t\targs[ 0 ].preventDefault();\n\t}\n}\n\n// Create \"bubbling\" focus and blur events\nif ( document.addEventListener ) {\n\tjQuery.each({ focus: \"focusin\", blur: \"focusout\" }, function( orig, fix ) {\n\t\tjQuery.event.special[ fix ] = {\n\t\t\tsetup: function() {\n\t\t\t\tthis.addEventListener( orig, handler, true );\n\t\t\t},\n\t\t\tteardown: function() {\n\t\t\t\tthis.removeEventListener( orig, handler, true );\n\t\t\t}\n\t\t};\n\n\t\tfunction handler( e ) {\n\t\t\te = jQuery.event.fix( e );\n\t\t\te.type = fix;\n\t\t\treturn jQuery.event.handle.call( this, e );\n\t\t}\n\t});\n}\n\njQuery.each([\"bind\", \"one\"], function( i, name ) {\n\tjQuery.fn[ name ] = function( type, data, fn ) {\n\t\t// Handle object literals\n\t\tif ( typeof type === \"object\" ) {\n\t\t\tfor ( var key in type ) {\n\t\t\t\tthis[ name ](key, data, type[key], fn);\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\n\t\tif ( jQuery.isFunction( data ) || data === false ) {\n\t\t\tfn = data;\n\t\t\tdata = undefined;\n\t\t}\n\n\t\tvar handler = name === \"one\" ? jQuery.proxy( fn, function( event ) {\n\t\t\tjQuery( this ).unbind( event, handler );\n\t\t\treturn fn.apply( this, arguments );\n\t\t}) : fn;\n\n\t\tif ( type === \"unload\" && name !== \"one\" ) {\n\t\t\tthis.one( type, data, fn );\n\n\t\t} else {\n\t\t\tfor ( var i = 0, l = this.length; i < l; i++ ) {\n\t\t\t\tjQuery.event.add( this[i], type, handler, data );\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t};\n});\n\njQuery.fn.extend({\n\tunbind: function( type, fn ) {\n\t\t// Handle object literals\n\t\tif ( typeof type === \"object\" && !type.preventDefault ) {\n\t\t\tfor ( var key in type ) {\n\t\t\t\tthis.unbind(key, type[key]);\n\t\t\t}\n\n\t\t} else {\n\t\t\tfor ( var i = 0, l = this.length; i < l; i++ ) {\n\t\t\t\tjQuery.event.remove( this[i], type, fn );\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tdelegate: function( selector, types, data, fn ) {\n\t\treturn this.live( types, data, fn, selector );\n\t},\n\n\tundelegate: function( selector, types, fn ) {\n\t\tif ( arguments.length === 0 ) {\n\t\t\t\treturn this.unbind( \"live\" );\n\n\t\t} else {\n\t\t\treturn this.die( types, null, fn, selector );\n\t\t}\n\t},\n\n\ttrigger: function( type, data ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.event.trigger( type, data, this );\n\t\t});\n\t},\n\n\ttriggerHandler: function( type, data ) {\n\t\tif ( this[0] ) {\n\t\t\tvar event = jQuery.Event( type );\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\tjQuery.event.trigger( event, data, this[0] );\n\t\t\treturn event.result;\n\t\t}\n\t},\n\n\ttoggle: function( fn ) {\n\t\t// Save reference to arguments for access in closure\n\t\tvar args = arguments,\n\t\t\ti = 1;\n\n\t\t// link all the functions, so any of them can unbind this click handler\n\t\twhile ( i < args.length ) {\n\t\t\tjQuery.proxy( fn, args[ i++ ] );\n\t\t}\n\n\t\treturn this.click( jQuery.proxy( fn, function( event ) {\n\t\t\t// Figure out which function to execute\n\t\t\tvar lastToggle = ( jQuery._data( this, \"lastToggle\" + fn.guid ) || 0 ) % i;\n\t\t\tjQuery._data( this, \"lastToggle\" + fn.guid, lastToggle + 1 );\n\n\t\t\t// Make sure that clicks stop\n\t\t\tevent.preventDefault();\n\n\t\t\t// and execute the function\n\t\t\treturn args[ lastToggle ].apply( this, arguments ) || false;\n\t\t}));\n\t},\n\n\thover: function( fnOver, fnOut ) {\n\t\treturn this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\n\t}\n});\n\nvar liveMap = {\n\tfocus: \"focusin\",\n\tblur: \"focusout\",\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\"\n};\n\njQuery.each([\"live\", \"die\"], function( i, name ) {\n\tjQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {\n\t\tvar type, i = 0, match, namespaces, preType,\n\t\t\tselector = origSelector || this.selector,\n\t\t\tcontext = origSelector ? this : jQuery( this.context );\n\n\t\tif ( typeof types === \"object\" && !types.preventDefault ) {\n\t\t\tfor ( var key in types ) {\n\t\t\t\tcontext[ name ]( key, data, types[key], selector );\n\t\t\t}\n\n\t\t\treturn this;\n\t\t}\n\n\t\tif ( jQuery.isFunction( data ) ) {\n\t\t\tfn = data;\n\t\t\tdata = undefined;\n\t\t}\n\n\t\ttypes = (types || \"\").split(\" \");\n\n\t\twhile ( (type = types[ i++ ]) != null ) {\n\t\t\tmatch = rnamespaces.exec( type );\n\t\t\tnamespaces = \"\";\n\n\t\t\tif ( match )  {\n\t\t\t\tnamespaces = match[0];\n\t\t\t\ttype = type.replace( rnamespaces, \"\" );\n\t\t\t}\n\n\t\t\tif ( type === \"hover\" ) {\n\t\t\t\ttypes.push( \"mouseenter\" + namespaces, \"mouseleave\" + namespaces );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tpreType = type;\n\n\t\t\tif ( type === \"focus\" || type === \"blur\" ) {\n\t\t\t\ttypes.push( liveMap[ type ] + namespaces );\n\t\t\t\ttype = type + namespaces;\n\n\t\t\t} else {\n\t\t\t\ttype = (liveMap[ type ] || type) + namespaces;\n\t\t\t}\n\n\t\t\tif ( name === \"live\" ) {\n\t\t\t\t// bind live handler\n\t\t\t\tfor ( var j = 0, l = context.length; j < l; j++ ) {\n\t\t\t\t\tjQuery.event.add( context[j], \"live.\" + liveConvert( type, selector ),\n\t\t\t\t\t\t{ data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\t// unbind live handler\n\t\t\t\tcontext.unbind( \"live.\" + liveConvert( type, selector ), fn );\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t};\n});\n\nfunction liveHandler( event ) {\n\tvar stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,\n\t\telems = [],\n\t\tselectors = [],\n\t\tevents = jQuery._data( this, \"events\" );\n\n\t// Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911)\n\tif ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === \"click\" ) {\n\t\treturn;\n\t}\n\n\tif ( event.namespace ) {\n\t\tnamespace = new RegExp(\"(^|\\\\.)\" + event.namespace.split(\".\").join(\"\\\\.(?:.*\\\\.)?\") + \"(\\\\.|$)\");\n\t}\n\n\tevent.liveFired = this;\n\n\tvar live = events.live.slice(0);\n\n\tfor ( j = 0; j < live.length; j++ ) {\n\t\thandleObj = live[j];\n\n\t\tif ( handleObj.origType.replace( rnamespaces, \"\" ) === event.type ) {\n\t\t\tselectors.push( handleObj.selector );\n\n\t\t} else {\n\t\t\tlive.splice( j--, 1 );\n\t\t}\n\t}\n\n\tmatch = jQuery( event.target ).closest( selectors, event.currentTarget );\n\n\tfor ( i = 0, l = match.length; i < l; i++ ) {\n\t\tclose = match[i];\n\n\t\tfor ( j = 0; j < live.length; j++ ) {\n\t\t\thandleObj = live[j];\n\n\t\t\tif ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) && !close.elem.disabled ) {\n\t\t\t\telem = close.elem;\n\t\t\t\trelated = null;\n\n\t\t\t\t// Those two events require additional checking\n\t\t\t\tif ( handleObj.preType === \"mouseenter\" || handleObj.preType === \"mouseleave\" ) {\n\t\t\t\t\tevent.type = handleObj.preType;\n\t\t\t\t\trelated = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];\n\t\t\t\t}\n\n\t\t\t\tif ( !related || related !== elem ) {\n\t\t\t\t\telems.push({ elem: elem, handleObj: handleObj, level: close.level });\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tfor ( i = 0, l = elems.length; i < l; i++ ) {\n\t\tmatch = elems[i];\n\n\t\tif ( maxLevel && match.level > maxLevel ) {\n\t\t\tbreak;\n\t\t}\n\n\t\tevent.currentTarget = match.elem;\n\t\tevent.data = match.handleObj.data;\n\t\tevent.handleObj = match.handleObj;\n\n\t\tret = match.handleObj.origHandler.apply( match.elem, arguments );\n\n\t\tif ( ret === false || event.isPropagationStopped() ) {\n\t\t\tmaxLevel = match.level;\n\n\t\t\tif ( ret === false ) {\n\t\t\t\tstop = false;\n\t\t\t}\n\t\t\tif ( event.isImmediatePropagationStopped() ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn stop;\n}\n\nfunction liveConvert( type, selector ) {\n\treturn (type && type !== \"*\" ? type + \".\" : \"\") + selector.replace(rperiod, \"`\").replace(rspace, \"&\");\n}\n\njQuery.each( (\"blur focus focusin focusout load resize scroll unload click dblclick \" +\n\t\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\n\t\"change select submit keydown keypress keyup error\").split(\" \"), function( i, name ) {\n\n\t// Handle event binding\n\tjQuery.fn[ name ] = function( data, fn ) {\n\t\tif ( fn == null ) {\n\t\t\tfn = data;\n\t\t\tdata = null;\n\t\t}\n\n\t\treturn arguments.length > 0 ?\n\t\t\tthis.bind( name, data, fn ) :\n\t\t\tthis.trigger( name );\n\t};\n\n\tif ( jQuery.attrFn ) {\n\t\tjQuery.attrFn[ name ] = true;\n\t}\n});\n\n\n/*!\n * Sizzle CSS Selector Engine\n *  Copyright 2011, The Dojo Foundation\n *  Released under the MIT, BSD, and GPL Licenses.\n *  More information: http://sizzlejs.com/\n */\n(function(){\n\nvar chunker = /((?:\\((?:\\([^()]+\\)|[^()]+)+\\)|\\[(?:\\[[^\\[\\]]*\\]|['\"][^'\"]*['\"]|[^\\[\\]'\"]+)+\\]|\\\\.|[^ >+~,(\\[\\\\]+)+|[>+~])(\\s*,\\s*)?((?:.|\\r|\\n)*)/g,\n\tdone = 0,\n\ttoString = Object.prototype.toString,\n\thasDuplicate = false,\n\tbaseHasDuplicate = true,\n\trBackslash = /\\\\/g,\n\trNonWord = /\\W/;\n\n// Here we check if the JavaScript engine is using some sort of\n// optimization where it does not always call our comparision\n// function. If that is the case, discard the hasDuplicate value.\n//   Thus far that includes Google Chrome.\n[0, 0].sort(function() {\n\tbaseHasDuplicate = false;\n\treturn 0;\n});\n\nvar Sizzle = function( selector, context, results, seed ) {\n\tresults = results || [];\n\tcontext = context || document;\n\n\tvar origContext = context;\n\n\tif ( context.nodeType !== 1 && context.nodeType !== 9 ) {\n\t\treturn [];\n\t}\n\t\n\tif ( !selector || typeof selector !== \"string\" ) {\n\t\treturn results;\n\t}\n\n\tvar m, set, checkSet, extra, ret, cur, pop, i,\n\t\tprune = true,\n\t\tcontextXML = Sizzle.isXML( context ),\n\t\tparts = [],\n\t\tsoFar = selector;\n\t\n\t// Reset the position of the chunker regexp (start from head)\n\tdo {\n\t\tchunker.exec( \"\" );\n\t\tm = chunker.exec( soFar );\n\n\t\tif ( m ) {\n\t\t\tsoFar = m[3];\n\t\t\n\t\t\tparts.push( m[1] );\n\t\t\n\t\t\tif ( m[2] ) {\n\t\t\t\textra = m[3];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} while ( m );\n\n\tif ( parts.length > 1 && origPOS.exec( selector ) ) {\n\n\t\tif ( parts.length === 2 && Expr.relative[ parts[0] ] ) {\n\t\t\tset = posProcess( parts[0] + parts[1], context );\n\n\t\t} else {\n\t\t\tset = Expr.relative[ parts[0] ] ?\n\t\t\t\t[ context ] :\n\t\t\t\tSizzle( parts.shift(), context );\n\n\t\t\twhile ( parts.length ) {\n\t\t\t\tselector = parts.shift();\n\n\t\t\t\tif ( Expr.relative[ selector ] ) {\n\t\t\t\t\tselector += parts.shift();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tset = posProcess( selector, set );\n\t\t\t}\n\t\t}\n\n\t} else {\n\t\t// Take a shortcut and set the context if the root selector is an ID\n\t\t// (but not if it'll be faster if the inner selector is an ID)\n\t\tif ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&\n\t\t\t\tExpr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {\n\n\t\t\tret = Sizzle.find( parts.shift(), context, contextXML );\n\t\t\tcontext = ret.expr ?\n\t\t\t\tSizzle.filter( ret.expr, ret.set )[0] :\n\t\t\t\tret.set[0];\n\t\t}\n\n\t\tif ( context ) {\n\t\t\tret = seed ?\n\t\t\t\t{ expr: parts.pop(), set: makeArray(seed) } :\n\t\t\t\tSizzle.find( parts.pop(), parts.length === 1 && (parts[0] === \"~\" || parts[0] === \"+\") && context.parentNode ? context.parentNode : context, contextXML );\n\n\t\t\tset = ret.expr ?\n\t\t\t\tSizzle.filter( ret.expr, ret.set ) :\n\t\t\t\tret.set;\n\n\t\t\tif ( parts.length > 0 ) {\n\t\t\t\tcheckSet = makeArray( set );\n\n\t\t\t} else {\n\t\t\t\tprune = false;\n\t\t\t}\n\n\t\t\twhile ( parts.length ) {\n\t\t\t\tcur = parts.pop();\n\t\t\t\tpop = cur;\n\n\t\t\t\tif ( !Expr.relative[ cur ] ) {\n\t\t\t\t\tcur = \"\";\n\t\t\t\t} else {\n\t\t\t\t\tpop = parts.pop();\n\t\t\t\t}\n\n\t\t\t\tif ( pop == null ) {\n\t\t\t\t\tpop = context;\n\t\t\t\t}\n\n\t\t\t\tExpr.relative[ cur ]( checkSet, pop, contextXML );\n\t\t\t}\n\n\t\t} else {\n\t\t\tcheckSet = parts = [];\n\t\t}\n\t}\n\n\tif ( !checkSet ) {\n\t\tcheckSet = set;\n\t}\n\n\tif ( !checkSet ) {\n\t\tSizzle.error( cur || selector );\n\t}\n\n\tif ( toString.call(checkSet) === \"[object Array]\" ) {\n\t\tif ( !prune ) {\n\t\t\tresults.push.apply( results, checkSet );\n\n\t\t} else if ( context && context.nodeType === 1 ) {\n\t\t\tfor ( i = 0; checkSet[i] != null; i++ ) {\n\t\t\t\tif ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {\n\t\t\t\t\tresults.push( set[i] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tfor ( i = 0; checkSet[i] != null; i++ ) {\n\t\t\t\tif ( checkSet[i] && checkSet[i].nodeType === 1 ) {\n\t\t\t\t\tresults.push( set[i] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t} else {\n\t\tmakeArray( checkSet, results );\n\t}\n\n\tif ( extra ) {\n\t\tSizzle( extra, origContext, results, seed );\n\t\tSizzle.uniqueSort( results );\n\t}\n\n\treturn results;\n};\n\nSizzle.uniqueSort = function( results ) {\n\tif ( sortOrder ) {\n\t\thasDuplicate = baseHasDuplicate;\n\t\tresults.sort( sortOrder );\n\n\t\tif ( hasDuplicate ) {\n\t\t\tfor ( var i = 1; i < results.length; i++ ) {\n\t\t\t\tif ( results[i] === results[ i - 1 ] ) {\n\t\t\t\t\tresults.splice( i--, 1 );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn results;\n};\n\nSizzle.matches = function( expr, set ) {\n\treturn Sizzle( expr, null, null, set );\n};\n\nSizzle.matchesSelector = function( node, expr ) {\n\treturn Sizzle( expr, null, null, [node] ).length > 0;\n};\n\nSizzle.find = function( expr, context, isXML ) {\n\tvar set;\n\n\tif ( !expr ) {\n\t\treturn [];\n\t}\n\n\tfor ( var i = 0, l = Expr.order.length; i < l; i++ ) {\n\t\tvar match,\n\t\t\ttype = Expr.order[i];\n\t\t\n\t\tif ( (match = Expr.leftMatch[ type ].exec( expr )) ) {\n\t\t\tvar left = match[1];\n\t\t\tmatch.splice( 1, 1 );\n\n\t\t\tif ( left.substr( left.length - 1 ) !== \"\\\\\" ) {\n\t\t\t\tmatch[1] = (match[1] || \"\").replace( rBackslash, \"\" );\n\t\t\t\tset = Expr.find[ type ]( match, context, isXML );\n\n\t\t\t\tif ( set != null ) {\n\t\t\t\t\texpr = expr.replace( Expr.match[ type ], \"\" );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( !set ) {\n\t\tset = typeof context.getElementsByTagName !== \"undefined\" ?\n\t\t\tcontext.getElementsByTagName( \"*\" ) :\n\t\t\t[];\n\t}\n\n\treturn { set: set, expr: expr };\n};\n\nSizzle.filter = function( expr, set, inplace, not ) {\n\tvar match, anyFound,\n\t\told = expr,\n\t\tresult = [],\n\t\tcurLoop = set,\n\t\tisXMLFilter = set && set[0] && Sizzle.isXML( set[0] );\n\n\twhile ( expr && set.length ) {\n\t\tfor ( var type in Expr.filter ) {\n\t\t\tif ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {\n\t\t\t\tvar found, item,\n\t\t\t\t\tfilter = Expr.filter[ type ],\n\t\t\t\t\tleft = match[1];\n\n\t\t\t\tanyFound = false;\n\n\t\t\t\tmatch.splice(1,1);\n\n\t\t\t\tif ( left.substr( left.length - 1 ) === \"\\\\\" ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( curLoop === result ) {\n\t\t\t\t\tresult = [];\n\t\t\t\t}\n\n\t\t\t\tif ( Expr.preFilter[ type ] ) {\n\t\t\t\t\tmatch = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );\n\n\t\t\t\t\tif ( !match ) {\n\t\t\t\t\t\tanyFound = found = true;\n\n\t\t\t\t\t} else if ( match === true ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( match ) {\n\t\t\t\t\tfor ( var i = 0; (item = curLoop[i]) != null; i++ ) {\n\t\t\t\t\t\tif ( item ) {\n\t\t\t\t\t\t\tfound = filter( item, match, i, curLoop );\n\t\t\t\t\t\t\tvar pass = not ^ !!found;\n\n\t\t\t\t\t\t\tif ( inplace && found != null ) {\n\t\t\t\t\t\t\t\tif ( pass ) {\n\t\t\t\t\t\t\t\t\tanyFound = true;\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcurLoop[i] = false;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else if ( pass ) {\n\t\t\t\t\t\t\t\tresult.push( item );\n\t\t\t\t\t\t\t\tanyFound = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( found !== undefined ) {\n\t\t\t\t\tif ( !inplace ) {\n\t\t\t\t\t\tcurLoop = result;\n\t\t\t\t\t}\n\n\t\t\t\t\texpr = expr.replace( Expr.match[ type ], \"\" );\n\n\t\t\t\t\tif ( !anyFound ) {\n\t\t\t\t\t\treturn [];\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Improper expression\n\t\tif ( expr === old ) {\n\t\t\tif ( anyFound == null ) {\n\t\t\t\tSizzle.error( expr );\n\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\told = expr;\n\t}\n\n\treturn curLoop;\n};\n\nSizzle.error = function( msg ) {\n\tthrow \"Syntax error, unrecognized expression: \" + msg;\n};\n\nvar Expr = Sizzle.selectors = {\n\torder: [ \"ID\", \"NAME\", \"TAG\" ],\n\n\tmatch: {\n\t\tID: /#((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)/,\n\t\tCLASS: /\\.((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)/,\n\t\tNAME: /\\[name=['\"]*((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)['\"]*\\]/,\n\t\tATTR: /\\[\\s*((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)\\s*(?:(\\S?=)\\s*(?:(['\"])(.*?)\\3|(#?(?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)*)|)|)\\s*\\]/,\n\t\tTAG: /^((?:[\\w\\u00c0-\\uFFFF\\*\\-]|\\\\.)+)/,\n\t\tCHILD: /:(only|nth|last|first)-child(?:\\(\\s*(even|odd|(?:[+\\-]?\\d+|(?:[+\\-]?\\d*)?n\\s*(?:[+\\-]\\s*\\d+)?))\\s*\\))?/,\n\t\tPOS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\))?(?=[^\\-]|$)/,\n\t\tPSEUDO: /:((?:[\\w\\u00c0-\\uFFFF\\-]|\\\\.)+)(?:\\((['\"]?)((?:\\([^\\)]+\\)|[^\\(\\)]*)+)\\2\\))?/\n\t},\n\n\tleftMatch: {},\n\n\tattrMap: {\n\t\t\"class\": \"className\",\n\t\t\"for\": \"htmlFor\"\n\t},\n\n\tattrHandle: {\n\t\thref: function( elem ) {\n\t\t\treturn elem.getAttribute( \"href\" );\n\t\t},\n\t\ttype: function( elem ) {\n\t\t\treturn elem.getAttribute( \"type\" );\n\t\t}\n\t},\n\n\trelative: {\n\t\t\"+\": function(checkSet, part){\n\t\t\tvar isPartStr = typeof part === \"string\",\n\t\t\t\tisTag = isPartStr && !rNonWord.test( part ),\n\t\t\t\tisPartStrNotTag = isPartStr && !isTag;\n\n\t\t\tif ( isTag ) {\n\t\t\t\tpart = part.toLowerCase();\n\t\t\t}\n\n\t\t\tfor ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {\n\t\t\t\tif ( (elem = checkSet[i]) ) {\n\t\t\t\t\twhile ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}\n\n\t\t\t\t\tcheckSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?\n\t\t\t\t\t\telem || false :\n\t\t\t\t\t\telem === part;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( isPartStrNotTag ) {\n\t\t\t\tSizzle.filter( part, checkSet, true );\n\t\t\t}\n\t\t},\n\n\t\t\">\": function( checkSet, part ) {\n\t\t\tvar elem,\n\t\t\t\tisPartStr = typeof part === \"string\",\n\t\t\t\ti = 0,\n\t\t\t\tl = checkSet.length;\n\n\t\t\tif ( isPartStr && !rNonWord.test( part ) ) {\n\t\t\t\tpart = part.toLowerCase();\n\n\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\telem = checkSet[i];\n\n\t\t\t\t\tif ( elem ) {\n\t\t\t\t\t\tvar parent = elem.parentNode;\n\t\t\t\t\t\tcheckSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\telem = checkSet[i];\n\n\t\t\t\t\tif ( elem ) {\n\t\t\t\t\t\tcheckSet[i] = isPartStr ?\n\t\t\t\t\t\t\telem.parentNode :\n\t\t\t\t\t\t\telem.parentNode === part;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( isPartStr ) {\n\t\t\t\t\tSizzle.filter( part, checkSet, true );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t\"\": function(checkSet, part, isXML){\n\t\t\tvar nodeCheck,\n\t\t\t\tdoneName = done++,\n\t\t\t\tcheckFn = dirCheck;\n\n\t\t\tif ( typeof part === \"string\" && !rNonWord.test( part ) ) {\n\t\t\t\tpart = part.toLowerCase();\n\t\t\t\tnodeCheck = part;\n\t\t\t\tcheckFn = dirNodeCheck;\n\t\t\t}\n\n\t\t\tcheckFn( \"parentNode\", part, doneName, checkSet, nodeCheck, isXML );\n\t\t},\n\n\t\t\"~\": function( checkSet, part, isXML ) {\n\t\t\tvar nodeCheck,\n\t\t\t\tdoneName = done++,\n\t\t\t\tcheckFn = dirCheck;\n\n\t\t\tif ( typeof part === \"string\" && !rNonWord.test( part ) ) {\n\t\t\t\tpart = part.toLowerCase();\n\t\t\t\tnodeCheck = part;\n\t\t\t\tcheckFn = dirNodeCheck;\n\t\t\t}\n\n\t\t\tcheckFn( \"previousSibling\", part, doneName, checkSet, nodeCheck, isXML );\n\t\t}\n\t},\n\n\tfind: {\n\t\tID: function( match, context, isXML ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && !isXML ) {\n\t\t\t\tvar m = context.getElementById(match[1]);\n\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\t\t\t\t// nodes that are no longer in the document #6963\n\t\t\t\treturn m && m.parentNode ? [m] : [];\n\t\t\t}\n\t\t},\n\n\t\tNAME: function( match, context ) {\n\t\t\tif ( typeof context.getElementsByName !== \"undefined\" ) {\n\t\t\t\tvar ret = [],\n\t\t\t\t\tresults = context.getElementsByName( match[1] );\n\n\t\t\t\tfor ( var i = 0, l = results.length; i < l; i++ ) {\n\t\t\t\t\tif ( results[i].getAttribute(\"name\") === match[1] ) {\n\t\t\t\t\t\tret.push( results[i] );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn ret.length === 0 ? null : ret;\n\t\t\t}\n\t\t},\n\n\t\tTAG: function( match, context ) {\n\t\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\treturn context.getElementsByTagName( match[1] );\n\t\t\t}\n\t\t}\n\t},\n\tpreFilter: {\n\t\tCLASS: function( match, curLoop, inplace, result, not, isXML ) {\n\t\t\tmatch = \" \" + match[1].replace( rBackslash, \"\" ) + \" \";\n\n\t\t\tif ( isXML ) {\n\t\t\t\treturn match;\n\t\t\t}\n\n\t\t\tfor ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {\n\t\t\t\tif ( elem ) {\n\t\t\t\t\tif ( not ^ (elem.className && (\" \" + elem.className + \" \").replace(/[\\t\\n\\r]/g, \" \").indexOf(match) >= 0) ) {\n\t\t\t\t\t\tif ( !inplace ) {\n\t\t\t\t\t\t\tresult.push( elem );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if ( inplace ) {\n\t\t\t\t\t\tcurLoop[i] = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t},\n\n\t\tID: function( match ) {\n\t\t\treturn match[1].replace( rBackslash, \"\" );\n\t\t},\n\n\t\tTAG: function( match, curLoop ) {\n\t\t\treturn match[1].replace( rBackslash, \"\" ).toLowerCase();\n\t\t},\n\n\t\tCHILD: function( match ) {\n\t\t\tif ( match[1] === \"nth\" ) {\n\t\t\t\tif ( !match[2] ) {\n\t\t\t\t\tSizzle.error( match[0] );\n\t\t\t\t}\n\n\t\t\t\tmatch[2] = match[2].replace(/^\\+|\\s*/g, '');\n\n\t\t\t\t// parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'\n\t\t\t\tvar test = /(-?)(\\d*)(?:n([+\\-]?\\d*))?/.exec(\n\t\t\t\t\tmatch[2] === \"even\" && \"2n\" || match[2] === \"odd\" && \"2n+1\" ||\n\t\t\t\t\t!/\\D/.test( match[2] ) && \"0n+\" + match[2] || match[2]);\n\n\t\t\t\t// calculate the numbers (first)n+(last) including if they are negative\n\t\t\t\tmatch[2] = (test[1] + (test[2] || 1)) - 0;\n\t\t\t\tmatch[3] = test[3] - 0;\n\t\t\t}\n\t\t\telse if ( match[2] ) {\n\t\t\t\tSizzle.error( match[0] );\n\t\t\t}\n\n\t\t\t// TODO: Move to normal caching system\n\t\t\tmatch[0] = done++;\n\n\t\t\treturn match;\n\t\t},\n\n\t\tATTR: function( match, curLoop, inplace, result, not, isXML ) {\n\t\t\tvar name = match[1] = match[1].replace( rBackslash, \"\" );\n\t\t\t\n\t\t\tif ( !isXML && Expr.attrMap[name] ) {\n\t\t\t\tmatch[1] = Expr.attrMap[name];\n\t\t\t}\n\n\t\t\t// Handle if an un-quoted value was used\n\t\t\tmatch[4] = ( match[4] || match[5] || \"\" ).replace( rBackslash, \"\" );\n\n\t\t\tif ( match[2] === \"~=\" ) {\n\t\t\t\tmatch[4] = \" \" + match[4] + \" \";\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\tPSEUDO: function( match, curLoop, inplace, result, not ) {\n\t\t\tif ( match[1] === \"not\" ) {\n\t\t\t\t// If we're dealing with a complex expression, or a simple one\n\t\t\t\tif ( ( chunker.exec(match[3]) || \"\" ).length > 1 || /^\\w/.test(match[3]) ) {\n\t\t\t\t\tmatch[3] = Sizzle(match[3], null, null, curLoop);\n\n\t\t\t\t} else {\n\t\t\t\t\tvar ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);\n\n\t\t\t\t\tif ( !inplace ) {\n\t\t\t\t\t\tresult.push.apply( result, ret );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t} else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\treturn match;\n\t\t},\n\n\t\tPOS: function( match ) {\n\t\t\tmatch.unshift( true );\n\n\t\t\treturn match;\n\t\t}\n\t},\n\t\n\tfilters: {\n\t\tenabled: function( elem ) {\n\t\t\treturn elem.disabled === false && elem.type !== \"hidden\";\n\t\t},\n\n\t\tdisabled: function( elem ) {\n\t\t\treturn elem.disabled === true;\n\t\t},\n\n\t\tchecked: function( elem ) {\n\t\t\treturn elem.checked === true;\n\t\t},\n\t\t\n\t\tselected: function( elem ) {\n\t\t\t// Accessing this property makes selected-by-default\n\t\t\t// options in Safari work properly\n\t\t\tif ( elem.parentNode ) {\n\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t}\n\t\t\t\n\t\t\treturn elem.selected === true;\n\t\t},\n\n\t\tparent: function( elem ) {\n\t\t\treturn !!elem.firstChild;\n\t\t},\n\n\t\tempty: function( elem ) {\n\t\t\treturn !elem.firstChild;\n\t\t},\n\n\t\thas: function( elem, i, match ) {\n\t\t\treturn !!Sizzle( match[3], elem ).length;\n\t\t},\n\n\t\theader: function( elem ) {\n\t\t\treturn (/h\\d/i).test( elem.nodeName );\n\t\t},\n\n\t\ttext: function( elem ) {\n\t\t\t// IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) \n\t\t\t// use getAttribute instead to test this case\n\t\t\treturn \"text\" === elem.getAttribute( 'type' );\n\t\t},\n\t\tradio: function( elem ) {\n\t\t\treturn \"radio\" === elem.type;\n\t\t},\n\n\t\tcheckbox: function( elem ) {\n\t\t\treturn \"checkbox\" === elem.type;\n\t\t},\n\n\t\tfile: function( elem ) {\n\t\t\treturn \"file\" === elem.type;\n\t\t},\n\t\tpassword: function( elem ) {\n\t\t\treturn \"password\" === elem.type;\n\t\t},\n\n\t\tsubmit: function( elem ) {\n\t\t\treturn \"submit\" === elem.type;\n\t\t},\n\n\t\timage: function( elem ) {\n\t\t\treturn \"image\" === elem.type;\n\t\t},\n\n\t\treset: function( elem ) {\n\t\t\treturn \"reset\" === elem.type;\n\t\t},\n\n\t\tbutton: function( elem ) {\n\t\t\treturn \"button\" === elem.type || elem.nodeName.toLowerCase() === \"button\";\n\t\t},\n\n\t\tinput: function( elem ) {\n\t\t\treturn (/input|select|textarea|button/i).test( elem.nodeName );\n\t\t}\n\t},\n\tsetFilters: {\n\t\tfirst: function( elem, i ) {\n\t\t\treturn i === 0;\n\t\t},\n\n\t\tlast: function( elem, i, match, array ) {\n\t\t\treturn i === array.length - 1;\n\t\t},\n\n\t\teven: function( elem, i ) {\n\t\t\treturn i % 2 === 0;\n\t\t},\n\n\t\todd: function( elem, i ) {\n\t\t\treturn i % 2 === 1;\n\t\t},\n\n\t\tlt: function( elem, i, match ) {\n\t\t\treturn i < match[3] - 0;\n\t\t},\n\n\t\tgt: function( elem, i, match ) {\n\t\t\treturn i > match[3] - 0;\n\t\t},\n\n\t\tnth: function( elem, i, match ) {\n\t\t\treturn match[3] - 0 === i;\n\t\t},\n\n\t\teq: function( elem, i, match ) {\n\t\t\treturn match[3] - 0 === i;\n\t\t}\n\t},\n\tfilter: {\n\t\tPSEUDO: function( elem, match, i, array ) {\n\t\t\tvar name = match[1],\n\t\t\t\tfilter = Expr.filters[ name ];\n\n\t\t\tif ( filter ) {\n\t\t\t\treturn filter( elem, i, match, array );\n\n\t\t\t} else if ( name === \"contains\" ) {\n\t\t\t\treturn (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || \"\").indexOf(match[3]) >= 0;\n\n\t\t\t} else if ( name === \"not\" ) {\n\t\t\t\tvar not = match[3];\n\n\t\t\t\tfor ( var j = 0, l = not.length; j < l; j++ ) {\n\t\t\t\t\tif ( not[j] === elem ) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\t} else {\n\t\t\t\tSizzle.error( name );\n\t\t\t}\n\t\t},\n\n\t\tCHILD: function( elem, match ) {\n\t\t\tvar type = match[1],\n\t\t\t\tnode = elem;\n\n\t\t\tswitch ( type ) {\n\t\t\t\tcase \"only\":\n\t\t\t\tcase \"first\":\n\t\t\t\t\twhile ( (node = node.previousSibling) )\t {\n\t\t\t\t\t\tif ( node.nodeType === 1 ) { \n\t\t\t\t\t\t\treturn false; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( type === \"first\" ) { \n\t\t\t\t\t\treturn true; \n\t\t\t\t\t}\n\n\t\t\t\t\tnode = elem;\n\n\t\t\t\tcase \"last\":\n\t\t\t\t\twhile ( (node = node.nextSibling) )\t {\n\t\t\t\t\t\tif ( node.nodeType === 1 ) { \n\t\t\t\t\t\t\treturn false; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn true;\n\n\t\t\t\tcase \"nth\":\n\t\t\t\t\tvar first = match[2],\n\t\t\t\t\t\tlast = match[3];\n\n\t\t\t\t\tif ( first === 1 && last === 0 ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tvar doneName = match[0],\n\t\t\t\t\t\tparent = elem.parentNode;\n\t\n\t\t\t\t\tif ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {\n\t\t\t\t\t\tvar count = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor ( node = parent.firstChild; node; node = node.nextSibling ) {\n\t\t\t\t\t\t\tif ( node.nodeType === 1 ) {\n\t\t\t\t\t\t\t\tnode.nodeIndex = ++count;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\n\t\t\t\t\t\tparent.sizcache = doneName;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tvar diff = elem.nodeIndex - last;\n\n\t\t\t\t\tif ( first === 0 ) {\n\t\t\t\t\t\treturn diff === 0;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tID: function( elem, match ) {\n\t\t\treturn elem.nodeType === 1 && elem.getAttribute(\"id\") === match;\n\t\t},\n\n\t\tTAG: function( elem, match ) {\n\t\t\treturn (match === \"*\" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;\n\t\t},\n\t\t\n\t\tCLASS: function( elem, match ) {\n\t\t\treturn (\" \" + (elem.className || elem.getAttribute(\"class\")) + \" \")\n\t\t\t\t.indexOf( match ) > -1;\n\t\t},\n\n\t\tATTR: function( elem, match ) {\n\t\t\tvar name = match[1],\n\t\t\t\tresult = Expr.attrHandle[ name ] ?\n\t\t\t\t\tExpr.attrHandle[ name ]( elem ) :\n\t\t\t\t\telem[ name ] != null ?\n\t\t\t\t\t\telem[ name ] :\n\t\t\t\t\t\telem.getAttribute( name ),\n\t\t\t\tvalue = result + \"\",\n\t\t\t\ttype = match[2],\n\t\t\t\tcheck = match[4];\n\n\t\t\treturn result == null ?\n\t\t\t\ttype === \"!=\" :\n\t\t\t\ttype === \"=\" ?\n\t\t\t\tvalue === check :\n\t\t\t\ttype === \"*=\" ?\n\t\t\t\tvalue.indexOf(check) >= 0 :\n\t\t\t\ttype === \"~=\" ?\n\t\t\t\t(\" \" + value + \" \").indexOf(check) >= 0 :\n\t\t\t\t!check ?\n\t\t\t\tvalue && result !== false :\n\t\t\t\ttype === \"!=\" ?\n\t\t\t\tvalue !== check :\n\t\t\t\ttype === \"^=\" ?\n\t\t\t\tvalue.indexOf(check) === 0 :\n\t\t\t\ttype === \"$=\" ?\n\t\t\t\tvalue.substr(value.length - check.length) === check :\n\t\t\t\ttype === \"|=\" ?\n\t\t\t\tvalue === check || value.substr(0, check.length + 1) === check + \"-\" :\n\t\t\t\tfalse;\n\t\t},\n\n\t\tPOS: function( elem, match, i, array ) {\n\t\t\tvar name = match[2],\n\t\t\t\tfilter = Expr.setFilters[ name ];\n\n\t\t\tif ( filter ) {\n\t\t\t\treturn filter( elem, i, match, array );\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar origPOS = Expr.match.POS,\n\tfescape = function(all, num){\n\t\treturn \"\\\\\" + (num - 0 + 1);\n\t};\n\nfor ( var type in Expr.match ) {\n\tExpr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\\[]*\\])(?![^\\(]*\\))/.source) );\n\tExpr.leftMatch[ type ] = new RegExp( /(^(?:.|\\r|\\n)*?)/.source + Expr.match[ type ].source.replace(/\\\\(\\d+)/g, fescape) );\n}\n\nvar makeArray = function( array, results ) {\n\tarray = Array.prototype.slice.call( array, 0 );\n\n\tif ( results ) {\n\t\tresults.push.apply( results, array );\n\t\treturn results;\n\t}\n\t\n\treturn array;\n};\n\n// Perform a simple check to determine if the browser is capable of\n// converting a NodeList to an array using builtin methods.\n// Also verifies that the returned array holds DOM nodes\n// (which is not the case in the Blackberry browser)\ntry {\n\tArray.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;\n\n// Provide a fallback method if it does not work\n} catch( e ) {\n\tmakeArray = function( array, results ) {\n\t\tvar i = 0,\n\t\t\tret = results || [];\n\n\t\tif ( toString.call(array) === \"[object Array]\" ) {\n\t\t\tArray.prototype.push.apply( ret, array );\n\n\t\t} else {\n\t\t\tif ( typeof array.length === \"number\" ) {\n\t\t\t\tfor ( var l = array.length; i < l; i++ ) {\n\t\t\t\t\tret.push( array[i] );\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tfor ( ; array[i]; i++ ) {\n\t\t\t\t\tret.push( array[i] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t};\n}\n\nvar sortOrder, siblingCheck;\n\nif ( document.documentElement.compareDocumentPosition ) {\n\tsortOrder = function( a, b ) {\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\tif ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {\n\t\t\treturn a.compareDocumentPosition ? -1 : 1;\n\t\t}\n\n\t\treturn a.compareDocumentPosition(b) & 4 ? -1 : 1;\n\t};\n\n} else {\n\tsortOrder = function( a, b ) {\n\t\tvar al, bl,\n\t\t\tap = [],\n\t\t\tbp = [],\n\t\t\taup = a.parentNode,\n\t\t\tbup = b.parentNode,\n\t\t\tcur = aup;\n\n\t\t// The nodes are identical, we can exit early\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\n\t\t// If the nodes are siblings (or identical) we can do a quick check\n\t\t} else if ( aup === bup ) {\n\t\t\treturn siblingCheck( a, b );\n\n\t\t// If no parents were found then the nodes are disconnected\n\t\t} else if ( !aup ) {\n\t\t\treturn -1;\n\n\t\t} else if ( !bup ) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// Otherwise they're somewhere else in the tree so we need\n\t\t// to build up a full list of the parentNodes for comparison\n\t\twhile ( cur ) {\n\t\t\tap.unshift( cur );\n\t\t\tcur = cur.parentNode;\n\t\t}\n\n\t\tcur = bup;\n\n\t\twhile ( cur ) {\n\t\t\tbp.unshift( cur );\n\t\t\tcur = cur.parentNode;\n\t\t}\n\n\t\tal = ap.length;\n\t\tbl = bp.length;\n\n\t\t// Start walking down the tree looking for a discrepancy\n\t\tfor ( var i = 0; i < al && i < bl; i++ ) {\n\t\t\tif ( ap[i] !== bp[i] ) {\n\t\t\t\treturn siblingCheck( ap[i], bp[i] );\n\t\t\t}\n\t\t}\n\n\t\t// We ended someplace up the tree so do a sibling check\n\t\treturn i === al ?\n\t\t\tsiblingCheck( a, bp[i], -1 ) :\n\t\t\tsiblingCheck( ap[i], b, 1 );\n\t};\n\n\tsiblingCheck = function( a, b, ret ) {\n\t\tif ( a === b ) {\n\t\t\treturn ret;\n\t\t}\n\n\t\tvar cur = a.nextSibling;\n\n\t\twhile ( cur ) {\n\t\t\tif ( cur === b ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\tcur = cur.nextSibling;\n\t\t}\n\n\t\treturn 1;\n\t};\n}\n\n// Utility function for retreiving the text value of an array of DOM nodes\nSizzle.getText = function( elems ) {\n\tvar ret = \"\", elem;\n\n\tfor ( var i = 0; elems[i]; i++ ) {\n\t\telem = elems[i];\n\n\t\t// Get the text from text nodes and CDATA nodes\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 4 ) {\n\t\t\tret += elem.nodeValue;\n\n\t\t// Traverse everything else, except comment nodes\n\t\t} else if ( elem.nodeType !== 8 ) {\n\t\t\tret += Sizzle.getText( elem.childNodes );\n\t\t}\n\t}\n\n\treturn ret;\n};\n\n// Check to see if the browser returns elements by name when\n// querying by getElementById (and provide a workaround)\n(function(){\n\t// We're going to inject a fake input element with a specified name\n\tvar form = document.createElement(\"div\"),\n\t\tid = \"script\" + (new Date()).getTime(),\n\t\troot = document.documentElement;\n\n\tform.innerHTML = \"<a name='\" + id + \"'/>\";\n\n\t// Inject it into the root element, check its status, and remove it quickly\n\troot.insertBefore( form, root.firstChild );\n\n\t// The workaround has to do additional checks after a getElementById\n\t// Which slows things down for other browsers (hence the branching)\n\tif ( document.getElementById( id ) ) {\n\t\tExpr.find.ID = function( match, context, isXML ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && !isXML ) {\n\t\t\t\tvar m = context.getElementById(match[1]);\n\n\t\t\t\treturn m ?\n\t\t\t\t\tm.id === match[1] || typeof m.getAttributeNode !== \"undefined\" && m.getAttributeNode(\"id\").nodeValue === match[1] ?\n\t\t\t\t\t\t[m] :\n\t\t\t\t\t\tundefined :\n\t\t\t\t\t[];\n\t\t\t}\n\t\t};\n\n\t\tExpr.filter.ID = function( elem, match ) {\n\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" && elem.getAttributeNode(\"id\");\n\n\t\t\treturn elem.nodeType === 1 && node && node.nodeValue === match;\n\t\t};\n\t}\n\n\troot.removeChild( form );\n\n\t// release memory in IE\n\troot = form = null;\n})();\n\n(function(){\n\t// Check to see if the browser returns only elements\n\t// when doing getElementsByTagName(\"*\")\n\n\t// Create a fake element\n\tvar div = document.createElement(\"div\");\n\tdiv.appendChild( document.createComment(\"\") );\n\n\t// Make sure no comments are found\n\tif ( div.getElementsByTagName(\"*\").length > 0 ) {\n\t\tExpr.find.TAG = function( match, context ) {\n\t\t\tvar results = context.getElementsByTagName( match[1] );\n\n\t\t\t// Filter out possible comments\n\t\t\tif ( match[1] === \"*\" ) {\n\t\t\t\tvar tmp = [];\n\n\t\t\t\tfor ( var i = 0; results[i]; i++ ) {\n\t\t\t\t\tif ( results[i].nodeType === 1 ) {\n\t\t\t\t\t\ttmp.push( results[i] );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tresults = tmp;\n\t\t\t}\n\n\t\t\treturn results;\n\t\t};\n\t}\n\n\t// Check to see if an attribute returns normalized href attributes\n\tdiv.innerHTML = \"<a href='#'></a>\";\n\n\tif ( div.firstChild && typeof div.firstChild.getAttribute !== \"undefined\" &&\n\t\t\tdiv.firstChild.getAttribute(\"href\") !== \"#\" ) {\n\n\t\tExpr.attrHandle.href = function( elem ) {\n\t\t\treturn elem.getAttribute( \"href\", 2 );\n\t\t};\n\t}\n\n\t// release memory in IE\n\tdiv = null;\n})();\n\nif ( document.querySelectorAll ) {\n\t(function(){\n\t\tvar oldSizzle = Sizzle,\n\t\t\tdiv = document.createElement(\"div\"),\n\t\t\tid = \"__sizzle__\";\n\n\t\tdiv.innerHTML = \"<p class='TEST'></p>\";\n\n\t\t// Safari can't handle uppercase or unicode characters when\n\t\t// in quirks mode.\n\t\tif ( div.querySelectorAll && div.querySelectorAll(\".TEST\").length === 0 ) {\n\t\t\treturn;\n\t\t}\n\t\n\t\tSizzle = function( query, context, extra, seed ) {\n\t\t\tcontext = context || document;\n\n\t\t\t// Only use querySelectorAll on non-XML documents\n\t\t\t// (ID selectors don't work in non-HTML documents)\n\t\t\tif ( !seed && !Sizzle.isXML(context) ) {\n\t\t\t\t// See if we find a selector to speed up\n\t\t\t\tvar match = /^(\\w+$)|^\\.([\\w\\-]+$)|^#([\\w\\-]+$)/.exec( query );\n\t\t\t\t\n\t\t\t\tif ( match && (context.nodeType === 1 || context.nodeType === 9) ) {\n\t\t\t\t\t// Speed-up: Sizzle(\"TAG\")\n\t\t\t\t\tif ( match[1] ) {\n\t\t\t\t\t\treturn makeArray( context.getElementsByTagName( query ), extra );\n\t\t\t\t\t\n\t\t\t\t\t// Speed-up: Sizzle(\".CLASS\")\n\t\t\t\t\t} else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {\n\t\t\t\t\t\treturn makeArray( context.getElementsByClassName( match[2] ), extra );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( context.nodeType === 9 ) {\n\t\t\t\t\t// Speed-up: Sizzle(\"body\")\n\t\t\t\t\t// The body element only exists once, optimize finding it\n\t\t\t\t\tif ( query === \"body\" && context.body ) {\n\t\t\t\t\t\treturn makeArray( [ context.body ], extra );\n\t\t\t\t\t\t\n\t\t\t\t\t// Speed-up: Sizzle(\"#ID\")\n\t\t\t\t\t} else if ( match && match[3] ) {\n\t\t\t\t\t\tvar elem = context.getElementById( match[3] );\n\n\t\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\t\t\t\t\t\t// nodes that are no longer in the document #6963\n\t\t\t\t\t\tif ( elem && elem.parentNode ) {\n\t\t\t\t\t\t\t// Handle the case where IE and Opera return items\n\t\t\t\t\t\t\t// by name instead of ID\n\t\t\t\t\t\t\tif ( elem.id === match[3] ) {\n\t\t\t\t\t\t\t\treturn makeArray( [ elem ], extra );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn makeArray( [], extra );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn makeArray( context.querySelectorAll(query), extra );\n\t\t\t\t\t} catch(qsaError) {}\n\n\t\t\t\t// qSA works strangely on Element-rooted queries\n\t\t\t\t// We can work around this by specifying an extra ID on the root\n\t\t\t\t// and working up from there (Thanks to Andrew Dupont for the technique)\n\t\t\t\t// IE 8 doesn't work on object elements\n\t\t\t\t} else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== \"object\" ) {\n\t\t\t\t\tvar oldContext = context,\n\t\t\t\t\t\told = context.getAttribute( \"id\" ),\n\t\t\t\t\t\tnid = old || id,\n\t\t\t\t\t\thasParent = context.parentNode,\n\t\t\t\t\t\trelativeHierarchySelector = /^\\s*[+~]/.test( query );\n\n\t\t\t\t\tif ( !old ) {\n\t\t\t\t\t\tcontext.setAttribute( \"id\", nid );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnid = nid.replace( /'/g, \"\\\\$&\" );\n\t\t\t\t\t}\n\t\t\t\t\tif ( relativeHierarchySelector && hasParent ) {\n\t\t\t\t\t\tcontext = context.parentNode;\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif ( !relativeHierarchySelector || hasParent ) {\n\t\t\t\t\t\t\treturn makeArray( context.querySelectorAll( \"[id='\" + nid + \"'] \" + query ), extra );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch(pseudoError) {\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif ( !old ) {\n\t\t\t\t\t\t\toldContext.removeAttribute( \"id\" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\treturn oldSizzle(query, context, extra, seed);\n\t\t};\n\n\t\tfor ( var prop in oldSizzle ) {\n\t\t\tSizzle[ prop ] = oldSizzle[ prop ];\n\t\t}\n\n\t\t// release memory in IE\n\t\tdiv = null;\n\t})();\n}\n\n(function(){\n\tvar html = document.documentElement,\n\t\tmatches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector,\n\t\tpseudoWorks = false;\n\n\ttry {\n\t\t// This should fail with an exception\n\t\t// Gecko does not error, returns false instead\n\t\tmatches.call( document.documentElement, \"[test!='']:sizzle\" );\n\t\n\t} catch( pseudoError ) {\n\t\tpseudoWorks = true;\n\t}\n\n\tif ( matches ) {\n\t\tSizzle.matchesSelector = function( node, expr ) {\n\t\t\t// Make sure that attribute selectors are quoted\n\t\t\texpr = expr.replace(/\\=\\s*([^'\"\\]]*)\\s*\\]/g, \"='$1']\");\n\n\t\t\tif ( !Sizzle.isXML( node ) ) {\n\t\t\t\ttry { \n\t\t\t\t\tif ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {\n\t\t\t\t\t\treturn matches.call( node, expr );\n\t\t\t\t\t}\n\t\t\t\t} catch(e) {}\n\t\t\t}\n\n\t\t\treturn Sizzle(expr, null, null, [node]).length > 0;\n\t\t};\n\t}\n})();\n\n(function(){\n\tvar div = document.createElement(\"div\");\n\n\tdiv.innerHTML = \"<div class='test e'></div><div class='test'></div>\";\n\n\t// Opera can't find a second classname (in 9.6)\n\t// Also, make sure that getElementsByClassName actually exists\n\tif ( !div.getElementsByClassName || div.getElementsByClassName(\"e\").length === 0 ) {\n\t\treturn;\n\t}\n\n\t// Safari caches class attributes, doesn't catch changes (in 3.2)\n\tdiv.lastChild.className = \"e\";\n\n\tif ( div.getElementsByClassName(\"e\").length === 1 ) {\n\t\treturn;\n\t}\n\t\n\tExpr.order.splice(1, 0, \"CLASS\");\n\tExpr.find.CLASS = function( match, context, isXML ) {\n\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && !isXML ) {\n\t\t\treturn context.getElementsByClassName(match[1]);\n\t\t}\n\t};\n\n\t// release memory in IE\n\tdiv = null;\n})();\n\nfunction dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {\n\tfor ( var i = 0, l = checkSet.length; i < l; i++ ) {\n\t\tvar elem = checkSet[i];\n\n\t\tif ( elem ) {\n\t\t\tvar match = false;\n\n\t\t\telem = elem[dir];\n\n\t\t\twhile ( elem ) {\n\t\t\t\tif ( elem.sizcache === doneName ) {\n\t\t\t\t\tmatch = checkSet[elem.sizset];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ( elem.nodeType === 1 && !isXML ){\n\t\t\t\t\telem.sizcache = doneName;\n\t\t\t\t\telem.sizset = i;\n\t\t\t\t}\n\n\t\t\t\tif ( elem.nodeName.toLowerCase() === cur ) {\n\t\t\t\t\tmatch = elem;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\telem = elem[dir];\n\t\t\t}\n\n\t\t\tcheckSet[i] = match;\n\t\t}\n\t}\n}\n\nfunction dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {\n\tfor ( var i = 0, l = checkSet.length; i < l; i++ ) {\n\t\tvar elem = checkSet[i];\n\n\t\tif ( elem ) {\n\t\t\tvar match = false;\n\t\t\t\n\t\t\telem = elem[dir];\n\n\t\t\twhile ( elem ) {\n\t\t\t\tif ( elem.sizcache === doneName ) {\n\t\t\t\t\tmatch = checkSet[elem.sizset];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\tif ( !isXML ) {\n\t\t\t\t\t\telem.sizcache = doneName;\n\t\t\t\t\t\telem.sizset = i;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( typeof cur !== \"string\" ) {\n\t\t\t\t\t\tif ( elem === cur ) {\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {\n\t\t\t\t\t\tmatch = elem;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telem = elem[dir];\n\t\t\t}\n\n\t\t\tcheckSet[i] = match;\n\t\t}\n\t}\n}\n\nif ( document.documentElement.contains ) {\n\tSizzle.contains = function( a, b ) {\n\t\treturn a !== b && (a.contains ? a.contains(b) : true);\n\t};\n\n} else if ( document.documentElement.compareDocumentPosition ) {\n\tSizzle.contains = function( a, b ) {\n\t\treturn !!(a.compareDocumentPosition(b) & 16);\n\t};\n\n} else {\n\tSizzle.contains = function() {\n\t\treturn false;\n\t};\n}\n\nSizzle.isXML = function( elem ) {\n\t// documentElement is verified for cases where it doesn't yet exist\n\t// (such as loading iframes in IE - #4833) \n\tvar documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;\n\n\treturn documentElement ? documentElement.nodeName !== \"HTML\" : false;\n};\n\nvar posProcess = function( selector, context ) {\n\tvar match,\n\t\ttmpSet = [],\n\t\tlater = \"\",\n\t\troot = context.nodeType ? [context] : context;\n\n\t// Position selectors must be done after the filter\n\t// And so must :not(positional) so we move all PSEUDOs to the end\n\twhile ( (match = Expr.match.PSEUDO.exec( selector )) ) {\n\t\tlater += match[0];\n\t\tselector = selector.replace( Expr.match.PSEUDO, \"\" );\n\t}\n\n\tselector = Expr.relative[selector] ? selector + \"*\" : selector;\n\n\tfor ( var i = 0, l = root.length; i < l; i++ ) {\n\t\tSizzle( selector, root[i], tmpSet );\n\t}\n\n\treturn Sizzle.filter( later, tmpSet );\n};\n\n// EXPOSE\njQuery.find = Sizzle;\njQuery.expr = Sizzle.selectors;\njQuery.expr[\":\"] = jQuery.expr.filters;\njQuery.unique = Sizzle.uniqueSort;\njQuery.text = Sizzle.getText;\njQuery.isXMLDoc = Sizzle.isXML;\njQuery.contains = Sizzle.contains;\n\n\n})();\n\n\nvar runtil = /Until$/,\n\trparentsprev = /^(?:parents|prevUntil|prevAll)/,\n\t// Note: This RegExp should be improved, or likely pulled from Sizzle\n\trmultiselector = /,/,\n\tisSimple = /^.[^:#\\[\\.,]*$/,\n\tslice = Array.prototype.slice,\n\tPOS = jQuery.expr.match.POS,\n\t// methods guaranteed to produce a unique set when starting from a unique set\n\tguaranteedUnique = {\n\t\tchildren: true,\n\t\tcontents: true,\n\t\tnext: true,\n\t\tprev: true\n\t};\n\njQuery.fn.extend({\n\tfind: function( selector ) {\n\t\tvar ret = this.pushStack( \"\", \"find\", selector ),\n\t\t\tlength = 0;\n\n\t\tfor ( var i = 0, l = this.length; i < l; i++ ) {\n\t\t\tlength = ret.length;\n\t\t\tjQuery.find( selector, this[i], ret );\n\n\t\t\tif ( i > 0 ) {\n\t\t\t\t// Make sure that the results are unique\n\t\t\t\tfor ( var n = length; n < ret.length; n++ ) {\n\t\t\t\t\tfor ( var r = 0; r < length; r++ ) {\n\t\t\t\t\t\tif ( ret[r] === ret[n] ) {\n\t\t\t\t\t\t\tret.splice(n--, 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\thas: function( target ) {\n\t\tvar targets = jQuery( target );\n\t\treturn this.filter(function() {\n\t\t\tfor ( var i = 0, l = targets.length; i < l; i++ ) {\n\t\t\t\tif ( jQuery.contains( this, targets[i] ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\n\tnot: function( selector ) {\n\t\treturn this.pushStack( winnow(this, selector, false), \"not\", selector);\n\t},\n\n\tfilter: function( selector ) {\n\t\treturn this.pushStack( winnow(this, selector, true), \"filter\", selector );\n\t},\n\n\tis: function( selector ) {\n\t\treturn !!selector && jQuery.filter( selector, this ).length > 0;\n\t},\n\n\tclosest: function( selectors, context ) {\n\t\tvar ret = [], i, l, cur = this[0];\n\n\t\tif ( jQuery.isArray( selectors ) ) {\n\t\t\tvar match, selector,\n\t\t\t\tmatches = {},\n\t\t\t\tlevel = 1;\n\n\t\t\tif ( cur && selectors.length ) {\n\t\t\t\tfor ( i = 0, l = selectors.length; i < l; i++ ) {\n\t\t\t\t\tselector = selectors[i];\n\n\t\t\t\t\tif ( !matches[selector] ) {\n\t\t\t\t\t\tmatches[selector] = jQuery.expr.match.POS.test( selector ) ?\n\t\t\t\t\t\t\tjQuery( selector, context || this.context ) :\n\t\t\t\t\t\t\tselector;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile ( cur && cur.ownerDocument && cur !== context ) {\n\t\t\t\t\tfor ( selector in matches ) {\n\t\t\t\t\t\tmatch = matches[selector];\n\n\t\t\t\t\t\tif ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {\n\t\t\t\t\t\t\tret.push({ selector: selector, elem: cur, level: level });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tcur = cur.parentNode;\n\t\t\t\t\tlevel++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ret;\n\t\t}\n\n\t\tvar pos = POS.test( selectors ) ?\n\t\t\tjQuery( selectors, context || this.context ) : null;\n\n\t\tfor ( i = 0, l = this.length; i < l; i++ ) {\n\t\t\tcur = this[i];\n\n\t\t\twhile ( cur ) {\n\t\t\t\tif ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {\n\t\t\t\t\tret.push( cur );\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else {\n\t\t\t\t\tcur = cur.parentNode;\n\t\t\t\t\tif ( !cur || !cur.ownerDocument || cur === context ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tret = ret.length > 1 ? jQuery.unique(ret) : ret;\n\n\t\treturn this.pushStack( ret, \"closest\", selectors );\n\t},\n\n\t// Determine the position of an element within\n\t// the matched set of elements\n\tindex: function( elem ) {\n\t\tif ( !elem || typeof elem === \"string\" ) {\n\t\t\treturn jQuery.inArray( this[0],\n\t\t\t\t// If it receives a string, the selector is used\n\t\t\t\t// If it receives nothing, the siblings are used\n\t\t\t\telem ? jQuery( elem ) : this.parent().children() );\n\t\t}\n\t\t// Locate the position of the desired element\n\t\treturn jQuery.inArray(\n\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\telem.jquery ? elem[0] : elem, this );\n\t},\n\n\tadd: function( selector, context ) {\n\t\tvar set = typeof selector === \"string\" ?\n\t\t\t\tjQuery( selector, context ) :\n\t\t\t\tjQuery.makeArray( selector ),\n\t\t\tall = jQuery.merge( this.get(), set );\n\n\t\treturn this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?\n\t\t\tall :\n\t\t\tjQuery.unique( all ) );\n\t},\n\n\tandSelf: function() {\n\t\treturn this.add( this.prevObject );\n\t}\n});\n\n// A painfully simple check to see if an element is disconnected\n// from a document (should be improved, where feasible).\nfunction isDisconnected( node ) {\n\treturn !node || !node.parentNode || node.parentNode.nodeType === 11;\n}\n\njQuery.each({\n\tparent: function( elem ) {\n\t\tvar parent = elem.parentNode;\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t},\n\tparents: function( elem ) {\n\t\treturn jQuery.dir( elem, \"parentNode\" );\n\t},\n\tparentsUntil: function( elem, i, until ) {\n\t\treturn jQuery.dir( elem, \"parentNode\", until );\n\t},\n\tnext: function( elem ) {\n\t\treturn jQuery.nth( elem, 2, \"nextSibling\" );\n\t},\n\tprev: function( elem ) {\n\t\treturn jQuery.nth( elem, 2, \"previousSibling\" );\n\t},\n\tnextAll: function( elem ) {\n\t\treturn jQuery.dir( elem, \"nextSibling\" );\n\t},\n\tprevAll: function( elem ) {\n\t\treturn jQuery.dir( elem, \"previousSibling\" );\n\t},\n\tnextUntil: function( elem, i, until ) {\n\t\treturn jQuery.dir( elem, \"nextSibling\", until );\n\t},\n\tprevUntil: function( elem, i, until ) {\n\t\treturn jQuery.dir( elem, \"previousSibling\", until );\n\t},\n\tsiblings: function( elem ) {\n\t\treturn jQuery.sibling( elem.parentNode.firstChild, elem );\n\t},\n\tchildren: function( elem ) {\n\t\treturn jQuery.sibling( elem.firstChild );\n\t},\n\tcontents: function( elem ) {\n\t\treturn jQuery.nodeName( elem, \"iframe\" ) ?\n\t\t\telem.contentDocument || elem.contentWindow.document :\n\t\t\tjQuery.makeArray( elem.childNodes );\n\t}\n}, function( name, fn ) {\n\tjQuery.fn[ name ] = function( until, selector ) {\n\t\tvar ret = jQuery.map( this, fn, until ),\n\t\t\t// The variable 'args' was introduced in\n\t\t\t// https://github.com/jquery/jquery/commit/52a0238\n\t\t\t// to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.\n\t\t\t// http://code.google.com/p/v8/issues/detail?id=1050\n\t\t\targs = slice.call(arguments);\n\n\t\tif ( !runtil.test( name ) ) {\n\t\t\tselector = until;\n\t\t}\n\n\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\tret = jQuery.filter( selector, ret );\n\t\t}\n\n\t\tret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;\n\n\t\tif ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {\n\t\t\tret = ret.reverse();\n\t\t}\n\n\t\treturn this.pushStack( ret, name, args.join(\",\") );\n\t};\n});\n\njQuery.extend({\n\tfilter: function( expr, elems, not ) {\n\t\tif ( not ) {\n\t\t\texpr = \":not(\" + expr + \")\";\n\t\t}\n\n\t\treturn elems.length === 1 ?\n\t\t\tjQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :\n\t\t\tjQuery.find.matches(expr, elems);\n\t},\n\n\tdir: function( elem, dir, until ) {\n\t\tvar matched = [],\n\t\t\tcur = elem[ dir ];\n\n\t\twhile ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {\n\t\t\tif ( cur.nodeType === 1 ) {\n\t\t\t\tmatched.push( cur );\n\t\t\t}\n\t\t\tcur = cur[dir];\n\t\t}\n\t\treturn matched;\n\t},\n\n\tnth: function( cur, result, dir, elem ) {\n\t\tresult = result || 1;\n\t\tvar num = 0;\n\n\t\tfor ( ; cur; cur = cur[dir] ) {\n\t\t\tif ( cur.nodeType === 1 && ++num === result ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn cur;\n\t},\n\n\tsibling: function( n, elem ) {\n\t\tvar r = [];\n\n\t\tfor ( ; n; n = n.nextSibling ) {\n\t\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\t\tr.push( n );\n\t\t\t}\n\t\t}\n\n\t\treturn r;\n\t}\n});\n\n// Implement the identical functionality for filter and not\nfunction winnow( elements, qualifier, keep ) {\n\tif ( jQuery.isFunction( qualifier ) ) {\n\t\treturn jQuery.grep(elements, function( elem, i ) {\n\t\t\tvar retVal = !!qualifier.call( elem, i, elem );\n\t\t\treturn retVal === keep;\n\t\t});\n\n\t} else if ( qualifier.nodeType ) {\n\t\treturn jQuery.grep(elements, function( elem, i ) {\n\t\t\treturn (elem === qualifier) === keep;\n\t\t});\n\n\t} else if ( typeof qualifier === \"string\" ) {\n\t\tvar filtered = jQuery.grep(elements, function( elem ) {\n\t\t\treturn elem.nodeType === 1;\n\t\t});\n\n\t\tif ( isSimple.test( qualifier ) ) {\n\t\t\treturn jQuery.filter(qualifier, filtered, !keep);\n\t\t} else {\n\t\t\tqualifier = jQuery.filter( qualifier, filtered );\n\t\t}\n\t}\n\n\treturn jQuery.grep(elements, function( elem, i ) {\n\t\treturn (jQuery.inArray( elem, qualifier ) >= 0) === keep;\n\t});\n}\n\n\n\n\nvar rinlinejQuery = / jQuery\\d+=\"(?:\\d+|null)\"/g,\n\trleadingWhitespace = /^\\s+/,\n\trxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/ig,\n\trtagName = /<([\\w:]+)/,\n\trtbody = /<tbody/i,\n\trhtml = /<|&#?\\w+;/,\n\trnocache = /<(?:script|object|embed|option|style)/i,\n\t// checked=\"checked\" or checked\n\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\n\twrapMap = {\n\t\toption: [ 1, \"<select multiple='multiple'>\", \"</select>\" ],\n\t\tlegend: [ 1, \"<fieldset>\", \"</fieldset>\" ],\n\t\tthead: [ 1, \"<table>\", \"</table>\" ],\n\t\ttr: [ 2, \"<table><tbody>\", \"</tbody></table>\" ],\n\t\ttd: [ 3, \"<table><tbody><tr>\", \"</tr></tbody></table>\" ],\n\t\tcol: [ 2, \"<table><tbody></tbody><colgroup>\", \"</colgroup></table>\" ],\n\t\tarea: [ 1, \"<map>\", \"</map>\" ],\n\t\t_default: [ 0, \"\", \"\" ]\n\t};\n\nwrapMap.optgroup = wrapMap.option;\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\n// IE can't serialize <link> and <script> tags normally\nif ( !jQuery.support.htmlSerialize ) {\n\twrapMap._default = [ 1, \"div<div>\", \"</div>\" ];\n}\n\njQuery.fn.extend({\n\ttext: function( text ) {\n\t\tif ( jQuery.isFunction(text) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tvar self = jQuery( this );\n\n\t\t\t\tself.text( text.call(this, i, self.text()) );\n\t\t\t});\n\t\t}\n\n\t\tif ( typeof text !== \"object\" && text !== undefined ) {\n\t\t\treturn this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );\n\t\t}\n\n\t\treturn jQuery.text( this );\n\t},\n\n\twrapAll: function( html ) {\n\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tjQuery(this).wrapAll( html.call(this, i) );\n\t\t\t});\n\t\t}\n\n\t\tif ( this[0] ) {\n\t\t\t// The elements to wrap the target around\n\t\t\tvar wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);\n\n\t\t\tif ( this[0].parentNode ) {\n\t\t\t\twrap.insertBefore( this[0] );\n\t\t\t}\n\n\t\t\twrap.map(function() {\n\t\t\t\tvar elem = this;\n\n\t\t\t\twhile ( elem.firstChild && elem.firstChild.nodeType === 1 ) {\n\t\t\t\t\telem = elem.firstChild;\n\t\t\t\t}\n\n\t\t\t\treturn elem;\n\t\t\t}).append(this);\n\t\t}\n\n\t\treturn this;\n\t},\n\n\twrapInner: function( html ) {\n\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tjQuery(this).wrapInner( html.call(this, i) );\n\t\t\t});\n\t\t}\n\n\t\treturn this.each(function() {\n\t\t\tvar self = jQuery( this ),\n\t\t\t\tcontents = self.contents();\n\n\t\t\tif ( contents.length ) {\n\t\t\t\tcontents.wrapAll( html );\n\n\t\t\t} else {\n\t\t\t\tself.append( html );\n\t\t\t}\n\t\t});\n\t},\n\n\twrap: function( html ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery( this ).wrapAll( html );\n\t\t});\n\t},\n\n\tunwrap: function() {\n\t\treturn this.parent().each(function() {\n\t\t\tif ( !jQuery.nodeName( this, \"body\" ) ) {\n\t\t\t\tjQuery( this ).replaceWith( this.childNodes );\n\t\t\t}\n\t\t}).end();\n\t},\n\n\tappend: function() {\n\t\treturn this.domManip(arguments, true, function( elem ) {\n\t\t\tif ( this.nodeType === 1 ) {\n\t\t\t\tthis.appendChild( elem );\n\t\t\t}\n\t\t});\n\t},\n\n\tprepend: function() {\n\t\treturn this.domManip(arguments, true, function( elem ) {\n\t\t\tif ( this.nodeType === 1 ) {\n\t\t\t\tthis.insertBefore( elem, this.firstChild );\n\t\t\t}\n\t\t});\n\t},\n\n\tbefore: function() {\n\t\tif ( this[0] && this[0].parentNode ) {\n\t\t\treturn this.domManip(arguments, false, function( elem ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this );\n\t\t\t});\n\t\t} else if ( arguments.length ) {\n\t\t\tvar set = jQuery(arguments[0]);\n\t\t\tset.push.apply( set, this.toArray() );\n\t\t\treturn this.pushStack( set, \"before\", arguments );\n\t\t}\n\t},\n\n\tafter: function() {\n\t\tif ( this[0] && this[0].parentNode ) {\n\t\t\treturn this.domManip(arguments, false, function( elem ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this.nextSibling );\n\t\t\t});\n\t\t} else if ( arguments.length ) {\n\t\t\tvar set = this.pushStack( this, \"after\", arguments );\n\t\t\tset.push.apply( set, jQuery(arguments[0]).toArray() );\n\t\t\treturn set;\n\t\t}\n\t},\n\n\t// keepData is for internal use only--do not document\n\tremove: function( selector, keepData ) {\n\t\tfor ( var i = 0, elem; (elem = this[i]) != null; i++ ) {\n\t\t\tif ( !selector || jQuery.filter( selector, [ elem ] ).length ) {\n\t\t\t\tif ( !keepData && elem.nodeType === 1 ) {\n\t\t\t\t\tjQuery.cleanData( elem.getElementsByTagName(\"*\") );\n\t\t\t\t\tjQuery.cleanData( [ elem ] );\n\t\t\t\t}\n\n\t\t\t\tif ( elem.parentNode ) {\n\t\t\t\t\telem.parentNode.removeChild( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tempty: function() {\n\t\tfor ( var i = 0, elem; (elem = this[i]) != null; i++ ) {\n\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\tjQuery.cleanData( elem.getElementsByTagName(\"*\") );\n\t\t\t}\n\n\t\t\t// Remove any remaining nodes\n\t\t\twhile ( elem.firstChild ) {\n\t\t\t\telem.removeChild( elem.firstChild );\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tclone: function( dataAndEvents, deepDataAndEvents ) {\n\t\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\n\t\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\n\n\t\treturn this.map( function () {\n\t\t\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\n\t\t});\n\t},\n\n\thtml: function( value ) {\n\t\tif ( value === undefined ) {\n\t\t\treturn this[0] && this[0].nodeType === 1 ?\n\t\t\t\tthis[0].innerHTML.replace(rinlinejQuery, \"\") :\n\t\t\t\tnull;\n\n\t\t// See if we can take a shortcut and just use innerHTML\n\t\t} else if ( typeof value === \"string\" && !rnocache.test( value ) &&\n\t\t\t(jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&\n\t\t\t!wrapMap[ (rtagName.exec( value ) || [\"\", \"\"])[1].toLowerCase() ] ) {\n\n\t\t\tvalue = value.replace(rxhtmlTag, \"<$1></$2>\");\n\n\t\t\ttry {\n\t\t\t\tfor ( var i = 0, l = this.length; i < l; i++ ) {\n\t\t\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\t\t\tif ( this[i].nodeType === 1 ) {\n\t\t\t\t\t\tjQuery.cleanData( this[i].getElementsByTagName(\"*\") );\n\t\t\t\t\t\tthis[i].innerHTML = value;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// If using innerHTML throws an exception, use the fallback method\n\t\t\t} catch(e) {\n\t\t\t\tthis.empty().append( value );\n\t\t\t}\n\n\t\t} else if ( jQuery.isFunction( value ) ) {\n\t\t\tthis.each(function(i){\n\t\t\t\tvar self = jQuery( this );\n\n\t\t\t\tself.html( value.call(this, i, self.html()) );\n\t\t\t});\n\n\t\t} else {\n\t\t\tthis.empty().append( value );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\treplaceWith: function( value ) {\n\t\tif ( this[0] && this[0].parentNode ) {\n\t\t\t// Make sure that the elements are removed from the DOM before they are inserted\n\t\t\t// this can help fix replacing a parent with child elements\n\t\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\t\treturn this.each(function(i) {\n\t\t\t\t\tvar self = jQuery(this), old = self.html();\n\t\t\t\t\tself.replaceWith( value.call( this, i, old ) );\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif ( typeof value !== \"string\" ) {\n\t\t\t\tvalue = jQuery( value ).detach();\n\t\t\t}\n\n\t\t\treturn this.each(function() {\n\t\t\t\tvar next = this.nextSibling,\n\t\t\t\t\tparent = this.parentNode;\n\n\t\t\t\tjQuery( this ).remove();\n\n\t\t\t\tif ( next ) {\n\t\t\t\t\tjQuery(next).before( value );\n\t\t\t\t} else {\n\t\t\t\t\tjQuery(parent).append( value );\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\treturn this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), \"replaceWith\", value );\n\t\t}\n\t},\n\n\tdetach: function( selector ) {\n\t\treturn this.remove( selector, true );\n\t},\n\n\tdomManip: function( args, table, callback ) {\n\t\tvar results, first, fragment, parent,\n\t\t\tvalue = args[0],\n\t\t\tscripts = [];\n\n\t\t// We can't cloneNode fragments that contain checked, in WebKit\n\t\tif ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === \"string\" && rchecked.test( value ) ) {\n\t\t\treturn this.each(function() {\n\t\t\t\tjQuery(this).domManip( args, table, callback, true );\n\t\t\t});\n\t\t}\n\n\t\tif ( jQuery.isFunction(value) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tvar self = jQuery(this);\n\t\t\t\targs[0] = value.call(this, i, table ? self.html() : undefined);\n\t\t\t\tself.domManip( args, table, callback );\n\t\t\t});\n\t\t}\n\n\t\tif ( this[0] ) {\n\t\t\tparent = value && value.parentNode;\n\n\t\t\t// If we're in a fragment, just use that instead of building a new one\n\t\t\tif ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {\n\t\t\t\tresults = { fragment: parent };\n\n\t\t\t} else {\n\t\t\t\tresults = jQuery.buildFragment( args, this, scripts );\n\t\t\t}\n\n\t\t\tfragment = results.fragment;\n\n\t\t\tif ( fragment.childNodes.length === 1 ) {\n\t\t\t\tfirst = fragment = fragment.firstChild;\n\t\t\t} else {\n\t\t\t\tfirst = fragment.firstChild;\n\t\t\t}\n\n\t\t\tif ( first ) {\n\t\t\t\ttable = table && jQuery.nodeName( first, \"tr\" );\n\n\t\t\t\tfor ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {\n\t\t\t\t\tcallback.call(\n\t\t\t\t\t\ttable ?\n\t\t\t\t\t\t\troot(this[i], first) :\n\t\t\t\t\t\t\tthis[i],\n\t\t\t\t\t\t// Make sure that we do not leak memory by inadvertently discarding\n\t\t\t\t\t\t// the original fragment (which might have attached data) instead of\n\t\t\t\t\t\t// using it; in addition, use the original fragment object for the last\n\t\t\t\t\t\t// item instead of first because it can end up being emptied incorrectly\n\t\t\t\t\t\t// in certain situations (Bug #8070).\n\t\t\t\t\t\t// Fragments from the fragment cache must always be cloned and never used\n\t\t\t\t\t\t// in place.\n\t\t\t\t\t\tresults.cacheable || (l > 1 && i < lastIndex) ?\n\t\t\t\t\t\t\tjQuery.clone( fragment, true, true ) :\n\t\t\t\t\t\t\tfragment\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( scripts.length ) {\n\t\t\t\tjQuery.each( scripts, evalScript );\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n});\n\nfunction root( elem, cur ) {\n\treturn jQuery.nodeName(elem, \"table\") ?\n\t\t(elem.getElementsByTagName(\"tbody\")[0] ||\n\t\telem.appendChild(elem.ownerDocument.createElement(\"tbody\"))) :\n\t\telem;\n}\n\nfunction cloneCopyEvent( src, dest ) {\n\n\tif ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {\n\t\treturn;\n\t}\n\n\tvar internalKey = jQuery.expando,\n\t\toldData = jQuery.data( src ),\n\t\tcurData = jQuery.data( dest, oldData );\n\n\t// Switch to use the internal data object, if it exists, for the next\n\t// stage of data copying\n\tif ( (oldData = oldData[ internalKey ]) ) {\n\t\tvar events = oldData.events;\n\t\t\t\tcurData = curData[ internalKey ] = jQuery.extend({}, oldData);\n\n\t\tif ( events ) {\n\t\t\tdelete curData.handle;\n\t\t\tcurData.events = {};\n\n\t\t\tfor ( var type in events ) {\n\t\t\t\tfor ( var i = 0, l = events[ type ].length; i < l; i++ ) {\n\t\t\t\t\tjQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? \".\" : \"\" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction cloneFixAttributes(src, dest) {\n\t// We do not need to do anything for non-Elements\n\tif ( dest.nodeType !== 1 ) {\n\t\treturn;\n\t}\n\n\tvar nodeName = dest.nodeName.toLowerCase();\n\n\t// clearAttributes removes the attributes, which we don't want,\n\t// but also removes the attachEvent events, which we *do* want\n\tdest.clearAttributes();\n\n\t// mergeAttributes, in contrast, only merges back on the\n\t// original attributes, not the events\n\tdest.mergeAttributes(src);\n\n\t// IE6-8 fail to clone children inside object elements that use\n\t// the proprietary classid attribute value (rather than the type\n\t// attribute) to identify the type of content to display\n\tif ( nodeName === \"object\" ) {\n\t\tdest.outerHTML = src.outerHTML;\n\n\t} else if ( nodeName === \"input\" && (src.type === \"checkbox\" || src.type === \"radio\") ) {\n\t\t// IE6-8 fails to persist the checked state of a cloned checkbox\n\t\t// or radio button. Worse, IE6-7 fail to give the cloned element\n\t\t// a checked appearance if the defaultChecked value isn't also set\n\t\tif ( src.checked ) {\n\t\t\tdest.defaultChecked = dest.checked = src.checked;\n\t\t}\n\n\t\t// IE6-7 get confused and end up setting the value of a cloned\n\t\t// checkbox/radio button to an empty string instead of \"on\"\n\t\tif ( dest.value !== src.value ) {\n\t\t\tdest.value = src.value;\n\t\t}\n\n\t// IE6-8 fails to return the selected option to the default selected\n\t// state when cloning options\n\t} else if ( nodeName === \"option\" ) {\n\t\tdest.selected = src.defaultSelected;\n\n\t// IE6-8 fails to set the defaultValue to the correct value when\n\t// cloning other types of input fields\n\t} else if ( nodeName === \"input\" || nodeName === \"textarea\" ) {\n\t\tdest.defaultValue = src.defaultValue;\n\t}\n\n\t// Event data gets referenced instead of copied if the expando\n\t// gets copied too\n\tdest.removeAttribute( jQuery.expando );\n}\n\njQuery.buildFragment = function( args, nodes, scripts ) {\n\tvar fragment, cacheable, cacheresults,\n\t\tdoc = (nodes && nodes[0] ? nodes[0].ownerDocument || nodes[0] : document);\n\n\t// Only cache \"small\" (1/2 KB) HTML strings that are associated with the main document\n\t// Cloning options loses the selected state, so don't cache them\n\t// IE 6 doesn't like it when you put <object> or <embed> elements in a fragment\n\t// Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache\n\tif ( args.length === 1 && typeof args[0] === \"string\" && args[0].length < 512 && doc === document &&\n\t\targs[0].charAt(0) === \"<\" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {\n\n\t\tcacheable = true;\n\t\tcacheresults = jQuery.fragments[ args[0] ];\n\t\tif ( cacheresults ) {\n\t\t\tif ( cacheresults !== 1 ) {\n\t\t\t\tfragment = cacheresults;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( !fragment ) {\n\t\tfragment = doc.createDocumentFragment();\n\t\tjQuery.clean( args, doc, fragment, scripts );\n\t}\n\n\tif ( cacheable ) {\n\t\tjQuery.fragments[ args[0] ] = cacheresults ? fragment : 1;\n\t}\n\n\treturn { fragment: fragment, cacheable: cacheable };\n};\n\njQuery.fragments = {};\n\njQuery.each({\n\tappendTo: \"append\",\n\tprependTo: \"prepend\",\n\tinsertBefore: \"before\",\n\tinsertAfter: \"after\",\n\treplaceAll: \"replaceWith\"\n}, function( name, original ) {\n\tjQuery.fn[ name ] = function( selector ) {\n\t\tvar ret = [],\n\t\t\tinsert = jQuery( selector ),\n\t\t\tparent = this.length === 1 && this[0].parentNode;\n\n\t\tif ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {\n\t\t\tinsert[ original ]( this[0] );\n\t\t\treturn this;\n\n\t\t} else {\n\t\t\tfor ( var i = 0, l = insert.length; i < l; i++ ) {\n\t\t\t\tvar elems = (i > 0 ? this.clone(true) : this).get();\n\t\t\t\tjQuery( insert[i] )[ original ]( elems );\n\t\t\t\tret = ret.concat( elems );\n\t\t\t}\n\n\t\t\treturn this.pushStack( ret, name, insert.selector );\n\t\t}\n\t};\n});\n\nfunction getAll( elem ) {\n\tif ( \"getElementsByTagName\" in elem ) {\n\t\treturn elem.getElementsByTagName( \"*\" );\n\t\n\t} else if ( \"querySelectorAll\" in elem ) {\n\t\treturn elem.querySelectorAll( \"*\" );\n\n\t} else {\n\t\treturn [];\n\t}\n}\n\njQuery.extend({\n\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\n\t\tvar clone = elem.cloneNode(true),\n\t\t\t\tsrcElements,\n\t\t\t\tdestElements,\n\t\t\t\ti;\n\n\t\tif ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&\n\t\t\t\t(elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {\n\t\t\t// IE copies events bound via attachEvent when using cloneNode.\n\t\t\t// Calling detachEvent on the clone will also remove the events\n\t\t\t// from the original. In order to get around this, we use some\n\t\t\t// proprietary methods to clear the events. Thanks to MooTools\n\t\t\t// guys for this hotness.\n\n\t\t\tcloneFixAttributes( elem, clone );\n\n\t\t\t// Using Sizzle here is crazy slow, so we use getElementsByTagName\n\t\t\t// instead\n\t\t\tsrcElements = getAll( elem );\n\t\t\tdestElements = getAll( clone );\n\n\t\t\t// Weird iteration because IE will replace the length property\n\t\t\t// with an element if you are cloning the body and one of the\n\t\t\t// elements on the page has a name or id of \"length\"\n\t\t\tfor ( i = 0; srcElements[i]; ++i ) {\n\t\t\t\tcloneFixAttributes( srcElements[i], destElements[i] );\n\t\t\t}\n\t\t}\n\n\t\t// Copy the events from the original to the clone\n\t\tif ( dataAndEvents ) {\n\t\t\tcloneCopyEvent( elem, clone );\n\n\t\t\tif ( deepDataAndEvents ) {\n\t\t\t\tsrcElements = getAll( elem );\n\t\t\t\tdestElements = getAll( clone );\n\n\t\t\t\tfor ( i = 0; srcElements[i]; ++i ) {\n\t\t\t\t\tcloneCopyEvent( srcElements[i], destElements[i] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Return the cloned set\n\t\treturn clone;\n},\n\tclean: function( elems, context, fragment, scripts ) {\n\t\tcontext = context || document;\n\n\t\t// !context.createElement fails in IE with an error but returns typeof 'object'\n\t\tif ( typeof context.createElement === \"undefined\" ) {\n\t\t\tcontext = context.ownerDocument || context[0] && context[0].ownerDocument || document;\n\t\t}\n\n\t\tvar ret = [];\n\n\t\tfor ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {\n\t\t\tif ( typeof elem === \"number\" ) {\n\t\t\t\telem += \"\";\n\t\t\t}\n\n\t\t\tif ( !elem ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Convert html string into DOM nodes\n\t\t\tif ( typeof elem === \"string\" && !rhtml.test( elem ) ) {\n\t\t\t\telem = context.createTextNode( elem );\n\n\t\t\t} else if ( typeof elem === \"string\" ) {\n\t\t\t\t// Fix \"XHTML\"-style tags in all browsers\n\t\t\t\telem = elem.replace(rxhtmlTag, \"<$1></$2>\");\n\n\t\t\t\t// Trim whitespace, otherwise indexOf won't work as expected\n\t\t\t\tvar tag = (rtagName.exec( elem ) || [\"\", \"\"])[1].toLowerCase(),\n\t\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default,\n\t\t\t\t\tdepth = wrap[0],\n\t\t\t\t\tdiv = context.createElement(\"div\");\n\n\t\t\t\t// Go to html and back, then peel off extra wrappers\n\t\t\t\tdiv.innerHTML = wrap[1] + elem + wrap[2];\n\n\t\t\t\t// Move to the right depth\n\t\t\t\twhile ( depth-- ) {\n\t\t\t\t\tdiv = div.lastChild;\n\t\t\t\t}\n\n\t\t\t\t// Remove IE's autoinserted <tbody> from table fragments\n\t\t\t\tif ( !jQuery.support.tbody ) {\n\n\t\t\t\t\t// String was a <table>, *may* have spurious <tbody>\n\t\t\t\t\tvar hasBody = rtbody.test(elem),\n\t\t\t\t\t\ttbody = tag === \"table\" && !hasBody ?\n\t\t\t\t\t\t\tdiv.firstChild && div.firstChild.childNodes :\n\n\t\t\t\t\t\t\t// String was a bare <thead> or <tfoot>\n\t\t\t\t\t\t\twrap[1] === \"<table>\" && !hasBody ?\n\t\t\t\t\t\t\t\tdiv.childNodes :\n\t\t\t\t\t\t\t\t[];\n\n\t\t\t\t\tfor ( var j = tbody.length - 1; j >= 0 ; --j ) {\n\t\t\t\t\t\tif ( jQuery.nodeName( tbody[ j ], \"tbody\" ) && !tbody[ j ].childNodes.length ) {\n\t\t\t\t\t\t\ttbody[ j ].parentNode.removeChild( tbody[ j ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// IE completely kills leading whitespace when innerHTML is used\n\t\t\t\tif ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {\n\t\t\t\t\tdiv.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );\n\t\t\t\t}\n\n\t\t\t\telem = div.childNodes;\n\t\t\t}\n\n\t\t\tif ( elem.nodeType ) {\n\t\t\t\tret.push( elem );\n\t\t\t} else {\n\t\t\t\tret = jQuery.merge( ret, elem );\n\t\t\t}\n\t\t}\n\n\t\tif ( fragment ) {\n\t\t\tfor ( i = 0; ret[i]; i++ ) {\n\t\t\t\tif ( scripts && jQuery.nodeName( ret[i], \"script\" ) && (!ret[i].type || ret[i].type.toLowerCase() === \"text/javascript\") ) {\n\t\t\t\t\tscripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );\n\n\t\t\t\t} else {\n\t\t\t\t\tif ( ret[i].nodeType === 1 ) {\n\t\t\t\t\t\tret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName(\"script\"))) );\n\t\t\t\t\t}\n\t\t\t\t\tfragment.appendChild( ret[i] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tcleanData: function( elems ) {\n\t\tvar data, id, cache = jQuery.cache, internalKey = jQuery.expando, special = jQuery.event.special,\n\t\t\tdeleteExpando = jQuery.support.deleteExpando;\n\n\t\tfor ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {\n\t\t\tif ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tid = elem[ jQuery.expando ];\n\n\t\t\tif ( id ) {\n\t\t\t\tdata = cache[ id ] && cache[ id ][ internalKey ];\n\n\t\t\t\tif ( data && data.events ) {\n\t\t\t\t\tfor ( var type in data.events ) {\n\t\t\t\t\t\tif ( special[ type ] ) {\n\t\t\t\t\t\t\tjQuery.event.remove( elem, type );\n\n\t\t\t\t\t\t// This is a shortcut to avoid jQuery.event.remove's overhead\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tjQuery.removeEvent( elem, type, data.handle );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Null the DOM reference to avoid IE6/7/8 leak (#7054)\n\t\t\t\t\tif ( data.handle ) {\n\t\t\t\t\t\tdata.handle.elem = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( deleteExpando ) {\n\t\t\t\t\tdelete elem[ jQuery.expando ];\n\n\t\t\t\t} else if ( elem.removeAttribute ) {\n\t\t\t\t\telem.removeAttribute( jQuery.expando );\n\t\t\t\t}\n\n\t\t\t\tdelete cache[ id ];\n\t\t\t}\n\t\t}\n\t}\n});\n\nfunction evalScript( i, elem ) {\n\tif ( elem.src ) {\n\t\tjQuery.ajax({\n\t\t\turl: elem.src,\n\t\t\tasync: false,\n\t\t\tdataType: \"script\"\n\t\t});\n\t} else {\n\t\tjQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || \"\" );\n\t}\n\n\tif ( elem.parentNode ) {\n\t\telem.parentNode.removeChild( elem );\n\t}\n}\n\n\n\n\nvar ralpha = /alpha\\([^)]*\\)/i,\n\tropacity = /opacity=([^)]*)/,\n\trdashAlpha = /-([a-z])/ig,\n\trupper = /([A-Z])/g,\n\trnumpx = /^-?\\d+(?:px)?$/i,\n\trnum = /^-?\\d/,\n\n\tcssShow = { position: \"absolute\", visibility: \"hidden\", display: \"block\" },\n\tcssWidth = [ \"Left\", \"Right\" ],\n\tcssHeight = [ \"Top\", \"Bottom\" ],\n\tcurCSS,\n\n\tgetComputedStyle,\n\tcurrentStyle,\n\n\tfcamelCase = function( all, letter ) {\n\t\treturn letter.toUpperCase();\n\t};\n\njQuery.fn.css = function( name, value ) {\n\t// Setting 'undefined' is a no-op\n\tif ( arguments.length === 2 && value === undefined ) {\n\t\treturn this;\n\t}\n\n\treturn jQuery.access( this, name, value, true, function( elem, name, value ) {\n\t\treturn value !== undefined ?\n\t\t\tjQuery.style( elem, name, value ) :\n\t\t\tjQuery.css( elem, name );\n\t});\n};\n\njQuery.extend({\n\t// Add in style property hooks for overriding the default\n\t// behavior of getting and setting a style property\n\tcssHooks: {\n\t\topacity: {\n\t\t\tget: function( elem, computed ) {\n\t\t\t\tif ( computed ) {\n\t\t\t\t\t// We should always get a number back from opacity\n\t\t\t\t\tvar ret = curCSS( elem, \"opacity\", \"opacity\" );\n\t\t\t\t\treturn ret === \"\" ? \"1\" : ret;\n\n\t\t\t\t} else {\n\t\t\t\t\treturn elem.style.opacity;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t// Exclude the following css properties to add px\n\tcssNumber: {\n\t\t\"zIndex\": true,\n\t\t\"fontWeight\": true,\n\t\t\"opacity\": true,\n\t\t\"zoom\": true,\n\t\t\"lineHeight\": true\n\t},\n\n\t// Add in properties whose names you wish to fix before\n\t// setting or getting the value\n\tcssProps: {\n\t\t// normalize float css property\n\t\t\"float\": jQuery.support.cssFloat ? \"cssFloat\" : \"styleFloat\"\n\t},\n\n\t// Get and set the style property on a DOM Node\n\tstyle: function( elem, name, value, extra ) {\n\t\t// Don't set styles on text and comment nodes\n\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure that we're working with the right name\n\t\tvar ret, origName = jQuery.camelCase( name ),\n\t\t\tstyle = elem.style, hooks = jQuery.cssHooks[ origName ];\n\n\t\tname = jQuery.cssProps[ origName ] || origName;\n\n\t\t// Check if we're setting a value\n\t\tif ( value !== undefined ) {\n\t\t\t// Make sure that NaN and null values aren't set. See: #7116\n\t\t\tif ( typeof value === \"number\" && isNaN( value ) || value == null ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If a number was passed in, add 'px' to the (except for certain CSS properties)\n\t\t\tif ( typeof value === \"number\" && !jQuery.cssNumber[ origName ] ) {\n\t\t\t\tvalue += \"px\";\n\t\t\t}\n\n\t\t\t// If a hook was provided, use that value, otherwise just set the specified value\n\t\t\tif ( !hooks || !(\"set\" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {\n\t\t\t\t// Wrapped to prevent IE from throwing errors when 'invalid' values are provided\n\t\t\t\t// Fixes bug #5509\n\t\t\t\ttry {\n\t\t\t\t\tstyle[ name ] = value;\n\t\t\t\t} catch(e) {}\n\t\t\t}\n\n\t\t} else {\n\t\t\t// If a hook was provided get the non-computed value from there\n\t\t\tif ( hooks && \"get\" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\t// Otherwise just get the value from the style object\n\t\t\treturn style[ name ];\n\t\t}\n\t},\n\n\tcss: function( elem, name, extra ) {\n\t\t// Make sure that we're working with the right name\n\t\tvar ret, origName = jQuery.camelCase( name ),\n\t\t\thooks = jQuery.cssHooks[ origName ];\n\n\t\tname = jQuery.cssProps[ origName ] || origName;\n\n\t\t// If a hook was provided get the computed value from there\n\t\tif ( hooks && \"get\" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {\n\t\t\treturn ret;\n\n\t\t// Otherwise, if a way to get the computed value exists, use that\n\t\t} else if ( curCSS ) {\n\t\t\treturn curCSS( elem, name, origName );\n\t\t}\n\t},\n\n\t// A method for quickly swapping in/out CSS properties to get correct calculations\n\tswap: function( elem, options, callback ) {\n\t\tvar old = {};\n\n\t\t// Remember the old values, and insert the new ones\n\t\tfor ( var name in options ) {\n\t\t\told[ name ] = elem.style[ name ];\n\t\t\telem.style[ name ] = options[ name ];\n\t\t}\n\n\t\tcallback.call( elem );\n\n\t\t// Revert the old values\n\t\tfor ( name in options ) {\n\t\t\telem.style[ name ] = old[ name ];\n\t\t}\n\t},\n\n\tcamelCase: function( string ) {\n\t\treturn string.replace( rdashAlpha, fcamelCase );\n\t}\n});\n\n// DEPRECATED, Use jQuery.css() instead\njQuery.curCSS = jQuery.css;\n\njQuery.each([\"height\", \"width\"], function( i, name ) {\n\tjQuery.cssHooks[ name ] = {\n\t\tget: function( elem, computed, extra ) {\n\t\t\tvar val;\n\n\t\t\tif ( computed ) {\n\t\t\t\tif ( elem.offsetWidth !== 0 ) {\n\t\t\t\t\tval = getWH( elem, name, extra );\n\n\t\t\t\t} else {\n\t\t\t\t\tjQuery.swap( elem, cssShow, function() {\n\t\t\t\t\t\tval = getWH( elem, name, extra );\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif ( val <= 0 ) {\n\t\t\t\t\tval = curCSS( elem, name, name );\n\n\t\t\t\t\tif ( val === \"0px\" && currentStyle ) {\n\t\t\t\t\t\tval = currentStyle( elem, name, name );\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( val != null ) {\n\t\t\t\t\t\t// Should return \"auto\" instead of 0, use 0 for\n\t\t\t\t\t\t// temporary backwards-compat\n\t\t\t\t\t\treturn val === \"\" || val === \"auto\" ? \"0px\" : val;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( val < 0 || val == null ) {\n\t\t\t\t\tval = elem.style[ name ];\n\n\t\t\t\t\t// Should return \"auto\" instead of 0, use 0 for\n\t\t\t\t\t// temporary backwards-compat\n\t\t\t\t\treturn val === \"\" || val === \"auto\" ? \"0px\" : val;\n\t\t\t\t}\n\n\t\t\t\treturn typeof val === \"string\" ? val : val + \"px\";\n\t\t\t}\n\t\t},\n\n\t\tset: function( elem, value ) {\n\t\t\tif ( rnumpx.test( value ) ) {\n\t\t\t\t// ignore negative width and height values #1599\n\t\t\t\tvalue = parseFloat(value);\n\n\t\t\t\tif ( value >= 0 ) {\n\t\t\t\t\treturn value + \"px\";\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t};\n});\n\nif ( !jQuery.support.opacity ) {\n\tjQuery.cssHooks.opacity = {\n\t\tget: function( elem, computed ) {\n\t\t\t// IE uses filters for opacity\n\t\t\treturn ropacity.test((computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || \"\") ?\n\t\t\t\t(parseFloat(RegExp.$1) / 100) + \"\" :\n\t\t\t\tcomputed ? \"1\" : \"\";\n\t\t},\n\n\t\tset: function( elem, value ) {\n\t\t\tvar style = elem.style;\n\n\t\t\t// IE has trouble with opacity if it does not have layout\n\t\t\t// Force it by setting the zoom level\n\t\t\tstyle.zoom = 1;\n\n\t\t\t// Set the alpha filter to set the opacity\n\t\t\tvar opacity = jQuery.isNaN(value) ?\n\t\t\t\t\"\" :\n\t\t\t\t\"alpha(opacity=\" + value * 100 + \")\",\n\t\t\t\tfilter = style.filter || \"\";\n\n\t\t\tstyle.filter = ralpha.test(filter) ?\n\t\t\t\tfilter.replace(ralpha, opacity) :\n\t\t\t\tstyle.filter + ' ' + opacity;\n\t\t}\n\t};\n}\n\nif ( document.defaultView && document.defaultView.getComputedStyle ) {\n\tgetComputedStyle = function( elem, newName, name ) {\n\t\tvar ret, defaultView, computedStyle;\n\n\t\tname = name.replace( rupper, \"-$1\" ).toLowerCase();\n\n\t\tif ( !(defaultView = elem.ownerDocument.defaultView) ) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tif ( (computedStyle = defaultView.getComputedStyle( elem, null )) ) {\n\t\t\tret = computedStyle.getPropertyValue( name );\n\t\t\tif ( ret === \"\" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {\n\t\t\t\tret = jQuery.style( elem, name );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t};\n}\n\nif ( document.documentElement.currentStyle ) {\n\tcurrentStyle = function( elem, name ) {\n\t\tvar left,\n\t\t\tret = elem.currentStyle && elem.currentStyle[ name ],\n\t\t\trsLeft = elem.runtimeStyle && elem.runtimeStyle[ name ],\n\t\t\tstyle = elem.style;\n\n\t\t// From the awesome hack by Dean Edwards\n\t\t// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291\n\n\t\t// If we're not dealing with a regular pixel number\n\t\t// but a number that has a weird ending, we need to convert it to pixels\n\t\tif ( !rnumpx.test( ret ) && rnum.test( ret ) ) {\n\t\t\t// Remember the original values\n\t\t\tleft = style.left;\n\n\t\t\t// Put in the new values to get a computed value out\n\t\t\tif ( rsLeft ) {\n\t\t\t\telem.runtimeStyle.left = elem.currentStyle.left;\n\t\t\t}\n\t\t\tstyle.left = name === \"fontSize\" ? \"1em\" : (ret || 0);\n\t\t\tret = style.pixelLeft + \"px\";\n\n\t\t\t// Revert the changed values\n\t\t\tstyle.left = left;\n\t\t\tif ( rsLeft ) {\n\t\t\t\telem.runtimeStyle.left = rsLeft;\n\t\t\t}\n\t\t}\n\n\t\treturn ret === \"\" ? \"auto\" : ret;\n\t};\n}\n\ncurCSS = getComputedStyle || currentStyle;\n\nfunction getWH( elem, name, extra ) {\n\tvar which = name === \"width\" ? cssWidth : cssHeight,\n\t\tval = name === \"width\" ? elem.offsetWidth : elem.offsetHeight;\n\n\tif ( extra === \"border\" ) {\n\t\treturn val;\n\t}\n\n\tjQuery.each( which, function() {\n\t\tif ( !extra ) {\n\t\t\tval -= parseFloat(jQuery.css( elem, \"padding\" + this )) || 0;\n\t\t}\n\n\t\tif ( extra === \"margin\" ) {\n\t\t\tval += parseFloat(jQuery.css( elem, \"margin\" + this )) || 0;\n\n\t\t} else {\n\t\t\tval -= parseFloat(jQuery.css( elem, \"border\" + this + \"Width\" )) || 0;\n\t\t}\n\t});\n\n\treturn val;\n}\n\nif ( jQuery.expr && jQuery.expr.filters ) {\n\tjQuery.expr.filters.hidden = function( elem ) {\n\t\tvar width = elem.offsetWidth,\n\t\t\theight = elem.offsetHeight;\n\n\t\treturn (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, \"display\" )) === \"none\");\n\t};\n\n\tjQuery.expr.filters.visible = function( elem ) {\n\t\treturn !jQuery.expr.filters.hidden( elem );\n\t};\n}\n\n\n\n\nvar r20 = /%20/g,\n\trbracket = /\\[\\]$/,\n\trCRLF = /\\r?\\n/g,\n\trhash = /#.*$/,\n\trheaders = /^(.*?):[ \\t]*([^\\r\\n]*)\\r?$/mg, // IE leaves an \\r character at EOL\n\trinput = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,\n\t// #7653, #8125, #8152: local protocol detection\n\trlocalProtocol = /(?:^file|^widget|\\-extension):$/,\n\trnoContent = /^(?:GET|HEAD)$/,\n\trprotocol = /^\\/\\//,\n\trquery = /\\?/,\n\trscript = /<script\\b[^<]*(?:(?!<\\/script>)<[^<]*)*<\\/script>/gi,\n\trselectTextarea = /^(?:select|textarea)/i,\n\trspacesAjax = /\\s+/,\n\trts = /([?&])_=[^&]*/,\n\trucHeaders = /(^|\\-)([a-z])/g,\n\trucHeadersFunc = function( _, $1, $2 ) {\n\t\treturn $1 + $2.toUpperCase();\n\t},\n\trurl = /^([\\w\\+\\.\\-]+:)\\/\\/([^\\/?#:]*)(?::(\\d+))?/,\n\n\t// Keep a copy of the old load method\n\t_load = jQuery.fn.load,\n\n\t/* Prefilters\n\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\n\t * 2) These are called:\n\t *    - BEFORE asking for a transport\n\t *    - AFTER param serialization (s.data is a string if s.processData is true)\n\t * 3) key is the dataType\n\t * 4) the catchall symbol \"*\" can be used\n\t * 5) execution will start with transport dataType and THEN continue down to \"*\" if needed\n\t */\n\tprefilters = {},\n\n\t/* Transports bindings\n\t * 1) key is the dataType\n\t * 2) the catchall symbol \"*\" can be used\n\t * 3) selection will start with transport dataType and THEN go to \"*\" if needed\n\t */\n\ttransports = {},\n\n\t// Document location\n\tajaxLocation,\n\n\t// Document location segments\n\tajaxLocParts;\n\n// #8138, IE may throw an exception when accessing\n// a field from document.location if document.domain has been set\ntry {\n\tajaxLocation = document.location.href;\n} catch( e ) {\n\t// Use the href attribute of an A element\n\t// since IE will modify it given document.location\n\tajaxLocation = document.createElement( \"a\" );\n\tajaxLocation.href = \"\";\n\tajaxLocation = ajaxLocation.href;\n}\n\n// Segment location into parts\najaxLocParts = rurl.exec( ajaxLocation.toLowerCase() );\n\n// Base \"constructor\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\nfunction addToPrefiltersOrTransports( structure ) {\n\n\t// dataTypeExpression is optional and defaults to \"*\"\n\treturn function( dataTypeExpression, func ) {\n\n\t\tif ( typeof dataTypeExpression !== \"string\" ) {\n\t\t\tfunc = dataTypeExpression;\n\t\t\tdataTypeExpression = \"*\";\n\t\t}\n\n\t\tif ( jQuery.isFunction( func ) ) {\n\t\t\tvar dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),\n\t\t\t\ti = 0,\n\t\t\t\tlength = dataTypes.length,\n\t\t\t\tdataType,\n\t\t\t\tlist,\n\t\t\t\tplaceBefore;\n\n\t\t\t// For each dataType in the dataTypeExpression\n\t\t\tfor(; i < length; i++ ) {\n\t\t\t\tdataType = dataTypes[ i ];\n\t\t\t\t// We control if we're asked to add before\n\t\t\t\t// any existing element\n\t\t\t\tplaceBefore = /^\\+/.test( dataType );\n\t\t\t\tif ( placeBefore ) {\n\t\t\t\t\tdataType = dataType.substr( 1 ) || \"*\";\n\t\t\t\t}\n\t\t\t\tlist = structure[ dataType ] = structure[ dataType ] || [];\n\t\t\t\t// then we add to the structure accordingly\n\t\t\t\tlist[ placeBefore ? \"unshift\" : \"push\" ]( func );\n\t\t\t}\n\t\t}\n\t};\n}\n\n//Base inspection function for prefilters and transports\nfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,\n\t\tdataType /* internal */, inspected /* internal */ ) {\n\n\tdataType = dataType || options.dataTypes[ 0 ];\n\tinspected = inspected || {};\n\n\tinspected[ dataType ] = true;\n\n\tvar list = structure[ dataType ],\n\t\ti = 0,\n\t\tlength = list ? list.length : 0,\n\t\texecuteOnly = ( structure === prefilters ),\n\t\tselection;\n\n\tfor(; i < length && ( executeOnly || !selection ); i++ ) {\n\t\tselection = list[ i ]( options, originalOptions, jqXHR );\n\t\t// If we got redirected to another dataType\n\t\t// we try there if executing only and not done already\n\t\tif ( typeof selection === \"string\" ) {\n\t\t\tif ( !executeOnly || inspected[ selection ] ) {\n\t\t\t\tselection = undefined;\n\t\t\t} else {\n\t\t\t\toptions.dataTypes.unshift( selection );\n\t\t\t\tselection = inspectPrefiltersOrTransports(\n\t\t\t\t\t\tstructure, options, originalOptions, jqXHR, selection, inspected );\n\t\t\t}\n\t\t}\n\t}\n\t// If we're only executing or nothing was selected\n\t// we try the catchall dataType if not done already\n\tif ( ( executeOnly || !selection ) && !inspected[ \"*\" ] ) {\n\t\tselection = inspectPrefiltersOrTransports(\n\t\t\t\tstructure, options, originalOptions, jqXHR, \"*\", inspected );\n\t}\n\t// unnecessary when only executing (prefilters)\n\t// but it'll be ignored by the caller in that case\n\treturn selection;\n}\n\njQuery.fn.extend({\n\tload: function( url, params, callback ) {\n\t\tif ( typeof url !== \"string\" && _load ) {\n\t\t\treturn _load.apply( this, arguments );\n\n\t\t// Don't do a request if no elements are being requested\n\t\t} else if ( !this.length ) {\n\t\t\treturn this;\n\t\t}\n\n\t\tvar off = url.indexOf( \" \" );\n\t\tif ( off >= 0 ) {\n\t\t\tvar selector = url.slice( off, url.length );\n\t\t\turl = url.slice( 0, off );\n\t\t}\n\n\t\t// Default to a GET request\n\t\tvar type = \"GET\";\n\n\t\t// If the second parameter was provided\n\t\tif ( params ) {\n\t\t\t// If it's a function\n\t\t\tif ( jQuery.isFunction( params ) ) {\n\t\t\t\t// We assume that it's the callback\n\t\t\t\tcallback = params;\n\t\t\t\tparams = undefined;\n\n\t\t\t// Otherwise, build a param string\n\t\t\t} else if ( typeof params === \"object\" ) {\n\t\t\t\tparams = jQuery.param( params, jQuery.ajaxSettings.traditional );\n\t\t\t\ttype = \"POST\";\n\t\t\t}\n\t\t}\n\n\t\tvar self = this;\n\n\t\t// Request the remote document\n\t\tjQuery.ajax({\n\t\t\turl: url,\n\t\t\ttype: type,\n\t\t\tdataType: \"html\",\n\t\t\tdata: params,\n\t\t\t// Complete callback (responseText is used internally)\n\t\t\tcomplete: function( jqXHR, status, responseText ) {\n\t\t\t\t// Store the response as specified by the jqXHR object\n\t\t\t\tresponseText = jqXHR.responseText;\n\t\t\t\t// If successful, inject the HTML into all the matched elements\n\t\t\t\tif ( jqXHR.isResolved() ) {\n\t\t\t\t\t// #4825: Get the actual response in case\n\t\t\t\t\t// a dataFilter is present in ajaxSettings\n\t\t\t\t\tjqXHR.done(function( r ) {\n\t\t\t\t\t\tresponseText = r;\n\t\t\t\t\t});\n\t\t\t\t\t// See if a selector was specified\n\t\t\t\t\tself.html( selector ?\n\t\t\t\t\t\t// Create a dummy div to hold the results\n\t\t\t\t\t\tjQuery(\"<div>\")\n\t\t\t\t\t\t\t// inject the contents of the document in, removing the scripts\n\t\t\t\t\t\t\t// to avoid any 'Permission Denied' errors in IE\n\t\t\t\t\t\t\t.append(responseText.replace(rscript, \"\"))\n\n\t\t\t\t\t\t\t// Locate the specified elements\n\t\t\t\t\t\t\t.find(selector) :\n\n\t\t\t\t\t\t// If not, just inject the full result\n\t\t\t\t\t\tresponseText );\n\t\t\t\t}\n\n\t\t\t\tif ( callback ) {\n\t\t\t\t\tself.each( callback, [ responseText, status, jqXHR ] );\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\treturn this;\n\t},\n\n\tserialize: function() {\n\t\treturn jQuery.param( this.serializeArray() );\n\t},\n\n\tserializeArray: function() {\n\t\treturn this.map(function(){\n\t\t\treturn this.elements ? jQuery.makeArray( this.elements ) : this;\n\t\t})\n\t\t.filter(function(){\n\t\t\treturn this.name && !this.disabled &&\n\t\t\t\t( this.checked || rselectTextarea.test( this.nodeName ) ||\n\t\t\t\t\trinput.test( this.type ) );\n\t\t})\n\t\t.map(function( i, elem ){\n\t\t\tvar val = jQuery( this ).val();\n\n\t\t\treturn val == null ?\n\t\t\t\tnull :\n\t\t\t\tjQuery.isArray( val ) ?\n\t\t\t\t\tjQuery.map( val, function( val, i ){\n\t\t\t\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t\t\t\t}) :\n\t\t\t\t\t{ name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t}).get();\n\t}\n});\n\n// Attach a bunch of functions for handling common AJAX events\njQuery.each( \"ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend\".split( \" \" ), function( i, o ){\n\tjQuery.fn[ o ] = function( f ){\n\t\treturn this.bind( o, f );\n\t};\n} );\n\njQuery.each( [ \"get\", \"post\" ], function( i, method ) {\n\tjQuery[ method ] = function( url, data, callback, type ) {\n\t\t// shift arguments if data argument was omitted\n\t\tif ( jQuery.isFunction( data ) ) {\n\t\t\ttype = type || callback;\n\t\t\tcallback = data;\n\t\t\tdata = undefined;\n\t\t}\n\n\t\treturn jQuery.ajax({\n\t\t\ttype: method,\n\t\t\turl: url,\n\t\t\tdata: data,\n\t\t\tsuccess: callback,\n\t\t\tdataType: type\n\t\t});\n\t};\n} );\n\njQuery.extend({\n\n\tgetScript: function( url, callback ) {\n\t\treturn jQuery.get( url, undefined, callback, \"script\" );\n\t},\n\n\tgetJSON: function( url, data, callback ) {\n\t\treturn jQuery.get( url, data, callback, \"json\" );\n\t},\n\n\t// Creates a full fledged settings object into target\n\t// with both ajaxSettings and settings fields.\n\t// If target is omitted, writes into ajaxSettings.\n\tajaxSetup: function ( target, settings ) {\n\t\tif ( !settings ) {\n\t\t\t// Only one parameter, we extend ajaxSettings\n\t\t\tsettings = target;\n\t\t\ttarget = jQuery.extend( true, jQuery.ajaxSettings, settings );\n\t\t} else {\n\t\t\t// target was provided, we extend into it\n\t\t\tjQuery.extend( true, target, jQuery.ajaxSettings, settings );\n\t\t}\n\t\t// Flatten fields we don't want deep extended\n\t\tfor( var field in { context: 1, url: 1 } ) {\n\t\t\tif ( field in settings ) {\n\t\t\t\ttarget[ field ] = settings[ field ];\n\t\t\t} else if( field in jQuery.ajaxSettings ) {\n\t\t\t\ttarget[ field ] = jQuery.ajaxSettings[ field ];\n\t\t\t}\n\t\t}\n\t\treturn target;\n\t},\n\n\tajaxSettings: {\n\t\turl: ajaxLocation,\n\t\tisLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),\n\t\tglobal: true,\n\t\ttype: \"GET\",\n\t\tcontentType: \"application/x-www-form-urlencoded\",\n\t\tprocessData: true,\n\t\tasync: true,\n\t\t/*\n\t\ttimeout: 0,\n\t\tdata: null,\n\t\tdataType: null,\n\t\tusername: null,\n\t\tpassword: null,\n\t\tcache: null,\n\t\ttraditional: false,\n\t\theaders: {},\n\t\tcrossDomain: null,\n\t\t*/\n\n\t\taccepts: {\n\t\t\txml: \"application/xml, text/xml\",\n\t\t\thtml: \"text/html\",\n\t\t\ttext: \"text/plain\",\n\t\t\tjson: \"application/json, text/javascript\",\n\t\t\t\"*\": \"*/*\"\n\t\t},\n\n\t\tcontents: {\n\t\t\txml: /xml/,\n\t\t\thtml: /html/,\n\t\t\tjson: /json/\n\t\t},\n\n\t\tresponseFields: {\n\t\t\txml: \"responseXML\",\n\t\t\ttext: \"responseText\"\n\t\t},\n\n\t\t// List of data converters\n\t\t// 1) key format is \"source_type destination_type\" (a single space in-between)\n\t\t// 2) the catchall symbol \"*\" can be used for source_type\n\t\tconverters: {\n\n\t\t\t// Convert anything to text\n\t\t\t\"* text\": window.String,\n\n\t\t\t// Text to html (true = no transformation)\n\t\t\t\"text html\": true,\n\n\t\t\t// Evaluate text as a json expression\n\t\t\t\"text json\": jQuery.parseJSON,\n\n\t\t\t// Parse text as xml\n\t\t\t\"text xml\": jQuery.parseXML\n\t\t}\n\t},\n\n\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\n\tajaxTransport: addToPrefiltersOrTransports( transports ),\n\n\t// Main method\n\tajax: function( url, options ) {\n\n\t\t// If url is an object, simulate pre-1.5 signature\n\t\tif ( typeof url === \"object\" ) {\n\t\t\toptions = url;\n\t\t\turl = undefined;\n\t\t}\n\n\t\t// Force options to be an object\n\t\toptions = options || {};\n\n\t\tvar // Create the final options object\n\t\t\ts = jQuery.ajaxSetup( {}, options ),\n\t\t\t// Callbacks context\n\t\t\tcallbackContext = s.context || s,\n\t\t\t// Context for global events\n\t\t\t// It's the callbackContext if one was provided in the options\n\t\t\t// and if it's a DOM node or a jQuery collection\n\t\t\tglobalEventContext = callbackContext !== s &&\n\t\t\t\t( callbackContext.nodeType || callbackContext instanceof jQuery ) ?\n\t\t\t\t\t\tjQuery( callbackContext ) : jQuery.event,\n\t\t\t// Deferreds\n\t\t\tdeferred = jQuery.Deferred(),\n\t\t\tcompleteDeferred = jQuery._Deferred(),\n\t\t\t// Status-dependent callbacks\n\t\t\tstatusCode = s.statusCode || {},\n\t\t\t// ifModified key\n\t\t\tifModifiedKey,\n\t\t\t// Headers (they are sent all at once)\n\t\t\trequestHeaders = {},\n\t\t\t// Response headers\n\t\t\tresponseHeadersString,\n\t\t\tresponseHeaders,\n\t\t\t// transport\n\t\t\ttransport,\n\t\t\t// timeout handle\n\t\t\ttimeoutTimer,\n\t\t\t// Cross-domain detection vars\n\t\t\tparts,\n\t\t\t// The jqXHR state\n\t\t\tstate = 0,\n\t\t\t// To know if global events are to be dispatched\n\t\t\tfireGlobals,\n\t\t\t// Loop variable\n\t\t\ti,\n\t\t\t// Fake xhr\n\t\t\tjqXHR = {\n\n\t\t\t\treadyState: 0,\n\n\t\t\t\t// Caches the header\n\t\t\t\tsetRequestHeader: function( name, value ) {\n\t\t\t\t\tif ( !state ) {\n\t\t\t\t\t\trequestHeaders[ name.toLowerCase().replace( rucHeaders, rucHeadersFunc ) ] = value;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Raw string\n\t\t\t\tgetAllResponseHeaders: function() {\n\t\t\t\t\treturn state === 2 ? responseHeadersString : null;\n\t\t\t\t},\n\n\t\t\t\t// Builds headers hashtable if needed\n\t\t\t\tgetResponseHeader: function( key ) {\n\t\t\t\t\tvar match;\n\t\t\t\t\tif ( state === 2 ) {\n\t\t\t\t\t\tif ( !responseHeaders ) {\n\t\t\t\t\t\t\tresponseHeaders = {};\n\t\t\t\t\t\t\twhile( ( match = rheaders.exec( responseHeadersString ) ) ) {\n\t\t\t\t\t\t\t\tresponseHeaders[ match[1].toLowerCase() ] = match[ 2 ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmatch = responseHeaders[ key.toLowerCase() ];\n\t\t\t\t\t}\n\t\t\t\t\treturn match === undefined ? null : match;\n\t\t\t\t},\n\n\t\t\t\t// Overrides response content-type header\n\t\t\t\toverrideMimeType: function( type ) {\n\t\t\t\t\tif ( !state ) {\n\t\t\t\t\t\ts.mimeType = type;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Cancel the request\n\t\t\t\tabort: function( statusText ) {\n\t\t\t\t\tstatusText = statusText || \"abort\";\n\t\t\t\t\tif ( transport ) {\n\t\t\t\t\t\ttransport.abort( statusText );\n\t\t\t\t\t}\n\t\t\t\t\tdone( 0, statusText );\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t};\n\n\t\t// Callback for when everything is done\n\t\t// It is defined here because jslint complains if it is declared\n\t\t// at the end of the function (which would be more logical and readable)\n\t\tfunction done( status, statusText, responses, headers ) {\n\n\t\t\t// Called once\n\t\t\tif ( state === 2 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// State is \"done\" now\n\t\t\tstate = 2;\n\n\t\t\t// Clear timeout if it exists\n\t\t\tif ( timeoutTimer ) {\n\t\t\t\tclearTimeout( timeoutTimer );\n\t\t\t}\n\n\t\t\t// Dereference transport for early garbage collection\n\t\t\t// (no matter how long the jqXHR object will be used)\n\t\t\ttransport = undefined;\n\n\t\t\t// Cache response headers\n\t\t\tresponseHeadersString = headers || \"\";\n\n\t\t\t// Set readyState\n\t\t\tjqXHR.readyState = status ? 4 : 0;\n\n\t\t\tvar isSuccess,\n\t\t\t\tsuccess,\n\t\t\t\terror,\n\t\t\t\tresponse = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,\n\t\t\t\tlastModified,\n\t\t\t\tetag;\n\n\t\t\t// If successful, handle type chaining\n\t\t\tif ( status >= 200 && status < 300 || status === 304 ) {\n\n\t\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\t\t\tif ( s.ifModified ) {\n\n\t\t\t\t\tif ( ( lastModified = jqXHR.getResponseHeader( \"Last-Modified\" ) ) ) {\n\t\t\t\t\t\tjQuery.lastModified[ ifModifiedKey ] = lastModified;\n\t\t\t\t\t}\n\t\t\t\t\tif ( ( etag = jqXHR.getResponseHeader( \"Etag\" ) ) ) {\n\t\t\t\t\t\tjQuery.etag[ ifModifiedKey ] = etag;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If not modified\n\t\t\t\tif ( status === 304 ) {\n\n\t\t\t\t\tstatusText = \"notmodified\";\n\t\t\t\t\tisSuccess = true;\n\n\t\t\t\t// If we have data\n\t\t\t\t} else {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsuccess = ajaxConvert( s, response );\n\t\t\t\t\t\tstatusText = \"success\";\n\t\t\t\t\t\tisSuccess = true;\n\t\t\t\t\t} catch(e) {\n\t\t\t\t\t\t// We have a parsererror\n\t\t\t\t\t\tstatusText = \"parsererror\";\n\t\t\t\t\t\terror = e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// We extract error from statusText\n\t\t\t\t// then normalize statusText and status for non-aborts\n\t\t\t\terror = statusText;\n\t\t\t\tif( !statusText || status ) {\n\t\t\t\t\tstatusText = \"error\";\n\t\t\t\t\tif ( status < 0 ) {\n\t\t\t\t\t\tstatus = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set data for the fake xhr object\n\t\t\tjqXHR.status = status;\n\t\t\tjqXHR.statusText = statusText;\n\n\t\t\t// Success/Error\n\t\t\tif ( isSuccess ) {\n\t\t\t\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\n\t\t\t} else {\n\t\t\t\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\n\t\t\t}\n\n\t\t\t// Status-dependent callbacks\n\t\t\tjqXHR.statusCode( statusCode );\n\t\t\tstatusCode = undefined;\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajax\" + ( isSuccess ? \"Success\" : \"Error\" ),\n\t\t\t\t\t\t[ jqXHR, s, isSuccess ? success : error ] );\n\t\t\t}\n\n\t\t\t// Complete\n\t\t\tcompleteDeferred.resolveWith( callbackContext, [ jqXHR, statusText ] );\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxComplete\", [ jqXHR, s] );\n\t\t\t\t// Handle the global AJAX counter\n\t\t\t\tif ( !( --jQuery.active ) ) {\n\t\t\t\t\tjQuery.event.trigger( \"ajaxStop\" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Attach deferreds\n\t\tdeferred.promise( jqXHR );\n\t\tjqXHR.success = jqXHR.done;\n\t\tjqXHR.error = jqXHR.fail;\n\t\tjqXHR.complete = completeDeferred.done;\n\n\t\t// Status-dependent callbacks\n\t\tjqXHR.statusCode = function( map ) {\n\t\t\tif ( map ) {\n\t\t\t\tvar tmp;\n\t\t\t\tif ( state < 2 ) {\n\t\t\t\t\tfor( tmp in map ) {\n\t\t\t\t\t\tstatusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttmp = map[ jqXHR.status ];\n\t\t\t\t\tjqXHR.then( tmp, tmp );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this;\n\t\t};\n\n\t\t// Remove hash character (#7531: and string promotion)\n\t\t// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)\n\t\t// We also use the url parameter if available\n\t\ts.url = ( ( url || s.url ) + \"\" ).replace( rhash, \"\" ).replace( rprotocol, ajaxLocParts[ 1 ] + \"//\" );\n\n\t\t// Extract dataTypes list\n\t\ts.dataTypes = jQuery.trim( s.dataType || \"*\" ).toLowerCase().split( rspacesAjax );\n\n\t\t// Determine if a cross-domain request is in order\n\t\tif ( !s.crossDomain ) {\n\t\t\tparts = rurl.exec( s.url.toLowerCase() );\n\t\t\ts.crossDomain = !!( parts &&\n\t\t\t\t( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||\n\t\t\t\t\t( parts[ 3 ] || ( parts[ 1 ] === \"http:\" ? 80 : 443 ) ) !=\n\t\t\t\t\t\t( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === \"http:\" ? 80 : 443 ) ) )\n\t\t\t);\n\t\t}\n\n\t\t// Convert data if not already a string\n\t\tif ( s.data && s.processData && typeof s.data !== \"string\" ) {\n\t\t\ts.data = jQuery.param( s.data, s.traditional );\n\t\t}\n\n\t\t// Apply prefilters\n\t\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\n\n\t\t// If request was aborted inside a prefiler, stop there\n\t\tif ( state === 2 ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// We can fire global events as of now if asked to\n\t\tfireGlobals = s.global;\n\n\t\t// Uppercase the type\n\t\ts.type = s.type.toUpperCase();\n\n\t\t// Determine if request has content\n\t\ts.hasContent = !rnoContent.test( s.type );\n\n\t\t// Watch for a new set of requests\n\t\tif ( fireGlobals && jQuery.active++ === 0 ) {\n\t\t\tjQuery.event.trigger( \"ajaxStart\" );\n\t\t}\n\n\t\t// More options handling for requests with no content\n\t\tif ( !s.hasContent ) {\n\n\t\t\t// If data is available, append data to url\n\t\t\tif ( s.data ) {\n\t\t\t\ts.url += ( rquery.test( s.url ) ? \"&\" : \"?\" ) + s.data;\n\t\t\t}\n\n\t\t\t// Get ifModifiedKey before adding the anti-cache parameter\n\t\t\tifModifiedKey = s.url;\n\n\t\t\t// Add anti-cache in url if needed\n\t\t\tif ( s.cache === false ) {\n\n\t\t\t\tvar ts = jQuery.now(),\n\t\t\t\t\t// try replacing _= if it is there\n\t\t\t\t\tret = s.url.replace( rts, \"$1_=\" + ts );\n\n\t\t\t\t// if nothing was replaced, add timestamp to the end\n\t\t\t\ts.url = ret + ( (ret === s.url ) ? ( rquery.test( s.url ) ? \"&\" : \"?\" ) + \"_=\" + ts : \"\" );\n\t\t\t}\n\t\t}\n\n\t\t// Set the correct header, if data is being sent\n\t\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\n\t\t\trequestHeaders[ \"Content-Type\" ] = s.contentType;\n\t\t}\n\n\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\tif ( s.ifModified ) {\n\t\t\tifModifiedKey = ifModifiedKey || s.url;\n\t\t\tif ( jQuery.lastModified[ ifModifiedKey ] ) {\n\t\t\t\trequestHeaders[ \"If-Modified-Since\" ] = jQuery.lastModified[ ifModifiedKey ];\n\t\t\t}\n\t\t\tif ( jQuery.etag[ ifModifiedKey ] ) {\n\t\t\t\trequestHeaders[ \"If-None-Match\" ] = jQuery.etag[ ifModifiedKey ];\n\t\t\t}\n\t\t}\n\n\t\t// Set the Accepts header for the server, depending on the dataType\n\t\trequestHeaders.Accept = s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?\n\t\t\ts.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== \"*\" ? \", */*; q=0.01\" : \"\" ) :\n\t\t\ts.accepts[ \"*\" ];\n\n\t\t// Check for headers option\n\t\tfor ( i in s.headers ) {\n\t\t\tjqXHR.setRequestHeader( i, s.headers[ i ] );\n\t\t}\n\n\t\t// Allow custom headers/mimetypes and early abort\n\t\tif ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {\n\t\t\t\t// Abort if not done already\n\t\t\t\tjqXHR.abort();\n\t\t\t\treturn false;\n\n\t\t}\n\n\t\t// Install callbacks on deferreds\n\t\tfor ( i in { success: 1, error: 1, complete: 1 } ) {\n\t\t\tjqXHR[ i ]( s[ i ] );\n\t\t}\n\n\t\t// Get transport\n\t\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\n\n\t\t// If no transport, we auto-abort\n\t\tif ( !transport ) {\n\t\t\tdone( -1, \"No Transport\" );\n\t\t} else {\n\t\t\tjqXHR.readyState = 1;\n\t\t\t// Send global event\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxSend\", [ jqXHR, s ] );\n\t\t\t}\n\t\t\t// Timeout\n\t\t\tif ( s.async && s.timeout > 0 ) {\n\t\t\t\ttimeoutTimer = setTimeout( function(){\n\t\t\t\t\tjqXHR.abort( \"timeout\" );\n\t\t\t\t}, s.timeout );\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tstate = 1;\n\t\t\t\ttransport.send( requestHeaders, done );\n\t\t\t} catch (e) {\n\t\t\t\t// Propagate exception as error if not done\n\t\t\t\tif ( status < 2 ) {\n\t\t\t\t\tdone( -1, e );\n\t\t\t\t// Simply rethrow otherwise\n\t\t\t\t} else {\n\t\t\t\t\tjQuery.error( e );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn jqXHR;\n\t},\n\n\t// Serialize an array of form elements or a set of\n\t// key/values into a query string\n\tparam: function( a, traditional ) {\n\t\tvar s = [],\n\t\t\tadd = function( key, value ) {\n\t\t\t\t// If value is a function, invoke it and return its value\n\t\t\t\tvalue = jQuery.isFunction( value ) ? value() : value;\n\t\t\t\ts[ s.length ] = encodeURIComponent( key ) + \"=\" + encodeURIComponent( value );\n\t\t\t};\n\n\t\t// Set traditional to true for jQuery <= 1.3.2 behavior.\n\t\tif ( traditional === undefined ) {\n\t\t\ttraditional = jQuery.ajaxSettings.traditional;\n\t\t}\n\n\t\t// If an array was passed in, assume that it is an array of form elements.\n\t\tif ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\n\t\t\t// Serialize the form elements\n\t\t\tjQuery.each( a, function() {\n\t\t\t\tadd( this.name, this.value );\n\t\t\t} );\n\n\t\t} else {\n\t\t\t// If traditional, encode the \"old\" way (the way 1.3.2 or older\n\t\t\t// did it), otherwise encode params recursively.\n\t\t\tfor ( var prefix in a ) {\n\t\t\t\tbuildParams( prefix, a[ prefix ], traditional, add );\n\t\t\t}\n\t\t}\n\n\t\t// Return the resulting serialization\n\t\treturn s.join( \"&\" ).replace( r20, \"+\" );\n\t}\n});\n\nfunction buildParams( prefix, obj, traditional, add ) {\n\tif ( jQuery.isArray( obj ) && obj.length ) {\n\t\t// Serialize array item.\n\t\tjQuery.each( obj, function( i, v ) {\n\t\t\tif ( traditional || rbracket.test( prefix ) ) {\n\t\t\t\t// Treat each array item as a scalar.\n\t\t\t\tadd( prefix, v );\n\n\t\t\t} else {\n\t\t\t\t// If array item is non-scalar (array or object), encode its\n\t\t\t\t// numeric index to resolve deserialization ambiguity issues.\n\t\t\t\t// Note that rack (as of 1.0.0) can't currently deserialize\n\t\t\t\t// nested arrays properly, and attempting to do so may cause\n\t\t\t\t// a server error. Possible fixes are to modify rack's\n\t\t\t\t// deserialization algorithm or to provide an option or flag\n\t\t\t\t// to force array serialization to be shallow.\n\t\t\t\tbuildParams( prefix + \"[\" + ( typeof v === \"object\" || jQuery.isArray(v) ? i : \"\" ) + \"]\", v, traditional, add );\n\t\t\t}\n\t\t});\n\n\t} else if ( !traditional && obj != null && typeof obj === \"object\" ) {\n\t\t// If we see an array here, it is empty and should be treated as an empty\n\t\t// object\n\t\tif ( jQuery.isArray( obj ) || jQuery.isEmptyObject( obj ) ) {\n\t\t\tadd( prefix, \"\" );\n\n\t\t// Serialize object item.\n\t\t} else {\n\t\t\tfor ( var name in obj ) {\n\t\t\t\tbuildParams( prefix + \"[\" + name + \"]\", obj[ name ], traditional, add );\n\t\t\t}\n\t\t}\n\n\t} else {\n\t\t// Serialize scalar item.\n\t\tadd( prefix, obj );\n\t}\n}\n\n// This is still on the jQuery object... for now\n// Want to move this to jQuery.ajax some day\njQuery.extend({\n\n\t// Counter for holding the number of active queries\n\tactive: 0,\n\n\t// Last-Modified header cache for next request\n\tlastModified: {},\n\tetag: {}\n\n});\n\n/* Handles responses to an ajax request:\n * - sets all responseXXX fields accordingly\n * - finds the right dataType (mediates between content-type and expected dataType)\n * - returns the corresponding response\n */\nfunction ajaxHandleResponses( s, jqXHR, responses ) {\n\n\tvar contents = s.contents,\n\t\tdataTypes = s.dataTypes,\n\t\tresponseFields = s.responseFields,\n\t\tct,\n\t\ttype,\n\t\tfinalDataType,\n\t\tfirstDataType;\n\n\t// Fill responseXXX fields\n\tfor( type in responseFields ) {\n\t\tif ( type in responses ) {\n\t\t\tjqXHR[ responseFields[type] ] = responses[ type ];\n\t\t}\n\t}\n\n\t// Remove auto dataType and get content-type in the process\n\twhile( dataTypes[ 0 ] === \"*\" ) {\n\t\tdataTypes.shift();\n\t\tif ( ct === undefined ) {\n\t\t\tct = s.mimeType || jqXHR.getResponseHeader( \"content-type\" );\n\t\t}\n\t}\n\n\t// Check if we're dealing with a known content-type\n\tif ( ct ) {\n\t\tfor ( type in contents ) {\n\t\t\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\n\t\t\t\tdataTypes.unshift( type );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Check to see if we have a response for the expected dataType\n\tif ( dataTypes[ 0 ] in responses ) {\n\t\tfinalDataType = dataTypes[ 0 ];\n\t} else {\n\t\t// Try convertible dataTypes\n\t\tfor ( type in responses ) {\n\t\t\tif ( !dataTypes[ 0 ] || s.converters[ type + \" \" + dataTypes[0] ] ) {\n\t\t\t\tfinalDataType = type;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( !firstDataType ) {\n\t\t\t\tfirstDataType = type;\n\t\t\t}\n\t\t}\n\t\t// Or just use first one\n\t\tfinalDataType = finalDataType || firstDataType;\n\t}\n\n\t// If we found a dataType\n\t// We add the dataType to the list if needed\n\t// and return the corresponding response\n\tif ( finalDataType ) {\n\t\tif ( finalDataType !== dataTypes[ 0 ] ) {\n\t\t\tdataTypes.unshift( finalDataType );\n\t\t}\n\t\treturn responses[ finalDataType ];\n\t}\n}\n\n// Chain conversions given the request and the original response\nfunction ajaxConvert( s, response ) {\n\n\t// Apply the dataFilter if provided\n\tif ( s.dataFilter ) {\n\t\tresponse = s.dataFilter( response, s.dataType );\n\t}\n\n\tvar dataTypes = s.dataTypes,\n\t\tconverters = {},\n\t\ti,\n\t\tkey,\n\t\tlength = dataTypes.length,\n\t\ttmp,\n\t\t// Current and previous dataTypes\n\t\tcurrent = dataTypes[ 0 ],\n\t\tprev,\n\t\t// Conversion expression\n\t\tconversion,\n\t\t// Conversion function\n\t\tconv,\n\t\t// Conversion functions (transitive conversion)\n\t\tconv1,\n\t\tconv2;\n\n\t// For each dataType in the chain\n\tfor( i = 1; i < length; i++ ) {\n\n\t\t// Create converters map\n\t\t// with lowercased keys\n\t\tif ( i === 1 ) {\n\t\t\tfor( key in s.converters ) {\n\t\t\t\tif( typeof key === \"string\" ) {\n\t\t\t\t\tconverters[ key.toLowerCase() ] = s.converters[ key ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Get the dataTypes\n\t\tprev = current;\n\t\tcurrent = dataTypes[ i ];\n\n\t\t// If current is auto dataType, update it to prev\n\t\tif( current === \"*\" ) {\n\t\t\tcurrent = prev;\n\t\t// If no auto and dataTypes are actually different\n\t\t} else if ( prev !== \"*\" && prev !== current ) {\n\n\t\t\t// Get the converter\n\t\t\tconversion = prev + \" \" + current;\n\t\t\tconv = converters[ conversion ] || converters[ \"* \" + current ];\n\n\t\t\t// If there is no direct converter, search transitively\n\t\t\tif ( !conv ) {\n\t\t\t\tconv2 = undefined;\n\t\t\t\tfor( conv1 in converters ) {\n\t\t\t\t\ttmp = conv1.split( \" \" );\n\t\t\t\t\tif ( tmp[ 0 ] === prev || tmp[ 0 ] === \"*\" ) {\n\t\t\t\t\t\tconv2 = converters[ tmp[1] + \" \" + current ];\n\t\t\t\t\t\tif ( conv2 ) {\n\t\t\t\t\t\t\tconv1 = converters[ conv1 ];\n\t\t\t\t\t\t\tif ( conv1 === true ) {\n\t\t\t\t\t\t\t\tconv = conv2;\n\t\t\t\t\t\t\t} else if ( conv2 === true ) {\n\t\t\t\t\t\t\t\tconv = conv1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If we found no converter, dispatch an error\n\t\t\tif ( !( conv || conv2 ) ) {\n\t\t\t\tjQuery.error( \"No conversion from \" + conversion.replace(\" \",\" to \") );\n\t\t\t}\n\t\t\t// If found converter is not an equivalence\n\t\t\tif ( conv !== true ) {\n\t\t\t\t// Convert with 1 or 2 converters accordingly\n\t\t\t\tresponse = conv ? conv( response ) : conv2( conv1(response) );\n\t\t\t}\n\t\t}\n\t}\n\treturn response;\n}\n\n\n\n\nvar jsc = jQuery.now(),\n\tjsre = /(\\=)\\?(&|$)|()\\?\\?()/i;\n\n// Default jsonp settings\njQuery.ajaxSetup({\n\tjsonp: \"callback\",\n\tjsonpCallback: function() {\n\t\treturn jQuery.expando + \"_\" + ( jsc++ );\n\t}\n});\n\n// Detect, normalize options and install callbacks for jsonp requests\njQuery.ajaxPrefilter( \"json jsonp\", function( s, originalSettings, jqXHR ) {\n\n\tvar dataIsString = ( typeof s.data === \"string\" );\n\n\tif ( s.dataTypes[ 0 ] === \"jsonp\" ||\n\t\toriginalSettings.jsonpCallback ||\n\t\toriginalSettings.jsonp != null ||\n\t\ts.jsonp !== false && ( jsre.test( s.url ) ||\n\t\t\t\tdataIsString && jsre.test( s.data ) ) ) {\n\n\t\tvar responseContainer,\n\t\t\tjsonpCallback = s.jsonpCallback =\n\t\t\t\tjQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,\n\t\t\tprevious = window[ jsonpCallback ],\n\t\t\turl = s.url,\n\t\t\tdata = s.data,\n\t\t\treplace = \"$1\" + jsonpCallback + \"$2\",\n\t\t\tcleanUp = function() {\n\t\t\t\t// Set callback back to previous value\n\t\t\t\twindow[ jsonpCallback ] = previous;\n\t\t\t\t// Call if it was a function and we have a response\n\t\t\t\tif ( responseContainer && jQuery.isFunction( previous ) ) {\n\t\t\t\t\twindow[ jsonpCallback ]( responseContainer[ 0 ] );\n\t\t\t\t}\n\t\t\t};\n\n\t\tif ( s.jsonp !== false ) {\n\t\t\turl = url.replace( jsre, replace );\n\t\t\tif ( s.url === url ) {\n\t\t\t\tif ( dataIsString ) {\n\t\t\t\t\tdata = data.replace( jsre, replace );\n\t\t\t\t}\n\t\t\t\tif ( s.data === data ) {\n\t\t\t\t\t// Add callback manually\n\t\t\t\t\turl += (/\\?/.test( url ) ? \"&\" : \"?\") + s.jsonp + \"=\" + jsonpCallback;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ts.url = url;\n\t\ts.data = data;\n\n\t\t// Install callback\n\t\twindow[ jsonpCallback ] = function( response ) {\n\t\t\tresponseContainer = [ response ];\n\t\t};\n\n\t\t// Install cleanUp function\n\t\tjqXHR.then( cleanUp, cleanUp );\n\n\t\t// Use data converter to retrieve json after script execution\n\t\ts.converters[\"script json\"] = function() {\n\t\t\tif ( !responseContainer ) {\n\t\t\t\tjQuery.error( jsonpCallback + \" was not called\" );\n\t\t\t}\n\t\t\treturn responseContainer[ 0 ];\n\t\t};\n\n\t\t// force json dataType\n\t\ts.dataTypes[ 0 ] = \"json\";\n\n\t\t// Delegate to script\n\t\treturn \"script\";\n\t}\n} );\n\n\n\n\n// Install script dataType\njQuery.ajaxSetup({\n\taccepts: {\n\t\tscript: \"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"\n\t},\n\tcontents: {\n\t\tscript: /javascript|ecmascript/\n\t},\n\tconverters: {\n\t\t\"text script\": function( text ) {\n\t\t\tjQuery.globalEval( text );\n\t\t\treturn text;\n\t\t}\n\t}\n});\n\n// Handle cache's special case and global\njQuery.ajaxPrefilter( \"script\", function( s ) {\n\tif ( s.cache === undefined ) {\n\t\ts.cache = false;\n\t}\n\tif ( s.crossDomain ) {\n\t\ts.type = \"GET\";\n\t\ts.global = false;\n\t}\n} );\n\n// Bind script tag hack transport\njQuery.ajaxTransport( \"script\", function(s) {\n\n\t// This transport only deals with cross domain requests\n\tif ( s.crossDomain ) {\n\n\t\tvar script,\n\t\t\thead = document.head || document.getElementsByTagName( \"head\" )[0] || document.documentElement;\n\n\t\treturn {\n\n\t\t\tsend: function( _, callback ) {\n\n\t\t\t\tscript = document.createElement( \"script\" );\n\n\t\t\t\tscript.async = \"async\";\n\n\t\t\t\tif ( s.scriptCharset ) {\n\t\t\t\t\tscript.charset = s.scriptCharset;\n\t\t\t\t}\n\n\t\t\t\tscript.src = s.url;\n\n\t\t\t\t// Attach handlers for all browsers\n\t\t\t\tscript.onload = script.onreadystatechange = function( _, isAbort ) {\n\n\t\t\t\t\tif ( !script.readyState || /loaded|complete/.test( script.readyState ) ) {\n\n\t\t\t\t\t\t// Handle memory leak in IE\n\t\t\t\t\t\tscript.onload = script.onreadystatechange = null;\n\n\t\t\t\t\t\t// Remove the script\n\t\t\t\t\t\tif ( head && script.parentNode ) {\n\t\t\t\t\t\t\thead.removeChild( script );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Dereference the script\n\t\t\t\t\t\tscript = undefined;\n\n\t\t\t\t\t\t// Callback if not abort\n\t\t\t\t\t\tif ( !isAbort ) {\n\t\t\t\t\t\t\tcallback( 200, \"success\" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Use insertBefore instead of appendChild  to circumvent an IE6 bug.\n\t\t\t\t// This arises when a base node is used (#2709 and #4378).\n\t\t\t\thead.insertBefore( script, head.firstChild );\n\t\t\t},\n\n\t\t\tabort: function() {\n\t\t\t\tif ( script ) {\n\t\t\t\t\tscript.onload( 0, 1 );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n} );\n\n\n\n\nvar // #5280: next active xhr id and list of active xhrs' callbacks\n\txhrId = jQuery.now(),\n\txhrCallbacks,\n\n\t// XHR used to determine supports properties\n\ttestXHR;\n\n// #5280: Internet Explorer will keep connections alive if we don't abort on unload\nfunction xhrOnUnloadAbort() {\n\tjQuery( window ).unload(function() {\n\t\t// Abort all pending requests\n\t\tfor ( var key in xhrCallbacks ) {\n\t\t\txhrCallbacks[ key ]( 0, 1 );\n\t\t}\n\t});\n}\n\n// Functions to create xhrs\nfunction createStandardXHR() {\n\ttry {\n\t\treturn new window.XMLHttpRequest();\n\t} catch( e ) {}\n}\n\nfunction createActiveXHR() {\n\ttry {\n\t\treturn new window.ActiveXObject( \"Microsoft.XMLHTTP\" );\n\t} catch( e ) {}\n}\n\n// Create the request object\n// (This is still attached to ajaxSettings for backward compatibility)\njQuery.ajaxSettings.xhr = window.ActiveXObject ?\n\t/* Microsoft failed to properly\n\t * implement the XMLHttpRequest in IE7 (can't request local files),\n\t * so we use the ActiveXObject when it is available\n\t * Additionally XMLHttpRequest can be disabled in IE7/IE8 so\n\t * we need a fallback.\n\t */\n\tfunction() {\n\t\treturn !this.isLocal && createStandardXHR() || createActiveXHR();\n\t} :\n\t// For all other browsers, use the standard XMLHttpRequest object\n\tcreateStandardXHR;\n\n// Test if we can create an xhr object\ntestXHR = jQuery.ajaxSettings.xhr();\njQuery.support.ajax = !!testXHR;\n\n// Does this browser support crossDomain XHR requests\njQuery.support.cors = testXHR && ( \"withCredentials\" in testXHR );\n\n// No need for the temporary xhr anymore\ntestXHR = undefined;\n\n// Create transport if the browser can provide an xhr\nif ( jQuery.support.ajax ) {\n\n\tjQuery.ajaxTransport(function( s ) {\n\t\t// Cross domain only allowed if supported through XMLHttpRequest\n\t\tif ( !s.crossDomain || jQuery.support.cors ) {\n\n\t\t\tvar callback;\n\n\t\t\treturn {\n\t\t\t\tsend: function( headers, complete ) {\n\n\t\t\t\t\t// Get a new xhr\n\t\t\t\t\tvar xhr = s.xhr(),\n\t\t\t\t\t\thandle,\n\t\t\t\t\t\ti;\n\n\t\t\t\t\t// Open the socket\n\t\t\t\t\t// Passing null username, generates a login popup on Opera (#2865)\n\t\t\t\t\tif ( s.username ) {\n\t\t\t\t\t\txhr.open( s.type, s.url, s.async, s.username, s.password );\n\t\t\t\t\t} else {\n\t\t\t\t\t\txhr.open( s.type, s.url, s.async );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Apply custom fields if provided\n\t\t\t\t\tif ( s.xhrFields ) {\n\t\t\t\t\t\tfor ( i in s.xhrFields ) {\n\t\t\t\t\t\t\txhr[ i ] = s.xhrFields[ i ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Override mime type if needed\n\t\t\t\t\tif ( s.mimeType && xhr.overrideMimeType ) {\n\t\t\t\t\t\txhr.overrideMimeType( s.mimeType );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Requested-With header\n\t\t\t\t\t// Not set for crossDomain requests with no content\n\t\t\t\t\t// (see why at http://trac.dojotoolkit.org/ticket/9486)\n\t\t\t\t\t// Won't change header if already provided\n\t\t\t\t\tif ( !( s.crossDomain && !s.hasContent ) && !headers[\"X-Requested-With\"] ) {\n\t\t\t\t\t\theaders[ \"X-Requested-With\" ] = \"XMLHttpRequest\";\n\t\t\t\t\t}\n\n\t\t\t\t\t// Need an extra try/catch for cross domain requests in Firefox 3\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfor ( i in headers ) {\n\t\t\t\t\t\t\txhr.setRequestHeader( i, headers[ i ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch( _ ) {}\n\n\t\t\t\t\t// Do send the request\n\t\t\t\t\t// This may raise an exception which is actually\n\t\t\t\t\t// handled in jQuery.ajax (so no try/catch here)\n\t\t\t\t\txhr.send( ( s.hasContent && s.data ) || null );\n\n\t\t\t\t\t// Listener\n\t\t\t\t\tcallback = function( _, isAbort ) {\n\n\t\t\t\t\t\tvar status,\n\t\t\t\t\t\t\tstatusText,\n\t\t\t\t\t\t\tresponseHeaders,\n\t\t\t\t\t\t\tresponses,\n\t\t\t\t\t\t\txml;\n\n\t\t\t\t\t\t// Firefox throws exceptions when accessing properties\n\t\t\t\t\t\t// of an xhr when a network error occured\n\t\t\t\t\t\t// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t// Was never called and is aborted or complete\n\t\t\t\t\t\t\tif ( callback && ( isAbort || xhr.readyState === 4 ) ) {\n\n\t\t\t\t\t\t\t\t// Only called once\n\t\t\t\t\t\t\t\tcallback = undefined;\n\n\t\t\t\t\t\t\t\t// Do not keep as active anymore\n\t\t\t\t\t\t\t\tif ( handle ) {\n\t\t\t\t\t\t\t\t\txhr.onreadystatechange = jQuery.noop;\n\t\t\t\t\t\t\t\t\tdelete xhrCallbacks[ handle ];\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// If it's an abort\n\t\t\t\t\t\t\t\tif ( isAbort ) {\n\t\t\t\t\t\t\t\t\t// Abort it manually if needed\n\t\t\t\t\t\t\t\t\tif ( xhr.readyState !== 4 ) {\n\t\t\t\t\t\t\t\t\t\txhr.abort();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstatus = xhr.status;\n\t\t\t\t\t\t\t\t\tresponseHeaders = xhr.getAllResponseHeaders();\n\t\t\t\t\t\t\t\t\tresponses = {};\n\t\t\t\t\t\t\t\t\txml = xhr.responseXML;\n\n\t\t\t\t\t\t\t\t\t// Construct response list\n\t\t\t\t\t\t\t\t\tif ( xml && xml.documentElement /* #4958 */ ) {\n\t\t\t\t\t\t\t\t\t\tresponses.xml = xml;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tresponses.text = xhr.responseText;\n\n\t\t\t\t\t\t\t\t\t// Firefox throws an exception when accessing\n\t\t\t\t\t\t\t\t\t// statusText for faulty cross-domain requests\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tstatusText = xhr.statusText;\n\t\t\t\t\t\t\t\t\t} catch( e ) {\n\t\t\t\t\t\t\t\t\t\t// We normalize with Webkit giving an empty statusText\n\t\t\t\t\t\t\t\t\t\tstatusText = \"\";\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Filter status for non standard behaviors\n\n\t\t\t\t\t\t\t\t\t// If the request is local and we have data: assume a success\n\t\t\t\t\t\t\t\t\t// (success with no data won't get notified, that's the best we\n\t\t\t\t\t\t\t\t\t// can do given current implementations)\n\t\t\t\t\t\t\t\t\tif ( !status && s.isLocal && !s.crossDomain ) {\n\t\t\t\t\t\t\t\t\t\tstatus = responses.text ? 200 : 404;\n\t\t\t\t\t\t\t\t\t// IE - #1450: sometimes returns 1223 when it should be 204\n\t\t\t\t\t\t\t\t\t} else if ( status === 1223 ) {\n\t\t\t\t\t\t\t\t\t\tstatus = 204;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch( firefoxAccessException ) {\n\t\t\t\t\t\t\tif ( !isAbort ) {\n\t\t\t\t\t\t\t\tcomplete( -1, firefoxAccessException );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Call complete if needed\n\t\t\t\t\t\tif ( responses ) {\n\t\t\t\t\t\t\tcomplete( status, statusText, responses, responseHeaders );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\t// if we're in sync mode or it's in cache\n\t\t\t\t\t// and has been retrieved directly (IE6 & IE7)\n\t\t\t\t\t// we need to manually fire the callback\n\t\t\t\t\tif ( !s.async || xhr.readyState === 4 ) {\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Create the active xhrs callbacks list if needed\n\t\t\t\t\t\t// and attach the unload handler\n\t\t\t\t\t\tif ( !xhrCallbacks ) {\n\t\t\t\t\t\t\txhrCallbacks = {};\n\t\t\t\t\t\t\txhrOnUnloadAbort();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Add to list of active xhrs callbacks\n\t\t\t\t\t\thandle = xhrId++;\n\t\t\t\t\t\txhr.onreadystatechange = xhrCallbacks[ handle ] = callback;\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\tabort: function() {\n\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\tcallback(0,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t});\n}\n\n\n\n\nvar elemdisplay = {},\n\trfxtypes = /^(?:toggle|show|hide)$/,\n\trfxnum = /^([+\\-]=)?([\\d+.\\-]+)([a-z%]*)$/i,\n\ttimerId,\n\tfxAttrs = [\n\t\t// height animations\n\t\t[ \"height\", \"marginTop\", \"marginBottom\", \"paddingTop\", \"paddingBottom\" ],\n\t\t// width animations\n\t\t[ \"width\", \"marginLeft\", \"marginRight\", \"paddingLeft\", \"paddingRight\" ],\n\t\t// opacity animations\n\t\t[ \"opacity\" ]\n\t];\n\njQuery.fn.extend({\n\tshow: function( speed, easing, callback ) {\n\t\tvar elem, display;\n\n\t\tif ( speed || speed === 0 ) {\n\t\t\treturn this.animate( genFx(\"show\", 3), speed, easing, callback);\n\n\t\t} else {\n\t\t\tfor ( var i = 0, j = this.length; i < j; i++ ) {\n\t\t\t\telem = this[i];\n\t\t\t\tdisplay = elem.style.display;\n\n\t\t\t\t// Reset the inline display of this element to learn if it is\n\t\t\t\t// being hidden by cascaded rules or not\n\t\t\t\tif ( !jQuery._data(elem, \"olddisplay\") && display === \"none\" ) {\n\t\t\t\t\tdisplay = elem.style.display = \"\";\n\t\t\t\t}\n\n\t\t\t\t// Set elements which have been overridden with display: none\n\t\t\t\t// in a stylesheet to whatever the default browser style is\n\t\t\t\t// for such an element\n\t\t\t\tif ( display === \"\" && jQuery.css( elem, \"display\" ) === \"none\" ) {\n\t\t\t\t\tjQuery._data(elem, \"olddisplay\", defaultDisplay(elem.nodeName));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set the display of most of the elements in a second loop\n\t\t\t// to avoid the constant reflow\n\t\t\tfor ( i = 0; i < j; i++ ) {\n\t\t\t\telem = this[i];\n\t\t\t\tdisplay = elem.style.display;\n\n\t\t\t\tif ( display === \"\" || display === \"none\" ) {\n\t\t\t\t\telem.style.display = jQuery._data(elem, \"olddisplay\") || \"\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn this;\n\t\t}\n\t},\n\n\thide: function( speed, easing, callback ) {\n\t\tif ( speed || speed === 0 ) {\n\t\t\treturn this.animate( genFx(\"hide\", 3), speed, easing, callback);\n\n\t\t} else {\n\t\t\tfor ( var i = 0, j = this.length; i < j; i++ ) {\n\t\t\t\tvar display = jQuery.css( this[i], \"display\" );\n\n\t\t\t\tif ( display !== \"none\" && !jQuery._data( this[i], \"olddisplay\" ) ) {\n\t\t\t\t\tjQuery._data( this[i], \"olddisplay\", display );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set the display of the elements in a second loop\n\t\t\t// to avoid the constant reflow\n\t\t\tfor ( i = 0; i < j; i++ ) {\n\t\t\t\tthis[i].style.display = \"none\";\n\t\t\t}\n\n\t\t\treturn this;\n\t\t}\n\t},\n\n\t// Save the old toggle function\n\t_toggle: jQuery.fn.toggle,\n\n\ttoggle: function( fn, fn2, callback ) {\n\t\tvar bool = typeof fn === \"boolean\";\n\n\t\tif ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {\n\t\t\tthis._toggle.apply( this, arguments );\n\n\t\t} else if ( fn == null || bool ) {\n\t\t\tthis.each(function() {\n\t\t\t\tvar state = bool ? fn : jQuery(this).is(\":hidden\");\n\t\t\t\tjQuery(this)[ state ? \"show\" : \"hide\" ]();\n\t\t\t});\n\n\t\t} else {\n\t\t\tthis.animate(genFx(\"toggle\", 3), fn, fn2, callback);\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tfadeTo: function( speed, to, easing, callback ) {\n\t\treturn this.filter(\":hidden\").css(\"opacity\", 0).show().end()\n\t\t\t\t\t.animate({opacity: to}, speed, easing, callback);\n\t},\n\n\tanimate: function( prop, speed, easing, callback ) {\n\t\tvar optall = jQuery.speed(speed, easing, callback);\n\n\t\tif ( jQuery.isEmptyObject( prop ) ) {\n\t\t\treturn this.each( optall.complete );\n\t\t}\n\n\t\treturn this[ optall.queue === false ? \"each\" : \"queue\" ](function() {\n\t\t\t// XXX 'this' does not always have a nodeName when running the\n\t\t\t// test suite\n\n\t\t\tvar opt = jQuery.extend({}, optall), p,\n\t\t\t\tisElement = this.nodeType === 1,\n\t\t\t\thidden = isElement && jQuery(this).is(\":hidden\"),\n\t\t\t\tself = this;\n\n\t\t\tfor ( p in prop ) {\n\t\t\t\tvar name = jQuery.camelCase( p );\n\n\t\t\t\tif ( p !== name ) {\n\t\t\t\t\tprop[ name ] = prop[ p ];\n\t\t\t\t\tdelete prop[ p ];\n\t\t\t\t\tp = name;\n\t\t\t\t}\n\n\t\t\t\tif ( prop[p] === \"hide\" && hidden || prop[p] === \"show\" && !hidden ) {\n\t\t\t\t\treturn opt.complete.call(this);\n\t\t\t\t}\n\n\t\t\t\tif ( isElement && ( p === \"height\" || p === \"width\" ) ) {\n\t\t\t\t\t// Make sure that nothing sneaks out\n\t\t\t\t\t// Record all 3 overflow attributes because IE does not\n\t\t\t\t\t// change the overflow attribute when overflowX and\n\t\t\t\t\t// overflowY are set to the same value\n\t\t\t\t\topt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];\n\n\t\t\t\t\t// Set display property to inline-block for height/width\n\t\t\t\t\t// animations on inline elements that are having width/height\n\t\t\t\t\t// animated\n\t\t\t\t\tif ( jQuery.css( this, \"display\" ) === \"inline\" &&\n\t\t\t\t\t\t\tjQuery.css( this, \"float\" ) === \"none\" ) {\n\t\t\t\t\t\tif ( !jQuery.support.inlineBlockNeedsLayout ) {\n\t\t\t\t\t\t\tthis.style.display = \"inline-block\";\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar display = defaultDisplay(this.nodeName);\n\n\t\t\t\t\t\t\t// inline-level elements accept inline-block;\n\t\t\t\t\t\t\t// block-level elements need to be inline with layout\n\t\t\t\t\t\t\tif ( display === \"inline\" ) {\n\t\t\t\t\t\t\t\tthis.style.display = \"inline-block\";\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.style.display = \"inline\";\n\t\t\t\t\t\t\t\tthis.style.zoom = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( jQuery.isArray( prop[p] ) ) {\n\t\t\t\t\t// Create (if needed) and add to specialEasing\n\t\t\t\t\t(opt.specialEasing = opt.specialEasing || {})[p] = prop[p][1];\n\t\t\t\t\tprop[p] = prop[p][0];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( opt.overflow != null ) {\n\t\t\t\tthis.style.overflow = \"hidden\";\n\t\t\t}\n\n\t\t\topt.curAnim = jQuery.extend({}, prop);\n\n\t\t\tjQuery.each( prop, function( name, val ) {\n\t\t\t\tvar e = new jQuery.fx( self, opt, name );\n\n\t\t\t\tif ( rfxtypes.test(val) ) {\n\t\t\t\t\te[ val === \"toggle\" ? hidden ? \"show\" : \"hide\" : val ]( prop );\n\n\t\t\t\t} else {\n\t\t\t\t\tvar parts = rfxnum.exec(val),\n\t\t\t\t\t\tstart = e.cur();\n\n\t\t\t\t\tif ( parts ) {\n\t\t\t\t\t\tvar end = parseFloat( parts[2] ),\n\t\t\t\t\t\t\tunit = parts[3] || ( jQuery.cssNumber[ name ] ? \"\" : \"px\" );\n\n\t\t\t\t\t\t// We need to compute starting value\n\t\t\t\t\t\tif ( unit !== \"px\" ) {\n\t\t\t\t\t\t\tjQuery.style( self, name, (end || 1) + unit);\n\t\t\t\t\t\t\tstart = ((end || 1) / e.cur()) * start;\n\t\t\t\t\t\t\tjQuery.style( self, name, start + unit);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If a +=/-= token was provided, we're doing a relative animation\n\t\t\t\t\t\tif ( parts[1] ) {\n\t\t\t\t\t\t\tend = ((parts[1] === \"-=\" ? -1 : 1) * end) + start;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\te.custom( start, end, unit );\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\te.custom( start, val, \"\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// For JS strict compliance\n\t\t\treturn true;\n\t\t});\n\t},\n\n\tstop: function( clearQueue, gotoEnd ) {\n\t\tvar timers = jQuery.timers;\n\n\t\tif ( clearQueue ) {\n\t\t\tthis.queue([]);\n\t\t}\n\n\t\tthis.each(function() {\n\t\t\t// go in reverse order so anything added to the queue during the loop is ignored\n\t\t\tfor ( var i = timers.length - 1; i >= 0; i-- ) {\n\t\t\t\tif ( timers[i].elem === this ) {\n\t\t\t\t\tif (gotoEnd) {\n\t\t\t\t\t\t// force the next step to be the last\n\t\t\t\t\t\ttimers[i](true);\n\t\t\t\t\t}\n\n\t\t\t\t\ttimers.splice(i, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// start the next in the queue if the last step wasn't forced\n\t\tif ( !gotoEnd ) {\n\t\t\tthis.dequeue();\n\t\t}\n\n\t\treturn this;\n\t}\n\n});\n\nfunction genFx( type, num ) {\n\tvar obj = {};\n\n\tjQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {\n\t\tobj[ this ] = type;\n\t});\n\n\treturn obj;\n}\n\n// Generate shortcuts for custom animations\njQuery.each({\n\tslideDown: genFx(\"show\", 1),\n\tslideUp: genFx(\"hide\", 1),\n\tslideToggle: genFx(\"toggle\", 1),\n\tfadeIn: { opacity: \"show\" },\n\tfadeOut: { opacity: \"hide\" },\n\tfadeToggle: { opacity: \"toggle\" }\n}, function( name, props ) {\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn this.animate( props, speed, easing, callback );\n\t};\n});\n\njQuery.extend({\n\tspeed: function( speed, easing, fn ) {\n\t\tvar opt = speed && typeof speed === \"object\" ? jQuery.extend({}, speed) : {\n\t\t\tcomplete: fn || !fn && easing ||\n\t\t\t\tjQuery.isFunction( speed ) && speed,\n\t\t\tduration: speed,\n\t\t\teasing: fn && easing || easing && !jQuery.isFunction(easing) && easing\n\t\t};\n\n\t\topt.duration = jQuery.fx.off ? 0 : typeof opt.duration === \"number\" ? opt.duration :\n\t\t\topt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;\n\n\t\t// Queueing\n\t\topt.old = opt.complete;\n\t\topt.complete = function() {\n\t\t\tif ( opt.queue !== false ) {\n\t\t\t\tjQuery(this).dequeue();\n\t\t\t}\n\t\t\tif ( jQuery.isFunction( opt.old ) ) {\n\t\t\t\topt.old.call( this );\n\t\t\t}\n\t\t};\n\n\t\treturn opt;\n\t},\n\n\teasing: {\n\t\tlinear: function( p, n, firstNum, diff ) {\n\t\t\treturn firstNum + diff * p;\n\t\t},\n\t\tswing: function( p, n, firstNum, diff ) {\n\t\t\treturn ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;\n\t\t}\n\t},\n\n\ttimers: [],\n\n\tfx: function( elem, options, prop ) {\n\t\tthis.options = options;\n\t\tthis.elem = elem;\n\t\tthis.prop = prop;\n\n\t\tif ( !options.orig ) {\n\t\t\toptions.orig = {};\n\t\t}\n\t}\n\n});\n\njQuery.fx.prototype = {\n\t// Simple function for setting a style value\n\tupdate: function() {\n\t\tif ( this.options.step ) {\n\t\t\tthis.options.step.call( this.elem, this.now, this );\n\t\t}\n\n\t\t(jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );\n\t},\n\n\t// Get the current size\n\tcur: function() {\n\t\tif ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {\n\t\t\treturn this.elem[ this.prop ];\n\t\t}\n\n\t\tvar parsed,\n\t\t\tr = jQuery.css( this.elem, this.prop );\n\t\t// Empty strings, null, undefined and \"auto\" are converted to 0,\n\t\t// complex values such as \"rotate(1rad)\" are returned as is,\n\t\t// simple values such as \"10px\" are parsed to Float.\n\t\treturn isNaN( parsed = parseFloat( r ) ) ? !r || r === \"auto\" ? 0 : r : parsed;\n\t},\n\n\t// Start an animation from one number to another\n\tcustom: function( from, to, unit ) {\n\t\tvar self = this,\n\t\t\tfx = jQuery.fx;\n\n\t\tthis.startTime = jQuery.now();\n\t\tthis.start = from;\n\t\tthis.end = to;\n\t\tthis.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? \"\" : \"px\" );\n\t\tthis.now = this.start;\n\t\tthis.pos = this.state = 0;\n\n\t\tfunction t( gotoEnd ) {\n\t\t\treturn self.step(gotoEnd);\n\t\t}\n\n\t\tt.elem = this.elem;\n\n\t\tif ( t() && jQuery.timers.push(t) && !timerId ) {\n\t\t\ttimerId = setInterval(fx.tick, fx.interval);\n\t\t}\n\t},\n\n\t// Simple 'show' function\n\tshow: function() {\n\t\t// Remember where we started, so that we can go back to it later\n\t\tthis.options.orig[this.prop] = jQuery.style( this.elem, this.prop );\n\t\tthis.options.show = true;\n\n\t\t// Begin the animation\n\t\t// Make sure that we start at a small width/height to avoid any\n\t\t// flash of content\n\t\tthis.custom(this.prop === \"width\" || this.prop === \"height\" ? 1 : 0, this.cur());\n\n\t\t// Start by showing the element\n\t\tjQuery( this.elem ).show();\n\t},\n\n\t// Simple 'hide' function\n\thide: function() {\n\t\t// Remember where we started, so that we can go back to it later\n\t\tthis.options.orig[this.prop] = jQuery.style( this.elem, this.prop );\n\t\tthis.options.hide = true;\n\n\t\t// Begin the animation\n\t\tthis.custom(this.cur(), 0);\n\t},\n\n\t// Each step of an animation\n\tstep: function( gotoEnd ) {\n\t\tvar t = jQuery.now(), done = true;\n\n\t\tif ( gotoEnd || t >= this.options.duration + this.startTime ) {\n\t\t\tthis.now = this.end;\n\t\t\tthis.pos = this.state = 1;\n\t\t\tthis.update();\n\n\t\t\tthis.options.curAnim[ this.prop ] = true;\n\n\t\t\tfor ( var i in this.options.curAnim ) {\n\t\t\t\tif ( this.options.curAnim[i] !== true ) {\n\t\t\t\t\tdone = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( done ) {\n\t\t\t\t// Reset the overflow\n\t\t\t\tif ( this.options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {\n\t\t\t\t\tvar elem = this.elem,\n\t\t\t\t\t\toptions = this.options;\n\n\t\t\t\t\tjQuery.each( [ \"\", \"X\", \"Y\" ], function (index, value) {\n\t\t\t\t\t\telem.style[ \"overflow\" + value ] = options.overflow[index];\n\t\t\t\t\t} );\n\t\t\t\t}\n\n\t\t\t\t// Hide the element if the \"hide\" operation was done\n\t\t\t\tif ( this.options.hide ) {\n\t\t\t\t\tjQuery(this.elem).hide();\n\t\t\t\t}\n\n\t\t\t\t// Reset the properties, if the item has been hidden or shown\n\t\t\t\tif ( this.options.hide || this.options.show ) {\n\t\t\t\t\tfor ( var p in this.options.curAnim ) {\n\t\t\t\t\t\tjQuery.style( this.elem, p, this.options.orig[p] );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Execute the complete function\n\t\t\t\tthis.options.complete.call( this.elem );\n\t\t\t}\n\n\t\t\treturn false;\n\n\t\t} else {\n\t\t\tvar n = t - this.startTime;\n\t\t\tthis.state = n / this.options.duration;\n\n\t\t\t// Perform the easing function, defaults to swing\n\t\t\tvar specialEasing = this.options.specialEasing && this.options.specialEasing[this.prop];\n\t\t\tvar defaultEasing = this.options.easing || (jQuery.easing.swing ? \"swing\" : \"linear\");\n\t\t\tthis.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration);\n\t\t\tthis.now = this.start + ((this.end - this.start) * this.pos);\n\n\t\t\t// Perform the next step of the animation\n\t\t\tthis.update();\n\t\t}\n\n\t\treturn true;\n\t}\n};\n\njQuery.extend( jQuery.fx, {\n\ttick: function() {\n\t\tvar timers = jQuery.timers;\n\n\t\tfor ( var i = 0; i < timers.length; i++ ) {\n\t\t\tif ( !timers[i]() ) {\n\t\t\t\ttimers.splice(i--, 1);\n\t\t\t}\n\t\t}\n\n\t\tif ( !timers.length ) {\n\t\t\tjQuery.fx.stop();\n\t\t}\n\t},\n\n\tinterval: 13,\n\n\tstop: function() {\n\t\tclearInterval( timerId );\n\t\ttimerId = null;\n\t},\n\n\tspeeds: {\n\t\tslow: 600,\n\t\tfast: 200,\n\t\t// Default speed\n\t\t_default: 400\n\t},\n\n\tstep: {\n\t\topacity: function( fx ) {\n\t\t\tjQuery.style( fx.elem, \"opacity\", fx.now );\n\t\t},\n\n\t\t_default: function( fx ) {\n\t\t\tif ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {\n\t\t\t\tfx.elem.style[ fx.prop ] = (fx.prop === \"width\" || fx.prop === \"height\" ? Math.max(0, fx.now) : fx.now) + fx.unit;\n\t\t\t} else {\n\t\t\t\tfx.elem[ fx.prop ] = fx.now;\n\t\t\t}\n\t\t}\n\t}\n});\n\nif ( jQuery.expr && jQuery.expr.filters ) {\n\tjQuery.expr.filters.animated = function( elem ) {\n\t\treturn jQuery.grep(jQuery.timers, function( fn ) {\n\t\t\treturn elem === fn.elem;\n\t\t}).length;\n\t};\n}\n\nfunction defaultDisplay( nodeName ) {\n\tif ( !elemdisplay[ nodeName ] ) {\n\t\tvar elem = jQuery(\"<\" + nodeName + \">\").appendTo(\"body\"),\n\t\t\tdisplay = elem.css(\"display\");\n\n\t\telem.remove();\n\n\t\tif ( display === \"none\" || display === \"\" ) {\n\t\t\tdisplay = \"block\";\n\t\t}\n\n\t\telemdisplay[ nodeName ] = display;\n\t}\n\n\treturn elemdisplay[ nodeName ];\n}\n\n\n\n\nvar rtable = /^t(?:able|d|h)$/i,\n\trroot = /^(?:body|html)$/i;\n\nif ( \"getBoundingClientRect\" in document.documentElement ) {\n\tjQuery.fn.offset = function( options ) {\n\t\tvar elem = this[0], box;\n\n\t\tif ( options ) {\n\t\t\treturn this.each(function( i ) {\n\t\t\t\tjQuery.offset.setOffset( this, options, i );\n\t\t\t});\n\t\t}\n\n\t\tif ( !elem || !elem.ownerDocument ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ( elem === elem.ownerDocument.body ) {\n\t\t\treturn jQuery.offset.bodyOffset( elem );\n\t\t}\n\n\t\ttry {\n\t\t\tbox = elem.getBoundingClientRect();\n\t\t} catch(e) {}\n\n\t\tvar doc = elem.ownerDocument,\n\t\t\tdocElem = doc.documentElement;\n\n\t\t// Make sure we're not dealing with a disconnected DOM node\n\t\tif ( !box || !jQuery.contains( docElem, elem ) ) {\n\t\t\treturn box ? { top: box.top, left: box.left } : { top: 0, left: 0 };\n\t\t}\n\n\t\tvar body = doc.body,\n\t\t\twin = getWindow(doc),\n\t\t\tclientTop  = docElem.clientTop  || body.clientTop  || 0,\n\t\t\tclientLeft = docElem.clientLeft || body.clientLeft || 0,\n\t\t\tscrollTop  = (win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop ),\n\t\t\tscrollLeft = (win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft),\n\t\t\ttop  = box.top  + scrollTop  - clientTop,\n\t\t\tleft = box.left + scrollLeft - clientLeft;\n\n\t\treturn { top: top, left: left };\n\t};\n\n} else {\n\tjQuery.fn.offset = function( options ) {\n\t\tvar elem = this[0];\n\n\t\tif ( options ) {\n\t\t\treturn this.each(function( i ) {\n\t\t\t\tjQuery.offset.setOffset( this, options, i );\n\t\t\t});\n\t\t}\n\n\t\tif ( !elem || !elem.ownerDocument ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ( elem === elem.ownerDocument.body ) {\n\t\t\treturn jQuery.offset.bodyOffset( elem );\n\t\t}\n\n\t\tjQuery.offset.initialize();\n\n\t\tvar computedStyle,\n\t\t\toffsetParent = elem.offsetParent,\n\t\t\tprevOffsetParent = elem,\n\t\t\tdoc = elem.ownerDocument,\n\t\t\tdocElem = doc.documentElement,\n\t\t\tbody = doc.body,\n\t\t\tdefaultView = doc.defaultView,\n\t\t\tprevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,\n\t\t\ttop = elem.offsetTop,\n\t\t\tleft = elem.offsetLeft;\n\n\t\twhile ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {\n\t\t\tif ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === \"fixed\" ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcomputedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;\n\t\t\ttop  -= elem.scrollTop;\n\t\t\tleft -= elem.scrollLeft;\n\n\t\t\tif ( elem === offsetParent ) {\n\t\t\t\ttop  += elem.offsetTop;\n\t\t\t\tleft += elem.offsetLeft;\n\n\t\t\t\tif ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {\n\t\t\t\t\ttop  += parseFloat( computedStyle.borderTopWidth  ) || 0;\n\t\t\t\t\tleft += parseFloat( computedStyle.borderLeftWidth ) || 0;\n\t\t\t\t}\n\n\t\t\t\tprevOffsetParent = offsetParent;\n\t\t\t\toffsetParent = elem.offsetParent;\n\t\t\t}\n\n\t\t\tif ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== \"visible\" ) {\n\t\t\t\ttop  += parseFloat( computedStyle.borderTopWidth  ) || 0;\n\t\t\t\tleft += parseFloat( computedStyle.borderLeftWidth ) || 0;\n\t\t\t}\n\n\t\t\tprevComputedStyle = computedStyle;\n\t\t}\n\n\t\tif ( prevComputedStyle.position === \"relative\" || prevComputedStyle.position === \"static\" ) {\n\t\t\ttop  += body.offsetTop;\n\t\t\tleft += body.offsetLeft;\n\t\t}\n\n\t\tif ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === \"fixed\" ) {\n\t\t\ttop  += Math.max( docElem.scrollTop, body.scrollTop );\n\t\t\tleft += Math.max( docElem.scrollLeft, body.scrollLeft );\n\t\t}\n\n\t\treturn { top: top, left: left };\n\t};\n}\n\njQuery.offset = {\n\tinitialize: function() {\n\t\tvar body = document.body, container = document.createElement(\"div\"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.css(body, \"marginTop\") ) || 0,\n\t\t\thtml = \"<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>\";\n\n\t\tjQuery.extend( container.style, { position: \"absolute\", top: 0, left: 0, margin: 0, border: 0, width: \"1px\", height: \"1px\", visibility: \"hidden\" } );\n\n\t\tcontainer.innerHTML = html;\n\t\tbody.insertBefore( container, body.firstChild );\n\t\tinnerDiv = container.firstChild;\n\t\tcheckDiv = innerDiv.firstChild;\n\t\ttd = innerDiv.nextSibling.firstChild.firstChild;\n\n\t\tthis.doesNotAddBorder = (checkDiv.offsetTop !== 5);\n\t\tthis.doesAddBorderForTableAndCells = (td.offsetTop === 5);\n\n\t\tcheckDiv.style.position = \"fixed\";\n\t\tcheckDiv.style.top = \"20px\";\n\n\t\t// safari subtracts parent border width here which is 5px\n\t\tthis.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15);\n\t\tcheckDiv.style.position = checkDiv.style.top = \"\";\n\n\t\tinnerDiv.style.overflow = \"hidden\";\n\t\tinnerDiv.style.position = \"relative\";\n\n\t\tthis.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);\n\n\t\tthis.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);\n\n\t\tbody.removeChild( container );\n\t\tbody = container = innerDiv = checkDiv = table = td = null;\n\t\tjQuery.offset.initialize = jQuery.noop;\n\t},\n\n\tbodyOffset: function( body ) {\n\t\tvar top = body.offsetTop,\n\t\t\tleft = body.offsetLeft;\n\n\t\tjQuery.offset.initialize();\n\n\t\tif ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) {\n\t\t\ttop  += parseFloat( jQuery.css(body, \"marginTop\") ) || 0;\n\t\t\tleft += parseFloat( jQuery.css(body, \"marginLeft\") ) || 0;\n\t\t}\n\n\t\treturn { top: top, left: left };\n\t},\n\n\tsetOffset: function( elem, options, i ) {\n\t\tvar position = jQuery.css( elem, \"position\" );\n\n\t\t// set position first, in-case top/left are set even on static elem\n\t\tif ( position === \"static\" ) {\n\t\t\telem.style.position = \"relative\";\n\t\t}\n\n\t\tvar curElem = jQuery( elem ),\n\t\t\tcurOffset = curElem.offset(),\n\t\t\tcurCSSTop = jQuery.css( elem, \"top\" ),\n\t\t\tcurCSSLeft = jQuery.css( elem, \"left\" ),\n\t\t\tcalculatePosition = (position === \"absolute\" && jQuery.inArray('auto', [curCSSTop, curCSSLeft]) > -1),\n\t\t\tprops = {}, curPosition = {}, curTop, curLeft;\n\n\t\t// need to be able to calculate position if either top or left is auto and position is absolute\n\t\tif ( calculatePosition ) {\n\t\t\tcurPosition = curElem.position();\n\t\t}\n\n\t\tcurTop  = calculatePosition ? curPosition.top  : parseInt( curCSSTop,  10 ) || 0;\n\t\tcurLeft = calculatePosition ? curPosition.left : parseInt( curCSSLeft, 10 ) || 0;\n\n\t\tif ( jQuery.isFunction( options ) ) {\n\t\t\toptions = options.call( elem, i, curOffset );\n\t\t}\n\n\t\tif (options.top != null) {\n\t\t\tprops.top = (options.top - curOffset.top) + curTop;\n\t\t}\n\t\tif (options.left != null) {\n\t\t\tprops.left = (options.left - curOffset.left) + curLeft;\n\t\t}\n\n\t\tif ( \"using\" in options ) {\n\t\t\toptions.using.call( elem, props );\n\t\t} else {\n\t\t\tcurElem.css( props );\n\t\t}\n\t}\n};\n\n\njQuery.fn.extend({\n\tposition: function() {\n\t\tif ( !this[0] ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar elem = this[0],\n\n\t\t// Get *real* offsetParent\n\t\toffsetParent = this.offsetParent(),\n\n\t\t// Get correct offsets\n\t\toffset       = this.offset(),\n\t\tparentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();\n\n\t\t// Subtract element margins\n\t\t// note: when an element has margin: auto the offsetLeft and marginLeft\n\t\t// are the same in Safari causing offset.left to incorrectly be 0\n\t\toffset.top  -= parseFloat( jQuery.css(elem, \"marginTop\") ) || 0;\n\t\toffset.left -= parseFloat( jQuery.css(elem, \"marginLeft\") ) || 0;\n\n\t\t// Add offsetParent borders\n\t\tparentOffset.top  += parseFloat( jQuery.css(offsetParent[0], \"borderTopWidth\") ) || 0;\n\t\tparentOffset.left += parseFloat( jQuery.css(offsetParent[0], \"borderLeftWidth\") ) || 0;\n\n\t\t// Subtract the two offsets\n\t\treturn {\n\t\t\ttop:  offset.top  - parentOffset.top,\n\t\t\tleft: offset.left - parentOffset.left\n\t\t};\n\t},\n\n\toffsetParent: function() {\n\t\treturn this.map(function() {\n\t\t\tvar offsetParent = this.offsetParent || document.body;\n\t\t\twhile ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, \"position\") === \"static\") ) {\n\t\t\t\toffsetParent = offsetParent.offsetParent;\n\t\t\t}\n\t\t\treturn offsetParent;\n\t\t});\n\t}\n});\n\n\n// Create scrollLeft and scrollTop methods\njQuery.each( [\"Left\", \"Top\"], function( i, name ) {\n\tvar method = \"scroll\" + name;\n\n\tjQuery.fn[ method ] = function(val) {\n\t\tvar elem = this[0], win;\n\n\t\tif ( !elem ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ( val !== undefined ) {\n\t\t\t// Set the scroll offset\n\t\t\treturn this.each(function() {\n\t\t\t\twin = getWindow( this );\n\n\t\t\t\tif ( win ) {\n\t\t\t\t\twin.scrollTo(\n\t\t\t\t\t\t!i ? val : jQuery(win).scrollLeft(),\n\t\t\t\t\t\ti ? val : jQuery(win).scrollTop()\n\t\t\t\t\t);\n\n\t\t\t\t} else {\n\t\t\t\t\tthis[ method ] = val;\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\twin = getWindow( elem );\n\n\t\t\t// Return the scroll offset\n\t\t\treturn win ? (\"pageXOffset\" in win) ? win[ i ? \"pageYOffset\" : \"pageXOffset\" ] :\n\t\t\t\tjQuery.support.boxModel && win.document.documentElement[ method ] ||\n\t\t\t\t\twin.document.body[ method ] :\n\t\t\t\telem[ method ];\n\t\t}\n\t};\n});\n\nfunction getWindow( elem ) {\n\treturn jQuery.isWindow( elem ) ?\n\t\telem :\n\t\telem.nodeType === 9 ?\n\t\t\telem.defaultView || elem.parentWindow :\n\t\t\tfalse;\n}\n\n\n\n\n// Create innerHeight, innerWidth, outerHeight and outerWidth methods\njQuery.each([ \"Height\", \"Width\" ], function( i, name ) {\n\n\tvar type = name.toLowerCase();\n\n\t// innerHeight and innerWidth\n\tjQuery.fn[\"inner\" + name] = function() {\n\t\treturn this[0] ?\n\t\t\tparseFloat( jQuery.css( this[0], type, \"padding\" ) ) :\n\t\t\tnull;\n\t};\n\n\t// outerHeight and outerWidth\n\tjQuery.fn[\"outer\" + name] = function( margin ) {\n\t\treturn this[0] ?\n\t\t\tparseFloat( jQuery.css( this[0], type, margin ? \"margin\" : \"border\" ) ) :\n\t\t\tnull;\n\t};\n\n\tjQuery.fn[ type ] = function( size ) {\n\t\t// Get window width or height\n\t\tvar elem = this[0];\n\t\tif ( !elem ) {\n\t\t\treturn size == null ? null : this;\n\t\t}\n\n\t\tif ( jQuery.isFunction( size ) ) {\n\t\t\treturn this.each(function( i ) {\n\t\t\t\tvar self = jQuery( this );\n\t\t\t\tself[ type ]( size.call( this, i, self[ type ]() ) );\n\t\t\t});\n\t\t}\n\n\t\tif ( jQuery.isWindow( elem ) ) {\n\t\t\t// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode\n\t\t\t// 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat\n\t\t\tvar docElemProp = elem.document.documentElement[ \"client\" + name ];\n\t\t\treturn elem.document.compatMode === \"CSS1Compat\" && docElemProp ||\n\t\t\t\telem.document.body[ \"client\" + name ] || docElemProp;\n\n\t\t// Get document width or height\n\t\t} else if ( elem.nodeType === 9 ) {\n\t\t\t// Either scroll[Width/Height] or offset[Width/Height], whichever is greater\n\t\t\treturn Math.max(\n\t\t\t\telem.documentElement[\"client\" + name],\n\t\t\t\telem.body[\"scroll\" + name], elem.documentElement[\"scroll\" + name],\n\t\t\t\telem.body[\"offset\" + name], elem.documentElement[\"offset\" + name]\n\t\t\t);\n\n\t\t// Get or set width or height on the element\n\t\t} else if ( size === undefined ) {\n\t\t\tvar orig = jQuery.css( elem, type ),\n\t\t\t\tret = parseFloat( orig );\n\n\t\t\treturn jQuery.isNaN( ret ) ? orig : ret;\n\n\t\t// Set the width or height on the element (default to pixels if value is unitless)\n\t\t} else {\n\t\t\treturn this.css( type, typeof size === \"string\" ? size : size + \"px\" );\n\t\t}\n\t};\n\n});\n\n\nwindow.jQuery = window.$ = jQuery;\n})(window);\n"
  },
  {
    "path": "style/lib/font-awesome/css/font-awesome.css",
    "content": "/*!\n *  Font Awesome 4.1.0 by @davegandy - http://fontawesome.io - @fontawesome\n *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */\n/* FONT PATH\n * -------------------------- */\n@font-face {\n  font-family: 'FontAwesome';\n  src: url('../fonts/fontawesome-webfont.eot?v=4.1.0');\n  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.1.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.1.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.1.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular') format('svg');\n  font-weight: normal;\n  font-style: normal;\n}\n.fa {\n  display: inline-block;\n  font-family: FontAwesome;\n  font-style: normal;\n  font-weight: normal;\n  line-height: 1;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n/* makes the font 33% larger relative to the icon container */\n.fa-lg {\n  font-size: 1.33333333em;\n  line-height: 0.75em;\n  vertical-align: -15%;\n}\n.fa-2x {\n  font-size: 2em;\n}\n.fa-3x {\n  font-size: 3em;\n}\n.fa-4x {\n  font-size: 4em;\n}\n.fa-5x {\n  font-size: 5em;\n}\n.fa-fw {\n  width: 1.28571429em;\n  text-align: center;\n}\n.fa-ul {\n  padding-left: 0;\n  margin-left: 2.14285714em;\n  list-style-type: none;\n}\n.fa-ul > li {\n  position: relative;\n}\n.fa-li {\n  position: absolute;\n  left: -2.14285714em;\n  width: 2.14285714em;\n  top: 0.14285714em;\n  text-align: center;\n}\n.fa-li.fa-lg {\n  left: -1.85714286em;\n}\n.fa-border {\n  padding: .2em .25em .15em;\n  border: solid 0.08em #eeeeee;\n  border-radius: .1em;\n}\n.pull-right {\n  float: right;\n}\n.pull-left {\n  float: left;\n}\n.fa.pull-left {\n  margin-right: .3em;\n}\n.fa.pull-right {\n  margin-left: .3em;\n}\n.fa-spin {\n  -webkit-animation: spin 2s infinite linear;\n  -moz-animation: spin 2s infinite linear;\n  -o-animation: spin 2s infinite linear;\n  animation: spin 2s infinite linear;\n}\n@-moz-keyframes spin {\n  0% {\n    -moz-transform: rotate(0deg);\n  }\n  100% {\n    -moz-transform: rotate(359deg);\n  }\n}\n@-webkit-keyframes spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(359deg);\n  }\n}\n@-o-keyframes spin {\n  0% {\n    -o-transform: rotate(0deg);\n  }\n  100% {\n    -o-transform: rotate(359deg);\n  }\n}\n@keyframes spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(359deg);\n    transform: rotate(359deg);\n  }\n}\n.fa-rotate-90 {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);\n  -webkit-transform: rotate(90deg);\n  -moz-transform: rotate(90deg);\n  -ms-transform: rotate(90deg);\n  -o-transform: rotate(90deg);\n  transform: rotate(90deg);\n}\n.fa-rotate-180 {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);\n  -webkit-transform: rotate(180deg);\n  -moz-transform: rotate(180deg);\n  -ms-transform: rotate(180deg);\n  -o-transform: rotate(180deg);\n  transform: rotate(180deg);\n}\n.fa-rotate-270 {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);\n  -webkit-transform: rotate(270deg);\n  -moz-transform: rotate(270deg);\n  -ms-transform: rotate(270deg);\n  -o-transform: rotate(270deg);\n  transform: rotate(270deg);\n}\n.fa-flip-horizontal {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);\n  -webkit-transform: scale(-1, 1);\n  -moz-transform: scale(-1, 1);\n  -ms-transform: scale(-1, 1);\n  -o-transform: scale(-1, 1);\n  transform: scale(-1, 1);\n}\n.fa-flip-vertical {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);\n  -webkit-transform: scale(1, -1);\n  -moz-transform: scale(1, -1);\n  -ms-transform: scale(1, -1);\n  -o-transform: scale(1, -1);\n  transform: scale(1, -1);\n}\n.fa-stack {\n  position: relative;\n  display: inline-block;\n  width: 2em;\n  height: 2em;\n  line-height: 2em;\n  vertical-align: middle;\n}\n.fa-stack-1x,\n.fa-stack-2x {\n  position: absolute;\n  left: 0;\n  width: 100%;\n  text-align: center;\n}\n.fa-stack-1x {\n  line-height: inherit;\n}\n.fa-stack-2x {\n  font-size: 2em;\n}\n.fa-inverse {\n  color: #ffffff;\n}\n/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen\n   readers do not read off random characters that represent icons */\n.fa-glass:before {\n  content: \"\\f000\";\n}\n.fa-music:before {\n  content: \"\\f001\";\n}\n.fa-search:before {\n  content: \"\\f002\";\n}\n.fa-envelope-o:before {\n  content: \"\\f003\";\n}\n.fa-heart:before {\n  content: \"\\f004\";\n}\n.fa-star:before {\n  content: \"\\f005\";\n}\n.fa-star-o:before {\n  content: \"\\f006\";\n}\n.fa-user:before {\n  content: \"\\f007\";\n}\n.fa-film:before {\n  content: \"\\f008\";\n}\n.fa-th-large:before {\n  content: \"\\f009\";\n}\n.fa-th:before {\n  content: \"\\f00a\";\n}\n.fa-th-list:before {\n  content: \"\\f00b\";\n}\n.fa-check:before {\n  content: \"\\f00c\";\n}\n.fa-times:before {\n  content: \"\\f00d\";\n}\n.fa-search-plus:before {\n  content: \"\\f00e\";\n}\n.fa-search-minus:before {\n  content: \"\\f010\";\n}\n.fa-power-off:before {\n  content: \"\\f011\";\n}\n.fa-signal:before {\n  content: \"\\f012\";\n}\n.fa-gear:before,\n.fa-cog:before {\n  content: \"\\f013\";\n}\n.fa-trash-o:before {\n  content: \"\\f014\";\n}\n.fa-home:before {\n  content: \"\\f015\";\n}\n.fa-file-o:before {\n  content: \"\\f016\";\n}\n.fa-clock-o:before {\n  content: \"\\f017\";\n}\n.fa-road:before {\n  content: \"\\f018\";\n}\n.fa-download:before {\n  content: \"\\f019\";\n}\n.fa-arrow-circle-o-down:before {\n  content: \"\\f01a\";\n}\n.fa-arrow-circle-o-up:before {\n  content: \"\\f01b\";\n}\n.fa-inbox:before {\n  content: \"\\f01c\";\n}\n.fa-play-circle-o:before {\n  content: \"\\f01d\";\n}\n.fa-rotate-right:before,\n.fa-repeat:before {\n  content: \"\\f01e\";\n}\n.fa-refresh:before {\n  content: \"\\f021\";\n}\n.fa-list-alt:before {\n  content: \"\\f022\";\n}\n.fa-lock:before {\n  content: \"\\f023\";\n}\n.fa-flag:before {\n  content: \"\\f024\";\n}\n.fa-headphones:before {\n  content: \"\\f025\";\n}\n.fa-volume-off:before {\n  content: \"\\f026\";\n}\n.fa-volume-down:before {\n  content: \"\\f027\";\n}\n.fa-volume-up:before {\n  content: \"\\f028\";\n}\n.fa-qrcode:before {\n  content: \"\\f029\";\n}\n.fa-barcode:before {\n  content: \"\\f02a\";\n}\n.fa-tag:before {\n  content: \"\\f02b\";\n}\n.fa-tags:before {\n  content: \"\\f02c\";\n}\n.fa-book:before {\n  content: \"\\f02d\";\n}\n.fa-bookmark:before {\n  content: \"\\f02e\";\n}\n.fa-print:before {\n  content: \"\\f02f\";\n}\n.fa-camera:before {\n  content: \"\\f030\";\n}\n.fa-font:before {\n  content: \"\\f031\";\n}\n.fa-bold:before {\n  content: \"\\f032\";\n}\n.fa-italic:before {\n  content: \"\\f033\";\n}\n.fa-text-height:before {\n  content: \"\\f034\";\n}\n.fa-text-width:before {\n  content: \"\\f035\";\n}\n.fa-align-left:before {\n  content: \"\\f036\";\n}\n.fa-align-center:before {\n  content: \"\\f037\";\n}\n.fa-align-right:before {\n  content: \"\\f038\";\n}\n.fa-align-justify:before {\n  content: \"\\f039\";\n}\n.fa-list:before {\n  content: \"\\f03a\";\n}\n.fa-dedent:before,\n.fa-outdent:before {\n  content: \"\\f03b\";\n}\n.fa-indent:before {\n  content: \"\\f03c\";\n}\n.fa-video-camera:before {\n  content: \"\\f03d\";\n}\n.fa-photo:before,\n.fa-image:before,\n.fa-picture-o:before {\n  content: \"\\f03e\";\n}\n.fa-pencil:before {\n  content: \"\\f040\";\n}\n.fa-map-marker:before {\n  content: \"\\f041\";\n}\n.fa-adjust:before {\n  content: \"\\f042\";\n}\n.fa-tint:before {\n  content: \"\\f043\";\n}\n.fa-edit:before,\n.fa-pencil-square-o:before {\n  content: \"\\f044\";\n}\n.fa-share-square-o:before {\n  content: \"\\f045\";\n}\n.fa-check-square-o:before {\n  content: \"\\f046\";\n}\n.fa-arrows:before {\n  content: \"\\f047\";\n}\n.fa-step-backward:before {\n  content: \"\\f048\";\n}\n.fa-fast-backward:before {\n  content: \"\\f049\";\n}\n.fa-backward:before {\n  content: \"\\f04a\";\n}\n.fa-play:before {\n  content: \"\\f04b\";\n}\n.fa-pause:before {\n  content: \"\\f04c\";\n}\n.fa-stop:before {\n  content: \"\\f04d\";\n}\n.fa-forward:before {\n  content: \"\\f04e\";\n}\n.fa-fast-forward:before {\n  content: \"\\f050\";\n}\n.fa-step-forward:before {\n  content: \"\\f051\";\n}\n.fa-eject:before {\n  content: \"\\f052\";\n}\n.fa-chevron-left:before {\n  content: \"\\f053\";\n}\n.fa-chevron-right:before {\n  content: \"\\f054\";\n}\n.fa-plus-circle:before {\n  content: \"\\f055\";\n}\n.fa-minus-circle:before {\n  content: \"\\f056\";\n}\n.fa-times-circle:before {\n  content: \"\\f057\";\n}\n.fa-check-circle:before {\n  content: \"\\f058\";\n}\n.fa-question-circle:before {\n  content: \"\\f059\";\n}\n.fa-info-circle:before {\n  content: \"\\f05a\";\n}\n.fa-crosshairs:before {\n  content: \"\\f05b\";\n}\n.fa-times-circle-o:before {\n  content: \"\\f05c\";\n}\n.fa-check-circle-o:before {\n  content: \"\\f05d\";\n}\n.fa-ban:before {\n  content: \"\\f05e\";\n}\n.fa-arrow-left:before {\n  content: \"\\f060\";\n}\n.fa-arrow-right:before {\n  content: \"\\f061\";\n}\n.fa-arrow-up:before {\n  content: \"\\f062\";\n}\n.fa-arrow-down:before {\n  content: \"\\f063\";\n}\n.fa-mail-forward:before,\n.fa-share:before {\n  content: \"\\f064\";\n}\n.fa-expand:before {\n  content: \"\\f065\";\n}\n.fa-compress:before {\n  content: \"\\f066\";\n}\n.fa-plus:before {\n  content: \"\\f067\";\n}\n.fa-minus:before {\n  content: \"\\f068\";\n}\n.fa-asterisk:before {\n  content: \"\\f069\";\n}\n.fa-exclamation-circle:before {\n  content: \"\\f06a\";\n}\n.fa-gift:before {\n  content: \"\\f06b\";\n}\n.fa-leaf:before {\n  content: \"\\f06c\";\n}\n.fa-fire:before {\n  content: \"\\f06d\";\n}\n.fa-eye:before {\n  content: \"\\f06e\";\n}\n.fa-eye-slash:before {\n  content: \"\\f070\";\n}\n.fa-warning:before,\n.fa-exclamation-triangle:before {\n  content: \"\\f071\";\n}\n.fa-plane:before {\n  content: \"\\f072\";\n}\n.fa-calendar:before {\n  content: \"\\f073\";\n}\n.fa-random:before {\n  content: \"\\f074\";\n}\n.fa-comment:before {\n  content: \"\\f075\";\n}\n.fa-magnet:before {\n  content: \"\\f076\";\n}\n.fa-chevron-up:before {\n  content: \"\\f077\";\n}\n.fa-chevron-down:before {\n  content: \"\\f078\";\n}\n.fa-retweet:before {\n  content: \"\\f079\";\n}\n.fa-shopping-cart:before {\n  content: \"\\f07a\";\n}\n.fa-folder:before {\n  content: \"\\f07b\";\n}\n.fa-folder-open:before {\n  content: \"\\f07c\";\n}\n.fa-arrows-v:before {\n  content: \"\\f07d\";\n}\n.fa-arrows-h:before {\n  content: \"\\f07e\";\n}\n.fa-bar-chart-o:before {\n  content: \"\\f080\";\n}\n.fa-twitter-square:before {\n  content: \"\\f081\";\n}\n.fa-facebook-square:before {\n  content: \"\\f082\";\n}\n.fa-camera-retro:before {\n  content: \"\\f083\";\n}\n.fa-key:before {\n  content: \"\\f084\";\n}\n.fa-gears:before,\n.fa-cogs:before {\n  content: \"\\f085\";\n}\n.fa-comments:before {\n  content: \"\\f086\";\n}\n.fa-thumbs-o-up:before {\n  content: \"\\f087\";\n}\n.fa-thumbs-o-down:before {\n  content: \"\\f088\";\n}\n.fa-star-half:before {\n  content: \"\\f089\";\n}\n.fa-heart-o:before {\n  content: \"\\f08a\";\n}\n.fa-sign-out:before {\n  content: \"\\f08b\";\n}\n.fa-linkedin-square:before {\n  content: \"\\f08c\";\n}\n.fa-thumb-tack:before {\n  content: \"\\f08d\";\n}\n.fa-external-link:before {\n  content: \"\\f08e\";\n}\n.fa-sign-in:before {\n  content: \"\\f090\";\n}\n.fa-trophy:before {\n  content: \"\\f091\";\n}\n.fa-github-square:before {\n  content: \"\\f092\";\n}\n.fa-upload:before {\n  content: \"\\f093\";\n}\n.fa-lemon-o:before {\n  content: \"\\f094\";\n}\n.fa-phone:before {\n  content: \"\\f095\";\n}\n.fa-square-o:before {\n  content: \"\\f096\";\n}\n.fa-bookmark-o:before {\n  content: \"\\f097\";\n}\n.fa-phone-square:before {\n  content: \"\\f098\";\n}\n.fa-twitter:before {\n  content: \"\\f099\";\n}\n.fa-facebook:before {\n  content: \"\\f09a\";\n}\n.fa-github:before {\n  content: \"\\f09b\";\n}\n.fa-unlock:before {\n  content: \"\\f09c\";\n}\n.fa-credit-card:before {\n  content: \"\\f09d\";\n}\n.fa-rss:before {\n  content: \"\\f09e\";\n}\n.fa-hdd-o:before {\n  content: \"\\f0a0\";\n}\n.fa-bullhorn:before {\n  content: \"\\f0a1\";\n}\n.fa-bell:before {\n  content: \"\\f0f3\";\n}\n.fa-certificate:before {\n  content: \"\\f0a3\";\n}\n.fa-hand-o-right:before {\n  content: \"\\f0a4\";\n}\n.fa-hand-o-left:before {\n  content: \"\\f0a5\";\n}\n.fa-hand-o-up:before {\n  content: \"\\f0a6\";\n}\n.fa-hand-o-down:before {\n  content: \"\\f0a7\";\n}\n.fa-arrow-circle-left:before {\n  content: \"\\f0a8\";\n}\n.fa-arrow-circle-right:before {\n  content: \"\\f0a9\";\n}\n.fa-arrow-circle-up:before {\n  content: \"\\f0aa\";\n}\n.fa-arrow-circle-down:before {\n  content: \"\\f0ab\";\n}\n.fa-globe:before {\n  content: \"\\f0ac\";\n}\n.fa-wrench:before {\n  content: \"\\f0ad\";\n}\n.fa-tasks:before {\n  content: \"\\f0ae\";\n}\n.fa-filter:before {\n  content: \"\\f0b0\";\n}\n.fa-briefcase:before {\n  content: \"\\f0b1\";\n}\n.fa-arrows-alt:before {\n  content: \"\\f0b2\";\n}\n.fa-group:before,\n.fa-users:before {\n  content: \"\\f0c0\";\n}\n.fa-chain:before,\n.fa-link:before {\n  content: \"\\f0c1\";\n}\n.fa-cloud:before {\n  content: \"\\f0c2\";\n}\n.fa-flask:before {\n  content: \"\\f0c3\";\n}\n.fa-cut:before,\n.fa-scissors:before {\n  content: \"\\f0c4\";\n}\n.fa-copy:before,\n.fa-files-o:before {\n  content: \"\\f0c5\";\n}\n.fa-paperclip:before {\n  content: \"\\f0c6\";\n}\n.fa-save:before,\n.fa-floppy-o:before {\n  content: \"\\f0c7\";\n}\n.fa-square:before {\n  content: \"\\f0c8\";\n}\n.fa-navicon:before,\n.fa-reorder:before,\n.fa-bars:before {\n  content: \"\\f0c9\";\n}\n.fa-list-ul:before {\n  content: \"\\f0ca\";\n}\n.fa-list-ol:before {\n  content: \"\\f0cb\";\n}\n.fa-strikethrough:before {\n  content: \"\\f0cc\";\n}\n.fa-underline:before {\n  content: \"\\f0cd\";\n}\n.fa-table:before {\n  content: \"\\f0ce\";\n}\n.fa-magic:before {\n  content: \"\\f0d0\";\n}\n.fa-truck:before {\n  content: \"\\f0d1\";\n}\n.fa-pinterest:before {\n  content: \"\\f0d2\";\n}\n.fa-pinterest-square:before {\n  content: \"\\f0d3\";\n}\n.fa-google-plus-square:before {\n  content: \"\\f0d4\";\n}\n.fa-google-plus:before {\n  content: \"\\f0d5\";\n}\n.fa-money:before {\n  content: \"\\f0d6\";\n}\n.fa-caret-down:before {\n  content: \"\\f0d7\";\n}\n.fa-caret-up:before {\n  content: \"\\f0d8\";\n}\n.fa-caret-left:before {\n  content: \"\\f0d9\";\n}\n.fa-caret-right:before {\n  content: \"\\f0da\";\n}\n.fa-columns:before {\n  content: \"\\f0db\";\n}\n.fa-unsorted:before,\n.fa-sort:before {\n  content: \"\\f0dc\";\n}\n.fa-sort-down:before,\n.fa-sort-desc:before {\n  content: \"\\f0dd\";\n}\n.fa-sort-up:before,\n.fa-sort-asc:before {\n  content: \"\\f0de\";\n}\n.fa-envelope:before {\n  content: \"\\f0e0\";\n}\n.fa-linkedin:before {\n  content: \"\\f0e1\";\n}\n.fa-rotate-left:before,\n.fa-undo:before {\n  content: \"\\f0e2\";\n}\n.fa-legal:before,\n.fa-gavel:before {\n  content: \"\\f0e3\";\n}\n.fa-dashboard:before,\n.fa-tachometer:before {\n  content: \"\\f0e4\";\n}\n.fa-comment-o:before {\n  content: \"\\f0e5\";\n}\n.fa-comments-o:before {\n  content: \"\\f0e6\";\n}\n.fa-flash:before,\n.fa-bolt:before {\n  content: \"\\f0e7\";\n}\n.fa-sitemap:before {\n  content: \"\\f0e8\";\n}\n.fa-umbrella:before {\n  content: \"\\f0e9\";\n}\n.fa-paste:before,\n.fa-clipboard:before {\n  content: \"\\f0ea\";\n}\n.fa-lightbulb-o:before {\n  content: \"\\f0eb\";\n}\n.fa-exchange:before {\n  content: \"\\f0ec\";\n}\n.fa-cloud-download:before {\n  content: \"\\f0ed\";\n}\n.fa-cloud-upload:before {\n  content: \"\\f0ee\";\n}\n.fa-user-md:before {\n  content: \"\\f0f0\";\n}\n.fa-stethoscope:before {\n  content: \"\\f0f1\";\n}\n.fa-suitcase:before {\n  content: \"\\f0f2\";\n}\n.fa-bell-o:before {\n  content: \"\\f0a2\";\n}\n.fa-coffee:before {\n  content: \"\\f0f4\";\n}\n.fa-cutlery:before {\n  content: \"\\f0f5\";\n}\n.fa-file-text-o:before {\n  content: \"\\f0f6\";\n}\n.fa-building-o:before {\n  content: \"\\f0f7\";\n}\n.fa-hospital-o:before {\n  content: \"\\f0f8\";\n}\n.fa-ambulance:before {\n  content: \"\\f0f9\";\n}\n.fa-medkit:before {\n  content: \"\\f0fa\";\n}\n.fa-fighter-jet:before {\n  content: \"\\f0fb\";\n}\n.fa-beer:before {\n  content: \"\\f0fc\";\n}\n.fa-h-square:before {\n  content: \"\\f0fd\";\n}\n.fa-plus-square:before {\n  content: \"\\f0fe\";\n}\n.fa-angle-double-left:before {\n  content: \"\\f100\";\n}\n.fa-angle-double-right:before {\n  content: \"\\f101\";\n}\n.fa-angle-double-up:before {\n  content: \"\\f102\";\n}\n.fa-angle-double-down:before {\n  content: \"\\f103\";\n}\n.fa-angle-left:before {\n  content: \"\\f104\";\n}\n.fa-angle-right:before {\n  content: \"\\f105\";\n}\n.fa-angle-up:before {\n  content: \"\\f106\";\n}\n.fa-angle-down:before {\n  content: \"\\f107\";\n}\n.fa-desktop:before {\n  content: \"\\f108\";\n}\n.fa-laptop:before {\n  content: \"\\f109\";\n}\n.fa-tablet:before {\n  content: \"\\f10a\";\n}\n.fa-mobile-phone:before,\n.fa-mobile:before {\n  content: \"\\f10b\";\n}\n.fa-circle-o:before {\n  content: \"\\f10c\";\n}\n.fa-quote-left:before {\n  content: \"\\f10d\";\n}\n.fa-quote-right:before {\n  content: \"\\f10e\";\n}\n.fa-spinner:before {\n  content: \"\\f110\";\n}\n.fa-circle:before {\n  content: \"\\f111\";\n}\n.fa-mail-reply:before,\n.fa-reply:before {\n  content: \"\\f112\";\n}\n.fa-github-alt:before {\n  content: \"\\f113\";\n}\n.fa-folder-o:before {\n  content: \"\\f114\";\n}\n.fa-folder-open-o:before {\n  content: \"\\f115\";\n}\n.fa-smile-o:before {\n  content: \"\\f118\";\n}\n.fa-frown-o:before {\n  content: \"\\f119\";\n}\n.fa-meh-o:before {\n  content: \"\\f11a\";\n}\n.fa-gamepad:before {\n  content: \"\\f11b\";\n}\n.fa-keyboard-o:before {\n  content: \"\\f11c\";\n}\n.fa-flag-o:before {\n  content: \"\\f11d\";\n}\n.fa-flag-checkered:before {\n  content: \"\\f11e\";\n}\n.fa-terminal:before {\n  content: \"\\f120\";\n}\n.fa-code:before {\n  content: \"\\f121\";\n}\n.fa-mail-reply-all:before,\n.fa-reply-all:before {\n  content: \"\\f122\";\n}\n.fa-star-half-empty:before,\n.fa-star-half-full:before,\n.fa-star-half-o:before {\n  content: \"\\f123\";\n}\n.fa-location-arrow:before {\n  content: \"\\f124\";\n}\n.fa-crop:before {\n  content: \"\\f125\";\n}\n.fa-code-fork:before {\n  content: \"\\f126\";\n}\n.fa-unlink:before,\n.fa-chain-broken:before {\n  content: \"\\f127\";\n}\n.fa-question:before {\n  content: \"\\f128\";\n}\n.fa-info:before {\n  content: \"\\f129\";\n}\n.fa-exclamation:before {\n  content: \"\\f12a\";\n}\n.fa-superscript:before {\n  content: \"\\f12b\";\n}\n.fa-subscript:before {\n  content: \"\\f12c\";\n}\n.fa-eraser:before {\n  content: \"\\f12d\";\n}\n.fa-puzzle-piece:before {\n  content: \"\\f12e\";\n}\n.fa-microphone:before {\n  content: \"\\f130\";\n}\n.fa-microphone-slash:before {\n  content: \"\\f131\";\n}\n.fa-shield:before {\n  content: \"\\f132\";\n}\n.fa-calendar-o:before {\n  content: \"\\f133\";\n}\n.fa-fire-extinguisher:before {\n  content: \"\\f134\";\n}\n.fa-rocket:before {\n  content: \"\\f135\";\n}\n.fa-maxcdn:before {\n  content: \"\\f136\";\n}\n.fa-chevron-circle-left:before {\n  content: \"\\f137\";\n}\n.fa-chevron-circle-right:before {\n  content: \"\\f138\";\n}\n.fa-chevron-circle-up:before {\n  content: \"\\f139\";\n}\n.fa-chevron-circle-down:before {\n  content: \"\\f13a\";\n}\n.fa-html5:before {\n  content: \"\\f13b\";\n}\n.fa-css3:before {\n  content: \"\\f13c\";\n}\n.fa-anchor:before {\n  content: \"\\f13d\";\n}\n.fa-unlock-alt:before {\n  content: \"\\f13e\";\n}\n.fa-bullseye:before {\n  content: \"\\f140\";\n}\n.fa-ellipsis-h:before {\n  content: \"\\f141\";\n}\n.fa-ellipsis-v:before {\n  content: \"\\f142\";\n}\n.fa-rss-square:before {\n  content: \"\\f143\";\n}\n.fa-play-circle:before {\n  content: \"\\f144\";\n}\n.fa-ticket:before {\n  content: \"\\f145\";\n}\n.fa-minus-square:before {\n  content: \"\\f146\";\n}\n.fa-minus-square-o:before {\n  content: \"\\f147\";\n}\n.fa-level-up:before {\n  content: \"\\f148\";\n}\n.fa-level-down:before {\n  content: \"\\f149\";\n}\n.fa-check-square:before {\n  content: \"\\f14a\";\n}\n.fa-pencil-square:before {\n  content: \"\\f14b\";\n}\n.fa-external-link-square:before {\n  content: \"\\f14c\";\n}\n.fa-share-square:before {\n  content: \"\\f14d\";\n}\n.fa-compass:before {\n  content: \"\\f14e\";\n}\n.fa-toggle-down:before,\n.fa-caret-square-o-down:before {\n  content: \"\\f150\";\n}\n.fa-toggle-up:before,\n.fa-caret-square-o-up:before {\n  content: \"\\f151\";\n}\n.fa-toggle-right:before,\n.fa-caret-square-o-right:before {\n  content: \"\\f152\";\n}\n.fa-euro:before,\n.fa-eur:before {\n  content: \"\\f153\";\n}\n.fa-gbp:before {\n  content: \"\\f154\";\n}\n.fa-dollar:before,\n.fa-usd:before {\n  content: \"\\f155\";\n}\n.fa-rupee:before,\n.fa-inr:before {\n  content: \"\\f156\";\n}\n.fa-cny:before,\n.fa-rmb:before,\n.fa-yen:before,\n.fa-jpy:before {\n  content: \"\\f157\";\n}\n.fa-ruble:before,\n.fa-rouble:before,\n.fa-rub:before {\n  content: \"\\f158\";\n}\n.fa-won:before,\n.fa-krw:before {\n  content: \"\\f159\";\n}\n.fa-bitcoin:before,\n.fa-btc:before {\n  content: \"\\f15a\";\n}\n.fa-file:before {\n  content: \"\\f15b\";\n}\n.fa-file-text:before {\n  content: \"\\f15c\";\n}\n.fa-sort-alpha-asc:before {\n  content: \"\\f15d\";\n}\n.fa-sort-alpha-desc:before {\n  content: \"\\f15e\";\n}\n.fa-sort-amount-asc:before {\n  content: \"\\f160\";\n}\n.fa-sort-amount-desc:before {\n  content: \"\\f161\";\n}\n.fa-sort-numeric-asc:before {\n  content: \"\\f162\";\n}\n.fa-sort-numeric-desc:before {\n  content: \"\\f163\";\n}\n.fa-thumbs-up:before {\n  content: \"\\f164\";\n}\n.fa-thumbs-down:before {\n  content: \"\\f165\";\n}\n.fa-youtube-square:before {\n  content: \"\\f166\";\n}\n.fa-youtube:before {\n  content: \"\\f167\";\n}\n.fa-xing:before {\n  content: \"\\f168\";\n}\n.fa-xing-square:before {\n  content: \"\\f169\";\n}\n.fa-youtube-play:before {\n  content: \"\\f16a\";\n}\n.fa-dropbox:before {\n  content: \"\\f16b\";\n}\n.fa-stack-overflow:before {\n  content: \"\\f16c\";\n}\n.fa-instagram:before {\n  content: \"\\f16d\";\n}\n.fa-flickr:before {\n  content: \"\\f16e\";\n}\n.fa-adn:before {\n  content: \"\\f170\";\n}\n.fa-bitbucket:before {\n  content: \"\\f171\";\n}\n.fa-bitbucket-square:before {\n  content: \"\\f172\";\n}\n.fa-tumblr:before {\n  content: \"\\f173\";\n}\n.fa-tumblr-square:before {\n  content: \"\\f174\";\n}\n.fa-long-arrow-down:before {\n  content: \"\\f175\";\n}\n.fa-long-arrow-up:before {\n  content: \"\\f176\";\n}\n.fa-long-arrow-left:before {\n  content: \"\\f177\";\n}\n.fa-long-arrow-right:before {\n  content: \"\\f178\";\n}\n.fa-apple:before {\n  content: \"\\f179\";\n}\n.fa-windows:before {\n  content: \"\\f17a\";\n}\n.fa-android:before {\n  content: \"\\f17b\";\n}\n.fa-linux:before {\n  content: \"\\f17c\";\n}\n.fa-dribbble:before {\n  content: \"\\f17d\";\n}\n.fa-skype:before {\n  content: \"\\f17e\";\n}\n.fa-foursquare:before {\n  content: \"\\f180\";\n}\n.fa-trello:before {\n  content: \"\\f181\";\n}\n.fa-female:before {\n  content: \"\\f182\";\n}\n.fa-male:before {\n  content: \"\\f183\";\n}\n.fa-gittip:before {\n  content: \"\\f184\";\n}\n.fa-sun-o:before {\n  content: \"\\f185\";\n}\n.fa-moon-o:before {\n  content: \"\\f186\";\n}\n.fa-archive:before {\n  content: \"\\f187\";\n}\n.fa-bug:before {\n  content: \"\\f188\";\n}\n.fa-vk:before {\n  content: \"\\f189\";\n}\n.fa-weibo:before {\n  content: \"\\f18a\";\n}\n.fa-renren:before {\n  content: \"\\f18b\";\n}\n.fa-pagelines:before {\n  content: \"\\f18c\";\n}\n.fa-stack-exchange:before {\n  content: \"\\f18d\";\n}\n.fa-arrow-circle-o-right:before {\n  content: \"\\f18e\";\n}\n.fa-arrow-circle-o-left:before {\n  content: \"\\f190\";\n}\n.fa-toggle-left:before,\n.fa-caret-square-o-left:before {\n  content: \"\\f191\";\n}\n.fa-dot-circle-o:before {\n  content: \"\\f192\";\n}\n.fa-wheelchair:before {\n  content: \"\\f193\";\n}\n.fa-vimeo-square:before {\n  content: \"\\f194\";\n}\n.fa-turkish-lira:before,\n.fa-try:before {\n  content: \"\\f195\";\n}\n.fa-plus-square-o:before {\n  content: \"\\f196\";\n}\n.fa-space-shuttle:before {\n  content: \"\\f197\";\n}\n.fa-slack:before {\n  content: \"\\f198\";\n}\n.fa-envelope-square:before {\n  content: \"\\f199\";\n}\n.fa-wordpress:before {\n  content: \"\\f19a\";\n}\n.fa-openid:before {\n  content: \"\\f19b\";\n}\n.fa-institution:before,\n.fa-bank:before,\n.fa-university:before {\n  content: \"\\f19c\";\n}\n.fa-mortar-board:before,\n.fa-graduation-cap:before {\n  content: \"\\f19d\";\n}\n.fa-yahoo:before {\n  content: \"\\f19e\";\n}\n.fa-google:before {\n  content: \"\\f1a0\";\n}\n.fa-reddit:before {\n  content: \"\\f1a1\";\n}\n.fa-reddit-square:before {\n  content: \"\\f1a2\";\n}\n.fa-stumbleupon-circle:before {\n  content: \"\\f1a3\";\n}\n.fa-stumbleupon:before {\n  content: \"\\f1a4\";\n}\n.fa-delicious:before {\n  content: \"\\f1a5\";\n}\n.fa-digg:before {\n  content: \"\\f1a6\";\n}\n.fa-pied-piper-square:before,\n.fa-pied-piper:before {\n  content: \"\\f1a7\";\n}\n.fa-pied-piper-alt:before {\n  content: \"\\f1a8\";\n}\n.fa-drupal:before {\n  content: \"\\f1a9\";\n}\n.fa-joomla:before {\n  content: \"\\f1aa\";\n}\n.fa-language:before {\n  content: \"\\f1ab\";\n}\n.fa-fax:before {\n  content: \"\\f1ac\";\n}\n.fa-building:before {\n  content: \"\\f1ad\";\n}\n.fa-child:before {\n  content: \"\\f1ae\";\n}\n.fa-paw:before {\n  content: \"\\f1b0\";\n}\n.fa-spoon:before {\n  content: \"\\f1b1\";\n}\n.fa-cube:before {\n  content: \"\\f1b2\";\n}\n.fa-cubes:before {\n  content: \"\\f1b3\";\n}\n.fa-behance:before {\n  content: \"\\f1b4\";\n}\n.fa-behance-square:before {\n  content: \"\\f1b5\";\n}\n.fa-steam:before {\n  content: \"\\f1b6\";\n}\n.fa-steam-square:before {\n  content: \"\\f1b7\";\n}\n.fa-recycle:before {\n  content: \"\\f1b8\";\n}\n.fa-automobile:before,\n.fa-car:before {\n  content: \"\\f1b9\";\n}\n.fa-cab:before,\n.fa-taxi:before {\n  content: \"\\f1ba\";\n}\n.fa-tree:before {\n  content: \"\\f1bb\";\n}\n.fa-spotify:before {\n  content: \"\\f1bc\";\n}\n.fa-deviantart:before {\n  content: \"\\f1bd\";\n}\n.fa-soundcloud:before {\n  content: \"\\f1be\";\n}\n.fa-database:before {\n  content: \"\\f1c0\";\n}\n.fa-file-pdf-o:before {\n  content: \"\\f1c1\";\n}\n.fa-file-word-o:before {\n  content: \"\\f1c2\";\n}\n.fa-file-excel-o:before {\n  content: \"\\f1c3\";\n}\n.fa-file-powerpoint-o:before {\n  content: \"\\f1c4\";\n}\n.fa-file-photo-o:before,\n.fa-file-picture-o:before,\n.fa-file-image-o:before {\n  content: \"\\f1c5\";\n}\n.fa-file-zip-o:before,\n.fa-file-archive-o:before {\n  content: \"\\f1c6\";\n}\n.fa-file-sound-o:before,\n.fa-file-audio-o:before {\n  content: \"\\f1c7\";\n}\n.fa-file-movie-o:before,\n.fa-file-video-o:before {\n  content: \"\\f1c8\";\n}\n.fa-file-code-o:before {\n  content: \"\\f1c9\";\n}\n.fa-vine:before {\n  content: \"\\f1ca\";\n}\n.fa-codepen:before {\n  content: \"\\f1cb\";\n}\n.fa-jsfiddle:before {\n  content: \"\\f1cc\";\n}\n.fa-life-bouy:before,\n.fa-life-saver:before,\n.fa-support:before,\n.fa-life-ring:before {\n  content: \"\\f1cd\";\n}\n.fa-circle-o-notch:before {\n  content: \"\\f1ce\";\n}\n.fa-ra:before,\n.fa-rebel:before {\n  content: \"\\f1d0\";\n}\n.fa-ge:before,\n.fa-empire:before {\n  content: \"\\f1d1\";\n}\n.fa-git-square:before {\n  content: \"\\f1d2\";\n}\n.fa-git:before {\n  content: \"\\f1d3\";\n}\n.fa-hacker-news:before {\n  content: \"\\f1d4\";\n}\n.fa-tencent-weibo:before {\n  content: \"\\f1d5\";\n}\n.fa-qq:before {\n  content: \"\\f1d6\";\n}\n.fa-wechat:before,\n.fa-weixin:before {\n  content: \"\\f1d7\";\n}\n.fa-send:before,\n.fa-paper-plane:before {\n  content: \"\\f1d8\";\n}\n.fa-send-o:before,\n.fa-paper-plane-o:before {\n  content: \"\\f1d9\";\n}\n.fa-history:before {\n  content: \"\\f1da\";\n}\n.fa-circle-thin:before {\n  content: \"\\f1db\";\n}\n.fa-header:before {\n  content: \"\\f1dc\";\n}\n.fa-paragraph:before {\n  content: \"\\f1dd\";\n}\n.fa-sliders:before {\n  content: \"\\f1de\";\n}\n.fa-share-alt:before {\n  content: \"\\f1e0\";\n}\n.fa-share-alt-square:before {\n  content: \"\\f1e1\";\n}\n.fa-bomb:before {\n  content: \"\\f1e2\";\n}\n"
  },
  {
    "path": "style/lib/font-awesome/less/bordered-pulled.less",
    "content": "// Bordered & Pulled\n// -------------------------\n\n.@{fa-css-prefix}-border {\n  padding: .2em .25em .15em;\n  border: solid .08em @fa-border-color;\n  border-radius: .1em;\n}\n\n.pull-right { float: right; }\n.pull-left { float: left; }\n\n.@{fa-css-prefix} {\n  &.pull-left { margin-right: .3em; }\n  &.pull-right { margin-left: .3em; }\n}\n"
  },
  {
    "path": "style/lib/font-awesome/less/core.less",
    "content": "// Base Class Definition\n// -------------------------\n\n.@{fa-css-prefix} {\n  display: inline-block;\n  font-family: FontAwesome;\n  font-style: normal;\n  font-weight: normal;\n  line-height: 1;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n"
  },
  {
    "path": "style/lib/font-awesome/less/fixed-width.less",
    "content": "// Fixed Width Icons\n// -------------------------\n.@{fa-css-prefix}-fw {\n  width: (18em / 14);\n  text-align: center;\n}\n"
  },
  {
    "path": "style/lib/font-awesome/less/font-awesome.less",
    "content": "/*!\n *  Font Awesome 4.1.0 by @davegandy - http://fontawesome.io - @fontawesome\n *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */\n\n@import \"variables.less\";\n@import \"mixins.less\";\n@import \"path.less\";\n@import \"core.less\";\n@import \"larger.less\";\n@import \"fixed-width.less\";\n@import \"list.less\";\n@import \"bordered-pulled.less\";\n@import \"spinning.less\";\n@import \"rotated-flipped.less\";\n@import \"stacked.less\";\n@import \"icons.less\";\n"
  },
  {
    "path": "style/lib/font-awesome/less/icons.less",
    "content": "/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen\n   readers do not read off random characters that represent icons */\n\n.@{fa-css-prefix}-glass:before { content: @fa-var-glass; }\n.@{fa-css-prefix}-music:before { content: @fa-var-music; }\n.@{fa-css-prefix}-search:before { content: @fa-var-search; }\n.@{fa-css-prefix}-envelope-o:before { content: @fa-var-envelope-o; }\n.@{fa-css-prefix}-heart:before { content: @fa-var-heart; }\n.@{fa-css-prefix}-star:before { content: @fa-var-star; }\n.@{fa-css-prefix}-star-o:before { content: @fa-var-star-o; }\n.@{fa-css-prefix}-user:before { content: @fa-var-user; }\n.@{fa-css-prefix}-film:before { content: @fa-var-film; }\n.@{fa-css-prefix}-th-large:before { content: @fa-var-th-large; }\n.@{fa-css-prefix}-th:before { content: @fa-var-th; }\n.@{fa-css-prefix}-th-list:before { content: @fa-var-th-list; }\n.@{fa-css-prefix}-check:before { content: @fa-var-check; }\n.@{fa-css-prefix}-times:before { content: @fa-var-times; }\n.@{fa-css-prefix}-search-plus:before { content: @fa-var-search-plus; }\n.@{fa-css-prefix}-search-minus:before { content: @fa-var-search-minus; }\n.@{fa-css-prefix}-power-off:before { content: @fa-var-power-off; }\n.@{fa-css-prefix}-signal:before { content: @fa-var-signal; }\n.@{fa-css-prefix}-gear:before,\n.@{fa-css-prefix}-cog:before { content: @fa-var-cog; }\n.@{fa-css-prefix}-trash-o:before { content: @fa-var-trash-o; }\n.@{fa-css-prefix}-home:before { content: @fa-var-home; }\n.@{fa-css-prefix}-file-o:before { content: @fa-var-file-o; }\n.@{fa-css-prefix}-clock-o:before { content: @fa-var-clock-o; }\n.@{fa-css-prefix}-road:before { content: @fa-var-road; }\n.@{fa-css-prefix}-download:before { content: @fa-var-download; }\n.@{fa-css-prefix}-arrow-circle-o-down:before { content: @fa-var-arrow-circle-o-down; }\n.@{fa-css-prefix}-arrow-circle-o-up:before { content: @fa-var-arrow-circle-o-up; }\n.@{fa-css-prefix}-inbox:before { content: @fa-var-inbox; }\n.@{fa-css-prefix}-play-circle-o:before { content: @fa-var-play-circle-o; }\n.@{fa-css-prefix}-rotate-right:before,\n.@{fa-css-prefix}-repeat:before { content: @fa-var-repeat; }\n.@{fa-css-prefix}-refresh:before { content: @fa-var-refresh; }\n.@{fa-css-prefix}-list-alt:before { content: @fa-var-list-alt; }\n.@{fa-css-prefix}-lock:before { content: @fa-var-lock; }\n.@{fa-css-prefix}-flag:before { content: @fa-var-flag; }\n.@{fa-css-prefix}-headphones:before { content: @fa-var-headphones; }\n.@{fa-css-prefix}-volume-off:before { content: @fa-var-volume-off; }\n.@{fa-css-prefix}-volume-down:before { content: @fa-var-volume-down; }\n.@{fa-css-prefix}-volume-up:before { content: @fa-var-volume-up; }\n.@{fa-css-prefix}-qrcode:before { content: @fa-var-qrcode; }\n.@{fa-css-prefix}-barcode:before { content: @fa-var-barcode; }\n.@{fa-css-prefix}-tag:before { content: @fa-var-tag; }\n.@{fa-css-prefix}-tags:before { content: @fa-var-tags; }\n.@{fa-css-prefix}-book:before { content: @fa-var-book; }\n.@{fa-css-prefix}-bookmark:before { content: @fa-var-bookmark; }\n.@{fa-css-prefix}-print:before { content: @fa-var-print; }\n.@{fa-css-prefix}-camera:before { content: @fa-var-camera; }\n.@{fa-css-prefix}-font:before { content: @fa-var-font; }\n.@{fa-css-prefix}-bold:before { content: @fa-var-bold; }\n.@{fa-css-prefix}-italic:before { content: @fa-var-italic; }\n.@{fa-css-prefix}-text-height:before { content: @fa-var-text-height; }\n.@{fa-css-prefix}-text-width:before { content: @fa-var-text-width; }\n.@{fa-css-prefix}-align-left:before { content: @fa-var-align-left; }\n.@{fa-css-prefix}-align-center:before { content: @fa-var-align-center; }\n.@{fa-css-prefix}-align-right:before { content: @fa-var-align-right; }\n.@{fa-css-prefix}-align-justify:before { content: @fa-var-align-justify; }\n.@{fa-css-prefix}-list:before { content: @fa-var-list; }\n.@{fa-css-prefix}-dedent:before,\n.@{fa-css-prefix}-outdent:before { content: @fa-var-outdent; }\n.@{fa-css-prefix}-indent:before { content: @fa-var-indent; }\n.@{fa-css-prefix}-video-camera:before { content: @fa-var-video-camera; }\n.@{fa-css-prefix}-photo:before,\n.@{fa-css-prefix}-image:before,\n.@{fa-css-prefix}-picture-o:before { content: @fa-var-picture-o; }\n.@{fa-css-prefix}-pencil:before { content: @fa-var-pencil; }\n.@{fa-css-prefix}-map-marker:before { content: @fa-var-map-marker; }\n.@{fa-css-prefix}-adjust:before { content: @fa-var-adjust; }\n.@{fa-css-prefix}-tint:before { content: @fa-var-tint; }\n.@{fa-css-prefix}-edit:before,\n.@{fa-css-prefix}-pencil-square-o:before { content: @fa-var-pencil-square-o; }\n.@{fa-css-prefix}-share-square-o:before { content: @fa-var-share-square-o; }\n.@{fa-css-prefix}-check-square-o:before { content: @fa-var-check-square-o; }\n.@{fa-css-prefix}-arrows:before { content: @fa-var-arrows; }\n.@{fa-css-prefix}-step-backward:before { content: @fa-var-step-backward; }\n.@{fa-css-prefix}-fast-backward:before { content: @fa-var-fast-backward; }\n.@{fa-css-prefix}-backward:before { content: @fa-var-backward; }\n.@{fa-css-prefix}-play:before { content: @fa-var-play; }\n.@{fa-css-prefix}-pause:before { content: @fa-var-pause; }\n.@{fa-css-prefix}-stop:before { content: @fa-var-stop; }\n.@{fa-css-prefix}-forward:before { content: @fa-var-forward; }\n.@{fa-css-prefix}-fast-forward:before { content: @fa-var-fast-forward; }\n.@{fa-css-prefix}-step-forward:before { content: @fa-var-step-forward; }\n.@{fa-css-prefix}-eject:before { content: @fa-var-eject; }\n.@{fa-css-prefix}-chevron-left:before { content: @fa-var-chevron-left; }\n.@{fa-css-prefix}-chevron-right:before { content: @fa-var-chevron-right; }\n.@{fa-css-prefix}-plus-circle:before { content: @fa-var-plus-circle; }\n.@{fa-css-prefix}-minus-circle:before { content: @fa-var-minus-circle; }\n.@{fa-css-prefix}-times-circle:before { content: @fa-var-times-circle; }\n.@{fa-css-prefix}-check-circle:before { content: @fa-var-check-circle; }\n.@{fa-css-prefix}-question-circle:before { content: @fa-var-question-circle; }\n.@{fa-css-prefix}-info-circle:before { content: @fa-var-info-circle; }\n.@{fa-css-prefix}-crosshairs:before { content: @fa-var-crosshairs; }\n.@{fa-css-prefix}-times-circle-o:before { content: @fa-var-times-circle-o; }\n.@{fa-css-prefix}-check-circle-o:before { content: @fa-var-check-circle-o; }\n.@{fa-css-prefix}-ban:before { content: @fa-var-ban; }\n.@{fa-css-prefix}-arrow-left:before { content: @fa-var-arrow-left; }\n.@{fa-css-prefix}-arrow-right:before { content: @fa-var-arrow-right; }\n.@{fa-css-prefix}-arrow-up:before { content: @fa-var-arrow-up; }\n.@{fa-css-prefix}-arrow-down:before { content: @fa-var-arrow-down; }\n.@{fa-css-prefix}-mail-forward:before,\n.@{fa-css-prefix}-share:before { content: @fa-var-share; }\n.@{fa-css-prefix}-expand:before { content: @fa-var-expand; }\n.@{fa-css-prefix}-compress:before { content: @fa-var-compress; }\n.@{fa-css-prefix}-plus:before { content: @fa-var-plus; }\n.@{fa-css-prefix}-minus:before { content: @fa-var-minus; }\n.@{fa-css-prefix}-asterisk:before { content: @fa-var-asterisk; }\n.@{fa-css-prefix}-exclamation-circle:before { content: @fa-var-exclamation-circle; }\n.@{fa-css-prefix}-gift:before { content: @fa-var-gift; }\n.@{fa-css-prefix}-leaf:before { content: @fa-var-leaf; }\n.@{fa-css-prefix}-fire:before { content: @fa-var-fire; }\n.@{fa-css-prefix}-eye:before { content: @fa-var-eye; }\n.@{fa-css-prefix}-eye-slash:before { content: @fa-var-eye-slash; }\n.@{fa-css-prefix}-warning:before,\n.@{fa-css-prefix}-exclamation-triangle:before { content: @fa-var-exclamation-triangle; }\n.@{fa-css-prefix}-plane:before { content: @fa-var-plane; }\n.@{fa-css-prefix}-calendar:before { content: @fa-var-calendar; }\n.@{fa-css-prefix}-random:before { content: @fa-var-random; }\n.@{fa-css-prefix}-comment:before { content: @fa-var-comment; }\n.@{fa-css-prefix}-magnet:before { content: @fa-var-magnet; }\n.@{fa-css-prefix}-chevron-up:before { content: @fa-var-chevron-up; }\n.@{fa-css-prefix}-chevron-down:before { content: @fa-var-chevron-down; }\n.@{fa-css-prefix}-retweet:before { content: @fa-var-retweet; }\n.@{fa-css-prefix}-shopping-cart:before { content: @fa-var-shopping-cart; }\n.@{fa-css-prefix}-folder:before { content: @fa-var-folder; }\n.@{fa-css-prefix}-folder-open:before { content: @fa-var-folder-open; }\n.@{fa-css-prefix}-arrows-v:before { content: @fa-var-arrows-v; }\n.@{fa-css-prefix}-arrows-h:before { content: @fa-var-arrows-h; }\n.@{fa-css-prefix}-bar-chart-o:before { content: @fa-var-bar-chart-o; }\n.@{fa-css-prefix}-twitter-square:before { content: @fa-var-twitter-square; }\n.@{fa-css-prefix}-facebook-square:before { content: @fa-var-facebook-square; }\n.@{fa-css-prefix}-camera-retro:before { content: @fa-var-camera-retro; }\n.@{fa-css-prefix}-key:before { content: @fa-var-key; }\n.@{fa-css-prefix}-gears:before,\n.@{fa-css-prefix}-cogs:before { content: @fa-var-cogs; }\n.@{fa-css-prefix}-comments:before { content: @fa-var-comments; }\n.@{fa-css-prefix}-thumbs-o-up:before { content: @fa-var-thumbs-o-up; }\n.@{fa-css-prefix}-thumbs-o-down:before { content: @fa-var-thumbs-o-down; }\n.@{fa-css-prefix}-star-half:before { content: @fa-var-star-half; }\n.@{fa-css-prefix}-heart-o:before { content: @fa-var-heart-o; }\n.@{fa-css-prefix}-sign-out:before { content: @fa-var-sign-out; }\n.@{fa-css-prefix}-linkedin-square:before { content: @fa-var-linkedin-square; }\n.@{fa-css-prefix}-thumb-tack:before { content: @fa-var-thumb-tack; }\n.@{fa-css-prefix}-external-link:before { content: @fa-var-external-link; }\n.@{fa-css-prefix}-sign-in:before { content: @fa-var-sign-in; }\n.@{fa-css-prefix}-trophy:before { content: @fa-var-trophy; }\n.@{fa-css-prefix}-github-square:before { content: @fa-var-github-square; }\n.@{fa-css-prefix}-upload:before { content: @fa-var-upload; }\n.@{fa-css-prefix}-lemon-o:before { content: @fa-var-lemon-o; }\n.@{fa-css-prefix}-phone:before { content: @fa-var-phone; }\n.@{fa-css-prefix}-square-o:before { content: @fa-var-square-o; }\n.@{fa-css-prefix}-bookmark-o:before { content: @fa-var-bookmark-o; }\n.@{fa-css-prefix}-phone-square:before { content: @fa-var-phone-square; }\n.@{fa-css-prefix}-twitter:before { content: @fa-var-twitter; }\n.@{fa-css-prefix}-facebook:before { content: @fa-var-facebook; }\n.@{fa-css-prefix}-github:before { content: @fa-var-github; }\n.@{fa-css-prefix}-unlock:before { content: @fa-var-unlock; }\n.@{fa-css-prefix}-credit-card:before { content: @fa-var-credit-card; }\n.@{fa-css-prefix}-rss:before { content: @fa-var-rss; }\n.@{fa-css-prefix}-hdd-o:before { content: @fa-var-hdd-o; }\n.@{fa-css-prefix}-bullhorn:before { content: @fa-var-bullhorn; }\n.@{fa-css-prefix}-bell:before { content: @fa-var-bell; }\n.@{fa-css-prefix}-certificate:before { content: @fa-var-certificate; }\n.@{fa-css-prefix}-hand-o-right:before { content: @fa-var-hand-o-right; }\n.@{fa-css-prefix}-hand-o-left:before { content: @fa-var-hand-o-left; }\n.@{fa-css-prefix}-hand-o-up:before { content: @fa-var-hand-o-up; }\n.@{fa-css-prefix}-hand-o-down:before { content: @fa-var-hand-o-down; }\n.@{fa-css-prefix}-arrow-circle-left:before { content: @fa-var-arrow-circle-left; }\n.@{fa-css-prefix}-arrow-circle-right:before { content: @fa-var-arrow-circle-right; }\n.@{fa-css-prefix}-arrow-circle-up:before { content: @fa-var-arrow-circle-up; }\n.@{fa-css-prefix}-arrow-circle-down:before { content: @fa-var-arrow-circle-down; }\n.@{fa-css-prefix}-globe:before { content: @fa-var-globe; }\n.@{fa-css-prefix}-wrench:before { content: @fa-var-wrench; }\n.@{fa-css-prefix}-tasks:before { content: @fa-var-tasks; }\n.@{fa-css-prefix}-filter:before { content: @fa-var-filter; }\n.@{fa-css-prefix}-briefcase:before { content: @fa-var-briefcase; }\n.@{fa-css-prefix}-arrows-alt:before { content: @fa-var-arrows-alt; }\n.@{fa-css-prefix}-group:before,\n.@{fa-css-prefix}-users:before { content: @fa-var-users; }\n.@{fa-css-prefix}-chain:before,\n.@{fa-css-prefix}-link:before { content: @fa-var-link; }\n.@{fa-css-prefix}-cloud:before { content: @fa-var-cloud; }\n.@{fa-css-prefix}-flask:before { content: @fa-var-flask; }\n.@{fa-css-prefix}-cut:before,\n.@{fa-css-prefix}-scissors:before { content: @fa-var-scissors; }\n.@{fa-css-prefix}-copy:before,\n.@{fa-css-prefix}-files-o:before { content: @fa-var-files-o; }\n.@{fa-css-prefix}-paperclip:before { content: @fa-var-paperclip; }\n.@{fa-css-prefix}-save:before,\n.@{fa-css-prefix}-floppy-o:before { content: @fa-var-floppy-o; }\n.@{fa-css-prefix}-square:before { content: @fa-var-square; }\n.@{fa-css-prefix}-navicon:before,\n.@{fa-css-prefix}-reorder:before,\n.@{fa-css-prefix}-bars:before { content: @fa-var-bars; }\n.@{fa-css-prefix}-list-ul:before { content: @fa-var-list-ul; }\n.@{fa-css-prefix}-list-ol:before { content: @fa-var-list-ol; }\n.@{fa-css-prefix}-strikethrough:before { content: @fa-var-strikethrough; }\n.@{fa-css-prefix}-underline:before { content: @fa-var-underline; }\n.@{fa-css-prefix}-table:before { content: @fa-var-table; }\n.@{fa-css-prefix}-magic:before { content: @fa-var-magic; }\n.@{fa-css-prefix}-truck:before { content: @fa-var-truck; }\n.@{fa-css-prefix}-pinterest:before { content: @fa-var-pinterest; }\n.@{fa-css-prefix}-pinterest-square:before { content: @fa-var-pinterest-square; }\n.@{fa-css-prefix}-google-plus-square:before { content: @fa-var-google-plus-square; }\n.@{fa-css-prefix}-google-plus:before { content: @fa-var-google-plus; }\n.@{fa-css-prefix}-money:before { content: @fa-var-money; }\n.@{fa-css-prefix}-caret-down:before { content: @fa-var-caret-down; }\n.@{fa-css-prefix}-caret-up:before { content: @fa-var-caret-up; }\n.@{fa-css-prefix}-caret-left:before { content: @fa-var-caret-left; }\n.@{fa-css-prefix}-caret-right:before { content: @fa-var-caret-right; }\n.@{fa-css-prefix}-columns:before { content: @fa-var-columns; }\n.@{fa-css-prefix}-unsorted:before,\n.@{fa-css-prefix}-sort:before { content: @fa-var-sort; }\n.@{fa-css-prefix}-sort-down:before,\n.@{fa-css-prefix}-sort-desc:before { content: @fa-var-sort-desc; }\n.@{fa-css-prefix}-sort-up:before,\n.@{fa-css-prefix}-sort-asc:before { content: @fa-var-sort-asc; }\n.@{fa-css-prefix}-envelope:before { content: @fa-var-envelope; }\n.@{fa-css-prefix}-linkedin:before { content: @fa-var-linkedin; }\n.@{fa-css-prefix}-rotate-left:before,\n.@{fa-css-prefix}-undo:before { content: @fa-var-undo; }\n.@{fa-css-prefix}-legal:before,\n.@{fa-css-prefix}-gavel:before { content: @fa-var-gavel; }\n.@{fa-css-prefix}-dashboard:before,\n.@{fa-css-prefix}-tachometer:before { content: @fa-var-tachometer; }\n.@{fa-css-prefix}-comment-o:before { content: @fa-var-comment-o; }\n.@{fa-css-prefix}-comments-o:before { content: @fa-var-comments-o; }\n.@{fa-css-prefix}-flash:before,\n.@{fa-css-prefix}-bolt:before { content: @fa-var-bolt; }\n.@{fa-css-prefix}-sitemap:before { content: @fa-var-sitemap; }\n.@{fa-css-prefix}-umbrella:before { content: @fa-var-umbrella; }\n.@{fa-css-prefix}-paste:before,\n.@{fa-css-prefix}-clipboard:before { content: @fa-var-clipboard; }\n.@{fa-css-prefix}-lightbulb-o:before { content: @fa-var-lightbulb-o; }\n.@{fa-css-prefix}-exchange:before { content: @fa-var-exchange; }\n.@{fa-css-prefix}-cloud-download:before { content: @fa-var-cloud-download; }\n.@{fa-css-prefix}-cloud-upload:before { content: @fa-var-cloud-upload; }\n.@{fa-css-prefix}-user-md:before { content: @fa-var-user-md; }\n.@{fa-css-prefix}-stethoscope:before { content: @fa-var-stethoscope; }\n.@{fa-css-prefix}-suitcase:before { content: @fa-var-suitcase; }\n.@{fa-css-prefix}-bell-o:before { content: @fa-var-bell-o; }\n.@{fa-css-prefix}-coffee:before { content: @fa-var-coffee; }\n.@{fa-css-prefix}-cutlery:before { content: @fa-var-cutlery; }\n.@{fa-css-prefix}-file-text-o:before { content: @fa-var-file-text-o; }\n.@{fa-css-prefix}-building-o:before { content: @fa-var-building-o; }\n.@{fa-css-prefix}-hospital-o:before { content: @fa-var-hospital-o; }\n.@{fa-css-prefix}-ambulance:before { content: @fa-var-ambulance; }\n.@{fa-css-prefix}-medkit:before { content: @fa-var-medkit; }\n.@{fa-css-prefix}-fighter-jet:before { content: @fa-var-fighter-jet; }\n.@{fa-css-prefix}-beer:before { content: @fa-var-beer; }\n.@{fa-css-prefix}-h-square:before { content: @fa-var-h-square; }\n.@{fa-css-prefix}-plus-square:before { content: @fa-var-plus-square; }\n.@{fa-css-prefix}-angle-double-left:before { content: @fa-var-angle-double-left; }\n.@{fa-css-prefix}-angle-double-right:before { content: @fa-var-angle-double-right; }\n.@{fa-css-prefix}-angle-double-up:before { content: @fa-var-angle-double-up; }\n.@{fa-css-prefix}-angle-double-down:before { content: @fa-var-angle-double-down; }\n.@{fa-css-prefix}-angle-left:before { content: @fa-var-angle-left; }\n.@{fa-css-prefix}-angle-right:before { content: @fa-var-angle-right; }\n.@{fa-css-prefix}-angle-up:before { content: @fa-var-angle-up; }\n.@{fa-css-prefix}-angle-down:before { content: @fa-var-angle-down; }\n.@{fa-css-prefix}-desktop:before { content: @fa-var-desktop; }\n.@{fa-css-prefix}-laptop:before { content: @fa-var-laptop; }\n.@{fa-css-prefix}-tablet:before { content: @fa-var-tablet; }\n.@{fa-css-prefix}-mobile-phone:before,\n.@{fa-css-prefix}-mobile:before { content: @fa-var-mobile; }\n.@{fa-css-prefix}-circle-o:before { content: @fa-var-circle-o; }\n.@{fa-css-prefix}-quote-left:before { content: @fa-var-quote-left; }\n.@{fa-css-prefix}-quote-right:before { content: @fa-var-quote-right; }\n.@{fa-css-prefix}-spinner:before { content: @fa-var-spinner; }\n.@{fa-css-prefix}-circle:before { content: @fa-var-circle; }\n.@{fa-css-prefix}-mail-reply:before,\n.@{fa-css-prefix}-reply:before { content: @fa-var-reply; }\n.@{fa-css-prefix}-github-alt:before { content: @fa-var-github-alt; }\n.@{fa-css-prefix}-folder-o:before { content: @fa-var-folder-o; }\n.@{fa-css-prefix}-folder-open-o:before { content: @fa-var-folder-open-o; }\n.@{fa-css-prefix}-smile-o:before { content: @fa-var-smile-o; }\n.@{fa-css-prefix}-frown-o:before { content: @fa-var-frown-o; }\n.@{fa-css-prefix}-meh-o:before { content: @fa-var-meh-o; }\n.@{fa-css-prefix}-gamepad:before { content: @fa-var-gamepad; }\n.@{fa-css-prefix}-keyboard-o:before { content: @fa-var-keyboard-o; }\n.@{fa-css-prefix}-flag-o:before { content: @fa-var-flag-o; }\n.@{fa-css-prefix}-flag-checkered:before { content: @fa-var-flag-checkered; }\n.@{fa-css-prefix}-terminal:before { content: @fa-var-terminal; }\n.@{fa-css-prefix}-code:before { content: @fa-var-code; }\n.@{fa-css-prefix}-mail-reply-all:before,\n.@{fa-css-prefix}-reply-all:before { content: @fa-var-reply-all; }\n.@{fa-css-prefix}-star-half-empty:before,\n.@{fa-css-prefix}-star-half-full:before,\n.@{fa-css-prefix}-star-half-o:before { content: @fa-var-star-half-o; }\n.@{fa-css-prefix}-location-arrow:before { content: @fa-var-location-arrow; }\n.@{fa-css-prefix}-crop:before { content: @fa-var-crop; }\n.@{fa-css-prefix}-code-fork:before { content: @fa-var-code-fork; }\n.@{fa-css-prefix}-unlink:before,\n.@{fa-css-prefix}-chain-broken:before { content: @fa-var-chain-broken; }\n.@{fa-css-prefix}-question:before { content: @fa-var-question; }\n.@{fa-css-prefix}-info:before { content: @fa-var-info; }\n.@{fa-css-prefix}-exclamation:before { content: @fa-var-exclamation; }\n.@{fa-css-prefix}-superscript:before { content: @fa-var-superscript; }\n.@{fa-css-prefix}-subscript:before { content: @fa-var-subscript; }\n.@{fa-css-prefix}-eraser:before { content: @fa-var-eraser; }\n.@{fa-css-prefix}-puzzle-piece:before { content: @fa-var-puzzle-piece; }\n.@{fa-css-prefix}-microphone:before { content: @fa-var-microphone; }\n.@{fa-css-prefix}-microphone-slash:before { content: @fa-var-microphone-slash; }\n.@{fa-css-prefix}-shield:before { content: @fa-var-shield; }\n.@{fa-css-prefix}-calendar-o:before { content: @fa-var-calendar-o; }\n.@{fa-css-prefix}-fire-extinguisher:before { content: @fa-var-fire-extinguisher; }\n.@{fa-css-prefix}-rocket:before { content: @fa-var-rocket; }\n.@{fa-css-prefix}-maxcdn:before { content: @fa-var-maxcdn; }\n.@{fa-css-prefix}-chevron-circle-left:before { content: @fa-var-chevron-circle-left; }\n.@{fa-css-prefix}-chevron-circle-right:before { content: @fa-var-chevron-circle-right; }\n.@{fa-css-prefix}-chevron-circle-up:before { content: @fa-var-chevron-circle-up; }\n.@{fa-css-prefix}-chevron-circle-down:before { content: @fa-var-chevron-circle-down; }\n.@{fa-css-prefix}-html5:before { content: @fa-var-html5; }\n.@{fa-css-prefix}-css3:before { content: @fa-var-css3; }\n.@{fa-css-prefix}-anchor:before { content: @fa-var-anchor; }\n.@{fa-css-prefix}-unlock-alt:before { content: @fa-var-unlock-alt; }\n.@{fa-css-prefix}-bullseye:before { content: @fa-var-bullseye; }\n.@{fa-css-prefix}-ellipsis-h:before { content: @fa-var-ellipsis-h; }\n.@{fa-css-prefix}-ellipsis-v:before { content: @fa-var-ellipsis-v; }\n.@{fa-css-prefix}-rss-square:before { content: @fa-var-rss-square; }\n.@{fa-css-prefix}-play-circle:before { content: @fa-var-play-circle; }\n.@{fa-css-prefix}-ticket:before { content: @fa-var-ticket; }\n.@{fa-css-prefix}-minus-square:before { content: @fa-var-minus-square; }\n.@{fa-css-prefix}-minus-square-o:before { content: @fa-var-minus-square-o; }\n.@{fa-css-prefix}-level-up:before { content: @fa-var-level-up; }\n.@{fa-css-prefix}-level-down:before { content: @fa-var-level-down; }\n.@{fa-css-prefix}-check-square:before { content: @fa-var-check-square; }\n.@{fa-css-prefix}-pencil-square:before { content: @fa-var-pencil-square; }\n.@{fa-css-prefix}-external-link-square:before { content: @fa-var-external-link-square; }\n.@{fa-css-prefix}-share-square:before { content: @fa-var-share-square; }\n.@{fa-css-prefix}-compass:before { content: @fa-var-compass; }\n.@{fa-css-prefix}-toggle-down:before,\n.@{fa-css-prefix}-caret-square-o-down:before { content: @fa-var-caret-square-o-down; }\n.@{fa-css-prefix}-toggle-up:before,\n.@{fa-css-prefix}-caret-square-o-up:before { content: @fa-var-caret-square-o-up; }\n.@{fa-css-prefix}-toggle-right:before,\n.@{fa-css-prefix}-caret-square-o-right:before { content: @fa-var-caret-square-o-right; }\n.@{fa-css-prefix}-euro:before,\n.@{fa-css-prefix}-eur:before { content: @fa-var-eur; }\n.@{fa-css-prefix}-gbp:before { content: @fa-var-gbp; }\n.@{fa-css-prefix}-dollar:before,\n.@{fa-css-prefix}-usd:before { content: @fa-var-usd; }\n.@{fa-css-prefix}-rupee:before,\n.@{fa-css-prefix}-inr:before { content: @fa-var-inr; }\n.@{fa-css-prefix}-cny:before,\n.@{fa-css-prefix}-rmb:before,\n.@{fa-css-prefix}-yen:before,\n.@{fa-css-prefix}-jpy:before { content: @fa-var-jpy; }\n.@{fa-css-prefix}-ruble:before,\n.@{fa-css-prefix}-rouble:before,\n.@{fa-css-prefix}-rub:before { content: @fa-var-rub; }\n.@{fa-css-prefix}-won:before,\n.@{fa-css-prefix}-krw:before { content: @fa-var-krw; }\n.@{fa-css-prefix}-bitcoin:before,\n.@{fa-css-prefix}-btc:before { content: @fa-var-btc; }\n.@{fa-css-prefix}-file:before { content: @fa-var-file; }\n.@{fa-css-prefix}-file-text:before { content: @fa-var-file-text; }\n.@{fa-css-prefix}-sort-alpha-asc:before { content: @fa-var-sort-alpha-asc; }\n.@{fa-css-prefix}-sort-alpha-desc:before { content: @fa-var-sort-alpha-desc; }\n.@{fa-css-prefix}-sort-amount-asc:before { content: @fa-var-sort-amount-asc; }\n.@{fa-css-prefix}-sort-amount-desc:before { content: @fa-var-sort-amount-desc; }\n.@{fa-css-prefix}-sort-numeric-asc:before { content: @fa-var-sort-numeric-asc; }\n.@{fa-css-prefix}-sort-numeric-desc:before { content: @fa-var-sort-numeric-desc; }\n.@{fa-css-prefix}-thumbs-up:before { content: @fa-var-thumbs-up; }\n.@{fa-css-prefix}-thumbs-down:before { content: @fa-var-thumbs-down; }\n.@{fa-css-prefix}-youtube-square:before { content: @fa-var-youtube-square; }\n.@{fa-css-prefix}-youtube:before { content: @fa-var-youtube; }\n.@{fa-css-prefix}-xing:before { content: @fa-var-xing; }\n.@{fa-css-prefix}-xing-square:before { content: @fa-var-xing-square; }\n.@{fa-css-prefix}-youtube-play:before { content: @fa-var-youtube-play; }\n.@{fa-css-prefix}-dropbox:before { content: @fa-var-dropbox; }\n.@{fa-css-prefix}-stack-overflow:before { content: @fa-var-stack-overflow; }\n.@{fa-css-prefix}-instagram:before { content: @fa-var-instagram; }\n.@{fa-css-prefix}-flickr:before { content: @fa-var-flickr; }\n.@{fa-css-prefix}-adn:before { content: @fa-var-adn; }\n.@{fa-css-prefix}-bitbucket:before { content: @fa-var-bitbucket; }\n.@{fa-css-prefix}-bitbucket-square:before { content: @fa-var-bitbucket-square; }\n.@{fa-css-prefix}-tumblr:before { content: @fa-var-tumblr; }\n.@{fa-css-prefix}-tumblr-square:before { content: @fa-var-tumblr-square; }\n.@{fa-css-prefix}-long-arrow-down:before { content: @fa-var-long-arrow-down; }\n.@{fa-css-prefix}-long-arrow-up:before { content: @fa-var-long-arrow-up; }\n.@{fa-css-prefix}-long-arrow-left:before { content: @fa-var-long-arrow-left; }\n.@{fa-css-prefix}-long-arrow-right:before { content: @fa-var-long-arrow-right; }\n.@{fa-css-prefix}-apple:before { content: @fa-var-apple; }\n.@{fa-css-prefix}-windows:before { content: @fa-var-windows; }\n.@{fa-css-prefix}-android:before { content: @fa-var-android; }\n.@{fa-css-prefix}-linux:before { content: @fa-var-linux; }\n.@{fa-css-prefix}-dribbble:before { content: @fa-var-dribbble; }\n.@{fa-css-prefix}-skype:before { content: @fa-var-skype; }\n.@{fa-css-prefix}-foursquare:before { content: @fa-var-foursquare; }\n.@{fa-css-prefix}-trello:before { content: @fa-var-trello; }\n.@{fa-css-prefix}-female:before { content: @fa-var-female; }\n.@{fa-css-prefix}-male:before { content: @fa-var-male; }\n.@{fa-css-prefix}-gittip:before { content: @fa-var-gittip; }\n.@{fa-css-prefix}-sun-o:before { content: @fa-var-sun-o; }\n.@{fa-css-prefix}-moon-o:before { content: @fa-var-moon-o; }\n.@{fa-css-prefix}-archive:before { content: @fa-var-archive; }\n.@{fa-css-prefix}-bug:before { content: @fa-var-bug; }\n.@{fa-css-prefix}-vk:before { content: @fa-var-vk; }\n.@{fa-css-prefix}-weibo:before { content: @fa-var-weibo; }\n.@{fa-css-prefix}-renren:before { content: @fa-var-renren; }\n.@{fa-css-prefix}-pagelines:before { content: @fa-var-pagelines; }\n.@{fa-css-prefix}-stack-exchange:before { content: @fa-var-stack-exchange; }\n.@{fa-css-prefix}-arrow-circle-o-right:before { content: @fa-var-arrow-circle-o-right; }\n.@{fa-css-prefix}-arrow-circle-o-left:before { content: @fa-var-arrow-circle-o-left; }\n.@{fa-css-prefix}-toggle-left:before,\n.@{fa-css-prefix}-caret-square-o-left:before { content: @fa-var-caret-square-o-left; }\n.@{fa-css-prefix}-dot-circle-o:before { content: @fa-var-dot-circle-o; }\n.@{fa-css-prefix}-wheelchair:before { content: @fa-var-wheelchair; }\n.@{fa-css-prefix}-vimeo-square:before { content: @fa-var-vimeo-square; }\n.@{fa-css-prefix}-turkish-lira:before,\n.@{fa-css-prefix}-try:before { content: @fa-var-try; }\n.@{fa-css-prefix}-plus-square-o:before { content: @fa-var-plus-square-o; }\n.@{fa-css-prefix}-space-shuttle:before { content: @fa-var-space-shuttle; }\n.@{fa-css-prefix}-slack:before { content: @fa-var-slack; }\n.@{fa-css-prefix}-envelope-square:before { content: @fa-var-envelope-square; }\n.@{fa-css-prefix}-wordpress:before { content: @fa-var-wordpress; }\n.@{fa-css-prefix}-openid:before { content: @fa-var-openid; }\n.@{fa-css-prefix}-institution:before,\n.@{fa-css-prefix}-bank:before,\n.@{fa-css-prefix}-university:before { content: @fa-var-university; }\n.@{fa-css-prefix}-mortar-board:before,\n.@{fa-css-prefix}-graduation-cap:before { content: @fa-var-graduation-cap; }\n.@{fa-css-prefix}-yahoo:before { content: @fa-var-yahoo; }\n.@{fa-css-prefix}-google:before { content: @fa-var-google; }\n.@{fa-css-prefix}-reddit:before { content: @fa-var-reddit; }\n.@{fa-css-prefix}-reddit-square:before { content: @fa-var-reddit-square; }\n.@{fa-css-prefix}-stumbleupon-circle:before { content: @fa-var-stumbleupon-circle; }\n.@{fa-css-prefix}-stumbleupon:before { content: @fa-var-stumbleupon; }\n.@{fa-css-prefix}-delicious:before { content: @fa-var-delicious; }\n.@{fa-css-prefix}-digg:before { content: @fa-var-digg; }\n.@{fa-css-prefix}-pied-piper-square:before,\n.@{fa-css-prefix}-pied-piper:before { content: @fa-var-pied-piper; }\n.@{fa-css-prefix}-pied-piper-alt:before { content: @fa-var-pied-piper-alt; }\n.@{fa-css-prefix}-drupal:before { content: @fa-var-drupal; }\n.@{fa-css-prefix}-joomla:before { content: @fa-var-joomla; }\n.@{fa-css-prefix}-language:before { content: @fa-var-language; }\n.@{fa-css-prefix}-fax:before { content: @fa-var-fax; }\n.@{fa-css-prefix}-building:before { content: @fa-var-building; }\n.@{fa-css-prefix}-child:before { content: @fa-var-child; }\n.@{fa-css-prefix}-paw:before { content: @fa-var-paw; }\n.@{fa-css-prefix}-spoon:before { content: @fa-var-spoon; }\n.@{fa-css-prefix}-cube:before { content: @fa-var-cube; }\n.@{fa-css-prefix}-cubes:before { content: @fa-var-cubes; }\n.@{fa-css-prefix}-behance:before { content: @fa-var-behance; }\n.@{fa-css-prefix}-behance-square:before { content: @fa-var-behance-square; }\n.@{fa-css-prefix}-steam:before { content: @fa-var-steam; }\n.@{fa-css-prefix}-steam-square:before { content: @fa-var-steam-square; }\n.@{fa-css-prefix}-recycle:before { content: @fa-var-recycle; }\n.@{fa-css-prefix}-automobile:before,\n.@{fa-css-prefix}-car:before { content: @fa-var-car; }\n.@{fa-css-prefix}-cab:before,\n.@{fa-css-prefix}-taxi:before { content: @fa-var-taxi; }\n.@{fa-css-prefix}-tree:before { content: @fa-var-tree; }\n.@{fa-css-prefix}-spotify:before { content: @fa-var-spotify; }\n.@{fa-css-prefix}-deviantart:before { content: @fa-var-deviantart; }\n.@{fa-css-prefix}-soundcloud:before { content: @fa-var-soundcloud; }\n.@{fa-css-prefix}-database:before { content: @fa-var-database; }\n.@{fa-css-prefix}-file-pdf-o:before { content: @fa-var-file-pdf-o; }\n.@{fa-css-prefix}-file-word-o:before { content: @fa-var-file-word-o; }\n.@{fa-css-prefix}-file-excel-o:before { content: @fa-var-file-excel-o; }\n.@{fa-css-prefix}-file-powerpoint-o:before { content: @fa-var-file-powerpoint-o; }\n.@{fa-css-prefix}-file-photo-o:before,\n.@{fa-css-prefix}-file-picture-o:before,\n.@{fa-css-prefix}-file-image-o:before { content: @fa-var-file-image-o; }\n.@{fa-css-prefix}-file-zip-o:before,\n.@{fa-css-prefix}-file-archive-o:before { content: @fa-var-file-archive-o; }\n.@{fa-css-prefix}-file-sound-o:before,\n.@{fa-css-prefix}-file-audio-o:before { content: @fa-var-file-audio-o; }\n.@{fa-css-prefix}-file-movie-o:before,\n.@{fa-css-prefix}-file-video-o:before { content: @fa-var-file-video-o; }\n.@{fa-css-prefix}-file-code-o:before { content: @fa-var-file-code-o; }\n.@{fa-css-prefix}-vine:before { content: @fa-var-vine; }\n.@{fa-css-prefix}-codepen:before { content: @fa-var-codepen; }\n.@{fa-css-prefix}-jsfiddle:before { content: @fa-var-jsfiddle; }\n.@{fa-css-prefix}-life-bouy:before,\n.@{fa-css-prefix}-life-saver:before,\n.@{fa-css-prefix}-support:before,\n.@{fa-css-prefix}-life-ring:before { content: @fa-var-life-ring; }\n.@{fa-css-prefix}-circle-o-notch:before { content: @fa-var-circle-o-notch; }\n.@{fa-css-prefix}-ra:before,\n.@{fa-css-prefix}-rebel:before { content: @fa-var-rebel; }\n.@{fa-css-prefix}-ge:before,\n.@{fa-css-prefix}-empire:before { content: @fa-var-empire; }\n.@{fa-css-prefix}-git-square:before { content: @fa-var-git-square; }\n.@{fa-css-prefix}-git:before { content: @fa-var-git; }\n.@{fa-css-prefix}-hacker-news:before { content: @fa-var-hacker-news; }\n.@{fa-css-prefix}-tencent-weibo:before { content: @fa-var-tencent-weibo; }\n.@{fa-css-prefix}-qq:before { content: @fa-var-qq; }\n.@{fa-css-prefix}-wechat:before,\n.@{fa-css-prefix}-weixin:before { content: @fa-var-weixin; }\n.@{fa-css-prefix}-send:before,\n.@{fa-css-prefix}-paper-plane:before { content: @fa-var-paper-plane; }\n.@{fa-css-prefix}-send-o:before,\n.@{fa-css-prefix}-paper-plane-o:before { content: @fa-var-paper-plane-o; }\n.@{fa-css-prefix}-history:before { content: @fa-var-history; }\n.@{fa-css-prefix}-circle-thin:before { content: @fa-var-circle-thin; }\n.@{fa-css-prefix}-header:before { content: @fa-var-header; }\n.@{fa-css-prefix}-paragraph:before { content: @fa-var-paragraph; }\n.@{fa-css-prefix}-sliders:before { content: @fa-var-sliders; }\n.@{fa-css-prefix}-share-alt:before { content: @fa-var-share-alt; }\n.@{fa-css-prefix}-share-alt-square:before { content: @fa-var-share-alt-square; }\n.@{fa-css-prefix}-bomb:before { content: @fa-var-bomb; }\n"
  },
  {
    "path": "style/lib/font-awesome/less/larger.less",
    "content": "// Icon Sizes\n// -------------------------\n\n/* makes the font 33% larger relative to the icon container */\n.@{fa-css-prefix}-lg {\n  font-size: (4em / 3);\n  line-height: (3em / 4);\n  vertical-align: -15%;\n}\n.@{fa-css-prefix}-2x { font-size: 2em; }\n.@{fa-css-prefix}-3x { font-size: 3em; }\n.@{fa-css-prefix}-4x { font-size: 4em; }\n.@{fa-css-prefix}-5x { font-size: 5em; }\n"
  },
  {
    "path": "style/lib/font-awesome/less/list.less",
    "content": "// List Icons\n// -------------------------\n\n.@{fa-css-prefix}-ul {\n  padding-left: 0;\n  margin-left: @fa-li-width;\n  list-style-type: none;\n  > li { position: relative; }\n}\n.@{fa-css-prefix}-li {\n  position: absolute;\n  left: -@fa-li-width;\n  width: @fa-li-width;\n  top: (2em / 14);\n  text-align: center;\n  &.@{fa-css-prefix}-lg {\n    left: -@fa-li-width + (4em / 14);\n  }\n}\n"
  },
  {
    "path": "style/lib/font-awesome/less/mixins.less",
    "content": "// Mixins\n// --------------------------\n\n.fa-icon-rotate(@degrees, @rotation) {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);\n  -webkit-transform: rotate(@degrees);\n     -moz-transform: rotate(@degrees);\n      -ms-transform: rotate(@degrees);\n       -o-transform: rotate(@degrees);\n          transform: rotate(@degrees);\n}\n\n.fa-icon-flip(@horiz, @vert, @rotation) {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1);\n  -webkit-transform: scale(@horiz, @vert);\n     -moz-transform: scale(@horiz, @vert);\n      -ms-transform: scale(@horiz, @vert);\n       -o-transform: scale(@horiz, @vert);\n          transform: scale(@horiz, @vert);\n}\n"
  },
  {
    "path": "style/lib/font-awesome/less/path.less",
    "content": "/* FONT PATH\n * -------------------------- */\n\n@font-face {\n  font-family: 'FontAwesome';\n  src: ~\"url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}')\";\n  src: ~\"url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype')\",\n    ~\"url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff')\",\n    ~\"url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype')\",\n    ~\"url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg')\";\n//  src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts\n  font-weight: normal;\n  font-style: normal;\n}\n"
  },
  {
    "path": "style/lib/font-awesome/less/rotated-flipped.less",
    "content": "// Rotated & Flipped Icons\n// -------------------------\n\n.@{fa-css-prefix}-rotate-90  { .fa-icon-rotate(90deg, 1);  }\n.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }\n.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }\n\n.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }\n.@{fa-css-prefix}-flip-vertical   { .fa-icon-flip(1, -1, 2); }\n"
  },
  {
    "path": "style/lib/font-awesome/less/spinning.less",
    "content": "// Spinning Icons\n// --------------------------\n\n.@{fa-css-prefix}-spin {\n  -webkit-animation: spin 2s infinite linear;\n  -moz-animation: spin 2s infinite linear;\n  -o-animation: spin 2s infinite linear;\n  animation: spin 2s infinite linear;\n}\n\n@-moz-keyframes spin {\n  0% { -moz-transform: rotate(0deg); }\n  100% { -moz-transform: rotate(359deg); }\n}\n@-webkit-keyframes spin {\n  0% { -webkit-transform: rotate(0deg); }\n  100% { -webkit-transform: rotate(359deg); }\n}\n@-o-keyframes spin {\n  0% { -o-transform: rotate(0deg); }\n  100% { -o-transform: rotate(359deg); }\n}\n@keyframes spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(359deg);\n    transform: rotate(359deg);\n  }\n}\n"
  },
  {
    "path": "style/lib/font-awesome/less/stacked.less",
    "content": "// Stacked Icons\n// -------------------------\n\n.@{fa-css-prefix}-stack {\n  position: relative;\n  display: inline-block;\n  width: 2em;\n  height: 2em;\n  line-height: 2em;\n  vertical-align: middle;\n}\n.@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {\n  position: absolute;\n  left: 0;\n  width: 100%;\n  text-align: center;\n}\n.@{fa-css-prefix}-stack-1x { line-height: inherit; }\n.@{fa-css-prefix}-stack-2x { font-size: 2em; }\n.@{fa-css-prefix}-inverse { color: @fa-inverse; }\n"
  },
  {
    "path": "style/lib/font-awesome/less/variables.less",
    "content": "// Variables\n// --------------------------\n\n@fa-font-path:        \"../fonts\";\n//@fa-font-path:        \"//netdna.bootstrapcdn.com/font-awesome/4.1.0/fonts\"; // for referencing Bootstrap CDN font files directly\n@fa-css-prefix:       fa;\n@fa-version:          \"4.1.0\";\n@fa-border-color:     #eee;\n@fa-inverse:          #fff;\n@fa-li-width:         (30em / 14);\n\n@fa-var-adjust: \"\\f042\";\n@fa-var-adn: \"\\f170\";\n@fa-var-align-center: \"\\f037\";\n@fa-var-align-justify: \"\\f039\";\n@fa-var-align-left: \"\\f036\";\n@fa-var-align-right: \"\\f038\";\n@fa-var-ambulance: \"\\f0f9\";\n@fa-var-anchor: \"\\f13d\";\n@fa-var-android: \"\\f17b\";\n@fa-var-angle-double-down: \"\\f103\";\n@fa-var-angle-double-left: \"\\f100\";\n@fa-var-angle-double-right: \"\\f101\";\n@fa-var-angle-double-up: \"\\f102\";\n@fa-var-angle-down: \"\\f107\";\n@fa-var-angle-left: \"\\f104\";\n@fa-var-angle-right: \"\\f105\";\n@fa-var-angle-up: \"\\f106\";\n@fa-var-apple: \"\\f179\";\n@fa-var-archive: \"\\f187\";\n@fa-var-arrow-circle-down: \"\\f0ab\";\n@fa-var-arrow-circle-left: \"\\f0a8\";\n@fa-var-arrow-circle-o-down: \"\\f01a\";\n@fa-var-arrow-circle-o-left: \"\\f190\";\n@fa-var-arrow-circle-o-right: \"\\f18e\";\n@fa-var-arrow-circle-o-up: \"\\f01b\";\n@fa-var-arrow-circle-right: \"\\f0a9\";\n@fa-var-arrow-circle-up: \"\\f0aa\";\n@fa-var-arrow-down: \"\\f063\";\n@fa-var-arrow-left: \"\\f060\";\n@fa-var-arrow-right: \"\\f061\";\n@fa-var-arrow-up: \"\\f062\";\n@fa-var-arrows: \"\\f047\";\n@fa-var-arrows-alt: \"\\f0b2\";\n@fa-var-arrows-h: \"\\f07e\";\n@fa-var-arrows-v: \"\\f07d\";\n@fa-var-asterisk: \"\\f069\";\n@fa-var-automobile: \"\\f1b9\";\n@fa-var-backward: \"\\f04a\";\n@fa-var-ban: \"\\f05e\";\n@fa-var-bank: \"\\f19c\";\n@fa-var-bar-chart-o: \"\\f080\";\n@fa-var-barcode: \"\\f02a\";\n@fa-var-bars: \"\\f0c9\";\n@fa-var-beer: \"\\f0fc\";\n@fa-var-behance: \"\\f1b4\";\n@fa-var-behance-square: \"\\f1b5\";\n@fa-var-bell: \"\\f0f3\";\n@fa-var-bell-o: \"\\f0a2\";\n@fa-var-bitbucket: \"\\f171\";\n@fa-var-bitbucket-square: \"\\f172\";\n@fa-var-bitcoin: \"\\f15a\";\n@fa-var-bold: \"\\f032\";\n@fa-var-bolt: \"\\f0e7\";\n@fa-var-bomb: \"\\f1e2\";\n@fa-var-book: \"\\f02d\";\n@fa-var-bookmark: \"\\f02e\";\n@fa-var-bookmark-o: \"\\f097\";\n@fa-var-briefcase: \"\\f0b1\";\n@fa-var-btc: \"\\f15a\";\n@fa-var-bug: \"\\f188\";\n@fa-var-building: \"\\f1ad\";\n@fa-var-building-o: \"\\f0f7\";\n@fa-var-bullhorn: \"\\f0a1\";\n@fa-var-bullseye: \"\\f140\";\n@fa-var-cab: \"\\f1ba\";\n@fa-var-calendar: \"\\f073\";\n@fa-var-calendar-o: \"\\f133\";\n@fa-var-camera: \"\\f030\";\n@fa-var-camera-retro: \"\\f083\";\n@fa-var-car: \"\\f1b9\";\n@fa-var-caret-down: \"\\f0d7\";\n@fa-var-caret-left: \"\\f0d9\";\n@fa-var-caret-right: \"\\f0da\";\n@fa-var-caret-square-o-down: \"\\f150\";\n@fa-var-caret-square-o-left: \"\\f191\";\n@fa-var-caret-square-o-right: \"\\f152\";\n@fa-var-caret-square-o-up: \"\\f151\";\n@fa-var-caret-up: \"\\f0d8\";\n@fa-var-certificate: \"\\f0a3\";\n@fa-var-chain: \"\\f0c1\";\n@fa-var-chain-broken: \"\\f127\";\n@fa-var-check: \"\\f00c\";\n@fa-var-check-circle: \"\\f058\";\n@fa-var-check-circle-o: \"\\f05d\";\n@fa-var-check-square: \"\\f14a\";\n@fa-var-check-square-o: \"\\f046\";\n@fa-var-chevron-circle-down: \"\\f13a\";\n@fa-var-chevron-circle-left: \"\\f137\";\n@fa-var-chevron-circle-right: \"\\f138\";\n@fa-var-chevron-circle-up: \"\\f139\";\n@fa-var-chevron-down: \"\\f078\";\n@fa-var-chevron-left: \"\\f053\";\n@fa-var-chevron-right: \"\\f054\";\n@fa-var-chevron-up: \"\\f077\";\n@fa-var-child: \"\\f1ae\";\n@fa-var-circle: \"\\f111\";\n@fa-var-circle-o: \"\\f10c\";\n@fa-var-circle-o-notch: \"\\f1ce\";\n@fa-var-circle-thin: \"\\f1db\";\n@fa-var-clipboard: \"\\f0ea\";\n@fa-var-clock-o: \"\\f017\";\n@fa-var-cloud: \"\\f0c2\";\n@fa-var-cloud-download: \"\\f0ed\";\n@fa-var-cloud-upload: \"\\f0ee\";\n@fa-var-cny: \"\\f157\";\n@fa-var-code: \"\\f121\";\n@fa-var-code-fork: \"\\f126\";\n@fa-var-codepen: \"\\f1cb\";\n@fa-var-coffee: \"\\f0f4\";\n@fa-var-cog: \"\\f013\";\n@fa-var-cogs: \"\\f085\";\n@fa-var-columns: \"\\f0db\";\n@fa-var-comment: \"\\f075\";\n@fa-var-comment-o: \"\\f0e5\";\n@fa-var-comments: \"\\f086\";\n@fa-var-comments-o: \"\\f0e6\";\n@fa-var-compass: \"\\f14e\";\n@fa-var-compress: \"\\f066\";\n@fa-var-copy: \"\\f0c5\";\n@fa-var-credit-card: \"\\f09d\";\n@fa-var-crop: \"\\f125\";\n@fa-var-crosshairs: \"\\f05b\";\n@fa-var-css3: \"\\f13c\";\n@fa-var-cube: \"\\f1b2\";\n@fa-var-cubes: \"\\f1b3\";\n@fa-var-cut: \"\\f0c4\";\n@fa-var-cutlery: \"\\f0f5\";\n@fa-var-dashboard: \"\\f0e4\";\n@fa-var-database: \"\\f1c0\";\n@fa-var-dedent: \"\\f03b\";\n@fa-var-delicious: \"\\f1a5\";\n@fa-var-desktop: \"\\f108\";\n@fa-var-deviantart: \"\\f1bd\";\n@fa-var-digg: \"\\f1a6\";\n@fa-var-dollar: \"\\f155\";\n@fa-var-dot-circle-o: \"\\f192\";\n@fa-var-download: \"\\f019\";\n@fa-var-dribbble: \"\\f17d\";\n@fa-var-dropbox: \"\\f16b\";\n@fa-var-drupal: \"\\f1a9\";\n@fa-var-edit: \"\\f044\";\n@fa-var-eject: \"\\f052\";\n@fa-var-ellipsis-h: \"\\f141\";\n@fa-var-ellipsis-v: \"\\f142\";\n@fa-var-empire: \"\\f1d1\";\n@fa-var-envelope: \"\\f0e0\";\n@fa-var-envelope-o: \"\\f003\";\n@fa-var-envelope-square: \"\\f199\";\n@fa-var-eraser: \"\\f12d\";\n@fa-var-eur: \"\\f153\";\n@fa-var-euro: \"\\f153\";\n@fa-var-exchange: \"\\f0ec\";\n@fa-var-exclamation: \"\\f12a\";\n@fa-var-exclamation-circle: \"\\f06a\";\n@fa-var-exclamation-triangle: \"\\f071\";\n@fa-var-expand: \"\\f065\";\n@fa-var-external-link: \"\\f08e\";\n@fa-var-external-link-square: \"\\f14c\";\n@fa-var-eye: \"\\f06e\";\n@fa-var-eye-slash: \"\\f070\";\n@fa-var-facebook: \"\\f09a\";\n@fa-var-facebook-square: \"\\f082\";\n@fa-var-fast-backward: \"\\f049\";\n@fa-var-fast-forward: \"\\f050\";\n@fa-var-fax: \"\\f1ac\";\n@fa-var-female: \"\\f182\";\n@fa-var-fighter-jet: \"\\f0fb\";\n@fa-var-file: \"\\f15b\";\n@fa-var-file-archive-o: \"\\f1c6\";\n@fa-var-file-audio-o: \"\\f1c7\";\n@fa-var-file-code-o: \"\\f1c9\";\n@fa-var-file-excel-o: \"\\f1c3\";\n@fa-var-file-image-o: \"\\f1c5\";\n@fa-var-file-movie-o: \"\\f1c8\";\n@fa-var-file-o: \"\\f016\";\n@fa-var-file-pdf-o: \"\\f1c1\";\n@fa-var-file-photo-o: \"\\f1c5\";\n@fa-var-file-picture-o: \"\\f1c5\";\n@fa-var-file-powerpoint-o: \"\\f1c4\";\n@fa-var-file-sound-o: \"\\f1c7\";\n@fa-var-file-text: \"\\f15c\";\n@fa-var-file-text-o: \"\\f0f6\";\n@fa-var-file-video-o: \"\\f1c8\";\n@fa-var-file-word-o: \"\\f1c2\";\n@fa-var-file-zip-o: \"\\f1c6\";\n@fa-var-files-o: \"\\f0c5\";\n@fa-var-film: \"\\f008\";\n@fa-var-filter: \"\\f0b0\";\n@fa-var-fire: \"\\f06d\";\n@fa-var-fire-extinguisher: \"\\f134\";\n@fa-var-flag: \"\\f024\";\n@fa-var-flag-checkered: \"\\f11e\";\n@fa-var-flag-o: \"\\f11d\";\n@fa-var-flash: \"\\f0e7\";\n@fa-var-flask: \"\\f0c3\";\n@fa-var-flickr: \"\\f16e\";\n@fa-var-floppy-o: \"\\f0c7\";\n@fa-var-folder: \"\\f07b\";\n@fa-var-folder-o: \"\\f114\";\n@fa-var-folder-open: \"\\f07c\";\n@fa-var-folder-open-o: \"\\f115\";\n@fa-var-font: \"\\f031\";\n@fa-var-forward: \"\\f04e\";\n@fa-var-foursquare: \"\\f180\";\n@fa-var-frown-o: \"\\f119\";\n@fa-var-gamepad: \"\\f11b\";\n@fa-var-gavel: \"\\f0e3\";\n@fa-var-gbp: \"\\f154\";\n@fa-var-ge: \"\\f1d1\";\n@fa-var-gear: \"\\f013\";\n@fa-var-gears: \"\\f085\";\n@fa-var-gift: \"\\f06b\";\n@fa-var-git: \"\\f1d3\";\n@fa-var-git-square: \"\\f1d2\";\n@fa-var-github: \"\\f09b\";\n@fa-var-github-alt: \"\\f113\";\n@fa-var-github-square: \"\\f092\";\n@fa-var-gittip: \"\\f184\";\n@fa-var-glass: \"\\f000\";\n@fa-var-globe: \"\\f0ac\";\n@fa-var-google: \"\\f1a0\";\n@fa-var-google-plus: \"\\f0d5\";\n@fa-var-google-plus-square: \"\\f0d4\";\n@fa-var-graduation-cap: \"\\f19d\";\n@fa-var-group: \"\\f0c0\";\n@fa-var-h-square: \"\\f0fd\";\n@fa-var-hacker-news: \"\\f1d4\";\n@fa-var-hand-o-down: \"\\f0a7\";\n@fa-var-hand-o-left: \"\\f0a5\";\n@fa-var-hand-o-right: \"\\f0a4\";\n@fa-var-hand-o-up: \"\\f0a6\";\n@fa-var-hdd-o: \"\\f0a0\";\n@fa-var-header: \"\\f1dc\";\n@fa-var-headphones: \"\\f025\";\n@fa-var-heart: \"\\f004\";\n@fa-var-heart-o: \"\\f08a\";\n@fa-var-history: \"\\f1da\";\n@fa-var-home: \"\\f015\";\n@fa-var-hospital-o: \"\\f0f8\";\n@fa-var-html5: \"\\f13b\";\n@fa-var-image: \"\\f03e\";\n@fa-var-inbox: \"\\f01c\";\n@fa-var-indent: \"\\f03c\";\n@fa-var-info: \"\\f129\";\n@fa-var-info-circle: \"\\f05a\";\n@fa-var-inr: \"\\f156\";\n@fa-var-instagram: \"\\f16d\";\n@fa-var-institution: \"\\f19c\";\n@fa-var-italic: \"\\f033\";\n@fa-var-joomla: \"\\f1aa\";\n@fa-var-jpy: \"\\f157\";\n@fa-var-jsfiddle: \"\\f1cc\";\n@fa-var-key: \"\\f084\";\n@fa-var-keyboard-o: \"\\f11c\";\n@fa-var-krw: \"\\f159\";\n@fa-var-language: \"\\f1ab\";\n@fa-var-laptop: \"\\f109\";\n@fa-var-leaf: \"\\f06c\";\n@fa-var-legal: \"\\f0e3\";\n@fa-var-lemon-o: \"\\f094\";\n@fa-var-level-down: \"\\f149\";\n@fa-var-level-up: \"\\f148\";\n@fa-var-life-bouy: \"\\f1cd\";\n@fa-var-life-ring: \"\\f1cd\";\n@fa-var-life-saver: \"\\f1cd\";\n@fa-var-lightbulb-o: \"\\f0eb\";\n@fa-var-link: \"\\f0c1\";\n@fa-var-linkedin: \"\\f0e1\";\n@fa-var-linkedin-square: \"\\f08c\";\n@fa-var-linux: \"\\f17c\";\n@fa-var-list: \"\\f03a\";\n@fa-var-list-alt: \"\\f022\";\n@fa-var-list-ol: \"\\f0cb\";\n@fa-var-list-ul: \"\\f0ca\";\n@fa-var-location-arrow: \"\\f124\";\n@fa-var-lock: \"\\f023\";\n@fa-var-long-arrow-down: \"\\f175\";\n@fa-var-long-arrow-left: \"\\f177\";\n@fa-var-long-arrow-right: \"\\f178\";\n@fa-var-long-arrow-up: \"\\f176\";\n@fa-var-magic: \"\\f0d0\";\n@fa-var-magnet: \"\\f076\";\n@fa-var-mail-forward: \"\\f064\";\n@fa-var-mail-reply: \"\\f112\";\n@fa-var-mail-reply-all: \"\\f122\";\n@fa-var-male: \"\\f183\";\n@fa-var-map-marker: \"\\f041\";\n@fa-var-maxcdn: \"\\f136\";\n@fa-var-medkit: \"\\f0fa\";\n@fa-var-meh-o: \"\\f11a\";\n@fa-var-microphone: \"\\f130\";\n@fa-var-microphone-slash: \"\\f131\";\n@fa-var-minus: \"\\f068\";\n@fa-var-minus-circle: \"\\f056\";\n@fa-var-minus-square: \"\\f146\";\n@fa-var-minus-square-o: \"\\f147\";\n@fa-var-mobile: \"\\f10b\";\n@fa-var-mobile-phone: \"\\f10b\";\n@fa-var-money: \"\\f0d6\";\n@fa-var-moon-o: \"\\f186\";\n@fa-var-mortar-board: \"\\f19d\";\n@fa-var-music: \"\\f001\";\n@fa-var-navicon: \"\\f0c9\";\n@fa-var-openid: \"\\f19b\";\n@fa-var-outdent: \"\\f03b\";\n@fa-var-pagelines: \"\\f18c\";\n@fa-var-paper-plane: \"\\f1d8\";\n@fa-var-paper-plane-o: \"\\f1d9\";\n@fa-var-paperclip: \"\\f0c6\";\n@fa-var-paragraph: \"\\f1dd\";\n@fa-var-paste: \"\\f0ea\";\n@fa-var-pause: \"\\f04c\";\n@fa-var-paw: \"\\f1b0\";\n@fa-var-pencil: \"\\f040\";\n@fa-var-pencil-square: \"\\f14b\";\n@fa-var-pencil-square-o: \"\\f044\";\n@fa-var-phone: \"\\f095\";\n@fa-var-phone-square: \"\\f098\";\n@fa-var-photo: \"\\f03e\";\n@fa-var-picture-o: \"\\f03e\";\n@fa-var-pied-piper: \"\\f1a7\";\n@fa-var-pied-piper-alt: \"\\f1a8\";\n@fa-var-pied-piper-square: \"\\f1a7\";\n@fa-var-pinterest: \"\\f0d2\";\n@fa-var-pinterest-square: \"\\f0d3\";\n@fa-var-plane: \"\\f072\";\n@fa-var-play: \"\\f04b\";\n@fa-var-play-circle: \"\\f144\";\n@fa-var-play-circle-o: \"\\f01d\";\n@fa-var-plus: \"\\f067\";\n@fa-var-plus-circle: \"\\f055\";\n@fa-var-plus-square: \"\\f0fe\";\n@fa-var-plus-square-o: \"\\f196\";\n@fa-var-power-off: \"\\f011\";\n@fa-var-print: \"\\f02f\";\n@fa-var-puzzle-piece: \"\\f12e\";\n@fa-var-qq: \"\\f1d6\";\n@fa-var-qrcode: \"\\f029\";\n@fa-var-question: \"\\f128\";\n@fa-var-question-circle: \"\\f059\";\n@fa-var-quote-left: \"\\f10d\";\n@fa-var-quote-right: \"\\f10e\";\n@fa-var-ra: \"\\f1d0\";\n@fa-var-random: \"\\f074\";\n@fa-var-rebel: \"\\f1d0\";\n@fa-var-recycle: \"\\f1b8\";\n@fa-var-reddit: \"\\f1a1\";\n@fa-var-reddit-square: \"\\f1a2\";\n@fa-var-refresh: \"\\f021\";\n@fa-var-renren: \"\\f18b\";\n@fa-var-reorder: \"\\f0c9\";\n@fa-var-repeat: \"\\f01e\";\n@fa-var-reply: \"\\f112\";\n@fa-var-reply-all: \"\\f122\";\n@fa-var-retweet: \"\\f079\";\n@fa-var-rmb: \"\\f157\";\n@fa-var-road: \"\\f018\";\n@fa-var-rocket: \"\\f135\";\n@fa-var-rotate-left: \"\\f0e2\";\n@fa-var-rotate-right: \"\\f01e\";\n@fa-var-rouble: \"\\f158\";\n@fa-var-rss: \"\\f09e\";\n@fa-var-rss-square: \"\\f143\";\n@fa-var-rub: \"\\f158\";\n@fa-var-ruble: \"\\f158\";\n@fa-var-rupee: \"\\f156\";\n@fa-var-save: \"\\f0c7\";\n@fa-var-scissors: \"\\f0c4\";\n@fa-var-search: \"\\f002\";\n@fa-var-search-minus: \"\\f010\";\n@fa-var-search-plus: \"\\f00e\";\n@fa-var-send: \"\\f1d8\";\n@fa-var-send-o: \"\\f1d9\";\n@fa-var-share: \"\\f064\";\n@fa-var-share-alt: \"\\f1e0\";\n@fa-var-share-alt-square: \"\\f1e1\";\n@fa-var-share-square: \"\\f14d\";\n@fa-var-share-square-o: \"\\f045\";\n@fa-var-shield: \"\\f132\";\n@fa-var-shopping-cart: \"\\f07a\";\n@fa-var-sign-in: \"\\f090\";\n@fa-var-sign-out: \"\\f08b\";\n@fa-var-signal: \"\\f012\";\n@fa-var-sitemap: \"\\f0e8\";\n@fa-var-skype: \"\\f17e\";\n@fa-var-slack: \"\\f198\";\n@fa-var-sliders: \"\\f1de\";\n@fa-var-smile-o: \"\\f118\";\n@fa-var-sort: \"\\f0dc\";\n@fa-var-sort-alpha-asc: \"\\f15d\";\n@fa-var-sort-alpha-desc: \"\\f15e\";\n@fa-var-sort-amount-asc: \"\\f160\";\n@fa-var-sort-amount-desc: \"\\f161\";\n@fa-var-sort-asc: \"\\f0de\";\n@fa-var-sort-desc: \"\\f0dd\";\n@fa-var-sort-down: \"\\f0dd\";\n@fa-var-sort-numeric-asc: \"\\f162\";\n@fa-var-sort-numeric-desc: \"\\f163\";\n@fa-var-sort-up: \"\\f0de\";\n@fa-var-soundcloud: \"\\f1be\";\n@fa-var-space-shuttle: \"\\f197\";\n@fa-var-spinner: \"\\f110\";\n@fa-var-spoon: \"\\f1b1\";\n@fa-var-spotify: \"\\f1bc\";\n@fa-var-square: \"\\f0c8\";\n@fa-var-square-o: \"\\f096\";\n@fa-var-stack-exchange: \"\\f18d\";\n@fa-var-stack-overflow: \"\\f16c\";\n@fa-var-star: \"\\f005\";\n@fa-var-star-half: \"\\f089\";\n@fa-var-star-half-empty: \"\\f123\";\n@fa-var-star-half-full: \"\\f123\";\n@fa-var-star-half-o: \"\\f123\";\n@fa-var-star-o: \"\\f006\";\n@fa-var-steam: \"\\f1b6\";\n@fa-var-steam-square: \"\\f1b7\";\n@fa-var-step-backward: \"\\f048\";\n@fa-var-step-forward: \"\\f051\";\n@fa-var-stethoscope: \"\\f0f1\";\n@fa-var-stop: \"\\f04d\";\n@fa-var-strikethrough: \"\\f0cc\";\n@fa-var-stumbleupon: \"\\f1a4\";\n@fa-var-stumbleupon-circle: \"\\f1a3\";\n@fa-var-subscript: \"\\f12c\";\n@fa-var-suitcase: \"\\f0f2\";\n@fa-var-sun-o: \"\\f185\";\n@fa-var-superscript: \"\\f12b\";\n@fa-var-support: \"\\f1cd\";\n@fa-var-table: \"\\f0ce\";\n@fa-var-tablet: \"\\f10a\";\n@fa-var-tachometer: \"\\f0e4\";\n@fa-var-tag: \"\\f02b\";\n@fa-var-tags: \"\\f02c\";\n@fa-var-tasks: \"\\f0ae\";\n@fa-var-taxi: \"\\f1ba\";\n@fa-var-tencent-weibo: \"\\f1d5\";\n@fa-var-terminal: \"\\f120\";\n@fa-var-text-height: \"\\f034\";\n@fa-var-text-width: \"\\f035\";\n@fa-var-th: \"\\f00a\";\n@fa-var-th-large: \"\\f009\";\n@fa-var-th-list: \"\\f00b\";\n@fa-var-thumb-tack: \"\\f08d\";\n@fa-var-thumbs-down: \"\\f165\";\n@fa-var-thumbs-o-down: \"\\f088\";\n@fa-var-thumbs-o-up: \"\\f087\";\n@fa-var-thumbs-up: \"\\f164\";\n@fa-var-ticket: \"\\f145\";\n@fa-var-times: \"\\f00d\";\n@fa-var-times-circle: \"\\f057\";\n@fa-var-times-circle-o: \"\\f05c\";\n@fa-var-tint: \"\\f043\";\n@fa-var-toggle-down: \"\\f150\";\n@fa-var-toggle-left: \"\\f191\";\n@fa-var-toggle-right: \"\\f152\";\n@fa-var-toggle-up: \"\\f151\";\n@fa-var-trash-o: \"\\f014\";\n@fa-var-tree: \"\\f1bb\";\n@fa-var-trello: \"\\f181\";\n@fa-var-trophy: \"\\f091\";\n@fa-var-truck: \"\\f0d1\";\n@fa-var-try: \"\\f195\";\n@fa-var-tumblr: \"\\f173\";\n@fa-var-tumblr-square: \"\\f174\";\n@fa-var-turkish-lira: \"\\f195\";\n@fa-var-twitter: \"\\f099\";\n@fa-var-twitter-square: \"\\f081\";\n@fa-var-umbrella: \"\\f0e9\";\n@fa-var-underline: \"\\f0cd\";\n@fa-var-undo: \"\\f0e2\";\n@fa-var-university: \"\\f19c\";\n@fa-var-unlink: \"\\f127\";\n@fa-var-unlock: \"\\f09c\";\n@fa-var-unlock-alt: \"\\f13e\";\n@fa-var-unsorted: \"\\f0dc\";\n@fa-var-upload: \"\\f093\";\n@fa-var-usd: \"\\f155\";\n@fa-var-user: \"\\f007\";\n@fa-var-user-md: \"\\f0f0\";\n@fa-var-users: \"\\f0c0\";\n@fa-var-video-camera: \"\\f03d\";\n@fa-var-vimeo-square: \"\\f194\";\n@fa-var-vine: \"\\f1ca\";\n@fa-var-vk: \"\\f189\";\n@fa-var-volume-down: \"\\f027\";\n@fa-var-volume-off: \"\\f026\";\n@fa-var-volume-up: \"\\f028\";\n@fa-var-warning: \"\\f071\";\n@fa-var-wechat: \"\\f1d7\";\n@fa-var-weibo: \"\\f18a\";\n@fa-var-weixin: \"\\f1d7\";\n@fa-var-wheelchair: \"\\f193\";\n@fa-var-windows: \"\\f17a\";\n@fa-var-won: \"\\f159\";\n@fa-var-wordpress: \"\\f19a\";\n@fa-var-wrench: \"\\f0ad\";\n@fa-var-xing: \"\\f168\";\n@fa-var-xing-square: \"\\f169\";\n@fa-var-yahoo: \"\\f19e\";\n@fa-var-yen: \"\\f157\";\n@fa-var-youtube: \"\\f167\";\n@fa-var-youtube-play: \"\\f16a\";\n@fa-var-youtube-square: \"\\f166\";\n\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_bordered-pulled.scss",
    "content": "// Bordered & Pulled\n// -------------------------\n\n.#{$fa-css-prefix}-border {\n  padding: .2em .25em .15em;\n  border: solid .08em $fa-border-color;\n  border-radius: .1em;\n}\n\n.pull-right { float: right; }\n.pull-left { float: left; }\n\n.#{$fa-css-prefix} {\n  &.pull-left { margin-right: .3em; }\n  &.pull-right { margin-left: .3em; }\n}\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_core.scss",
    "content": "// Base Class Definition\n// -------------------------\n\n.#{$fa-css-prefix} {\n  display: inline-block;\n  font-family: FontAwesome;\n  font-style: normal;\n  font-weight: normal;\n  line-height: 1;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_fixed-width.scss",
    "content": "// Fixed Width Icons\n// -------------------------\n.#{$fa-css-prefix}-fw {\n  width: (18em / 14);\n  text-align: center;\n}\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_icons.scss",
    "content": "/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen\n   readers do not read off random characters that represent icons */\n\n.#{$fa-css-prefix}-glass:before { content: $fa-var-glass; }\n.#{$fa-css-prefix}-music:before { content: $fa-var-music; }\n.#{$fa-css-prefix}-search:before { content: $fa-var-search; }\n.#{$fa-css-prefix}-envelope-o:before { content: $fa-var-envelope-o; }\n.#{$fa-css-prefix}-heart:before { content: $fa-var-heart; }\n.#{$fa-css-prefix}-star:before { content: $fa-var-star; }\n.#{$fa-css-prefix}-star-o:before { content: $fa-var-star-o; }\n.#{$fa-css-prefix}-user:before { content: $fa-var-user; }\n.#{$fa-css-prefix}-film:before { content: $fa-var-film; }\n.#{$fa-css-prefix}-th-large:before { content: $fa-var-th-large; }\n.#{$fa-css-prefix}-th:before { content: $fa-var-th; }\n.#{$fa-css-prefix}-th-list:before { content: $fa-var-th-list; }\n.#{$fa-css-prefix}-check:before { content: $fa-var-check; }\n.#{$fa-css-prefix}-times:before { content: $fa-var-times; }\n.#{$fa-css-prefix}-search-plus:before { content: $fa-var-search-plus; }\n.#{$fa-css-prefix}-search-minus:before { content: $fa-var-search-minus; }\n.#{$fa-css-prefix}-power-off:before { content: $fa-var-power-off; }\n.#{$fa-css-prefix}-signal:before { content: $fa-var-signal; }\n.#{$fa-css-prefix}-gear:before,\n.#{$fa-css-prefix}-cog:before { content: $fa-var-cog; }\n.#{$fa-css-prefix}-trash-o:before { content: $fa-var-trash-o; }\n.#{$fa-css-prefix}-home:before { content: $fa-var-home; }\n.#{$fa-css-prefix}-file-o:before { content: $fa-var-file-o; }\n.#{$fa-css-prefix}-clock-o:before { content: $fa-var-clock-o; }\n.#{$fa-css-prefix}-road:before { content: $fa-var-road; }\n.#{$fa-css-prefix}-download:before { content: $fa-var-download; }\n.#{$fa-css-prefix}-arrow-circle-o-down:before { content: $fa-var-arrow-circle-o-down; }\n.#{$fa-css-prefix}-arrow-circle-o-up:before { content: $fa-var-arrow-circle-o-up; }\n.#{$fa-css-prefix}-inbox:before { content: $fa-var-inbox; }\n.#{$fa-css-prefix}-play-circle-o:before { content: $fa-var-play-circle-o; }\n.#{$fa-css-prefix}-rotate-right:before,\n.#{$fa-css-prefix}-repeat:before { content: $fa-var-repeat; }\n.#{$fa-css-prefix}-refresh:before { content: $fa-var-refresh; }\n.#{$fa-css-prefix}-list-alt:before { content: $fa-var-list-alt; }\n.#{$fa-css-prefix}-lock:before { content: $fa-var-lock; }\n.#{$fa-css-prefix}-flag:before { content: $fa-var-flag; }\n.#{$fa-css-prefix}-headphones:before { content: $fa-var-headphones; }\n.#{$fa-css-prefix}-volume-off:before { content: $fa-var-volume-off; }\n.#{$fa-css-prefix}-volume-down:before { content: $fa-var-volume-down; }\n.#{$fa-css-prefix}-volume-up:before { content: $fa-var-volume-up; }\n.#{$fa-css-prefix}-qrcode:before { content: $fa-var-qrcode; }\n.#{$fa-css-prefix}-barcode:before { content: $fa-var-barcode; }\n.#{$fa-css-prefix}-tag:before { content: $fa-var-tag; }\n.#{$fa-css-prefix}-tags:before { content: $fa-var-tags; }\n.#{$fa-css-prefix}-book:before { content: $fa-var-book; }\n.#{$fa-css-prefix}-bookmark:before { content: $fa-var-bookmark; }\n.#{$fa-css-prefix}-print:before { content: $fa-var-print; }\n.#{$fa-css-prefix}-camera:before { content: $fa-var-camera; }\n.#{$fa-css-prefix}-font:before { content: $fa-var-font; }\n.#{$fa-css-prefix}-bold:before { content: $fa-var-bold; }\n.#{$fa-css-prefix}-italic:before { content: $fa-var-italic; }\n.#{$fa-css-prefix}-text-height:before { content: $fa-var-text-height; }\n.#{$fa-css-prefix}-text-width:before { content: $fa-var-text-width; }\n.#{$fa-css-prefix}-align-left:before { content: $fa-var-align-left; }\n.#{$fa-css-prefix}-align-center:before { content: $fa-var-align-center; }\n.#{$fa-css-prefix}-align-right:before { content: $fa-var-align-right; }\n.#{$fa-css-prefix}-align-justify:before { content: $fa-var-align-justify; }\n.#{$fa-css-prefix}-list:before { content: $fa-var-list; }\n.#{$fa-css-prefix}-dedent:before,\n.#{$fa-css-prefix}-outdent:before { content: $fa-var-outdent; }\n.#{$fa-css-prefix}-indent:before { content: $fa-var-indent; }\n.#{$fa-css-prefix}-video-camera:before { content: $fa-var-video-camera; }\n.#{$fa-css-prefix}-photo:before,\n.#{$fa-css-prefix}-image:before,\n.#{$fa-css-prefix}-picture-o:before { content: $fa-var-picture-o; }\n.#{$fa-css-prefix}-pencil:before { content: $fa-var-pencil; }\n.#{$fa-css-prefix}-map-marker:before { content: $fa-var-map-marker; }\n.#{$fa-css-prefix}-adjust:before { content: $fa-var-adjust; }\n.#{$fa-css-prefix}-tint:before { content: $fa-var-tint; }\n.#{$fa-css-prefix}-edit:before,\n.#{$fa-css-prefix}-pencil-square-o:before { content: $fa-var-pencil-square-o; }\n.#{$fa-css-prefix}-share-square-o:before { content: $fa-var-share-square-o; }\n.#{$fa-css-prefix}-check-square-o:before { content: $fa-var-check-square-o; }\n.#{$fa-css-prefix}-arrows:before { content: $fa-var-arrows; }\n.#{$fa-css-prefix}-step-backward:before { content: $fa-var-step-backward; }\n.#{$fa-css-prefix}-fast-backward:before { content: $fa-var-fast-backward; }\n.#{$fa-css-prefix}-backward:before { content: $fa-var-backward; }\n.#{$fa-css-prefix}-play:before { content: $fa-var-play; }\n.#{$fa-css-prefix}-pause:before { content: $fa-var-pause; }\n.#{$fa-css-prefix}-stop:before { content: $fa-var-stop; }\n.#{$fa-css-prefix}-forward:before { content: $fa-var-forward; }\n.#{$fa-css-prefix}-fast-forward:before { content: $fa-var-fast-forward; }\n.#{$fa-css-prefix}-step-forward:before { content: $fa-var-step-forward; }\n.#{$fa-css-prefix}-eject:before { content: $fa-var-eject; }\n.#{$fa-css-prefix}-chevron-left:before { content: $fa-var-chevron-left; }\n.#{$fa-css-prefix}-chevron-right:before { content: $fa-var-chevron-right; }\n.#{$fa-css-prefix}-plus-circle:before { content: $fa-var-plus-circle; }\n.#{$fa-css-prefix}-minus-circle:before { content: $fa-var-minus-circle; }\n.#{$fa-css-prefix}-times-circle:before { content: $fa-var-times-circle; }\n.#{$fa-css-prefix}-check-circle:before { content: $fa-var-check-circle; }\n.#{$fa-css-prefix}-question-circle:before { content: $fa-var-question-circle; }\n.#{$fa-css-prefix}-info-circle:before { content: $fa-var-info-circle; }\n.#{$fa-css-prefix}-crosshairs:before { content: $fa-var-crosshairs; }\n.#{$fa-css-prefix}-times-circle-o:before { content: $fa-var-times-circle-o; }\n.#{$fa-css-prefix}-check-circle-o:before { content: $fa-var-check-circle-o; }\n.#{$fa-css-prefix}-ban:before { content: $fa-var-ban; }\n.#{$fa-css-prefix}-arrow-left:before { content: $fa-var-arrow-left; }\n.#{$fa-css-prefix}-arrow-right:before { content: $fa-var-arrow-right; }\n.#{$fa-css-prefix}-arrow-up:before { content: $fa-var-arrow-up; }\n.#{$fa-css-prefix}-arrow-down:before { content: $fa-var-arrow-down; }\n.#{$fa-css-prefix}-mail-forward:before,\n.#{$fa-css-prefix}-share:before { content: $fa-var-share; }\n.#{$fa-css-prefix}-expand:before { content: $fa-var-expand; }\n.#{$fa-css-prefix}-compress:before { content: $fa-var-compress; }\n.#{$fa-css-prefix}-plus:before { content: $fa-var-plus; }\n.#{$fa-css-prefix}-minus:before { content: $fa-var-minus; }\n.#{$fa-css-prefix}-asterisk:before { content: $fa-var-asterisk; }\n.#{$fa-css-prefix}-exclamation-circle:before { content: $fa-var-exclamation-circle; }\n.#{$fa-css-prefix}-gift:before { content: $fa-var-gift; }\n.#{$fa-css-prefix}-leaf:before { content: $fa-var-leaf; }\n.#{$fa-css-prefix}-fire:before { content: $fa-var-fire; }\n.#{$fa-css-prefix}-eye:before { content: $fa-var-eye; }\n.#{$fa-css-prefix}-eye-slash:before { content: $fa-var-eye-slash; }\n.#{$fa-css-prefix}-warning:before,\n.#{$fa-css-prefix}-exclamation-triangle:before { content: $fa-var-exclamation-triangle; }\n.#{$fa-css-prefix}-plane:before { content: $fa-var-plane; }\n.#{$fa-css-prefix}-calendar:before { content: $fa-var-calendar; }\n.#{$fa-css-prefix}-random:before { content: $fa-var-random; }\n.#{$fa-css-prefix}-comment:before { content: $fa-var-comment; }\n.#{$fa-css-prefix}-magnet:before { content: $fa-var-magnet; }\n.#{$fa-css-prefix}-chevron-up:before { content: $fa-var-chevron-up; }\n.#{$fa-css-prefix}-chevron-down:before { content: $fa-var-chevron-down; }\n.#{$fa-css-prefix}-retweet:before { content: $fa-var-retweet; }\n.#{$fa-css-prefix}-shopping-cart:before { content: $fa-var-shopping-cart; }\n.#{$fa-css-prefix}-folder:before { content: $fa-var-folder; }\n.#{$fa-css-prefix}-folder-open:before { content: $fa-var-folder-open; }\n.#{$fa-css-prefix}-arrows-v:before { content: $fa-var-arrows-v; }\n.#{$fa-css-prefix}-arrows-h:before { content: $fa-var-arrows-h; }\n.#{$fa-css-prefix}-bar-chart-o:before { content: $fa-var-bar-chart-o; }\n.#{$fa-css-prefix}-twitter-square:before { content: $fa-var-twitter-square; }\n.#{$fa-css-prefix}-facebook-square:before { content: $fa-var-facebook-square; }\n.#{$fa-css-prefix}-camera-retro:before { content: $fa-var-camera-retro; }\n.#{$fa-css-prefix}-key:before { content: $fa-var-key; }\n.#{$fa-css-prefix}-gears:before,\n.#{$fa-css-prefix}-cogs:before { content: $fa-var-cogs; }\n.#{$fa-css-prefix}-comments:before { content: $fa-var-comments; }\n.#{$fa-css-prefix}-thumbs-o-up:before { content: $fa-var-thumbs-o-up; }\n.#{$fa-css-prefix}-thumbs-o-down:before { content: $fa-var-thumbs-o-down; }\n.#{$fa-css-prefix}-star-half:before { content: $fa-var-star-half; }\n.#{$fa-css-prefix}-heart-o:before { content: $fa-var-heart-o; }\n.#{$fa-css-prefix}-sign-out:before { content: $fa-var-sign-out; }\n.#{$fa-css-prefix}-linkedin-square:before { content: $fa-var-linkedin-square; }\n.#{$fa-css-prefix}-thumb-tack:before { content: $fa-var-thumb-tack; }\n.#{$fa-css-prefix}-external-link:before { content: $fa-var-external-link; }\n.#{$fa-css-prefix}-sign-in:before { content: $fa-var-sign-in; }\n.#{$fa-css-prefix}-trophy:before { content: $fa-var-trophy; }\n.#{$fa-css-prefix}-github-square:before { content: $fa-var-github-square; }\n.#{$fa-css-prefix}-upload:before { content: $fa-var-upload; }\n.#{$fa-css-prefix}-lemon-o:before { content: $fa-var-lemon-o; }\n.#{$fa-css-prefix}-phone:before { content: $fa-var-phone; }\n.#{$fa-css-prefix}-square-o:before { content: $fa-var-square-o; }\n.#{$fa-css-prefix}-bookmark-o:before { content: $fa-var-bookmark-o; }\n.#{$fa-css-prefix}-phone-square:before { content: $fa-var-phone-square; }\n.#{$fa-css-prefix}-twitter:before { content: $fa-var-twitter; }\n.#{$fa-css-prefix}-facebook:before { content: $fa-var-facebook; }\n.#{$fa-css-prefix}-github:before { content: $fa-var-github; }\n.#{$fa-css-prefix}-unlock:before { content: $fa-var-unlock; }\n.#{$fa-css-prefix}-credit-card:before { content: $fa-var-credit-card; }\n.#{$fa-css-prefix}-rss:before { content: $fa-var-rss; }\n.#{$fa-css-prefix}-hdd-o:before { content: $fa-var-hdd-o; }\n.#{$fa-css-prefix}-bullhorn:before { content: $fa-var-bullhorn; }\n.#{$fa-css-prefix}-bell:before { content: $fa-var-bell; }\n.#{$fa-css-prefix}-certificate:before { content: $fa-var-certificate; }\n.#{$fa-css-prefix}-hand-o-right:before { content: $fa-var-hand-o-right; }\n.#{$fa-css-prefix}-hand-o-left:before { content: $fa-var-hand-o-left; }\n.#{$fa-css-prefix}-hand-o-up:before { content: $fa-var-hand-o-up; }\n.#{$fa-css-prefix}-hand-o-down:before { content: $fa-var-hand-o-down; }\n.#{$fa-css-prefix}-arrow-circle-left:before { content: $fa-var-arrow-circle-left; }\n.#{$fa-css-prefix}-arrow-circle-right:before { content: $fa-var-arrow-circle-right; }\n.#{$fa-css-prefix}-arrow-circle-up:before { content: $fa-var-arrow-circle-up; }\n.#{$fa-css-prefix}-arrow-circle-down:before { content: $fa-var-arrow-circle-down; }\n.#{$fa-css-prefix}-globe:before { content: $fa-var-globe; }\n.#{$fa-css-prefix}-wrench:before { content: $fa-var-wrench; }\n.#{$fa-css-prefix}-tasks:before { content: $fa-var-tasks; }\n.#{$fa-css-prefix}-filter:before { content: $fa-var-filter; }\n.#{$fa-css-prefix}-briefcase:before { content: $fa-var-briefcase; }\n.#{$fa-css-prefix}-arrows-alt:before { content: $fa-var-arrows-alt; }\n.#{$fa-css-prefix}-group:before,\n.#{$fa-css-prefix}-users:before { content: $fa-var-users; }\n.#{$fa-css-prefix}-chain:before,\n.#{$fa-css-prefix}-link:before { content: $fa-var-link; }\n.#{$fa-css-prefix}-cloud:before { content: $fa-var-cloud; }\n.#{$fa-css-prefix}-flask:before { content: $fa-var-flask; }\n.#{$fa-css-prefix}-cut:before,\n.#{$fa-css-prefix}-scissors:before { content: $fa-var-scissors; }\n.#{$fa-css-prefix}-copy:before,\n.#{$fa-css-prefix}-files-o:before { content: $fa-var-files-o; }\n.#{$fa-css-prefix}-paperclip:before { content: $fa-var-paperclip; }\n.#{$fa-css-prefix}-save:before,\n.#{$fa-css-prefix}-floppy-o:before { content: $fa-var-floppy-o; }\n.#{$fa-css-prefix}-square:before { content: $fa-var-square; }\n.#{$fa-css-prefix}-navicon:before,\n.#{$fa-css-prefix}-reorder:before,\n.#{$fa-css-prefix}-bars:before { content: $fa-var-bars; }\n.#{$fa-css-prefix}-list-ul:before { content: $fa-var-list-ul; }\n.#{$fa-css-prefix}-list-ol:before { content: $fa-var-list-ol; }\n.#{$fa-css-prefix}-strikethrough:before { content: $fa-var-strikethrough; }\n.#{$fa-css-prefix}-underline:before { content: $fa-var-underline; }\n.#{$fa-css-prefix}-table:before { content: $fa-var-table; }\n.#{$fa-css-prefix}-magic:before { content: $fa-var-magic; }\n.#{$fa-css-prefix}-truck:before { content: $fa-var-truck; }\n.#{$fa-css-prefix}-pinterest:before { content: $fa-var-pinterest; }\n.#{$fa-css-prefix}-pinterest-square:before { content: $fa-var-pinterest-square; }\n.#{$fa-css-prefix}-google-plus-square:before { content: $fa-var-google-plus-square; }\n.#{$fa-css-prefix}-google-plus:before { content: $fa-var-google-plus; }\n.#{$fa-css-prefix}-money:before { content: $fa-var-money; }\n.#{$fa-css-prefix}-caret-down:before { content: $fa-var-caret-down; }\n.#{$fa-css-prefix}-caret-up:before { content: $fa-var-caret-up; }\n.#{$fa-css-prefix}-caret-left:before { content: $fa-var-caret-left; }\n.#{$fa-css-prefix}-caret-right:before { content: $fa-var-caret-right; }\n.#{$fa-css-prefix}-columns:before { content: $fa-var-columns; }\n.#{$fa-css-prefix}-unsorted:before,\n.#{$fa-css-prefix}-sort:before { content: $fa-var-sort; }\n.#{$fa-css-prefix}-sort-down:before,\n.#{$fa-css-prefix}-sort-desc:before { content: $fa-var-sort-desc; }\n.#{$fa-css-prefix}-sort-up:before,\n.#{$fa-css-prefix}-sort-asc:before { content: $fa-var-sort-asc; }\n.#{$fa-css-prefix}-envelope:before { content: $fa-var-envelope; }\n.#{$fa-css-prefix}-linkedin:before { content: $fa-var-linkedin; }\n.#{$fa-css-prefix}-rotate-left:before,\n.#{$fa-css-prefix}-undo:before { content: $fa-var-undo; }\n.#{$fa-css-prefix}-legal:before,\n.#{$fa-css-prefix}-gavel:before { content: $fa-var-gavel; }\n.#{$fa-css-prefix}-dashboard:before,\n.#{$fa-css-prefix}-tachometer:before { content: $fa-var-tachometer; }\n.#{$fa-css-prefix}-comment-o:before { content: $fa-var-comment-o; }\n.#{$fa-css-prefix}-comments-o:before { content: $fa-var-comments-o; }\n.#{$fa-css-prefix}-flash:before,\n.#{$fa-css-prefix}-bolt:before { content: $fa-var-bolt; }\n.#{$fa-css-prefix}-sitemap:before { content: $fa-var-sitemap; }\n.#{$fa-css-prefix}-umbrella:before { content: $fa-var-umbrella; }\n.#{$fa-css-prefix}-paste:before,\n.#{$fa-css-prefix}-clipboard:before { content: $fa-var-clipboard; }\n.#{$fa-css-prefix}-lightbulb-o:before { content: $fa-var-lightbulb-o; }\n.#{$fa-css-prefix}-exchange:before { content: $fa-var-exchange; }\n.#{$fa-css-prefix}-cloud-download:before { content: $fa-var-cloud-download; }\n.#{$fa-css-prefix}-cloud-upload:before { content: $fa-var-cloud-upload; }\n.#{$fa-css-prefix}-user-md:before { content: $fa-var-user-md; }\n.#{$fa-css-prefix}-stethoscope:before { content: $fa-var-stethoscope; }\n.#{$fa-css-prefix}-suitcase:before { content: $fa-var-suitcase; }\n.#{$fa-css-prefix}-bell-o:before { content: $fa-var-bell-o; }\n.#{$fa-css-prefix}-coffee:before { content: $fa-var-coffee; }\n.#{$fa-css-prefix}-cutlery:before { content: $fa-var-cutlery; }\n.#{$fa-css-prefix}-file-text-o:before { content: $fa-var-file-text-o; }\n.#{$fa-css-prefix}-building-o:before { content: $fa-var-building-o; }\n.#{$fa-css-prefix}-hospital-o:before { content: $fa-var-hospital-o; }\n.#{$fa-css-prefix}-ambulance:before { content: $fa-var-ambulance; }\n.#{$fa-css-prefix}-medkit:before { content: $fa-var-medkit; }\n.#{$fa-css-prefix}-fighter-jet:before { content: $fa-var-fighter-jet; }\n.#{$fa-css-prefix}-beer:before { content: $fa-var-beer; }\n.#{$fa-css-prefix}-h-square:before { content: $fa-var-h-square; }\n.#{$fa-css-prefix}-plus-square:before { content: $fa-var-plus-square; }\n.#{$fa-css-prefix}-angle-double-left:before { content: $fa-var-angle-double-left; }\n.#{$fa-css-prefix}-angle-double-right:before { content: $fa-var-angle-double-right; }\n.#{$fa-css-prefix}-angle-double-up:before { content: $fa-var-angle-double-up; }\n.#{$fa-css-prefix}-angle-double-down:before { content: $fa-var-angle-double-down; }\n.#{$fa-css-prefix}-angle-left:before { content: $fa-var-angle-left; }\n.#{$fa-css-prefix}-angle-right:before { content: $fa-var-angle-right; }\n.#{$fa-css-prefix}-angle-up:before { content: $fa-var-angle-up; }\n.#{$fa-css-prefix}-angle-down:before { content: $fa-var-angle-down; }\n.#{$fa-css-prefix}-desktop:before { content: $fa-var-desktop; }\n.#{$fa-css-prefix}-laptop:before { content: $fa-var-laptop; }\n.#{$fa-css-prefix}-tablet:before { content: $fa-var-tablet; }\n.#{$fa-css-prefix}-mobile-phone:before,\n.#{$fa-css-prefix}-mobile:before { content: $fa-var-mobile; }\n.#{$fa-css-prefix}-circle-o:before { content: $fa-var-circle-o; }\n.#{$fa-css-prefix}-quote-left:before { content: $fa-var-quote-left; }\n.#{$fa-css-prefix}-quote-right:before { content: $fa-var-quote-right; }\n.#{$fa-css-prefix}-spinner:before { content: $fa-var-spinner; }\n.#{$fa-css-prefix}-circle:before { content: $fa-var-circle; }\n.#{$fa-css-prefix}-mail-reply:before,\n.#{$fa-css-prefix}-reply:before { content: $fa-var-reply; }\n.#{$fa-css-prefix}-github-alt:before { content: $fa-var-github-alt; }\n.#{$fa-css-prefix}-folder-o:before { content: $fa-var-folder-o; }\n.#{$fa-css-prefix}-folder-open-o:before { content: $fa-var-folder-open-o; }\n.#{$fa-css-prefix}-smile-o:before { content: $fa-var-smile-o; }\n.#{$fa-css-prefix}-frown-o:before { content: $fa-var-frown-o; }\n.#{$fa-css-prefix}-meh-o:before { content: $fa-var-meh-o; }\n.#{$fa-css-prefix}-gamepad:before { content: $fa-var-gamepad; }\n.#{$fa-css-prefix}-keyboard-o:before { content: $fa-var-keyboard-o; }\n.#{$fa-css-prefix}-flag-o:before { content: $fa-var-flag-o; }\n.#{$fa-css-prefix}-flag-checkered:before { content: $fa-var-flag-checkered; }\n.#{$fa-css-prefix}-terminal:before { content: $fa-var-terminal; }\n.#{$fa-css-prefix}-code:before { content: $fa-var-code; }\n.#{$fa-css-prefix}-mail-reply-all:before,\n.#{$fa-css-prefix}-reply-all:before { content: $fa-var-reply-all; }\n.#{$fa-css-prefix}-star-half-empty:before,\n.#{$fa-css-prefix}-star-half-full:before,\n.#{$fa-css-prefix}-star-half-o:before { content: $fa-var-star-half-o; }\n.#{$fa-css-prefix}-location-arrow:before { content: $fa-var-location-arrow; }\n.#{$fa-css-prefix}-crop:before { content: $fa-var-crop; }\n.#{$fa-css-prefix}-code-fork:before { content: $fa-var-code-fork; }\n.#{$fa-css-prefix}-unlink:before,\n.#{$fa-css-prefix}-chain-broken:before { content: $fa-var-chain-broken; }\n.#{$fa-css-prefix}-question:before { content: $fa-var-question; }\n.#{$fa-css-prefix}-info:before { content: $fa-var-info; }\n.#{$fa-css-prefix}-exclamation:before { content: $fa-var-exclamation; }\n.#{$fa-css-prefix}-superscript:before { content: $fa-var-superscript; }\n.#{$fa-css-prefix}-subscript:before { content: $fa-var-subscript; }\n.#{$fa-css-prefix}-eraser:before { content: $fa-var-eraser; }\n.#{$fa-css-prefix}-puzzle-piece:before { content: $fa-var-puzzle-piece; }\n.#{$fa-css-prefix}-microphone:before { content: $fa-var-microphone; }\n.#{$fa-css-prefix}-microphone-slash:before { content: $fa-var-microphone-slash; }\n.#{$fa-css-prefix}-shield:before { content: $fa-var-shield; }\n.#{$fa-css-prefix}-calendar-o:before { content: $fa-var-calendar-o; }\n.#{$fa-css-prefix}-fire-extinguisher:before { content: $fa-var-fire-extinguisher; }\n.#{$fa-css-prefix}-rocket:before { content: $fa-var-rocket; }\n.#{$fa-css-prefix}-maxcdn:before { content: $fa-var-maxcdn; }\n.#{$fa-css-prefix}-chevron-circle-left:before { content: $fa-var-chevron-circle-left; }\n.#{$fa-css-prefix}-chevron-circle-right:before { content: $fa-var-chevron-circle-right; }\n.#{$fa-css-prefix}-chevron-circle-up:before { content: $fa-var-chevron-circle-up; }\n.#{$fa-css-prefix}-chevron-circle-down:before { content: $fa-var-chevron-circle-down; }\n.#{$fa-css-prefix}-html5:before { content: $fa-var-html5; }\n.#{$fa-css-prefix}-css3:before { content: $fa-var-css3; }\n.#{$fa-css-prefix}-anchor:before { content: $fa-var-anchor; }\n.#{$fa-css-prefix}-unlock-alt:before { content: $fa-var-unlock-alt; }\n.#{$fa-css-prefix}-bullseye:before { content: $fa-var-bullseye; }\n.#{$fa-css-prefix}-ellipsis-h:before { content: $fa-var-ellipsis-h; }\n.#{$fa-css-prefix}-ellipsis-v:before { content: $fa-var-ellipsis-v; }\n.#{$fa-css-prefix}-rss-square:before { content: $fa-var-rss-square; }\n.#{$fa-css-prefix}-play-circle:before { content: $fa-var-play-circle; }\n.#{$fa-css-prefix}-ticket:before { content: $fa-var-ticket; }\n.#{$fa-css-prefix}-minus-square:before { content: $fa-var-minus-square; }\n.#{$fa-css-prefix}-minus-square-o:before { content: $fa-var-minus-square-o; }\n.#{$fa-css-prefix}-level-up:before { content: $fa-var-level-up; }\n.#{$fa-css-prefix}-level-down:before { content: $fa-var-level-down; }\n.#{$fa-css-prefix}-check-square:before { content: $fa-var-check-square; }\n.#{$fa-css-prefix}-pencil-square:before { content: $fa-var-pencil-square; }\n.#{$fa-css-prefix}-external-link-square:before { content: $fa-var-external-link-square; }\n.#{$fa-css-prefix}-share-square:before { content: $fa-var-share-square; }\n.#{$fa-css-prefix}-compass:before { content: $fa-var-compass; }\n.#{$fa-css-prefix}-toggle-down:before,\n.#{$fa-css-prefix}-caret-square-o-down:before { content: $fa-var-caret-square-o-down; }\n.#{$fa-css-prefix}-toggle-up:before,\n.#{$fa-css-prefix}-caret-square-o-up:before { content: $fa-var-caret-square-o-up; }\n.#{$fa-css-prefix}-toggle-right:before,\n.#{$fa-css-prefix}-caret-square-o-right:before { content: $fa-var-caret-square-o-right; }\n.#{$fa-css-prefix}-euro:before,\n.#{$fa-css-prefix}-eur:before { content: $fa-var-eur; }\n.#{$fa-css-prefix}-gbp:before { content: $fa-var-gbp; }\n.#{$fa-css-prefix}-dollar:before,\n.#{$fa-css-prefix}-usd:before { content: $fa-var-usd; }\n.#{$fa-css-prefix}-rupee:before,\n.#{$fa-css-prefix}-inr:before { content: $fa-var-inr; }\n.#{$fa-css-prefix}-cny:before,\n.#{$fa-css-prefix}-rmb:before,\n.#{$fa-css-prefix}-yen:before,\n.#{$fa-css-prefix}-jpy:before { content: $fa-var-jpy; }\n.#{$fa-css-prefix}-ruble:before,\n.#{$fa-css-prefix}-rouble:before,\n.#{$fa-css-prefix}-rub:before { content: $fa-var-rub; }\n.#{$fa-css-prefix}-won:before,\n.#{$fa-css-prefix}-krw:before { content: $fa-var-krw; }\n.#{$fa-css-prefix}-bitcoin:before,\n.#{$fa-css-prefix}-btc:before { content: $fa-var-btc; }\n.#{$fa-css-prefix}-file:before { content: $fa-var-file; }\n.#{$fa-css-prefix}-file-text:before { content: $fa-var-file-text; }\n.#{$fa-css-prefix}-sort-alpha-asc:before { content: $fa-var-sort-alpha-asc; }\n.#{$fa-css-prefix}-sort-alpha-desc:before { content: $fa-var-sort-alpha-desc; }\n.#{$fa-css-prefix}-sort-amount-asc:before { content: $fa-var-sort-amount-asc; }\n.#{$fa-css-prefix}-sort-amount-desc:before { content: $fa-var-sort-amount-desc; }\n.#{$fa-css-prefix}-sort-numeric-asc:before { content: $fa-var-sort-numeric-asc; }\n.#{$fa-css-prefix}-sort-numeric-desc:before { content: $fa-var-sort-numeric-desc; }\n.#{$fa-css-prefix}-thumbs-up:before { content: $fa-var-thumbs-up; }\n.#{$fa-css-prefix}-thumbs-down:before { content: $fa-var-thumbs-down; }\n.#{$fa-css-prefix}-youtube-square:before { content: $fa-var-youtube-square; }\n.#{$fa-css-prefix}-youtube:before { content: $fa-var-youtube; }\n.#{$fa-css-prefix}-xing:before { content: $fa-var-xing; }\n.#{$fa-css-prefix}-xing-square:before { content: $fa-var-xing-square; }\n.#{$fa-css-prefix}-youtube-play:before { content: $fa-var-youtube-play; }\n.#{$fa-css-prefix}-dropbox:before { content: $fa-var-dropbox; }\n.#{$fa-css-prefix}-stack-overflow:before { content: $fa-var-stack-overflow; }\n.#{$fa-css-prefix}-instagram:before { content: $fa-var-instagram; }\n.#{$fa-css-prefix}-flickr:before { content: $fa-var-flickr; }\n.#{$fa-css-prefix}-adn:before { content: $fa-var-adn; }\n.#{$fa-css-prefix}-bitbucket:before { content: $fa-var-bitbucket; }\n.#{$fa-css-prefix}-bitbucket-square:before { content: $fa-var-bitbucket-square; }\n.#{$fa-css-prefix}-tumblr:before { content: $fa-var-tumblr; }\n.#{$fa-css-prefix}-tumblr-square:before { content: $fa-var-tumblr-square; }\n.#{$fa-css-prefix}-long-arrow-down:before { content: $fa-var-long-arrow-down; }\n.#{$fa-css-prefix}-long-arrow-up:before { content: $fa-var-long-arrow-up; }\n.#{$fa-css-prefix}-long-arrow-left:before { content: $fa-var-long-arrow-left; }\n.#{$fa-css-prefix}-long-arrow-right:before { content: $fa-var-long-arrow-right; }\n.#{$fa-css-prefix}-apple:before { content: $fa-var-apple; }\n.#{$fa-css-prefix}-windows:before { content: $fa-var-windows; }\n.#{$fa-css-prefix}-android:before { content: $fa-var-android; }\n.#{$fa-css-prefix}-linux:before { content: $fa-var-linux; }\n.#{$fa-css-prefix}-dribbble:before { content: $fa-var-dribbble; }\n.#{$fa-css-prefix}-skype:before { content: $fa-var-skype; }\n.#{$fa-css-prefix}-foursquare:before { content: $fa-var-foursquare; }\n.#{$fa-css-prefix}-trello:before { content: $fa-var-trello; }\n.#{$fa-css-prefix}-female:before { content: $fa-var-female; }\n.#{$fa-css-prefix}-male:before { content: $fa-var-male; }\n.#{$fa-css-prefix}-gittip:before { content: $fa-var-gittip; }\n.#{$fa-css-prefix}-sun-o:before { content: $fa-var-sun-o; }\n.#{$fa-css-prefix}-moon-o:before { content: $fa-var-moon-o; }\n.#{$fa-css-prefix}-archive:before { content: $fa-var-archive; }\n.#{$fa-css-prefix}-bug:before { content: $fa-var-bug; }\n.#{$fa-css-prefix}-vk:before { content: $fa-var-vk; }\n.#{$fa-css-prefix}-weibo:before { content: $fa-var-weibo; }\n.#{$fa-css-prefix}-renren:before { content: $fa-var-renren; }\n.#{$fa-css-prefix}-pagelines:before { content: $fa-var-pagelines; }\n.#{$fa-css-prefix}-stack-exchange:before { content: $fa-var-stack-exchange; }\n.#{$fa-css-prefix}-arrow-circle-o-right:before { content: $fa-var-arrow-circle-o-right; }\n.#{$fa-css-prefix}-arrow-circle-o-left:before { content: $fa-var-arrow-circle-o-left; }\n.#{$fa-css-prefix}-toggle-left:before,\n.#{$fa-css-prefix}-caret-square-o-left:before { content: $fa-var-caret-square-o-left; }\n.#{$fa-css-prefix}-dot-circle-o:before { content: $fa-var-dot-circle-o; }\n.#{$fa-css-prefix}-wheelchair:before { content: $fa-var-wheelchair; }\n.#{$fa-css-prefix}-vimeo-square:before { content: $fa-var-vimeo-square; }\n.#{$fa-css-prefix}-turkish-lira:before,\n.#{$fa-css-prefix}-try:before { content: $fa-var-try; }\n.#{$fa-css-prefix}-plus-square-o:before { content: $fa-var-plus-square-o; }\n.#{$fa-css-prefix}-space-shuttle:before { content: $fa-var-space-shuttle; }\n.#{$fa-css-prefix}-slack:before { content: $fa-var-slack; }\n.#{$fa-css-prefix}-envelope-square:before { content: $fa-var-envelope-square; }\n.#{$fa-css-prefix}-wordpress:before { content: $fa-var-wordpress; }\n.#{$fa-css-prefix}-openid:before { content: $fa-var-openid; }\n.#{$fa-css-prefix}-institution:before,\n.#{$fa-css-prefix}-bank:before,\n.#{$fa-css-prefix}-university:before { content: $fa-var-university; }\n.#{$fa-css-prefix}-mortar-board:before,\n.#{$fa-css-prefix}-graduation-cap:before { content: $fa-var-graduation-cap; }\n.#{$fa-css-prefix}-yahoo:before { content: $fa-var-yahoo; }\n.#{$fa-css-prefix}-google:before { content: $fa-var-google; }\n.#{$fa-css-prefix}-reddit:before { content: $fa-var-reddit; }\n.#{$fa-css-prefix}-reddit-square:before { content: $fa-var-reddit-square; }\n.#{$fa-css-prefix}-stumbleupon-circle:before { content: $fa-var-stumbleupon-circle; }\n.#{$fa-css-prefix}-stumbleupon:before { content: $fa-var-stumbleupon; }\n.#{$fa-css-prefix}-delicious:before { content: $fa-var-delicious; }\n.#{$fa-css-prefix}-digg:before { content: $fa-var-digg; }\n.#{$fa-css-prefix}-pied-piper-square:before,\n.#{$fa-css-prefix}-pied-piper:before { content: $fa-var-pied-piper; }\n.#{$fa-css-prefix}-pied-piper-alt:before { content: $fa-var-pied-piper-alt; }\n.#{$fa-css-prefix}-drupal:before { content: $fa-var-drupal; }\n.#{$fa-css-prefix}-joomla:before { content: $fa-var-joomla; }\n.#{$fa-css-prefix}-language:before { content: $fa-var-language; }\n.#{$fa-css-prefix}-fax:before { content: $fa-var-fax; }\n.#{$fa-css-prefix}-building:before { content: $fa-var-building; }\n.#{$fa-css-prefix}-child:before { content: $fa-var-child; }\n.#{$fa-css-prefix}-paw:before { content: $fa-var-paw; }\n.#{$fa-css-prefix}-spoon:before { content: $fa-var-spoon; }\n.#{$fa-css-prefix}-cube:before { content: $fa-var-cube; }\n.#{$fa-css-prefix}-cubes:before { content: $fa-var-cubes; }\n.#{$fa-css-prefix}-behance:before { content: $fa-var-behance; }\n.#{$fa-css-prefix}-behance-square:before { content: $fa-var-behance-square; }\n.#{$fa-css-prefix}-steam:before { content: $fa-var-steam; }\n.#{$fa-css-prefix}-steam-square:before { content: $fa-var-steam-square; }\n.#{$fa-css-prefix}-recycle:before { content: $fa-var-recycle; }\n.#{$fa-css-prefix}-automobile:before,\n.#{$fa-css-prefix}-car:before { content: $fa-var-car; }\n.#{$fa-css-prefix}-cab:before,\n.#{$fa-css-prefix}-taxi:before { content: $fa-var-taxi; }\n.#{$fa-css-prefix}-tree:before { content: $fa-var-tree; }\n.#{$fa-css-prefix}-spotify:before { content: $fa-var-spotify; }\n.#{$fa-css-prefix}-deviantart:before { content: $fa-var-deviantart; }\n.#{$fa-css-prefix}-soundcloud:before { content: $fa-var-soundcloud; }\n.#{$fa-css-prefix}-database:before { content: $fa-var-database; }\n.#{$fa-css-prefix}-file-pdf-o:before { content: $fa-var-file-pdf-o; }\n.#{$fa-css-prefix}-file-word-o:before { content: $fa-var-file-word-o; }\n.#{$fa-css-prefix}-file-excel-o:before { content: $fa-var-file-excel-o; }\n.#{$fa-css-prefix}-file-powerpoint-o:before { content: $fa-var-file-powerpoint-o; }\n.#{$fa-css-prefix}-file-photo-o:before,\n.#{$fa-css-prefix}-file-picture-o:before,\n.#{$fa-css-prefix}-file-image-o:before { content: $fa-var-file-image-o; }\n.#{$fa-css-prefix}-file-zip-o:before,\n.#{$fa-css-prefix}-file-archive-o:before { content: $fa-var-file-archive-o; }\n.#{$fa-css-prefix}-file-sound-o:before,\n.#{$fa-css-prefix}-file-audio-o:before { content: $fa-var-file-audio-o; }\n.#{$fa-css-prefix}-file-movie-o:before,\n.#{$fa-css-prefix}-file-video-o:before { content: $fa-var-file-video-o; }\n.#{$fa-css-prefix}-file-code-o:before { content: $fa-var-file-code-o; }\n.#{$fa-css-prefix}-vine:before { content: $fa-var-vine; }\n.#{$fa-css-prefix}-codepen:before { content: $fa-var-codepen; }\n.#{$fa-css-prefix}-jsfiddle:before { content: $fa-var-jsfiddle; }\n.#{$fa-css-prefix}-life-bouy:before,\n.#{$fa-css-prefix}-life-saver:before,\n.#{$fa-css-prefix}-support:before,\n.#{$fa-css-prefix}-life-ring:before { content: $fa-var-life-ring; }\n.#{$fa-css-prefix}-circle-o-notch:before { content: $fa-var-circle-o-notch; }\n.#{$fa-css-prefix}-ra:before,\n.#{$fa-css-prefix}-rebel:before { content: $fa-var-rebel; }\n.#{$fa-css-prefix}-ge:before,\n.#{$fa-css-prefix}-empire:before { content: $fa-var-empire; }\n.#{$fa-css-prefix}-git-square:before { content: $fa-var-git-square; }\n.#{$fa-css-prefix}-git:before { content: $fa-var-git; }\n.#{$fa-css-prefix}-hacker-news:before { content: $fa-var-hacker-news; }\n.#{$fa-css-prefix}-tencent-weibo:before { content: $fa-var-tencent-weibo; }\n.#{$fa-css-prefix}-qq:before { content: $fa-var-qq; }\n.#{$fa-css-prefix}-wechat:before,\n.#{$fa-css-prefix}-weixin:before { content: $fa-var-weixin; }\n.#{$fa-css-prefix}-send:before,\n.#{$fa-css-prefix}-paper-plane:before { content: $fa-var-paper-plane; }\n.#{$fa-css-prefix}-send-o:before,\n.#{$fa-css-prefix}-paper-plane-o:before { content: $fa-var-paper-plane-o; }\n.#{$fa-css-prefix}-history:before { content: $fa-var-history; }\n.#{$fa-css-prefix}-circle-thin:before { content: $fa-var-circle-thin; }\n.#{$fa-css-prefix}-header:before { content: $fa-var-header; }\n.#{$fa-css-prefix}-paragraph:before { content: $fa-var-paragraph; }\n.#{$fa-css-prefix}-sliders:before { content: $fa-var-sliders; }\n.#{$fa-css-prefix}-share-alt:before { content: $fa-var-share-alt; }\n.#{$fa-css-prefix}-share-alt-square:before { content: $fa-var-share-alt-square; }\n.#{$fa-css-prefix}-bomb:before { content: $fa-var-bomb; }\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_larger.scss",
    "content": "// Icon Sizes\n// -------------------------\n\n/* makes the font 33% larger relative to the icon container */\n.#{$fa-css-prefix}-lg {\n  font-size: (4em / 3);\n  line-height: (3em / 4);\n  vertical-align: -15%;\n}\n.#{$fa-css-prefix}-2x { font-size: 2em; }\n.#{$fa-css-prefix}-3x { font-size: 3em; }\n.#{$fa-css-prefix}-4x { font-size: 4em; }\n.#{$fa-css-prefix}-5x { font-size: 5em; }\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_list.scss",
    "content": "// List Icons\n// -------------------------\n\n.#{$fa-css-prefix}-ul {\n  padding-left: 0;\n  margin-left: $fa-li-width;\n  list-style-type: none;\n  > li { position: relative; }\n}\n.#{$fa-css-prefix}-li {\n  position: absolute;\n  left: -$fa-li-width;\n  width: $fa-li-width;\n  top: (2em / 14);\n  text-align: center;\n  &.#{$fa-css-prefix}-lg {\n    left: -$fa-li-width + (4em / 14);\n  }\n}\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_mixins.scss",
    "content": "// Mixins\n// --------------------------\n\n@mixin fa-icon-rotate($degrees, $rotation) {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});\n  -webkit-transform: rotate($degrees);\n     -moz-transform: rotate($degrees);\n      -ms-transform: rotate($degrees);\n       -o-transform: rotate($degrees);\n          transform: rotate($degrees);\n}\n\n@mixin fa-icon-flip($horiz, $vert, $rotation) {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});\n  -webkit-transform: scale($horiz, $vert);\n     -moz-transform: scale($horiz, $vert);\n      -ms-transform: scale($horiz, $vert);\n       -o-transform: scale($horiz, $vert);\n          transform: scale($horiz, $vert);\n}\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_path.scss",
    "content": "/* FONT PATH\n * -------------------------- */\n\n@font-face {\n  font-family: 'FontAwesome';\n  src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}');\n  src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'),\n    url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'),\n    url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'),\n    url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg');\n  //src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts\n  font-weight: normal;\n  font-style: normal;\n}\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_rotated-flipped.scss",
    "content": "// Rotated & Flipped Icons\n// -------------------------\n\n.#{$fa-css-prefix}-rotate-90  { @include fa-icon-rotate(90deg, 1);  }\n.#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); }\n.#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); }\n\n.#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); }\n.#{$fa-css-prefix}-flip-vertical   { @include fa-icon-flip(1, -1, 2); }\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_spinning.scss",
    "content": "// Spinning Icons\n// --------------------------\n\n.#{$fa-css-prefix}-spin {\n  -webkit-animation: spin 2s infinite linear;\n  -moz-animation: spin 2s infinite linear;\n  -o-animation: spin 2s infinite linear;\n  animation: spin 2s infinite linear;\n}\n\n@-moz-keyframes spin {\n  0% { -moz-transform: rotate(0deg); }\n  100% { -moz-transform: rotate(359deg); }\n}\n@-webkit-keyframes spin {\n  0% { -webkit-transform: rotate(0deg); }\n  100% { -webkit-transform: rotate(359deg); }\n}\n@-o-keyframes spin {\n  0% { -o-transform: rotate(0deg); }\n  100% { -o-transform: rotate(359deg); }\n}\n@keyframes spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(359deg);\n    transform: rotate(359deg);\n  }\n}\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_stacked.scss",
    "content": "// Stacked Icons\n// -------------------------\n\n.#{$fa-css-prefix}-stack {\n  position: relative;\n  display: inline-block;\n  width: 2em;\n  height: 2em;\n  line-height: 2em;\n  vertical-align: middle;\n}\n.#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x {\n  position: absolute;\n  left: 0;\n  width: 100%;\n  text-align: center;\n}\n.#{$fa-css-prefix}-stack-1x { line-height: inherit; }\n.#{$fa-css-prefix}-stack-2x { font-size: 2em; }\n.#{$fa-css-prefix}-inverse { color: $fa-inverse; }\n"
  },
  {
    "path": "style/lib/font-awesome/scss/_variables.scss",
    "content": "// Variables\n// --------------------------\n\n$fa-font-path:        \"../fonts\" !default;\n//$fa-font-path:        \"//netdna.bootstrapcdn.com/font-awesome/4.1.0/fonts\" !default; // for referencing Bootstrap CDN font files directly\n$fa-css-prefix:       fa !default;\n$fa-version:          \"4.1.0\" !default;\n$fa-border-color:     #eee !default;\n$fa-inverse:          #fff !default;\n$fa-li-width:         (30em / 14) !default;\n\n$fa-var-adjust: \"\\f042\";\n$fa-var-adn: \"\\f170\";\n$fa-var-align-center: \"\\f037\";\n$fa-var-align-justify: \"\\f039\";\n$fa-var-align-left: \"\\f036\";\n$fa-var-align-right: \"\\f038\";\n$fa-var-ambulance: \"\\f0f9\";\n$fa-var-anchor: \"\\f13d\";\n$fa-var-android: \"\\f17b\";\n$fa-var-angle-double-down: \"\\f103\";\n$fa-var-angle-double-left: \"\\f100\";\n$fa-var-angle-double-right: \"\\f101\";\n$fa-var-angle-double-up: \"\\f102\";\n$fa-var-angle-down: \"\\f107\";\n$fa-var-angle-left: \"\\f104\";\n$fa-var-angle-right: \"\\f105\";\n$fa-var-angle-up: \"\\f106\";\n$fa-var-apple: \"\\f179\";\n$fa-var-archive: \"\\f187\";\n$fa-var-arrow-circle-down: \"\\f0ab\";\n$fa-var-arrow-circle-left: \"\\f0a8\";\n$fa-var-arrow-circle-o-down: \"\\f01a\";\n$fa-var-arrow-circle-o-left: \"\\f190\";\n$fa-var-arrow-circle-o-right: \"\\f18e\";\n$fa-var-arrow-circle-o-up: \"\\f01b\";\n$fa-var-arrow-circle-right: \"\\f0a9\";\n$fa-var-arrow-circle-up: \"\\f0aa\";\n$fa-var-arrow-down: \"\\f063\";\n$fa-var-arrow-left: \"\\f060\";\n$fa-var-arrow-right: \"\\f061\";\n$fa-var-arrow-up: \"\\f062\";\n$fa-var-arrows: \"\\f047\";\n$fa-var-arrows-alt: \"\\f0b2\";\n$fa-var-arrows-h: \"\\f07e\";\n$fa-var-arrows-v: \"\\f07d\";\n$fa-var-asterisk: \"\\f069\";\n$fa-var-automobile: \"\\f1b9\";\n$fa-var-backward: \"\\f04a\";\n$fa-var-ban: \"\\f05e\";\n$fa-var-bank: \"\\f19c\";\n$fa-var-bar-chart-o: \"\\f080\";\n$fa-var-barcode: \"\\f02a\";\n$fa-var-bars: \"\\f0c9\";\n$fa-var-beer: \"\\f0fc\";\n$fa-var-behance: \"\\f1b4\";\n$fa-var-behance-square: \"\\f1b5\";\n$fa-var-bell: \"\\f0f3\";\n$fa-var-bell-o: \"\\f0a2\";\n$fa-var-bitbucket: \"\\f171\";\n$fa-var-bitbucket-square: \"\\f172\";\n$fa-var-bitcoin: \"\\f15a\";\n$fa-var-bold: \"\\f032\";\n$fa-var-bolt: \"\\f0e7\";\n$fa-var-bomb: \"\\f1e2\";\n$fa-var-book: \"\\f02d\";\n$fa-var-bookmark: \"\\f02e\";\n$fa-var-bookmark-o: \"\\f097\";\n$fa-var-briefcase: \"\\f0b1\";\n$fa-var-btc: \"\\f15a\";\n$fa-var-bug: \"\\f188\";\n$fa-var-building: \"\\f1ad\";\n$fa-var-building-o: \"\\f0f7\";\n$fa-var-bullhorn: \"\\f0a1\";\n$fa-var-bullseye: \"\\f140\";\n$fa-var-cab: \"\\f1ba\";\n$fa-var-calendar: \"\\f073\";\n$fa-var-calendar-o: \"\\f133\";\n$fa-var-camera: \"\\f030\";\n$fa-var-camera-retro: \"\\f083\";\n$fa-var-car: \"\\f1b9\";\n$fa-var-caret-down: \"\\f0d7\";\n$fa-var-caret-left: \"\\f0d9\";\n$fa-var-caret-right: \"\\f0da\";\n$fa-var-caret-square-o-down: \"\\f150\";\n$fa-var-caret-square-o-left: \"\\f191\";\n$fa-var-caret-square-o-right: \"\\f152\";\n$fa-var-caret-square-o-up: \"\\f151\";\n$fa-var-caret-up: \"\\f0d8\";\n$fa-var-certificate: \"\\f0a3\";\n$fa-var-chain: \"\\f0c1\";\n$fa-var-chain-broken: \"\\f127\";\n$fa-var-check: \"\\f00c\";\n$fa-var-check-circle: \"\\f058\";\n$fa-var-check-circle-o: \"\\f05d\";\n$fa-var-check-square: \"\\f14a\";\n$fa-var-check-square-o: \"\\f046\";\n$fa-var-chevron-circle-down: \"\\f13a\";\n$fa-var-chevron-circle-left: \"\\f137\";\n$fa-var-chevron-circle-right: \"\\f138\";\n$fa-var-chevron-circle-up: \"\\f139\";\n$fa-var-chevron-down: \"\\f078\";\n$fa-var-chevron-left: \"\\f053\";\n$fa-var-chevron-right: \"\\f054\";\n$fa-var-chevron-up: \"\\f077\";\n$fa-var-child: \"\\f1ae\";\n$fa-var-circle: \"\\f111\";\n$fa-var-circle-o: \"\\f10c\";\n$fa-var-circle-o-notch: \"\\f1ce\";\n$fa-var-circle-thin: \"\\f1db\";\n$fa-var-clipboard: \"\\f0ea\";\n$fa-var-clock-o: \"\\f017\";\n$fa-var-cloud: \"\\f0c2\";\n$fa-var-cloud-download: \"\\f0ed\";\n$fa-var-cloud-upload: \"\\f0ee\";\n$fa-var-cny: \"\\f157\";\n$fa-var-code: \"\\f121\";\n$fa-var-code-fork: \"\\f126\";\n$fa-var-codepen: \"\\f1cb\";\n$fa-var-coffee: \"\\f0f4\";\n$fa-var-cog: \"\\f013\";\n$fa-var-cogs: \"\\f085\";\n$fa-var-columns: \"\\f0db\";\n$fa-var-comment: \"\\f075\";\n$fa-var-comment-o: \"\\f0e5\";\n$fa-var-comments: \"\\f086\";\n$fa-var-comments-o: \"\\f0e6\";\n$fa-var-compass: \"\\f14e\";\n$fa-var-compress: \"\\f066\";\n$fa-var-copy: \"\\f0c5\";\n$fa-var-credit-card: \"\\f09d\";\n$fa-var-crop: \"\\f125\";\n$fa-var-crosshairs: \"\\f05b\";\n$fa-var-css3: \"\\f13c\";\n$fa-var-cube: \"\\f1b2\";\n$fa-var-cubes: \"\\f1b3\";\n$fa-var-cut: \"\\f0c4\";\n$fa-var-cutlery: \"\\f0f5\";\n$fa-var-dashboard: \"\\f0e4\";\n$fa-var-database: \"\\f1c0\";\n$fa-var-dedent: \"\\f03b\";\n$fa-var-delicious: \"\\f1a5\";\n$fa-var-desktop: \"\\f108\";\n$fa-var-deviantart: \"\\f1bd\";\n$fa-var-digg: \"\\f1a6\";\n$fa-var-dollar: \"\\f155\";\n$fa-var-dot-circle-o: \"\\f192\";\n$fa-var-download: \"\\f019\";\n$fa-var-dribbble: \"\\f17d\";\n$fa-var-dropbox: \"\\f16b\";\n$fa-var-drupal: \"\\f1a9\";\n$fa-var-edit: \"\\f044\";\n$fa-var-eject: \"\\f052\";\n$fa-var-ellipsis-h: \"\\f141\";\n$fa-var-ellipsis-v: \"\\f142\";\n$fa-var-empire: \"\\f1d1\";\n$fa-var-envelope: \"\\f0e0\";\n$fa-var-envelope-o: \"\\f003\";\n$fa-var-envelope-square: \"\\f199\";\n$fa-var-eraser: \"\\f12d\";\n$fa-var-eur: \"\\f153\";\n$fa-var-euro: \"\\f153\";\n$fa-var-exchange: \"\\f0ec\";\n$fa-var-exclamation: \"\\f12a\";\n$fa-var-exclamation-circle: \"\\f06a\";\n$fa-var-exclamation-triangle: \"\\f071\";\n$fa-var-expand: \"\\f065\";\n$fa-var-external-link: \"\\f08e\";\n$fa-var-external-link-square: \"\\f14c\";\n$fa-var-eye: \"\\f06e\";\n$fa-var-eye-slash: \"\\f070\";\n$fa-var-facebook: \"\\f09a\";\n$fa-var-facebook-square: \"\\f082\";\n$fa-var-fast-backward: \"\\f049\";\n$fa-var-fast-forward: \"\\f050\";\n$fa-var-fax: \"\\f1ac\";\n$fa-var-female: \"\\f182\";\n$fa-var-fighter-jet: \"\\f0fb\";\n$fa-var-file: \"\\f15b\";\n$fa-var-file-archive-o: \"\\f1c6\";\n$fa-var-file-audio-o: \"\\f1c7\";\n$fa-var-file-code-o: \"\\f1c9\";\n$fa-var-file-excel-o: \"\\f1c3\";\n$fa-var-file-image-o: \"\\f1c5\";\n$fa-var-file-movie-o: \"\\f1c8\";\n$fa-var-file-o: \"\\f016\";\n$fa-var-file-pdf-o: \"\\f1c1\";\n$fa-var-file-photo-o: \"\\f1c5\";\n$fa-var-file-picture-o: \"\\f1c5\";\n$fa-var-file-powerpoint-o: \"\\f1c4\";\n$fa-var-file-sound-o: \"\\f1c7\";\n$fa-var-file-text: \"\\f15c\";\n$fa-var-file-text-o: \"\\f0f6\";\n$fa-var-file-video-o: \"\\f1c8\";\n$fa-var-file-word-o: \"\\f1c2\";\n$fa-var-file-zip-o: \"\\f1c6\";\n$fa-var-files-o: \"\\f0c5\";\n$fa-var-film: \"\\f008\";\n$fa-var-filter: \"\\f0b0\";\n$fa-var-fire: \"\\f06d\";\n$fa-var-fire-extinguisher: \"\\f134\";\n$fa-var-flag: \"\\f024\";\n$fa-var-flag-checkered: \"\\f11e\";\n$fa-var-flag-o: \"\\f11d\";\n$fa-var-flash: \"\\f0e7\";\n$fa-var-flask: \"\\f0c3\";\n$fa-var-flickr: \"\\f16e\";\n$fa-var-floppy-o: \"\\f0c7\";\n$fa-var-folder: \"\\f07b\";\n$fa-var-folder-o: \"\\f114\";\n$fa-var-folder-open: \"\\f07c\";\n$fa-var-folder-open-o: \"\\f115\";\n$fa-var-font: \"\\f031\";\n$fa-var-forward: \"\\f04e\";\n$fa-var-foursquare: \"\\f180\";\n$fa-var-frown-o: \"\\f119\";\n$fa-var-gamepad: \"\\f11b\";\n$fa-var-gavel: \"\\f0e3\";\n$fa-var-gbp: \"\\f154\";\n$fa-var-ge: \"\\f1d1\";\n$fa-var-gear: \"\\f013\";\n$fa-var-gears: \"\\f085\";\n$fa-var-gift: \"\\f06b\";\n$fa-var-git: \"\\f1d3\";\n$fa-var-git-square: \"\\f1d2\";\n$fa-var-github: \"\\f09b\";\n$fa-var-github-alt: \"\\f113\";\n$fa-var-github-square: \"\\f092\";\n$fa-var-gittip: \"\\f184\";\n$fa-var-glass: \"\\f000\";\n$fa-var-globe: \"\\f0ac\";\n$fa-var-google: \"\\f1a0\";\n$fa-var-google-plus: \"\\f0d5\";\n$fa-var-google-plus-square: \"\\f0d4\";\n$fa-var-graduation-cap: \"\\f19d\";\n$fa-var-group: \"\\f0c0\";\n$fa-var-h-square: \"\\f0fd\";\n$fa-var-hacker-news: \"\\f1d4\";\n$fa-var-hand-o-down: \"\\f0a7\";\n$fa-var-hand-o-left: \"\\f0a5\";\n$fa-var-hand-o-right: \"\\f0a4\";\n$fa-var-hand-o-up: \"\\f0a6\";\n$fa-var-hdd-o: \"\\f0a0\";\n$fa-var-header: \"\\f1dc\";\n$fa-var-headphones: \"\\f025\";\n$fa-var-heart: \"\\f004\";\n$fa-var-heart-o: \"\\f08a\";\n$fa-var-history: \"\\f1da\";\n$fa-var-home: \"\\f015\";\n$fa-var-hospital-o: \"\\f0f8\";\n$fa-var-html5: \"\\f13b\";\n$fa-var-image: \"\\f03e\";\n$fa-var-inbox: \"\\f01c\";\n$fa-var-indent: \"\\f03c\";\n$fa-var-info: \"\\f129\";\n$fa-var-info-circle: \"\\f05a\";\n$fa-var-inr: \"\\f156\";\n$fa-var-instagram: \"\\f16d\";\n$fa-var-institution: \"\\f19c\";\n$fa-var-italic: \"\\f033\";\n$fa-var-joomla: \"\\f1aa\";\n$fa-var-jpy: \"\\f157\";\n$fa-var-jsfiddle: \"\\f1cc\";\n$fa-var-key: \"\\f084\";\n$fa-var-keyboard-o: \"\\f11c\";\n$fa-var-krw: \"\\f159\";\n$fa-var-language: \"\\f1ab\";\n$fa-var-laptop: \"\\f109\";\n$fa-var-leaf: \"\\f06c\";\n$fa-var-legal: \"\\f0e3\";\n$fa-var-lemon-o: \"\\f094\";\n$fa-var-level-down: \"\\f149\";\n$fa-var-level-up: \"\\f148\";\n$fa-var-life-bouy: \"\\f1cd\";\n$fa-var-life-ring: \"\\f1cd\";\n$fa-var-life-saver: \"\\f1cd\";\n$fa-var-lightbulb-o: \"\\f0eb\";\n$fa-var-link: \"\\f0c1\";\n$fa-var-linkedin: \"\\f0e1\";\n$fa-var-linkedin-square: \"\\f08c\";\n$fa-var-linux: \"\\f17c\";\n$fa-var-list: \"\\f03a\";\n$fa-var-list-alt: \"\\f022\";\n$fa-var-list-ol: \"\\f0cb\";\n$fa-var-list-ul: \"\\f0ca\";\n$fa-var-location-arrow: \"\\f124\";\n$fa-var-lock: \"\\f023\";\n$fa-var-long-arrow-down: \"\\f175\";\n$fa-var-long-arrow-left: \"\\f177\";\n$fa-var-long-arrow-right: \"\\f178\";\n$fa-var-long-arrow-up: \"\\f176\";\n$fa-var-magic: \"\\f0d0\";\n$fa-var-magnet: \"\\f076\";\n$fa-var-mail-forward: \"\\f064\";\n$fa-var-mail-reply: \"\\f112\";\n$fa-var-mail-reply-all: \"\\f122\";\n$fa-var-male: \"\\f183\";\n$fa-var-map-marker: \"\\f041\";\n$fa-var-maxcdn: \"\\f136\";\n$fa-var-medkit: \"\\f0fa\";\n$fa-var-meh-o: \"\\f11a\";\n$fa-var-microphone: \"\\f130\";\n$fa-var-microphone-slash: \"\\f131\";\n$fa-var-minus: \"\\f068\";\n$fa-var-minus-circle: \"\\f056\";\n$fa-var-minus-square: \"\\f146\";\n$fa-var-minus-square-o: \"\\f147\";\n$fa-var-mobile: \"\\f10b\";\n$fa-var-mobile-phone: \"\\f10b\";\n$fa-var-money: \"\\f0d6\";\n$fa-var-moon-o: \"\\f186\";\n$fa-var-mortar-board: \"\\f19d\";\n$fa-var-music: \"\\f001\";\n$fa-var-navicon: \"\\f0c9\";\n$fa-var-openid: \"\\f19b\";\n$fa-var-outdent: \"\\f03b\";\n$fa-var-pagelines: \"\\f18c\";\n$fa-var-paper-plane: \"\\f1d8\";\n$fa-var-paper-plane-o: \"\\f1d9\";\n$fa-var-paperclip: \"\\f0c6\";\n$fa-var-paragraph: \"\\f1dd\";\n$fa-var-paste: \"\\f0ea\";\n$fa-var-pause: \"\\f04c\";\n$fa-var-paw: \"\\f1b0\";\n$fa-var-pencil: \"\\f040\";\n$fa-var-pencil-square: \"\\f14b\";\n$fa-var-pencil-square-o: \"\\f044\";\n$fa-var-phone: \"\\f095\";\n$fa-var-phone-square: \"\\f098\";\n$fa-var-photo: \"\\f03e\";\n$fa-var-picture-o: \"\\f03e\";\n$fa-var-pied-piper: \"\\f1a7\";\n$fa-var-pied-piper-alt: \"\\f1a8\";\n$fa-var-pied-piper-square: \"\\f1a7\";\n$fa-var-pinterest: \"\\f0d2\";\n$fa-var-pinterest-square: \"\\f0d3\";\n$fa-var-plane: \"\\f072\";\n$fa-var-play: \"\\f04b\";\n$fa-var-play-circle: \"\\f144\";\n$fa-var-play-circle-o: \"\\f01d\";\n$fa-var-plus: \"\\f067\";\n$fa-var-plus-circle: \"\\f055\";\n$fa-var-plus-square: \"\\f0fe\";\n$fa-var-plus-square-o: \"\\f196\";\n$fa-var-power-off: \"\\f011\";\n$fa-var-print: \"\\f02f\";\n$fa-var-puzzle-piece: \"\\f12e\";\n$fa-var-qq: \"\\f1d6\";\n$fa-var-qrcode: \"\\f029\";\n$fa-var-question: \"\\f128\";\n$fa-var-question-circle: \"\\f059\";\n$fa-var-quote-left: \"\\f10d\";\n$fa-var-quote-right: \"\\f10e\";\n$fa-var-ra: \"\\f1d0\";\n$fa-var-random: \"\\f074\";\n$fa-var-rebel: \"\\f1d0\";\n$fa-var-recycle: \"\\f1b8\";\n$fa-var-reddit: \"\\f1a1\";\n$fa-var-reddit-square: \"\\f1a2\";\n$fa-var-refresh: \"\\f021\";\n$fa-var-renren: \"\\f18b\";\n$fa-var-reorder: \"\\f0c9\";\n$fa-var-repeat: \"\\f01e\";\n$fa-var-reply: \"\\f112\";\n$fa-var-reply-all: \"\\f122\";\n$fa-var-retweet: \"\\f079\";\n$fa-var-rmb: \"\\f157\";\n$fa-var-road: \"\\f018\";\n$fa-var-rocket: \"\\f135\";\n$fa-var-rotate-left: \"\\f0e2\";\n$fa-var-rotate-right: \"\\f01e\";\n$fa-var-rouble: \"\\f158\";\n$fa-var-rss: \"\\f09e\";\n$fa-var-rss-square: \"\\f143\";\n$fa-var-rub: \"\\f158\";\n$fa-var-ruble: \"\\f158\";\n$fa-var-rupee: \"\\f156\";\n$fa-var-save: \"\\f0c7\";\n$fa-var-scissors: \"\\f0c4\";\n$fa-var-search: \"\\f002\";\n$fa-var-search-minus: \"\\f010\";\n$fa-var-search-plus: \"\\f00e\";\n$fa-var-send: \"\\f1d8\";\n$fa-var-send-o: \"\\f1d9\";\n$fa-var-share: \"\\f064\";\n$fa-var-share-alt: \"\\f1e0\";\n$fa-var-share-alt-square: \"\\f1e1\";\n$fa-var-share-square: \"\\f14d\";\n$fa-var-share-square-o: \"\\f045\";\n$fa-var-shield: \"\\f132\";\n$fa-var-shopping-cart: \"\\f07a\";\n$fa-var-sign-in: \"\\f090\";\n$fa-var-sign-out: \"\\f08b\";\n$fa-var-signal: \"\\f012\";\n$fa-var-sitemap: \"\\f0e8\";\n$fa-var-skype: \"\\f17e\";\n$fa-var-slack: \"\\f198\";\n$fa-var-sliders: \"\\f1de\";\n$fa-var-smile-o: \"\\f118\";\n$fa-var-sort: \"\\f0dc\";\n$fa-var-sort-alpha-asc: \"\\f15d\";\n$fa-var-sort-alpha-desc: \"\\f15e\";\n$fa-var-sort-amount-asc: \"\\f160\";\n$fa-var-sort-amount-desc: \"\\f161\";\n$fa-var-sort-asc: \"\\f0de\";\n$fa-var-sort-desc: \"\\f0dd\";\n$fa-var-sort-down: \"\\f0dd\";\n$fa-var-sort-numeric-asc: \"\\f162\";\n$fa-var-sort-numeric-desc: \"\\f163\";\n$fa-var-sort-up: \"\\f0de\";\n$fa-var-soundcloud: \"\\f1be\";\n$fa-var-space-shuttle: \"\\f197\";\n$fa-var-spinner: \"\\f110\";\n$fa-var-spoon: \"\\f1b1\";\n$fa-var-spotify: \"\\f1bc\";\n$fa-var-square: \"\\f0c8\";\n$fa-var-square-o: \"\\f096\";\n$fa-var-stack-exchange: \"\\f18d\";\n$fa-var-stack-overflow: \"\\f16c\";\n$fa-var-star: \"\\f005\";\n$fa-var-star-half: \"\\f089\";\n$fa-var-star-half-empty: \"\\f123\";\n$fa-var-star-half-full: \"\\f123\";\n$fa-var-star-half-o: \"\\f123\";\n$fa-var-star-o: \"\\f006\";\n$fa-var-steam: \"\\f1b6\";\n$fa-var-steam-square: \"\\f1b7\";\n$fa-var-step-backward: \"\\f048\";\n$fa-var-step-forward: \"\\f051\";\n$fa-var-stethoscope: \"\\f0f1\";\n$fa-var-stop: \"\\f04d\";\n$fa-var-strikethrough: \"\\f0cc\";\n$fa-var-stumbleupon: \"\\f1a4\";\n$fa-var-stumbleupon-circle: \"\\f1a3\";\n$fa-var-subscript: \"\\f12c\";\n$fa-var-suitcase: \"\\f0f2\";\n$fa-var-sun-o: \"\\f185\";\n$fa-var-superscript: \"\\f12b\";\n$fa-var-support: \"\\f1cd\";\n$fa-var-table: \"\\f0ce\";\n$fa-var-tablet: \"\\f10a\";\n$fa-var-tachometer: \"\\f0e4\";\n$fa-var-tag: \"\\f02b\";\n$fa-var-tags: \"\\f02c\";\n$fa-var-tasks: \"\\f0ae\";\n$fa-var-taxi: \"\\f1ba\";\n$fa-var-tencent-weibo: \"\\f1d5\";\n$fa-var-terminal: \"\\f120\";\n$fa-var-text-height: \"\\f034\";\n$fa-var-text-width: \"\\f035\";\n$fa-var-th: \"\\f00a\";\n$fa-var-th-large: \"\\f009\";\n$fa-var-th-list: \"\\f00b\";\n$fa-var-thumb-tack: \"\\f08d\";\n$fa-var-thumbs-down: \"\\f165\";\n$fa-var-thumbs-o-down: \"\\f088\";\n$fa-var-thumbs-o-up: \"\\f087\";\n$fa-var-thumbs-up: \"\\f164\";\n$fa-var-ticket: \"\\f145\";\n$fa-var-times: \"\\f00d\";\n$fa-var-times-circle: \"\\f057\";\n$fa-var-times-circle-o: \"\\f05c\";\n$fa-var-tint: \"\\f043\";\n$fa-var-toggle-down: \"\\f150\";\n$fa-var-toggle-left: \"\\f191\";\n$fa-var-toggle-right: \"\\f152\";\n$fa-var-toggle-up: \"\\f151\";\n$fa-var-trash-o: \"\\f014\";\n$fa-var-tree: \"\\f1bb\";\n$fa-var-trello: \"\\f181\";\n$fa-var-trophy: \"\\f091\";\n$fa-var-truck: \"\\f0d1\";\n$fa-var-try: \"\\f195\";\n$fa-var-tumblr: \"\\f173\";\n$fa-var-tumblr-square: \"\\f174\";\n$fa-var-turkish-lira: \"\\f195\";\n$fa-var-twitter: \"\\f099\";\n$fa-var-twitter-square: \"\\f081\";\n$fa-var-umbrella: \"\\f0e9\";\n$fa-var-underline: \"\\f0cd\";\n$fa-var-undo: \"\\f0e2\";\n$fa-var-university: \"\\f19c\";\n$fa-var-unlink: \"\\f127\";\n$fa-var-unlock: \"\\f09c\";\n$fa-var-unlock-alt: \"\\f13e\";\n$fa-var-unsorted: \"\\f0dc\";\n$fa-var-upload: \"\\f093\";\n$fa-var-usd: \"\\f155\";\n$fa-var-user: \"\\f007\";\n$fa-var-user-md: \"\\f0f0\";\n$fa-var-users: \"\\f0c0\";\n$fa-var-video-camera: \"\\f03d\";\n$fa-var-vimeo-square: \"\\f194\";\n$fa-var-vine: \"\\f1ca\";\n$fa-var-vk: \"\\f189\";\n$fa-var-volume-down: \"\\f027\";\n$fa-var-volume-off: \"\\f026\";\n$fa-var-volume-up: \"\\f028\";\n$fa-var-warning: \"\\f071\";\n$fa-var-wechat: \"\\f1d7\";\n$fa-var-weibo: \"\\f18a\";\n$fa-var-weixin: \"\\f1d7\";\n$fa-var-wheelchair: \"\\f193\";\n$fa-var-windows: \"\\f17a\";\n$fa-var-won: \"\\f159\";\n$fa-var-wordpress: \"\\f19a\";\n$fa-var-wrench: \"\\f0ad\";\n$fa-var-xing: \"\\f168\";\n$fa-var-xing-square: \"\\f169\";\n$fa-var-yahoo: \"\\f19e\";\n$fa-var-yen: \"\\f157\";\n$fa-var-youtube: \"\\f167\";\n$fa-var-youtube-play: \"\\f16a\";\n$fa-var-youtube-square: \"\\f166\";\n\n"
  },
  {
    "path": "style/lib/font-awesome/scss/font-awesome.scss",
    "content": "/*!\n *  Font Awesome 4.1.0 by @davegandy - http://fontawesome.io - @fontawesome\n *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */\n\n@import \"variables\";\n@import \"mixins\";\n@import \"path\";\n@import \"core\";\n@import \"larger\";\n@import \"fixed-width\";\n@import \"list\";\n@import \"bordered-pulled\";\n@import \"spinning\";\n@import \"rotated-flipped\";\n@import \"stacked\";\n@import \"icons\";\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/changelog.txt",
    "content": "\nversion 1.6.4 (9/1/13)\n\t- better algorithm for positioning timed agenda events (issue 1115)\n\t- `slotEventOverlap` option to tweak timed agenda event overlapping (issue 218)\n\t- selection bug when slot height is customized (issue 1035)\n\t- supply view argument in `loading` callback (issue 1018)\n\t- fixed week number not displaying in agenda views (issue 1951)\n\t- fixed fullCalendar not initializing with no options (issue 1356)\n\t- NPM's package.json, no more warnings or errors (issue 1762)\n\t- building the bower component should output bower.json instead of component.json (PR 125)\n\t- use bower internally for fetching new versions of jQuery and jQuery UI\n\nversion 1.6.3 (8/10/13)\n\t- viewRender callback (PR 15)\n\t- viewDestroy callback (PR 15)\n\t- eventDestroy callback (PR 111)\n\t- handleWindowResize option (PR 54)\n\t- eventStartEditable/startEditable options (PR 49)\n\t- eventDurationEditable/durationEditable options (PR 49)\n\t- specify function for $.ajax `data` parameter for JSON event sources (PR 59)\n\t- fixed bug with agenda event dropping in wrong column (PR 55)\n\t- easier event element z-index customization (PR 58)\n\t- classNames on past/future days (PR 88)\n\t- allow null/undefined event titles (PR 84)\n\t- small optimize for agenda event rendering (PR 56)\n\t- deprecated:\n\t\t- viewDisplay\n\t\t- disableDragging\n\t\t- disableResizing\n\t- bundled with latest jQuery (1.10.2) and jQuery UI (1.10.3)\n\nversion 1.6.2 (7/18/13)\n\t- hiddenDays option (issue 686)\n\t- bugfix: when eventRender returns false, incorrect stacking of events (issue 762)\n\t- bugfix: couldn't change event.backgroundImage when calling updateEvent (thx stephenharris)\n\nversion 1.6.1 (4/14/13)\n\t- fixed event inner content overflow bug (issue 1783)\n\t- fixed table header className bug (1772)\n\t- removed text-shadow on events (better for general use, thx tkrotoff)\n\nversion 1.6.0 (3/18/13)\n\t- visual facelift, with bootstrap-inspired buttons and colors\n\t- simplified HTML/CSS for events and buttons\n\t- dayRender, for modifying a day cell (issue 191, thx althaus)\n\t- week numbers on side of calendar (issue 295)\n\t\t- weekNumber\n\t\t- weekNumberCalculation\n\t\t- weekNumberTitle\n\t\t- \"W\" formatting variable\n\t- finer snapping granularity for agenda view events (issue 495, thx ms-doodle-com)\n\t- eventAfterAllRender (issue 753, thx pdrakeweb)\n\t- eventDataTransform (thx joeyspo)\n\t- data-date attributes on cells (thx Jae)\n\t- expose $.fullCalendar.dateFormatters\n\t- when clicking fast on buttons, prevent text selection\n\t- bundled with latest jQuery (1.9.1) and jQuery UI (1.10.2)\n\t- Grunt/Lumbar build system for internal development\n\t- build for Bower package manager\n\t- build for jQuery plugin site\n\nversion 1.5.4 (9/5/12)\n\t- made compatible with jQuery 1.8.* (thx archaeron)\n\t- bundled with jQuery 1.8.1 and jQuery UI 1.8.23\n\nversion 1.5.3 (2/6/12)\n\t- fixed dragging issue with jQuery UI 1.8.16 (issue 1168)\n\t- bundled with jQuery 1.7.1 and jQuery UI 1.8.17\n\nversion 1.5.2 (8/21/11)\n\t- correctly process UTC \"Z\" ISO8601 date strings (issue 750)\n\nversion 1.5.1 (4/9/11)\n\t- more flexible ISO8601 date parsing (issue 814)\n\t- more flexible parsing of UNIX timestamps (issue 826)\n\t- FullCalendar now buildable from source on a Mac (issue 795)\n\t- FullCalendar QA'd in FF4 (issue 883)\n\t- upgraded to jQuery 1.5.2 (which supports IE9) and jQuery UI 1.8.11\n\nversion 1.5 (3/19/11)\n\t- slicker default styling for buttons\n\t- reworked a lot of the calendar's HTML and accompanying CSS\n\t  (solves issues 327 and 395)\n\t- more printer-friendly (fullcalendar-print.css)\n\t- fullcalendar now inherits styles from jquery-ui themes differently.\n\t  styles for buttons are distinct from styles for calendar cells.\n\t  (solves issue 299)\n\t- can now color events through FullCalendar options and Event-Object properties (issue 117)\n\t  THIS IS NOW THE PREFERRED METHOD OF COLORING EVENTS (as opposed to using className and CSS)\n\t\t- FullCalendar options:\n\t\t\t- eventColor (changes both background and border)\n\t\t\t- eventBackgroundColor\n\t\t\t- eventBorderColor\n\t\t\t- eventTextColor\n\t\t- Event-Object options:\n\t\t\t- color (changes both background and border)\n\t\t\t- backgroundColor\n\t\t\t- borderColor\n\t\t\t- textColor\n\t- can now specify an event source as an *object* with a `url` property (json feed) or\n\t  an `events` property (function or array) with additional properties that will\n\t  be applied to the entire event source:\n\t\t- color (changes both background and border)\n\t\t- backgroudColor\n\t\t- borderColor\n\t\t- textColor\n\t\t- className\n\t\t- editable\n\t\t- allDayDefault\n\t\t- ignoreTimezone\n\t\t- startParam (for a feed)\n\t\t- endParam   (for a feed)\n\t\t- ANY OF THE JQUERY $.ajax OPTIONS\n\t\t  allows for easily changing from GET to POST and sending additional parameters (issue 386)\n\t\t  allows for easily attaching ajax handlers such as `error` (issue 754)\n\t\t  allows for turning caching on (issue 355)\n\t- Google Calendar feeds are now specified differently:\n\t\t- specify a simple string of your feed's URL\n\t\t- specify an *object* with a `url` property of your feed's URL.\n\t\t  you can include any of the new Event-Source options in this object.\n\t\t- the old `$.fullCalendar.gcalFeed` method still works\n\t- no more IE7 SSL popup (issue 504)\n\t- remove `cacheParam` - use json event source `cache` option instead\n\t- latest jquery/jquery-ui\n\nversion 1.4.11 (2/22/11)\n\t- fixed rerenderEvents bug (issue 790)\n\t- fixed bug with faulty dragging of events from all-day slot in agenda views\n\t- bundled with jquery 1.5 and jquery-ui 1.8.9\n\nversion 1.4.10 (1/2/11)\n\t- fixed bug with resizing event to different week in 5-day month view (issue 740)\n\t- fixed bug with events not sticking after a removeEvents call (issue 757)\n\t- fixed bug with underlying parseTime method, and other uses of parseInt (issue 688)\n\nversion 1.4.9 (11/16/10)\n\t- new algorithm for vertically stacking events (issue 111)\n\t- resizing an event to a different week (issue 306)\n\t- bug: some events not rendered with consecutive calls to addEventSource (issue 679)\n\nversion 1.4.8 (10/16/10)\n\t- ignoreTimezone option (set to `false` to process UTC offsets in ISO8601 dates)\n\t- bugfixes\n\t\t- event refetching not being called under certain conditions (issues 417, 554)\n\t\t- event refetching being called multiple times under certain conditions (issues 586, 616)\n\t\t- selection cannot be triggered by right mouse button (issue 558)\n\t\t- agenda view left axis sized incorrectly (issue 465)\n\t\t- IE js error when calendar is too narrow (issue 517)\n\t\t- agenda view looks strange when no scrollbars (issue 235)\n\t\t- improved parsing of ISO8601 dates with UTC offsets\n\t- $.fullCalendar.version\n\t- an internal refactor of the code, for easier future development and modularity\n\nversion 1.4.7 (7/5/10)\n\t- \"dropping\" external objects onto the calendar\n\t\t- droppable (boolean, to turn on/off)\n\t\t- dropAccept (to filter which events the calendar will accept)\n\t\t- drop (trigger)\n\t- selectable options can now be specified with a View Option Hash\n\t- bugfixes\n\t\t- dragged & reverted events having wrong time text (issue 406)\n\t\t- bug rendering events that have an endtime with seconds, but no hours/minutes (issue 477)\n\t\t- gotoDate date overflow bug (issue 429)\n\t\t- wrong date reported when clicking on edge of last column in agenda views (412)\n\t- support newlines in event titles\n\t- select/unselect callbacks now passes native js event\n\nversion 1.4.6 (5/31/10)\n\t- \"selecting\" days or timeslots\n\t\t- options: selectable, selectHelper, unselectAuto, unselectCancel\n\t\t- callbacks: select, unselect\n\t\t- methods: select, unselect\n\t- when dragging an event, the highlighting reflects the duration of the event\n\t- code compressing by Google Closure Compiler\n\t- bundled with jQuery 1.4.2 and jQuery UI 1.8.1\n\nversion 1.4.5 (2/21/10)\n\t- lazyFetching option, which can force the calendar to fetch events on every view/date change\n\t- scroll state of agenda views are preserved when switching back to view\n\t- bugfixes\n\t\t- calling methods on an uninitialized fullcalendar throws error\n\t\t- IE6/7 bug where an entire view becomes invisible (issue 320)\n\t\t- error when rendering a hidden calendar (in jquery ui tabs for example) in IE (issue 340)\n\t\t- interconnected bugs related to calendar resizing and scrollbars\n\t\t\t- when switching views or clicking prev/next, calendar would \"blink\" (issue 333)\n\t\t\t- liquid-width calendar's events shifted (depending on initial height of browser) (issue 341)\n\t\t\t- more robust underlying algorithm for calendar resizing\n\nversion 1.4.4 (2/3/10)\n\t- optimized event rendering in all views (events render in 1/10 the time)\n\t- gotoDate() does not force the calendar to unnecessarily rerender\n\t- render() method now correctly readjusts height\n\nversion 1.4.3 (12/22/09)\n\t- added destroy method\n\t- Google Calendar event pages respect currentTimezone\n\t- caching now handled by jQuery's ajax\t\n\t- protection from setting aspectRatio to zero\n\t- bugfixes\n\t\t- parseISO8601 and DST caused certain events to display day before\n\t\t- button positioning problem in IE6\n\t\t- ajax event source removed after recently being added, events still displayed\n\t\t- event not displayed when end is an empty string\n\t\t- dynamically setting calendar height when no events have been fetched, throws error\n\nversion 1.4.2 (12/02/09)\n\t- eventAfterRender trigger\n\t- getDate & getView methods\n\t- height & contentHeight options (explicitly sets the pixel height)\n\t- minTime & maxTime options (restricts shown hours in agenda view)\n\t- getters [for all options] and setters [for height, contentHeight, and aspectRatio ONLY! stay tuned..]\n\t- render method now readjusts calendar's size\n\t- bugfixes\n\t\t- lightbox scripts that use iframes (like fancybox)\n\t\t- day-of-week classNames were off when firstDay=1\n\t\t- guaranteed space on right side of agenda events (even when stacked)\n\t\t- accepts ISO8601 dates with a space (instead of 'T')\n\nversion 1.4.1 (10/31/09)\n\t- can exclude weekends with new 'weekends' option\n\t- gcal feed 'currentTimezone' option\n\t- bugfixes\n\t\t- year/month/date option sometimes wouldn't set correctly (depending on current date)\n\t\t- daylight savings issue caused agenda views to start at 1am (for BST users)\n\t- cleanup of gcal.js code\n\nversion 1.4 (10/19/09)\n\t- agendaWeek and agendaDay views\n\t- added some options for agenda views:\n\t\t- allDaySlot\n\t\t- allDayText\n\t\t- firstHour\n\t\t- slotMinutes\n\t\t- defaultEventMinutes\n\t\t- axisFormat\n\t- modified some existing options/triggers to work with agenda views:\n\t\t- dragOpacity and timeFormat can now accept a \"View Hash\" (a new concept)\n\t\t- dayClick now has an allDay parameter\n\t\t- eventDrop now has an an allDay parameter\n\t\t  (this will affect those who use revertFunc, adjust parameter list)\n\t- added 'prevYear' and 'nextYear' for buttons in header\n\t- minor change for theme users, ui-state-hover not applied to active/inactive buttons\n\t- added event-color-changing example in docs\n\t- better defaults for right-to-left themed button icons\n\nversion 1.3.2 (10/13/09)\n\t- Bugfixes (please upgrade from 1.3.1!)\n\t\t- squashed potential infinite loop when addMonths and addDays\n\t\t  is called with an invalid date\n\t\t- $.fullCalendar.parseDate() now correctly parses IETF format\n\t\t- when switching views, the 'today' button sticks inactive, fixed\n\t- gotoDate now can accept a single Date argument\n\t- documentation for changes in 1.3.1 and 1.3.2 now on website\n\nversion 1.3.1 (9/30/09)\n\t- Important Bugfixes (please upgrade from 1.3!)\n\t\t- When current date was late in the month, for long months, and prev/next buttons\n\t\t  were clicked in month-view, some months would be skipped/repeated\n\t\t- In certain time zones, daylight savings time would cause certain days\n\t\t  to be misnumbered in month-view\n\t- Subtle change in way week interval is chosen when switching from month to basicWeek/basicDay view\n\t- Added 'allDayDefault' option\n\t- Added 'changeView' and 'render' methods\n\nversion 1.3 (9/21/09)\n\t- different 'views': month/basicWeek/basicDay\n\t- more flexible 'header' system for buttons\n\t- themable by jQuery UI themes\n\t- resizable events (require jQuery UI resizable plugin)\n\t- rescoped & rewritten CSS, enhanced default look\n\t- cleaner css & rendering techniques for right-to-left\n\t- reworked options & API to support multiple views / be consistent with jQuery UI\n\t- refactoring of entire codebase\n\t\t- broken into different JS & CSS files, assembled w/ build scripts\n\t\t- new test suite for new features, uses firebug-lite\n\t- refactored docs\n\t- Options\n\t\t+ date\n\t\t+ defaultView\n\t\t+ aspectRatio\n\t\t+ disableResizing\n\t\t+ monthNames      (use instead of $.fullCalendar.monthNames)\n\t\t+ monthNamesShort (use instead of $.fullCalendar.monthAbbrevs)\n\t\t+ dayNames        (use instead of $.fullCalendar.dayNames)\n\t\t+ dayNamesShort   (use instead of $.fullCalendar.dayAbbrevs)\n\t\t+ theme\n\t\t+ buttonText\n\t\t+ buttonIcons\n\t\tx draggable           -> editable/disableDragging\n\t\tx fixedWeeks          -> weekMode\n\t\tx abbrevDayHeadings   -> columnFormat\n\t\tx buttons/title       -> header\n\t\tx eventDragOpacity    -> dragOpacity\n\t\tx eventRevertDuration -> dragRevertDuration\n\t\tx weekStart           -> firstDay\n\t\tx rightToLeft         -> isRTL\n\t\tx showTime (use 'allDay' CalEvent property instead)\n\t- Triggered Actions\n\t\t+ eventResizeStart\n\t\t+ eventResizeStop\n\t\t+ eventResize\n\t\tx monthDisplay -> viewDisplay\n\t\tx resize       -> windowResize\n\t\t'eventDrop' params changed, can revert if ajax cuts out\n\t- CalEvent Properties\n\t\tx showTime  -> allDay\n\t\tx draggable -> editable\n\t\t'end' is now INCLUSIVE when allDay=true\n\t\t'url' now produces a real <a> tag, more native clicking/tab behavior\n\t- Methods:\n\t\t+ renderEvent\n\t\tx prevMonth         -> prev\n\t\tx nextMonth         -> next\n\t\tx prevYear/nextYear -> moveDate\n\t\tx refresh           -> rerenderEvents/refetchEvents\n\t\tx removeEvent       -> removeEvents\n\t\tx getEventsByID     -> clientEvents\n\t- Utilities:\n\t\t'formatDate' format string completely changed (inspired by jQuery UI datepicker + datejs)\n\t\t'formatDates' added to support date-ranges\n\t- Google Calendar Options:\n\t\tx draggable -> editable\n\t- Bugfixes\n\t\t- gcal extension fetched 25 results max, now fetches all\n\nversion 1.2.1 (6/29/09)\n\t- bugfixes\n\t\t- allows and corrects invalid end dates for events\n\t\t- doesn't throw an error in IE while rendering when display:none\n\t\t- fixed 'loading' callback when used w/ multiple addEventSource calls\n\t\t- gcal className can now be an array\n\nversion 1.2 (5/31/09)\n\t- expanded API\n\t\t- 'className' CalEvent attribute\n\t\t- 'source' CalEvent attribute\n\t\t- dynamically get/add/remove/update events of current month\n\t\t- locale improvements: change month/day name text\n\t\t- better date formatting ($.fullCalendar.formatDate)\n\t\t- multiple 'event sources' allowed\n\t\t\t- dynamically add/remove event sources\n\t- options for prevYear and nextYear buttons\n\t- docs have been reworked (include addition of Google Calendar docs)\n\t- changed behavior of parseDate for number strings\n\t  (now interpets as unix timestamp, not MS times)\n\t- bugfixes\n\t\t- rightToLeft month start bug\n\t\t- off-by-one errors with month formatting commands\n\t\t- events from previous months sticking when clicking prev/next quickly\n\t- Google Calendar API changed to work w/ multiple event sources\n\t\t- can also provide 'className' and 'draggable' options\n\t- date utilties moved from $ to $.fullCalendar\n\t- more documentation in source code\n\t- minified version of fullcalendar.js\n\t- test suit (available from svn)\n\t- top buttons now use <button> w/ an inner <span> for better css cusomization\n\t\t- thus CSS has changed. IF UPGRADING FROM PREVIOUS VERSIONS,\n\t\t  UPGRADE YOUR FULLCALENDAR.CSS FILE!!!\n\nversion 1.1 (5/10/09)\n\t- Added the following options:\n\t\t- weekStart\n\t\t- rightToLeft\n\t\t- titleFormat\n\t\t- timeFormat\n\t\t- cacheParam\n\t\t- resize\n\t- Fixed rendering bugs\n\t\t- Opera 9.25 (events placement & window resizing)\n\t\t- IE6 (window resizing)\n\t- Optimized window resizing for ALL browsers\n\t- Events on same day now sorted by start time (but first by timespan)\n\t- Correct z-index when dragging\n\t- Dragging contained in overflow DIV for IE6\n\t- Modified fullcalendar.css\n\t\t- for right-to-left support\n\t\t- for variable start-of-week\n\t\t- for IE6 resizing bug\n\t\t- for THEAD and TBODY (in 1.0, just used TBODY, restructured in 1.1)\n\t\t- IF UPGRADING FROM FULLCALENDAR 1.0, YOU MUST UPGRADE FULLCALENDAR.CSS\n\t\t  !!!!!!!!!!!\n\t\t  \n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/demos/agenda-views.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<link href='../fullcalendar/fullcalendar.css' rel='stylesheet' />\n<link href='../fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />\n<script src='../lib/jquery.min.js'></script>\n<script src='../lib/jquery-ui.custom.min.js'></script>\n<script src='../fullcalendar/fullcalendar.min.js'></script>\n<script>\n\n\t$(document).ready(function() {\n\t\n\t\tvar date = new Date();\n\t\tvar d = date.getDate();\n\t\tvar m = date.getMonth();\n\t\tvar y = date.getFullYear();\n\t\t\n\t\t$('#calendar').fullCalendar({\n\t\t\theader: {\n\t\t\t\tleft: 'prev,next today',\n\t\t\t\tcenter: 'title',\n\t\t\t\tright: 'month,agendaWeek,agendaDay'\n\t\t\t},\n\t\t\teditable: true,\n\t\t\tevents: [\n\t\t\t\t{\n\t\t\t\t\ttitle: 'All Day Event',\n\t\t\t\t\tstart: new Date(y, m, 1)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Long Event',\n\t\t\t\t\tstart: new Date(y, m, d-5),\n\t\t\t\t\tend: new Date(y, m, d-2)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d-3, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d+4, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Meeting',\n\t\t\t\t\tstart: new Date(y, m, d, 10, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Lunch',\n\t\t\t\t\tstart: new Date(y, m, d, 12, 0),\n\t\t\t\t\tend: new Date(y, m, d, 14, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Birthday Party',\n\t\t\t\t\tstart: new Date(y, m, d+1, 19, 0),\n\t\t\t\t\tend: new Date(y, m, d+1, 22, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Click for Google',\n\t\t\t\t\tstart: new Date(y, m, 28),\n\t\t\t\t\tend: new Date(y, m, 29),\n\t\t\t\t\turl: 'http://google.com/'\n\t\t\t\t}\n\t\t\t]\n\t\t});\n\t\t\n\t});\n\n</script>\n<style>\n\n\tbody {\n\t\tmargin-top: 40px;\n\t\ttext-align: center;\n\t\tfont-size: 14px;\n\t\tfont-family: \"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif;\n\t\t}\n\n\t#calendar {\n\t\twidth: 900px;\n\t\tmargin: 0 auto;\n\t\t}\n\n</style>\n</head>\n<body>\n<div id='calendar'></div>\n</body>\n</html>\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/demos/basic-views.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<link href='../fullcalendar/fullcalendar.css' rel='stylesheet' />\n<link href='../fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />\n<script src='../lib/jquery.min.js'></script>\n<script src='../lib/jquery-ui.custom.min.js'></script>\n<script src='../fullcalendar/fullcalendar.min.js'></script>\n<script>\n\n\t$(document).ready(function() {\n\t\n\t\tvar date = new Date();\n\t\tvar d = date.getDate();\n\t\tvar m = date.getMonth();\n\t\tvar y = date.getFullYear();\n\t\t\n\t\t$('#calendar').fullCalendar({\n\t\t\theader: {\n\t\t\t\tleft: 'prev,next today',\n\t\t\t\tcenter: 'title',\n\t\t\t\tright: 'month,basicWeek,basicDay'\n\t\t\t},\n\t\t\teditable: true,\n\t\t\tevents: [\n\t\t\t\t{\n\t\t\t\t\ttitle: 'All Day Event',\n\t\t\t\t\tstart: new Date(y, m, 1)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Long Event',\n\t\t\t\t\tstart: new Date(y, m, d-5),\n\t\t\t\t\tend: new Date(y, m, d-2)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d-3, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d+4, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Meeting',\n\t\t\t\t\tstart: new Date(y, m, d, 10, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Lunch',\n\t\t\t\t\tstart: new Date(y, m, d, 12, 0),\n\t\t\t\t\tend: new Date(y, m, d, 14, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Birthday Party',\n\t\t\t\t\tstart: new Date(y, m, d+1, 19, 0),\n\t\t\t\t\tend: new Date(y, m, d+1, 22, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Click for Google',\n\t\t\t\t\tstart: new Date(y, m, 28),\n\t\t\t\t\tend: new Date(y, m, 29),\n\t\t\t\t\turl: 'http://google.com/'\n\t\t\t\t}\n\t\t\t]\n\t\t});\n\t\t\n\t});\n\n</script>\n<style>\n\n\tbody {\n\t\tmargin-top: 40px;\n\t\ttext-align: center;\n\t\tfont-size: 14px;\n\t\tfont-family: \"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif;\n\t\t}\n\n\t#calendar {\n\t\twidth: 900px;\n\t\tmargin: 0 auto;\n\t\t}\n\n</style>\n</head>\n<body>\n<div id='calendar'></div>\n</body>\n</html>\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/demos/default.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<link href='../fullcalendar/fullcalendar.css' rel='stylesheet' />\n<link href='../fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />\n<script src='../lib/jquery.min.js'></script>\n<script src='../lib/jquery-ui.custom.min.js'></script>\n<script src='../fullcalendar/fullcalendar.min.js'></script>\n<script>\n\n\t$(document).ready(function() {\n\t\n\t\tvar date = new Date();\n\t\tvar d = date.getDate();\n\t\tvar m = date.getMonth();\n\t\tvar y = date.getFullYear();\n\t\t\n\t\t$('#calendar').fullCalendar({\n\t\t\teditable: true,\n\t\t\tevents: [\n\t\t\t\t{\n\t\t\t\t\ttitle: 'All Day Event',\n\t\t\t\t\tstart: new Date(y, m, 1)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Long Event',\n\t\t\t\t\tstart: new Date(y, m, d-5),\n\t\t\t\t\tend: new Date(y, m, d-2)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d-3, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d+4, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Meeting',\n\t\t\t\t\tstart: new Date(y, m, d, 10, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Lunch',\n\t\t\t\t\tstart: new Date(y, m, d, 12, 0),\n\t\t\t\t\tend: new Date(y, m, d, 14, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Birthday Party',\n\t\t\t\t\tstart: new Date(y, m, d+1, 19, 0),\n\t\t\t\t\tend: new Date(y, m, d+1, 22, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Click for Google',\n\t\t\t\t\tstart: new Date(y, m, 28),\n\t\t\t\t\tend: new Date(y, m, 29),\n\t\t\t\t\turl: 'http://google.com/'\n\t\t\t\t}\n\t\t\t]\n\t\t});\n\t\t\n\t});\n\n</script>\n<style>\n\n\tbody {\n\t\tmargin-top: 40px;\n\t\ttext-align: center;\n\t\tfont-size: 14px;\n\t\tfont-family: \"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif;\n\t\t}\n\n\t#calendar {\n\t\twidth: 900px;\n\t\tmargin: 0 auto;\n\t\t}\n\n</style>\n</head>\n<body>\n<div id='calendar'></div>\n</body>\n</html>\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/demos/external-dragging.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<link href='../fullcalendar/fullcalendar.css' rel='stylesheet' />\n<link href='../fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />\n<script src='../lib/jquery.min.js'></script>\n<script src='../lib/jquery-ui.custom.min.js'></script>\n<script src='../fullcalendar/fullcalendar.min.js'></script>\n<script>\n\n\t$(document).ready(function() {\n\t\n\t\n\t\t/* initialize the external events\n\t\t-----------------------------------------------------------------*/\n\t\n\t\t$('#external-events div.external-event').each(function() {\n\t\t\n\t\t\t// create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/)\n\t\t\t// it doesn't need to have a start or end\n\t\t\tvar eventObject = {\n\t\t\t\ttitle: $.trim($(this).text()) // use the element's text as the event title\n\t\t\t};\n\t\t\t\n\t\t\t// store the Event Object in the DOM element so we can get to it later\n\t\t\t$(this).data('eventObject', eventObject);\n\t\t\t\n\t\t\t// make the event draggable using jQuery UI\n\t\t\t$(this).draggable({\n\t\t\t\tzIndex: 999,\n\t\t\t\trevert: true,      // will cause the event to go back to its\n\t\t\t\trevertDuration: 0  //  original position after the drag\n\t\t\t});\n\t\t\t\n\t\t});\n\t\n\t\n\t\t/* initialize the calendar\n\t\t-----------------------------------------------------------------*/\n\t\t\n\t\t$('#calendar').fullCalendar({\n\t\t\theader: {\n\t\t\t\tleft: 'prev,next today',\n\t\t\t\tcenter: 'title',\n\t\t\t\tright: 'month,agendaWeek,agendaDay'\n\t\t\t},\n\t\t\teditable: true,\n\t\t\tdroppable: true, // this allows things to be dropped onto the calendar !!!\n\t\t\tdrop: function(date, allDay) { // this function is called when something is dropped\n\t\t\t\n\t\t\t\t// retrieve the dropped element's stored Event Object\n\t\t\t\tvar originalEventObject = $(this).data('eventObject');\n\t\t\t\t\n\t\t\t\t// we need to copy it, so that multiple events don't have a reference to the same object\n\t\t\t\tvar copiedEventObject = $.extend({}, originalEventObject);\n\t\t\t\t\n\t\t\t\t// assign it the date that was reported\n\t\t\t\tcopiedEventObject.start = date;\n\t\t\t\tcopiedEventObject.allDay = allDay;\n\t\t\t\t\n\t\t\t\t// render the event on the calendar\n\t\t\t\t// the last `true` argument determines if the event \"sticks\" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)\n\t\t\t\t$('#calendar').fullCalendar('renderEvent', copiedEventObject, true);\n\t\t\t\t\n\t\t\t\t// is the \"remove after drop\" checkbox checked?\n\t\t\t\tif ($('#drop-remove').is(':checked')) {\n\t\t\t\t\t// if so, remove the element from the \"Draggable Events\" list\n\t\t\t\t\t$(this).remove();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t});\n\n</script>\n<style>\n\n\tbody {\n\t\tmargin-top: 40px;\n\t\ttext-align: center;\n\t\tfont-size: 14px;\n\t\tfont-family: \"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif;\n\t\t}\n\t\t\n\t#wrap {\n\t\twidth: 1100px;\n\t\tmargin: 0 auto;\n\t\t}\n\t\t\n\t#external-events {\n\t\tfloat: left;\n\t\twidth: 150px;\n\t\tpadding: 0 10px;\n\t\tborder: 1px solid #ccc;\n\t\tbackground: #eee;\n\t\ttext-align: left;\n\t\t}\n\t\t\n\t#external-events h4 {\n\t\tfont-size: 16px;\n\t\tmargin-top: 0;\n\t\tpadding-top: 1em;\n\t\t}\n\t\t\n\t.external-event { /* try to mimick the look of a real event */\n\t\tmargin: 10px 0;\n\t\tpadding: 2px 4px;\n\t\tbackground: #3366CC;\n\t\tcolor: #fff;\n\t\tfont-size: .85em;\n\t\tcursor: pointer;\n\t\t}\n\t\t\n\t#external-events p {\n\t\tmargin: 1.5em 0;\n\t\tfont-size: 11px;\n\t\tcolor: #666;\n\t\t}\n\t\t\n\t#external-events p input {\n\t\tmargin: 0;\n\t\tvertical-align: middle;\n\t\t}\n\n\t#calendar {\n\t\tfloat: right;\n\t\twidth: 900px;\n\t\t}\n\n</style>\n</head>\n<body>\n<div id='wrap'>\n\n<div id='external-events'>\n<h4>Draggable Events</h4>\n<div class='external-event'>My Event 1</div>\n<div class='external-event'>My Event 2</div>\n<div class='external-event'>My Event 3</div>\n<div class='external-event'>My Event 4</div>\n<div class='external-event'>My Event 5</div>\n<p>\n<input type='checkbox' id='drop-remove' /> <label for='drop-remove'>remove after drop</label>\n</p>\n</div>\n\n<div id='calendar'></div>\n\n<div style='clear:both'></div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/demos/gcal.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<link href='../fullcalendar/fullcalendar.css' rel='stylesheet' />\n<link href='../fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />\n<script src='../lib/jquery.min.js'></script>\n<script src='../lib/jquery-ui.custom.min.js'></script>\n<script src='../fullcalendar/fullcalendar.min.js'></script>\n<script src='../fullcalendar/gcal.js'></script>\n<script>\n\n\t$(document).ready(function() {\n\t\n\t\t$('#calendar').fullCalendar({\n\t\t\n\t\t\t// US Holidays\n\t\t\tevents: 'http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic',\n\t\t\t\n\t\t\teventClick: function(event) {\n\t\t\t\t// opens events in a popup window\n\t\t\t\twindow.open(event.url, 'gcalevent', 'width=700,height=600');\n\t\t\t\treturn false;\n\t\t\t},\n\t\t\t\n\t\t\tloading: function(bool) {\n\t\t\t\tif (bool) {\n\t\t\t\t\t$('#loading').show();\n\t\t\t\t}else{\n\t\t\t\t\t$('#loading').hide();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t});\n\n</script>\n<style>\n\n\tbody {\n\t\tmargin-top: 40px;\n\t\ttext-align: center;\n\t\tfont-size: 14px;\n\t\tfont-family: \"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif;\n\t\t}\n\t\t\n\t#loading {\n\t\tposition: absolute;\n\t\ttop: 5px;\n\t\tright: 5px;\n\t\t}\n\n\t#calendar {\n\t\twidth: 900px;\n\t\tmargin: 0 auto;\n\t\t}\n\n</style>\n</head>\n<body>\n<div id='loading' style='display:none'>loading...</div>\n<div id='calendar'></div>\n</body>\n</html>\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/demos/json-events.php",
    "content": "<?php\n\n\t$year = date('Y');\n\t$month = date('m');\n\n\techo json_encode(array(\n\t\n\t\tarray(\n\t\t\t'id' => 111,\n\t\t\t'title' => \"Event1\",\n\t\t\t'start' => \"$year-$month-10\",\n\t\t\t'url' => \"http://yahoo.com/\"\n\t\t),\n\t\t\n\t\tarray(\n\t\t\t'id' => 222,\n\t\t\t'title' => \"Event2\",\n\t\t\t'start' => \"$year-$month-20\",\n\t\t\t'end' => \"$year-$month-22\",\n\t\t\t'url' => \"http://yahoo.com/\"\n\t\t)\n\t\n\t));\n\n?>\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/demos/json.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<link href='../fullcalendar/fullcalendar.css' rel='stylesheet' />\n<link href='../fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />\n<script src='../lib/jquery.min.js'></script>\n<script src='../lib/jquery-ui.custom.min.js'></script>\n<script src='../fullcalendar/fullcalendar.min.js'></script>\n<script>\n\n\t$(document).ready(function() {\n\t\n\t\t$('#calendar').fullCalendar({\n\t\t\n\t\t\teditable: true,\n\t\t\t\n\t\t\tevents: \"json-events.php\",\n\t\t\t\n\t\t\teventDrop: function(event, delta) {\n\t\t\t\talert(event.title + ' was moved ' + delta + ' days\\n' +\n\t\t\t\t\t'(should probably update your database)');\n\t\t\t},\n\t\t\t\n\t\t\tloading: function(bool) {\n\t\t\t\tif (bool) $('#loading').show();\n\t\t\t\telse $('#loading').hide();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t});\n\n</script>\n<style>\n\n\tbody {\n\t\tmargin-top: 40px;\n\t\ttext-align: center;\n\t\tfont-size: 14px;\n\t\tfont-family: \"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif;\n\t\t}\n\t\t\n\t#loading {\n\t\tposition: absolute;\n\t\ttop: 5px;\n\t\tright: 5px;\n\t\t}\n\n\t#calendar {\n\t\twidth: 900px;\n\t\tmargin: 0 auto;\n\t\t}\n\n</style>\n</head>\n<body>\n<div id='loading' style='display:none'>loading...</div>\n<div id='calendar'></div>\n<p>json-events.php needs to be running in the same directory.</p>\n</body>\n</html>\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/demos/selectable.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<link href='../fullcalendar/fullcalendar.css' rel='stylesheet' />\n<link href='../fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />\n<script src='../lib/jquery.min.js'></script>\n<script src='../lib/jquery-ui.custom.min.js'></script>\n<script src='../fullcalendar/fullcalendar.min.js'></script>\n<script>\n\n\t$(document).ready(function() {\n\t\n\t\tvar date = new Date();\n\t\tvar d = date.getDate();\n\t\tvar m = date.getMonth();\n\t\tvar y = date.getFullYear();\n\t\t\n\t\tvar calendar = $('#calendar').fullCalendar({\n\t\t\theader: {\n\t\t\t\tleft: 'prev,next today',\n\t\t\t\tcenter: 'title',\n\t\t\t\tright: 'month,agendaWeek,agendaDay'\n\t\t\t},\n\t\t\tselectable: true,\n\t\t\tselectHelper: true,\n\t\t\tselect: function(start, end, allDay) {\n\t\t\t\tvar title = prompt('Event Title:');\n\t\t\t\tif (title) {\n\t\t\t\t\tcalendar.fullCalendar('renderEvent',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttitle: title,\n\t\t\t\t\t\t\tstart: start,\n\t\t\t\t\t\t\tend: end,\n\t\t\t\t\t\t\tallDay: allDay\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttrue // make the event \"stick\"\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tcalendar.fullCalendar('unselect');\n\t\t\t},\n\t\t\teditable: true,\n\t\t\tevents: [\n\t\t\t\t{\n\t\t\t\t\ttitle: 'All Day Event',\n\t\t\t\t\tstart: new Date(y, m, 1)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Long Event',\n\t\t\t\t\tstart: new Date(y, m, d-5),\n\t\t\t\t\tend: new Date(y, m, d-2)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d-3, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d+4, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Meeting',\n\t\t\t\t\tstart: new Date(y, m, d, 10, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Lunch',\n\t\t\t\t\tstart: new Date(y, m, d, 12, 0),\n\t\t\t\t\tend: new Date(y, m, d, 14, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Birthday Party',\n\t\t\t\t\tstart: new Date(y, m, d+1, 19, 0),\n\t\t\t\t\tend: new Date(y, m, d+1, 22, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Click for Google',\n\t\t\t\t\tstart: new Date(y, m, 28),\n\t\t\t\t\tend: new Date(y, m, 29),\n\t\t\t\t\turl: 'http://google.com/'\n\t\t\t\t}\n\t\t\t]\n\t\t});\n\t\t\n\t});\n\n</script>\n<style>\n\n\tbody {\n\t\tmargin-top: 40px;\n\t\ttext-align: center;\n\t\tfont-size: 14px;\n\t\tfont-family: \"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif;\n\t\t}\n\n\t#calendar {\n\t\twidth: 900px;\n\t\tmargin: 0 auto;\n\t\t}\n\n</style>\n</head>\n<body>\n<div id='calendar'></div>\n</body>\n</html>\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/demos/theme.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<link rel='stylesheet' href='cupertino/jquery-ui.min.css' />\n<link href='../fullcalendar/fullcalendar.css' rel='stylesheet' />\n<link href='../fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />\n<script src='../lib/jquery.min.js'></script>\n<script src='../lib/jquery-ui.custom.min.js'></script>\n<script src='../fullcalendar/fullcalendar.min.js'></script>\n<script>\n\n\t$(document).ready(function() {\n\t\n\t\tvar date = new Date();\n\t\tvar d = date.getDate();\n\t\tvar m = date.getMonth();\n\t\tvar y = date.getFullYear();\n\t\t\n\t\t$('#calendar').fullCalendar({\n\t\t\ttheme: true,\n\t\t\theader: {\n\t\t\t\tleft: 'prev,next today',\n\t\t\t\tcenter: 'title',\n\t\t\t\tright: 'month,agendaWeek,agendaDay'\n\t\t\t},\n\t\t\teditable: true,\n\t\t\tevents: [\n\t\t\t\t{\n\t\t\t\t\ttitle: 'All Day Event',\n\t\t\t\t\tstart: new Date(y, m, 1)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Long Event',\n\t\t\t\t\tstart: new Date(y, m, d-5),\n\t\t\t\t\tend: new Date(y, m, d-2)\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d-3, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: 999,\n\t\t\t\t\ttitle: 'Repeating Event',\n\t\t\t\t\tstart: new Date(y, m, d+4, 16, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Meeting',\n\t\t\t\t\tstart: new Date(y, m, d, 10, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Lunch',\n\t\t\t\t\tstart: new Date(y, m, d, 12, 0),\n\t\t\t\t\tend: new Date(y, m, d, 14, 0),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Birthday Party',\n\t\t\t\t\tstart: new Date(y, m, d+1, 19, 0),\n\t\t\t\t\tend: new Date(y, m, d+1, 22, 30),\n\t\t\t\t\tallDay: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: 'Click for Google',\n\t\t\t\t\tstart: new Date(y, m, 28),\n\t\t\t\t\tend: new Date(y, m, 29),\n\t\t\t\t\turl: 'http://google.com/'\n\t\t\t\t}\n\t\t\t]\n\t\t});\n\t\t\n\t});\n\n</script>\n<style>\n\n\tbody {\n\t\tmargin-top: 40px;\n\t\ttext-align: center;\n\t\tfont-size: 13px;\n\t\tfont-family: \"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif;\n\t\t}\n\n\t#calendar {\n\t\twidth: 900px;\n\t\tmargin: 0 auto;\n\t\t}\n\n</style>\n</head>\n<body>\n<div id='calendar'></div>\n</body>\n</html>\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/fullcalendar/fullcalendar.css",
    "content": "/*!\n * FullCalendar v1.6.4 Stylesheet\n * Docs & License: http://arshaw.com/fullcalendar/\n * (c) 2013 Adam Shaw\n */\n\n\n.fc {\n\tdirection: ltr;\n\ttext-align: left;\n\t}\n\t\n.fc table {\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n\t}\n\t\nhtml .fc,\n.fc table {\n\tfont-size: 1em;\n\t}\n\t\n.fc td,\n.fc th {\n\tpadding: 0;\n\tvertical-align: top;\n\t}\n\n\n\n/* Header\n------------------------------------------------------------------------*/\n\n.fc-header td {\n\twhite-space: nowrap;\n\t}\n\n.fc-header-left {\n\twidth: 25%;\n\ttext-align: left;\n\t}\n\t\n.fc-header-center {\n\ttext-align: center;\n\t}\n\t\n.fc-header-right {\n\twidth: 25%;\n\ttext-align: right;\n\t}\n\t\n.fc-header-title {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\t}\n\t\n.fc-header-title h2 {\n\tmargin-top: 0;\n\twhite-space: nowrap;\n\t}\n\t\n.fc .fc-header-space {\n\tpadding-left: 10px;\n\t}\n\t\n.fc-header .fc-button {\n\tmargin-bottom: 1em;\n\tvertical-align: top;\n\t}\n\t\n/* buttons edges butting together */\n\n.fc-header .fc-button {\n\tmargin-right: -1px;\n\t}\n\t\n.fc-header .fc-corner-right,  /* non-theme */\n.fc-header .ui-corner-right { /* theme */\n\tmargin-right: 0; /* back to normal */\n\t}\n\t\n/* button layering (for border precedence) */\n\t\n.fc-header .fc-state-hover,\n.fc-header .ui-state-hover {\n\tz-index: 2;\n\t}\n\t\n.fc-header .fc-state-down {\n\tz-index: 3;\n\t}\n\n.fc-header .fc-state-active,\n.fc-header .ui-state-active {\n\tz-index: 4;\n\t}\n\t\n\t\n\t\n/* Content\n------------------------------------------------------------------------*/\n\t\n.fc-content {\n\tclear: both;\n\tzoom: 1; /* for IE7, gives accurate coordinates for [un]freezeContentHeight */\n\t}\n\t\n.fc-view {\n\twidth: 100%;\n\toverflow: hidden;\n\t}\n\t\n\t\n\n/* Cell Styles\n------------------------------------------------------------------------*/\n\n.fc-widget-header,    /* <th>, usually */\n.fc-widget-content {  /* <td>, usually */\n\tborder: 1px solid #ddd;\n\t}\n\t\n.fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */\n\tbackground: #fcf8e3;\n\t}\n\t\n.fc-cell-overlay { /* semi-transparent rectangle while dragging */\n\tbackground: #bce8f1;\n\topacity: .3;\n\tfilter: alpha(opacity=30); /* for IE */\n\t}\n\t\n\n\n/* Buttons\n------------------------------------------------------------------------*/\n\n.fc-button {\n\tposition: relative;\n\tdisplay: inline-block;\n\tpadding: 0 .6em;\n\toverflow: hidden;\n\theight: 1.9em;\n\tline-height: 1.9em;\n\twhite-space: nowrap;\n\tcursor: pointer;\n\t}\n\t\n.fc-state-default { /* non-theme */\n\tborder: 1px solid;\n\t}\n\n.fc-state-default.fc-corner-left { /* non-theme */\n\tborder-top-left-radius: 4px;\n\tborder-bottom-left-radius: 4px;\n\t}\n\n.fc-state-default.fc-corner-right { /* non-theme */\n\tborder-top-right-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n\t}\n\n/*\n\tOur default prev/next buttons use HTML entities like &lsaquo; &rsaquo; &laquo; &raquo;\n\tand we'll try to make them look good cross-browser.\n*/\n\n.fc-text-arrow {\n\tmargin: 0 .1em;\n\tfont-size: 2em;\n\tfont-family: \"Courier New\", Courier, monospace;\n\tvertical-align: baseline; /* for IE7 */\n\t}\n\n.fc-button-prev .fc-text-arrow,\n.fc-button-next .fc-text-arrow { /* for &lsaquo; &rsaquo; */\n\tfont-weight: bold;\n\t}\n\t\n/* icon (for jquery ui) */\n\t\n.fc-button .fc-icon-wrap {\n\tposition: relative;\n\tfloat: left;\n\ttop: 50%;\n\t}\n\t\n.fc-button .ui-icon {\n\tposition: relative;\n\tfloat: left;\n\tmargin-top: -50%;\n\t*margin-top: 0;\n\t*top: -50%;\n\t}\n\t\n/*\n  button states\n  borrowed from twitter bootstrap (http://twitter.github.com/bootstrap/)\n*/\n\n.fc-state-default {\n\tbackground-color: #f5f5f5;\n\tbackground-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);\n\tbackground-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));\n\tbackground-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);\n\tbackground-image: -o-linear-gradient(top, #ffffff, #e6e6e6);\n\tbackground-image: linear-gradient(to bottom, #ffffff, #e6e6e6);\n\tbackground-repeat: repeat-x;\n\tborder-color: #e6e6e6 #e6e6e6 #bfbfbf;\n\tborder-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n\tcolor: #333;\n\ttext-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);\n\tbox-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n\t}\n\n.fc-state-hover,\n.fc-state-down,\n.fc-state-active,\n.fc-state-disabled {\n\tcolor: #333333;\n\tbackground-color: #e6e6e6;\n\t}\n\n.fc-state-hover {\n\tcolor: #333333;\n\ttext-decoration: none;\n\tbackground-position: 0 -15px;\n\t-webkit-transition: background-position 0.1s linear;\n\t   -moz-transition: background-position 0.1s linear;\n\t     -o-transition: background-position 0.1s linear;\n\t        transition: background-position 0.1s linear;\n\t}\n\n.fc-state-down,\n.fc-state-active {\n\tbackground-color: #cccccc;\n\tbackground-image: none;\n\toutline: 0;\n\tbox-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n\t}\n\n.fc-state-disabled {\n\tcursor: default;\n\tbackground-image: none;\n\topacity: 0.65;\n\tfilter: alpha(opacity=65);\n\tbox-shadow: none;\n\t}\n\n\t\n\n/* Global Event Styles\n------------------------------------------------------------------------*/\n\n.fc-event-container > * {\n\tz-index: 8;\n\t}\n\n.fc-event-container > .ui-draggable-dragging,\n.fc-event-container > .ui-resizable-resizing {\n\tz-index: 9;\n\t}\n\t \n.fc-event {\n\tborder: 1px solid #3a87ad; /* default BORDER color */\n\tbackground-color: #3a87ad; /* default BACKGROUND color */\n\tcolor: #fff;               /* default TEXT color */\n\tfont-size: .85em;\n\tcursor: default;\n\t}\n\na.fc-event {\n\ttext-decoration: none;\n\t}\n\t\na.fc-event,\n.fc-event-draggable {\n\tcursor: pointer;\n\t}\n\t\n.fc-rtl .fc-event {\n\ttext-align: right;\n\t}\n\n.fc-event-inner {\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\t}\n\t\n.fc-event-time,\n.fc-event-title {\n\tpadding: 0 1px;\n\t}\n\t\n.fc .ui-resizable-handle {\n\tdisplay: block;\n\tposition: absolute;\n\tz-index: 99999;\n\toverflow: hidden; /* hacky spaces (IE6/7) */\n\tfont-size: 300%;  /* */\n\tline-height: 50%; /* */\n\t}\n\t\n\t\n\t\n/* Horizontal Events\n------------------------------------------------------------------------*/\n\n.fc-event-hori {\n\tborder-width: 1px 0;\n\tmargin-bottom: 1px;\n\t}\n\n.fc-ltr .fc-event-hori.fc-event-start,\n.fc-rtl .fc-event-hori.fc-event-end {\n\tborder-left-width: 1px;\n\tborder-top-left-radius: 3px;\n\tborder-bottom-left-radius: 3px;\n\t}\n\n.fc-ltr .fc-event-hori.fc-event-end,\n.fc-rtl .fc-event-hori.fc-event-start {\n\tborder-right-width: 1px;\n\tborder-top-right-radius: 3px;\n\tborder-bottom-right-radius: 3px;\n\t}\n\t\n/* resizable */\n\t\n.fc-event-hori .ui-resizable-e {\n\ttop: 0           !important; /* importants override pre jquery ui 1.7 styles */\n\tright: -3px      !important;\n\twidth: 7px       !important;\n\theight: 100%     !important;\n\tcursor: e-resize;\n\t}\n\t\n.fc-event-hori .ui-resizable-w {\n\ttop: 0           !important;\n\tleft: -3px       !important;\n\twidth: 7px       !important;\n\theight: 100%     !important;\n\tcursor: w-resize;\n\t}\n\t\n.fc-event-hori .ui-resizable-handle {\n\t_padding-bottom: 14px; /* IE6 had 0 height */\n\t}\n\t\n\t\n\t\n/* Reusable Separate-border Table\n------------------------------------------------------------*/\n\ntable.fc-border-separate {\n\tborder-collapse: separate;\n\t}\n\t\n.fc-border-separate th,\n.fc-border-separate td {\n\tborder-width: 1px 0 0 1px;\n\t}\n\t\n.fc-border-separate th.fc-last,\n.fc-border-separate td.fc-last {\n\tborder-right-width: 1px;\n\t}\n\t\n.fc-border-separate tr.fc-last th,\n.fc-border-separate tr.fc-last td {\n\tborder-bottom-width: 1px;\n\t}\n\t\n.fc-border-separate tbody tr.fc-first td,\n.fc-border-separate tbody tr.fc-first th {\n\tborder-top-width: 0;\n\t}\n\t\n\t\n\n/* Month View, Basic Week View, Basic Day View\n------------------------------------------------------------------------*/\n\n.fc-grid th {\n\ttext-align: center;\n\t}\n\n.fc .fc-week-number {\n\twidth: 22px;\n\ttext-align: center;\n\t}\n\n.fc .fc-week-number div {\n\tpadding: 0 2px;\n\t}\n\t\n.fc-grid .fc-day-number {\n\tfloat: right;\n\tpadding: 0 2px;\n\t}\n\t\n.fc-grid .fc-other-month .fc-day-number {\n\topacity: 0.3;\n\tfilter: alpha(opacity=30); /* for IE */\n\t/* opacity with small font can sometimes look too faded\n\t   might want to set the 'color' property instead\n\t   making day-numbers bold also fixes the problem */\n\t}\n\t\n.fc-grid .fc-day-content {\n\tclear: both;\n\tpadding: 2px 2px 1px; /* distance between events and day edges */\n\t}\n\t\n/* event styles */\n\t\n.fc-grid .fc-event-time {\n\tfont-weight: bold;\n\t}\n\t\n/* right-to-left */\n\t\n.fc-rtl .fc-grid .fc-day-number {\n\tfloat: left;\n\t}\n\t\n.fc-rtl .fc-grid .fc-event-time {\n\tfloat: right;\n\t}\n\t\n\t\n\n/* Agenda Week View, Agenda Day View\n------------------------------------------------------------------------*/\n\n.fc-agenda table {\n\tborder-collapse: separate;\n\t}\n\t\n.fc-agenda-days th {\n\ttext-align: center;\n\t}\n\t\n.fc-agenda .fc-agenda-axis {\n\twidth: 50px;\n\tpadding: 0 4px;\n\tvertical-align: middle;\n\ttext-align: right;\n\twhite-space: nowrap;\n\tfont-weight: normal;\n\t}\n\n.fc-agenda .fc-week-number {\n\tfont-weight: bold;\n\t}\n\t\n.fc-agenda .fc-day-content {\n\tpadding: 2px 2px 1px;\n\t}\n\t\n/* make axis border take precedence */\n\t\n.fc-agenda-days .fc-agenda-axis {\n\tborder-right-width: 1px;\n\t}\n\t\n.fc-agenda-days .fc-col0 {\n\tborder-left-width: 0;\n\t}\n\t\n/* all-day area */\n\t\n.fc-agenda-allday th {\n\tborder-width: 0 1px;\n\t}\n\t\n.fc-agenda-allday .fc-day-content {\n\tmin-height: 34px; /* TODO: doesnt work well in quirksmode */\n\t_height: 34px;\n\t}\n\t\n/* divider (between all-day and slots) */\n\t\n.fc-agenda-divider-inner {\n\theight: 2px;\n\toverflow: hidden;\n\t}\n\t\n.fc-widget-header .fc-agenda-divider-inner {\n\tbackground: #eee;\n\t}\n\t\n/* slot rows */\n\t\n.fc-agenda-slots th {\n\tborder-width: 1px 1px 0;\n\t}\n\t\n.fc-agenda-slots td {\n\tborder-width: 1px 0 0;\n\tbackground: none;\n\t}\n\t\n.fc-agenda-slots td div {\n\theight: 20px;\n\t}\n\t\n.fc-agenda-slots tr.fc-slot0 th,\n.fc-agenda-slots tr.fc-slot0 td {\n\tborder-top-width: 0;\n\t}\n\n.fc-agenda-slots tr.fc-minor th,\n.fc-agenda-slots tr.fc-minor td {\n\tborder-top-style: dotted;\n\t}\n\t\n.fc-agenda-slots tr.fc-minor th.ui-widget-header {\n\t*border-top-style: solid; /* doesn't work with background in IE6/7 */\n\t}\n\t\n\n\n/* Vertical Events\n------------------------------------------------------------------------*/\n\n.fc-event-vert {\n\tborder-width: 0 1px;\n\t}\n\n.fc-event-vert.fc-event-start {\n\tborder-top-width: 1px;\n\tborder-top-left-radius: 3px;\n\tborder-top-right-radius: 3px;\n\t}\n\n.fc-event-vert.fc-event-end {\n\tborder-bottom-width: 1px;\n\tborder-bottom-left-radius: 3px;\n\tborder-bottom-right-radius: 3px;\n\t}\n\t\n.fc-event-vert .fc-event-time {\n\twhite-space: nowrap;\n\tfont-size: 10px;\n\t}\n\n.fc-event-vert .fc-event-inner {\n\tposition: relative;\n\tz-index: 2;\n\t}\n\t\n.fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay  */\n\tposition: absolute;\n\tz-index: 1;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbackground: #fff;\n\topacity: .25;\n\tfilter: alpha(opacity=25);\n\t}\n\t\n.fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */\n.fc-select-helper .fc-event-bg {\n\tdisplay: none\\9; /* for IE6/7/8. nested opacity filters while dragging don't work */\n\t}\n\t\n/* resizable */\n\t\n.fc-event-vert .ui-resizable-s {\n\tbottom: 0        !important; /* importants override pre jquery ui 1.7 styles */\n\twidth: 100%      !important;\n\theight: 8px      !important;\n\toverflow: hidden !important;\n\tline-height: 8px !important;\n\tfont-size: 11px  !important;\n\tfont-family: monospace;\n\ttext-align: center;\n\tcursor: s-resize;\n\t}\n\t\n.fc-agenda .ui-resizable-resizing { /* TODO: better selector */\n\t_overflow: hidden;\n\t}\n\t\n\t\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/fullcalendar/fullcalendar.js",
    "content": "/*!\n * FullCalendar v1.6.4\n * Docs & License: http://arshaw.com/fullcalendar/\n * (c) 2013 Adam Shaw\n */\n\n/*\n * Use fullcalendar.css for basic styling.\n * For event drag & drop, requires jQuery UI draggable.\n * For event resizing, requires jQuery UI resizable.\n */\n \n(function($, undefined) {\n\n\n;;\n\nvar defaults = {\n\n\t// display\n\tdefaultView: 'month',\n\taspectRatio: 1.35,\n\theader: {\n\t\tleft: 'title',\n\t\tcenter: '',\n\t\tright: 'today prev,next'\n\t},\n\tweekends: true,\n\tweekNumbers: false,\n\tweekNumberCalculation: 'iso',\n\tweekNumberTitle: 'W',\n\t\n\t// editing\n\t//editable: false,\n\t//disableDragging: false,\n\t//disableResizing: false,\n\t\n\tallDayDefault: true,\n\tignoreTimezone: true,\n\t\n\t// event ajax\n\tlazyFetching: true,\n\tstartParam: 'start',\n\tendParam: 'end',\n\t\n\t// time formats\n\ttitleFormat: {\n\t\tmonth: 'MMMM yyyy',\n\t\tweek: \"MMM d[ yyyy]{ '&#8212;'[ MMM] d yyyy}\",\n\t\tday: 'dddd, MMM d, yyyy'\n\t},\n\tcolumnFormat: {\n\t\tmonth: 'ddd',\n\t\tweek: 'ddd M/d',\n\t\tday: 'dddd M/d'\n\t},\n\ttimeFormat: { // for event elements\n\t\t'': 'h(:mm)t' // default\n\t},\n\t\n\t// locale\n\tisRTL: false,\n\tfirstDay: 0,\n\tmonthNames: ['January','February','March','April','May','June','July','August','September','October','November','December'],\n\tmonthNamesShort: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],\n\tdayNames: ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],\n\tdayNamesShort: ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],\n\tbuttonText: {\n\t\tprev: \"<span class='fc-text-arrow'>&lsaquo;</span>\",\n\t\tnext: \"<span class='fc-text-arrow'>&rsaquo;</span>\",\n\t\tprevYear: \"<span class='fc-text-arrow'>&laquo;</span>\",\n\t\tnextYear: \"<span class='fc-text-arrow'>&raquo;</span>\",\n\t\ttoday: 'today',\n\t\tmonth: 'month',\n\t\tweek: 'week',\n\t\tday: 'day'\n\t},\n\t\n\t// jquery-ui theming\n\ttheme: false,\n\tbuttonIcons: {\n\t\tprev: 'circle-triangle-w',\n\t\tnext: 'circle-triangle-e'\n\t},\n\t\n\t//selectable: false,\n\tunselectAuto: true,\n\t\n\tdropAccept: '*',\n\t\n\thandleWindowResize: true\n\t\n};\n\n// right-to-left defaults\nvar rtlDefaults = {\n\theader: {\n\t\tleft: 'next,prev today',\n\t\tcenter: '',\n\t\tright: 'title'\n\t},\n\tbuttonText: {\n\t\tprev: \"<span class='fc-text-arrow'>&rsaquo;</span>\",\n\t\tnext: \"<span class='fc-text-arrow'>&lsaquo;</span>\",\n\t\tprevYear: \"<span class='fc-text-arrow'>&raquo;</span>\",\n\t\tnextYear: \"<span class='fc-text-arrow'>&laquo;</span>\"\n\t},\n\tbuttonIcons: {\n\t\tprev: 'circle-triangle-e',\n\t\tnext: 'circle-triangle-w'\n\t}\n};\n\n\n\n;;\n\nvar fc = $.fullCalendar = { version: \"1.6.4\" };\nvar fcViews = fc.views = {};\n\n\n$.fn.fullCalendar = function(options) {\n\n\n\t// method calling\n\tif (typeof options == 'string') {\n\t\tvar args = Array.prototype.slice.call(arguments, 1);\n\t\tvar res;\n\t\tthis.each(function() {\n\t\t\tvar calendar = $.data(this, 'fullCalendar');\n\t\t\tif (calendar && $.isFunction(calendar[options])) {\n\t\t\t\tvar r = calendar[options].apply(calendar, args);\n\t\t\t\tif (res === undefined) {\n\t\t\t\t\tres = r;\n\t\t\t\t}\n\t\t\t\tif (options == 'destroy') {\n\t\t\t\t\t$.removeData(this, 'fullCalendar');\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tif (res !== undefined) {\n\t\t\treturn res;\n\t\t}\n\t\treturn this;\n\t}\n\n\toptions = options || {};\n\t\n\t// would like to have this logic in EventManager, but needs to happen before options are recursively extended\n\tvar eventSources = options.eventSources || [];\n\tdelete options.eventSources;\n\tif (options.events) {\n\t\teventSources.push(options.events);\n\t\tdelete options.events;\n\t}\n\t\n\n\toptions = $.extend(true, {},\n\t\tdefaults,\n\t\t(options.isRTL || options.isRTL===undefined && defaults.isRTL) ? rtlDefaults : {},\n\t\toptions\n\t);\n\t\n\t\n\tthis.each(function(i, _element) {\n\t\tvar element = $(_element);\n\t\tvar calendar = new Calendar(element, options, eventSources);\n\t\telement.data('fullCalendar', calendar); // TODO: look into memory leak implications\n\t\tcalendar.render();\n\t});\n\t\n\t\n\treturn this;\n\t\n};\n\n\n// function for adding/overriding defaults\nfunction setDefaults(d) {\n\t$.extend(true, defaults, d);\n}\n\n\n\n;;\n\n \nfunction Calendar(element, options, eventSources) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.options = options;\n\tt.render = render;\n\tt.destroy = destroy;\n\tt.refetchEvents = refetchEvents;\n\tt.reportEvents = reportEvents;\n\tt.reportEventChange = reportEventChange;\n\tt.rerenderEvents = rerenderEvents;\n\tt.changeView = changeView;\n\tt.select = select;\n\tt.unselect = unselect;\n\tt.prev = prev;\n\tt.next = next;\n\tt.prevYear = prevYear;\n\tt.nextYear = nextYear;\n\tt.today = today;\n\tt.gotoDate = gotoDate;\n\tt.incrementDate = incrementDate;\n\tt.formatDate = function(format, date) { return formatDate(format, date, options) };\n\tt.formatDates = function(format, date1, date2) { return formatDates(format, date1, date2, options) };\n\tt.getDate = getDate;\n\tt.getView = getView;\n\tt.option = option;\n\tt.trigger = trigger;\n\t\n\t\n\t// imports\n\tEventManager.call(t, options, eventSources);\n\tvar isFetchNeeded = t.isFetchNeeded;\n\tvar fetchEvents = t.fetchEvents;\n\t\n\t\n\t// locals\n\tvar _element = element[0];\n\tvar header;\n\tvar headerElement;\n\tvar content;\n\tvar tm; // for making theme classes\n\tvar currentView;\n\tvar elementOuterWidth;\n\tvar suggestedViewHeight;\n\tvar resizeUID = 0;\n\tvar ignoreWindowResize = 0;\n\tvar date = new Date();\n\tvar events = [];\n\tvar _dragElement;\n\t\n\t\n\t\n\t/* Main Rendering\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tsetYMD(date, options.year, options.month, options.date);\n\t\n\t\n\tfunction render(inc) {\n\t\tif (!content) {\n\t\t\tinitialRender();\n\t\t}\n\t\telse if (elementVisible()) {\n\t\t\t// mainly for the public API\n\t\t\tcalcSize();\n\t\t\t_renderView(inc);\n\t\t}\n\t}\n\t\n\t\n\tfunction initialRender() {\n\t\ttm = options.theme ? 'ui' : 'fc';\n\t\telement.addClass('fc');\n\t\tif (options.isRTL) {\n\t\t\telement.addClass('fc-rtl');\n\t\t}\n\t\telse {\n\t\t\telement.addClass('fc-ltr');\n\t\t}\n\t\tif (options.theme) {\n\t\t\telement.addClass('ui-widget');\n\t\t}\n\n\t\tcontent = $(\"<div class='fc-content' style='position:relative'/>\")\n\t\t\t.prependTo(element);\n\n\t\theader = new Header(t, options);\n\t\theaderElement = header.render();\n\t\tif (headerElement) {\n\t\t\telement.prepend(headerElement);\n\t\t}\n\n\t\tchangeView(options.defaultView);\n\n\t\tif (options.handleWindowResize) {\n\t\t\t$(window).resize(windowResize);\n\t\t}\n\n\t\t// needed for IE in a 0x0 iframe, b/c when it is resized, never triggers a windowResize\n\t\tif (!bodyVisible()) {\n\t\t\tlateRender();\n\t\t}\n\t}\n\t\n\t\n\t// called when we know the calendar couldn't be rendered when it was initialized,\n\t// but we think it's ready now\n\tfunction lateRender() {\n\t\tsetTimeout(function() { // IE7 needs this so dimensions are calculated correctly\n\t\t\tif (!currentView.start && bodyVisible()) { // !currentView.start makes sure this never happens more than once\n\t\t\t\trenderView();\n\t\t\t}\n\t\t},0);\n\t}\n\t\n\t\n\tfunction destroy() {\n\n\t\tif (currentView) {\n\t\t\ttrigger('viewDestroy', currentView, currentView, currentView.element);\n\t\t\tcurrentView.triggerEventDestroy();\n\t\t}\n\n\t\t$(window).unbind('resize', windowResize);\n\n\t\theader.destroy();\n\t\tcontent.remove();\n\t\telement.removeClass('fc fc-rtl ui-widget');\n\t}\n\t\n\t\n\tfunction elementVisible() {\n\t\treturn element.is(':visible');\n\t}\n\t\n\t\n\tfunction bodyVisible() {\n\t\treturn $('body').is(':visible');\n\t}\n\t\n\t\n\t\n\t/* View Rendering\n\t-----------------------------------------------------------------------------*/\n\t\n\n\tfunction changeView(newViewName) {\n\t\tif (!currentView || newViewName != currentView.name) {\n\t\t\t_changeView(newViewName);\n\t\t}\n\t}\n\n\n\tfunction _changeView(newViewName) {\n\t\tignoreWindowResize++;\n\n\t\tif (currentView) {\n\t\t\ttrigger('viewDestroy', currentView, currentView, currentView.element);\n\t\t\tunselect();\n\t\t\tcurrentView.triggerEventDestroy(); // trigger 'eventDestroy' for each event\n\t\t\tfreezeContentHeight();\n\t\t\tcurrentView.element.remove();\n\t\t\theader.deactivateButton(currentView.name);\n\t\t}\n\n\t\theader.activateButton(newViewName);\n\n\t\tcurrentView = new fcViews[newViewName](\n\t\t\t$(\"<div class='fc-view fc-view-\" + newViewName + \"' style='position:relative'/>\")\n\t\t\t\t.appendTo(content),\n\t\t\tt // the calendar object\n\t\t);\n\n\t\trenderView();\n\t\tunfreezeContentHeight();\n\n\t\tignoreWindowResize--;\n\t}\n\n\n\tfunction renderView(inc) {\n\t\tif (\n\t\t\t!currentView.start || // never rendered before\n\t\t\tinc || date < currentView.start || date >= currentView.end // or new date range\n\t\t) {\n\t\t\tif (elementVisible()) {\n\t\t\t\t_renderView(inc);\n\t\t\t}\n\t\t}\n\t}\n\n\n\tfunction _renderView(inc) { // assumes elementVisible\n\t\tignoreWindowResize++;\n\n\t\tif (currentView.start) { // already been rendered?\n\t\t\ttrigger('viewDestroy', currentView, currentView, currentView.element);\n\t\t\tunselect();\n\t\t\tclearEvents();\n\t\t}\n\n\t\tfreezeContentHeight();\n\t\tcurrentView.render(date, inc || 0); // the view's render method ONLY renders the skeleton, nothing else\n\t\tsetSize();\n\t\tunfreezeContentHeight();\n\t\t(currentView.afterRender || noop)();\n\n\t\tupdateTitle();\n\t\tupdateTodayButton();\n\n\t\ttrigger('viewRender', currentView, currentView, currentView.element);\n\t\tcurrentView.trigger('viewDisplay', _element); // deprecated\n\n\t\tignoreWindowResize--;\n\n\t\tgetAndRenderEvents();\n\t}\n\t\n\t\n\n\t/* Resizing\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tfunction updateSize() {\n\t\tif (elementVisible()) {\n\t\t\tunselect();\n\t\t\tclearEvents();\n\t\t\tcalcSize();\n\t\t\tsetSize();\n\t\t\trenderEvents();\n\t\t}\n\t}\n\t\n\t\n\tfunction calcSize() { // assumes elementVisible\n\t\tif (options.contentHeight) {\n\t\t\tsuggestedViewHeight = options.contentHeight;\n\t\t}\n\t\telse if (options.height) {\n\t\t\tsuggestedViewHeight = options.height - (headerElement ? headerElement.height() : 0) - vsides(content);\n\t\t}\n\t\telse {\n\t\t\tsuggestedViewHeight = Math.round(content.width() / Math.max(options.aspectRatio, .5));\n\t\t}\n\t}\n\t\n\t\n\tfunction setSize() { // assumes elementVisible\n\n\t\tif (suggestedViewHeight === undefined) {\n\t\t\tcalcSize(); // for first time\n\t\t\t\t// NOTE: we don't want to recalculate on every renderView because\n\t\t\t\t// it could result in oscillating heights due to scrollbars.\n\t\t}\n\n\t\tignoreWindowResize++;\n\t\tcurrentView.setHeight(suggestedViewHeight);\n\t\tcurrentView.setWidth(content.width());\n\t\tignoreWindowResize--;\n\n\t\telementOuterWidth = element.outerWidth();\n\t}\n\t\n\t\n\tfunction windowResize() {\n\t\tif (!ignoreWindowResize) {\n\t\t\tif (currentView.start) { // view has already been rendered\n\t\t\t\tvar uid = ++resizeUID;\n\t\t\t\tsetTimeout(function() { // add a delay\n\t\t\t\t\tif (uid == resizeUID && !ignoreWindowResize && elementVisible()) {\n\t\t\t\t\t\tif (elementOuterWidth != (elementOuterWidth = element.outerWidth())) {\n\t\t\t\t\t\t\tignoreWindowResize++; // in case the windowResize callback changes the height\n\t\t\t\t\t\t\tupdateSize();\n\t\t\t\t\t\t\tcurrentView.trigger('windowResize', _element);\n\t\t\t\t\t\t\tignoreWindowResize--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, 200);\n\t\t\t}else{\n\t\t\t\t// calendar must have been initialized in a 0x0 iframe that has just been resized\n\t\t\t\tlateRender();\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* Event Fetching/Rendering\n\t-----------------------------------------------------------------------------*/\n\t// TODO: going forward, most of this stuff should be directly handled by the view\n\n\n\tfunction refetchEvents() { // can be called as an API method\n\t\tclearEvents();\n\t\tfetchAndRenderEvents();\n\t}\n\n\n\tfunction rerenderEvents(modifiedEventID) { // can be called as an API method\n\t\tclearEvents();\n\t\trenderEvents(modifiedEventID);\n\t}\n\n\n\tfunction renderEvents(modifiedEventID) { // TODO: remove modifiedEventID hack\n\t\tif (elementVisible()) {\n\t\t\tcurrentView.setEventData(events); // for View.js, TODO: unify with renderEvents\n\t\t\tcurrentView.renderEvents(events, modifiedEventID); // actually render the DOM elements\n\t\t\tcurrentView.trigger('eventAfterAllRender');\n\t\t}\n\t}\n\n\n\tfunction clearEvents() {\n\t\tcurrentView.triggerEventDestroy(); // trigger 'eventDestroy' for each event\n\t\tcurrentView.clearEvents(); // actually remove the DOM elements\n\t\tcurrentView.clearEventData(); // for View.js, TODO: unify with clearEvents\n\t}\n\t\n\n\tfunction getAndRenderEvents() {\n\t\tif (!options.lazyFetching || isFetchNeeded(currentView.visStart, currentView.visEnd)) {\n\t\t\tfetchAndRenderEvents();\n\t\t}\n\t\telse {\n\t\t\trenderEvents();\n\t\t}\n\t}\n\n\n\tfunction fetchAndRenderEvents() {\n\t\tfetchEvents(currentView.visStart, currentView.visEnd);\n\t\t\t// ... will call reportEvents\n\t\t\t// ... which will call renderEvents\n\t}\n\n\t\n\t// called when event data arrives\n\tfunction reportEvents(_events) {\n\t\tevents = _events;\n\t\trenderEvents();\n\t}\n\n\n\t// called when a single event's data has been changed\n\tfunction reportEventChange(eventID) {\n\t\trerenderEvents(eventID);\n\t}\n\n\n\n\t/* Header Updating\n\t-----------------------------------------------------------------------------*/\n\n\n\tfunction updateTitle() {\n\t\theader.updateTitle(currentView.title);\n\t}\n\n\n\tfunction updateTodayButton() {\n\t\tvar today = new Date();\n\t\tif (today >= currentView.start && today < currentView.end) {\n\t\t\theader.disableButton('today');\n\t\t}\n\t\telse {\n\t\t\theader.enableButton('today');\n\t\t}\n\t}\n\t\n\n\n\t/* Selection\n\t-----------------------------------------------------------------------------*/\n\t\n\n\tfunction select(start, end, allDay) {\n\t\tcurrentView.select(start, end, allDay===undefined ? true : allDay);\n\t}\n\t\n\n\tfunction unselect() { // safe to be called before renderView\n\t\tif (currentView) {\n\t\t\tcurrentView.unselect();\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* Date\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tfunction prev() {\n\t\trenderView(-1);\n\t}\n\t\n\t\n\tfunction next() {\n\t\trenderView(1);\n\t}\n\t\n\t\n\tfunction prevYear() {\n\t\taddYears(date, -1);\n\t\trenderView();\n\t}\n\t\n\t\n\tfunction nextYear() {\n\t\taddYears(date, 1);\n\t\trenderView();\n\t}\n\t\n\t\n\tfunction today() {\n\t\tdate = new Date();\n\t\trenderView();\n\t}\n\t\n\t\n\tfunction gotoDate(year, month, dateOfMonth) {\n\t\tif (year instanceof Date) {\n\t\t\tdate = cloneDate(year); // provided 1 argument, a Date\n\t\t}else{\n\t\t\tsetYMD(date, year, month, dateOfMonth);\n\t\t}\n\t\trenderView();\n\t}\n\t\n\t\n\tfunction incrementDate(years, months, days) {\n\t\tif (years !== undefined) {\n\t\t\taddYears(date, years);\n\t\t}\n\t\tif (months !== undefined) {\n\t\t\taddMonths(date, months);\n\t\t}\n\t\tif (days !== undefined) {\n\t\t\taddDays(date, days);\n\t\t}\n\t\trenderView();\n\t}\n\t\n\t\n\tfunction getDate() {\n\t\treturn cloneDate(date);\n\t}\n\n\n\n\t/* Height \"Freezing\"\n\t-----------------------------------------------------------------------------*/\n\n\n\tfunction freezeContentHeight() {\n\t\tcontent.css({\n\t\t\twidth: '100%',\n\t\t\theight: content.height(),\n\t\t\toverflow: 'hidden'\n\t\t});\n\t}\n\n\n\tfunction unfreezeContentHeight() {\n\t\tcontent.css({\n\t\t\twidth: '',\n\t\t\theight: '',\n\t\t\toverflow: ''\n\t\t});\n\t}\n\t\n\t\n\t\n\t/* Misc\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tfunction getView() {\n\t\treturn currentView;\n\t}\n\t\n\t\n\tfunction option(name, value) {\n\t\tif (value === undefined) {\n\t\t\treturn options[name];\n\t\t}\n\t\tif (name == 'height' || name == 'contentHeight' || name == 'aspectRatio') {\n\t\t\toptions[name] = value;\n\t\t\tupdateSize();\n\t\t}\n\t}\n\t\n\t\n\tfunction trigger(name, thisObj) {\n\t\tif (options[name]) {\n\t\t\treturn options[name].apply(\n\t\t\t\tthisObj || _element,\n\t\t\t\tArray.prototype.slice.call(arguments, 2)\n\t\t\t);\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* External Dragging\n\t------------------------------------------------------------------------*/\n\t\n\tif (options.droppable) {\n\t\t$(document)\n\t\t\t.bind('dragstart', function(ev, ui) {\n\t\t\t\tvar _e = ev.target;\n\t\t\t\tvar e = $(_e);\n\t\t\t\tif (!e.parents('.fc').length) { // not already inside a calendar\n\t\t\t\t\tvar accept = options.dropAccept;\n\t\t\t\t\tif ($.isFunction(accept) ? accept.call(_e, e) : e.is(accept)) {\n\t\t\t\t\t\t_dragElement = _e;\n\t\t\t\t\t\tcurrentView.dragStart(_dragElement, ev, ui);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t\t.bind('dragstop', function(ev, ui) {\n\t\t\t\tif (_dragElement) {\n\t\t\t\t\tcurrentView.dragStop(_dragElement, ev, ui);\n\t\t\t\t\t_dragElement = null;\n\t\t\t\t}\n\t\t\t});\n\t}\n\t\n\n}\n\n;;\n\nfunction Header(calendar, options) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.render = render;\n\tt.destroy = destroy;\n\tt.updateTitle = updateTitle;\n\tt.activateButton = activateButton;\n\tt.deactivateButton = deactivateButton;\n\tt.disableButton = disableButton;\n\tt.enableButton = enableButton;\n\t\n\t\n\t// locals\n\tvar element = $([]);\n\tvar tm;\n\t\n\n\n\tfunction render() {\n\t\ttm = options.theme ? 'ui' : 'fc';\n\t\tvar sections = options.header;\n\t\tif (sections) {\n\t\t\telement = $(\"<table class='fc-header' style='width:100%'/>\")\n\t\t\t\t.append(\n\t\t\t\t\t$(\"<tr/>\")\n\t\t\t\t\t\t.append(renderSection('left'))\n\t\t\t\t\t\t.append(renderSection('center'))\n\t\t\t\t\t\t.append(renderSection('right'))\n\t\t\t\t);\n\t\t\treturn element;\n\t\t}\n\t}\n\t\n\t\n\tfunction destroy() {\n\t\telement.remove();\n\t}\n\t\n\t\n\tfunction renderSection(position) {\n\t\tvar e = $(\"<td class='fc-header-\" + position + \"'/>\");\n\t\tvar buttonStr = options.header[position];\n\t\tif (buttonStr) {\n\t\t\t$.each(buttonStr.split(' '), function(i) {\n\t\t\t\tif (i > 0) {\n\t\t\t\t\te.append(\"<span class='fc-header-space'/>\");\n\t\t\t\t}\n\t\t\t\tvar prevButton;\n\t\t\t\t$.each(this.split(','), function(j, buttonName) {\n\t\t\t\t\tif (buttonName == 'title') {\n\t\t\t\t\t\te.append(\"<span class='fc-header-title'><h2>&nbsp;</h2></span>\");\n\t\t\t\t\t\tif (prevButton) {\n\t\t\t\t\t\t\tprevButton.addClass(tm + '-corner-right');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tprevButton = null;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tvar buttonClick;\n\t\t\t\t\t\tif (calendar[buttonName]) {\n\t\t\t\t\t\t\tbuttonClick = calendar[buttonName]; // calendar method\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (fcViews[buttonName]) {\n\t\t\t\t\t\t\tbuttonClick = function() {\n\t\t\t\t\t\t\t\tbutton.removeClass(tm + '-state-hover'); // forget why\n\t\t\t\t\t\t\t\tcalendar.changeView(buttonName);\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (buttonClick) {\n\t\t\t\t\t\t\tvar icon = options.theme ? smartProperty(options.buttonIcons, buttonName) : null; // why are we using smartProperty here?\n\t\t\t\t\t\t\tvar text = smartProperty(options.buttonText, buttonName); // why are we using smartProperty here?\n\t\t\t\t\t\t\tvar button = $(\n\t\t\t\t\t\t\t\t\"<span class='fc-button fc-button-\" + buttonName + \" \" + tm + \"-state-default'>\" +\n\t\t\t\t\t\t\t\t\t(icon ?\n\t\t\t\t\t\t\t\t\t\t\"<span class='fc-icon-wrap'>\" +\n\t\t\t\t\t\t\t\t\t\t\t\"<span class='ui-icon ui-icon-\" + icon + \"'/>\" +\n\t\t\t\t\t\t\t\t\t\t\"</span>\" :\n\t\t\t\t\t\t\t\t\t\ttext\n\t\t\t\t\t\t\t\t\t\t) +\n\t\t\t\t\t\t\t\t\"</span>\"\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t.click(function() {\n\t\t\t\t\t\t\t\t\tif (!button.hasClass(tm + '-state-disabled')) {\n\t\t\t\t\t\t\t\t\t\tbuttonClick();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.mousedown(function() {\n\t\t\t\t\t\t\t\t\tbutton\n\t\t\t\t\t\t\t\t\t\t.not('.' + tm + '-state-active')\n\t\t\t\t\t\t\t\t\t\t.not('.' + tm + '-state-disabled')\n\t\t\t\t\t\t\t\t\t\t.addClass(tm + '-state-down');\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.mouseup(function() {\n\t\t\t\t\t\t\t\t\tbutton.removeClass(tm + '-state-down');\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.hover(\n\t\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\t\tbutton\n\t\t\t\t\t\t\t\t\t\t\t.not('.' + tm + '-state-active')\n\t\t\t\t\t\t\t\t\t\t\t.not('.' + tm + '-state-disabled')\n\t\t\t\t\t\t\t\t\t\t\t.addClass(tm + '-state-hover');\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\t\tbutton\n\t\t\t\t\t\t\t\t\t\t\t.removeClass(tm + '-state-hover')\n\t\t\t\t\t\t\t\t\t\t\t.removeClass(tm + '-state-down');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t.appendTo(e);\n\t\t\t\t\t\t\tdisableTextSelection(button);\n\t\t\t\t\t\t\tif (!prevButton) {\n\t\t\t\t\t\t\t\tbutton.addClass(tm + '-corner-left');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tprevButton = button;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif (prevButton) {\n\t\t\t\t\tprevButton.addClass(tm + '-corner-right');\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn e;\n\t}\n\t\n\t\n\tfunction updateTitle(html) {\n\t\telement.find('h2')\n\t\t\t.html(html);\n\t}\n\t\n\t\n\tfunction activateButton(buttonName) {\n\t\telement.find('span.fc-button-' + buttonName)\n\t\t\t.addClass(tm + '-state-active');\n\t}\n\t\n\t\n\tfunction deactivateButton(buttonName) {\n\t\telement.find('span.fc-button-' + buttonName)\n\t\t\t.removeClass(tm + '-state-active');\n\t}\n\t\n\t\n\tfunction disableButton(buttonName) {\n\t\telement.find('span.fc-button-' + buttonName)\n\t\t\t.addClass(tm + '-state-disabled');\n\t}\n\t\n\t\n\tfunction enableButton(buttonName) {\n\t\telement.find('span.fc-button-' + buttonName)\n\t\t\t.removeClass(tm + '-state-disabled');\n\t}\n\n\n}\n\n;;\n\nfc.sourceNormalizers = [];\nfc.sourceFetchers = [];\n\nvar ajaxDefaults = {\n\tdataType: 'json',\n\tcache: false\n};\n\nvar eventGUID = 1;\n\n\nfunction EventManager(options, _sources) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.isFetchNeeded = isFetchNeeded;\n\tt.fetchEvents = fetchEvents;\n\tt.addEventSource = addEventSource;\n\tt.removeEventSource = removeEventSource;\n\tt.updateEvent = updateEvent;\n\tt.renderEvent = renderEvent;\n\tt.removeEvents = removeEvents;\n\tt.clientEvents = clientEvents;\n\tt.normalizeEvent = normalizeEvent;\n\t\n\t\n\t// imports\n\tvar trigger = t.trigger;\n\tvar getView = t.getView;\n\tvar reportEvents = t.reportEvents;\n\t\n\t\n\t// locals\n\tvar stickySource = { events: [] };\n\tvar sources = [ stickySource ];\n\tvar rangeStart, rangeEnd;\n\tvar currentFetchID = 0;\n\tvar pendingSourceCnt = 0;\n\tvar loadingLevel = 0;\n\tvar cache = [];\n\t\n\t\n\tfor (var i=0; i<_sources.length; i++) {\n\t\t_addEventSource(_sources[i]);\n\t}\n\t\n\t\n\t\n\t/* Fetching\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tfunction isFetchNeeded(start, end) {\n\t\treturn !rangeStart || start < rangeStart || end > rangeEnd;\n\t}\n\t\n\t\n\tfunction fetchEvents(start, end) {\n\t\trangeStart = start;\n\t\trangeEnd = end;\n\t\tcache = [];\n\t\tvar fetchID = ++currentFetchID;\n\t\tvar len = sources.length;\n\t\tpendingSourceCnt = len;\n\t\tfor (var i=0; i<len; i++) {\n\t\t\tfetchEventSource(sources[i], fetchID);\n\t\t}\n\t}\n\t\n\t\n\tfunction fetchEventSource(source, fetchID) {\n\t\t_fetchEventSource(source, function(events) {\n\t\t\tif (fetchID == currentFetchID) {\n\t\t\t\tif (events) {\n\n\t\t\t\t\tif (options.eventDataTransform) {\n\t\t\t\t\t\tevents = $.map(events, options.eventDataTransform);\n\t\t\t\t\t}\n\t\t\t\t\tif (source.eventDataTransform) {\n\t\t\t\t\t\tevents = $.map(events, source.eventDataTransform);\n\t\t\t\t\t}\n\t\t\t\t\t// TODO: this technique is not ideal for static array event sources.\n\t\t\t\t\t//  For arrays, we'll want to process all events right in the beginning, then never again.\n\t\t\t\t\n\t\t\t\t\tfor (var i=0; i<events.length; i++) {\n\t\t\t\t\t\tevents[i].source = source;\n\t\t\t\t\t\tnormalizeEvent(events[i]);\n\t\t\t\t\t}\n\t\t\t\t\tcache = cache.concat(events);\n\t\t\t\t}\n\t\t\t\tpendingSourceCnt--;\n\t\t\t\tif (!pendingSourceCnt) {\n\t\t\t\t\treportEvents(cache);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\t\n\t\n\tfunction _fetchEventSource(source, callback) {\n\t\tvar i;\n\t\tvar fetchers = fc.sourceFetchers;\n\t\tvar res;\n\t\tfor (i=0; i<fetchers.length; i++) {\n\t\t\tres = fetchers[i](source, rangeStart, rangeEnd, callback);\n\t\t\tif (res === true) {\n\t\t\t\t// the fetcher is in charge. made its own async request\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (typeof res == 'object') {\n\t\t\t\t// the fetcher returned a new source. process it\n\t\t\t\t_fetchEventSource(res, callback);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tvar events = source.events;\n\t\tif (events) {\n\t\t\tif ($.isFunction(events)) {\n\t\t\t\tpushLoading();\n\t\t\t\tevents(cloneDate(rangeStart), cloneDate(rangeEnd), function(events) {\n\t\t\t\t\tcallback(events);\n\t\t\t\t\tpopLoading();\n\t\t\t\t});\n\t\t\t}\n\t\t\telse if ($.isArray(events)) {\n\t\t\t\tcallback(events);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}else{\n\t\t\tvar url = source.url;\n\t\t\tif (url) {\n\t\t\t\tvar success = source.success;\n\t\t\t\tvar error = source.error;\n\t\t\t\tvar complete = source.complete;\n\n\t\t\t\t// retrieve any outbound GET/POST $.ajax data from the options\n\t\t\t\tvar customData;\n\t\t\t\tif ($.isFunction(source.data)) {\n\t\t\t\t\t// supplied as a function that returns a key/value object\n\t\t\t\t\tcustomData = source.data();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// supplied as a straight key/value object\n\t\t\t\t\tcustomData = source.data;\n\t\t\t\t}\n\n\t\t\t\t// use a copy of the custom data so we can modify the parameters\n\t\t\t\t// and not affect the passed-in object.\n\t\t\t\tvar data = $.extend({}, customData || {});\n\n\t\t\t\tvar startParam = firstDefined(source.startParam, options.startParam);\n\t\t\t\tvar endParam = firstDefined(source.endParam, options.endParam);\n\t\t\t\tif (startParam) {\n\t\t\t\t\tdata[startParam] = Math.round(+rangeStart / 1000);\n\t\t\t\t}\n\t\t\t\tif (endParam) {\n\t\t\t\t\tdata[endParam] = Math.round(+rangeEnd / 1000);\n\t\t\t\t}\n\n\t\t\t\tpushLoading();\n\t\t\t\t$.ajax($.extend({}, ajaxDefaults, source, {\n\t\t\t\t\tdata: data,\n\t\t\t\t\tsuccess: function(events) {\n\t\t\t\t\t\tevents = events || [];\n\t\t\t\t\t\tvar res = applyAll(success, this, arguments);\n\t\t\t\t\t\tif ($.isArray(res)) {\n\t\t\t\t\t\t\tevents = res;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback(events);\n\t\t\t\t\t},\n\t\t\t\t\terror: function() {\n\t\t\t\t\t\tapplyAll(error, this, arguments);\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t},\n\t\t\t\t\tcomplete: function() {\n\t\t\t\t\t\tapplyAll(complete, this, arguments);\n\t\t\t\t\t\tpopLoading();\n\t\t\t\t\t}\n\t\t\t\t}));\n\t\t\t}else{\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* Sources\n\t-----------------------------------------------------------------------------*/\n\t\n\n\tfunction addEventSource(source) {\n\t\tsource = _addEventSource(source);\n\t\tif (source) {\n\t\t\tpendingSourceCnt++;\n\t\t\tfetchEventSource(source, currentFetchID); // will eventually call reportEvents\n\t\t}\n\t}\n\t\n\t\n\tfunction _addEventSource(source) {\n\t\tif ($.isFunction(source) || $.isArray(source)) {\n\t\t\tsource = { events: source };\n\t\t}\n\t\telse if (typeof source == 'string') {\n\t\t\tsource = { url: source };\n\t\t}\n\t\tif (typeof source == 'object') {\n\t\t\tnormalizeSource(source);\n\t\t\tsources.push(source);\n\t\t\treturn source;\n\t\t}\n\t}\n\t\n\n\tfunction removeEventSource(source) {\n\t\tsources = $.grep(sources, function(src) {\n\t\t\treturn !isSourcesEqual(src, source);\n\t\t});\n\t\t// remove all client events from that source\n\t\tcache = $.grep(cache, function(e) {\n\t\t\treturn !isSourcesEqual(e.source, source);\n\t\t});\n\t\treportEvents(cache);\n\t}\n\t\n\t\n\t\n\t/* Manipulation\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tfunction updateEvent(event) { // update an existing event\n\t\tvar i, len = cache.length, e,\n\t\t\tdefaultEventEnd = getView().defaultEventEnd, // getView???\n\t\t\tstartDelta = event.start - event._start,\n\t\t\tendDelta = event.end ?\n\t\t\t\t(event.end - (event._end || defaultEventEnd(event))) // event._end would be null if event.end\n\t\t\t\t: 0;                                                      // was null and event was just resized\n\t\tfor (i=0; i<len; i++) {\n\t\t\te = cache[i];\n\t\t\tif (e._id == event._id && e != event) {\n\t\t\t\te.start = new Date(+e.start + startDelta);\n\t\t\t\tif (event.end) {\n\t\t\t\t\tif (e.end) {\n\t\t\t\t\t\te.end = new Date(+e.end + endDelta);\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.end = new Date(+defaultEventEnd(e) + endDelta);\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\te.end = null;\n\t\t\t\t}\n\t\t\t\te.title = event.title;\n\t\t\t\te.url = event.url;\n\t\t\t\te.allDay = event.allDay;\n\t\t\t\te.className = event.className;\n\t\t\t\te.editable = event.editable;\n\t\t\t\te.color = event.color;\n\t\t\t\te.backgroundColor = event.backgroundColor;\n\t\t\t\te.borderColor = event.borderColor;\n\t\t\t\te.textColor = event.textColor;\n\t\t\t\tnormalizeEvent(e);\n\t\t\t}\n\t\t}\n\t\tnormalizeEvent(event);\n\t\treportEvents(cache);\n\t}\n\t\n\t\n\tfunction renderEvent(event, stick) {\n\t\tnormalizeEvent(event);\n\t\tif (!event.source) {\n\t\t\tif (stick) {\n\t\t\t\tstickySource.events.push(event);\n\t\t\t\tevent.source = stickySource;\n\t\t\t}\n\t\t\tcache.push(event);\n\t\t}\n\t\treportEvents(cache);\n\t}\n\t\n\t\n\tfunction removeEvents(filter) {\n\t\tif (!filter) { // remove all\n\t\t\tcache = [];\n\t\t\t// clear all array sources\n\t\t\tfor (var i=0; i<sources.length; i++) {\n\t\t\t\tif ($.isArray(sources[i].events)) {\n\t\t\t\t\tsources[i].events = [];\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tif (!$.isFunction(filter)) { // an event ID\n\t\t\t\tvar id = filter + '';\n\t\t\t\tfilter = function(e) {\n\t\t\t\t\treturn e._id == id;\n\t\t\t\t};\n\t\t\t}\n\t\t\tcache = $.grep(cache, filter, true);\n\t\t\t// remove events from array sources\n\t\t\tfor (var i=0; i<sources.length; i++) {\n\t\t\t\tif ($.isArray(sources[i].events)) {\n\t\t\t\t\tsources[i].events = $.grep(sources[i].events, filter, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treportEvents(cache);\n\t}\n\t\n\t\n\tfunction clientEvents(filter) {\n\t\tif ($.isFunction(filter)) {\n\t\t\treturn $.grep(cache, filter);\n\t\t}\n\t\telse if (filter) { // an event ID\n\t\t\tfilter += '';\n\t\t\treturn $.grep(cache, function(e) {\n\t\t\t\treturn e._id == filter;\n\t\t\t});\n\t\t}\n\t\treturn cache; // else, return all\n\t}\n\t\n\t\n\t\n\t/* Loading State\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tfunction pushLoading() {\n\t\tif (!loadingLevel++) {\n\t\t\ttrigger('loading', null, true, getView());\n\t\t}\n\t}\n\t\n\t\n\tfunction popLoading() {\n\t\tif (!--loadingLevel) {\n\t\t\ttrigger('loading', null, false, getView());\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* Event Normalization\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tfunction normalizeEvent(event) {\n\t\tvar source = event.source || {};\n\t\tvar ignoreTimezone = firstDefined(source.ignoreTimezone, options.ignoreTimezone);\n\t\tevent._id = event._id || (event.id === undefined ? '_fc' + eventGUID++ : event.id + '');\n\t\tif (event.date) {\n\t\t\tif (!event.start) {\n\t\t\t\tevent.start = event.date;\n\t\t\t}\n\t\t\tdelete event.date;\n\t\t}\n\t\tevent._start = cloneDate(event.start = parseDate(event.start, ignoreTimezone));\n\t\tevent.end = parseDate(event.end, ignoreTimezone);\n\t\tif (event.end && event.end <= event.start) {\n\t\t\tevent.end = null;\n\t\t}\n\t\tevent._end = event.end ? cloneDate(event.end) : null;\n\t\tif (event.allDay === undefined) {\n\t\t\tevent.allDay = firstDefined(source.allDayDefault, options.allDayDefault);\n\t\t}\n\t\tif (event.className) {\n\t\t\tif (typeof event.className == 'string') {\n\t\t\t\tevent.className = event.className.split(/\\s+/);\n\t\t\t}\n\t\t}else{\n\t\t\tevent.className = [];\n\t\t}\n\t\t// TODO: if there is no start date, return false to indicate an invalid event\n\t}\n\t\n\t\n\t\n\t/* Utils\n\t------------------------------------------------------------------------------*/\n\t\n\t\n\tfunction normalizeSource(source) {\n\t\tif (source.className) {\n\t\t\t// TODO: repeat code, same code for event classNames\n\t\t\tif (typeof source.className == 'string') {\n\t\t\t\tsource.className = source.className.split(/\\s+/);\n\t\t\t}\n\t\t}else{\n\t\t\tsource.className = [];\n\t\t}\n\t\tvar normalizers = fc.sourceNormalizers;\n\t\tfor (var i=0; i<normalizers.length; i++) {\n\t\t\tnormalizers[i](source);\n\t\t}\n\t}\n\t\n\t\n\tfunction isSourcesEqual(source1, source2) {\n\t\treturn source1 && source2 && getSourcePrimitive(source1) == getSourcePrimitive(source2);\n\t}\n\t\n\t\n\tfunction getSourcePrimitive(source) {\n\t\treturn ((typeof source == 'object') ? (source.events || source.url) : '') || source;\n\t}\n\n\n}\n\n;;\n\n\nfc.addDays = addDays;\nfc.cloneDate = cloneDate;\nfc.parseDate = parseDate;\nfc.parseISO8601 = parseISO8601;\nfc.parseTime = parseTime;\nfc.formatDate = formatDate;\nfc.formatDates = formatDates;\n\n\n\n/* Date Math\n-----------------------------------------------------------------------------*/\n\nvar dayIDs = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'],\n\tDAY_MS = 86400000,\n\tHOUR_MS = 3600000,\n\tMINUTE_MS = 60000;\n\t\n\nfunction addYears(d, n, keepTime) {\n\td.setFullYear(d.getFullYear() + n);\n\tif (!keepTime) {\n\t\tclearTime(d);\n\t}\n\treturn d;\n}\n\n\nfunction addMonths(d, n, keepTime) { // prevents day overflow/underflow\n\tif (+d) { // prevent infinite looping on invalid dates\n\t\tvar m = d.getMonth() + n,\n\t\t\tcheck = cloneDate(d);\n\t\tcheck.setDate(1);\n\t\tcheck.setMonth(m);\n\t\td.setMonth(m);\n\t\tif (!keepTime) {\n\t\t\tclearTime(d);\n\t\t}\n\t\twhile (d.getMonth() != check.getMonth()) {\n\t\t\td.setDate(d.getDate() + (d < check ? 1 : -1));\n\t\t}\n\t}\n\treturn d;\n}\n\n\nfunction addDays(d, n, keepTime) { // deals with daylight savings\n\tif (+d) {\n\t\tvar dd = d.getDate() + n,\n\t\t\tcheck = cloneDate(d);\n\t\tcheck.setHours(9); // set to middle of day\n\t\tcheck.setDate(dd);\n\t\td.setDate(dd);\n\t\tif (!keepTime) {\n\t\t\tclearTime(d);\n\t\t}\n\t\tfixDate(d, check);\n\t}\n\treturn d;\n}\n\n\nfunction fixDate(d, check) { // force d to be on check's YMD, for daylight savings purposes\n\tif (+d) { // prevent infinite looping on invalid dates\n\t\twhile (d.getDate() != check.getDate()) {\n\t\t\td.setTime(+d + (d < check ? 1 : -1) * HOUR_MS);\n\t\t}\n\t}\n}\n\n\nfunction addMinutes(d, n) {\n\td.setMinutes(d.getMinutes() + n);\n\treturn d;\n}\n\n\nfunction clearTime(d) {\n\td.setHours(0);\n\td.setMinutes(0);\n\td.setSeconds(0); \n\td.setMilliseconds(0);\n\treturn d;\n}\n\n\nfunction cloneDate(d, dontKeepTime) {\n\tif (dontKeepTime) {\n\t\treturn clearTime(new Date(+d));\n\t}\n\treturn new Date(+d);\n}\n\n\nfunction zeroDate() { // returns a Date with time 00:00:00 and dateOfMonth=1\n\tvar i=0, d;\n\tdo {\n\t\td = new Date(1970, i++, 1);\n\t} while (d.getHours()); // != 0\n\treturn d;\n}\n\n\nfunction dayDiff(d1, d2) { // d1 - d2\n\treturn Math.round((cloneDate(d1, true) - cloneDate(d2, true)) / DAY_MS);\n}\n\n\nfunction setYMD(date, y, m, d) {\n\tif (y !== undefined && y != date.getFullYear()) {\n\t\tdate.setDate(1);\n\t\tdate.setMonth(0);\n\t\tdate.setFullYear(y);\n\t}\n\tif (m !== undefined && m != date.getMonth()) {\n\t\tdate.setDate(1);\n\t\tdate.setMonth(m);\n\t}\n\tif (d !== undefined) {\n\t\tdate.setDate(d);\n\t}\n}\n\n\n\n/* Date Parsing\n-----------------------------------------------------------------------------*/\n\n\nfunction parseDate(s, ignoreTimezone) { // ignoreTimezone defaults to true\n\tif (typeof s == 'object') { // already a Date object\n\t\treturn s;\n\t}\n\tif (typeof s == 'number') { // a UNIX timestamp\n\t\treturn new Date(s * 1000);\n\t}\n\tif (typeof s == 'string') {\n\t\tif (s.match(/^\\d+(\\.\\d+)?$/)) { // a UNIX timestamp\n\t\t\treturn new Date(parseFloat(s) * 1000);\n\t\t}\n\t\tif (ignoreTimezone === undefined) {\n\t\t\tignoreTimezone = true;\n\t\t}\n\t\treturn parseISO8601(s, ignoreTimezone) || (s ? new Date(s) : null);\n\t}\n\t// TODO: never return invalid dates (like from new Date(<string>)), return null instead\n\treturn null;\n}\n\n\nfunction parseISO8601(s, ignoreTimezone) { // ignoreTimezone defaults to false\n\t// derived from http://delete.me.uk/2005/03/iso8601.html\n\t// TODO: for a know glitch/feature, read tests/issue_206_parseDate_dst.html\n\tvar m = s.match(/^([0-9]{4})(-([0-9]{2})(-([0-9]{2})([T ]([0-9]{2}):([0-9]{2})(:([0-9]{2})(\\.([0-9]+))?)?(Z|(([-+])([0-9]{2})(:?([0-9]{2}))?))?)?)?)?$/);\n\tif (!m) {\n\t\treturn null;\n\t}\n\tvar date = new Date(m[1], 0, 1);\n\tif (ignoreTimezone || !m[13]) {\n\t\tvar check = new Date(m[1], 0, 1, 9, 0);\n\t\tif (m[3]) {\n\t\t\tdate.setMonth(m[3] - 1);\n\t\t\tcheck.setMonth(m[3] - 1);\n\t\t}\n\t\tif (m[5]) {\n\t\t\tdate.setDate(m[5]);\n\t\t\tcheck.setDate(m[5]);\n\t\t}\n\t\tfixDate(date, check);\n\t\tif (m[7]) {\n\t\t\tdate.setHours(m[7]);\n\t\t}\n\t\tif (m[8]) {\n\t\t\tdate.setMinutes(m[8]);\n\t\t}\n\t\tif (m[10]) {\n\t\t\tdate.setSeconds(m[10]);\n\t\t}\n\t\tif (m[12]) {\n\t\t\tdate.setMilliseconds(Number(\"0.\" + m[12]) * 1000);\n\t\t}\n\t\tfixDate(date, check);\n\t}else{\n\t\tdate.setUTCFullYear(\n\t\t\tm[1],\n\t\t\tm[3] ? m[3] - 1 : 0,\n\t\t\tm[5] || 1\n\t\t);\n\t\tdate.setUTCHours(\n\t\t\tm[7] || 0,\n\t\t\tm[8] || 0,\n\t\t\tm[10] || 0,\n\t\t\tm[12] ? Number(\"0.\" + m[12]) * 1000 : 0\n\t\t);\n\t\tif (m[14]) {\n\t\t\tvar offset = Number(m[16]) * 60 + (m[18] ? Number(m[18]) : 0);\n\t\t\toffset *= m[15] == '-' ? 1 : -1;\n\t\t\tdate = new Date(+date + (offset * 60 * 1000));\n\t\t}\n\t}\n\treturn date;\n}\n\n\nfunction parseTime(s) { // returns minutes since start of day\n\tif (typeof s == 'number') { // an hour\n\t\treturn s * 60;\n\t}\n\tif (typeof s == 'object') { // a Date object\n\t\treturn s.getHours() * 60 + s.getMinutes();\n\t}\n\tvar m = s.match(/(\\d+)(?::(\\d+))?\\s*(\\w+)?/);\n\tif (m) {\n\t\tvar h = parseInt(m[1], 10);\n\t\tif (m[3]) {\n\t\t\th %= 12;\n\t\t\tif (m[3].toLowerCase().charAt(0) == 'p') {\n\t\t\t\th += 12;\n\t\t\t}\n\t\t}\n\t\treturn h * 60 + (m[2] ? parseInt(m[2], 10) : 0);\n\t}\n}\n\n\n\n/* Date Formatting\n-----------------------------------------------------------------------------*/\n// TODO: use same function formatDate(date, [date2], format, [options])\n\n\nfunction formatDate(date, format, options) {\n\treturn formatDates(date, null, format, options);\n}\n\n\nfunction formatDates(date1, date2, format, options) {\n\toptions = options || defaults;\n\tvar date = date1,\n\t\totherDate = date2,\n\t\ti, len = format.length, c,\n\t\ti2, formatter,\n\t\tres = '';\n\tfor (i=0; i<len; i++) {\n\t\tc = format.charAt(i);\n\t\tif (c == \"'\") {\n\t\t\tfor (i2=i+1; i2<len; i2++) {\n\t\t\t\tif (format.charAt(i2) == \"'\") {\n\t\t\t\t\tif (date) {\n\t\t\t\t\t\tif (i2 == i+1) {\n\t\t\t\t\t\t\tres += \"'\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tres += format.substring(i+1, i2);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ti = i2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (c == '(') {\n\t\t\tfor (i2=i+1; i2<len; i2++) {\n\t\t\t\tif (format.charAt(i2) == ')') {\n\t\t\t\t\tvar subres = formatDate(date, format.substring(i+1, i2), options);\n\t\t\t\t\tif (parseInt(subres.replace(/\\D/, ''), 10)) {\n\t\t\t\t\t\tres += subres;\n\t\t\t\t\t}\n\t\t\t\t\ti = i2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (c == '[') {\n\t\t\tfor (i2=i+1; i2<len; i2++) {\n\t\t\t\tif (format.charAt(i2) == ']') {\n\t\t\t\t\tvar subformat = format.substring(i+1, i2);\n\t\t\t\t\tvar subres = formatDate(date, subformat, options);\n\t\t\t\t\tif (subres != formatDate(otherDate, subformat, options)) {\n\t\t\t\t\t\tres += subres;\n\t\t\t\t\t}\n\t\t\t\t\ti = i2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (c == '{') {\n\t\t\tdate = date2;\n\t\t\totherDate = date1;\n\t\t}\n\t\telse if (c == '}') {\n\t\t\tdate = date1;\n\t\t\totherDate = date2;\n\t\t}\n\t\telse {\n\t\t\tfor (i2=len; i2>i; i2--) {\n\t\t\t\tif (formatter = dateFormatters[format.substring(i, i2)]) {\n\t\t\t\t\tif (date) {\n\t\t\t\t\t\tres += formatter(date, options);\n\t\t\t\t\t}\n\t\t\t\t\ti = i2 - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i2 == i) {\n\t\t\t\tif (date) {\n\t\t\t\t\tres += c;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn res;\n};\n\n\nvar dateFormatters = {\n\ts\t: function(d)\t{ return d.getSeconds() },\n\tss\t: function(d)\t{ return zeroPad(d.getSeconds()) },\n\tm\t: function(d)\t{ return d.getMinutes() },\n\tmm\t: function(d)\t{ return zeroPad(d.getMinutes()) },\n\th\t: function(d)\t{ return d.getHours() % 12 || 12 },\n\thh\t: function(d)\t{ return zeroPad(d.getHours() % 12 || 12) },\n\tH\t: function(d)\t{ return d.getHours() },\n\tHH\t: function(d)\t{ return zeroPad(d.getHours()) },\n\td\t: function(d)\t{ return d.getDate() },\n\tdd\t: function(d)\t{ return zeroPad(d.getDate()) },\n\tddd\t: function(d,o)\t{ return o.dayNamesShort[d.getDay()] },\n\tdddd: function(d,o)\t{ return o.dayNames[d.getDay()] },\n\tM\t: function(d)\t{ return d.getMonth() + 1 },\n\tMM\t: function(d)\t{ return zeroPad(d.getMonth() + 1) },\n\tMMM\t: function(d,o)\t{ return o.monthNamesShort[d.getMonth()] },\n\tMMMM: function(d,o)\t{ return o.monthNames[d.getMonth()] },\n\tyy\t: function(d)\t{ return (d.getFullYear()+'').substring(2) },\n\tyyyy: function(d)\t{ return d.getFullYear() },\n\tt\t: function(d)\t{ return d.getHours() < 12 ? 'a' : 'p' },\n\ttt\t: function(d)\t{ return d.getHours() < 12 ? 'am' : 'pm' },\n\tT\t: function(d)\t{ return d.getHours() < 12 ? 'A' : 'P' },\n\tTT\t: function(d)\t{ return d.getHours() < 12 ? 'AM' : 'PM' },\n\tu\t: function(d)\t{ return formatDate(d, \"yyyy-MM-dd'T'HH:mm:ss'Z'\") },\n\tS\t: function(d)\t{\n\t\tvar date = d.getDate();\n\t\tif (date > 10 && date < 20) {\n\t\t\treturn 'th';\n\t\t}\n\t\treturn ['st', 'nd', 'rd'][date%10-1] || 'th';\n\t},\n\tw   : function(d, o) { // local\n\t\treturn o.weekNumberCalculation(d);\n\t},\n\tW   : function(d) { // ISO\n\t\treturn iso8601Week(d);\n\t}\n};\nfc.dateFormatters = dateFormatters;\n\n\n/* thanks jQuery UI (https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.datepicker.js)\n * \n * Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.\n * `date` - the date to get the week for\n * `number` - the number of the week within the year that contains this date\n */\nfunction iso8601Week(date) {\n\tvar time;\n\tvar checkDate = new Date(date.getTime());\n\n\t// Find Thursday of this week starting on Monday\n\tcheckDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));\n\n\ttime = checkDate.getTime();\n\tcheckDate.setMonth(0); // Compare with Jan 1\n\tcheckDate.setDate(1);\n\treturn Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;\n}\n\n\n;;\n\nfc.applyAll = applyAll;\n\n\n/* Event Date Math\n-----------------------------------------------------------------------------*/\n\n\nfunction exclEndDay(event) {\n\tif (event.end) {\n\t\treturn _exclEndDay(event.end, event.allDay);\n\t}else{\n\t\treturn addDays(cloneDate(event.start), 1);\n\t}\n}\n\n\nfunction _exclEndDay(end, allDay) {\n\tend = cloneDate(end);\n\treturn allDay || end.getHours() || end.getMinutes() ? addDays(end, 1) : clearTime(end);\n\t// why don't we check for seconds/ms too?\n}\n\n\n\n/* Event Element Binding\n-----------------------------------------------------------------------------*/\n\n\nfunction lazySegBind(container, segs, bindHandlers) {\n\tcontainer.unbind('mouseover').mouseover(function(ev) {\n\t\tvar parent=ev.target, e,\n\t\t\ti, seg;\n\t\twhile (parent != this) {\n\t\t\te = parent;\n\t\t\tparent = parent.parentNode;\n\t\t}\n\t\tif ((i = e._fci) !== undefined) {\n\t\t\te._fci = undefined;\n\t\t\tseg = segs[i];\n\t\t\tbindHandlers(seg.event, seg.element, seg);\n\t\t\t$(ev.target).trigger(ev);\n\t\t}\n\t\tev.stopPropagation();\n\t});\n}\n\n\n\n/* Element Dimensions\n-----------------------------------------------------------------------------*/\n\n\nfunction setOuterWidth(element, width, includeMargins) {\n\tfor (var i=0, e; i<element.length; i++) {\n\t\te = $(element[i]);\n\t\te.width(Math.max(0, width - hsides(e, includeMargins)));\n\t}\n}\n\n\nfunction setOuterHeight(element, height, includeMargins) {\n\tfor (var i=0, e; i<element.length; i++) {\n\t\te = $(element[i]);\n\t\te.height(Math.max(0, height - vsides(e, includeMargins)));\n\t}\n}\n\n\nfunction hsides(element, includeMargins) {\n\treturn hpadding(element) + hborders(element) + (includeMargins ? hmargins(element) : 0);\n}\n\n\nfunction hpadding(element) {\n\treturn (parseFloat($.css(element[0], 'paddingLeft', true)) || 0) +\n\t       (parseFloat($.css(element[0], 'paddingRight', true)) || 0);\n}\n\n\nfunction hmargins(element) {\n\treturn (parseFloat($.css(element[0], 'marginLeft', true)) || 0) +\n\t       (parseFloat($.css(element[0], 'marginRight', true)) || 0);\n}\n\n\nfunction hborders(element) {\n\treturn (parseFloat($.css(element[0], 'borderLeftWidth', true)) || 0) +\n\t       (parseFloat($.css(element[0], 'borderRightWidth', true)) || 0);\n}\n\n\nfunction vsides(element, includeMargins) {\n\treturn vpadding(element) +  vborders(element) + (includeMargins ? vmargins(element) : 0);\n}\n\n\nfunction vpadding(element) {\n\treturn (parseFloat($.css(element[0], 'paddingTop', true)) || 0) +\n\t       (parseFloat($.css(element[0], 'paddingBottom', true)) || 0);\n}\n\n\nfunction vmargins(element) {\n\treturn (parseFloat($.css(element[0], 'marginTop', true)) || 0) +\n\t       (parseFloat($.css(element[0], 'marginBottom', true)) || 0);\n}\n\n\nfunction vborders(element) {\n\treturn (parseFloat($.css(element[0], 'borderTopWidth', true)) || 0) +\n\t       (parseFloat($.css(element[0], 'borderBottomWidth', true)) || 0);\n}\n\n\n\n/* Misc Utils\n-----------------------------------------------------------------------------*/\n\n\n//TODO: arraySlice\n//TODO: isFunction, grep ?\n\n\nfunction noop() { }\n\n\nfunction dateCompare(a, b) {\n\treturn a - b;\n}\n\n\nfunction arrayMax(a) {\n\treturn Math.max.apply(Math, a);\n}\n\n\nfunction zeroPad(n) {\n\treturn (n < 10 ? '0' : '') + n;\n}\n\n\nfunction smartProperty(obj, name) { // get a camel-cased/namespaced property of an object\n\tif (obj[name] !== undefined) {\n\t\treturn obj[name];\n\t}\n\tvar parts = name.split(/(?=[A-Z])/),\n\t\ti=parts.length-1, res;\n\tfor (; i>=0; i--) {\n\t\tres = obj[parts[i].toLowerCase()];\n\t\tif (res !== undefined) {\n\t\t\treturn res;\n\t\t}\n\t}\n\treturn obj[''];\n}\n\n\nfunction htmlEscape(s) {\n\treturn s.replace(/&/g, '&amp;')\n\t\t.replace(/</g, '&lt;')\n\t\t.replace(/>/g, '&gt;')\n\t\t.replace(/'/g, '&#039;')\n\t\t.replace(/\"/g, '&quot;')\n\t\t.replace(/\\n/g, '<br />');\n}\n\n\nfunction disableTextSelection(element) {\n\telement\n\t\t.attr('unselectable', 'on')\n\t\t.css('MozUserSelect', 'none')\n\t\t.bind('selectstart.ui', function() { return false; });\n}\n\n\n/*\nfunction enableTextSelection(element) {\n\telement\n\t\t.attr('unselectable', 'off')\n\t\t.css('MozUserSelect', '')\n\t\t.unbind('selectstart.ui');\n}\n*/\n\n\nfunction markFirstLast(e) {\n\te.children()\n\t\t.removeClass('fc-first fc-last')\n\t\t.filter(':first-child')\n\t\t\t.addClass('fc-first')\n\t\t.end()\n\t\t.filter(':last-child')\n\t\t\t.addClass('fc-last');\n}\n\n\nfunction setDayID(cell, date) {\n\tcell.each(function(i, _cell) {\n\t\t_cell.className = _cell.className.replace(/^fc-\\w*/, 'fc-' + dayIDs[date.getDay()]);\n\t\t// TODO: make a way that doesn't rely on order of classes\n\t});\n}\n\n\nfunction getSkinCss(event, opt) {\n\tvar source = event.source || {};\n\tvar eventColor = event.color;\n\tvar sourceColor = source.color;\n\tvar optionColor = opt('eventColor');\n\tvar backgroundColor =\n\t\tevent.backgroundColor ||\n\t\teventColor ||\n\t\tsource.backgroundColor ||\n\t\tsourceColor ||\n\t\topt('eventBackgroundColor') ||\n\t\toptionColor;\n\tvar borderColor =\n\t\tevent.borderColor ||\n\t\teventColor ||\n\t\tsource.borderColor ||\n\t\tsourceColor ||\n\t\topt('eventBorderColor') ||\n\t\toptionColor;\n\tvar textColor =\n\t\tevent.textColor ||\n\t\tsource.textColor ||\n\t\topt('eventTextColor');\n\tvar statements = [];\n\tif (backgroundColor) {\n\t\tstatements.push('background-color:' + backgroundColor);\n\t}\n\tif (borderColor) {\n\t\tstatements.push('border-color:' + borderColor);\n\t}\n\tif (textColor) {\n\t\tstatements.push('color:' + textColor);\n\t}\n\treturn statements.join(';');\n}\n\n\nfunction applyAll(functions, thisObj, args) {\n\tif ($.isFunction(functions)) {\n\t\tfunctions = [ functions ];\n\t}\n\tif (functions) {\n\t\tvar i;\n\t\tvar ret;\n\t\tfor (i=0; i<functions.length; i++) {\n\t\t\tret = functions[i].apply(thisObj, args) || ret;\n\t\t}\n\t\treturn ret;\n\t}\n}\n\n\nfunction firstDefined() {\n\tfor (var i=0; i<arguments.length; i++) {\n\t\tif (arguments[i] !== undefined) {\n\t\t\treturn arguments[i];\n\t\t}\n\t}\n}\n\n\n;;\n\nfcViews.month = MonthView;\n\nfunction MonthView(element, calendar) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.render = render;\n\t\n\t\n\t// imports\n\tBasicView.call(t, element, calendar, 'month');\n\tvar opt = t.opt;\n\tvar renderBasic = t.renderBasic;\n\tvar skipHiddenDays = t.skipHiddenDays;\n\tvar getCellsPerWeek = t.getCellsPerWeek;\n\tvar formatDate = calendar.formatDate;\n\t\n\t\n\tfunction render(date, delta) {\n\n\t\tif (delta) {\n\t\t\taddMonths(date, delta);\n\t\t\tdate.setDate(1);\n\t\t}\n\n\t\tvar firstDay = opt('firstDay');\n\n\t\tvar start = cloneDate(date, true);\n\t\tstart.setDate(1);\n\n\t\tvar end = addMonths(cloneDate(start), 1);\n\n\t\tvar visStart = cloneDate(start);\n\t\taddDays(visStart, -((visStart.getDay() - firstDay + 7) % 7));\n\t\tskipHiddenDays(visStart);\n\n\t\tvar visEnd = cloneDate(end);\n\t\taddDays(visEnd, (7 - visEnd.getDay() + firstDay) % 7);\n\t\tskipHiddenDays(visEnd, -1, true);\n\n\t\tvar colCnt = getCellsPerWeek();\n\t\tvar rowCnt = Math.round(dayDiff(visEnd, visStart) / 7); // should be no need for Math.round\n\n\t\tif (opt('weekMode') == 'fixed') {\n\t\t\taddDays(visEnd, (6 - rowCnt) * 7); // add weeks to make up for it\n\t\t\trowCnt = 6;\n\t\t}\n\n\t\tt.title = formatDate(start, opt('titleFormat'));\n\n\t\tt.start = start;\n\t\tt.end = end;\n\t\tt.visStart = visStart;\n\t\tt.visEnd = visEnd;\n\n\t\trenderBasic(rowCnt, colCnt, true);\n\t}\n\t\n\t\n}\n\n;;\n\nfcViews.basicWeek = BasicWeekView;\n\nfunction BasicWeekView(element, calendar) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.render = render;\n\t\n\t\n\t// imports\n\tBasicView.call(t, element, calendar, 'basicWeek');\n\tvar opt = t.opt;\n\tvar renderBasic = t.renderBasic;\n\tvar skipHiddenDays = t.skipHiddenDays;\n\tvar getCellsPerWeek = t.getCellsPerWeek;\n\tvar formatDates = calendar.formatDates;\n\t\n\t\n\tfunction render(date, delta) {\n\n\t\tif (delta) {\n\t\t\taddDays(date, delta * 7);\n\t\t}\n\n\t\tvar start = addDays(cloneDate(date), -((date.getDay() - opt('firstDay') + 7) % 7));\n\t\tvar end = addDays(cloneDate(start), 7);\n\n\t\tvar visStart = cloneDate(start);\n\t\tskipHiddenDays(visStart);\n\n\t\tvar visEnd = cloneDate(end);\n\t\tskipHiddenDays(visEnd, -1, true);\n\n\t\tvar colCnt = getCellsPerWeek();\n\n\t\tt.start = start;\n\t\tt.end = end;\n\t\tt.visStart = visStart;\n\t\tt.visEnd = visEnd;\n\n\t\tt.title = formatDates(\n\t\t\tvisStart,\n\t\t\taddDays(cloneDate(visEnd), -1),\n\t\t\topt('titleFormat')\n\t\t);\n\n\t\trenderBasic(1, colCnt, false);\n\t}\n\t\n\t\n}\n\n;;\n\nfcViews.basicDay = BasicDayView;\n\n\nfunction BasicDayView(element, calendar) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.render = render;\n\t\n\t\n\t// imports\n\tBasicView.call(t, element, calendar, 'basicDay');\n\tvar opt = t.opt;\n\tvar renderBasic = t.renderBasic;\n\tvar skipHiddenDays = t.skipHiddenDays;\n\tvar formatDate = calendar.formatDate;\n\t\n\t\n\tfunction render(date, delta) {\n\n\t\tif (delta) {\n\t\t\taddDays(date, delta);\n\t\t}\n\t\tskipHiddenDays(date, delta < 0 ? -1 : 1);\n\n\t\tvar start = cloneDate(date, true);\n\t\tvar end = addDays(cloneDate(start), 1);\n\n\t\tt.title = formatDate(date, opt('titleFormat'));\n\n\t\tt.start = t.visStart = start;\n\t\tt.end = t.visEnd = end;\n\n\t\trenderBasic(1, 1, false);\n\t}\n\t\n\t\n}\n\n;;\n\nsetDefaults({\n\tweekMode: 'fixed'\n});\n\n\nfunction BasicView(element, calendar, viewName) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.renderBasic = renderBasic;\n\tt.setHeight = setHeight;\n\tt.setWidth = setWidth;\n\tt.renderDayOverlay = renderDayOverlay;\n\tt.defaultSelectionEnd = defaultSelectionEnd;\n\tt.renderSelection = renderSelection;\n\tt.clearSelection = clearSelection;\n\tt.reportDayClick = reportDayClick; // for selection (kinda hacky)\n\tt.dragStart = dragStart;\n\tt.dragStop = dragStop;\n\tt.defaultEventEnd = defaultEventEnd;\n\tt.getHoverListener = function() { return hoverListener };\n\tt.colLeft = colLeft;\n\tt.colRight = colRight;\n\tt.colContentLeft = colContentLeft;\n\tt.colContentRight = colContentRight;\n\tt.getIsCellAllDay = function() { return true };\n\tt.allDayRow = allDayRow;\n\tt.getRowCnt = function() { return rowCnt };\n\tt.getColCnt = function() { return colCnt };\n\tt.getColWidth = function() { return colWidth };\n\tt.getDaySegmentContainer = function() { return daySegmentContainer };\n\t\n\t\n\t// imports\n\tView.call(t, element, calendar, viewName);\n\tOverlayManager.call(t);\n\tSelectionManager.call(t);\n\tBasicEventRenderer.call(t);\n\tvar opt = t.opt;\n\tvar trigger = t.trigger;\n\tvar renderOverlay = t.renderOverlay;\n\tvar clearOverlays = t.clearOverlays;\n\tvar daySelectionMousedown = t.daySelectionMousedown;\n\tvar cellToDate = t.cellToDate;\n\tvar dateToCell = t.dateToCell;\n\tvar rangeToSegments = t.rangeToSegments;\n\tvar formatDate = calendar.formatDate;\n\t\n\t\n\t// locals\n\t\n\tvar table;\n\tvar head;\n\tvar headCells;\n\tvar body;\n\tvar bodyRows;\n\tvar bodyCells;\n\tvar bodyFirstCells;\n\tvar firstRowCellInners;\n\tvar firstRowCellContentInners;\n\tvar daySegmentContainer;\n\t\n\tvar viewWidth;\n\tvar viewHeight;\n\tvar colWidth;\n\tvar weekNumberWidth;\n\t\n\tvar rowCnt, colCnt;\n\tvar showNumbers;\n\tvar coordinateGrid;\n\tvar hoverListener;\n\tvar colPositions;\n\tvar colContentPositions;\n\t\n\tvar tm;\n\tvar colFormat;\n\tvar showWeekNumbers;\n\tvar weekNumberTitle;\n\tvar weekNumberFormat;\n\t\n\t\n\t\n\t/* Rendering\n\t------------------------------------------------------------*/\n\t\n\t\n\tdisableTextSelection(element.addClass('fc-grid'));\n\t\n\t\n\tfunction renderBasic(_rowCnt, _colCnt, _showNumbers) {\n\t\trowCnt = _rowCnt;\n\t\tcolCnt = _colCnt;\n\t\tshowNumbers = _showNumbers;\n\t\tupdateOptions();\n\n\t\tif (!body) {\n\t\t\tbuildEventContainer();\n\t\t}\n\n\t\tbuildTable();\n\t}\n\t\n\t\n\tfunction updateOptions() {\n\t\ttm = opt('theme') ? 'ui' : 'fc';\n\t\tcolFormat = opt('columnFormat');\n\n\t\t// week # options. (TODO: bad, logic also in other views)\n\t\tshowWeekNumbers = opt('weekNumbers');\n\t\tweekNumberTitle = opt('weekNumberTitle');\n\t\tif (opt('weekNumberCalculation') != 'iso') {\n\t\t\tweekNumberFormat = \"w\";\n\t\t}\n\t\telse {\n\t\t\tweekNumberFormat = \"W\";\n\t\t}\n\t}\n\t\n\t\n\tfunction buildEventContainer() {\n\t\tdaySegmentContainer =\n\t\t\t$(\"<div class='fc-event-container' style='position:absolute;z-index:8;top:0;left:0'/>\")\n\t\t\t\t.appendTo(element);\n\t}\n\t\n\t\n\tfunction buildTable() {\n\t\tvar html = buildTableHTML();\n\n\t\tif (table) {\n\t\t\ttable.remove();\n\t\t}\n\t\ttable = $(html).appendTo(element);\n\n\t\thead = table.find('thead');\n\t\theadCells = head.find('.fc-day-header');\n\t\tbody = table.find('tbody');\n\t\tbodyRows = body.find('tr');\n\t\tbodyCells = body.find('.fc-day');\n\t\tbodyFirstCells = bodyRows.find('td:first-child');\n\n\t\tfirstRowCellInners = bodyRows.eq(0).find('.fc-day > div');\n\t\tfirstRowCellContentInners = bodyRows.eq(0).find('.fc-day-content > div');\n\t\t\n\t\tmarkFirstLast(head.add(head.find('tr'))); // marks first+last tr/th's\n\t\tmarkFirstLast(bodyRows); // marks first+last td's\n\t\tbodyRows.eq(0).addClass('fc-first');\n\t\tbodyRows.filter(':last').addClass('fc-last');\n\n\t\tbodyCells.each(function(i, _cell) {\n\t\t\tvar date = cellToDate(\n\t\t\t\tMath.floor(i / colCnt),\n\t\t\t\ti % colCnt\n\t\t\t);\n\t\t\ttrigger('dayRender', t, date, $(_cell));\n\t\t});\n\n\t\tdayBind(bodyCells);\n\t}\n\n\n\n\t/* HTML Building\n\t-----------------------------------------------------------*/\n\n\n\tfunction buildTableHTML() {\n\t\tvar html =\n\t\t\t\"<table class='fc-border-separate' style='width:100%' cellspacing='0'>\" +\n\t\t\tbuildHeadHTML() +\n\t\t\tbuildBodyHTML() +\n\t\t\t\"</table>\";\n\n\t\treturn html;\n\t}\n\n\n\tfunction buildHeadHTML() {\n\t\tvar headerClass = tm + \"-widget-header\";\n\t\tvar html = '';\n\t\tvar col;\n\t\tvar date;\n\n\t\thtml += \"<thead><tr>\";\n\n\t\tif (showWeekNumbers) {\n\t\t\thtml +=\n\t\t\t\t\"<th class='fc-week-number \" + headerClass + \"'>\" +\n\t\t\t\thtmlEscape(weekNumberTitle) +\n\t\t\t\t\"</th>\";\n\t\t}\n\n\t\tfor (col=0; col<colCnt; col++) {\n\t\t\tdate = cellToDate(0, col);\n\t\t\thtml +=\n\t\t\t\t\"<th class='fc-day-header fc-\" + dayIDs[date.getDay()] + \" \" + headerClass + \"'>\" +\n\t\t\t\thtmlEscape(formatDate(date, colFormat)) +\n\t\t\t\t\"</th>\";\n\t\t}\n\n\t\thtml += \"</tr></thead>\";\n\n\t\treturn html;\n\t}\n\n\n\tfunction buildBodyHTML() {\n\t\tvar contentClass = tm + \"-widget-content\";\n\t\tvar html = '';\n\t\tvar row;\n\t\tvar col;\n\t\tvar date;\n\n\t\thtml += \"<tbody>\";\n\n\t\tfor (row=0; row<rowCnt; row++) {\n\n\t\t\thtml += \"<tr class='fc-week'>\";\n\n\t\t\tif (showWeekNumbers) {\n\t\t\t\tdate = cellToDate(row, 0);\n\t\t\t\thtml +=\n\t\t\t\t\t\"<td class='fc-week-number \" + contentClass + \"'>\" +\n\t\t\t\t\t\"<div>\" +\n\t\t\t\t\thtmlEscape(formatDate(date, weekNumberFormat)) +\n\t\t\t\t\t\"</div>\" +\n\t\t\t\t\t\"</td>\";\n\t\t\t}\n\n\t\t\tfor (col=0; col<colCnt; col++) {\n\t\t\t\tdate = cellToDate(row, col);\n\t\t\t\thtml += buildCellHTML(date);\n\t\t\t}\n\n\t\t\thtml += \"</tr>\";\n\t\t}\n\n\t\thtml += \"</tbody>\";\n\n\t\treturn html;\n\t}\n\n\n\tfunction buildCellHTML(date) {\n\t\tvar contentClass = tm + \"-widget-content\";\n\t\tvar month = t.start.getMonth();\n\t\tvar today = clearTime(new Date());\n\t\tvar html = '';\n\t\tvar classNames = [\n\t\t\t'fc-day',\n\t\t\t'fc-' + dayIDs[date.getDay()],\n\t\t\tcontentClass\n\t\t];\n\n\t\tif (date.getMonth() != month) {\n\t\t\tclassNames.push('fc-other-month');\n\t\t}\n\t\tif (+date == +today) {\n\t\t\tclassNames.push(\n\t\t\t\t'fc-today',\n\t\t\t\ttm + '-state-highlight'\n\t\t\t);\n\t\t}\n\t\telse if (date < today) {\n\t\t\tclassNames.push('fc-past');\n\t\t}\n\t\telse {\n\t\t\tclassNames.push('fc-future');\n\t\t}\n\n\t\thtml +=\n\t\t\t\"<td\" +\n\t\t\t\" class='\" + classNames.join(' ') + \"'\" +\n\t\t\t\" data-date='\" + formatDate(date, 'yyyy-MM-dd') + \"'\" +\n\t\t\t\">\" +\n\t\t\t\"<div>\";\n\n\t\tif (showNumbers) {\n\t\t\thtml += \"<div class='fc-day-number'>\" + date.getDate() + \"</div>\";\n\t\t}\n\n\t\thtml +=\n\t\t\t\"<div class='fc-day-content'>\" +\n\t\t\t\"<div style='position:relative'>&nbsp;</div>\" +\n\t\t\t\"</div>\" +\n\t\t\t\"</div>\" +\n\t\t\t\"</td>\";\n\n\t\treturn html;\n\t}\n\n\n\n\t/* Dimensions\n\t-----------------------------------------------------------*/\n\t\n\t\n\tfunction setHeight(height) {\n\t\tviewHeight = height;\n\t\t\n\t\tvar bodyHeight = viewHeight - head.height();\n\t\tvar rowHeight;\n\t\tvar rowHeightLast;\n\t\tvar cell;\n\t\t\t\n\t\tif (opt('weekMode') == 'variable') {\n\t\t\trowHeight = rowHeightLast = Math.floor(bodyHeight / (rowCnt==1 ? 2 : 6));\n\t\t}else{\n\t\t\trowHeight = Math.floor(bodyHeight / rowCnt);\n\t\t\trowHeightLast = bodyHeight - rowHeight * (rowCnt-1);\n\t\t}\n\t\t\n\t\tbodyFirstCells.each(function(i, _cell) {\n\t\t\tif (i < rowCnt) {\n\t\t\t\tcell = $(_cell);\n\t\t\t\tcell.find('> div').css(\n\t\t\t\t\t'min-height',\n\t\t\t\t\t(i==rowCnt-1 ? rowHeightLast : rowHeight) - vsides(cell)\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\t\t\n\t}\n\t\n\t\n\tfunction setWidth(width) {\n\t\tviewWidth = width;\n\t\tcolPositions.clear();\n\t\tcolContentPositions.clear();\n\n\t\tweekNumberWidth = 0;\n\t\tif (showWeekNumbers) {\n\t\t\tweekNumberWidth = head.find('th.fc-week-number').outerWidth();\n\t\t}\n\n\t\tcolWidth = Math.floor((viewWidth - weekNumberWidth) / colCnt);\n\t\tsetOuterWidth(headCells.slice(0, -1), colWidth);\n\t}\n\t\n\t\n\t\n\t/* Day clicking and binding\n\t-----------------------------------------------------------*/\n\t\n\t\n\tfunction dayBind(days) {\n\t\tdays.click(dayClick)\n\t\t\t.mousedown(daySelectionMousedown);\n\t}\n\t\n\t\n\tfunction dayClick(ev) {\n\t\tif (!opt('selectable')) { // if selectable, SelectionManager will worry about dayClick\n\t\t\tvar date = parseISO8601($(this).data('date'));\n\t\t\ttrigger('dayClick', this, date, true, ev);\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* Semi-transparent Overlay Helpers\n\t------------------------------------------------------*/\n\t// TODO: should be consolidated with AgendaView's methods\n\n\n\tfunction renderDayOverlay(overlayStart, overlayEnd, refreshCoordinateGrid) { // overlayEnd is exclusive\n\n\t\tif (refreshCoordinateGrid) {\n\t\t\tcoordinateGrid.build();\n\t\t}\n\n\t\tvar segments = rangeToSegments(overlayStart, overlayEnd);\n\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\t\t\tdayBind(\n\t\t\t\trenderCellOverlay(\n\t\t\t\t\tsegment.row,\n\t\t\t\t\tsegment.leftCol,\n\t\t\t\t\tsegment.row,\n\t\t\t\t\tsegment.rightCol\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}\n\n\t\n\tfunction renderCellOverlay(row0, col0, row1, col1) { // row1,col1 is inclusive\n\t\tvar rect = coordinateGrid.rect(row0, col0, row1, col1, element);\n\t\treturn renderOverlay(rect, element);\n\t}\n\t\n\t\n\t\n\t/* Selection\n\t-----------------------------------------------------------------------*/\n\t\n\t\n\tfunction defaultSelectionEnd(startDate, allDay) {\n\t\treturn cloneDate(startDate);\n\t}\n\t\n\t\n\tfunction renderSelection(startDate, endDate, allDay) {\n\t\trenderDayOverlay(startDate, addDays(cloneDate(endDate), 1), true); // rebuild every time???\n\t}\n\t\n\t\n\tfunction clearSelection() {\n\t\tclearOverlays();\n\t}\n\t\n\t\n\tfunction reportDayClick(date, allDay, ev) {\n\t\tvar cell = dateToCell(date);\n\t\tvar _element = bodyCells[cell.row*colCnt + cell.col];\n\t\ttrigger('dayClick', _element, date, allDay, ev);\n\t}\n\t\n\t\n\t\n\t/* External Dragging\n\t-----------------------------------------------------------------------*/\n\t\n\t\n\tfunction dragStart(_dragElement, ev, ui) {\n\t\thoverListener.start(function(cell) {\n\t\t\tclearOverlays();\n\t\t\tif (cell) {\n\t\t\t\trenderCellOverlay(cell.row, cell.col, cell.row, cell.col);\n\t\t\t}\n\t\t}, ev);\n\t}\n\t\n\t\n\tfunction dragStop(_dragElement, ev, ui) {\n\t\tvar cell = hoverListener.stop();\n\t\tclearOverlays();\n\t\tif (cell) {\n\t\t\tvar d = cellToDate(cell);\n\t\t\ttrigger('drop', _dragElement, d, true, ev, ui);\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* Utilities\n\t--------------------------------------------------------*/\n\t\n\t\n\tfunction defaultEventEnd(event) {\n\t\treturn cloneDate(event.start);\n\t}\n\t\n\t\n\tcoordinateGrid = new CoordinateGrid(function(rows, cols) {\n\t\tvar e, n, p;\n\t\theadCells.each(function(i, _e) {\n\t\t\te = $(_e);\n\t\t\tn = e.offset().left;\n\t\t\tif (i) {\n\t\t\t\tp[1] = n;\n\t\t\t}\n\t\t\tp = [n];\n\t\t\tcols[i] = p;\n\t\t});\n\t\tp[1] = n + e.outerWidth();\n\t\tbodyRows.each(function(i, _e) {\n\t\t\tif (i < rowCnt) {\n\t\t\t\te = $(_e);\n\t\t\t\tn = e.offset().top;\n\t\t\t\tif (i) {\n\t\t\t\t\tp[1] = n;\n\t\t\t\t}\n\t\t\t\tp = [n];\n\t\t\t\trows[i] = p;\n\t\t\t}\n\t\t});\n\t\tp[1] = n + e.outerHeight();\n\t});\n\t\n\t\n\thoverListener = new HoverListener(coordinateGrid);\n\t\n\tcolPositions = new HorizontalPositionCache(function(col) {\n\t\treturn firstRowCellInners.eq(col);\n\t});\n\n\tcolContentPositions = new HorizontalPositionCache(function(col) {\n\t\treturn firstRowCellContentInners.eq(col);\n\t});\n\n\n\tfunction colLeft(col) {\n\t\treturn colPositions.left(col);\n\t}\n\n\n\tfunction colRight(col) {\n\t\treturn colPositions.right(col);\n\t}\n\t\n\t\n\tfunction colContentLeft(col) {\n\t\treturn colContentPositions.left(col);\n\t}\n\t\n\t\n\tfunction colContentRight(col) {\n\t\treturn colContentPositions.right(col);\n\t}\n\t\n\t\n\tfunction allDayRow(i) {\n\t\treturn bodyRows.eq(i);\n\t}\n\t\n}\n\n;;\n\nfunction BasicEventRenderer() {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.renderEvents = renderEvents;\n\tt.clearEvents = clearEvents;\n\t\n\n\t// imports\n\tDayEventRenderer.call(t);\n\n\t\n\tfunction renderEvents(events, modifiedEventId) {\n\t\tt.renderDayEvents(events, modifiedEventId);\n\t}\n\t\n\t\n\tfunction clearEvents() {\n\t\tt.getDaySegmentContainer().empty();\n\t}\n\n\n\t// TODO: have this class (and AgendaEventRenderer) be responsible for creating the event container div\n\n}\n\n;;\n\nfcViews.agendaWeek = AgendaWeekView;\n\nfunction AgendaWeekView(element, calendar) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.render = render;\n\t\n\t\n\t// imports\n\tAgendaView.call(t, element, calendar, 'agendaWeek');\n\tvar opt = t.opt;\n\tvar renderAgenda = t.renderAgenda;\n\tvar skipHiddenDays = t.skipHiddenDays;\n\tvar getCellsPerWeek = t.getCellsPerWeek;\n\tvar formatDates = calendar.formatDates;\n\n\t\n\tfunction render(date, delta) {\n\n\t\tif (delta) {\n\t\t\taddDays(date, delta * 7);\n\t\t}\n\n\t\tvar start = addDays(cloneDate(date), -((date.getDay() - opt('firstDay') + 7) % 7));\n\t\tvar end = addDays(cloneDate(start), 7);\n\n\t\tvar visStart = cloneDate(start);\n\t\tskipHiddenDays(visStart);\n\n\t\tvar visEnd = cloneDate(end);\n\t\tskipHiddenDays(visEnd, -1, true);\n\n\t\tvar colCnt = getCellsPerWeek();\n\n\t\tt.title = formatDates(\n\t\t\tvisStart,\n\t\t\taddDays(cloneDate(visEnd), -1),\n\t\t\topt('titleFormat')\n\t\t);\n\n\t\tt.start = start;\n\t\tt.end = end;\n\t\tt.visStart = visStart;\n\t\tt.visEnd = visEnd;\n\n\t\trenderAgenda(colCnt);\n\t}\n\n}\n\n;;\n\nfcViews.agendaDay = AgendaDayView;\n\n\nfunction AgendaDayView(element, calendar) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.render = render;\n\t\n\t\n\t// imports\n\tAgendaView.call(t, element, calendar, 'agendaDay');\n\tvar opt = t.opt;\n\tvar renderAgenda = t.renderAgenda;\n\tvar skipHiddenDays = t.skipHiddenDays;\n\tvar formatDate = calendar.formatDate;\n\t\n\t\n\tfunction render(date, delta) {\n\n\t\tif (delta) {\n\t\t\taddDays(date, delta);\n\t\t}\n\t\tskipHiddenDays(date, delta < 0 ? -1 : 1);\n\n\t\tvar start = cloneDate(date, true);\n\t\tvar end = addDays(cloneDate(start), 1);\n\n\t\tt.title = formatDate(date, opt('titleFormat'));\n\n\t\tt.start = t.visStart = start;\n\t\tt.end = t.visEnd = end;\n\n\t\trenderAgenda(1);\n\t}\n\t\n\n}\n\n;;\n\nsetDefaults({\n\tallDaySlot: true,\n\tallDayText: 'all-day',\n\tfirstHour: 6,\n\tslotMinutes: 30,\n\tdefaultEventMinutes: 120,\n\taxisFormat: 'h(:mm)tt',\n\ttimeFormat: {\n\t\tagenda: 'h:mm{ - h:mm}'\n\t},\n\tdragOpacity: {\n\t\tagenda: .5\n\t},\n\tminTime: 0,\n\tmaxTime: 24,\n\tslotEventOverlap: true\n});\n\n\n// TODO: make it work in quirks mode (event corners, all-day height)\n// TODO: test liquid width, especially in IE6\n\n\nfunction AgendaView(element, calendar, viewName) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.renderAgenda = renderAgenda;\n\tt.setWidth = setWidth;\n\tt.setHeight = setHeight;\n\tt.afterRender = afterRender;\n\tt.defaultEventEnd = defaultEventEnd;\n\tt.timePosition = timePosition;\n\tt.getIsCellAllDay = getIsCellAllDay;\n\tt.allDayRow = getAllDayRow;\n\tt.getCoordinateGrid = function() { return coordinateGrid }; // specifically for AgendaEventRenderer\n\tt.getHoverListener = function() { return hoverListener };\n\tt.colLeft = colLeft;\n\tt.colRight = colRight;\n\tt.colContentLeft = colContentLeft;\n\tt.colContentRight = colContentRight;\n\tt.getDaySegmentContainer = function() { return daySegmentContainer };\n\tt.getSlotSegmentContainer = function() { return slotSegmentContainer };\n\tt.getMinMinute = function() { return minMinute };\n\tt.getMaxMinute = function() { return maxMinute };\n\tt.getSlotContainer = function() { return slotContainer };\n\tt.getRowCnt = function() { return 1 };\n\tt.getColCnt = function() { return colCnt };\n\tt.getColWidth = function() { return colWidth };\n\tt.getSnapHeight = function() { return snapHeight };\n\tt.getSnapMinutes = function() { return snapMinutes };\n\tt.defaultSelectionEnd = defaultSelectionEnd;\n\tt.renderDayOverlay = renderDayOverlay;\n\tt.renderSelection = renderSelection;\n\tt.clearSelection = clearSelection;\n\tt.reportDayClick = reportDayClick; // selection mousedown hack\n\tt.dragStart = dragStart;\n\tt.dragStop = dragStop;\n\t\n\t\n\t// imports\n\tView.call(t, element, calendar, viewName);\n\tOverlayManager.call(t);\n\tSelectionManager.call(t);\n\tAgendaEventRenderer.call(t);\n\tvar opt = t.opt;\n\tvar trigger = t.trigger;\n\tvar renderOverlay = t.renderOverlay;\n\tvar clearOverlays = t.clearOverlays;\n\tvar reportSelection = t.reportSelection;\n\tvar unselect = t.unselect;\n\tvar daySelectionMousedown = t.daySelectionMousedown;\n\tvar slotSegHtml = t.slotSegHtml;\n\tvar cellToDate = t.cellToDate;\n\tvar dateToCell = t.dateToCell;\n\tvar rangeToSegments = t.rangeToSegments;\n\tvar formatDate = calendar.formatDate;\n\t\n\t\n\t// locals\n\t\n\tvar dayTable;\n\tvar dayHead;\n\tvar dayHeadCells;\n\tvar dayBody;\n\tvar dayBodyCells;\n\tvar dayBodyCellInners;\n\tvar dayBodyCellContentInners;\n\tvar dayBodyFirstCell;\n\tvar dayBodyFirstCellStretcher;\n\tvar slotLayer;\n\tvar daySegmentContainer;\n\tvar allDayTable;\n\tvar allDayRow;\n\tvar slotScroller;\n\tvar slotContainer;\n\tvar slotSegmentContainer;\n\tvar slotTable;\n\tvar selectionHelper;\n\t\n\tvar viewWidth;\n\tvar viewHeight;\n\tvar axisWidth;\n\tvar colWidth;\n\tvar gutterWidth;\n\tvar slotHeight; // TODO: what if slotHeight changes? (see issue 650)\n\n\tvar snapMinutes;\n\tvar snapRatio; // ratio of number of \"selection\" slots to normal slots. (ex: 1, 2, 4)\n\tvar snapHeight; // holds the pixel hight of a \"selection\" slot\n\t\n\tvar colCnt;\n\tvar slotCnt;\n\tvar coordinateGrid;\n\tvar hoverListener;\n\tvar colPositions;\n\tvar colContentPositions;\n\tvar slotTopCache = {};\n\t\n\tvar tm;\n\tvar rtl;\n\tvar minMinute, maxMinute;\n\tvar colFormat;\n\tvar showWeekNumbers;\n\tvar weekNumberTitle;\n\tvar weekNumberFormat;\n\t\n\n\t\n\t/* Rendering\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tdisableTextSelection(element.addClass('fc-agenda'));\n\t\n\t\n\tfunction renderAgenda(c) {\n\t\tcolCnt = c;\n\t\tupdateOptions();\n\n\t\tif (!dayTable) { // first time rendering?\n\t\t\tbuildSkeleton(); // builds day table, slot area, events containers\n\t\t}\n\t\telse {\n\t\t\tbuildDayTable(); // rebuilds day table\n\t\t}\n\t}\n\t\n\t\n\tfunction updateOptions() {\n\n\t\ttm = opt('theme') ? 'ui' : 'fc';\n\t\trtl = opt('isRTL')\n\t\tminMinute = parseTime(opt('minTime'));\n\t\tmaxMinute = parseTime(opt('maxTime'));\n\t\tcolFormat = opt('columnFormat');\n\n\t\t// week # options. (TODO: bad, logic also in other views)\n\t\tshowWeekNumbers = opt('weekNumbers');\n\t\tweekNumberTitle = opt('weekNumberTitle');\n\t\tif (opt('weekNumberCalculation') != 'iso') {\n\t\t\tweekNumberFormat = \"w\";\n\t\t}\n\t\telse {\n\t\t\tweekNumberFormat = \"W\";\n\t\t}\n\n\t\tsnapMinutes = opt('snapMinutes') || opt('slotMinutes');\n\t}\n\n\n\n\t/* Build DOM\n\t-----------------------------------------------------------------------*/\n\n\n\tfunction buildSkeleton() {\n\t\tvar headerClass = tm + \"-widget-header\";\n\t\tvar contentClass = tm + \"-widget-content\";\n\t\tvar s;\n\t\tvar d;\n\t\tvar i;\n\t\tvar maxd;\n\t\tvar minutes;\n\t\tvar slotNormal = opt('slotMinutes') % 15 == 0;\n\t\t\n\t\tbuildDayTable();\n\t\t\n\t\tslotLayer =\n\t\t\t$(\"<div style='position:absolute;z-index:2;left:0;width:100%'/>\")\n\t\t\t\t.appendTo(element);\n\t\t\t\t\n\t\tif (opt('allDaySlot')) {\n\t\t\n\t\t\tdaySegmentContainer =\n\t\t\t\t$(\"<div class='fc-event-container' style='position:absolute;z-index:8;top:0;left:0'/>\")\n\t\t\t\t\t.appendTo(slotLayer);\n\t\t\n\t\t\ts =\n\t\t\t\t\"<table style='width:100%' class='fc-agenda-allday' cellspacing='0'>\" +\n\t\t\t\t\"<tr>\" +\n\t\t\t\t\"<th class='\" + headerClass + \" fc-agenda-axis'>\" + opt('allDayText') + \"</th>\" +\n\t\t\t\t\"<td>\" +\n\t\t\t\t\"<div class='fc-day-content'><div style='position:relative'/></div>\" +\n\t\t\t\t\"</td>\" +\n\t\t\t\t\"<th class='\" + headerClass + \" fc-agenda-gutter'>&nbsp;</th>\" +\n\t\t\t\t\"</tr>\" +\n\t\t\t\t\"</table>\";\n\t\t\tallDayTable = $(s).appendTo(slotLayer);\n\t\t\tallDayRow = allDayTable.find('tr');\n\t\t\t\n\t\t\tdayBind(allDayRow.find('td'));\n\t\t\t\n\t\t\tslotLayer.append(\n\t\t\t\t\"<div class='fc-agenda-divider \" + headerClass + \"'>\" +\n\t\t\t\t\"<div class='fc-agenda-divider-inner'/>\" +\n\t\t\t\t\"</div>\"\n\t\t\t);\n\t\t\t\n\t\t}else{\n\t\t\n\t\t\tdaySegmentContainer = $([]); // in jQuery 1.4, we can just do $()\n\t\t\n\t\t}\n\t\t\n\t\tslotScroller =\n\t\t\t$(\"<div style='position:absolute;width:100%;overflow-x:hidden;overflow-y:auto'/>\")\n\t\t\t\t.appendTo(slotLayer);\n\t\t\t\t\n\t\tslotContainer =\n\t\t\t$(\"<div style='position:relative;width:100%;overflow:hidden'/>\")\n\t\t\t\t.appendTo(slotScroller);\n\t\t\t\t\n\t\tslotSegmentContainer =\n\t\t\t$(\"<div class='fc-event-container' style='position:absolute;z-index:8;top:0;left:0'/>\")\n\t\t\t\t.appendTo(slotContainer);\n\t\t\n\t\ts =\n\t\t\t\"<table class='fc-agenda-slots' style='width:100%' cellspacing='0'>\" +\n\t\t\t\"<tbody>\";\n\t\td = zeroDate();\n\t\tmaxd = addMinutes(cloneDate(d), maxMinute);\n\t\taddMinutes(d, minMinute);\n\t\tslotCnt = 0;\n\t\tfor (i=0; d < maxd; i++) {\n\t\t\tminutes = d.getMinutes();\n\t\t\ts +=\n\t\t\t\t\"<tr class='fc-slot\" + i + ' ' + (!minutes ? '' : 'fc-minor') + \"'>\" +\n\t\t\t\t\"<th class='fc-agenda-axis \" + headerClass + \"'>\" +\n\t\t\t\t((!slotNormal || !minutes) ? formatDate(d, opt('axisFormat')) : '&nbsp;') +\n\t\t\t\t\"</th>\" +\n\t\t\t\t\"<td class='\" + contentClass + \"'>\" +\n\t\t\t\t\"<div style='position:relative'>&nbsp;</div>\" +\n\t\t\t\t\"</td>\" +\n\t\t\t\t\"</tr>\";\n\t\t\taddMinutes(d, opt('slotMinutes'));\n\t\t\tslotCnt++;\n\t\t}\n\t\ts +=\n\t\t\t\"</tbody>\" +\n\t\t\t\"</table>\";\n\t\tslotTable = $(s).appendTo(slotContainer);\n\t\t\n\t\tslotBind(slotTable.find('td'));\n\t}\n\n\n\n\t/* Build Day Table\n\t-----------------------------------------------------------------------*/\n\n\n\tfunction buildDayTable() {\n\t\tvar html = buildDayTableHTML();\n\n\t\tif (dayTable) {\n\t\t\tdayTable.remove();\n\t\t}\n\t\tdayTable = $(html).appendTo(element);\n\n\t\tdayHead = dayTable.find('thead');\n\t\tdayHeadCells = dayHead.find('th').slice(1, -1); // exclude gutter\n\t\tdayBody = dayTable.find('tbody');\n\t\tdayBodyCells = dayBody.find('td').slice(0, -1); // exclude gutter\n\t\tdayBodyCellInners = dayBodyCells.find('> div');\n\t\tdayBodyCellContentInners = dayBodyCells.find('.fc-day-content > div');\n\n\t\tdayBodyFirstCell = dayBodyCells.eq(0);\n\t\tdayBodyFirstCellStretcher = dayBodyCellInners.eq(0);\n\t\t\n\t\tmarkFirstLast(dayHead.add(dayHead.find('tr')));\n\t\tmarkFirstLast(dayBody.add(dayBody.find('tr')));\n\n\t\t// TODO: now that we rebuild the cells every time, we should call dayRender\n\t}\n\n\n\tfunction buildDayTableHTML() {\n\t\tvar html =\n\t\t\t\"<table style='width:100%' class='fc-agenda-days fc-border-separate' cellspacing='0'>\" +\n\t\t\tbuildDayTableHeadHTML() +\n\t\t\tbuildDayTableBodyHTML() +\n\t\t\t\"</table>\";\n\n\t\treturn html;\n\t}\n\n\n\tfunction buildDayTableHeadHTML() {\n\t\tvar headerClass = tm + \"-widget-header\";\n\t\tvar date;\n\t\tvar html = '';\n\t\tvar weekText;\n\t\tvar col;\n\n\t\thtml +=\n\t\t\t\"<thead>\" +\n\t\t\t\"<tr>\";\n\n\t\tif (showWeekNumbers) {\n\t\t\tdate = cellToDate(0, 0);\n\t\t\tweekText = formatDate(date, weekNumberFormat);\n\t\t\tif (rtl) {\n\t\t\t\tweekText += weekNumberTitle;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tweekText = weekNumberTitle + weekText;\n\t\t\t}\n\t\t\thtml +=\n\t\t\t\t\"<th class='fc-agenda-axis fc-week-number \" + headerClass + \"'>\" +\n\t\t\t\thtmlEscape(weekText) +\n\t\t\t\t\"</th>\";\n\t\t}\n\t\telse {\n\t\t\thtml += \"<th class='fc-agenda-axis \" + headerClass + \"'>&nbsp;</th>\";\n\t\t}\n\n\t\tfor (col=0; col<colCnt; col++) {\n\t\t\tdate = cellToDate(0, col);\n\t\t\thtml +=\n\t\t\t\t\"<th class='fc-\" + dayIDs[date.getDay()] + \" fc-col\" + col + ' ' + headerClass + \"'>\" +\n\t\t\t\thtmlEscape(formatDate(date, colFormat)) +\n\t\t\t\t\"</th>\";\n\t\t}\n\n\t\thtml +=\n\t\t\t\"<th class='fc-agenda-gutter \" + headerClass + \"'>&nbsp;</th>\" +\n\t\t\t\"</tr>\" +\n\t\t\t\"</thead>\";\n\n\t\treturn html;\n\t}\n\n\n\tfunction buildDayTableBodyHTML() {\n\t\tvar headerClass = tm + \"-widget-header\"; // TODO: make these when updateOptions() called\n\t\tvar contentClass = tm + \"-widget-content\";\n\t\tvar date;\n\t\tvar today = clearTime(new Date());\n\t\tvar col;\n\t\tvar cellsHTML;\n\t\tvar cellHTML;\n\t\tvar classNames;\n\t\tvar html = '';\n\n\t\thtml +=\n\t\t\t\"<tbody>\" +\n\t\t\t\"<tr>\" +\n\t\t\t\"<th class='fc-agenda-axis \" + headerClass + \"'>&nbsp;</th>\";\n\n\t\tcellsHTML = '';\n\n\t\tfor (col=0; col<colCnt; col++) {\n\n\t\t\tdate = cellToDate(0, col);\n\n\t\t\tclassNames = [\n\t\t\t\t'fc-col' + col,\n\t\t\t\t'fc-' + dayIDs[date.getDay()],\n\t\t\t\tcontentClass\n\t\t\t];\n\t\t\tif (+date == +today) {\n\t\t\t\tclassNames.push(\n\t\t\t\t\ttm + '-state-highlight',\n\t\t\t\t\t'fc-today'\n\t\t\t\t);\n\t\t\t}\n\t\t\telse if (date < today) {\n\t\t\t\tclassNames.push('fc-past');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tclassNames.push('fc-future');\n\t\t\t}\n\n\t\t\tcellHTML =\n\t\t\t\t\"<td class='\" + classNames.join(' ') + \"'>\" +\n\t\t\t\t\"<div>\" +\n\t\t\t\t\"<div class='fc-day-content'>\" +\n\t\t\t\t\"<div style='position:relative'>&nbsp;</div>\" +\n\t\t\t\t\"</div>\" +\n\t\t\t\t\"</div>\" +\n\t\t\t\t\"</td>\";\n\n\t\t\tcellsHTML += cellHTML;\n\t\t}\n\n\t\thtml += cellsHTML;\n\t\thtml +=\n\t\t\t\"<td class='fc-agenda-gutter \" + contentClass + \"'>&nbsp;</td>\" +\n\t\t\t\"</tr>\" +\n\t\t\t\"</tbody>\";\n\n\t\treturn html;\n\t}\n\n\n\t// TODO: data-date on the cells\n\n\t\n\t\n\t/* Dimensions\n\t-----------------------------------------------------------------------*/\n\n\t\n\tfunction setHeight(height) {\n\t\tif (height === undefined) {\n\t\t\theight = viewHeight;\n\t\t}\n\t\tviewHeight = height;\n\t\tslotTopCache = {};\n\t\n\t\tvar headHeight = dayBody.position().top;\n\t\tvar allDayHeight = slotScroller.position().top; // including divider\n\t\tvar bodyHeight = Math.min( // total body height, including borders\n\t\t\theight - headHeight,   // when scrollbars\n\t\t\tslotTable.height() + allDayHeight + 1 // when no scrollbars. +1 for bottom border\n\t\t);\n\n\t\tdayBodyFirstCellStretcher\n\t\t\t.height(bodyHeight - vsides(dayBodyFirstCell));\n\t\t\n\t\tslotLayer.css('top', headHeight);\n\t\t\n\t\tslotScroller.height(bodyHeight - allDayHeight - 1);\n\t\t\n\t\t// the stylesheet guarantees that the first row has no border.\n\t\t// this allows .height() to work well cross-browser.\n\t\tslotHeight = slotTable.find('tr:first').height() + 1; // +1 for bottom border\n\n\t\tsnapRatio = opt('slotMinutes') / snapMinutes;\n\t\tsnapHeight = slotHeight / snapRatio;\n\t}\n\t\n\t\n\tfunction setWidth(width) {\n\t\tviewWidth = width;\n\t\tcolPositions.clear();\n\t\tcolContentPositions.clear();\n\n\t\tvar axisFirstCells = dayHead.find('th:first');\n\t\tif (allDayTable) {\n\t\t\taxisFirstCells = axisFirstCells.add(allDayTable.find('th:first'));\n\t\t}\n\t\taxisFirstCells = axisFirstCells.add(slotTable.find('th:first'));\n\t\t\n\t\taxisWidth = 0;\n\t\tsetOuterWidth(\n\t\t\taxisFirstCells\n\t\t\t\t.width('')\n\t\t\t\t.each(function(i, _cell) {\n\t\t\t\t\taxisWidth = Math.max(axisWidth, $(_cell).outerWidth());\n\t\t\t\t}),\n\t\t\taxisWidth\n\t\t);\n\t\t\n\t\tvar gutterCells = dayTable.find('.fc-agenda-gutter');\n\t\tif (allDayTable) {\n\t\t\tgutterCells = gutterCells.add(allDayTable.find('th.fc-agenda-gutter'));\n\t\t}\n\n\t\tvar slotTableWidth = slotScroller[0].clientWidth; // needs to be done after axisWidth (for IE7)\n\t\t\n\t\tgutterWidth = slotScroller.width() - slotTableWidth;\n\t\tif (gutterWidth) {\n\t\t\tsetOuterWidth(gutterCells, gutterWidth);\n\t\t\tgutterCells\n\t\t\t\t.show()\n\t\t\t\t.prev()\n\t\t\t\t.removeClass('fc-last');\n\t\t}else{\n\t\t\tgutterCells\n\t\t\t\t.hide()\n\t\t\t\t.prev()\n\t\t\t\t.addClass('fc-last');\n\t\t}\n\t\t\n\t\tcolWidth = Math.floor((slotTableWidth - axisWidth) / colCnt);\n\t\tsetOuterWidth(dayHeadCells.slice(0, -1), colWidth);\n\t}\n\t\n\n\n\t/* Scrolling\n\t-----------------------------------------------------------------------*/\n\n\n\tfunction resetScroll() {\n\t\tvar d0 = zeroDate();\n\t\tvar scrollDate = cloneDate(d0);\n\t\tscrollDate.setHours(opt('firstHour'));\n\t\tvar top = timePosition(d0, scrollDate) + 1; // +1 for the border\n\t\tfunction scroll() {\n\t\t\tslotScroller.scrollTop(top);\n\t\t}\n\t\tscroll();\n\t\tsetTimeout(scroll, 0); // overrides any previous scroll state made by the browser\n\t}\n\n\n\tfunction afterRender() { // after the view has been freshly rendered and sized\n\t\tresetScroll();\n\t}\n\t\n\t\n\t\n\t/* Slot/Day clicking and binding\n\t-----------------------------------------------------------------------*/\n\t\n\n\tfunction dayBind(cells) {\n\t\tcells.click(slotClick)\n\t\t\t.mousedown(daySelectionMousedown);\n\t}\n\n\n\tfunction slotBind(cells) {\n\t\tcells.click(slotClick)\n\t\t\t.mousedown(slotSelectionMousedown);\n\t}\n\t\n\t\n\tfunction slotClick(ev) {\n\t\tif (!opt('selectable')) { // if selectable, SelectionManager will worry about dayClick\n\t\t\tvar col = Math.min(colCnt-1, Math.floor((ev.pageX - dayTable.offset().left - axisWidth) / colWidth));\n\t\t\tvar date = cellToDate(0, col);\n\t\t\tvar rowMatch = this.parentNode.className.match(/fc-slot(\\d+)/); // TODO: maybe use data\n\t\t\tif (rowMatch) {\n\t\t\t\tvar mins = parseInt(rowMatch[1]) * opt('slotMinutes');\n\t\t\t\tvar hours = Math.floor(mins/60);\n\t\t\t\tdate.setHours(hours);\n\t\t\t\tdate.setMinutes(mins%60 + minMinute);\n\t\t\t\ttrigger('dayClick', dayBodyCells[col], date, false, ev);\n\t\t\t}else{\n\t\t\t\ttrigger('dayClick', dayBodyCells[col], date, true, ev);\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* Semi-transparent Overlay Helpers\n\t-----------------------------------------------------*/\n\t// TODO: should be consolidated with BasicView's methods\n\n\n\tfunction renderDayOverlay(overlayStart, overlayEnd, refreshCoordinateGrid) { // overlayEnd is exclusive\n\n\t\tif (refreshCoordinateGrid) {\n\t\t\tcoordinateGrid.build();\n\t\t}\n\n\t\tvar segments = rangeToSegments(overlayStart, overlayEnd);\n\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\t\t\tdayBind(\n\t\t\t\trenderCellOverlay(\n\t\t\t\t\tsegment.row,\n\t\t\t\t\tsegment.leftCol,\n\t\t\t\t\tsegment.row,\n\t\t\t\t\tsegment.rightCol\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}\n\t\n\t\n\tfunction renderCellOverlay(row0, col0, row1, col1) { // only for all-day?\n\t\tvar rect = coordinateGrid.rect(row0, col0, row1, col1, slotLayer);\n\t\treturn renderOverlay(rect, slotLayer);\n\t}\n\t\n\n\tfunction renderSlotOverlay(overlayStart, overlayEnd) {\n\t\tfor (var i=0; i<colCnt; i++) {\n\t\t\tvar dayStart = cellToDate(0, i);\n\t\t\tvar dayEnd = addDays(cloneDate(dayStart), 1);\n\t\t\tvar stretchStart = new Date(Math.max(dayStart, overlayStart));\n\t\t\tvar stretchEnd = new Date(Math.min(dayEnd, overlayEnd));\n\t\t\tif (stretchStart < stretchEnd) {\n\t\t\t\tvar rect = coordinateGrid.rect(0, i, 0, i, slotContainer); // only use it for horizontal coords\n\t\t\t\tvar top = timePosition(dayStart, stretchStart);\n\t\t\t\tvar bottom = timePosition(dayStart, stretchEnd);\n\t\t\t\trect.top = top;\n\t\t\t\trect.height = bottom - top;\n\t\t\t\tslotBind(\n\t\t\t\t\trenderOverlay(rect, slotContainer)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* Coordinate Utilities\n\t-----------------------------------------------------------------------------*/\n\t\n\t\n\tcoordinateGrid = new CoordinateGrid(function(rows, cols) {\n\t\tvar e, n, p;\n\t\tdayHeadCells.each(function(i, _e) {\n\t\t\te = $(_e);\n\t\t\tn = e.offset().left;\n\t\t\tif (i) {\n\t\t\t\tp[1] = n;\n\t\t\t}\n\t\t\tp = [n];\n\t\t\tcols[i] = p;\n\t\t});\n\t\tp[1] = n + e.outerWidth();\n\t\tif (opt('allDaySlot')) {\n\t\t\te = allDayRow;\n\t\t\tn = e.offset().top;\n\t\t\trows[0] = [n, n+e.outerHeight()];\n\t\t}\n\t\tvar slotTableTop = slotContainer.offset().top;\n\t\tvar slotScrollerTop = slotScroller.offset().top;\n\t\tvar slotScrollerBottom = slotScrollerTop + slotScroller.outerHeight();\n\t\tfunction constrain(n) {\n\t\t\treturn Math.max(slotScrollerTop, Math.min(slotScrollerBottom, n));\n\t\t}\n\t\tfor (var i=0; i<slotCnt*snapRatio; i++) { // adapt slot count to increased/decreased selection slot count\n\t\t\trows.push([\n\t\t\t\tconstrain(slotTableTop + snapHeight*i),\n\t\t\t\tconstrain(slotTableTop + snapHeight*(i+1))\n\t\t\t]);\n\t\t}\n\t});\n\t\n\t\n\thoverListener = new HoverListener(coordinateGrid);\n\t\n\tcolPositions = new HorizontalPositionCache(function(col) {\n\t\treturn dayBodyCellInners.eq(col);\n\t});\n\t\n\tcolContentPositions = new HorizontalPositionCache(function(col) {\n\t\treturn dayBodyCellContentInners.eq(col);\n\t});\n\t\n\t\n\tfunction colLeft(col) {\n\t\treturn colPositions.left(col);\n\t}\n\n\n\tfunction colContentLeft(col) {\n\t\treturn colContentPositions.left(col);\n\t}\n\n\n\tfunction colRight(col) {\n\t\treturn colPositions.right(col);\n\t}\n\t\n\t\n\tfunction colContentRight(col) {\n\t\treturn colContentPositions.right(col);\n\t}\n\n\n\tfunction getIsCellAllDay(cell) {\n\t\treturn opt('allDaySlot') && !cell.row;\n\t}\n\n\n\tfunction realCellToDate(cell) { // ugh \"real\" ... but blame it on our abuse of the \"cell\" system\n\t\tvar d = cellToDate(0, cell.col);\n\t\tvar slotIndex = cell.row;\n\t\tif (opt('allDaySlot')) {\n\t\t\tslotIndex--;\n\t\t}\n\t\tif (slotIndex >= 0) {\n\t\t\taddMinutes(d, minMinute + slotIndex * snapMinutes);\n\t\t}\n\t\treturn d;\n\t}\n\t\n\t\n\t// get the Y coordinate of the given time on the given day (both Date objects)\n\tfunction timePosition(day, time) { // both date objects. day holds 00:00 of current day\n\t\tday = cloneDate(day, true);\n\t\tif (time < addMinutes(cloneDate(day), minMinute)) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (time >= addMinutes(cloneDate(day), maxMinute)) {\n\t\t\treturn slotTable.height();\n\t\t}\n\t\tvar slotMinutes = opt('slotMinutes'),\n\t\t\tminutes = time.getHours()*60 + time.getMinutes() - minMinute,\n\t\t\tslotI = Math.floor(minutes / slotMinutes),\n\t\t\tslotTop = slotTopCache[slotI];\n\t\tif (slotTop === undefined) {\n\t\t\tslotTop = slotTopCache[slotI] =\n\t\t\t\tslotTable.find('tr').eq(slotI).find('td div')[0].offsetTop;\n\t\t\t\t// .eq() is faster than \":eq()\" selector\n\t\t\t\t// [0].offsetTop is faster than .position().top (do we really need this optimization?)\n\t\t\t\t// a better optimization would be to cache all these divs\n\t\t}\n\t\treturn Math.max(0, Math.round(\n\t\t\tslotTop - 1 + slotHeight * ((minutes % slotMinutes) / slotMinutes)\n\t\t));\n\t}\n\t\n\t\n\tfunction getAllDayRow(index) {\n\t\treturn allDayRow;\n\t}\n\t\n\t\n\tfunction defaultEventEnd(event) {\n\t\tvar start = cloneDate(event.start);\n\t\tif (event.allDay) {\n\t\t\treturn start;\n\t\t}\n\t\treturn addMinutes(start, opt('defaultEventMinutes'));\n\t}\n\t\n\t\n\t\n\t/* Selection\n\t---------------------------------------------------------------------------------*/\n\t\n\t\n\tfunction defaultSelectionEnd(startDate, allDay) {\n\t\tif (allDay) {\n\t\t\treturn cloneDate(startDate);\n\t\t}\n\t\treturn addMinutes(cloneDate(startDate), opt('slotMinutes'));\n\t}\n\t\n\t\n\tfunction renderSelection(startDate, endDate, allDay) { // only for all-day\n\t\tif (allDay) {\n\t\t\tif (opt('allDaySlot')) {\n\t\t\t\trenderDayOverlay(startDate, addDays(cloneDate(endDate), 1), true);\n\t\t\t}\n\t\t}else{\n\t\t\trenderSlotSelection(startDate, endDate);\n\t\t}\n\t}\n\t\n\t\n\tfunction renderSlotSelection(startDate, endDate) {\n\t\tvar helperOption = opt('selectHelper');\n\t\tcoordinateGrid.build();\n\t\tif (helperOption) {\n\t\t\tvar col = dateToCell(startDate).col;\n\t\t\tif (col >= 0 && col < colCnt) { // only works when times are on same day\n\t\t\t\tvar rect = coordinateGrid.rect(0, col, 0, col, slotContainer); // only for horizontal coords\n\t\t\t\tvar top = timePosition(startDate, startDate);\n\t\t\t\tvar bottom = timePosition(startDate, endDate);\n\t\t\t\tif (bottom > top) { // protect against selections that are entirely before or after visible range\n\t\t\t\t\trect.top = top;\n\t\t\t\t\trect.height = bottom - top;\n\t\t\t\t\trect.left += 2;\n\t\t\t\t\trect.width -= 5;\n\t\t\t\t\tif ($.isFunction(helperOption)) {\n\t\t\t\t\t\tvar helperRes = helperOption(startDate, endDate);\n\t\t\t\t\t\tif (helperRes) {\n\t\t\t\t\t\t\trect.position = 'absolute';\n\t\t\t\t\t\t\tselectionHelper = $(helperRes)\n\t\t\t\t\t\t\t\t.css(rect)\n\t\t\t\t\t\t\t\t.appendTo(slotContainer);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\trect.isStart = true; // conside rect a \"seg\" now\n\t\t\t\t\t\trect.isEnd = true;   //\n\t\t\t\t\t\tselectionHelper = $(slotSegHtml(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttitle: '',\n\t\t\t\t\t\t\t\tstart: startDate,\n\t\t\t\t\t\t\t\tend: endDate,\n\t\t\t\t\t\t\t\tclassName: ['fc-select-helper'],\n\t\t\t\t\t\t\t\teditable: false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\trect\n\t\t\t\t\t\t));\n\t\t\t\t\t\tselectionHelper.css('opacity', opt('dragOpacity'));\n\t\t\t\t\t}\n\t\t\t\t\tif (selectionHelper) {\n\t\t\t\t\t\tslotBind(selectionHelper);\n\t\t\t\t\t\tslotContainer.append(selectionHelper);\n\t\t\t\t\t\tsetOuterWidth(selectionHelper, rect.width, true); // needs to be after appended\n\t\t\t\t\t\tsetOuterHeight(selectionHelper, rect.height, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\trenderSlotOverlay(startDate, endDate);\n\t\t}\n\t}\n\t\n\t\n\tfunction clearSelection() {\n\t\tclearOverlays();\n\t\tif (selectionHelper) {\n\t\t\tselectionHelper.remove();\n\t\t\tselectionHelper = null;\n\t\t}\n\t}\n\t\n\t\n\tfunction slotSelectionMousedown(ev) {\n\t\tif (ev.which == 1 && opt('selectable')) { // ev.which==1 means left mouse button\n\t\t\tunselect(ev);\n\t\t\tvar dates;\n\t\t\thoverListener.start(function(cell, origCell) {\n\t\t\t\tclearSelection();\n\t\t\t\tif (cell && cell.col == origCell.col && !getIsCellAllDay(cell)) {\n\t\t\t\t\tvar d1 = realCellToDate(origCell);\n\t\t\t\t\tvar d2 = realCellToDate(cell);\n\t\t\t\t\tdates = [\n\t\t\t\t\t\td1,\n\t\t\t\t\t\taddMinutes(cloneDate(d1), snapMinutes), // calculate minutes depending on selection slot minutes \n\t\t\t\t\t\td2,\n\t\t\t\t\t\taddMinutes(cloneDate(d2), snapMinutes)\n\t\t\t\t\t].sort(dateCompare);\n\t\t\t\t\trenderSlotSelection(dates[0], dates[3]);\n\t\t\t\t}else{\n\t\t\t\t\tdates = null;\n\t\t\t\t}\n\t\t\t}, ev);\n\t\t\t$(document).one('mouseup', function(ev) {\n\t\t\t\thoverListener.stop();\n\t\t\t\tif (dates) {\n\t\t\t\t\tif (+dates[0] == +dates[1]) {\n\t\t\t\t\t\treportDayClick(dates[0], false, ev);\n\t\t\t\t\t}\n\t\t\t\t\treportSelection(dates[0], dates[3], false, ev);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\n\tfunction reportDayClick(date, allDay, ev) {\n\t\ttrigger('dayClick', dayBodyCells[dateToCell(date).col], date, allDay, ev);\n\t}\n\t\n\t\n\t\n\t/* External Dragging\n\t--------------------------------------------------------------------------------*/\n\t\n\t\n\tfunction dragStart(_dragElement, ev, ui) {\n\t\thoverListener.start(function(cell) {\n\t\t\tclearOverlays();\n\t\t\tif (cell) {\n\t\t\t\tif (getIsCellAllDay(cell)) {\n\t\t\t\t\trenderCellOverlay(cell.row, cell.col, cell.row, cell.col);\n\t\t\t\t}else{\n\t\t\t\t\tvar d1 = realCellToDate(cell);\n\t\t\t\t\tvar d2 = addMinutes(cloneDate(d1), opt('defaultEventMinutes'));\n\t\t\t\t\trenderSlotOverlay(d1, d2);\n\t\t\t\t}\n\t\t\t}\n\t\t}, ev);\n\t}\n\t\n\t\n\tfunction dragStop(_dragElement, ev, ui) {\n\t\tvar cell = hoverListener.stop();\n\t\tclearOverlays();\n\t\tif (cell) {\n\t\t\ttrigger('drop', _dragElement, realCellToDate(cell), getIsCellAllDay(cell), ev, ui);\n\t\t}\n\t}\n\t\n\n}\n\n;;\n\nfunction AgendaEventRenderer() {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.renderEvents = renderEvents;\n\tt.clearEvents = clearEvents;\n\tt.slotSegHtml = slotSegHtml;\n\t\n\t\n\t// imports\n\tDayEventRenderer.call(t);\n\tvar opt = t.opt;\n\tvar trigger = t.trigger;\n\tvar isEventDraggable = t.isEventDraggable;\n\tvar isEventResizable = t.isEventResizable;\n\tvar eventEnd = t.eventEnd;\n\tvar eventElementHandlers = t.eventElementHandlers;\n\tvar setHeight = t.setHeight;\n\tvar getDaySegmentContainer = t.getDaySegmentContainer;\n\tvar getSlotSegmentContainer = t.getSlotSegmentContainer;\n\tvar getHoverListener = t.getHoverListener;\n\tvar getMaxMinute = t.getMaxMinute;\n\tvar getMinMinute = t.getMinMinute;\n\tvar timePosition = t.timePosition;\n\tvar getIsCellAllDay = t.getIsCellAllDay;\n\tvar colContentLeft = t.colContentLeft;\n\tvar colContentRight = t.colContentRight;\n\tvar cellToDate = t.cellToDate;\n\tvar getColCnt = t.getColCnt;\n\tvar getColWidth = t.getColWidth;\n\tvar getSnapHeight = t.getSnapHeight;\n\tvar getSnapMinutes = t.getSnapMinutes;\n\tvar getSlotContainer = t.getSlotContainer;\n\tvar reportEventElement = t.reportEventElement;\n\tvar showEvents = t.showEvents;\n\tvar hideEvents = t.hideEvents;\n\tvar eventDrop = t.eventDrop;\n\tvar eventResize = t.eventResize;\n\tvar renderDayOverlay = t.renderDayOverlay;\n\tvar clearOverlays = t.clearOverlays;\n\tvar renderDayEvents = t.renderDayEvents;\n\tvar calendar = t.calendar;\n\tvar formatDate = calendar.formatDate;\n\tvar formatDates = calendar.formatDates;\n\n\n\t// overrides\n\tt.draggableDayEvent = draggableDayEvent;\n\n\t\n\t\n\t/* Rendering\n\t----------------------------------------------------------------------------*/\n\t\n\n\tfunction renderEvents(events, modifiedEventId) {\n\t\tvar i, len=events.length,\n\t\t\tdayEvents=[],\n\t\t\tslotEvents=[];\n\t\tfor (i=0; i<len; i++) {\n\t\t\tif (events[i].allDay) {\n\t\t\t\tdayEvents.push(events[i]);\n\t\t\t}else{\n\t\t\t\tslotEvents.push(events[i]);\n\t\t\t}\n\t\t}\n\n\t\tif (opt('allDaySlot')) {\n\t\t\trenderDayEvents(dayEvents, modifiedEventId);\n\t\t\tsetHeight(); // no params means set to viewHeight\n\t\t}\n\n\t\trenderSlotSegs(compileSlotSegs(slotEvents), modifiedEventId);\n\t}\n\t\n\t\n\tfunction clearEvents() {\n\t\tgetDaySegmentContainer().empty();\n\t\tgetSlotSegmentContainer().empty();\n\t}\n\n\t\n\tfunction compileSlotSegs(events) {\n\t\tvar colCnt = getColCnt(),\n\t\t\tminMinute = getMinMinute(),\n\t\t\tmaxMinute = getMaxMinute(),\n\t\t\td,\n\t\t\tvisEventEnds = $.map(events, slotEventEnd),\n\t\t\ti,\n\t\t\tj, seg,\n\t\t\tcolSegs,\n\t\t\tsegs = [];\n\n\t\tfor (i=0; i<colCnt; i++) {\n\n\t\t\td = cellToDate(0, i);\n\t\t\taddMinutes(d, minMinute);\n\n\t\t\tcolSegs = sliceSegs(\n\t\t\t\tevents,\n\t\t\t\tvisEventEnds,\n\t\t\t\td,\n\t\t\t\taddMinutes(cloneDate(d), maxMinute-minMinute)\n\t\t\t);\n\n\t\t\tcolSegs = placeSlotSegs(colSegs); // returns a new order\n\n\t\t\tfor (j=0; j<colSegs.length; j++) {\n\t\t\t\tseg = colSegs[j];\n\t\t\t\tseg.col = i;\n\t\t\t\tsegs.push(seg);\n\t\t\t}\n\t\t}\n\n\t\treturn segs;\n\t}\n\n\n\tfunction sliceSegs(events, visEventEnds, start, end) {\n\t\tvar segs = [],\n\t\t\ti, len=events.length, event,\n\t\t\teventStart, eventEnd,\n\t\t\tsegStart, segEnd,\n\t\t\tisStart, isEnd;\n\t\tfor (i=0; i<len; i++) {\n\t\t\tevent = events[i];\n\t\t\teventStart = event.start;\n\t\t\teventEnd = visEventEnds[i];\n\t\t\tif (eventEnd > start && eventStart < end) {\n\t\t\t\tif (eventStart < start) {\n\t\t\t\t\tsegStart = cloneDate(start);\n\t\t\t\t\tisStart = false;\n\t\t\t\t}else{\n\t\t\t\t\tsegStart = eventStart;\n\t\t\t\t\tisStart = true;\n\t\t\t\t}\n\t\t\t\tif (eventEnd > end) {\n\t\t\t\t\tsegEnd = cloneDate(end);\n\t\t\t\t\tisEnd = false;\n\t\t\t\t}else{\n\t\t\t\t\tsegEnd = eventEnd;\n\t\t\t\t\tisEnd = true;\n\t\t\t\t}\n\t\t\t\tsegs.push({\n\t\t\t\t\tevent: event,\n\t\t\t\t\tstart: segStart,\n\t\t\t\t\tend: segEnd,\n\t\t\t\t\tisStart: isStart,\n\t\t\t\t\tisEnd: isEnd\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\treturn segs.sort(compareSlotSegs);\n\t}\n\n\n\tfunction slotEventEnd(event) {\n\t\tif (event.end) {\n\t\t\treturn cloneDate(event.end);\n\t\t}else{\n\t\t\treturn addMinutes(cloneDate(event.start), opt('defaultEventMinutes'));\n\t\t}\n\t}\n\t\n\t\n\t// renders events in the 'time slots' at the bottom\n\t// TODO: when we refactor this, when user returns `false` eventRender, don't have empty space\n\t// TODO: refactor will include using pixels to detect collisions instead of dates (handy for seg cmp)\n\t\n\tfunction renderSlotSegs(segs, modifiedEventId) {\n\t\n\t\tvar i, segCnt=segs.length, seg,\n\t\t\tevent,\n\t\t\ttop,\n\t\t\tbottom,\n\t\t\tcolumnLeft,\n\t\t\tcolumnRight,\n\t\t\tcolumnWidth,\n\t\t\twidth,\n\t\t\tleft,\n\t\t\tright,\n\t\t\thtml = '',\n\t\t\teventElements,\n\t\t\teventElement,\n\t\t\ttriggerRes,\n\t\t\ttitleElement,\n\t\t\theight,\n\t\t\tslotSegmentContainer = getSlotSegmentContainer(),\n\t\t\tisRTL = opt('isRTL');\n\t\t\t\n\t\t// calculate position/dimensions, create html\n\t\tfor (i=0; i<segCnt; i++) {\n\t\t\tseg = segs[i];\n\t\t\tevent = seg.event;\n\t\t\ttop = timePosition(seg.start, seg.start);\n\t\t\tbottom = timePosition(seg.start, seg.end);\n\t\t\tcolumnLeft = colContentLeft(seg.col);\n\t\t\tcolumnRight = colContentRight(seg.col);\n\t\t\tcolumnWidth = columnRight - columnLeft;\n\n\t\t\t// shave off space on right near scrollbars (2.5%)\n\t\t\t// TODO: move this to CSS somehow\n\t\t\tcolumnRight -= columnWidth * .025;\n\t\t\tcolumnWidth = columnRight - columnLeft;\n\n\t\t\twidth = columnWidth * (seg.forwardCoord - seg.backwardCoord);\n\n\t\t\tif (opt('slotEventOverlap')) {\n\t\t\t\t// double the width while making sure resize handle is visible\n\t\t\t\t// (assumed to be 20px wide)\n\t\t\t\twidth = Math.max(\n\t\t\t\t\t(width - (20/2)) * 2,\n\t\t\t\t\twidth // narrow columns will want to make the segment smaller than\n\t\t\t\t\t\t// the natural width. don't allow it\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (isRTL) {\n\t\t\t\tright = columnRight - seg.backwardCoord * columnWidth;\n\t\t\t\tleft = right - width;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tleft = columnLeft + seg.backwardCoord * columnWidth;\n\t\t\t\tright = left + width;\n\t\t\t}\n\n\t\t\t// make sure horizontal coordinates are in bounds\n\t\t\tleft = Math.max(left, columnLeft);\n\t\t\tright = Math.min(right, columnRight);\n\t\t\twidth = right - left;\n\n\t\t\tseg.top = top;\n\t\t\tseg.left = left;\n\t\t\tseg.outerWidth = width;\n\t\t\tseg.outerHeight = bottom - top;\n\t\t\thtml += slotSegHtml(event, seg);\n\t\t}\n\n\t\tslotSegmentContainer[0].innerHTML = html; // faster than html()\n\t\teventElements = slotSegmentContainer.children();\n\t\t\n\t\t// retrieve elements, run through eventRender callback, bind event handlers\n\t\tfor (i=0; i<segCnt; i++) {\n\t\t\tseg = segs[i];\n\t\t\tevent = seg.event;\n\t\t\teventElement = $(eventElements[i]); // faster than eq()\n\t\t\ttriggerRes = trigger('eventRender', event, event, eventElement);\n\t\t\tif (triggerRes === false) {\n\t\t\t\teventElement.remove();\n\t\t\t}else{\n\t\t\t\tif (triggerRes && triggerRes !== true) {\n\t\t\t\t\teventElement.remove();\n\t\t\t\t\teventElement = $(triggerRes)\n\t\t\t\t\t\t.css({\n\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\ttop: seg.top,\n\t\t\t\t\t\t\tleft: seg.left\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.appendTo(slotSegmentContainer);\n\t\t\t\t}\n\t\t\t\tseg.element = eventElement;\n\t\t\t\tif (event._id === modifiedEventId) {\n\t\t\t\t\tbindSlotSeg(event, eventElement, seg);\n\t\t\t\t}else{\n\t\t\t\t\teventElement[0]._fci = i; // for lazySegBind\n\t\t\t\t}\n\t\t\t\treportEventElement(event, eventElement);\n\t\t\t}\n\t\t}\n\t\t\n\t\tlazySegBind(slotSegmentContainer, segs, bindSlotSeg);\n\t\t\n\t\t// record event sides and title positions\n\t\tfor (i=0; i<segCnt; i++) {\n\t\t\tseg = segs[i];\n\t\t\tif (eventElement = seg.element) {\n\t\t\t\tseg.vsides = vsides(eventElement, true);\n\t\t\t\tseg.hsides = hsides(eventElement, true);\n\t\t\t\ttitleElement = eventElement.find('.fc-event-title');\n\t\t\t\tif (titleElement.length) {\n\t\t\t\t\tseg.contentTop = titleElement[0].offsetTop;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// set all positions/dimensions at once\n\t\tfor (i=0; i<segCnt; i++) {\n\t\t\tseg = segs[i];\n\t\t\tif (eventElement = seg.element) {\n\t\t\t\teventElement[0].style.width = Math.max(0, seg.outerWidth - seg.hsides) + 'px';\n\t\t\t\theight = Math.max(0, seg.outerHeight - seg.vsides);\n\t\t\t\teventElement[0].style.height = height + 'px';\n\t\t\t\tevent = seg.event;\n\t\t\t\tif (seg.contentTop !== undefined && height - seg.contentTop < 10) {\n\t\t\t\t\t// not enough room for title, put it in the time (TODO: maybe make both display:inline instead)\n\t\t\t\t\teventElement.find('div.fc-event-time')\n\t\t\t\t\t\t.text(formatDate(event.start, opt('timeFormat')) + ' - ' + event.title);\n\t\t\t\t\teventElement.find('div.fc-event-title')\n\t\t\t\t\t\t.remove();\n\t\t\t\t}\n\t\t\t\ttrigger('eventAfterRender', event, event, eventElement);\n\t\t\t}\n\t\t}\n\t\t\t\t\t\n\t}\n\t\n\t\n\tfunction slotSegHtml(event, seg) {\n\t\tvar html = \"<\";\n\t\tvar url = event.url;\n\t\tvar skinCss = getSkinCss(event, opt);\n\t\tvar classes = ['fc-event', 'fc-event-vert'];\n\t\tif (isEventDraggable(event)) {\n\t\t\tclasses.push('fc-event-draggable');\n\t\t}\n\t\tif (seg.isStart) {\n\t\t\tclasses.push('fc-event-start');\n\t\t}\n\t\tif (seg.isEnd) {\n\t\t\tclasses.push('fc-event-end');\n\t\t}\n\t\tclasses = classes.concat(event.className);\n\t\tif (event.source) {\n\t\t\tclasses = classes.concat(event.source.className || []);\n\t\t}\n\t\tif (url) {\n\t\t\thtml += \"a href='\" + htmlEscape(event.url) + \"'\";\n\t\t}else{\n\t\t\thtml += \"div\";\n\t\t}\n\t\thtml +=\n\t\t\t\" class='\" + classes.join(' ') + \"'\" +\n\t\t\t\" style=\" +\n\t\t\t\t\"'\" +\n\t\t\t\t\"position:absolute;\" +\n\t\t\t\t\"top:\" + seg.top + \"px;\" +\n\t\t\t\t\"left:\" + seg.left + \"px;\" +\n\t\t\t\tskinCss +\n\t\t\t\t\"'\" +\n\t\t\t\">\" +\n\t\t\t\"<div class='fc-event-inner'>\" +\n\t\t\t\"<div class='fc-event-time'>\" +\n\t\t\thtmlEscape(formatDates(event.start, event.end, opt('timeFormat'))) +\n\t\t\t\"</div>\" +\n\t\t\t\"<div class='fc-event-title'>\" +\n\t\t\thtmlEscape(event.title || '') +\n\t\t\t\"</div>\" +\n\t\t\t\"</div>\" +\n\t\t\t\"<div class='fc-event-bg'></div>\";\n\t\tif (seg.isEnd && isEventResizable(event)) {\n\t\t\thtml +=\n\t\t\t\t\"<div class='ui-resizable-handle ui-resizable-s'>=</div>\";\n\t\t}\n\t\thtml +=\n\t\t\t\"</\" + (url ? \"a\" : \"div\") + \">\";\n\t\treturn html;\n\t}\n\t\n\t\n\tfunction bindSlotSeg(event, eventElement, seg) {\n\t\tvar timeElement = eventElement.find('div.fc-event-time');\n\t\tif (isEventDraggable(event)) {\n\t\t\tdraggableSlotEvent(event, eventElement, timeElement);\n\t\t}\n\t\tif (seg.isEnd && isEventResizable(event)) {\n\t\t\tresizableSlotEvent(event, eventElement, timeElement);\n\t\t}\n\t\teventElementHandlers(event, eventElement);\n\t}\n\t\n\t\n\t\n\t/* Dragging\n\t-----------------------------------------------------------------------------------*/\n\t\n\t\n\t// when event starts out FULL-DAY\n\t// overrides DayEventRenderer's version because it needs to account for dragging elements\n\t// to and from the slot area.\n\t\n\tfunction draggableDayEvent(event, eventElement, seg) {\n\t\tvar isStart = seg.isStart;\n\t\tvar origWidth;\n\t\tvar revert;\n\t\tvar allDay = true;\n\t\tvar dayDelta;\n\t\tvar hoverListener = getHoverListener();\n\t\tvar colWidth = getColWidth();\n\t\tvar snapHeight = getSnapHeight();\n\t\tvar snapMinutes = getSnapMinutes();\n\t\tvar minMinute = getMinMinute();\n\t\teventElement.draggable({\n\t\t\topacity: opt('dragOpacity', 'month'), // use whatever the month view was using\n\t\t\trevertDuration: opt('dragRevertDuration'),\n\t\t\tstart: function(ev, ui) {\n\t\t\t\ttrigger('eventDragStart', eventElement, event, ev, ui);\n\t\t\t\thideEvents(event, eventElement);\n\t\t\t\torigWidth = eventElement.width();\n\t\t\t\thoverListener.start(function(cell, origCell) {\n\t\t\t\t\tclearOverlays();\n\t\t\t\t\tif (cell) {\n\t\t\t\t\t\trevert = false;\n\t\t\t\t\t\tvar origDate = cellToDate(0, origCell.col);\n\t\t\t\t\t\tvar date = cellToDate(0, cell.col);\n\t\t\t\t\t\tdayDelta = dayDiff(date, origDate);\n\t\t\t\t\t\tif (!cell.row) {\n\t\t\t\t\t\t\t// on full-days\n\t\t\t\t\t\t\trenderDayOverlay(\n\t\t\t\t\t\t\t\taddDays(cloneDate(event.start), dayDelta),\n\t\t\t\t\t\t\t\taddDays(exclEndDay(event), dayDelta)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tresetElement();\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t// mouse is over bottom slots\n\t\t\t\t\t\t\tif (isStart) {\n\t\t\t\t\t\t\t\tif (allDay) {\n\t\t\t\t\t\t\t\t\t// convert event to temporary slot-event\n\t\t\t\t\t\t\t\t\teventElement.width(colWidth - 10); // don't use entire width\n\t\t\t\t\t\t\t\t\tsetOuterHeight(\n\t\t\t\t\t\t\t\t\t\teventElement,\n\t\t\t\t\t\t\t\t\t\tsnapHeight * Math.round(\n\t\t\t\t\t\t\t\t\t\t\t(event.end ? ((event.end - event.start) / MINUTE_MS) : opt('defaultEventMinutes')) /\n\t\t\t\t\t\t\t\t\t\t\t\tsnapMinutes\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\teventElement.draggable('option', 'grid', [colWidth, 1]);\n\t\t\t\t\t\t\t\t\tallDay = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\trevert = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\trevert = revert || (allDay && !dayDelta);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tresetElement();\n\t\t\t\t\t\trevert = true;\n\t\t\t\t\t}\n\t\t\t\t\teventElement.draggable('option', 'revert', revert);\n\t\t\t\t}, ev, 'drag');\n\t\t\t},\n\t\t\tstop: function(ev, ui) {\n\t\t\t\thoverListener.stop();\n\t\t\t\tclearOverlays();\n\t\t\t\ttrigger('eventDragStop', eventElement, event, ev, ui);\n\t\t\t\tif (revert) {\n\t\t\t\t\t// hasn't moved or is out of bounds (draggable has already reverted)\n\t\t\t\t\tresetElement();\n\t\t\t\t\teventElement.css('filter', ''); // clear IE opacity side-effects\n\t\t\t\t\tshowEvents(event, eventElement);\n\t\t\t\t}else{\n\t\t\t\t\t// changed!\n\t\t\t\t\tvar minuteDelta = 0;\n\t\t\t\t\tif (!allDay) {\n\t\t\t\t\t\tminuteDelta = Math.round((eventElement.offset().top - getSlotContainer().offset().top) / snapHeight)\n\t\t\t\t\t\t\t* snapMinutes\n\t\t\t\t\t\t\t+ minMinute\n\t\t\t\t\t\t\t- (event.start.getHours() * 60 + event.start.getMinutes());\n\t\t\t\t\t}\n\t\t\t\t\teventDrop(this, event, dayDelta, minuteDelta, allDay, ev, ui);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tfunction resetElement() {\n\t\t\tif (!allDay) {\n\t\t\t\teventElement\n\t\t\t\t\t.width(origWidth)\n\t\t\t\t\t.height('')\n\t\t\t\t\t.draggable('option', 'grid', null);\n\t\t\t\tallDay = true;\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t// when event starts out IN TIMESLOTS\n\t\n\tfunction draggableSlotEvent(event, eventElement, timeElement) {\n\t\tvar coordinateGrid = t.getCoordinateGrid();\n\t\tvar colCnt = getColCnt();\n\t\tvar colWidth = getColWidth();\n\t\tvar snapHeight = getSnapHeight();\n\t\tvar snapMinutes = getSnapMinutes();\n\n\t\t// states\n\t\tvar origPosition; // original position of the element, not the mouse\n\t\tvar origCell;\n\t\tvar isInBounds, prevIsInBounds;\n\t\tvar isAllDay, prevIsAllDay;\n\t\tvar colDelta, prevColDelta;\n\t\tvar dayDelta; // derived from colDelta\n\t\tvar minuteDelta, prevMinuteDelta;\n\n\t\teventElement.draggable({\n\t\t\tscroll: false,\n\t\t\tgrid: [ colWidth, snapHeight ],\n\t\t\taxis: colCnt==1 ? 'y' : false,\n\t\t\topacity: opt('dragOpacity'),\n\t\t\trevertDuration: opt('dragRevertDuration'),\n\t\t\tstart: function(ev, ui) {\n\n\t\t\t\ttrigger('eventDragStart', eventElement, event, ev, ui);\n\t\t\t\thideEvents(event, eventElement);\n\n\t\t\t\tcoordinateGrid.build();\n\n\t\t\t\t// initialize states\n\t\t\t\torigPosition = eventElement.position();\n\t\t\t\torigCell = coordinateGrid.cell(ev.pageX, ev.pageY);\n\t\t\t\tisInBounds = prevIsInBounds = true;\n\t\t\t\tisAllDay = prevIsAllDay = getIsCellAllDay(origCell);\n\t\t\t\tcolDelta = prevColDelta = 0;\n\t\t\t\tdayDelta = 0;\n\t\t\t\tminuteDelta = prevMinuteDelta = 0;\n\n\t\t\t},\n\t\t\tdrag: function(ev, ui) {\n\n\t\t\t\t// NOTE: this `cell` value is only useful for determining in-bounds and all-day.\n\t\t\t\t// Bad for anything else due to the discrepancy between the mouse position and the\n\t\t\t\t// element position while snapping. (problem revealed in PR #55)\n\t\t\t\t//\n\t\t\t\t// PS- the problem exists for draggableDayEvent() when dragging an all-day event to a slot event.\n\t\t\t\t// We should overhaul the dragging system and stop relying on jQuery UI.\n\t\t\t\tvar cell = coordinateGrid.cell(ev.pageX, ev.pageY);\n\n\t\t\t\t// update states\n\t\t\t\tisInBounds = !!cell;\n\t\t\t\tif (isInBounds) {\n\t\t\t\t\tisAllDay = getIsCellAllDay(cell);\n\n\t\t\t\t\t// calculate column delta\n\t\t\t\t\tcolDelta = Math.round((ui.position.left - origPosition.left) / colWidth);\n\t\t\t\t\tif (colDelta != prevColDelta) {\n\t\t\t\t\t\t// calculate the day delta based off of the original clicked column and the column delta\n\t\t\t\t\t\tvar origDate = cellToDate(0, origCell.col);\n\t\t\t\t\t\tvar col = origCell.col + colDelta;\n\t\t\t\t\t\tcol = Math.max(0, col);\n\t\t\t\t\t\tcol = Math.min(colCnt-1, col);\n\t\t\t\t\t\tvar date = cellToDate(0, col);\n\t\t\t\t\t\tdayDelta = dayDiff(date, origDate);\n\t\t\t\t\t}\n\n\t\t\t\t\t// calculate minute delta (only if over slots)\n\t\t\t\t\tif (!isAllDay) {\n\t\t\t\t\t\tminuteDelta = Math.round((ui.position.top - origPosition.top) / snapHeight) * snapMinutes;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// any state changes?\n\t\t\t\tif (\n\t\t\t\t\tisInBounds != prevIsInBounds ||\n\t\t\t\t\tisAllDay != prevIsAllDay ||\n\t\t\t\t\tcolDelta != prevColDelta ||\n\t\t\t\t\tminuteDelta != prevMinuteDelta\n\t\t\t\t) {\n\n\t\t\t\t\tupdateUI();\n\n\t\t\t\t\t// update previous states for next time\n\t\t\t\t\tprevIsInBounds = isInBounds;\n\t\t\t\t\tprevIsAllDay = isAllDay;\n\t\t\t\t\tprevColDelta = colDelta;\n\t\t\t\t\tprevMinuteDelta = minuteDelta;\n\t\t\t\t}\n\n\t\t\t\t// if out-of-bounds, revert when done, and vice versa.\n\t\t\t\teventElement.draggable('option', 'revert', !isInBounds);\n\n\t\t\t},\n\t\t\tstop: function(ev, ui) {\n\n\t\t\t\tclearOverlays();\n\t\t\t\ttrigger('eventDragStop', eventElement, event, ev, ui);\n\n\t\t\t\tif (isInBounds && (isAllDay || dayDelta || minuteDelta)) { // changed!\n\t\t\t\t\teventDrop(this, event, dayDelta, isAllDay ? 0 : minuteDelta, isAllDay, ev, ui);\n\t\t\t\t}\n\t\t\t\telse { // either no change or out-of-bounds (draggable has already reverted)\n\n\t\t\t\t\t// reset states for next time, and for updateUI()\n\t\t\t\t\tisInBounds = true;\n\t\t\t\t\tisAllDay = false;\n\t\t\t\t\tcolDelta = 0;\n\t\t\t\t\tdayDelta = 0;\n\t\t\t\t\tminuteDelta = 0;\n\n\t\t\t\t\tupdateUI();\n\t\t\t\t\teventElement.css('filter', ''); // clear IE opacity side-effects\n\n\t\t\t\t\t// sometimes fast drags make event revert to wrong position, so reset.\n\t\t\t\t\t// also, if we dragged the element out of the area because of snapping,\n\t\t\t\t\t// but the *mouse* is still in bounds, we need to reset the position.\n\t\t\t\t\teventElement.css(origPosition);\n\n\t\t\t\t\tshowEvents(event, eventElement);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tfunction updateUI() {\n\t\t\tclearOverlays();\n\t\t\tif (isInBounds) {\n\t\t\t\tif (isAllDay) {\n\t\t\t\t\ttimeElement.hide();\n\t\t\t\t\teventElement.draggable('option', 'grid', null); // disable grid snapping\n\t\t\t\t\trenderDayOverlay(\n\t\t\t\t\t\taddDays(cloneDate(event.start), dayDelta),\n\t\t\t\t\t\taddDays(exclEndDay(event), dayDelta)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tupdateTimeText(minuteDelta);\n\t\t\t\t\ttimeElement.css('display', ''); // show() was causing display=inline\n\t\t\t\t\teventElement.draggable('option', 'grid', [colWidth, snapHeight]); // re-enable grid snapping\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfunction updateTimeText(minuteDelta) {\n\t\t\tvar newStart = addMinutes(cloneDate(event.start), minuteDelta);\n\t\t\tvar newEnd;\n\t\t\tif (event.end) {\n\t\t\t\tnewEnd = addMinutes(cloneDate(event.end), minuteDelta);\n\t\t\t}\n\t\t\ttimeElement.text(formatDates(newStart, newEnd, opt('timeFormat')));\n\t\t}\n\n\t}\n\t\n\t\n\t\n\t/* Resizing\n\t--------------------------------------------------------------------------------------*/\n\t\n\t\n\tfunction resizableSlotEvent(event, eventElement, timeElement) {\n\t\tvar snapDelta, prevSnapDelta;\n\t\tvar snapHeight = getSnapHeight();\n\t\tvar snapMinutes = getSnapMinutes();\n\t\teventElement.resizable({\n\t\t\thandles: {\n\t\t\t\ts: '.ui-resizable-handle'\n\t\t\t},\n\t\t\tgrid: snapHeight,\n\t\t\tstart: function(ev, ui) {\n\t\t\t\tsnapDelta = prevSnapDelta = 0;\n\t\t\t\thideEvents(event, eventElement);\n\t\t\t\ttrigger('eventResizeStart', this, event, ev, ui);\n\t\t\t},\n\t\t\tresize: function(ev, ui) {\n\t\t\t\t// don't rely on ui.size.height, doesn't take grid into account\n\t\t\t\tsnapDelta = Math.round((Math.max(snapHeight, eventElement.height()) - ui.originalSize.height) / snapHeight);\n\t\t\t\tif (snapDelta != prevSnapDelta) {\n\t\t\t\t\ttimeElement.text(\n\t\t\t\t\t\tformatDates(\n\t\t\t\t\t\t\tevent.start,\n\t\t\t\t\t\t\t(!snapDelta && !event.end) ? null : // no change, so don't display time range\n\t\t\t\t\t\t\t\taddMinutes(eventEnd(event), snapMinutes*snapDelta),\n\t\t\t\t\t\t\topt('timeFormat')\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tprevSnapDelta = snapDelta;\n\t\t\t\t}\n\t\t\t},\n\t\t\tstop: function(ev, ui) {\n\t\t\t\ttrigger('eventResizeStop', this, event, ev, ui);\n\t\t\t\tif (snapDelta) {\n\t\t\t\t\teventResize(this, event, 0, snapMinutes*snapDelta, ev, ui);\n\t\t\t\t}else{\n\t\t\t\t\tshowEvents(event, eventElement);\n\t\t\t\t\t// BUG: if event was really short, need to put title back in span\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\t\n\n}\n\n\n\n/* Agenda Event Segment Utilities\n-----------------------------------------------------------------------------*/\n\n\n// Sets the seg.backwardCoord and seg.forwardCoord on each segment and returns a new\n// list in the order they should be placed into the DOM (an implicit z-index).\nfunction placeSlotSegs(segs) {\n\tvar levels = buildSlotSegLevels(segs);\n\tvar level0 = levels[0];\n\tvar i;\n\n\tcomputeForwardSlotSegs(levels);\n\n\tif (level0) {\n\n\t\tfor (i=0; i<level0.length; i++) {\n\t\t\tcomputeSlotSegPressures(level0[i]);\n\t\t}\n\n\t\tfor (i=0; i<level0.length; i++) {\n\t\t\tcomputeSlotSegCoords(level0[i], 0, 0);\n\t\t}\n\t}\n\n\treturn flattenSlotSegLevels(levels);\n}\n\n\n// Builds an array of segments \"levels\". The first level will be the leftmost tier of segments\n// if the calendar is left-to-right, or the rightmost if the calendar is right-to-left.\nfunction buildSlotSegLevels(segs) {\n\tvar levels = [];\n\tvar i, seg;\n\tvar j;\n\n\tfor (i=0; i<segs.length; i++) {\n\t\tseg = segs[i];\n\n\t\t// go through all the levels and stop on the first level where there are no collisions\n\t\tfor (j=0; j<levels.length; j++) {\n\t\t\tif (!computeSlotSegCollisions(seg, levels[j]).length) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t(levels[j] || (levels[j] = [])).push(seg);\n\t}\n\n\treturn levels;\n}\n\n\n// For every segment, figure out the other segments that are in subsequent\n// levels that also occupy the same vertical space. Accumulate in seg.forwardSegs\nfunction computeForwardSlotSegs(levels) {\n\tvar i, level;\n\tvar j, seg;\n\tvar k;\n\n\tfor (i=0; i<levels.length; i++) {\n\t\tlevel = levels[i];\n\n\t\tfor (j=0; j<level.length; j++) {\n\t\t\tseg = level[j];\n\n\t\t\tseg.forwardSegs = [];\n\t\t\tfor (k=i+1; k<levels.length; k++) {\n\t\t\t\tcomputeSlotSegCollisions(seg, levels[k], seg.forwardSegs);\n\t\t\t}\n\t\t}\n\t}\n}\n\n\n// Figure out which path forward (via seg.forwardSegs) results in the longest path until\n// the furthest edge is reached. The number of segments in this path will be seg.forwardPressure\nfunction computeSlotSegPressures(seg) {\n\tvar forwardSegs = seg.forwardSegs;\n\tvar forwardPressure = 0;\n\tvar i, forwardSeg;\n\n\tif (seg.forwardPressure === undefined) { // not already computed\n\n\t\tfor (i=0; i<forwardSegs.length; i++) {\n\t\t\tforwardSeg = forwardSegs[i];\n\n\t\t\t// figure out the child's maximum forward path\n\t\t\tcomputeSlotSegPressures(forwardSeg);\n\n\t\t\t// either use the existing maximum, or use the child's forward pressure\n\t\t\t// plus one (for the forwardSeg itself)\n\t\t\tforwardPressure = Math.max(\n\t\t\t\tforwardPressure,\n\t\t\t\t1 + forwardSeg.forwardPressure\n\t\t\t);\n\t\t}\n\n\t\tseg.forwardPressure = forwardPressure;\n\t}\n}\n\n\n// Calculate seg.forwardCoord and seg.backwardCoord for the segment, where both values range\n// from 0 to 1. If the calendar is left-to-right, the seg.backwardCoord maps to \"left\" and\n// seg.forwardCoord maps to \"right\" (via percentage). Vice-versa if the calendar is right-to-left.\n//\n// The segment might be part of a \"series\", which means consecutive segments with the same pressure\n// who's width is unknown until an edge has been hit. `seriesBackwardPressure` is the number of\n// segments behind this one in the current series, and `seriesBackwardCoord` is the starting\n// coordinate of the first segment in the series.\nfunction computeSlotSegCoords(seg, seriesBackwardPressure, seriesBackwardCoord) {\n\tvar forwardSegs = seg.forwardSegs;\n\tvar i;\n\n\tif (seg.forwardCoord === undefined) { // not already computed\n\n\t\tif (!forwardSegs.length) {\n\n\t\t\t// if there are no forward segments, this segment should butt up against the edge\n\t\t\tseg.forwardCoord = 1;\n\t\t}\n\t\telse {\n\n\t\t\t// sort highest pressure first\n\t\t\tforwardSegs.sort(compareForwardSlotSegs);\n\n\t\t\t// this segment's forwardCoord will be calculated from the backwardCoord of the\n\t\t\t// highest-pressure forward segment.\n\t\t\tcomputeSlotSegCoords(forwardSegs[0], seriesBackwardPressure + 1, seriesBackwardCoord);\n\t\t\tseg.forwardCoord = forwardSegs[0].backwardCoord;\n\t\t}\n\n\t\t// calculate the backwardCoord from the forwardCoord. consider the series\n\t\tseg.backwardCoord = seg.forwardCoord -\n\t\t\t(seg.forwardCoord - seriesBackwardCoord) / // available width for series\n\t\t\t(seriesBackwardPressure + 1); // # of segments in the series\n\n\t\t// use this segment's coordinates to computed the coordinates of the less-pressurized\n\t\t// forward segments\n\t\tfor (i=0; i<forwardSegs.length; i++) {\n\t\t\tcomputeSlotSegCoords(forwardSegs[i], 0, seg.forwardCoord);\n\t\t}\n\t}\n}\n\n\n// Outputs a flat array of segments, from lowest to highest level\nfunction flattenSlotSegLevels(levels) {\n\tvar segs = [];\n\tvar i, level;\n\tvar j;\n\n\tfor (i=0; i<levels.length; i++) {\n\t\tlevel = levels[i];\n\n\t\tfor (j=0; j<level.length; j++) {\n\t\t\tsegs.push(level[j]);\n\t\t}\n\t}\n\n\treturn segs;\n}\n\n\n// Find all the segments in `otherSegs` that vertically collide with `seg`.\n// Append into an optionally-supplied `results` array and return.\nfunction computeSlotSegCollisions(seg, otherSegs, results) {\n\tresults = results || [];\n\n\tfor (var i=0; i<otherSegs.length; i++) {\n\t\tif (isSlotSegCollision(seg, otherSegs[i])) {\n\t\t\tresults.push(otherSegs[i]);\n\t\t}\n\t}\n\n\treturn results;\n}\n\n\n// Do these segments occupy the same vertical space?\nfunction isSlotSegCollision(seg1, seg2) {\n\treturn seg1.end > seg2.start && seg1.start < seg2.end;\n}\n\n\n// A cmp function for determining which forward segment to rely on more when computing coordinates.\nfunction compareForwardSlotSegs(seg1, seg2) {\n\t// put higher-pressure first\n\treturn seg2.forwardPressure - seg1.forwardPressure ||\n\t\t// put segments that are closer to initial edge first (and favor ones with no coords yet)\n\t\t(seg1.backwardCoord || 0) - (seg2.backwardCoord || 0) ||\n\t\t// do normal sorting...\n\t\tcompareSlotSegs(seg1, seg2);\n}\n\n\n// A cmp function for determining which segment should be closer to the initial edge\n// (the left edge on a left-to-right calendar).\nfunction compareSlotSegs(seg1, seg2) {\n\treturn seg1.start - seg2.start || // earlier start time goes first\n\t\t(seg2.end - seg2.start) - (seg1.end - seg1.start) || // tie? longer-duration goes first\n\t\t(seg1.event.title || '').localeCompare(seg2.event.title); // tie? alphabetically by title\n}\n\n\n;;\n\n\nfunction View(element, calendar, viewName) {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.element = element;\n\tt.calendar = calendar;\n\tt.name = viewName;\n\tt.opt = opt;\n\tt.trigger = trigger;\n\tt.isEventDraggable = isEventDraggable;\n\tt.isEventResizable = isEventResizable;\n\tt.setEventData = setEventData;\n\tt.clearEventData = clearEventData;\n\tt.eventEnd = eventEnd;\n\tt.reportEventElement = reportEventElement;\n\tt.triggerEventDestroy = triggerEventDestroy;\n\tt.eventElementHandlers = eventElementHandlers;\n\tt.showEvents = showEvents;\n\tt.hideEvents = hideEvents;\n\tt.eventDrop = eventDrop;\n\tt.eventResize = eventResize;\n\t// t.title\n\t// t.start, t.end\n\t// t.visStart, t.visEnd\n\t\n\t\n\t// imports\n\tvar defaultEventEnd = t.defaultEventEnd;\n\tvar normalizeEvent = calendar.normalizeEvent; // in EventManager\n\tvar reportEventChange = calendar.reportEventChange;\n\t\n\t\n\t// locals\n\tvar eventsByID = {}; // eventID mapped to array of events (there can be multiple b/c of repeating events)\n\tvar eventElementsByID = {}; // eventID mapped to array of jQuery elements\n\tvar eventElementCouples = []; // array of objects, { event, element } // TODO: unify with segment system\n\tvar options = calendar.options;\n\t\n\t\n\t\n\tfunction opt(name, viewNameOverride) {\n\t\tvar v = options[name];\n\t\tif ($.isPlainObject(v)) {\n\t\t\treturn smartProperty(v, viewNameOverride || viewName);\n\t\t}\n\t\treturn v;\n\t}\n\n\t\n\tfunction trigger(name, thisObj) {\n\t\treturn calendar.trigger.apply(\n\t\t\tcalendar,\n\t\t\t[name, thisObj || t].concat(Array.prototype.slice.call(arguments, 2), [t])\n\t\t);\n\t}\n\t\n\n\n\t/* Event Editable Boolean Calculations\n\t------------------------------------------------------------------------------*/\n\n\t\n\tfunction isEventDraggable(event) {\n\t\tvar source = event.source || {};\n\t\treturn firstDefined(\n\t\t\t\tevent.startEditable,\n\t\t\t\tsource.startEditable,\n\t\t\t\topt('eventStartEditable'),\n\t\t\t\tevent.editable,\n\t\t\t\tsource.editable,\n\t\t\t\topt('editable')\n\t\t\t)\n\t\t\t&& !opt('disableDragging'); // deprecated\n\t}\n\t\n\t\n\tfunction isEventResizable(event) { // but also need to make sure the seg.isEnd == true\n\t\tvar source = event.source || {};\n\t\treturn firstDefined(\n\t\t\t\tevent.durationEditable,\n\t\t\t\tsource.durationEditable,\n\t\t\t\topt('eventDurationEditable'),\n\t\t\t\tevent.editable,\n\t\t\t\tsource.editable,\n\t\t\t\topt('editable')\n\t\t\t)\n\t\t\t&& !opt('disableResizing'); // deprecated\n\t}\n\t\n\t\n\t\n\t/* Event Data\n\t------------------------------------------------------------------------------*/\n\t\n\t\n\tfunction setEventData(events) { // events are already normalized at this point\n\t\teventsByID = {};\n\t\tvar i, len=events.length, event;\n\t\tfor (i=0; i<len; i++) {\n\t\t\tevent = events[i];\n\t\t\tif (eventsByID[event._id]) {\n\t\t\t\teventsByID[event._id].push(event);\n\t\t\t}else{\n\t\t\t\teventsByID[event._id] = [event];\n\t\t\t}\n\t\t}\n\t}\n\n\n\tfunction clearEventData() {\n\t\teventsByID = {};\n\t\teventElementsByID = {};\n\t\teventElementCouples = [];\n\t}\n\t\n\t\n\t// returns a Date object for an event's end\n\tfunction eventEnd(event) {\n\t\treturn event.end ? cloneDate(event.end) : defaultEventEnd(event);\n\t}\n\t\n\t\n\t\n\t/* Event Elements\n\t------------------------------------------------------------------------------*/\n\t\n\t\n\t// report when view creates an element for an event\n\tfunction reportEventElement(event, element) {\n\t\teventElementCouples.push({ event: event, element: element });\n\t\tif (eventElementsByID[event._id]) {\n\t\t\teventElementsByID[event._id].push(element);\n\t\t}else{\n\t\t\teventElementsByID[event._id] = [element];\n\t\t}\n\t}\n\n\n\tfunction triggerEventDestroy() {\n\t\t$.each(eventElementCouples, function(i, couple) {\n\t\t\tt.trigger('eventDestroy', couple.event, couple.event, couple.element);\n\t\t});\n\t}\n\t\n\t\n\t// attaches eventClick, eventMouseover, eventMouseout\n\tfunction eventElementHandlers(event, eventElement) {\n\t\teventElement\n\t\t\t.click(function(ev) {\n\t\t\t\tif (!eventElement.hasClass('ui-draggable-dragging') &&\n\t\t\t\t\t!eventElement.hasClass('ui-resizable-resizing')) {\n\t\t\t\t\t\treturn trigger('eventClick', this, event, ev);\n\t\t\t\t\t}\n\t\t\t})\n\t\t\t.hover(\n\t\t\t\tfunction(ev) {\n\t\t\t\t\ttrigger('eventMouseover', this, event, ev);\n\t\t\t\t},\n\t\t\t\tfunction(ev) {\n\t\t\t\t\ttrigger('eventMouseout', this, event, ev);\n\t\t\t\t}\n\t\t\t);\n\t\t// TODO: don't fire eventMouseover/eventMouseout *while* dragging is occuring (on subject element)\n\t\t// TODO: same for resizing\n\t}\n\t\n\t\n\tfunction showEvents(event, exceptElement) {\n\t\teachEventElement(event, exceptElement, 'show');\n\t}\n\t\n\t\n\tfunction hideEvents(event, exceptElement) {\n\t\teachEventElement(event, exceptElement, 'hide');\n\t}\n\t\n\t\n\tfunction eachEventElement(event, exceptElement, funcName) {\n\t\t// NOTE: there may be multiple events per ID (repeating events)\n\t\t// and multiple segments per event\n\t\tvar elements = eventElementsByID[event._id],\n\t\t\ti, len = elements.length;\n\t\tfor (i=0; i<len; i++) {\n\t\t\tif (!exceptElement || elements[i][0] != exceptElement[0]) {\n\t\t\t\telements[i][funcName]();\n\t\t\t}\n\t\t}\n\t}\n\t\n\t\n\t\n\t/* Event Modification Reporting\n\t---------------------------------------------------------------------------------*/\n\t\n\t\n\tfunction eventDrop(e, event, dayDelta, minuteDelta, allDay, ev, ui) {\n\t\tvar oldAllDay = event.allDay;\n\t\tvar eventId = event._id;\n\t\tmoveEvents(eventsByID[eventId], dayDelta, minuteDelta, allDay);\n\t\ttrigger(\n\t\t\t'eventDrop',\n\t\t\te,\n\t\t\tevent,\n\t\t\tdayDelta,\n\t\t\tminuteDelta,\n\t\t\tallDay,\n\t\t\tfunction() {\n\t\t\t\t// TODO: investigate cases where this inverse technique might not work\n\t\t\t\tmoveEvents(eventsByID[eventId], -dayDelta, -minuteDelta, oldAllDay);\n\t\t\t\treportEventChange(eventId);\n\t\t\t},\n\t\t\tev,\n\t\t\tui\n\t\t);\n\t\treportEventChange(eventId);\n\t}\n\t\n\t\n\tfunction eventResize(e, event, dayDelta, minuteDelta, ev, ui) {\n\t\tvar eventId = event._id;\n\t\telongateEvents(eventsByID[eventId], dayDelta, minuteDelta);\n\t\ttrigger(\n\t\t\t'eventResize',\n\t\t\te,\n\t\t\tevent,\n\t\t\tdayDelta,\n\t\t\tminuteDelta,\n\t\t\tfunction() {\n\t\t\t\t// TODO: investigate cases where this inverse technique might not work\n\t\t\t\telongateEvents(eventsByID[eventId], -dayDelta, -minuteDelta);\n\t\t\t\treportEventChange(eventId);\n\t\t\t},\n\t\t\tev,\n\t\t\tui\n\t\t);\n\t\treportEventChange(eventId);\n\t}\n\t\n\t\n\t\n\t/* Event Modification Math\n\t---------------------------------------------------------------------------------*/\n\t\n\t\n\tfunction moveEvents(events, dayDelta, minuteDelta, allDay) {\n\t\tminuteDelta = minuteDelta || 0;\n\t\tfor (var e, len=events.length, i=0; i<len; i++) {\n\t\t\te = events[i];\n\t\t\tif (allDay !== undefined) {\n\t\t\t\te.allDay = allDay;\n\t\t\t}\n\t\t\taddMinutes(addDays(e.start, dayDelta, true), minuteDelta);\n\t\t\tif (e.end) {\n\t\t\t\te.end = addMinutes(addDays(e.end, dayDelta, true), minuteDelta);\n\t\t\t}\n\t\t\tnormalizeEvent(e, options);\n\t\t}\n\t}\n\t\n\t\n\tfunction elongateEvents(events, dayDelta, minuteDelta) {\n\t\tminuteDelta = minuteDelta || 0;\n\t\tfor (var e, len=events.length, i=0; i<len; i++) {\n\t\t\te = events[i];\n\t\t\te.end = addMinutes(addDays(eventEnd(e), dayDelta, true), minuteDelta);\n\t\t\tnormalizeEvent(e, options);\n\t\t}\n\t}\n\n\n\n\t// ====================================================================================================\n\t// Utilities for day \"cells\"\n\t// ====================================================================================================\n\t// The \"basic\" views are completely made up of day cells.\n\t// The \"agenda\" views have day cells at the top \"all day\" slot.\n\t// This was the obvious common place to put these utilities, but they should be abstracted out into\n\t// a more meaningful class (like DayEventRenderer).\n\t// ====================================================================================================\n\n\n\t// For determining how a given \"cell\" translates into a \"date\":\n\t//\n\t// 1. Convert the \"cell\" (row and column) into a \"cell offset\" (the # of the cell, cronologically from the first).\n\t//    Keep in mind that column indices are inverted with isRTL. This is taken into account.\n\t//\n\t// 2. Convert the \"cell offset\" to a \"day offset\" (the # of days since the first visible day in the view).\n\t//\n\t// 3. Convert the \"day offset\" into a \"date\" (a JavaScript Date object).\n\t//\n\t// The reverse transformation happens when transforming a date into a cell.\n\n\n\t// exports\n\tt.isHiddenDay = isHiddenDay;\n\tt.skipHiddenDays = skipHiddenDays;\n\tt.getCellsPerWeek = getCellsPerWeek;\n\tt.dateToCell = dateToCell;\n\tt.dateToDayOffset = dateToDayOffset;\n\tt.dayOffsetToCellOffset = dayOffsetToCellOffset;\n\tt.cellOffsetToCell = cellOffsetToCell;\n\tt.cellToDate = cellToDate;\n\tt.cellToCellOffset = cellToCellOffset;\n\tt.cellOffsetToDayOffset = cellOffsetToDayOffset;\n\tt.dayOffsetToDate = dayOffsetToDate;\n\tt.rangeToSegments = rangeToSegments;\n\n\n\t// internals\n\tvar hiddenDays = opt('hiddenDays') || []; // array of day-of-week indices that are hidden\n\tvar isHiddenDayHash = []; // is the day-of-week hidden? (hash with day-of-week-index -> bool)\n\tvar cellsPerWeek;\n\tvar dayToCellMap = []; // hash from dayIndex -> cellIndex, for one week\n\tvar cellToDayMap = []; // hash from cellIndex -> dayIndex, for one week\n\tvar isRTL = opt('isRTL');\n\n\n\t// initialize important internal variables\n\t(function() {\n\n\t\tif (opt('weekends') === false) {\n\t\t\thiddenDays.push(0, 6); // 0=sunday, 6=saturday\n\t\t}\n\n\t\t// Loop through a hypothetical week and determine which\n\t\t// days-of-week are hidden. Record in both hashes (one is the reverse of the other).\n\t\tfor (var dayIndex=0, cellIndex=0; dayIndex<7; dayIndex++) {\n\t\t\tdayToCellMap[dayIndex] = cellIndex;\n\t\t\tisHiddenDayHash[dayIndex] = $.inArray(dayIndex, hiddenDays) != -1;\n\t\t\tif (!isHiddenDayHash[dayIndex]) {\n\t\t\t\tcellToDayMap[cellIndex] = dayIndex;\n\t\t\t\tcellIndex++;\n\t\t\t}\n\t\t}\n\n\t\tcellsPerWeek = cellIndex;\n\t\tif (!cellsPerWeek) {\n\t\t\tthrow 'invalid hiddenDays'; // all days were hidden? bad.\n\t\t}\n\n\t})();\n\n\n\t// Is the current day hidden?\n\t// `day` is a day-of-week index (0-6), or a Date object\n\tfunction isHiddenDay(day) {\n\t\tif (typeof day == 'object') {\n\t\t\tday = day.getDay();\n\t\t}\n\t\treturn isHiddenDayHash[day];\n\t}\n\n\n\tfunction getCellsPerWeek() {\n\t\treturn cellsPerWeek;\n\t}\n\n\n\t// Keep incrementing the current day until it is no longer a hidden day.\n\t// If the initial value of `date` is not a hidden day, don't do anything.\n\t// Pass `isExclusive` as `true` if you are dealing with an end date.\n\t// `inc` defaults to `1` (increment one day forward each time)\n\tfunction skipHiddenDays(date, inc, isExclusive) {\n\t\tinc = inc || 1;\n\t\twhile (\n\t\t\tisHiddenDayHash[ ( date.getDay() + (isExclusive ? inc : 0) + 7 ) % 7 ]\n\t\t) {\n\t\t\taddDays(date, inc);\n\t\t}\n\t}\n\n\n\t//\n\t// TRANSFORMATIONS: cell -> cell offset -> day offset -> date\n\t//\n\n\t// cell -> date (combines all transformations)\n\t// Possible arguments:\n\t// - row, col\n\t// - { row:#, col: # }\n\tfunction cellToDate() {\n\t\tvar cellOffset = cellToCellOffset.apply(null, arguments);\n\t\tvar dayOffset = cellOffsetToDayOffset(cellOffset);\n\t\tvar date = dayOffsetToDate(dayOffset);\n\t\treturn date;\n\t}\n\n\t// cell -> cell offset\n\t// Possible arguments:\n\t// - row, col\n\t// - { row:#, col:# }\n\tfunction cellToCellOffset(row, col) {\n\t\tvar colCnt = t.getColCnt();\n\n\t\t// rtl variables. wish we could pre-populate these. but where?\n\t\tvar dis = isRTL ? -1 : 1;\n\t\tvar dit = isRTL ? colCnt - 1 : 0;\n\n\t\tif (typeof row == 'object') {\n\t\t\tcol = row.col;\n\t\t\trow = row.row;\n\t\t}\n\t\tvar cellOffset = row * colCnt + (col * dis + dit); // column, adjusted for RTL (dis & dit)\n\n\t\treturn cellOffset;\n\t}\n\n\t// cell offset -> day offset\n\tfunction cellOffsetToDayOffset(cellOffset) {\n\t\tvar day0 = t.visStart.getDay(); // first date's day of week\n\t\tcellOffset += dayToCellMap[day0]; // normlize cellOffset to beginning-of-week\n\t\treturn Math.floor(cellOffset / cellsPerWeek) * 7 // # of days from full weeks\n\t\t\t+ cellToDayMap[ // # of days from partial last week\n\t\t\t\t(cellOffset % cellsPerWeek + cellsPerWeek) % cellsPerWeek // crazy math to handle negative cellOffsets\n\t\t\t]\n\t\t\t- day0; // adjustment for beginning-of-week normalization\n\t}\n\n\t// day offset -> date (JavaScript Date object)\n\tfunction dayOffsetToDate(dayOffset) {\n\t\tvar date = cloneDate(t.visStart);\n\t\taddDays(date, dayOffset);\n\t\treturn date;\n\t}\n\n\n\t//\n\t// TRANSFORMATIONS: date -> day offset -> cell offset -> cell\n\t//\n\n\t// date -> cell (combines all transformations)\n\tfunction dateToCell(date) {\n\t\tvar dayOffset = dateToDayOffset(date);\n\t\tvar cellOffset = dayOffsetToCellOffset(dayOffset);\n\t\tvar cell = cellOffsetToCell(cellOffset);\n\t\treturn cell;\n\t}\n\n\t// date -> day offset\n\tfunction dateToDayOffset(date) {\n\t\treturn dayDiff(date, t.visStart);\n\t}\n\n\t// day offset -> cell offset\n\tfunction dayOffsetToCellOffset(dayOffset) {\n\t\tvar day0 = t.visStart.getDay(); // first date's day of week\n\t\tdayOffset += day0; // normalize dayOffset to beginning-of-week\n\t\treturn Math.floor(dayOffset / 7) * cellsPerWeek // # of cells from full weeks\n\t\t\t+ dayToCellMap[ // # of cells from partial last week\n\t\t\t\t(dayOffset % 7 + 7) % 7 // crazy math to handle negative dayOffsets\n\t\t\t]\n\t\t\t- dayToCellMap[day0]; // adjustment for beginning-of-week normalization\n\t}\n\n\t// cell offset -> cell (object with row & col keys)\n\tfunction cellOffsetToCell(cellOffset) {\n\t\tvar colCnt = t.getColCnt();\n\n\t\t// rtl variables. wish we could pre-populate these. but where?\n\t\tvar dis = isRTL ? -1 : 1;\n\t\tvar dit = isRTL ? colCnt - 1 : 0;\n\n\t\tvar row = Math.floor(cellOffset / colCnt);\n\t\tvar col = ((cellOffset % colCnt + colCnt) % colCnt) * dis + dit; // column, adjusted for RTL (dis & dit)\n\t\treturn {\n\t\t\trow: row,\n\t\t\tcol: col\n\t\t};\n\t}\n\n\n\t//\n\t// Converts a date range into an array of segment objects.\n\t// \"Segments\" are horizontal stretches of time, sliced up by row.\n\t// A segment object has the following properties:\n\t// - row\n\t// - cols\n\t// - isStart\n\t// - isEnd\n\t//\n\tfunction rangeToSegments(startDate, endDate) {\n\t\tvar rowCnt = t.getRowCnt();\n\t\tvar colCnt = t.getColCnt();\n\t\tvar segments = []; // array of segments to return\n\n\t\t// day offset for given date range\n\t\tvar rangeDayOffsetStart = dateToDayOffset(startDate);\n\t\tvar rangeDayOffsetEnd = dateToDayOffset(endDate); // exclusive\n\n\t\t// first and last cell offset for the given date range\n\t\t// \"last\" implies inclusivity\n\t\tvar rangeCellOffsetFirst = dayOffsetToCellOffset(rangeDayOffsetStart);\n\t\tvar rangeCellOffsetLast = dayOffsetToCellOffset(rangeDayOffsetEnd) - 1;\n\n\t\t// loop through all the rows in the view\n\t\tfor (var row=0; row<rowCnt; row++) {\n\n\t\t\t// first and last cell offset for the row\n\t\t\tvar rowCellOffsetFirst = row * colCnt;\n\t\t\tvar rowCellOffsetLast = rowCellOffsetFirst + colCnt - 1;\n\n\t\t\t// get the segment's cell offsets by constraining the range's cell offsets to the bounds of the row\n\t\t\tvar segmentCellOffsetFirst = Math.max(rangeCellOffsetFirst, rowCellOffsetFirst);\n\t\t\tvar segmentCellOffsetLast = Math.min(rangeCellOffsetLast, rowCellOffsetLast);\n\n\t\t\t// make sure segment's offsets are valid and in view\n\t\t\tif (segmentCellOffsetFirst <= segmentCellOffsetLast) {\n\n\t\t\t\t// translate to cells\n\t\t\t\tvar segmentCellFirst = cellOffsetToCell(segmentCellOffsetFirst);\n\t\t\t\tvar segmentCellLast = cellOffsetToCell(segmentCellOffsetLast);\n\n\t\t\t\t// view might be RTL, so order by leftmost column\n\t\t\t\tvar cols = [ segmentCellFirst.col, segmentCellLast.col ].sort();\n\n\t\t\t\t// Determine if segment's first/last cell is the beginning/end of the date range.\n\t\t\t\t// We need to compare \"day offset\" because \"cell offsets\" are often ambiguous and\n\t\t\t\t// can translate to multiple days, and an edge case reveals itself when we the\n\t\t\t\t// range's first cell is hidden (we don't want isStart to be true).\n\t\t\t\tvar isStart = cellOffsetToDayOffset(segmentCellOffsetFirst) == rangeDayOffsetStart;\n\t\t\t\tvar isEnd = cellOffsetToDayOffset(segmentCellOffsetLast) + 1 == rangeDayOffsetEnd; // +1 for comparing exclusively\n\n\t\t\t\tsegments.push({\n\t\t\t\t\trow: row,\n\t\t\t\t\tleftCol: cols[0],\n\t\t\t\t\trightCol: cols[1],\n\t\t\t\t\tisStart: isStart,\n\t\t\t\t\tisEnd: isEnd\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn segments;\n\t}\n\t\n\n}\n\n;;\n\nfunction DayEventRenderer() {\n\tvar t = this;\n\n\t\n\t// exports\n\tt.renderDayEvents = renderDayEvents;\n\tt.draggableDayEvent = draggableDayEvent; // made public so that subclasses can override\n\tt.resizableDayEvent = resizableDayEvent; // \"\n\t\n\t\n\t// imports\n\tvar opt = t.opt;\n\tvar trigger = t.trigger;\n\tvar isEventDraggable = t.isEventDraggable;\n\tvar isEventResizable = t.isEventResizable;\n\tvar eventEnd = t.eventEnd;\n\tvar reportEventElement = t.reportEventElement;\n\tvar eventElementHandlers = t.eventElementHandlers;\n\tvar showEvents = t.showEvents;\n\tvar hideEvents = t.hideEvents;\n\tvar eventDrop = t.eventDrop;\n\tvar eventResize = t.eventResize;\n\tvar getRowCnt = t.getRowCnt;\n\tvar getColCnt = t.getColCnt;\n\tvar getColWidth = t.getColWidth;\n\tvar allDayRow = t.allDayRow; // TODO: rename\n\tvar colLeft = t.colLeft;\n\tvar colRight = t.colRight;\n\tvar colContentLeft = t.colContentLeft;\n\tvar colContentRight = t.colContentRight;\n\tvar dateToCell = t.dateToCell;\n\tvar getDaySegmentContainer = t.getDaySegmentContainer;\n\tvar formatDates = t.calendar.formatDates;\n\tvar renderDayOverlay = t.renderDayOverlay;\n\tvar clearOverlays = t.clearOverlays;\n\tvar clearSelection = t.clearSelection;\n\tvar getHoverListener = t.getHoverListener;\n\tvar rangeToSegments = t.rangeToSegments;\n\tvar cellToDate = t.cellToDate;\n\tvar cellToCellOffset = t.cellToCellOffset;\n\tvar cellOffsetToDayOffset = t.cellOffsetToDayOffset;\n\tvar dateToDayOffset = t.dateToDayOffset;\n\tvar dayOffsetToCellOffset = t.dayOffsetToCellOffset;\n\n\n\t// Render `events` onto the calendar, attach mouse event handlers, and call the `eventAfterRender` callback for each.\n\t// Mouse event will be lazily applied, except if the event has an ID of `modifiedEventId`.\n\t// Can only be called when the event container is empty (because it wipes out all innerHTML).\n\tfunction renderDayEvents(events, modifiedEventId) {\n\n\t\t// do the actual rendering. Receive the intermediate \"segment\" data structures.\n\t\tvar segments = _renderDayEvents(\n\t\t\tevents,\n\t\t\tfalse, // don't append event elements\n\t\t\ttrue // set the heights of the rows\n\t\t);\n\n\t\t// report the elements to the View, for general drag/resize utilities\n\t\tsegmentElementEach(segments, function(segment, element) {\n\t\t\treportEventElement(segment.event, element);\n\t\t});\n\n\t\t// attach mouse handlers\n\t\tattachHandlers(segments, modifiedEventId);\n\n\t\t// call `eventAfterRender` callback for each event\n\t\tsegmentElementEach(segments, function(segment, element) {\n\t\t\ttrigger('eventAfterRender', segment.event, segment.event, element);\n\t\t});\n\t}\n\n\n\t// Render an event on the calendar, but don't report them anywhere, and don't attach mouse handlers.\n\t// Append this event element to the event container, which might already be populated with events.\n\t// If an event's segment will have row equal to `adjustRow`, then explicitly set its top coordinate to `adjustTop`.\n\t// This hack is used to maintain continuity when user is manually resizing an event.\n\t// Returns an array of DOM elements for the event.\n\tfunction renderTempDayEvent(event, adjustRow, adjustTop) {\n\n\t\t// actually render the event. `true` for appending element to container.\n\t\t// Recieve the intermediate \"segment\" data structures.\n\t\tvar segments = _renderDayEvents(\n\t\t\t[ event ],\n\t\t\ttrue, // append event elements\n\t\t\tfalse // don't set the heights of the rows\n\t\t);\n\n\t\tvar elements = [];\n\n\t\t// Adjust certain elements' top coordinates\n\t\tsegmentElementEach(segments, function(segment, element) {\n\t\t\tif (segment.row === adjustRow) {\n\t\t\t\telement.css('top', adjustTop);\n\t\t\t}\n\t\t\telements.push(element[0]); // accumulate DOM nodes\n\t\t});\n\n\t\treturn elements;\n\t}\n\n\n\t// Render events onto the calendar. Only responsible for the VISUAL aspect.\n\t// Not responsible for attaching handlers or calling callbacks.\n\t// Set `doAppend` to `true` for rendering elements without clearing the existing container.\n\t// Set `doRowHeights` to allow setting the height of each row, to compensate for vertical event overflow.\n\tfunction _renderDayEvents(events, doAppend, doRowHeights) {\n\n\t\t// where the DOM nodes will eventually end up\n\t\tvar finalContainer = getDaySegmentContainer();\n\n\t\t// the container where the initial HTML will be rendered.\n\t\t// If `doAppend`==true, uses a temporary container.\n\t\tvar renderContainer = doAppend ? $(\"<div/>\") : finalContainer;\n\n\t\tvar segments = buildSegments(events);\n\t\tvar html;\n\t\tvar elements;\n\n\t\t// calculate the desired `left` and `width` properties on each segment object\n\t\tcalculateHorizontals(segments);\n\n\t\t// build the HTML string. relies on `left` property\n\t\thtml = buildHTML(segments);\n\n\t\t// render the HTML. innerHTML is considerably faster than jQuery's .html()\n\t\trenderContainer[0].innerHTML = html;\n\n\t\t// retrieve the individual elements\n\t\telements = renderContainer.children();\n\n\t\t// if we were appending, and thus using a temporary container,\n\t\t// re-attach elements to the real container.\n\t\tif (doAppend) {\n\t\t\tfinalContainer.append(elements);\n\t\t}\n\n\t\t// assigns each element to `segment.event`, after filtering them through user callbacks\n\t\tresolveElements(segments, elements);\n\n\t\t// Calculate the left and right padding+margin for each element.\n\t\t// We need this for setting each element's desired outer width, because of the W3C box model.\n\t\t// It's important we do this in a separate pass from acually setting the width on the DOM elements\n\t\t// because alternating reading/writing dimensions causes reflow for every iteration.\n\t\tsegmentElementEach(segments, function(segment, element) {\n\t\t\tsegment.hsides = hsides(element, true); // include margins = `true`\n\t\t});\n\n\t\t// Set the width of each element\n\t\tsegmentElementEach(segments, function(segment, element) {\n\t\t\telement.width(\n\t\t\t\tMath.max(0, segment.outerWidth - segment.hsides)\n\t\t\t);\n\t\t});\n\n\t\t// Grab each element's outerHeight (setVerticals uses this).\n\t\t// To get an accurate reading, it's important to have each element's width explicitly set already.\n\t\tsegmentElementEach(segments, function(segment, element) {\n\t\t\tsegment.outerHeight = element.outerHeight(true); // include margins = `true`\n\t\t});\n\n\t\t// Set the top coordinate on each element (requires segment.outerHeight)\n\t\tsetVerticals(segments, doRowHeights);\n\n\t\treturn segments;\n\t}\n\n\n\t// Generate an array of \"segments\" for all events.\n\tfunction buildSegments(events) {\n\t\tvar segments = [];\n\t\tfor (var i=0; i<events.length; i++) {\n\t\t\tvar eventSegments = buildSegmentsForEvent(events[i]);\n\t\t\tsegments.push.apply(segments, eventSegments); // append an array to an array\n\t\t}\n\t\treturn segments;\n\t}\n\n\n\t// Generate an array of segments for a single event.\n\t// A \"segment\" is the same data structure that View.rangeToSegments produces,\n\t// with the addition of the `event` property being set to reference the original event.\n\tfunction buildSegmentsForEvent(event) {\n\t\tvar startDate = event.start;\n\t\tvar endDate = exclEndDay(event);\n\t\tvar segments = rangeToSegments(startDate, endDate);\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tsegments[i].event = event;\n\t\t}\n\t\treturn segments;\n\t}\n\n\n\t// Sets the `left` and `outerWidth` property of each segment.\n\t// These values are the desired dimensions for the eventual DOM elements.\n\tfunction calculateHorizontals(segments) {\n\t\tvar isRTL = opt('isRTL');\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\n\t\t\t// Determine functions used for calulating the elements left/right coordinates,\n\t\t\t// depending on whether the view is RTL or not.\n\t\t\t// NOTE:\n\t\t\t// colLeft/colRight returns the coordinate butting up the edge of the cell.\n\t\t\t// colContentLeft/colContentRight is indented a little bit from the edge.\n\t\t\tvar leftFunc = (isRTL ? segment.isEnd : segment.isStart) ? colContentLeft : colLeft;\n\t\t\tvar rightFunc = (isRTL ? segment.isStart : segment.isEnd) ? colContentRight : colRight;\n\n\t\t\tvar left = leftFunc(segment.leftCol);\n\t\t\tvar right = rightFunc(segment.rightCol);\n\t\t\tsegment.left = left;\n\t\t\tsegment.outerWidth = right - left;\n\t\t}\n\t}\n\n\n\t// Build a concatenated HTML string for an array of segments\n\tfunction buildHTML(segments) {\n\t\tvar html = '';\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\thtml += buildHTMLForSegment(segments[i]);\n\t\t}\n\t\treturn html;\n\t}\n\n\n\t// Build an HTML string for a single segment.\n\t// Relies on the following properties:\n\t// - `segment.event` (from `buildSegmentsForEvent`)\n\t// - `segment.left` (from `calculateHorizontals`)\n\tfunction buildHTMLForSegment(segment) {\n\t\tvar html = '';\n\t\tvar isRTL = opt('isRTL');\n\t\tvar event = segment.event;\n\t\tvar url = event.url;\n\n\t\t// generate the list of CSS classNames\n\t\tvar classNames = [ 'fc-event', 'fc-event-hori' ];\n\t\tif (isEventDraggable(event)) {\n\t\t\tclassNames.push('fc-event-draggable');\n\t\t}\n\t\tif (segment.isStart) {\n\t\t\tclassNames.push('fc-event-start');\n\t\t}\n\t\tif (segment.isEnd) {\n\t\t\tclassNames.push('fc-event-end');\n\t\t}\n\t\t// use the event's configured classNames\n\t\t// guaranteed to be an array via `normalizeEvent`\n\t\tclassNames = classNames.concat(event.className);\n\t\tif (event.source) {\n\t\t\t// use the event's source's classNames, if specified\n\t\t\tclassNames = classNames.concat(event.source.className || []);\n\t\t}\n\n\t\t// generate a semicolon delimited CSS string for any of the \"skin\" properties\n\t\t// of the event object (`backgroundColor`, `borderColor` and such)\n\t\tvar skinCss = getSkinCss(event, opt);\n\n\t\tif (url) {\n\t\t\thtml += \"<a href='\" + htmlEscape(url) + \"'\";\n\t\t}else{\n\t\t\thtml += \"<div\";\n\t\t}\n\t\thtml +=\n\t\t\t\" class='\" + classNames.join(' ') + \"'\" +\n\t\t\t\" style=\" +\n\t\t\t\t\"'\" +\n\t\t\t\t\"position:absolute;\" +\n\t\t\t\t\"left:\" + segment.left + \"px;\" +\n\t\t\t\tskinCss +\n\t\t\t\t\"'\" +\n\t\t\t\">\" +\n\t\t\t\"<div class='fc-event-inner'>\";\n\t\tif (!event.allDay && segment.isStart) {\n\t\t\thtml +=\n\t\t\t\t\"<span class='fc-event-time'>\" +\n\t\t\t\thtmlEscape(\n\t\t\t\t\tformatDates(event.start, event.end, opt('timeFormat'))\n\t\t\t\t) +\n\t\t\t\t\"</span>\";\n\t\t}\n\t\thtml +=\n\t\t\t\"<span class='fc-event-title'>\" +\n\t\t\thtmlEscape(event.title || '') +\n\t\t\t\"</span>\" +\n\t\t\t\"</div>\";\n\t\tif (segment.isEnd && isEventResizable(event)) {\n\t\t\thtml +=\n\t\t\t\t\"<div class='ui-resizable-handle ui-resizable-\" + (isRTL ? 'w' : 'e') + \"'>\" +\n\t\t\t\t\"&nbsp;&nbsp;&nbsp;\" + // makes hit area a lot better for IE6/7\n\t\t\t\t\"</div>\";\n\t\t}\n\t\thtml += \"</\" + (url ? \"a\" : \"div\") + \">\";\n\n\t\t// TODO:\n\t\t// When these elements are initially rendered, they will be briefly visibile on the screen,\n\t\t// even though their widths/heights are not set.\n\t\t// SOLUTION: initially set them as visibility:hidden ?\n\n\t\treturn html;\n\t}\n\n\n\t// Associate each segment (an object) with an element (a jQuery object),\n\t// by setting each `segment.element`.\n\t// Run each element through the `eventRender` filter, which allows developers to\n\t// modify an existing element, supply a new one, or cancel rendering.\n\tfunction resolveElements(segments, elements) {\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\t\t\tvar event = segment.event;\n\t\t\tvar element = elements.eq(i);\n\n\t\t\t// call the trigger with the original element\n\t\t\tvar triggerRes = trigger('eventRender', event, event, element);\n\n\t\t\tif (triggerRes === false) {\n\t\t\t\t// if `false`, remove the event from the DOM and don't assign it to `segment.event`\n\t\t\t\telement.remove();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (triggerRes && triggerRes !== true) {\n\t\t\t\t\t// the trigger returned a new element, but not `true` (which means keep the existing element)\n\n\t\t\t\t\t// re-assign the important CSS dimension properties that were already assigned in `buildHTMLForSegment`\n\t\t\t\t\ttriggerRes = $(triggerRes)\n\t\t\t\t\t\t.css({\n\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\tleft: segment.left\n\t\t\t\t\t\t});\n\n\t\t\t\t\telement.replaceWith(triggerRes);\n\t\t\t\t\telement = triggerRes;\n\t\t\t\t}\n\n\t\t\t\tsegment.element = element;\n\t\t\t}\n\t\t}\n\t}\n\n\n\n\t/* Top-coordinate Methods\n\t-------------------------------------------------------------------------------------------------*/\n\n\n\t// Sets the \"top\" CSS property for each element.\n\t// If `doRowHeights` is `true`, also sets each row's first cell to an explicit height,\n\t// so that if elements vertically overflow, the cell expands vertically to compensate.\n\tfunction setVerticals(segments, doRowHeights) {\n\t\tvar rowContentHeights = calculateVerticals(segments); // also sets segment.top\n\t\tvar rowContentElements = getRowContentElements(); // returns 1 inner div per row\n\t\tvar rowContentTops = [];\n\n\t\t// Set each row's height by setting height of first inner div\n\t\tif (doRowHeights) {\n\t\t\tfor (var i=0; i<rowContentElements.length; i++) {\n\t\t\t\trowContentElements[i].height(rowContentHeights[i]);\n\t\t\t}\n\t\t}\n\n\t\t// Get each row's top, relative to the views's origin.\n\t\t// Important to do this after setting each row's height.\n\t\tfor (var i=0; i<rowContentElements.length; i++) {\n\t\t\trowContentTops.push(\n\t\t\t\trowContentElements[i].position().top\n\t\t\t);\n\t\t}\n\n\t\t// Set each segment element's CSS \"top\" property.\n\t\t// Each segment object has a \"top\" property, which is relative to the row's top, but...\n\t\tsegmentElementEach(segments, function(segment, element) {\n\t\t\telement.css(\n\t\t\t\t'top',\n\t\t\t\trowContentTops[segment.row] + segment.top // ...now, relative to views's origin\n\t\t\t);\n\t\t});\n\t}\n\n\n\t// Calculate the \"top\" coordinate for each segment, relative to the \"top\" of the row.\n\t// Also, return an array that contains the \"content\" height for each row\n\t// (the height displaced by the vertically stacked events in the row).\n\t// Requires segments to have their `outerHeight` property already set.\n\tfunction calculateVerticals(segments) {\n\t\tvar rowCnt = getRowCnt();\n\t\tvar colCnt = getColCnt();\n\t\tvar rowContentHeights = []; // content height for each row\n\t\tvar segmentRows = buildSegmentRows(segments); // an array of segment arrays, one for each row\n\n\t\tfor (var rowI=0; rowI<rowCnt; rowI++) {\n\t\t\tvar segmentRow = segmentRows[rowI];\n\n\t\t\t// an array of running total heights for each column.\n\t\t\t// initialize with all zeros.\n\t\t\tvar colHeights = [];\n\t\t\tfor (var colI=0; colI<colCnt; colI++) {\n\t\t\t\tcolHeights.push(0);\n\t\t\t}\n\n\t\t\t// loop through every segment\n\t\t\tfor (var segmentI=0; segmentI<segmentRow.length; segmentI++) {\n\t\t\t\tvar segment = segmentRow[segmentI];\n\n\t\t\t\t// find the segment's top coordinate by looking at the max height\n\t\t\t\t// of all the columns the segment will be in.\n\t\t\t\tsegment.top = arrayMax(\n\t\t\t\t\tcolHeights.slice(\n\t\t\t\t\t\tsegment.leftCol,\n\t\t\t\t\t\tsegment.rightCol + 1 // make exclusive for slice\n\t\t\t\t\t)\n\t\t\t\t);\n\n\t\t\t\t// adjust the columns to account for the segment's height\n\t\t\t\tfor (var colI=segment.leftCol; colI<=segment.rightCol; colI++) {\n\t\t\t\t\tcolHeights[colI] = segment.top + segment.outerHeight;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// the tallest column in the row should be the \"content height\"\n\t\t\trowContentHeights.push(arrayMax(colHeights));\n\t\t}\n\n\t\treturn rowContentHeights;\n\t}\n\n\n\t// Build an array of segment arrays, each representing the segments that will\n\t// be in a row of the grid, sorted by which event should be closest to the top.\n\tfunction buildSegmentRows(segments) {\n\t\tvar rowCnt = getRowCnt();\n\t\tvar segmentRows = [];\n\t\tvar segmentI;\n\t\tvar segment;\n\t\tvar rowI;\n\n\t\t// group segments by row\n\t\tfor (segmentI=0; segmentI<segments.length; segmentI++) {\n\t\t\tsegment = segments[segmentI];\n\t\t\trowI = segment.row;\n\t\t\tif (segment.element) { // was rendered?\n\t\t\t\tif (segmentRows[rowI]) {\n\t\t\t\t\t// already other segments. append to array\n\t\t\t\t\tsegmentRows[rowI].push(segment);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// first segment in row. create new array\n\t\t\t\t\tsegmentRows[rowI] = [ segment ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// sort each row\n\t\tfor (rowI=0; rowI<rowCnt; rowI++) {\n\t\t\tsegmentRows[rowI] = sortSegmentRow(\n\t\t\t\tsegmentRows[rowI] || [] // guarantee an array, even if no segments\n\t\t\t);\n\t\t}\n\n\t\treturn segmentRows;\n\t}\n\n\n\t// Sort an array of segments according to which segment should appear closest to the top\n\tfunction sortSegmentRow(segments) {\n\t\tvar sortedSegments = [];\n\n\t\t// build the subrow array\n\t\tvar subrows = buildSegmentSubrows(segments);\n\n\t\t// flatten it\n\t\tfor (var i=0; i<subrows.length; i++) {\n\t\t\tsortedSegments.push.apply(sortedSegments, subrows[i]); // append an array to an array\n\t\t}\n\n\t\treturn sortedSegments;\n\t}\n\n\n\t// Take an array of segments, which are all assumed to be in the same row,\n\t// and sort into subrows.\n\tfunction buildSegmentSubrows(segments) {\n\n\t\t// Give preference to elements with certain criteria, so they have\n\t\t// a chance to be closer to the top.\n\t\tsegments.sort(compareDaySegments);\n\n\t\tvar subrows = [];\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\n\t\t\t// loop through subrows, starting with the topmost, until the segment\n\t\t\t// doesn't collide with other segments.\n\t\t\tfor (var j=0; j<subrows.length; j++) {\n\t\t\t\tif (!isDaySegmentCollision(segment, subrows[j])) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// `j` now holds the desired subrow index\n\t\t\tif (subrows[j]) {\n\t\t\t\tsubrows[j].push(segment);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsubrows[j] = [ segment ];\n\t\t\t}\n\t\t}\n\n\t\treturn subrows;\n\t}\n\n\n\t// Return an array of jQuery objects for the placeholder content containers of each row.\n\t// The content containers don't actually contain anything, but their dimensions should match\n\t// the events that are overlaid on top.\n\tfunction getRowContentElements() {\n\t\tvar i;\n\t\tvar rowCnt = getRowCnt();\n\t\tvar rowDivs = [];\n\t\tfor (i=0; i<rowCnt; i++) {\n\t\t\trowDivs[i] = allDayRow(i)\n\t\t\t\t.find('div.fc-day-content > div');\n\t\t}\n\t\treturn rowDivs;\n\t}\n\n\n\n\t/* Mouse Handlers\n\t---------------------------------------------------------------------------------------------------*/\n\t// TODO: better documentation!\n\n\n\tfunction attachHandlers(segments, modifiedEventId) {\n\t\tvar segmentContainer = getDaySegmentContainer();\n\n\t\tsegmentElementEach(segments, function(segment, element, i) {\n\t\t\tvar event = segment.event;\n\t\t\tif (event._id === modifiedEventId) {\n\t\t\t\tbindDaySeg(event, element, segment);\n\t\t\t}else{\n\t\t\t\telement[0]._fci = i; // for lazySegBind\n\t\t\t}\n\t\t});\n\n\t\tlazySegBind(segmentContainer, segments, bindDaySeg);\n\t}\n\n\n\tfunction bindDaySeg(event, eventElement, segment) {\n\n\t\tif (isEventDraggable(event)) {\n\t\t\tt.draggableDayEvent(event, eventElement, segment); // use `t` so subclasses can override\n\t\t}\n\n\t\tif (\n\t\t\tsegment.isEnd && // only allow resizing on the final segment for an event\n\t\t\tisEventResizable(event)\n\t\t) {\n\t\t\tt.resizableDayEvent(event, eventElement, segment); // use `t` so subclasses can override\n\t\t}\n\n\t\t// attach all other handlers.\n\t\t// needs to be after, because resizableDayEvent might stopImmediatePropagation on click\n\t\teventElementHandlers(event, eventElement);\n\t}\n\n\t\n\tfunction draggableDayEvent(event, eventElement) {\n\t\tvar hoverListener = getHoverListener();\n\t\tvar dayDelta;\n\t\teventElement.draggable({\n\t\t\tdelay: 50,\n\t\t\topacity: opt('dragOpacity'),\n\t\t\trevertDuration: opt('dragRevertDuration'),\n\t\t\tstart: function(ev, ui) {\n\t\t\t\ttrigger('eventDragStart', eventElement, event, ev, ui);\n\t\t\t\thideEvents(event, eventElement);\n\t\t\t\thoverListener.start(function(cell, origCell, rowDelta, colDelta) {\n\t\t\t\t\teventElement.draggable('option', 'revert', !cell || !rowDelta && !colDelta);\n\t\t\t\t\tclearOverlays();\n\t\t\t\t\tif (cell) {\n\t\t\t\t\t\tvar origDate = cellToDate(origCell);\n\t\t\t\t\t\tvar date = cellToDate(cell);\n\t\t\t\t\t\tdayDelta = dayDiff(date, origDate);\n\t\t\t\t\t\trenderDayOverlay(\n\t\t\t\t\t\t\taddDays(cloneDate(event.start), dayDelta),\n\t\t\t\t\t\t\taddDays(exclEndDay(event), dayDelta)\n\t\t\t\t\t\t);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdayDelta = 0;\n\t\t\t\t\t}\n\t\t\t\t}, ev, 'drag');\n\t\t\t},\n\t\t\tstop: function(ev, ui) {\n\t\t\t\thoverListener.stop();\n\t\t\t\tclearOverlays();\n\t\t\t\ttrigger('eventDragStop', eventElement, event, ev, ui);\n\t\t\t\tif (dayDelta) {\n\t\t\t\t\teventDrop(this, event, dayDelta, 0, event.allDay, ev, ui);\n\t\t\t\t}else{\n\t\t\t\t\teventElement.css('filter', ''); // clear IE opacity side-effects\n\t\t\t\t\tshowEvents(event, eventElement);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\t\n\tfunction resizableDayEvent(event, element, segment) {\n\t\tvar isRTL = opt('isRTL');\n\t\tvar direction = isRTL ? 'w' : 'e';\n\t\tvar handle = element.find('.ui-resizable-' + direction); // TODO: stop using this class because we aren't using jqui for this\n\t\tvar isResizing = false;\n\t\t\n\t\t// TODO: look into using jquery-ui mouse widget for this stuff\n\t\tdisableTextSelection(element); // prevent native <a> selection for IE\n\t\telement\n\t\t\t.mousedown(function(ev) { // prevent native <a> selection for others\n\t\t\t\tev.preventDefault();\n\t\t\t})\n\t\t\t.click(function(ev) {\n\t\t\t\tif (isResizing) {\n\t\t\t\t\tev.preventDefault(); // prevent link from being visited (only method that worked in IE6)\n\t\t\t\t\tev.stopImmediatePropagation(); // prevent fullcalendar eventClick handler from being called\n\t\t\t\t\t                               // (eventElementHandlers needs to be bound after resizableDayEvent)\n\t\t\t\t}\n\t\t\t});\n\t\t\n\t\thandle.mousedown(function(ev) {\n\t\t\tif (ev.which != 1) {\n\t\t\t\treturn; // needs to be left mouse button\n\t\t\t}\n\t\t\tisResizing = true;\n\t\t\tvar hoverListener = getHoverListener();\n\t\t\tvar rowCnt = getRowCnt();\n\t\t\tvar colCnt = getColCnt();\n\t\t\tvar elementTop = element.css('top');\n\t\t\tvar dayDelta;\n\t\t\tvar helpers;\n\t\t\tvar eventCopy = $.extend({}, event);\n\t\t\tvar minCellOffset = dayOffsetToCellOffset( dateToDayOffset(event.start) );\n\t\t\tclearSelection();\n\t\t\t$('body')\n\t\t\t\t.css('cursor', direction + '-resize')\n\t\t\t\t.one('mouseup', mouseup);\n\t\t\ttrigger('eventResizeStart', this, event, ev);\n\t\t\thoverListener.start(function(cell, origCell) {\n\t\t\t\tif (cell) {\n\n\t\t\t\t\tvar origCellOffset = cellToCellOffset(origCell);\n\t\t\t\t\tvar cellOffset = cellToCellOffset(cell);\n\n\t\t\t\t\t// don't let resizing move earlier than start date cell\n\t\t\t\t\tcellOffset = Math.max(cellOffset, minCellOffset);\n\n\t\t\t\t\tdayDelta =\n\t\t\t\t\t\tcellOffsetToDayOffset(cellOffset) -\n\t\t\t\t\t\tcellOffsetToDayOffset(origCellOffset);\n\n\t\t\t\t\tif (dayDelta) {\n\t\t\t\t\t\teventCopy.end = addDays(eventEnd(event), dayDelta, true);\n\t\t\t\t\t\tvar oldHelpers = helpers;\n\n\t\t\t\t\t\thelpers = renderTempDayEvent(eventCopy, segment.row, elementTop);\n\t\t\t\t\t\thelpers = $(helpers); // turn array into a jQuery object\n\n\t\t\t\t\t\thelpers.find('*').css('cursor', direction + '-resize');\n\t\t\t\t\t\tif (oldHelpers) {\n\t\t\t\t\t\t\toldHelpers.remove();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\thideEvents(event);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (helpers) {\n\t\t\t\t\t\t\tshowEvents(event);\n\t\t\t\t\t\t\thelpers.remove();\n\t\t\t\t\t\t\thelpers = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tclearOverlays();\n\t\t\t\t\trenderDayOverlay( // coordinate grid already rebuilt with hoverListener.start()\n\t\t\t\t\t\tevent.start,\n\t\t\t\t\t\taddDays( exclEndDay(event), dayDelta )\n\t\t\t\t\t\t// TODO: instead of calling renderDayOverlay() with dates,\n\t\t\t\t\t\t// call _renderDayOverlay (or whatever) with cell offsets.\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}, ev);\n\t\t\t\n\t\t\tfunction mouseup(ev) {\n\t\t\t\ttrigger('eventResizeStop', this, event, ev);\n\t\t\t\t$('body').css('cursor', '');\n\t\t\t\thoverListener.stop();\n\t\t\t\tclearOverlays();\n\t\t\t\tif (dayDelta) {\n\t\t\t\t\teventResize(this, event, dayDelta, 0, ev);\n\t\t\t\t\t// event redraw will clear helpers\n\t\t\t\t}\n\t\t\t\t// otherwise, the drag handler already restored the old events\n\t\t\t\t\n\t\t\t\tsetTimeout(function() { // make this happen after the element's click event\n\t\t\t\t\tisResizing = false;\n\t\t\t\t},0);\n\t\t\t}\n\t\t});\n\t}\n\t\n\n}\n\n\n\n/* Generalized Segment Utilities\n-------------------------------------------------------------------------------------------------*/\n\n\nfunction isDaySegmentCollision(segment, otherSegments) {\n\tfor (var i=0; i<otherSegments.length; i++) {\n\t\tvar otherSegment = otherSegments[i];\n\t\tif (\n\t\t\totherSegment.leftCol <= segment.rightCol &&\n\t\t\totherSegment.rightCol >= segment.leftCol\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}\n\n\nfunction segmentElementEach(segments, callback) { // TODO: use in AgendaView?\n\tfor (var i=0; i<segments.length; i++) {\n\t\tvar segment = segments[i];\n\t\tvar element = segment.element;\n\t\tif (element) {\n\t\t\tcallback(segment, element, i);\n\t\t}\n\t}\n}\n\n\n// A cmp function for determining which segments should appear higher up\nfunction compareDaySegments(a, b) {\n\treturn (b.rightCol - b.leftCol) - (a.rightCol - a.leftCol) || // put wider events first\n\t\tb.event.allDay - a.event.allDay || // if tie, put all-day events first (booleans cast to 0/1)\n\t\ta.event.start - b.event.start || // if a tie, sort by event start date\n\t\t(a.event.title || '').localeCompare(b.event.title) // if a tie, sort by event title\n}\n\n\n;;\n\n//BUG: unselect needs to be triggered when events are dragged+dropped\n\nfunction SelectionManager() {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.select = select;\n\tt.unselect = unselect;\n\tt.reportSelection = reportSelection;\n\tt.daySelectionMousedown = daySelectionMousedown;\n\t\n\t\n\t// imports\n\tvar opt = t.opt;\n\tvar trigger = t.trigger;\n\tvar defaultSelectionEnd = t.defaultSelectionEnd;\n\tvar renderSelection = t.renderSelection;\n\tvar clearSelection = t.clearSelection;\n\t\n\t\n\t// locals\n\tvar selected = false;\n\n\n\n\t// unselectAuto\n\tif (opt('selectable') && opt('unselectAuto')) {\n\t\t$(document).mousedown(function(ev) {\n\t\t\tvar ignore = opt('unselectCancel');\n\t\t\tif (ignore) {\n\t\t\t\tif ($(ev.target).parents(ignore).length) { // could be optimized to stop after first match\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tunselect(ev);\n\t\t});\n\t}\n\t\n\n\tfunction select(startDate, endDate, allDay) {\n\t\tunselect();\n\t\tif (!endDate) {\n\t\t\tendDate = defaultSelectionEnd(startDate, allDay);\n\t\t}\n\t\trenderSelection(startDate, endDate, allDay);\n\t\treportSelection(startDate, endDate, allDay);\n\t}\n\t\n\t\n\tfunction unselect(ev) {\n\t\tif (selected) {\n\t\t\tselected = false;\n\t\t\tclearSelection();\n\t\t\ttrigger('unselect', null, ev);\n\t\t}\n\t}\n\t\n\t\n\tfunction reportSelection(startDate, endDate, allDay, ev) {\n\t\tselected = true;\n\t\ttrigger('select', null, startDate, endDate, allDay, ev);\n\t}\n\t\n\t\n\tfunction daySelectionMousedown(ev) { // not really a generic manager method, oh well\n\t\tvar cellToDate = t.cellToDate;\n\t\tvar getIsCellAllDay = t.getIsCellAllDay;\n\t\tvar hoverListener = t.getHoverListener();\n\t\tvar reportDayClick = t.reportDayClick; // this is hacky and sort of weird\n\t\tif (ev.which == 1 && opt('selectable')) { // which==1 means left mouse button\n\t\t\tunselect(ev);\n\t\t\tvar _mousedownElement = this;\n\t\t\tvar dates;\n\t\t\thoverListener.start(function(cell, origCell) { // TODO: maybe put cellToDate/getIsCellAllDay info in cell\n\t\t\t\tclearSelection();\n\t\t\t\tif (cell && getIsCellAllDay(cell)) {\n\t\t\t\t\tdates = [ cellToDate(origCell), cellToDate(cell) ].sort(dateCompare);\n\t\t\t\t\trenderSelection(dates[0], dates[1], true);\n\t\t\t\t}else{\n\t\t\t\t\tdates = null;\n\t\t\t\t}\n\t\t\t}, ev);\n\t\t\t$(document).one('mouseup', function(ev) {\n\t\t\t\thoverListener.stop();\n\t\t\t\tif (dates) {\n\t\t\t\t\tif (+dates[0] == +dates[1]) {\n\t\t\t\t\t\treportDayClick(dates[0], true, ev);\n\t\t\t\t\t}\n\t\t\t\t\treportSelection(dates[0], dates[1], true, ev);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\n}\n\n;;\n \nfunction OverlayManager() {\n\tvar t = this;\n\t\n\t\n\t// exports\n\tt.renderOverlay = renderOverlay;\n\tt.clearOverlays = clearOverlays;\n\t\n\t\n\t// locals\n\tvar usedOverlays = [];\n\tvar unusedOverlays = [];\n\t\n\t\n\tfunction renderOverlay(rect, parent) {\n\t\tvar e = unusedOverlays.shift();\n\t\tif (!e) {\n\t\t\te = $(\"<div class='fc-cell-overlay' style='position:absolute;z-index:3'/>\");\n\t\t}\n\t\tif (e[0].parentNode != parent[0]) {\n\t\t\te.appendTo(parent);\n\t\t}\n\t\tusedOverlays.push(e.css(rect).show());\n\t\treturn e;\n\t}\n\t\n\n\tfunction clearOverlays() {\n\t\tvar e;\n\t\twhile (e = usedOverlays.shift()) {\n\t\t\tunusedOverlays.push(e.hide().unbind());\n\t\t}\n\t}\n\n\n}\n\n;;\n\nfunction CoordinateGrid(buildFunc) {\n\n\tvar t = this;\n\tvar rows;\n\tvar cols;\n\t\n\t\n\tt.build = function() {\n\t\trows = [];\n\t\tcols = [];\n\t\tbuildFunc(rows, cols);\n\t};\n\t\n\t\n\tt.cell = function(x, y) {\n\t\tvar rowCnt = rows.length;\n\t\tvar colCnt = cols.length;\n\t\tvar i, r=-1, c=-1;\n\t\tfor (i=0; i<rowCnt; i++) {\n\t\t\tif (y >= rows[i][0] && y < rows[i][1]) {\n\t\t\t\tr = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (i=0; i<colCnt; i++) {\n\t\t\tif (x >= cols[i][0] && x < cols[i][1]) {\n\t\t\t\tc = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn (r>=0 && c>=0) ? { row:r, col:c } : null;\n\t};\n\t\n\t\n\tt.rect = function(row0, col0, row1, col1, originElement) { // row1,col1 is inclusive\n\t\tvar origin = originElement.offset();\n\t\treturn {\n\t\t\ttop: rows[row0][0] - origin.top,\n\t\t\tleft: cols[col0][0] - origin.left,\n\t\t\twidth: cols[col1][1] - cols[col0][0],\n\t\t\theight: rows[row1][1] - rows[row0][0]\n\t\t};\n\t};\n\n}\n\n;;\n\nfunction HoverListener(coordinateGrid) {\n\n\n\tvar t = this;\n\tvar bindType;\n\tvar change;\n\tvar firstCell;\n\tvar cell;\n\t\n\t\n\tt.start = function(_change, ev, _bindType) {\n\t\tchange = _change;\n\t\tfirstCell = cell = null;\n\t\tcoordinateGrid.build();\n\t\tmouse(ev);\n\t\tbindType = _bindType || 'mousemove';\n\t\t$(document).bind(bindType, mouse);\n\t};\n\t\n\t\n\tfunction mouse(ev) {\n\t\t_fixUIEvent(ev); // see below\n\t\tvar newCell = coordinateGrid.cell(ev.pageX, ev.pageY);\n\t\tif (!newCell != !cell || newCell && (newCell.row != cell.row || newCell.col != cell.col)) {\n\t\t\tif (newCell) {\n\t\t\t\tif (!firstCell) {\n\t\t\t\t\tfirstCell = newCell;\n\t\t\t\t}\n\t\t\t\tchange(newCell, firstCell, newCell.row-firstCell.row, newCell.col-firstCell.col);\n\t\t\t}else{\n\t\t\t\tchange(newCell, firstCell);\n\t\t\t}\n\t\t\tcell = newCell;\n\t\t}\n\t}\n\t\n\t\n\tt.stop = function() {\n\t\t$(document).unbind(bindType, mouse);\n\t\treturn cell;\n\t};\n\t\n\t\n}\n\n\n\n// this fix was only necessary for jQuery UI 1.8.16 (and jQuery 1.7 or 1.7.1)\n// upgrading to jQuery UI 1.8.17 (and using either jQuery 1.7 or 1.7.1) fixed the problem\n// but keep this in here for 1.8.16 users\n// and maybe remove it down the line\n\nfunction _fixUIEvent(event) { // for issue 1168\n\tif (event.pageX === undefined) {\n\t\tevent.pageX = event.originalEvent.pageX;\n\t\tevent.pageY = event.originalEvent.pageY;\n\t}\n}\n;;\n\nfunction HorizontalPositionCache(getElement) {\n\n\tvar t = this,\n\t\telements = {},\n\t\tlefts = {},\n\t\trights = {};\n\t\t\n\tfunction e(i) {\n\t\treturn elements[i] = elements[i] || getElement(i);\n\t}\n\t\n\tt.left = function(i) {\n\t\treturn lefts[i] = lefts[i] === undefined ? e(i).position().left : lefts[i];\n\t};\n\t\n\tt.right = function(i) {\n\t\treturn rights[i] = rights[i] === undefined ? t.left(i) + e(i).width() : rights[i];\n\t};\n\t\n\tt.clear = function() {\n\t\telements = {};\n\t\tlefts = {};\n\t\trights = {};\n\t};\n\t\n}\n\n;;\n\n})(jQuery);"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/fullcalendar/fullcalendar.print.css",
    "content": "/*!\n * FullCalendar v1.6.4 Print Stylesheet\n * Docs & License: http://arshaw.com/fullcalendar/\n * (c) 2013 Adam Shaw\n */\n\n/*\n * Include this stylesheet on your page to get a more printer-friendly calendar.\n * When including this stylesheet, use the media='print' attribute of the <link> tag.\n * Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css.\n */\n \n \n /* Events\n-----------------------------------------------------*/\n \n.fc-event {\n\tbackground: #fff !important;\n\tcolor: #000 !important;\n\t}\n\t\n/* for vertical events */\n\t\n.fc-event-bg {\n\tdisplay: none !important;\n\t}\n\t\n.fc-event .ui-resizable-handle {\n\tdisplay: none !important;\n\t}\n\t\n\t\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/fullcalendar/gcal.js",
    "content": "/*!\n * FullCalendar v1.6.4 Google Calendar Plugin\n * Docs & License: http://arshaw.com/fullcalendar/\n * (c) 2013 Adam Shaw\n */\n \n(function($) {\n\n\nvar fc = $.fullCalendar;\nvar formatDate = fc.formatDate;\nvar parseISO8601 = fc.parseISO8601;\nvar addDays = fc.addDays;\nvar applyAll = fc.applyAll;\n\n\nfc.sourceNormalizers.push(function(sourceOptions) {\n\tif (sourceOptions.dataType == 'gcal' ||\n\t\tsourceOptions.dataType === undefined &&\n\t\t(sourceOptions.url || '').match(/^(http|https):\\/\\/www.google.com\\/calendar\\/feeds\\//)) {\n\t\t\tsourceOptions.dataType = 'gcal';\n\t\t\tif (sourceOptions.editable === undefined) {\n\t\t\t\tsourceOptions.editable = false;\n\t\t\t}\n\t\t}\n});\n\n\nfc.sourceFetchers.push(function(sourceOptions, start, end) {\n\tif (sourceOptions.dataType == 'gcal') {\n\t\treturn transformOptions(sourceOptions, start, end);\n\t}\n});\n\n\nfunction transformOptions(sourceOptions, start, end) {\n\n\tvar success = sourceOptions.success;\n\tvar data = $.extend({}, sourceOptions.data || {}, {\n\t\t'start-min': formatDate(start, 'u'),\n\t\t'start-max': formatDate(end, 'u'),\n\t\t'singleevents': true,\n\t\t'max-results': 9999\n\t});\n\t\n\tvar ctz = sourceOptions.currentTimezone;\n\tif (ctz) {\n\t\tdata.ctz = ctz = ctz.replace(' ', '_');\n\t}\n\n\treturn $.extend({}, sourceOptions, {\n\t\turl: sourceOptions.url.replace(/\\/basic$/, '/full') + '?alt=json-in-script&callback=?',\n\t\tdataType: 'jsonp',\n\t\tdata: data,\n\t\tstartParam: false,\n\t\tendParam: false,\n\t\tsuccess: function(data) {\n\t\t\tvar events = [];\n\t\t\tif (data.feed.entry) {\n\t\t\t\t$.each(data.feed.entry, function(i, entry) {\n\t\t\t\t\tvar startStr = entry['gd$when'][0]['startTime'];\n\t\t\t\t\tvar start = parseISO8601(startStr, true);\n\t\t\t\t\tvar end = parseISO8601(entry['gd$when'][0]['endTime'], true);\n\t\t\t\t\tvar allDay = startStr.indexOf('T') == -1;\n\t\t\t\t\tvar url;\n\t\t\t\t\t$.each(entry.link, function(i, link) {\n\t\t\t\t\t\tif (link.type == 'text/html') {\n\t\t\t\t\t\t\turl = link.href;\n\t\t\t\t\t\t\tif (ctz) {\n\t\t\t\t\t\t\t\turl += (url.indexOf('?') == -1 ? '?' : '&') + 'ctz=' + ctz;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tif (allDay) {\n\t\t\t\t\t\taddDays(end, -1); // make inclusive\n\t\t\t\t\t}\n\t\t\t\t\tevents.push({\n\t\t\t\t\t\tid: entry['gCal$uid']['value'],\n\t\t\t\t\t\ttitle: entry['title']['$t'],\n\t\t\t\t\t\turl: url,\n\t\t\t\t\t\tstart: start,\n\t\t\t\t\t\tend: end,\n\t\t\t\t\t\tallDay: allDay,\n\t\t\t\t\t\tlocation: entry['gd$where'][0]['valueString'],\n\t\t\t\t\t\tdescription: entry['content']['$t']\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t\tvar args = [events].concat(Array.prototype.slice.call(arguments, 1));\n\t\t\tvar res = applyAll(success, this, args);\n\t\t\tif ($.isArray(res)) {\n\t\t\t\treturn res;\n\t\t\t}\n\t\t\treturn events;\n\t\t}\n\t});\n\t\n}\n\n\n// legacy\nfc.gcalFeed = function(url, sourceOptions) {\n\treturn $.extend({}, sourceOptions, { url: url, dataType: 'gcal' });\n};\n\n\n})(jQuery);\n"
  },
  {
    "path": "style/lib/fullcalendar-1.6.4/license.txt",
    "content": "Copyright (c) 2013 Adam Shaw\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "style/lib/jQuery-Knob/README.md",
    "content": "jQuery Knob\n=============\n\n- canvas based ; no png or jpg sprites.\n- touch, mouse and mousewheel, keyboard events implemented.\n- downward compatible ; overloads an input element.\n\nExample\n-------\n\n    <input type=\"text\" value=\"75\" class=\"dial\">\n\n    <script>\n    $(function() {\n        $(\".dial\").knob();\n    });\n    </script>\n\nOptions\n-------\n\nOptions are provided as attributes 'data-option':\n\n    <input type=\"text\" class=\"dial\" data-min=\"-50\" data-max=\"50\">\n\n... or in the \"knob()\" call :\n\n    $(\".dial\").knob({\n                    'min':-50\n                    ,'max':50\n                    });\n\nThe following options are supported :\n\nBehaviors :\n* min : min value | default=0.\n* max : max value | default=100.\n* step : step size | default=1.\n* angleOffset : starting angle in degrees | default=0.\n* angleArc : arc size in degrees | default=360.\n* stopper : stop at min & max on keydown/mousewheel | default=true.\n* readOnly : disable input and events | default=false.\n\nUI :\n* cursor : display mode \"cursor\", cursor size could be changed passing a numeric value to the option, default width is used when passing boolean value \"true\" | default=gauge.\n* thickness : gauge thickness.\n* lineCap : gauge stroke endings. | default=butt, round=rounded line endings\n* width : dial width.\n* displayInput : default=true | false=hide input.\n* displayPrevious : default=false | true=displays the previous value with transparency.\n* fgColor : foreground color.\n* inputColor : input value (number) color.\n* font : font family.\n* fontWeight : font weight.\n* bgColor : background color.\n\nHooks\n-------\n\n    <script>\n    $(\".dial\").knob({\n                        'release' : function (v) { /*make something*/ }\n                    });\n    </script>\n\n* 'release' : executed on release\n\n    Parameters :\n    + value : int, current value\n\n* 'change' : executed at each change of the value\n\n    Parameters :\n    + value : int, current value\n\n* 'draw' : when drawing the canvas\n\n    Context :\n    - this.g : canvas context 2D (see Canvas documentation)\n    - this.$ : jQuery wrapped element\n    - this.o : options\n    - this.i : input\n    - ... console.log(this);\n\n* 'cancel' : triggered on [esc] keydown\n\n* 'error' : called if the browser doesn't support canvases and the plugin didn't initialize as a result\n\nThe scope (this) of each hook function is the current Knob instance (refer to the demo code).\n\nExample\n-------\n\n    <input type=\"text\" value=\"75\" class=\"dial\">\n\n    <script>\n    $(\".dial\").knob({\n                     'change' : function (v) { console.log(v); }\n                    });\n    </script>\n\n\nDynamically configure\n-------\n\n    <script>\n    $('.dial')\n        .trigger(\n            'configure',\n            {\n            \"min\":10,\n            \"max\":40,\n            \"fgColor\":\"#FF0000\",\n            \"skin\":\"tron\",\n            \"cursor\":true\n            }\n        );\n    </script>\n\nSet the value\n-------\n\n    <script>\n    $('.dial')\n        .val(27)\n        .trigger('change');\n    </script>\n\nSupported browser\n-------\n\nTested on Chrome, Safari, Firefox, IE 9.0.\n\nMIT License\n-------\n\nCopyright (C) 2013 Anthony Terrien\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n the Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "style/lib/jQuery-Knob/index.html",
    "content": "<!DOCTYPE html>\n<html>\n    <head>\n        <title>jQuery Knob demo</title>\n        <script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\"></script>\n        <script src=\"js/jquery.knob.js\"></script>\n        <script>\n            $(function($) {\n\n                $(\".knob\").knob({\n                    change : function (value) {\n                        //console.log(\"change : \" + value);\n                    },\n                    release : function (value) {\n                        //console.log(this.$.attr('value'));\n                        console.log(\"release : \" + value);\n                    },\n                    cancel : function () {\n                        console.log(\"cancel : \", this);\n                    },\n                    draw : function () {\n\n                        // \"tron\" case\n                        if(this.$.data('skin') == 'tron') {\n\n                            var a = this.angle(this.cv)  // Angle\n                                , sa = this.startAngle          // Previous start angle\n                                , sat = this.startAngle         // Start angle\n                                , ea                            // Previous end angle\n                                , eat = sat + a                 // End angle\n                                , r = 1;\n\n                            this.g.lineWidth = this.lineWidth;\n\n                            this.o.cursor\n                                && (sat = eat - 0.3)\n                                && (eat = eat + 0.3);\n\n                            if (this.o.displayPrevious) {\n                                ea = this.startAngle + this.angle(this.v);\n                                this.o.cursor\n                                    && (sa = ea - 0.3)\n                                    && (ea = ea + 0.3);\n                                this.g.beginPath();\n                                this.g.strokeStyle = this.pColor;\n                                this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sa, ea, false);\n                                this.g.stroke();\n                            }\n\n                            this.g.beginPath();\n                            this.g.strokeStyle = r ? this.o.fgColor : this.fgColor ;\n                            this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false);\n                            this.g.stroke();\n\n                            this.g.lineWidth = 2;\n                            this.g.beginPath();\n                            this.g.strokeStyle = this.o.fgColor;\n                            this.g.arc( this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false);\n                            this.g.stroke();\n\n                            return false;\n                        }\n                    }\n                });\n\n                // Example of infinite knob, iPod click wheel\n                var v, up=0,down=0,i=0\n                    ,$idir = $(\"div.idir\")\n                    ,$ival = $(\"div.ival\")\n                    ,incr = function() { i++; $idir.show().html(\"+\").fadeOut(); $ival.html(i); }\n                    ,decr = function() { i--; $idir.show().html(\"-\").fadeOut(); $ival.html(i); };\n                $(\"input.infinite\").knob(\n                                    {\n                                    min : 0\n                                    , max : 20\n                                    , stopper : false\n                                    , change : function () {\n                                                    if(v > this.cv){\n                                                        if(up){\n                                                            decr();\n                                                            up=0;\n                                                        }else{up=1;down=0;}\n                                                    } else {\n                                                        if(v < this.cv){\n                                                            if(down){\n                                                                incr();\n                                                                down=0;\n                                                            }else{down=1;up=0;}\n                                                        }\n                                                    }\n                                                    v = this.cv;\n                                                }\n                                    });\n            });\n        </script>\n        <style>\n            body{\n              padding: 0;\n              margin: 0px 50px;\n              font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n              font-weight: 300;\n              text-rendering: optimizelegibility;\n            }\n            p{font-size: 30px; line-height: 30px}\n            div.demo{text-align: center; width: 280px; float: left}\n            div.demo > p{font-size: 20px}\n        </style>\n    </head>\n    <body>\n        <div style=\"width:100%;font-size:40px;letter-spacing:-8px;line-height:40px;\">\n            <h1>jQuery Knob</h1>\n        </div>\n        <div>\n            <p>Nice, downward compatible, touchable, jQuery dial. <a href=\"http://flattr.com/thing/674900/jQuery-Knob\" target=\"_blank\"><img src=\"http://api.flattr.com/button/flattr-badge-large.png\" alt=\"Flattr this\" title=\"Flattr this\" border=\"0\" /></a></p>\n            <p style=\"font-size: 20px\">* implemented interactions : mouse click and wheel mouse, keyboard (on focus) and fingers (touch events)</p>\n        </div>\n        <div class=\"demo\">\n            <p>&#215; Disable display input</p>\n            <pre>\ndata-width=\"100\"\ndata-displayInput=false\n            </pre>\n            <input class=\"knob\" data-width=\"100\" data-displayInput=false value=\"35\">\n        </div>\n        <div class=\"demo\">\n            <p>&#215; 'cursor' mode</p>\n            <pre>\ndata-width=\"150\"\ndata-cursor=true\ndata-thickness=.3\ndata-fgColor=\"#222222\"\n            </pre>\n            <input class=\"knob\" data-width=\"150\" data-cursor=true data-fgColor=\"#222222\" data-thickness=.3 value=\"29\">\n        </div>\n        <div class=\"demo\" >\n            <p>&#215; Display previous value</p>\n            <pre>\ndata-displayPrevious=true\ndata-min=\"-100\"\n            </pre>\n            <input class=\"knob\" data-width=\"200\" data-min=\"-100\" data-displayPrevious=true value=\"44\">\n        </div>\n        <div style=\"clear:both\"></div>\n        <div class=\"demo\">\n            <p>&#215; Angle offset</p>\n            <pre>\ndata-angleOffset=90\ndata-linecap=round\n            </pre>\n            <input class=\"knob\" data-angleOffset=90 data-linecap=round value=\"35\">\n        </div>\n        <div class=\"demo\">\n            <p>&#215; Angle offset and arc</p>\n            <pre>\ndata-fgColor=\"#66CC66\"\ndata-angleOffset=-125\ndata-angleArc=250\n            </pre>\n            <input class=\"knob\" data-angleOffset=-125 data-angleArc=250 data-fgColor=\"#66EE66\" value=\"35\">\n        </div>\n        <div class=\"demo\" >\n            <p>&#215; 5-digit values, step 1000</p>\n            <pre>\ndata-step=\"1000\"\ndata-min=\"-15000\"\ndata-max=\"15000\"\ndata-displayPrevious=true\n            </pre>\n            <input class=\"knob\" data-min=\"-15000\" data-displayPrevious=true data-max=\"15000\" data-step=\"1000\" value=\"-11000\">\n        </div>\n        <div style=\"clear:both\"></div>\n        <div style=\"text-align: center\">\n            <p style=\"font-size: 20px\">&#215; Overloaded 'draw' method</p>\n        </div>\n        <div style=\"background-color: #222; height: 340px\">\n            <div class=\"demo\" style=\"background-color:#222; color:#FFF;\">\n                <pre>\n    data-width=\"75\"\n    data-fgColor=\"#ffec03\"\n    data-skin=\"tron\"\n    data-thickness=\".2\"\n    data-displayPrevious=true\n                </pre>\n                <input class=\"knob\" data-width=\"75\" data-displayPrevious=true data-fgColor=\"#ffec03\" data-skin=\"tron\" data-cursor=true value=\"75\" data-thickness=\".2\">\n            </div>\n            <div class=\"demo\" style=\"background-color:#222; color:#FFF;\">\n                <pre>\n    data-width=\"150\"\n    data-fgColor=\"#ffec03\"\n    data-skin=\"tron\"\n    data-thickness=\".2\"\n    data-displayPrevious=true\n                </pre>\n                <input class=\"knob\" data-width=\"150\" data-displayPrevious=true data-fgColor=\"#ffec03\" data-skin=\"tron\" data-thickness=\".2\" value=\"75\">\n            </div>\n            <div class=\"demo\" style=\"background-color:#222; color:#FFF;\">\n                <pre>\n    data-width=\"150\"\n    data-fgColor=\"#C0ffff\"\n    data-skin=\"tron\"\n    data-thickness=\".1\"\n    data-angleOffset=\"180\"\n                </pre>\n                <input class=\"knob\" data-width=\"150\" data-angleOffset=\"180\" data-fgColor=\"#C0ffff\" data-skin=\"tron\" data-thickness=\".1\" value=\"35\">\n            </div>\n        </div>\n        <div style=\"clear:both\"></div>\n        <div class=\"demo\" style=\"width:100%\">\n            <p>&#215; Responsive</p>\n            <pre>\ndata-width=\"80%\"\n            </pre>\n            <div style=\"width: 30%; border: 3px dashed; margin-bottom: 20px\">\n                <i>\n                    Current div width is 30% of window width.<br>\n                    Knob width is 80% of current div.<br>\n                    Knob width is 80% of 30% of window width.<br>\n                    Test resizing window.\n                </i>\n                <br>\n                <br>\n                <input class=\"knob\" data-width=\"80%\" value=\"35\">\n            </div>\n        </div>\n        <div style=\"clear:both\"></div>\n        <script>\n        function clock() {\n            var $s = $(\".second\"),\n                $m = $(\".minute\"),\n                $h = $(\".hour\");\n                d = new Date(),\n                s = d.getSeconds(),\n                m = d.getMinutes(),\n                h = d.getHours();\n            $s.val(s).trigger(\"change\");\n            $m.val(m).trigger(\"change\");\n            $h.val(h).trigger(\"change\");\n            setTimeout(\"clock()\", 1000);\n        }\n        clock();\n        </script>\n        <div class=\"demo\" style=\"color:#EEE;background:#222;height:420px;width:100%\">\n            <p>&#215; Superpose (clock)</p>\n            <div style=\"position:relative;width:350px;margin:auto\">\n                <div style=\"position:absolute;left:10px;top:10px\">\n                    <input class=\"knob hour\" data-min=\"0\" data-max=\"24\" data-bgColor=\"#333\" data-fgColor=\"#ffec03\" data-displayInput=false data-width=\"300\" data-height=\"300\" data-thickness=\".3\">\n                </div>\n                <div style=\"position:absolute;left:60px;top:60px\">\n                    <input class=\"knob minute\" data-min=\"0\" data-max=\"60\" data-bgColor=\"#333\" data-displayInput=false data-width=\"200\" data-height=\"200\" data-thickness=\".45\">\n                </div>\n                <div style=\"position:absolute;left:110px;top:110px\">\n                    <input class=\"knob second\" data-min=\"0\" data-max=\"60\" data-bgColor=\"#333\" data-fgColor=\"rgb(127, 255, 0)\" data-displayInput=false data-width=\"100\" data-height=\"100\" data-thickness=\".3\">\n                </div>\n            </div>\n        </div>\n        <div style=\"clear:both\"></div>\n        <div class=\"demo\">\n            <p>&#215; Readonly</p>\n            <pre>\nreadonly (or data-readOnly=true)\ndata-thickness=\".4\"\ndata-fgColor=\"chartreuse\"\n            </pre>\n            <input class=\"knob\" data-fgColor=\"chartreuse\" data-thickness=\".4\" readonly value=\"22\">\n        </div>\n        <div class=\"demo\">\n            <p>&#215; Dynamic</p>\n            <pre>\ndata-width=\"200\"\n            </pre>\n            <input type=\"button\" onclick=\"$('.knob-dyn').knob();\" value=\"knobify!\">\n            <input type=\"text\" class=\"knob-dyn\" data-width=\"200\" data-cursor=true value=\"56\">\n            <pre>\ndata-width=\"50\"\ndata-cursor=true\n            </pre>\n            <input type=\"button\" onclick=\"$('.knob-dyn2').knob();\" value=\"knobify!\">\n            <input type=\"text\" class=\"knob-dyn2\" data-width=\"50\" data-thickness=\".4\" value=\"56\">\n        </div>\n        <div class=\"demo\" style=\"height:440px;width:300px\">\n            <p>&#215; Infinite || iPod click wheel</p>\n            <div style=\"float:left;width:180px;height:320px;padding:20px;background-color:#EEEEEE;text-align:center;\">\n                <pre>\ndata-width=\"150\"\ndata-cursor=true\ndata-thickness=\".5\"\ndata-fgColor=\"#AAAAAA\"\ndata-bgColor=\"#FFFFFF\"\ndata-displayInput=\"false\"\n+ some code\n                </pre>\n                <input class=\"infinite\" data-width=\"150\" data-thickness=\".5\" data-fgColor=\"#AAAAAA\" data-bgColor=\"#FFFFFF\" data-displayInput=\"false\" data-cursor=true>\n            </div>\n            <div style=\"float:left;margin-top:200px;\">\n                <div class=\"ival\" style=\"width:80px;text-align:center;font-size:50px;color:#AAA\">0</div>\n                <div class=\"idir\" style=\"width:80px;text-align:center;font-size:50px;\"></div>\n            </div>\n        </div>\n        <div style=\"clear:both\"></div>\n        <div id=\"big\" class=\"demo\" style=\"height:800px;width:100%\">\n            <p>&#215; Big !</p>\n            <pre>\ndata-width=\"700\"\n            </pre>\n            <input class=\"knob\" data-min=\"-100\" data-max=\"100\" data-width=\"700\" data-height=\"700\" data-thickness=\".3\" data-cursor=true>\n        </div>\n        <div style=\"clear:both\"></div>\n        <div style=\"padding:30px; margin-top:30px;\">\n            <p style=\"font-size:20px;\">jQuery Knob is &copy; 2012 Anthony Terrien and dual licensed under the MIT or GPL licenses.</p>\n        </div>\n    </body>\n</html>"
  },
  {
    "path": "style/lib/jQuery-Knob/js/jquery.knob.js",
    "content": "/*!jQuery Knob*/\n/**\n * Downward compatible, touchable dial\n *\n * Version: 1.2.0 (15/07/2012)\n * Requires: jQuery v1.7+\n *\n * Copyright (c) 2012 Anthony Terrien\n * Under MIT and GPL licenses:\n *  http://www.opensource.org/licenses/mit-license.php\n *  http://www.gnu.org/licenses/gpl.html\n *\n * Thanks to vor, eskimoblood, spiffistan, FabrizioC\n */\n(function($) {\n\n    /**\n     * Kontrol library\n     */\n    \"use strict\";\n\n    /**\n     * Definition of globals and core\n     */\n    var k = {}, // kontrol\n        max = Math.max,\n        min = Math.min;\n\n    k.c = {};\n    k.c.d = $(document);\n    k.c.t = function (e) {\n        return e.originalEvent.touches.length - 1;\n    };\n\n    /**\n     * Kontrol Object\n     *\n     * Definition of an abstract UI control\n     *\n     * Each concrete component must call this one.\n     * <code>\n     * k.o.call(this);\n     * </code>\n     */\n    k.o = function () {\n        var s = this;\n\n        this.o = null; // array of options\n        this.$ = null; // jQuery wrapped element\n        this.i = null; // mixed HTMLInputElement or array of HTMLInputElement\n        this.g = null; // deprecated 2D graphics context for 'pre-rendering'\n        this.v = null; // value ; mixed array or integer\n        this.cv = null; // change value ; not commited value\n        this.x = 0; // canvas x position\n        this.y = 0; // canvas y position\n        this.w = 0; // canvas width\n        this.h = 0; // canvas height\n        this.$c = null; // jQuery canvas element\n        this.c = null; // rendered canvas context\n        this.t = 0; // touches index\n        this.isInit = false;\n        this.fgColor = null; // main color\n        this.pColor = null; // previous color\n        this.dH = null; // draw hook\n        this.cH = null; // change hook\n        this.eH = null; // cancel hook\n        this.rH = null; // release hook\n        this.scale = 1; // scale factor\n        this.relative = false;\n        this.relativeWidth = false;\n        this.relativeHeight = false;\n        this.$div = null; // component div\n\n        this.run = function () {\n            var cf = function (e, conf) {\n                var k;\n                for (k in conf) {\n                    s.o[k] = conf[k];\n                }\n                s.init();\n                s._configure()\n                 ._draw();\n            };\n\n            if(this.$.data('kontroled')) return;\n            this.$.data('kontroled', true);\n\n            this.extend();\n            this.o = $.extend(\n                {\n                    // Config\n                    min : this.$.data('min') || 0,\n                    max : this.$.data('max') || 100,\n                    stopper : true,\n                    readOnly : this.$.data('readonly') || (this.$.attr('readonly') == 'readonly'),\n\n                    // UI\n                    cursor : (this.$.data('cursor') === true && 30)\n                                || this.$.data('cursor')\n                                || 0,\n                    thickness : (\n                                this.$.data('thickness')\n                                && Math.max(Math.min(this.$.data('thickness'), 1), 0.01)\n                                )\n                                || 0.35,\n                    lineCap : this.$.data('linecap') || 'butt',\n                    width : this.$.data('width') || 200,\n                    height : this.$.data('height') || 200,\n                    displayInput : this.$.data('displayinput') == null || this.$.data('displayinput'),\n                    displayPrevious : this.$.data('displayprevious'),\n                    fgColor : this.$.data('fgcolor') || '#87CEEB',\n                    inputColor: this.$.data('inputcolor'),\n                    font: this.$.data('font') || 'Arial',\n                    fontWeight: this.$.data('font-weight') || 'bold',\n                    inline : false,\n                    step : this.$.data('step') || 1,\n\n                    // Hooks\n                    draw : null, // function () {}\n                    change : null, // function (value) {}\n                    cancel : null, // function () {}\n                    release : null, // function (value) {}\n                    error : null // function () {}\n                }, this.o\n            );\n\n            // finalize options\n            if(!this.o.inputColor) {\n                this.o.inputColor = this.o.fgColor;\n            }\n\n            // routing value\n            if(this.$.is('fieldset')) {\n\n                // fieldset = array of integer\n                this.v = {};\n                this.i = this.$.find('input')\n                this.i.each(function(k) {\n                    var $this = $(this);\n                    s.i[k] = $this;\n                    s.v[k] = $this.val();\n\n                    $this.bind(\n                        'change'\n                        , function () {\n                            var val = {};\n                            val[k] = $this.val();\n                            s.val(val);\n                        }\n                    );\n                });\n                this.$.find('legend').remove();\n\n            } else {\n\n                // input = integer\n                this.i = this.$;\n                this.v = this.$.val();\n                (this.v == '') && (this.v = this.o.min);\n\n                this.$.bind(\n                    'change'\n                    , function () {\n                        s.val(s._validate(s.$.val()));\n                    }\n                );\n\n            }\n\n            (!this.o.displayInput) && this.$.hide();\n\n            // adds needed DOM elements (canvas, div)\n            this.$c = $(document.createElement('canvas'));\n            if (typeof G_vmlCanvasManager !== 'undefined') {\n              G_vmlCanvasManager.initElement(this.$c[0]);\n            }\n            this.c = this.$c[0].getContext ? this.$c[0].getContext('2d') : null;\n            if (!this.c) {\n                this.o.error && this.o.error();\n                return;\n            }\n\n            // hdpi support\n            this.scale = (window.devicePixelRatio || 1) /\n                        (\n                            this.c.webkitBackingStorePixelRatio ||\n                            this.c.mozBackingStorePixelRatio ||\n                            this.c.msBackingStorePixelRatio ||\n                            this.c.oBackingStorePixelRatio ||\n                            this.c.backingStorePixelRatio || 1\n                        );\n\n            // detects relative width / height\n            this.relativeWidth = ((this.o.width % 1 !== 0)\n                                    && this.o.width.indexOf('%'));\n            this.relativeHeight = ((this.o.height % 1 !== 0)\n                                    && this.o.height.indexOf('%'));\n\n            this.relative = (this.relativeWidth || this.relativeHeight);\n\n            // wraps all elements in a div\n            this.$div = $('<div style=\"'\n                        + (this.o.inline ? 'display:inline;' : '')\n                        + '\"></div>');\n\n            this.$.wrap(this.$div).before(this.$c);\n            this.$div = this.$.parent();\n\n            // computes size and carves the component\n            this._carve();\n\n            // prepares props for transaction\n            if (this.v instanceof Object) {\n                this.cv = {};\n                this.copy(this.v, this.cv);\n            } else {\n                this.cv = this.v;\n            }\n\n            // binds configure event\n            this.$\n                .bind(\"configure\", cf)\n                .parent()\n                .bind(\"configure\", cf);\n\n            // finalize init\n            this._listen()\n                ._configure()\n                ._xy()\n                .init();\n\n            this.isInit = true;\n\n            // the most important !\n            this._draw();\n\n            return this;\n        };\n\n        this._carve = function() {\n            if(this.relative) {\n                var w = this.relativeWidth\n                            ? this.$div.parent().width()\n                                * parseInt(this.o.width) / 100\n                            : this.$div.parent().width(),\n                    h = this.relativeHeight\n                            ? this.$div.parent().height()\n                                * parseInt(this.o.height) / 100\n                            : this.$div.parent().height();\n\n                // apply relative\n                this.w = this.h = Math.min(w, h);\n            } else {\n                this.w = this.o.width;\n                this.h = this.o.height;\n            }\n\n            // finalize div\n            this.$div.css({\n                'width': this.w + 'px',\n                'height': this.h + 'px'\n            });\n\n            // finalize canvas with computed width\n            this.$c.attr({\n                width: this.w,\n                height: this.h\n            });\n\n            // scaling\n            if (this.scale !== 1) {\n                this.$c[0].width = this.$c[0].width * this.scale;\n                this.$c[0].height = this.$c[0].height * this.scale;\n                this.$c.width(this.w);\n                this.$c.height(this.h);\n            }\n\n            return this;\n        }\n\n        this._draw = function () {\n\n            // canvas pre-rendering\n            var d = true;\n\n            s.g = s.c;\n\n            s.clear();\n\n            s.dH\n            && (d = s.dH());\n\n            (d !== false) && s.draw();\n\n        };\n\n        this._touch = function (e) {\n\n            var touchMove = function (e) {\n\n                var v = s.xy2val(\n                            e.originalEvent.touches[s.t].pageX,\n                            e.originalEvent.touches[s.t].pageY\n                            );\n\n                if (v == s.cv) return;\n\n                if (\n                    s.cH\n                    && (s.cH(v) === false)\n                ) return;\n\n\n                s.change(s._validate(v));\n                s._draw();\n            };\n\n            // get touches index\n            this.t = k.c.t(e);\n\n            // First touch\n            touchMove(e);\n\n            // Touch events listeners\n            k.c.d\n                .bind(\"touchmove.k\", touchMove)\n                .bind(\n                    \"touchend.k\"\n                    , function () {\n                        k.c.d.unbind('touchmove.k touchend.k');\n\n                        if (\n                            s.rH\n                            && (s.rH(s.cv) === false)\n                        ) return;\n\n                        s.val(s.cv);\n                    }\n                );\n\n            return this;\n        };\n\n        this._mouse = function (e) {\n\n            var mouseMove = function (e) {\n                var v = s.xy2val(e.pageX, e.pageY);\n                if (v == s.cv) return;\n\n                if (\n                    s.cH\n                    && (s.cH(v) === false)\n                ) return;\n\n                s.change(s._validate(v));\n                s._draw();\n            };\n\n            // First click\n            mouseMove(e);\n\n            // Mouse events listeners\n            k.c.d\n                .bind(\"mousemove.k\", mouseMove)\n                .bind(\n                    // Escape key cancel current change\n                    \"keyup.k\"\n                    , function (e) {\n                        if (e.keyCode === 27) {\n                            k.c.d.unbind(\"mouseup.k mousemove.k keyup.k\");\n\n                            if (\n                                s.eH\n                                && (s.eH() === false)\n                            ) return;\n\n                            s.cancel();\n                        }\n                    }\n                )\n                .bind(\n                    \"mouseup.k\"\n                    , function (e) {\n                        k.c.d.unbind('mousemove.k mouseup.k keyup.k');\n\n                        if (\n                            s.rH\n                            && (s.rH(s.cv) === false)\n                        ) return;\n\n                        s.val(s.cv);\n                    }\n                );\n\n            return this;\n        };\n\n        this._xy = function () {\n            var o = this.$c.offset();\n            this.x = o.left;\n            this.y = o.top;\n            return this;\n        };\n\n        this._listen = function () {\n\n            if (!this.o.readOnly) {\n                this.$c\n                    .bind(\n                        \"mousedown\"\n                        , function (e) {\n                            e.preventDefault();\n                            s._xy()._mouse(e);\n                         }\n                    )\n                    .bind(\n                        \"touchstart\"\n                        , function (e) {\n                            e.preventDefault();\n                            s._xy()._touch(e);\n                         }\n                    );\n\n                if(this.relative) {\n                    $(window).resize(function() {\n                        s._carve()\n                         .init();\n                        s._draw();\n                    });\n                }\n\n                this.listen();\n            } else {\n                this.$.attr('readonly', 'readonly');\n            }\n\n            return this;\n        };\n\n        this._configure = function () {\n\n            // Hooks\n            if (this.o.draw) this.dH = this.o.draw;\n            if (this.o.change) this.cH = this.o.change;\n            if (this.o.cancel) this.eH = this.o.cancel;\n            if (this.o.release) this.rH = this.o.release;\n\n            if (this.o.displayPrevious) {\n                this.pColor = this.h2rgba(this.o.fgColor, \"0.4\");\n                this.fgColor = this.h2rgba(this.o.fgColor, \"0.6\");\n            } else {\n                this.fgColor = this.o.fgColor;\n            }\n\n            return this;\n        };\n\n        this._clear = function () {\n            this.$c[0].width = this.$c[0].width;\n        };\n\n        this._validate = function(v) {\n            return (~~ (((v < 0) ? -0.5 : 0.5) + (v/this.o.step))) * this.o.step;\n        };\n\n        // Abstract methods\n        this.listen = function () {}; // on start, one time\n        this.extend = function () {}; // each time configure triggered\n        this.init = function () {}; // each time configure triggered\n        this.change = function (v) {}; // on change\n        this.val = function (v) {}; // on release\n        this.xy2val = function (x, y) {}; //\n        this.draw = function () {}; // on change / on release\n        this.clear = function () { this._clear(); };\n\n        // Utils\n        this.h2rgba = function (h, a) {\n            var rgb;\n            h = h.substring(1,7)\n            rgb = [parseInt(h.substring(0,2),16)\n                   ,parseInt(h.substring(2,4),16)\n                   ,parseInt(h.substring(4,6),16)];\n            return \"rgba(\" + rgb[0] + \",\" + rgb[1] + \",\" + rgb[2] + \",\" + a + \")\";\n        };\n\n        this.copy = function (f, t) {\n            for (var i in f) { t[i] = f[i]; }\n        };\n    };\n\n\n    /**\n     * k.Dial\n     */\n    k.Dial = function () {\n        k.o.call(this);\n\n        this.startAngle = null;\n        this.xy = null;\n        this.radius = null;\n        this.lineWidth = null;\n        this.cursorExt = null;\n        this.w2 = null;\n        this.PI2 = 2*Math.PI;\n\n        this.extend = function () {\n            this.o = $.extend(\n                {\n                    bgColor : this.$.data('bgcolor') || '#EEEEEE',\n                    angleOffset : this.$.data('angleoffset') || 0,\n                    angleArc : this.$.data('anglearc') || 360,\n                    inline : true\n                }, this.o\n            );\n        };\n\n        this.val = function (v) {\n            if (null != v) {\n                this.cv = this.o.stopper ? max(min(v, this.o.max), this.o.min) : v;\n                this.v = this.cv;\n                this.$.val(this.v);\n                this._draw();\n            } else {\n                return this.v;\n            }\n        };\n\n        this.xy2val = function (x, y) {\n            var a, ret;\n\n            a = Math.atan2(\n                        x - (this.x + this.w2)\n                        , - (y - this.y - this.w2)\n                    ) - this.angleOffset;\n\n            if(this.angleArc != this.PI2 && (a < 0) && (a > -0.5)) {\n                // if isset angleArc option, set to min if .5 under min\n                a = 0;\n            } else if (a < 0) {\n                a += this.PI2;\n            }\n\n            ret = ~~ (0.5 + (a * (this.o.max - this.o.min) / this.angleArc))\n                    + this.o.min;\n\n            this.o.stopper\n            && (ret = max(min(ret, this.o.max), this.o.min));\n\n            return ret;\n        };\n\n        this.listen = function () {\n            // bind MouseWheel\n            var s = this,\n                mw = function (e) {\n                            e.preventDefault();\n                            var ori = e.originalEvent\n                                ,deltaX = ori.detail || ori.wheelDeltaX\n                                ,deltaY = ori.detail || ori.wheelDeltaY\n                                ,v = parseInt(s.$.val()) + (deltaX>0 || deltaY>0 ? s.o.step : deltaX<0 || deltaY<0 ? -s.o.step : 0);\n\n                            if (\n                                s.cH\n                                && (s.cH(v) === false)\n                            ) return;\n\n                            s.val(v);\n                        }\n                , kval, to, m = 1, kv = {37:-s.o.step, 38:s.o.step, 39:s.o.step, 40:-s.o.step};\n\n            this.$\n                .bind(\n                    \"keydown\"\n                    ,function (e) {\n                        var kc = e.keyCode;\n\n                        // numpad support\n                        if(kc >= 96 && kc <= 105) {\n                            kc = e.keyCode = kc - 48;\n                        }\n\n                        kval = parseInt(String.fromCharCode(kc));\n\n                        if (isNaN(kval)) {\n\n                            (kc !== 13)         // enter\n                            && (kc !== 8)       // bs\n                            && (kc !== 9)       // tab\n                            && (kc !== 189)     // -\n                            && e.preventDefault();\n\n                            // arrows\n                            if ($.inArray(kc,[37,38,39,40]) > -1) {\n                                e.preventDefault();\n\n                                var v = parseInt(s.$.val()) + kv[kc] * m;\n\n                                s.o.stopper\n                                && (v = max(min(v, s.o.max), s.o.min));\n\n                                s.change(v);\n                                s._draw();\n\n                                // long time keydown speed-up\n                                to = window.setTimeout(\n                                    function () { m*=2; }\n                                    ,30\n                                );\n                            }\n                        }\n                    }\n                )\n                .bind(\n                    \"keyup\"\n                    ,function (e) {\n                        if (isNaN(kval)) {\n                            if (to) {\n                                window.clearTimeout(to);\n                                to = null;\n                                m = 1;\n                                s.val(s.$.val());\n                            }\n                        } else {\n                            // kval postcond\n                            (s.$.val() > s.o.max && s.$.val(s.o.max))\n                            || (s.$.val() < s.o.min && s.$.val(s.o.min));\n                        }\n\n                    }\n                );\n\n            this.$c.bind(\"mousewheel DOMMouseScroll\", mw);\n            this.$.bind(\"mousewheel DOMMouseScroll\", mw)\n        };\n\n        this.init = function () {\n\n            if (\n                this.v < this.o.min\n                || this.v > this.o.max\n            ) this.v = this.o.min;\n\n            this.$.val(this.v);\n            this.w2 = this.w / 2;\n            this.cursorExt = this.o.cursor / 100;\n            this.xy = this.w2 * this.scale;\n            this.lineWidth = this.xy * this.o.thickness;\n            this.lineCap = this.o.lineCap;\n            this.radius = this.xy - this.lineWidth / 2;\n\n            this.o.angleOffset\n            && (this.o.angleOffset = isNaN(this.o.angleOffset) ? 0 : this.o.angleOffset);\n\n            this.o.angleArc\n            && (this.o.angleArc = isNaN(this.o.angleArc) ? this.PI2 : this.o.angleArc);\n\n            // deg to rad\n            this.angleOffset = this.o.angleOffset * Math.PI / 180;\n            this.angleArc = this.o.angleArc * Math.PI / 180;\n\n            // compute start and end angles\n            this.startAngle = 1.5 * Math.PI + this.angleOffset;\n            this.endAngle = 1.5 * Math.PI + this.angleOffset + this.angleArc;\n\n            var s = max(\n                            String(Math.abs(this.o.max)).length\n                            , String(Math.abs(this.o.min)).length\n                            , 2\n                            ) + 2;\n\n            this.o.displayInput\n                && this.i.css({\n                        'width' : ((this.w / 2 + 4) >> 0) + 'px'\n                        ,'height' : ((this.w / 3) >> 0) + 'px'\n                        ,'position' : 'absolute'\n                        ,'vertical-align' : 'middle'\n                        ,'margin-top' : ((this.w / 3) >> 0) + 'px'\n                        ,'margin-left' : '-' + ((this.w * 3 / 4 + 2) >> 0) + 'px'\n                        ,'border' : 0\n                        ,'background' : 'none'\n                        ,'font' : this.o.fontWeight + ' ' + ((this.w / s) >> 0) + 'px ' + this.o.font\n                        ,'text-align' : 'center'\n                        ,'color' : this.o.inputColor || this.o.fgColor\n                        ,'padding' : '0px'\n                        ,'-webkit-appearance': 'none'\n                        })\n                || this.i.css({\n                        'width' : '0px'\n                        ,'visibility' : 'hidden'\n                        });\n        };\n\n        this.change = function (v) {\n            this.cv = v;\n            this.$.val(v);\n        };\n\n        this.angle = function (v) {\n            return (v - this.o.min) * this.angleArc / (this.o.max - this.o.min);\n        };\n\n        this.draw = function () {\n\n            var c = this.g,                 // context\n                a = this.angle(this.cv)    // Angle\n                , sat = this.startAngle     // Start angle\n                , eat = sat + a             // End angle\n                , sa, ea                    // Previous angles\n                , r = 1;\n\n            c.lineWidth = this.lineWidth;\n\n            c.lineCap = this.lineCap;\n\n            this.o.cursor\n                && (sat = eat - this.cursorExt)\n                && (eat = eat + this.cursorExt);\n\n            c.beginPath();\n                c.strokeStyle = this.o.bgColor;\n                c.arc(this.xy, this.xy, this.radius, this.endAngle, this.startAngle, true);\n            c.stroke();\n\n            if (this.o.displayPrevious) {\n                ea = this.startAngle + this.angle(this.v);\n                sa = this.startAngle;\n                this.o.cursor\n                    && (sa = ea - this.cursorExt)\n                    && (ea = ea + this.cursorExt);\n\n                c.beginPath();\n                    c.strokeStyle = this.pColor;\n                    c.arc(this.xy, this.xy, this.radius, sa, ea, false);\n                c.stroke();\n                r = (this.cv == this.v);\n            }\n\n            c.beginPath();\n                c.strokeStyle = r ? this.o.fgColor : this.fgColor ;\n                c.arc(this.xy, this.xy, this.radius, sat, eat, false);\n            c.stroke();\n        };\n\n        this.cancel = function () {\n            this.val(this.v);\n        };\n    };\n\n    $.fn.dial = $.fn.knob = function (o) {\n        return this.each(\n            function () {\n                var d = new k.Dial();\n                d.o = o;\n                d.$ = $(this);\n                d.run();\n            }\n        ).parent();\n    };\n\n})(jQuery);\n"
  },
  {
    "path": "style/lib/jQuery-Knob/knob.jquery.json",
    "content": "{\n    \"name\": \"knob\",\n    \"title\": \"jQuery Knob\",\n    \"description\": \"Nice, downward compatible, touchable, jQuery dial.\",\n    \"keywords\": [\n        \"dial\",\n        \"button\",\n        \"knob\",\n        \"ui\",\n        \"input\"\n    ],\n    \"version\": \"1.2.2\",\n    \"author\": {\n        \"name\": \"Anthony Terrien\",\n        \"url\": \"https://github.com/aterrien\"\n    },\n    \"maintainers\": [\n        {\n            \"name\": \"Anthony Terrien\",\n            \"email\": \"kontrol@anthonyterrien.com\",\n            \"url\": \"http://anthonyterrien.com/knob\"\n        }\n    ],\n    \"licenses\": [\n        {\n            \"type\": \"MIT\",\n            \"url\": \"http://opensource.org/licenses/mit-license.php\"\n        }\n    ],\n    \"bugs\": \"https://github.com/aterrien/jQuery-Knob/issues\",\n    \"homepage\": \"https://github.com/aterrien/jQuery-Knob\",\n    \"docs\": \"https://github.com/aterrien/jQuery-Knob\",\n    \"download\": \"https://github.com/aterrien/jQuery-Knob/tags\",\n    \"dependencies\": {\n        \"jquery\": \">=1.7.0\"\n    }\n}\n"
  },
  {
    "path": "style/stylesheets/custom.css",
    "content": " \n/*\nDtatable Style\n==============================*/\n\n\n/*select style*/\n\n\n\n.select {\n  position: relative;\n  display: block;\n  height: 3.4em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n\n.select::after {\n  content: '\\25BC';\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding: 0 1em;\n  background: #34495e;\n  pointer-events: none;\n}\n.select:hover::after {\n  color: #f39c12;\n}\n.select::after {\n  -webkit-transition: .25s all ease;\n  -o-transition: .25s all ease;\n  transition: .25s all ease;\n}\n\n.btn_select{\n  position: relative;\n  display: block;\n  height: 3.5em;\n \n  width: 100%;\n  padding: 10px;\n  background: var(--bg-color);\n  color: var(--font-color);\n  overflow: hidden;\n  border-radius: .25em;\n  display: inline-block;\n  display: -webkit-inline-box;\n  border: 1px solid #667780;\n  margin: 0.5em 0em 1em 0em;\n}\n\n\n/*end success alert*/\n .modal-backdrop\n{\n    opacity: 0.8 !important;\n}\n\n    \n.button {\n  background-color: var(--bg-color);\n  color: var(--font-color);\n  border-width: 0px;\n  padding:12px;\n  border-radius: 5px;\n  font-family: \"Trebuchet MS\", Helvetica, sans-serif;\n  margin-top: 10px;\n  margin-bottom: 10px;\n}\n\n\n thead{\n   background-color: var(--bg-color);\n  border-width: 2px;\n  color: var(--font-color);\n  border-style: solid;\n  border-color: var(--bg-color);\n  }\n tbody{\n    background-color: #ffffff;\n }\n\n/*alert*/\n\n/*\nModel Style\n==================\n*/\n\n.model_header{\n   background-color: var(--bg-color);\n   color: var(--font-color);\n}\n\n.model_footer{\n\n}\n.model_body{\n\n}\n\n/*\nBox\n=============================\n*/\n\n.header_box{\n        background-color: #414959;\n        padding: 10px;\n        font-weight: bold;\n        color: #ffffff;\n        font-size: 16px;\n        }\n\n\n.box_body{\n        background-color: #EEEEEE;\n        border: 1px solid #414959;\n        padding: 20px;\n        }\n\n    .head_id{\n        background-color: #414959;\n        padding: 15px;\n        margin-left: 80px; \n    }\n\n    .box_overview{\n        background-color: #ffffff;\n        padding: 15px;\n        font-weight: bold;\n        font-size: 20px;\n    }\n\n    .footer-style{\n        background-color: var(--bg-color);\n        padding: 15px; \n        font-family: sans-serif;\n        font-size: 15px;\n        color: var(--font-color);\n    }\n\n    /*\n start side bar css ==============================================\n    */\n\n.sidebar-toggle-action {\n    color: var(--font-color);\n    font-size: 28px;\n    display: inline-block;\n    padding-left: 5px; \n    cursor: pointer;\n    transition: 0.5s;\n}\n\n\n\n.user-head .inbox-avatar {\n    float: left;\n    width: 65px;\n}\n\n.user-head .inbox-avatar img {\n    border-radius: 50%;\n    border: 2px solid rgba(0,0,0,0.2);\n    box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.2);\n}\n.user-head .user-name {\n    display: inline-block;\n    margin: 0 0 0 0px;\n}\n.user-head .user-name h5 {\n    font-size: 14px;\n    font-weight: 300;\n    margin-bottom: 0;\n    margin-top: 15px;\n}\n.user-head .user-name h5 a {\n    color: #fff;\n}\n.user-head .user-name span a {\n    color: #87e2e7;\n    font-size: 12px;\n}\n\n.name { \n    margin: 0;\n    font-family: \"Ubuntu\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;\n    font-size: 20px;\n    font-weight: 300;\n    color: var(--font-color);\n}\n\n.side-user {\n    display: block;\n    width: 100%;\n    padding: 15px;\n    border-top: none !important;\n    border-bottom: 1px solid rgba(0,0,0,0.1);\n    text-align: center;\n    height: 90px;\n    overflow: hidden;\n}\n\n.btn_toggle{\n    background-color: var(--bg-color);\n    border-width: 1px;\n    border-radius: 10%;\n    width: 50px;\n    padding: 0px;\n    margin-right: -5px;\n}\n\n\n\n.sidebar-nav {\n  width: 240px;\n  position: absolute;\n  overflow: hidden;\n  float: left;\n  border-top: none;\n  border-left: none;\n  margin: 0em;\n}\n\n\n\n.sidebar-nav ul {\n  list-style: none;\n  padding-left: 0px;\n  overflow: hidden;\n}\n.sidebar-nav li a .fa-caret-right {\n  color: var(--font-color);\n  padding-right: .50em;\n}\n\n.sidebar-nav .nav-header {\n  \n  border-bottom: 1px solid rgba(0,0,0,0.1);\n  background: var(--bg-color);\n  border-left: 0px;\n  color: var(--font-color);\n  display: block;\n  font-weight: normal;\n  font-size: 1em;\n  line-height: 2.6em;\n  padding: .50em .5em .5em 1em;\n  margin-bottom: 0px;\n  text-transform: none;\n\n}\n\n.sidebar-nav .nav-header .label {\n  float: right;\n  margin-top: .5em;\n  margin-right: .25em;\n  line-height: 1.5em;\n}\n.sidebar-nav .nav-header:hover,.sidebar-nav .nav-header:focus {\n  background-color: rgba(0,0,0,0.2);\n  color: var(--font-color);\n}\n\n.sidebar-nav .nav-header.collapsed .fa-collapse::before {\n  content: \"\\f078\";\n}\n.sidebar-nav .nav-header .fa-collapse::before {\n  content: \"\\f077\";\n}\n.sidebar-nav .nav-header .fa-collapse,\n.sidebar-nav .nav-header .fa-collapse {\n  float: right;\n  margin-right: 15px;\n}\n.sidebar-nav .nav-header .label {\n  float: right;\n  margin-top: .7em;\n  line-height: 1.5em;\n}\n.sidebar-nav .nav-header i[class*=\"fa-\"] {\n  line-height: 2.25em;\n  padding-right: .75em;\n}\n\n.sidebar-nav .nav-list {\n  margin: 0px;\n  border: 0px;\n  background: rgba(255,255,255,0.2);\n  padding: 0px;\n  color:  var(--font-color);\n\n}\n\n.sidebar-nav .nav-list  > li > a:hover {\n  background-color: rgba(0,0,0,0.2);\n}\n\n.sidebar-nav .nav-list  > .active > a,\n.sidebar-nav .nav-list  > .active > a:hover{\n  text-shadow: none;\n  background-color: rgba(0,0,0,0.2);\n  border-top: 1px solid #1F262D;\n  border-bottom: 1px solid #1F262D;\n}\n.sidebar-nav .nav-list li:first-child.active a {\n  border-top: 0px;\n  background-color: rgba(0,0,0,0.2); \n}\n.sidebar-nav .nav-list li:last-child.active a {\n  border-bottom: 0px;\n}\n.sidebar-nav .nav-list  > li:hover {\n  border-left: 0px solid #8989a6;\n  overflow: hidden;\n}\n.sidebar-nav .nav-list  > li:hover a {\n  margin-left: -4px;\n}\n.sidebar-nav .nav-list  > li:focus a {\n  margin-left: -4px;\n  background-color: rgba(0,0,0,0.2);  \n}\n\n.sidebar-nav .nav-list  > .active {\n  overflow: hidden;\n  border-left: 4px solid #8989a6;\n}\n.sidebar-nav .nav-list  > .active a {\n  margin-left: 4px;\n  background-color: #c3c3d2;\n}\n.sidebar-nav .nav-list  > .active > a:hover {\n  background: #c3c3d2;\n}\n.sidebar-nav .nav-list  > li > a {\n  color:  var(--font-color);\n  padding: 0.8em 1em;\n}\n.sidebar-nav .nav-list.collapse.in {\n  border-bottom: 1px solid #1F262D;\n}\n\n@media (max-width: 768px) {\n  .btn_toggle {\n    float: left;\n  }\n}\n\n    /*end sidebar css*/\n"
  },
  {
    "path": "style/stylesheets/elements.css",
    "content": "/*---------------------------------------------------\n    LESS Elements 0.6\n  ---------------------------------------------------\n    A set of useful LESS mixins by Dmitry Fadeyev\n    Special thanks for mixin suggestions to:\n      Kris Van Herzeele,\n      Benoit Adam,\n      Portenart Emile-Victor,\n      Ryan Faerman\n\n    More info at: http://lesselements.com\n-----------------------------------------------------*/\n"
  },
  {
    "path": "style/stylesheets/isotope.css",
    "content": ".isotope,\n.isotope .isotope-item {\n  /* change duration value to whatever you like */\n  -webkit-transition-duration: 0.8s;\n     -moz-transition-duration: 0.8s;\n      -ms-transition-duration: 0.8s;\n       -o-transition-duration: 0.8s;\n          transition-duration: 0.8s;\n}\n\n.isotope {\n  -webkit-transition-property: height, width;\n     -moz-transition-property: height, width;\n      -ms-transition-property: height, width;\n       -o-transition-property: height, width;\n          transition-property: height, width;\n}\n\n.isotope .isotope-item {\n  -webkit-transition-property: -webkit-transform, opacity;\n     -moz-transition-property:    -moz-transform, opacity;\n      -ms-transition-property:     -ms-transform, opacity;\n       -o-transition-property:      -o-transform, opacity;\n          transition-property:         transform, opacity;\n}\n\n/**** disabling Isotope CSS3 transitions ****/\n\n.isotope.no-transition,\n.isotope.no-transition .isotope-item,\n.isotope .isotope-item.no-transition {\n  -webkit-transition-duration: 0s;\n     -moz-transition-duration: 0s;\n      -ms-transition-duration: 0s;\n       -o-transition-duration: 0s;\n          transition-duration: 0s;\n}\n"
  },
  {
    "path": "style/stylesheets/money_recept.css",
    "content": "\n.money_recept .title_logo{\n\tfont-size: 18px;\n\tfont-weight: bold;\n\tcolor: #2D2D2D;\n}\n.money_recept .comments{\n\tborder-width: 0px 0px 1px 0px;\n\tborder-style:solid;\n\tborder-color: #000000;\n\twidth: 30%;\n\tpadding: 5px;\n\theight: 20px;\n\tmargin-top: 5px;\n}\n.money_recept .title_detail{\n\tfont-size: 14px;\n}\n.money_recept .payment_recept_body{\n  padding: 5px;\n}\n.money_recept .payment_recept_body table{\n\tborder: 0px solid #000000;\n}\n.money_recept .td_name,.td_value{\n\tpadding: 3px 2px 2px 5px;\n\tborder: 0px solid #000000;\n}\n.money_recept .td_name{\n text-align: right;\n font-weight: bold;\n}\n\n.money_recept{\n  width: 100%;\n  height: 357px;\n  \n  background-color: #ffffff;\n  border: 1px solid #2D2D2D;\n  border-radius: 5px;\n  color: #464646;\n  font-size: 14px;\n  font-family: 'Trebuchet MS', Helvetica, sans-serif;\n  margin-bottom: 15px;\n  overflow: hidden;\n}\n.money_recept .barcode_recept{\n\theight: 30px;\n\twidth: 150px;\n}\n.money_recept .money_logo{\n  height: 100px;\n  width: 90px;\n}\n.money_recept .money_recept_header{\n  background: url('http://www.designbolts.com/wp-content/uploads/2012/12/White-Linen-Seamless-Pattern-For-Website-Backgrounds.jpg');\n  border-width: 0px 0px 1px 0px;\n  border-style:  solid;\n  border-color: #2D2D2D;\n  height: 130px;\n  width: 100%;\n  padding: 2px;\n  overflow: hidden;\n}\n.money_recept .left_header{\n  float: left;\n  width:65%;\n  padding: 3px 0px 0px 30px;\n}\n.money_recept .right_header{\n  padding: 20px 15px 15px 15px;\n}\n\n.money_recept .left_body{\n padding-right: 15px;\n  float: left;\n  width:50%;\n}\n.money_recept .right_body{\n\n}"
  },
  {
    "path": "style/stylesheets/premium.css",
    "content": "/*Use of these features requires a premium license.*/\n/*See http://www.portnine.com/bootstrap-themes for details.*/\n/*After purchasing a premium license, the full source code will be available for download.*/\n\n\nh1.page{text-align:center;line-height:1.5em}h2.page{padding-top:2em;margin-bottom:1em;line-height:1.5em}h3.page-tagline{font-size:1.5em;text-align:center;margin:1em 0 2em 0;line-height:1.5em}.pricing.non-spaced.three .product{width:33%}.pricing.non-spaced.four .product{width:25%}.pricing.non-spaced .product{margin-left:-1px;float:left;box-sizing:border-box}.pricing .product{position:relative;z-index:1;margin-bottom:2em;border:1px solid #ccc;overflow:hidden;text-align:center}.pricing .product.popular{font-size:1.2em;margin-top:-1.5em;-webkit-box-shadow:0 0 10px rgba(51,51,51,0.1);-moz-box-shadow:0 0 10px rgba(51,51,51,0.1);box-shadow:0 0 10px rgba(51,51,51,0.1);z-index:2}.pricing .product p{text-align:left;padding:1em 0}.pricing .product h2{font-size:1.25em;padding:.5em .5em;margin-bottom:0;text-shadow:1px 1px 0 #fff;-webkit-border-top-right-radius:5px;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;-webkit-border-top-left-radius:5px;-moz-border-radius-topright:5px;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:5px;border-top-right-radius:5px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:5px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.pricing .product ul{padding-left:0;margin-left:1em;margin-right:1em;margin-bottom:0;list-style:none}.pricing .product ul li{border-bottom:1px solid #eee;padding:1em 0;font-size:.9em}.pricing .product ul li:last-child{border-bottom:0}.pricing .product .price{text-align:center;font-weight:bold}.pricing .product .price.large{font-size:1.25em}.pricing .product .info{font-size:.8em}.pricing .product .call-to-action{text-align:center;margin:0;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:5px;-webkit-border-bottom-left-radius:5px;-webkit-border-top-left-radius:0;-moz-border-radius-topright:0;-moz-border-radius-bottomright:5px;-moz-border-radius-bottomleft:5px;-moz-border-radius-topleft:0;border-top-right-radius:0;border-bottom-right-radius:5px;border-bottom-left-radius:5px;border-top-left-radius:0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.timeline{list-style:none;padding:20px 0 20px;position:relative}.timeline:before{top:0;bottom:0;position:absolute;content:\" \";width:3px;background-color:#eee;left:50%;margin-left:-1.5px}.timeline>li{margin-bottom:20px;position:relative}.timeline>li:before,.timeline>li:after{content:\" \";display:table}.timeline>li:after{clear:both}.timeline>li:before,.timeline>li:after{content:\" \";display:table}.timeline>li:after{clear:both}.timeline>li>.timeline-panel{width:46%;float:left;border:1px solid #d4d4d4;border-radius:2px;padding:20px;position:relative;-webkit-box-shadow:0 1px 6px rgba(0,0,0,0.175);box-shadow:0 1px 6px rgba(0,0,0,0.175)}.timeline>li>.timeline-panel:before{position:absolute;top:26px;right:-15px;display:inline-block;border-top:15px solid transparent;border-left:15px solid #ccc;border-right:0 solid #ccc;border-bottom:15px solid transparent;content:\" \"}.timeline>li>.timeline-panel:after{position:absolute;top:27px;right:-14px;display:inline-block;border-top:14px solid transparent;border-left:14px solid #fff;border-right:0 solid #fff;border-bottom:14px solid transparent;content:\" \"}.timeline>li>.timeline-badge{color:#fff;width:50px;height:50px;line-height:50px;font-size:1.4em;text-align:center;position:absolute;top:16px;left:50%;margin-left:-25px;background-color:#999;z-index:100;border-top-right-radius:50%;border-top-left-radius:50%;border-bottom-right-radius:50%;border-bottom-left-radius:50%}.timeline>li.timeline-inverted>.timeline-panel{float:right}.timeline>li.timeline-inverted>.timeline-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}.timeline>li.timeline-inverted>.timeline-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}.timeline-badge.primary{background-color:#2e6da4 !important}.timeline-badge.success{background-color:#3f903f !important}.timeline-badge.warning{background-color:#f0ad4e !important}.timeline-badge.danger{background-color:#d9534f !important}.timeline-badge.info{background-color:#5bc0de !important}.timeline-title{margin-top:0;color:inherit}.timeline-body>p,.timeline-body>ul{margin-bottom:0}.timeline-body>p+p{margin-top:5px}@media(max-width:767px){ul.timeline:before{left:40px}ul.timeline>li>.timeline-panel{width:calc(10%);width:-moz-calc(10%);width:-webkit-calc(10%)}ul.timeline>li>.timeline-badge{left:15px;margin-left:0;top:16px}ul.timeline>li>.timeline-panel{float:right}ul.timeline>li>.timeline-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}ul.timeline>li>.timeline-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}}.inbox .nav-tabs .glyphicon:not(.no-margin){margin-right:10px}.inbox .tab-pane .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.inbox .tab-pane .list-group-item:last-child{border-bottom-right-radius:0;border-bottom-left-radius:0}.inbox .tab-pane .list-group .checkbox{display:inline-block;margin:0}.inbox .tab-pane .list-group input[type=\"checkbox\"]{margin-top:2px}.inbox .tab-pane .list-group .glyphicon{margin-right:5px}.inbox .tab-pane .list-group .glyphicon:hover{color:#ffbc00}.inbox a.list-group-item.read{color:#222;background-color:#f3f3f3}.inbox hr{margin-top:5px;margin-bottom:10px}.inbox .nav-pills>li>a{padding:5px 10px}.inbox .ad{padding:5px;background:#f5f5f5;color:#222;font-size:80%;border:1px solid #e5e5e5}.inbox .ad a.title{color:#15C;text-decoration:none;font-weight:bold;font-size:110%}.inbox .ad a.url{color:#093;text-decoration:none}img.user{max-width:48px;max-height:48px;border-radius:48px}.color{border:4px solid #fff;box-shadow:1px 1px 0 #ccc,-1px -1px 0 #ccc;box-shadow:inset 4px 4px 0 #fff,inset -4px -4px 0 #fff;border:1px solid #ccc;width:120px;height:120px;display:inline-block}.label.tag{margin-bottom:.5em;display:inline-block;padding:.75em}.theme-1.color{background:#4d5b76}.theme-1 .navbar{background:#4d5b76;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#4d5b76),color-stop(1,#6f80a1));background:-ms-linear-gradient(bottom,#4d5b76,#6f80a1);background:-moz-linear-gradient(center bottom,#4d5b76 0,#6f80a1 100%);background:-o-linear-gradient(bottom,#4d5b76,#6f80a1);filter:progid:dximagetransform.microsoft.gradient(startColorStr='#4d5b76',EndColorStr='#6f80a1');-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorStr='#6f80a1',EndColorStr='#4d5b76')\"}.theme-2.color{background:#444}.theme-2 .navbar{background:#444;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#444),color-stop(1,#6a6a6a));background:-ms-linear-gradient(bottom,#444,#6a6a6a);background:-moz-linear-gradient(center bottom,#444 0,#6a6a6a 100%);background:-o-linear-gradient(bottom,#444,#6a6a6a);filter:progid:dximagetransform.microsoft.gradient(startColorStr='#4d5b76',EndColorStr='#6f80a1');-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorStr='#6a6a6a',EndColorStr='#444444')\"}.theme-3.color{background:#334a78}.theme-3 .navbar{background:#334a78;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#334a78),color-stop(1,#4a6bae));background:-ms-linear-gradient(bottom,#334a78,#4a6bae);background:-moz-linear-gradient(center bottom,#334a78 0,#4a6bae 100%);background:-o-linear-gradient(bottom,#334a78,#4a6bae);filter:progid:dximagetransform.microsoft.gradient(startColorStr='#4d5b76',EndColorStr='#6f80a1');-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorStr='#4a6bae',EndColorStr='#334a78')\"}.theme-4.color{background:#4b648b}.theme-4 .navbar{background:#4b648b;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#4b648b),color-stop(1,#718ab2));background:-ms-linear-gradient(bottom,#4b648b,#718ab2);background:-moz-linear-gradient(center bottom,#4b648b 0,#718ab2 100%);background:-o-linear-gradient(bottom,#4b648b,#718ab2);filter:progid:dximagetransform.microsoft.gradient(startColorStr='#4d5b76',EndColorStr='#6f80a1');-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorStr='#718ab2',EndColorStr='#4b648b')\"}.theme-5.color{background:#534a37}.theme-5 .navbar{background:#534a37;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#534a37),color-stop(1,#817355));background:-ms-linear-gradient(bottom,#534a37,#817355);background:-moz-linear-gradient(center bottom,#534a37 0,#817355 100%);background:-o-linear-gradient(bottom,#534a37,#817355);filter:progid:dximagetransform.microsoft.gradient(startColorStr='#4d5b76',EndColorStr='#6f80a1');-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorStr='#817355',EndColorStr='#534a37')\"}.theme-6.color{background:#252c38}.theme-6 .navbar{background:#252c38;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#252c38),color-stop(1,#435066));background:-ms-linear-gradient(bottom,#252c38,#435066);background:-moz-linear-gradient(center bottom,#252c38 0,#435066 100%);background:-o-linear-gradient(bottom,#252c38,#435066);filter:progid:dximagetransform.microsoft.gradient(startColorStr='#4d5b76',EndColorStr='#6f80a1');-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorStr='#435066',EndColorStr='#252c38')\"}.theme-7.color{background:#777}.theme-7 .navbar{background:#777;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#777),color-stop(1,#9d9d9d));background:-ms-linear-gradient(bottom,#777,#9d9d9d);background:-moz-linear-gradient(center bottom,#777 0,#9d9d9d 100%);background:-o-linear-gradient(bottom,#777,#9d9d9d);filter:progid:dximagetransform.microsoft.gradient(startColorStr='#4d5b76',EndColorStr='#6f80a1');-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorStr='#9d9d9d',EndColorStr='#777777')\"}.theme-8.color{background:#616055}.theme-8 .navbar{background:#616055;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#616055),color-stop(1,#8a8879));background:-ms-linear-gradient(bottom,#616055,#8a8879);background:-moz-linear-gradient(center bottom,#616055 0,#8a8879 100%);background:-o-linear-gradient(bottom,#616055,#8a8879);filter:progid:dximagetransform.microsoft.gradient(startColorStr='#4d5b76',EndColorStr='#6f80a1');-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorStr='#8a8879',EndColorStr='#616055')\"}.comments .media-object{border-radius:48px}.thumb-sm{max-width:48px;max-height:48px}.thumb-md{max-width:128px;max-height:128px}.thumb-md img{max-width:100%}.text-light{color:#666}.pgallery .img-polaroid{padding:4px;border:0}.pgallery img{width:220px}.pgallery .thumbnail{margin:.75em .75em 0 0;border:1px solid #ccc;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box}.pgallery .image-data{background:white;line-height:1.5em;border-top:0;padding:0 5px}.pgallery .image-data i,.pgallery .image-data span{height:1.5em}.pgallery .image-data .title{font-size:.75em}.pgallery img{display:block;-webkit-transition:all .25s linear;-moz-transition:all .25s linear;-ms-transition:all .25s linear;-o-transition:all .25s linear;transition:all .25s linear}.pgallery img:hover{opacity:.8}.img-polaroid{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:1px solid #ddd}\n"
  },
  {
    "path": "style/stylesheets/root/root1.css",
    "content": ":root {\n      --bg-color: #2E363F;\n      --sidebar-hover: #2A2D35;\n      --sidebar-list: #394152;\n      --sidebar-list-hover: #313847;\n       --font-color: #ffffff;\n} "
  },
  {
    "path": "style/stylesheets/root/root2.css",
    "content": ":root {\n      --bg-color: #C11717;\n      --sidebar-hover: #B77474;\n      --sidebar-list: #000000;\n      --sidebar-list-hover: #ffffff;\n      --font-color: #ffffff;\n} "
  },
  {
    "path": "style/stylesheets/root/root3.css",
    "content": ":root {\n      --bg-color: #3152BB;\n      --sidebar-hover: #0731B9;\n      --sidebar-list: #374B8C;\n      --sidebar-list-hover: #2A5A8F;\n      --font-color: #ffffff;\n} "
  },
  {
    "path": "style/stylesheets/theme.css",
    "content": "/*---------------------------------------------------\n    LESS Elements 0.6\n  ---------------------------------------------------\n    A set of useful LESS mixins by Dmitry Fadeyev\n    Special thanks for mixin suggestions to:\n      Kris Van Herzeele,\n      Benoit Adam,\n      Portenart Emile-Victor,\n      Ryan Faerman\n\n    More info at: http://lesselements.com\n-----------------------------------------------------*/\n/*Standard Elements*/\n@import url('custom.css');\n\nbody {\n  background: var(--bg-color);\n  background-position: initial initial;\n  background-repeat: initial initial;\n  margin: 0px;\n  padding: 0px;\n}\nbody,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\na,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n  font-family: 'Open Sans', helvetica, arial, sans-serif;\n}\na:hover {\n  text-decoration: none;\n}\nh1 {\n  color: #4d5b76;\n  font-size: 3em;\n}\nh2 {\n  font-size: 1.75em;\n  color: #3a4a53;\n}\nh3 {\n  font-size: 1.25em;\n}\nhr {\n  border-top: 1px solid #ddd;\n  border-bottom: 1px solid #fff;\n}\nlabel {\n  font-weight: normal;\n}\n\n\n\n \n.text-sm {\n  font-size: .8em;\n}\n.padding-top {\n  padding-top: 1em;\n}\n.padding-bottom {\n  padding-bottom: 1em;\n}\n.padding-right {\n  padding-right: 1em;\n}\n.padding-left {\n  padding-left: 1em;\n}\n.padding-top-small {\n  padding-top: .5em;\n}\n.padding-bottom-small {\n  padding-bottom: .5em;\n}\n.padding-right-small {\n  padding-right: .5em;\n}\n.padding-left-small {\n  padding-left: .5em;\n}\n.label.header-label {\n  display: block;\n  margin-bottom: 1em;\n}\n.label.img-label {\n  display: block;\n  border-top-left-radius: 0px;\n  border-top-right-radius: 0px;\n}\n/*Navbar*/\n.navbar-collapse {\n  position: relative;\n  z-index: 9999;\n}\n\n.navbar-default .navbar-nav > li > a:focus {\n  color: #fff;\n\n}\n.navbar-default .navbar-toggle .icon-bar {\n  color:  var(--font-color);\n  background-color: var(--bg-color);\n}\n.navbar {\n  -webkit-box-shadow: 0px 0px 3px var(--bg-color);\n  -moz-box-shadow: 0px 0px 3px var(--bg-color);\n  box-shadow: 0px 0px 3px var(--bg-color);\n  padding: 0em 1em;\n  margin: 0px;\n  -webkit-border-radius: 0px;\n  -moz-border-radius: 0px;\n  border-radius: 0px;\n  -moz-background-clip: padding;\n  -webkit-background-clip: padding-box;\n  background-clip: padding-box;\n  border: 0px;\n  border-bottom: none;\n  color:  var(--font-color);\n  \n}\n.navbar .nav > li > a {\n  \n  text-shadow: none;\n  background: var(--bg-color);\n  color: var(--font-color);\n}\n.navbar .nav > li:hover {\n background: var(--bg-color);\n  color: var(--font-color);\n  border-radius: 0px;\n}\n.navbar .nav > li > a:hover {\n  background: var(--bg-color);\n  color: var(--font-color);\n}\n.navbar .dropdown-menu a:hover {\n  background: var(--bg-color);\n  color: var(--font-color);\n}\n.navbar .nav li.dropdown.open > .dropdown-toggle {\n  background: var(--bg-color);\n  color: var(--font-color);\n}\n.navbafr {\n  position: relative;\n  z-index: 20;\n  margin: 0px;\n  -webkit-box-shadow: 0px 0px 3px #cccccc;\n  -moz-box-shadow: 0px 0px 3px #cccccc;\n  box-shadow: 0px 0px 3px #cccccc;\n  padding: 0em 1em;\n  margin: 0px;\n  -webkit-border-radius: 0px;\n  -moz-border-radius: 0px;\n  border-radius: 0px;\n  -moz-background-clip: padding;\n  -webkit-background-clip: padding-box;\n  background-clip: padding-box;\n  border: 0px;\n  border-bottom: none;\n}\n.navbafr .brand {\n  text-shadow: none;\n}\n.navbafr .nav {\n  margin-right: -2em;\n}\n.navbafr .nav > li > a {\n  color: #fff;\n  text-shadow: none;\n}\n.navbafr .nav > li:hover {\n  background-color: #444;\n}\n.navbafr .nav > li > a:hover {\n  color: #fff;\n}\n.navbafr .dropdown-menu a:hover {\n  background: none;\n  color: #000;\n}\n.navbafr .nav li.dropdown.open > .dropdown-toggle {\n  background-color: #444;\n  color: #fff;\n}\n.content{\n  padding: 15px 45px 0px 45px;\n  position: relative;\n}\n\n.content,.content_with_sidebar {\n  \n  min-height: 800px;\n  background: #C6C9D1;\n  border-left: 1px solid #cccccc;\n  transition: 0.6s;\n}\n.content_with_sidebar{\n  position: relative;\n  margin-left: 240px;\n  padding: 15px 15px 0px 15px;\n}\n@media (max-width: 768px) {\n  .content_with_sidebar {\n    margin-left: 350px;\n  }\n  \n}\n.header {\n  background: #ffffff;\n  border-bottom: 1px solid #ffffff;\n  border-left: 0px dotted #eeeeee;\n  padding: 3px;\n  margin-top: -14px;\n  margin-left: -16px;\n}\n.header h1 {\n  margin-top: -0px;\n  padding: 0em;\n  line-height: 1em;\n  font-size: 1.0em;\n  font-weight: normal;\n}\n.breadcrumb {\n  -webkit-box-shadow: none;\n  -moz-box-shadow: none;\n  box-shadow: none;\n  -webkit-border-radius: 0px;\n  -moz-border-radius: 0px;\n  border-radius: 0px;\n  -moz-background-clip: padding;\n  -webkit-background-clip: padding-box;\n  background-clip: padding-box;\n  background: #fff;\n  margin-bottom: .5em;\n  margin-bottom: 0em;\n  padding-left: 0em;\n  padding-right: 0em;\n  font-size: .75em;\n}\n.page-content {\n  padding: 1em;\n}\nfooter {\n  padding: 1em;\n  margin-top: 4em;\n  color: #666;\n  font-size: .85em;\n  line-height: 1.3em;\n  margin: 4em -3px 0em -3px;\n}\nfooter hr {\n  margin: 2em -2em;\n}\n.nav-tabs > li {\n  margin-bottom: -2px;\n}\n/*Quick Toolbar*/\n.btn-toolbar.quick-toolbar {\n  float: right;\n}\n.btn-toolbar.quick-toolbar .btn {\n  width: 60px;\n  height: 60px;\n  display: inline-block;\n}\n.btn-toolbar.list-toolbar {\n  margin-bottom: 1em;\n}\n.stats {\n  float: right;\n}\n.stats p.stat {\n  margin: 1em 0em 0em 1em;\n}\n.stats .stat {\n  float: left;\n  margin-left: 1em;\n  line-height: 2.5em;\n  font-size: .9em;\n}\n.stats .stat .label {\n  font-size: 1em;\n}\n.stats .stat .number {\n  font-weight: bold;\n  margin-right: .5em;\n  padding: .5em;\n  border: 1px solid #ccc;\n  background: #eeeeee;\n  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #e3e3e3), color-stop(1, #ffffff));\n  background: -ms-linear-gradient(bottom, #e3e3e3, #ffffff);\n  background: -moz-linear-gradient(center bottom, #e3e3e3 0%, #ffffff 100%);\n  background: -o-linear-gradient(bottom, #e3e3e3, #ffffff);\n  filter: progid:dximagetransform.microsoft.gradient(startColorStr='#e3e3e3', EndColorStr='#ffffff');\n  -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff',EndColorStr='#e3e3e3')\";\n  -webkit-box-shadow: 1px 1px 0px #ffffff;\n  -moz-box-shadow: 1px 1px 0px #ffffff;\n  box-shadow: 1px 1px 0px #ffffff;\n  text-shadow: 1px 1px 1px #fff;\n}\n.list-group-item:first-child {\n  border-top-left-radius: 3px;\n  border-top-right-radius: 3px;\n}\n.list-group-item:last-child {\n  border-bottom-left-radius: 3px;\n  border-bottom-right-radius: 3px;\n}\n/*Blocks*/\n.panel {\n  border: 1px solid #ccc;\n  background: white;\n  border-radius: 3px;\n}\n.dialog .panel {\n  -webkit-box-shadow: 1px 1px 0px #ffffff;\n  -moz-box-shadow: 1px 1px 0px #ffffff;\n  box-shadow: 1px 1px 0px #ffffff;\n}\n.panel .panel-heading {\n  border-bottom: 1px solid #ccc;\n  border-left: none;\n  color: #333;\n  display: block; \n  margin-bottom: 0px;\n  text-shadow: none;\n  text-transform: none;\n  font-size: .85em;\n  line-height: 1.5em;\n  background: #efefef;\n  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #efefef), color-stop(1, #fafafa));\n  background: -ms-linear-gradient(bottom, #efefef, #fafafa);\n  background: -moz-linear-gradient(center bottom, #efefef 0%, #fafafa 100%);\n  background: -o-linear-gradient(bottom, #efefef, #fafafa);\n  filter: progid:dximagetransform.microsoft.gradient(startColorStr='#e3e3e3', EndColorStr='#ffffff');\n  -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorStr='#fafafa',EndColorStr='#efefef')\";\n  box-shadow: inset 0px 1px 1px white;\n}\n.panel .panel-heading:not(.no-collapse):hover {\n  background: #efefef;\n  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #e2e2e2), color-stop(1, #fafafa));\n  background: -ms-linear-gradient(bottom, #e2e2e2, #fafafa);\n  background: -moz-linear-gradient(center bottom, #e2e2e2 0%, #fafafa 100%);\n  background: -o-linear-gradient(bottom, #e2e2e2, #fafafa);\n  filter: progid:dximagetransform.microsoft.gradient(startColorStr='#e3e3e3', EndColorStr='#ffffff');\n  -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorStr='#fafafa',EndColorStr='#e2e2e2')\";\n}\n.panel .panel-heading .panel-icon {\n  border-right: 1px solid #AAA;\n  box-shadow: 1px 0px 1px #fff;\n  border-left: none;\n  text-align: center;\n  padding-left: 1em;\n  line-height: 2em;\n  margin-top: -0.25em;\n}\n.panel .panel-heading .panel-icon a {\n  padding: 0em;\n}\n.panel .panel-heading .panel-icon [class*=\"icon-\"] {\n  padding: 0em 1em;\n  line-height: 1em;\n}\n.panel .panel-heading .panel-icon.pull-right {\n  border-left: 1px solid #AAA;\n  border-right: none;\n  box-shadow: inset 1px 0px 1px #fff;\n}\n.panel .panel-heading .label {\n  float: right;\n  line-height: 1.5em;\n  -webkit-box-shadow: 1px 1px 0px #ffffff;\n  -moz-box-shadow: 1px 1px 0px #ffffff;\n  box-shadow: 1px 1px 0px #ffffff;\n}\np.panel-heading,\na.panel-heading,\n.panel-heading a {\n  color: #505050;\n  display: block;\n  outline: none;\n}\na.panel-heading:hover,\n.panel-heading a:hover {\n  color: #505050;\n}\n.panel-body {\n  min-height: .25em;\n}\n.panel-body h1,\n.panel-body h2,\n.panel-body h3,\n.panel-body h4,\n.panel-body h5,\n.panel-body h6,\n.panel-body table {\n  margin-top: 12px;\n}\n.panel-body.collapse {\n  margin-top: 0em;\n  margin-bottom: 0em;\n}\n/*Navigation*/\n\n/*Buttons*/\n.btn {\n  -webkit-border-radius: 3px;\n  -moz-border-radius: 3px;\n  border-radius: 3px;\n}\n.btn-primary {\n  background-color: var(--bg-color);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(var(--bg-color)), to(var(--bg-color)));\n  border: 1px solid var(--bg-color);\n  font-weight: normal;\n}\n.btn-primary:hover {\n  background-color: var(--bg-color);\n  *background-color: var(--bg-color);\n}\n.btn-danger {\n  background-color: var(--bg-color);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(var(--bg-color)), to(var(--bg-color)));\n  border: 1px solid var(--bg-color);\n  font-weight: normal;\n}\n.btn-danger:hover {\n  background-color: var(--bg-color);\n  *background-color: var(--bg-color);\n}\n.btn-success {\n  background-color: #556665;\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#617473), to(#556665));\n  border: 1px solid #495857;\n  font-weight: normal;\n}\n.btn-success:hover {\n  background-color: #556665;\n  *background-color: #556665;\n}\n.btn-warning {\n  background-color: #aaaa55;\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b366), to(#aaaa55));\n  border: 1px solid #99994d;\n  font-weight: normal;\n}\n.btn-warning:hover {\n  background-color: #aaaa55;\n  *background-color: #aaaa55;\n}\n.well {\n  background-color: #fff;\n  border: 1px solid #ccc;\n  -webkit-box-shadow: 1px 1px 0px #ffffff;\n  -moz-box-shadow: 1px 1px 0px #ffffff;\n  box-shadow: 1px 1px 0px #ffffff;\n  -webkit-border-radius: 0px;\n  -moz-border-radius: 0px;\n  border-radius: 0px;\n  -moz-background-clip: padding;\n  -webkit-background-clip: padding-box;\n  background-clip: padding-box;\n}\n/*Faq*/\n.faq-content ul,\n.faq-content ol {\n  padding-left: 1.5em;\n}\n.faq-content ul .top,\n.faq-content ol .top {\n  float: right;\n  line-height: 1.25em;\n  padding: .75em 0em;\n}\n/*Gallery*/\n.gallery {\n  text-align: center;\n}\n.gallery  > img {\n  margin: .5em .5em .5em .5em;\n}\n.img-polaroid { \n  -webkit-box-shadow: none;\n  -moz-box-shadow: none;\n  box-shadow: none;\n  border: 1px solid #ddd;\n}\n.dialog {\n  margin: 0px auto;\n  margin-top: 5em;\n  float: none;\n  max-width: 400px;\n}\n.dialog input[type=\"checkbox\"] {\n  margin: 0px;\n}\n.dialog .alert {\n  margin-bottom: 1em;\n}\n.dialog form {\n  margin-bottom: 0px;\n}\n.dialog .remember-me {\n  padding: .5em 0em 0em 0em;\n}\n/*input[type=\"text\"], input[type=\"password\"] {*/\n/*.rounded(0px);*/\n/*}*/\n/*Alerts*/\n.alert {\n  -webkit-border-radius: 0px;\n  -moz-border-radius: 0px;\n  border-radius: 0px;\n  -moz-background-clip: padding;\n  -webkit-background-clip: padding-box;\n  background-clip: padding-box;\n  padding: .5em 1em;\n  margin-top: 1em;\n  border: 1px solid #f2e187;\n  background: #f7ecb5;\n  color: #ffffff;\n  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f7ecb5), color-stop(1, #fcf8e3));\n  background: -ms-linear-gradient(bottom, #f7ecb5, #fcf8e3);\n  background: -moz-linear-gradient(center bottom, #f7ecb5 0%, #fcf8e3 100%);\n  background: -o-linear-gradient(bottom, #f7ecb5, #fcf8e3);\n  filter: progid:dximagetransform.microsoft.gradient(startColorStr='#e3e3e3', EndColorStr='#ffffff');\n  -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorStr='#fcf8e3',EndColorStr='#f7ecb5')\";\n}\n.alert .close {\n  right: -0.25em;\n  color: #ffffff;\n}\n.alert.alert-error {\n  border: 1px solid #712d2d;\n  background: #963b3b;\n  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #963b3b), color-stop(1, #b84c4c));\n  background: -ms-linear-gradient(bottom, #963b3b, #b84c4c);\n  background: -moz-linear-gradient(center bottom, #963b3b 0%, #b84c4c 100%);\n  background: -o-linear-gradient(bottom, #963b3b, #b84c4c);\n  filter: progid:dximagetransform.microsoft.gradient(startColorStr='#e3e3e3', EndColorStr='#ffffff');\n  -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorStr='#b84c4c',EndColorStr='#963b3b')\";\n  color: white;\n  text-shadow: none;\n}\n.alert.alert-info {\n  border: 1px solid #85c5e5;\n  background: #afd9ee;\n  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #afd9ee), color-stop(1, #d9edf7));\n  background: -ms-linear-gradient(bottom, #afd9ee, #d9edf7);\n  background: -moz-linear-gradient(center bottom, #afd9ee 0%, #d9edf7 100%);\n  background: -o-linear-gradient(bottom, #afd9ee, #d9edf7);\n  filter: progid:dximagetransform.microsoft.gradient(startColorStr='#e3e3e3', EndColorStr='#ffffff');\n  -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorStr='#d9edf7',EndColorStr='#afd9ee')\";\n}\n.alert.alert-success {\n  border: 1px solid #a3d48e;\n  background: #c1e2b3;\n  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #c1e2b3), color-stop(1, #dff0d8));\n  background: -ms-linear-gradient(bottom, #c1e2b3, #dff0d8);\n  background: -moz-linear-gradient(center bottom, #c1e2b3 0%, #dff0d8 100%);\n  background: -o-linear-gradient(bottom, #c1e2b3, #dff0d8);\n  filter: progid:dximagetransform.microsoft.gradient(startColorStr='#e3e3e3', EndColorStr='#ffffff');\n  -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorStr='#dff0d8',EndColorStr='#c1e2b3')\";\n}\n.knob-container > div {\n  display: block !important;\n  margin: auto;\n}\n/*Error Pages*/\n.http-error {\n  margin-top: 5em;\n  text-align: center;\n  color: #444;\n}\n.http-error h1 {\n  font-size: 5em;\n  line-height: 1em;\n  text-shadow: 1px 1px 0px #fff;\n  color: #444;\n}\n.http-error p {\n  margin: 0px;\n}\n.http-error .info {\n  font-size: 2em;\n  line-height: 1.5em;\n  margin-bottom: 1em;\n}\n.http-error i {\n  font-size: 3em;\n  line-height: .75em;\n  text-shadow: 1px 1px 0px #fff;\n}\n/*Model*/\n.modal {\n  -webkit-border-top-right-radius: 0px;\n  -webkit-border-bottom-right-radius: 0px;\n  -webkit-border-bottom-left-radius: 0px;\n  -webkit-border-top-left-radius: 0px;\n  -moz-border-radius-topright: 0px;\n  -moz-border-radius-bottomright: 0px;\n  -moz-border-radius-bottomleft: 0px;\n  -moz-border-radius-topleft: 0px;\n  border-top-right-radius: 0px;\n  border-bottom-right-radius: 0px;\n  border-bottom-left-radius: 0px;\n  border-top-left-radius: 0px;\n  -moz-background-clip: padding;\n  -webkit-background-clip: padding-box;\n  background-clip: padding-box;\n}\n.modal.small .modal-dialog {\n  width: 370px;\n}\n.modal.small .modal-dialog .modal-body {\n  padding: 1em;\n  margin-top: 1em;\n}\n.modal .modal-icon {\n  vertical-align: middle;\n  font-size: 3em;\n  float: left;\n  margin-right: .25em;\n}\n.modal:focus {\n  outline: none;\n}\n.modal .modal-header{\n  background-color: var(--bg-color); \n  color: var(--font-color);\n}\n\n.modal .modal-header h3 {\n  font-size: .95em;\n  padding: 0em;\n  margin: 0em;\n}\n.modal .modal-footer {\n  padding: .75em;\n}\n.modal .modal-body {\n  padding: 2em;\n  background-color: #ecf0f1\n}\n.modal p {\n  margin: 0em;\n  line-height: 1.5em;\n}\n/*Search*/\n.search-well form {\n  margin: 1em 0em 1.5em 0em;\n}\n.search-well label {\n  margin-bottom: 0px;\n  vertical-align: middle;\n}\n/*Table of Contents*/\n.toc {\n  margin-bottom: 2em;\n}\n.toc h3 {\n  font-size: 1em;\n  margin-top: 0em;\n  padding-top: 0em;\n  line-height: 1.4em;\n}\n.toc h4 {\n  color: #555;\n  font-size: 1em;\n  margin-top: 0em;\n  padding-top: 0em;\n  line-height: 1.4em;\n  margin-bottom: 0em;\n  padding-bottom: 0em;\n}\n/*Dashboard Stats*/\n.stat-widget-container {\n  text-align: center;\n}\n.stat-widget-container .stat-widget {\n  width: 25%;\n  float: left;\n}\n.stat-widget-container .stat-widget .stat-button {\n  position: relative;\n}\n.stat-widget-container .stat-widget .stat-button .title {\n  font-size: 2em;\n  font-weight: bold;\n  color: #999;\n}\n.stat-widget-container .stat-widget .stat-button .detail {\n  font-size: 1.5em;\n  color: #555;\n}\ntable.table.list tr:first-child td {\n  border-top: 0px;\n}\n.table-first-column-check td:first-child,\n.table-first-column-number td:first-child,\n.table-first-column-check th:first-child,\n.table-first-column-number th:first-child {\n  width: 16px;\n  text-align: center;\n}\n/* Tweaks for mobile */\n@media (max-width: 767px) {\n  .content {\n    margin: 0em;\n    padding: 5px 5px 0px 5px;\n  }\n  .sidebar-nav {\n    float: none;\n    width: 360px;\n    position: absolute;\n    overflow: hidden;\n  }\n  h1 {\n    text-align: center;\n  }\n  .stats {\n    text-align: center;\n    margin-top: .5em;\n    margin-bottom: 2em;\n    float: none;\n  }\n  .stats .stat {\n    float: none;\n    display: inline;\n  }\n  .stat-widget-container .stat-widget {\n    font-size: .5em;\n  }\n}\n@media (max-width: 851px) {\n  .stat-widget-container .stat-widget {\n    font-size: .75em;\n  }\n}\n@media (max-width: 767px) {\n  footer hr {\n    margin-left: 0em;\n    margin-right: 0em;\n  }\n  .navbar .nav > li > ul {\n    margin-left: 1.65em;\n  }\n  .navbar .nav > li:hover {\n    background-color: transparent;\n  }\n  .nav > li > a:hover,\n  .nav > li > a:focus {\n    background-color: transparent;\n  }\n  .sidebar-nav {\n    display: block;\n\n  }\n}\n@media (max-width: 604px) {\n  body.http-error {\n    font-size: .5em;\n  }\n  .dialog,\n  .row .dialog {\n    max-width: 300px;\n  }\n}\n.theme-blue .navbar {\n  background: var(--bg-color);\n  border-width: 1px;\n  border-style: dotted;\n  border-color: #1F262D;\n  color: #000000;\n  padding: 5px;\n}\n/* Side notes for calling out things\n-------------------------------------------------- */\n/* Base styles (regardless of theme) */\n.bs-callout {\n  margin: 20px 0;\n  padding: 15px 30px 15px 15px;\n  border-left: 5px solid #eee;\n}\n.bs-callout-right {\n  border-right: 5px solid #eee;\n  border-left: 0px;\n}\n.bs-callout h4 {\n  margin-top: 0;\n}\n.bs-callout p:last-child {\n  margin-bottom: 0;\n}\n.bs-callout code,\n.bs-callout .highlight {\n  background-color: #fff;\n}\n/* Themes for different contexts */\n.bs-callout-danger {\n  background-color: #fcf2f2;\n  border-color: #dFb5b4;\n}\n.bs-callout-warning {\n  background-color: #fefbed;\n  border-color: #f1e7bc;\n}\n.bs-callout-info {\n  background-color: #f0f7fd;\n  border-color: #d0e3f0;\n}\n"
  },
  {
    "path": "subject_action.php",
    "content": "<?php\n\ninclude \"page_action/subject_page_action.php\";\n\n?>"
  },
  {
    "path": "subject_list.php",
    "content": "<?php \n\ninclude \"layout/header.php\";\ninclude \"page/subject/subject_list.php\";\ninclude \"layout/footer.php\";\n\n\n?>"
  },
  {
    "path": "test.php",
    "content": "<link href=\"//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\" rel=\"stylesheet\" id=\"bootstrap-css\">\n<script src=\"//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js\"></script>\n<script src=\"//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>\n<!------ Include the above in your HEAD tag ---------->\n\n<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    <meta name=\"description\" content=\"Responsive sidebar template with sliding effect and dropdown menu based on bootstrap 3\">\n    <title>Sidebar template</title>\n    <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\" integrity=\"sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm\"\n        crossorigin=\"anonymous\">\n    <link href=\"https://use.fontawesome.com/releases/v5.0.6/css/all.css\" rel=\"stylesheet\">\n \n\n</head>\n\n<body>\n<div class=\"page-wrapper chiller-theme toggled\">\n  <a id=\"show-sidebar\" class=\"btn btn-sm btn-dark\" href=\"#\">\n    <i class=\"fas fa-bars\"></i>\n  </a>\n  <nav id=\"sidebar\" class=\"sidebar-wrapper\">\n    <div class=\"sidebar-content\">\n      <div class=\"sidebar-brand\">\n        <a href=\"#\">pro sidebar</a>\n        <div id=\"close-sidebar\">\n          <i class=\"fas fa-times\"></i>\n        </div>\n      </div>\n      <div class=\"sidebar-header\">\n        <div class=\"user-pic\">\n          <img class=\"img-responsive img-rounded\" style=\"height: 70px;\" src=\"https://raw.githubusercontent.com/azouaoui-med/pro-sidebar-template/gh-pages/src/img/user.jpg\"\n            alt=\"User picture\">\n        </div>\n        <div class=\"user-info\">\n          <span class=\"user-name\">Jhon\n            <strong>Smith</strong>\n          </span>\n          <span class=\"user-role\">Administrator</span>\n          <span class=\"user-status\">\n            <i class=\"fa fa-circle\"></i>\n            <span>Online</span>\n          </span>\n        </div>\n      </div>\n      <!-- sidebar-header  -->\n      <div class=\"sidebar-search\">\n        <div>\n          <div class=\"input-group\">\n            <input type=\"text\" class=\"form-control search-menu\" placeholder=\"Search...\">\n            <div class=\"input-group-append\">\n              <span class=\"input-group-text\">\n                <i class=\"fa fa-search\" aria-hidden=\"true\"></i>\n              </span>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- sidebar-search  -->\n      <div class=\"sidebar-menu\">\n        <ul>\n          <li class=\"header-menu\">\n            <span>General</span>\n          </li>\n          <li class=\"sidebar-dropdown\">\n            <a href=\"#\">\n              <i class=\"fa fa-tachometer-alt\"></i>\n              <span>Dashboard</span>\n              <span class=\"badge badge-pill badge-warning\">New</span>\n            </a>\n            <div class=\"sidebar-submenu\">\n              <ul>\n                <li>\n                  <a href=\"#\">Dashboard 1\n                    <span class=\"badge badge-pill badge-success\">Pro</span>\n                  </a>\n                </li>\n                <li>\n                  <a href=\"#\">Dashboard 2</a>\n                </li>\n                <li>\n                  <a href=\"#\">Dashboard 3</a>\n                </li>\n              </ul>\n            </div>\n          </li>\n          <li class=\"sidebar-dropdown\">\n            <a href=\"#\">\n              <i class=\"fa fa-shopping-cart\"></i>\n              <span>E-commerce</span>\n              <span class=\"badge badge-pill badge-danger\">3</span>\n            </a>\n            <div class=\"sidebar-submenu\">\n              <ul>\n                <li>\n                  <a href=\"#\">Products\n\n                  </a>\n                </li>\n                <li>\n                  <a href=\"#\">Orders</a>\n                </li>\n                <li>\n                  <a href=\"#\">Credit cart</a>\n                </li>\n              </ul>\n            </div>\n          </li>\n          <li class=\"sidebar-dropdown\">\n            <a href=\"#\">\n              <i class=\"far fa-gem\"></i>\n              <span>Components</span>\n            </a>\n            <div class=\"sidebar-submenu\">\n              <ul>\n                <li>\n                  <a href=\"#\">General</a>\n                </li>\n                <li>\n                  <a href=\"#\">Panels</a>\n                </li>\n                <li>\n                  <a href=\"#\">Tables</a>\n                </li>\n                <li>\n                  <a href=\"#\">Icons</a>\n                </li>\n                <li>\n                  <a href=\"#\">Forms</a>\n                </li>\n              </ul>\n            </div>\n          </li>\n          <li class=\"sidebar-dropdown\">\n            <a href=\"#\">\n              <i class=\"fa fa-chart-line\"></i>\n              <span>Charts</span>\n            </a>\n            <div class=\"sidebar-submenu\">\n              <ul>\n                <li>\n                  <a href=\"#\">Pie chart</a>\n                </li>\n                <li>\n                  <a href=\"#\">Line chart</a>\n                </li>\n                <li>\n                  <a href=\"#\">Bar chart</a>\n                </li>\n                <li>\n                  <a href=\"#\">Histogram</a>\n                </li>\n              </ul>\n            </div>\n          </li>\n          <li class=\"sidebar-dropdown\">\n            <a href=\"#\">\n              <i class=\"fa fa-globe\"></i>\n              <span>Maps</span>\n            </a>\n            <div class=\"sidebar-submenu\">\n              <ul>\n                <li>\n                  <a href=\"#\">Google maps</a>\n                </li>\n                <li>\n                  <a href=\"#\">Open street map</a>\n                </li>\n              </ul>\n            </div>\n          </li>\n          <li class=\"header-menu\">\n            <span>Extra</span>\n          </li>\n          <li>\n            <a href=\"#\">\n              <i class=\"fa fa-book\"></i>\n              <span>Documentation</span>\n              <span class=\"badge badge-pill badge-primary\">Beta</span>\n            </a>\n          </li>\n          <li>\n            <a href=\"#\">\n              <i class=\"fa fa-calendar\"></i>\n              <span>Calendar</span>\n            </a>\n          </li>\n          <li>\n            <a href=\"#\">\n              <i class=\"fa fa-folder\"></i>\n              <span>Examples</span>\n            </a>\n          </li>\n        </ul>\n      </div>\n      <!-- sidebar-menu  -->\n    </div>\n    <!-- sidebar-content  -->\n    <div class=\"sidebar-footer\">\n      <a href=\"#\">\n        <i class=\"fa fa-bell\"></i>\n        <span class=\"badge badge-pill badge-warning notification\">3</span>\n      </a>\n      <a href=\"#\">\n        <i class=\"fa fa-envelope\"></i>\n        <span class=\"badge badge-pill badge-success notification\">7</span>\n      </a>\n      <a href=\"#\">\n        <i class=\"fa fa-cog\"></i>\n        <span class=\"badge-sonar\"></span>\n      </a>\n      <a href=\"#\">\n        <i class=\"fa fa-power-off\"></i>\n      </a>\n    </div>\n  </nav>\n  <!-- sidebar-wrapper  -->\n  <main class=\"page-content\">\n    <div class=\"container-fluid\">\n      <h2>Pro Sidebar</h2>\n      <hr>\n      <div class=\"row\">\n        <div class=\"form-group col-md-12\">\n          <p>This is a responsive sidebar template with dropdown menu based on bootstrap 4 framework.</p>\n          <p> You can find the complete code on <a href=\"https://github.com/azouaoui-med/pro-sidebar-template\" target=\"_blank\">\n              Github</a>, it contains more themes and background image option</p>\n        </div>\n        <div class=\"form-group col-md-12\">\n          <iframe src=\"https://ghbtns.com/github-btn.html?user=azouaoui-med&repo=pro-sidebar-template&type=star&count=true&size=large\"\n            frameborder=\"0\" scrolling=\"0\" width=\"140px\" height=\"30px\"></iframe>\n          <iframe src=\"https://ghbtns.com/github-btn.html?user=azouaoui-med&repo=pro-sidebar-template&type=fork&count=true&size=large\"\n            frameborder=\"0\" scrolling=\"0\" width=\"140px\" height=\"30px\"></iframe>\n        </div>\n      </div>\n      <h5>More templates</h5>\n      <hr>\n      <div class=\"row\">\n        <div class=\"col-xs-12 col-sm-6 col-md-6 col-lg-4\">          \n          <div class=\"card rounded-0 p-0 shadow-sm\">\n            <img src=\"https://user-images.githubusercontent.com/25878302/53659076-e2204680-3c5a-11e9-8c00-0c10bcd945e6.jpg\" class=\"card-img-top rounded-0\" alt=\"Angular pro sidebar\">\n            <div class=\"card-body text-center\">\n                <h6 class=\"card-title\">Angular Pro Sidebar</h6>\n                <a href=\"https://github.com/azouaoui-med/angular-pro-sidebar\" target=\"_blank\" class=\"btn btn-primary btn-sm\">Github</a>\n                <a href=\"https://azouaoui-med.github.io/angular-pro-sidebar/demo/\" target=\"_blank\" class=\"btn btn-success btn-sm\">Preview</a>\n            </div>\n          </div>          \n        </div>\n                <div class=\"col-xs-12 col-sm-6 col-md-6 col-lg-4\">          \n          <div class=\"card rounded-0 p-0 shadow-sm\">\n            <img src=\"https://user-images.githubusercontent.com/25878302/53659497-016ba380-3c5c-11e9-8dfd-4901ddaf090b.jpg\" class=\"card-img-top rounded-0\" alt=\"Angular pro sidebar\">\n            <div class=\"card-body text-center\">\n                <h6 class=\"card-title\">Angular Dashboard</h6>\n                <a href=\"https://github.com/azouaoui-med/lightning-admin-angular\" target=\"_blank\" class=\"btn btn-primary btn-sm\">Github</a>\n                <a href=\"https://azouaoui-med.github.io/lightning-admin-angular/demo/\" target=\"_blank\" class=\"btn btn-success btn-sm\">Preview</a>\n            </div>\n          </div>          \n        </div>\n      </div>\n    </div>\n\n  </main>\n  <!-- page-content\" -->\n</div>\n<!-- page-wrapper -->\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js\"></script>\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js\" integrity=\"sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q\"\n        crossorigin=\"anonymous\"></script>\n    <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js\" integrity=\"sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl\"\n        crossorigin=\"anonymous\"></script>\n    \n</body>\n\n</html>\n\n<style type=\"text/css\">\n\t@keyframes swing {\n  0% {\n    transform: rotate(0deg);\n  }\n  10% {\n    transform: rotate(10deg);\n  }\n  30% {\n    transform: rotate(0deg);\n  }\n  40% {\n    transform: rotate(-10deg);\n  }\n  50% {\n    transform: rotate(0deg);\n  }\n  60% {\n    transform: rotate(5deg);\n  }\n  70% {\n    transform: rotate(0deg);\n  }\n  80% {\n    transform: rotate(-5deg);\n  }\n  100% {\n    transform: rotate(0deg);\n  }\n}\n\n@keyframes sonar {\n  0% {\n    transform: scale(0.9);\n    opacity: 1;\n  }\n  100% {\n    transform: scale(2);\n    opacity: 0;\n  }\n}\nbody {\n  font-size: 0.9rem;\n}\n.page-wrapper .sidebar-wrapper,\n.sidebar-wrapper .sidebar-brand > a,\n.sidebar-wrapper .sidebar-dropdown > a:after,\n.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:before,\n.sidebar-wrapper ul li a i,\n.page-wrapper .page-content,\n.sidebar-wrapper .sidebar-search input.search-menu,\n.sidebar-wrapper .sidebar-search .input-group-text,\n.sidebar-wrapper .sidebar-menu ul li a,\n#show-sidebar,\n#close-sidebar {\n  -webkit-transition: all 0.3s ease;\n  -moz-transition: all 0.3s ease;\n  -ms-transition: all 0.3s ease;\n  -o-transition: all 0.3s ease;\n  transition: all 0.3s ease;\n}\n\n/*----------------page-wrapper----------------*/\n\n.page-wrapper {\n  height: 100vh;\n}\n\n.page-wrapper .theme {\n  width: 40px;\n  height: 40px;\n  display: inline-block;\n  border-radius: 4px;\n  margin: 2px;\n}\n\n.page-wrapper .theme.chiller-theme {\n  background: #1e2229;\n}\n\n/*----------------toggeled sidebar----------------*/\n\n.page-wrapper.toggled .sidebar-wrapper {\n  left: 0px;\n}\n\n@media screen and (min-width: 768px) {\n  .page-wrapper.toggled .page-content {\n    padding-left: 300px;\n  }\n}\n/*----------------show sidebar button----------------*/\n#show-sidebar {\n  position: fixed;\n  left: 0;\n  top: 10px;\n  border-radius: 0 4px 4px 0px;\n  width: 35px;\n  transition-delay: 0.3s;\n}\n.page-wrapper.toggled #show-sidebar {\n  left: -40px;\n}\n/*----------------sidebar-wrapper----------------*/\n\n.sidebar-wrapper {\n  width: 260px;\n  height: 100%;\n  max-height: 100%;\n  position: fixed;\n  top: 0;\n  left: -300px;\n  z-index: 999;\n}\n\n.sidebar-wrapper ul {\n  list-style-type: none;\n  padding: 0;\n  margin: 0;\n}\n\n.sidebar-wrapper a {\n  text-decoration: none;\n}\n\n/*----------------sidebar-content----------------*/\n\n.sidebar-content {\n  max-height: calc(100% - 30px);\n  height: calc(100% - 30px);\n  overflow-y: auto;\n  position: relative;\n}\n\n.sidebar-content.desktop {\n  overflow-y: hidden;\n}\n\n/*--------------------sidebar-brand----------------------*/\n\n.sidebar-wrapper .sidebar-brand {\n  padding: 10px 20px;\n  display: flex;\n  align-items: center;\n}\n\n.sidebar-wrapper .sidebar-brand > a {\n  text-transform: uppercase;\n  font-weight: bold;\n  flex-grow: 1;\n}\n\n.sidebar-wrapper .sidebar-brand #close-sidebar {\n  cursor: pointer;\n  font-size: 20px;\n}\n/*--------------------sidebar-header----------------------*/\n\n.sidebar-wrapper .sidebar-header {\n  padding: 20px;\n  overflow: hidden;\n}\n\n.sidebar-wrapper .sidebar-header .user-pic {\n  float: left;\n  width: 60px;\n  padding: 2px;\n  border-radius: 12px;\n  margin-right: 15px;\n  overflow: hidden;\n}\n\n.sidebar-wrapper .sidebar-header .user-pic img {\n  object-fit: cover;\n  height: 100%;\n  width: 100%;\n}\n\n.sidebar-wrapper .sidebar-header .user-info {\n  float: left;\n}\n\n.sidebar-wrapper .sidebar-header .user-info > span {\n  display: block;\n}\n\n.sidebar-wrapper .sidebar-header .user-info .user-role {\n  font-size: 12px;\n}\n\n.sidebar-wrapper .sidebar-header .user-info .user-status {\n  font-size: 11px;\n  margin-top: 4px;\n}\n\n.sidebar-wrapper .sidebar-header .user-info .user-status i {\n  font-size: 8px;\n  margin-right: 4px;\n  color: #5cb85c;\n}\n\n/*-----------------------sidebar-search------------------------*/\n\n.sidebar-wrapper .sidebar-search > div {\n  padding: 10px 20px;\n}\n\n/*----------------------sidebar-menu-------------------------*/\n\n.sidebar-wrapper .sidebar-menu {\n  padding-bottom: 10px;\n}\n\n.sidebar-wrapper .sidebar-menu .header-menu span {\n  font-weight: bold;\n  font-size: 14px;\n  padding: 15px 20px 5px 20px;\n  display: inline-block;\n}\n\n.sidebar-wrapper .sidebar-menu ul li a {\n  display: inline-block;\n  width: 100%;\n  text-decoration: none;\n  position: relative;\n  padding: 8px 30px 8px 20px;\n}\n\n.sidebar-wrapper .sidebar-menu ul li a i {\n  margin-right: 10px;\n  font-size: 12px;\n  width: 30px;\n  height: 30px;\n  line-height: 30px;\n  text-align: center;\n  border-radius: 4px;\n}\n\n.sidebar-wrapper .sidebar-menu ul li a:hover > i::before {\n  display: inline-block;\n  animation: swing ease-in-out 0.5s 1 alternate;\n}\n\n.sidebar-wrapper .sidebar-menu .sidebar-dropdown > a:after {\n  font-family: \"Font Awesome 5 Free\";\n  font-weight: 900;\n  content: \"\\f105\";\n  font-style: normal;\n  display: inline-block;\n  font-style: normal;\n  font-variant: normal;\n  text-rendering: auto;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  text-align: center;\n  background: 0 0;\n  position: absolute;\n  right: 15px;\n  top: 14px;\n}\n\n.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu ul {\n  padding: 5px 0;\n}\n\n.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li {\n  padding-left: 25px;\n  font-size: 13px;\n}\n\n.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:before {\n  content: \"\\f111\";\n  font-family: \"Font Awesome 5 Free\";\n  font-weight: 400;\n  font-style: normal;\n  display: inline-block;\n  text-align: center;\n  text-decoration: none;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  margin-right: 10px;\n  font-size: 8px;\n}\n\n.sidebar-wrapper .sidebar-menu ul li a span.label,\n.sidebar-wrapper .sidebar-menu ul li a span.badge {\n  float: right;\n  margin-top: 8px;\n  margin-left: 5px;\n}\n\n.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a .badge,\n.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a .label {\n  float: right;\n  margin-top: 0px;\n}\n\n.sidebar-wrapper .sidebar-menu .sidebar-submenu {\n  display: none;\n}\n\n.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a:after {\n  transform: rotate(90deg);\n  right: 17px;\n}\n\n/*--------------------------side-footer------------------------------*/\n\n.sidebar-footer {\n  position: absolute;\n  width: 100%;\n  bottom: 0;\n  display: flex;\n}\n\n.sidebar-footer > a {\n  flex-grow: 1;\n  text-align: center;\n  height: 30px;\n  line-height: 30px;\n  position: relative;\n}\n\n.sidebar-footer > a .notification {\n  position: absolute;\n  top: 0;\n}\n\n.badge-sonar {\n  display: inline-block;\n  background: #980303;\n  border-radius: 50%;\n  height: 8px;\n  width: 8px;\n  position: absolute;\n  top: 0;\n}\n\n.badge-sonar:after {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 0;\n  border: 2px solid #980303;\n  opacity: 0;\n  border-radius: 50%;\n  width: 100%;\n  height: 100%;\n  animation: sonar 1.5s infinite;\n}\n\n/*--------------------------page-content-----------------------------*/\n\n.page-wrapper .page-content {\n  display: inline-block;\n  width: 100%;\n  padding-left: 0px;\n  padding-top: 20px;\n}\n\n.page-wrapper .page-content > div {\n  padding: 20px 40px;\n}\n\n.page-wrapper .page-content {\n  overflow-x: hidden;\n}\n\n/*------scroll bar---------------------*/\n\n::-webkit-scrollbar {\n  width: 5px;\n  height: 7px;\n}\n::-webkit-scrollbar-button {\n  width: 0px;\n  height: 0px;\n}\n::-webkit-scrollbar-thumb {\n  background: #525965;\n  border: 0px none #ffffff;\n  border-radius: 0px;\n}\n::-webkit-scrollbar-thumb:hover {\n  background: #525965;\n}\n::-webkit-scrollbar-thumb:active {\n  background: #525965;\n}\n::-webkit-scrollbar-track {\n  background: transparent;\n  border: 0px none #ffffff;\n  border-radius: 50px;\n}\n::-webkit-scrollbar-track:hover {\n  background: transparent;\n}\n::-webkit-scrollbar-track:active {\n  background: transparent;\n}\n::-webkit-scrollbar-corner {\n  background: transparent;\n}\n\n\n/*-----------------------------chiller-theme-------------------------------------------------*/\n\n.chiller-theme .sidebar-wrapper {\n    background: #31353D;\n}\n\n.chiller-theme .sidebar-wrapper .sidebar-header,\n.chiller-theme .sidebar-wrapper .sidebar-search,\n.chiller-theme .sidebar-wrapper .sidebar-menu {\n    border-top: 1px solid #3a3f48;\n}\n\n.chiller-theme .sidebar-wrapper .sidebar-search input.search-menu,\n.chiller-theme .sidebar-wrapper .sidebar-search .input-group-text {\n    border-color: transparent;\n    box-shadow: none;\n}\n\n.chiller-theme .sidebar-wrapper .sidebar-header .user-info .user-role,\n.chiller-theme .sidebar-wrapper .sidebar-header .user-info .user-status,\n.chiller-theme .sidebar-wrapper .sidebar-search input.search-menu,\n.chiller-theme .sidebar-wrapper .sidebar-search .input-group-text,\n.chiller-theme .sidebar-wrapper .sidebar-brand>a,\n.chiller-theme .sidebar-wrapper .sidebar-menu ul li a,\n.chiller-theme .sidebar-footer>a {\n    color: #818896;\n}\n\n.chiller-theme .sidebar-wrapper .sidebar-menu ul li:hover>a,\n.chiller-theme .sidebar-wrapper .sidebar-menu .sidebar-dropdown.active>a,\n.chiller-theme .sidebar-wrapper .sidebar-header .user-info,\n.chiller-theme .sidebar-wrapper .sidebar-brand>a:hover,\n.chiller-theme .sidebar-footer>a:hover i {\n    color: #b8bfce;\n}\n\n.page-wrapper.chiller-theme.toggled #close-sidebar {\n    color: #bdbdbd;\n}\n\n.page-wrapper.chiller-theme.toggled #close-sidebar:hover {\n    color: #ffffff;\n}\n\n.chiller-theme .sidebar-wrapper ul li:hover a i,\n.chiller-theme .sidebar-wrapper .sidebar-dropdown .sidebar-submenu li a:hover:before,\n.chiller-theme .sidebar-wrapper .sidebar-search input.search-menu:focus+span,\n.chiller-theme .sidebar-wrapper .sidebar-menu .sidebar-dropdown.active a i {\n    color: #16c7ff;\n    text-shadow:0px 0px 10px rgba(22, 199, 255, 0.5);\n}\n\n.chiller-theme .sidebar-wrapper .sidebar-menu ul li a i,\n.chiller-theme .sidebar-wrapper .sidebar-menu .sidebar-dropdown div,\n.chiller-theme .sidebar-wrapper .sidebar-search input.search-menu,\n.chiller-theme .sidebar-wrapper .sidebar-search .input-group-text {\n    background: #3a3f48;\n}\n\n.chiller-theme .sidebar-wrapper .sidebar-menu .header-menu span {\n    color: #6c7b88;\n}\n\n.chiller-theme .sidebar-footer {\n    background: #3a3f48;\n    box-shadow: 0px -1px 5px #282c33;\n    border-top: 1px solid #464a52;\n}\n\n.chiller-theme .sidebar-footer>a:first-child {\n    border-left: none;\n}\n\n.chiller-theme .sidebar-footer>a:last-child {\n    border-right: none;\n}\n\n</style>\n\n<script type=\"text/javascript\">\n\tjQuery(function ($) {\n\n    $(\".sidebar-dropdown > a\").click(function() {\n  $(\".sidebar-submenu\").slideUp(200);\n  if (\n    $(this)\n      .parent()\n      .hasClass(\"active\")\n  ) {\n    $(\".sidebar-dropdown\").removeClass(\"active\");\n    $(this)\n      .parent()\n      .removeClass(\"active\");\n  } else {\n    $(\".sidebar-dropdown\").removeClass(\"active\");\n    $(this)\n      .next(\".sidebar-submenu\")\n      .slideDown(200);\n    $(this)\n      .parent()\n      .addClass(\"active\");\n  }\n});\n\n$(\"#close-sidebar\").click(function() {\n  $(\".page-wrapper\").removeClass(\"toggled\");\n});\n$(\"#show-sidebar\").click(function() {\n  $(\".page-wrapper\").addClass(\"toggled\");\n});\n\n\n   \n   \n});\n</script>\n\n#3A3F48\n#394853\n\n#31353D"
  },
  {
    "path": "theme.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/theme/theme.php\";\ninclude \"layout/footer.php\";\n\n\n?>"
  },
  {
    "path": "theme_action.php",
    "content": "<?php\n\n\ninclude \"layout/header_script.php\";\n\nif(isset($_POST['update'])){\n  $info['id']=$_POST['update'];\n  $info['theme']=$_POST['theme'];\n\n  $db->sql_action(\"user\",\"update\",$info,\"no\");\n  \n  $info=$theme->get_theme($_POST['theme']);\n  $bg_color=$info['bg_color'];\n  $font_color=$info['font_color'];\n  ?>\n<style type=\"text/css\">\n    :root {\n      --bg-color: <?php echo \"$bg_color\"; ?>;\n      --font-color: <?php echo \"$font_color\"; ?>;\n    } \n </style>   \n<?php\n\n}\n\nelse if(isset($_POST['insert'])){\n  $info['name']=$_POST['name'];\n  $st=\"#\";\n  $info['bg_color']=$st.$_POST['bg_color'];\n  $info['sidebar_hover']=$st.$_POST['sidebar_hover'];\n  $info['sidebar_list']=$st.$_POST['sidebar_list'];\n  $info['sidebar_list_hover']=$st.$_POST['sidebar_list_hover'];\n  $info['font_color']=$st.$_POST['font_color'];\n  $info['date']=date(\"Y-m-d\");\n  $info['added_by']=$login_user['id'];\n  $db->sql_action(\"theme\",\"insert\",$info,\"yes\");\n\n}\n\n\n\n?>"
  },
  {
    "path": "tool/School/School id card/index.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n\t<title>Id</title>\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">\n</head>\n<body class=\"idcardbody\" style=\"margin: 0px;\" >\n\t<div class=\"mainbody\">\n\t\t\n\t\t<div class=\"logo_div\">\n\t\t\t<img src=\"logo_image.png\" class=\"logo\">\t\t\t\n\t\t</div>\t\n\t\t<div class=\"header\">\n\t\t\t<div class=\"school_name\">\n\t\t\t\tMOUNT CONVENT MATRICULATION SCHOOL\n\t\t\t</div>\n\t\t\t<div class=\"school_details\">\n\t\t\t\tAffiliated to CBSE, New Delhi.\n\t\t\t</div>\n\t\t\t<div class=\"school_details\">\n\t\t\t\tSchool Code : 654321\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"id_card\">\n\t\t\t<div style=\"display: inline;\">IDENTITY CARD</div>\n\t\t\t<div style=\"float: right; display: inline; padding-right: 10px;\">2012-2013</div>\n\t\t</div>\n\n\t\t<div class=\"image_div\">\n\t\t\t<img src=\"stdudent.jpg\" class=\"image\">\n\t\t</div>\n\t\t<div class=\"student_details\">\n\t\t\t<table>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"td1\">Student Id</td>\n\t\t\t\t\t<td class=\"td2\" style=\"color: black;\">:</td>\n\t\t\t\t\t<td class=\"td2\">123456</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"td1\">Student Name</td>\n\t\t\t\t\t<td class=\"td2\" style=\"color: black;\">:</td>\n\t\t\t\t\t<td class=\"td2\">Alveena S. Kudhus</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"td1\">Father/Guardian</td>\n\t\t\t\t\t<td class=\"td2\" style=\"color: black;\">:</td>\n\t\t\t\t\t<td class=\"td2\">Salam Kushus</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"td1\">Class</td>\n\t\t\t\t\t<td class=\"td2\" style=\"color: black;\">:</td>\n\t\t\t\t\t<td class=\"td2\">1st 'A'</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"td1\">Emergency Call</td>\n\t\t\t\t\t<td class=\"td2\" style=\"color: black;\">:</td>\n\t\t\t\t\t<td class=\"td2\">97905 47171</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</div>\n\n\t\t<div class=\"signature_div\"></div>\n\t\t<div class=\"signature\">\n\t\t\t<div style=\"float: right;padding-right: 15px;\">signature</div>\n\t\t</div>\n\t\t<div class=\"pri\">\n\t\t\tPrinciple\n\t\t</div>\n\t\t<div class=\"footer\">\n\t\t\t<div style=\"padding: 2px;\">YOUR SLOGAN HERE YOUR SLOGAN HERE</div>\n\t\t</div>\n\t\t\t\n\t</div>\n\n</body>\n</html>"
  },
  {
    "path": "tool/School/School id card/style.css",
    "content": ".mainbody{\n\tposition: relative;\n\tz-index: 1;\n\theight: 260px;\n\twidth: 350px;\n\tborder-color: white;\n\tmargin: 0px;\n\tborder:1px solid blue;\n\tbackground-color: #f2ede8;\n\tborder-radius: 2px;\n\n}\n.logo_div{\n\tposition: absolute;\n\tz-index: 3;\n\theight: 72px;\n\twidth: 70px;\n\tbackground-color: #3498db;\n\tfloat: left;\n\tborder-bottom-right-radius:  10px;\n\tborder-bottom-left-radius: 10px;\n\tdisplay: block;\n\t\n}\n\n.logo{\n\theight: 100%;\n\twidth: 100%;\n}\n.header{\n\tz-index: 3;\n\theight: 60px;\n\twidth: 280px;\n\tbackground-color: #3498db;\n\tfloat: right;\n}\n\n.school_name{\n\tfont-weight: bolder;\n\tcolor: white;\n\tpadding-top: 5px;\n\tfont-size: 12px;\n}\n.school_details{\n\tfont-weight: bolder;\n\tcolor: white;\n\tpadding-top: 5px;\n\tfont-size: 12px;\n\ttext-align: center;\n}\n.id_card{\n\tposition: absolute;\n\tz-index: 2;\n\tleft: 40px;\n\ttop: 60px;\n\twidth: 310px;\n\theight: 22px;\n\tpadding-right: 0px;\n\tbackground-color: #e0d9d9;\n\tborder-bottom-left-radius: 10px;\t\n\ttext-align: center;\n\tfont-weight: bolder;\n}\n\n.image_div{\n\tposition: absolute;\n\tleft: 10px;\n\ttop: 100px;\n\theight: 130px;\n\twidth: 120px;\n\tcolor:white;\n\tz-index: 3;\n\tborder-radius: 10px;\n\tborder:2px solid white;\n}\n\n.image{\n\theight: 130px;\n\twidth: 120px;\n\tborder-radius: 10px;\n}\n\n.student_details{\n\tposition: absolute;\n\tleft: 150px;\n\ttop: 90px;\n\twidth: 200px;\n\theight: 100px;\n}\n.td1{\n\ttext-align: right;\n\tfont-size: 11px;\n\tcolor: black;\n\tfont-weight: bold;\n}\n.td2{\n\ttext-align: left;\n\tfont-size: 11px;\n\tcolor: blue;\n\tfont-weight: bold;\n}\n.signature_div{\n\tposition: absolute;\n\tleft: 0px;\n\ttop: 190px;\n\twidth: 350px;\n\theight: 55px;\n\tbackground-color: #e0d9d9;\n\tz-index: 2;\n}\n.signature{\n\tposition: absolute;\n\tleft: 250px;\n\ttop: 200px;\n\twidth: 100px;\n\tfont-weight: bold;\n\tfont-style: italic;\n\ttext-align: center;\n\tcolor: blue;\n\tfont-size: 15px;\n\theight: 20px;\n\tz-index: 3;\n}\n.pri{\n\tposition: absolute;\n\tleft: 280px;\n\ttop: 223px;\n\tfont-weight: bolder;\n\tfont-size: 15px;\n\tcolor: blue;\n\theight: 25px;\n\tz-index: 3;\n}\n\n.footer{\n\tposition: absolute;\n\ttop: 245px;\n\tleft: 0px;\n\twidth: 350px;\n\theight: 15px;\n\tbackground-color: #3498db;\n\tcolor: white;\n\tfont-size: 10px;\n\tfont-weight: bolder;\n\ttext-align: center;\n}"
  },
  {
    "path": "tool/chart_api/canvas_api.js",
    "content": "/*\n CanvasJS HTML5 & JavaScript Charts - v2.2 GA - https://canvasjs.com/ \n Copyright 2018 fenopix\n\n  --------------------- License Information --------------------\n CanvasJS is a commercial product which requires purchase of license. Without a commercial license you can use it for evaluation purposes for upto 30 days. Please refer to the following link for further details.\n     https://canvasjs.com/license/\n\n*/\n/*eslint-disable*/\n/*jshint ignore:start*/\n(function(){function na(m,s){m.prototype=$a(s.prototype);m.prototype.constructor=m;m.base=s.prototype}function $a(m){function s(){}s.prototype=m;return new s}function Ta(m,s,q){\"millisecond\"===q?m.setMilliseconds(m.getMilliseconds()+1*s):\"second\"===q?m.setSeconds(m.getSeconds()+1*s):\"minute\"===q?m.setMinutes(m.getMinutes()+1*s):\"hour\"===q?m.setHours(m.getHours()+1*s):\"day\"===q?m.setDate(m.getDate()+1*s):\"week\"===q?m.setDate(m.getDate()+7*s):\"month\"===q?m.setMonth(m.getMonth()+1*s):\"year\"===q&&m.setFullYear(m.getFullYear()+\n1*s);return m}function ha(m,s){var q=!1;0>m&&(q=!0,m*=-1);m=\"\"+m;for(s=s?s:1;m.length<s;)m=\"0\"+m;return q?\"-\"+m:m}function Fa(m){if(!m)return m;m=m.replace(/^\\s\\s*/,\"\");for(var s=/\\s/,q=m.length;s.test(m.charAt(--q)););return m.slice(0,q+1)}function Ba(m){m.roundRect=function(m,q,v,y,x,z,S,C){S&&(this.fillStyle=S);C&&(this.strokeStyle=C);\"undefined\"===typeof x&&(x=5);this.lineWidth=z;this.beginPath();this.moveTo(m+x,q);this.lineTo(m+v-x,q);this.quadraticCurveTo(m+v,q,m+v,q+x);this.lineTo(m+v,q+y-\nx);this.quadraticCurveTo(m+v,q+y,m+v-x,q+y);this.lineTo(m+x,q+y);this.quadraticCurveTo(m,q+y,m,q+y-x);this.lineTo(m,q+x);this.quadraticCurveTo(m,q,m+x,q);this.closePath();S&&this.fill();C&&0<z&&this.stroke()}}function Pa(m,s){return m-s}function R(m){var s=((m&16711680)>>16).toString(16),q=((m&65280)>>8).toString(16);m=((m&255)>>0).toString(16);s=2>s.length?\"0\"+s:s;q=2>q.length?\"0\"+q:q;m=2>m.length?\"0\"+m:m;return\"#\"+s+q+m}function ab(m,s){var q=this.length>>>0,v=Number(s)||0,v=0>v?Math.ceil(v):Math.floor(v);\nfor(0>v&&(v+=q);v<q;v++)if(v in this&&this[v]===m)return v;return-1}function y(m){return null===m||\"undefined\"===typeof m}function Ca(m){m.indexOf||(m.indexOf=ab);return m}function bb(m){if(W.fSDec)m[ga(\"`eeDwdouMhrudods\")](ga(\"e`u`@ohl`uhnoHuds`uhnoDoe\"),function(){W._fTWm&&W._fTWm(m)})}function Ua(m,s,q){q=q||\"normal\";var v=m+\"_\"+s+\"_\"+q,y=Va[v];if(isNaN(y)){try{m=\"position:absolute; left:0px; top:-20000px; padding:0px;margin:0px;border:none;white-space:pre;line-height:normal;font-family:\"+m+\"; font-size:\"+\ns+\"px; font-weight:\"+q+\";\";if(!pa){var x=document.body;pa=document.createElement(\"span\");pa.innerHTML=\"\";var z=document.createTextNode(\"Mpgyi\");pa.appendChild(z);x.appendChild(pa)}pa.style.display=\"\";pa.setAttribute(\"style\",m);y=Math.round(pa.offsetHeight);pa.style.display=\"none\"}catch(S){y=Math.ceil(1.1*s)}y=Math.max(y,s);Va[v]=y}return y}function F(m,s){var q=[];if(q={solid:[],shortDash:[3,1],shortDot:[1,1],shortDashDot:[3,1,1,1],shortDashDotDot:[3,1,1,1,1,1],dot:[1,2],dash:[4,2],dashDot:[4,2,1,\n2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2]}[m||\"solid\"])for(var v=0;v<q.length;v++)q[v]*=s;else q=[];return q}function P(m,s,q,v,y){v=v||[];y=y||!1;v.push([m,s,q,y]);return m.addEventListener?(m.addEventListener(s,q,y),q):m.attachEvent?(v=function(s){s=s||window.event;s.preventDefault=s.preventDefault||function(){s.returnValue=!1};s.stopPropagation=s.stopPropagation||function(){s.cancelBubble=!0};q.call(m,s)},m.attachEvent(\"on\"+s,v),v):!1}function Wa(m,s,q){m*=ia;s*=ia;m=\nq.getImageData(m,s,2,2).data;s=!0;for(q=0;4>q;q++)if(m[q]!==m[q+4]|m[q]!==m[q+8]|m[q]!==m[q+12]){s=!1;break}return s?m[0]<<16|m[1]<<8|m[2]:0}function ja(m,s,q){return m in s?s[m]:q[m]}function Ga(m,s,q){if(v&&Xa){var y=m.getContext(\"2d\");La=y.webkitBackingStorePixelRatio||y.mozBackingStorePixelRatio||y.msBackingStorePixelRatio||y.oBackingStorePixelRatio||y.backingStorePixelRatio||1;ia=Qa/La;m.width=s*ia;m.height=q*ia;Qa!==La&&(m.style.width=s+\"px\",m.style.height=q+\"px\",y.scale(ia,ia))}else m.width=\ns,m.height=q}function cb(m){if(!db){var s=!1,q=!1;\"undefined\"===typeof qa.Chart.creditHref?(m.creditHref=ga(\"iuuqr;..b`ow`rkr/bnl.\"),m.creditText=ga(\"B`ow`rKR/bnl\")):(s=m.updateOption(\"creditText\"),q=m.updateOption(\"creditHref\"));if(m.creditHref&&m.creditText){m._creditLink||(m._creditLink=document.createElement(\"a\"),m._creditLink.setAttribute(\"class\",\"canvasjs-chart-credit\"),m._creditLink.setAttribute(\"title\",\"JavaScript Charts\"),m._creditLink.setAttribute(\"style\",\"outline:none;margin:0px;position:absolute;right:2px;top:\"+\n(m.height-14)+\"px;color:dimgrey;text-decoration:none;font-size:11px;font-family: Calibri, Lucida Grande, Lucida Sans Unicode, Arial, sans-serif\"),m._creditLink.setAttribute(\"tabIndex\",-1),m._creditLink.setAttribute(\"target\",\"_blank\"));if(0===m.renderCount||s||q)m._creditLink.setAttribute(\"href\",m.creditHref),m._creditLink.innerHTML=m.creditText;m._creditLink&&m.creditHref&&m.creditText?(m._creditLink.parentElement||m._canvasJSContainer.appendChild(m._creditLink),m._creditLink.style.top=m.height-14+\n\"px\"):m._creditLink.parentElement&&m._canvasJSContainer.removeChild(m._creditLink)}}}function ta(m,s){var q=document.createElement(\"canvas\");q.setAttribute(\"class\",\"canvasjs-chart-canvas\");Ga(q,m,s);v||\"undefined\"===typeof G_vmlCanvasManager||G_vmlCanvasManager.initElement(q);return q}function oa(m,s,q){for(var v in q)s.style[v]=q[v]}function ua(m,s,q){s.getAttribute(\"state\")||(s.style.backgroundColor=m.toolbar.backgroundColor,s.style.color=m.toolbar.fontColor,s.style.border=\"none\",oa(m,s,{WebkitUserSelect:\"none\",\nMozUserSelect:\"none\",msUserSelect:\"none\",userSelect:\"none\"}));s.getAttribute(\"state\")!==q&&(s.setAttribute(\"state\",q),s.setAttribute(\"type\",\"button\"),oa(m,s,{padding:\"5px 12px\",cursor:\"pointer\",\"float\":\"left\",width:\"40px\",height:\"25px\",outline:\"0px\",verticalAlign:\"baseline\",lineHeight:\"0\"}),s.setAttribute(\"title\",m._cultureInfo[q+\"Text\"]),s.innerHTML=\"<img style='height:95%;' src='\"+eb[q].image+\"' alt='\"+m._cultureInfo[q+\"Text\"]+\"' />\")}function Ma(){for(var m=null,s=0;s<arguments.length;s++)m=arguments[s],\nm.style&&(m.style.display=\"inline\")}function va(){for(var m=null,s=0;s<arguments.length;s++)(m=arguments[s])&&m.style&&(m.style.display=\"none\")}function Y(m,s,q,v,x){this._defaultsKey=m;this._themeOptionsKey=s;this._index=v;this.parent=x;this._eventListeners=[];m={};this.theme&&y(s)&&y(v)?m=y(xa[this.theme])?xa.light1:xa[this.theme]:this.parent&&(this.parent.themeOptions&&this.parent.themeOptions[s])&&(null===v?m=this.parent.themeOptions[s]:0<this.parent.themeOptions[s].length&&(v=Math.min(this.parent.themeOptions[s].length-\n1,v),m=this.parent.themeOptions[s][v]));this.themeOptions=m;this.options=q?q:{_isPlaceholder:!0};this.setOptions(this.options,m)}function Da(m,s,q,v,y){\"undefined\"===typeof y&&(y=0);this._padding=y;this._x1=m;this._y1=s;this._x2=q;this._y2=v;this._rightOccupied=this._leftOccupied=this._bottomOccupied=this._topOccupied=this._padding}function ka(m,s){ka.base.constructor.call(this,\"TextBlock\",null,s,null,null);this.ctx=m;this._isDirty=!0;this._wrappedText=null;this._initialize()}function Ra(m,s){Ra.base.constructor.call(this,\n\"Toolbar\",\"toolbar\",s,null,m);this.chart=m;this.canvas=m.canvas;this.ctx=this.chart.ctx;this.optionsName=\"toolbar\"}function Ha(m,s){Ha.base.constructor.call(this,\"Title\",\"title\",s,null,m);this.chart=m;this.canvas=m.canvas;this.ctx=this.chart.ctx;this.optionsName=\"title\";if(y(this.options.margin)&&m.options.subtitles)for(var q=m.options.subtitles,v=0;v<q.length;v++)if((y(q[v].horizontalAlign)&&\"center\"===this.horizontalAlign||q[v].horizontalAlign===this.horizontalAlign)&&(y(q[v].verticalAlign)&&\"top\"===\nthis.verticalAlign||q[v].verticalAlign===this.verticalAlign)&&!q[v].dockInsidePlotArea===!this.dockInsidePlotArea){this.margin=0;break}\"undefined\"===typeof this.options.fontSize&&(this.fontSize=this.chart.getAutoFontSize(this.fontSize));this.height=this.width=null;this.bounds={x1:null,y1:null,x2:null,y2:null}}function Na(m,s,q){Na.base.constructor.call(this,\"Subtitle\",\"subtitles\",s,q,m);this.chart=m;this.canvas=m.canvas;this.ctx=this.chart.ctx;this.optionsName=\"subtitles\";this.isOptionsInArray=!0;\n\"undefined\"===typeof this.options.fontSize&&(this.fontSize=this.chart.getAutoFontSize(this.fontSize));this.height=this.width=null;this.bounds={x1:null,y1:null,x2:null,y2:null}}function Ia(m){var s;m&&Ja[m]&&(s=Ja[m]);Ia.base.constructor.call(this,\"CultureInfo\",null,s,null,null)}var W={},v=!!document.createElement(\"canvas\").getContext,qa={Chart:{width:500,height:400,zoomEnabled:!1,zoomType:\"x\",backgroundColor:\"white\",theme:\"light1\",animationEnabled:!1,animationDuration:1200,dataPointWidth:null,dataPointMinWidth:null,\ndataPointMaxWidth:null,colorSet:\"colorSet1\",culture:\"en\",creditHref:\"\",creditText:\"CanvasJS\",interactivityEnabled:!0,exportEnabled:!1,exportFileName:\"Chart\",rangeChanging:null,rangeChanged:null,publicProperties:{title:\"readWrite\",subtitles:\"readWrite\",toolbar:\"readWrite\",toolTip:\"readWrite\",legend:\"readWrite\",axisX:\"readWrite\",axisY:\"readWrite\",axisX2:\"readWrite\",axisY2:\"readWrite\",data:\"readWrite\",options:\"readWrite\",bounds:\"readOnly\",container:\"readOnly\"}},Title:{padding:0,text:null,verticalAlign:\"top\",\nhorizontalAlign:\"center\",fontSize:20,fontFamily:\"Calibri\",fontWeight:\"normal\",fontColor:\"black\",fontStyle:\"normal\",borderThickness:0,borderColor:\"black\",cornerRadius:0,backgroundColor:v?\"transparent\":null,margin:5,wrap:!0,maxWidth:null,dockInsidePlotArea:!1,publicProperties:{options:\"readWrite\",bounds:\"readOnly\",chart:\"readOnly\"}},Subtitle:{padding:0,text:null,verticalAlign:\"top\",horizontalAlign:\"center\",fontSize:14,fontFamily:\"Calibri\",fontWeight:\"normal\",fontColor:\"black\",fontStyle:\"normal\",borderThickness:0,\nborderColor:\"black\",cornerRadius:0,backgroundColor:null,margin:2,wrap:!0,maxWidth:null,dockInsidePlotArea:!1,publicProperties:{options:\"readWrite\",bounds:\"readOnly\",chart:\"readOnly\"}},Toolbar:{backgroundColor:\"white\",backgroundColorOnHover:\"#2196f3\",borderColor:\"#2196f3\",borderThickness:1,fontColor:\"black\",fontColorOnHover:\"white\",publicProperties:{options:\"readWrite\",chart:\"readOnly\"}},Legend:{name:null,verticalAlign:\"center\",horizontalAlign:\"right\",fontSize:14,fontFamily:\"calibri\",fontWeight:\"normal\",\nfontColor:\"black\",fontStyle:\"normal\",cursor:null,itemmouseover:null,itemmouseout:null,itemmousemove:null,itemclick:null,dockInsidePlotArea:!1,reversed:!1,backgroundColor:v?\"transparent\":null,borderColor:v?\"transparent\":null,borderThickness:0,cornerRadius:0,maxWidth:null,maxHeight:null,markerMargin:null,itemMaxWidth:null,itemWidth:null,itemWrap:!0,itemTextFormatter:null,publicProperties:{options:\"readWrite\",bounds:\"readOnly\",chart:\"readOnly\"}},ToolTip:{enabled:!0,shared:!1,animationEnabled:!0,content:null,\ncontentFormatter:null,reversed:!1,backgroundColor:v?\"rgba(255,255,255,.9)\":\"rgb(255,255,255)\",borderColor:null,borderThickness:2,cornerRadius:5,fontSize:14,fontColor:\"black\",fontFamily:\"Calibri, Arial, Georgia, serif;\",fontWeight:\"normal\",fontStyle:\"italic\",publicProperties:{options:\"readWrite\",chart:\"readOnly\"}},Axis:{minimum:null,maximum:null,viewportMinimum:null,viewportMaximum:null,interval:null,intervalType:null,reversed:!1,logarithmic:!1,logarithmBase:10,title:null,titleFontColor:\"black\",titleFontSize:20,\ntitleFontFamily:\"arial\",titleFontWeight:\"normal\",titleFontStyle:\"normal\",titleWrap:!0,titleMaxWidth:null,titleBackgroundColor:v?\"transparent\":null,titleBorderColor:v?\"transparent\":null,titleBorderThickness:0,titleCornerRadius:0,labelAngle:0,labelFontFamily:\"arial\",labelFontColor:\"black\",labelFontSize:12,labelFontWeight:\"normal\",labelFontStyle:\"normal\",labelAutoFit:!0,labelWrap:!0,labelMaxWidth:null,labelFormatter:null,labelBackgroundColor:v?\"transparent\":null,labelBorderColor:v?\"transparent\":null,\nlabelBorderThickness:0,labelCornerRadius:0,labelPlacement:\"outside\",prefix:\"\",suffix:\"\",includeZero:!0,tickLength:5,tickColor:\"black\",tickThickness:1,lineColor:\"black\",lineThickness:1,lineDashType:\"solid\",gridColor:\"A0A0A0\",gridThickness:0,gridDashType:\"solid\",interlacedColor:v?\"transparent\":null,valueFormatString:null,margin:2,publicProperties:{options:\"readWrite\",stripLines:\"readWrite\",scaleBreaks:\"readWrite\",crosshair:\"readWrite\",bounds:\"readOnly\",chart:\"readOnly\"}},StripLine:{value:null,startValue:null,\nendValue:null,color:\"orange\",opacity:null,thickness:2,lineDashType:\"solid\",label:\"\",labelPlacement:\"inside\",labelAlign:\"far\",labelWrap:!0,labelMaxWidth:null,labelBackgroundColor:null,labelBorderColor:v?\"transparent\":null,labelBorderThickness:0,labelCornerRadius:0,labelFontFamily:\"arial\",labelFontColor:\"orange\",labelFontSize:12,labelFontWeight:\"normal\",labelFontStyle:\"normal\",labelFormatter:null,showOnTop:!1,publicProperties:{options:\"readWrite\",axis:\"readOnly\",bounds:\"readOnly\",chart:\"readOnly\"}},\nScaleBreaks:{autoCalculate:!1,collapsibleThreshold:\"25%\",maxNumberOfAutoBreaks:2,spacing:8,type:\"straight\",color:\"#FFFFFF\",fillOpacity:0.9,lineThickness:2,lineColor:\"#E16E6E\",lineDashType:\"solid\",publicProperties:{options:\"readWrite\",customBreaks:\"readWrite\",axis:\"readOnly\",autoBreaks:\"readOnly\",bounds:\"readOnly\",chart:\"readOnly\"}},Break:{startValue:null,endValue:null,spacing:8,type:\"straight\",color:\"#FFFFFF\",fillOpacity:0.9,lineThickness:2,lineColor:\"#E16E6E\",lineDashType:\"solid\",publicProperties:{options:\"readWrite\",\nscaleBreaks:\"readOnly\",bounds:\"readOnly\",chart:\"readOnly\"}},Crosshair:{enabled:!1,snapToDataPoint:!1,color:\"grey\",opacity:null,thickness:2,lineDashType:\"solid\",label:\"\",labelWrap:!0,labelMaxWidth:null,labelBackgroundColor:v?\"grey\":null,labelBorderColor:v?\"grey\":null,labelBorderThickness:0,labelCornerRadius:0,labelFontFamily:v?\"Calibri, Optima, Candara, Verdana, Geneva, sans-serif\":\"calibri\",labelFontSize:12,labelFontColor:\"#fff\",labelFontWeight:\"normal\",labelFontStyle:\"normal\",labelFormatter:null,\nvalueFormatString:null,publicProperties:{options:\"readWrite\",axis:\"readOnly\",bounds:\"readOnly\",chart:\"readOnly\"}},DataSeries:{name:null,dataPoints:null,label:\"\",bevelEnabled:!1,highlightEnabled:!0,cursor:\"default\",indexLabel:\"\",indexLabelPlacement:\"auto\",indexLabelOrientation:\"horizontal\",indexLabelFontColor:\"black\",indexLabelFontSize:12,indexLabelFontStyle:\"normal\",indexLabelFontFamily:\"Arial\",indexLabelFontWeight:\"normal\",indexLabelBackgroundColor:null,indexLabelLineColor:\"gray\",indexLabelLineThickness:1,\nindexLabelLineDashType:\"solid\",indexLabelMaxWidth:null,indexLabelWrap:!0,indexLabelFormatter:null,lineThickness:2,lineDashType:\"solid\",connectNullData:!1,nullDataLineDashType:\"dash\",color:null,lineColor:null,risingColor:\"white\",fallingColor:\"red\",fillOpacity:null,startAngle:0,radius:null,innerRadius:null,neckHeight:null,neckWidth:null,reversed:!1,valueRepresents:null,linkedDataSeriesIndex:null,whiskerThickness:2,whiskerDashType:\"solid\",whiskerColor:null,whiskerLength:null,stemThickness:2,stemColor:null,\nstemDashType:\"solid\",upperBoxColor:\"white\",lowerBoxColor:\"white\",type:\"column\",xValueType:\"number\",axisXType:\"primary\",axisYType:\"primary\",axisXIndex:0,axisYIndex:0,xValueFormatString:null,yValueFormatString:null,zValueFormatString:null,percentFormatString:null,showInLegend:null,legendMarkerType:null,legendMarkerColor:null,legendText:null,legendMarkerBorderColor:v?\"transparent\":null,legendMarkerBorderThickness:0,markerType:\"circle\",markerColor:null,markerSize:null,markerBorderColor:v?\"transparent\":\nnull,markerBorderThickness:0,mouseover:null,mouseout:null,mousemove:null,click:null,toolTipContent:null,visible:!0,publicProperties:{options:\"readWrite\",axisX:\"readWrite\",axisY:\"readWrite\",chart:\"readOnly\"}},TextBlock:{x:0,y:0,width:null,height:null,maxWidth:null,maxHeight:null,padding:0,angle:0,text:\"\",horizontalAlign:\"center\",fontSize:12,fontFamily:\"calibri\",fontWeight:\"normal\",fontColor:\"black\",fontStyle:\"normal\",borderThickness:0,borderColor:\"black\",cornerRadius:0,backgroundColor:null,textBaseline:\"top\"},\nCultureInfo:{decimalSeparator:\".\",digitGroupSeparator:\",\",zoomText:\"Zoom\",panText:\"Pan\",resetText:\"Reset\",menuText:\"More Options\",saveJPGText:\"Save as JPEG\",savePNGText:\"Save as PNG\",printText:\"Print\",days:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),shortDays:\"Sun Mon Tue Wed Thu Fri Sat\".split(\" \"),months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \")}},\nJa={en:{}},x=v?\"Trebuchet MS, Helvetica, sans-serif\":\"Arial\",Ea=v?\"Impact, Charcoal, sans-serif\":\"Arial\",za={colorSet1:\"#4F81BC #C0504E #9BBB58 #23BFAA #8064A1 #4AACC5 #F79647 #7F6084 #77A033 #33558B #E59566\".split(\" \"),colorSet2:\"#6D78AD #51CDA0 #DF7970 #4C9CA0 #AE7D99 #C9D45C #5592AD #DF874D #52BCA8 #8E7AA3 #E3CB64 #C77B85 #C39762 #8DD17E #B57952 #FCC26C\".split(\" \"),colorSet3:\"#8CA1BC #36845C #017E82 #8CB9D0 #708C98 #94838D #F08891 #0366A7 #008276 #EE7757 #E5BA3A #F2990B #03557B #782970\".split(\" \")},\nJ,fa,T,Z,ea;fa=\"#333333\";T=\"#000000\";J=\"#666666\";ea=Z=\"#000000\";var ba=20,z=14,Sa={colorSet:\"colorSet1\",backgroundColor:\"#FFFFFF\",title:{fontFamily:Ea,fontSize:32,fontColor:fa,fontWeight:\"normal\",verticalAlign:\"top\",margin:5},subtitles:[{fontFamily:Ea,fontSize:z,fontColor:fa,fontWeight:\"normal\",verticalAlign:\"top\",margin:5}],data:[{indexLabelFontFamily:x,indexLabelFontSize:z,indexLabelFontColor:fa,indexLabelFontWeight:\"normal\",indexLabelLineThickness:1}],axisX:[{titleFontFamily:x,titleFontSize:ba,\ntitleFontColor:fa,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:0,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#EEEEEE\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},\nscaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#BBBBBB\",lineThickness:1,lineDashType:\"solid\"}}],axisX2:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:fa,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:0,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,\nlabelFontSize:z,labelFontColor:\"#EEEEEE\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#BBBBBB\",lineThickness:1,lineDashType:\"solid\"}}],axisY:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:fa,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:1,gridColor:J,stripLines:[{labelFontFamily:x,\nlabelFontSize:z,labelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#EEEEEE\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#BBBBBB\",lineThickness:1,lineDashType:\"solid\"}}],axisY2:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:fa,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,\nlabelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:1,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#EEEEEE\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#BBBBBB\",lineThickness:1,\nlineDashType:\"solid\"}}],legend:{fontFamily:x,fontSize:14,fontColor:fa,fontWeight:\"bold\",verticalAlign:\"bottom\",horizontalAlign:\"center\"},toolTip:{fontFamily:x,fontSize:14,fontStyle:\"normal\",cornerRadius:0,borderThickness:1}};T=fa=\"#F5F5F5\";J=\"#FFFFFF\";Z=\"#40BAF1\";ea=\"#F5F5F5\";var ba=20,z=14,Ya={colorSet:\"colorSet2\",title:{fontFamily:x,fontSize:33,fontColor:\"#3A3A3A\",fontWeight:\"bold\",verticalAlign:\"top\",margin:5},subtitles:[{fontFamily:x,fontSize:z,fontColor:\"#3A3A3A\",fontWeight:\"normal\",verticalAlign:\"top\",\nmargin:5}],data:[{indexLabelFontFamily:x,indexLabelFontSize:z,indexLabelFontColor:\"#666666\",indexLabelFontWeight:\"normal\",indexLabelLineThickness:1}],axisX:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:\"#666666\",titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:\"#666666\",labelFontWeight:\"normal\",lineThickness:1,lineColor:\"#BBBBBB\",tickThickness:1,tickColor:\"#BBBBBB\",gridThickness:1,gridColor:\"#BBBBBB\",stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FFA500\",\nlabelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FFA500\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#EEEEEE\",labelFontWeight:\"normal\",labelBackgroundColor:\"black\",color:\"black\",thickness:1,lineDashType:\"dot\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#BBBBBB\",lineThickness:1,lineDashType:\"solid\"}}],axisX2:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:\"#666666\",titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:\"#666666\",\nlabelFontWeight:\"normal\",lineThickness:1,lineColor:\"#BBBBBB\",tickColor:\"#BBBBBB\",tickThickness:1,gridThickness:1,gridColor:\"#BBBBBB\",stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FFA500\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FFA500\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#EEEEEE\",labelFontWeight:\"normal\",labelBackgroundColor:\"black\",color:\"black\",thickness:1,lineDashType:\"dot\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#BBBBBB\",\nlineThickness:1,lineDashType:\"solid\"}}],axisY:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:\"#666666\",titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:\"#666666\",labelFontWeight:\"normal\",lineThickness:0,lineColor:\"#BBBBBB\",tickColor:\"#BBBBBB\",tickThickness:1,gridThickness:1,gridColor:\"#BBBBBB\",stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FFA500\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FFA500\",thickness:1}],crosshair:{labelFontFamily:x,\nlabelFontSize:z,labelFontColor:\"#EEEEEE\",labelFontWeight:\"normal\",labelBackgroundColor:\"black\",color:\"black\",thickness:1,lineDashType:\"dot\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#BBBBBB\",lineThickness:1,lineDashType:\"solid\"}}],axisY2:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:\"#666666\",titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:\"#666666\",labelFontWeight:\"normal\",lineThickness:0,lineColor:\"#BBBBBB\",tickColor:\"#BBBBBB\",tickThickness:1,gridThickness:1,\ngridColor:\"#BBBBBB\",stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FFA500\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FFA500\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#EEEEEE\",labelFontWeight:\"normal\",labelBackgroundColor:\"black\",color:\"black\",thickness:1,lineDashType:\"dot\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#BBBBBB\",lineThickness:1,lineDashType:\"solid\"}}],legend:{fontFamily:x,fontSize:14,fontColor:\"#3A3A3A\",fontWeight:\"bold\",\nverticalAlign:\"bottom\",horizontalAlign:\"center\"},toolTip:{fontFamily:x,fontSize:14,fontStyle:\"normal\",cornerRadius:0,borderThickness:1}};T=fa=\"#F5F5F5\";J=\"#FFFFFF\";Z=\"#40BAF1\";ea=\"#F5F5F5\";ba=20;z=14;Ea={colorSet:\"colorSet12\",backgroundColor:\"#2A2A2A\",title:{fontFamily:Ea,fontSize:32,fontColor:fa,fontWeight:\"normal\",verticalAlign:\"top\",margin:5},subtitles:[{fontFamily:Ea,fontSize:z,fontColor:fa,fontWeight:\"normal\",verticalAlign:\"top\",margin:5}],toolbar:{backgroundColor:\"#666666\",backgroundColorOnHover:\"#FF7372\",\nborderColor:\"#FF7372\",borderThickness:1,fontColor:\"#F5F5F5\",fontColorOnHover:\"#F5F5F5\"},data:[{indexLabelFontFamily:x,indexLabelFontSize:z,indexLabelFontColor:T,indexLabelFontWeight:\"normal\",indexLabelLineThickness:1}],axisX:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:T,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:0,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,\nlabelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#000000\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#777777\",lineThickness:1,lineDashType:\"solid\",color:\"#111111\"}}],axisX2:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:T,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,\nlabelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:0,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#000000\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#777777\",lineThickness:1,\nlineDashType:\"solid\",color:\"#111111\"}}],axisY:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:T,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:1,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#000000\",\nlabelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#777777\",lineThickness:1,lineDashType:\"solid\",color:\"#111111\"}}],axisY2:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:T,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:1,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FF7300\",\nlabelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#000000\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#777777\",lineThickness:1,lineDashType:\"solid\",color:\"#111111\"}}],legend:{fontFamily:x,fontSize:14,fontColor:fa,fontWeight:\"bold\",verticalAlign:\"bottom\",horizontalAlign:\"center\"},toolTip:{fontFamily:x,fontSize:14,\nfontStyle:\"normal\",cornerRadius:0,borderThickness:1,fontColor:T,backgroundColor:\"rgba(0, 0, 0, .7)\"}};J=\"#FFFFFF\";T=fa=\"#FAFAFA\";Z=\"#40BAF1\";ea=\"#F5F5F5\";var ba=20,z=14,xa={light1:Sa,light2:Ya,dark1:Ea,dark2:{colorSet:\"colorSet2\",backgroundColor:\"#32373A\",title:{fontFamily:x,fontSize:32,fontColor:fa,fontWeight:\"normal\",verticalAlign:\"top\",margin:5},subtitles:[{fontFamily:x,fontSize:z,fontColor:fa,fontWeight:\"normal\",verticalAlign:\"top\",margin:5}],toolbar:{backgroundColor:\"#666666\",backgroundColorOnHover:\"#FF7372\",\nborderColor:\"#FF7372\",borderThickness:1,fontColor:\"#F5F5F5\",fontColorOnHover:\"#F5F5F5\"},data:[{indexLabelFontFamily:x,indexLabelFontSize:z,indexLabelFontColor:T,indexLabelFontWeight:\"normal\",indexLabelLineThickness:1}],axisX:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:T,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:0,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,\nlabelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#000000\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#777777\",lineThickness:1,lineDashType:\"solid\",color:\"#111111\"}}],axisX2:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:T,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,\nlabelFontColor:T,labelFontWeight:\"normal\",lineThickness:1,lineColor:J,tickThickness:1,tickColor:J,gridThickness:0,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#000000\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#777777\",lineThickness:1,\nlineDashType:\"solid\",color:\"#111111\"}}],axisY:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:T,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:T,labelFontWeight:\"normal\",lineThickness:0,lineColor:J,tickThickness:1,tickColor:J,gridThickness:1,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FF7300\",labelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#000000\",\nlabelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#777777\",lineThickness:1,lineDashType:\"solid\",color:\"#111111\"}}],axisY2:[{titleFontFamily:x,titleFontSize:ba,titleFontColor:T,titleFontWeight:\"normal\",labelFontFamily:x,labelFontSize:z,labelFontColor:T,labelFontWeight:\"normal\",lineThickness:0,lineColor:J,tickThickness:1,tickColor:J,gridThickness:1,gridColor:J,stripLines:[{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#FF7300\",\nlabelFontWeight:\"normal\",labelBackgroundColor:null,color:\"#FF7300\",thickness:1}],crosshair:{labelFontFamily:x,labelFontSize:z,labelFontColor:\"#000000\",labelFontWeight:\"normal\",labelBackgroundColor:ea,color:Z,thickness:1,lineDashType:\"dash\"},scaleBreaks:{type:\"zigzag\",spacing:\"2%\",lineColor:\"#777777\",lineThickness:1,lineDashType:\"solid\",color:\"#111111\"}}],legend:{fontFamily:x,fontSize:14,fontColor:fa,fontWeight:\"bold\",verticalAlign:\"bottom\",horizontalAlign:\"center\"},toolTip:{fontFamily:x,fontSize:14,\nfontStyle:\"normal\",cornerRadius:0,borderThickness:1,fontColor:T,backgroundColor:\"rgba(0, 0, 0, .7)\"}},theme1:Sa,theme2:Ya,theme3:Sa},U={numberDuration:1,yearDuration:314496E5,monthDuration:2592E6,weekDuration:6048E5,dayDuration:864E5,hourDuration:36E5,minuteDuration:6E4,secondDuration:1E3,millisecondDuration:1,dayOfWeekFromInt:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \")};(function(){W.fSDec=function(m){for(var s=\"\",q=0;q<m.length;q++)s+=String.fromCharCode(Math.ceil(m.length/\n57/5)^m.charCodeAt(q));return s};W.obj={trVs:\"Ush`m!Wdsrhno\",fntStr:\"qy!B`mhcsh-!Mtbhe`!Fs`oed-!Mtbhe`!R`or!Tohbned-!@sh`m-!r`or,rdshg\",txtBl:\"udyuC`rdmhod\",fnt:\"gnou\",fSy:\"ghmmRuxmd\",fTx:\"ghmmUdyu\",grClr:\"fsdx\",cntx:\"buy\",tp:\"unq\"};delete qa[W.fSDec(\"Bi`su\")][W.fSDec(\"bsdehuIsdg\")];W.pro={sCH:qa[W.fSDec(\"Bi`su\")][W.fSDec(\"bsdehuIsdg\")]};W._fTWm=function(m){if(\"undefined\"===typeof W.pro.sCH&&!Za)try{var s=m[W.fSDec(W.obj.cntx)];s[W.fSDec(W.obj.txtBl)]=W.fSDec(W.obj.tp);s[W.fSDec(W.obj.fnt)]=11+W.fSDec(W.obj.fntStr);\ns[W.fSDec(W.obj.fSy)]=W.fSDec(W.obj.grClr);s[W.fSDec(W.obj.fTx)](W.fSDec(W.obj.trVs),2,m.height-11-2)}catch(q){}}})();var Va={},pa=null,Aa=function(){var m=/D{1,4}|M{1,4}|Y{1,4}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|f{1,3}|t{1,2}|T{1,2}|K|z{1,3}|\"[^\"]*\"|'[^']*'/g,s=\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),q=\"Sun Mon Tue Wed Thu Fri Sat\".split(\" \"),v=\"January February March April May June July August September October November December\".split(\" \"),y=\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\nx=/\\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\\d{4})?)\\b/g,z=/[^-+\\dA-Z]/g;return function(S,C,I){var F=I?I.days:s,J=I?I.months:v,R=I?I.shortDays:q,P=I?I.shortMonths:y;I=\"\";var U=!1;S=S&&S.getTime?S:S?new Date(S):new Date;if(isNaN(S))throw SyntaxError(\"invalid date\");\"UTC:\"===C.slice(0,4)&&(C=C.slice(4),U=!0);I=U?\"getUTC\":\"get\";var W=S[I+\"Date\"](),X=S[I+\"Day\"](),Y=S[I+\"Month\"](),T=S[I+\"FullYear\"](),O=S[I+\"Hours\"](),V=S[I+\n\"Minutes\"](),a=S[I+\"Seconds\"](),f=S[I+\"Milliseconds\"](),b=U?0:S.getTimezoneOffset();return I=C.replace(m,function(c){switch(c){case \"D\":return W;case \"DD\":return ha(W,2);case \"DDD\":return R[X];case \"DDDD\":return F[X];case \"M\":return Y+1;case \"MM\":return ha(Y+1,2);case \"MMM\":return P[Y];case \"MMMM\":return J[Y];case \"Y\":return parseInt(String(T).slice(-2));case \"YY\":return ha(String(T).slice(-2),2);case \"YYY\":return ha(String(T).slice(-3),3);case \"YYYY\":return ha(T,4);case \"h\":return O%12||12;case \"hh\":return ha(O%\n12||12,2);case \"H\":return O;case \"HH\":return ha(O,2);case \"m\":return V;case \"mm\":return ha(V,2);case \"s\":return a;case \"ss\":return ha(a,2);case \"f\":return String(f).slice(0,1);case \"ff\":return ha(String(f).slice(0,2),2);case \"fff\":return ha(String(f).slice(0,3),3);case \"t\":return 12>O?\"a\":\"p\";case \"tt\":return 12>O?\"am\":\"pm\";case \"T\":return 12>O?\"A\":\"P\";case \"TT\":return 12>O?\"AM\":\"PM\";case \"K\":return U?\"UTC\":(String(S).match(x)||[\"\"]).pop().replace(z,\"\");case \"z\":return(0<b?\"-\":\"+\")+Math.floor(Math.abs(b)/\n60);case \"zz\":return(0<b?\"-\":\"+\")+ha(Math.floor(Math.abs(b)/60),2);case \"zzz\":return(0<b?\"-\":\"+\")+ha(Math.floor(Math.abs(b)/60),2)+ha(Math.abs(b)%60,2);default:return c.slice(1,c.length-1)}})}}(),V=function(m,s,q){if(null===m)return\"\";if(!isFinite(m))return m;m=Number(m);var v=0>m?!0:!1;v&&(m*=-1);var y=q?q.decimalSeparator:\".\",x=q?q.digitGroupSeparator:\",\",z=\"\";s=String(s);var z=1,S=q=\"\",C=-1,I=[],F=[],J=0,R=0,U=0,P=!1,W=0,S=s.match(/\"[^\"]*\"|'[^']*'|[eE][+-]*[0]+|[,]+[.]|\\u2030|./g);s=null;for(var X=\n0;S&&X<S.length;X++)if(s=S[X],\".\"===s&&0>C)C=X;else{if(\"%\"===s)z*=100;else if(\"\\u2030\"===s){z*=1E3;continue}else if(\",\"===s[0]&&\".\"===s[s.length-1]){z/=Math.pow(1E3,s.length-1);C=X+s.length-1;continue}else\"E\"!==s[0]&&\"e\"!==s[0]||\"0\"!==s[s.length-1]||(P=!0);0>C?(I.push(s),\"#\"===s||\"0\"===s?J++:\",\"===s&&U++):(F.push(s),\"#\"!==s&&\"0\"!==s||R++)}P&&(s=Math.floor(m),S=-Math.floor(Math.log(m)/Math.LN10+1),W=0===m?0:0===s?-(J+S):String(s).length-J,z/=Math.pow(10,W));0>C&&(C=X);z=(m*z).toFixed(R);s=z.split(\".\");\nz=(s[0]+\"\").split(\"\");m=(s[1]+\"\").split(\"\");z&&\"0\"===z[0]&&z.shift();for(P=S=X=R=C=0;0<I.length;)if(s=I.pop(),\"#\"===s||\"0\"===s)if(C++,C===J){var Y=z,z=[];if(\"0\"===s)for(s=J-R-(Y?Y.length:0);0<s;)Y.unshift(\"0\"),s--;for(;0<Y.length;)q=Y.pop()+q,P++,0===P%S&&(X===U&&0<Y.length)&&(q=x+q)}else 0<z.length?(q=z.pop()+q,R++,P++):\"0\"===s&&(q=\"0\"+q,R++,P++),0===P%S&&(X===U&&0<z.length)&&(q=x+q);else\"E\"!==s[0]&&\"e\"!==s[0]||\"0\"!==s[s.length-1]||!/[eE][+-]*[0]+/.test(s)?\",\"===s?(X++,S=P,P=0,0<z.length&&(q=x+q)):\nq=1<s.length&&('\"'===s[0]&&'\"'===s[s.length-1]||\"'\"===s[0]&&\"'\"===s[s.length-1])?s.slice(1,s.length-1)+q:s+q:(s=0>W?s.replace(\"+\",\"\").replace(\"-\",\"\"):s.replace(\"-\",\"\"),q+=s.replace(/[0]+/,function(m){return ha(W,m.length)}));x=\"\";for(I=!1;0<F.length;)s=F.shift(),\"#\"===s||\"0\"===s?0<m.length&&0!==Number(m.join(\"\"))?(x+=m.shift(),I=!0):\"0\"===s&&(x+=\"0\",I=!0):1<s.length&&('\"'===s[0]&&'\"'===s[s.length-1]||\"'\"===s[0]&&\"'\"===s[s.length-1])?x+=s.slice(1,s.length-1):\"E\"!==s[0]&&\"e\"!==s[0]||\"0\"!==s[s.length-\n1]||!/[eE][+-]*[0]+/.test(s)?x+=s:(s=0>W?s.replace(\"+\",\"\").replace(\"-\",\"\"):s.replace(\"-\",\"\"),x+=s.replace(/[0]+/,function(m){return ha(W,m.length)}));q+=(I?y:\"\")+x;return v?\"-\"+q:q},Oa=function(m){var s=0,q=0;m=m||window.event;m.offsetX||0===m.offsetX?(s=m.offsetX,q=m.offsetY):m.layerX||0==m.layerX?(s=m.layerX,q=m.layerY):(s=m.pageX-m.target.offsetLeft,q=m.pageY-m.target.offsetTop);return{x:s,y:q}},Xa=!0,Qa=window.devicePixelRatio||1,La=1,ia=Xa?Qa/La:1,ga=function(m){for(var s=\"\",q=0;q<m.length;q++)s+=\nString.fromCharCode(Math.ceil(m.length/57/5)^m.charCodeAt(q));return s},Za=window&&window[ga(\"mnb`uhno\")]&&window[ga(\"mnb`uhno\")].href&&window[ga(\"mnb`uhno\")].href.indexOf&&(-1!==window[ga(\"mnb`uhno\")].href.indexOf(ga(\"b`ow`rkr/bnl\"))||-1!==window[ga(\"mnb`uhno\")].href.indexOf(ga(\"gdonqhy/bnl\"))||-1!==window[ga(\"mnb`uhno\")].href.indexOf(ga(\"gheemd\"))),db=Za&&-1===window[ga(\"mnb`uhno\")].href.indexOf(ga(\"gheemd\")),eb={reset:{image:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAeCAYAAABJ/8wUAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAPjSURBVFhHxVdJaFNRFP1J/jwkP5MxsbaC1WJEglSxOFAXIsFpVRE3ggi1K90obioRRBA33XXnQnciirhQcMCdorgQxBkXWlREkFKsWkv5npvckp/XnzRpKh64kLw733fffe9L/wrL0+mVUdO8uTSZ3MBL/we2qg4rkuSpodCELstXE46ziVkLQ6FQcGOmeSSq6wd4aV50d3drWjj8kQKZJTUc9kxFGenv79dZrDksTSTWWJp2QYtEPiErysyzdX0LsxsCQR8keX8gs6RHIk8ysdgKFg2G53mhuOPsshTlBjKaFo1g7SqLNoShKLdFXT8huQ/paLSbxatYnc2mHMM4hr18Vi8TIvCmXF3vYrW6cF23gGTOk0M1wA4RKvOmq6vLZRVJipvmSWT6tZ6CSEYkco5V50VPT4+D7RwOqi6RiSZm0fJ+vggSqkeoypdsNmuyelNwbXsbgvkWYMtzDWNvWaijoyOBqE+hVK8abcssUeXQ/YfKyi0gFYv1Ipgfoj34fYGTJLOYJA0ODirok32GLN8XhUWCwSes1hIwBg6LydJ/tEeRRapAdUp+wSAiZchtZZWWgAZ+JNpD8peYXQVK9UwUxNpzOK8pq97kURZhYTCKBwPD7h2zK+js7Myi7D8Fod+0TkMI8+EMAngLGc/WtBFWawkFHFnoj/t9KLgGmF0B3QfkxC+EarxkdhnFYlFLY06USqUwL7UMjICHfh/wOc2sCqhpxGbCkLvL7EUDbF73+6DkmVWB6zi7xUDQSLeYvWjAILvm9zEnkJhlbRcDQZcv6Kg2AipyT/Axw6wKlqVSqxDdjF8Izfod13qURdrG/nxehY+xGh+h0CSzKygGvSNQIcc097BI24jb9hax6kj2E7OrMFX1il+ICEf2NrPbhiXLl+fYl+U7zK4iYdsDcyLGf+ofFlkwcN+s10KhmpuYhhtm0hCLVIFL0MDsqNlDIqy9x2CLs1jL6OvrI7vPRbtohXG6eFmsFnHDGAp6n9AgyuVySRZrGvROxRgIfLXhzjrNYnNBUxNX/dMgRWT1mt4XLDovaApD53E9W3ilNX5M55LJHpRtIsgAvciR4WWcgK2Dvb1YqgXevmF8z2zEBTcKG39EfSKsT9EbhVUaI2FZO+oZIqImxol6j66/hcAu4sSN4vc1ZPoKeoE6RGhYL2YYA+ymOSSi0Z0wWntbtkGUWCvfSDXIxONraZ/FY90KUfNTpfC5spnNLgxoYNnR9RO4F8ofXEHOgogCQE99w+fF2Xw+b7O59rEOsyRqGEfpVoaDMQQ1CZrG46bcM6AZ0C/wPqNfHliqejyTySxh9TqQpL+xmbIlkB9SlAAAAABJRU5ErkJggg==\"},\npan:{image:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAICSURBVEhLxZbPahNRGMUn/5MpuAiBEAIufQGfzr5E40YptBXajYzudCEuGqS+gGlrFwquDGRTutBdYfydzJ3LzeQmJGZue+Dw/Z17Mnfmu5Pof9Hr9Z61Wq0bWZMKj263O6xWq99wU9lOpzPMKgEhEcRucNOcioOK+0RzBhNvt9tPV4nmVF19+OWhVqt9xXgFXZq+8lCv119UKpUJ7iX2FmvFTKz8RH34YdBsNk8wVtjE4fGYwm8wrrDi3WBG5oKXZGRSS9hGuNFojLTe2lFz5xThWZIktayyiE2FdT3rzXBXz7krKiL8c17wAKFDjCus2AvW+YGZ9y2JF0VFRuMPfI//rsCE/C+s26s4gQu9ul7r4NteKx7H8XOC724xNNGbaNu++IrBqbOV7Tj3FgMRvc/YKOr3+3sE47wgEt/Bl/gaK5cHbNU11vYSXylfpK7XOvjuumPp4Wcoipu30Qsez2uMXYz4lfI+mOmwothY+SLiXJy7mKVpWs3Si0CoOMfeI9Od43Wic+jO+ZVv+crsm9QSNhUW9LXSeoPBYLXopthGuFQgdIxxhY+UDwlt1x5CZ1hX+NTUdt/OIvjKaDSmuOJfaIVNPKX+W18j/PLA2/kR44p5Sd8HbHngT/yTfNRWUXX14ZcL3wmX0+TLf8YO7CGT8yFE5zB3/gney25/OETRP9CtPDFe5jShAAAAAElFTkSuQmCC\"},\nzoom:{image:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALWSURBVEhLvZZLaBNRFIabyftBIgEfqCCBoCC6MYqiXYiIj4U76U4X7sUHbhQhUBfixhZEUBDB16YuFERaUaQLK7ooCOJj4UKtYEFU0EptShO/A9Ph3js3k8lo/eHnP7n3nP/M3LlzMz1hkUwmNziOcyKRSFyFt+LxeD/c2Wq1Ym7Kv0M2m11Os1OxWGycn1OwZXCGuXfwIhezkd9/jRgNT2L4ldhs1pbkX5OLJe4euVxuGQaPCa3mnUjtJx7BDuKusJTCV6jVVGHTMuYRjxma7yIOhTgFY6jNaAKew2xPKpVay9ganmkvj+M448/MfJdT5K5Gg4HJacRngPFgqVRaRNwW1B4i7yehWfsEDdz1K+A01AoxPIqGAiuwGfkOTY8+1A6u7AyiFTB2Hu0KPIrdiOnzHLWDybeImvy+Wq2mZa5bUHsD0Zpz+KxHdWQymV6kAb1ElqeORgJLvgnRdj1+R1AfzkIvSUjxVjQSarVakrueIPT8+H1F5jSUy+WXiJrUYBVWyVxU4PEU8TzhfaijUqnMIWrjaY492eWRwdKOIqrnIxnXwLLeRLwk2GQzrEMjg0avEbXxkIxr4OoOImpj2QwyFgms1koa/SZUG8s+0iGnEhNfCNXEhzIXBVz0McTzEvJ+70P9oNFtxEzei3aFYrFYxmuSUPWSv9Yi9IMm2xE1We56Mp1OV4nDwqFmBDV9gk9AEh4gZtFHNt8W4kAUCoXF5MorY9Z/kDni9nDv7hc0i2fhgLvTtX8a99PoMPPagTFPxofRzmDJ9yM+AyEmTfgGysYbQcfhDzPPJDmX0c7gDg4gs9BqFIWhm/Nct5H8gtBq1I7UfIbtvmIuoaGQcp+fdpbbSM43eEH5wrwLbXmhm/fU63VHXjcuok7hEByFY/AeHGC8L5/PL3HT5xGH1uYwfPOICGo+CBcU0vwO1BqzUqILDl/z/9VYIMfpddiAc47jDP8BsUpb13wOLRwAAAAASUVORK5CYII=\"},\nmenu:{image:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAeCAYAAABE4bxTAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADoSURBVFhH7dc9CsJAFATgRxIIBCwCqZKATX5sbawsY2MvWOtF9AB6AU8gguAJbD2AnZ2VXQT/Ko2TYGCL2OYtYQc+BuYA+1hCtnCVwMm27SGaXpDJIAiCvCkVR05hGOZNN3HkFMdx3nQRR06+76/R1IcFLJlNQEWlmWlBTwJtKLKHynehZqnjOGM0PYWRVXk61C37p7xlZ3Hk5HneCk1dmMH811xGoKLSzDiQwIBZB4ocoPJdqNkDt2yKlueWRVGUtzy3rPwo3sWRU3nLjuLI6OO67oZM00wMw3hrmpZx0XU9syxrR0T0BeMpb9dneSR2AAAAAElFTkSuQmCC\"}};\nY.prototype.setOptions=function(m,s){if(qa[this._defaultsKey]){var q=qa[this._defaultsKey],v;for(v in q)\"publicProperties\"!==v&&q.hasOwnProperty(v)&&(this[v]=m&&v in m?m[v]:s&&v in s?s[v]:q[v])}};Y.prototype.get=function(m){var s=qa[this._defaultsKey];if(\"options\"===m)return this.options&&this.options._isPlaceholder?null:this.options;if(s.hasOwnProperty(m)||s.publicProperties&&s.publicProperties.hasOwnProperty(m))return this[m];window.console&&window.console.log('Property \"'+m+\"\\\" doesn't exist. Please check for typo.\")};\nY.prototype.set=function(m,s,q){q=\"undefined\"===typeof q?!0:q;var v=qa[this._defaultsKey];if(\"options\"===m)this.createUserOptions(s);else if(v.hasOwnProperty(m)||v.publicProperties&&v.publicProperties.hasOwnProperty(m)&&\"readWrite\"===v.publicProperties[m])this.options._isPlaceholder&&this.createUserOptions(),this.options[m]=s;else{window.console&&(v.publicProperties&&v.publicProperties.hasOwnProperty(m)&&\"readOnly\"===v.publicProperties[m]?window.console.log('Property \"'+m+'\" is read-only.'):window.console.log('Property \"'+\nm+\"\\\" doesn't exist. Please check for typo.\"));return}q&&(this.chart||this).render()};Y.prototype.addTo=function(m,s,q,v){v=\"undefined\"===typeof v?!0:v;var y=qa[this._defaultsKey];y.hasOwnProperty(m)||y.publicProperties&&y.publicProperties.hasOwnProperty(m)&&\"readWrite\"===y.publicProperties[m]?(this.options._isPlaceholder&&this.createUserOptions(),\"undefined\"===typeof this.options[m]&&(this.options[m]=[]),m=this.options[m],q=\"undefined\"===typeof q||null===q?m.length:q,m.splice(q,0,s),v&&(this.chart||\nthis).render()):window.console&&(y.publicProperties&&y.publicProperties.hasOwnProperty(m)&&\"readOnly\"===y.publicProperties[m]?window.console.log('Property \"'+m+'\" is read-only.'):window.console.log('Property \"'+m+\"\\\" doesn't exist. Please check for typo.\"))};Y.prototype.createUserOptions=function(m){if(\"undefined\"!==typeof m||this.options._isPlaceholder)if(this.parent.options._isPlaceholder&&this.parent.createUserOptions(),this.isOptionsInArray){this.parent.options[this.optionsName]||(this.parent.options[this.optionsName]=\n[]);var s=this.parent.options[this.optionsName],v=s.length;this.options._isPlaceholder||(Ca(s),v=s.indexOf(this.options));this.options=\"undefined\"===typeof m?{}:m;s[v]=this.options}else this.options=\"undefined\"===typeof m?{}:m,m=this.parent.options,this.optionsName?s=this.optionsName:(s=this._defaultsKey)&&0!==s.length?(v=s.charAt(0).toLowerCase(),1<s.length&&(v=v.concat(s.slice(1))),s=v):s=void 0,m[s]=this.options};Y.prototype.remove=function(m){m=\"undefined\"===typeof m?!0:m;if(this.isOptionsInArray){var s=\nthis.parent.options[this.optionsName];Ca(s);var v=s.indexOf(this.options);0<=v&&s.splice(v,1)}else delete this.parent.options[this.optionsName];m&&(this.chart||this).render()};Y.prototype.updateOption=function(m){var s=qa[this._defaultsKey],v={},x=this[m],z=this._themeOptionsKey,F=this._index;this.theme&&y(z)&&y(F)?v=y(xa[this.theme])?xa.light1:xa[this.theme]:this.parent&&(this.parent.themeOptions&&this.parent.themeOptions[z])&&(null===F?v=this.parent.themeOptions[z]:0<this.parent.themeOptions[z].length&&\n(v=Math.min(this.parent.themeOptions[z].length-1,F),v=this.parent.themeOptions[z][v]));this.themeOptions=v;m in s&&(x=m in this.options?this.options[m]:v&&m in v?v[m]:s[m]);if(x===this[m])return!1;this[m]=x;return!0};Y.prototype.trackChanges=function(m){if(!this.sessionVariables)throw\"Session Variable Store not set\";this.sessionVariables[m]=this.options[m]};Y.prototype.isBeingTracked=function(m){this.options._oldOptions||(this.options._oldOptions={});return this.options._oldOptions[m]?!0:!1};Y.prototype.hasOptionChanged=\nfunction(m){if(!this.sessionVariables)throw\"Session Variable Store not set\";return this.sessionVariables[m]!==this.options[m]};Y.prototype.addEventListener=function(m,s,v){m&&s&&(this._eventListeners[m]=this._eventListeners[m]||[],this._eventListeners[m].push({context:v||this,eventHandler:s}))};Y.prototype.removeEventListener=function(m,v){if(m&&v&&this._eventListeners[m])for(var q=this._eventListeners[m],y=0;y<q.length;y++)if(q[y].eventHandler===v){q[y].splice(y,1);break}};Y.prototype.removeAllEventListeners=\nfunction(){this._eventListeners=[]};Y.prototype.dispatchEvent=function(m,v,q){if(m&&this._eventListeners[m]){v=v||{};for(var y=this._eventListeners[m],x=0;x<y.length;x++)y[x].eventHandler.call(y[x].context,v)}\"function\"===typeof this[m]&&this[m].call(q||this.chart,v)};Da.prototype.registerSpace=function(m,v){\"top\"===m?this._topOccupied+=v.height:\"bottom\"===m?this._bottomOccupied+=v.height:\"left\"===m?this._leftOccupied+=v.width:\"right\"===m&&(this._rightOccupied+=v.width)};Da.prototype.unRegisterSpace=\nfunction(m,v){\"top\"===m?this._topOccupied-=v.height:\"bottom\"===m?this._bottomOccupied-=v.height:\"left\"===m?this._leftOccupied-=v.width:\"right\"===m&&(this._rightOccupied-=v.width)};Da.prototype.getFreeSpace=function(){return{x1:this._x1+this._leftOccupied,y1:this._y1+this._topOccupied,x2:this._x2-this._rightOccupied,y2:this._y2-this._bottomOccupied,width:this._x2-this._x1-this._rightOccupied-this._leftOccupied,height:this._y2-this._y1-this._bottomOccupied-this._topOccupied}};Da.prototype.reset=function(){this._rightOccupied=\nthis._leftOccupied=this._bottomOccupied=this._topOccupied=this._padding};na(ka,Y);ka.prototype._initialize=function(){y(this.padding)||\"object\"!==typeof this.padding?this.topPadding=this.rightPadding=this.bottomPadding=this.leftPadding=Number(this.padding)|0:(this.topPadding=y(this.padding.top)?0:Number(this.padding.top)|0,this.rightPadding=y(this.padding.right)?0:Number(this.padding.right)|0,this.bottomPadding=y(this.padding.bottom)?0:Number(this.padding.bottom)|0,this.leftPadding=y(this.padding.left)?\n0:Number(this.padding.left)|0)};ka.prototype.render=function(m){if(0!==this.fontSize){m&&this.ctx.save();var v=this.ctx.font;this.ctx.textBaseline=this.textBaseline;var q=0;this._isDirty&&this.measureText(this.ctx);this.ctx.translate(this.x,this.y+q);\"middle\"===this.textBaseline&&(q=-this._lineHeight/2);this.ctx.font=this._getFontString();this.ctx.rotate(Math.PI/180*this.angle);var y=0,x=this.topPadding,z=null;this.ctx.roundRect||Ba(this.ctx);(0<this.borderThickness&&this.borderColor||this.backgroundColor)&&\nthis.ctx.roundRect(0,q,this.width,this.height,this.cornerRadius,this.borderThickness,this.backgroundColor,this.borderColor);this.ctx.fillStyle=this.fontColor;for(q=0;q<this._wrappedText.lines.length;q++)z=this._wrappedText.lines[q],\"right\"===this.horizontalAlign?y=(this.width-(this.leftPadding+this.rightPadding))/2-z.width/2+this.leftPadding:\"left\"===this.horizontalAlign?y=this.leftPadding:\"center\"===this.horizontalAlign&&(y=(this.width-(this.leftPadding+this.rightPadding))/2-z.width/2+this.leftPadding),\nthis.ctx.fillText(z.text,y,x),x+=z.height;this.ctx.font=v;m&&this.ctx.restore()}};ka.prototype.setText=function(m){this.text=m;this._isDirty=!0;this._wrappedText=null};ka.prototype.measureText=function(){this._lineHeight=Ua(this.fontFamily,this.fontSize,this.fontWeight);if(null===this.maxWidth)throw\"Please set maxWidth and height for TextBlock\";this._wrapText(this.ctx);this._isDirty=!1;return{width:this.width,height:this.height}};ka.prototype._getLineWithWidth=function(m,v,q){m=String(m);if(!m)return{text:\"\",\nwidth:0};var y=q=0,x=m.length-1,z=Infinity;for(this.ctx.font=this._getFontString();y<=x;){var z=Math.floor((y+x)/2),F=m.substr(0,z+1);q=this.ctx.measureText(F).width;if(q<v)y=z+1;else if(q>v)x=z-1;else break}q>v&&1<F.length&&(F=F.substr(0,F.length-1),q=this.ctx.measureText(F).width);v=!0;if(F.length===m.length||\" \"===m[F.length])v=!1;v&&(m=F.split(\" \"),1<m.length&&m.pop(),F=m.join(\" \"),q=this.ctx.measureText(F).width);return{text:F,width:q}};ka.prototype._wrapText=function(){var m=new String(Fa(String(this.text))),\nv=[],q=this.ctx.font,y=0,x=0;this.ctx.font=this._getFontString();if(0===this.frontSize)x=y=0;else for(;0<m.length;){var z=this.maxHeight-(this.topPadding+this.bottomPadding),F=this._getLineWithWidth(m,this.maxWidth-(this.leftPadding+this.rightPadding),!1);F.height=this._lineHeight;v.push(F);var S=x,x=Math.max(x,F.width),y=y+F.height,m=Fa(m.slice(F.text.length,m.length));z&&y>z&&(F=v.pop(),y-=F.height,x=S)}this._wrappedText={lines:v,width:x,height:y};this.width=x+(this.leftPadding+this.rightPadding);\nthis.height=y+(this.topPadding+this.bottomPadding);this.ctx.font=q};ka.prototype._getFontString=function(){var m;m=\"\"+(this.fontStyle?this.fontStyle+\" \":\"\");m+=this.fontWeight?this.fontWeight+\" \":\"\";m+=this.fontSize?this.fontSize+\"px \":\"\";var s=this.fontFamily?this.fontFamily+\"\":\"\";!v&&s&&(s=s.split(\",\")[0],\"'\"!==s[0]&&'\"'!==s[0]&&(s=\"'\"+s+\"'\"));return m+=s};na(Ra,Y);na(Ha,Y);Ha.prototype.render=function(){if(this.text){var m=this.dockInsidePlotArea?this.chart.plotArea:this.chart,v=m.layoutManager.getFreeSpace(),\nq=v.x1,x=v.y1,z=0,F=0,R=this.chart._menuButton&&this.chart.exportEnabled&&\"top\"===this.verticalAlign?22:0,S,C;\"top\"===this.verticalAlign||\"bottom\"===this.verticalAlign?(null===this.maxWidth&&(this.maxWidth=v.width-4-R*(\"center\"===this.horizontalAlign?2:1)),F=0.5*v.height-this.margin-2,z=0):\"center\"===this.verticalAlign&&(\"left\"===this.horizontalAlign||\"right\"===this.horizontalAlign?(null===this.maxWidth&&(this.maxWidth=v.height-4),F=0.5*v.width-this.margin-2):\"center\"===this.horizontalAlign&&(null===\nthis.maxWidth&&(this.maxWidth=v.width-4),F=0.5*v.height-4));var I;y(this.padding)||\"number\"!==typeof this.padding?y(this.padding)||\"object\"!==typeof this.padding||(I=this.padding.top?this.padding.top:this.padding.bottom?this.padding.bottom:0,I+=this.padding.bottom?this.padding.bottom:this.padding.top?this.padding.top:0,I*=1.25):I=2.5*this.padding;this.wrap||(F=Math.min(F,Math.max(1.5*this.fontSize,this.fontSize+I)));F=new ka(this.ctx,{fontSize:this.fontSize,fontFamily:this.fontFamily,fontColor:this.fontColor,\nfontStyle:this.fontStyle,fontWeight:this.fontWeight,horizontalAlign:this.horizontalAlign,verticalAlign:this.verticalAlign,borderColor:this.borderColor,borderThickness:this.borderThickness,backgroundColor:this.backgroundColor,maxWidth:this.maxWidth,maxHeight:F,cornerRadius:this.cornerRadius,text:this.text,padding:this.padding,textBaseline:\"top\"});I=F.measureText();\"top\"===this.verticalAlign||\"bottom\"===this.verticalAlign?(\"top\"===this.verticalAlign?(x=v.y1+2,C=\"top\"):\"bottom\"===this.verticalAlign&&\n(x=v.y2-2-I.height,C=\"bottom\"),\"left\"===this.horizontalAlign?q=v.x1+2:\"center\"===this.horizontalAlign?q=v.x1+v.width/2-I.width/2:\"right\"===this.horizontalAlign&&(q=v.x2-2-I.width-R),S=this.horizontalAlign,this.width=I.width,this.height=I.height):\"center\"===this.verticalAlign&&(\"left\"===this.horizontalAlign?(q=v.x1+2,x=v.y2-2-(this.maxWidth/2-I.width/2),z=-90,C=\"left\",this.width=I.height,this.height=I.width):\"right\"===this.horizontalAlign?(q=v.x2-2,x=v.y1+2+(this.maxWidth/2-I.width/2),z=90,C=\"right\",\nthis.width=I.height,this.height=I.width):\"center\"===this.horizontalAlign&&(x=m.y1+(m.height/2-I.height/2),q=m.x1+(m.width/2-I.width/2),C=\"center\",this.width=I.width,this.height=I.height),S=\"center\");F.x=q;F.y=x;F.angle=z;F.horizontalAlign=S;F.render(!0);m.layoutManager.registerSpace(C,{width:this.width+(\"left\"===C||\"right\"===C?this.margin+2:0),height:this.height+(\"top\"===C||\"bottom\"===C?this.margin+2:0)});this.bounds={x1:q,y1:x,x2:q+this.width,y2:x+this.height};this.ctx.textBaseline=\"top\"}};na(Na,\nY);Na.prototype.render=Ha.prototype.render;na(Ia,Y);var Ka={addTheme:function(m,v){xa[m]=v},addColorSet:function(m,v){za[m]=v},addCultureInfo:function(m,v){Ja[m]=v},formatNumber:function(m,v,q){q=q||\"en\";if(Ja[q])return V(m,v||\"#,##0.##\",new Ia(q));throw\"Unknown Culture Name\";},formatDate:function(m,v,q){q=q||\"en\";if(Ja[q])return Aa(m,v||\"DD MMM YYYY\",new Ia(q));throw\"Unknown Culture Name\";}};\"undefined\"!==typeof module&&\"undefined\"!==typeof module.exports?module.exports=Ka:\"function\"===typeof define&&\ndefine.amd?define([],function(){return Ka}):window.CanvasJS=Ka;Ka.Chart=function(){function m(a,f){return a.x-f.x}function s(a,f,b){if(a&&f&&b){b=b+\".\"+f;var c=\"image/\"+f;a=a.toDataURL(c);var e=!1,g=document.createElement(\"a\");g.download=b;g.href=a;if(\"undefined\"!==typeof Blob&&new Blob){for(var h=a.replace(/^data:[a-z\\/]*;base64,/,\"\"),h=atob(h),l=new ArrayBuffer(h.length),l=new Uint8Array(l),t=0;t<h.length;t++)l[t]=h.charCodeAt(t);f=new Blob([l.buffer],{type:\"image/\"+f});try{window.navigator.msSaveBlob(f,\nb),e=!0}catch(k){g.dataset.downloadurl=[c,g.download,g.href].join(\":\"),g.href=window.URL.createObjectURL(f)}}if(!e)try{event=document.createEvent(\"MouseEvents\"),event.initMouseEvent(\"click\",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),g.dispatchEvent?g.dispatchEvent(event):g.fireEvent&&g.fireEvent(\"onclick\")}catch(r){f=window.open(),f.document.write(\"<img src='\"+a+\"'></img><div>Please right click on the image and save it to your device</div>\"),f.document.close()}}}function q(a,f){f=f||{};this.theme=\ny(f.theme)||y(xa[f.theme])?\"light1\":f.theme;q.base.constructor.call(this,\"Chart\",null,f,null,null);var b=this;this._containerId=a;this._objectsInitialized=!1;this.overlaidCanvasCtx=this.ctx=null;this._indexLabels=[];this._panTimerId=0;this._lastTouchEventType=\"\";this._lastTouchData=null;this.isAnimating=!1;this.renderCount=0;this.disableToolTip=this.animatedRender=!1;this.allDOMEventHandlers=[];this.panEnabled=!1;this._defaultCursor=\"default\";this.plotArea={canvas:null,ctx:null,x1:0,y1:0,x2:0,y2:0,\nwidth:0,height:0};this._dataInRenderedOrder=[];if(this.container=\"string\"===typeof this._containerId?document.getElementById(this._containerId):this._containerId){this.container.innerHTML=\"\";var c=0,e=0,c=this.options.width?this.width:0<this.container.clientWidth?this.container.clientWidth:this.width,e=this.options.height?this.height:0<this.container.clientHeight?this.container.clientHeight:this.height;this.width=c;this.height=e;this.x1=this.y1=0;this.x2=this.width;this.y2=this.height;this._selectedColorSet=\n\"undefined\"!==typeof za[this.colorSet]?za[this.colorSet]:za.colorSet1;this._canvasJSContainer=document.createElement(\"div\");this._canvasJSContainer.setAttribute(\"class\",\"canvasjs-chart-container\");this._canvasJSContainer.style.position=\"relative\";this._canvasJSContainer.style.textAlign=\"left\";this._canvasJSContainer.style.cursor=\"auto\";v||(this._canvasJSContainer.style.height=\"0px\");this.container.appendChild(this._canvasJSContainer);this.canvas=ta(c,e);this._preRenderCanvas=ta(c,e);this.canvas.style.position=\n\"absolute\";this.canvas.getContext&&(this._canvasJSContainer.appendChild(this.canvas),this.ctx=this.canvas.getContext(\"2d\"),this.ctx.textBaseline=\"top\",Ba(this.ctx),this._preRenderCtx=this._preRenderCanvas.getContext(\"2d\"),this._preRenderCtx.textBaseline=\"top\",Ba(this._preRenderCtx),v?this.plotArea.ctx=this.ctx:(this.plotArea.canvas=ta(c,e),this.plotArea.canvas.style.position=\"absolute\",this.plotArea.canvas.setAttribute(\"class\",\"plotAreaCanvas\"),this._canvasJSContainer.appendChild(this.plotArea.canvas),\nthis.plotArea.ctx=this.plotArea.canvas.getContext(\"2d\")),this.overlaidCanvas=ta(c,e),this.overlaidCanvas.style.position=\"absolute\",this.overlaidCanvas.style.webkitTapHighlightColor=\"transparent\",this.overlaidCanvas.getContext&&(this._canvasJSContainer.appendChild(this.overlaidCanvas),this.overlaidCanvasCtx=this.overlaidCanvas.getContext(\"2d\"),this.overlaidCanvasCtx.textBaseline=\"top\",Ba(this.overlaidCanvasCtx)),this._eventManager=new ea(this),this.windowResizeHandler=P(window,\"resize\",function(){b._updateSize()&&\nb.render()},this.allDOMEventHandlers),this._toolBar=document.createElement(\"div\"),this._toolBar.setAttribute(\"class\",\"canvasjs-chart-toolbar\"),this._toolBar.style.cssText=\"position: absolute; right: 1px; top: 1px;\",this._canvasJSContainer.appendChild(this._toolBar),this.bounds={x1:0,y1:0,x2:this.width,y2:this.height},P(this.overlaidCanvas,\"click\",function(a){b._mouseEventHandler(a)},this.allDOMEventHandlers),P(this.overlaidCanvas,\"mousemove\",function(a){b._mouseEventHandler(a)},this.allDOMEventHandlers),\nP(this.overlaidCanvas,\"mouseup\",function(a){b._mouseEventHandler(a)},this.allDOMEventHandlers),P(this.overlaidCanvas,\"mousedown\",function(a){b._mouseEventHandler(a);va(b._dropdownMenu)},this.allDOMEventHandlers),P(this.overlaidCanvas,\"mouseout\",function(a){b._mouseEventHandler(a)},this.allDOMEventHandlers),P(this.overlaidCanvas,window.navigator.msPointerEnabled?\"MSPointerDown\":\"touchstart\",function(a){b._touchEventHandler(a)},this.allDOMEventHandlers),P(this.overlaidCanvas,window.navigator.msPointerEnabled?\n\"MSPointerMove\":\"touchmove\",function(a){b._touchEventHandler(a)},this.allDOMEventHandlers),P(this.overlaidCanvas,window.navigator.msPointerEnabled?\"MSPointerUp\":\"touchend\",function(a){b._touchEventHandler(a)},this.allDOMEventHandlers),P(this.overlaidCanvas,window.navigator.msPointerEnabled?\"MSPointerCancel\":\"touchcancel\",function(a){b._touchEventHandler(a)},this.allDOMEventHandlers),this.toolTip=new Z(this,this.options.toolTip),this.data=null,this.axisX=[],this.axisX2=[],this.axisY=[],this.axisY2=\n[],this.sessionVariables={axisX:[],axisX2:[],axisY:[],axisY2:[]})}else window.console&&window.console.log('CanvasJS Error: Chart Container with id \"'+this._containerId+'\" was not found')}function x(a,f){for(var b=[],c,e=0;e<a.length;e++)if(0==e)b.push(a[0]);else{var g,h,l;l=e-1;g=0===l?0:l-1;h=l===a.length-1?l:l+1;c=Math.abs((a[h].x-a[g].x)/(0===a[h].x-a[l].x?0.01:a[h].x-a[l].x))*(f-1)/2+1;var t=(a[h].x-a[g].x)/c;c=(a[h].y-a[g].y)/c;b[b.length]=a[l].x>a[g].x&&0<t||a[l].x<a[g].x&&0>t?{x:a[l].x+t/3,\ny:a[l].y+c/3}:{x:a[l].x,y:a[l].y+c/9};l=e;g=0===l?0:l-1;h=l===a.length-1?l:l+1;c=Math.abs((a[h].x-a[g].x)/(0===a[l].x-a[g].x?0.01:a[l].x-a[g].x))*(f-1)/2+1;t=(a[h].x-a[g].x)/c;c=(a[h].y-a[g].y)/c;b[b.length]=a[l].x>a[g].x&&0<t||a[l].x<a[g].x&&0>t?{x:a[l].x-t/3,y:a[l].y-c/3}:{x:a[l].x,y:a[l].y-c/9};b[b.length]=a[e]}return b}function z(a,f,b,c,e,g,h,l,t,k){var r=0;k?(h.color=g,l.color=g):k=1;r=t?Math.abs(e-b):Math.abs(c-f);r=0<h.trimLength?Math.abs(r*h.trimLength/100):Math.abs(r-h.length);t?(b+=r/2,\ne-=r/2):(f+=r/2,c-=r/2);var r=1===Math.round(h.thickness)%2?0.5:0,p=1===Math.round(l.thickness)%2?0.5:0;a.save();a.globalAlpha=k;a.strokeStyle=l.color||g;a.lineWidth=l.thickness||2;a.setLineDash&&a.setLineDash(F(l.dashType,l.thickness));a.beginPath();t&&0<l.thickness?(a.moveTo(c-h.thickness/2,Math.round((b+e)/2)-p),a.lineTo(f+h.thickness/2,Math.round((b+e)/2)-p)):0<l.thickness&&(a.moveTo(Math.round((f+c)/2)-p,b+h.thickness/2),a.lineTo(Math.round((f+c)/2)-p,e-h.thickness/2));a.stroke();a.strokeStyle=\nh.color||g;a.lineWidth=h.thickness||2;a.setLineDash&&a.setLineDash(F(h.dashType,h.thickness));a.beginPath();t&&0<h.thickness?(a.moveTo(c-r,b),a.lineTo(c-r,e),a.moveTo(f+r,b),a.lineTo(f+r,e)):0<h.thickness&&(a.moveTo(f,b+r),a.lineTo(c,b+r),a.moveTo(f,e-r),a.lineTo(c,e-r));a.stroke();a.restore()}function J(a,f,b,c,e){if(null===a||\"undefined\"===typeof a)return\"undefined\"===typeof b?f:b;a=parseFloat(a.toString())*(0<=a.toString().indexOf(\"%\")?f/100:1);\"undefined\"!==typeof c&&(a=Math.min(c,a),\"undefined\"!==\ntypeof e&&(a=Math.max(e,a)));return!isNaN(a)&&a<=f&&0<=a?a:\"undefined\"===typeof b?f:b}function T(a,f){T.base.constructor.call(this,\"Legend\",\"legend\",f,null,a);this.chart=a;this.canvas=a.canvas;this.ctx=this.chart.ctx;this.ghostCtx=this.chart._eventManager.ghostCtx;this.items=[];this.optionsName=\"legend\";this.height=this.width=0;this.orientation=null;this.dataSeries=[];this.bounds={x1:null,y1:null,x2:null,y2:null};\"undefined\"===typeof this.options.fontSize&&(this.fontSize=this.chart.getAutoFontSize(this.fontSize));\nthis.lineHeight=Ua(this.fontFamily,this.fontSize,this.fontWeight);this.horizontalSpacing=this.fontSize}function S(a,f,b,c){S.base.constructor.call(this,\"DataSeries\",\"data\",f,b,a);this.chart=a;this.canvas=a.canvas;this._ctx=a.canvas.ctx;this.index=b;this.noDataPointsInPlotArea=0;this.id=c;this.chart._eventManager.objectMap[c]={id:c,objectType:\"dataSeries\",dataSeriesIndex:b};a=f.dataPoints?f.dataPoints.length:0;this.dataPointEOs=[];for(f=0;f<a;f++)this.dataPointEOs[f]={};this.dataPointIds=[];this.plotUnit=\n[];this.axisY=this.axisX=null;this.optionsName=\"data\";this.isOptionsInArray=!0;null===this.fillOpacity&&(this.type.match(/area/i)?this.fillOpacity=0.7:this.fillOpacity=1);this.axisPlacement=this.getDefaultAxisPlacement();\"undefined\"===typeof this.options.indexLabelFontSize&&(this.indexLabelFontSize=this.chart.getAutoFontSize(this.indexLabelFontSize))}function C(a,f,b,c,e,g){C.base.constructor.call(this,\"Axis\",f,b,c,a);this.chart=a;this.canvas=a.canvas;this.ctx=a.ctx;this.intervalStartPosition=this.maxHeight=\nthis.maxWidth=0;this.labels=[];this.dataSeries=[];this._stripLineLabels=this._ticks=this._labels=null;this.dataInfo={min:Infinity,max:-Infinity,viewPortMin:Infinity,viewPortMax:-Infinity,minDiff:Infinity};this.isOptionsInArray=!0;\"axisX\"===e?(\"left\"===g||\"bottom\"===g?(this.optionsName=\"axisX\",y(this.chart.sessionVariables.axisX[c])&&(this.chart.sessionVariables.axisX[c]={}),this.sessionVariables=this.chart.sessionVariables.axisX[c]):(this.optionsName=\"axisX2\",y(this.chart.sessionVariables.axisX2[c])&&\n(this.chart.sessionVariables.axisX2[c]={}),this.sessionVariables=this.chart.sessionVariables.axisX2[c]),this.options.interval||(this.intervalType=null)):\"left\"===g||\"bottom\"===g?(this.optionsName=\"axisY\",y(this.chart.sessionVariables.axisY[c])&&(this.chart.sessionVariables.axisY[c]={}),this.sessionVariables=this.chart.sessionVariables.axisY[c]):(this.optionsName=\"axisY2\",y(this.chart.sessionVariables.axisY2[c])&&(this.chart.sessionVariables.axisY2[c]={}),this.sessionVariables=this.chart.sessionVariables.axisY2[c]);\n\"undefined\"===typeof this.options.titleFontSize&&(this.titleFontSize=this.chart.getAutoFontSize(this.titleFontSize));\"undefined\"===typeof this.options.labelFontSize&&(this.labelFontSize=this.chart.getAutoFontSize(this.labelFontSize));this.type=e;\"axisX\"!==e||b&&\"undefined\"!==typeof b.gridThickness||(this.gridThickness=0);this._position=g;this.lineCoordinates={x1:null,y1:null,x2:null,y2:null,width:null};this.labelAngle=(this.labelAngle%360+360)%360;90<this.labelAngle&&270>this.labelAngle?this.labelAngle-=\n180:270<=this.labelAngle&&360>=this.labelAngle&&(this.labelAngle-=360);this.options.scaleBreaks&&(this.scaleBreaks=new I(this.chart,this.options.scaleBreaks,++this.chart._eventManager.lastObjectId,this));this.stripLines=[];if(this.options.stripLines&&0<this.options.stripLines.length)for(a=0;a<this.options.stripLines.length;a++)this.stripLines.push(new fa(this.chart,this.options.stripLines[a],a,++this.chart._eventManager.lastObjectId,this));this.options.crosshair&&(this.crosshair=new ha(this.chart,\nthis.options.crosshair,this));this._titleTextBlock=null;this.hasOptionChanged(\"viewportMinimum\")&&null===this.viewportMinimum&&(this.options.viewportMinimum=void 0,this.sessionVariables.viewportMinimum=null);this.hasOptionChanged(\"viewportMinimum\")||isNaN(this.sessionVariables.newViewportMinimum)||null===this.sessionVariables.newViewportMinimum?this.sessionVariables.newViewportMinimum=null:this.viewportMinimum=this.sessionVariables.newViewportMinimum;this.hasOptionChanged(\"viewportMaximum\")&&null===\nthis.viewportMaximum&&(this.options.viewportMaximum=void 0,this.sessionVariables.viewportMaximum=null);this.hasOptionChanged(\"viewportMaximum\")||isNaN(this.sessionVariables.newViewportMaximum)||null===this.sessionVariables.newViewportMaximum?this.sessionVariables.newViewportMaximum=null:this.viewportMaximum=this.sessionVariables.newViewportMaximum;null!==this.minimum&&null!==this.viewportMinimum&&(this.viewportMinimum=Math.max(this.viewportMinimum,this.minimum));null!==this.maximum&&null!==this.viewportMaximum&&\n(this.viewportMaximum=Math.min(this.viewportMaximum,this.maximum));this.trackChanges(\"viewportMinimum\");this.trackChanges(\"viewportMaximum\")}function I(a,f,b,c){I.base.constructor.call(this,\"ScaleBreaks\",\"scaleBreaks\",f,null,c);this.id=b;this.chart=a;this.ctx=this.chart.ctx;this.axis=c;this.optionsName=\"scaleBreaks\";this.isOptionsInArray=!1;this._appliedBreaks=[];this.customBreaks=[];this.autoBreaks=[];\"string\"===typeof this.spacing?(this.spacing=parseFloat(this.spacing),this.spacing=isNaN(this.spacing)?\n8:(10<this.spacing?10:this.spacing)+\"%\"):\"number\"!==typeof this.spacing&&(this.spacing=8);this.autoCalculate&&(this.maxNumberOfAutoBreaks=Math.min(this.maxNumberOfAutoBreaks,5));if(this.options.customBreaks&&0<this.options.customBreaks.length){for(a=0;a<this.options.customBreaks.length;a++)this.customBreaks.push(new ba(this.chart,\"customBreaks\",this.options.customBreaks[a],a,++this.chart._eventManager.lastObjectId,this)),\"number\"===typeof this.customBreaks[a].startValue&&(\"number\"===typeof this.customBreaks[a].endValue&&\nthis.customBreaks[a].endValue!==this.customBreaks[a].startValue)&&this._appliedBreaks.push(this.customBreaks[a]);this._appliedBreaks.sort(function(a,c){return a.startValue-c.startValue});for(a=0;a<this._appliedBreaks.length-1;a++)this._appliedBreaks[a].endValue>=this._appliedBreaks[a+1].startValue&&(this._appliedBreaks[a].endValue=Math.max(this._appliedBreaks[a].endValue,this._appliedBreaks[a+1].endValue),window.console&&window.console.log(\"CanvasJS Error: Breaks \"+a+\" and \"+(a+1)+\" are overlapping.\"),\nthis._appliedBreaks.splice(a,2),a--)}}function ba(a,f,b,c,e,g){ba.base.constructor.call(this,\"Break\",f,b,c,g);this.id=e;this.chart=a;this.ctx=this.chart.ctx;this.scaleBreaks=g;this.optionsName=f;this.isOptionsInArray=!0;this.type=b.type?this.type:g.type;this.fillOpacity=y(b.fillOpacity)?g.fillOpacity:this.fillOpacity;this.lineThickness=y(b.lineThickness)?g.lineThickness:this.lineThickness;this.color=b.color?this.color:g.color;this.lineColor=b.lineColor?this.lineColor:g.lineColor;this.lineDashType=\nb.lineDashType?this.lineDashType:g.lineDashType;!y(this.startValue)&&this.startValue.getTime&&(this.startValue=this.startValue.getTime());!y(this.endValue)&&this.endValue.getTime&&(this.endValue=this.endValue.getTime());\"number\"===typeof this.startValue&&(\"number\"===typeof this.endValue&&this.endValue<this.startValue)&&(a=this.startValue,this.startValue=this.endValue,this.endValue=a);this.spacing=\"undefined\"===typeof b.spacing?g.spacing:b.spacing;\"string\"===typeof this.options.spacing?(this.spacing=\nparseFloat(this.spacing),this.spacing=isNaN(this.spacing)?0:(10<this.spacing?10:this.spacing)+\"%\"):\"number\"!==typeof this.options.spacing&&(this.spacing=g.spacing);this.size=g.parent.logarithmic?1:0}function fa(a,f,b,c,e){fa.base.constructor.call(this,\"StripLine\",\"stripLines\",f,b,e);this.id=c;this.chart=a;this.ctx=this.chart.ctx;this.label=this.label;this.axis=e;this.optionsName=\"stripLines\";this.isOptionsInArray=!0;this._thicknessType=\"pixel\";null!==this.startValue&&null!==this.endValue&&(this.value=\ne.logarithmic?Math.sqrt((this.startValue.getTime?this.startValue.getTime():this.startValue)*(this.endValue.getTime?this.endValue.getTime():this.endValue)):((this.startValue.getTime?this.startValue.getTime():this.startValue)+(this.endValue.getTime?this.endValue.getTime():this.endValue))/2,this._thicknessType=null)}function ha(a,f,b){ha.base.constructor.call(this,\"Crosshair\",\"crosshair\",f,null,b);this.chart=a;this.ctx=this.chart.ctx;this.axis=b;this.optionsName=\"crosshair\";this._thicknessType=\"pixel\"}\nfunction Z(a,f){Z.base.constructor.call(this,\"ToolTip\",\"toolTip\",f,null,a);this.chart=a;this.canvas=a.canvas;this.ctx=this.chart.ctx;this.currentDataPointIndex=this.currentSeriesIndex=-1;this._prevY=this._prevX=NaN;this.containerTransitionDuration=0.1;this.mozContainerTransition=this.getContainerTransition(this.containerTransitionDuration);this.optionsName=\"toolTip\";this._initialize()}function ea(a){this.chart=a;this.lastObjectId=0;this.objectMap=[];this.rectangularRegionEventSubscriptions=[];this.previousDataPointEventObject=\nnull;this.ghostCanvas=ta(this.chart.width,this.chart.height);this.ghostCtx=this.ghostCanvas.getContext(\"2d\");this.mouseoveredObjectMaps=[]}function ga(a){this.chart=a;this.ctx=this.chart.plotArea.ctx;this.animations=[];this.animationRequestId=null}na(q,Y);q.prototype.destroy=function(){var a=this.allDOMEventHandlers;this._animator&&this._animator.cancelAllAnimations();this._panTimerId&&clearTimeout(this._panTimerId);for(i=0;i<a.length;i++){var f=a[i][0],b=a[i][1],c=a[i][2],e=a[i][3],e=e||!1;f.removeEventListener?\nf.removeEventListener(b,c,e):f.detachEvent&&f.detachEvent(\"on\"+b,c)}this.allDOMEventHandlers=[];for(this.removeAllEventListeners();this._canvasJSContainer&&this._canvasJSContainer.hasChildNodes();)this._canvasJSContainer.removeChild(this._canvasJSContainer.lastChild);for(;this.container&&this.container.hasChildNodes();)this.container.removeChild(this.container.lastChild);for(;this._dropdownMenu&&this._dropdownMenu.hasChildNodes();)this._dropdownMenu.removeChild(this._dropdownMenu.lastChild);this.overlaidCanvas=\nthis.canvas=this.container=this._canvasJSContainer=null;this._toolBar=this._dropdownMenu=this._menuButton=this._resetButton=this._zoomButton=this._breaksCanvas=this._preRenderCanvas=this.toolTip.container=null};q.prototype._updateOptions=function(){var a=this;this.updateOption(\"width\");this.updateOption(\"height\");this.updateOption(\"dataPointWidth\");this.updateOption(\"dataPointMinWidth\");this.updateOption(\"dataPointMaxWidth\");this.updateOption(\"interactivityEnabled\");this.updateOption(\"theme\");this.updateOption(\"colorSet\")&&\n(this._selectedColorSet=\"undefined\"!==typeof za[this.colorSet]?za[this.colorSet]:za.colorSet1);this.updateOption(\"backgroundColor\");this.backgroundColor||(this.backgroundColor=\"rgba(0,0,0,0)\");this.updateOption(\"culture\");this._cultureInfo=new Ia(this.options.culture);this.updateOption(\"animationEnabled\");this.animationEnabled=this.animationEnabled&&v;this.updateOption(\"animationDuration\");this.updateOption(\"rangeChanging\");this.updateOption(\"rangeChanged\");this.updateOption(\"exportEnabled\");this.updateOption(\"exportFileName\");\nthis.updateOption(\"zoomType\");if(this.options.zoomEnabled){if(!this._zoomButton){var f=!1;va(this._zoomButton=document.createElement(\"button\"));ua(this,this._zoomButton,\"pan\");this._toolBar.appendChild(this._zoomButton);this._zoomButton.style.borderRight=this.toolbar.borderThickness+\"px solid \"+this.toolbar.borderColor;P(this._zoomButton,\"touchstart\",function(a){f=!0},this.allDOMEventHandlers);P(this._zoomButton,\"click\",function(){a.zoomEnabled?(a.zoomEnabled=!1,a.panEnabled=!0,ua(a,a._zoomButton,\n\"zoom\")):(a.zoomEnabled=!0,a.panEnabled=!1,ua(a,a._zoomButton,\"pan\"));a.render()},this.allDOMEventHandlers);P(this._zoomButton,\"mouseover\",function(){f?f=!1:(oa(a,a._zoomButton,{backgroundColor:a.toolbar.backgroundColorOnHover,color:a.toolbar.fontColorOnHover,transition:\"0.4s\",WebkitTransition:\"0.4s\"}),0>=navigator.userAgent.search(\"MSIE\")&&oa(a,a._zoomButton.childNodes[0],{WebkitFilter:\"invert(100%)\",filter:\"invert(100%)\"}))},this.allDOMEventHandlers);P(this._zoomButton,\"mouseout\",function(){f||\n(oa(a,a._zoomButton,{backgroundColor:a.toolbar.backgroundColor,color:a.toolbar.fontColor,transition:\"0.4s\",WebkitTransition:\"0.4s\"}),0>=navigator.userAgent.search(\"MSIE\")&&oa(a,a._zoomButton.childNodes[0],{WebkitFilter:\"invert(0%)\",filter:\"invert(0%)\"}))},this.allDOMEventHandlers)}this._resetButton||(f=!1,va(this._resetButton=document.createElement(\"button\")),ua(this,this._resetButton,\"reset\"),this._resetButton.style.borderRight=(this.exportEnabled?this.toolbar.borderThickness:0)+\"px solid \"+this.toolbar.borderColor,\nthis._toolBar.appendChild(this._resetButton),P(this._resetButton,\"touchstart\",function(a){f=!0},this.allDOMEventHandlers),P(this._resetButton,\"click\",function(){a.toolTip.hide();a.zoomEnabled||a.panEnabled?(a.zoomEnabled=!0,a.panEnabled=!1,ua(a,a._zoomButton,\"pan\"),a._defaultCursor=\"default\",a.overlaidCanvas.style.cursor=a._defaultCursor):(a.zoomEnabled=!1,a.panEnabled=!1);if(a.sessionVariables.axisX)for(var c=0;c<a.sessionVariables.axisX.length;c++)a.sessionVariables.axisX[c].newViewportMinimum=\nnull,a.sessionVariables.axisX[c].newViewportMaximum=null;if(a.sessionVariables.axisX2)for(c=0;c<a.sessionVariables.axisX2.length;c++)a.sessionVariables.axisX2[c].newViewportMinimum=null,a.sessionVariables.axisX2[c].newViewportMaximum=null;if(a.sessionVariables.axisY)for(c=0;c<a.sessionVariables.axisY.length;c++)a.sessionVariables.axisY[c].newViewportMinimum=null,a.sessionVariables.axisY[c].newViewportMaximum=null;if(a.sessionVariables.axisY2)for(c=0;c<a.sessionVariables.axisY2.length;c++)a.sessionVariables.axisY2[c].newViewportMinimum=\nnull,a.sessionVariables.axisY2[c].newViewportMaximum=null;a.resetOverlayedCanvas();va(a._zoomButton,a._resetButton);a._dispatchRangeEvent(\"rangeChanging\",\"reset\");a.render();a._dispatchRangeEvent(\"rangeChanged\",\"reset\")},this.allDOMEventHandlers),P(this._resetButton,\"mouseover\",function(){f||(oa(a,a._resetButton,{backgroundColor:a.toolbar.backgroundColorOnHover,color:a.toolbar.hoverFfontColorOnHoverontColor,transition:\"0.4s\",WebkitTransition:\"0.4s\"}),0>=navigator.userAgent.search(\"MSIE\")&&oa(a,a._resetButton.childNodes[0],\n{WebkitFilter:\"invert(100%)\",filter:\"invert(100%)\"}))},this.allDOMEventHandlers),P(this._resetButton,\"mouseout\",function(){f||(oa(a,a._resetButton,{backgroundColor:a.toolbar.backgroundColor,color:a.toolbar.fontColor,transition:\"0.4s\",WebkitTransition:\"0.4s\"}),0>=navigator.userAgent.search(\"MSIE\")&&oa(a,a._resetButton.childNodes[0],{WebkitFilter:\"invert(0%)\",filter:\"invert(0%)\"}))},this.allDOMEventHandlers),this.overlaidCanvas.style.cursor=a._defaultCursor);this.zoomEnabled||this.panEnabled||(this._zoomButton?\n(a._zoomButton.getAttribute(\"state\")===a._cultureInfo.zoomText?(this.panEnabled=!0,this.zoomEnabled=!1):(this.zoomEnabled=!0,this.panEnabled=!1),Ma(a._zoomButton,a._resetButton)):(this.zoomEnabled=!0,this.panEnabled=!1))}else this.panEnabled=this.zoomEnabled=!1;this._menuButton?this.exportEnabled?Ma(this._menuButton):va(this._menuButton):this.exportEnabled&&v&&(f=!1,this._menuButton=document.createElement(\"button\"),ua(this,this._menuButton,\"menu\"),this._toolBar.appendChild(this._menuButton),P(this._menuButton,\n\"touchstart\",function(a){f=!0},this.allDOMEventHandlers),P(this._menuButton,\"click\",function(){\"none\"!==a._dropdownMenu.style.display||a._dropDownCloseTime&&500>=(new Date).getTime()-a._dropDownCloseTime.getTime()||(a._dropdownMenu.style.display=\"block\",a._menuButton.blur(),a._dropdownMenu.focus())},this.allDOMEventHandlers,!0),P(this._menuButton,\"mouseover\",function(){f||(oa(a,a._menuButton,{backgroundColor:a.toolbar.backgroundColorOnHover,color:a.toolbar.fontColorOnHover}),0>=navigator.userAgent.search(\"MSIE\")&&\noa(a,a._menuButton.childNodes[0],{WebkitFilter:\"invert(100%)\",filter:\"invert(100%)\"}))},this.allDOMEventHandlers,!0),P(this._menuButton,\"mouseout\",function(){f||(oa(a,a._menuButton,{backgroundColor:a.toolbar.backgroundColor,color:a.toolbar.fontColor}),0>=navigator.userAgent.search(\"MSIE\")&&oa(a,a._menuButton.childNodes[0],{WebkitFilter:\"invert(0%)\",filter:\"invert(0%)\"}))},this.allDOMEventHandlers,!0));if(!this._dropdownMenu&&this.exportEnabled&&v){f=!1;this._dropdownMenu=document.createElement(\"div\");\nthis._dropdownMenu.setAttribute(\"tabindex\",-1);var b=-1!==this.theme.indexOf(\"dark\")?\"black\":\"#888888\";this._dropdownMenu.style.cssText=\"position: absolute; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer;right: 0px;top: 25px;min-width: 120px;outline: 0;font-size: 14px; font-family: Arial, Helvetica, sans-serif;padding: 5px 0px 5px 0px;text-align: left;line-height: 10px;background-color:\"+this.toolbar.backgroundColor+\";box-shadow: 2px 2px 10px \"+\nb;a._dropdownMenu.style.display=\"none\";this._toolBar.appendChild(this._dropdownMenu);P(this._dropdownMenu,\"blur\",function(){va(a._dropdownMenu);a._dropDownCloseTime=new Date},this.allDOMEventHandlers,!0);b=document.createElement(\"div\");b.style.cssText=\"padding: 12px 8px 12px 8px\";b.innerHTML=this._cultureInfo.printText;b.style.backgroundColor=this.toolbar.backgroundColor;b.style.color=this.toolbar.fontColor;this._dropdownMenu.appendChild(b);P(b,\"touchstart\",function(a){f=!0},this.allDOMEventHandlers);\nP(b,\"mouseover\",function(){f||(this.style.backgroundColor=a.toolbar.backgroundColorOnHover,this.style.color=a.toolbar.fontColorOnHover)},this.allDOMEventHandlers,!0);P(b,\"mouseout\",function(){f||(this.style.backgroundColor=a.toolbar.backgroundColor,this.style.color=a.toolbar.fontColor)},this.allDOMEventHandlers,!0);P(b,\"click\",function(){a.print();va(a._dropdownMenu)},this.allDOMEventHandlers,!0);b=document.createElement(\"div\");b.style.cssText=\"padding: 12px 8px 12px 8px\";b.innerHTML=this._cultureInfo.saveJPGText;\nb.style.backgroundColor=this.toolbar.backgroundColor;b.style.color=this.toolbar.fontColor;this._dropdownMenu.appendChild(b);P(b,\"touchstart\",function(a){f=!0},this.allDOMEventHandlers);P(b,\"mouseover\",function(){f||(this.style.backgroundColor=a.toolbar.backgroundColorOnHover,this.style.color=a.toolbar.fontColorOnHover)},this.allDOMEventHandlers,!0);P(b,\"mouseout\",function(){f||(this.style.backgroundColor=a.toolbar.backgroundColor,this.style.color=a.toolbar.fontColor)},this.allDOMEventHandlers,!0);\nP(b,\"click\",function(){s(a.canvas,\"jpeg\",a.exportFileName);va(a._dropdownMenu)},this.allDOMEventHandlers,!0);b=document.createElement(\"div\");b.style.cssText=\"padding: 12px 8px 12px 8px\";b.innerHTML=this._cultureInfo.savePNGText;b.style.backgroundColor=this.toolbar.backgroundColor;b.style.color=this.toolbar.fontColor;this._dropdownMenu.appendChild(b);P(b,\"touchstart\",function(a){f=!0},this.allDOMEventHandlers);P(b,\"mouseover\",function(){f||(this.style.backgroundColor=a.toolbar.backgroundColorOnHover,\nthis.style.color=a.toolbar.fontColorOnHover)},this.allDOMEventHandlers,!0);P(b,\"mouseout\",function(){f||(this.style.backgroundColor=a.toolbar.backgroundColor,this.style.color=a.toolbar.fontColor)},this.allDOMEventHandlers,!0);P(b,\"click\",function(){s(a.canvas,\"png\",a.exportFileName);va(a._dropdownMenu)},this.allDOMEventHandlers,!0)}\"none\"!==this._toolBar.style.display&&this._zoomButton&&(this.panEnabled?ua(a,a._zoomButton,\"zoom\"):ua(a,a._zoomButton,\"pan\"),a._resetButton.getAttribute(\"state\")!==a._cultureInfo.resetText&&\nua(a,a._resetButton,\"reset\"));this.options.toolTip&&this.toolTip.options!==this.options.toolTip&&(this.toolTip.options=this.options.toolTip);for(var c in this.toolTip.options)this.toolTip.options.hasOwnProperty(c)&&this.toolTip.updateOption(c)};q.prototype._updateSize=function(){var a=0,f=0;this.options.width?a=this.width:this.width=a=0<this.container.clientWidth?this.container.clientWidth:this.width;this.options.height?f=this.height:this.height=f=0<this.container.clientHeight?this.container.clientHeight:\nthis.height;return this.canvas.width!==a*ia||this.canvas.height!==f*ia?(Ga(this.canvas,a,f),Ga(this._preRenderCanvas,a,f),Ga(this.overlaidCanvas,a,f),Ga(this._eventManager.ghostCanvas,a,f),this.bounds={x1:0,y1:0,x2:this.width,y2:this.height},!0):!1};q.prototype._initialize=function(){this.toolbar=new Ra(this,this.options.toolbar);this._animator?this._animator.cancelAllAnimations():this._animator=new ga(this);this.removeAllEventListeners();this.disableToolTip=!1;this._axes=[];this.funnelPyramidClickHandler=\nthis.pieDoughnutClickHandler=null;this._updateOptions();this.animatedRender=v&&this.animationEnabled&&0===this.renderCount;this._updateSize();this.clearCanvas();this.ctx.beginPath();this.axisX=[];this.axisX2=[];this.axisY=[];this.axisY2=[];this._indexLabels=[];this._dataInRenderedOrder=[];this._events=[];this._eventManager&&this._eventManager.reset();this.plotInfo={axisPlacement:null,plotTypes:[]};this.layoutManager=new Da(0,0,this.width,this.height,2);this.plotArea.layoutManager&&this.plotArea.layoutManager.reset();\nthis.data=[];var a=0,f=null;if(this.options.data){for(var b=0;b<this.options.data.length;b++)if(a++,!this.options.data[b].type||0<=q._supportedChartTypes.indexOf(this.options.data[b].type)){var c=new S(this,this.options.data[b],a-1,++this._eventManager.lastObjectId);\"error\"===c.type&&(c.linkedDataSeriesIndex=y(this.options.data[b].linkedDataSeriesIndex)?b-1:this.options.data[b].linkedDataSeriesIndex,0>c.linkedDataSeriesIndex||c.linkedDataSeriesIndex>=this.options.data.length||\"number\"!==typeof c.linkedDataSeriesIndex||\n\"error\"===this.options.data[c.linkedDataSeriesIndex].type)&&(c.linkedDataSeriesIndex=null);null===c.name&&(c.name=\"DataSeries \"+a);null===c.color?1<this.options.data.length?(c._colorSet=[this._selectedColorSet[c.index%this._selectedColorSet.length]],c.color=this._selectedColorSet[c.index%this._selectedColorSet.length]):c._colorSet=\"line\"===c.type||\"stepLine\"===c.type||\"spline\"===c.type||\"area\"===c.type||\"stepArea\"===c.type||\"splineArea\"===c.type||\"stackedArea\"===c.type||\"stackedArea100\"===c.type||\n\"rangeArea\"===c.type||\"rangeSplineArea\"===c.type||\"candlestick\"===c.type||\"ohlc\"===c.type||\"waterfall\"===c.type||\"boxAndWhisker\"===c.type?[this._selectedColorSet[0]]:this._selectedColorSet:c._colorSet=[c.color];null===c.markerSize&&((\"line\"===c.type||\"stepLine\"===c.type||\"spline\"===c.type||0<=c.type.toLowerCase().indexOf(\"area\"))&&c.dataPoints&&c.dataPoints.length<this.width/16||\"scatter\"===c.type)&&(c.markerSize=8);\"bubble\"!==c.type&&\"scatter\"!==c.type||!c.dataPoints||(c.dataPoints.some?c.dataPoints.some(function(a){return a.x})&&\nc.dataPoints.sort(m):c.dataPoints.sort(m));this.data.push(c);var e=c.axisPlacement,f=f||e,g;\"normal\"===e?\"xySwapped\"===this.plotInfo.axisPlacement?g='You cannot combine \"'+c.type+'\" with bar chart':\"none\"===this.plotInfo.axisPlacement?g='You cannot combine \"'+c.type+'\" with pie chart':null===this.plotInfo.axisPlacement&&(this.plotInfo.axisPlacement=\"normal\"):\"xySwapped\"===e?\"normal\"===this.plotInfo.axisPlacement?g='You cannot combine \"'+c.type+'\" with line, area, column or pie chart':\"none\"===this.plotInfo.axisPlacement?\ng='You cannot combine \"'+c.type+'\" with pie chart':null===this.plotInfo.axisPlacement&&(this.plotInfo.axisPlacement=\"xySwapped\"):\"none\"===e?\"normal\"===this.plotInfo.axisPlacement?g='You cannot combine \"'+c.type+'\" with line, area, column or bar chart':\"xySwapped\"===this.plotInfo.axisPlacement?g='You cannot combine \"'+c.type+'\" with bar chart':null===this.plotInfo.axisPlacement&&(this.plotInfo.axisPlacement=\"none\"):null===e&&\"none\"===this.plotInfo.axisPlacement&&(g='You cannot combine \"'+c.type+'\" with pie chart');\nif(g&&window.console){window.console.log(g);return}}for(b=0;b<this.data.length;b++){if(\"none\"==f&&\"error\"===this.data[b].type&&window.console){window.console.log('You cannot combine \"'+c.type+'\" with error chart');return}\"error\"===this.data[b].type&&(this.data[b].axisPlacement=this.plotInfo.axisPlacement=f||\"normal\",this.data[b]._linkedSeries=null===this.data[b].linkedDataSeriesIndex?null:this.data[this.data[b].linkedDataSeriesIndex])}}this._objectsInitialized=!0};q._supportedChartTypes=Ca(\"line stepLine spline column area stepArea splineArea bar bubble scatter stackedColumn stackedColumn100 stackedBar stackedBar100 stackedArea stackedArea100 candlestick ohlc boxAndWhisker rangeColumn error rangeBar rangeArea rangeSplineArea pie doughnut funnel pyramid waterfall\".split(\" \"));\nq.prototype.render=function(a){a&&(this.options=a);this._initialize();var f=[];for(a=0;a<this.data.length;a++)if(\"normal\"===this.plotInfo.axisPlacement||\"xySwapped\"===this.plotInfo.axisPlacement){if(!this.data[a].axisYType||\"primary\"===this.data[a].axisYType)if(this.options.axisY&&0<this.options.axisY.length){if(!this.axisY.length)for(var b=0;b<this.options.axisY.length;b++)\"normal\"===this.plotInfo.axisPlacement?this._axes.push(this.axisY[b]=new C(this,\"axisY\",this.options.axisY[b],b,\"axisY\",\"left\")):\n\"xySwapped\"===this.plotInfo.axisPlacement&&this._axes.push(this.axisY[b]=new C(this,\"axisY\",this.options.axisY[b],b,\"axisY\",\"bottom\"));this.data[a].axisY=this.axisY[0<=this.data[a].axisYIndex&&this.data[a].axisYIndex<this.axisY.length?this.data[a].axisYIndex:0];this.axisY[0<=this.data[a].axisYIndex&&this.data[a].axisYIndex<this.axisY.length?this.data[a].axisYIndex:0].dataSeries.push(this.data[a])}else this.axisY.length||(\"normal\"===this.plotInfo.axisPlacement?this._axes.push(this.axisY[0]=new C(this,\n\"axisY\",this.options.axisY,0,\"axisY\",\"left\")):\"xySwapped\"===this.plotInfo.axisPlacement&&this._axes.push(this.axisY[0]=new C(this,\"axisY\",this.options.axisY,0,\"axisY\",\"bottom\"))),this.data[a].axisY=this.axisY[0],this.axisY[0].dataSeries.push(this.data[a]);if(\"secondary\"===this.data[a].axisYType)if(this.options.axisY2&&0<this.options.axisY2.length){if(!this.axisY2.length)for(b=0;b<this.options.axisY2.length;b++)\"normal\"===this.plotInfo.axisPlacement?this._axes.push(this.axisY2[b]=new C(this,\"axisY2\",\nthis.options.axisY2[b],b,\"axisY\",\"right\")):\"xySwapped\"===this.plotInfo.axisPlacement&&this._axes.push(this.axisY2[b]=new C(this,\"axisY2\",this.options.axisY2[b],b,\"axisY\",\"top\"));this.data[a].axisY=this.axisY2[0<=this.data[a].axisYIndex&&this.data[a].axisYIndex<this.axisY2.length?this.data[a].axisYIndex:0];this.axisY2[0<=this.data[a].axisYIndex&&this.data[a].axisYIndex<this.axisY2.length?this.data[a].axisYIndex:0].dataSeries.push(this.data[a])}else this.axisY2.length||(\"normal\"===this.plotInfo.axisPlacement?\nthis._axes.push(this.axisY2[0]=new C(this,\"axisY2\",this.options.axisY2,0,\"axisY\",\"right\")):\"xySwapped\"===this.plotInfo.axisPlacement&&this._axes.push(this.axisY2[0]=new C(this,\"axisY2\",this.options.axisY2,0,\"axisY\",\"top\"))),this.data[a].axisY=this.axisY2[0],this.axisY2[0].dataSeries.push(this.data[a]);if(!this.data[a].axisXType||\"primary\"===this.data[a].axisXType)if(this.options.axisX&&0<this.options.axisX.length){if(!this.axisX.length)for(b=0;b<this.options.axisX.length;b++)\"normal\"===this.plotInfo.axisPlacement?\nthis._axes.push(this.axisX[b]=new C(this,\"axisX\",this.options.axisX[b],b,\"axisX\",\"bottom\")):\"xySwapped\"===this.plotInfo.axisPlacement&&this._axes.push(this.axisX[b]=new C(this,\"axisX\",this.options.axisX[b],b,\"axisX\",\"left\"));this.data[a].axisX=this.axisX[0<=this.data[a].axisXIndex&&this.data[a].axisXIndex<this.axisX.length?this.data[a].axisXIndex:0];this.axisX[0<=this.data[a].axisXIndex&&this.data[a].axisXIndex<this.axisX.length?this.data[a].axisXIndex:0].dataSeries.push(this.data[a])}else this.axisX.length||\n(\"normal\"===this.plotInfo.axisPlacement?this._axes.push(this.axisX[0]=new C(this,\"axisX\",this.options.axisX,0,\"axisX\",\"bottom\")):\"xySwapped\"===this.plotInfo.axisPlacement&&this._axes.push(this.axisX[0]=new C(this,\"axisX\",this.options.axisX,0,\"axisX\",\"left\"))),this.data[a].axisX=this.axisX[0],this.axisX[0].dataSeries.push(this.data[a]);if(\"secondary\"===this.data[a].axisXType)if(this.options.axisX2&&0<this.options.axisX2.length){if(!this.axisX2.length)for(b=0;b<this.options.axisX2.length;b++)\"normal\"===\nthis.plotInfo.axisPlacement?this._axes.push(this.axisX2[b]=new C(this,\"axisX2\",this.options.axisX2[b],b,\"axisX\",\"top\")):\"xySwapped\"===this.plotInfo.axisPlacement&&this._axes.push(this.axisX2[b]=new C(this,\"axisX2\",this.options.axisX2[b],b,\"axisX\",\"right\"));this.data[a].axisX=this.axisX2[0<=this.data[a].axisXIndex&&this.data[a].axisXIndex<this.axisX2.length?this.data[a].axisXIndex:0];this.axisX2[0<=this.data[a].axisXIndex&&this.data[a].axisXIndex<this.axisX2.length?this.data[a].axisXIndex:0].dataSeries.push(this.data[a])}else this.axisX2.length||\n(\"normal\"===this.plotInfo.axisPlacement?this._axes.push(this.axisX2[0]=new C(this,\"axisX2\",this.options.axisX2,0,\"axisX\",\"top\")):\"xySwapped\"===this.plotInfo.axisPlacement&&this._axes.push(this.axisX2[0]=new C(this,\"axisX2\",this.options.axisX2,0,\"axisX\",\"right\"))),this.data[a].axisX=this.axisX2[0],this.axisX2[0].dataSeries.push(this.data[a])}if(this.axisY){for(b=1;b<this.axisY.length;b++)\"undefined\"===typeof this.axisY[b].options.gridThickness&&(this.axisY[b].gridThickness=0);for(b=0;b<this.axisY.length-\n1;b++)\"undefined\"===typeof this.axisY[b].options.margin&&(this.axisY[b].margin=10)}if(this.axisY2){for(b=1;b<this.axisY2.length;b++)\"undefined\"===typeof this.axisY2[b].options.gridThickness&&(this.axisY2[b].gridThickness=0);for(b=0;b<this.axisY2.length-1;b++)\"undefined\"===typeof this.axisY2[b].options.margin&&(this.axisY2[b].margin=10)}this.axisY&&0<this.axisY.length&&(this.axisY2&&0<this.axisY2.length)&&(0<this.axisY[0].gridThickness&&\"undefined\"===typeof this.axisY2[0].options.gridThickness?this.axisY2[0].gridThickness=\n0:0<this.axisY2[0].gridThickness&&\"undefined\"===typeof this.axisY[0].options.gridThickness&&(this.axisY[0].gridThickness=0));if(this.axisX)for(b=0;b<this.axisX.length;b++)\"undefined\"===typeof this.axisX[b].options.gridThickness&&(this.axisX[b].gridThickness=0);if(this.axisX2)for(b=0;b<this.axisX2.length;b++)\"undefined\"===typeof this.axisX2[b].options.gridThickness&&(this.axisX2[b].gridThickness=0);this.axisX&&0<this.axisX.length&&(this.axisX2&&0<this.axisX2.length)&&(0<this.axisX[0].gridThickness&&\n\"undefined\"===typeof this.axisX2[0].options.gridThickness?this.axisX2[0].gridThickness=0:0<this.axisX2[0].gridThickness&&\"undefined\"===typeof this.axisX[0].options.gridThickness&&(this.axisX[0].gridThickness=0));b=!1;if(0<this._axes.length&&(this.zoomEnabled||this.panEnabled))for(a=0;a<this._axes.length;a++)if(null!==this._axes[a].viewportMinimum||null!==this._axes[a].viewportMaximum){b=!0;break}b?(Ma(this._zoomButton,this._resetButton),this._toolBar.style.border=this.toolbar.borderThickness+\"px solid \"+\nthis.toolbar.borderColor,this._zoomButton.style.borderRight=this.toolbar.borderThickness+\"px solid \"+this.toolbar.borderColor,this._resetButton.style.borderRight=(this.exportEnabled?this.toolbar.borderThickness:0)+\"px solid \"+this.toolbar.borderColor):(va(this._zoomButton,this._resetButton),this._toolBar.style.border=this.toolbar.borderThickness+\"px solid transparent\",this.options.zoomEnabled&&(this.zoomEnabled=!0,this.panEnabled=!1));bb(this);this._processData();this.options.title&&(this.title=new Ha(this,\nthis.options.title),this.title.dockInsidePlotArea?f.push(this.title):this.title.render());if(this.options.subtitles)for(this.subtitles=[],a=0;a<this.options.subtitles.length;a++)b=new Na(this,this.options.subtitles[a],a),this.subtitles.push(b),b.dockInsidePlotArea?f.push(b):b.render();this.legend=new T(this,this.options.legend);for(a=0;a<this.data.length;a++)(this.data[a].showInLegend||\"pie\"===this.data[a].type||\"doughnut\"===this.data[a].type||\"funnel\"===this.data[a].type||\"pyramid\"===this.data[a].type)&&\nthis.legend.dataSeries.push(this.data[a]);this.legend.dockInsidePlotArea?f.push(this.legend):this.legend.render();for(a=0;a<this._axes.length;a++)if(this._axes[a].scaleBreaks&&this._axes[a].scaleBreaks._appliedBreaks.length){v?(this._breaksCanvas=ta(this.width,this.height,!0),this._breaksCanvasCtx=this._breaksCanvas.getContext(\"2d\")):(this._breaksCanvas=this.canvas,this._breaksCanvasCtx=this.ctx);break}this._preRenderCanvas=ta(this.width,this.height);this._preRenderCtx=this._preRenderCanvas.getContext(\"2d\");\nif(\"normal\"===this.plotInfo.axisPlacement||\"xySwapped\"===this.plotInfo.axisPlacement)C.setLayoutAndRender(this.axisX,this.axisX2,this.axisY,this.axisY2,this.plotInfo.axisPlacement,this.layoutManager.getFreeSpace());else if(\"none\"===this.plotInfo.axisPlacement)this.preparePlotArea();else return;for(a=0;a<f.length;a++)f[a].render();var c=[];if(this.animatedRender){var e=ta(this.width,this.height);e.getContext(\"2d\").drawImage(this.canvas,0,0,this.width,this.height)}cb(this);var f=this.ctx.miterLimit,\ng;this.ctx.miterLimit=3;v&&this._breaksCanvas&&(this._preRenderCtx.drawImage(this.canvas,0,0,this.width,this.height),this._preRenderCtx.drawImage(this._breaksCanvas,0,0,this.width,this.height),this._breaksCanvasCtx.globalCompositeOperation=\"source-atop\",this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),this._preRenderCtx.clearRect(0,0,this.width,this.height));for(a=0;a<this.plotInfo.plotTypes.length;a++)for(var h=this.plotInfo.plotTypes[a],l=0;l<h.plotUnits.length;l++){var t=\nh.plotUnits[l],k=null;t.targetCanvas=null;this.animatedRender&&(t.targetCanvas=ta(this.width,this.height),t.targetCanvasCtx=t.targetCanvas.getContext(\"2d\"),g=t.targetCanvasCtx.miterLimit,t.targetCanvasCtx.miterLimit=3);\"line\"===t.type?k=this.renderLine(t):\"stepLine\"===t.type?k=this.renderStepLine(t):\"spline\"===t.type?k=this.renderSpline(t):\"column\"===t.type?k=this.renderColumn(t):\"bar\"===t.type?k=this.renderBar(t):\"area\"===t.type?k=this.renderArea(t):\"stepArea\"===t.type?k=this.renderStepArea(t):\"splineArea\"===\nt.type?k=this.renderSplineArea(t):\"stackedColumn\"===t.type?k=this.renderStackedColumn(t):\"stackedColumn100\"===t.type?k=this.renderStackedColumn100(t):\"stackedBar\"===t.type?k=this.renderStackedBar(t):\"stackedBar100\"===t.type?k=this.renderStackedBar100(t):\"stackedArea\"===t.type?k=this.renderStackedArea(t):\"stackedArea100\"===t.type?k=this.renderStackedArea100(t):\"bubble\"===t.type?k=k=this.renderBubble(t):\"scatter\"===t.type?k=this.renderScatter(t):\"pie\"===t.type?this.renderPie(t):\"doughnut\"===t.type?\nthis.renderPie(t):\"funnel\"===t.type?k=this.renderFunnel(t):\"pyramid\"===t.type?k=this.renderFunnel(t):\"candlestick\"===t.type?k=this.renderCandlestick(t):\"ohlc\"===t.type?k=this.renderCandlestick(t):\"rangeColumn\"===t.type?k=this.renderRangeColumn(t):\"error\"===t.type?k=this.renderError(t):\"rangeBar\"===t.type?k=this.renderRangeBar(t):\"rangeArea\"===t.type?k=this.renderRangeArea(t):\"rangeSplineArea\"===t.type?k=this.renderRangeSplineArea(t):\"waterfall\"===t.type?k=this.renderWaterfall(t):\"boxAndWhisker\"===\nt.type&&(k=this.renderBoxAndWhisker(t));for(b=0;b<t.dataSeriesIndexes.length;b++)this._dataInRenderedOrder.push(this.data[t.dataSeriesIndexes[b]]);this.animatedRender&&(t.targetCanvasCtx.miterLimit=g,k&&c.push(k))}this.ctx.miterLimit=f;this.animatedRender&&this._breaksCanvasCtx&&c.push({source:this._breaksCanvasCtx,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0,startTimePercent:0.7});this.animatedRender&&0<this._indexLabels.length&&(g=\nta(this.width,this.height).getContext(\"2d\"),c.push(this.renderIndexLabels(g)));var r=this;if(0<c.length)r.disableToolTip=!0,r._animator.animate(200,r.animationDuration,function(a){r.ctx.clearRect(0,0,r.width,r.height);r.ctx.drawImage(e,0,0,Math.floor(r.width*ia),Math.floor(r.height*ia),0,0,r.width,r.height);for(var b=0;b<c.length;b++)k=c[b],1>a&&\"undefined\"!==typeof k.startTimePercent?a>=k.startTimePercent&&k.animationCallback(k.easingFunction(a-k.startTimePercent,0,1,1-k.startTimePercent),k):k.animationCallback(k.easingFunction(a,\n0,1,1),k);r.dispatchEvent(\"dataAnimationIterationEnd\",{chart:r})},function(){c=[];for(var a=0;a<r.plotInfo.plotTypes.length;a++)for(var b=r.plotInfo.plotTypes[a],d=0;d<b.plotUnits.length;d++)b.plotUnits[d].targetCanvas=null;e=null;r.disableToolTip=!1});else{if(r._breaksCanvas)if(v)r.plotArea.ctx.drawImage(r._breaksCanvas,0,0,this.width,this.height);else for(b=0;b<r._axes.length;b++)r._axes[b].createMask();0<r._indexLabels.length&&r.renderIndexLabels();r.dispatchEvent(\"dataAnimationIterationEnd\",{chart:r})}this.attachPlotAreaEventHandlers();\nthis.zoomEnabled||(this.panEnabled||!this._zoomButton||\"none\"===this._zoomButton.style.display)||va(this._zoomButton,this._resetButton);this.toolTip._updateToolTip();this.renderCount++;this._breaksCanvas&&(delete this._breaksCanvas,delete this._breaksCanvasCtx);for(b=0;b<this._axes.length;b++)this._axes[b].maskCanvas&&(delete this._axes[b].maskCanvas,delete this._axes[b].maskCtx)};q.prototype.attachPlotAreaEventHandlers=function(){this.attachEvent({context:this,chart:this,mousedown:this._plotAreaMouseDown,\nmouseup:this._plotAreaMouseUp,mousemove:this._plotAreaMouseMove,cursor:this.panEnabled?\"move\":\"default\",capture:!0,bounds:this.plotArea})};q.prototype.categoriseDataSeries=function(){for(var a=\"\",f=0;f<this.data.length;f++)if(a=this.data[f],a.dataPoints&&(0!==a.dataPoints.length&&a.visible)&&0<=q._supportedChartTypes.indexOf(a.type)){for(var b=null,c=!1,e=null,g=!1,h=0;h<this.plotInfo.plotTypes.length;h++)if(this.plotInfo.plotTypes[h].type===a.type){c=!0;b=this.plotInfo.plotTypes[h];break}c||(b={type:a.type,\ntotalDataSeries:0,plotUnits:[]},this.plotInfo.plotTypes.push(b));for(h=0;h<b.plotUnits.length;h++)if(b.plotUnits[h].axisYType===a.axisYType&&b.plotUnits[h].axisXType===a.axisXType&&b.plotUnits[h].axisYIndex===a.axisYIndex&&b.plotUnits[h].axisXIndex===a.axisXIndex){g=!0;e=b.plotUnits[h];break}g||(e={type:a.type,previousDataSeriesCount:0,index:b.plotUnits.length,plotType:b,axisXType:a.axisXType,axisYType:a.axisYType,axisYIndex:a.axisYIndex,axisXIndex:a.axisXIndex,axisY:\"primary\"===a.axisYType?this.axisY[0<=\na.axisYIndex&&a.axisYIndex<this.axisY.length?a.axisYIndex:0]:this.axisY2[0<=a.axisYIndex&&a.axisYIndex<this.axisY2.length?a.axisYIndex:0],axisX:\"primary\"===a.axisXType?this.axisX[0<=a.axisXIndex&&a.axisXIndex<this.axisX.length?a.axisXIndex:0]:this.axisX2[0<=a.axisXIndex&&a.axisXIndex<this.axisX2.length?a.axisXIndex:0],dataSeriesIndexes:[],yTotals:[]},b.plotUnits.push(e));b.totalDataSeries++;e.dataSeriesIndexes.push(f);a.plotUnit=e}for(f=0;f<this.plotInfo.plotTypes.length;f++)for(b=this.plotInfo.plotTypes[f],\nh=a=0;h<b.plotUnits.length;h++)b.plotUnits[h].previousDataSeriesCount=a,a+=b.plotUnits[h].dataSeriesIndexes.length};q.prototype.assignIdToDataPoints=function(){for(var a=0;a<this.data.length;a++){var f=this.data[a];if(f.dataPoints)for(var b=f.dataPoints.length,c=0;c<b;c++)f.dataPointIds[c]=++this._eventManager.lastObjectId}};q.prototype._processData=function(){this.assignIdToDataPoints();this.categoriseDataSeries();for(var a=0;a<this.plotInfo.plotTypes.length;a++)for(var f=this.plotInfo.plotTypes[a],\nb=0;b<f.plotUnits.length;b++){var c=f.plotUnits[b];\"line\"===c.type||\"stepLine\"===c.type||\"spline\"===c.type||\"column\"===c.type||\"area\"===c.type||\"stepArea\"===c.type||\"splineArea\"===c.type||\"bar\"===c.type||\"bubble\"===c.type||\"scatter\"===c.type?this._processMultiseriesPlotUnit(c):\"stackedColumn\"===c.type||\"stackedBar\"===c.type||\"stackedArea\"===c.type?this._processStackedPlotUnit(c):\"stackedColumn100\"===c.type||\"stackedBar100\"===c.type||\"stackedArea100\"===c.type?this._processStacked100PlotUnit(c):\"candlestick\"===\nc.type||\"ohlc\"===c.type||\"rangeColumn\"===c.type||\"rangeBar\"===c.type||\"rangeArea\"===c.type||\"rangeSplineArea\"===c.type||\"error\"===c.type||\"boxAndWhisker\"===c.type?this._processMultiYPlotUnit(c):\"waterfall\"===c.type&&this._processSpecificPlotUnit(c)}this.calculateAutoBreaks()};q.prototype._processMultiseriesPlotUnit=function(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length))for(var f=a.axisY.dataInfo,b=a.axisX.dataInfo,c,e,g=!1,h=0;h<a.dataSeriesIndexes.length;h++){var l=this.data[a.dataSeriesIndexes[h]],\nt=0,k=!1,r=!1,p;if(\"normal\"===l.axisPlacement||\"xySwapped\"===l.axisPlacement)var n=a.axisX.sessionVariables.newViewportMinimum?a.axisX.sessionVariables.newViewportMinimum:this.options.axisX&&this.options.axisX.viewportMinimum?this.options.axisX.viewportMinimum:this.options.axisX&&this.options.axisX.minimum?this.options.axisX.minimum:a.axisX.logarithmic?0:-Infinity,d=a.axisX.sessionVariables.newViewportMaximum?a.axisX.sessionVariables.newViewportMaximum:this.options.axisX&&this.options.axisX.viewportMaximum?\nthis.options.axisX.viewportMaximum:this.options.axisX&&this.options.axisX.maximum?this.options.axisX.maximum:Infinity;if(l.dataPoints[t].x&&l.dataPoints[t].x.getTime||\"dateTime\"===l.xValueType)g=!0;for(t=0;t<l.dataPoints.length;t++){\"undefined\"===typeof l.dataPoints[t].x&&(l.dataPoints[t].x=t+(a.axisX.logarithmic?1:0));l.dataPoints[t].x.getTime?(g=!0,c=l.dataPoints[t].x.getTime()):c=l.dataPoints[t].x;e=l.dataPoints[t].y;c<b.min&&(b.min=c);c>b.max&&(b.max=c);e<f.min&&\"number\"===typeof e&&(f.min=e);\ne>f.max&&\"number\"===typeof e&&(f.max=e);if(0<t){if(a.axisX.logarithmic){var w=c/l.dataPoints[t-1].x;1>w&&(w=1/w);b.minDiff>w&&1!==w&&(b.minDiff=w)}else w=c-l.dataPoints[t-1].x,0>w&&(w*=-1),b.minDiff>w&&0!==w&&(b.minDiff=w);null!==e&&null!==l.dataPoints[t-1].y&&(a.axisY.logarithmic?(w=e/l.dataPoints[t-1].y,1>w&&(w=1/w),f.minDiff>w&&1!==w&&(f.minDiff=w)):(w=e-l.dataPoints[t-1].y,0>w&&(w*=-1),f.minDiff>w&&0!==w&&(f.minDiff=w)))}if(c<n&&!k)null!==e&&(p=c);else{if(!k&&(k=!0,0<t)){t-=2;continue}if(c>d&&\n!r)r=!0;else if(c>d&&r)continue;l.dataPoints[t].label&&(a.axisX.labels[c]=l.dataPoints[t].label);c<b.viewPortMin&&(b.viewPortMin=c);c>b.viewPortMax&&(b.viewPortMax=c);null===e?b.viewPortMin===c&&p<c&&(b.viewPortMin=p):(e<f.viewPortMin&&\"number\"===typeof e&&(f.viewPortMin=e),e>f.viewPortMax&&\"number\"===typeof e&&(f.viewPortMax=e))}}l.axisX.valueType=l.xValueType=g?\"dateTime\":\"number\"}};q.prototype._processStackedPlotUnit=function(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length)){for(var f=\na.axisY.dataInfo,b=a.axisX.dataInfo,c,e,g=!1,h=[],l=[],t=Infinity,k=-Infinity,r=0;r<a.dataSeriesIndexes.length;r++){var p=this.data[a.dataSeriesIndexes[r]],n=0,d=!1,w=!1,ya;if(\"normal\"===p.axisPlacement||\"xySwapped\"===p.axisPlacement)var D=a.axisX.sessionVariables.newViewportMinimum?a.axisX.sessionVariables.newViewportMinimum:this.options.axisX&&this.options.axisX.viewportMinimum?this.options.axisX.viewportMinimum:this.options.axisX&&this.options.axisX.minimum?this.options.axisX.minimum:-Infinity,\nu=a.axisX.sessionVariables.newViewportMaximum?a.axisX.sessionVariables.newViewportMaximum:this.options.axisX&&this.options.axisX.viewportMaximum?this.options.axisX.viewportMaximum:this.options.axisX&&this.options.axisX.maximum?this.options.axisX.maximum:Infinity;if(p.dataPoints[n].x&&p.dataPoints[n].x.getTime||\"dateTime\"===p.xValueType)g=!0;for(n=0;n<p.dataPoints.length;n++){\"undefined\"===typeof p.dataPoints[n].x&&(p.dataPoints[n].x=n+(a.axisX.logarithmic?1:0));p.dataPoints[n].x.getTime?(g=!0,c=p.dataPoints[n].x.getTime()):\nc=p.dataPoints[n].x;e=y(p.dataPoints[n].y)?0:p.dataPoints[n].y;c<b.min&&(b.min=c);c>b.max&&(b.max=c);if(0<n){if(a.axisX.logarithmic){var m=c/p.dataPoints[n-1].x;1>m&&(m=1/m);b.minDiff>m&&1!==m&&(b.minDiff=m)}else m=c-p.dataPoints[n-1].x,0>m&&(m*=-1),b.minDiff>m&&0!==m&&(b.minDiff=m);null!==e&&null!==p.dataPoints[n-1].y&&(a.axisY.logarithmic?0<e&&(m=e/p.dataPoints[n-1].y,1>m&&(m=1/m),f.minDiff>m&&1!==m&&(f.minDiff=m)):(m=e-p.dataPoints[n-1].y,0>m&&(m*=-1),f.minDiff>m&&0!==m&&(f.minDiff=m)))}if(c<D&&\n!d)null!==p.dataPoints[n].y&&(ya=c);else{if(!d&&(d=!0,0<n)){n-=2;continue}if(c>u&&!w)w=!0;else if(c>u&&w)continue;p.dataPoints[n].label&&(a.axisX.labels[c]=p.dataPoints[n].label);c<b.viewPortMin&&(b.viewPortMin=c);c>b.viewPortMax&&(b.viewPortMax=c);null===p.dataPoints[n].y?b.viewPortMin===c&&ya<c&&(b.viewPortMin=ya):(a.yTotals[c]=(a.yTotals[c]?a.yTotals[c]:0)+e,0<=e?h[c]?h[c]+=e:(h[c]=e,t=Math.min(e,t)):l[c]?l[c]+=e:(l[c]=e,k=Math.max(e,k)))}}a.axisY.scaleBreaks&&(a.axisY.scaleBreaks.autoCalculate&&\n1<=a.axisY.scaleBreaks.maxNumberOfAutoBreaks)&&(f.dataPointYPositiveSums?(f.dataPointYPositiveSums.push.apply(f.dataPointYPositiveSums,h),f.dataPointYNegativeSums.push.apply(f.dataPointYPositiveSums,l)):(f.dataPointYPositiveSums=h,f.dataPointYNegativeSums=l));p.axisX.valueType=p.xValueType=g?\"dateTime\":\"number\"}for(n in h)h.hasOwnProperty(n)&&!isNaN(n)&&(a=h[n],a<f.min&&(f.min=Math.min(a,t)),a>f.max&&(f.max=a),n<b.viewPortMin||n>b.viewPortMax||(a<f.viewPortMin&&(f.viewPortMin=Math.min(a,t)),a>f.viewPortMax&&\n(f.viewPortMax=a)));for(n in l)l.hasOwnProperty(n)&&!isNaN(n)&&(a=l[n],a<f.min&&(f.min=a),a>f.max&&(f.max=Math.max(a,k)),n<b.viewPortMin||n>b.viewPortMax||(a<f.viewPortMin&&(f.viewPortMin=a),a>f.viewPortMax&&(f.viewPortMax=Math.max(a,k))))}};q.prototype._processStacked100PlotUnit=function(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length)){for(var f=a.axisY.dataInfo,b=a.axisX.dataInfo,c,e,g=!1,h=!1,l=!1,t=[],k=0;k<a.dataSeriesIndexes.length;k++){var r=this.data[a.dataSeriesIndexes[k]],p=0,\nn=!1,d=!1,w;if(\"normal\"===r.axisPlacement||\"xySwapped\"===r.axisPlacement)var m=a.axisX.sessionVariables.newViewportMinimum?a.axisX.sessionVariables.newViewportMinimum:this.options.axisX&&this.options.axisX.viewportMinimum?this.options.axisX.viewportMinimum:this.options.axisX&&this.options.axisX.minimum?this.options.axisX.minimum:-Infinity,D=a.axisX.sessionVariables.newViewportMaximum?a.axisX.sessionVariables.newViewportMaximum:this.options.axisX&&this.options.axisX.viewportMaximum?this.options.axisX.viewportMaximum:\nthis.options.axisX&&this.options.axisX.maximum?this.options.axisX.maximum:Infinity;if(r.dataPoints[p].x&&r.dataPoints[p].x.getTime||\"dateTime\"===r.xValueType)g=!0;for(p=0;p<r.dataPoints.length;p++){\"undefined\"===typeof r.dataPoints[p].x&&(r.dataPoints[p].x=p+(a.axisX.logarithmic?1:0));r.dataPoints[p].x.getTime?(g=!0,c=r.dataPoints[p].x.getTime()):c=r.dataPoints[p].x;e=y(r.dataPoints[p].y)?null:r.dataPoints[p].y;c<b.min&&(b.min=c);c>b.max&&(b.max=c);if(0<p){if(a.axisX.logarithmic){var u=c/r.dataPoints[p-\n1].x;1>u&&(u=1/u);b.minDiff>u&&1!==u&&(b.minDiff=u)}else u=c-r.dataPoints[p-1].x,0>u&&(u*=-1),b.minDiff>u&&0!==u&&(b.minDiff=u);y(e)||null===r.dataPoints[p-1].y||(a.axisY.logarithmic?0<e&&(u=e/r.dataPoints[p-1].y,1>u&&(u=1/u),f.minDiff>u&&1!==u&&(f.minDiff=u)):(u=e-r.dataPoints[p-1].y,0>u&&(u*=-1),f.minDiff>u&&0!==u&&(f.minDiff=u)))}if(c<m&&!n)null!==e&&(w=c);else{if(!n&&(n=!0,0<p)){p-=2;continue}if(c>D&&!d)d=!0;else if(c>D&&d)continue;r.dataPoints[p].label&&(a.axisX.labels[c]=r.dataPoints[p].label);\nc<b.viewPortMin&&(b.viewPortMin=c);c>b.viewPortMax&&(b.viewPortMax=c);null===e?b.viewPortMin===c&&w<c&&(b.viewPortMin=w):(a.yTotals[c]=(a.yTotals[c]?a.yTotals[c]:0)+e,0<=e?h=!0:0>e&&(l=!0),t[c]=t[c]?t[c]+Math.abs(e):Math.abs(e))}}r.axisX.valueType=r.xValueType=g?\"dateTime\":\"number\"}a.axisY.logarithmic?(f.max=y(f.viewPortMax)?99*Math.pow(a.axisY.logarithmBase,-0.05):Math.max(f.viewPortMax,99*Math.pow(a.axisY.logarithmBase,-0.05)),f.min=y(f.viewPortMin)?1:Math.min(f.viewPortMin,1)):h&&!l?(f.max=y(f.viewPortMax)?\n99:Math.max(f.viewPortMax,99),f.min=y(f.viewPortMin)?1:Math.min(f.viewPortMin,1)):h&&l?(f.max=y(f.viewPortMax)?99:Math.max(f.viewPortMax,99),f.min=y(f.viewPortMin)?-99:Math.min(f.viewPortMin,-99)):!h&&l&&(f.max=y(f.viewPortMax)?-1:Math.max(f.viewPortMax,-1),f.min=y(f.viewPortMin)?-99:Math.min(f.viewPortMin,-99));f.viewPortMin=f.min;f.viewPortMax=f.max;a.dataPointYSums=t}};q.prototype._processMultiYPlotUnit=function(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length))for(var f=a.axisY.dataInfo,\nb=a.axisX.dataInfo,c,e,g,h,l=!1,t=0;t<a.dataSeriesIndexes.length;t++){var k=this.data[a.dataSeriesIndexes[t]],r=0,p=!1,n=!1,d,w,m;if(\"normal\"===k.axisPlacement||\"xySwapped\"===k.axisPlacement)var D=a.axisX.sessionVariables.newViewportMinimum?a.axisX.sessionVariables.newViewportMinimum:this.options.axisX&&this.options.axisX.viewportMinimum?this.options.axisX.viewportMinimum:this.options.axisX&&this.options.axisX.minimum?this.options.axisX.minimum:a.axisX.logarithmic?0:-Infinity,u=a.axisX.sessionVariables.newViewportMaximum?\na.axisX.sessionVariables.newViewportMaximum:this.options.axisX&&this.options.axisX.viewportMaximum?this.options.axisX.viewportMaximum:this.options.axisX&&this.options.axisX.maximum?this.options.axisX.maximum:Infinity;if(k.dataPoints[r].x&&k.dataPoints[r].x.getTime||\"dateTime\"===k.xValueType)l=!0;for(r=0;r<k.dataPoints.length;r++){\"undefined\"===typeof k.dataPoints[r].x&&(k.dataPoints[r].x=r+(a.axisX.logarithmic?1:0));k.dataPoints[r].x.getTime?(l=!0,c=k.dataPoints[r].x.getTime()):c=k.dataPoints[r].x;\nif((e=k.dataPoints[r].y)&&e.length){g=Math.min.apply(null,e);h=Math.max.apply(null,e);w=!0;for(var v=0;v<e.length;v++)null===e.k&&(w=!1);w&&(p||(m=d),d=c)}c<b.min&&(b.min=c);c>b.max&&(b.max=c);g<f.min&&(f.min=g);h>f.max&&(f.max=h);0<r&&(a.axisX.logarithmic?(w=c/k.dataPoints[r-1].x,1>w&&(w=1/w),b.minDiff>w&&1!==w&&(b.minDiff=w)):(w=c-k.dataPoints[r-1].x,0>w&&(w*=-1),b.minDiff>w&&0!==w&&(b.minDiff=w)),e&&(null!==e[0]&&k.dataPoints[r-1].y&&null!==k.dataPoints[r-1].y[0])&&(a.axisY.logarithmic?(w=e[0]/\nk.dataPoints[r-1].y[0],1>w&&(w=1/w),f.minDiff>w&&1!==w&&(f.minDiff=w)):(w=e[0]-k.dataPoints[r-1].y[0],0>w&&(w*=-1),f.minDiff>w&&0!==w&&(f.minDiff=w))));if(!(c<D)||p){if(!p&&(p=!0,0<r)){r-=2;d=m;continue}if(c>u&&!n)n=!0;else if(c>u&&n)continue;k.dataPoints[r].label&&(a.axisX.labels[c]=k.dataPoints[r].label);c<b.viewPortMin&&(b.viewPortMin=c);c>b.viewPortMax&&(b.viewPortMax=c);if(b.viewPortMin===c&&e)for(v=0;v<e.length;v++)if(null===e[v]&&d<c){b.viewPortMin=d;break}null===e?b.viewPortMin===c&&d<c&&\n(b.viewPortMin=d):(g<f.viewPortMin&&(f.viewPortMin=g),h>f.viewPortMax&&(f.viewPortMax=h))}}k.axisX.valueType=k.xValueType=l?\"dateTime\":\"number\"}};q.prototype._processSpecificPlotUnit=function(a){if(\"waterfall\"===a.type&&a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length))for(var f=a.axisY.dataInfo,b=a.axisX.dataInfo,c,e,g=!1,h=0;h<a.dataSeriesIndexes.length;h++){var l=this.data[a.dataSeriesIndexes[h]],t=0,k=!1,r=!1,p=c=0;if(\"normal\"===l.axisPlacement||\"xySwapped\"===l.axisPlacement)var n=a.axisX.sessionVariables.newViewportMinimum?\na.axisX.sessionVariables.newViewportMinimum:this.options.axisX&&this.options.axisX.viewportMinimum?this.options.axisX.viewportMinimum:this.options.axisX&&this.options.axisX.minimum?this.options.axisX.minimum:a.axisX.logarithmic?0:-Infinity,d=a.axisX.sessionVariables.newViewportMaximum?a.axisX.sessionVariables.newViewportMaximum:this.options.axisX&&this.options.axisX.viewportMaximum?this.options.axisX.viewportMaximum:this.options.axisX&&this.options.axisX.maximum?this.options.axisX.maximum:Infinity;\nif(l.dataPoints[t].x&&l.dataPoints[t].x.getTime||\"dateTime\"===l.xValueType)g=!0;for(t=0;t<l.dataPoints.length;t++)\"undefined\"!==typeof l.dataPoints[t].isCumulativeSum&&!0===l.dataPoints[t].isCumulativeSum?(l.dataPointEOs[t].cumulativeSumYStartValue=0,l.dataPointEOs[t].cumulativeSum=0===t?0:l.dataPointEOs[t-1].cumulativeSum,l.dataPoints[t].y=0===t?0:l.dataPointEOs[t-1].cumulativeSum):\"undefined\"!==typeof l.dataPoints[t].isIntermediateSum&&!0===l.dataPoints[t].isIntermediateSum?(l.dataPointEOs[t].cumulativeSumYStartValue=\np,l.dataPointEOs[t].cumulativeSum=0===t?0:l.dataPointEOs[t-1].cumulativeSum,l.dataPoints[t].y=0===t?0:c,p=0===t?0:l.dataPointEOs[t-1].cumulativeSum,c=0):(e=\"number\"!==typeof l.dataPoints[t].y?0:l.dataPoints[t].y,l.dataPointEOs[t].cumulativeSumYStartValue=0===t?0:l.dataPointEOs[t-1].cumulativeSum,l.dataPointEOs[t].cumulativeSum=0===t?e:l.dataPointEOs[t-1].cumulativeSum+e,c+=e);for(t=0;t<l.dataPoints.length;t++)if(\"undefined\"===typeof l.dataPoints[t].x&&(l.dataPoints[t].x=t+(a.axisX.logarithmic?1:0)),\nl.dataPoints[t].x.getTime?(g=!0,c=l.dataPoints[t].x.getTime()):c=l.dataPoints[t].x,e=l.dataPoints[t].y,c<b.min&&(b.min=c),c>b.max&&(b.max=c),l.dataPointEOs[t].cumulativeSum<f.min&&(f.min=l.dataPointEOs[t].cumulativeSum),l.dataPointEOs[t].cumulativeSum>f.max&&(f.max=l.dataPointEOs[t].cumulativeSum),0<t&&(a.axisX.logarithmic?(p=c/l.dataPoints[t-1].x,1>p&&(p=1/p),b.minDiff>p&&1!==p&&(b.minDiff=p)):(p=c-l.dataPoints[t-1].x,0>p&&(p*=-1),b.minDiff>p&&0!==p&&(b.minDiff=p)),null!==e&&null!==l.dataPoints[t-\n1].y&&(a.axisY.logarithmic?(e=l.dataPointEOs[t].cumulativeSum/l.dataPointEOs[t-1].cumulativeSum,1>e&&(e=1/e),f.minDiff>e&&1!==e&&(f.minDiff=e)):(e=l.dataPointEOs[t].cumulativeSum-l.dataPointEOs[t-1].cumulativeSum,0>e&&(e*=-1),f.minDiff>e&&0!==e&&(f.minDiff=e)))),!(c<n)||k){if(!k&&(k=!0,0<t)){t-=2;continue}if(c>d&&!r)r=!0;else if(c>d&&r)continue;l.dataPoints[t].label&&(a.axisX.labels[c]=l.dataPoints[t].label);c<b.viewPortMin&&(b.viewPortMin=c);c>b.viewPortMax&&(b.viewPortMax=c);0<t&&(l.dataPointEOs[t-\n1].cumulativeSum<f.viewPortMin&&(f.viewPortMin=l.dataPointEOs[t-1].cumulativeSum),l.dataPointEOs[t-1].cumulativeSum>f.viewPortMax&&(f.viewPortMax=l.dataPointEOs[t-1].cumulativeSum));l.dataPointEOs[t].cumulativeSum<f.viewPortMin&&(f.viewPortMin=l.dataPointEOs[t].cumulativeSum);l.dataPointEOs[t].cumulativeSum>f.viewPortMax&&(f.viewPortMax=l.dataPointEOs[t].cumulativeSum)}l.axisX.valueType=l.xValueType=g?\"dateTime\":\"number\"}};q.prototype.calculateAutoBreaks=function(){function a(a,c,b,e){if(e)return b=\nMath.pow(Math.min(b*a/c,c/a),0.2),1>=b&&(b=Math.pow(1>a?1/a:Math.min(c/a,a),0.25)),{startValue:a*b,endValue:c/b};b=0.2*Math.min(b-c+a,c-a);0>=b&&(b=0.25*Math.min(c-a,Math.abs(a)));return{startValue:a+b,endValue:c-b}}function f(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length)){var c=a.axisX.scaleBreaks&&a.axisX.scaleBreaks.autoCalculate&&1<=a.axisX.scaleBreaks.maxNumberOfAutoBreaks,b=a.axisY.scaleBreaks&&a.axisY.scaleBreaks.autoCalculate&&1<=a.axisY.scaleBreaks.maxNumberOfAutoBreaks;if(c||\nb)for(var f=a.axisY.dataInfo,g=a.axisX.dataInfo,k,h=g.min,n=g.max,l=f.min,t=f.max,g=g._dataRanges,f=f._dataRanges,p,r=0,m=0;m<a.dataSeriesIndexes.length;m++){var v=e.data[a.dataSeriesIndexes[m]];if(!(4>v.dataPoints.length))for(r=0;r<v.dataPoints.length;r++)if(c&&(p=(n+1-h)*Math.max(parseFloat(a.axisX.scaleBreaks.collapsibleThreshold)||10,10)/100,k=v.dataPoints[r].x.getTime?v.dataPoints[r].x.getTime():v.dataPoints[r].x,p=Math.floor((k-h)/p),k<g[p].min&&(g[p].min=k),k>g[p].max&&(g[p].max=k)),b){var q=\n(t+1-l)*Math.max(parseFloat(a.axisY.scaleBreaks.collapsibleThreshold)||10,10)/100;if((k=\"waterfall\"===a.type?v.dataPointEOs[r].cumulativeSum:v.dataPoints[r].y)&&k.length)for(var s=0;s<k.length;s++)p=Math.floor((k[s]-l)/q),k[s]<f[p].min&&(f[p].min=k[s]),k[s]>f[p].max&&(f[p].max=k[s]);else y(k)||(p=Math.floor((k-l)/q),k<f[p].min&&(f[p].min=k),k>f[p].max&&(f[p].max=k))}}}}function b(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length)&&a.axisX.scaleBreaks&&a.axisX.scaleBreaks.autoCalculate&&1<=\na.axisX.scaleBreaks.maxNumberOfAutoBreaks)for(var c=a.axisX.dataInfo,b=c.min,f=c.max,g=c._dataRanges,k,h=0,n=0;n<a.dataSeriesIndexes.length;n++){var l=e.data[a.dataSeriesIndexes[n]];if(!(4>l.dataPoints.length))for(h=0;h<l.dataPoints.length;h++)k=(f+1-b)*Math.max(parseFloat(a.axisX.scaleBreaks.collapsibleThreshold)||10,10)/100,c=l.dataPoints[h].x.getTime?l.dataPoints[h].x.getTime():l.dataPoints[h].x,k=Math.floor((c-b)/k),c<g[k].min&&(g[k].min=c),c>g[k].max&&(g[k].max=c)}}for(var c,e=this,g=!1,h=0;h<\nthis._axes.length;h++)if(this._axes[h].scaleBreaks&&this._axes[h].scaleBreaks.autoCalculate&&1<=this._axes[h].scaleBreaks.maxNumberOfAutoBreaks){g=!0;this._axes[h].dataInfo._dataRanges=[];for(var l=0;l<100/Math.max(parseFloat(this._axes[h].scaleBreaks.collapsibleThreshold)||10,10);l++)this._axes[h].dataInfo._dataRanges.push({min:Infinity,max:-Infinity})}if(g){for(h=0;h<this.plotInfo.plotTypes.length;h++)for(g=this.plotInfo.plotTypes[h],l=0;l<g.plotUnits.length;l++)c=g.plotUnits[l],\"line\"===c.type||\n\"stepLine\"===c.type||\"spline\"===c.type||\"column\"===c.type||\"area\"===c.type||\"stepArea\"===c.type||\"splineArea\"===c.type||\"bar\"===c.type||\"bubble\"===c.type||\"scatter\"===c.type||\"candlestick\"===c.type||\"ohlc\"===c.type||\"rangeColumn\"===c.type||\"rangeBar\"===c.type||\"rangeArea\"===c.type||\"rangeSplineArea\"===c.type||\"waterfall\"===c.type||\"error\"===c.type||\"boxAndWhisker\"===c.type?f(c):0<=c.type.indexOf(\"stacked\")&&b(c);for(h=0;h<this._axes.length;h++)if(this._axes[h].dataInfo._dataRanges){var t=this._axes[h].dataInfo.min;\nc=(this._axes[h].dataInfo.max+1-t)*Math.max(parseFloat(this._axes[h].scaleBreaks.collapsibleThreshold)||10,10)/100;var k=this._axes[h].dataInfo._dataRanges,r,p,g=[];if(this._axes[h].dataInfo.dataPointYPositiveSums){var n=this._axes[h].dataInfo.dataPointYPositiveSums;r=k;for(l in n)n.hasOwnProperty(l)&&!isNaN(l)&&(p=n[l],y(p)||(index=Math.floor((p-t)/c),p<r[index].min&&(r[index].min=p),p>r[index].max&&(r[index].max=p)));delete this._axes[h].dataInfo.dataPointYPositiveSums}if(this._axes[h].dataInfo.dataPointYNegativeSums){n=\nthis._axes[h].dataInfo.dataPointYNegativeSums;r=k;for(l in n)n.hasOwnProperty(l)&&!isNaN(l)&&(p=-1*n[l],y(p)||(index=Math.floor((p-t)/c),p<r[index].min&&(r[index].min=p),p>r[index].max&&(r[index].max=p)));delete this._axes[h].dataInfo.dataPointYNegativeSums}for(l=0;l<k.length-1;l++)if(r=k[l].max,isFinite(r))for(;l<k.length-1;)if(t=k[l+1].min,isFinite(t)){p=t-r;p>c&&g.push({diff:p,start:r,end:t});break}else l++;if(this._axes[h].scaleBreaks.customBreaks)for(l=0;l<this._axes[h].scaleBreaks.customBreaks.length;l++)for(c=\n0;c<g.length;c++)if(this._axes[h].scaleBreaks.customBreaks[l].startValue<=g[c].start&&g[c].start<=this._axes[h].scaleBreaks.customBreaks[l].endValue||this._axes[h].scaleBreaks.customBreaks[l].startValue<=g[c].start&&g[c].start<=this._axes[h].scaleBreaks.customBreaks[l].endValue||g[c].start<=this._axes[h].scaleBreaks.customBreaks[l].startValue&&this._axes[h].scaleBreaks.customBreaks[l].startValue<=g[c].end||g[c].start<=this._axes[h].scaleBreaks.customBreaks[l].endValue&&this._axes[h].scaleBreaks.customBreaks[l].endValue<=\ng[c].end)g.splice(c,1),c--;g.sort(function(a,c){return c.diff-a.diff});for(l=0;l<Math.min(g.length,this._axes[h].scaleBreaks.maxNumberOfAutoBreaks);l++)c=a(g[l].start,g[l].end,this._axes[h].logarithmic?this._axes[h].dataInfo.max/this._axes[h].dataInfo.min:this._axes[h].dataInfo.max-this._axes[h].dataInfo.min,this._axes[h].logarithmic),this._axes[h].scaleBreaks.autoBreaks.push(new ba(this,\"autoBreaks\",c,l,++this._eventManager.lastObjectId,this._axes[h].scaleBreaks)),this._axes[h].scaleBreaks._appliedBreaks.push(this._axes[h].scaleBreaks.autoBreaks[this._axes[h].scaleBreaks.autoBreaks.length-\n1]);this._axes[h].scaleBreaks._appliedBreaks.sort(function(a,c){return a.startValue-c.startValue})}}};q.prototype.getDataPointAtXY=function(a,f,b){b=b||!1;for(var c=[],e=this._dataInRenderedOrder.length-1;0<=e;e--){var g=null;(g=this._dataInRenderedOrder[e].getDataPointAtXY(a,f,b))&&c.push(g)}a=null;f=!1;for(b=0;b<c.length;b++)if(\"line\"===c[b].dataSeries.type||\"stepLine\"===c[b].dataSeries.type||\"area\"===c[b].dataSeries.type||\"stepArea\"===c[b].dataSeries.type)if(e=ja(\"markerSize\",c[b].dataPoint,c[b].dataSeries)||\n8,c[b].distance<=e/2){f=!0;break}for(b=0;b<c.length;b++)f&&\"line\"!==c[b].dataSeries.type&&\"stepLine\"!==c[b].dataSeries.type&&\"area\"!==c[b].dataSeries.type&&\"stepArea\"!==c[b].dataSeries.type||(a?c[b].distance<=a.distance&&(a=c[b]):a=c[b]);return a};q.prototype.getObjectAtXY=function(a,f,b){var c=null;if(b=this.getDataPointAtXY(a,f,b||!1))c=b.dataSeries.dataPointIds[b.dataPointIndex];else if(v)c=Wa(a,f,this._eventManager.ghostCtx);else for(b=0;b<this.legend.items.length;b++){var e=this.legend.items[b];\na>=e.x1&&(a<=e.x2&&f>=e.y1&&f<=e.y2)&&(c=e.id)}return c};q.prototype.getAutoFontSize=function(a,f,b){f=Math.min(this.width,this.height);return Math.max(\"theme4\"===this.theme?0:300<=f?12:10,Math.round(f*(a/400)))};q.prototype.resetOverlayedCanvas=function(){this.overlaidCanvasCtx.clearRect(0,0,this.width,this.height)};q.prototype.clearCanvas=function(){this.ctx.clearRect(0,0,this.width,this.height);this.backgroundColor&&(this.ctx.fillStyle=this.backgroundColor,this.ctx.fillRect(0,0,this.width,this.height))};\nq.prototype.attachEvent=function(a){this._events.push(a)};q.prototype._touchEventHandler=function(a){if(a.changedTouches&&this.interactivityEnabled){var f=[],b=a.changedTouches,c=b?b[0]:a,e=null;switch(a.type){case \"touchstart\":case \"MSPointerDown\":f=[\"mousemove\",\"mousedown\"];this._lastTouchData=Oa(c);this._lastTouchData.time=new Date;break;case \"touchmove\":case \"MSPointerMove\":f=[\"mousemove\"];break;case \"touchend\":case \"MSPointerUp\":var g=this._lastTouchData&&this._lastTouchData.time?new Date-this._lastTouchData.time:\n0,f=\"touchstart\"===this._lastTouchEventType||\"MSPointerDown\"===this._lastTouchEventType||300>g?[\"mouseup\",\"click\"]:[\"mouseup\"];break;default:return}if(!(b&&1<b.length)){e=Oa(c);e.time=new Date;try{var h=e.y-this._lastTouchData.y,g=e.time-this._lastTouchData.time;if(15<Math.abs(h)&&(this._lastTouchData.scroll||300>g)){this._lastTouchData.scroll=!0;var l=window.parent||window;l&&l.scrollBy&&l.scrollBy(0,-h)}}catch(t){}this._lastTouchEventType=a.type;if(this._lastTouchData.scroll&&this.zoomEnabled)this.isDrag&&\nthis.resetOverlayedCanvas(),this.isDrag=!1;else for(b=0;b<f.length;b++)e=f[b],g=document.createEvent(\"MouseEvent\"),g.initMouseEvent(e,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),c.target.dispatchEvent(g),a.preventManipulation&&a.preventManipulation(),a.preventDefault&&a.preventDefault()}}};q.prototype._dispatchRangeEvent=function(a,f){var b={chart:this};b.type=a;b.trigger=f;var c=[];this.axisX&&0<this.axisX.length&&c.push(\"axisX\");this.axisX2&&0<this.axisX2.length&&\nc.push(\"axisX2\");this.axisY&&0<this.axisY.length&&c.push(\"axisY\");this.axisY2&&0<this.axisY2.length&&c.push(\"axisY2\");for(var e=0;e<c.length;e++)if(y(b[c[e]])&&(b[c[e]]=[]),\"axisY\"===c[e])for(var g=0;g<this.axisY.length;g++)b[c[e]].push({viewportMinimum:this[c[e]][g].sessionVariables.newViewportMinimum,viewportMaximum:this[c[e]][g].sessionVariables.newViewportMaximum});else if(\"axisY2\"===c[e])for(g=0;g<this.axisY2.length;g++)b[c[e]].push({viewportMinimum:this[c[e]][g].sessionVariables.newViewportMinimum,\nviewportMaximum:this[c[e]][g].sessionVariables.newViewportMaximum});else if(\"axisX\"===c[e])for(g=0;g<this.axisX.length;g++)b[c[e]].push({viewportMinimum:this[c[e]][g].sessionVariables.newViewportMinimum,viewportMaximum:this[c[e]][g].sessionVariables.newViewportMaximum});else if(\"axisX2\"===c[e])for(g=0;g<this.axisX2.length;g++)b[c[e]].push({viewportMinimum:this[c[e]][g].sessionVariables.newViewportMinimum,viewportMaximum:this[c[e]][g].sessionVariables.newViewportMaximum});this.dispatchEvent(a,b,this)};\nq.prototype._mouseEventHandler=function(a){\"undefined\"===typeof a.target&&a.srcElement&&(a.target=a.srcElement);var f=Oa(a),b=a.type,c,e;a.which?e=3==a.which:a.button&&(e=2==a.button);q.capturedEventParam&&(c=q.capturedEventParam,\"mouseup\"===b&&(q.capturedEventParam=null,c.chart.overlaidCanvas.releaseCapture?c.chart.overlaidCanvas.releaseCapture():document.documentElement.removeEventListener(\"mouseup\",c.chart._mouseEventHandler,!1)),c.hasOwnProperty(b)&&(\"mouseup\"!==b||c.chart.overlaidCanvas.releaseCapture?\na.target!==c.chart.overlaidCanvas&&v||c[b].call(c.context,f.x,f.y):a.target!==c.chart.overlaidCanvas&&(c.chart.isDrag=!1)));if(this.interactivityEnabled)if(this._ignoreNextEvent)this._ignoreNextEvent=!1;else if(a.preventManipulation&&a.preventManipulation(),a.preventDefault&&a.preventDefault(),!e){if(!q.capturedEventParam&&this._events){for(var g=0;g<this._events.length;g++)if(this._events[g].hasOwnProperty(b))if(c=this._events[g],e=c.bounds,f.x>=e.x1&&f.x<=e.x2&&f.y>=e.y1&&f.y<=e.y2){c[b].call(c.context,\nf.x,f.y);\"mousedown\"===b&&!0===c.capture?(q.capturedEventParam=c,this.overlaidCanvas.setCapture?this.overlaidCanvas.setCapture():document.documentElement.addEventListener(\"mouseup\",this._mouseEventHandler,!1)):\"mouseup\"===b&&(c.chart.overlaidCanvas.releaseCapture?c.chart.overlaidCanvas.releaseCapture():document.documentElement.removeEventListener(\"mouseup\",this._mouseEventHandler,!1));break}else c=null;a.target.style.cursor=c&&c.cursor?c.cursor:this._defaultCursor}b=this.plotArea;if(f.x<b.x1||f.x>\nb.x2||f.y<b.y1||f.y>b.y2)this.toolTip&&this.toolTip.enabled?this.toolTip.hide():this.resetOverlayedCanvas();this.isDrag&&this.zoomEnabled||!this._eventManager||this._eventManager.mouseEventHandler(a)}};q.prototype._plotAreaMouseDown=function(a,f){this.isDrag=!0;this.dragStartPoint={x:a,y:f}};q.prototype._plotAreaMouseUp=function(a,f){if((\"normal\"===this.plotInfo.axisPlacement||\"xySwapped\"===this.plotInfo.axisPlacement)&&this.isDrag){var b=f-this.dragStartPoint.y,c=a-this.dragStartPoint.x,e=0<=this.zoomType.indexOf(\"x\"),\ng=0<=this.zoomType.indexOf(\"y\"),h=!1;this.resetOverlayedCanvas();if(\"xySwapped\"===this.plotInfo.axisPlacement)var l=g,g=e,e=l;if(this.panEnabled||this.zoomEnabled){if(this.panEnabled)for(e=g=0;e<this._axes.length;e++)b=this._axes[e],b.logarithmic?b.viewportMinimum<b.minimum?(g=b.minimum/b.viewportMinimum,b.sessionVariables.newViewportMinimum=b.viewportMinimum*g,b.sessionVariables.newViewportMaximum=b.viewportMaximum*g,h=!0):b.viewportMaximum>b.maximum&&(g=b.viewportMaximum/b.maximum,b.sessionVariables.newViewportMinimum=\nb.viewportMinimum/g,b.sessionVariables.newViewportMaximum=b.viewportMaximum/g,h=!0):b.viewportMinimum<b.minimum?(g=b.minimum-b.viewportMinimum,b.sessionVariables.newViewportMinimum=b.viewportMinimum+g,b.sessionVariables.newViewportMaximum=b.viewportMaximum+g,h=!0):b.viewportMaximum>b.maximum&&(g=b.viewportMaximum-b.maximum,b.sessionVariables.newViewportMinimum=b.viewportMinimum-g,b.sessionVariables.newViewportMaximum=b.viewportMaximum-g,h=!0);else if((!e||2<Math.abs(c))&&(!g||2<Math.abs(b))&&this.zoomEnabled){if(!this.dragStartPoint)return;\nb=e?this.dragStartPoint.x:this.plotArea.x1;c=g?this.dragStartPoint.y:this.plotArea.y1;e=e?a:this.plotArea.x2;g=g?f:this.plotArea.y2;2<Math.abs(b-e)&&2<Math.abs(c-g)&&this._zoomPanToSelectedRegion(b,c,e,g)&&(h=!0)}h&&(this._ignoreNextEvent=!0,this._dispatchRangeEvent(\"rangeChanging\",\"zoom\"),this.render(),this._dispatchRangeEvent(\"rangeChanged\",\"zoom\"),h&&(this.zoomEnabled&&\"none\"===this._zoomButton.style.display)&&(Ma(this._zoomButton,this._resetButton),ua(this,this._zoomButton,\"pan\"),ua(this,this._resetButton,\n\"reset\")))}}this.isDrag=!1;if(\"none\"!==this.plotInfo.axisPlacement){this.resetOverlayedCanvas();if(this.axisX&&0<this.axisX.length)for(h=0;h<this.axisX.length;h++)this.axisX[h].crosshair&&this.axisX[h].crosshair.enabled&&this.axisX[h].renderCrosshair(a,f);if(this.axisX2&&0<this.axisX2.length)for(h=0;h<this.axisX2.length;h++)this.axisX2[h].crosshair&&this.axisX2[h].crosshair.enabled&&this.axisX2[h].renderCrosshair(a,f);if(this.axisY&&0<this.axisY.length)for(h=0;h<this.axisY.length;h++)this.axisY[h].crosshair&&\nthis.axisY[h].crosshair.enabled&&this.axisY[h].renderCrosshair(a,f);if(this.axisY2&&0<this.axisY2.length)for(h=0;h<this.axisY2.length;h++)this.axisY2[h].crosshair&&this.axisY2[h].crosshair.enabled&&this.axisY2[h].renderCrosshair(a,f)}};q.prototype._plotAreaMouseMove=function(a,f){if(this.isDrag&&\"none\"!==this.plotInfo.axisPlacement){var b=0,c=0,e=b=null,e=0<=this.zoomType.indexOf(\"x\"),g=0<=this.zoomType.indexOf(\"y\"),h=this;\"xySwapped\"===this.plotInfo.axisPlacement&&(b=g,g=e,e=b);b=this.dragStartPoint.x-\na;c=this.dragStartPoint.y-f;2<Math.abs(b)&&8>Math.abs(b)&&(this.panEnabled||this.zoomEnabled)?this.toolTip.hide():this.panEnabled||this.zoomEnabled||this.toolTip.mouseMoveHandler(a,f);if((!e||2<Math.abs(b)||!g||2<Math.abs(c))&&(this.panEnabled||this.zoomEnabled))if(this.panEnabled)e={x1:e?this.plotArea.x1+b:this.plotArea.x1,y1:g?this.plotArea.y1+c:this.plotArea.y1,x2:e?this.plotArea.x2+b:this.plotArea.x2,y2:g?this.plotArea.y2+c:this.plotArea.y2},clearTimeout(h._panTimerId),h._panTimerId=setTimeout(function(c,\nb,e,d){return function(){h._zoomPanToSelectedRegion(c,b,e,d,!0)&&(h._dispatchRangeEvent(\"rangeChanging\",\"pan\"),h.render(),h._dispatchRangeEvent(\"rangeChanged\",\"pan\"),h.dragStartPoint.x=a,h.dragStartPoint.y=f)}}(e.x1,e.y1,e.x2,e.y2),0);else if(this.zoomEnabled){this.resetOverlayedCanvas();b=this.overlaidCanvasCtx.globalAlpha;this.overlaidCanvasCtx.fillStyle=\"#A89896\";var c=e?this.dragStartPoint.x:this.plotArea.x1,l=g?this.dragStartPoint.y:this.plotArea.y1,t=e?a-this.dragStartPoint.x:this.plotArea.x2-\nthis.plotArea.x1,k=g?f-this.dragStartPoint.y:this.plotArea.y2-this.plotArea.y1;this.validateRegion(c,l,e?a:this.plotArea.x2-this.plotArea.x1,g?f:this.plotArea.y2-this.plotArea.y1,\"xy\"!==this.zoomType).isValid&&(this.resetOverlayedCanvas(),this.overlaidCanvasCtx.fillStyle=\"#99B2B5\");this.overlaidCanvasCtx.globalAlpha=0.7;this.overlaidCanvasCtx.fillRect(c,l,t,k);this.overlaidCanvasCtx.globalAlpha=b}}else if(this.toolTip.mouseMoveHandler(a,f),\"none\"!==this.plotInfo.axisPlacement){if(this.axisX&&0<this.axisX.length)for(e=\n0;e<this.axisX.length;e++)this.axisX[e].crosshair&&this.axisX[e].crosshair.enabled&&this.axisX[e].renderCrosshair(a,f);if(this.axisX2&&0<this.axisX2.length)for(e=0;e<this.axisX2.length;e++)this.axisX2[e].crosshair&&this.axisX2[e].crosshair.enabled&&this.axisX2[e].renderCrosshair(a,f);if(this.axisY&&0<this.axisY.length)for(e=0;e<this.axisY.length;e++)this.axisY[e].crosshair&&this.axisY[e].crosshair.enabled&&this.axisY[e].renderCrosshair(a,f);if(this.axisY2&&0<this.axisY2.length)for(e=0;e<this.axisY2.length;e++)this.axisY2[e].crosshair&&\nthis.axisY2[e].crosshair.enabled&&this.axisY2[e].renderCrosshair(a,f)}};q.prototype._zoomPanToSelectedRegion=function(a,f,b,c,e){a=this.validateRegion(a,f,b,c,e);f=a.axesWithValidRange;b=a.axesRanges;if(a.isValid)for(c=0;c<f.length;c++)e=b[c],f[c].setViewPortRange(e.val1,e.val2);return a.isValid};q.prototype.validateRegion=function(a,f,b,c,e){e=e||!1;for(var g=0<=this.zoomType.indexOf(\"x\"),h=0<=this.zoomType.indexOf(\"y\"),l=!1,t=[],k=[],r=[],p=0;p<this._axes.length;p++)(\"axisX\"===this._axes[p].type&&\ng||\"axisY\"===this._axes[p].type&&h)&&k.push(this._axes[p]);for(h=0;h<k.length;h++){var p=k[h],g=!1,n=p.convertPixelToValue({x:a,y:f}),d=p.convertPixelToValue({x:b,y:c});if(n>d)var w=d,d=n,n=w;if(p.scaleBreaks)for(w=0;!g&&w<p.scaleBreaks._appliedBreaks.length;w++)g=p.scaleBreaks._appliedBreaks[w].startValue<=n&&p.scaleBreaks._appliedBreaks[w].endValue>=d;if(isFinite(p.dataInfo.minDiff))if(w=p.getApparentDifference(n,d,null,!0),!(g||!(this.panEnabled&&p.scaleBreaks&&p.scaleBreaks._appliedBreaks.length)&&\n(p.logarithmic&&w<Math.pow(p.dataInfo.minDiff,3)||!p.logarithmic&&w<3*Math.abs(p.dataInfo.minDiff))||n<p.minimum||d>p.maximum))t.push(p),r.push({val1:n,val2:d}),l=!0;else if(!e){l=!1;break}}return{isValid:l,axesWithValidRange:t,axesRanges:r}};q.prototype.preparePlotArea=function(){var a=this.plotArea;!v&&(0<a.x1||0<a.y1)&&a.ctx.translate(a.x1,a.y1);if((this.axisX[0]||this.axisX2[0])&&(this.axisY[0]||this.axisY2[0])){var f=this.axisX[0]?this.axisX[0].lineCoordinates:this.axisX2[0].lineCoordinates;\nif(this.axisY&&0<this.axisY.length&&this.axisY[0]){var b=this.axisY[0];a.x1=f.x1<f.x2?f.x1:b.lineCoordinates.x1;a.y1=f.y1<b.lineCoordinates.y1?f.y1:b.lineCoordinates.y1;a.x2=f.x2>b.lineCoordinates.x2?f.x2:b.lineCoordinates.x2;a.y2=f.y2>f.y1?f.y2:b.lineCoordinates.y2;a.width=a.x2-a.x1;a.height=a.y2-a.y1}this.axisY2&&0<this.axisY2.length&&this.axisY2[0]&&(b=this.axisY2[0],a.x1=f.x1<f.x2?f.x1:b.lineCoordinates.x1,a.y1=f.y1<b.lineCoordinates.y1?f.y1:b.lineCoordinates.y1,a.x2=f.x2>b.lineCoordinates.x2?\nf.x2:b.lineCoordinates.x2,a.y2=f.y2>f.y1?f.y2:b.lineCoordinates.y2,a.width=a.x2-a.x1,a.height=a.y2-a.y1)}else f=this.layoutManager.getFreeSpace(),a.x1=f.x1,a.x2=f.x2,a.y1=f.y1,a.y2=f.y2,a.width=f.width,a.height=f.height;v||(a.canvas.width=a.width,a.canvas.height=a.height,a.canvas.style.left=a.x1+\"px\",a.canvas.style.top=a.y1+\"px\",(0<a.x1||0<a.y1)&&a.ctx.translate(-a.x1,-a.y1));a.layoutManager=new Da(a.x1,a.y1,a.x2,a.y2,2)};q.prototype.renderIndexLabels=function(a){var f=a||this.plotArea.ctx,b=this.plotArea,\nc=0,e=0,g=0,h=0,l=c=h=e=g=0,t=0;for(a=0;a<this._indexLabels.length;a++){var k=this._indexLabels[a],r=k.chartType.toLowerCase(),p,n,l=ja(\"indexLabelFontColor\",k.dataPoint,k.dataSeries),t=ja(\"indexLabelFontSize\",k.dataPoint,k.dataSeries);p=ja(\"indexLabelFontFamily\",k.dataPoint,k.dataSeries);n=ja(\"indexLabelFontStyle\",k.dataPoint,k.dataSeries);var h=ja(\"indexLabelFontWeight\",k.dataPoint,k.dataSeries),d=ja(\"indexLabelBackgroundColor\",k.dataPoint,k.dataSeries),e=ja(\"indexLabelMaxWidth\",k.dataPoint,k.dataSeries),\ng=ja(\"indexLabelWrap\",k.dataPoint,k.dataSeries),w=ja(\"indexLabelLineDashType\",k.dataPoint,k.dataSeries),m=ja(\"indexLabelLineColor\",k.dataPoint,k.dataSeries),D=y(k.dataPoint.indexLabelLineThickness)?y(k.dataSeries.options.indexLabelLineThickness)?0:k.dataSeries.options.indexLabelLineThickness:k.dataPoint.indexLabelLineThickness,c=0<D?Math.min(10,(\"normal\"===this.plotInfo.axisPlacement?this.plotArea.height:this.plotArea.width)<<0):0,u={percent:null,total:null},Q=null;if(0<=k.dataSeries.type.indexOf(\"stacked\")||\n\"pie\"===k.dataSeries.type||\"doughnut\"===k.dataSeries.type)u=this.getPercentAndTotal(k.dataSeries,k.dataPoint);if(k.dataSeries.indexLabelFormatter||k.dataPoint.indexLabelFormatter)Q={chart:this,dataSeries:k.dataSeries,dataPoint:k.dataPoint,index:k.indexKeyword,total:u.total,percent:u.percent};var H=k.dataPoint.indexLabelFormatter?k.dataPoint.indexLabelFormatter(Q):k.dataPoint.indexLabel?this.replaceKeywordsWithValue(k.dataPoint.indexLabel,k.dataPoint,k.dataSeries,null,k.indexKeyword):k.dataSeries.indexLabelFormatter?\nk.dataSeries.indexLabelFormatter(Q):k.dataSeries.indexLabel?this.replaceKeywordsWithValue(k.dataSeries.indexLabel,k.dataPoint,k.dataSeries,null,k.indexKeyword):null;if(null!==H&&\"\"!==H){var u=ja(\"indexLabelPlacement\",k.dataPoint,k.dataSeries),Q=ja(\"indexLabelOrientation\",k.dataPoint,k.dataSeries),q=k.direction,s=k.dataSeries.axisX,A=k.dataSeries.axisY,x=!1,d=new ka(f,{x:0,y:0,maxWidth:e?e:0.5*this.width,maxHeight:g?5*t:1.5*t,angle:\"horizontal\"===Q?0:-90,text:H,padding:0,backgroundColor:d,horizontalAlign:\"left\",\nfontSize:t,fontFamily:p,fontWeight:h,fontColor:l,fontStyle:n,textBaseline:\"top\"});d.measureText();k.dataSeries.indexLabelMaxWidth=d.maxWidth;if(\"stackedarea100\"===r){if(k.point.x<b.x1||k.point.x>b.x2||k.point.y<b.y1-1||k.point.y>b.y2+1)continue}else if(\"rangearea\"===r||\"rangesplinearea\"===r){if(k.dataPoint.x<s.viewportMinimum||k.dataPoint.x>s.viewportMaximum||Math.max.apply(null,k.dataPoint.y)<A.viewportMinimum||Math.min.apply(null,k.dataPoint.y)>A.viewportMaximum)continue}else if(0<=r.indexOf(\"line\")||\n0<=r.indexOf(\"area\")||0<=r.indexOf(\"bubble\")||0<=r.indexOf(\"scatter\")){if(k.dataPoint.x<s.viewportMinimum||k.dataPoint.x>s.viewportMaximum||k.dataPoint.y<A.viewportMinimum||k.dataPoint.y>A.viewportMaximum)continue}else if(0<=r.indexOf(\"column\")||\"waterfall\"===r||\"error\"===r&&!k.axisSwapped){if(k.dataPoint.x<s.viewportMinimum||k.dataPoint.x>s.viewportMaximum||k.bounds.y1>b.y2||k.bounds.y2<b.y1)continue}else if(0<=r.indexOf(\"bar\")||\"error\"===r){if(k.dataPoint.x<s.viewportMinimum||k.dataPoint.x>s.viewportMaximum||\nk.bounds.x1>b.x2||k.bounds.x2<b.x1)continue}else if(\"candlestick\"===r||\"ohlc\"===r){if(k.dataPoint.x<s.viewportMinimum||k.dataPoint.x>s.viewportMaximum||Math.max.apply(null,k.dataPoint.y)<A.viewportMinimum||Math.min.apply(null,k.dataPoint.y)>A.viewportMaximum)continue}else if(k.dataPoint.x<s.viewportMinimum||k.dataPoint.x>s.viewportMaximum)continue;e=h=2;\"horizontal\"===Q?(l=d.width,t=d.height):(t=d.width,l=d.height);if(\"normal\"===this.plotInfo.axisPlacement){if(0<=r.indexOf(\"line\")||0<=r.indexOf(\"area\"))u=\n\"auto\",h=4;else if(0<=r.indexOf(\"stacked\"))\"auto\"===u&&(u=\"inside\");else if(\"bubble\"===r||\"scatter\"===r)u=\"inside\";p=k.point.x-l/2;\"inside\"!==u?(e=b.y1,g=b.y2,0<q?(n=k.point.y-t-h-c,n<e&&(n=\"auto\"===u?Math.max(k.point.y,e)+h+c:e+h+c,x=n+t>k.point.y)):(n=k.point.y+h+c,n>g-t-h-c&&(n=\"auto\"===u?Math.min(k.point.y,g)-t-h-c:g-t-h-c,x=n<k.point.y))):(e=Math.max(k.bounds.y1,b.y1),g=Math.min(k.bounds.y2,b.y2),c=0<=r.indexOf(\"range\")||\"error\"===r?0<q?Math.max(k.bounds.y1,b.y1)+t/2+h:Math.min(k.bounds.y2,b.y2)-\nt/2-h:(Math.max(k.bounds.y1,b.y1)+Math.min(k.bounds.y2,b.y2))/2,0<q?(n=Math.max(k.point.y,c)-t/2,n<e&&(\"bubble\"===r||\"scatter\"===r)&&(n=Math.max(k.point.y-t-h,b.y1+h))):(n=Math.min(k.point.y,c)-t/2,n>g-t-h&&(\"bubble\"===r||\"scatter\"===r)&&(n=Math.min(k.point.y+h,b.y2-t-h))),n=Math.min(n,g-t))}else 0<=r.indexOf(\"line\")||0<=r.indexOf(\"area\")||0<=r.indexOf(\"scatter\")?(u=\"auto\",e=4):0<=r.indexOf(\"stacked\")?\"auto\"===u&&(u=\"inside\"):\"bubble\"===r&&(u=\"inside\"),n=k.point.y-t/2,\"inside\"!==u?(h=b.x1,g=b.x2,\n0>q?(p=k.point.x-l-e-c,p<h&&(p=\"auto\"===u?Math.max(k.point.x,h)+e+c:h+e+c,x=p+l>k.point.x)):(p=k.point.x+e+c,p>g-l-e-c&&(p=\"auto\"===u?Math.min(k.point.x,g)-l-e-c:g-l-e-c,x=p<k.point.x))):(h=Math.max(k.bounds.x1,b.x1),Math.min(k.bounds.x2,b.x2),c=0<=r.indexOf(\"range\")||\"error\"===r?0>q?Math.max(k.bounds.x1,b.x1)+l/2+e:Math.min(k.bounds.x2,b.x2)-l/2-e:(Math.max(k.bounds.x1,b.x1)+Math.min(k.bounds.x2,b.x2))/2,p=0>q?Math.max(k.point.x,c)-l/2:Math.min(k.point.x,c)-l/2,p=Math.max(p,h));\"vertical\"===Q&&(n+=\nt);d.x=p;d.y=n;d.render(!0);D&&(\"inside\"!==u&&(0>r.indexOf(\"bar\")&&(\"error\"!==r||!k.axisSwapped)&&k.point.x>b.x1&&k.point.x<b.x2||!x)&&(0>r.indexOf(\"column\")&&(\"error\"!==r||k.axisSwapped)&&k.point.y>b.y1&&k.point.y<b.y2||!x))&&(f.lineWidth=D,f.strokeStyle=m?m:\"gray\",f.setLineDash&&f.setLineDash(F(w,D)),f.beginPath(),f.moveTo(k.point.x,k.point.y),0<=r.indexOf(\"bar\")||\"error\"===r&&k.axisSwapped?f.lineTo(p+(0<k.direction?0:l),n+(\"horizontal\"===Q?t:-t)/2):0<=r.indexOf(\"column\")||\"error\"===r&&!k.axisSwapped?\nf.lineTo(p+l/2,n+((0<k.direction?t:-t)+(\"horizontal\"===Q?t:-t))/2):f.lineTo(p+l/2,n+((n<k.point.y?t:-t)+(\"horizontal\"===Q?t:-t))/2),f.stroke())}}f={source:f,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0,startTimePercent:0.7};for(a=0;a<this._indexLabels.length;a++)k=this._indexLabels[a],d=ja(\"indexLabelBackgroundColor\",k.dataPoint,k.dataSeries),k.dataSeries.indexLabelBackgroundColor=y(d)?v?\"transparent\":null:d;return f};q.prototype.renderLine=\nfunction(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=this._eventManager.ghostCtx;b.save();var e=this.plotArea;b.beginPath();b.rect(e.x1,e.y1,e.width,e.height);b.clip();for(var g=[],h,l=0;l<a.dataSeriesIndexes.length;l++){var t=a.dataSeriesIndexes[l],k=this.data[t];b.lineWidth=k.lineThickness;var r=k.dataPoints,p=\"solid\";if(b.setLineDash){var n=F(k.nullDataLineDashType,k.lineThickness),p=k.lineDashType,d=F(p,k.lineThickness);b.setLineDash(d)}var w=\nk.id;this._eventManager.objectMap[w]={objectType:\"dataSeries\",dataSeriesIndex:t};w=R(w);c.strokeStyle=w;c.lineWidth=0<k.lineThickness?Math.max(k.lineThickness,4):0;var w=k._colorSet,m=w=k.lineColor=k.options.lineColor?k.options.lineColor:w[0];b.strokeStyle=w;var D=!0,u=0,Q,H;b.beginPath();if(0<r.length){for(var q=!1,u=0;u<r.length;u++)if(Q=r[u].x.getTime?r[u].x.getTime():r[u].x,!(Q<a.axisX.dataInfo.viewPortMin||Q>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||!q)))if(\"number\"!==typeof r[u].y)0<\nu&&!(k.connectNullData||q||D)&&(b.stroke(),v&&c.stroke()),q=!0;else{Q=a.axisX.convertValueToPixel(Q);H=a.axisY.convertValueToPixel(r[u].y);var s=k.dataPointIds[u];this._eventManager.objectMap[s]={id:s,objectType:\"dataPoint\",dataSeriesIndex:t,dataPointIndex:u,x1:Q,y1:H};D||q?(!D&&k.connectNullData?(b.setLineDash&&(k.options.nullDataLineDashType||p===k.lineDashType&&k.lineDashType!==k.nullDataLineDashType)&&(b.stroke(),b.beginPath(),b.moveTo(h.x,h.y),p=k.nullDataLineDashType,b.setLineDash(n)),b.lineTo(Q,\nH),v&&c.lineTo(Q,H)):(b.beginPath(),b.moveTo(Q,H),v&&(c.beginPath(),c.moveTo(Q,H))),q=D=!1):(b.lineTo(Q,H),v&&c.lineTo(Q,H),0==u%500&&(b.stroke(),b.beginPath(),b.moveTo(Q,H),v&&(c.stroke(),c.beginPath(),c.moveTo(Q,H))));h={x:Q,y:H};u<r.length-1&&(m!==(r[u].lineColor||w)||p!==(r[u].lineDashType||k.lineDashType))&&(b.stroke(),b.beginPath(),b.moveTo(Q,H),m=r[u].lineColor||w,b.strokeStyle=m,b.setLineDash&&(r[u].lineDashType?(p=r[u].lineDashType,b.setLineDash(F(p,k.lineThickness))):(p=k.lineDashType,b.setLineDash(d))));\nif(0<r[u].markerSize||0<k.markerSize){var A=k.getMarkerProperties(u,Q,H,b);g.push(A);s=R(s);v&&g.push({x:Q,y:H,ctx:c,type:A.type,size:A.size,color:s,borderColor:s,borderThickness:A.borderThickness})}(r[u].indexLabel||k.indexLabel||r[u].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:\"line\",dataPoint:r[u],dataSeries:k,point:{x:Q,y:H},direction:0>r[u].y===a.axisY.reversed?1:-1,color:w})}b.stroke();v&&c.stroke()}}$.drawMarkers(g);v&&(f.drawImage(this._preRenderCanvas,0,\n0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,e.y1,e.width,e.height),c.beginPath());b.restore();b.beginPath();return{source:f,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,easingFunction:O.easing.linear,\nanimationBase:0}}};q.prototype.renderStepLine=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=this._eventManager.ghostCtx;b.save();var e=this.plotArea;b.beginPath();b.rect(e.x1,e.y1,e.width,e.height);b.clip();for(var g=[],h,l=0;l<a.dataSeriesIndexes.length;l++){var t=a.dataSeriesIndexes[l],k=this.data[t];b.lineWidth=k.lineThickness;var r=k.dataPoints,p=\"solid\";if(b.setLineDash){var n=F(k.nullDataLineDashType,k.lineThickness),\np=k.lineDashType,d=F(p,k.lineThickness);b.setLineDash(d)}var w=k.id;this._eventManager.objectMap[w]={objectType:\"dataSeries\",dataSeriesIndex:t};w=R(w);c.strokeStyle=w;c.lineWidth=0<k.lineThickness?Math.max(k.lineThickness,4):0;var w=k._colorSet,m=w=k.lineColor=k.options.lineColor?k.options.lineColor:w[0];b.strokeStyle=w;var D=!0,u=0,Q,H;b.beginPath();if(0<r.length){for(var q=!1,u=0;u<r.length;u++)if(Q=r[u].getTime?r[u].x.getTime():r[u].x,!(Q<a.axisX.dataInfo.viewPortMin||Q>a.axisX.dataInfo.viewPortMax&&\n(!k.connectNullData||!q)))if(\"number\"!==typeof r[u].y)0<u&&!(k.connectNullData||q||D)&&(b.stroke(),v&&c.stroke()),q=!0;else{var s=H;Q=a.axisX.convertValueToPixel(Q);H=a.axisY.convertValueToPixel(r[u].y);var A=k.dataPointIds[u];this._eventManager.objectMap[A]={id:A,objectType:\"dataPoint\",dataSeriesIndex:t,dataPointIndex:u,x1:Q,y1:H};D||q?(!D&&k.connectNullData?(b.setLineDash&&(k.options.nullDataLineDashType||p===k.lineDashType&&k.lineDashType!==k.nullDataLineDashType)&&(b.stroke(),b.beginPath(),b.moveTo(h.x,\nh.y),p=k.nullDataLineDashType,b.setLineDash(n)),b.lineTo(Q,s),b.lineTo(Q,H),v&&(c.lineTo(Q,s),c.lineTo(Q,H))):(b.beginPath(),b.moveTo(Q,H),v&&(c.beginPath(),c.moveTo(Q,H))),q=D=!1):(b.lineTo(Q,s),v&&c.lineTo(Q,s),b.lineTo(Q,H),v&&c.lineTo(Q,H),0==u%500&&(b.stroke(),b.beginPath(),b.moveTo(Q,H),v&&(c.stroke(),c.beginPath(),c.moveTo(Q,H))));h={x:Q,y:H};u<r.length-1&&(m!==(r[u].lineColor||w)||p!==(r[u].lineDashType||k.lineDashType))&&(b.stroke(),b.beginPath(),b.moveTo(Q,H),m=r[u].lineColor||w,b.strokeStyle=\nm,b.setLineDash&&(r[u].lineDashType?(p=r[u].lineDashType,b.setLineDash(F(p,k.lineThickness))):(p=k.lineDashType,b.setLineDash(d))));if(0<r[u].markerSize||0<k.markerSize)s=k.getMarkerProperties(u,Q,H,b),g.push(s),A=R(A),v&&g.push({x:Q,y:H,ctx:c,type:s.type,size:s.size,color:A,borderColor:A,borderThickness:s.borderThickness});(r[u].indexLabel||k.indexLabel||r[u].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:\"stepLine\",dataPoint:r[u],dataSeries:k,point:{x:Q,y:H},direction:0>\nr[u].y===a.axisY.reversed?1:-1,color:w})}b.stroke();v&&c.stroke()}}$.drawMarkers(g);v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,e.y1,e.width,e.height),c.beginPath());\nb.restore();b.beginPath();return{source:f,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,easingFunction:O.easing.linear,animationBase:0}}};q.prototype.renderSpline=function(a){function f(a){a=x(a,2);if(0<a.length){c.beginPath();v&&e.beginPath();c.moveTo(a[0].x,a[0].y);a[0].newStrokeStyle&&(c.strokeStyle=a[0].newStrokeStyle);a[0].newLineDashArray&&c.setLineDash(a[0].newLineDashArray);v&&e.moveTo(a[0].x,a[0].y);for(var b=0;b<a.length-3;b+=3)if(c.bezierCurveTo(a[b+1].x,a[b+1].y,a[b+2].x,a[b+\n2].y,a[b+3].x,a[b+3].y),v&&e.bezierCurveTo(a[b+1].x,a[b+1].y,a[b+2].x,a[b+2].y,a[b+3].x,a[b+3].y),0<b&&0===b%3E3||a[b+3].newStrokeStyle||a[b+3].newLineDashArray)c.stroke(),c.beginPath(),c.moveTo(a[b+3].x,a[b+3].y),a[b+3].newStrokeStyle&&(c.strokeStyle=a[b+3].newStrokeStyle),a[b+3].newLineDashArray&&c.setLineDash(a[b+3].newLineDashArray),v&&(e.stroke(),e.beginPath(),e.moveTo(a[b+3].x,a[b+3].y));c.stroke();v&&e.stroke()}}var b=a.targetCanvasCtx||this.plotArea.ctx,c=v?this._preRenderCtx:b;if(!(0>=a.dataSeriesIndexes.length)){var e=\nthis._eventManager.ghostCtx;c.save();var g=this.plotArea;c.beginPath();c.rect(g.x1,g.y1,g.width,g.height);c.clip();for(var h=[],l=0;l<a.dataSeriesIndexes.length;l++){var t=a.dataSeriesIndexes[l],k=this.data[t];c.lineWidth=k.lineThickness;var r=k.dataPoints,p=\"solid\";if(c.setLineDash){var n=F(k.nullDataLineDashType,k.lineThickness),p=k.lineDashType,d=F(p,k.lineThickness);c.setLineDash(d)}var w=k.id;this._eventManager.objectMap[w]={objectType:\"dataSeries\",dataSeriesIndex:t};w=R(w);e.strokeStyle=w;e.lineWidth=\n0<k.lineThickness?Math.max(k.lineThickness,4):0;var w=k._colorSet,m=w=k.lineColor=k.options.lineColor?k.options.lineColor:w[0];c.strokeStyle=w;var D=0,u,Q,H=[];c.beginPath();if(0<r.length)for(Q=!1,D=0;D<r.length;D++)if(u=r[D].getTime?r[D].x.getTime():r[D].x,!(u<a.axisX.dataInfo.viewPortMin||u>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||!Q)))if(\"number\"!==typeof r[D].y)0<D&&!Q&&(k.connectNullData?c.setLineDash&&(0<H.length&&(k.options.nullDataLineDashType||!r[D-1].lineDashType))&&(H[H.length-\n1].newLineDashArray=n,p=k.nullDataLineDashType):(f(H),H=[])),Q=!0;else{u=a.axisX.convertValueToPixel(u);Q=a.axisY.convertValueToPixel(r[D].y);var s=k.dataPointIds[D];this._eventManager.objectMap[s]={id:s,objectType:\"dataPoint\",dataSeriesIndex:t,dataPointIndex:D,x1:u,y1:Q};H[H.length]={x:u,y:Q};D<r.length-1&&(m!==(r[D].lineColor||w)||p!==(r[D].lineDashType||k.lineDashType))&&(m=r[D].lineColor||w,H[H.length-1].newStrokeStyle=m,c.setLineDash&&(r[D].lineDashType?(p=r[D].lineDashType,H[H.length-1].newLineDashArray=\nF(p,k.lineThickness)):(p=k.lineDashType,H[H.length-1].newLineDashArray=d)));if(0<r[D].markerSize||0<k.markerSize){var q=k.getMarkerProperties(D,u,Q,c);h.push(q);s=R(s);v&&h.push({x:u,y:Q,ctx:e,type:q.type,size:q.size,color:s,borderColor:s,borderThickness:q.borderThickness})}(r[D].indexLabel||k.indexLabel||r[D].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:\"spline\",dataPoint:r[D],dataSeries:k,point:{x:u,y:Q},direction:0>r[D].y===a.axisY.reversed?1:-1,color:w});Q=!1}f(H)}$.drawMarkers(h);\nv&&(b.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&c.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&c.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.clearRect(g.x1,g.y1,g.width,g.height),e.beginPath());c.restore();c.beginPath();return{source:b,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,\neasingFunction:O.easing.linear,animationBase:0}}};var X=function(a,f,b,c,e,g,h,l,t,k,r,p,n){\"undefined\"===typeof n&&(n=1);h=h||0;l=l||\"black\";var d=15<c-f&&15<e-b?8:0.35*Math.min(c-f,e-b);a.beginPath();a.moveTo(f,b);a.save();a.fillStyle=g;a.globalAlpha=n;a.fillRect(f,b,c-f,e-b);a.globalAlpha=1;0<h&&(n=0===h%2?0:0.5,a.beginPath(),a.lineWidth=h,a.strokeStyle=l,a.moveTo(f,b),a.rect(f-n,b-n,c-f+2*n,e-b+2*n),a.stroke());a.restore();!0===t&&(a.save(),a.beginPath(),a.moveTo(f,b),a.lineTo(f+d,b+d),a.lineTo(c-\nd,b+d),a.lineTo(c,b),a.closePath(),h=a.createLinearGradient((c+f)/2,b+d,(c+f)/2,b),h.addColorStop(0,g),h.addColorStop(1,\"rgba(255, 255, 255, .4)\"),a.fillStyle=h,a.fill(),a.restore());!0===k&&(a.save(),a.beginPath(),a.moveTo(f,e),a.lineTo(f+d,e-d),a.lineTo(c-d,e-d),a.lineTo(c,e),a.closePath(),h=a.createLinearGradient((c+f)/2,e-d,(c+f)/2,e),h.addColorStop(0,g),h.addColorStop(1,\"rgba(255, 255, 255, .4)\"),a.fillStyle=h,a.fill(),a.restore());!0===r&&(a.save(),a.beginPath(),a.moveTo(f,b),a.lineTo(f+d,b+\nd),a.lineTo(f+d,e-d),a.lineTo(f,e),a.closePath(),h=a.createLinearGradient(f+d,(e+b)/2,f,(e+b)/2),h.addColorStop(0,g),h.addColorStop(1,\"rgba(255, 255, 255, 0.1)\"),a.fillStyle=h,a.fill(),a.restore());!0===p&&(a.save(),a.beginPath(),a.moveTo(c,b),a.lineTo(c-d,b+d),a.lineTo(c-d,e-d),a.lineTo(c,e),h=a.createLinearGradient(c-d,(e+b)/2,c,(e+b)/2),h.addColorStop(0,g),h.addColorStop(1,\"rgba(255, 255, 255, 0.1)\"),a.fillStyle=h,h.addColorStop(0,g),h.addColorStop(1,\"rgba(255, 255, 255, 0.1)\"),a.fillStyle=h,a.fill(),\na.closePath(),a.restore())};q.prototype.renderColumn=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=null,e=this.plotArea,g=0,h,l,t,k=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),g=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1,r=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:Math.min(0.15*\nthis.width,0.9*(this.plotArea.width/a.plotType.totalDataSeries))<<0,p=a.axisX.dataInfo.minDiff;isFinite(p)||(p=0.3*Math.abs(a.axisX.range));p=this.dataPointWidth=this.options.dataPointWidth?this.dataPointWidth:0.9*(e.width*(a.axisX.logarithmic?Math.log(p)/Math.log(a.axisX.range):Math.abs(p)/Math.abs(a.axisX.range))/a.plotType.totalDataSeries)<<0;this.dataPointMaxWidth&&g>r&&(g=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,r));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&r<\ng)&&(r=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,g));p<g&&(p=g);p>r&&(p=r);b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(e.x1,e.y1,e.width,e.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.clip());for(r=0;r<a.dataSeriesIndexes.length;r++){var n=a.dataSeriesIndexes[r],d=this.data[n],w=d.dataPoints;if(0<w.length)for(var m=5<p&&d.bevelEnabled?!0:!1,g=0;g<\nw.length;g++)if(w[g].getTime?t=w[g].x.getTime():t=w[g].x,!(t<a.axisX.dataInfo.viewPortMin||t>a.axisX.dataInfo.viewPortMax)&&\"number\"===typeof w[g].y){h=a.axisX.convertValueToPixel(t);l=a.axisY.convertValueToPixel(w[g].y);h=a.axisX.reversed?h+a.plotType.totalDataSeries*p/2-(a.previousDataSeriesCount+r)*p<<0:h-a.plotType.totalDataSeries*p/2+(a.previousDataSeriesCount+r)*p<<0;var D=a.axisX.reversed?h-p<<0:h+p<<0,u;0<=w[g].y?u=k:(u=l,l=k);l>u&&(c=l,l=u,u=c);c=w[g].color?w[g].color:d._colorSet[g%d._colorSet.length];\nX(b,h,l,D,u,c,0,null,m&&0<=w[g].y,0>w[g].y&&m,!1,!1,d.fillOpacity);c=d.dataPointIds[g];this._eventManager.objectMap[c]={id:c,objectType:\"dataPoint\",dataSeriesIndex:n,dataPointIndex:g,x1:h,y1:l,x2:D,y2:u};c=R(c);v&&X(this._eventManager.ghostCtx,h,l,D,u,c,0,null,!1,!1,!1,!1);(w[g].indexLabel||d.indexLabel||w[g].indexLabelFormatter||d.indexLabelFormatter)&&this._indexLabels.push({chartType:\"column\",dataPoint:w[g],dataSeries:d,point:{x:h+(D-h)/2,y:0>w[g].y===a.axisY.reversed?l:u},direction:0>w[g].y===\na.axisY.reversed?1:-1,bounds:{x1:h,y1:Math.min(l,u),x2:D,y2:Math.max(l,u)},color:c})}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.restore());\nb.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.yScaleAnimation,easingFunction:O.easing.easeOutQuart,animationBase:k<a.axisY.bounds.y1?a.axisY.bounds.y1:k>a.axisY.bounds.y2?a.axisY.bounds.y2:k}}};q.prototype.renderStackedColumn=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=null,e=this.plotArea,g=[],h=[],l=[],t=[],k=0,r,p,n=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),k=\nthis.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1;r=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:0.15*this.width<<0;var d=a.axisX.dataInfo.minDiff;isFinite(d)||(d=0.3*Math.abs(a.axisX.range));d=this.options.dataPointWidth?this.dataPointWidth:0.9*(e.width*(a.axisX.logarithmic?Math.log(d)/Math.log(a.axisX.range):Math.abs(d)/Math.abs(a.axisX.range))/a.plotType.plotUnits.length)<<0;this.dataPointMaxWidth&&\nk>r&&(k=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,r));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&r<k)&&(r=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,k));d<k&&(d=k);d>r&&(d=r);b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(e.x1,e.y1,e.width,e.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.clip());for(var w=0;w<a.dataSeriesIndexes.length;w++){var m=\na.dataSeriesIndexes[w],D=this.data[m],u=D.dataPoints;if(0<u.length){var Q=5<d&&D.bevelEnabled?!0:!1;b.strokeStyle=\"#4572A7 \";for(k=0;k<u.length;k++)if(c=u[k].x.getTime?u[k].x.getTime():u[k].x,!(c<a.axisX.dataInfo.viewPortMin||c>a.axisX.dataInfo.viewPortMax)&&\"number\"===typeof u[k].y){r=a.axisX.convertValueToPixel(c);var H=r-a.plotType.plotUnits.length*d/2+a.index*d<<0,s=H+d<<0,q;if(a.axisY.logarithmic||a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length&&0<u[k].y)l[c]=u[k].y+(l[c]?l[c]:\n0),0<l[c]&&(p=a.axisY.convertValueToPixel(l[c]),q=\"undefined\"!==typeof g[c]?g[c]:n,g[c]=p);else if(a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length&&0>=u[k].y)t[c]=u[k].y+(t[c]?t[c]:0),q=a.axisY.convertValueToPixel(t[c]),p=\"undefined\"!==typeof h[c]?h[c]:n,h[c]=q;else if(p=a.axisY.convertValueToPixel(u[k].y),0<=u[k].y){var y=\"undefined\"!==typeof g[c]?g[c]:0;p-=y;q=n-y;g[c]=y+(q-p)}else y=h[c]?h[c]:0,q=p+y,p=n+y,h[c]=y+(q-p);c=u[k].color?u[k].color:D._colorSet[k%D._colorSet.length];\nX(b,H,p,s,q,c,0,null,Q&&0<=u[k].y,0>u[k].y&&Q,!1,!1,D.fillOpacity);c=D.dataPointIds[k];this._eventManager.objectMap[c]={id:c,objectType:\"dataPoint\",dataSeriesIndex:m,dataPointIndex:k,x1:H,y1:p,x2:s,y2:q};c=R(c);v&&X(this._eventManager.ghostCtx,H,p,s,q,c,0,null,!1,!1,!1,!1);(u[k].indexLabel||D.indexLabel||u[k].indexLabelFormatter||D.indexLabelFormatter)&&this._indexLabels.push({chartType:\"stackedColumn\",dataPoint:u[k],dataSeries:D,point:{x:r,y:0<=u[k].y?p:q},direction:0>u[k].y===a.axisY.reversed?1:\n-1,bounds:{x1:H,y1:Math.min(p,q),x2:s,y2:Math.max(p,q)},color:c})}}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.restore());\nb.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.yScaleAnimation,easingFunction:O.easing.easeOutQuart,animationBase:n<a.axisY.bounds.y1?a.axisY.bounds.y1:n>a.axisY.bounds.y2?a.axisY.bounds.y2:n}}};q.prototype.renderStackedColumn100=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=null,e=this.plotArea,g=[],h=[],l=[],t=[],k=0,r,p,n=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),\nk=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1;r=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:0.15*this.width<<0;var d=a.axisX.dataInfo.minDiff;isFinite(d)||(d=0.3*Math.abs(a.axisX.range));d=this.options.dataPointWidth?this.dataPointWidth:0.9*(e.width*(a.axisX.logarithmic?Math.log(d)/Math.log(a.axisX.range):Math.abs(d)/Math.abs(a.axisX.range))/a.plotType.plotUnits.length)<<0;this.dataPointMaxWidth&&\nk>r&&(k=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,r));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&r<k)&&(r=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,k));d<k&&(d=k);d>r&&(d=r);b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(e.x1,e.y1,e.width,e.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.clip());for(var w=0;w<a.dataSeriesIndexes.length;w++){var m=\na.dataSeriesIndexes[w],D=this.data[m],u=D.dataPoints;if(0<u.length)for(var Q=5<d&&D.bevelEnabled?!0:!1,k=0;k<u.length;k++)if(c=u[k].x.getTime?u[k].x.getTime():u[k].x,!(c<a.axisX.dataInfo.viewPortMin||c>a.axisX.dataInfo.viewPortMax)&&\"number\"===typeof u[k].y){r=a.axisX.convertValueToPixel(c);p=0!==a.dataPointYSums[c]?100*(u[k].y/a.dataPointYSums[c]):0;var q=r-a.plotType.plotUnits.length*d/2+a.index*d<<0,s=q+d<<0,y;if(a.axisY.logarithmic||a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length&&\n0<u[k].y){l[c]=p+(\"undefined\"!==typeof l[c]?l[c]:0);if(0>=l[c])continue;p=a.axisY.convertValueToPixel(l[c]);y=g[c]?g[c]:n;g[c]=p}else if(a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length&&0>=u[k].y)t[c]=p+(\"undefined\"!==typeof t[c]?t[c]:0),y=a.axisY.convertValueToPixel(t[c]),p=h[c]?h[c]:n,h[c]=y;else if(p=a.axisY.convertValueToPixel(p),0<=u[k].y){var A=\"undefined\"!==typeof g[c]?g[c]:0;p-=A;y=n-A;a.dataSeriesIndexes.length-1===w&&1>=Math.abs(e.y1-p)&&(p=e.y1);g[c]=A+(y-p)}else A=\"undefined\"!==\ntypeof h[c]?h[c]:0,y=p+A,p=n+A,a.dataSeriesIndexes.length-1===w&&1>=Math.abs(e.y2-y)&&(y=e.y2),h[c]=A+(y-p);c=u[k].color?u[k].color:D._colorSet[k%D._colorSet.length];X(b,q,p,s,y,c,0,null,Q&&0<=u[k].y,0>u[k].y&&Q,!1,!1,D.fillOpacity);c=D.dataPointIds[k];this._eventManager.objectMap[c]={id:c,objectType:\"dataPoint\",dataSeriesIndex:m,dataPointIndex:k,x1:q,y1:p,x2:s,y2:y};c=R(c);v&&X(this._eventManager.ghostCtx,q,p,s,y,c,0,null,!1,!1,!1,!1);(u[k].indexLabel||D.indexLabel||u[k].indexLabelFormatter||D.indexLabelFormatter)&&\nthis._indexLabels.push({chartType:\"stackedColumn100\",dataPoint:u[k],dataSeries:D,point:{x:r,y:0<=u[k].y?p:y},direction:0>u[k].y===a.axisY.reversed?1:-1,bounds:{x1:q,y1:Math.min(p,y),x2:s,y2:Math.max(p,y)},color:c})}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&\nthis._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.yScaleAnimation,easingFunction:O.easing.easeOutQuart,animationBase:n<a.axisY.bounds.y1?a.axisY.bounds.y1:n>a.axisY.bounds.y2?a.axisY.bounds.y2:n}}};q.prototype.renderBar=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=\nnull,e=this.plotArea,g=0,h,l,t,k=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),g=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1,r=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:Math.min(0.15*this.height,0.9*(this.plotArea.height/a.plotType.totalDataSeries))<<0,p=a.axisX.dataInfo.minDiff;isFinite(p)||(p=0.3*Math.abs(a.axisX.range));p=this.options.dataPointWidth?\nthis.dataPointWidth:0.9*(e.height*(a.axisX.logarithmic?Math.log(p)/Math.log(a.axisX.range):Math.abs(p)/Math.abs(a.axisX.range))/a.plotType.totalDataSeries)<<0;this.dataPointMaxWidth&&g>r&&(g=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,r));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&r<g)&&(r=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,g));p<g&&(p=g);p>r&&(p=r);b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(e.x1,e.y1,e.width,e.height);\nb.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.clip());for(r=0;r<a.dataSeriesIndexes.length;r++){var n=a.dataSeriesIndexes[r],d=this.data[n],w=d.dataPoints;if(0<w.length){var m=5<p&&d.bevelEnabled?!0:!1;b.strokeStyle=\"#4572A7 \";for(g=0;g<w.length;g++)if(w[g].getTime?t=w[g].x.getTime():t=w[g].x,!(t<a.axisX.dataInfo.viewPortMin||t>a.axisX.dataInfo.viewPortMax)&&\"number\"===typeof w[g].y){l=a.axisX.convertValueToPixel(t);\nh=a.axisY.convertValueToPixel(w[g].y);l=a.axisX.reversed?l+a.plotType.totalDataSeries*p/2-(a.previousDataSeriesCount+r)*p<<0:l-a.plotType.totalDataSeries*p/2+(a.previousDataSeriesCount+r)*p<<0;var D=a.axisX.reversed?l-p<<0:l+p<<0,u;0<=w[g].y?u=k:(u=h,h=k);c=w[g].color?w[g].color:d._colorSet[g%d._colorSet.length];X(b,u,l,h,D,c,0,null,m,!1,!1,!1,d.fillOpacity);c=d.dataPointIds[g];this._eventManager.objectMap[c]={id:c,objectType:\"dataPoint\",dataSeriesIndex:n,dataPointIndex:g,x1:u,y1:l,x2:h,y2:D};c=R(c);\nv&&X(this._eventManager.ghostCtx,u,l,h,D,c,0,null,!1,!1,!1,!1);(w[g].indexLabel||d.indexLabel||w[g].indexLabelFormatter||d.indexLabelFormatter)&&this._indexLabels.push({chartType:\"bar\",dataPoint:w[g],dataSeries:d,point:{x:0<=w[g].y?h:u,y:l+(D-l)/2},direction:0>w[g].y===a.axisY.reversed?1:-1,bounds:{x1:Math.min(u,h),y1:l,x2:Math.max(u,h),y2:D},color:c})}}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,\n0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.xScaleAnimation,easingFunction:O.easing.easeOutQuart,animationBase:k<a.axisY.bounds.x1?a.axisY.bounds.x1:k>a.axisY.bounds.x2?a.axisY.bounds.x2:\nk}}};q.prototype.renderStackedBar=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=null,e=this.plotArea,g=[],h=[],l=[],t=[],k=0,r,p,n=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),k=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1;p=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:0.15*this.height<<\n0;var d=a.axisX.dataInfo.minDiff;isFinite(d)||(d=0.3*Math.abs(a.axisX.range));d=this.options.dataPointWidth?this.dataPointWidth:0.9*(e.height*(a.axisX.logarithmic?Math.log(d)/Math.log(a.axisX.range):Math.abs(d)/Math.abs(a.axisX.range))/a.plotType.plotUnits.length)<<0;this.dataPointMaxWidth&&k>p&&(k=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,p));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&p<k)&&(p=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,k));d<\nk&&(d=k);d>p&&(d=p);b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(e.x1,e.y1,e.width,e.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.clip());for(var w=0;w<a.dataSeriesIndexes.length;w++){var m=a.dataSeriesIndexes[w],D=this.data[m],u=D.dataPoints;if(0<u.length){var q=5<d&&D.bevelEnabled?!0:!1;b.strokeStyle=\"#4572A7 \";for(k=0;k<u.length;k++)if(c=u[k].x.getTime?u[k].x.getTime():\nu[k].x,!(c<a.axisX.dataInfo.viewPortMin||c>a.axisX.dataInfo.viewPortMax)&&\"number\"===typeof u[k].y){p=a.axisX.convertValueToPixel(c);var s=p-a.plotType.plotUnits.length*d/2+a.index*d<<0,y=s+d<<0,B;if(a.axisY.logarithmic||a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length&&0<u[k].y)l[c]=u[k].y+(l[c]?l[c]:0),0<l[c]&&(B=g[c]?g[c]:n,g[c]=r=a.axisY.convertValueToPixel(l[c]));else if(a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length&&0>=u[k].y)t[c]=u[k].y+(t[c]?t[c]:0),r=h[c]?\nh[c]:n,h[c]=B=a.axisY.convertValueToPixel(t[c]);else if(r=a.axisY.convertValueToPixel(u[k].y),0<=u[k].y){var A=g[c]?g[c]:0;B=n+A;r+=A;g[c]=A+(r-B)}else A=h[c]?h[c]:0,B=r-A,r=n-A,h[c]=A+(r-B);c=u[k].color?u[k].color:D._colorSet[k%D._colorSet.length];X(b,B,s,r,y,c,0,null,q,!1,!1,!1,D.fillOpacity);c=D.dataPointIds[k];this._eventManager.objectMap[c]={id:c,objectType:\"dataPoint\",dataSeriesIndex:m,dataPointIndex:k,x1:B,y1:s,x2:r,y2:y};c=R(c);v&&X(this._eventManager.ghostCtx,B,s,r,y,c,0,null,!1,!1,!1,!1);\n(u[k].indexLabel||D.indexLabel||u[k].indexLabelFormatter||D.indexLabelFormatter)&&this._indexLabels.push({chartType:\"stackedBar\",dataPoint:u[k],dataSeries:D,point:{x:0<=u[k].y?r:B,y:p},direction:0>u[k].y===a.axisY.reversed?1:-1,bounds:{x1:Math.min(B,r),y1:s,x2:Math.max(B,r),y2:y},color:c})}}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,\n0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.xScaleAnimation,easingFunction:O.easing.easeOutQuart,animationBase:n<a.axisY.bounds.x1?a.axisY.bounds.x1:n>a.axisY.bounds.x2?a.axisY.bounds.x2:n}}};q.prototype.renderStackedBar100=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,\nb=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=null,e=this.plotArea,g=[],h=[],l=[],t=[],k=0,r,p,n=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),k=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1;p=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:0.15*this.height<<0;var d=a.axisX.dataInfo.minDiff;isFinite(d)||(d=0.3*Math.abs(a.axisX.range));d=\nthis.options.dataPointWidth?this.dataPointWidth:0.9*(e.height*(a.axisX.logarithmic?Math.log(d)/Math.log(a.axisX.range):Math.abs(d)/Math.abs(a.axisX.range))/a.plotType.plotUnits.length)<<0;this.dataPointMaxWidth&&k>p&&(k=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,p));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&p<k)&&(p=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,k));d<k&&(d=k);d>p&&(d=p);b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();\nb.rect(e.x1,e.y1,e.width,e.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.clip());for(var w=0;w<a.dataSeriesIndexes.length;w++){var m=a.dataSeriesIndexes[w],D=this.data[m],u=D.dataPoints;if(0<u.length){var q=5<d&&D.bevelEnabled?!0:!1;b.strokeStyle=\"#4572A7 \";for(k=0;k<u.length;k++)if(c=u[k].x.getTime?u[k].x.getTime():u[k].x,!(c<a.axisX.dataInfo.viewPortMin||c>a.axisX.dataInfo.viewPortMax)&&\"number\"===\ntypeof u[k].y){p=a.axisX.convertValueToPixel(c);var s;s=0!==a.dataPointYSums[c]?100*(u[k].y/a.dataPointYSums[c]):0;var y=p-a.plotType.plotUnits.length*d/2+a.index*d<<0,B=y+d<<0;if(a.axisY.logarithmic||a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length&&0<u[k].y){l[c]=s+(l[c]?l[c]:0);if(0>=l[c])continue;s=g[c]?g[c]:n;g[c]=r=a.axisY.convertValueToPixel(l[c])}else if(a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length&&0>=u[k].y)t[c]=s+(t[c]?t[c]:0),r=h[c]?h[c]:n,h[c]=s=a.axisY.convertValueToPixel(t[c]);\nelse if(r=a.axisY.convertValueToPixel(s),0<=u[k].y){var A=g[c]?g[c]:0;s=n+A;r+=A;a.dataSeriesIndexes.length-1===w&&1>=Math.abs(e.x2-r)&&(r=e.x2);g[c]=A+(r-s)}else A=h[c]?h[c]:0,s=r-A,r=n-A,a.dataSeriesIndexes.length-1===w&&1>=Math.abs(e.x1-s)&&(s=e.x1),h[c]=A+(r-s);c=u[k].color?u[k].color:D._colorSet[k%D._colorSet.length];X(b,s,y,r,B,c,0,null,q,!1,!1,!1,D.fillOpacity);c=D.dataPointIds[k];this._eventManager.objectMap[c]={id:c,objectType:\"dataPoint\",dataSeriesIndex:m,dataPointIndex:k,x1:s,y1:y,x2:r,\ny2:B};c=R(c);v&&X(this._eventManager.ghostCtx,s,y,r,B,c,0,null,!1,!1,!1,!1);(u[k].indexLabel||D.indexLabel||u[k].indexLabelFormatter||D.indexLabelFormatter)&&this._indexLabels.push({chartType:\"stackedBar100\",dataPoint:u[k],dataSeries:D,point:{x:0<=u[k].y?r:s,y:p},direction:0>u[k].y===a.axisY.reversed?1:-1,bounds:{x1:Math.min(s,r),y1:y,x2:Math.max(s,r),y2:B},color:c})}}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,\n0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.xScaleAnimation,easingFunction:O.easing.easeOutQuart,animationBase:n<a.axisY.bounds.x1?a.axisY.bounds.x1:n>a.axisY.bounds.x2?a.axisY.bounds.x2:\nn}}};q.prototype.renderArea=function(a){var f,b;function c(){A&&(0<w.lineThickness&&g.stroke(),a.axisY.logarithmic||0>=a.axisY.viewportMinimum&&0<=a.axisY.viewportMaximum?B=y:0>a.axisY.viewportMaximum?B=t.y1:0<a.axisY.viewportMinimum&&(B=l.y2),g.lineTo(u,B),g.lineTo(A.x,B),g.closePath(),g.globalAlpha=w.fillOpacity,g.fill(),g.globalAlpha=1,v&&(h.lineTo(u,B),h.lineTo(A.x,B),h.closePath(),h.fill()),g.beginPath(),g.moveTo(u,s),h.beginPath(),h.moveTo(u,s),A={x:u,y:s})}var e=a.targetCanvasCtx||this.plotArea.ctx,\ng=v?this._preRenderCtx:e;if(!(0>=a.dataSeriesIndexes.length)){var h=this._eventManager.ghostCtx,l=a.axisX.lineCoordinates,t=a.axisY.lineCoordinates,k=[],r=this.plotArea,p;g.save();v&&h.save();g.beginPath();g.rect(r.x1,r.y1,r.width,r.height);g.clip();v&&(h.beginPath(),h.rect(r.x1,r.y1,r.width,r.height),h.clip());for(var n=0;n<a.dataSeriesIndexes.length;n++){var d=a.dataSeriesIndexes[n],w=this.data[d],m=w.dataPoints,k=w.id;this._eventManager.objectMap[k]={objectType:\"dataSeries\",dataSeriesIndex:d};\nk=R(k);h.fillStyle=k;k=[];f=!0;var D=0,u,s,q,y=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),B,A=null;if(0<m.length){var x=w._colorSet[D%w._colorSet.length],z=w.lineColor=w.options.lineColor||x,L=z;g.fillStyle=x;g.strokeStyle=z;g.lineWidth=w.lineThickness;b=\"solid\";if(g.setLineDash){var K=F(w.nullDataLineDashType,w.lineThickness);b=w.lineDashType;var da=F(b,w.lineThickness);g.setLineDash(da)}for(var ca=!0;D<m.length;D++)if(q=m[D].x.getTime?m[D].x.getTime():m[D].x,!(q<\na.axisX.dataInfo.viewPortMin||q>a.axisX.dataInfo.viewPortMax&&(!w.connectNullData||!ca)))if(\"number\"!==typeof m[D].y)w.connectNullData||(ca||f)||c(),ca=!0;else{u=a.axisX.convertValueToPixel(q);s=a.axisY.convertValueToPixel(m[D].y);f||ca?(!f&&w.connectNullData?(g.setLineDash&&(w.options.nullDataLineDashType||b===w.lineDashType&&w.lineDashType!==w.nullDataLineDashType)&&(f=u,b=s,u=p.x,s=p.y,c(),g.moveTo(p.x,p.y),u=f,s=b,A=p,b=w.nullDataLineDashType,g.setLineDash(K)),g.lineTo(u,s),v&&h.lineTo(u,s)):\n(g.beginPath(),g.moveTo(u,s),v&&(h.beginPath(),h.moveTo(u,s)),A={x:u,y:s}),ca=f=!1):(g.lineTo(u,s),v&&h.lineTo(u,s),0==D%250&&c());p={x:u,y:s};D<m.length-1&&(L!==(m[D].lineColor||z)||b!==(m[D].lineDashType||w.lineDashType))&&(c(),L=m[D].lineColor||z,g.strokeStyle=L,g.setLineDash&&(m[D].lineDashType?(b=m[D].lineDashType,g.setLineDash(F(b,w.lineThickness))):(b=w.lineDashType,g.setLineDash(da))));var aa=w.dataPointIds[D];this._eventManager.objectMap[aa]={id:aa,objectType:\"dataPoint\",dataSeriesIndex:d,\ndataPointIndex:D,x1:u,y1:s};0!==m[D].markerSize&&(0<m[D].markerSize||0<w.markerSize)&&(q=w.getMarkerProperties(D,u,s,g),k.push(q),aa=R(aa),v&&k.push({x:u,y:s,ctx:h,type:q.type,size:q.size,color:aa,borderColor:aa,borderThickness:q.borderThickness}));(m[D].indexLabel||w.indexLabel||m[D].indexLabelFormatter||w.indexLabelFormatter)&&this._indexLabels.push({chartType:\"area\",dataPoint:m[D],dataSeries:w,point:{x:u,y:s},direction:0>m[D].y===a.axisY.reversed?1:-1,color:x})}c();$.drawMarkers(k)}}v&&(e.drawImage(this._preRenderCanvas,\n0,0,this.width,this.height),g.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&g.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&g.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),g.clearRect(r.x1,r.y1,r.width,r.height),this._eventManager.ghostCtx.restore());g.restore();return{source:e,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,easingFunction:O.easing.linear,\nanimationBase:0}}};q.prototype.renderSplineArea=function(a){function f(){var b=x(q,2);if(0<b.length){if(0<p.lineThickness){c.beginPath();c.moveTo(b[0].x,b[0].y);b[0].newStrokeStyle&&(c.strokeStyle=b[0].newStrokeStyle);b[0].newLineDashArray&&c.setLineDash(b[0].newLineDashArray);for(var d=0;d<b.length-3;d+=3)if(c.bezierCurveTo(b[d+1].x,b[d+1].y,b[d+2].x,b[d+2].y,b[d+3].x,b[d+3].y),v&&e.bezierCurveTo(b[d+1].x,b[d+1].y,b[d+2].x,b[d+2].y,b[d+3].x,b[d+3].y),b[d+3].newStrokeStyle||b[d+3].newLineDashArray)c.stroke(),\nc.beginPath(),c.moveTo(b[d+3].x,b[d+3].y),b[d+3].newStrokeStyle&&(c.strokeStyle=b[d+3].newStrokeStyle),b[d+3].newLineDashArray&&c.setLineDash(b[d+3].newLineDashArray);c.stroke()}c.beginPath();c.moveTo(b[0].x,b[0].y);v&&(e.beginPath(),e.moveTo(b[0].x,b[0].y));for(d=0;d<b.length-3;d+=3)c.bezierCurveTo(b[d+1].x,b[d+1].y,b[d+2].x,b[d+2].y,b[d+3].x,b[d+3].y),v&&e.bezierCurveTo(b[d+1].x,b[d+1].y,b[d+2].x,b[d+2].y,b[d+3].x,b[d+3].y);a.axisY.logarithmic||0>=a.axisY.viewportMinimum&&0<=a.axisY.viewportMaximum?\nu=D:0>a.axisY.viewportMaximum?u=h.y1:0<a.axisY.viewportMinimum&&(u=g.y2);s={x:b[0].x,y:b[0].y};c.lineTo(b[b.length-1].x,u);c.lineTo(s.x,u);c.closePath();c.globalAlpha=p.fillOpacity;c.fill();c.globalAlpha=1;v&&(e.lineTo(b[b.length-1].x,u),e.lineTo(s.x,u),e.closePath(),e.fill())}}var b=a.targetCanvasCtx||this.plotArea.ctx,c=v?this._preRenderCtx:b;if(!(0>=a.dataSeriesIndexes.length)){var e=this._eventManager.ghostCtx,g=a.axisX.lineCoordinates,h=a.axisY.lineCoordinates,l=[],t=this.plotArea;c.save();v&&\ne.save();c.beginPath();c.rect(t.x1,t.y1,t.width,t.height);c.clip();v&&(e.beginPath(),e.rect(t.x1,t.y1,t.width,t.height),e.clip());for(var k=0;k<a.dataSeriesIndexes.length;k++){var r=a.dataSeriesIndexes[k],p=this.data[r],n=p.dataPoints,l=p.id;this._eventManager.objectMap[l]={objectType:\"dataSeries\",dataSeriesIndex:r};l=R(l);e.fillStyle=l;var l=[],d=0,w,m,D=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),u,s=null,q=[];if(0<n.length){var y=p._colorSet[d%p._colorSet.length],\nB=p.lineColor=p.options.lineColor||y,A=B;c.fillStyle=y;c.strokeStyle=B;c.lineWidth=p.lineThickness;var z=\"solid\";if(c.setLineDash){var la=F(p.nullDataLineDashType,p.lineThickness),z=p.lineDashType,L=F(z,p.lineThickness);c.setLineDash(L)}for(m=!1;d<n.length;d++)if(w=n[d].x.getTime?n[d].x.getTime():n[d].x,!(w<a.axisX.dataInfo.viewPortMin||w>a.axisX.dataInfo.viewPortMax&&(!p.connectNullData||!m)))if(\"number\"!==typeof n[d].y)0<d&&!m&&(p.connectNullData?c.setLineDash&&(0<q.length&&(p.options.nullDataLineDashType||\n!n[d-1].lineDashType))&&(q[q.length-1].newLineDashArray=la,z=p.nullDataLineDashType):(f(),q=[])),m=!0;else{w=a.axisX.convertValueToPixel(w);m=a.axisY.convertValueToPixel(n[d].y);var K=p.dataPointIds[d];this._eventManager.objectMap[K]={id:K,objectType:\"dataPoint\",dataSeriesIndex:r,dataPointIndex:d,x1:w,y1:m};q[q.length]={x:w,y:m};d<n.length-1&&(A!==(n[d].lineColor||B)||z!==(n[d].lineDashType||p.lineDashType))&&(A=n[d].lineColor||B,q[q.length-1].newStrokeStyle=A,c.setLineDash&&(n[d].lineDashType?(z=\nn[d].lineDashType,q[q.length-1].newLineDashArray=F(z,p.lineThickness)):(z=p.lineDashType,q[q.length-1].newLineDashArray=L)));if(0!==n[d].markerSize&&(0<n[d].markerSize||0<p.markerSize)){var da=p.getMarkerProperties(d,w,m,c);l.push(da);K=R(K);v&&l.push({x:w,y:m,ctx:e,type:da.type,size:da.size,color:K,borderColor:K,borderThickness:da.borderThickness})}(n[d].indexLabel||p.indexLabel||n[d].indexLabelFormatter||p.indexLabelFormatter)&&this._indexLabels.push({chartType:\"splineArea\",dataPoint:n[d],dataSeries:p,\npoint:{x:w,y:m},direction:0>n[d].y===a.axisY.reversed?1:-1,color:y});m=!1}f();$.drawMarkers(l)}}v&&(b.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&c.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&c.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.clearRect(t.x1,t.y1,t.width,t.height),\nthis._eventManager.ghostCtx.restore());c.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,easingFunction:O.easing.linear,animationBase:0}}};q.prototype.renderStepArea=function(a){var f,b;function c(){A&&(0<w.lineThickness&&g.stroke(),a.axisY.logarithmic||0>=a.axisY.viewportMinimum&&0<=a.axisY.viewportMaximum?B=y:0>a.axisY.viewportMaximum?B=t.y1:0<a.axisY.viewportMinimum&&(B=l.y2),g.lineTo(u,B),g.lineTo(A.x,B),g.closePath(),g.globalAlpha=w.fillOpacity,g.fill(),g.globalAlpha=\n1,v&&(h.lineTo(u,B),h.lineTo(A.x,B),h.closePath(),h.fill()),g.beginPath(),g.moveTo(u,s),h.beginPath(),h.moveTo(u,s),A={x:u,y:s})}var e=a.targetCanvasCtx||this.plotArea.ctx,g=v?this._preRenderCtx:e;if(!(0>=a.dataSeriesIndexes.length)){var h=this._eventManager.ghostCtx,l=a.axisX.lineCoordinates,t=a.axisY.lineCoordinates,k=[],r=this.plotArea,p;g.save();v&&h.save();g.beginPath();g.rect(r.x1,r.y1,r.width,r.height);g.clip();v&&(h.beginPath(),h.rect(r.x1,r.y1,r.width,r.height),h.clip());for(var n=0;n<a.dataSeriesIndexes.length;n++){var d=\na.dataSeriesIndexes[n],w=this.data[d],m=w.dataPoints,k=w.id;this._eventManager.objectMap[k]={objectType:\"dataSeries\",dataSeriesIndex:d};k=R(k);h.fillStyle=k;k=[];f=!0;var D=0,u,s,q,y=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),B,A=null;b=!1;if(0<m.length){var x=w._colorSet[D%w._colorSet.length],z=w.lineColor=w.options.lineColor||x,L=z;g.fillStyle=x;g.strokeStyle=z;g.lineWidth=w.lineThickness;var K=\"solid\";if(g.setLineDash){var da=F(w.nullDataLineDashType,w.lineThickness),\nK=w.lineDashType,ca=F(K,w.lineThickness);g.setLineDash(ca)}for(;D<m.length;D++)if(q=m[D].x.getTime?m[D].x.getTime():m[D].x,!(q<a.axisX.dataInfo.viewPortMin||q>a.axisX.dataInfo.viewPortMax&&(!w.connectNullData||!b))){var aa=s;\"number\"!==typeof m[D].y?(w.connectNullData||(b||f)||c(),b=!0):(u=a.axisX.convertValueToPixel(q),s=a.axisY.convertValueToPixel(m[D].y),f||b?(!f&&w.connectNullData?(g.setLineDash&&(w.options.nullDataLineDashType||K===w.lineDashType&&w.lineDashType!==w.nullDataLineDashType)&&(f=\nu,b=s,u=p.x,s=p.y,c(),g.moveTo(p.x,p.y),u=f,s=b,A=p,K=w.nullDataLineDashType,g.setLineDash(da)),g.lineTo(u,aa),g.lineTo(u,s),v&&(h.lineTo(u,aa),h.lineTo(u,s))):(g.beginPath(),g.moveTo(u,s),v&&(h.beginPath(),h.moveTo(u,s)),A={x:u,y:s}),b=f=!1):(g.lineTo(u,aa),v&&h.lineTo(u,aa),g.lineTo(u,s),v&&h.lineTo(u,s),0==D%250&&c()),p={x:u,y:s},D<m.length-1&&(L!==(m[D].lineColor||z)||K!==(m[D].lineDashType||w.lineDashType))&&(c(),L=m[D].lineColor||z,g.strokeStyle=L,g.setLineDash&&(m[D].lineDashType?(K=m[D].lineDashType,\ng.setLineDash(F(K,w.lineThickness))):(K=w.lineDashType,g.setLineDash(ca)))),q=w.dataPointIds[D],this._eventManager.objectMap[q]={id:q,objectType:\"dataPoint\",dataSeriesIndex:d,dataPointIndex:D,x1:u,y1:s},0!==m[D].markerSize&&(0<m[D].markerSize||0<w.markerSize)&&(aa=w.getMarkerProperties(D,u,s,g),k.push(aa),q=R(q),v&&k.push({x:u,y:s,ctx:h,type:aa.type,size:aa.size,color:q,borderColor:q,borderThickness:aa.borderThickness})),(m[D].indexLabel||w.indexLabel||m[D].indexLabelFormatter||w.indexLabelFormatter)&&\nthis._indexLabels.push({chartType:\"stepArea\",dataPoint:m[D],dataSeries:w,point:{x:u,y:s},direction:0>m[D].y===a.axisY.reversed?1:-1,color:x}))}c();$.drawMarkers(k)}}v&&(e.drawImage(this._preRenderCanvas,0,0,this.width,this.height),g.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&g.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&g.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,\n0,0,this.width,this.height),g.clearRect(r.x1,r.y1,r.width,r.height),this._eventManager.ghostCtx.restore());g.restore();return{source:e,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,easingFunction:O.easing.linear,animationBase:0}}};q.prototype.renderStackedArea=function(a){function f(){if(!(1>t.length)){for(0<A.lineThickness&&c.stroke();0<t.length;){var a=t.pop();c.lineTo(a.x,a.y);v&&D.lineTo(a.x,a.y)}c.closePath();c.globalAlpha=A.fillOpacity;c.fill();c.globalAlpha=1;c.beginPath();v&&(D.closePath(),\nD.fill(),D.beginPath());t=[]}}var b=a.targetCanvasCtx||this.plotArea.ctx,c=v?this._preRenderCtx:b;if(!(0>=a.dataSeriesIndexes.length)){var e=null,g=[],h=this.plotArea,l=[],t=[],k=[],r=[],p=0,n,d,w,m=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),D=this._eventManager.ghostCtx,u,s,q;v&&D.beginPath();c.save();v&&D.save();c.beginPath();c.rect(h.x1,h.y1,h.width,h.height);c.clip();v&&(D.beginPath(),D.rect(h.x1,h.y1,h.width,h.height),D.clip());for(var e=[],y=0;y<a.dataSeriesIndexes.length;y++){var B=\na.dataSeriesIndexes[y],A=this.data[B],x=A.dataPoints;A.dataPointIndexes=[];for(p=0;p<x.length;p++)B=x[p].x.getTime?x[p].x.getTime():x[p].x,A.dataPointIndexes[B]=p,e[B]||(k.push(B),e[B]=!0);k.sort(Pa)}for(y=0;y<a.dataSeriesIndexes.length;y++){B=a.dataSeriesIndexes[y];A=this.data[B];x=A.dataPoints;s=!0;t=[];p=A.id;this._eventManager.objectMap[p]={objectType:\"dataSeries\",dataSeriesIndex:B};p=R(p);D.fillStyle=p;if(0<k.length){var e=A._colorSet[0],z=A.lineColor=A.options.lineColor||e,L=z;c.fillStyle=e;\nc.strokeStyle=z;c.lineWidth=A.lineThickness;q=\"solid\";if(c.setLineDash){var K=F(A.nullDataLineDashType,A.lineThickness);q=A.lineDashType;var da=F(q,A.lineThickness);c.setLineDash(da)}for(var ca=!0,p=0;p<k.length;p++){w=k[p];var aa=null,aa=0<=A.dataPointIndexes[w]?x[A.dataPointIndexes[w]]:{x:w,y:null};if(!(w<a.axisX.dataInfo.viewPortMin||w>a.axisX.dataInfo.viewPortMax&&(!A.connectNullData||!ca)))if(\"number\"!==typeof aa.y)A.connectNullData||(ca||s)||f(),ca=!0;else{n=a.axisX.convertValueToPixel(w);var wa=\nl[w]?l[w]:0;if(a.axisY.logarithmic||a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length){r[w]=aa.y+(r[w]?r[w]:0);if(0>=r[w]&&a.axisY.logarithmic)continue;d=a.axisY.convertValueToPixel(r[w])}else d=a.axisY.convertValueToPixel(aa.y),d-=wa;t.push({x:n,y:m-wa});l[w]=m-d;s||ca?(!s&&A.connectNullData?(c.setLineDash&&(A.options.nullDataLineDashType||q===A.lineDashType&&A.lineDashType!==A.nullDataLineDashType)&&(s=t.pop(),q=t[t.length-1],f(),c.moveTo(u.x,u.y),t.push(q),t.push(s),q=A.nullDataLineDashType,\nc.setLineDash(K)),c.lineTo(n,d),v&&D.lineTo(n,d)):(c.beginPath(),c.moveTo(n,d),v&&(D.beginPath(),D.moveTo(n,d))),ca=s=!1):(c.lineTo(n,d),v&&D.lineTo(n,d),0==p%250&&(f(),c.moveTo(n,d),v&&D.moveTo(n,d),t.push({x:n,y:m-wa})));u={x:n,y:d};p<x.length-1&&(L!==(x[p].lineColor||z)||q!==(x[p].lineDashType||A.lineDashType))&&(f(),c.beginPath(),c.moveTo(n,d),t.push({x:n,y:m-wa}),L=x[p].lineColor||z,c.strokeStyle=L,c.setLineDash&&(x[p].lineDashType?(q=x[p].lineDashType,c.setLineDash(F(q,A.lineThickness))):(q=\nA.lineDashType,c.setLineDash(da))));if(0<=A.dataPointIndexes[w]){var ma=A.dataPointIds[A.dataPointIndexes[w]];this._eventManager.objectMap[ma]={id:ma,objectType:\"dataPoint\",dataSeriesIndex:B,dataPointIndex:A.dataPointIndexes[w],x1:n,y1:d}}0<=A.dataPointIndexes[w]&&0!==aa.markerSize&&(0<aa.markerSize||0<A.markerSize)&&(w=A.getMarkerProperties(A.dataPointIndexes[w],n,d,c),g.push(w),markerColor=R(ma),v&&g.push({x:n,y:d,ctx:D,type:w.type,size:w.size,color:markerColor,borderColor:markerColor,borderThickness:w.borderThickness}));\n(aa.indexLabel||A.indexLabel||aa.indexLabelFormatter||A.indexLabelFormatter)&&this._indexLabels.push({chartType:\"stackedArea\",dataPoint:aa,dataSeries:A,point:{x:n,y:d},direction:0>x[p].y===a.axisY.reversed?1:-1,color:e})}}f();c.moveTo(n,d);v&&D.moveTo(n,d)}delete A.dataPointIndexes}$.drawMarkers(g);v&&(b.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&c.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&\nc.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.clearRect(h.x1,h.y1,h.width,h.height),D.restore());c.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,easingFunction:O.easing.linear,animationBase:0}}};q.prototype.renderStackedArea100=function(a){function f(){for(0<A.lineThickness&&c.stroke();0<t.length;){var a=t.pop();c.lineTo(a.x,a.y);v&&y.lineTo(a.x,\na.y)}c.closePath();c.globalAlpha=A.fillOpacity;c.fill();c.globalAlpha=1;c.beginPath();v&&(y.closePath(),y.fill(),y.beginPath());t=[]}var b=a.targetCanvasCtx||this.plotArea.ctx,c=v?this._preRenderCtx:b;if(!(0>=a.dataSeriesIndexes.length)){var e=null,g=this.plotArea,h=[],l=[],t=[],k=[],r=[],p=0,n,d,w,m,s,u,q=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),y=this._eventManager.ghostCtx;c.save();v&&y.save();c.beginPath();c.rect(g.x1,g.y1,g.width,g.height);c.clip();v&&(y.beginPath(),\ny.rect(g.x1,g.y1,g.width,g.height),y.clip());for(var e=[],x=0;x<a.dataSeriesIndexes.length;x++){var B=a.dataSeriesIndexes[x],A=this.data[B],z=A.dataPoints;A.dataPointIndexes=[];for(p=0;p<z.length;p++)B=z[p].x.getTime?z[p].x.getTime():z[p].x,A.dataPointIndexes[B]=p,e[B]||(k.push(B),e[B]=!0);k.sort(Pa)}for(x=0;x<a.dataSeriesIndexes.length;x++){B=a.dataSeriesIndexes[x];A=this.data[B];z=A.dataPoints;s=!0;e=A.id;this._eventManager.objectMap[e]={objectType:\"dataSeries\",dataSeriesIndex:B};e=R(e);y.fillStyle=\ne;t=[];if(0<k.length){var e=A._colorSet[p%A._colorSet.length],C=A.lineColor=A.options.lineColor||e,L=C;c.fillStyle=e;c.strokeStyle=C;c.lineWidth=A.lineThickness;u=\"solid\";if(c.setLineDash){var K=F(A.nullDataLineDashType,A.lineThickness);u=A.lineDashType;var da=F(u,A.lineThickness);c.setLineDash(da)}for(var ca=!0,p=0;p<k.length;p++){w=k[p];var aa=null,aa=0<=A.dataPointIndexes[w]?z[A.dataPointIndexes[w]]:{x:w,y:null};if(!(w<a.axisX.dataInfo.viewPortMin||w>a.axisX.dataInfo.viewPortMax&&(!A.connectNullData||\n!ca)))if(\"number\"!==typeof aa.y)A.connectNullData||(ca||s)||f(),ca=!0;else{var wa;wa=0!==a.dataPointYSums[w]?100*(aa.y/a.dataPointYSums[w]):0;n=a.axisX.convertValueToPixel(w);var ma=l[w]?l[w]:0;if(a.axisY.logarithmic||a.axisY.scaleBreaks&&0<a.axisY.scaleBreaks._appliedBreaks.length){r[w]=wa+(r[w]?r[w]:0);if(0>=r[w]&&a.axisY.logarithmic)continue;d=a.axisY.convertValueToPixel(r[w])}else d=a.axisY.convertValueToPixel(wa),d-=ma;t.push({x:n,y:q-ma});l[w]=q-d;s||ca?(!s&&A.connectNullData?(c.setLineDash&&\n(A.options.nullDataLineDashType||u===A.lineDashType&&A.lineDashType!==A.nullDataLineDashType)&&(s=t.pop(),u=t[t.length-1],f(),c.moveTo(m.x,m.y),t.push(u),t.push(s),u=A.nullDataLineDashType,c.setLineDash(K)),c.lineTo(n,d),v&&y.lineTo(n,d)):(c.beginPath(),c.moveTo(n,d),v&&(y.beginPath(),y.moveTo(n,d))),ca=s=!1):(c.lineTo(n,d),v&&y.lineTo(n,d),0==p%250&&(f(),c.moveTo(n,d),v&&y.moveTo(n,d),t.push({x:n,y:q-ma})));m={x:n,y:d};p<z.length-1&&(L!==(z[p].lineColor||C)||u!==(z[p].lineDashType||A.lineDashType))&&\n(f(),c.beginPath(),c.moveTo(n,d),t.push({x:n,y:q-ma}),L=z[p].lineColor||C,c.strokeStyle=L,c.setLineDash&&(z[p].lineDashType?(u=z[p].lineDashType,c.setLineDash(F(u,A.lineThickness))):(u=A.lineDashType,c.setLineDash(da))));if(0<=A.dataPointIndexes[w]){var E=A.dataPointIds[A.dataPointIndexes[w]];this._eventManager.objectMap[E]={id:E,objectType:\"dataPoint\",dataSeriesIndex:B,dataPointIndex:A.dataPointIndexes[w],x1:n,y1:d}}0<=A.dataPointIndexes[w]&&0!==aa.markerSize&&(0<aa.markerSize||0<A.markerSize)&&\n(w=A.getMarkerProperties(p,n,d,c),h.push(w),markerColor=R(E),v&&h.push({x:n,y:d,ctx:y,type:w.type,size:w.size,color:markerColor,borderColor:markerColor,borderThickness:w.borderThickness}));(aa.indexLabel||A.indexLabel||aa.indexLabelFormatter||A.indexLabelFormatter)&&this._indexLabels.push({chartType:\"stackedArea100\",dataPoint:aa,dataSeries:A,point:{x:n,y:d},direction:0>z[p].y===a.axisY.reversed?1:-1,color:e})}}f();c.moveTo(n,d);v&&y.moveTo(n,d)}delete A.dataPointIndexes}$.drawMarkers(h);v&&(b.drawImage(this._preRenderCanvas,\n0,0,this.width,this.height),c.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&c.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&c.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.clearRect(g.x1,g.y1,g.width,g.height),y.restore());c.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,easingFunction:O.easing.linear,\nanimationBase:0}}};q.prototype.renderBubble=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=this.plotArea,e=0,g,h;b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(c.x1,c.y1,c.width,c.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(var l=-Infinity,t=Infinity,k=0;k<a.dataSeriesIndexes.length;k++)for(var r=\na.dataSeriesIndexes[k],p=this.data[r],n=p.dataPoints,d=0,e=0;e<n.length;e++)g=n[e].getTime?g=n[e].x.getTime():g=n[e].x,g<a.axisX.dataInfo.viewPortMin||g>a.axisX.dataInfo.viewPortMax||\"undefined\"===typeof n[e].z||(d=n[e].z,d>l&&(l=d),d<t&&(t=d));for(var w=25*Math.PI,m=Math.max(Math.pow(0.25*Math.min(c.height,c.width)/2,2)*Math.PI,w),k=0;k<a.dataSeriesIndexes.length;k++)if(r=a.dataSeriesIndexes[k],p=this.data[r],n=p.dataPoints,0<n.length)for(b.strokeStyle=\"#4572A7 \",e=0;e<n.length;e++)if(g=n[e].getTime?\ng=n[e].x.getTime():g=n[e].x,!(g<a.axisX.dataInfo.viewPortMin||g>a.axisX.dataInfo.viewPortMax)&&\"number\"===typeof n[e].y){g=a.axisX.convertValueToPixel(g);h=a.axisY.convertValueToPixel(n[e].y);var d=n[e].z,s=2*Math.max(Math.sqrt((l===t?m/2:w+(m-w)/(l-t)*(d-t))/Math.PI)<<0,1),d=p.getMarkerProperties(e,b);d.size=s;b.globalAlpha=p.fillOpacity;$.drawMarker(g,h,b,d.type,d.size,d.color,d.borderColor,d.borderThickness);b.globalAlpha=1;var u=p.dataPointIds[e];this._eventManager.objectMap[u]={id:u,objectType:\"dataPoint\",\ndataSeriesIndex:r,dataPointIndex:e,x1:g,y1:h,size:s};s=R(u);v&&$.drawMarker(g,h,this._eventManager.ghostCtx,d.type,d.size,s,s,d.borderThickness);(n[e].indexLabel||p.indexLabel||n[e].indexLabelFormatter||p.indexLabelFormatter)&&this._indexLabels.push({chartType:\"bubble\",dataPoint:n[e],dataSeries:p,point:{x:g,y:h},direction:1,bounds:{x1:g-d.size/2,y1:h-d.size/2,x2:g+d.size/2,y2:h+d.size/2},color:null})}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",\na.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0}}};q.prototype.renderScatter=\nfunction(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=this.plotArea,e=0,g,h;b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(c.x1,c.y1,c.width,c.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(var l=0;l<a.dataSeriesIndexes.length;l++){var t=a.dataSeriesIndexes[l],k=this.data[t],r=k.dataPoints;if(0<\nr.length){b.strokeStyle=\"#4572A7 \";Math.pow(0.3*Math.min(c.height,c.width)/2,2);for(var p=0,n=0,e=0;e<r.length;e++)if(g=r[e].getTime?g=r[e].x.getTime():g=r[e].x,!(g<a.axisX.dataInfo.viewPortMin||g>a.axisX.dataInfo.viewPortMax)&&\"number\"===typeof r[e].y){g=a.axisX.convertValueToPixel(g);h=a.axisY.convertValueToPixel(r[e].y);var d=k.getMarkerProperties(e,g,h,b);b.globalAlpha=k.fillOpacity;$.drawMarker(d.x,d.y,d.ctx,d.type,d.size,d.color,d.borderColor,d.borderThickness);b.globalAlpha=1;Math.sqrt((p-\ng)*(p-g)+(n-h)*(n-h))<Math.min(d.size,5)&&r.length>Math.min(this.plotArea.width,this.plotArea.height)||(p=k.dataPointIds[e],this._eventManager.objectMap[p]={id:p,objectType:\"dataPoint\",dataSeriesIndex:t,dataPointIndex:e,x1:g,y1:h},p=R(p),v&&$.drawMarker(d.x,d.y,this._eventManager.ghostCtx,d.type,d.size,p,p,d.borderThickness),(r[e].indexLabel||k.indexLabel||r[e].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:\"scatter\",dataPoint:r[e],dataSeries:k,point:{x:g,y:h},direction:1,\nbounds:{x1:g-d.size/2,y1:h-d.size/2,x2:g+d.size/2,y2:h+d.size/2},color:null}),p=g,n=h)}}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.restore());\nb.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0}}};q.prototype.renderCandlestick=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f,c=this._eventManager.ghostCtx;if(!(0>=a.dataSeriesIndexes.length)){var e=null,g=null,h=this.plotArea,l=0,t,k,r,p,n,d,e=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1,g=this.options.dataPointMaxWidth?\nthis.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:0.015*this.width,w=a.axisX.dataInfo.minDiff;isFinite(w)||(w=0.3*Math.abs(a.axisX.range));w=this.options.dataPointWidth?this.dataPointWidth:0.7*h.width*(a.axisX.logarithmic?Math.log(w)/Math.log(a.axisX.range):Math.abs(w)/Math.abs(a.axisX.range))<<0;this.dataPointMaxWidth&&e>g&&(e=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,g));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&g<e)&&(g=Math.max(this.options.dataPointWidth?\nthis.dataPointWidth:-Infinity,e));w<e&&(w=e);w>g&&(w=g);b.save();v&&c.save();b.beginPath();b.rect(h.x1,h.y1,h.width,h.height);b.clip();v&&(c.beginPath(),c.rect(h.x1,h.y1,h.width,h.height),c.clip());for(var m=0;m<a.dataSeriesIndexes.length;m++){var s=a.dataSeriesIndexes[m],u=this.data[s],q=u.dataPoints;if(0<q.length)for(var H=5<w&&u.bevelEnabled?!0:!1,l=0;l<q.length;l++)if(q[l].getTime?d=q[l].x.getTime():d=q[l].x,!(d<a.axisX.dataInfo.viewPortMin||d>a.axisX.dataInfo.viewPortMax)&&!y(q[l].y)&&q[l].y.length&&\n\"number\"===typeof q[l].y[0]&&\"number\"===typeof q[l].y[1]&&\"number\"===typeof q[l].y[2]&&\"number\"===typeof q[l].y[3]){t=a.axisX.convertValueToPixel(d);k=a.axisY.convertValueToPixel(q[l].y[0]);r=a.axisY.convertValueToPixel(q[l].y[1]);p=a.axisY.convertValueToPixel(q[l].y[2]);n=a.axisY.convertValueToPixel(q[l].y[3]);var x=t-w/2<<0,B=x+w<<0,g=u.options.fallingColor?u.fallingColor:u._colorSet[0],e=q[l].color?q[l].color:u._colorSet[0],A=Math.round(Math.max(1,0.15*w)),z=0===A%2?0:0.5,C=u.dataPointIds[l];this._eventManager.objectMap[C]=\n{id:C,objectType:\"dataPoint\",dataSeriesIndex:s,dataPointIndex:l,x1:x,y1:k,x2:B,y2:r,x3:t,y3:p,x4:t,y4:n,borderThickness:A,color:e};b.strokeStyle=e;b.beginPath();b.lineWidth=A;c.lineWidth=Math.max(A,4);\"candlestick\"===u.type?(b.moveTo(t-z,r),b.lineTo(t-z,Math.min(k,n)),b.stroke(),b.moveTo(t-z,Math.max(k,n)),b.lineTo(t-z,p),b.stroke(),X(b,x,Math.min(k,n),B,Math.max(k,n),q[l].y[0]<=q[l].y[3]?u.risingColor:g,A,e,H,H,!1,!1,u.fillOpacity),v&&(e=R(C),c.strokeStyle=e,c.moveTo(t-z,r),c.lineTo(t-z,Math.min(k,\nn)),c.stroke(),c.moveTo(t-z,Math.max(k,n)),c.lineTo(t-z,p),c.stroke(),X(c,x,Math.min(k,n),B,Math.max(k,n),e,0,null,!1,!1,!1,!1))):\"ohlc\"===u.type&&(b.moveTo(t-z,r),b.lineTo(t-z,p),b.stroke(),b.beginPath(),b.moveTo(t,k),b.lineTo(x,k),b.stroke(),b.beginPath(),b.moveTo(t,n),b.lineTo(B,n),b.stroke(),v&&(e=R(C),c.strokeStyle=e,c.moveTo(t-z,r),c.lineTo(t-z,p),c.stroke(),c.beginPath(),c.moveTo(t,k),c.lineTo(x,k),c.stroke(),c.beginPath(),c.moveTo(t,n),c.lineTo(B,n),c.stroke()));(q[l].indexLabel||u.indexLabel||\nq[l].indexLabelFormatter||u.indexLabelFormatter)&&this._indexLabels.push({chartType:u.type,dataPoint:q[l],dataSeries:u,point:{x:x+(B-x)/2,y:a.axisY.reversed?p:r},direction:1,bounds:{x1:x,y1:Math.min(r,p),x2:B,y2:Math.max(r,p)},color:e})}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),\nthis._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(h.x1,h.y1,h.width,h.height),c.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0}}};q.prototype.renderBoxAndWhisker=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f,c=this._eventManager.ghostCtx;if(!(0>=a.dataSeriesIndexes.length)){var e=null,g=this.plotArea,\nh=0,l,t,k,r,p,n,d,e=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1,h=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:0.015*this.width,w=a.axisX.dataInfo.minDiff;isFinite(w)||(w=0.3*Math.abs(a.axisX.range));w=this.options.dataPointWidth?this.dataPointWidth:0.7*g.width*(a.axisX.logarithmic?Math.log(w)/Math.log(a.axisX.range):Math.abs(w)/Math.abs(a.axisX.range))<<0;this.dataPointMaxWidth&&e>\nh&&(e=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,h));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&h<e)&&(h=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,e));w<e&&(w=e);w>h&&(w=h);b.save();v&&c.save();b.beginPath();b.rect(g.x1,g.y1,g.width,g.height);b.clip();v&&(c.beginPath(),c.rect(g.x1,g.y1,g.width,g.height),c.clip());for(var m=!1,m=!!a.axisY.reversed,s=0;s<a.dataSeriesIndexes.length;s++){var u=a.dataSeriesIndexes[s],q=this.data[u],H=q.dataPoints;\nif(0<H.length)for(var x=5<w&&q.bevelEnabled?!0:!1,h=0;h<H.length;h++)if(H[h].getTime?d=H[h].x.getTime():d=H[h].x,!(d<a.axisX.dataInfo.viewPortMin||d>a.axisX.dataInfo.viewPortMax)&&!y(H[h].y)&&H[h].y.length&&\"number\"===typeof H[h].y[0]&&\"number\"===typeof H[h].y[1]&&\"number\"===typeof H[h].y[2]&&\"number\"===typeof H[h].y[3]&&\"number\"===typeof H[h].y[4]&&5===H[h].y.length){l=a.axisX.convertValueToPixel(d);t=a.axisY.convertValueToPixel(H[h].y[0]);k=a.axisY.convertValueToPixel(H[h].y[1]);r=a.axisY.convertValueToPixel(H[h].y[2]);\np=a.axisY.convertValueToPixel(H[h].y[3]);n=a.axisY.convertValueToPixel(H[h].y[4]);var B=l-w/2<<0,A=l+w/2<<0,e=H[h].color?H[h].color:q._colorSet[0],z=Math.round(Math.max(1,0.15*w)),C=0===z%2?0:0.5,L=H[h].whiskerColor?H[h].whiskerColor:H[h].color?q.whiskerColor?q.whiskerColor:H[h].color:q.whiskerColor?q.whiskerColor:e,K=\"number\"===typeof H[h].whiskerThickness?H[h].whiskerThickness:\"number\"===typeof q.options.whiskerThickness?q.whiskerThickness:z,da=H[h].whiskerDashType?H[h].whiskerDashType:q.whiskerDashType,\nca=y(H[h].whiskerLength)?y(q.options.whiskerLength)?w:q.whiskerLength:H[h].whiskerLength,ca=\"number\"===typeof ca?0>=ca?0:ca>=w?w:ca:\"string\"===typeof ca?parseInt(ca)*w/100>w?w:parseInt(ca)*w/100:w,aa=1===Math.round(K)%2?0.5:0,wa=H[h].stemColor?H[h].stemColor:H[h].color?q.stemColor?q.stemColor:H[h].color:q.stemColor?q.stemColor:e,ma=\"number\"===typeof H[h].stemThickness?H[h].stemThickness:\"number\"===typeof q.options.stemThickness?q.stemThickness:z,E=1===Math.round(ma)%2?0.5:0,fb=H[h].stemDashType?H[h].stemDashType:\nq.stemDashType,I=H[h].lineColor?H[h].lineColor:H[h].color?q.lineColor?q.lineColor:H[h].color:q.lineColor?q.lineColor:e,J=\"number\"===typeof H[h].lineThickness?H[h].lineThickness:\"number\"===typeof q.options.lineThickness?q.lineThickness:z,S=H[h].lineDashType?H[h].lineDashType:q.lineDashType,M=1===Math.round(J)%2?0.5:0,P=q.upperBoxColor,U=q.lowerBoxColor,ra=y(q.options.fillOpacity)?1:q.fillOpacity,N=q.dataPointIds[h];this._eventManager.objectMap[N]={id:N,objectType:\"dataPoint\",dataSeriesIndex:u,dataPointIndex:h,\nx1:B,y1:t,x2:A,y2:k,x3:l,y3:r,x4:l,y4:p,y5:n,borderThickness:z,color:e,stemThickness:ma,stemColor:wa,whiskerThickness:K,whiskerLength:ca,whiskerColor:L,lineThickness:J,lineColor:I};b.save();0<ma&&(b.beginPath(),b.strokeStyle=wa,b.lineWidth=ma,b.setLineDash&&b.setLineDash(F(fb,ma)),b.moveTo(l-E,k),b.lineTo(l-E,t),b.stroke(),b.moveTo(l-E,p),b.lineTo(l-E,r),b.stroke());b.restore();c.lineWidth=Math.max(z,4);b.beginPath();X(b,B,Math.min(n,k),A,Math.max(k,n),U,0,e,m?x:!1,m?!1:x,!1,!1,ra);b.beginPath();\nX(b,B,Math.min(r,n),A,Math.max(n,r),P,0,e,m?!1:x,m?x:!1,!1,!1,ra);b.beginPath();b.lineWidth=z;b.strokeStyle=e;b.rect(B-C,Math.min(k,r)-C,A-B+2*C,Math.max(k,r)-Math.min(k,r)+2*C);b.stroke();b.save();0<J&&(b.beginPath(),b.globalAlpha=1,b.setLineDash&&b.setLineDash(F(S,J)),b.strokeStyle=I,b.lineWidth=J,b.moveTo(B,n-M),b.lineTo(A,n-M),b.stroke());b.restore();b.save();0<K&&(b.beginPath(),b.setLineDash&&b.setLineDash(F(da,K)),b.strokeStyle=L,b.lineWidth=K,b.moveTo(l-ca/2<<0,p-aa),b.lineTo(l+ca/2<<0,p-aa),\nb.stroke(),b.moveTo(l-ca/2<<0,t+aa),b.lineTo(l+ca/2<<0,t+aa),b.stroke());b.restore();v&&(e=R(N),c.strokeStyle=e,c.lineWidth=ma,0<ma&&(c.moveTo(l-C-E,k),c.lineTo(l-C-E,Math.max(t,p)),c.stroke(),c.moveTo(l-C-E,Math.min(t,p)),c.lineTo(l-C-E,r),c.stroke()),X(c,B,Math.max(k,r),A,Math.min(k,r),e,0,null,!1,!1,!1,!1),0<K&&(c.beginPath(),c.lineWidth=K,c.moveTo(l+ca/2,p-aa),c.lineTo(l-ca/2,p-aa),c.stroke(),c.moveTo(l+ca/2,t+aa),c.lineTo(l-ca/2,t+aa),c.stroke()));(H[h].indexLabel||q.indexLabel||H[h].indexLabelFormatter||\nq.indexLabelFormatter)&&this._indexLabels.push({chartType:q.type,dataPoint:H[h],dataSeries:q,point:{x:B+(A-B)/2,y:a.axisY.reversed?t:p},direction:1,bounds:{x1:B,y1:Math.min(t,p),x2:A,y2:Math.max(t,p)},color:e})}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,\n0,0,this.width,this.height),b.clearRect(g.x1,g.y1,g.width,g.height),c.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0}}};q.prototype.renderRangeColumn=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f;if(!(0>=a.dataSeriesIndexes.length)){var c=null,e=this.plotArea,g=0,h,l,t,g=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:\n1;h=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:0.03*this.width;var k=a.axisX.dataInfo.minDiff;isFinite(k)||(k=0.3*Math.abs(a.axisX.range));k=this.options.dataPointWidth?this.dataPointWidth:0.9*(e.width*(a.axisX.logarithmic?Math.log(k)/Math.log(a.axisX.range):Math.abs(k)/Math.abs(a.axisX.range))/a.plotType.totalDataSeries)<<0;this.dataPointMaxWidth&&g>h&&(g=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,h));!this.dataPointMaxWidth&&\n(this.dataPointMinWidth&&h<g)&&(h=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,g));k<g&&(k=g);k>h&&(k=h);b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(e.x1,e.y1,e.width,e.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.clip());for(var r=0;r<a.dataSeriesIndexes.length;r++){var p=a.dataSeriesIndexes[r],n=this.data[p],d=n.dataPoints;if(0<d.length)for(var w=\n5<k&&n.bevelEnabled?!0:!1,g=0;g<d.length;g++)if(d[g].getTime?t=d[g].x.getTime():t=d[g].x,!(t<a.axisX.dataInfo.viewPortMin||t>a.axisX.dataInfo.viewPortMax)&&!y(d[g].y)&&d[g].y.length&&\"number\"===typeof d[g].y[0]&&\"number\"===typeof d[g].y[1]){c=a.axisX.convertValueToPixel(t);h=a.axisY.convertValueToPixel(d[g].y[0]);l=a.axisY.convertValueToPixel(d[g].y[1]);var m=a.axisX.reversed?c+a.plotType.totalDataSeries*k/2-(a.previousDataSeriesCount+r)*k<<0:c-a.plotType.totalDataSeries*k/2+(a.previousDataSeriesCount+\nr)*k<<0,q=a.axisX.reversed?m-k<<0:m+k<<0,c=d[g].color?d[g].color:n._colorSet[g%n._colorSet.length];if(h>l){var u=h;h=l;l=u}u=n.dataPointIds[g];this._eventManager.objectMap[u]={id:u,objectType:\"dataPoint\",dataSeriesIndex:p,dataPointIndex:g,x1:m,y1:h,x2:q,y2:l};X(b,m,h,q,l,c,0,c,w,w,!1,!1,n.fillOpacity);c=R(u);v&&X(this._eventManager.ghostCtx,m,h,q,l,c,0,null,!1,!1,!1,!1);if(d[g].indexLabel||n.indexLabel||d[g].indexLabelFormatter||n.indexLabelFormatter)this._indexLabels.push({chartType:\"rangeColumn\",\ndataPoint:d[g],dataSeries:n,indexKeyword:0,point:{x:m+(q-m)/2,y:d[g].y[1]>=d[g].y[0]?l:h},direction:d[g].y[1]>=d[g].y[0]?-1:1,bounds:{x1:m,y1:Math.min(h,l),x2:q,y2:Math.max(h,l)},color:c}),this._indexLabels.push({chartType:\"rangeColumn\",dataPoint:d[g],dataSeries:n,indexKeyword:1,point:{x:m+(q-m)/2,y:d[g].y[1]>=d[g].y[0]?h:l},direction:d[g].y[1]>=d[g].y[0]?1:-1,bounds:{x1:m,y1:Math.min(h,l),x2:q,y2:Math.max(h,l)},color:c})}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\n\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0}}};q.prototype.renderError=\nfunction(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:f,c=a.axisY._position?\"left\"===a.axisY._position||\"right\"===a.axisY._position?!1:!0:!1;if(!(0>=a.dataSeriesIndexes.length)){var e=null,g=!1,h=this.plotArea,l=0,t,k,r,p,n,d,w,m=a.axisX.dataInfo.minDiff;isFinite(m)||(m=0.3*Math.abs(a.axisX.range));b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(h.x1,h.y1,h.width,h.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(h.x1,\nh.y1,h.width,h.height),this._eventManager.ghostCtx.clip());for(var q=0,u=0;u<this.data.length;u++)!this.data[u].type.match(/(bar|column)/ig)||!this.data[u].visible||this.data[u].type.match(/(stacked)/ig)&&q||q++;for(var s=0;s<a.dataSeriesIndexes.length;s++){var H=a.dataSeriesIndexes[s],x=this.data[H],B=x.dataPoints,A=y(x._linkedSeries)?!1:x._linkedSeries.type.match(/(bar|column)/ig)&&x._linkedSeries.visible?!0:!1,C=0;if(A)for(e=x._linkedSeries.id,u=0;u<e;u++)!this.data[u].type.match(/(bar|column)/ig)||\n!this.data[u].visible||this.data[u].type.match(/(stacked)/ig)&&C||(this.data[u].type.match(/(range)/ig)&&(g=!0),C++);e=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1;l=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:c?Math.min(0.15*this.height,0.9*(this.plotArea.height/(A?q:1)))<<0:0.3*this.width;g&&(l=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:\nc?Math.min(0.15*this.height,0.9*(this.plotArea.height/(A?q:1)))<<0:0.03*this.width);u=this.options.dataPointWidth?this.dataPointWidth:0.9*((c?h.height:h.width)*(a.axisX.logarithmic?Math.log(m)/Math.log(a.axisX.range):Math.abs(m)/Math.abs(a.axisX.range))/(A?q:1))<<0;this.dataPointMaxWidth&&e>l&&(e=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,l));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&l<e)&&(l=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,e));u<e&&\n(u=e);u>l&&(u=l);if(0<B.length)for(var F=x._colorSet,l=0;l<B.length;l++){var e=x.lineColor=x.options.color?x.options.color:F[0],L={color:B[l].whiskerColor?B[l].whiskerColor:B[l].color?x.whiskerColor?x.whiskerColor:B[l].color:x.whiskerColor?x.whiskerColor:e,thickness:y(B[l].whiskerThickness)?x.whiskerThickness:B[l].whiskerThickness,dashType:B[l].whiskerDashType?B[l].whiskerDashType:x.whiskerDashType,length:y(B[l].whiskerLength)?y(x.options.whiskerLength)?u:x.options.whiskerLength:B[l].whiskerLength,\ntrimLength:y(B[l].whiskerLength)?y(x.options.whiskerLength)?50:0:0};L.length=\"number\"===typeof L.length?0>=L.length?0:L.length>=u?u:L.length:\"string\"===typeof L.length?parseInt(L.length)*u/100>u?u:parseInt(L.length)*u/100>u:u;L.thickness=\"number\"===typeof L.thickness?0>L.thickness?0:Math.round(L.thickness):2;var K={color:B[l].stemColor?B[l].stemColor:B[l].color?x.stemColor?x.stemColor:B[l].color:x.stemColor?x.stemColor:e,thickness:B[l].stemThickness?B[l].stemThickness:x.stemThickness,dashType:B[l].stemDashType?\nB[l].stemDashType:x.stemDashType};K.thickness=\"number\"===typeof K.thickness?0>K.thickness?0:Math.round(K.thickness):2;B[l].getTime?w=B[l].x.getTime():w=B[l].x;if(!(w<a.axisX.dataInfo.viewPortMin||w>a.axisX.dataInfo.viewPortMax)&&!y(B[l].y)&&B[l].y.length&&\"number\"===typeof B[l].y[0]&&\"number\"===typeof B[l].y[1]){var da=a.axisX.convertValueToPixel(w);c?k=da:t=da;da=a.axisY.convertValueToPixel(B[l].y[0]);c?r=da:n=da;da=a.axisY.convertValueToPixel(B[l].y[1]);c?p=da:d=da;c?(n=a.axisX.reversed?k+(A?q:\n1)*u/2-(A?C-1:0)*u<<0:k-(A?q:1)*u/2+(A?C-1:0)*u<<0,d=a.axisX.reversed?n-u<<0:n+u<<0):(r=a.axisX.reversed?t+(A?q:1)*u/2-(A?C-1:0)*u<<0:t-(A?q:1)*u/2+(A?C-1:0)*u<<0,p=a.axisX.reversed?r-u<<0:r+u<<0);!c&&n>d&&(da=n,n=d,d=da);c&&r>p&&(da=r,r=p,p=da);da=x.dataPointIds[l];this._eventManager.objectMap[da]={id:da,objectType:\"dataPoint\",dataSeriesIndex:H,dataPointIndex:l,x1:Math.min(r,p),y1:Math.min(n,d),x2:Math.max(p,r),y2:Math.max(d,n),isXYSwapped:c,stemProperties:K,whiskerProperties:L};z(b,Math.min(r,p),\nMath.min(n,d),Math.max(p,r),Math.max(d,n),e,L,K,c);v&&z(this._eventManager.ghostCtx,r,n,p,d,e,L,K,c);if(B[l].indexLabel||x.indexLabel||B[l].indexLabelFormatter||x.indexLabelFormatter)this._indexLabels.push({chartType:\"error\",dataPoint:B[l],dataSeries:x,indexKeyword:0,point:{x:c?B[l].y[1]>=B[l].y[0]?r:p:r+(p-r)/2,y:c?n+(d-n)/2:B[l].y[1]>=B[l].y[0]?d:n},direction:B[l].y[1]>=B[l].y[0]?-1:1,bounds:{x1:c?Math.min(r,p):r,y1:c?n:Math.min(n,d),x2:c?Math.max(r,p):p,y2:c?d:Math.max(n,d)},color:e,axisSwapped:c}),\nthis._indexLabels.push({chartType:\"error\",dataPoint:B[l],dataSeries:x,indexKeyword:1,point:{x:c?B[l].y[1]>=B[l].y[0]?p:r:r+(p-r)/2,y:c?n+(d-n)/2:B[l].y[1]>=B[l].y[0]?n:d},direction:B[l].y[1]>=B[l].y[0]?1:-1,bounds:{x1:c?Math.min(r,p):r,y1:c?n:Math.min(n,d),x2:c?Math.max(r,p):p,y2:c?d:Math.max(n,d)},color:e,axisSwapped:c})}}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),\na.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(h.x1,h.y1,h.width,h.height),this._eventManager.ghostCtx.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0}}};q.prototype.renderRangeBar=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:\nf;if(!(0>=a.dataSeriesIndexes.length)){var c=null,e=this.plotArea,g=0,h,l,t,k,g=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1;h=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:Math.min(0.15*this.height,0.9*(this.plotArea.height/a.plotType.totalDataSeries))<<0;var r=a.axisX.dataInfo.minDiff;isFinite(r)||(r=0.3*Math.abs(a.axisX.range));r=this.options.dataPointWidth?this.dataPointWidth:0.9*\n(e.height*(a.axisX.logarithmic?Math.log(r)/Math.log(a.axisX.range):Math.abs(r)/Math.abs(a.axisX.range))/a.plotType.totalDataSeries)<<0;this.dataPointMaxWidth&&g>h&&(g=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,h));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&h<g)&&(h=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,g));r<g&&(r=g);r>h&&(r=h);b.save();v&&this._eventManager.ghostCtx.save();b.beginPath();b.rect(e.x1,e.y1,e.width,e.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),\nthis._eventManager.ghostCtx.rect(e.x1,e.y1,e.width,e.height),this._eventManager.ghostCtx.clip());for(var p=0;p<a.dataSeriesIndexes.length;p++){var n=a.dataSeriesIndexes[p],d=this.data[n],w=d.dataPoints;if(0<w.length){var m=5<r&&d.bevelEnabled?!0:!1;b.strokeStyle=\"#4572A7 \";for(g=0;g<w.length;g++)if(w[g].getTime?k=w[g].x.getTime():k=w[g].x,!(k<a.axisX.dataInfo.viewPortMin||k>a.axisX.dataInfo.viewPortMax)&&!y(w[g].y)&&w[g].y.length&&\"number\"===typeof w[g].y[0]&&\"number\"===typeof w[g].y[1]){h=a.axisY.convertValueToPixel(w[g].y[0]);\nl=a.axisY.convertValueToPixel(w[g].y[1]);t=a.axisX.convertValueToPixel(k);t=a.axisX.reversed?t+a.plotType.totalDataSeries*r/2-(a.previousDataSeriesCount+p)*r<<0:t-a.plotType.totalDataSeries*r/2+(a.previousDataSeriesCount+p)*r<<0;var q=a.axisX.reversed?t-r<<0:t+r<<0;h>l&&(c=h,h=l,l=c);c=w[g].color?w[g].color:d._colorSet[g%d._colorSet.length];X(b,h,t,l,q,c,0,null,m,!1,!1,!1,d.fillOpacity);c=d.dataPointIds[g];this._eventManager.objectMap[c]={id:c,objectType:\"dataPoint\",dataSeriesIndex:n,dataPointIndex:g,\nx1:h,y1:t,x2:l,y2:q};c=R(c);v&&X(this._eventManager.ghostCtx,h,t,l,q,c,0,null,!1,!1,!1,!1);if(w[g].indexLabel||d.indexLabel||w[g].indexLabelFormatter||d.indexLabelFormatter)this._indexLabels.push({chartType:\"rangeBar\",dataPoint:w[g],dataSeries:d,indexKeyword:0,point:{x:w[g].y[1]>=w[g].y[0]?h:l,y:t+(q-t)/2},direction:w[g].y[1]>=w[g].y[0]?-1:1,bounds:{x1:Math.min(h,l),y1:t,x2:Math.max(h,l),y2:q},color:c}),this._indexLabels.push({chartType:\"rangeBar\",dataPoint:w[g],dataSeries:d,indexKeyword:1,point:{x:w[g].y[1]>=\nw[g].y[0]?l:h,y:t+(q-t)/2},direction:w[g].y[1]>=w[g].y[0]?1:-1,bounds:{x1:Math.min(h,l),y1:t,x2:Math.max(h,l),y2:q},color:c})}}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(e.x1,\ne.y1,e.width,e.height),this._eventManager.ghostCtx.restore());b.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0}}};q.prototype.renderRangeArea=function(a){function f(){if(s){var a=null;0<r.lineThickness&&c.stroke();for(var b=t.length-1;0<=b;b--)a=t[b],c.lineTo(a.x,a.y),e.lineTo(a.x,a.y);c.closePath();c.globalAlpha=r.fillOpacity;c.fill();c.globalAlpha=1;e.fill();if(0<r.lineThickness){c.beginPath();c.moveTo(a.x,\na.y);for(b=0;b<t.length;b++)a=t[b],c.lineTo(a.x,a.y);c.stroke()}c.beginPath();c.moveTo(w,m);e.beginPath();e.moveTo(w,m);s={x:w,y:m};t=[];t.push({x:w,y:q})}}var b=a.targetCanvasCtx||this.plotArea.ctx,c=v?this._preRenderCtx:b;if(!(0>=a.dataSeriesIndexes.length)){var e=this._eventManager.ghostCtx,g=[],h=this.plotArea;c.save();v&&e.save();c.beginPath();c.rect(h.x1,h.y1,h.width,h.height);c.clip();v&&(e.beginPath(),e.rect(h.x1,h.y1,h.width,h.height),e.clip());for(var l=0;l<a.dataSeriesIndexes.length;l++){var t=\n[],k=a.dataSeriesIndexes[l],r=this.data[k],p=r.dataPoints,g=r.id;this._eventManager.objectMap[g]={objectType:\"dataSeries\",dataSeriesIndex:k};g=R(g);e.fillStyle=g;var g=[],n=!0,d=0,w,m,q,u,s=null;if(0<p.length){var y=r._colorSet[d%r._colorSet.length],x=r.lineColor=r.options.lineColor||y,B=x;c.fillStyle=y;c.strokeStyle=x;c.lineWidth=r.lineThickness;var A=\"solid\";if(c.setLineDash){var z=F(r.nullDataLineDashType,r.lineThickness),A=r.lineDashType,C=F(A,r.lineThickness);c.setLineDash(C)}for(var L=!0;d<\np.length;d++)if(u=p[d].x.getTime?p[d].x.getTime():p[d].x,!(u<a.axisX.dataInfo.viewPortMin||u>a.axisX.dataInfo.viewPortMax&&(!r.connectNullData||!L)))if(null!==p[d].y&&p[d].y.length&&\"number\"===typeof p[d].y[0]&&\"number\"===typeof p[d].y[1]){w=a.axisX.convertValueToPixel(u);m=a.axisY.convertValueToPixel(p[d].y[0]);q=a.axisY.convertValueToPixel(p[d].y[1]);n||L?(r.connectNullData&&!n?(c.setLineDash&&(r.options.nullDataLineDashType||A===r.lineDashType&&r.lineDashType!==r.nullDataLineDashType)&&(t[t.length-\n1].newLineDashArray=C,A=r.nullDataLineDashType,c.setLineDash(z)),c.lineTo(w,m),v&&e.lineTo(w,m),t.push({x:w,y:q})):(c.beginPath(),c.moveTo(w,m),s={x:w,y:m},t=[],t.push({x:w,y:q}),v&&(e.beginPath(),e.moveTo(w,m))),L=n=!1):(c.lineTo(w,m),t.push({x:w,y:q}),v&&e.lineTo(w,m),0==d%250&&f());u=r.dataPointIds[d];this._eventManager.objectMap[u]={id:u,objectType:\"dataPoint\",dataSeriesIndex:k,dataPointIndex:d,x1:w,y1:m,y2:q};d<p.length-1&&(B!==(p[d].lineColor||x)||A!==(p[d].lineDashType||r.lineDashType))&&(f(),\nB=p[d].lineColor||x,t[t.length-1].newStrokeStyle=B,c.strokeStyle=B,c.setLineDash&&(p[d].lineDashType?(A=p[d].lineDashType,t[t.length-1].newLineDashArray=F(A,r.lineThickness),c.setLineDash(t[t.length-1].newLineDashArray)):(A=r.lineDashType,t[t.length-1].newLineDashArray=C,c.setLineDash(C))));if(0!==p[d].markerSize&&(0<p[d].markerSize||0<r.markerSize)){var K=r.getMarkerProperties(d,w,q,c);g.push(K);var da=R(u);v&&g.push({x:w,y:q,ctx:e,type:K.type,size:K.size,color:da,borderColor:da,borderThickness:K.borderThickness});\nK=r.getMarkerProperties(d,w,m,c);g.push(K);da=R(u);v&&g.push({x:w,y:m,ctx:e,type:K.type,size:K.size,color:da,borderColor:da,borderThickness:K.borderThickness})}if(p[d].indexLabel||r.indexLabel||p[d].indexLabelFormatter||r.indexLabelFormatter)this._indexLabels.push({chartType:\"rangeArea\",dataPoint:p[d],dataSeries:r,indexKeyword:0,point:{x:w,y:m},direction:p[d].y[0]>p[d].y[1]===a.axisY.reversed?-1:1,color:y}),this._indexLabels.push({chartType:\"rangeArea\",dataPoint:p[d],dataSeries:r,indexKeyword:1,point:{x:w,\ny:q},direction:p[d].y[0]>p[d].y[1]===a.axisY.reversed?1:-1,color:y})}else L||n||f(),L=!0;f();$.drawMarkers(g)}}v&&(b.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&c.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&c.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.clearRect(h.x1,h.y1,\nh.width,h.height),this._eventManager.ghostCtx.restore());c.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,easingFunction:O.easing.linear,animationBase:0}}};q.prototype.renderRangeSplineArea=function(a){function f(a,b){var d=x(m,2);if(0<d.length){if(0<k.lineThickness){c.strokeStyle=b;c.setLineDash&&c.setLineDash(a);c.beginPath();c.moveTo(d[0].x,d[0].y);for(var f=0;f<d.length-3;f+=3){if(d[f].newStrokeStyle||d[f].newLineDashArray)c.stroke(),c.beginPath(),c.moveTo(d[f].x,\nd[f].y),d[f].newStrokeStyle&&(c.strokeStyle=d[f].newStrokeStyle),d[f].newLineDashArray&&c.setLineDash(d[f].newLineDashArray);c.bezierCurveTo(d[f+1].x,d[f+1].y,d[f+2].x,d[f+2].y,d[f+3].x,d[f+3].y)}c.stroke()}c.beginPath();c.moveTo(d[0].x,d[0].y);v&&(e.beginPath(),e.moveTo(d[0].x,d[0].y));for(f=0;f<d.length-3;f+=3)c.bezierCurveTo(d[f+1].x,d[f+1].y,d[f+2].x,d[f+2].y,d[f+3].x,d[f+3].y),v&&e.bezierCurveTo(d[f+1].x,d[f+1].y,d[f+2].x,d[f+2].y,d[f+3].x,d[f+3].y);d=x(q,2);c.lineTo(q[q.length-1].x,q[q.length-\n1].y);for(f=d.length-1;2<f;f-=3)c.bezierCurveTo(d[f-1].x,d[f-1].y,d[f-2].x,d[f-2].y,d[f-3].x,d[f-3].y),v&&e.bezierCurveTo(d[f-1].x,d[f-1].y,d[f-2].x,d[f-2].y,d[f-3].x,d[f-3].y);c.closePath();c.globalAlpha=k.fillOpacity;c.fill();v&&(e.closePath(),e.fill());c.globalAlpha=1;if(0<k.lineThickness){c.strokeStyle=b;c.setLineDash&&c.setLineDash(a);c.beginPath();c.moveTo(d[0].x,d[0].y);for(var g=f=0;f<d.length-3;f+=3,g++){if(m[g].newStrokeStyle||m[g].newLineDashArray)c.stroke(),c.beginPath(),c.moveTo(d[f].x,\nd[f].y),m[g].newStrokeStyle&&(c.strokeStyle=m[g].newStrokeStyle),m[g].newLineDashArray&&c.setLineDash(m[g].newLineDashArray);c.bezierCurveTo(d[f+1].x,d[f+1].y,d[f+2].x,d[f+2].y,d[f+3].x,d[f+3].y)}c.stroke()}c.beginPath()}}var b=a.targetCanvasCtx||this.plotArea.ctx,c=v?this._preRenderCtx:b;if(!(0>=a.dataSeriesIndexes.length)){var e=this._eventManager.ghostCtx,g=[],h=this.plotArea;c.save();v&&e.save();c.beginPath();c.rect(h.x1,h.y1,h.width,h.height);c.clip();v&&(e.beginPath(),e.rect(h.x1,h.y1,h.width,\nh.height),e.clip());for(var l=0;l<a.dataSeriesIndexes.length;l++){var t=a.dataSeriesIndexes[l],k=this.data[t],r=k.dataPoints,g=k.id;this._eventManager.objectMap[g]={objectType:\"dataSeries\",dataSeriesIndex:t};g=R(g);e.fillStyle=g;var g=[],p=0,n,d,w,m=[],q=[];if(0<r.length){var u=k._colorSet[p%k._colorSet.length],s=k.lineColor=k.options.lineColor||u,y=s;c.fillStyle=u;c.lineWidth=k.lineThickness;var z=\"solid\",B;if(c.setLineDash){var A=F(k.nullDataLineDashType,k.lineThickness),z=k.lineDashType;B=F(z,\nk.lineThickness)}for(d=!1;p<r.length;p++)if(n=r[p].x.getTime?r[p].x.getTime():r[p].x,!(n<a.axisX.dataInfo.viewPortMin||n>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||!d)))if(null!==r[p].y&&r[p].y.length&&\"number\"===typeof r[p].y[0]&&\"number\"===typeof r[p].y[1]){n=a.axisX.convertValueToPixel(n);d=a.axisY.convertValueToPixel(r[p].y[0]);w=a.axisY.convertValueToPixel(r[p].y[1]);var C=k.dataPointIds[p];this._eventManager.objectMap[C]={id:C,objectType:\"dataPoint\",dataSeriesIndex:t,dataPointIndex:p,\nx1:n,y1:d,y2:w};m[m.length]={x:n,y:d};q[q.length]={x:n,y:w};p<r.length-1&&(y!==(r[p].lineColor||s)||z!==(r[p].lineDashType||k.lineDashType))&&(y=r[p].lineColor||s,m[m.length-1].newStrokeStyle=y,c.setLineDash&&(r[p].lineDashType?(z=r[p].lineDashType,m[m.length-1].newLineDashArray=F(z,k.lineThickness)):(z=k.lineDashType,m[m.length-1].newLineDashArray=B)));if(0!==r[p].markerSize&&(0<r[p].markerSize||0<k.markerSize)){var la=k.getMarkerProperties(p,n,d,c);g.push(la);var L=R(C);v&&g.push({x:n,y:d,ctx:e,\ntype:la.type,size:la.size,color:L,borderColor:L,borderThickness:la.borderThickness});la=k.getMarkerProperties(p,n,w,c);g.push(la);L=R(C);v&&g.push({x:n,y:w,ctx:e,type:la.type,size:la.size,color:L,borderColor:L,borderThickness:la.borderThickness})}if(r[p].indexLabel||k.indexLabel||r[p].indexLabelFormatter||k.indexLabelFormatter)this._indexLabels.push({chartType:\"rangeSplineArea\",dataPoint:r[p],dataSeries:k,indexKeyword:0,point:{x:n,y:d},direction:r[p].y[0]<=r[p].y[1]?-1:1,color:u}),this._indexLabels.push({chartType:\"rangeSplineArea\",\ndataPoint:r[p],dataSeries:k,indexKeyword:1,point:{x:n,y:w},direction:r[p].y[0]<=r[p].y[1]?1:-1,color:u});d=!1}else 0<p&&!d&&(k.connectNullData?c.setLineDash&&(0<m.length&&(k.options.nullDataLineDashType||!r[p-1].lineDashType))&&(m[m.length-1].newLineDashArray=A,z=k.nullDataLineDashType):(f(B,s),m=[],q=[])),d=!0;f(B,s);$.drawMarkers(g)}}v&&(b.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&c.drawImage(a.axisX.maskCanvas,0,0,this.width,\nthis.height),a.axisY.maskCanvas&&c.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),c.clearRect(h.x1,h.y1,h.width,h.height),this._eventManager.ghostCtx.restore());c.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:O.xClipAnimation,easingFunction:O.easing.linear,animationBase:0}}};q.prototype.renderWaterfall=function(a){var f=a.targetCanvasCtx||this.plotArea.ctx,b=v?this._preRenderCtx:\nf;if(!(0>=a.dataSeriesIndexes.length)){var c=this._eventManager.ghostCtx,e=null,g=this.plotArea,h=0,l,t,k,r,p=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),h=this.options.dataPointMinWidth?this.dataPointMinWidth:this.options.dataPointWidth?this.dataPointWidth:1;t=this.options.dataPointMaxWidth?this.dataPointMaxWidth:this.options.dataPointWidth?this.dataPointWidth:Math.min(0.15*this.width,0.9*(this.plotArea.width/a.plotType.totalDataSeries))<<0;var n=a.axisX.dataInfo.minDiff;\nisFinite(n)||(n=0.3*Math.abs(a.axisX.range));n=this.options.dataPointWidth?this.dataPointWidth:0.6*(g.width*(a.axisX.logarithmic?Math.log(n)/Math.log(a.axisX.range):Math.abs(n)/Math.abs(a.axisX.range))/a.plotType.totalDataSeries)<<0;this.dataPointMaxWidth&&h>t&&(h=Math.min(this.options.dataPointWidth?this.dataPointWidth:Infinity,t));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&t<h)&&(t=Math.max(this.options.dataPointWidth?this.dataPointWidth:-Infinity,h));n<h&&(n=h);n>t&&(n=t);b.save();v&&this._eventManager.ghostCtx.save();\nb.beginPath();b.rect(g.x1,g.y1,g.width,g.height);b.clip();v&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(g.x1,g.y1,g.width,g.height),this._eventManager.ghostCtx.clip());for(var d=0;d<a.dataSeriesIndexes.length;d++){var w=a.dataSeriesIndexes[d],m=this.data[w],q=m.dataPoints,e=m._colorSet[0];m.risingColor=m.options.risingColor?m.options.risingColor:e;m.fallingColor=m.options.fallingColor?m.options.fallingColor:\"#e40a0a\";var u=\"number\"===typeof m.options.lineThickness?Math.round(m.lineThickness):\n1,s=1===Math.round(u)%2?-0.5:0;if(0<q.length)for(var y=5<n&&m.bevelEnabled?!0:!1,x=!1,z=null,A=null,h=0;h<q.length;h++)if(q[h].getTime?r=q[h].x.getTime():r=q[h].x,\"number\"!==typeof q[h].y){if(0<h&&!x&&m.connectNullData)var C=m.options.nullDataLineDashType||!q[h-1].lineDashType?m.nullDataLineDashType:q[h-1].lineDashType;x=!0}else{l=a.axisX.convertValueToPixel(r);t=0===m.dataPointEOs[h].cumulativeSum?p:a.axisY.convertValueToPixel(m.dataPointEOs[h].cumulativeSum);k=0===m.dataPointEOs[h].cumulativeSumYStartValue?\np:a.axisY.convertValueToPixel(m.dataPointEOs[h].cumulativeSumYStartValue);l=a.axisX.reversed?l+a.plotType.totalDataSeries*n/2-(a.previousDataSeriesCount+d)*n<<0:l-a.plotType.totalDataSeries*n/2+(a.previousDataSeriesCount+d)*n<<0;var la=a.axisX.reversed?l-n<<0:l+n<<0;t>k&&(e=t,t=k,k=e);a.axisY.reversed&&(e=t,t=k,k=e);e=m.dataPointIds[h];this._eventManager.objectMap[e]={id:e,objectType:\"dataPoint\",dataSeriesIndex:w,dataPointIndex:h,x1:l,y1:t,x2:la,y2:k};var L=q[h].color?q[h].color:0<q[h].y?m.risingColor:\nm.fallingColor;X(b,l,t,la,k,L,0,L,y,y,!1,!1,m.fillOpacity);e=R(e);v&&X(this._eventManager.ghostCtx,l,t,la,k,e,0,null,!1,!1,!1,!1);var K,L=l;K=\"undefined\"!==typeof q[h].isIntermediateSum&&!0===q[h].isIntermediateSum||\"undefined\"!==typeof q[h].isCumulativeSum&&!0===q[h].isCumulativeSum?0<q[h].y?t:k:0<q[h].y?k:t;0<h&&z&&(!x||m.connectNullData)&&(x&&b.setLineDash&&b.setLineDash(F(C,u)),b.beginPath(),b.moveTo(z,A-s),b.lineTo(L,K-s),0<u&&b.stroke(),v&&(c.beginPath(),c.moveTo(z,A-s),c.lineTo(L,K-s),0<u&&\nc.stroke()));x=!1;z=la;A=0<q[h].y?t:k;L=q[h].lineDashType?q[h].lineDashType:m.options.lineDashType?m.options.lineDashType:\"shortDash\";b.strokeStyle=q[h].lineColor?q[h].lineColor:m.options.lineColor?m.options.lineColor:\"#9e9e9e\";b.lineWidth=u;b.setLineDash&&(L=F(L,u),b.setLineDash(L));(q[h].indexLabel||m.indexLabel||q[h].indexLabelFormatter||m.indexLabelFormatter)&&this._indexLabels.push({chartType:\"waterfall\",dataPoint:q[h],dataSeries:m,point:{x:l+(la-l)/2,y:0<=q[h].y?t:k},direction:0>q[h].y===a.axisY.reversed?\n1:-1,bounds:{x1:l,y1:Math.min(t,k),x2:la,y2:Math.max(t,k)},color:e})}}v&&(f.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.globalCompositeOperation=\"source-atop\",a.axisX.maskCanvas&&b.drawImage(a.axisX.maskCanvas,0,0,this.width,this.height),a.axisY.maskCanvas&&b.drawImage(a.axisY.maskCanvas,0,0,this.width,this.height),this._breaksCanvasCtx&&this._breaksCanvasCtx.drawImage(this._preRenderCanvas,0,0,this.width,this.height),b.clearRect(g.x1,g.y1,g.width,g.height),this._eventManager.ghostCtx.restore());\nb.restore();return{source:f,dest:this.plotArea.ctx,animationCallback:O.fadeInAnimation,easingFunction:O.easing.easeInQuad,animationBase:0}}};var pa=function(a,f,b,c,e,g,h,l,t){if(!(0>b)){\"undefined\"===typeof l&&(l=1);if(!v){var k=Number((h%(2*Math.PI)).toFixed(8));Number((g%(2*Math.PI)).toFixed(8))===k&&(h-=1E-4)}a.save();a.globalAlpha=l;\"pie\"===e?(a.beginPath(),a.moveTo(f.x,f.y),a.arc(f.x,f.y,b,g,h,!1),a.fillStyle=c,a.strokeStyle=\"white\",a.lineWidth=2,a.closePath(),a.fill()):\"doughnut\"===e&&(a.beginPath(),\na.arc(f.x,f.y,b,g,h,!1),0<=t&&a.arc(f.x,f.y,t*b,h,g,!0),a.closePath(),a.fillStyle=c,a.strokeStyle=\"white\",a.lineWidth=2,a.fill());a.globalAlpha=1;a.restore()}};q.prototype.renderPie=function(a){function f(){if(k&&r){for(var a=0,b=0,c=0,e=0,f=0;f<r.length;f++){var g=r[f],h=k.dataPointIds[f];d[f].id=h;d[f].objectType=\"dataPoint\";d[f].dataPointIndex=f;d[f].dataSeriesIndex=0;var l=d[f],p={percent:null,total:null},m=null,p=t.getPercentAndTotal(k,g);if(k.indexLabelFormatter||g.indexLabelFormatter)m={chart:t.options,\ndataSeries:k,dataPoint:g,total:p.total,percent:p.percent};p=g.indexLabelFormatter?g.indexLabelFormatter(m):g.indexLabel?t.replaceKeywordsWithValue(g.indexLabel,g,k,f):k.indexLabelFormatter?k.indexLabelFormatter(m):k.indexLabel?t.replaceKeywordsWithValue(k.indexLabel,g,k,f):g.label?g.label:\"\";t._eventManager.objectMap[h]=l;l.center={x:x.x,y:x.y};l.y=g.y;l.radius=A;l.percentInnerRadius=O;l.indexLabelText=p;l.indexLabelPlacement=k.indexLabelPlacement;l.indexLabelLineColor=g.indexLabelLineColor?g.indexLabelLineColor:\nk.options.indexLabelLineColor?k.options.indexLabelLineColor:g.color?g.color:k._colorSet[f%k._colorSet.length];l.indexLabelLineThickness=y(g.indexLabelLineThickness)?k.indexLabelLineThickness:g.indexLabelLineThickness;l.indexLabelLineDashType=g.indexLabelLineDashType?g.indexLabelLineDashType:k.indexLabelLineDashType;l.indexLabelFontColor=g.indexLabelFontColor?g.indexLabelFontColor:k.indexLabelFontColor;l.indexLabelFontStyle=g.indexLabelFontStyle?g.indexLabelFontStyle:k.indexLabelFontStyle;l.indexLabelFontWeight=\ng.indexLabelFontWeight?g.indexLabelFontWeight:k.indexLabelFontWeight;l.indexLabelFontSize=y(g.indexLabelFontSize)?k.indexLabelFontSize:g.indexLabelFontSize;l.indexLabelFontFamily=g.indexLabelFontFamily?g.indexLabelFontFamily:k.indexLabelFontFamily;l.indexLabelBackgroundColor=g.indexLabelBackgroundColor?g.indexLabelBackgroundColor:k.options.indexLabelBackgroundColor?k.options.indexLabelBackgroundColor:k.indexLabelBackgroundColor;l.indexLabelMaxWidth=g.indexLabelMaxWidth?g.indexLabelMaxWidth:k.indexLabelMaxWidth?\nk.indexLabelMaxWidth:0.33*n.width;l.indexLabelWrap=\"undefined\"!==typeof g.indexLabelWrap?g.indexLabelWrap:k.indexLabelWrap;l.startAngle=0===f?k.startAngle?k.startAngle/180*Math.PI:0:d[f-1].endAngle;l.startAngle=(l.startAngle+2*Math.PI)%(2*Math.PI);l.endAngle=l.startAngle+2*Math.PI/z*Math.abs(g.y);g=(l.endAngle+l.startAngle)/2;g=(g+2*Math.PI)%(2*Math.PI);l.midAngle=g;if(l.midAngle>Math.PI/2-u&&l.midAngle<Math.PI/2+u){if(0===a||d[c].midAngle>l.midAngle)c=f;a++}else if(l.midAngle>3*Math.PI/2-u&&l.midAngle<\n3*Math.PI/2+u){if(0===b||d[e].midAngle>l.midAngle)e=f;b++}l.hemisphere=g>Math.PI/2&&g<=3*Math.PI/2?\"left\":\"right\";l.indexLabelTextBlock=new ka(t.plotArea.ctx,{fontSize:l.indexLabelFontSize,fontFamily:l.indexLabelFontFamily,fontColor:l.indexLabelFontColor,fontStyle:l.indexLabelFontStyle,fontWeight:l.indexLabelFontWeight,horizontalAlign:\"left\",backgroundColor:l.indexLabelBackgroundColor,maxWidth:l.indexLabelMaxWidth,maxHeight:l.indexLabelWrap?5*l.indexLabelFontSize:1.5*l.indexLabelFontSize,text:l.indexLabelText,\npadding:0,textBaseline:\"top\"});l.indexLabelTextBlock.measureText()}h=g=0;p=!1;for(f=0;f<r.length;f++)l=d[(c+f)%r.length],1<a&&(l.midAngle>Math.PI/2-u&&l.midAngle<Math.PI/2+u)&&(g<=a/2&&!p?(l.hemisphere=\"right\",g++):(l.hemisphere=\"left\",p=!0));p=!1;for(f=0;f<r.length;f++)l=d[(e+f)%r.length],1<b&&(l.midAngle>3*Math.PI/2-u&&l.midAngle<3*Math.PI/2+u)&&(h<=b/2&&!p?(l.hemisphere=\"left\",h++):(l.hemisphere=\"right\",p=!0))}}function b(a){var b=t.plotArea.ctx;b.clearRect(n.x1,n.y1,n.width,n.height);b.fillStyle=\nt.backgroundColor;b.fillRect(n.x1,n.y1,n.width,n.height);for(b=0;b<r.length;b++){var c=d[b].startAngle,e=d[b].endAngle;if(e>c){var f=0.07*A*Math.cos(d[b].midAngle),g=0.07*A*Math.sin(d[b].midAngle),h=!1;if(r[b].exploded){if(1E-9<Math.abs(d[b].center.x-(x.x+f))||1E-9<Math.abs(d[b].center.y-(x.y+g)))d[b].center.x=x.x+f*a,d[b].center.y=x.y+g*a,h=!0}else if(0<Math.abs(d[b].center.x-x.x)||0<Math.abs(d[b].center.y-x.y))d[b].center.x=x.x+f*(1-a),d[b].center.y=x.y+g*(1-a),h=!0;h&&(f={},f.dataSeries=k,f.dataPoint=\nk.dataPoints[b],f.index=b,t.toolTip.highlightObjects([f]));pa(t.plotArea.ctx,d[b].center,d[b].radius,r[b].color?r[b].color:k._colorSet[b%k._colorSet.length],k.type,c,e,k.fillOpacity,d[b].percentInnerRadius)}}a=t.plotArea.ctx;a.save();a.fillStyle=\"black\";a.strokeStyle=\"grey\";a.textBaseline=\"middle\";a.lineJoin=\"round\";for(b=b=0;b<r.length;b++)c=d[b],c.indexLabelText&&(c.indexLabelTextBlock.y-=c.indexLabelTextBlock.height/2,e=0,e=\"left\"===c.hemisphere?\"inside\"!==k.indexLabelPlacement?-(c.indexLabelTextBlock.width+\np):-c.indexLabelTextBlock.width/2:\"inside\"!==k.indexLabelPlacement?p:-c.indexLabelTextBlock.width/2,c.indexLabelTextBlock.x+=e,c.indexLabelTextBlock.render(!0),c.indexLabelTextBlock.x-=e,c.indexLabelTextBlock.y+=c.indexLabelTextBlock.height/2,\"inside\"!==c.indexLabelPlacement&&0<c.indexLabelLineThickness&&(e=c.center.x+A*Math.cos(c.midAngle),f=c.center.y+A*Math.sin(c.midAngle),a.strokeStyle=c.indexLabelLineColor,a.lineWidth=c.indexLabelLineThickness,a.setLineDash&&a.setLineDash(F(c.indexLabelLineDashType,\nc.indexLabelLineThickness)),a.beginPath(),a.moveTo(e,f),a.lineTo(c.indexLabelTextBlock.x,c.indexLabelTextBlock.y),a.lineTo(c.indexLabelTextBlock.x+(\"left\"===c.hemisphere?-p:p),c.indexLabelTextBlock.y),a.stroke()),a.lineJoin=\"miter\");a.save()}function c(a,b){var c=0,c=a.indexLabelTextBlock.y-a.indexLabelTextBlock.height/2,d=a.indexLabelTextBlock.y+a.indexLabelTextBlock.height/2,e=b.indexLabelTextBlock.y-b.indexLabelTextBlock.height/2,f=b.indexLabelTextBlock.y+b.indexLabelTextBlock.height/2;return c=\nb.indexLabelTextBlock.y>a.indexLabelTextBlock.y?e-d:c-f}function e(a){for(var b=null,e=1;e<r.length;e++)if(b=(a+e+d.length)%d.length,d[b].hemisphere!==d[a].hemisphere){b=null;break}else if(d[b].indexLabelText&&b!==a&&(0>c(d[b],d[a])||(\"right\"===d[a].hemisphere?d[b].indexLabelTextBlock.y>=d[a].indexLabelTextBlock.y:d[b].indexLabelTextBlock.y<=d[a].indexLabelTextBlock.y)))break;else b=null;return b}function g(a,b,f){f=(f||0)+1;if(1E3<f)return 0;b=b||0;var k=0,h=x.y-1*q,n=x.y+1*q;if(0<=a&&a<r.length){var l=\nd[a];if(0>b&&l.indexLabelTextBlock.y<h||0<b&&l.indexLabelTextBlock.y>n)return 0;var t=0,p=0,p=t=t=0;0>b?l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2>h&&l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2+b<h&&(b=-(h-(l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2+b))):l.indexLabelTextBlock.y+l.indexLabelTextBlock.height/2<h&&l.indexLabelTextBlock.y+l.indexLabelTextBlock.height/2+b>n&&(b=l.indexLabelTextBlock.y+l.indexLabelTextBlock.height/2+b-n);b=l.indexLabelTextBlock.y+b;h=\n0;h=\"right\"===l.hemisphere?x.x+Math.sqrt(Math.pow(q,2)-Math.pow(b-x.y,2)):x.x-Math.sqrt(Math.pow(q,2)-Math.pow(b-x.y,2));p=x.x+A*Math.cos(l.midAngle);t=x.y+A*Math.sin(l.midAngle);t=Math.sqrt(Math.pow(h-p,2)+Math.pow(b-t,2));p=Math.acos(A/q);t=Math.acos((q*q+A*A-t*t)/(2*A*q));b=t<p?b-l.indexLabelTextBlock.y:0;h=null;for(n=1;n<r.length;n++)if(h=(a-n+d.length)%d.length,d[h].hemisphere!==d[a].hemisphere){h=null;break}else if(d[h].indexLabelText&&d[h].hemisphere===d[a].hemisphere&&h!==a&&(0>c(d[h],d[a])||\n(\"right\"===d[a].hemisphere?d[h].indexLabelTextBlock.y<=d[a].indexLabelTextBlock.y:d[h].indexLabelTextBlock.y>=d[a].indexLabelTextBlock.y)))break;else h=null;p=h;t=e(a);n=h=0;0>b?(n=\"right\"===l.hemisphere?p:t,k=b,null!==n&&(p=-b,b=l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2-(d[n].indexLabelTextBlock.y+d[n].indexLabelTextBlock.height/2),b-p<m&&(h=-p,n=g(n,h,f+1),+n.toFixed(v)>+h.toFixed(v)&&(k=b>m?-(b-m):-(p-(n-h)))))):0<b&&(n=\"right\"===l.hemisphere?t:p,k=b,null!==n&&(p=b,b=d[n].indexLabelTextBlock.y-\nd[n].indexLabelTextBlock.height/2-(l.indexLabelTextBlock.y+l.indexLabelTextBlock.height/2),b-p<m&&(h=p,n=g(n,h,f+1),+n.toFixed(v)<+h.toFixed(v)&&(k=b>m?b-m:p-(h-n)))));k&&(f=l.indexLabelTextBlock.y+k,b=0,b=\"right\"===l.hemisphere?x.x+Math.sqrt(Math.pow(q,2)-Math.pow(f-x.y,2)):x.x-Math.sqrt(Math.pow(q,2)-Math.pow(f-x.y,2)),l.midAngle>Math.PI/2-u&&l.midAngle<Math.PI/2+u?(h=(a-1+d.length)%d.length,h=d[h],a=d[(a+1+d.length)%d.length],\"left\"===l.hemisphere&&\"right\"===h.hemisphere&&b>h.indexLabelTextBlock.x?\nb=h.indexLabelTextBlock.x-15:\"right\"===l.hemisphere&&(\"left\"===a.hemisphere&&b<a.indexLabelTextBlock.x)&&(b=a.indexLabelTextBlock.x+15)):l.midAngle>3*Math.PI/2-u&&l.midAngle<3*Math.PI/2+u&&(h=(a-1+d.length)%d.length,h=d[h],a=d[(a+1+d.length)%d.length],\"right\"===l.hemisphere&&\"left\"===h.hemisphere&&b<h.indexLabelTextBlock.x?b=h.indexLabelTextBlock.x+15:\"left\"===l.hemisphere&&(\"right\"===a.hemisphere&&b>a.indexLabelTextBlock.x)&&(b=a.indexLabelTextBlock.x-15)),l.indexLabelTextBlock.y=f,l.indexLabelTextBlock.x=\nb,l.indexLabelAngle=Math.atan2(l.indexLabelTextBlock.y-x.y,l.indexLabelTextBlock.x-x.x))}return k}function h(){var a=t.plotArea.ctx;a.fillStyle=\"grey\";a.strokeStyle=\"grey\";a.font=\"16px Arial\";a.textBaseline=\"middle\";for(var b=a=0,f=0,h=!0,b=0;10>b&&(1>b||0<f);b++){if(k.radius||!k.radius&&\"undefined\"!==typeof k.innerRadius&&null!==k.innerRadius&&A-f<=C)h=!1;h&&(A-=f);f=0;if(\"inside\"!==k.indexLabelPlacement){q=A*s;for(a=0;a<r.length;a++){var l=d[a];l.indexLabelTextBlock.x=x.x+q*Math.cos(l.midAngle);\nl.indexLabelTextBlock.y=x.y+q*Math.sin(l.midAngle);l.indexLabelAngle=l.midAngle;l.radius=A;l.percentInnerRadius=O}for(var u,y,a=0;a<r.length;a++){var l=d[a],z=e(a);if(null!==z){u=d[a];y=d[z];var B=0,B=c(u,y)-m;if(0>B){for(var F=y=0,sa=0;sa<r.length;sa++)sa!==a&&d[sa].hemisphere===l.hemisphere&&(d[sa].indexLabelTextBlock.y<l.indexLabelTextBlock.y?y++:F++);y=B/(y+F||1)*F;var F=-1*(B-y),J=sa=0;\"right\"===l.hemisphere?(sa=g(a,y),F=-1*(B-sa),J=g(z,F),+J.toFixed(v)<+F.toFixed(v)&&+sa.toFixed(v)<=+y.toFixed(v)&&\ng(a,-(F-J))):(sa=g(z,y),F=-1*(B-sa),J=g(a,F),+J.toFixed(v)<+F.toFixed(v)&&+sa.toFixed(v)<=+y.toFixed(v)&&g(z,-(F-J)))}}}}else for(a=0;a<r.length;a++)l=d[a],q=\"pie\"===k.type?0.7*A:0.8*A,z=x.x+q*Math.cos(l.midAngle),y=x.y+q*Math.sin(l.midAngle),l.indexLabelTextBlock.x=z,l.indexLabelTextBlock.y=y;for(a=0;a<r.length;a++)if(l=d[a],z=l.indexLabelTextBlock.measureText(),0!==z.height&&0!==z.width)z=z=0,\"right\"===l.hemisphere?(z=n.x2-(l.indexLabelTextBlock.x+l.indexLabelTextBlock.width+p),z*=-1):z=n.x1-(l.indexLabelTextBlock.x-\nl.indexLabelTextBlock.width-p),0<z&&(!h&&l.indexLabelText&&(y=\"right\"===l.hemisphere?n.x2-l.indexLabelTextBlock.x:l.indexLabelTextBlock.x-n.x1,0.3*l.indexLabelTextBlock.maxWidth>y?l.indexLabelText=\"\":l.indexLabelTextBlock.maxWidth=0.85*y,0.3*l.indexLabelTextBlock.maxWidth<y&&(l.indexLabelTextBlock.x-=\"right\"===l.hemisphere?2:-2)),Math.abs(l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2-x.y)<A||Math.abs(l.indexLabelTextBlock.y+l.indexLabelTextBlock.height/2-x.y)<A)&&(z/=Math.abs(Math.cos(l.indexLabelAngle)),\n9<z&&(z*=0.3),z>f&&(f=z)),z=z=0,0<l.indexLabelAngle&&l.indexLabelAngle<Math.PI?(z=n.y2-(l.indexLabelTextBlock.y+l.indexLabelTextBlock.height/2+5),z*=-1):z=n.y1-(l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2-5),0<z&&(!h&&l.indexLabelText&&(y=0<l.indexLabelAngle&&l.indexLabelAngle<Math.PI?-1:1,0===g(a,z*y)&&g(a,2*y)),Math.abs(l.indexLabelTextBlock.x-x.x)<A&&(z/=Math.abs(Math.sin(l.indexLabelAngle)),9<z&&(z*=0.3),z>f&&(f=z)));var M=function(a,b,c){for(var e=[],f=0;e.push(d[b]),b!==c;b=(b+1+\nr.length)%r.length);e.sort(function(a,b){return a.y-b.y});for(b=0;b<e.length;b++)if(c=e[b],f<0.7*a)f+=c.indexLabelTextBlock.height,c.indexLabelTextBlock.text=\"\",c.indexLabelText=\"\",c.indexLabelTextBlock.measureText();else break};(function(){for(var a=-1,b=-1,f=0,g=!1,h=0;h<r.length;h++)if(g=!1,u=d[h],u.indexLabelText){var k=e(h);if(null!==k){var l=d[k];B=0;B=c(u,l);var n;if(n=0>B){n=u.indexLabelTextBlock.x;var t=u.indexLabelTextBlock.y-u.indexLabelTextBlock.height/2,m=u.indexLabelTextBlock.y+u.indexLabelTextBlock.height/\n2,w=l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2,q=l.indexLabelTextBlock.x+l.indexLabelTextBlock.width,s=l.indexLabelTextBlock.y+l.indexLabelTextBlock.height/2;n=u.indexLabelTextBlock.x+u.indexLabelTextBlock.width<l.indexLabelTextBlock.x-p||n>q+p||t>s+p||m<w-p?!1:!0}n?(0>a&&(a=h),k!==a&&(b=k,f+=-B),0===h%Math.max(r.length/10,3)&&(g=!0)):g=!0;g&&(0<f&&0<=a&&0<=b)&&(M(f,a,b),b=a=-1,f=0)}}0<f&&M(f,a,b)})()}}function l(){t.plotArea.layoutManager.reset();t.title&&(t.title.dockInsidePlotArea||\n\"center\"===t.title.horizontalAlign&&\"center\"===t.title.verticalAlign)&&t.title.render();if(t.subtitles)for(var a=0;a<t.subtitles.length;a++){var b=t.subtitles[a];(b.dockInsidePlotArea||\"center\"===b.horizontalAlign&&\"center\"===b.verticalAlign)&&b.render()}t.legend&&(t.legend.dockInsidePlotArea||\"center\"===t.legend.horizontalAlign&&\"center\"===t.legend.verticalAlign)&&t.legend.render()}var t=this;if(!(0>=a.dataSeriesIndexes.length)){var k=this.data[a.dataSeriesIndexes[0]],r=k.dataPoints,p=10,n=this.plotArea,\nd=k.dataPointEOs,m=2,q,s=1.3,u=20/180*Math.PI,v=6,x={x:(n.x2+n.x1)/2,y:(n.y2+n.y1)/2},z=0;a=!1;for(var B=0;B<r.length;B++)z+=Math.abs(r[B].y),!a&&(\"undefined\"!==typeof r[B].indexLabel&&null!==r[B].indexLabel&&0<r[B].indexLabel.toString().length)&&(a=!0),!a&&(\"undefined\"!==typeof r[B].label&&null!==r[B].label&&0<r[B].label.toString().length)&&(a=!0);if(0!==z){a=a||\"undefined\"!==typeof k.indexLabel&&null!==k.indexLabel&&0<k.indexLabel.toString().length;var A=\"inside\"!==k.indexLabelPlacement&&a?0.75*\nMath.min(n.width,n.height)/2:0.92*Math.min(n.width,n.height)/2;k.radius&&(A=J(k.radius,A));var C=\"undefined\"!==typeof k.innerRadius&&null!==k.innerRadius?J(k.innerRadius,A):0.7*A;k.radius=A;\"doughnut\"===k.type&&(k.innerRadius=C);var O=Math.min(C/A,(A-1)/A);this.pieDoughnutClickHandler=function(a){t.isAnimating||!y(a.dataSeries.explodeOnClick)&&!a.dataSeries.explodeOnClick||(a=a.dataPoint,a.exploded=a.exploded?!1:!0,1<this.dataPoints.length&&t._animator.animate(0,500,function(a){b(a);l()}))};f();h();\nh();h();h();this.disableToolTip=!0;this._animator.animate(0,this.animatedRender?this.animationDuration:0,function(a){var b=t.plotArea.ctx;b.clearRect(n.x1,n.y1,n.width,n.height);b.fillStyle=t.backgroundColor;b.fillRect(n.x1,n.y1,n.width,n.height);a=d[0].startAngle+2*Math.PI*a;for(b=0;b<r.length;b++){var c=0===b?d[b].startAngle:e,e=c+(d[b].endAngle-d[b].startAngle),f=!1;e>a&&(e=a,f=!0);var g=r[b].color?r[b].color:k._colorSet[b%k._colorSet.length];e>c&&pa(t.plotArea.ctx,d[b].center,d[b].radius,g,k.type,\nc,e,k.fillOpacity,d[b].percentInnerRadius);if(f)break}l()},function(){t.disableToolTip=!1;t._animator.animate(0,t.animatedRender?500:0,function(a){b(a);l()})})}}};var qa=function(a,f,b,c){\"undefined\"===typeof b&&(b=1);0>=Math.round(f.y4-f.y1)||(a.save(),a.globalAlpha=b,a.beginPath(),a.moveTo(Math.round(f.x1),Math.round(f.y1)),a.lineTo(Math.round(f.x2),Math.round(f.y2)),a.lineTo(Math.round(f.x3),Math.round(f.y3)),a.lineTo(Math.round(f.x4),Math.round(f.y4)),\"undefined\"!==f.x5&&(a.lineTo(Math.round(f.x5),\nMath.round(f.y5)),a.lineTo(Math.round(f.x6),Math.round(f.y6))),a.closePath(),a.fillStyle=c?c:f.color,a.fill(),a.globalAplha=1,a.restore())};q.prototype.renderFunnel=function(a){function f(){for(var a=0,b=[],c=0;c<x.length;c++){if(\"undefined\"===typeof x[c].y)return-1;x[c].y=\"number\"===typeof x[c].y?x[c].y:0;a+=Math.abs(x[c].y)}if(0===a)return-1;for(c=b[0]=0;c<x.length;c++)b.push(Math.abs(x[c].y)*J/a);return b}function b(){var a=Y,b=X,c=M,d=Z,e,f;e=ca;f=aa-P;headArea=(f-e)*(b-a+(d-c))/2;headArea=Math.abs(headArea);\nc=Z-M;e=f-e;f=c*(f-aa);f=Math.abs(f);f=headArea+f;for(var d=[],g=0,h=0;h<x.length;h++){if(\"undefined\"===typeof x[h].y)return-1;x[h].y=\"number\"===typeof x[h].y?x[h].y:0;g+=Math.abs(x[h].y)}if(0===g)return-1;for(var k=d[0]=0,l=0,n,b=b-a,t=!1,h=0;h<x.length;h++)a=Math.abs(x[h].y)*f/g,t?k=0==Number(c.toFixed(3))?0:a/c:(sqrt=ea*ea*b*b-4*Math.abs(ea)*a,0>sqrt?(n=c,k=(b+n)*(e-l)/2,a-=k,k=e-l,l+=e-l,k+=0==n?0:a/n,l+=a/n,t=!0):(k=(Math.abs(ea)*b-Math.sqrt(sqrt))/2,n=b-2*k/Math.abs(ea),l+=k,l>e&&(l-=k,n=c,\nk=(b+n)*(e-l)/2,a-=k,k=e-l,l+=e-l,k+=a/n,l+=a/n,t=!0),b=n)),d.push(k);return d}function c(){if(u&&x){for(var a,b,c,e,f,g,h,k,l,n,t,p,r,m,w=[],q=[],z={percent:null,total:null},A=null,B=0;B<x.length;B++)m=N[B],m=\"undefined\"!==typeof m.x5?(m.y2+m.y4)/2:(m.y2+m.y3)/2,m=d(m).x2+1,w[B]=S-m-U;m=0.5*U;for(var B=0,ya=x.length-1;B<x.length||0<=ya;B++,ya--){b=u.reversed?x[ya]:x[B];a=b.color?b.color:u.reversed?u._colorSet[(x.length-1-B)%u._colorSet.length]:u._colorSet[B%u._colorSet.length];c=b.indexLabelPlacement||\nu.indexLabelPlacement||\"outside\";e=b.indexLabelBackgroundColor||u.indexLabelBackgroundColor||(v?\"transparent\":null);f=b.indexLabelFontColor||u.indexLabelFontColor||\"#979797\";g=y(b.indexLabelFontSize)?u.indexLabelFontSize:b.indexLabelFontSize;h=b.indexLabelFontStyle||u.indexLabelFontStyle||\"normal\";k=b.indexLabelFontFamily||u.indexLabelFontFamily||\"arial\";l=b.indexLabelFontWeight||u.indexLabelFontWeight||\"normal\";a=b.indexLabelLineColor||u.options.indexLabelLineColor||a;n=\"number\"===typeof b.indexLabelLineThickness?\nb.indexLabelLineThickness:\"number\"===typeof u.indexLabelLineThickness?u.indexLabelLineThickness:2;t=b.indexLabelLineDashType||u.indexLabelLineDashType||\"solid\";p=\"undefined\"!==typeof b.indexLabelWrap?b.indexLabelWrap:\"undefined\"!==typeof u.indexLabelWrap?u.indexLabelWrap:!0;r=u.dataPointIds[B];s._eventManager.objectMap[r]={id:r,objectType:\"dataPoint\",dataPointIndex:B,dataSeriesIndex:0,funnelSection:N[u.reversed?x.length-1-B:B]};\"inside\"===u.indexLabelPlacement&&(w[B]=B!==fa?u.reversed?N[B].x2-N[B].x1:\nN[B].x3-N[B].x4:N[B].x3-N[B].x6,20>w[B]&&(w[B]=B!==fa?u.reversed?N[B].x3-N[B].x4:N[B].x2-N[B].x1:N[B].x2-N[B].x1,w[B]/=2));r=b.indexLabelMaxWidth?b.indexLabelMaxWidth:u.options.indexLabelMaxWidth?u.indexLabelMaxWidth:w[B];if(r>w[B]||0>r)r=w[B];q[B]=\"inside\"===u.indexLabelPlacement?N[B].height:!1;z=s.getPercentAndTotal(u,b);if(u.indexLabelFormatter||b.indexLabelFormatter)A={chart:s.options,dataSeries:u,dataPoint:b,total:z.total,percent:z.percent};b=b.indexLabelFormatter?b.indexLabelFormatter(A):b.indexLabel?\ns.replaceKeywordsWithValue(b.indexLabel,b,u,B):u.indexLabelFormatter?u.indexLabelFormatter(A):u.indexLabel?s.replaceKeywordsWithValue(u.indexLabel,b,u,B):b.label?b.label:\"\";0>=n&&(n=0);1E3>r&&1E3-r<m&&(r+=1E3-r);R.roundRect||Ba(R);c=new ka(R,{fontSize:g,fontFamily:k,fontColor:f,fontStyle:h,fontWeight:l,horizontalAlign:c,backgroundColor:e,maxWidth:r,maxHeight:!1===q[B]?p?4.28571429*g:1.5*g:q[B],text:b,padding:ga});c.measureText();G.push({textBlock:c,id:u.reversed?ya:B,isDirty:!1,lineColor:a,lineThickness:n,\nlineDashType:t,height:c.height<c.maxHeight?c.height:c.maxHeight,width:c.width<c.maxWidth?c.width:c.maxWidth})}}}function e(){var a,b,c,d,e,f=[];e=!1;c=0;for(var g=S-X-U/2,g=u.options.indexLabelMaxWidth?u.indexLabelMaxWidth>g?g:u.indexLabelMaxWidth:g,h=G.length-1;0<=h;h--){dataPoint=x[G[h].id];c=G[h];d=c.textBlock;b=(a=n(h)<N.length?G[n(h)]:null)?a.textBlock:null;c=c.height;a&&d.y+c+ga>b.y&&(e=!0);c=dataPoint.indexLabelMaxWidth||g;if(c>g||0>c)c=g;f.push(c)}if(e)for(h=G.length-1;0<=h;h--)a=N[h],G[h].textBlock.maxWidth=\nf[f.length-(h+1)],G[h].textBlock.measureText(),G[h].textBlock.x=S-g,c=G[h].textBlock.height<G[h].textBlock.maxHeight?G[h].textBlock.height:G[h].textBlock.maxHeight,e=G[h].textBlock.width<G[h].textBlock.maxWidth?G[h].textBlock.width:G[h].textBlock.maxWidth,G[h].height=c,G[h].width=e,c=\"undefined\"!==typeof a.x5?(a.y2+a.y4)/2:(a.y2+a.y3)/2,G[h].textBlock.y=c-G[h].height/2,u.reversed?(G[h].textBlock.y+G[h].height>T+C&&(G[h].textBlock.y=T+C-G[h].height),G[h].textBlock.y<ra-C&&(G[h].textBlock.y=ra-C)):\n(G[h].textBlock.y<T-C&&(G[h].textBlock.y=T-C),G[h].textBlock.y+G[h].height>ra+C&&(G[h].textBlock.y=ra+C-G[h].height))}function g(){var a,b,c,e;if(\"inside\"!==u.indexLabelPlacement)for(var f=0;f<N.length;f++)0==G[f].textBlock.text.length?G[f].isDirty=!0:(a=N[f],c=\"undefined\"!==typeof a.x5?(a.y2+a.y4)/2:(a.y2+a.y3)/2,b=u.reversed?\"undefined\"!==typeof a.x5?c>ba?d(c).x2+1:(a.x2+a.x3)/2+1:(a.x2+a.x3)/2+1:\"undefined\"!==typeof a.x5?c<ba?d(c).x2+1:(a.x4+a.x3)/2+1:(a.x2+a.x3)/2+1,G[f].textBlock.x=b+U,G[f].textBlock.y=\nc-G[f].height/2,u.reversed?(G[f].textBlock.y+G[f].height>T+C&&(G[f].textBlock.y=T+C-G[f].height),G[f].textBlock.y<ra-C&&(G[f].textBlock.y=ra-C)):(G[f].textBlock.y<T-C&&(G[f].textBlock.y=T-C),G[f].textBlock.y+G[f].height>ra+C&&(G[f].textBlock.y=ra+C-G[f].height)));else for(f=0;f<N.length;f++)0==G[f].textBlock.text.length?G[f].isDirty=!0:(a=N[f],b=a.height,c=G[f].height,e=G[f].width,b>=c?(b=f!=fa?(a.x4+a.x3)/2-e/2:(a.x5+a.x4)/2-e/2,c=f!=fa?(a.y1+a.y3)/2-c/2:(a.y1+a.y4)/2-c/2,G[f].textBlock.x=b,G[f].textBlock.y=\nc):G[f].isDirty=!0)}function h(){function a(b,c){var d;if(0>b||b>=G.length)return 0;var e,f=G[b].textBlock;if(0>c){c*=-1;e=p(b);d=l(e,b);if(d>=c)return f.y-=c,c;if(0==b)return 0<d&&(f.y-=d),d;d+=a(e,-(c-d));0<d&&(f.y-=d);return d}e=n(b);d=l(b,e);if(d>=c)return f.y+=c,c;if(b==N.length-1)return 0<d&&(f.y+=d),d;d+=a(e,c-d);0<d&&(f.y+=d);return d}function b(){var a,d,e,f,g=0,h;f=(aa-ca+2*C)/t;h=t;for(var k,l=1;l<h;l++){e=l*f;for(var r=G.length-1;0<=r;r--)!G[r].isDirty&&(G[r].textBlock.y<e&&G[r].textBlock.y+\nG[r].height>e)&&(k=n(r),!(k>=G.length-1)&&G[r].textBlock.y+G[r].height+ga>G[k].textBlock.y&&(G[r].textBlock.y=G[r].textBlock.y+G[r].height-e>e-G[r].textBlock.y?e+1:e-G[r].height-1))}for(k=N.length-1;0<k;k--)if(!G[k].isDirty){e=p(k);if(0>e&&(e=0,G[e].isDirty))break;if(G[k].textBlock.y<G[e].textBlock.y+G[e].height){d=d||k;f=k;for(h=0;G[f].textBlock.y<G[e].textBlock.y+G[e].height+ga;){a=a||G[f].textBlock.y+G[f].height;h+=G[f].height;h+=ga;f=e;if(0>=f){f=0;h+=G[f].height;break}e=p(f);if(0>e){f=0;h+=G[f].height;\nbreak}}if(f!=k){g=G[f].textBlock.y;a-=g;a=h-a;g=c(a,d,f);break}}}return g}function c(a,b,d){var e=[],f=0,g=0;for(a=Math.abs(a);d<=b;d++)e.push(N[d]);e.sort(function(a,b){return a.height-b.height});for(d=0;d<e.length;d++)if(b=e[d],f<a)g++,f+=G[b.id].height+ga,G[b.id].textBlock.text=\"\",G[b.id].indexLabelText=\"\",G[b.id].isDirty=!0,G[b.id].textBlock.measureText();else break;return g}for(var d,e,f,g,h,k,t=1,r=0;r<2*t;r++){for(var m=G.length-1;0<=m&&!(previousTextBlock=(previousLabel=0<=p(m)?G[p(m)]:null)?\npreviousLabel.textBlock:null,f=G[m],g=f.textBlock,k=(h=n(m)<N.length?G[n(m)]:null)?h.textBlock:null,d=+f.height.toFixed(6),e=+g.y.toFixed(6),!f.isDirty&&(h&&e+d+ga>+k.y.toFixed(6))&&(d=g.y+d+ga-k.y,e=a(m,-d),e<d&&(0<e&&(d-=e),e=a(n(m),d),e!=d)));m--);b()}}function l(a,b){return(b<N.length?G[b].textBlock.y:u.reversed?T+C:ra+C)-(0>a?u.reversed?ra-C:T-C:G[a].textBlock.y+G[a].height+ga)}function t(a,b,c){var d,e,f,h=[],l=C,n=[];-1!==b&&(0<=$.indexOf(b)?(e=$.indexOf(b),$.splice(e,1)):($.push(b),$=$.sort(function(a,\nb){return a-b})));if(0===$.length)h=ja;else{e=C*(1!=$.length||0!=$[0]&&$[0]!=N.length-1?2:1)/k();for(var t=0;t<N.length;t++){if(1==$.length&&0==$[0]){if(0===t){h.push(ja[t]);d=l;continue}}else 0===t&&(d=-1*l);h.push(ja[t]+d);if(0<=$.indexOf(t)||t<N.length&&0<=$.indexOf(t+1))d+=e}}f=function(){for(var a=[],b=0;b<N.length;b++)a.push(h[b]-N[b].y1);return a}();var p={startTime:(new Date).getTime(),duration:c||500,easingFunction:function(a,b,c,d){return O.easing.easeOutQuart(a,b,c,d)},changeSection:function(a){for(var b,\nc,d=0;d<N.length;d++)b=f[d],c=N[d],newY=b*a,\"undefined\"===typeof n[d]&&(n[d]=0),0>n&&(n*=-1),c.y1+=newY-n[d],c.y2+=newY-n[d],c.y3+=newY-n[d],c.y4+=newY-n[d],c.y5&&(c.y5+=newY-n[d],c.y6+=newY-n[d]),n[d]=newY}};a._animator.animate(0,c,function(c){var d=a.plotArea.ctx||a.ctx;ia=!0;d.clearRect(z.x1,z.y1,z.x2-z.x1,z.y2-z.y1);d.fillStyle=a.backgroundColor;d.fillRect(z.x1,z.y1,z.width,z.height);p.changeSection(c,b);var e={};e.dataSeries=u;e.dataPoint=u.reversed?u.dataPoints[x.length-1-b]:u.dataPoints[b];\ne.index=u.reversed?x.length-1-b:b;a.toolTip.highlightObjects([e]);for(e=0;e<N.length;e++)qa(d,N[e],u.fillOpacity);q(d);L&&(\"inside\"!==u.indexLabelPlacement?r(d):g(),m(d));1<=c&&(ia=!1)},null,O.easing.easeOutQuart)}function k(){for(var a=0,b=0;b<N.length-1;b++)(0<=$.indexOf(b)||0<=$.indexOf(b+1))&&a++;return a}function r(a){for(var b,c,e,f,g=0;g<N.length;g++)f=1===G[g].lineThickness%2?0.5:0,c=((N[g].y2+N[g].y4)/2<<0)+f,b=d(c).x2-1,e=G[g].textBlock.x,f=(G[g].textBlock.y+G[g].height/2<<0)+f,G[g].isDirty||\n0==G[g].lineThickness||(a.strokeStyle=G[g].lineColor,a.lineWidth=G[g].lineThickness,a.setLineDash&&a.setLineDash(F(G[g].lineDashType,G[g].lineThickness)),a.beginPath(),a.moveTo(b,c),a.lineTo(e,f),a.stroke())}function p(a){for(a-=1;-1<=a&&-1!=a&&G[a].isDirty;a--);return a}function n(a){for(a+=1;a<=N.length&&a!=N.length&&G[a].isDirty;a++);return a}function d(a){for(var b,c=0;c<x.length;c++)if(N[c].y1<a&&N[c].y4>a){b=N[c];break}return b?(a=b.y6?a>b.y6?b.x3+(b.x4-b.x3)/(b.y4-b.y3)*(a-b.y3):b.x2+(b.x3-\nb.x2)/(b.y3-b.y2)*(a-b.y2):b.x2+(b.x3-b.x2)/(b.y3-b.y2)*(a-b.y2),{x1:a,x2:a}):-1}function m(a){for(var b=0;b<N.length;b++)G[b].isDirty||(a&&(G[b].textBlock.ctx=a),G[b].textBlock.render(!0))}function q(a){s.plotArea.layoutManager.reset();a.roundRect||Ba(a);s.title&&(s.title.dockInsidePlotArea||\"center\"===s.title.horizontalAlign&&\"center\"===s.title.verticalAlign)&&(s.title.ctx=a,s.title.render());if(s.subtitles)for(var b=0;b<s.subtitles.length;b++){var c=s.subtitles[b];if(c.dockInsidePlotArea||\"center\"===\nc.horizontalAlign&&\"center\"===c.verticalAlign)s.subtitles.ctx=a,c.render()}s.legend&&(s.legend.dockInsidePlotArea||\"center\"===s.legend.horizontalAlign&&\"center\"===s.legend.verticalAlign)&&(s.legend.ctx=a,s.legend.render());W.fNg&&W.fNg(s)}var s=this;if(!(0>=a.dataSeriesIndexes.length)){for(var u=this.data[a.dataSeriesIndexes[0]],x=u.dataPoints,z=this.plotArea,C=0.025*z.width,B=0.01*z.width,A=0,J=z.height-2*C,I=Math.min(z.width-2*B,2.8*z.height),L=!1,K=0;K<x.length;K++)if(!L&&(\"undefined\"!==typeof x[K].indexLabel&&\nnull!==x[K].indexLabel&&0<x[K].indexLabel.toString().length)&&(L=!0),!L&&(\"undefined\"!==typeof x[K].label&&null!==x[K].label&&0<x[K].label.toString().length)&&(L=!0),!L&&\"function\"===typeof u.indexLabelFormatter||\"function\"===typeof x[K].indexLabelFormatter)L=!0;L=L||\"undefined\"!==typeof u.indexLabel&&null!==u.indexLabel&&0<u.indexLabel.toString().length;\"inside\"!==u.indexLabelPlacement&&L||(B=(z.width-0.75*I)/2);var K=z.x1+B,S=z.x2-B,ca=z.y1+C,aa=z.y2-C,R=a.targetCanvasCtx||this.plotArea.ctx||this.ctx;\nif(0!=u.length&&(u.dataPoints&&u.visible)&&0!==x.length){var P,E;a=75*I/100;var U=30*(S-a)/100;\"funnel\"===u.type?(P=y(u.options.neckHeight)?0.35*J:u.neckHeight,E=y(u.options.neckWidth)?0.25*a:u.neckWidth,\"string\"===typeof P&&P.match(/%$/)?(P=parseInt(P),P=P*J/100):P=parseInt(P),\"string\"===typeof E&&E.match(/%$/)?(E=parseInt(E),E=E*a/100):E=parseInt(E),P>J?P=J:0>=P&&(P=0),E>a?E=a-0.5:0>=E&&(E=0)):\"pyramid\"===u.type&&(E=P=0,u.reversed=u.reversed?!1:!0);var B=K+a/2,Y=K,X=K+a,T=u.reversed?aa:ca,M=B-E/\n2,Z=B+E/2,ba=u.reversed?ca+P:aa-P,ra=u.reversed?ca:aa;a=[];var B=[],N=[],I=[],V=ca,fa,ea=(ba-T)/(M-Y),ha=-ea,K=\"area\"===(u.valueRepresents?u.valueRepresents:\"height\")?b():f();if(-1!==K){if(u.reversed)for(I.push(V),E=K.length-1;0<E;E--)V+=K[E],I.push(V);else for(E=0;E<K.length;E++)V+=K[E],I.push(V);if(u.reversed)for(E=0;E<K.length;E++)I[E]<ba?(a.push(M),B.push(Z),fa=E):(a.push((I[E]-T+ea*Y)/ea),B.push((I[E]-T+ha*X)/ha));else for(E=0;E<K.length;E++)I[E]<ba?(a.push((I[E]-T+ea*Y)/ea),B.push((I[E]-T+ha*\nX)/ha),fa=E):(a.push(M),B.push(Z));for(E=0;E<K.length-1;E++)V=u.reversed?x[x.length-1-E].color?x[x.length-1-E].color:u._colorSet[(x.length-1-E)%u._colorSet.length]:x[E].color?x[E].color:u._colorSet[E%u._colorSet.length],E===fa?N.push({x1:a[E],y1:I[E],x2:B[E],y2:I[E],x3:Z,y3:ba,x4:B[E+1],y4:I[E+1],x5:a[E+1],y5:I[E+1],x6:M,y6:ba,id:E,height:I[E+1]-I[E],color:V}):N.push({x1:a[E],y1:I[E],x2:B[E],y2:I[E],x3:B[E+1],y3:I[E+1],x4:a[E+1],y4:I[E+1],id:E,height:I[E+1]-I[E],color:V});var ga=2,G=[],ia=!1,$=[],\nja=[],K=!1;a=a=0;Ca($);for(E=0;E<x.length;E++)x[E].exploded&&(K=!0,u.reversed?$.push(x.length-1-E):$.push(E));R.clearRect(z.x1,z.y1,z.width,z.height);R.fillStyle=s.backgroundColor;R.fillRect(z.x1,z.y1,z.width,z.height);if(L&&u.visible&&(c(),g(),e(),\"inside\"!==u.indexLabelPlacement)){h();for(E=0;E<x.length;E++)G[E].isDirty||(a=G[E].textBlock.x+G[E].width,a=(S-a)/2,0==E&&(A=a),A>a&&(A=a));for(E=0;E<N.length;E++)N[E].x1+=A,N[E].x2+=A,N[E].x3+=A,N[E].x4+=A,N[E].x5&&(N[E].x5+=A,N[E].x6+=A),G[E].textBlock.x+=\nA}for(E=0;E<N.length;E++)A=N[E],qa(R,A,u.fillOpacity),ja.push(A.y1);q(R);L&&u.visible&&(\"inside\"===u.indexLabelPlacement||s.animationEnabled||r(R),s.animationEnabled||m());if(!L)for(E=0;E<x.length;E++)A=u.dataPointIds[E],a={id:A,objectType:\"dataPoint\",dataPointIndex:E,dataSeriesIndex:0,funnelSection:N[u.reversed?x.length-1-E:E]},s._eventManager.objectMap[A]=a;!s.animationEnabled&&K?t(s,-1,0):s.animationEnabled&&!s.animatedRender&&t(s,-1,0);this.funnelPyramidClickHandler=function(a){var b=-1;if(!ia&&\n!s.isAnimating&&(y(a.dataSeries.explodeOnClick)||a.dataSeries.explodeOnClick)&&(b=u.reversed?x.length-1-a.dataPointIndex:a.dataPointIndex,0<=b)){a=b;if(\"funnel\"===u.type||\"pyramid\"===u.type)u.reversed?x[x.length-1-a].exploded=x[x.length-1-a].exploded?!1:!0:x[a].exploded=x[a].exploded?!1:!0;t(s,b,500)}};return{source:R,dest:this.plotArea.ctx,animationCallback:function(a,b){O.fadeInAnimation(a,b);1<=a&&(t(s,-1,500),q(s.plotArea.ctx||s.ctx))},easingFunction:O.easing.easeInQuad,animationBase:0}}}}};q.prototype.requestAnimFrame=\nfunction(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1E3/60)}}();q.prototype.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout;q.prototype.set=function(a,f,b){b=\"undefined\"===\ntypeof b?!0:b;\"options\"===a?(this.options=f,b&&this.render()):q.base.set.call(this,a,f,b)};q.prototype.exportChart=function(a){a=\"undefined\"===typeof a?{}:a;var f=a.format?a.format:\"png\",b=a.fileName?a.fileName:this.exportFileName;if(a.toDataURL)return this.canvas.toDataURL(\"image/\"+f);s(this.canvas,f,b)};q.prototype.print=function(){var a=this.exportChart({toDataURL:!0}),f=document.createElement(\"iframe\");f.setAttribute(\"class\",\"canvasjs-chart-print-frame\");f.setAttribute(\"style\",\"position:absolute; width:100%; border: 0px; margin: 0px 0px 0px 0px; padding 0px 0px 0px 0px;\");\nf.style.height=this.height+\"px\";this._canvasJSContainer.appendChild(f);var b=this,c=f.contentWindow||f.contentDocument.document||f.contentDocument;c.document.open();c.document.write('<!DOCTYPE HTML>\\n<html><body style=\"margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;\"><img src=\"'+a+'\"/><body/></html>');c.document.close();setTimeout(function(){c.focus();c.print();setTimeout(function(){b._canvasJSContainer.removeChild(f)},1E3)},500)};q.prototype.getPercentAndTotal=function(a,f){var b=null,c=null,\ne=null;if(0<=a.type.indexOf(\"stacked\"))c=0,b=f.x.getTime?f.x.getTime():f.x,b in a.plotUnit.yTotals&&(c=a.plotUnit.yTotals[b],e=isNaN(f.y)?0:100*(f.y/c));else if(\"pie\"===a.type||\"doughnut\"===a.type||\"funnel\"===a.type||\"pyramid\"===a.type){for(i=c=0;i<a.dataPoints.length;i++)isNaN(a.dataPoints[i].y)||(c+=a.dataPoints[i].y);e=isNaN(f.y)?0:100*(f.y/c)}return{percent:e,total:c}};q.prototype.replaceKeywordsWithValue=function(a,f,b,c,e){var g=this;e=\"undefined\"===typeof e?0:e;if((0<=b.type.indexOf(\"stacked\")||\n\"pie\"===b.type||\"doughnut\"===b.type||\"funnel\"===b.type||\"pyramid\"===b.type)&&(0<=a.indexOf(\"#percent\")||0<=a.indexOf(\"#total\"))){var h=\"#percent\",l=\"#total\",t=this.getPercentAndTotal(b,f),l=isNaN(t.total)?l:t.total,h=isNaN(t.percent)?h:t.percent;do{t=\"\";if(b.percentFormatString)t=b.percentFormatString;else{var t=\"#,##0.\",k=Math.max(Math.ceil(Math.log(1/Math.abs(h))/Math.LN10),2);if(isNaN(k)||!isFinite(k))k=2;for(var r=0;r<k;r++)t+=\"#\";b.percentFormatString=t}a=a.replace(\"#percent\",V(h,t,g._cultureInfo));\na=a.replace(\"#total\",V(l,b.yValueFormatString?b.yValueFormatString:\"#,##0.########\",g._cultureInfo))}while(0<=a.indexOf(\"#percent\")||0<=a.indexOf(\"#total\"))}return a.replace(/\\{.*?\\}|\"[^\"]*\"|'[^']*'/g,function(a){if('\"'===a[0]&&'\"'===a[a.length-1]||\"'\"===a[0]&&\"'\"===a[a.length-1])return a.slice(1,a.length-1);a=Fa(a.slice(1,a.length-1));a=a.replace(\"#index\",e);var h=null;try{var d=a.match(/(.*?)\\s*\\[\\s*(.*?)\\s*\\]/);d&&0<d.length&&(h=Fa(d[2]),a=Fa(d[1]))}catch(k){}d=null;if(\"color\"===a)return\"waterfall\"===\nb.type?f.color?f.color:0<f.y?b.risingColor:b.fallingColor:\"error\"===b.type?b.color?b.color:b._colorSet[h%b._colorSet.length]:f.color?f.color:b.color?b.color:b._colorSet[c%b._colorSet.length];if(f.hasOwnProperty(a))d=f;else if(b.hasOwnProperty(a))d=b;else return\"\";d=d[a];null!==h&&(d=d[h]);if(\"x\"===a)if(\"dateTime\"===b.axisX.valueType||\"dateTime\"===b.xValueType||f.x&&f.x.getTime){if(g.plotInfo.plotTypes[0].plotUnits[0].axisX&&!g.plotInfo.plotTypes[0].plotUnits[0].axisX.logarithmic)return Aa(d,f.xValueFormatString?\nf.xValueFormatString:b.xValueFormatString?b.xValueFormatString:b.xValueFormatString=g.axisX&&g.axisX.autoValueFormatString?g.axisX.autoValueFormatString:\"DD MMM YY\",g._cultureInfo)}else return V(d,f.xValueFormatString?f.xValueFormatString:b.xValueFormatString?b.xValueFormatString:b.xValueFormatString=\"#,##0.########\",g._cultureInfo);else return\"y\"===a?V(d,f.yValueFormatString?f.yValueFormatString:b.yValueFormatString?b.yValueFormatString:b.yValueFormatString=\"#,##0.########\",g._cultureInfo):\"z\"===\na?V(d,f.zValueFormatString?f.zValueFormatString:b.zValueFormatString?b.zValueFormatString:b.zValueFormatString=\"#,##0.########\",g._cultureInfo):d})};na(T,Y);T.prototype.render=function(){var a=this.dockInsidePlotArea?this.chart.plotArea:this.chart,f=a.layoutManager.getFreeSpace(),b=null,c=0,e=0,g=0,h=0,l=this.markerMargin=this.chart.options.legend&&!y(this.chart.options.legend.markerMargin)?this.chart.options.legend.markerMargin:0.3*this.fontSize;this.height=0;var t=[],k=[];\"top\"===this.verticalAlign||\n\"bottom\"===this.verticalAlign?(this.orientation=\"horizontal\",b=this.verticalAlign,g=this.maxWidth=null!==this.maxWidth?this.maxWidth:f.width,h=this.maxHeight=null!==this.maxHeight?this.maxHeight:0.5*f.height):\"center\"===this.verticalAlign&&(this.orientation=\"vertical\",b=this.horizontalAlign,g=this.maxWidth=null!==this.maxWidth?this.maxWidth:0.5*f.width,h=this.maxHeight=null!==this.maxHeight?this.maxHeight:f.height);for(var r=[],p=0;p<this.dataSeries.length;p++){var n=this.dataSeries[p];if(n.dataPoints&&\nn.dataPoints.length)if(\"pie\"!==n.type&&\"doughnut\"!==n.type&&\"funnel\"!==n.type&&\"pyramid\"!==n.type){var d=n.legendMarkerType=n.legendMarkerType?n.legendMarkerType:\"line\"!==n.type&&\"stepLine\"!==n.type&&\"spline\"!==n.type&&\"scatter\"!==n.type&&\"bubble\"!==n.type||!n.markerType?\"error\"===n.type&&n._linkedSeries?n._linkedSeries.legendMarkerType?n._linkedSeries.legendMarkerType:S.getDefaultLegendMarker(n._linkedSeries.type):S.getDefaultLegendMarker(n.type):n.markerType,m=n.legendText?n.legendText:this.itemTextFormatter?\nthis.itemTextFormatter({chart:this.chart,legend:this.options,dataSeries:n,dataPoint:null}):n.name,q=n.legendMarkerColor=n.legendMarkerColor?n.legendMarkerColor:n.markerColor?n.markerColor:\"error\"===n.type?y(n.whiskerColor)?n._colorSet[0]:n.whiskerColor:n._colorSet[0],s=n.markerSize||\"line\"!==n.type&&\"stepLine\"!==n.type&&\"spline\"!==n.type?0.75*this.lineHeight:0,u=n.legendMarkerBorderColor?n.legendMarkerBorderColor:n.markerBorderColor,v=n.legendMarkerBorderThickness?n.legendMarkerBorderThickness:n.markerBorderThickness?\nMath.max(1,Math.round(0.2*s)):0;\"error\"===n.type&&r.push(q);m=this.chart.replaceKeywordsWithValue(m,n.dataPoints[0],n,p);d={markerType:d,markerColor:q,text:m,textBlock:null,chartType:n.type,markerSize:s,lineColor:n._colorSet[0],dataSeriesIndex:n.index,dataPointIndex:null,markerBorderColor:u,markerBorderThickness:v};t.push(d)}else for(var x=0;x<n.dataPoints.length;x++){var z=n.dataPoints[x],d=z.legendMarkerType?z.legendMarkerType:n.legendMarkerType?n.legendMarkerType:S.getDefaultLegendMarker(n.type),\nm=z.legendText?z.legendText:n.legendText?n.legendText:this.itemTextFormatter?this.itemTextFormatter({chart:this.chart,legend:this.options,dataSeries:n,dataPoint:z}):z.name?z.name:\"DataPoint: \"+(x+1),q=z.legendMarkerColor?z.legendMarkerColor:n.legendMarkerColor?n.legendMarkerColor:z.color?z.color:n.color?n.color:n._colorSet[x%n._colorSet.length],s=0.75*this.lineHeight,u=z.legendMarkerBorderColor?z.legendMarkerBorderColor:n.legendMarkerBorderColor?n.legendMarkerBorderColor:z.markerBorderColor?z.markerBorderColor:\nn.markerBorderColor,v=z.legendMarkerBorderThickness?z.legendMarkerBorderThickness:n.legendMarkerBorderThickness?n.legendMarkerBorderThickness:z.markerBorderThickness||n.markerBorderThickness?Math.max(1,Math.round(0.2*s)):0,m=this.chart.replaceKeywordsWithValue(m,z,n,x),d={markerType:d,markerColor:q,text:m,textBlock:null,chartType:n.type,markerSize:s,dataSeriesIndex:p,dataPointIndex:x,markerBorderColor:u,markerBorderThickness:v};(z.showInLegend||n.showInLegend&&!1!==z.showInLegend)&&t.push(d)}}!0===\nthis.reversed&&t.reverse();if(0<t.length){n=null;m=x=z=v=0;z=null!==this.itemWidth?null!==this.itemMaxWidth?Math.min(this.itemWidth,this.itemMaxWidth,g):this.itemMaxWidth=Math.min(this.itemWidth,g):null!==this.itemMaxWidth?Math.min(this.itemMaxWidth,g):this.itemMaxWidth=g;s=0===s?0.75*this.lineHeight:s;z-=s+l;for(p=0;p<t.length;p++){d=t[p];q=z;if(\"line\"===d.chartType||\"spline\"===d.chartType||\"stepLine\"===d.chartType)q-=2*0.1*this.lineHeight;if(!(0>=h||\"undefined\"===typeof h||0>=q||\"undefined\"===typeof q)){if(\"horizontal\"===\nthis.orientation){d.textBlock=new ka(this.ctx,{x:0,y:0,maxWidth:q,maxHeight:this.itemWrap?h:this.lineHeight,angle:0,text:d.text,horizontalAlign:\"left\",fontSize:this.fontSize,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontColor:this.fontColor,fontStyle:this.fontStyle,textBaseline:\"middle\"});d.textBlock.measureText();null!==this.itemWidth&&(d.textBlock.width=this.itemWidth-(s+l+(\"line\"===d.chartType||\"spline\"===d.chartType||\"stepLine\"===d.chartType?2*0.1*this.lineHeight:0)));if(!n||n.width+\nMath.round(d.textBlock.width+s+l+(0===n.width?0:this.horizontalSpacing)+(\"line\"===d.chartType||\"spline\"===d.chartType||\"stepLine\"===d.chartType?2*0.1*this.lineHeight:0))>g)n={items:[],width:0},k.push(n),this.height+=x,x=0;x=Math.max(x,d.textBlock.height)}else d.textBlock=new ka(this.ctx,{x:0,y:0,maxWidth:z,maxHeight:!0===this.itemWrap?h:1.5*this.fontSize,angle:0,text:d.text,horizontalAlign:\"left\",fontSize:this.fontSize,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontColor:this.fontColor,\nfontStyle:this.fontStyle,textBaseline:\"middle\"}),d.textBlock.measureText(),null!==this.itemWidth&&(d.textBlock.width=this.itemWidth-(s+l+(\"line\"===d.chartType||\"spline\"===d.chartType||\"stepLine\"===d.chartType?2*0.1*this.lineHeight:0))),this.height<h-this.lineHeight?(n={items:[],width:0},k.push(n)):(n=k[v],v=(v+1)%k.length),this.height+=d.textBlock.height;d.textBlock.x=n.width;d.textBlock.y=0;n.width+=Math.round(d.textBlock.width+s+l+(0===n.width?0:this.horizontalSpacing)+(\"line\"===d.chartType||\"spline\"===\nd.chartType||\"stepLine\"===d.chartType?2*0.1*this.lineHeight:0));n.items.push(d);this.width=Math.max(n.width,this.width);m=d.textBlock.width+(s+l+(\"line\"===d.chartType||\"spline\"===d.chartType||\"stepLine\"===d.chartType?2*0.1*this.lineHeight:0))}}this.itemWidth=m;this.height=!1===this.itemWrap?k.length*this.lineHeight:this.height+x;this.height=Math.min(h,this.height);this.width=Math.min(g,this.width)}\"top\"===this.verticalAlign?(e=\"left\"===this.horizontalAlign?f.x1:\"right\"===this.horizontalAlign?f.x2-\nthis.width:f.x1+f.width/2-this.width/2,c=f.y1):\"center\"===this.verticalAlign?(e=\"left\"===this.horizontalAlign?f.x1:\"right\"===this.horizontalAlign?f.x2-this.width:f.x1+f.width/2-this.width/2,c=f.y1+f.height/2-this.height/2):\"bottom\"===this.verticalAlign&&(e=\"left\"===this.horizontalAlign?f.x1:\"right\"===this.horizontalAlign?f.x2-this.width:f.x1+f.width/2-this.width/2,c=f.y2-this.height);this.items=t;for(p=0;p<this.items.length;p++)d=t[p],d.id=++this.chart._eventManager.lastObjectId,this.chart._eventManager.objectMap[d.id]=\n{id:d.id,objectType:\"legendItem\",legendItemIndex:p,dataSeriesIndex:d.dataSeriesIndex,dataPointIndex:d.dataPointIndex};(0<this.borderThickness&&this.borderColor||this.backgroundColor)&&this.ctx.roundRect(e,c,this.width,this.height,this.cornerRadius,this.borderThickness,this.backgroundColor,this.borderColor);for(p=f=0;p<k.length;p++){n=k[p];for(z=x=0;z<n.items.length;z++){d=n.items[z];q=d.textBlock.x+e+(0===z?0.2*s:this.horizontalSpacing);u=c+f;m=q;this.chart.data[d.dataSeriesIndex].visible||(this.ctx.globalAlpha=\n0.5);this.ctx.save();this.ctx.beginPath();this.ctx.rect(e,c,g,Math.max(h-h%this.lineHeight,0));this.ctx.clip();if(\"line\"===d.chartType||\"stepLine\"===d.chartType||\"spline\"===d.chartType)this.ctx.strokeStyle=d.lineColor,this.ctx.lineWidth=Math.ceil(this.lineHeight/8),this.ctx.beginPath(),this.ctx.moveTo(q-0.1*this.lineHeight,u+this.lineHeight/2),this.ctx.lineTo(q+0.85*this.lineHeight,u+this.lineHeight/2),this.ctx.stroke(),m-=0.1*this.lineHeight;if(\"error\"===d.chartType){this.ctx.strokeStyle=r[0];v=\ns/8;this.ctx.lineWidth=v;this.ctx.beginPath();var v=q-0.08*this.lineHeight+0.1*this.lineHeight,B=u+0.15*this.lineHeight,A=0.7*this.lineHeight,C=A+0.02*this.lineHeight;this.ctx.moveTo(v,B);this.ctx.lineTo(v+A,B);this.ctx.stroke();this.ctx.beginPath();this.ctx.moveTo(v+A/2,B);this.ctx.lineTo(v+A/2,B+C);this.ctx.stroke();this.ctx.beginPath();this.ctx.moveTo(v,B+C);this.ctx.lineTo(v+A,B+C);this.ctx.stroke();r.shift()}$.drawMarker(q+s/2,u+this.lineHeight/2,this.ctx,d.markerType,\"error\"===d.chartType||\n\"line\"===d.chartType||\"spline\"===d.chartType?d.markerSize/2:d.markerSize,d.markerColor,d.markerBorderColor,d.markerBorderThickness);d.textBlock.x=q+l+s;if(\"line\"===d.chartType||\"stepLine\"===d.chartType||\"spline\"===d.chartType)d.textBlock.x+=0.1*this.lineHeight;d.textBlock.y=Math.round(u+this.lineHeight/2);d.textBlock.render(!0);this.ctx.restore();x=0<z?Math.max(x,d.textBlock.height):d.textBlock.height;this.chart.data[d.dataSeriesIndex].visible||(this.ctx.globalAlpha=1);v=R(d.id);this.ghostCtx.fillStyle=\nv;this.ghostCtx.beginPath();this.ghostCtx.fillRect(m,d.textBlock.y-this.lineHeight/2,d.textBlock.x+d.textBlock.width-m,d.textBlock.height);d.x1=this.chart._eventManager.objectMap[d.id].x1=m;d.y1=this.chart._eventManager.objectMap[d.id].y1=d.textBlock.y-this.lineHeight/2;d.x2=this.chart._eventManager.objectMap[d.id].x2=d.textBlock.x+d.textBlock.width;d.y2=this.chart._eventManager.objectMap[d.id].y2=d.textBlock.y+d.textBlock.height-this.lineHeight/2}f+=x}0<t.length&&a.layoutManager.registerSpace(b,\n{width:this.width+2+2,height:this.height+5+5});this.bounds={x1:e,y1:c,x2:e+this.width,y2:c+this.height}};na(S,Y);S.prototype.getDefaultAxisPlacement=function(){var a=this.type;if(\"column\"===a||\"line\"===a||\"stepLine\"===a||\"spline\"===a||\"area\"===a||\"stepArea\"===a||\"splineArea\"===a||\"stackedColumn\"===a||\"stackedLine\"===a||\"bubble\"===a||\"scatter\"===a||\"stackedArea\"===a||\"stackedColumn100\"===a||\"stackedLine100\"===a||\"stackedArea100\"===a||\"candlestick\"===a||\"ohlc\"===a||\"rangeColumn\"===a||\"rangeArea\"===\na||\"rangeSplineArea\"===a||\"boxAndWhisker\"===a||\"waterfall\"===a)return\"normal\";if(\"bar\"===a||\"stackedBar\"===a||\"stackedBar100\"===a||\"rangeBar\"===a)return\"xySwapped\";if(\"pie\"===a||\"doughnut\"===a||\"funnel\"===a||\"pyramid\"===a)return\"none\";\"error\"!==a&&window.console.log(\"Unknown Chart Type: \"+a);return null};S.getDefaultLegendMarker=function(a){if(\"column\"===a||\"stackedColumn\"===a||\"stackedLine\"===a||\"bar\"===a||\"stackedBar\"===a||\"stackedBar100\"===a||\"bubble\"===a||\"scatter\"===a||\"stackedColumn100\"===a||\n\"stackedLine100\"===a||\"stepArea\"===a||\"candlestick\"===a||\"ohlc\"===a||\"rangeColumn\"===a||\"rangeBar\"===a||\"rangeArea\"===a||\"rangeSplineArea\"===a||\"boxAndWhisker\"===a||\"waterfall\"===a)return\"square\";if(\"line\"===a||\"stepLine\"===a||\"spline\"===a||\"pie\"===a||\"doughnut\"===a)return\"circle\";if(\"area\"===a||\"splineArea\"===a||\"stackedArea\"===a||\"stackedArea100\"===a||\"funnel\"===a||\"pyramid\"===a)return\"triangle\";if(\"error\"===a)return\"none\";window.console.log(\"Unknown Chart Type: \"+a);return null};S.prototype.getDataPointAtX=\nfunction(a,f){if(!this.dataPoints||0===this.dataPoints.length)return null;var b={dataPoint:null,distance:Infinity,index:NaN},c=null,e=0,g=0,h=1,l=Infinity,t=0,k=0,r=0;\"none\"!==this.chart.plotInfo.axisPlacement&&(this.axisX.logarithmic?(r=Math.log(this.dataPoints[this.dataPoints.length-1].x/this.dataPoints[0].x),r=1<r?Math.min(Math.max((this.dataPoints.length-1)/r*Math.log(a/this.dataPoints[0].x)>>0,0),this.dataPoints.length):0):(r=this.dataPoints[this.dataPoints.length-1].x-this.dataPoints[0].x,r=\n0<r?Math.min(Math.max((this.dataPoints.length-1)/r*(a-this.dataPoints[0].x)>>0,0),this.dataPoints.length):0));for(;;){g=0<h?r+e:r-e;if(0<=g&&g<this.dataPoints.length){var c=this.dataPoints[g],p=this.axisX.logarithmic?c.x>a?c.x/a:a/c.x:Math.abs(c.x-a);p<b.distance&&(b.dataPoint=c,b.distance=p,b.index=g);c=p;c<=l?l=c:0<h?t++:k++;if(1E3<t&&1E3<k)break}else if(0>r-e&&r+e>=this.dataPoints.length)break;-1===h?(e++,h=1):h=-1}return f||b.dataPoint.x!==a?f&&null!==b.dataPoint?b:null:b};S.prototype.getDataPointAtXY=\nfunction(a,f,b){if(!this.dataPoints||0===this.dataPoints.length||a<this.chart.plotArea.x1||a>this.chart.plotArea.x2||f<this.chart.plotArea.y1||f>this.chart.plotArea.y2)return null;b=b||!1;var c=[],e=0,g=0,h=1,l=!1,t=Infinity,k=0,r=0,p=0;if(\"none\"!==this.chart.plotInfo.axisPlacement)if(p=(this.chart.axisX[0]?this.chart.axisX[0]:this.chart.axisX2[0]).getXValueAt({x:a,y:f}),this.axisX.logarithmic)var n=Math.log(this.dataPoints[this.dataPoints.length-1].x/this.dataPoints[0].x),p=1<n?Math.min(Math.max((this.dataPoints.length-\n1)/n*Math.log(p/this.dataPoints[0].x)>>0,0),this.dataPoints.length):0;else n=this.dataPoints[this.dataPoints.length-1].x-this.dataPoints[0].x,p=0<n?Math.min(Math.max((this.dataPoints.length-1)/n*(p-this.dataPoints[0].x)>>0,0),this.dataPoints.length):0;for(;;){g=0<h?p+e:p-e;if(0<=g&&g<this.dataPoints.length){var n=this.chart._eventManager.objectMap[this.dataPointIds[g]],d=this.dataPoints[g],m=null;if(n){switch(this.type){case \"column\":case \"stackedColumn\":case \"stackedColumn100\":case \"bar\":case \"stackedBar\":case \"stackedBar100\":case \"rangeColumn\":case \"rangeBar\":case \"waterfall\":case \"error\":a>=\nn.x1&&(a<=n.x2&&f>=n.y1&&f<=n.y2)&&(c.push({dataPoint:d,dataPointIndex:g,dataSeries:this,distance:Math.min(Math.abs(n.x1-a),Math.abs(n.x2-a),Math.abs(n.y1-f),Math.abs(n.y2-f))}),l=!0);break;case \"line\":case \"stepLine\":case \"spline\":case \"area\":case \"stepArea\":case \"stackedArea\":case \"stackedArea100\":case \"splineArea\":case \"scatter\":var q=ja(\"markerSize\",d,this)||4,s=b?20:q,m=Math.sqrt(Math.pow(n.x1-a,2)+Math.pow(n.y1-f,2));m<=s&&c.push({dataPoint:d,dataPointIndex:g,dataSeries:this,distance:m});n=\nMath.abs(n.x1-a);n<=t?t=n:0<h?k++:r++;m<=q/2&&(l=!0);break;case \"rangeArea\":case \"rangeSplineArea\":q=ja(\"markerSize\",d,this)||4;s=b?20:q;m=Math.min(Math.sqrt(Math.pow(n.x1-a,2)+Math.pow(n.y1-f,2)),Math.sqrt(Math.pow(n.x1-a,2)+Math.pow(n.y2-f,2)));m<=s&&c.push({dataPoint:d,dataPointIndex:g,dataSeries:this,distance:m});n=Math.abs(n.x1-a);n<=t?t=n:0<h?k++:r++;m<=q/2&&(l=!0);break;case \"bubble\":q=n.size;m=Math.sqrt(Math.pow(n.x1-a,2)+Math.pow(n.y1-f,2));m<=q/2&&(c.push({dataPoint:d,dataPointIndex:g,dataSeries:this,\ndistance:m}),l=!0);break;case \"pie\":case \"doughnut\":q=n.center;s=\"doughnut\"===this.type?n.percentInnerRadius*n.radius:0;m=Math.sqrt(Math.pow(q.x-a,2)+Math.pow(q.y-f,2));m<n.radius&&m>s&&(m=Math.atan2(f-q.y,a-q.x),0>m&&(m+=2*Math.PI),m=Number(((180*(m/Math.PI)%360+360)%360).toFixed(12)),q=Number(((180*(n.startAngle/Math.PI)%360+360)%360).toFixed(12)),s=Number(((180*(n.endAngle/Math.PI)%360+360)%360).toFixed(12)),0===s&&1<n.endAngle&&(s=360),q>=s&&0!==d.y&&(s+=360,m<q&&(m+=360)),m>q&&m<s&&(c.push({dataPoint:d,\ndataPointIndex:g,dataSeries:this,distance:0}),l=!0));break;case \"funnel\":case \"pyramid\":m=n.funnelSection;f>m.y1&&f<m.y4&&(m.y6?f>m.y6?(g=m.x6+(m.x5-m.x6)/(m.y5-m.y6)*(f-m.y6),m=m.x3+(m.x4-m.x3)/(m.y4-m.y3)*(f-m.y3)):(g=m.x1+(m.x6-m.x1)/(m.y6-m.y1)*(f-m.y1),m=m.x2+(m.x3-m.x2)/(m.y3-m.y2)*(f-m.y2)):(g=m.x1+(m.x4-m.x1)/(m.y4-m.y1)*(f-m.y1),m=m.x2+(m.x3-m.x2)/(m.y3-m.y2)*(f-m.y2)),a>g&&a<m&&(c.push({dataPoint:d,dataPointIndex:n.dataPointIndex,dataSeries:this,distance:0}),l=!0));break;case \"boxAndWhisker\":if(a>=\nn.x1-n.borderThickness/2&&a<=n.x2+n.borderThickness/2&&f>=n.y4-n.borderThickness/2&&f<=n.y1+n.borderThickness/2||Math.abs(n.x2-a+n.x1-a)<n.borderThickness&&f>=n.y1&&f<=n.y4)c.push({dataPoint:d,dataPointIndex:g,dataSeries:this,distance:Math.min(Math.abs(n.x1-a),Math.abs(n.x2-a),Math.abs(n.y2-f),Math.abs(n.y3-f))}),l=!0;break;case \"candlestick\":if(a>=n.x1-n.borderThickness/2&&a<=n.x2+n.borderThickness/2&&f>=n.y2-n.borderThickness/2&&f<=n.y3+n.borderThickness/2||Math.abs(n.x2-a+n.x1-a)<n.borderThickness&&\nf>=n.y1&&f<=n.y4)c.push({dataPoint:d,dataPointIndex:g,dataSeries:this,distance:Math.min(Math.abs(n.x1-a),Math.abs(n.x2-a),Math.abs(n.y2-f),Math.abs(n.y3-f))}),l=!0;break;case \"ohlc\":if(Math.abs(n.x2-a+n.x1-a)<n.borderThickness&&f>=n.y2&&f<=n.y3||a>=n.x1&&a<=(n.x2+n.x1)/2&&f>=n.y1-n.borderThickness/2&&f<=n.y1+n.borderThickness/2||a>=(n.x1+n.x2)/2&&a<=n.x2&&f>=n.y4-n.borderThickness/2&&f<=n.y4+n.borderThickness/2)c.push({dataPoint:d,dataPointIndex:g,dataSeries:this,distance:Math.min(Math.abs(n.x1-a),\nMath.abs(n.x2-a),Math.abs(n.y2-f),Math.abs(n.y3-f))}),l=!0}if(l||1E3<k&&1E3<r)break}}else if(0>p-e&&p+e>=this.dataPoints.length)break;-1===h?(e++,h=1):h=-1}a=null;for(f=0;f<c.length;f++)a?c[f].distance<=a.distance&&(a=c[f]):a=c[f];return a};S.prototype.getMarkerProperties=function(a,f,b,c){var e=this.dataPoints;return{x:f,y:b,ctx:c,type:e[a].markerType?e[a].markerType:this.markerType,size:e[a].markerSize?e[a].markerSize:this.markerSize,color:e[a].markerColor?e[a].markerColor:this.markerColor?this.markerColor:\ne[a].color?e[a].color:this.color?this.color:this._colorSet[a%this._colorSet.length],borderColor:e[a].markerBorderColor?e[a].markerBorderColor:this.markerBorderColor?this.markerBorderColor:null,borderThickness:e[a].markerBorderThickness?e[a].markerBorderThickness:this.markerBorderThickness?this.markerBorderThickness:null}};na(C,Y);C.prototype.createExtraLabelsForLog=function(a){a=(a||0)+1;if(!(5<a)){var f=this.logLabelValues[0]||this.intervalStartPosition;if(Math.log(this.range)/Math.log(f/this.viewportMinimum)<\nthis.noTicks-1){for(var b=C.getNiceNumber((f-this.viewportMinimum)/Math.min(Math.max(2,this.noTicks-this.logLabelValues.length),3),!0),c=Math.ceil(this.viewportMinimum/b)*b;c<f;c+=b)c<this.viewportMinimum||this.logLabelValues.push(c);this.logLabelValues.sort(Pa);this.createExtraLabelsForLog(a)}}};C.prototype.createLabels=function(){var a,f,b=0,c=0,e,g=0,h=0,c=0,c=this.interval,l=0,t,k=0.6*this.chart.height,m;a=!1;var p=this.scaleBreaks?this.scaleBreaks._appliedBreaks:[],n=p.length?y(this.scaleBreaks.firstBreakIndex)?\n0:this.scaleBreaks.firstBreakIndex:0;if(\"axisX\"!==this.type||\"dateTime\"!==this.valueType||this.logarithmic){e=this.viewportMaximum;if(this.labels){a=Math.ceil(c);for(var c=Math.ceil(this.intervalStartPosition),d=!1,b=c;b<this.viewportMaximum;b+=a)if(this.labels[b])d=!0;else{d=!1;break}d&&(this.interval=a,this.intervalStartPosition=c)}if(this.logarithmic&&!this.equidistantInterval)for(this.logLabelValues||(this.logLabelValues=[],this.createExtraLabelsForLog()),c=0,d=n;c<this.logLabelValues.length;c++)if(b=\nthis.logLabelValues[c],b<this.viewportMinimum)c++;else{for(;d<p.length&&b>p[d].endValue;d++);a=d<p.length&&b>=p[d].startValue&&b<=p[d].endValue;m=b;a||(a=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.options,value:m,label:this.labels[m]?this.labels[m]:null}):\"axisX\"===this.type&&this.labels[m]?this.labels[m]:V(m,this.valueFormatString,this.chart._cultureInfo),a=new ka(this.ctx,{x:0,y:0,maxWidth:g,maxHeight:h,angle:this.labelAngle,text:this.prefix+a+this.suffix,backgroundColor:this.labelBackgroundColor,\nborderColor:this.labelBorderColor,borderThickness:this.labelBorderThickness,cornerRadius:this.labelCornerRadius,horizontalAlign:\"left\",fontSize:this.labelFontSize,fontFamily:this.labelFontFamily,fontWeight:this.labelFontWeight,fontColor:this.labelFontColor,fontStyle:this.labelFontStyle,textBaseline:\"middle\",borderThickness:0}),this._labels.push({position:m,textBlock:a,effectiveHeight:null}))}d=n;for(b=this.intervalStartPosition;b<=e;b=parseFloat(1E-12>this.interval?this.logarithmic&&this.equidistantInterval?\nb*Math.pow(this.logarithmBase,this.interval):b+this.interval:(this.logarithmic&&this.equidistantInterval?b*Math.pow(this.logarithmBase,this.interval):b+this.interval).toFixed(12))){for(;d<p.length&&b>p[d].endValue;d++);a=d<p.length&&b>=p[d].startValue&&b<=p[d].endValue;m=b;a||(a=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.options,value:m,label:this.labels[m]?this.labels[m]:null}):\"axisX\"===this.type&&this.labels[m]?this.labels[m]:V(m,this.valueFormatString,this.chart._cultureInfo),\na=new ka(this.ctx,{x:0,y:0,maxWidth:g,maxHeight:h,angle:this.labelAngle,text:this.prefix+a+this.suffix,horizontalAlign:\"left\",backgroundColor:this.labelBackgroundColor,borderColor:this.labelBorderColor,borderThickness:this.labelBorderThickness,cornerRadius:this.labelCornerRadius,fontSize:this.labelFontSize,fontFamily:this.labelFontFamily,fontWeight:this.labelFontWeight,fontColor:this.labelFontColor,fontStyle:this.labelFontStyle,textBaseline:\"middle\"}),this._labels.push({position:m,textBlock:a,effectiveHeight:null}))}}else for(this.intervalStartPosition=\nthis.getLabelStartPoint(new Date(this.viewportMinimum),this.intervalType,this.interval),e=Ta(new Date(this.viewportMaximum),this.interval,this.intervalType),d=n,b=this.intervalStartPosition;b<e;Ta(b,c,this.intervalType)){for(a=b.getTime();d<p.length&&a>p[d].endValue;d++);m=a;a=d<p.length&&a>=p[d].startValue&&a<=p[d].endValue;a||(a=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.options,value:new Date(m),label:this.labels[m]?this.labels[m]:null}):\"axisX\"===this.type&&this.labels[m]?\nthis.labels[m]:Aa(m,this.valueFormatString,this.chart._cultureInfo),a=new ka(this.ctx,{x:0,y:0,maxWidth:g,backgroundColor:this.labelBackgroundColor,borderColor:this.labelBorderColor,borderThickness:this.labelBorderThickness,cornerRadius:this.labelCornerRadius,maxHeight:h,angle:this.labelAngle,text:this.prefix+a+this.suffix,horizontalAlign:\"left\",fontSize:this.labelFontSize,fontFamily:this.labelFontFamily,fontWeight:this.labelFontWeight,fontColor:this.labelFontColor,fontStyle:this.labelFontStyle,textBaseline:\"middle\"}),\nthis._labels.push({position:m,textBlock:a,effectiveHeight:null,breaksLabelType:void 0}))}if(\"bottom\"===this._position||\"top\"===this._position)l=this.logarithmic&&!this.equidistantInterval&&2<=this._labels.length?this.lineCoordinates.width*Math.log(Math.min(this._labels[this._labels.length-1].position/this._labels[this._labels.length-2].position,this._labels[1].position/this._labels[0].position))/Math.log(this.range):this.lineCoordinates.width/(this.logarithmic&&this.equidistantInterval?Math.log(this.range)/\nMath.log(this.logarithmBase):Math.abs(this.range))*U[this.intervalType+\"Duration\"]*this.interval,g=\"undefined\"===typeof this.options.labelMaxWidth?0.5*this.chart.width>>0:this.options.labelMaxWidth,this.chart.panEnabled||(h=\"undefined\"===typeof this.options.labelWrap||this.labelWrap?0.8*this.chart.height>>0:1.5*this.labelFontSize);else if(\"left\"===this._position||\"right\"===this._position)l=this.logarithmic&&!this.equidistantInterval&&2<=this._labels.length?this.lineCoordinates.height*Math.log(Math.min(this._labels[this._labels.length-\n1].position/this._labels[this._labels.length-2].position,this._labels[1].position/this._labels[0].position))/Math.log(this.range):this.lineCoordinates.height/(this.logarithmic&&this.equidistantInterval?Math.log(this.range)/Math.log(this.logarithmBase):Math.abs(this.range))*U[this.intervalType+\"Duration\"]*this.interval,this.chart.panEnabled||(g=\"undefined\"===typeof this.options.labelMaxWidth?0.3*this.chart.width>>0:this.options.labelMaxWidth),h=\"undefined\"===typeof this.options.labelWrap||this.labelWrap?\n0.3*this.chart.height>>0:1.5*this.labelFontSize;for(c=0;c<this._labels.length;c++){a=this._labels[c].textBlock;a.maxWidth=g;a.maxHeight=h;var q=a.measureText();t=q.height}e=[];n=p=0;if(this.labelAutoFit||this.options.labelAutoFit)if(y(this.labelAngle)||(this.labelAngle=(this.labelAngle%360+360)%360,90<this.labelAngle&&270>this.labelAngle?this.labelAngle-=180:270<=this.labelAngle&&360>=this.labelAngle&&(this.labelAngle-=360)),\"bottom\"===this._position||\"top\"===this._position)if(g=0.9*l>>0,n=0,!this.chart.panEnabled&&\n1<=this._labels.length){this.sessionVariables.labelFontSize=this.labelFontSize;this.sessionVariables.labelMaxWidth=g;this.sessionVariables.labelMaxHeight=h;this.sessionVariables.labelAngle=this.labelAngle;this.sessionVariables.labelWrap=this.labelWrap;for(b=0;b<this._labels.length;b++)if(!this._labels[b].breaksLabelType){a=this._labels[b].textBlock;for(var s,d=a.text.split(\" \"),c=0;c<d.length;c++)m=d[c],this.ctx.font=a.fontStyle+\" \"+a.fontWeight+\" \"+a.fontSize+\"px \"+a.fontFamily,m=this.ctx.measureText(m),\nm.width>n&&(s=b,n=m.width)}b=0;for(b=this.intervalStartPosition<this.viewportMinimum?1:0;b<this._labels.length;b++)if(!this._labels[b].breaksLabelType){a=this._labels[b].textBlock;q=a.measureText();for(d=b+1;d<this._labels.length;d++)if(!this._labels[d].breaksLabelType){f=this._labels[d].textBlock;f=f.measureText();break}e.push(a.height);this.sessionVariables.labelMaxHeight=Math.max.apply(Math,e);Math.cos(Math.PI/180*Math.abs(this.labelAngle));Math.sin(Math.PI/180*Math.abs(this.labelAngle));c=g*Math.sin(Math.PI/\n180*Math.abs(this.labelAngle))+(h-a.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle));if(y(this.options.labelAngle)&&isNaN(this.options.labelAngle)&&0!==this.options.labelAngle)if(this.sessionVariables.labelMaxHeight=0===this.labelAngle?h:Math.min((c-g*Math.cos(Math.PI/180*Math.abs(this.labelAngle)))/Math.sin(Math.PI/180*Math.abs(this.labelAngle)),c),m=(k-(t+a.fontSize/2)*Math.cos(Math.PI/180*Math.abs(-25)))/Math.sin(Math.PI/180*Math.abs(-25)),!y(this.options.labelWrap))this.labelWrap?y(this.options.labelMaxWidth)?\n(this.sessionVariables.labelMaxWidth=Math.min(Math.max(g,n),m),this.sessionVariables.labelWrap=this.labelWrap,q.width+f.width>>0>2*g&&(this.sessionVariables.labelAngle=-25)):(this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth,this.sessionVariables.labelAngle=this.sessionVariables.labelMaxWidth>g?-25:this.sessionVariables.labelAngle):y(this.options.labelMaxWidth)?(this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxHeight=\nh,this.sessionVariables.labelMaxWidth=g,q.width+f.width>>0>2*g&&(this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=m)):(this.sessionVariables.labelAngle=this.sessionVariables.labelMaxWidth>g?-25:this.sessionVariables.labelAngle,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth,this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelWrap=this.labelWrap);else{if(y(this.options.labelWrap))if(!y(this.options.labelMaxWidth))this.options.labelMaxWidth<g?(this.sessionVariables.labelMaxWidth=\nthis.options.labelMaxWidth,this.sessionVariables.labelMaxHeight=c):(this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth,this.sessionVariables.labelMaxHeight=h);else if(!y(f))if(c=q.width+f.width>>0,d=this.labelFontSize,n<g)c-2*g>p&&(p=c-2*g,c>=2*g&&c<2.2*g?(this.sessionVariables.labelMaxWidth=g,y(this.options.labelFontSize)&&12<d&&(d=Math.floor(12/13*d),a.measureText()),this.sessionVariables.labelFontSize=y(this.options.labelFontSize)?d:this.options.labelFontSize,\nthis.sessionVariables.labelAngle=this.labelAngle):c>=2.2*g&&c<2.8*g?(this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=m,this.sessionVariables.labelFontSize=d):c>=2.8*g&&c<3.2*g?(this.sessionVariables.labelMaxWidth=Math.max(g,n),this.sessionVariables.labelWrap=!0,y(this.options.labelFontSize)&&12<this.labelFontSize&&(this.labelFontSize=Math.floor(12/13*this.labelFontSize),a.measureText()),this.sessionVariables.labelFontSize=y(this.options.labelFontSize)?d:this.options.labelFontSize,\nthis.sessionVariables.labelAngle=this.labelAngle):c>=3.2*g&&c<3.6*g?(this.sessionVariables.labelAngle=-25,this.sessionVariables.labelWrap=!0,this.sessionVariables.labelMaxWidth=m,this.sessionVariables.labelFontSize=this.labelFontSize):c>3.6*g&&c<5*g?(y(this.options.labelFontSize)&&12<d&&(d=Math.floor(12/13*d),a.measureText()),this.sessionVariables.labelFontSize=y(this.options.labelFontSize)?d:this.options.labelFontSize,this.sessionVariables.labelWrap=!0,this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=\nm):c>5*g&&(this.sessionVariables.labelWrap=!0,this.sessionVariables.labelMaxWidth=g,this.sessionVariables.labelFontSize=d,this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelAngle=this.labelAngle));else if(s===b&&(0===s&&n+this._labels[s+1].textBlock.measureText().width-2*g>p||s===this._labels.length-1&&n+this._labels[s-1].textBlock.measureText().width-2*g>p||0<s&&s<this._labels.length-1&&n+this._labels[s+1].textBlock.measureText().width-2*g>p&&n+this._labels[s-1].textBlock.measureText().width-\n2*g>p))p=0===s?n+this._labels[s+1].textBlock.measureText().width-2*g:n+this._labels[s-1].textBlock.measureText().width-2*g,this.sessionVariables.labelFontSize=y(this.options.labelFontSize)?d:this.options.labelFontSize,this.sessionVariables.labelWrap=!0,this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=m;else if(0===p)for(this.sessionVariables.labelFontSize=y(this.options.labelFontSize)?d:this.options.labelFontSize,this.sessionVariables.labelWrap=!0,c=0;c<this._labels.length;c++)a=\nthis._labels[c].textBlock,a.maxWidth=this.sessionVariables.labelMaxWidth=Math.min(Math.max(g,n),m),q=a.measureText(),c<this._labels.length-1&&(d=c+1,f=this._labels[d].textBlock,f.maxWidth=this.sessionVariables.labelMaxWidth=Math.min(Math.max(g,n),m),f=f.measureText(),q.width+f.width>>0>2*g&&(this.sessionVariables.labelAngle=-25))}else(this.sessionVariables.labelAngle=this.labelAngle,this.sessionVariables.labelMaxHeight=0===this.labelAngle?h:Math.min((c-g*Math.cos(Math.PI/180*Math.abs(this.labelAngle)))/\nMath.sin(Math.PI/180*Math.abs(this.labelAngle)),c),m=0!=this.labelAngle?(k-(t+a.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle)))/Math.sin(Math.PI/180*Math.abs(this.labelAngle)):g,this.sessionVariables.labelMaxHeight=h=this.labelWrap?(k-m*Math.sin(Math.PI/180*Math.abs(this.labelAngle)))/Math.cos(Math.PI/180*Math.abs(this.labelAngle)):1.5*this.labelFontSize,y(this.options.labelWrap))?y(this.options.labelWrap)&&(this.labelWrap&&!y(this.options.labelMaxWidth)?(this.sessionVariables.labelWrap=\nthis.labelWrap,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:m,this.sessionVariables.labelMaxHeight=h):(this.sessionVariables.labelAngle=this.labelAngle,this.sessionVariables.labelMaxWidth=m,this.sessionVariables.labelMaxHeight=c<0.9*l?0.9*l:c,this.sessionVariables.labelWrap=this.labelWrap)):(this.options.labelWrap?(this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:m):\n(y(this.options.labelMaxWidth),this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:m,this.sessionVariables.labelWrap=this.labelWrap),this.sessionVariables.labelMaxHeight=h)}for(c=0;c<this._labels.length;c++)a=this._labels[c].textBlock,a.maxWidth=this.labelMaxWidth=this.sessionVariables.labelMaxWidth,a.fontSize=this.sessionVariables.labelFontSize,a.angle=this.labelAngle=this.sessionVariables.labelAngle,a.wrap=this.labelWrap=this.sessionVariables.labelWrap,a.maxHeight=\nthis.sessionVariables.labelMaxHeight,a.measureText()}else for(b=0;b<this._labels.length;b++)a=this._labels[b].textBlock,a.maxWidth=this.labelMaxWidth=y(this.options.labelMaxWidth)?this.sessionVariables.labelMaxWidth:this.options.labelMaxWidth,a.fontSize=this.labelFontSize=y(this.options.labelFontSize)?this.sessionVariables.labelFontSize:this.options.labelFontSize,a.angle=this.labelAngle=y(this.options.labelAngle)?this.sessionVariables.labelAngle:this.labelAngle,a.wrap=this.labelWrap=y(this.options.labelWrap)?\nthis.sessionVariables.labelWrap:this.options.labelWrap,a.maxHeight=this.sessionVariables.labelMaxHeight,a.measureText();else if(\"left\"===this._position||\"right\"===this._position)if(g=y(this.options.labelMaxWidth)?0.3*this.chart.width>>0:this.options.labelMaxWidth,h=\"undefined\"===typeof this.options.labelWrap||this.labelWrap?0.3*this.chart.height>>0:1.5*this.labelFontSize,!this.chart.panEnabled&&1<=this._labels.length){this.sessionVariables.labelFontSize=this.labelFontSize;this.sessionVariables.labelMaxWidth=\ng;this.sessionVariables.labelMaxHeight=h;this.sessionVariables.labelAngle=y(this.sessionVariables.labelAngle)?0:this.sessionVariables.labelAngle;this.sessionVariables.labelWrap=this.labelWrap;for(b=0;b<this._labels.length;b++)if(!this._labels[b].breaksLabelType){a=this._labels[b].textBlock;q=a.measureText();for(d=b+1;d<this._labels.length;d++)if(!this._labels[d].breaksLabelType){f=this._labels[d].textBlock;f=f.measureText();break}e.push(a.height);this.sessionVariables.labelMaxHeight=Math.max.apply(Math,\ne);c=g*Math.sin(Math.PI/180*Math.abs(this.labelAngle))+(h-a.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle));Math.cos(Math.PI/180*Math.abs(this.labelAngle));Math.sin(Math.PI/180*Math.abs(this.labelAngle));y(this.options.labelAngle)&&isNaN(this.options.labelAngle)&&0!==this.options.labelAngle?y(this.options.labelWrap)?y(this.options.labelWrap)&&(y(this.options.labelMaxWidth)?y(f)||(l=q.height+f.height>>0,l-2*h>n&&(n=l-2*h,l>=2*h&&l<2.4*h?(y(this.options.labelFontSize)&&12<this.labelFontSize&&\n(this.labelFontSize=Math.floor(12/13*this.labelFontSize),a.measureText()),this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelFontSize=y(this.options.labelFontSize)?this.labelFontSize:this.options.labelFontSize):l>=2.4*h&&l<2.8*h?(this.sessionVariables.labelMaxHeight=c,this.sessionVariables.labelFontSize=this.labelFontSize,this.sessionVariables.labelWrap=!0):l>=2.8*h&&l<3.2*h?(this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelWrap=!0,y(this.options.labelFontSize)&&12<\nthis.labelFontSize&&(this.labelFontSize=Math.floor(12/13*this.labelFontSize),a.measureText()),this.sessionVariables.labelFontSize=y(this.options.labelFontSize)?this.labelFontSize:this.options.labelFontSize,this.sessionVariables.labelAngle=y(this.sessionVariables.labelAngle)?0:this.sessionVariables.labelAngle):l>=3.2*h&&l<3.6*h?(this.sessionVariables.labelMaxHeight=c,this.sessionVariables.labelWrap=!0,this.sessionVariables.labelFontSize=this.labelFontSize):l>3.6*h&&l<10*h?(y(this.options.labelFontSize)&&\n12<this.labelFontSize&&(this.labelFontSize=Math.floor(12/13*this.labelFontSize),a.measureText()),this.sessionVariables.labelFontSize=y(this.options.labelFontSize)?this.labelFontSize:this.options.labelFontSize,this.sessionVariables.labelMaxWidth=g,this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelAngle=y(this.sessionVariables.labelAngle)?0:this.sessionVariables.labelAngle):l>10*h&&l<50*h&&(y(this.options.labelFontSize)&&12<this.labelFontSize&&(this.labelFontSize=Math.floor(12/13*this.labelFontSize),\na.measureText()),this.sessionVariables.labelFontSize=y(this.options.labelFontSize)?this.labelFontSize:this.options.labelFontSize,this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelMaxWidth=g,this.sessionVariables.labelAngle=y(this.sessionVariables.labelAngle)?0:this.sessionVariables.labelAngle))):(this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:this.sessionVariables.labelMaxWidth)):(this.sessionVariables.labelMaxWidth=\nthis.labelWrap?this.options.labelMaxWidth?this.options.labelMaxWidth:this.sessionVariables.labelMaxWidth:this.labelMaxWidth?this.options.labelMaxWidth?this.options.labelMaxWidth:this.sessionVariables.labelMaxWidth:g,this.sessionVariables.labelMaxHeight=h):(this.sessionVariables.labelAngle=this.labelAngle,this.sessionVariables.labelMaxWidth=0===this.labelAngle?g:Math.min((c-h*Math.sin(Math.PI/180*Math.abs(this.labelAngle)))/Math.cos(Math.PI/180*Math.abs(this.labelAngle)),h),y(this.options.labelWrap))?\ny(this.options.labelWrap)&&(this.labelWrap&&!y(this.options.labelMaxWidth)?(this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth>this.options.labelMaxWidth:this.sessionVariables.labelMaxWidth,this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxHeight=c):(this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:g,this.sessionVariables.labelMaxHeight=0===this.labelAngle?h:c,y(this.options.labelMaxWidth)&&\n(this.sessionVariables.labelAngle=this.labelAngle))):this.options.labelWrap?(this.sessionVariables.labelMaxHeight=0===this.labelAngle?h:c,this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxWidth=g):(this.sessionVariables.labelMaxHeight=h,y(this.options.labelMaxWidth),this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:this.sessionVariables.labelMaxWidth,this.sessionVariables.labelWrap=this.labelWrap)}for(c=0;c<this._labels.length;c++)a=\nthis._labels[c].textBlock,a.maxWidth=this.labelMaxWidth=this.sessionVariables.labelMaxWidth,a.fontSize=this.labelFontSize=this.sessionVariables.labelFontSize,a.angle=this.labelAngle=this.sessionVariables.labelAngle,a.wrap=this.labelWrap=this.sessionVariables.labelWrap,a.maxHeight=this.sessionVariables.labelMaxHeight,a.measureText()}else for(b=0;b<this._labels.length;b++)a=this._labels[b].textBlock,a.maxWidth=this.labelMaxWidth=y(this.options.labelMaxWidth)?this.sessionVariables.labelMaxWidth:this.options.labelMaxWidth,\na.fontSize=this.labelFontSize=y(this.options.labelFontSize)?this.sessionVariables.labelFontSize:this.options.labelFontSize,a.angle=this.labelAngle=y(this.options.labelAngle)?this.sessionVariables.labelAngle:this.labelAngle,a.wrap=this.labelWrap=y(this.options.labelWrap)?this.sessionVariables.labelWrap:this.options.labelWrap,a.maxHeight=this.sessionVariables.labelMaxHeight,a.measureText();for(b=0;b<this.stripLines.length;b++){var g=this.stripLines[b],x;if(\"outside\"===g.labelPlacement){h=this.sessionVariables.labelMaxWidth;\nif(\"bottom\"===this._position||\"top\"===this._position)x=y(g.options.labelWrap)?this.sessionVariables.labelMaxHeight:g.labelWrap?0.8*this.chart.height>>0:1.5*this.labelFontSize;if(\"left\"===this._position||\"right\"===this._position)x=y(g.options.labelWrap)?this.sessionVariables.labelMaxHeight:g.labelWrap?0.8*this.chart.width>>0:1.5*this.labelFontSize;y(g.labelBackgroundColor)&&(g.labelBackgroundColor=\"#EEEEEE\")}else h=\"bottom\"===this._position||\"top\"===this._position?0.9*this.chart.width>>0:0.9*this.chart.height>>\n0,x=y(g.options.labelWrap)||g.labelWrap?\"bottom\"===this._position||\"top\"===this._position?0.8*this.chart.width>>0:0.8*this.chart.height>>0:1.5*this.labelFontSize,y(g.labelBackgroundColor)&&(y(g.startValue)&&0!==g.startValue?g.labelBackgroundColor=v?\"transparent\":null:g.labelBackgroundColor=\"#EEEEEE\");a=new ka(this.ctx,{x:0,y:0,backgroundColor:g.labelBackgroundColor,borderColor:g.labelBorderColor,borderThickness:g.labelBorderThickness,cornerRadius:g.labelCornerRadius,maxWidth:g.options.labelMaxWidth?\ng.options.labelMaxWidth:h,maxHeight:x,angle:this.labelAngle,text:g.labelFormatter?g.labelFormatter({chart:this.chart,axis:this,stripLine:g}):g.label,horizontalAlign:\"left\",fontSize:\"outside\"===g.labelPlacement?g.options.labelFontSize?g.labelFontSize:this.labelFontSize:g.labelFontSize,fontFamily:\"outside\"===g.labelPlacement?g.options.labelFontFamily?g.labelFontFamily:this.labelFontFamily:g.labelFontFamily,fontWeight:\"outside\"===g.labelPlacement?g.options.labelFontWeight?g.labelFontWeight:this.labelFontWeight:\ng.labelFontWeight,fontColor:g.labelFontColor||g.color,fontStyle:\"outside\"===g.labelPlacement?g.options.labelFontStyle?g.labelFontStyle:this.fontWeight:g.labelFontStyle,textBaseline:\"middle\"});this._stripLineLabels.push({position:g.value,textBlock:a,effectiveHeight:null,stripLine:g})}};C.prototype.createLabelsAndCalculateWidth=function(){var a=0,f=0;this._labels=[];this._stripLineLabels=[];if(\"left\"===this._position||\"right\"===this._position){this.createLabels();for(f=0;f<this._labels.length;f++){var b=\nthis._labels[f].textBlock,c=b.measureText(),e=0,e=0===this.labelAngle?c.width:c.width*Math.cos(Math.PI/180*Math.abs(this.labelAngle))+(c.height-b.fontSize/2)*Math.sin(Math.PI/180*Math.abs(this.labelAngle));a<e&&(a=e);this._labels[f].effectiveWidth=e}for(f=0;f<this._stripLineLabels.length;f++)\"outside\"===this._stripLineLabels[f].stripLine.labelPlacement&&(this._stripLineLabels[f].stripLine.value>=this.viewportMinimum&&this._stripLineLabels[f].stripLine.value<=this.viewportMaximum)&&(b=this._stripLineLabels[f].textBlock,\nc=b.measureText(),e=0===this.labelAngle?c.width:c.width*Math.cos(Math.PI/180*Math.abs(this.labelAngle))+(c.height-b.fontSize/2)*Math.sin(Math.PI/180*Math.abs(this.labelAngle)),a<e&&(a=e),this._stripLineLabels[f].effectiveWidth=e)}f=this.title?this._titleTextBlock.measureText().height+2:0;return b=\"inside\"===this.labelPlacement?b=f+5:f+a+this.tickLength+5};C.prototype.createLabelsAndCalculateHeight=function(){var a=0;this._labels=[];this._stripLineLabels=[];var f,b=0;this.createLabels();if(\"bottom\"===\nthis._position||\"top\"===this._position){for(b=0;b<this._labels.length;b++){f=this._labels[b].textBlock;var c=f.measureText(),e=0,e=0===this.labelAngle?c.height:c.width*Math.sin(Math.PI/180*Math.abs(this.labelAngle))+(c.height-f.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle));a<e&&(a=e);this._labels[b].effectiveHeight=e}for(b=0;b<this._stripLineLabels.length;b++)\"outside\"===this._stripLineLabels[b].stripLine.labelPlacement&&(this._stripLineLabels[b].stripLine.value>=this.viewportMinimum&&\nthis._stripLineLabels[b].stripLine.value<=this.viewportMaximum)&&(f=this._stripLineLabels[b].textBlock,c=f.measureText(),e=0===this.labelAngle?c.height:c.width*Math.sin(Math.PI/180*Math.abs(this.labelAngle))+(c.height-f.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle)),a<e&&(a=e),this._stripLineLabels[b].effectiveHeight=e)}f=this.title?this._titleTextBlock.measureText().height+2:0;return b=\"inside\"===this.labelPlacement?b=f+5:f+a+this.tickLength+5};C.setLayoutAndRender=function(a,f,b,c,\ne,g){var h,l,t,k,m=a[0]?a[0].chart:f[0].chart,p=m.ctx,n=m._axes;if(a&&0<a.length)for(var d=0;d<a.length;d++)a[d]&&a[d].calculateAxisParameters();if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].calculateAxisParameters();if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].calculateAxisParameters();if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].calculateAxisParameters();for(d=0;d<n.length;d++)if(n[d]&&n[d].scaleBreaks&&n[d].scaleBreaks._appliedBreaks.length)for(var q=n[d].scaleBreaks._appliedBreaks,s=0;s<q.length&&\n!(q[s].startValue>n[d].viewportMaximum);s++)q[s].endValue<n[d].viewportMinimum||(y(n[d].scaleBreaks.firstBreakIndex)&&(n[d].scaleBreaks.firstBreakIndex=s),q[s].startValue>=n[d].viewPortMinimum&&(n[d].scaleBreaks.lastBreakIndex=s));for(var x=s=0,u=0,z=0,C=0,F=0,B=0,A,I,J=l=0,L,K,O,q=L=K=O=!1,d=0;d<n.length;d++)n[d]&&n[d].title&&(n[d]._titleTextBlock=new ka(n[d].ctx,{text:n[d].title,horizontalAlign:\"center\",fontSize:n[d].titleFontSize,fontFamily:n[d].titleFontFamily,fontWeight:n[d].titleFontWeight,\nfontColor:n[d].titleFontColor,fontStyle:n[d].titleFontStyle,borderColor:n[d].titleBorderColor,borderThickness:n[d].titleBorderThickness,backgroundColor:n[d].titleBackgroundColor,cornerRadius:n[d].titleCornerRadius,textBaseline:\"top\"}));for(d=0;d<n.length;d++)if(n[d].title)switch(n[d]._position){case \"left\":n[d]._titleTextBlock.maxWidth=n[d].titleMaxWidth||g.height;n[d]._titleTextBlock.maxHeight=n[d].titleWrap?0.8*g.width:1.5*n[d].titleFontSize;n[d]._titleTextBlock.angle=-90;break;case \"right\":n[d]._titleTextBlock.maxWidth=\nn[d].titleMaxWidth||g.height;n[d]._titleTextBlock.maxHeight=n[d].titleWrap?0.8*g.width:1.5*n[d].titleFontSize;n[d]._titleTextBlock.angle=90;break;default:n[d]._titleTextBlock.maxWidth=n[d].titleMaxWidth||g.width,n[d]._titleTextBlock.maxHeight=n[d].titleWrap?0.8*g.height:1.5*n[d].titleFontSize,n[d]._titleTextBlock.angle=0}if(\"normal\"===e){for(var z=[],C=[],F=[],B=[],P=[],R=[],S=[],T=[];4>s;){var E=0,U=0,Y=0,X=0,W=e=0,M=0,$=0,Z=0,V=0,N=0,ba=0;if(b&&0<b.length)for(F=[],d=N=0;d<b.length;d++)F.push(Math.ceil(b[d]?\nb[d].createLabelsAndCalculateWidth():0)),N+=F[d],M+=b[d]?b[d].margin:0;else F.push(Math.ceil(b[0]?b[0].createLabelsAndCalculateWidth():0));S.push(F);if(c&&0<c.length)for(B=[],d=ba=0;d<c.length;d++)B.push(Math.ceil(c[d]?c[d].createLabelsAndCalculateWidth():0)),ba+=B[d],$+=c[d]?c[d].margin:0;else B.push(Math.ceil(c[0]?c[0].createLabelsAndCalculateWidth():0));T.push(B);h=Math.round(g.x1+N+M);t=Math.round(g.x2-ba-$>m.width-10?m.width-10:g.x2-ba-$);if(a&&0<a.length)for(z=[],d=Z=0;d<a.length;d++)a[d]&&\n(a[d].lineCoordinates={}),a[d].lineCoordinates.width=Math.abs(t-h),a[d].title&&(a[d]._titleTextBlock.maxWidth=0<a[d].titleMaxWidth&&a[d].titleMaxWidth<a[d].lineCoordinates.width?a[d].titleMaxWidth:a[d].lineCoordinates.width),z.push(Math.ceil(a[d]?a[d].createLabelsAndCalculateHeight():0)),Z+=z[d],e+=a[d]?a[d].margin:0;else z.push(Math.ceil(a[0]?a[0].createLabelsAndCalculateHeight():0));P.push(z);if(f&&0<f.length)for(C=[],d=V=0;d<f.length;d++)f[d]&&(f[d].lineCoordinates={}),f[d].lineCoordinates.width=\nMath.abs(t-h),f[d].title&&(f[d]._titleTextBlock.maxWidth=0<f[d].titleMaxWidth&&f[d].titleMaxWidth<f[d].lineCoordinates.width?f[d].titleMaxWidth:f[d].lineCoordinates.width),C.push(Math.ceil(f[d]?f[d].createLabelsAndCalculateHeight():0)),V+=C[d],W+=f[d]?f[d].margin:0;else C.push(Math.ceil(f[0]?f[0].createLabelsAndCalculateHeight():0));R.push(C);if(a&&0<a.length)for(d=0;d<a.length;d++)a[d]&&(a[d].lineCoordinates.x1=h,t=Math.round(g.x2-ba-$>m.width-10?m.width-10:g.x2-ba-$),a[d]._labels&&1<a[d]._labels.length&&\n(l=k=0,k=a[d]._labels[1],l=\"dateTime\"===a[d].valueType?a[d]._labels[a[d]._labels.length-2]:a[d]._labels[a[d]._labels.length-1],x=k.textBlock.width*Math.cos(Math.PI/180*Math.abs(k.textBlock.angle))+(k.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(k.textBlock.angle)),u=l.textBlock.width*Math.cos(Math.PI/180*Math.abs(l.textBlock.angle))+(l.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(l.textBlock.angle))),a[d]&&(a[d].labelAutoFit&&!y(A)&&!y(I))&&(l=0,\n0<a[d].labelAngle?I+u>t&&(l+=0<a[d].labelAngle?I+u-t-ba:0):0>a[d].labelAngle?A-x<h&&A-x<a[d].viewportMinimum&&(J=h-(M+a[d].tickLength+F+A-x+a[d].labelFontSize/2)):0===a[d].labelAngle&&(I+u>t&&(l=I+u/2-t-ba),A-x<h&&A-x<a[d].viewportMinimum&&(J=h-M-a[d].tickLength-F-A+x/2)),a[d].viewportMaximum===a[d].maximum&&a[d].viewportMinimum===a[d].minimum&&0<a[d].labelAngle&&0<l?t-=l:a[d].viewportMaximum===a[d].maximum&&a[d].viewportMinimum===a[d].minimum&&0>a[d].labelAngle&&0<J?h+=J:a[d].viewportMaximum===a[d].maximum&&\na[d].viewportMinimum===a[d].minimum&&0===a[d].labelAngle&&(0<J&&(h+=J),0<l&&(t-=l))),m.panEnabled?Z=m.sessionVariables.axisX.height:m.sessionVariables.axisX.height=Z,l=Math.round(g.y2-Z-e+E),k=Math.round(g.y2),a[d].lineCoordinates.x2=t,a[d].lineCoordinates.width=t-h,a[d].lineCoordinates.y1=l,a[d].lineCoordinates.y2=l,a[d].bounds={x1:h,y1:l,x2:t,y2:k-(Z+e-z[d]-E),width:t-h,height:k-l}),E+=z[d]+a[d].margin;if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].lineCoordinates.x1=Math.round(g.x1+N+M),f[d].lineCoordinates.x2=\nMath.round(g.x2-ba-$>m.width-10?m.width-10:g.x2-ba-$),f[d].lineCoordinates.width=Math.abs(t-h),f[d]._labels&&1<f[d]._labels.length&&(k=f[d]._labels[1],l=\"dateTime\"===f[d].valueType?f[d]._labels[f[d]._labels.length-2]:f[d]._labels[f[d]._labels.length-1],x=k.textBlock.width*Math.cos(Math.PI/180*Math.abs(k.textBlock.angle))+(k.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(k.textBlock.angle)),u=l.textBlock.width*Math.cos(Math.PI/180*Math.abs(l.textBlock.angle))+(l.textBlock.height-\nl.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(l.textBlock.angle))),m.panEnabled?V=m.sessionVariables.axisX2.height:m.sessionVariables.axisX2.height=V,l=Math.round(g.y1),k=Math.round(g.y2+f[d].margin),f[d].lineCoordinates.y1=l+V+W-U,f[d].lineCoordinates.y2=l,f[d].bounds={x1:h,y1:l+(V+W-C[d]-U),x2:t,y2:k,width:t-h,height:k-l},U+=C[d]+f[d].margin;if(b&&0<b.length)for(d=0;d<b.length;d++)M=10,b[d]&&(h=Math.round(a[0]?a[0].lineCoordinates.x1:f[0].lineCoordinates.x1),M=b[d]._labels&&0<b[d]._labels.length?\nb[d]._labels[b[d]._labels.length-1].textBlock.height/2:10,l=Math.round(g.y1+V+W<Math.max(M,10)?Math.max(M,10):g.y1+V+W),t=Math.round(a[0]?a[0].lineCoordinates.x1:f[0].lineCoordinates.x1),M=0<a.length?0:b[d]._labels&&0<b[d]._labels.length?b[d]._labels[0].textBlock.height/2:10,k=Math.round(g.y2-Z-e-M),b[d].lineCoordinates={x1:t-Y,y1:l,x2:t-Y,y2:k,height:Math.abs(k-l)},b[d].bounds={x1:h-(F[d]+Y),y1:l,x2:t,y2:k,width:t-h,height:k-l},b[d].title&&(b[d]._titleTextBlock.maxWidth=0<b[d].titleMaxWidth&&b[d].titleMaxWidth<\nb[d].lineCoordinates.height?b[d].titleMaxWidth:b[d].lineCoordinates.height),Y+=F[d]+b[d].margin);if(c&&0<c.length)for(d=0;d<c.length;d++)c[d]&&(h=Math.round(a[0]?a[0].lineCoordinates.x2:f[0].lineCoordinates.x2),t=Math.round(h),M=c[d]._labels&&0<c[d]._labels.length?c[d]._labels[c[d]._labels.length-1].textBlock.height/2:0,l=Math.round(g.y1+V+W<Math.max(M,10)?Math.max(M,10):g.y1+V+W),M=0<a.length?0:c[d]._labels&&0<c[d]._labels.length?c[d]._labels[0].textBlock.height/2:0,k=Math.round(g.y2-(Z+e+M)),c[d].lineCoordinates=\n{x1:h+X,y1:l,x2:h+X,y2:k,height:Math.abs(k-l)},c[d].bounds={x1:h,y1:l,x2:t+(B[d]+X),y2:k,width:t-h,height:k-l},c[d].title&&(c[d]._titleTextBlock.maxWidth=0<c[d].titleMaxWidth&&c[d].titleMaxWidth<c[d].lineCoordinates.height?c[d].titleMaxWidth:c[d].lineCoordinates.height),X+=B[d]+c[d].margin);if(a&&0<a.length)for(d=0;d<a.length;d++)a[d]&&(a[d].calculateValueToPixelConversionParameters(),a[d].calculateBreaksSizeInValues(),a[d]._labels&&1<a[d]._labels.length&&(A=(a[d].logarithmic?Math.log(a[d]._labels[1].position/\na[d].viewportMinimum)/a[d].conversionParameters.lnLogarithmBase:a[d]._labels[1].position-a[d].viewportMinimum)*Math.abs(a[d].conversionParameters.pixelPerUnit)+a[d].lineCoordinates.x1,h=a[d]._labels[a[d]._labels.length-(\"dateTime\"===a[d].valueType?2:1)].position,h=a[d].getApparentDifference(a[d].viewportMinimum,h),I=a[d].logarithmic?(1<h?Math.log(h)/a[d].conversionParameters.lnLogarithmBase*Math.abs(a[d].conversionParameters.pixelPerUnit):0)+a[d].lineCoordinates.x1:(0<h?h*Math.abs(a[d].conversionParameters.pixelPerUnit):\n0)+a[d].lineCoordinates.x1));if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].calculateValueToPixelConversionParameters(),f[d].calculateBreaksSizeInValues(),f[d]._labels&&1<f[d]._labels.length&&(A=(f[d].logarithmic?Math.log(f[d]._labels[1].position/f[d].viewportMinimum)/f[d].conversionParameters.lnLogarithmBase:f[d]._labels[1].position-f[d].viewportMinimum)*Math.abs(f[d].conversionParameters.pixelPerUnit)+f[d].lineCoordinates.x1,h=f[d]._labels[f[d]._labels.length-(\"dateTime\"===f[d].valueType?2:1)].position,\nh=f[d].getApparentDifference(f[d].viewportMinimum,h),I=f[d].logarithmic?(1<h?Math.log(h)/f[d].conversionParameters.lnLogarithmBase*Math.abs(f[d].conversionParameters.pixelPerUnit):0)+f[d].lineCoordinates.x1:(0<h?h*Math.abs(f[d].conversionParameters.pixelPerUnit):0)+f[d].lineCoordinates.x1);for(d=0;d<n.length;d++)\"axisY\"===n[d].type&&(n[d].calculateValueToPixelConversionParameters(),n[d].calculateBreaksSizeInValues());if(0<s){if(a&&0<a.length)for(d=0;d<a.length;d++)q=P[s-1][d]===P[s][d]?!0:!1;else q=\n!0;if(f&&0<f.length)for(d=0;d<f.length;d++)L=R[s-1][d]===R[s][d]?!0:!1;else L=!0;if(b&&0<b.length)for(d=0;d<b.length;d++)K=S[s-1][d]===S[s][d]?!0:!1;else K=!0;if(c&&0<c.length)for(d=0;d<c.length;d++)O=T[s-1][d]===T[s][d]?!0:!1;else O=!0}if(q&&L&&K&&O)break;s++}p.save();p.beginPath();a[0]&&p.rect(5,a[0].bounds.y1,a[0].chart.width-10,a[0].bounds.height);f[0]&&p.rect(5,f[f.length-1].bounds.y1,f[0].chart.width-10,f[0].bounds.height);p.clip();if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].calculateStripLinesThicknessInValues(),\na[d].calculateBreaksInPixels(),a[d].renderLabelsTicksAndTitle();if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].calculateStripLinesThicknessInValues(),f[d].calculateBreaksInPixels(),f[d].renderLabelsTicksAndTitle();p.restore();if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].calculateStripLinesThicknessInValues(),b[d].calculateBreaksInPixels(),b[d].renderLabelsTicksAndTitle();if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].calculateStripLinesThicknessInValues(),c[d].calculateBreaksInPixels(),c[d].renderLabelsTicksAndTitle()}else{A=\n[];J=[];x=[];I=[];u=[];P=[];R=[];for(S=[];4>s;){V=Z=N=X=$=M=W=e=Y=T=U=E=0;if(a&&0<a.length)for(x=[],d=Z=0;d<a.length;d++)x.push(Math.ceil(a[d]?a[d].createLabelsAndCalculateWidth():0)),Z+=x[d],e+=a[d]?a[d].margin:0;else x.push(Math.ceil(a[0]?a[0].createLabelsAndCalculateWidth():0));R.push(x);if(f&&0<f.length)for(I=[],d=V=0;d<f.length;d++)I.push(Math.ceil(f[d]?f[d].createLabelsAndCalculateWidth():0)),V+=I[d],W+=f[d]?f[d].margin:0;else I.push(Math.ceil(f[0]?f[0].createLabelsAndCalculateWidth():0));S.push(I);\nif(b&&0<b.length)for(d=0;d<b.length;d++)b[d].lineCoordinates={},h=Math.round(g.x1+Z+e),t=Math.round(g.x2-V-W>m.width-10?m.width-10:g.x2-V-W),b[d].labelAutoFit&&!y(z)&&(0<!a.length&&(h=0>b[d].labelAngle?Math.max(h,z):0===b[d].labelAngle?Math.max(h,z/2):h),0<!f.length&&(t=0<b[d].labelAngle?t-C/2:0===b[d].labelAngle?t-C/2:t)),b[d].lineCoordinates.x1=h,b[d].lineCoordinates.x2=t,b[d].lineCoordinates.width=Math.abs(t-h),b[d].title&&(b[d]._titleTextBlock.maxWidth=0<b[d].titleMaxWidth&&b[d].titleMaxWidth<\nb[d].lineCoordinates.width?b[d].titleMaxWidth:b[d].lineCoordinates.width);if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].lineCoordinates={},h=Math.round(g.x1+Z+e),t=Math.round(g.x2-V-W>c[d].chart.width-10?c[d].chart.width-10:g.x2-V-W),c[d]&&c[d].labelAutoFit&&!y(F)&&(0<!a.length&&(h=0<c[d].labelAngle?Math.max(h,F):0===c[d].labelAngle?Math.max(h,F/2):h),0<!f.length&&(t-=B/2)),c[d].lineCoordinates.x1=h,c[d].lineCoordinates.x2=t,c[d].lineCoordinates.width=Math.abs(t-h),c[d].title&&(c[d]._titleTextBlock.maxWidth=\n0<c[d].titleMaxWidth&&c[d].titleMaxWidth<c[d].lineCoordinates.width?c[d].titleMaxWidth:c[d].lineCoordinates.width);if(b&&0<b.length)for(A=[],d=X=0;d<b.length;d++)A.push(Math.ceil(b[d]?b[d].createLabelsAndCalculateHeight():0)),X+=A[d]+b[d].margin,M+=b[d].margin;else A.push(Math.ceil(b[0]?b[0].createLabelsAndCalculateHeight():0));u.push(A);if(c&&0<c.length)for(J=[],d=N=0;d<c.length;d++)J.push(Math.ceil(c[d]?c[d].createLabelsAndCalculateHeight():0)),N+=J[d],$+=c[d].margin;else J.push(Math.ceil(c[0]?\nc[0].createLabelsAndCalculateHeight():0));P.push(J);if(b&&0<b.length)for(d=0;d<b.length;d++)0<b[d]._labels.length&&(k=b[d]._labels[0],l=b[d]._labels[b[d]._labels.length-1],z=k.textBlock.width*Math.cos(Math.PI/180*Math.abs(k.textBlock.angle))+(k.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(k.textBlock.angle)),C=l.textBlock.width*Math.cos(Math.PI/180*Math.abs(l.textBlock.angle))+(l.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(l.textBlock.angle)));\nif(c&&0<c.length)for(d=0;d<c.length;d++)c[d]&&0<c[d]._labels.length&&(k=c[d]._labels[0],l=c[d]._labels[c[d]._labels.length-1],F=k.textBlock.width*Math.cos(Math.PI/180*Math.abs(k.textBlock.angle))+(k.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(k.textBlock.angle)),B=l.textBlock.width*Math.cos(Math.PI/180*Math.abs(l.textBlock.angle))+(l.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(l.textBlock.angle)));if(m.panEnabled)for(d=0;d<b.length;d++)A[d]=m.sessionVariables.axisY.height;\nelse for(d=0;d<b.length;d++)m.sessionVariables.axisY.height=A[d];if(b&&0<b.length)for(d=b.length-1;0<=d;d--)l=Math.round(g.y2),k=Math.round(g.y2>b[d].chart.height-10?b[d].chart.height-10:g.y2),b[d].lineCoordinates.y1=l-(A[d]+b[d].margin+E),b[d].lineCoordinates.y2=l-(A[d]+b[d].margin+E),b[d].bounds={x1:h,y1:l-(A[d]+E+b[d].margin),x2:t,y2:k-(E+b[d].margin),width:t-h,height:A[d]},b[d].title&&(b[d]._titleTextBlock.maxWidth=0<b[d].titleMaxWidth&&b[d].titleMaxWidth<b[d].lineCoordinates.width?b[d].titleMaxWidth:\nb[d].lineCoordinates.width),E+=A[d]+b[d].margin;if(c&&0<c.length)for(d=c.length-1;0<=d;d--)c[d]&&(l=Math.round(g.y1),k=Math.round(g.y1+(J[d]+c[d].margin+U)),c[d].lineCoordinates.y1=k,c[d].lineCoordinates.y2=k,c[d].bounds={x1:h,y1:l+(c[d].margin+U),x2:t,y2:k,width:t-h,height:N},c[d].title&&(c[d]._titleTextBlock.maxWidth=0<c[d].titleMaxWidth&&c[d].titleMaxWidth<c[d].lineCoordinates.width?c[d].titleMaxWidth:c[d].lineCoordinates.width),U+=J[d]+c[d].margin);if(a&&0<a.length)for(d=0;d<a.length;d++){M=a[d]._labels&&\n0<a[d]._labels.length?a[d]._labels[0].textBlock.fontSize/2:0;h=Math.round(g.x1+e);l=c&&0<c.length?Math.round(c[0]?c[0].lineCoordinates.y2:g.y1<Math.max(M,10)?Math.max(M,10):g.y1):g.y1<Math.max(M,10)?Math.max(M,10):g.y1;t=Math.round(g.x1+Z+e);k=b&&0<b.length?Math.round(b[0]?b[0].lineCoordinates.y1:g.y2-X>m.height-Math.max(M,10)?m.height-Math.max(M,10):g.y2-X):g.y2>m.height-Math.max(M,10)?m.height-Math.max(M,10):g.y2;if(b&&0<b.length)for(M=0;M<b.length;M++)b[M]&&b[M].labelAutoFit&&(t=0>b[M].labelAngle?\nMath.max(t,z):0===b[M].labelAngle?Math.max(t,z/2):t,h=0>b[M].labelAngle||0===b[M].labelAngle?t-Z:h);if(c&&0<c.length)for(M=0;M<c.length;M++)c[M]&&c[M].labelAutoFit&&(t=c[M].lineCoordinates.x1,h=t-Z);a[d].lineCoordinates={x1:t-T,y1:l,x2:t-T,y2:k,height:Math.abs(k-l)};a[d].bounds={x1:t-(x[d]+T),y1:l,x2:t,y2:k,width:t-h,height:k-l};a[d].title&&(a[d]._titleTextBlock.maxWidth=0<a[d].titleMaxWidth&&a[d].titleMaxWidth<a[d].lineCoordinates.height?a[d].titleMaxWidth:a[d].lineCoordinates.height);a[d].calculateValueToPixelConversionParameters();\na[d].calculateBreaksSizeInValues();T+=x[d]+a[d].margin}if(f&&0<f.length)for(d=0;d<f.length;d++){M=f[d]._labels&&0<f[d]._labels.length?f[d]._labels[0].textBlock.fontSize/2:0;h=Math.round(g.x1-e);l=c&&0<c.length?Math.round(c[0]?c[0].lineCoordinates.y2:g.y1<Math.max(M,10)?Math.max(M,10):g.y1):g.y1<Math.max(M,10)?Math.max(M,10):g.y1;t=Math.round(g.x2-V-W);k=b&&0<b.length?Math.round(b[0]?b[0].lineCoordinates.y1:g.y2-X>m.height-Math.max(M,10)?m.height-Math.max(M,10):g.y2-X):g.y2>m.height-Math.max(M,10)?\nm.height-Math.max(M,10):g.y2;if(b&&0<b.length)for(M=0;M<b.length;M++)b[M]&&b[M].labelAutoFit&&(t=0>b[M].labelAngle?Math.max(t,z):0===b[M].labelAngle?Math.max(t,z/2):t,h=0>b[M].labelAngle||0===b[M].labelAngle?t-V:h);if(c&&0<c.length)for(M=0;M<c.length;M++)c[M]&&c[M].labelAutoFit&&(t=c[M].lineCoordinates.x2,h=t-V);f[d].lineCoordinates={x1:t+Y,y1:l,x2:t+Y,y2:k,height:Math.abs(k-l)};f[d].bounds={x1:h,y1:l,x2:t+I[d]+Y,y2:k,width:t-h,height:k-l};f[d].title&&(f[d]._titleTextBlock.maxWidth=0<f[d].titleMaxWidth&&\nf[d].titleMaxWidth<f[d].lineCoordinates.height?f[d].titleMaxWidth:f[d].lineCoordinates.height);f[d].calculateValueToPixelConversionParameters();f[d].calculateBreaksSizeInValues();Y+=I[d]+f[d].margin}for(d=0;d<n.length;d++)\"axisY\"===n[d].type&&(n[d].calculateValueToPixelConversionParameters(),n[d].calculateBreaksSizeInValues());if(0<s){if(a&&0<a.length)for(d=0;d<a.length;d++)q=R[s-1][d]===R[s][d]?!0:!1;else q=!0;if(f&&0<f.length)for(d=0;d<f.length;d++)L=S[s-1][d]===S[s][d]?!0:!1;else L=!0;if(b&&0<\nb.length)for(d=0;d<b.length;d++)K=u[s-1][d]===u[s][d]?!0:!1;else K=!0;if(c&&0<c.length)for(d=0;d<c.length;d++)O=P[s-1][d]===P[s][d]?!0:!1;else O=!0}if(q&&L&&K&&O)break;s++}if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].calculateStripLinesThicknessInValues(),b[d].calculateBreaksInPixels(),b[d].renderLabelsTicksAndTitle();if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].calculateStripLinesThicknessInValues(),c[d].calculateBreaksInPixels(),c[d].renderLabelsTicksAndTitle();if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].calculateStripLinesThicknessInValues(),\na[d].calculateBreaksInPixels(),a[d].renderLabelsTicksAndTitle();if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].calculateStripLinesThicknessInValues(),f[d].calculateBreaksInPixels(),f[d].renderLabelsTicksAndTitle()}m.preparePlotArea();g=m.plotArea;p.save();p.beginPath();p.rect(g.x1,g.y1,Math.abs(g.x2-g.x1),Math.abs(g.y2-g.y1));p.clip();if(a&&0<a.length)for(d=0;d<n.length;d++)n[d].renderStripLinesOfThicknessType(\"value\");if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].renderStripLinesOfThicknessType(\"value\");\nif(b&&0<b.length)for(d=0;d<b.length;d++)b[d].renderStripLinesOfThicknessType(\"value\");if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderStripLinesOfThicknessType(\"value\");if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].renderInterlacedColors();if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].renderInterlacedColors();if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].renderInterlacedColors();if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderInterlacedColors();p.restore();if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].renderGrid(),\nv&&(a[d].createMask(),a[d].renderBreaksBackground());if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].renderGrid(),v&&(f[d].createMask(),f[d].renderBreaksBackground());if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].renderGrid(),v&&(b[d].createMask(),b[d].renderBreaksBackground());if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderGrid(),v&&(c[d].createMask(),c[d].renderBreaksBackground());if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].renderAxisLine();if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].renderAxisLine();\nif(b&&0<b.length)for(d=0;d<b.length;d++)b[d].renderAxisLine();if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderAxisLine();if(a&&0<a.length)for(d=0;d<a.length;d++)a[d].renderStripLinesOfThicknessType(\"pixel\");if(f&&0<f.length)for(d=0;d<f.length;d++)f[d].renderStripLinesOfThicknessType(\"pixel\");if(b&&0<b.length)for(d=0;d<b.length;d++)b[d].renderStripLinesOfThicknessType(\"pixel\");if(c&&0<c.length)for(d=0;d<c.length;d++)c[d].renderStripLinesOfThicknessType(\"pixel\")};C.prototype.calculateStripLinesThicknessInValues=\nfunction(){for(var a=0;a<this.stripLines.length;a++)if(null!==this.stripLines[a].startValue&&null!==this.stripLines[a].endValue){var f=Math.min(this.stripLines[a].startValue,this.stripLines[a].endValue),b=Math.max(this.stripLines[a].startValue,this.stripLines[a].endValue),f=this.getApparentDifference(f,b);this.stripLines[a].value=this.logarithmic?this.stripLines[a].value*Math.sqrt(Math.log(this.stripLines[a].endValue/this.stripLines[a].startValue)/Math.log(f)):this.stripLines[a].value+(Math.abs(this.stripLines[a].endValue-\nthis.stripLines[a].startValue)-f)/2;this.stripLines[a].thickness=f;this.stripLines[a]._thicknessType=\"value\"}};C.prototype.calculateBreaksSizeInValues=function(){for(var a=\"left\"===this._position||\"right\"===this._position?this.lineCoordinates.height||this.chart.height:this.lineCoordinates.width||this.chart.width,f=this.scaleBreaks?this.scaleBreaks._appliedBreaks:[],b=this.conversionParameters.pixelPerUnit||a/(this.logarithmic?this.conversionParameters.maximum/this.conversionParameters.minimum:this.conversionParameters.maximum-\nthis.conversionParameters.minimum),c=this.scaleBreaks&&!y(this.scaleBreaks.options.spacing),e,g=0;g<f.length;g++)e=c||!y(f[g].options.spacing),f[g].spacing=J(f[g].spacing,a,8,e?0.1*a:8,e?0:3)<<0,f[g].size=0>f[g].spacing?0:Math.abs(f[g].spacing/b),this.logarithmic&&(f[g].size=Math.pow(this.logarithmBase,f[g].size))};C.prototype.calculateBreaksInPixels=function(){if(!(this.scaleBreaks&&0>=this.scaleBreaks._appliedBreaks.length)){var a=this.scaleBreaks?this.scaleBreaks._appliedBreaks:[];a.length&&(this.scaleBreaks.firstBreakIndex=\nthis.scaleBreaks.lastBreakIndex=null);for(var f=0;f<a.length&&!(a[f].startValue>this.conversionParameters.maximum);f++)a[f].endValue<this.conversionParameters.minimum||(y(this.scaleBreaks.firstBreakIndex)&&(this.scaleBreaks.firstBreakIndex=f),a[f].startValue>=this.conversionParameters.minimum&&(a[f].startPixel=this.convertValueToPixel(a[f].startValue),this.scaleBreaks.lastBreakIndex=f),a[f].endValue<=this.conversionParameters.maximum&&(a[f].endPixel=this.convertValueToPixel(a[f].endValue)))}};C.prototype.renderLabelsTicksAndTitle=\nfunction(){var a=this,f=!1,b=0,c=0,e=1,g=0;0!==this.labelAngle&&360!==this.labelAngle&&(e=1.2);if(\"undefined\"===typeof this.options.interval){if(\"bottom\"===this._position||\"top\"===this._position)if(this.logarithmic&&!this.equidistantInterval&&this.labelAutoFit){for(var b=[],e=0!==this.labelAngle&&360!==this.labelAngle?1:1.2,h,l=this.viewportMaximum,m=this.lineCoordinates.width/Math.log(this.range),k=this._labels.length-1;0<=k;k--){p=this._labels[k];if(p.position<this.viewportMinimum)break;p.position>\nthis.viewportMaximum||!(k===this._labels.length-1||h<Math.log(l/p.position)*m/e)||(b.push(p),l=p.position,h=p.textBlock.width*Math.abs(Math.cos(Math.PI/180*this.labelAngle))+p.textBlock.height*Math.abs(Math.sin(Math.PI/180*this.labelAngle)))}this._labels=b}else{for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||(h=p.textBlock.width*Math.abs(Math.cos(Math.PI/180*this.labelAngle))+p.textBlock.height*Math.abs(Math.sin(Math.PI/180*this.labelAngle)),b+=h);b>this.lineCoordinates.width*\ne&&this.labelAutoFit&&(f=!0)}if(\"left\"===this._position||\"right\"===this._position)if(this.logarithmic&&!this.equidistantInterval&&this.labelAutoFit){for(var b=[],r,l=this.viewportMaximum,m=this.lineCoordinates.height/Math.log(this.range),k=this._labels.length-1;0<=k;k--){p=this._labels[k];if(p.position<this.viewportMinimum)break;p.position>this.viewportMaximum||!(k===this._labels.length-1||r<Math.log(l/p.position)*m)||(b.push(p),l=p.position,r=p.textBlock.height*Math.abs(Math.cos(Math.PI/180*this.labelAngle))+\np.textBlock.width*Math.abs(Math.sin(Math.PI/180*this.labelAngle)))}this._labels=b}else{for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||(r=p.textBlock.height*Math.abs(Math.cos(Math.PI/180*this.labelAngle))+p.textBlock.width*Math.abs(Math.sin(Math.PI/180*this.labelAngle)),c+=r);c>this.lineCoordinates.height*e&&this.labelAutoFit&&(f=!0)}}this.logarithmic&&(!this.equidistantInterval&&this.labelAutoFit)&&this._labels.sort(function(a,b){return a.position-b.position});\nvar k=0,p,n;if(\"bottom\"===this._position){for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||(p.position>this.viewportMaximum||f&&0!==g++%2&&this.labelAutoFit)||(n=this.getPixelCoordinatesOnAxis(p.position),this.tickThickness&&\"inside\"!=this.labelPlacement&&(this.ctx.lineWidth=this.tickThickness,this.ctx.strokeStyle=this.tickColor,c=1===this.ctx.lineWidth%2?(n.x<<0)+0.5:n.x<<0,this.ctx.beginPath(),this.ctx.moveTo(c,n.y<<0),this.ctx.lineTo(c,n.y+this.tickLength<<0),\nthis.ctx.stroke()),0===p.textBlock.angle?(n.x-=p.textBlock.width/2,n.y=\"inside\"===this.labelPlacement?n.y-(this.tickLength+p.textBlock.fontSize/2):n.y+this.tickLength+p.textBlock.fontSize/2):(n.x=\"inside\"===this.labelPlacement?0>this.labelAngle?n.x:n.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):n.x-(0>this.labelAngle?p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0),n.y=\"inside\"===this.labelPlacement?0>this.labelAngle?n.y-this.tickLength-5:n.y-this.tickLength-Math.abs(p.textBlock.width*\nMath.sin(Math.PI/180*this.labelAngle)+5):n.y+this.tickLength+Math.abs(0>this.labelAngle?p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle)-5:5)),p.textBlock.x=n.x,p.textBlock.y=n.y);\"inside\"===this.labelPlacement&&this.chart.addEventListener(\"dataAnimationIterationEnd\",function(){for(k=0;k<a._labels.length;k++)if(p=a._labels[k],!(p.position<a.viewportMinimum||p.position>a.viewportMaximum||f&&0!==g++%2&&a.labelAutoFit)&&(n=a.getPixelCoordinatesOnAxis(p.position),a.tickThickness)){a.ctx.lineWidth=\na.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===a.ctx.lineWidth%2?(n.x<<0)+0.5:n.x<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(b,n.y<<0);a.ctx.lineTo(b,n.y-a.tickLength<<0);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.lineCoordinates.x1+this.lineCoordinates.width/2-this._titleTextBlock.width/2,this._titleTextBlock.y=this.bounds.y2-this._titleTextBlock.height-3,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}else if(\"top\"===\nthis._position){for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||(p.position>this.viewportMaximum||f&&0!==g++%2&&this.labelAutoFit)||(n=this.getPixelCoordinatesOnAxis(p.position),this.tickThickness&&\"inside\"!=this.labelPlacement&&(this.ctx.lineWidth=this.tickThickness,this.ctx.strokeStyle=this.tickColor,c=1===this.ctx.lineWidth%2?(n.x<<0)+0.5:n.x<<0,this.ctx.beginPath(),this.ctx.moveTo(c,n.y<<0),this.ctx.lineTo(c,n.y-this.tickLength<<0),this.ctx.stroke()),0===p.textBlock.angle?\n(n.x-=p.textBlock.width/2,n.y=\"inside\"===this.labelPlacement?n.y+this.labelFontSize/2+this.tickLength+5:n.y-(this.tickLength+p.textBlock.height-p.textBlock.fontSize/2)):(n.x=\"inside\"===this.labelPlacement?0<this.labelAngle?n.x:n.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):n.x+(p.textBlock.height-this.tickLength-this.labelFontSize)*Math.sin(Math.PI/180*this.labelAngle)-(0<this.labelAngle?p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0),n.y=\"inside\"===this.labelPlacement?0<this.labelAngle?\nn.y+this.tickLength+5:n.y-p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle)+this.tickLength+5:n.y-(this.tickLength+((p.textBlock.height-p.textBlock.fontSize/2)*Math.cos(Math.PI/180*this.labelAngle)+(0<this.labelAngle?p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle):0)))),p.textBlock.x=n.x,p.textBlock.y=n.y);\"inside\"===this.labelPlacement&&this.chart.addEventListener(\"dataAnimationIterationEnd\",function(){for(k=0;k<a._labels.length;k++)if(p=a._labels[k],!(p.position<a.viewportMinimum||\np.position>a.viewportMaximum||f&&0!==g++%2&&a.labelAutoFit)&&(n=a.getPixelCoordinatesOnAxis(p.position),a.tickThickness)){a.ctx.lineWidth=a.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===this.ctx.lineWidth%2?(n.x<<0)+0.5:n.x<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(b,n.y<<0);a.ctx.lineTo(b,n.y+a.tickLength<<0);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.lineCoordinates.x1+this.lineCoordinates.width/2-this._titleTextBlock.width/\n2,this._titleTextBlock.y=this.bounds.y1+1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}else if(\"left\"===this._position){for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||(p.position>this.viewportMaximum||f&&0!==g++%2&&this.labelAutoFit)||(n=this.getPixelCoordinatesOnAxis(p.position),this.tickThickness&&\"inside\"!=this.labelPlacement&&(this.ctx.lineWidth=this.tickThickness,this.ctx.strokeStyle=this.tickColor,c=1===this.ctx.lineWidth%\n2?(n.y<<0)+0.5:n.y<<0,this.ctx.beginPath(),this.ctx.moveTo(n.x<<0,c),this.ctx.lineTo(n.x-this.tickLength<<0,c),this.ctx.stroke()),0===this.labelAngle?(p.textBlock.y=n.y,p.textBlock.x=\"inside\"===this.labelPlacement?n.x+this.tickLength+5:n.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-this.tickLength-5):(p.textBlock.y=\"inside\"===this.labelPlacement?n.y:n.y-p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle),p.textBlock.x=\"inside\"===this.labelPlacement?n.x+this.tickLength+5:0<this.labelAngle?\nn.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-this.tickLength-5:n.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+(p.textBlock.height-p.textBlock.fontSize/2-5)*Math.sin(Math.PI/180*this.labelAngle)-this.tickLength));\"inside\"===this.labelPlacement&&this.chart.addEventListener(\"dataAnimationIterationEnd\",function(){for(k=0;k<a._labels.length;k++)if(p=a._labels[k],!(p.position<a.viewportMinimum||p.position>a.viewportMaximum||f&&0!==g++%2&&a.labelAutoFit)&&(n=a.getPixelCoordinatesOnAxis(p.position),\na.tickThickness)){a.ctx.lineWidth=a.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===a.ctx.lineWidth%2?(n.y<<0)+0.5:n.y<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(n.x<<0,b);a.ctx.lineTo(n.x+a.tickLength<<0,b);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.bounds.x1+1,this._titleTextBlock.y=this.lineCoordinates.height/2+this._titleTextBlock.width/2+this.lineCoordinates.y1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}else if(\"right\"===\nthis._position){for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||(p.position>this.viewportMaximum||f&&0!==g++%2&&this.labelAutoFit)||(n=this.getPixelCoordinatesOnAxis(p.position),this.tickThickness&&\"inside\"!=this.labelPlacement&&(this.ctx.lineWidth=this.tickThickness,this.ctx.strokeStyle=this.tickColor,c=1===this.ctx.lineWidth%2?(n.y<<0)+0.5:n.y<<0,this.ctx.beginPath(),this.ctx.moveTo(n.x<<0,c),this.ctx.lineTo(n.x+this.tickLength<<0,c),this.ctx.stroke()),0===this.labelAngle?\n(p.textBlock.y=n.y,p.textBlock.x=\"inside\"===this.labelPlacement?n.x-p.textBlock.width-this.tickLength-5:n.x+this.tickLength+5):(p.textBlock.y=\"inside\"===this.labelPlacement?n.y-p.textBlock.width*Math.sin(Math.PI/180*this.labelAngle):0>this.labelAngle?n.y:n.y-(p.textBlock.height-p.textBlock.fontSize/2-5)*Math.cos(Math.PI/180*this.labelAngle),p.textBlock.x=\"inside\"===this.labelPlacement?n.x-p.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-this.tickLength-5:0<this.labelAngle?n.x+(p.textBlock.height-\np.textBlock.fontSize/2-5)*Math.sin(Math.PI/180*this.labelAngle)+this.tickLength:n.x+this.tickLength+5));\"inside\"===this.labelPlacement&&this.chart.addEventListener(\"dataAnimationIterationEnd\",function(){for(k=0;k<a._labels.length;k++)if(p=a._labels[k],!(p.position<a.viewportMinimum||p.position>a.viewportMaximum||f&&0!==g++%2&&a.labelAutoFit)&&(n=a.getPixelCoordinatesOnAxis(p.position),a.tickThickness)){a.ctx.lineWidth=a.tickThickness;a.ctx.strokeStyle=a.tickColor;var b=1===a.ctx.lineWidth%2?(n.y<<\n0)+0.5:n.y<<0;a.ctx.save();a.ctx.beginPath();a.ctx.moveTo(n.x<<0,b);a.ctx.lineTo(n.x-a.tickLength<<0,b);a.ctx.stroke();a.ctx.restore()}},this);this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.bounds.x2-1,this._titleTextBlock.y=this.lineCoordinates.height/2-this._titleTextBlock.width/2+this.lineCoordinates.y1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}g=0;if(\"inside\"===this.labelPlacement)this.chart.addEventListener(\"dataAnimationIterationEnd\",\nfunction(){for(k=0;k<a._labels.length;k++)p=a._labels[k],p.position<a.viewportMinimum||(p.position>a.viewportMaximum||f&&0!==g++%2&&a.labelAutoFit)||(a.ctx.save(),a.ctx.beginPath(),p.textBlock.render(!0),a.ctx.restore())},p.textBlock);else for(k=0;k<this._labels.length;k++)p=this._labels[k],p.position<this.viewportMinimum||(p.position>this.viewportMaximum||f&&0!==g++%2&&this.labelAutoFit)||p.textBlock.render(!0)};C.prototype.renderInterlacedColors=function(){var a=this.chart.plotArea.ctx,f,b,c=this.chart.plotArea,\ne=0;f=!0;if((\"bottom\"===this._position||\"top\"===this._position)&&this.interlacedColor)for(a.fillStyle=this.interlacedColor,e=0;e<this._labels.length;e++)f?(f=this.getPixelCoordinatesOnAxis(this._labels[e].position),b=e+1>this._labels.length-1?this.getPixelCoordinatesOnAxis(this.viewportMaximum):this.getPixelCoordinatesOnAxis(this._labels[e+1].position),a.fillRect(Math.min(b.x,f.x),c.y1,Math.abs(b.x-f.x),Math.abs(c.y1-c.y2)),f=!1):f=!0;else if((\"left\"===this._position||\"right\"===this._position)&&this.interlacedColor)for(a.fillStyle=\nthis.interlacedColor,e=0;e<this._labels.length;e++)f?(b=this.getPixelCoordinatesOnAxis(this._labels[e].position),f=e+1>this._labels.length-1?this.getPixelCoordinatesOnAxis(this.viewportMaximum):this.getPixelCoordinatesOnAxis(this._labels[e+1].position),a.fillRect(c.x1,Math.min(b.y,f.y),Math.abs(c.x1-c.x2),Math.abs(f.y-b.y)),f=!1):f=!0;a.beginPath()};C.prototype.renderStripLinesOfThicknessType=function(a){if(this.stripLines&&0<this.stripLines.length&&a){for(var f=this,b,c=0,e=0,g=!1,h=!1,l=[],m=[],\nh=!1,c=0;c<this.stripLines.length;c++){var k=this.stripLines[c];k._thicknessType===a&&(\"pixel\"===a&&(k.value<this.viewportMinimum||k.value>this.viewportMaximum||y(k.value)||isNaN(this.range))||l.push(k))}for(c=0;c<this._stripLineLabels.length;c++)if(k=this.stripLines[c],b=this._stripLineLabels[c],!(b.position<this.viewportMinimum||b.position>this.viewportMaximum||isNaN(this.range))){a=this.getPixelCoordinatesOnAxis(b.position);if(\"outside\"===b.stripLine.labelPlacement)if(k&&(this.ctx.strokeStyle=\nk.color,\"pixel\"===k._thicknessType&&(this.ctx.lineWidth=k.thickness)),\"bottom\"===this._position){var r=1===this.ctx.lineWidth%2?(a.x<<0)+0.5:a.x<<0;this.ctx.beginPath();this.ctx.moveTo(r,a.y<<0);this.ctx.lineTo(r,a.y+this.tickLength<<0);this.ctx.stroke();0===this.labelAngle?(a.x-=b.textBlock.width/2,a.y+=this.tickLength+b.textBlock.fontSize/2):(a.x-=0>this.labelAngle?b.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0,a.y+=this.tickLength+Math.abs(0>this.labelAngle?b.textBlock.width*Math.sin(Math.PI/\n180*this.labelAngle)-5:5))}else\"top\"===this._position?(r=1===this.ctx.lineWidth%2?(a.x<<0)+0.5:a.x<<0,this.ctx.beginPath(),this.ctx.moveTo(r,a.y<<0),this.ctx.lineTo(r,a.y-this.tickLength<<0),this.ctx.stroke(),0===this.labelAngle?(a.x-=b.textBlock.width/2,a.y-=this.tickLength+b.textBlock.height):(a.x+=(b.textBlock.height-this.tickLength-this.labelFontSize/2)*Math.sin(Math.PI/180*this.labelAngle)-(0<this.labelAngle?b.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0),a.y-=this.tickLength+(b.textBlock.height*\nMath.cos(Math.PI/180*this.labelAngle)+(0<this.labelAngle?b.textBlock.width*Math.sin(Math.PI/180*this.labelAngle):0)))):\"left\"===this._position?(r=1===this.ctx.lineWidth%2?(a.y<<0)+0.5:a.y<<0,this.ctx.beginPath(),this.ctx.moveTo(a.x<<0,r),this.ctx.lineTo(a.x-this.tickLength<<0,r),this.ctx.stroke(),0===this.labelAngle?a.x=a.x-b.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-this.tickLength-5:(a.y-=b.textBlock.width*Math.sin(Math.PI/180*this.labelAngle),a.x=0<this.labelAngle?a.x-b.textBlock.width*\nMath.cos(Math.PI/180*this.labelAngle)-this.tickLength-5:a.x-b.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+(b.textBlock.height-b.textBlock.fontSize/2-5)*Math.sin(Math.PI/180*this.labelAngle)-this.tickLength)):\"right\"===this._position&&(r=1===this.ctx.lineWidth%2?(a.y<<0)+0.5:a.y<<0,this.ctx.beginPath(),this.ctx.moveTo(a.x<<0,r),this.ctx.lineTo(a.x+this.tickLength<<0,r),this.ctx.stroke(),0===this.labelAngle?a.x=a.x+this.tickLength+5:(a.y=0>this.labelAngle?a.y:a.y-(b.textBlock.height-b.textBlock.fontSize/\n2-5)*Math.cos(Math.PI/180*this.labelAngle),a.x=0<this.labelAngle?a.x+(b.textBlock.height-b.textBlock.fontSize/2-5)*Math.sin(Math.PI/180*this.labelAngle)+this.tickLength:a.x+this.tickLength+5));else b.textBlock.angle=-90,\"bottom\"===this._position?(b.textBlock.maxWidth=this.options.stripLines[c].labelMaxWidth?this.options.stripLines[c].labelMaxWidth:this.chart.plotArea.height-3,b.textBlock.measureText(),a.x-b.textBlock.height>this.chart.plotArea.x1?y(k.startValue)?a.x-=b.textBlock.height-b.textBlock.fontSize/\n2:a.x-=b.textBlock.height/2-b.textBlock.fontSize/2+3:(b.textBlock.angle=90,y(k.startValue)?a.x+=b.textBlock.height-b.textBlock.fontSize/2:a.x+=b.textBlock.height/2-b.textBlock.fontSize/2+3),a.y=-90===b.textBlock.angle?\"near\"===b.stripLine.labelAlign?this.chart.plotArea.y2-3:\"center\"===b.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1+b.textBlock.width)/2:this.chart.plotArea.y1+b.textBlock.width+3:\"near\"===b.stripLine.labelAlign?this.chart.plotArea.y2-b.textBlock.width-3:\"center\"===\nb.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1-b.textBlock.width)/2:this.chart.plotArea.y1+3):\"top\"===this._position?(b.textBlock.maxWidth=this.options.stripLines[c].labelMaxWidth?this.options.stripLines[c].labelMaxWidth:this.chart.plotArea.height-3,b.textBlock.measureText(),a.x-b.textBlock.height>this.chart.plotArea.x1?y(k.startValue)?a.x-=b.textBlock.height-b.textBlock.fontSize/2:a.x-=b.textBlock.height/2-b.textBlock.fontSize/2+3:(b.textBlock.angle=90,y(k.startValue)?a.x+=\nb.textBlock.height-b.textBlock.fontSize/2:a.x+=b.textBlock.height/2-b.textBlock.fontSize/2+3),a.y=-90===b.textBlock.angle?\"near\"===b.stripLine.labelAlign?this.chart.plotArea.y1+b.textBlock.width+3:\"center\"===b.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1+b.textBlock.width)/2:this.chart.plotArea.y2-3:\"near\"===b.stripLine.labelAlign?this.chart.plotArea.y1+3:\"center\"===b.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1-b.textBlock.width)/2:this.chart.plotArea.y2-\nb.textBlock.width-3):\"left\"===this._position?(b.textBlock.maxWidth=this.options.stripLines[c].labelMaxWidth?this.options.stripLines[c].labelMaxWidth:this.chart.plotArea.width-3,b.textBlock.angle=0,b.textBlock.measureText(),a.y-b.textBlock.height>this.chart.plotArea.y1?y(k.startValue)?a.y-=b.textBlock.height-b.textBlock.fontSize/2:a.y-=b.textBlock.height/2-b.textBlock.fontSize+3:a.y-b.textBlock.height<this.chart.plotArea.y2?a.y+=b.textBlock.fontSize/2+3:y(k.startValue)?a.y-=b.textBlock.height-b.textBlock.fontSize/\n2:a.y-=b.textBlock.height/2-b.textBlock.fontSize+3,a.x=\"near\"===b.stripLine.labelAlign?this.chart.plotArea.x1+3:\"center\"===b.stripLine.labelAlign?(this.chart.plotArea.x2+this.chart.plotArea.x1)/2-b.textBlock.width/2:this.chart.plotArea.x2-b.textBlock.width-3):\"right\"===this._position&&(b.textBlock.maxWidth=this.options.stripLines[c].labelMaxWidth?this.options.stripLines[c].labelMaxWidth:this.chart.plotArea.width-3,b.textBlock.angle=0,b.textBlock.measureText(),a.y-+b.textBlock.height>this.chart.plotArea.y1?\ny(k.startValue)?a.y-=b.textBlock.height-b.textBlock.fontSize/2:a.y-=b.textBlock.height/2-b.textBlock.fontSize/2-3:a.y-b.textBlock.height<this.chart.plotArea.y2?a.y+=b.textBlock.fontSize/2+3:y(k.startValue)?a.y-=b.textBlock.height-b.textBlock.fontSize/2:a.y-=b.textBlock.height/2-b.textBlock.fontSize/2+3,a.x=\"near\"===b.stripLine.labelAlign?this.chart.plotArea.x2-b.textBlock.width-3:\"center\"===b.stripLine.labelAlign?(this.chart.plotArea.x2+this.chart.plotArea.x1)/2-b.textBlock.width/2:this.chart.plotArea.x1+\n3);b.textBlock.x=a.x;b.textBlock.y=a.y;m.push(b)}if(!h){h=!1;this.ctx.save();this.ctx.beginPath();this.ctx.rect(this.chart.plotArea.x1,this.chart.plotArea.y1,this.chart.plotArea.width,this.chart.plotArea.height);this.ctx.clip();for(c=0;c<l.length;c++)k=l[c],k.showOnTop?g||(g=!0,this.chart.addEventListener(\"dataAnimationIterationEnd\",function(){this.ctx.save();this.ctx.beginPath();this.ctx.rect(this.chart.plotArea.x1,this.chart.plotArea.y1,this.chart.plotArea.width,this.chart.plotArea.height);this.ctx.clip();\nfor(e=0;e<l.length;e++)k=l[e],k.showOnTop&&k.render();this.ctx.restore()},k)):k.render();for(c=0;c<m.length;c++)b=m[c],b.stripLine.showOnTop?h||(h=!0,this.chart.addEventListener(\"dataAnimationIterationEnd\",function(){for(e=0;e<m.length;e++)b=m[e],\"inside\"===b.stripLine.labelPlacement&&b.stripLine.showOnTop&&(f.ctx.save(),f.ctx.beginPath(),f.ctx.rect(f.chart.plotArea.x1,f.chart.plotArea.y1,f.chart.plotArea.width,f.chart.plotArea.height),f.ctx.clip(),b.textBlock.render(!0),f.ctx.restore())},b.textBlock)):\n\"inside\"===b.stripLine.labelPlacement&&b.textBlock.render(!0);this.ctx.restore();h=!0}if(h)for(h=!1,c=0;c<m.length;c++)b=m[c],b.stripLine.showOnTop?h||(h=!0,this.chart.addEventListener(\"dataAnimationIterationEnd\",function(){for(e=0;e<m.length;e++)b=m[e],\"outside\"===b.stripLine.labelPlacement&&b.stripLine.showOnTop&&b.textBlock.render(!0)},b.textBlock)):\"outside\"===b.stripLine.labelPlacement&&b.textBlock.render(!0)}};C.prototype.renderBreaksBackground=function(){this.chart._breaksCanvas&&(this.scaleBreaks&&\n0<this.scaleBreaks._appliedBreaks.length&&this.maskCanvas)&&(this.chart._breaksCanvasCtx.save(),this.chart._breaksCanvasCtx.beginPath(),this.chart._breaksCanvasCtx.rect(this.chart.plotArea.x1,this.chart.plotArea.y1,this.chart.plotArea.width,this.chart.plotArea.height),this.chart._breaksCanvasCtx.clip(),this.chart._breaksCanvasCtx.drawImage(this.maskCanvas,0,0,this.chart.width,this.chart.height),this.chart._breaksCanvasCtx.restore())};C.prototype.createMask=function(){if(this.scaleBreaks&&0<this.scaleBreaks._appliedBreaks.length){var a=\nthis.scaleBreaks._appliedBreaks;v?(this.maskCanvas=ta(this.chart.width,this.chart.height),this.maskCtx=this.maskCanvas.getContext(\"2d\")):(this.maskCanvas=this.chart.plotArea.canvas,this.maskCtx=this.chart.plotArea.ctx);this.maskCtx.save();this.maskCtx.beginPath();this.maskCtx.rect(this.chart.plotArea.x1,this.chart.plotArea.y1,this.chart.plotArea.width,this.chart.plotArea.height);this.maskCtx.clip();for(var f=0;f<a.length;f++)a[f].endValue<this.viewportMinimum||(a[f].startValue>this.viewportMaximum||\nisNaN(this.range))||a[f].render(this.maskCtx);this.maskCtx.restore()}};C.prototype.renderCrosshair=function(a,f){this.crosshair.render(a,f)};C.prototype.renderGrid=function(){if(this.gridThickness&&0<this.gridThickness){var a=this.chart.ctx;a.save();var f,b=this.chart.plotArea;a.lineWidth=this.gridThickness;a.strokeStyle=this.gridColor;a.setLineDash&&a.setLineDash(F(this.gridDashType,this.gridThickness));if(\"bottom\"===this._position||\"top\"===this._position)for(c=0;c<this._labels.length;c++)this._labels[c].position<\nthis.viewportMinimum||(this._labels[c].position>this.viewportMaximum||this._labels[c].breaksLabelType)||(a.beginPath(),f=this.getPixelCoordinatesOnAxis(this._labels[c].position),f=1===a.lineWidth%2?(f.x<<0)+0.5:f.x<<0,a.moveTo(f,b.y1<<0),a.lineTo(f,b.y2<<0),a.stroke());else if(\"left\"===this._position||\"right\"===this._position)for(var c=0;c<this._labels.length;c++)this._labels[c].position<this.viewportMinimum||(this._labels[c].position>this.viewportMaximum||this._labels[c].breaksLabelType)||(a.beginPath(),\nf=this.getPixelCoordinatesOnAxis(this._labels[c].position),f=1===a.lineWidth%2?(f.y<<0)+0.5:f.y<<0,a.moveTo(b.x1<<0,f),a.lineTo(b.x2<<0,f),a.stroke());a.restore()}};C.prototype.renderAxisLine=function(){var a=this.chart.ctx,f=v?this.chart._preRenderCtx:a,b=Math.ceil(this.tickThickness/(this.reversed?-2:2)),c=Math.ceil(this.tickThickness/(this.reversed?2:-2)),e,g;f.save();if(\"bottom\"===this._position||\"top\"===this._position){if(this.lineThickness){this.reversed?(e=this.lineCoordinates.x2,g=this.lineCoordinates.x1):\n(e=this.lineCoordinates.x1,g=this.lineCoordinates.x2);f.lineWidth=this.lineThickness;f.strokeStyle=this.lineColor?this.lineColor:\"black\";f.setLineDash&&f.setLineDash(F(this.lineDashType,this.lineThickness));var h=1===this.lineThickness%2?(this.lineCoordinates.y1<<0)+0.5:this.lineCoordinates.y1<<0;f.beginPath();if(this.scaleBreaks&&!y(this.scaleBreaks.firstBreakIndex))if(y(this.scaleBreaks.lastBreakIndex))e=this.scaleBreaks._appliedBreaks[this.scaleBreaks.firstBreakIndex].endPixel+c;else for(var l=\nthis.scaleBreaks.firstBreakIndex;l<=this.scaleBreaks.lastBreakIndex;l++)f.moveTo(e,h),f.lineTo(this.scaleBreaks._appliedBreaks[l].startPixel+b,h),e=this.scaleBreaks._appliedBreaks[l].endPixel+c;e&&(f.moveTo(e,h),f.lineTo(g,h));f.stroke()}}else if((\"left\"===this._position||\"right\"===this._position)&&this.lineThickness){this.reversed?(e=this.lineCoordinates.y1,g=this.lineCoordinates.y2):(e=this.lineCoordinates.y2,g=this.lineCoordinates.y1);f.lineWidth=this.lineThickness;f.strokeStyle=this.lineColor;\nf.setLineDash&&f.setLineDash(F(this.lineDashType,this.lineThickness));h=1===this.lineThickness%2?(this.lineCoordinates.x1<<0)+0.5:this.lineCoordinates.x1<<0;f.beginPath();if(this.scaleBreaks&&!y(this.scaleBreaks.firstBreakIndex))if(y(this.scaleBreaks.lastBreakIndex))e=this.scaleBreaks._appliedBreaks[this.scaleBreaks.firstBreakIndex].endPixel+b;else for(l=this.scaleBreaks.firstBreakIndex;l<=this.scaleBreaks.lastBreakIndex;l++)f.moveTo(h,e),f.lineTo(h,this.scaleBreaks._appliedBreaks[l].startPixel+c),\ne=this.scaleBreaks._appliedBreaks[l].endPixel+b;e&&(f.moveTo(h,e),f.lineTo(h,g));f.stroke()}v&&(a.drawImage(this.chart._preRenderCanvas,0,0,this.chart.width,this.chart.height),this.chart._breaksCanvasCtx&&this.chart._breaksCanvasCtx.drawImage(this.chart._preRenderCanvas,0,0,this.chart.width,this.chart.height),f.clearRect(0,0,this.chart.width,this.chart.height));f.restore()};C.prototype.getPixelCoordinatesOnAxis=function(a){var f={};if(\"bottom\"===this._position||\"top\"===this._position)f.x=this.convertValueToPixel(a),\nf.y=this.lineCoordinates.y1;if(\"left\"===this._position||\"right\"===this._position)f.y=this.convertValueToPixel(a),f.x=this.lineCoordinates.x2;return f};C.prototype.convertPixelToValue=function(a){if(\"undefined\"===typeof a)return null;var f=0,b=0,c,f=!0,e=this.scaleBreaks?this.scaleBreaks._appliedBreaks:[],b=\"number\"===typeof a?a:\"left\"===this._position||\"right\"===this._position?a.y:a.x;if(this.logarithmic){a=c=Math.pow(this.logarithmBase,(b-this.conversionParameters.reference)/this.conversionParameters.pixelPerUnit);\nif(b<=this.conversionParameters.reference===(\"left\"===this._position||\"right\"===this._position)!==this.reversed)for(b=0;b<e.length;b++){if(!(e[b].endValue<this.conversionParameters.minimum))if(f)if(e[b].startValue<this.conversionParameters.minimum){if(1<e[b].size&&this.conversionParameters.minimum*Math.pow(e[b].endValue/e[b].startValue,Math.log(c)/Math.log(e[b].size))<e[b].endValue){a=Math.pow(e[b].endValue/e[b].startValue,Math.log(c)/Math.log(e[b].size));break}else a*=e[b].endValue/this.conversionParameters.minimum/\nMath.pow(e[b].size,Math.log(e[b].endValue/this.conversionParameters.minimum)/Math.log(e[b].endValue/e[b].startValue)),c/=Math.pow(e[b].size,Math.log(e[b].endValue/this.conversionParameters.minimum)/Math.log(e[b].endValue/e[b].startValue));f=!1}else if(c>e[b].startValue/this.conversionParameters.minimum){c/=e[b].startValue/this.conversionParameters.minimum;if(c<e[b].size){a*=Math.pow(e[b].endValue/e[b].startValue,1===e[b].size?1:Math.log(c)/Math.log(e[b].size))/c;break}else a*=e[b].endValue/e[b].startValue/\ne[b].size;c/=e[b].size;f=!1}else break;else if(c>e[b].startValue/e[b-1].endValue){c/=e[b].startValue/e[b-1].endValue;if(c<e[b].size){a*=Math.pow(e[b].endValue/e[b].startValue,1===e[b].size?1:Math.log(c)/Math.log(e[b].size))/c;break}else a*=e[b].endValue/e[b].startValue/e[b].size;c/=e[b].size}else break}else for(b=e.length-1;0<=b;b--)if(!(e[b].startValue>this.conversionParameters.minimum))if(f)if(e[b].endValue>this.conversionParameters.minimum){if(1<e[b].size&&this.conversionParameters.minimum*Math.pow(e[b].endValue/\ne[b].startValue,Math.log(c)/Math.log(e[b].size))>e[b].startValue){a=Math.pow(e[b].endValue/e[b].startValue,Math.log(c)/Math.log(e[b].size));break}else a*=e[b].startValue/this.conversionParameters.minimum*Math.pow(e[b].size,Math.log(e[b].startValue/this.conversionParameters.minimum)/Math.log(e[b].endValue/e[b].startValue))*c,c*=Math.pow(e[b].size,Math.log(this.conversionParameters.minimum/e[b].startValue)/Math.log(e[b].endValue/e[b].startValue));f=!1}else if(c<e[b].endValue/this.conversionParameters.minimum){c/=\ne[b].endValue/this.conversionParameters.minimum;if(c>1/e[b].size){a*=Math.pow(e[b].endValue/e[b].startValue,1>=e[b].size?1:Math.log(c)/Math.log(e[b].size))*c;break}else a/=e[b].endValue/e[b].startValue/e[b].size;c*=e[b].size;f=!1}else break;else if(c<e[b].endValue/e[b+1].startValue){c/=e[b].endValue/e[b+1].startValue;if(c>1/e[b].size){a*=Math.pow(e[b].endValue/e[b].startValue,1>=e[b].size?1:Math.log(c)/Math.log(e[b].size))*c;break}else a/=e[b].endValue/e[b].startValue/e[b].size;c*=e[b].size}else break;\nf=a*this.viewportMinimum}else{a=c=(b-this.conversionParameters.reference)/this.conversionParameters.pixelPerUnit;if(b<=this.conversionParameters.reference===(\"left\"===this._position||\"right\"===this._position)!==this.reversed)for(b=0;b<e.length;b++){if(!(e[b].endValue<this.conversionParameters.minimum))if(f)if(e[b].startValue<this.conversionParameters.minimum){if(e[b].size&&this.conversionParameters.minimum+c*(e[b].endValue-e[b].startValue)/e[b].size<e[b].endValue){a=0>=e[b].size?0:c*(e[b].endValue-\ne[b].startValue)/e[b].size;break}else a+=e[b].endValue-this.conversionParameters.minimum-e[b].size*(e[b].endValue-this.conversionParameters.minimum)/(e[b].endValue-e[b].startValue),c-=e[b].size*(e[b].endValue-this.conversionParameters.minimum)/(e[b].endValue-e[b].startValue);f=!1}else if(c>e[b].startValue-this.conversionParameters.minimum){c-=e[b].startValue-this.conversionParameters.minimum;if(c<e[b].size){a+=(e[b].endValue-e[b].startValue)*(0===e[b].size?1:c/e[b].size)-c;break}else a+=e[b].endValue-\ne[b].startValue-e[b].size;c-=e[b].size;f=!1}else break;else if(c>e[b].startValue-e[b-1].endValue){c-=e[b].startValue-e[b-1].endValue;if(c<e[b].size){a+=(e[b].endValue-e[b].startValue)*(0===e[b].size?1:c/e[b].size)-c;break}else a+=e[b].endValue-e[b].startValue-e[b].size;c-=e[b].size}else break}else for(b=e.length-1;0<=b;b--)if(!(e[b].startValue>this.conversionParameters.minimum))if(f)if(e[b].endValue>this.conversionParameters.minimum)if(e[b].size&&this.conversionParameters.minimum+c*(e[b].endValue-\ne[b].startValue)/e[b].size>e[b].startValue){a=0>=e[b].size?0:c*(e[b].endValue-e[b].startValue)/e[b].size;break}else a+=e[b].startValue-this.conversionParameters.minimum+e[b].size*(this.conversionParameters.minimum-e[b].startValue)/(e[b].endValue-e[b].startValue),c+=e[b].size*(this.conversionParameters.minimum-e[b].startValue)/(e[b].endValue-e[b].startValue),f=!1;else if(c<e[b].endValue-this.conversionParameters.minimum){c-=e[b].endValue-this.conversionParameters.minimum;if(c>-1*e[b].size){a+=(e[b].endValue-\ne[b].startValue)*(0===e[b].size?1:c/e[b].size)+c;break}else a-=e[b].endValue-e[b].startValue-e[b].size;c+=e[b].size;f=!1}else break;else if(c<e[b].endValue-e[b+1].startValue){c-=e[b].endValue-e[b+1].startValue;if(c>-1*e[b].size){a+=(e[b].endValue-e[b].startValue)*(0===e[b].size?1:c/e[b].size)+c;break}else a-=e[b].endValue-e[b].startValue-e[b].size;c+=e[b].size}else break;f=this.conversionParameters.minimum+a}return f};C.prototype.convertValueToPixel=function(a){a=this.getApparentDifference(this.conversionParameters.minimum,\na,a);return this.logarithmic?this.conversionParameters.reference+this.conversionParameters.pixelPerUnit*Math.log(a/this.conversionParameters.minimum)/this.conversionParameters.lnLogarithmBase+0.5<<0:\"axisX\"===this.type?this.conversionParameters.reference+this.conversionParameters.pixelPerUnit*(a-this.conversionParameters.minimum)+0.5<<0:this.conversionParameters.reference+this.conversionParameters.pixelPerUnit*(a-this.conversionParameters.minimum)+0.5};C.prototype.getApparentDifference=function(a,\nf,b,c){var e=this.scaleBreaks?this.scaleBreaks._appliedBreaks:[];if(this.logarithmic){b=y(b)?f/a:b;for(var g=0;g<e.length&&!(f<e[g].startValue);g++)a>e[g].endValue||(a<=e[g].startValue&&f>=e[g].endValue?b=b/e[g].endValue*e[g].startValue*e[g].size:a>=e[g].startValue&&f>=e[g].endValue?b=b/e[g].endValue*a*Math.pow(e[g].size,Math.log(e[g].endValue/a)/Math.log(e[g].endValue/e[g].startValue)):a<=e[g].startValue&&f<=e[g].endValue?b=b/f*e[g].startValue*Math.pow(e[g].size,Math.log(f/e[g].startValue)/Math.log(e[g].endValue/\ne[g].startValue)):!c&&(a>e[g].startValue&&f<e[g].endValue)&&(b=a*Math.pow(e[g].size,Math.log(f/a)/Math.log(e[g].endValue/e[g].startValue))))}else for(b=y(b)?Math.abs(f-a):b,g=0;g<e.length&&!(f<e[g].startValue);g++)a>e[g].endValue||(a<=e[g].startValue&&f>=e[g].endValue?b=b-e[g].endValue+e[g].startValue+e[g].size:a>e[g].startValue&&f>=e[g].endValue?b=b-e[g].endValue+a+e[g].size*(e[g].endValue-a)/(e[g].endValue-e[g].startValue):a<=e[g].startValue&&f<e[g].endValue?b=b-f+e[g].startValue+e[g].size*(f-e[g].startValue)/\n(e[g].endValue-e[g].startValue):!c&&(a>e[g].startValue&&f<e[g].endValue)&&(b=a+e[g].size*(f-a)/(e[g].endValue-e[g].startValue)));return b};C.prototype.setViewPortRange=function(a,f){this.sessionVariables.newViewportMinimum=this.viewportMinimum=Math.min(a,f);this.sessionVariables.newViewportMaximum=this.viewportMaximum=Math.max(a,f)};C.prototype.getXValueAt=function(a){if(!a)return null;var f=null;\"left\"===this._position?f=this.convertPixelToValue(a.y):\"bottom\"===this._position&&(f=this.convertPixelToValue(a.x));\nreturn f};C.prototype.calculateValueToPixelConversionParameters=function(a){a=this.scaleBreaks?this.scaleBreaks._appliedBreaks:[];var f={pixelPerUnit:null,minimum:null,reference:null},b=this.lineCoordinates.width,c=this.lineCoordinates.height,b=\"bottom\"===this._position||\"top\"===this._position?b:c,c=Math.abs(this.range);if(this.logarithmic)for(var e=0;e<a.length&&!(this.viewportMaximum<a[e].startValue);e++)this.viewportMinimum>a[e].endValue||(this.viewportMinimum>=a[e].startValue&&this.viewportMaximum<=\na[e].endValue?b=0:this.viewportMinimum<=a[e].startValue&&this.viewportMaximum>=a[e].endValue?(c=c/a[e].endValue*a[e].startValue,b=0<a[e].spacing.toString().indexOf(\"%\")?b*(1-parseFloat(a[e].spacing)/100):b-Math.min(a[e].spacing,0.1*b)):this.viewportMinimum>a[e].startValue&&this.viewportMaximum>=a[e].endValue?(c=c/a[e].endValue*this.viewportMinimum,b=0<a[e].spacing.toString().indexOf(\"%\")?b*(1-parseFloat(a[e].spacing)/100*Math.log(a[e].endValue/this.viewportMinimum)/Math.log(a[e].endValue/a[e].startValue)):\nb-Math.min(a[e].spacing,0.1*b)*Math.log(a[e].endValue/this.viewportMinimum)/Math.log(a[e].endValue/a[e].startValue)):this.viewportMinimum<=a[e].startValue&&this.viewportMaximum<a[e].endValue&&(c=c/this.viewportMaximum*a[e].startValue,b=0<a[e].spacing.toString().indexOf(\"%\")?b*(1-parseFloat(a[e].spacing)/100*Math.log(this.viewportMaximum/a[e].startValue)/Math.log(a[e].endValue/a[e].startValue)):b-Math.min(a[e].spacing,0.1*b)*Math.log(this.viewportMaximum/a[e].startValue)/Math.log(a[e].endValue/a[e].startValue)));\nelse for(e=0;e<a.length&&!(this.viewportMaximum<a[e].startValue);e++)this.viewportMinimum>a[e].endValue||(this.viewportMinimum>=a[e].startValue&&this.viewportMaximum<=a[e].endValue?b=0:this.viewportMinimum<=a[e].startValue&&this.viewportMaximum>=a[e].endValue?(c=c-a[e].endValue+a[e].startValue,b=0<a[e].spacing.toString().indexOf(\"%\")?b*(1-parseFloat(a[e].spacing)/100):b-Math.min(a[e].spacing,0.1*b)):this.viewportMinimum>a[e].startValue&&this.viewportMaximum>=a[e].endValue?(c=c-a[e].endValue+this.viewportMinimum,\nb=0<a[e].spacing.toString().indexOf(\"%\")?b*(1-parseFloat(a[e].spacing)/100*(a[e].endValue-this.viewportMinimum)/(a[e].endValue-a[e].startValue)):b-Math.min(a[e].spacing,0.1*b)*(a[e].endValue-this.viewportMinimum)/(a[e].endValue-a[e].startValue)):this.viewportMinimum<=a[e].startValue&&this.viewportMaximum<a[e].endValue&&(c=c-this.viewportMaximum+a[e].startValue,b=0<a[e].spacing.toString().indexOf(\"%\")?b*(1-parseFloat(a[e].spacing)/100*(this.viewportMaximum-a[e].startValue)/(a[e].endValue-a[e].startValue)):\nb-Math.min(a[e].spacing,0.1*b)*(this.viewportMaximum-a[e].startValue)/(a[e].endValue-a[e].startValue)));f.minimum=this.viewportMinimum;f.maximum=this.viewportMaximum;f.range=c;if(\"bottom\"===this._position||\"top\"===this._position)this.logarithmic?(f.lnLogarithmBase=Math.log(this.logarithmBase),f.pixelPerUnit=(this.reversed?-1:1)*b*f.lnLogarithmBase/Math.log(Math.abs(c))):f.pixelPerUnit=(this.reversed?-1:1)*b/Math.abs(c),f.reference=this.reversed?this.lineCoordinates.x2:this.lineCoordinates.x1;if(\"left\"===\nthis._position||\"right\"===this._position)this.logarithmic?(f.lnLogarithmBase=Math.log(this.logarithmBase),f.pixelPerUnit=(this.reversed?1:-1)*b*f.lnLogarithmBase/Math.log(Math.abs(c))):f.pixelPerUnit=(this.reversed?1:-1)*b/Math.abs(c),f.reference=this.reversed?this.lineCoordinates.y1:this.lineCoordinates.y2;this.conversionParameters=f};C.prototype.calculateAxisParameters=function(){if(this.logarithmic)this.calculateLogarithmicAxisParameters();else{var a=this.chart.layoutManager.getFreeSpace(),f=!1,\nb=!1;\"bottom\"===this._position||\"top\"===this._position?(this.maxWidth=a.width,this.maxHeight=a.height):(this.maxWidth=a.height,this.maxHeight=a.width);var a=\"axisX\"===this.type?\"xySwapped\"===this.chart.plotInfo.axisPlacement?62:70:\"xySwapped\"===this.chart.plotInfo.axisPlacement?50:40,c=4;\"axisX\"===this.type&&(c=600>this.maxWidth?8:6);var a=Math.max(c,Math.floor(this.maxWidth/a)),e,g,h,c=0;!y(this.options.viewportMinimum)&&(!y(this.options.viewportMaximum)&&this.options.viewportMinimum>=this.options.viewportMaximum)&&\n(this.viewportMinimum=this.viewportMaximum=null);if(y(this.options.viewportMinimum)&&!y(this.sessionVariables.newViewportMinimum)&&!isNaN(this.sessionVariables.newViewportMinimum))this.viewportMinimum=this.sessionVariables.newViewportMinimum;else if(null===this.viewportMinimum||isNaN(this.viewportMinimum))this.viewportMinimum=this.minimum;if(y(this.options.viewportMaximum)&&!y(this.sessionVariables.newViewportMaximum)&&!isNaN(this.sessionVariables.newViewportMaximum))this.viewportMaximum=this.sessionVariables.newViewportMaximum;\nelse if(null===this.viewportMaximum||isNaN(this.viewportMaximum))this.viewportMaximum=this.maximum;if(this.scaleBreaks)for(c=0;c<this.scaleBreaks._appliedBreaks.length;c++)if((!y(this.sessionVariables.newViewportMinimum)&&this.sessionVariables.newViewportMinimum>=this.scaleBreaks._appliedBreaks[c].startValue||!y(this.options.minimum)&&this.options.minimum>=this.scaleBreaks._appliedBreaks[c].startValue||!y(this.options.viewportMinimum)&&this.viewportMinimum>=this.scaleBreaks._appliedBreaks[c].startValue)&&\n(!y(this.sessionVariables.newViewportMaximum)&&this.sessionVariables.newViewportMaximum<=this.scaleBreaks._appliedBreaks[c].endValue||!y(this.options.maximum)&&this.options.maximum<=this.scaleBreaks._appliedBreaks[c].endValue||!y(this.options.viewportMaximum)&&this.viewportMaximum<=this.scaleBreaks._appliedBreaks[c].endValue)){this.scaleBreaks._appliedBreaks.splice(c,1);break}if(\"axisX\"===this.type){if(this.dataSeries&&0<this.dataSeries.length)for(e=0;e<this.dataSeries.length;e++)\"dateTime\"===this.dataSeries[e].xValueType&&\n(b=!0);e=null!==this.viewportMinimum?this.viewportMinimum:this.dataInfo.viewPortMin;g=null!==this.viewportMaximum?this.viewportMaximum:this.dataInfo.viewPortMax;0===g-e&&(c=\"undefined\"===typeof this.options.interval?0.4:this.options.interval,g+=c,e-=c);Infinity!==this.dataInfo.minDiff?h=this.dataInfo.minDiff:1<g-e?h=0.5*Math.abs(g-e):(h=1,b&&(f=!0))}else\"axisY\"===this.type&&(e=null!==this.viewportMinimum?this.viewportMinimum:this.dataInfo.viewPortMin,g=null!==this.viewportMaximum?this.viewportMaximum:\nthis.dataInfo.viewPortMax,isFinite(e)||isFinite(g)?isFinite(e)?isFinite(g)||(g=e):e=g:(g=\"undefined\"===typeof this.options.interval?-Infinity:this.options.interval,e=\"undefined\"!==typeof this.options.interval||isFinite(this.dataInfo.minDiff)?0:Infinity),0===e&&0===g?(g+=9,e=0):0===g-e?(c=Math.min(Math.abs(0.01*Math.abs(g)),5),g+=c,e-=c):e>g?(c=Math.min(0.01*Math.abs(this.getApparentDifference(g,e,null,!0)),5),0<=g?e=g-c:g=isFinite(e)?e+c:0):(c=Math.min(0.01*Math.abs(this.getApparentDifference(e,g,\nnull,!0)),0.05),0!==g&&(g+=c),0!==e&&(e-=c)),h=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:1<g-e?0.5*Math.abs(g-e):1,this.includeZero&&(null===this.viewportMinimum||isNaN(this.viewportMinimum))&&0<e&&(e=0),this.includeZero&&(null===this.viewportMaximum||isNaN(this.viewportMaximum))&&0>g&&(g=0));c=this.getApparentDifference(isNaN(this.viewportMinimum)||null===this.viewportMinimum?e:this.viewportMinimum,isNaN(this.viewportMaximum)||null===this.viewportMaximum?g:this.viewportMaximum,null,\n!0);if(\"axisX\"===this.type&&b){this.intervalType||(c/1<=a?(this.interval=1,this.intervalType=\"millisecond\"):c/2<=a?(this.interval=2,this.intervalType=\"millisecond\"):c/5<=a?(this.interval=5,this.intervalType=\"millisecond\"):c/10<=a?(this.interval=10,this.intervalType=\"millisecond\"):c/20<=a?(this.interval=20,this.intervalType=\"millisecond\"):c/50<=a?(this.interval=50,this.intervalType=\"millisecond\"):c/100<=a?(this.interval=100,this.intervalType=\"millisecond\"):c/200<=a?(this.interval=200,this.intervalType=\n\"millisecond\"):c/250<=a?(this.interval=250,this.intervalType=\"millisecond\"):c/300<=a?(this.interval=300,this.intervalType=\"millisecond\"):c/400<=a?(this.interval=400,this.intervalType=\"millisecond\"):c/500<=a?(this.interval=500,this.intervalType=\"millisecond\"):c/(1*U.secondDuration)<=a?(this.interval=1,this.intervalType=\"second\"):c/(2*U.secondDuration)<=a?(this.interval=2,this.intervalType=\"second\"):c/(5*U.secondDuration)<=a?(this.interval=5,this.intervalType=\"second\"):c/(10*U.secondDuration)<=a?(this.interval=\n10,this.intervalType=\"second\"):c/(15*U.secondDuration)<=a?(this.interval=15,this.intervalType=\"second\"):c/(20*U.secondDuration)<=a?(this.interval=20,this.intervalType=\"second\"):c/(30*U.secondDuration)<=a?(this.interval=30,this.intervalType=\"second\"):c/(1*U.minuteDuration)<=a?(this.interval=1,this.intervalType=\"minute\"):c/(2*U.minuteDuration)<=a?(this.interval=2,this.intervalType=\"minute\"):c/(5*U.minuteDuration)<=a?(this.interval=5,this.intervalType=\"minute\"):c/(10*U.minuteDuration)<=a?(this.interval=\n10,this.intervalType=\"minute\"):c/(15*U.minuteDuration)<=a?(this.interval=15,this.intervalType=\"minute\"):c/(20*U.minuteDuration)<=a?(this.interval=20,this.intervalType=\"minute\"):c/(30*U.minuteDuration)<=a?(this.interval=30,this.intervalType=\"minute\"):c/(1*U.hourDuration)<=a?(this.interval=1,this.intervalType=\"hour\"):c/(2*U.hourDuration)<=a?(this.interval=2,this.intervalType=\"hour\"):c/(3*U.hourDuration)<=a?(this.interval=3,this.intervalType=\"hour\"):c/(6*U.hourDuration)<=a?(this.interval=6,this.intervalType=\n\"hour\"):c/(1*U.dayDuration)<=a?(this.interval=1,this.intervalType=\"day\"):c/(2*U.dayDuration)<=a?(this.interval=2,this.intervalType=\"day\"):c/(4*U.dayDuration)<=a?(this.interval=4,this.intervalType=\"day\"):c/(1*U.weekDuration)<=a?(this.interval=1,this.intervalType=\"week\"):c/(2*U.weekDuration)<=a?(this.interval=2,this.intervalType=\"week\"):c/(3*U.weekDuration)<=a?(this.interval=3,this.intervalType=\"week\"):c/(1*U.monthDuration)<=a?(this.interval=1,this.intervalType=\"month\"):c/(2*U.monthDuration)<=a?(this.interval=\n2,this.intervalType=\"month\"):c/(3*U.monthDuration)<=a?(this.interval=3,this.intervalType=\"month\"):c/(6*U.monthDuration)<=a?(this.interval=6,this.intervalType=\"month\"):(this.interval=c/(1*U.yearDuration)<=a?1:c/(2*U.yearDuration)<=a?2:c/(4*U.yearDuration)<=a?4:Math.floor(C.getNiceNumber(c/(a-1),!0)/U.yearDuration),this.intervalType=\"year\"));if(null===this.viewportMinimum||isNaN(this.viewportMinimum))this.viewportMinimum=e-h/2;if(null===this.viewportMaximum||isNaN(this.viewportMaximum))this.viewportMaximum=\ng+h/2;f?this.autoValueFormatString=\"MMM DD YYYY HH:mm\":\"year\"===this.intervalType?this.autoValueFormatString=\"YYYY\":\"month\"===this.intervalType?this.autoValueFormatString=\"MMM YYYY\":\"week\"===this.intervalType?this.autoValueFormatString=\"MMM DD YYYY\":\"day\"===this.intervalType?this.autoValueFormatString=\"MMM DD YYYY\":\"hour\"===this.intervalType?this.autoValueFormatString=\"hh:mm TT\":\"minute\"===this.intervalType?this.autoValueFormatString=\"hh:mm TT\":\"second\"===this.intervalType?this.autoValueFormatString=\n\"hh:mm:ss TT\":\"millisecond\"===this.intervalType&&(this.autoValueFormatString=\"fff'ms'\");this.valueFormatString||(this.valueFormatString=this.autoValueFormatString)}else{this.intervalType=\"number\";c=C.getNiceNumber(c,!1);this.interval=this.options&&0<this.options.interval?this.options.interval:C.getNiceNumber(c/(a-1),!0);if(null===this.viewportMinimum||isNaN(this.viewportMinimum))this.viewportMinimum=\"axisX\"===this.type?e-h/2:Math.floor(e/this.interval)*this.interval;if(null===this.viewportMaximum||\nisNaN(this.viewportMaximum))this.viewportMaximum=\"axisX\"===this.type?g+h/2:Math.ceil(g/this.interval)*this.interval;0===this.viewportMaximum&&0===this.viewportMinimum&&(0===this.options.viewportMinimum?this.viewportMaximum+=10:0===this.options.viewportMaximum&&(this.viewportMinimum-=10),this.options&&\"undefined\"===typeof this.options.interval&&(this.interval=C.getNiceNumber((this.viewportMaximum-this.viewportMinimum)/(a-1),!0)))}if(null===this.minimum||null===this.maximum)if(\"axisX\"===this.type?(e=\nnull!==this.minimum?this.minimum:this.dataInfo.min,g=null!==this.maximum?this.maximum:this.dataInfo.max,0===g-e&&(c=\"undefined\"===typeof this.options.interval?0.4:this.options.interval,g+=c,e-=c),h=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:1<g-e?0.5*Math.abs(g-e):1):\"axisY\"===this.type&&(e=null!==this.minimum?this.minimum:this.dataInfo.min,g=null!==this.maximum?this.maximum:this.dataInfo.max,isFinite(e)||isFinite(g)?0===e&&0===g?(g+=9,e=0):0===g-e?(c=Math.min(Math.abs(0.01*Math.abs(g)),\n5),g+=c,e-=c):e>g?(c=Math.min(0.01*Math.abs(this.getApparentDifference(g,e,null,!0)),5),0<=g?e=g-c:g=isFinite(e)?e+c:0):(c=Math.min(0.01*Math.abs(this.getApparentDifference(e,g,null,!0)),0.05),0!==g&&(g+=c),0!==e&&(e-=c)):(g=\"undefined\"===typeof this.options.interval?-Infinity:this.options.interval,e=\"undefined\"!==typeof this.options.interval||isFinite(this.dataInfo.minDiff)?0:Infinity),h=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:1<g-e?0.5*Math.abs(g-e):1,this.includeZero&&(null===this.minimum||\nisNaN(this.minimum))&&0<e&&(e=0),this.includeZero&&(null===this.maximum||isNaN(this.maximum))&&0>g&&(g=0)),Math.abs(this.getApparentDifference(e,g,null,!0)),\"axisX\"===this.type&&b){this.valueType=\"dateTime\";if(null===this.minimum||isNaN(this.minimum))this.minimum=e-h/2;if(null===this.maximum||isNaN(this.maximum))this.maximum=g+h/2}else this.intervalType=this.valueType=\"number\",null===this.minimum&&(this.minimum=\"axisX\"===this.type?e-h/2:Math.floor(e/this.interval)*this.interval,this.minimum=Math.min(this.minimum,\nnull===this.sessionVariables.viewportMinimum||isNaN(this.sessionVariables.viewportMinimum)?Infinity:this.sessionVariables.viewportMinimum)),null===this.maximum&&(this.maximum=\"axisX\"===this.type?g+h/2:Math.ceil(g/this.interval)*this.interval,this.maximum=Math.max(this.maximum,null===this.sessionVariables.viewportMaximum||isNaN(this.sessionVariables.viewportMaximum)?-Infinity:this.sessionVariables.viewportMaximum)),0===this.maximum&&0===this.minimum&&(0===this.options.minimum?this.maximum+=10:0===\nthis.options.maximum&&(this.minimum-=10));y(this.sessionVariables.newViewportMinimum)&&(this.viewportMinimum=Math.max(this.viewportMinimum,this.minimum));y(this.sessionVariables.newViewportMaximum)&&(this.viewportMaximum=Math.min(this.viewportMaximum,this.maximum));this.range=this.viewportMaximum-this.viewportMinimum;this.intervalStartPosition=\"axisX\"===this.type&&b?this.getLabelStartPoint(new Date(this.viewportMinimum),this.intervalType,this.interval):Math.floor((this.viewportMinimum+0.2*this.interval)/\nthis.interval)*this.interval;this.valueFormatString||(this.valueFormatString=C.generateValueFormatString(this.range,2))}};C.prototype.calculateLogarithmicAxisParameters=function(){var a=this.chart.layoutManager.getFreeSpace(),f=Math.log(this.logarithmBase),b;\"bottom\"===this._position||\"top\"===this._position?(this.maxWidth=a.width,this.maxHeight=a.height):(this.maxWidth=a.height,this.maxHeight=a.width);var a=\"axisX\"===this.type?500>this.maxWidth?7:Math.max(7,Math.floor(this.maxWidth/100)):Math.max(Math.floor(this.maxWidth/\n50),3),c,e,g,h;h=1;if(null===this.viewportMinimum||isNaN(this.viewportMinimum))this.viewportMinimum=this.minimum;if(null===this.viewportMaximum||isNaN(this.viewportMaximum))this.viewportMaximum=this.maximum;if(this.scaleBreaks)for(h=0;h<this.scaleBreaks._appliedBreaks.length;h++)if((!y(this.sessionVariables.newViewportMinimum)&&this.sessionVariables.newViewportMinimum>=this.scaleBreaks._appliedBreaks[h].startValue||!y(this.options.minimum)&&this.options.minimum>=this.scaleBreaks._appliedBreaks[h].startValue||\n!y(this.options.viewportMinimum)&&this.viewportMinimum>=this.scaleBreaks._appliedBreaks[h].startValue)&&(!y(this.sessionVariables.newViewportMaximum)&&this.sessionVariables.newViewportMaximum<=this.scaleBreaks._appliedBreaks[h].endValue||!y(this.options.maximum)&&this.options.maximum<=this.scaleBreaks._appliedBreaks[h].endValue||!y(this.options.viewportMaximum)&&this.viewportMaximum<=this.scaleBreaks._appliedBreaks[h].endValue)){this.scaleBreaks._appliedBreaks.splice(h,1);break}\"axisX\"===this.type?\n(c=null!==this.viewportMinimum?this.viewportMinimum:this.dataInfo.viewPortMin,e=null!==this.viewportMaximum?this.viewportMaximum:this.dataInfo.viewPortMax,1===e/c&&(h=Math.pow(this.logarithmBase,\"undefined\"===typeof this.options.interval?0.4:this.options.interval),e*=h,c/=h),g=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:e/c>this.logarithmBase?e/c*Math.pow(this.logarithmBase,0.5):this.logarithmBase):\"axisY\"===this.type&&(c=null!==this.viewportMinimum?this.viewportMinimum:this.dataInfo.viewPortMin,\ne=null!==this.viewportMaximum?this.viewportMaximum:this.dataInfo.viewPortMax,0>=c&&!isFinite(e)?(e=\"undefined\"===typeof this.options.interval?0:this.options.interval,c=1):0>=c?c=e:isFinite(e)||(e=c),1===c&&1===e?(e*=this.logarithmBase-1/this.logarithmBase,c=1):1===e/c?(h=Math.min(e*Math.pow(this.logarithmBase,0.01),Math.pow(this.logarithmBase,5)),e*=h,c/=h):c>e?(h=Math.min(c/e*Math.pow(this.logarithmBase,0.01),Math.pow(this.logarithmBase,5)),1<=e?c=e/h:e=c*h):(h=Math.min(e/c*Math.pow(this.logarithmBase,\n0.01),Math.pow(this.logarithmBase,0.04)),1!==e&&(e*=h),1!==c&&(c/=h)),g=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:e/c>this.logarithmBase?e/c*Math.pow(this.logarithmBase,0.5):this.logarithmBase,this.includeZero&&(null===this.viewportMinimum||isNaN(this.viewportMinimum))&&1<c&&(c=1),this.includeZero&&(null===this.viewportMaximum||isNaN(this.viewportMaximum))&&1>e&&(e=1));h=(isNaN(this.viewportMaximum)||null===this.viewportMaximum?e:this.viewportMaximum)/(isNaN(this.viewportMinimum)||null===\nthis.viewportMinimum?c:this.viewportMinimum);linearRange=(isNaN(this.viewportMaximum)||null===this.viewportMaximum?e:this.viewportMaximum)-(isNaN(this.viewportMinimum)||null===this.viewportMinimum?c:this.viewportMinimum);this.intervalType=\"number\";h=Math.pow(this.logarithmBase,C.getNiceNumber(Math.abs(Math.log(h)/f),!1));this.options&&0<this.options.interval?this.interval=this.options.interval:(this.interval=C.getNiceExponent(Math.log(h)/f/(a-1),!0),b=C.getNiceNumber(linearRange/(a-1),!0));if(null===\nthis.viewportMinimum||isNaN(this.viewportMinimum))this.viewportMinimum=\"axisX\"===this.type?c/Math.sqrt(g):Math.pow(this.logarithmBase,this.interval*Math.floor(Math.log(c)/f/this.interval));if(null===this.viewportMaximum||isNaN(this.viewportMaximum))this.viewportMaximum=\"axisX\"===this.type?e*Math.sqrt(g):Math.pow(this.logarithmBase,this.interval*Math.ceil(Math.log(e)/f/this.interval));1===this.viewportMaximum&&1===this.viewportMinimum&&(1===this.options.viewportMinimum?this.viewportMaximum*=this.logarithmBase-\n1/this.logarithmBase:1===this.options.viewportMaximum&&(this.viewportMinimum/=this.logarithmBase-1/this.logarithmBase),this.options&&\"undefined\"===typeof this.options.interval&&(this.interval=C.getNiceExponent(Math.ceil(Math.log(h)/f)/(a-1)),b=C.getNiceNumber((this.viewportMaximum-this.viewportMinimum)/(a-1),!0)));if(null===this.minimum||null===this.maximum)\"axisX\"===this.type?(c=null!==this.minimum?this.minimum:this.dataInfo.min,e=null!==this.maximum?this.maximum:this.dataInfo.max,1===e/c&&(h=Math.pow(this.logarithmBase,\n\"undefined\"===typeof this.options.interval?0.4:this.options.interval),e*=h,c/=h),g=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:e/c>this.logarithmBase?e/c*Math.pow(this.logarithmBase,0.5):this.logarithmBase):\"axisY\"===this.type&&(c=null!==this.minimum?this.minimum:this.dataInfo.min,e=null!==this.maximum?this.maximum:this.dataInfo.max,isFinite(c)||isFinite(e)?1===c&&1===e?(e*=this.logarithmBase,c/=this.logarithmBase):1===e/c?(h=Math.pow(this.logarithmBase,this.interval),e*=h,c/=h):c>e?(h=\nMath.min(0.01*(c/e),5),1<=e?c=e/h:e=c*h):(h=Math.min(e/c*Math.pow(this.logarithmBase,0.01),Math.pow(this.logarithmBase,0.04)),1!==e&&(e*=h),1!==c&&(c/=h)):(e=\"undefined\"===typeof this.options.interval?0:this.options.interval,c=1),g=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:e/c>this.logarithmBase?e/c*Math.pow(this.logarithmBase,0.5):this.logarithmBase,this.includeZero&&(null===this.minimum||isNaN(this.minimum))&&1<c&&(c=1),this.includeZero&&(null===this.maximum||isNaN(this.maximum))&&\n1>e&&(e=1)),this.intervalType=\"number\",null===this.minimum&&(this.minimum=\"axisX\"===this.type?c/Math.sqrt(g):Math.pow(this.logarithmBase,this.interval*Math.floor(Math.log(c)/f/this.interval)),this.minimum=Math.min(this.minimum,null===this.sessionVariables.viewportMinimum||isNaN(this.sessionVariables.viewportMinimum)?\"undefined\"===typeof this.sessionVariables.newViewportMinimum?Infinity:this.sessionVariables.newViewportMinimum:this.sessionVariables.viewportMinimum)),null===this.maximum&&(this.maximum=\n\"axisX\"===this.type?e*Math.sqrt(g):Math.pow(this.logarithmBase,this.interval*Math.ceil(Math.log(e)/f/this.interval)),this.maximum=Math.max(this.maximum,null===this.sessionVariables.viewportMaximum||isNaN(this.sessionVariables.viewportMaximum)?\"undefined\"===typeof this.sessionVariables.newViewportMaximum?0:this.sessionVariables.newViewportMaximum:this.sessionVariables.viewportMaximum)),1===this.maximum&&1===this.minimum&&(1===this.options.minimum?this.maximum*=this.logarithmBase-1/this.logarithmBase:\n1===this.options.maximum&&(this.minimum/=this.logarithmBase-1/this.logarithmBase));this.viewportMinimum=Math.max(this.viewportMinimum,this.minimum);this.viewportMaximum=Math.min(this.viewportMaximum,this.maximum);this.viewportMinimum>this.viewportMaximum&&(!this.options.viewportMinimum&&!this.options.minimum||this.options.viewportMaximum||this.options.maximum?this.options.viewportMinimum||this.options.minimum||!this.options.viewportMaximum&&!this.options.maximum||(this.viewportMinimum=this.minimum=\n(this.options.viewportMaximum||this.options.maximum)/Math.pow(this.logarithmBase,2*Math.ceil(this.interval))):this.viewportMaximum=this.maximum=this.options.viewportMinimum||this.options.minimum);c=Math.pow(this.logarithmBase,Math.floor(Math.log(this.viewportMinimum)/(f*this.interval)+0.2)*this.interval);this.range=this.viewportMaximum/this.viewportMinimum;this.noTicks=a;if(!this.options.interval&&this.range<Math.pow(this.logarithmBase,8>this.viewportMaximum||3>a?2:3)){for(f=Math.floor(this.viewportMinimum/\nb+0.5)*b;f<this.viewportMinimum;)f+=b;this.equidistantInterval=!1;this.intervalStartPosition=f;this.interval=b}else this.options.interval||(b=Math.ceil(this.interval),this.range>this.interval&&(this.interval=b,c=Math.pow(this.logarithmBase,Math.floor(Math.log(this.viewportMinimum)/(f*this.interval)+0.2)*this.interval))),this.equidistantInterval=!0,this.intervalStartPosition=c;if(!this.valueFormatString&&(this.valueFormatString=\"#,##0.##\",1>this.viewportMinimum)){f=Math.floor(Math.abs(Math.log(this.viewportMinimum)/\nMath.LN10))+2;if(isNaN(f)||!isFinite(f))f=2;if(2<f)for(h=0;h<f-2;h++)this.valueFormatString+=\"#\"}};C.generateValueFormatString=function(a,f){var b=\"#,##0.\",c=f;1>a&&(c+=Math.floor(Math.abs(Math.log(a)/Math.LN10)),isNaN(c)||!isFinite(c))&&(c=f);for(var e=0;e<c;e++)b+=\"#\";return b};C.getNiceExponent=function(a,f){var b=Math.floor(Math.log(a)/Math.LN10),c=a/Math.pow(10,b),c=0>b?1>=c?1:5>=c?5:10:Math.max(Math.floor(c),1);return-20>b?Number(c*Math.pow(10,b)):Number((c*Math.pow(10,b)).toFixed(20))};C.getNiceNumber=\nfunction(a,f){var b=Math.floor(Math.log(a)/Math.LN10),c=a/Math.pow(10,b),c=f?1.5>c?1:3>c?2:7>c?5:10:1>=c?1:2>=c?2:5>=c?5:10;return-20>b?Number(c*Math.pow(10,b)):Number((c*Math.pow(10,b)).toFixed(20))};C.prototype.getLabelStartPoint=function(){var a=U[this.intervalType+\"Duration\"]*this.interval,a=new Date(Math.floor(this.viewportMinimum/a)*a);if(\"millisecond\"!==this.intervalType)if(\"second\"===this.intervalType)0<a.getMilliseconds()&&(a.setSeconds(a.getSeconds()+1),a.setMilliseconds(0));else if(\"minute\"===\nthis.intervalType){if(0<a.getSeconds()||0<a.getMilliseconds())a.setMinutes(a.getMinutes()+1),a.setSeconds(0),a.setMilliseconds(0)}else if(\"hour\"===this.intervalType){if(0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())a.setHours(a.getHours()+1),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)}else if(\"day\"===this.intervalType){if(0<a.getHours()||0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())a.setDate(a.getDate()+1),a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)}else if(\"week\"===\nthis.intervalType){if(0<a.getDay()||0<a.getHours()||0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())a.setDate(a.getDate()+(7-a.getDay())),a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)}else if(\"month\"===this.intervalType){if(1<a.getDate()||0<a.getHours()||0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())a.setMonth(a.getMonth()+1),a.setDate(1),a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)}else\"year\"===this.intervalType&&(0<a.getMonth()||1<\na.getDate()||0<a.getHours()||0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())&&(a.setFullYear(a.getFullYear()+1),a.setMonth(0),a.setDate(1),a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0));return a};na(I,Y);na(ba,Y);ba.prototype.createUserOptions=function(a){if(\"undefined\"!==typeof a||this.options._isPlaceholder){var f=0;this.parent.options._isPlaceholder&&this.parent.createUserOptions();this.options._isPlaceholder||(Ca(this.parent[this.optionsName]),f=this.parent.options[this.optionsName].indexOf(this.options));\nthis.options=\"undefined\"===typeof a?{}:a;this.parent.options[this.optionsName][f]=this.options}};ba.prototype.render=function(a){if(0!==this.spacing||0!==this.options.lineThickness&&(\"undefined\"!==typeof this.options.lineThickness||0!==this.parent.lineThickness)){var f=this.ctx,b=this.ctx.globalAlpha;this.ctx=a||this.ctx;this.ctx.save();this.ctx.beginPath();this.ctx.rect(this.chart.plotArea.x1,this.chart.plotArea.y1,this.chart.plotArea.width,this.chart.plotArea.height);this.ctx.clip();var c=this.scaleBreaks.parent.getPixelCoordinatesOnAxis(this.startValue),\ne=this.scaleBreaks.parent.getPixelCoordinatesOnAxis(this.endValue);this.ctx.strokeStyle=this.lineColor;this.ctx.fillStyle=this.color;this.ctx.beginPath();this.ctx.globalAlpha=1;R(this.id);var g,h,l,m,k,r;a=Math.max(this.spacing,3);var p=Math.max(0,this.lineThickness);this.ctx.lineWidth=p;this.ctx.setLineDash&&this.ctx.setLineDash(F(this.lineDashType,p));if(\"bottom\"===this.scaleBreaks.parent._position||\"top\"===this.scaleBreaks.parent._position)if(c=1===p%2?(c.x<<0)+0.5:c.x<<0,h=1===p%2?(e.x<<0)+0.5:\ne.x<<0,\"top\"===this.scaleBreaks.parent._position?(e=this.chart.plotArea.y1,l=this.chart.plotArea.y2+p/2+0.5<<0):(e=this.chart.plotArea.y2,l=this.chart.plotArea.y1-p/2+0.5<<0,a*=-1),this.bounds={x1:c-p/2,y1:e,x2:h+p/2,y2:l},this.ctx.moveTo(c,e),\"straight\"===this.type||\"top\"===this.scaleBreaks.parent._position&&0>=a||\"bottom\"===this.scaleBreaks.parent._position&&0<=a)this.ctx.lineTo(c,l),this.ctx.lineTo(h,l),this.ctx.lineTo(h,e);else if(\"wavy\"===this.type){m=c;k=e;g=0.5;r=(l-k)/a/3;for(var n=0;n<r;n++)this.ctx.bezierCurveTo(m+\ng*a,k+a,m+g*a,k+2*a,m,k+3*a),k+=3*a,g*=-1;this.ctx.bezierCurveTo(m+g*a,k+a,m+g*a,k+2*a,m,k+3*a);m=h;g*=-1;this.ctx.lineTo(m,k);for(n=0;n<r;n++)this.ctx.bezierCurveTo(m+g*a,k-a,m+g*a,k-2*a,m,k-3*a),k-=3*a,g*=-1}else{if(\"zigzag\"===this.type){g=-1;k=e+a;m=c+a;r=(l-k)/a/2;for(n=0;n<r;n++)this.ctx.lineTo(m,k),m+=2*g*a,k+=2*a,g*=-1;this.ctx.lineTo(m,k);m+=h-c;for(n=0;n<r+1;n++)this.ctx.lineTo(m,k),m+=2*g*a,k-=2*a,g*=-1;this.ctx.lineTo(m+g*a,k+a)}}else if(\"left\"===this.scaleBreaks.parent._position||\"right\"===\nthis.scaleBreaks.parent._position)if(e=1===p%2?(e.y<<0)+0.5:e.y<<0,l=1===p%2?(c.y<<0)+0.5:c.y<<0,\"left\"===this.scaleBreaks.parent._position?(c=this.chart.plotArea.x1,h=this.chart.plotArea.x2+p/2+0.5<<0):(c=this.chart.plotArea.x2,h=this.chart.plotArea.x1-p/2+0.5<<0,a*=-1),this.bounds={x1:c,y1:e-p/2,x2:h,y2:l+p/2},this.ctx.moveTo(c,e),\"straight\"===this.type||\"left\"===this.scaleBreaks.parent._position&&0>=a||\"right\"===this.scaleBreaks.parent._position&&0<=a)this.ctx.lineTo(h,e),this.ctx.lineTo(h,l),\nthis.ctx.lineTo(c,l);else if(\"wavy\"===this.type){m=c;k=e;g=0.5;r=(h-m)/a/3;for(n=0;n<r;n++)this.ctx.bezierCurveTo(m+a,k+g*a,m+2*a,k+g*a,m+3*a,k),m+=3*a,g*=-1;this.ctx.bezierCurveTo(m+a,k+g*a,m+2*a,k+g*a,m+3*a,k);k=l;g*=-1;this.ctx.lineTo(m,k);for(n=0;n<r;n++)this.ctx.bezierCurveTo(m-a,k+g*a,m-2*a,k+g*a,m-3*a,k),m-=3*a,g*=-1}else if(\"zigzag\"===this.type){g=1;k=e-a;m=c+a;r=(h-m)/a/2;for(n=0;n<r;n++)this.ctx.lineTo(m,k),k+=2*g*a,m+=2*a,g*=-1;this.ctx.lineTo(m,k);k+=l-e;for(n=0;n<r+1;n++)this.ctx.lineTo(m,\nk),k+=2*g*a,m-=2*a,g*=-1;this.ctx.lineTo(m+a,k+g*a)}0<p&&this.ctx.stroke();this.ctx.closePath();this.ctx.globalAlpha=this.fillOpacity;this.ctx.globalCompositeOperation=\"destination-over\";this.ctx.fill();this.ctx.restore();this.ctx.globalAlpha=b;this.ctx=f}};na(fa,Y);fa.prototype.createUserOptions=function(a){if(\"undefined\"!==typeof a||this.options._isPlaceholder){var f=0;this.parent.options._isPlaceholder&&this.parent.createUserOptions();this.options._isPlaceholder||(Ca(this.parent.stripLines),f=\nthis.parent.options.stripLines.indexOf(this.options));this.options=\"undefined\"===typeof a?{}:a;this.parent.options.stripLines[f]=this.options}};fa.prototype.render=function(){this.ctx.save();var a=this.parent.getPixelCoordinatesOnAxis(this.value),f=Math.abs(\"pixel\"===this._thicknessType?this.thickness:this.parent.conversionParameters.pixelPerUnit*this.thickness);if(0<f){var b=null===this.opacity?1:this.opacity;this.ctx.strokeStyle=this.color;this.ctx.beginPath();var c=this.ctx.globalAlpha;this.ctx.globalAlpha=\nb;R(this.id);var e,g,h,l;this.ctx.lineWidth=f;this.ctx.setLineDash&&this.ctx.setLineDash(F(this.lineDashType,f));if(\"bottom\"===this.parent._position||\"top\"===this.parent._position)e=g=1===this.ctx.lineWidth%2?(a.x<<0)+0.5:a.x<<0,h=this.chart.plotArea.y1,l=this.chart.plotArea.y2,this.bounds={x1:e-f/2,y1:h,x2:g+f/2,y2:l};else if(\"left\"===this.parent._position||\"right\"===this.parent._position)h=l=1===this.ctx.lineWidth%2?(a.y<<0)+0.5:a.y<<0,e=this.chart.plotArea.x1,g=this.chart.plotArea.x2,this.bounds=\n{x1:e,y1:h-f/2,x2:g,y2:l+f/2};this.ctx.moveTo(e,h);this.ctx.lineTo(g,l);this.ctx.stroke();this.ctx.globalAlpha=c}this.ctx.restore()};na(ha,Y);ha.prototype.render=function(a,f){var b,c,e,g,h=null,l=h=null,m=\"\";if(!this.valueFormatString)if(\"dateTime\"===this.parent.valueType)this.valueFormatString=this.parent.valueFormatString;else{var k=0,k=\"xySwapped\"===this.chart.plotInfo.axisPlacement?50<this.parent.range?0:500<this.chart.width&&25>this.parent.range?2:Math.floor(Math.abs(Math.log(this.parent.range)/\nMath.LN10))+(5>this.parent.range?2:10>this.parent.range?1:0):50<this.parent.range?0:Math.floor(Math.abs(Math.log(this.parent.range)/Math.LN10))+(5>this.parent.range?2:10>this.parent.range?1:0);this.valueFormatString=C.generateValueFormatString(this.parent.range,k)}var l=null===this.opacity?1:this.opacity,k=Math.abs(\"pixel\"===this._thicknessType?this.thickness:this.parent.conversionParameters.pixelPerUnit*this.thickness),r=this.chart.overlaidCanvasCtx,p=r.globalAlpha;r.globalAlpha=l;r.beginPath();\nr.strokeStyle=this.color;r.lineWidth=k;r.save();this.labelFontSize=y(this.options.labelFontSize)?this.parent.labelFontSize:this.labelFontSize;if(\"left\"===this.parent._position||\"right\"===this.parent._position)this.labelMaxWidth=y(this.options.labelMaxWidth)?this.parent.bounds.x2-this.parent.bounds.x1:this.labelMaxWidth,this.labelMaxHeight=y(this.options.labelWrap)||this.labelWrap?3*this.chart.height:2*this.labelFontSize;else if(\"top\"===this.parent._position||\"bottom\"===this.parent._position)this.labelMaxWidth=\ny(this.options.labelMaxWidth)?3*this.chart.width:this.labelMaxWidth,this.labelMaxHeight=y(this.options.labelWrap)||this.labelWrap?this.parent.bounds.height:2*this.labelFontSize;0<k&&r.setLineDash&&r.setLineDash(F(this.lineDashType,k));l=new ka(r,{x:0,y:0,padding:{top:2,right:3,bottom:2,left:4},backgroundColor:this.labelBackgroundColor,borderColor:this.labelBorderColor,borderThickness:this.labelBorderThickness,cornerRadius:this.labelCornerRadius,maxWidth:this.labelMaxWidth,maxHeight:this.labelMaxHeight,\nangle:this.labelAngle,text:m,horizontalAlign:\"left\",fontSize:this.labelFontSize,fontFamily:this.labelFontFamily,fontWeight:this.labelFontWeight,fontColor:this.labelFontColor,fontStyle:this.labelFontStyle,textBaseline:\"middle\"});if(this.snapToDataPoint){var n=0,h=[];if(\"xySwapped\"===this.chart.plotInfo.axisPlacement){var d=null;if(\"bottom\"===this.parent._position||\"top\"===this.parent._position)n=this.parent.dataSeries[0].axisX.convertPixelToValue({y:f});else if(\"left\"===this.parent._position||\"right\"===\nthis.parent._position)n=this.parent.convertPixelToValue({y:f});for(var q=0;q<this.parent.dataSeries.length;q++)(d=this.parent.dataSeries[q].getDataPointAtX(n,!0))&&0<=d.index&&(d.dataSeries=this.parent.dataSeries[q],null!==d.dataPoint.y&&h.push(d));d=null;if(0===h.length)return;h.sort(function(a,b){return a.distance-b.distance});d=Math.abs(a-this.parent.convertValueToPixel(h[0].dataPoint.y));q=0;if(\"rangeBar\"===h[0].dataSeries.type||\"error\"===h[0].dataSeries.type)for(var d=Math.abs(a-this.parent.convertValueToPixel(h[q].dataPoint.y[0])),\ns=0,n=0;n<h.length;n++)if(h[n].dataPoint.y&&h[n].dataPoint.y.length)for(m=0;m<h[n].dataPoint.y.length;m++)s=Math.abs(a-this.parent.convertValueToPixel(h[n].dataPoint.y[m])),s<d&&(d=s,q=n);else s=Math.abs(a-this.parent.convertValueToPixel(h[n].dataPoint.y)),s<d&&(d=s,q=n);else if(\"stackedBar\"===h[0].dataSeries.type)for(var d=Math.abs(a-this.parent.convertValueToPixel(h[0].dataPoint.y)),v=s=0,n=q=0;n<h.length;n++)if(h[n].dataPoint.y&&h[n].dataPoint.y.length)for(m=0;m<h[n].dataPoint.y.length;m++)s=Math.abs(a-\nthis.parent.convertValueToPixel(h[n].dataPoint.y[m])),s<d&&(d=s,q=n);else v+=h[n].dataPoint.y,s=Math.abs(a-this.parent.convertValueToPixel(v)),s<d&&(d=s,q=n);else if(\"stackedBar100\"===h[0].dataSeries.type)for(var d=Math.abs(a-this.parent.convertValueToPixel(h[0].dataPoint.y)),u=v=s=0,n=0;n<h.length;n++)if(h[n].dataPoint.y&&h[n].dataPoint.y.length)for(m=0;m<h[n].dataPoint.y.length;m++)s=Math.abs(a-this.parent.convertValueToPixel(h[n].dataPoint.y[m])),s<d&&(d=s,q=n);else v+=h[n].dataPoint.y,u=h[n].dataPoint.x.getTime?\nh[n].dataPoint.x.getTime():h[n].dataPoint.x,u=100*(v/h[n].dataSeries.plotUnit.dataPointYSums[u]),s=Math.abs(a-this.parent.convertValueToPixel(u)),s<d&&(d=s,q=n);else for(d=Math.abs(a-this.parent.convertValueToPixel(h[0].dataPoint.y)),n=q=s=0;n<h.length;n++)if(h[n].dataPoint.y&&h[n].dataPoint.y.length)for(m=0;m<h[n].dataPoint.y.length;m++)s=Math.abs(a-this.parent.convertValueToPixel(h[n].dataPoint.y[m])),s<d&&(d=s,q=n);else s=Math.abs(a-this.parent.convertValueToPixel(h[n].dataPoint.y)),s<d&&(d=s,\nq=n);m=h[q];if(\"bottom\"===this.parent._position||\"top\"===this.parent._position){b=0;if(\"rangeBar\"===this.parent.dataSeries[q].type||\"error\"===this.parent.dataSeries[q].type){d=Math.abs(a-this.parent.convertValueToPixel(m.dataPoint.y[0]));for(n=s=0;n<m.dataPoint.y.length;n++)s=Math.abs(a-this.parent.convertValueToPixel(m.dataPoint.y[n])),s<d&&(d=s,b=n);h=1===r.lineWidth%2?(this.parent.convertValueToPixel(m.dataPoint.y[b])<<0)+0.5:this.parent.convertValueToPixel(m.dataPoint.y[b])<<0;l.text=this.labelFormatter?\nthis.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataPoint.y[b]}):y(this.options.label)?V(m.dataPoint.y[b],this.valueFormatString,this.chart._cultureInfo):this.label}else if(\"stackedBar\"===this.parent.dataSeries[q].type){d=Math.abs(a-this.parent.convertValueToPixel(h[0].dataPoint.y));v=s=0;for(n=q;0<=n;n--)v+=h[n].dataPoint.y,s=Math.abs(a-this.parent.convertValueToPixel(v)),s<d&&(d=s,b=n);h=1===r.lineWidth%2?(this.parent.convertValueToPixel(v)<<0)+0.5:\nthis.parent.convertValueToPixel(v)<<0;l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataPoint.y}):y(this.options.label)?V(m.dataPoint.y,this.valueFormatString,this.chart._cultureInfo):this.label}else if(\"stackedBar100\"===this.parent.dataSeries[q].type){d=Math.abs(a-this.parent.convertValueToPixel(h[0].dataPoint.y));u=v=s=0;for(n=q;0<=n;n--)v+=h[n].dataPoint.y,u=h[n].dataPoint.x.getTime?h[n].dataPoint.x.getTime():h[n].dataPoint.x,\nu=100*(v/h[n].dataSeries.plotUnit.dataPointYSums[u]),s=Math.abs(a-this.parent.convertValueToPixel(u)),s<d&&(d=s,b=n);h=1===r.lineWidth%2?(this.parent.convertValueToPixel(u)<<0)+0.5:this.parent.convertValueToPixel(u)<<0;l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:u}):y(this.options.label)?V(u,this.valueFormatString,this.chart._cultureInfo):this.label}else h=1===r.lineWidth%2?(this.parent.convertValueToPixel(m.dataPoint.y)<<\n0)+0.5:this.parent.convertValueToPixel(m.dataPoint.y)<<0,l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataPoint.y}):y(this.options.label)?V(m.dataPoint.y,this.valueFormatString,this.chart._cultureInfo):this.label;b=c=h;e=this.chart.plotArea.y1;g=this.chart.plotArea.y2;this.bounds={x1:b-k/2,y1:e,x2:c+k/2,y2:g};l.x=b-l.measureText().width/2;l.x+l.width>this.chart.bounds.x2?l.x=this.chart.bounds.x2-l.width:l.x<this.chart.bounds.x1&&\n(l.x=this.chart.bounds.x1);l.y=this.parent.lineCoordinates.y2+l.fontSize/2+2}else if(\"left\"===this.parent._position||\"right\"===this.parent._position){e=g=h=1===r.lineWidth%2?(this.parent.convertValueToPixel(m.dataPoint.x)<<0)+0.5:this.parent.convertValueToPixel(m.dataPoint.x)<<0;b=this.chart.plotArea.x1;c=this.chart.plotArea.x2;this.bounds={x1:b,y1:e-k/2,x2:c,y2:g+k/2};u=!1;if(this.parent.labels)for(h=Math.ceil(this.parent.interval),n=0;n<this.parent.viewportMaximum;n+=h)if(this.parent.labels[n])u=\n!0;else{u=!1;break}if(u){if(\"axisX\"===this.parent.type)for(n=this.parent.convertPixelToValue({y:f}),d=null,q=0;q<this.parent.dataSeries.length;q++)(d=this.parent.dataSeries[q].getDataPointAtX(n,!0))&&0<=d.index&&(l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataPoint.x}):y(this.options.label)?d.dataPoint.label:this.label)}else\"dateTime\"===this.parent.valueType?l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,\naxis:this.parent.options,crosshair:this.options,value:m.dataPoint.x}):y(this.options.label)?Aa(m.dataPoint.x,this.valueFormatString,this.chart._cultureInfo):this.label:\"number\"===this.parent.valueType&&(l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataPoint.x}):y(this.options.label)?V(m.dataPoint.x,this.valueFormatString,this.chart._cultureInfo):this.label);l.y=g+l.fontSize/2-l.measureText().height/2+2;l.y-l.fontSize/2<this.chart.bounds.y1?\nl.y=this.chart.bounds.y1+l.fontSize/2+2:l.y+l.measureText().height-l.fontSize/2>this.chart.bounds.y2&&(l.y=this.chart.bounds.y2-l.measureText().height+l.fontSize/2);\"left\"===this.parent._position?l.x=this.parent.lineCoordinates.x2-l.measureText().width:\"right\"===this.parent._position&&(l.x=this.parent.lineCoordinates.x2)}}else if(\"bottom\"===this.parent._position||\"top\"===this.parent._position){n=this.parent.convertPixelToValue({x:a});for(q=0;q<this.parent.dataSeries.length;q++)(d=this.parent.dataSeries[q].getDataPointAtX(n,\n!0))&&0<=d.index&&(d.dataSeries=this.parent.dataSeries[q],null!==d.dataPoint.y&&h.push(d));if(0===h.length)return;h.sort(function(a,b){return a.distance-b.distance});m=h[0];b=c=h=1===r.lineWidth%2?(this.parent.convertValueToPixel(m.dataPoint.x)<<0)+0.5:this.parent.convertValueToPixel(m.dataPoint.x)<<0;e=this.chart.plotArea.y1;g=this.chart.plotArea.y2;this.bounds={x1:b-k/2,y1:e,x2:c+k/2,y2:g};u=!1;if(this.parent.labels)for(h=Math.ceil(this.parent.interval),n=0;n<this.parent.viewportMaximum;n+=h)if(this.parent.labels[n])u=\n!0;else{u=!1;break}if(u){if(\"axisX\"===this.parent.type)for(n=this.parent.convertPixelToValue({x:a}),d=null,q=0;q<this.parent.dataSeries.length;q++)(d=this.parent.dataSeries[q].getDataPointAtX(n,!0))&&0<=d.index&&(l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataPoint.x}):y(this.options.label)?d.dataPoint.label:this.label)}else\"dateTime\"===this.parent.valueType?l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,\naxis:this.parent.options,crosshair:this.options,value:m.dataPoint.x}):y(this.options.label)?Aa(m.dataPoint.x,this.valueFormatString,this.chart._cultureInfo):this.label:\"number\"===this.parent.valueType&&(l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataPoint.x}):y(this.options.label)?V(m.dataPoint.x,this.valueFormatString,this.chart._cultureInfo):this.label);l.x=b-l.measureText().width/2;l.x+l.width>this.chart.bounds.x2&&(l.x=\nthis.chart.bounds.x2-l.width);l.x<this.chart.bounds.x1&&(l.x=this.chart.bounds.x1);\"bottom\"===this.parent._position?l.y=this.parent.lineCoordinates.y2+l.fontSize/2+2:\"top\"===this.parent._position&&(l.y=this.parent.lineCoordinates.y1-l.height+l.fontSize/2+2)}else if(\"left\"===this.parent._position||\"right\"===this.parent._position){!y(this.parent.dataSeries)&&0<this.parent.dataSeries.length&&(n=this.parent.dataSeries[0].axisX.convertPixelToValue({x:a}));for(q=0;q<this.parent.dataSeries.length;q++)(d=\nthis.parent.dataSeries[q].getDataPointAtX(n,!0))&&0<=d.index&&(d.dataSeries=this.parent.dataSeries[q],null!==d.dataPoint.y&&h.push(d));if(0===h.length)return;h.sort(function(a,b){return a.distance-b.distance});q=0;if(\"rangeColumn\"===h[0].dataSeries.type||\"rangeArea\"===h[0].dataSeries.type||\"error\"===h[0].dataSeries.type||\"rangeSplineArea\"===h[0].dataSeries.type||\"candlestick\"===h[0].dataSeries.type||\"ohlc\"===h[0].dataSeries.type||\"boxAndWhisker\"===h[0].dataSeries.type)for(d=Math.abs(f-this.parent.convertValueToPixel(h[0].dataPoint.y[0])),\nn=s=0;n<h.length;n++)if(h[n].dataPoint.y&&h[n].dataPoint.y.length)for(m=0;m<h[n].dataPoint.y.length;m++)s=Math.abs(f-this.parent.convertValueToPixel(h[n].dataPoint.y[m])),s<d&&(d=s,q=n);else s=Math.abs(f-this.parent.convertValueToPixel(h[n].dataPoint.y)),s<d&&(d=s,q=n);else if(\"stackedColumn\"===h[0].dataSeries.type||\"stackedArea\"===h[0].dataSeries.type)for(d=Math.abs(f-this.parent.convertValueToPixel(h[0].dataPoint.y)),n=v=s=0;n<h.length;n++)if(h[n].dataPoint.y&&h[n].dataPoint.y.length)for(m=0;m<\nh[n].dataPoint.y.length;m++)s=Math.abs(f-this.parent.convertValueToPixel(h[n].dataPoint.y[m])),s<d&&(d=s,q=n);else v+=h[n].dataPoint.y,s=Math.abs(f-this.parent.convertValueToPixel(v)),s<d&&(d=s,q=n);else if(\"stackedColumn100\"===h[0].dataSeries.type||\"stackedArea100\"===h[0].dataSeries.type)for(d=Math.abs(f-this.parent.convertValueToPixel(h[0].dataPoint.y)),n=u=v=s=0;n<h.length;n++)if(h[n].dataPoint.y&&h[n].dataPoint.y.length)for(m=0;m<h[n].dataPoint.y.length;m++)s=Math.abs(f-this.parent.convertValueToPixel(h[n].dataPoint.y[m])),\ns<d&&(d=s,q=n);else v+=h[n].dataPoint.y,u=h[n].dataPoint.x.getTime?h[n].dataPoint.x.getTime():h[n].dataPoint.x,u=100*(v/h[n].dataSeries.plotUnit.dataPointYSums[u]),s=Math.abs(f-this.parent.convertValueToPixel(u)),s<d&&(d=s,q=n);else for(d=Math.abs(f-this.parent.convertValueToPixel(h[0].dataPoint.y)),n=s=0;n<h.length;n++)if(h[n].dataPoint.y&&h[n].dataPoint.y.length)for(m=0;m<h[n].dataPoint.y.length;m++)s=Math.abs(f-this.parent.convertValueToPixel(h[n].dataPoint.y[m])),s<d&&(d=s,q=n);else s=Math.abs(f-\nthis.parent.convertValueToPixel(h[n].dataPoint.y)),s<d&&(d=s,q=n);m=h[q];b=0;if(\"rangeColumn\"===this.parent.dataSeries[q].type||\"rangeArea\"===this.parent.dataSeries[q].type||\"error\"===this.parent.dataSeries[q].type||\"rangeSplineArea\"===this.parent.dataSeries[q].type||\"candlestick\"===this.parent.dataSeries[q].type||\"ohlc\"===this.parent.dataSeries[q].type||\"boxAndWhisker\"===this.parent.dataSeries[q].type){d=Math.abs(f-this.parent.convertValueToPixel(m.dataPoint.y[0]));for(n=s=0;n<m.dataPoint.y.length;n++)s=\nMath.abs(f-this.parent.convertValueToPixel(m.dataPoint.y[n])),s<d&&(d=s,b=n);h=1===r.lineWidth%2?(this.parent.convertValueToPixel(m.dataPoint.y[b])<<0)+0.5:this.parent.convertValueToPixel(m.dataPoint.y[b])<<0;l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataPoint.y[b]}):y(this.options.label)?V(m.dataPoint.y[b],this.valueFormatString,this.chart._cultureInfo):this.label}else if(\"stackedColumn\"===this.parent.dataSeries[q].type||\n\"stackedArea\"===this.parent.dataSeries[q].type){d=Math.abs(f-this.parent.convertValueToPixel(h[0].dataPoint.y));v=s=0;for(n=q;0<=n;n--)v+=h[n].dataPoint.y,s=Math.abs(f-this.parent.convertValueToPixel(v)),s<d&&(d=s,b=n);h=1===r.lineWidth%2?(this.parent.convertValueToPixel(v)<<0)+0.5:this.parent.convertValueToPixel(v)<<0;l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataPoint.y}):y(this.options.label)?V(m.dataPoint.y,this.valueFormatString,\nthis.chart._cultureInfo):this.label}else if(\"stackedColumn100\"===this.parent.dataSeries[q].type||\"stackedArea100\"===this.parent.dataSeries[q].type){d=Math.abs(f-this.parent.convertValueToPixel(h[0].dataPoint.y));v=s=0;for(n=q;0<=n;n--)v+=h[n].dataPoint.y,u=h[n].dataPoint.x.getTime?h[n].dataPoint.x.getTime():h[n].dataPoint.x,u=100*(v/h[n].dataSeries.plotUnit.dataPointYSums[u]),s=Math.abs(f-this.parent.convertValueToPixel(u)),s<d&&(d=s,b=n);h=1===r.lineWidth%2?(this.parent.convertValueToPixel(u)<<0)+\n0.5:this.parent.convertValueToPixel(u)<<0;l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:u}):y(this.options.label)?V(u,this.valueFormatString,this.chart._cultureInfo):this.label}else\"waterfall\"===this.parent.dataSeries[q].type?(h=1===r.lineWidth%2?(this.parent.convertValueToPixel(m.dataSeries.dataPointEOs[m.index].cumulativeSum)<<0)+0.5:this.parent.convertValueToPixel(m.dataSeries.dataPointEOs[m.index].cumulativeSum)<<0,l.text=\nthis.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:m.dataSeries.dataPointEOs[m.index].cumulativeSum}):y(this.options.label)?V(m.dataSeries.dataPointEOs[m.index].cumulativeSum,this.valueFormatString,this.chart._cultureInfo):this.label):(h=1===r.lineWidth%2?(this.parent.convertValueToPixel(m.dataPoint.y)<<0)+0.5:this.parent.convertValueToPixel(m.dataPoint.y)<<0,l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,\ncrosshair:this.options,value:m.dataPoint.y}):y(this.options.label)?V(m.dataPoint.y,this.valueFormatString,this.chart._cultureInfo):this.label);e=g=h;b=this.chart.plotArea.x1;c=this.chart.plotArea.x2;this.bounds={x1:b,y1:e-k/2,x2:c,y2:g+k/2};l.y=g+l.fontSize/2-l.measureText().height/2+2;l.y-l.fontSize/2<this.chart.bounds.y1?l.y=this.chart.bounds.y1+l.fontSize/2+2:l.y+l.measureText().height-l.fontSize/2>this.chart.bounds.y2&&(l.y=this.chart.bounds.y2-l.measureText().height+l.fontSize/2);\"left\"===this.parent._position?\nl.x=this.parent.lineCoordinates.x2-l.measureText().width:\"right\"===this.parent._position&&(l.x=this.parent.lineCoordinates.x2)}h=null;(\"bottom\"===this.parent._position||\"top\"===this.parent._position)&&(b>=this.parent.convertValueToPixel(this.parent.viewportMinimum)&&c<=this.parent.convertValueToPixel(this.parent.viewportMaximum))&&(0<k&&(r.moveTo(b,e),r.lineTo(c,g),r.stroke()),r.restore(),!y(l.text)&&(\"number\"===typeof l.text.valueOf()||0<l.text.length)&&l.render(!0));(\"left\"===this.parent._position||\n\"right\"===this.parent._position)&&(g>=this.parent.convertValueToPixel(this.parent.viewportMaximum)&&e<=this.parent.convertValueToPixel(this.parent.viewportMinimum))&&(0<k&&(r.moveTo(b,e),r.lineTo(c,g),r.stroke()),r.restore(),!y(l.text)&&(\"number\"===typeof l.text.valueOf()||0<l.text.length)&&l.render(!0))}else{if(\"bottom\"===this.parent._position||\"top\"===this.parent._position)b=c=h=1===r.lineWidth%2?(a<<0)+0.5:a<<0,e=this.chart.plotArea.y1,g=this.chart.plotArea.y2,this.bounds={x1:b-k/2,y1:e,x2:c+k/\n2,y2:g};else if(\"left\"===this.parent._position||\"right\"===this.parent._position)e=g=h=1===r.lineWidth%2?(f<<0)+0.5:f<<0,b=this.chart.plotArea.x1,c=this.chart.plotArea.x2,this.bounds={x1:b,y1:e-k/2,x2:c,y2:g+k/2};if(\"xySwapped\"===this.chart.plotInfo.axisPlacement)if(\"left\"===this.parent._position||\"right\"===this.parent._position){u=!1;if(this.parent.labels)for(h=Math.ceil(this.parent.interval),n=0;n<this.parent.viewportMaximum;n+=h)if(this.parent.labels[n])u=!0;else{u=!1;break}if(u){if(\"axisX\"===this.parent.type)for(n=\nthis.parent.convertPixelToValue({y:f}),d=null,q=0;q<this.parent.dataSeries.length;q++)(d=this.parent.dataSeries[q].getDataPointAtX(n,!0))&&0<=d.index&&(l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:this.parent.convertPixelToValue(a)}):y(this.options.label)?d.dataPoint.label:this.label)}else\"dateTime\"===this.parent.valueType?l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,\nvalue:this.parent.convertPixelToValue(f)}):y(this.options.label)?Aa(this.parent.convertPixelToValue(f),this.valueFormatString,this.chart._cultureInfo):this.label:\"number\"===this.parent.valueType&&(l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:this.parent.convertPixelToValue(f)}):y(this.options.label)?V(this.parent.convertPixelToValue(f),this.valueFormatString,this.chart._cultureInfo):this.label);l.y=f+l.fontSize/2-l.measureText().height/\n2+2;l.y-l.fontSize/2<this.chart.bounds.y1?l.y=this.chart.bounds.y1+l.fontSize/2+2:l.y+l.measureText().height-l.fontSize/2>this.chart.bounds.y2&&(l.y=this.chart.bounds.y2-l.measureText().height+l.fontSize/2);\"left\"===this.parent._position?l.x=this.parent.lineCoordinates.x1-l.measureText().width:\"right\"===this.parent._position&&(l.x=this.parent.lineCoordinates.x2)}else{if(\"bottom\"===this.parent._position||\"top\"===this.parent._position)l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,\naxis:this.parent.options,crosshair:this.options,value:this.parent.convertPixelToValue(a)}):y(this.options.label)?V(this.parent.convertPixelToValue(a),this.valueFormatString,this.chart._cultureInfo):this.label,l.x=b-l.measureText().width/2,l.x+l.width>this.chart.bounds.x2&&(l.x=this.chart.bounds.x2-l.width),l.x<this.chart.bounds.x1&&(l.x=this.chart.bounds.x1),\"bottom\"===this.parent._position&&(l.y=this.parent.lineCoordinates.y2+l.fontSize/2+2),\"top\"===this.parent._position&&(l.y=this.parent.lineCoordinates.y1-\nl.height+l.fontSize/2+2)}else if(\"bottom\"===this.parent._position||\"top\"===this.parent._position){u=!1;m=\"\";if(this.parent.labels)for(h=Math.ceil(this.parent.interval),n=0;n<this.parent.viewportMaximum;n+=h)if(this.parent.labels[n])u=!0;else{u=!1;break}if(u){if(\"axisX\"===this.parent.type)for(n=this.parent.convertPixelToValue({x:a}),d=null,q=0;q<this.parent.dataSeries.length;q++)(d=this.parent.dataSeries[q].getDataPointAtX(n,!0))&&0<=d.index&&(l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,\naxis:this.parent.options,crosshair:this.options,value:this.parent.convertPixelToValue(a)}):y(this.options.label)?d.dataPoint.label:this.label)}else\"dateTime\"===this.parent.valueType?l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:this.parent.convertPixelToValue(a)}):y(this.options.label)?Aa(this.parent.convertPixelToValue(a),this.valueFormatString,this.chart._cultureInfo):this.label:\"number\"===this.parent.valueType&&(l.text=this.labelFormatter?\nthis.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:0<this.parent.dataSeries.length?this.parent.convertPixelToValue(a):\"\"}):y(this.options.label)?V(this.parent.convertPixelToValue(a),this.valueFormatString,this.chart._cultureInfo):this.label);l.x=b-l.measureText().width/2;l.x+l.width>this.chart.bounds.x2&&(l.x=this.chart.bounds.x2-l.width);l.x<this.chart.bounds.x1&&(l.x=this.chart.bounds.x1);\"bottom\"===this.parent._position?l.y=this.parent.lineCoordinates.y2+\nl.fontSize/2+2:\"top\"===this.parent._position&&(l.y=this.parent.lineCoordinates.y1-l.height+l.fontSize/2+2)}else if(\"left\"===this.parent._position||\"right\"===this.parent._position)l.text=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.parent.options,crosshair:this.options,value:this.parent.convertPixelToValue(f)}):y(this.options.label)?V(this.parent.convertPixelToValue(f),this.valueFormatString,this.chart._cultureInfo):this.label,l.y=f+l.fontSize/2-l.measureText().height/2+2,l.y-\nl.fontSize/2<this.chart.bounds.y1?l.y=this.chart.bounds.y1+l.fontSize/2+2:l.y+l.measureText().height-l.fontSize/2>this.chart.bounds.y2&&(l.y=this.chart.bounds.y2-l.measureText().height+l.fontSize/2),\"left\"===this.parent._position?l.x=this.parent.lineCoordinates.x2-l.measureText().width:\"right\"===this.parent._position&&(l.x=this.parent.lineCoordinates.x2);0<k&&(r.moveTo(b,e),r.lineTo(c,g),r.stroke());r.restore();!y(l.text)&&(\"number\"===typeof l.text.valueOf()||0<l.text.length)&&l.render(!0)}r.globalAlpha=\np};na(Z,Y);Z.prototype._initialize=function(){if(this.enabled){this.container=document.createElement(\"div\");this.container.setAttribute(\"class\",\"canvasjs-chart-tooltip\");this.container.style.position=\"absolute\";this.container.style.height=\"auto\";this.container.style.boxShadow=\"1px 1px 2px 2px rgba(0,0,0,0.1)\";this.container.style.zIndex=\"1000\";this.container.style.pointerEvents=\"none\";this.container.style.display=\"none\";var a;a='<div style=\" width: auto;height: auto;min-width: 50px;';a+=\"line-height: auto;\";\na+=\"margin: 0px 0px 0px 0px;\";a+=\"padding: 5px;\";a+=\"font-family: Calibri, Arial, Georgia, serif;\";a+=\"font-weight: normal;\";a+=\"font-style: \"+(v?\"italic;\":\"normal;\");a+=\"font-size: 14px;\";a+=\"color: #000000;\";a+=\"text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);\";a+=\"text-align: left;\";a+=\"border: 2px solid gray;\";a+=v?\"background: rgba(255,255,255,.9);\":\"background: rgb(255,255,255);\";a+=\"text-indent: 0px;\";a+=\"white-space: nowrap;\";a+=\"border-radius: 5px;\";a+=\"-moz-user-select:none;\";a+=\"-khtml-user-select: none;\";\na+=\"-webkit-user-select: none;\";a+=\"-ms-user-select: none;\";a+=\"user-select: none;\";v||(a+=\"filter: alpha(opacity = 90);\",a+=\"filter: progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#666666');\");a+='} \"> Sample Tooltip</div>';this.container.innerHTML=a;this.contentDiv=this.container.firstChild;this.container.style.borderRadius=this.contentDiv.style.borderRadius;this.chart._canvasJSContainer.appendChild(this.container)}};Z.prototype.mouseMoveHandler=function(a,f){this._lastUpdated&&\n4>(new Date).getTime()-this._lastUpdated||(this._lastUpdated=(new Date).getTime(),this.chart.resetOverlayedCanvas(),this._updateToolTip(a,f))};Z.prototype._updateToolTip=function(a,f,b){b=\"undefined\"===typeof b?!0:b;this.container||this._initialize();this.enabled||this.hide();if(!this.chart.disableToolTip){if(\"undefined\"===typeof a||\"undefined\"===typeof f){if(isNaN(this._prevX)||isNaN(this._prevY))return;a=this._prevX;f=this._prevY}else this._prevX=a,this._prevY=f;var c=null,e=null,g=[],h=0;if(this.shared&&\nthis.enabled&&\"none\"!==this.chart.plotInfo.axisPlacement){if(\"xySwapped\"===this.chart.plotInfo.axisPlacement){var l=[];if(this.chart.axisX)for(var m=0;m<this.chart.axisX.length;m++){for(var h=this.chart.axisX[m].convertPixelToValue({y:f}),k=null,c=0;c<this.chart.axisX[m].dataSeries.length;c++)(k=this.chart.axisX[m].dataSeries[c].getDataPointAtX(h,b))&&0<=k.index&&(k.dataSeries=this.chart.axisX[m].dataSeries[c],null!==k.dataPoint.y&&l.push(k));k=null}if(this.chart.axisX2)for(m=0;m<this.chart.axisX2.length;m++){h=\nthis.chart.axisX2[m].convertPixelToValue({y:f});k=null;for(c=0;c<this.chart.axisX2[m].dataSeries.length;c++)(k=this.chart.axisX2[m].dataSeries[c].getDataPointAtX(h,b))&&0<=k.index&&(k.dataSeries=this.chart.axisX2[m].dataSeries[c],null!==k.dataPoint.y&&l.push(k));k=null}}else{l=[];if(this.chart.axisX)for(m=0;m<this.chart.axisX.length;m++)for(h=this.chart.axisX[m].convertPixelToValue({x:a}),k=null,c=0;c<this.chart.axisX[m].dataSeries.length;c++)(k=this.chart.axisX[m].dataSeries[c].getDataPointAtX(h,\nb))&&0<=k.index&&(k.dataSeries=this.chart.axisX[m].dataSeries[c],null!==k.dataPoint.y&&l.push(k));if(this.chart.axisX2)for(m=0;m<this.chart.axisX2.length;m++)for(h=this.chart.axisX2[m].convertPixelToValue({x:a}),k=null,c=0;c<this.chart.axisX2[m].dataSeries.length;c++)(k=this.chart.axisX2[m].dataSeries[c].getDataPointAtX(h,b))&&0<=k.index&&(k.dataSeries=this.chart.axisX2[m].dataSeries[c],null!==k.dataPoint.y&&l.push(k))}if(0===l.length)return;l.sort(function(a,b){return a.distance-b.distance});b=l[0];\nfor(c=0;c<l.length;c++)l[c].dataPoint.x.valueOf()===b.dataPoint.x.valueOf()&&g.push(l[c]);l=null}else{if(k=this.chart.getDataPointAtXY(a,f,b))this.currentDataPointIndex=k.dataPointIndex,this.currentSeriesIndex=k.dataSeries.index;else if(v)if(k=Wa(a,f,this.chart._eventManager.ghostCtx),0<k&&\"undefined\"!==typeof this.chart._eventManager.objectMap[k]){k=this.chart._eventManager.objectMap[k];if(\"legendItem\"===k.objectType)return;this.currentSeriesIndex=k.dataSeriesIndex;this.currentDataPointIndex=0<=\nk.dataPointIndex?k.dataPointIndex:-1}else this.currentDataPointIndex=-1;else this.currentDataPointIndex=-1;if(0<=this.currentSeriesIndex){e=this.chart.data[this.currentSeriesIndex];k={};if(0<=this.currentDataPointIndex)c=e.dataPoints[this.currentDataPointIndex],k.dataSeries=e,k.dataPoint=c,k.index=this.currentDataPointIndex,k.distance=Math.abs(c.x-h),\"waterfall\"===e.type&&(k.cumulativeSumYStartValue=e.dataPointEOs[this.currentDataPointIndex].cumulativeSumYStartValue,k.cumulativeSum=e.dataPointEOs[this.currentDataPointIndex].cumulativeSum);\nelse{if(!this.enabled||\"line\"!==e.type&&\"stepLine\"!==e.type&&\"spline\"!==e.type&&\"area\"!==e.type&&\"stepArea\"!==e.type&&\"splineArea\"!==e.type&&\"stackedArea\"!==e.type&&\"stackedArea100\"!==e.type&&\"rangeArea\"!==e.type&&\"rangeSplineArea\"!==e.type&&\"candlestick\"!==e.type&&\"ohlc\"!==e.type&&\"boxAndWhisker\"!==e.type)return;h=e.axisX.convertPixelToValue({x:a});k=e.getDataPointAtX(h,b);k.dataSeries=e;this.currentDataPointIndex=k.index;c=k.dataPoint}if(!y(k.dataPoint.y))if(k.dataSeries.axisY)if(0<k.dataPoint.y.length){for(c=\nb=0;c<k.dataPoint.y.length;c++)k.dataPoint.y[c]<k.dataSeries.axisY.viewportMinimum?b--:k.dataPoint.y[c]>k.dataSeries.axisY.viewportMaximum&&b++;b<k.dataPoint.y.length&&b>-k.dataPoint.y.length&&g.push(k)}else\"column\"===e.type||\"bar\"===e.type?0>k.dataPoint.y?0>k.dataSeries.axisY.viewportMinimum&&k.dataSeries.axisY.viewportMaximum>=k.dataPoint.y&&g.push(k):k.dataSeries.axisY.viewportMinimum<=k.dataPoint.y&&0<=k.dataSeries.axisY.viewportMaximum&&g.push(k):\"bubble\"===e.type?(b=this.chart._eventManager.objectMap[e.dataPointIds[k.index]].size/\n2,k.dataPoint.y>=k.dataSeries.axisY.viewportMinimum-b&&k.dataPoint.y<=k.dataSeries.axisY.viewportMaximum+b&&g.push(k)):\"waterfall\"===e.type?(b=0,k.cumulativeSumYStartValue<k.dataSeries.axisY.viewportMinimum?b--:k.cumulativeSumYStartValue>k.dataSeries.axisY.viewportMaximum&&b++,k.cumulativeSum<k.dataSeries.axisY.viewportMinimum?b--:k.cumulativeSum>k.dataSeries.axisY.viewportMaximum&&b++,2>b&&-2<b&&g.push(k)):(0<=k.dataSeries.type.indexOf(\"100\")||\"stackedColumn\"===e.type||\"stackedBar\"===e.type||k.dataPoint.y>=\nk.dataSeries.axisY.viewportMinimum&&k.dataPoint.y<=k.dataSeries.axisY.viewportMaximum)&&g.push(k);else g.push(k)}}if(0<g.length&&(this.highlightObjects(g),this.enabled))if(b=\"\",b=this.getToolTipInnerHTML({entries:g}),null!==b){this.contentDiv.innerHTML=b;b=!1;\"none\"===this.container.style.display&&(b=!0,this.container.style.display=\"block\");try{this.contentDiv.style.background=this.backgroundColor?this.backgroundColor:v?\"rgba(255,255,255,.9)\":\"rgb(255,255,255)\",this.borderColor=\"waterfall\"===g[0].dataSeries.type?\nthis.contentDiv.style.borderRightColor=this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=this.options.borderColor?this.options.borderColor:g[0].dataPoint.color?g[0].dataPoint.color:0<g[0].dataPoint.y?g[0].dataSeries.risingColor:g[0].dataSeries.fallingColor:\"error\"===g[0].dataSeries.type?this.contentDiv.style.borderRightColor=this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=this.options.borderColor?this.options.borderColor:g[0].dataSeries.color?g[0].dataSeries.color:\ng[0].dataSeries._colorSet[e.index%g[0].dataSeries._colorSet.length]:this.contentDiv.style.borderRightColor=this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=this.options.borderColor?this.options.borderColor:g[0].dataPoint.color?g[0].dataPoint.color:g[0].dataSeries.color?g[0].dataSeries.color:g[0].dataSeries._colorSet[g[0].index%g[0].dataSeries._colorSet.length],this.contentDiv.style.borderWidth=this.borderThickness||0===this.borderThickness?this.borderThickness+\"px\":\"2px\",this.contentDiv.style.borderRadius=\nthis.cornerRadius||0===this.cornerRadius?this.cornerRadius+\"px\":\"5px\",this.container.style.borderRadius=this.contentDiv.style.borderRadius,this.contentDiv.style.fontSize=this.fontSize||0===this.fontSize?this.fontSize+\"px\":\"14px\",this.contentDiv.style.color=this.fontColor?this.fontColor:\"#000000\",this.contentDiv.style.fontFamily=this.fontFamily?this.fontFamily:\"Calibri, Arial, Georgia, serif;\",this.contentDiv.style.fontWeight=this.fontWeight?this.fontWeight:\"normal\",this.contentDiv.style.fontStyle=\nthis.fontStyle?this.fontStyle:v?\"italic\":\"normal\"}catch(q){}\"pie\"===g[0].dataSeries.type||\"doughnut\"===g[0].dataSeries.type||\"funnel\"===g[0].dataSeries.type||\"pyramid\"===g[0].dataSeries.type||\"bar\"===g[0].dataSeries.type||\"rangeBar\"===g[0].dataSeries.type||\"stackedBar\"===g[0].dataSeries.type||\"stackedBar100\"===g[0].dataSeries.type?a=a-10-this.container.clientWidth:(a=g[0].dataSeries.axisX.convertValueToPixel(g[0].dataPoint.x)-this.container.clientWidth<<0,a-=10);0>a&&(a+=this.container.clientWidth+\n20);a+this.container.clientWidth>Math.max(this.chart.container.clientWidth,this.chart.width)&&(a=Math.max(0,Math.max(this.chart.container.clientWidth,this.chart.width)-this.container.clientWidth));f=1!==g.length||this.shared||\"line\"!==g[0].dataSeries.type&&\"stepLine\"!==g[0].dataSeries.type&&\"spline\"!==g[0].dataSeries.type&&\"area\"!==g[0].dataSeries.type&&\"stepArea\"!==g[0].dataSeries.type&&\"splineArea\"!==g[0].dataSeries.type?\"bar\"===g[0].dataSeries.type||\"rangeBar\"===g[0].dataSeries.type||\"stackedBar\"===\ng[0].dataSeries.type||\"stackedBar100\"===g[0].dataSeries.type?g[0].dataSeries.axisX.convertValueToPixel(g[0].dataPoint.x):f:g[0].dataSeries.axisY.convertValueToPixel(g[0].dataPoint.y);f=-f+10;0<f+this.container.clientHeight+5&&(f-=f+this.container.clientHeight+5-0);this.fixMozTransitionDelay(a,f);!this.animationEnabled||b?this.disableAnimation():(this.enableAnimation(),this.container.style.MozTransition=this.mozContainerTransition);this.container.style.left=a+\"px\";this.container.style.bottom=f+\"px\"}else this.hide(!1)}};\nZ.prototype.highlightObjects=function(a){var f=this.chart.overlaidCanvasCtx;this.chart.resetOverlayedCanvas();f.clearRect(0,0,this.chart.width,this.chart.height);f.save();var b=this.chart.plotArea,c=0;f.beginPath();f.rect(b.x1,b.y1,b.x2-b.x1,b.y2-b.y1);f.clip();for(b=0;b<a.length;b++){var e=a[b];if((e=this.chart._eventManager.objectMap[e.dataSeries.dataPointIds[e.index]])&&e.objectType&&\"dataPoint\"===e.objectType){var c=this.chart.data[e.dataSeriesIndex],g=c.dataPoints[e.dataPointIndex],h=e.dataPointIndex;\n!1===g.highlightEnabled||!0!==c.highlightEnabled&&!0!==g.highlightEnabled||(\"line\"===c.type||\"stepLine\"===c.type||\"spline\"===c.type||\"scatter\"===c.type||\"area\"===c.type||\"stepArea\"===c.type||\"splineArea\"===c.type||\"stackedArea\"===c.type||\"stackedArea100\"===c.type||\"rangeArea\"===c.type||\"rangeSplineArea\"===c.type?(g=c.getMarkerProperties(h,e.x1,e.y1,this.chart.overlaidCanvasCtx),g.size=Math.max(1.5*g.size<<0,10),g.borderColor=g.borderColor||\"#FFFFFF\",g.borderThickness=g.borderThickness||Math.ceil(0.1*\ng.size),$.drawMarkers([g]),\"undefined\"!==typeof e.y2&&(g=c.getMarkerProperties(h,e.x1,e.y2,this.chart.overlaidCanvasCtx),g.size=Math.max(1.5*g.size<<0,10),g.borderColor=g.borderColor||\"#FFFFFF\",g.borderThickness=g.borderThickness||Math.ceil(0.1*g.size),$.drawMarkers([g]))):\"bubble\"===c.type?(g=c.getMarkerProperties(h,e.x1,e.y1,this.chart.overlaidCanvasCtx),g.size=e.size,g.color=\"white\",g.borderColor=\"white\",f.globalAlpha=0.3,$.drawMarkers([g]),f.globalAlpha=1):\"column\"===c.type||\"stackedColumn\"===\nc.type||\"stackedColumn100\"===c.type||\"bar\"===c.type||\"rangeBar\"===c.type||\"stackedBar\"===c.type||\"stackedBar100\"===c.type||\"rangeColumn\"===c.type||\"waterfall\"===c.type?X(f,e.x1,e.y1,e.x2,e.y2,\"white\",0,null,!1,!1,!1,!1,0.3):\"pie\"===c.type||\"doughnut\"===c.type?pa(f,e.center,e.radius,\"white\",c.type,e.startAngle,e.endAngle,0.3,e.percentInnerRadius):\"funnel\"===c.type||\"pyramid\"===c.type?qa(f,e.funnelSection,0.3,\"white\"):\"candlestick\"===c.type?(f.globalAlpha=1,f.strokeStyle=e.color,f.lineWidth=2*e.borderThickness,\nc=0===f.lineWidth%2?0:0.5,f.beginPath(),f.moveTo(e.x3-c,Math.min(e.y2,e.y3)),f.lineTo(e.x3-c,Math.min(e.y1,e.y4)),f.stroke(),f.beginPath(),f.moveTo(e.x3-c,Math.max(e.y1,e.y4)),f.lineTo(e.x3-c,Math.max(e.y2,e.y3)),f.stroke(),X(f,e.x1,Math.min(e.y1,e.y4),e.x2,Math.max(e.y1,e.y4),\"transparent\",2*e.borderThickness,e.color,!1,!1,!1,!1),f.globalAlpha=1):\"ohlc\"===c.type?(f.globalAlpha=1,f.strokeStyle=e.color,f.lineWidth=2*e.borderThickness,c=0===f.lineWidth%2?0:0.5,f.beginPath(),f.moveTo(e.x3-c,e.y2),f.lineTo(e.x3-\nc,e.y3),f.stroke(),f.beginPath(),f.moveTo(e.x3,e.y1),f.lineTo(e.x1,e.y1),f.stroke(),f.beginPath(),f.moveTo(e.x3,e.y4),f.lineTo(e.x2,e.y4),f.stroke(),f.globalAlpha=1):\"boxAndWhisker\"===c.type?(f.save(),f.globalAlpha=1,f.strokeStyle=e.stemColor,f.lineWidth=2*e.stemThickness,0<e.stemThickness&&(f.beginPath(),f.moveTo(e.x3,e.y2+e.borderThickness/2),f.lineTo(e.x3,e.y1+e.whiskerThickness/2),f.stroke(),f.beginPath(),f.moveTo(e.x3,e.y4-e.whiskerThickness/2),f.lineTo(e.x3,e.y3-e.borderThickness/2),f.stroke()),\nf.beginPath(),X(f,e.x1-e.borderThickness/2,Math.max(e.y2+e.borderThickness/2,e.y3+e.borderThickness/2),e.x2+e.borderThickness/2,Math.min(e.y2-e.borderThickness/2,e.y3-e.borderThickness/2),\"transparent\",e.borderThickness,e.color,!1,!1,!1,!1),f.globalAlpha=1,f.strokeStyle=e.whiskerColor,f.lineWidth=2*e.whiskerThickness,0<e.whiskerThickness&&(f.beginPath(),f.moveTo(Math.floor(e.x3-e.whiskerLength/2),e.y4),f.lineTo(Math.ceil(e.x3+e.whiskerLength/2),e.y4),f.stroke(),f.beginPath(),f.moveTo(Math.floor(e.x3-\ne.whiskerLength/2),e.y1),f.lineTo(Math.ceil(e.x3+e.whiskerLength/2),e.y1),f.stroke()),f.globalAlpha=1,f.strokeStyle=e.lineColor,f.lineWidth=2*e.lineThickness,0<e.lineThickness&&(f.beginPath(),f.moveTo(e.x1,e.y5),f.lineTo(e.x2,e.y5),f.stroke()),f.restore(),f.globalAlpha=1):\"error\"===c.type&&z(f,e.x1,e.y1,e.x2,e.y2,\"white\",e.whiskerProperties,e.stemProperties,e.isXYSwapped,0.3))}}f.restore();f.globalAlpha=1;f.beginPath()};Z.prototype.getToolTipInnerHTML=function(a){a=a.entries;for(var f=null,b=null,\nc=null,e=0,g=\"\",h=!0,l=0;l<a.length;l++)if(a[l].dataSeries.toolTipContent||a[l].dataPoint.toolTipContent){h=!1;break}if(h&&(this.content&&\"function\"===typeof this.content||this.contentFormatter))a={chart:this.chart,toolTip:this.options,entries:a},f=this.contentFormatter?this.contentFormatter(a):this.content(a);else if(this.shared&&\"none\"!==this.chart.plotInfo.axisPlacement){for(var m=null,k=\"\",l=0;l<a.length;l++)b=a[l].dataSeries,c=a[l].dataPoint,e=a[l].index,g=\"\",0===l&&(h&&!this.content)&&(this.chart.axisX&&\n0<this.chart.axisX.length?k+=\"undefined\"!==typeof this.chart.axisX[0].labels[c.x]?this.chart.axisX[0].labels[c.x]:\"{x}\":this.chart.axisX2&&0<this.chart.axisX2.length&&(k+=\"undefined\"!==typeof this.chart.axisX2[0].labels[c.x]?this.chart.axisX2[0].labels[c.x]:\"{x}\"),k+=\"</br>\",k=this.chart.replaceKeywordsWithValue(k,c,b,e)),null===c.toolTipContent||\"undefined\"===typeof c.toolTipContent&&null===b.options.toolTipContent||(\"line\"===b.type||\"stepLine\"===b.type||\"spline\"===b.type||\"area\"===b.type||\"stepArea\"===\nb.type||\"splineArea\"===b.type||\"column\"===b.type||\"bar\"===b.type||\"scatter\"===b.type||\"stackedColumn\"===b.type||\"stackedColumn100\"===b.type||\"stackedBar\"===b.type||\"stackedBar100\"===b.type||\"stackedArea\"===b.type||\"stackedArea100\"===b.type||\"waterfall\"===b.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=m!=b.axisXIndex?b.axisX.title?b.axisX.title+\"<br/>\":\"X:{axisXIndex}<br/>\":\"\"),g+=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?\nthis.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>{name}:</span>&nbsp;&nbsp;{y}\",m=b.axisXIndex):\"bubble\"===b.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=m!=b.axisXIndex?b.axisX.title?b.axisX.title+\"<br/>\":\"X:{axisXIndex}<br/>\":\"\"),g+=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>{name}:</span>&nbsp;&nbsp;{y}, &nbsp;&nbsp;{z}\"):\n\"rangeColumn\"===b.type||\"rangeBar\"===b.type||\"rangeArea\"===b.type||\"rangeSplineArea\"===b.type||\"error\"===b.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=m!=b.axisXIndex?b.axisX.title?b.axisX.title+\"<br/>\":\"X:{axisXIndex}<br/>\":\"\"),g+=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>{name}:</span>&nbsp;&nbsp;{y[0]},&nbsp;{y[1]}\"):\"candlestick\"===\nb.type||\"ohlc\"===b.type?(this.chart.axisX&&1<this.chart.axisX.length&&(g+=m!=b.axisXIndex?b.axisX.title?b.axisX.title+\"<br/>\":\"X:{axisXIndex}<br/>\":\"\"),g+=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>{name}:</span><br/>Open: &nbsp;&nbsp;{y[0]}<br/>High: &nbsp;&nbsp;&nbsp;{y[1]}<br/>Low:&nbsp;&nbsp;&nbsp;{y[2]}<br/>Close: &nbsp;&nbsp;{y[3]}\"):\"boxAndWhisker\"===\nb.type&&(this.chart.axisX&&1<this.chart.axisX.length&&(g+=m!=b.axisXIndex?b.axisX.title?b.axisX.title+\"<br/>\":\"X:{axisXIndex}<br/>\":\"\"),g+=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>{name}:</span><br/>Minimum: &nbsp;&nbsp;{y[0]}<br/>Q1: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[1]}<br/>Q2: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[4]}<br/>Q3: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[2]}<br/>Maximum: &nbsp;{y[3]}\"),\nnull===f&&(f=\"\"),!0===this.reversed?(f=this.chart.replaceKeywordsWithValue(g,c,b,e)+f,l<a.length-1&&(f=\"</br>\"+f)):(f+=this.chart.replaceKeywordsWithValue(g,c,b,e),l<a.length-1&&(f+=\"</br>\")));null!==f&&(f=k+f)}else{b=a[0].dataSeries;c=a[0].dataPoint;e=a[0].index;if(null===c.toolTipContent||\"undefined\"===typeof c.toolTipContent&&null===b.options.toolTipContent)return null;\"line\"===b.type||\"stepLine\"===b.type||\"spline\"===b.type||\"area\"===b.type||\"stepArea\"===b.type||\"splineArea\"===b.type||\"column\"===\nb.type||\"bar\"===b.type||\"scatter\"===b.type||\"stackedColumn\"===b.type||\"stackedColumn100\"===b.type||\"stackedBar\"===b.type||\"stackedBar100\"===b.type||\"stackedArea\"===b.type||\"stackedArea100\"===b.type||\"waterfall\"===b.type?g=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>\"+(c.label?\"{label}\":\"{x}\")+\":</span>&nbsp;&nbsp;{y}\":\"bubble\"===b.type?g=c.toolTipContent?\nc.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>\"+(c.label?\"{label}\":\"{x}\")+\":</span>&nbsp;&nbsp;{y}, &nbsp;&nbsp;{z}\":\"pie\"===b.type||\"doughnut\"===b.type||\"funnel\"===b.type||\"pyramid\"===b.type?g=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\n\"'color:{color};'\")+\"\\\"'>\"+(c.name?\"{name}:</span>&nbsp;&nbsp;\":c.label?\"{label}:</span>&nbsp;&nbsp;\":\"</span>\")+\"{y}\":\"rangeColumn\"===b.type||\"rangeBar\"===b.type||\"rangeArea\"===b.type||\"rangeSplineArea\"===b.type||\"error\"===b.type?g=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>\"+(c.label?\"{label}\":\"{x}\")+\" :</span>&nbsp;&nbsp;{y[0]}, &nbsp;{y[1]}\":\n\"candlestick\"===b.type||\"ohlc\"===b.type?g=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:this.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>\"+(c.label?\"{label}\":\"{x}\")+\"</span><br/>Open: &nbsp;&nbsp;{y[0]}<br/>High: &nbsp;&nbsp;&nbsp;{y[1]}<br/>Low: &nbsp;&nbsp;&nbsp;&nbsp;{y[2]}<br/>Close: &nbsp;&nbsp;{y[3]}\":\"boxAndWhisker\"===b.type&&(g=c.toolTipContent?c.toolTipContent:b.toolTipContent?b.toolTipContent:\nthis.content&&\"function\"!==typeof this.content?this.content:\"<span style='\\\"\"+(this.options.fontColor?\"\":\"'color:{color};'\")+\"\\\"'>\"+(c.label?\"{label}\":\"{x}\")+\"</span><br/>Minimum: &nbsp;&nbsp;{y[0]}<br/>Q1: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[1]}<br/>Q2: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[4]}<br/>Q3: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{y[2]}<br/>Maximum: &nbsp;{y[3]}\");\nnull===f&&(f=\"\");f+=this.chart.replaceKeywordsWithValue(g,c,b,e)}return f};Z.prototype.enableAnimation=function(){if(!this.container.style.WebkitTransition){var a=this.getContainerTransition(this.containerTransitionDuration);this.container.style.WebkitTransition=a;this.container.style.MsTransition=a;this.container.style.transition=a;this.container.style.MozTransition=this.mozContainerTransition}};Z.prototype.disableAnimation=function(){this.container.style.WebkitTransition&&(this.container.style.WebkitTransition=\n\"\",this.container.style.MozTransition=\"\",this.container.style.MsTransition=\"\",this.container.style.transition=\"\")};Z.prototype.hide=function(a){this.container&&(this.container.style.display=\"none\",this.currentSeriesIndex=-1,this._prevY=this._prevX=NaN,(\"undefined\"===typeof a||a)&&this.chart.resetOverlayedCanvas())};Z.prototype.show=function(a,f,b){this._updateToolTip(a,f,\"undefined\"===typeof b?!1:b)};Z.prototype.fixMozTransitionDelay=function(a,f){if(20<this.chart._eventManager.lastObjectId)this.mozContainerTransition=\nthis.getContainerTransition(0);else{var b=parseFloat(this.container.style.left),b=isNaN(b)?0:b,c=parseFloat(this.container.style.bottom),c=isNaN(c)?0:c;10<Math.sqrt(Math.pow(b-a,2)+Math.pow(c-f,2))?this.mozContainerTransition=this.getContainerTransition(0.1):this.mozContainerTransition=this.getContainerTransition(0)}};Z.prototype.getContainerTransition=function(a){return\"left \"+a+\"s ease-out 0s, bottom \"+a+\"s ease-out 0s\"};ea.prototype.reset=function(){this.lastObjectId=0;this.objectMap=[];this.rectangularRegionEventSubscriptions=\n[];this.previousDataPointEventObject=null;this.eventObjects=[];v&&(this.ghostCtx.clearRect(0,0,this.chart.width,this.chart.height),this.ghostCtx.beginPath())};ea.prototype.getNewObjectTrackingId=function(){return++this.lastObjectId};ea.prototype.mouseEventHandler=function(a){if(\"mousemove\"===a.type||\"click\"===a.type){var f=[],b=Oa(a),c=null;if((c=this.chart.getObjectAtXY(b.x,b.y,!1))&&\"undefined\"!==typeof this.objectMap[c])if(c=this.objectMap[c],\"dataPoint\"===c.objectType){var e=this.chart.data[c.dataSeriesIndex],\ng=e.dataPoints[c.dataPointIndex],h=c.dataPointIndex;c.eventParameter={x:b.x,y:b.y,dataPoint:g,dataSeries:e.options,dataPointIndex:h,dataSeriesIndex:e.index,chart:this.chart};c.eventContext={context:g,userContext:g,mouseover:\"mouseover\",mousemove:\"mousemove\",mouseout:\"mouseout\",click:\"click\"};f.push(c);c=this.objectMap[e.id];c.eventParameter={x:b.x,y:b.y,dataPoint:g,dataSeries:e.options,dataPointIndex:h,dataSeriesIndex:e.index,chart:this.chart};c.eventContext={context:e,userContext:e.options,mouseover:\"mouseover\",\nmousemove:\"mousemove\",mouseout:\"mouseout\",click:\"click\"};f.push(this.objectMap[e.id])}else\"legendItem\"===c.objectType&&(e=this.chart.data[c.dataSeriesIndex],g=null!==c.dataPointIndex?e.dataPoints[c.dataPointIndex]:null,c.eventParameter={x:b.x,y:b.y,dataSeries:e.options,dataPoint:g,dataPointIndex:c.dataPointIndex,dataSeriesIndex:c.dataSeriesIndex,chart:this.chart},c.eventContext={context:this.chart.legend,userContext:this.chart.legend.options,mouseover:\"itemmouseover\",mousemove:\"itemmousemove\",mouseout:\"itemmouseout\",\nclick:\"itemclick\"},f.push(c));e=[];for(b=0;b<this.mouseoveredObjectMaps.length;b++){g=!0;for(c=0;c<f.length;c++)if(f[c].id===this.mouseoveredObjectMaps[b].id){g=!1;break}g?this.fireEvent(this.mouseoveredObjectMaps[b],\"mouseout\",a):e.push(this.mouseoveredObjectMaps[b])}this.mouseoveredObjectMaps=e;for(b=0;b<f.length;b++){e=!1;for(c=0;c<this.mouseoveredObjectMaps.length;c++)if(f[b].id===this.mouseoveredObjectMaps[c].id){e=!0;break}e||(this.fireEvent(f[b],\"mouseover\",a),this.mouseoveredObjectMaps.push(f[b]));\n\"click\"===a.type?this.fireEvent(f[b],\"click\",a):\"mousemove\"===a.type&&this.fireEvent(f[b],\"mousemove\",a)}}};ea.prototype.fireEvent=function(a,f,b){if(a&&f){var c=a.eventParameter,e=a.eventContext,g=a.eventContext.userContext;g&&(e&&g[e[f]])&&g[e[f]].call(g,c);\"mouseout\"!==f?g.cursor&&g.cursor!==b.target.style.cursor&&(b.target.style.cursor=g.cursor):(b.target.style.cursor=this.chart._defaultCursor,delete a.eventParameter,delete a.eventContext);\"click\"===f&&(\"dataPoint\"===a.objectType&&this.chart.pieDoughnutClickHandler)&&\nthis.chart.pieDoughnutClickHandler.call(this.chart.data[a.dataSeriesIndex],c);\"click\"===f&&(\"dataPoint\"===a.objectType&&this.chart.funnelPyramidClickHandler)&&this.chart.funnelPyramidClickHandler.call(this.chart.data[a.dataSeriesIndex],c)}};ga.prototype.animate=function(a,f,b,c,e){var g=this;this.chart.isAnimating=!0;e=e||O.easing.linear;b&&this.animations.push({startTime:(new Date).getTime()+(a?a:0),duration:f,animationCallback:b,onComplete:c});for(a=[];0<this.animations.length;)if(f=this.animations.shift(),\nb=(new Date).getTime(),c=0,f.startTime<=b&&(c=e(Math.min(b-f.startTime,f.duration),0,1,f.duration),c=Math.min(c,1),isNaN(c)||!isFinite(c))&&(c=1),1>c&&a.push(f),f.animationCallback(c),1<=c&&f.onComplete)f.onComplete();this.animations=a;0<this.animations.length?this.animationRequestId=this.chart.requestAnimFrame.call(window,function(){g.animate.call(g)}):this.chart.isAnimating=!1};ga.prototype.cancelAllAnimations=function(){this.animations=[];this.animationRequestId&&this.chart.cancelRequestAnimFrame.call(window,\nthis.animationRequestId);this.animationRequestId=null;this.chart.isAnimating=!1};var O={yScaleAnimation:function(a,f){if(0!==a){var b=f.dest,c=f.source.canvas,e=f.animationBase;b.drawImage(c,0,0,c.width,c.height,0,e-e*a,b.canvas.width/ia,a*b.canvas.height/ia)}},xScaleAnimation:function(a,f){if(0!==a){var b=f.dest,c=f.source.canvas,e=f.animationBase;b.drawImage(c,0,0,c.width,c.height,e-e*a,0,a*b.canvas.width/ia,b.canvas.height/ia)}},xClipAnimation:function(a,f){if(0!==a){var b=f.dest,c=f.source.canvas;\nb.save();0<a&&b.drawImage(c,0,0,c.width*a,c.height,0,0,c.width*a/ia,c.height/ia);b.restore()}},fadeInAnimation:function(a,f){if(0!==a){var b=f.dest,c=f.source.canvas;b.save();b.globalAlpha=a;b.drawImage(c,0,0,c.width,c.height,0,0,b.canvas.width/ia,b.canvas.height/ia);b.restore()}},easing:{linear:function(a,f,b,c){return b*a/c+f},easeOutQuad:function(a,f,b,c){return-b*(a/=c)*(a-2)+f},easeOutQuart:function(a,f,b,c){return-b*((a=a/c-1)*a*a*a-1)+f},easeInQuad:function(a,f,b,c){return b*(a/=c)*a+f},easeInQuart:function(a,\nf,b,c){return b*(a/=c)*a*a*a+f}}},$={drawMarker:function(a,f,b,c,e,g,h,l){if(b){var m=1;b.fillStyle=g?g:\"#000000\";b.strokeStyle=h?h:\"#000000\";b.lineWidth=l?l:0;b.setLineDash&&b.setLineDash(F(\"solid\",l));\"circle\"===c?(b.moveTo(a,f),b.beginPath(),b.arc(a,f,e/2,0,2*Math.PI,!1),g&&b.fill(),l&&(h?b.stroke():(m=b.globalAlpha,b.globalAlpha=0.15,b.strokeStyle=\"black\",b.stroke(),b.globalAlpha=m))):\"square\"===c?(b.beginPath(),b.rect(a-e/2,f-e/2,e,e),g&&b.fill(),l&&(h?b.stroke():(m=b.globalAlpha,b.globalAlpha=\n0.15,b.strokeStyle=\"black\",b.stroke(),b.globalAlpha=m))):\"triangle\"===c?(b.beginPath(),b.moveTo(a-e/2,f+e/2),b.lineTo(a+e/2,f+e/2),b.lineTo(a,f-e/2),b.closePath(),g&&b.fill(),l&&(h?b.stroke():(m=b.globalAlpha,b.globalAlpha=0.15,b.strokeStyle=\"black\",b.stroke(),b.globalAlpha=m)),b.beginPath()):\"cross\"===c&&(b.strokeStyle=g,b.lineWidth=e/4,b.beginPath(),b.moveTo(a-e/2,f-e/2),b.lineTo(a+e/2,f+e/2),b.stroke(),b.moveTo(a+e/2,f-e/2),b.lineTo(a-e/2,f+e/2),b.stroke())}},drawMarkers:function(a){for(var f=\n0;f<a.length;f++){var b=a[f];$.drawMarker(b.x,b.y,b.ctx,b.type,b.size,b.color,b.borderColor,b.borderThickness)}}};return q}();Ka.Chart.version=\"v2.2 GA\"})();\n\n/*\n  excanvas is used to support IE678 which do not implement HTML5 Canvas Element. You can safely remove the following excanvas code if you don't need to support older browsers.\n\n  Copyright 2006 Google Inc. https://code.google.com/p/explorercanvas/\n  Licensed under the Apache License, Version 2.0\n*/\ndocument.createElement(\"canvas\").getContext||function(){function V(){return this.context_||(this.context_=new C(this))}function W(a,b,c){var g=M.call(arguments,2);return function(){return a.apply(b,g.concat(M.call(arguments)))}}function N(a){return String(a).replace(/&/g,\"&amp;\").replace(/\"/g,\"&quot;\")}function O(a){a.namespaces.g_vml_||a.namespaces.add(\"g_vml_\",\"urn:schemas-microsoft-com:vml\",\"#default#VML\");a.namespaces.g_o_||a.namespaces.add(\"g_o_\",\"urn:schemas-microsoft-com:office:office\",\"#default#VML\");\na.styleSheets.ex_canvas_||(a=a.createStyleSheet(),a.owningElement.id=\"ex_canvas_\",a.cssText=\"canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}\")}function X(a){var b=a.srcElement;switch(a.propertyName){case \"width\":b.getContext().clearRect();b.style.width=b.attributes.width.nodeValue+\"px\";b.firstChild.style.width=b.clientWidth+\"px\";break;case \"height\":b.getContext().clearRect(),b.style.height=b.attributes.height.nodeValue+\"px\",b.firstChild.style.height=b.clientHeight+\n\"px\"}}function Y(a){a=a.srcElement;a.firstChild&&(a.firstChild.style.width=a.clientWidth+\"px\",a.firstChild.style.height=a.clientHeight+\"px\")}function D(){return[[1,0,0],[0,1,0],[0,0,1]]}function t(a,b){for(var c=D(),g=0;3>g;g++)for(var e=0;3>e;e++){for(var f=0,d=0;3>d;d++)f+=a[g][d]*b[d][e];c[g][e]=f}return c}function P(a,b){b.fillStyle=a.fillStyle;b.lineCap=a.lineCap;b.lineJoin=a.lineJoin;b.lineWidth=a.lineWidth;b.miterLimit=a.miterLimit;b.shadowBlur=a.shadowBlur;b.shadowColor=a.shadowColor;b.shadowOffsetX=\na.shadowOffsetX;b.shadowOffsetY=a.shadowOffsetY;b.strokeStyle=a.strokeStyle;b.globalAlpha=a.globalAlpha;b.font=a.font;b.textAlign=a.textAlign;b.textBaseline=a.textBaseline;b.arcScaleX_=a.arcScaleX_;b.arcScaleY_=a.arcScaleY_;b.lineScale_=a.lineScale_}function Q(a){var b=a.indexOf(\"(\",3),c=a.indexOf(\")\",b+1),b=a.substring(b+1,c).split(\",\");if(4!=b.length||\"a\"!=a.charAt(3))b[3]=1;return b}function E(a,b,c){return Math.min(c,Math.max(b,a))}function F(a,b,c){0>c&&c++;1<c&&c--;return 1>6*c?a+6*(b-a)*c:\n1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function G(a){if(a in H)return H[a];var b,c=1;a=String(a);if(\"#\"==a.charAt(0))b=a;else if(/^rgb/.test(a)){c=Q(a);b=\"#\";for(var g,e=0;3>e;e++)g=-1!=c[e].indexOf(\"%\")?Math.floor(255*(parseFloat(c[e])/100)):+c[e],b+=v[E(g,0,255)];c=+c[3]}else if(/^hsl/.test(a)){e=c=Q(a);b=parseFloat(e[0])/360%360;0>b&&b++;g=E(parseFloat(e[1])/100,0,1);e=E(parseFloat(e[2])/100,0,1);if(0==g)g=e=b=e;else{var f=0.5>e?e*(1+g):e+g-e*g,d=2*e-f;g=F(d,f,b+1/3);e=F(d,f,b);b=F(d,f,b-1/3)}b=\"#\"+\nv[Math.floor(255*g)]+v[Math.floor(255*e)]+v[Math.floor(255*b)];c=c[3]}else b=Z[a]||a;return H[a]={color:b,alpha:c}}function C(a){this.m_=D();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle=\"#000\";this.lineWidth=1;this.lineJoin=\"miter\";this.lineCap=\"butt\";this.miterLimit=1*q;this.globalAlpha=1;this.font=\"10px sans-serif\";this.textAlign=\"left\";this.textBaseline=\"alphabetic\";this.canvas=a;var b=\"width:\"+a.clientWidth+\"px;height:\"+a.clientHeight+\"px;overflow:hidden;position:absolute\",\nc=a.ownerDocument.createElement(\"div\");c.style.cssText=b;a.appendChild(c);b=c.cloneNode(!1);b.style.backgroundColor=\"red\";b.style.filter=\"alpha(opacity=0)\";a.appendChild(b);this.element_=c;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}function R(a,b,c,g){a.currentPath_.push({type:\"bezierCurveTo\",cp1x:b.x,cp1y:b.y,cp2x:c.x,cp2y:c.y,x:g.x,y:g.y});a.currentX_=g.x;a.currentY_=g.y}function S(a,b){var c=G(a.strokeStyle),g=c.color,c=c.alpha*a.globalAlpha,e=a.lineScale_*a.lineWidth;1>e&&(c*=e);b.push(\"<g_vml_:stroke\",\n' opacity=\"',c,'\"',' joinstyle=\"',a.lineJoin,'\"',' miterlimit=\"',a.miterLimit,'\"',' endcap=\"',$[a.lineCap]||\"square\",'\"',' weight=\"',e,'px\"',' color=\"',g,'\" />')}function T(a,b,c,g){var e=a.fillStyle,f=a.arcScaleX_,d=a.arcScaleY_,k=g.x-c.x,n=g.y-c.y;if(e instanceof w){var h=0,l=g=0,u=0,m=1;if(\"gradient\"==e.type_){h=e.x1_/f;c=e.y1_/d;var p=s(a,e.x0_/f,e.y0_/d),h=s(a,h,c),h=180*Math.atan2(h.x-p.x,h.y-p.y)/Math.PI;0>h&&(h+=360);1E-6>h&&(h=0)}else p=s(a,e.x0_,e.y0_),g=(p.x-c.x)/k,l=(p.y-c.y)/n,k/=f*q,\nn/=d*q,m=x.max(k,n),u=2*e.r0_/m,m=2*e.r1_/m-u;f=e.colors_;f.sort(function(a,b){return a.offset-b.offset});d=f.length;p=f[0].color;c=f[d-1].color;k=f[0].alpha*a.globalAlpha;a=f[d-1].alpha*a.globalAlpha;for(var n=[],r=0;r<d;r++){var t=f[r];n.push(t.offset*m+u+\" \"+t.color)}b.push('<g_vml_:fill type=\"',e.type_,'\"',' method=\"none\" focus=\"100%\"',' color=\"',p,'\"',' color2=\"',c,'\"',' colors=\"',n.join(\",\"),'\"',' opacity=\"',a,'\"',' g_o_:opacity2=\"',k,'\"',' angle=\"',h,'\"',' focusposition=\"',g,\",\",l,'\" />')}else e instanceof\nI?k&&n&&b.push(\"<g_vml_:fill\",' position=\"',-c.x/k*f*f,\",\",-c.y/n*d*d,'\"',' type=\"tile\"',' src=\"',e.src_,'\" />'):(e=G(a.fillStyle),b.push('<g_vml_:fill color=\"',e.color,'\" opacity=\"',e.alpha*a.globalAlpha,'\" />'))}function s(a,b,c){a=a.m_;return{x:q*(b*a[0][0]+c*a[1][0]+a[2][0])-r,y:q*(b*a[0][1]+c*a[1][1]+a[2][1])-r}}function z(a,b,c){isFinite(b[0][0])&&(isFinite(b[0][1])&&isFinite(b[1][0])&&isFinite(b[1][1])&&isFinite(b[2][0])&&isFinite(b[2][1]))&&(a.m_=b,c&&(a.lineScale_=aa(ba(b[0][0]*b[1][1]-b[0][1]*\nb[1][0]))))}function w(a){this.type_=a;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}function I(a,b){if(!a||1!=a.nodeType||\"IMG\"!=a.tagName)throw new A(\"TYPE_MISMATCH_ERR\");if(\"complete\"!=a.readyState)throw new A(\"INVALID_STATE_ERR\");switch(b){case \"repeat\":case null:case \"\":this.repetition_=\"repeat\";break;case \"repeat-x\":case \"repeat-y\":case \"no-repeat\":this.repetition_=b;break;default:throw new A(\"SYNTAX_ERR\");}this.src_=a.src;this.width_=a.width;this.height_=a.height}\nfunction A(a){this.code=this[a];this.message=a+\": DOM Exception \"+this.code}var x=Math,k=x.round,J=x.sin,K=x.cos,ba=x.abs,aa=x.sqrt,q=10,r=q/2;navigator.userAgent.match(/MSIE ([\\d.]+)?/);var M=Array.prototype.slice;O(document);var U={init:function(a){a=a||document;a.createElement(\"canvas\");a.attachEvent(\"onreadystatechange\",W(this.init_,this,a))},init_:function(a){a=a.getElementsByTagName(\"canvas\");for(var b=0;b<a.length;b++)this.initElement(a[b])},initElement:function(a){if(!a.getContext){a.getContext=\nV;O(a.ownerDocument);a.innerHTML=\"\";a.attachEvent(\"onpropertychange\",X);a.attachEvent(\"onresize\",Y);var b=a.attributes;b.width&&b.width.specified?a.style.width=b.width.nodeValue+\"px\":a.width=a.clientWidth;b.height&&b.height.specified?a.style.height=b.height.nodeValue+\"px\":a.height=a.clientHeight}return a}};U.init();for(var v=[],d=0;16>d;d++)for(var B=0;16>B;B++)v[16*d+B]=d.toString(16)+B.toString(16);var Z={aliceblue:\"#F0F8FF\",antiquewhite:\"#FAEBD7\",aquamarine:\"#7FFFD4\",azure:\"#F0FFFF\",beige:\"#F5F5DC\",\nbisque:\"#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\",\ndarksalmon:\"#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\",\nivory:\"#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\",\nmediumblue:\"#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\",\npeachpuff:\"#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\"},\nH={},L={},$={butt:\"flat\",round:\"round\"},d=C.prototype;d.clearRect=function(){this.textMeasureEl_&&(this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null);this.element_.innerHTML=\"\"};d.beginPath=function(){this.currentPath_=[]};d.moveTo=function(a,b){var c=s(this,a,b);this.currentPath_.push({type:\"moveTo\",x:c.x,y:c.y});this.currentX_=c.x;this.currentY_=c.y};d.lineTo=function(a,b){var c=s(this,a,b);this.currentPath_.push({type:\"lineTo\",x:c.x,y:c.y});this.currentX_=c.x;this.currentY_=c.y};d.bezierCurveTo=\nfunction(a,b,c,g,e,f){e=s(this,e,f);a=s(this,a,b);c=s(this,c,g);R(this,a,c,e)};d.quadraticCurveTo=function(a,b,c,g){a=s(this,a,b);c=s(this,c,g);g={x:this.currentX_+2/3*(a.x-this.currentX_),y:this.currentY_+2/3*(a.y-this.currentY_)};R(this,g,{x:g.x+(c.x-this.currentX_)/3,y:g.y+(c.y-this.currentY_)/3},c)};d.arc=function(a,b,c,g,e,f){c*=q;var d=f?\"at\":\"wa\",k=a+K(g)*c-r,n=b+J(g)*c-r;g=a+K(e)*c-r;e=b+J(e)*c-r;k!=g||f||(k+=0.125);a=s(this,a,b);k=s(this,k,n);g=s(this,g,e);this.currentPath_.push({type:d,\nx:a.x,y:a.y,radius:c,xStart:k.x,yStart:k.y,xEnd:g.x,yEnd:g.y})};d.rect=function(a,b,c,g){this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+g);this.lineTo(a,b+g);this.closePath()};d.strokeRect=function(a,b,c,g){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+g);this.lineTo(a,b+g);this.closePath();this.stroke();this.currentPath_=e};d.fillRect=function(a,b,c,g){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+\nc,b+g);this.lineTo(a,b+g);this.closePath();this.fill();this.currentPath_=e};d.createLinearGradient=function(a,b,c,g){var e=new w(\"gradient\");e.x0_=a;e.y0_=b;e.x1_=c;e.y1_=g;return e};d.createRadialGradient=function(a,b,c,g,e,f){var d=new w(\"gradientradial\");d.x0_=a;d.y0_=b;d.r0_=c;d.x1_=g;d.y1_=e;d.r1_=f;return d};d.drawImage=function(a,b){var c,g,e,d,r,y,n,h;e=a.runtimeStyle.width;d=a.runtimeStyle.height;a.runtimeStyle.width=\"auto\";a.runtimeStyle.height=\"auto\";var l=a.width,u=a.height;a.runtimeStyle.width=\ne;a.runtimeStyle.height=d;if(3==arguments.length)c=arguments[1],g=arguments[2],r=y=0,n=e=l,h=d=u;else if(5==arguments.length)c=arguments[1],g=arguments[2],e=arguments[3],d=arguments[4],r=y=0,n=l,h=u;else if(9==arguments.length)r=arguments[1],y=arguments[2],n=arguments[3],h=arguments[4],c=arguments[5],g=arguments[6],e=arguments[7],d=arguments[8];else throw Error(\"Invalid number of arguments\");var m=s(this,c,g),p=[];p.push(\" <g_vml_:group\",' coordsize=\"',10*q,\",\",10*q,'\"',' coordorigin=\"0,0\"',' style=\"width:',\n10,\"px;height:\",10,\"px;position:absolute;\");if(1!=this.m_[0][0]||this.m_[0][1]||1!=this.m_[1][1]||this.m_[1][0]){var t=[];t.push(\"M11=\",this.m_[0][0],\",\",\"M12=\",this.m_[1][0],\",\",\"M21=\",this.m_[0][1],\",\",\"M22=\",this.m_[1][1],\",\",\"Dx=\",k(m.x/q),\",\",\"Dy=\",k(m.y/q),\"\");var v=s(this,c+e,g),w=s(this,c,g+d);c=s(this,c+e,g+d);m.x=x.max(m.x,v.x,w.x,c.x);m.y=x.max(m.y,v.y,w.y,c.y);p.push(\"padding:0 \",k(m.x/q),\"px \",k(m.y/q),\"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(\",t.join(\"\"),\", sizingmethod='clip');\")}else p.push(\"top:\",\nk(m.y/q),\"px;left:\",k(m.x/q),\"px;\");p.push(' \">','<g_vml_:image src=\"',a.src,'\"',' style=\"width:',q*e,\"px;\",\" height:\",q*d,'px\"',' cropleft=\"',r/l,'\"',' croptop=\"',y/u,'\"',' cropright=\"',(l-r-n)/l,'\"',' cropbottom=\"',(u-y-h)/u,'\"',\" />\",\"</g_vml_:group>\");this.element_.insertAdjacentHTML(\"BeforeEnd\",p.join(\"\"))};d.stroke=function(a){var b=[];b.push(\"<g_vml_:shape\",' filled=\"',!!a,'\"',' style=\"position:absolute;width:',10,\"px;height:\",10,'px;\"',' coordorigin=\"0,0\"',' coordsize=\"',10*q,\",\",10*q,'\"',\n' stroked=\"',!a,'\"',' path=\"');for(var c={x:null,y:null},d={x:null,y:null},e=0;e<this.currentPath_.length;e++){var f=this.currentPath_[e];switch(f.type){case \"moveTo\":b.push(\" m \",k(f.x),\",\",k(f.y));break;case \"lineTo\":b.push(\" l \",k(f.x),\",\",k(f.y));break;case \"close\":b.push(\" x \");f=null;break;case \"bezierCurveTo\":b.push(\" c \",k(f.cp1x),\",\",k(f.cp1y),\",\",k(f.cp2x),\",\",k(f.cp2y),\",\",k(f.x),\",\",k(f.y));break;case \"at\":case \"wa\":b.push(\" \",f.type,\" \",k(f.x-this.arcScaleX_*f.radius),\",\",k(f.y-this.arcScaleY_*\nf.radius),\" \",k(f.x+this.arcScaleX_*f.radius),\",\",k(f.y+this.arcScaleY_*f.radius),\" \",k(f.xStart),\",\",k(f.yStart),\" \",k(f.xEnd),\",\",k(f.yEnd))}if(f){if(null==c.x||f.x<c.x)c.x=f.x;if(null==d.x||f.x>d.x)d.x=f.x;if(null==c.y||f.y<c.y)c.y=f.y;if(null==d.y||f.y>d.y)d.y=f.y}}b.push(' \">');a?T(this,b,c,d):S(this,b);b.push(\"</g_vml_:shape>\");this.element_.insertAdjacentHTML(\"beforeEnd\",b.join(\"\"))};d.fill=function(){this.stroke(!0)};d.closePath=function(){this.currentPath_.push({type:\"close\"})};d.save=function(){var a=\n{};P(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=t(D(),this.m_)};d.restore=function(){this.aStack_.length&&(P(this.aStack_.pop(),this),this.m_=this.mStack_.pop())};d.translate=function(a,b){z(this,t([[1,0,0],[0,1,0],[a,b,1]],this.m_),!1)};d.rotate=function(a){var b=K(a);a=J(a);z(this,t([[b,a,0],[-a,b,0],[0,0,1]],this.m_),!1)};d.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;z(this,t([[a,0,0],[0,b,0],[0,0,1]],this.m_),!0)};d.transform=function(a,b,c,d,e,f){z(this,t([[a,\nb,0],[c,d,0],[e,f,1]],this.m_),!0)};d.setTransform=function(a,b,c,d,e,f){z(this,[[a,b,0],[c,d,0],[e,f,1]],!0)};d.drawText_=function(a,b,c,d,e){var f=this.m_;d=0;var r=1E3,t=0,n=[],h;h=this.font;if(L[h])h=L[h];else{var l=document.createElement(\"div\").style;try{l.font=h}catch(u){}h=L[h]={style:l.fontStyle||\"normal\",variant:l.fontVariant||\"normal\",weight:l.fontWeight||\"normal\",size:l.fontSize||10,family:l.fontFamily||\"sans-serif\"}}var l=h,m=this.element_;h={};for(var p in l)h[p]=l[p];p=parseFloat(m.currentStyle.fontSize);\nm=parseFloat(l.size);\"number\"==typeof l.size?h.size=l.size:-1!=l.size.indexOf(\"px\")?h.size=m:-1!=l.size.indexOf(\"em\")?h.size=p*m:-1!=l.size.indexOf(\"%\")?h.size=p/100*m:-1!=l.size.indexOf(\"pt\")?h.size=m/0.75:h.size=p;h.size*=0.981;p=h.style+\" \"+h.variant+\" \"+h.weight+\" \"+h.size+\"px \"+h.family;m=this.element_.currentStyle;l=this.textAlign.toLowerCase();switch(l){case \"left\":case \"center\":case \"right\":break;case \"end\":l=\"ltr\"==m.direction?\"right\":\"left\";break;case \"start\":l=\"rtl\"==m.direction?\"right\":\n\"left\";break;default:l=\"left\"}switch(this.textBaseline){case \"hanging\":case \"top\":t=h.size/1.75;break;case \"middle\":break;default:case null:case \"alphabetic\":case \"ideographic\":case \"bottom\":t=-h.size/2.25}switch(l){case \"right\":d=1E3;r=0.05;break;case \"center\":d=r=500}b=s(this,b+0,c+t);n.push('<g_vml_:line from=\"',-d,' 0\" to=\"',r,' 0.05\" ',' coordsize=\"100 100\" coordorigin=\"0 0\"',' filled=\"',!e,'\" stroked=\"',!!e,'\" style=\"position:absolute;width:1px;height:1px;\">');e?S(this,n):T(this,n,{x:-d,y:0},\n{x:r,y:h.size});e=f[0][0].toFixed(3)+\",\"+f[1][0].toFixed(3)+\",\"+f[0][1].toFixed(3)+\",\"+f[1][1].toFixed(3)+\",0,0\";b=k(b.x/q)+\",\"+k(b.y/q);n.push('<g_vml_:skew on=\"t\" matrix=\"',e,'\" ',' offset=\"',b,'\" origin=\"',d,' 0\" />','<g_vml_:path textpathok=\"true\" />','<g_vml_:textpath on=\"true\" string=\"',N(a),'\" style=\"v-text-align:',l,\";font:\",N(p),'\" /></g_vml_:line>');this.element_.insertAdjacentHTML(\"beforeEnd\",n.join(\"\"))};d.fillText=function(a,b,c,d){this.drawText_(a,b,c,d,!1)};d.strokeText=function(a,\nb,c,d){this.drawText_(a,b,c,d,!0)};d.measureText=function(a){this.textMeasureEl_||(this.element_.insertAdjacentHTML(\"beforeEnd\",'<span style=\"position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;\"></span>'),this.textMeasureEl_=this.element_.lastChild);var b=this.element_.ownerDocument;this.textMeasureEl_.innerHTML=\"\";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return{width:this.textMeasureEl_.offsetWidth}};d.clip=function(){};\nd.arcTo=function(){};d.createPattern=function(a,b){return new I(a,b)};w.prototype.addColorStop=function(a,b){b=G(b);this.colors_.push({offset:a,color:b.color,alpha:b.alpha})};d=A.prototype=Error();d.INDEX_SIZE_ERR=1;d.DOMSTRING_SIZE_ERR=2;d.HIERARCHY_REQUEST_ERR=3;d.WRONG_DOCUMENT_ERR=4;d.INVALID_CHARACTER_ERR=5;d.NO_DATA_ALLOWED_ERR=6;d.NO_MODIFICATION_ALLOWED_ERR=7;d.NOT_FOUND_ERR=8;d.NOT_SUPPORTED_ERR=9;d.INUSE_ATTRIBUTE_ERR=10;d.INVALID_STATE_ERR=11;d.SYNTAX_ERR=12;d.INVALID_MODIFICATION_ERR=\n13;d.NAMESPACE_ERR=14;d.INVALID_ACCESS_ERR=15;d.VALIDATION_ERR=16;d.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=U;CanvasRenderingContext2D=C;CanvasGradient=w;CanvasPattern=I;DOMException=A}();\n/*jshint ignore:end*/"
  },
  {
    "path": "tool/color_picker/jscolor-example.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n\t<title>jscolor Example</title>\n</head>\n<body style=\"text-align:center;\">\n\n\n\n\t<script src=\"jscolor.js\"></script>\n\n\n\n\t<h2>Example 1</h2>\n\tColor: <input class=\"jscolor\" value=\"ab2567\">\n\n \n\n\t<h2>Example 2</h2>\n\n\t<button class=\"jscolor {valueElement:'chosen-value', onFineChange:'setTextColor(this)'}\">\n\t\tPick text color\n\t</button>\n\n\tHEX value: <input id=\"chosen-value\" value=\"000000\">\n\n\t<script>\n\tfunction setTextColor(picker) {\n\t\tdocument.getElementsByTagName('body')[0].style.color = '#' + picker.toString()\n\t}\n\t</script>\n\n\n\n\t<p style=\"margin-top:3em;\">Check out <a href=\"http://jscolor.com/examples/\">more examples at jscolor.com</a>!</p>\n\n\n\n</body>\n</html>\n"
  },
  {
    "path": "tool/color_picker/jscolor.js",
    "content": "/**\n * jscolor - JavaScript Color Picker\n *\n * @link    http://jscolor.com\n * @license For open source use: GPLv3\n *          For commercial use: JSColor Commercial License\n * @author  Jan Odvarko\n * @version 2.0.5\n *\n * See usage examples at http://jscolor.com/examples/\n */\n\n\n\"use strict\";\n\n\nif (!window.jscolor) { window.jscolor = (function () {\n\n\nvar jsc = {\n\n\n\tregister : function () {\n\t\tjsc.attachDOMReadyEvent(jsc.init);\n\t\tjsc.attachEvent(document, 'mousedown', jsc.onDocumentMouseDown);\n\t\tjsc.attachEvent(document, 'touchstart', jsc.onDocumentTouchStart);\n\t\tjsc.attachEvent(window, 'resize', jsc.onWindowResize);\n\t},\n\n\n\tinit : function () {\n\t\tif (jsc.jscolor.lookupClass) {\n\t\t\tjsc.jscolor.installByClassName(jsc.jscolor.lookupClass);\n\t\t}\n\t},\n\n\n\ttryInstallOnElements : function (elms, className) {\n\t\tvar matchClass = new RegExp('(^|\\\\s)(' + className + ')(\\\\s*(\\\\{[^}]*\\\\})|\\\\s|$)', 'i');\n\n\t\tfor (var i = 0; i < elms.length; i += 1) {\n\t\t\tif (elms[i].type !== undefined && elms[i].type.toLowerCase() == 'color') {\n\t\t\t\tif (jsc.isColorAttrSupported) {\n\t\t\t\t\t// skip inputs of type 'color' if supported by the browser\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar m;\n\t\t\tif (!elms[i].jscolor && elms[i].className && (m = elms[i].className.match(matchClass))) {\n\t\t\t\tvar targetElm = elms[i];\n\t\t\t\tvar optsStr = null;\n\n\t\t\t\tvar dataOptions = jsc.getDataAttr(targetElm, 'jscolor');\n\t\t\t\tif (dataOptions !== null) {\n\t\t\t\t\toptsStr = dataOptions;\n\t\t\t\t} else if (m[4]) {\n\t\t\t\t\toptsStr = m[4];\n\t\t\t\t}\n\n\t\t\t\tvar opts = {};\n\t\t\t\tif (optsStr) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\topts = (new Function ('return (' + optsStr + ')'))();\n\t\t\t\t\t} catch(eParseError) {\n\t\t\t\t\t\tjsc.warn('Error parsing jscolor options: ' + eParseError + ':\\n' + optsStr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttargetElm.jscolor = new jsc.jscolor(targetElm, opts);\n\t\t\t}\n\t\t}\n\t},\n\n\n\tisColorAttrSupported : (function () {\n\t\tvar elm = document.createElement('input');\n\t\tif (elm.setAttribute) {\n\t\t\telm.setAttribute('type', 'color');\n\t\t\tif (elm.type.toLowerCase() == 'color') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t})(),\n\n\n\tisCanvasSupported : (function () {\n\t\tvar elm = document.createElement('canvas');\n\t\treturn !!(elm.getContext && elm.getContext('2d'));\n\t})(),\n\n\n\tfetchElement : function (mixed) {\n\t\treturn typeof mixed === 'string' ? document.getElementById(mixed) : mixed;\n\t},\n\n\n\tisElementType : function (elm, type) {\n\t\treturn elm.nodeName.toLowerCase() === type.toLowerCase();\n\t},\n\n\n\tgetDataAttr : function (el, name) {\n\t\tvar attrName = 'data-' + name;\n\t\tvar attrValue = el.getAttribute(attrName);\n\t\tif (attrValue !== null) {\n\t\t\treturn attrValue;\n\t\t}\n\t\treturn null;\n\t},\n\n\n\tattachEvent : function (el, evnt, func) {\n\t\tif (el.addEventListener) {\n\t\t\tel.addEventListener(evnt, func, false);\n\t\t} else if (el.attachEvent) {\n\t\t\tel.attachEvent('on' + evnt, func);\n\t\t}\n\t},\n\n\n\tdetachEvent : function (el, evnt, func) {\n\t\tif (el.removeEventListener) {\n\t\t\tel.removeEventListener(evnt, func, false);\n\t\t} else if (el.detachEvent) {\n\t\t\tel.detachEvent('on' + evnt, func);\n\t\t}\n\t},\n\n\n\t_attachedGroupEvents : {},\n\n\n\tattachGroupEvent : function (groupName, el, evnt, func) {\n\t\tif (!jsc._attachedGroupEvents.hasOwnProperty(groupName)) {\n\t\t\tjsc._attachedGroupEvents[groupName] = [];\n\t\t}\n\t\tjsc._attachedGroupEvents[groupName].push([el, evnt, func]);\n\t\tjsc.attachEvent(el, evnt, func);\n\t},\n\n\n\tdetachGroupEvents : function (groupName) {\n\t\tif (jsc._attachedGroupEvents.hasOwnProperty(groupName)) {\n\t\t\tfor (var i = 0; i < jsc._attachedGroupEvents[groupName].length; i += 1) {\n\t\t\t\tvar evt = jsc._attachedGroupEvents[groupName][i];\n\t\t\t\tjsc.detachEvent(evt[0], evt[1], evt[2]);\n\t\t\t}\n\t\t\tdelete jsc._attachedGroupEvents[groupName];\n\t\t}\n\t},\n\n\n\tattachDOMReadyEvent : function (func) {\n\t\tvar fired = false;\n\t\tvar fireOnce = function () {\n\t\t\tif (!fired) {\n\t\t\t\tfired = true;\n\t\t\t\tfunc();\n\t\t\t}\n\t\t};\n\n\t\tif (document.readyState === 'complete') {\n\t\t\tsetTimeout(fireOnce, 1); // async\n\t\t\treturn;\n\t\t}\n\n\t\tif (document.addEventListener) {\n\t\t\tdocument.addEventListener('DOMContentLoaded', fireOnce, false);\n\n\t\t\t// Fallback\n\t\t\twindow.addEventListener('load', fireOnce, false);\n\n\t\t} else if (document.attachEvent) {\n\t\t\t// IE\n\t\t\tdocument.attachEvent('onreadystatechange', function () {\n\t\t\t\tif (document.readyState === 'complete') {\n\t\t\t\t\tdocument.detachEvent('onreadystatechange', arguments.callee);\n\t\t\t\t\tfireOnce();\n\t\t\t\t}\n\t\t\t})\n\n\t\t\t// Fallback\n\t\t\twindow.attachEvent('onload', fireOnce);\n\n\t\t\t// IE7/8\n\t\t\tif (document.documentElement.doScroll && window == window.top) {\n\t\t\t\tvar tryScroll = function () {\n\t\t\t\t\tif (!document.body) { return; }\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdocument.documentElement.doScroll('left');\n\t\t\t\t\t\tfireOnce();\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tsetTimeout(tryScroll, 1);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\ttryScroll();\n\t\t\t}\n\t\t}\n\t},\n\n\n\twarn : function (msg) {\n\t\tif (window.console && window.console.warn) {\n\t\t\twindow.console.warn(msg);\n\t\t}\n\t},\n\n\n\tpreventDefault : function (e) {\n\t\tif (e.preventDefault) { e.preventDefault(); }\n\t\te.returnValue = false;\n\t},\n\n\n\tcaptureTarget : function (target) {\n\t\t// IE\n\t\tif (target.setCapture) {\n\t\t\tjsc._capturedTarget = target;\n\t\t\tjsc._capturedTarget.setCapture();\n\t\t}\n\t},\n\n\n\treleaseTarget : function () {\n\t\t// IE\n\t\tif (jsc._capturedTarget) {\n\t\t\tjsc._capturedTarget.releaseCapture();\n\t\t\tjsc._capturedTarget = null;\n\t\t}\n\t},\n\n\n\tfireEvent : function (el, evnt) {\n\t\tif (!el) {\n\t\t\treturn;\n\t\t}\n\t\tif (document.createEvent) {\n\t\t\tvar ev = document.createEvent('HTMLEvents');\n\t\t\tev.initEvent(evnt, true, true);\n\t\t\tel.dispatchEvent(ev);\n\t\t} else if (document.createEventObject) {\n\t\t\tvar ev = document.createEventObject();\n\t\t\tel.fireEvent('on' + evnt, ev);\n\t\t} else if (el['on' + evnt]) { // alternatively use the traditional event model\n\t\t\tel['on' + evnt]();\n\t\t}\n\t},\n\n\n\tclassNameToList : function (className) {\n\t\treturn className.replace(/^\\s+|\\s+$/g, '').split(/\\s+/);\n\t},\n\n\n\t// The className parameter (str) can only contain a single class name\n\thasClass : function (elm, className) {\n\t\tif (!className) {\n\t\t\treturn false;\n\t\t}\n\t\treturn -1 != (' ' + elm.className.replace(/\\s+/g, ' ') + ' ').indexOf(' ' + className + ' ');\n\t},\n\n\n\t// The className parameter (str) can contain multiple class names separated by whitespace\n\tsetClass : function (elm, className) {\n\t\tvar classList = jsc.classNameToList(className);\n\t\tfor (var i = 0; i < classList.length; i += 1) {\n\t\t\tif (!jsc.hasClass(elm, classList[i])) {\n\t\t\t\telm.className += (elm.className ? ' ' : '') + classList[i];\n\t\t\t}\n\t\t}\n\t},\n\n\n\t// The className parameter (str) can contain multiple class names separated by whitespace\n\tunsetClass : function (elm, className) {\n\t\tvar classList = jsc.classNameToList(className);\n\t\tfor (var i = 0; i < classList.length; i += 1) {\n\t\t\tvar repl = new RegExp(\n\t\t\t\t'^\\\\s*' + classList[i] + '\\\\s*|' +\n\t\t\t\t'\\\\s*' + classList[i] + '\\\\s*$|' +\n\t\t\t\t'\\\\s+' + classList[i] + '(\\\\s+)',\n\t\t\t\t'g'\n\t\t\t);\n\t\t\telm.className = elm.className.replace(repl, '$1');\n\t\t}\n\t},\n\n\n\tgetStyle : function (elm) {\n\t\treturn window.getComputedStyle ? window.getComputedStyle(elm) : elm.currentStyle;\n\t},\n\n\n\tsetStyle : (function () {\n\t\tvar helper = document.createElement('div');\n\t\tvar getSupportedProp = function (names) {\n\t\t\tfor (var i = 0; i < names.length; i += 1) {\n\t\t\t\tif (names[i] in helper.style) {\n\t\t\t\t\treturn names[i];\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tvar props = {\n\t\t\tborderRadius: getSupportedProp(['borderRadius', 'MozBorderRadius', 'webkitBorderRadius']),\n\t\t\tboxShadow: getSupportedProp(['boxShadow', 'MozBoxShadow', 'webkitBoxShadow'])\n\t\t};\n\t\treturn function (elm, prop, value) {\n\t\t\tswitch (prop.toLowerCase()) {\n\t\t\tcase 'opacity':\n\t\t\t\tvar alphaOpacity = Math.round(parseFloat(value) * 100);\n\t\t\t\telm.style.opacity = value;\n\t\t\t\telm.style.filter = 'alpha(opacity=' + alphaOpacity + ')';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\telm.style[props[prop]] = value;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t};\n\t})(),\n\n\n\tsetBorderRadius : function (elm, value) {\n\t\tjsc.setStyle(elm, 'borderRadius', value || '0');\n\t},\n\n\n\tsetBoxShadow : function (elm, value) {\n\t\tjsc.setStyle(elm, 'boxShadow', value || 'none');\n\t},\n\n\n\tgetElementPos : function (e, relativeToViewport) {\n\t\tvar x=0, y=0;\n\t\tvar rect = e.getBoundingClientRect();\n\t\tx = rect.left;\n\t\ty = rect.top;\n\t\tif (!relativeToViewport) {\n\t\t\tvar viewPos = jsc.getViewPos();\n\t\t\tx += viewPos[0];\n\t\t\ty += viewPos[1];\n\t\t}\n\t\treturn [x, y];\n\t},\n\n\n\tgetElementSize : function (e) {\n\t\treturn [e.offsetWidth, e.offsetHeight];\n\t},\n\n\n\t// get pointer's X/Y coordinates relative to viewport\n\tgetAbsPointerPos : function (e) {\n\t\tif (!e) { e = window.event; }\n\t\tvar x = 0, y = 0;\n\t\tif (typeof e.changedTouches !== 'undefined' && e.changedTouches.length) {\n\t\t\t// touch devices\n\t\t\tx = e.changedTouches[0].clientX;\n\t\t\ty = e.changedTouches[0].clientY;\n\t\t} else if (typeof e.clientX === 'number') {\n\t\t\tx = e.clientX;\n\t\t\ty = e.clientY;\n\t\t}\n\t\treturn { x: x, y: y };\n\t},\n\n\n\t// get pointer's X/Y coordinates relative to target element\n\tgetRelPointerPos : function (e) {\n\t\tif (!e) { e = window.event; }\n\t\tvar target = e.target || e.srcElement;\n\t\tvar targetRect = target.getBoundingClientRect();\n\n\t\tvar x = 0, y = 0;\n\n\t\tvar clientX = 0, clientY = 0;\n\t\tif (typeof e.changedTouches !== 'undefined' && e.changedTouches.length) {\n\t\t\t// touch devices\n\t\t\tclientX = e.changedTouches[0].clientX;\n\t\t\tclientY = e.changedTouches[0].clientY;\n\t\t} else if (typeof e.clientX === 'number') {\n\t\t\tclientX = e.clientX;\n\t\t\tclientY = e.clientY;\n\t\t}\n\n\t\tx = clientX - targetRect.left;\n\t\ty = clientY - targetRect.top;\n\t\treturn { x: x, y: y };\n\t},\n\n\n\tgetViewPos : function () {\n\t\tvar doc = document.documentElement;\n\t\treturn [\n\t\t\t(window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0),\n\t\t\t(window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0)\n\t\t];\n\t},\n\n\n\tgetViewSize : function () {\n\t\tvar doc = document.documentElement;\n\t\treturn [\n\t\t\t(window.innerWidth || doc.clientWidth),\n\t\t\t(window.innerHeight || doc.clientHeight),\n\t\t];\n\t},\n\n\n\tredrawPosition : function () {\n\n\t\tif (jsc.picker && jsc.picker.owner) {\n\t\t\tvar thisObj = jsc.picker.owner;\n\n\t\t\tvar tp, vp;\n\n\t\t\tif (thisObj.fixed) {\n\t\t\t\t// Fixed elements are positioned relative to viewport,\n\t\t\t\t// therefore we can ignore the scroll offset\n\t\t\t\ttp = jsc.getElementPos(thisObj.targetElement, true); // target pos\n\t\t\t\tvp = [0, 0]; // view pos\n\t\t\t} else {\n\t\t\t\ttp = jsc.getElementPos(thisObj.targetElement); // target pos\n\t\t\t\tvp = jsc.getViewPos(); // view pos\n\t\t\t}\n\n\t\t\tvar ts = jsc.getElementSize(thisObj.targetElement); // target size\n\t\t\tvar vs = jsc.getViewSize(); // view size\n\t\t\tvar ps = jsc.getPickerOuterDims(thisObj); // picker size\n\t\t\tvar a, b, c;\n\t\t\tswitch (thisObj.position.toLowerCase()) {\n\t\t\t\tcase 'left': a=1; b=0; c=-1; break;\n\t\t\t\tcase 'right':a=1; b=0; c=1; break;\n\t\t\t\tcase 'top':  a=0; b=1; c=-1; break;\n\t\t\t\tdefault:     a=0; b=1; c=1; break;\n\t\t\t}\n\t\t\tvar l = (ts[b]+ps[b])/2;\n\n\t\t\t// compute picker position\n\t\t\tif (!thisObj.smartPosition) {\n\t\t\t\tvar pp = [\n\t\t\t\t\ttp[a],\n\t\t\t\t\ttp[b]+ts[b]-l+l*c\n\t\t\t\t];\n\t\t\t} else {\n\t\t\t\tvar pp = [\n\t\t\t\t\t-vp[a]+tp[a]+ps[a] > vs[a] ?\n\t\t\t\t\t\t(-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) :\n\t\t\t\t\t\ttp[a],\n\t\t\t\t\t-vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ?\n\t\t\t\t\t\t(-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) :\n\t\t\t\t\t\t(tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c)\n\t\t\t\t];\n\t\t\t}\n\n\t\t\tvar x = pp[a];\n\t\t\tvar y = pp[b];\n\t\t\tvar positionValue = thisObj.fixed ? 'fixed' : 'absolute';\n\t\t\tvar contractShadow =\n\t\t\t\t(pp[0] + ps[0] > tp[0] || pp[0] < tp[0] + ts[0]) &&\n\t\t\t\t(pp[1] + ps[1] < tp[1] + ts[1]);\n\n\t\t\tjsc._drawPosition(thisObj, x, y, positionValue, contractShadow);\n\t\t}\n\t},\n\n\n\t_drawPosition : function (thisObj, x, y, positionValue, contractShadow) {\n\t\tvar vShadow = contractShadow ? 0 : thisObj.shadowBlur; // px\n\n\t\tjsc.picker.wrap.style.position = positionValue;\n\t\tjsc.picker.wrap.style.left = x + 'px';\n\t\tjsc.picker.wrap.style.top = y + 'px';\n\n\t\tjsc.setBoxShadow(\n\t\t\tjsc.picker.boxS,\n\t\t\tthisObj.shadow ?\n\t\t\t\tnew jsc.BoxShadow(0, vShadow, thisObj.shadowBlur, 0, thisObj.shadowColor) :\n\t\t\t\tnull);\n\t},\n\n\n\tgetPickerDims : function (thisObj) {\n\t\tvar displaySlider = !!jsc.getSliderComponent(thisObj);\n\t\tvar dims = [\n\t\t\t2 * thisObj.insetWidth + 2 * thisObj.padding + thisObj.width +\n\t\t\t\t(displaySlider ? 2 * thisObj.insetWidth + jsc.getPadToSliderPadding(thisObj) + thisObj.sliderSize : 0),\n\t\t\t2 * thisObj.insetWidth + 2 * thisObj.padding + thisObj.height +\n\t\t\t\t(thisObj.closable ? 2 * thisObj.insetWidth + thisObj.padding + thisObj.buttonHeight : 0)\n\t\t];\n\t\treturn dims;\n\t},\n\n\n\tgetPickerOuterDims : function (thisObj) {\n\t\tvar dims = jsc.getPickerDims(thisObj);\n\t\treturn [\n\t\t\tdims[0] + 2 * thisObj.borderWidth,\n\t\t\tdims[1] + 2 * thisObj.borderWidth\n\t\t];\n\t},\n\n\n\tgetPadToSliderPadding : function (thisObj) {\n\t\treturn Math.max(thisObj.padding, 1.5 * (2 * thisObj.pointerBorderWidth + thisObj.pointerThickness));\n\t},\n\n\n\tgetPadYComponent : function (thisObj) {\n\t\tswitch (thisObj.mode.charAt(1).toLowerCase()) {\n\t\t\tcase 'v': return 'v'; break;\n\t\t}\n\t\treturn 's';\n\t},\n\n\n\tgetSliderComponent : function (thisObj) {\n\t\tif (thisObj.mode.length > 2) {\n\t\t\tswitch (thisObj.mode.charAt(2).toLowerCase()) {\n\t\t\t\tcase 's': return 's'; break;\n\t\t\t\tcase 'v': return 'v'; break;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t},\n\n\n\tonDocumentMouseDown : function (e) {\n\t\tif (!e) { e = window.event; }\n\t\tvar target = e.target || e.srcElement;\n\n\t\tif (target._jscLinkedInstance) {\n\t\t\tif (target._jscLinkedInstance.showOnClick) {\n\t\t\t\ttarget._jscLinkedInstance.show();\n\t\t\t}\n\t\t} else if (target._jscControlName) {\n\t\t\tjsc.onControlPointerStart(e, target, target._jscControlName, 'mouse');\n\t\t} else {\n\t\t\t// Mouse is outside the picker controls -> hide the color picker!\n\t\t\tif (jsc.picker && jsc.picker.owner) {\n\t\t\t\tjsc.picker.owner.hide();\n\t\t\t}\n\t\t}\n\t},\n\n\n\tonDocumentTouchStart : function (e) {\n\t\tif (!e) { e = window.event; }\n\t\tvar target = e.target || e.srcElement;\n\n\t\tif (target._jscLinkedInstance) {\n\t\t\tif (target._jscLinkedInstance.showOnClick) {\n\t\t\t\ttarget._jscLinkedInstance.show();\n\t\t\t}\n\t\t} else if (target._jscControlName) {\n\t\t\tjsc.onControlPointerStart(e, target, target._jscControlName, 'touch');\n\t\t} else {\n\t\t\tif (jsc.picker && jsc.picker.owner) {\n\t\t\t\tjsc.picker.owner.hide();\n\t\t\t}\n\t\t}\n\t},\n\n\n\tonWindowResize : function (e) {\n\t\tjsc.redrawPosition();\n\t},\n\n\n\tonParentScroll : function (e) {\n\t\t// hide the picker when one of the parent elements is scrolled\n\t\tif (jsc.picker && jsc.picker.owner) {\n\t\t\tjsc.picker.owner.hide();\n\t\t}\n\t},\n\n\n\t_pointerMoveEvent : {\n\t\tmouse: 'mousemove',\n\t\ttouch: 'touchmove'\n\t},\n\t_pointerEndEvent : {\n\t\tmouse: 'mouseup',\n\t\ttouch: 'touchend'\n\t},\n\n\n\t_pointerOrigin : null,\n\t_capturedTarget : null,\n\n\n\tonControlPointerStart : function (e, target, controlName, pointerType) {\n\t\tvar thisObj = target._jscInstance;\n\n\t\tjsc.preventDefault(e);\n\t\tjsc.captureTarget(target);\n\n\t\tvar registerDragEvents = function (doc, offset) {\n\t\t\tjsc.attachGroupEvent('drag', doc, jsc._pointerMoveEvent[pointerType],\n\t\t\t\tjsc.onDocumentPointerMove(e, target, controlName, pointerType, offset));\n\t\t\tjsc.attachGroupEvent('drag', doc, jsc._pointerEndEvent[pointerType],\n\t\t\t\tjsc.onDocumentPointerEnd(e, target, controlName, pointerType));\n\t\t};\n\n\t\tregisterDragEvents(document, [0, 0]);\n\n\t\tif (window.parent && window.frameElement) {\n\t\t\tvar rect = window.frameElement.getBoundingClientRect();\n\t\t\tvar ofs = [-rect.left, -rect.top];\n\t\t\tregisterDragEvents(window.parent.window.document, ofs);\n\t\t}\n\n\t\tvar abs = jsc.getAbsPointerPos(e);\n\t\tvar rel = jsc.getRelPointerPos(e);\n\t\tjsc._pointerOrigin = {\n\t\t\tx: abs.x - rel.x,\n\t\t\ty: abs.y - rel.y\n\t\t};\n\n\t\tswitch (controlName) {\n\t\tcase 'pad':\n\t\t\t// if the slider is at the bottom, move it up\n\t\t\tswitch (jsc.getSliderComponent(thisObj)) {\n\t\t\tcase 's': if (thisObj.hsv[1] === 0) { thisObj.fromHSV(null, 100, null); }; break;\n\t\t\tcase 'v': if (thisObj.hsv[2] === 0) { thisObj.fromHSV(null, null, 100); }; break;\n\t\t\t}\n\t\t\tjsc.setPad(thisObj, e, 0, 0);\n\t\t\tbreak;\n\n\t\tcase 'sld':\n\t\t\tjsc.setSld(thisObj, e, 0);\n\t\t\tbreak;\n\t\t}\n\n\t\tjsc.dispatchFineChange(thisObj);\n\t},\n\n\n\tonDocumentPointerMove : function (e, target, controlName, pointerType, offset) {\n\t\treturn function (e) {\n\t\t\tvar thisObj = target._jscInstance;\n\t\t\tswitch (controlName) {\n\t\t\tcase 'pad':\n\t\t\t\tif (!e) { e = window.event; }\n\t\t\t\tjsc.setPad(thisObj, e, offset[0], offset[1]);\n\t\t\t\tjsc.dispatchFineChange(thisObj);\n\t\t\t\tbreak;\n\n\t\t\tcase 'sld':\n\t\t\t\tif (!e) { e = window.event; }\n\t\t\t\tjsc.setSld(thisObj, e, offset[1]);\n\t\t\t\tjsc.dispatchFineChange(thisObj);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t},\n\n\n\tonDocumentPointerEnd : function (e, target, controlName, pointerType) {\n\t\treturn function (e) {\n\t\t\tvar thisObj = target._jscInstance;\n\t\t\tjsc.detachGroupEvents('drag');\n\t\t\tjsc.releaseTarget();\n\t\t\t// Always dispatch changes after detaching outstanding mouse handlers,\n\t\t\t// in case some user interaction will occur in user's onchange callback\n\t\t\t// that would intrude with current mouse events\n\t\t\tjsc.dispatchChange(thisObj);\n\t\t};\n\t},\n\n\n\tdispatchChange : function (thisObj) {\n\t\tif (thisObj.valueElement) {\n\t\t\tif (jsc.isElementType(thisObj.valueElement, 'input')) {\n\t\t\t\tjsc.fireEvent(thisObj.valueElement, 'change');\n\t\t\t}\n\t\t}\n\t},\n\n\n\tdispatchFineChange : function (thisObj) {\n\t\tif (thisObj.onFineChange) {\n\t\t\tvar callback;\n\t\t\tif (typeof thisObj.onFineChange === 'string') {\n\t\t\t\tcallback = new Function (thisObj.onFineChange);\n\t\t\t} else {\n\t\t\t\tcallback = thisObj.onFineChange;\n\t\t\t}\n\t\t\tcallback.call(thisObj);\n\t\t}\n\t},\n\n\n\tsetPad : function (thisObj, e, ofsX, ofsY) {\n\t\tvar pointerAbs = jsc.getAbsPointerPos(e);\n\t\tvar x = ofsX + pointerAbs.x - jsc._pointerOrigin.x - thisObj.padding - thisObj.insetWidth;\n\t\tvar y = ofsY + pointerAbs.y - jsc._pointerOrigin.y - thisObj.padding - thisObj.insetWidth;\n\n\t\tvar xVal = x * (360 / (thisObj.width - 1));\n\t\tvar yVal = 100 - (y * (100 / (thisObj.height - 1)));\n\n\t\tswitch (jsc.getPadYComponent(thisObj)) {\n\t\tcase 's': thisObj.fromHSV(xVal, yVal, null, jsc.leaveSld); break;\n\t\tcase 'v': thisObj.fromHSV(xVal, null, yVal, jsc.leaveSld); break;\n\t\t}\n\t},\n\n\n\tsetSld : function (thisObj, e, ofsY) {\n\t\tvar pointerAbs = jsc.getAbsPointerPos(e);\n\t\tvar y = ofsY + pointerAbs.y - jsc._pointerOrigin.y - thisObj.padding - thisObj.insetWidth;\n\n\t\tvar yVal = 100 - (y * (100 / (thisObj.height - 1)));\n\n\t\tswitch (jsc.getSliderComponent(thisObj)) {\n\t\tcase 's': thisObj.fromHSV(null, yVal, null, jsc.leavePad); break;\n\t\tcase 'v': thisObj.fromHSV(null, null, yVal, jsc.leavePad); break;\n\t\t}\n\t},\n\n\n\t_vmlNS : 'jsc_vml_',\n\t_vmlCSS : 'jsc_vml_css_',\n\t_vmlReady : false,\n\n\n\tinitVML : function () {\n\t\tif (!jsc._vmlReady) {\n\t\t\t// init VML namespace\n\t\t\tvar doc = document;\n\t\t\tif (!doc.namespaces[jsc._vmlNS]) {\n\t\t\t\tdoc.namespaces.add(jsc._vmlNS, 'urn:schemas-microsoft-com:vml');\n\t\t\t}\n\t\t\tif (!doc.styleSheets[jsc._vmlCSS]) {\n\t\t\t\tvar tags = ['shape', 'shapetype', 'group', 'background', 'path', 'formulas', 'handles', 'fill', 'stroke', 'shadow', 'textbox', 'textpath', 'imagedata', 'line', 'polyline', 'curve', 'rect', 'roundrect', 'oval', 'arc', 'image'];\n\t\t\t\tvar ss = doc.createStyleSheet();\n\t\t\t\tss.owningElement.id = jsc._vmlCSS;\n\t\t\t\tfor (var i = 0; i < tags.length; i += 1) {\n\t\t\t\t\tss.addRule(jsc._vmlNS + '\\\\:' + tags[i], 'behavior:url(#default#VML);');\n\t\t\t\t}\n\t\t\t}\n\t\t\tjsc._vmlReady = true;\n\t\t}\n\t},\n\n\n\tcreatePalette : function () {\n\n\t\tvar paletteObj = {\n\t\t\telm: null,\n\t\t\tdraw: null\n\t\t};\n\n\t\tif (jsc.isCanvasSupported) {\n\t\t\t// Canvas implementation for modern browsers\n\n\t\t\tvar canvas = document.createElement('canvas');\n\t\t\tvar ctx = canvas.getContext('2d');\n\n\t\t\tvar drawFunc = function (width, height, type) {\n\t\t\t\tcanvas.width = width;\n\t\t\t\tcanvas.height = height;\n\n\t\t\t\tctx.clearRect(0, 0, canvas.width, canvas.height);\n\n\t\t\t\tvar hGrad = ctx.createLinearGradient(0, 0, canvas.width, 0);\n\t\t\t\thGrad.addColorStop(0 / 6, '#F00');\n\t\t\t\thGrad.addColorStop(1 / 6, '#FF0');\n\t\t\t\thGrad.addColorStop(2 / 6, '#0F0');\n\t\t\t\thGrad.addColorStop(3 / 6, '#0FF');\n\t\t\t\thGrad.addColorStop(4 / 6, '#00F');\n\t\t\t\thGrad.addColorStop(5 / 6, '#F0F');\n\t\t\t\thGrad.addColorStop(6 / 6, '#F00');\n\n\t\t\t\tctx.fillStyle = hGrad;\n\t\t\t\tctx.fillRect(0, 0, canvas.width, canvas.height);\n\n\t\t\t\tvar vGrad = ctx.createLinearGradient(0, 0, 0, canvas.height);\n\t\t\t\tswitch (type.toLowerCase()) {\n\t\t\t\tcase 's':\n\t\t\t\t\tvGrad.addColorStop(0, 'rgba(255,255,255,0)');\n\t\t\t\t\tvGrad.addColorStop(1, 'rgba(255,255,255,1)');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'v':\n\t\t\t\t\tvGrad.addColorStop(0, 'rgba(0,0,0,0)');\n\t\t\t\t\tvGrad.addColorStop(1, 'rgba(0,0,0,1)');\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tctx.fillStyle = vGrad;\n\t\t\t\tctx.fillRect(0, 0, canvas.width, canvas.height);\n\t\t\t};\n\n\t\t\tpaletteObj.elm = canvas;\n\t\t\tpaletteObj.draw = drawFunc;\n\n\t\t} else {\n\t\t\t// VML fallback for IE 7 and 8\n\n\t\t\tjsc.initVML();\n\n\t\t\tvar vmlContainer = document.createElement('div');\n\t\t\tvmlContainer.style.position = 'relative';\n\t\t\tvmlContainer.style.overflow = 'hidden';\n\n\t\t\tvar hGrad = document.createElement(jsc._vmlNS + ':fill');\n\t\t\thGrad.type = 'gradient';\n\t\t\thGrad.method = 'linear';\n\t\t\thGrad.angle = '90';\n\t\t\thGrad.colors = '16.67% #F0F, 33.33% #00F, 50% #0FF, 66.67% #0F0, 83.33% #FF0'\n\n\t\t\tvar hRect = document.createElement(jsc._vmlNS + ':rect');\n\t\t\thRect.style.position = 'absolute';\n\t\t\thRect.style.left = -1 + 'px';\n\t\t\thRect.style.top = -1 + 'px';\n\t\t\thRect.stroked = false;\n\t\t\thRect.appendChild(hGrad);\n\t\t\tvmlContainer.appendChild(hRect);\n\n\t\t\tvar vGrad = document.createElement(jsc._vmlNS + ':fill');\n\t\t\tvGrad.type = 'gradient';\n\t\t\tvGrad.method = 'linear';\n\t\t\tvGrad.angle = '180';\n\t\t\tvGrad.opacity = '0';\n\n\t\t\tvar vRect = document.createElement(jsc._vmlNS + ':rect');\n\t\t\tvRect.style.position = 'absolute';\n\t\t\tvRect.style.left = -1 + 'px';\n\t\t\tvRect.style.top = -1 + 'px';\n\t\t\tvRect.stroked = false;\n\t\t\tvRect.appendChild(vGrad);\n\t\t\tvmlContainer.appendChild(vRect);\n\n\t\t\tvar drawFunc = function (width, height, type) {\n\t\t\t\tvmlContainer.style.width = width + 'px';\n\t\t\t\tvmlContainer.style.height = height + 'px';\n\n\t\t\t\thRect.style.width =\n\t\t\t\tvRect.style.width =\n\t\t\t\t\t(width + 1) + 'px';\n\t\t\t\thRect.style.height =\n\t\t\t\tvRect.style.height =\n\t\t\t\t\t(height + 1) + 'px';\n\n\t\t\t\t// Colors must be specified during every redraw, otherwise IE won't display\n\t\t\t\t// a full gradient during a subsequential redraw\n\t\t\t\thGrad.color = '#F00';\n\t\t\t\thGrad.color2 = '#F00';\n\n\t\t\t\tswitch (type.toLowerCase()) {\n\t\t\t\tcase 's':\n\t\t\t\t\tvGrad.color = vGrad.color2 = '#FFF';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'v':\n\t\t\t\t\tvGrad.color = vGrad.color2 = '#000';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tpaletteObj.elm = vmlContainer;\n\t\t\tpaletteObj.draw = drawFunc;\n\t\t}\n\n\t\treturn paletteObj;\n\t},\n\n\n\tcreateSliderGradient : function () {\n\n\t\tvar sliderObj = {\n\t\t\telm: null,\n\t\t\tdraw: null\n\t\t};\n\n\t\tif (jsc.isCanvasSupported) {\n\t\t\t// Canvas implementation for modern browsers\n\n\t\t\tvar canvas = document.createElement('canvas');\n\t\t\tvar ctx = canvas.getContext('2d');\n\n\t\t\tvar drawFunc = function (width, height, color1, color2) {\n\t\t\t\tcanvas.width = width;\n\t\t\t\tcanvas.height = height;\n\n\t\t\t\tctx.clearRect(0, 0, canvas.width, canvas.height);\n\n\t\t\t\tvar grad = ctx.createLinearGradient(0, 0, 0, canvas.height);\n\t\t\t\tgrad.addColorStop(0, color1);\n\t\t\t\tgrad.addColorStop(1, color2);\n\n\t\t\t\tctx.fillStyle = grad;\n\t\t\t\tctx.fillRect(0, 0, canvas.width, canvas.height);\n\t\t\t};\n\n\t\t\tsliderObj.elm = canvas;\n\t\t\tsliderObj.draw = drawFunc;\n\n\t\t} else {\n\t\t\t// VML fallback for IE 7 and 8\n\n\t\t\tjsc.initVML();\n\n\t\t\tvar vmlContainer = document.createElement('div');\n\t\t\tvmlContainer.style.position = 'relative';\n\t\t\tvmlContainer.style.overflow = 'hidden';\n\n\t\t\tvar grad = document.createElement(jsc._vmlNS + ':fill');\n\t\t\tgrad.type = 'gradient';\n\t\t\tgrad.method = 'linear';\n\t\t\tgrad.angle = '180';\n\n\t\t\tvar rect = document.createElement(jsc._vmlNS + ':rect');\n\t\t\trect.style.position = 'absolute';\n\t\t\trect.style.left = -1 + 'px';\n\t\t\trect.style.top = -1 + 'px';\n\t\t\trect.stroked = false;\n\t\t\trect.appendChild(grad);\n\t\t\tvmlContainer.appendChild(rect);\n\n\t\t\tvar drawFunc = function (width, height, color1, color2) {\n\t\t\t\tvmlContainer.style.width = width + 'px';\n\t\t\t\tvmlContainer.style.height = height + 'px';\n\n\t\t\t\trect.style.width = (width + 1) + 'px';\n\t\t\t\trect.style.height = (height + 1) + 'px';\n\n\t\t\t\tgrad.color = color1;\n\t\t\t\tgrad.color2 = color2;\n\t\t\t};\n\t\t\t\n\t\t\tsliderObj.elm = vmlContainer;\n\t\t\tsliderObj.draw = drawFunc;\n\t\t}\n\n\t\treturn sliderObj;\n\t},\n\n\n\tleaveValue : 1<<0,\n\tleaveStyle : 1<<1,\n\tleavePad : 1<<2,\n\tleaveSld : 1<<3,\n\n\n\tBoxShadow : (function () {\n\t\tvar BoxShadow = function (hShadow, vShadow, blur, spread, color, inset) {\n\t\t\tthis.hShadow = hShadow;\n\t\t\tthis.vShadow = vShadow;\n\t\t\tthis.blur = blur;\n\t\t\tthis.spread = spread;\n\t\t\tthis.color = color;\n\t\t\tthis.inset = !!inset;\n\t\t};\n\n\t\tBoxShadow.prototype.toString = function () {\n\t\t\tvar vals = [\n\t\t\t\tMath.round(this.hShadow) + 'px',\n\t\t\t\tMath.round(this.vShadow) + 'px',\n\t\t\t\tMath.round(this.blur) + 'px',\n\t\t\t\tMath.round(this.spread) + 'px',\n\t\t\t\tthis.color\n\t\t\t];\n\t\t\tif (this.inset) {\n\t\t\t\tvals.push('inset');\n\t\t\t}\n\t\t\treturn vals.join(' ');\n\t\t};\n\n\t\treturn BoxShadow;\n\t})(),\n\n\n\t//\n\t// Usage:\n\t// var myColor = new jscolor(<targetElement> [, <options>])\n\t//\n\n\tjscolor : function (targetElement, options) {\n\n\t\t// General options\n\t\t//\n\t\tthis.value = null; // initial HEX color. To change it later, use methods fromString(), fromHSV() and fromRGB()\n\t\tthis.valueElement = targetElement; // element that will be used to display and input the color code\n\t\tthis.styleElement = targetElement; // element that will preview the picked color using CSS backgroundColor\n\t\tthis.required = true; // whether the associated text <input> can be left empty\n\t\tthis.refine = true; // whether to refine the entered color code (e.g. uppercase it and remove whitespace)\n\t\tthis.hash = false; // whether to prefix the HEX color code with # symbol\n\t\tthis.uppercase = true; // whether to show the color code in upper case\n\t\tthis.onFineChange = null; // called instantly every time the color changes (value can be either a function or a string with javascript code)\n\t\tthis.activeClass = 'jscolor-active'; // class to be set to the target element when a picker window is open on it\n\t\tthis.overwriteImportant = false; // whether to overwrite colors of styleElement using !important\n\t\tthis.minS = 0; // min allowed saturation (0 - 100)\n\t\tthis.maxS = 100; // max allowed saturation (0 - 100)\n\t\tthis.minV = 0; // min allowed value (brightness) (0 - 100)\n\t\tthis.maxV = 100; // max allowed value (brightness) (0 - 100)\n\n\t\t// Accessing the picked color\n\t\t//\n\t\tthis.hsv = [0, 0, 100]; // read-only  [0-360, 0-100, 0-100]\n\t\tthis.rgb = [255, 255, 255]; // read-only  [0-255, 0-255, 0-255]\n\n\t\t// Color Picker options\n\t\t//\n\t\tthis.width = 181; // width of color palette (in px)\n\t\tthis.height = 101; // height of color palette (in px)\n\t\tthis.showOnClick = true; // whether to display the color picker when user clicks on its target element\n\t\tthis.mode = 'HSV'; // HSV | HVS | HS | HV - layout of the color picker controls\n\t\tthis.position = 'bottom'; // left | right | top | bottom - position relative to the target element\n\t\tthis.smartPosition = true; // automatically change picker position when there is not enough space for it\n\t\tthis.sliderSize = 16; // px\n\t\tthis.crossSize = 8; // px\n\t\tthis.closable = false; // whether to display the Close button\n\t\tthis.closeText = 'Close';\n\t\tthis.buttonColor = '#000000'; // CSS color\n\t\tthis.buttonHeight = 18; // px\n\t\tthis.padding = 12; // px\n\t\tthis.backgroundColor = '#FFFFFF'; // CSS color\n\t\tthis.borderWidth = 1; // px\n\t\tthis.borderColor = '#BBBBBB'; // CSS color\n\t\tthis.borderRadius = 8; // px\n\t\tthis.insetWidth = 1; // px\n\t\tthis.insetColor = '#BBBBBB'; // CSS color\n\t\tthis.shadow = true; // whether to display shadow\n\t\tthis.shadowBlur = 15; // px\n\t\tthis.shadowColor = 'rgba(0,0,0,0.2)'; // CSS color\n\t\tthis.pointerColor = '#4C4C4C'; // px\n\t\tthis.pointerBorderColor = '#FFFFFF'; // px\n        this.pointerBorderWidth = 1; // px\n        this.pointerThickness = 2; // px\n\t\tthis.zIndex = 1000;\n\t\tthis.container = null; // where to append the color picker (BODY element by default)\n\n\n\t\tfor (var opt in options) {\n\t\t\tif (options.hasOwnProperty(opt)) {\n\t\t\t\tthis[opt] = options[opt];\n\t\t\t}\n\t\t}\n\n\n\t\tthis.hide = function () {\n\t\t\tif (isPickerOwner()) {\n\t\t\t\tdetachPicker();\n\t\t\t}\n\t\t};\n\n\n\t\tthis.show = function () {\n\t\t\tdrawPicker();\n\t\t};\n\n\n\t\tthis.redraw = function () {\n\t\t\tif (isPickerOwner()) {\n\t\t\t\tdrawPicker();\n\t\t\t}\n\t\t};\n\n\n\t\tthis.importColor = function () {\n\t\t\tif (!this.valueElement) {\n\t\t\t\tthis.exportColor();\n\t\t\t} else {\n\t\t\t\tif (jsc.isElementType(this.valueElement, 'input')) {\n\t\t\t\t\tif (!this.refine) {\n\t\t\t\t\t\tif (!this.fromString(this.valueElement.value, jsc.leaveValue)) {\n\t\t\t\t\t\t\tif (this.styleElement) {\n\t\t\t\t\t\t\t\tthis.styleElement.style.backgroundImage = this.styleElement._jscOrigStyle.backgroundImage;\n\t\t\t\t\t\t\t\tthis.styleElement.style.backgroundColor = this.styleElement._jscOrigStyle.backgroundColor;\n\t\t\t\t\t\t\t\tthis.styleElement.style.color = this.styleElement._jscOrigStyle.color;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.exportColor(jsc.leaveValue | jsc.leaveStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (!this.required && /^\\s*$/.test(this.valueElement.value)) {\n\t\t\t\t\t\tthis.valueElement.value = '';\n\t\t\t\t\t\tif (this.styleElement) {\n\t\t\t\t\t\t\tthis.styleElement.style.backgroundImage = this.styleElement._jscOrigStyle.backgroundImage;\n\t\t\t\t\t\t\tthis.styleElement.style.backgroundColor = this.styleElement._jscOrigStyle.backgroundColor;\n\t\t\t\t\t\t\tthis.styleElement.style.color = this.styleElement._jscOrigStyle.color;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.exportColor(jsc.leaveValue | jsc.leaveStyle);\n\n\t\t\t\t\t} else if (this.fromString(this.valueElement.value)) {\n\t\t\t\t\t\t// managed to import color successfully from the value -> OK, don't do anything\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.exportColor();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// not an input element -> doesn't have any value\n\t\t\t\t\tthis.exportColor();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\n\t\tthis.exportColor = function (flags) {\n\t\t\tif (!(flags & jsc.leaveValue) && this.valueElement) {\n\t\t\t\tvar value = this.toString();\n\t\t\t\tif (this.uppercase) { value = value.toUpperCase(); }\n\t\t\t\tif (this.hash) { value = '#' + value; }\n\n\t\t\t\tif (jsc.isElementType(this.valueElement, 'input')) {\n\t\t\t\t\tthis.valueElement.value = value;\n\t\t\t\t} else {\n\t\t\t\t\tthis.valueElement.innerHTML = value;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!(flags & jsc.leaveStyle)) {\n\t\t\t\tif (this.styleElement) {\n\t\t\t\t\tvar bgColor = '#' + this.toString();\n\t\t\t\t\tvar fgColor = this.isLight() ? '#000' : '#FFF';\n\n\t\t\t\t\tthis.styleElement.style.backgroundImage = 'none';\n\t\t\t\t\tthis.styleElement.style.backgroundColor = bgColor;\n\t\t\t\t\tthis.styleElement.style.color = fgColor;\n\n\t\t\t\t\tif (this.overwriteImportant) {\n\t\t\t\t\t\tthis.styleElement.setAttribute('style',\n\t\t\t\t\t\t\t'background: ' + bgColor + ' !important; ' +\n\t\t\t\t\t\t\t'color: ' + fgColor + ' !important;'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!(flags & jsc.leavePad) && isPickerOwner()) {\n\t\t\t\tredrawPad();\n\t\t\t}\n\t\t\tif (!(flags & jsc.leaveSld) && isPickerOwner()) {\n\t\t\t\tredrawSld();\n\t\t\t}\n\t\t};\n\n\n\t\t// h: 0-360\n\t\t// s: 0-100\n\t\t// v: 0-100\n\t\t//\n\t\tthis.fromHSV = function (h, s, v, flags) { // null = don't change\n\t\t\tif (h !== null) {\n\t\t\t\tif (isNaN(h)) { return false; }\n\t\t\t\th = Math.max(0, Math.min(360, h));\n\t\t\t}\n\t\t\tif (s !== null) {\n\t\t\t\tif (isNaN(s)) { return false; }\n\t\t\t\ts = Math.max(0, Math.min(100, this.maxS, s), this.minS);\n\t\t\t}\n\t\t\tif (v !== null) {\n\t\t\t\tif (isNaN(v)) { return false; }\n\t\t\t\tv = Math.max(0, Math.min(100, this.maxV, v), this.minV);\n\t\t\t}\n\n\t\t\tthis.rgb = HSV_RGB(\n\t\t\t\th===null ? this.hsv[0] : (this.hsv[0]=h),\n\t\t\t\ts===null ? this.hsv[1] : (this.hsv[1]=s),\n\t\t\t\tv===null ? this.hsv[2] : (this.hsv[2]=v)\n\t\t\t);\n\n\t\t\tthis.exportColor(flags);\n\t\t};\n\n\n\t\t// r: 0-255\n\t\t// g: 0-255\n\t\t// b: 0-255\n\t\t//\n\t\tthis.fromRGB = function (r, g, b, flags) { // null = don't change\n\t\t\tif (r !== null) {\n\t\t\t\tif (isNaN(r)) { return false; }\n\t\t\t\tr = Math.max(0, Math.min(255, r));\n\t\t\t}\n\t\t\tif (g !== null) {\n\t\t\t\tif (isNaN(g)) { return false; }\n\t\t\t\tg = Math.max(0, Math.min(255, g));\n\t\t\t}\n\t\t\tif (b !== null) {\n\t\t\t\tif (isNaN(b)) { return false; }\n\t\t\t\tb = Math.max(0, Math.min(255, b));\n\t\t\t}\n\n\t\t\tvar hsv = RGB_HSV(\n\t\t\t\tr===null ? this.rgb[0] : r,\n\t\t\t\tg===null ? this.rgb[1] : g,\n\t\t\t\tb===null ? this.rgb[2] : b\n\t\t\t);\n\t\t\tif (hsv[0] !== null) {\n\t\t\t\tthis.hsv[0] = Math.max(0, Math.min(360, hsv[0]));\n\t\t\t}\n\t\t\tif (hsv[2] !== 0) {\n\t\t\t\tthis.hsv[1] = hsv[1]===null ? null : Math.max(0, this.minS, Math.min(100, this.maxS, hsv[1]));\n\t\t\t}\n\t\t\tthis.hsv[2] = hsv[2]===null ? null : Math.max(0, this.minV, Math.min(100, this.maxV, hsv[2]));\n\n\t\t\t// update RGB according to final HSV, as some values might be trimmed\n\t\t\tvar rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]);\n\t\t\tthis.rgb[0] = rgb[0];\n\t\t\tthis.rgb[1] = rgb[1];\n\t\t\tthis.rgb[2] = rgb[2];\n\n\t\t\tthis.exportColor(flags);\n\t\t};\n\n\n\t\tthis.fromString = function (str, flags) {\n\t\t\tvar m;\n\t\t\tif (m = str.match(/^\\W*([0-9A-F]{3}([0-9A-F]{3})?)\\W*$/i)) {\n\t\t\t\t// HEX notation\n\t\t\t\t//\n\n\t\t\t\tif (m[1].length === 6) {\n\t\t\t\t\t// 6-char notation\n\t\t\t\t\tthis.fromRGB(\n\t\t\t\t\t\tparseInt(m[1].substr(0,2),16),\n\t\t\t\t\t\tparseInt(m[1].substr(2,2),16),\n\t\t\t\t\t\tparseInt(m[1].substr(4,2),16),\n\t\t\t\t\t\tflags\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\t// 3-char notation\n\t\t\t\t\tthis.fromRGB(\n\t\t\t\t\t\tparseInt(m[1].charAt(0) + m[1].charAt(0),16),\n\t\t\t\t\t\tparseInt(m[1].charAt(1) + m[1].charAt(1),16),\n\t\t\t\t\t\tparseInt(m[1].charAt(2) + m[1].charAt(2),16),\n\t\t\t\t\t\tflags\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\treturn true;\n\n\t\t\t} else if (m = str.match(/^\\W*rgba?\\(([^)]*)\\)\\W*$/i)) {\n\t\t\t\tvar params = m[1].split(',');\n\t\t\t\tvar re = /^\\s*(\\d*)(\\.\\d+)?\\s*$/;\n\t\t\t\tvar mR, mG, mB;\n\t\t\t\tif (\n\t\t\t\t\tparams.length >= 3 &&\n\t\t\t\t\t(mR = params[0].match(re)) &&\n\t\t\t\t\t(mG = params[1].match(re)) &&\n\t\t\t\t\t(mB = params[2].match(re))\n\t\t\t\t) {\n\t\t\t\t\tvar r = parseFloat((mR[1] || '0') + (mR[2] || ''));\n\t\t\t\t\tvar g = parseFloat((mG[1] || '0') + (mG[2] || ''));\n\t\t\t\t\tvar b = parseFloat((mB[1] || '0') + (mB[2] || ''));\n\t\t\t\t\tthis.fromRGB(r, g, b, flags);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\n\n\t\tthis.toString = function () {\n\t\t\treturn (\n\t\t\t\t(0x100 | Math.round(this.rgb[0])).toString(16).substr(1) +\n\t\t\t\t(0x100 | Math.round(this.rgb[1])).toString(16).substr(1) +\n\t\t\t\t(0x100 | Math.round(this.rgb[2])).toString(16).substr(1)\n\t\t\t);\n\t\t};\n\n\n\t\tthis.toHEXString = function () {\n\t\t\treturn '#' + this.toString().toUpperCase();\n\t\t};\n\n\n\t\tthis.toRGBString = function () {\n\t\t\treturn ('rgb(' +\n\t\t\t\tMath.round(this.rgb[0]) + ',' +\n\t\t\t\tMath.round(this.rgb[1]) + ',' +\n\t\t\t\tMath.round(this.rgb[2]) + ')'\n\t\t\t);\n\t\t};\n\n\n\t\tthis.isLight = function () {\n\t\t\treturn (\n\t\t\t\t0.213 * this.rgb[0] +\n\t\t\t\t0.715 * this.rgb[1] +\n\t\t\t\t0.072 * this.rgb[2] >\n\t\t\t\t255 / 2\n\t\t\t);\n\t\t};\n\n\n\t\tthis._processParentElementsInDOM = function () {\n\t\t\tif (this._linkedElementsProcessed) { return; }\n\t\t\tthis._linkedElementsProcessed = true;\n\n\t\t\tvar elm = this.targetElement;\n\t\t\tdo {\n\t\t\t\t// If the target element or one of its parent nodes has fixed position,\n\t\t\t\t// then use fixed positioning instead\n\t\t\t\t//\n\t\t\t\t// Note: In Firefox, getComputedStyle returns null in a hidden iframe,\n\t\t\t\t// that's why we need to check if the returned style object is non-empty\n\t\t\t\tvar currStyle = jsc.getStyle(elm);\n\t\t\t\tif (currStyle && currStyle.position.toLowerCase() === 'fixed') {\n\t\t\t\t\tthis.fixed = true;\n\t\t\t\t}\n\n\t\t\t\tif (elm !== this.targetElement) {\n\t\t\t\t\t// Ensure to attach onParentScroll only once to each parent element\n\t\t\t\t\t// (multiple targetElements can share the same parent nodes)\n\t\t\t\t\t//\n\t\t\t\t\t// Note: It's not just offsetParents that can be scrollable,\n\t\t\t\t\t// that's why we loop through all parent nodes\n\t\t\t\t\tif (!elm._jscEventsAttached) {\n\t\t\t\t\t\tjsc.attachEvent(elm, 'scroll', jsc.onParentScroll);\n\t\t\t\t\t\telm._jscEventsAttached = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while ((elm = elm.parentNode) && !jsc.isElementType(elm, 'body'));\n\t\t};\n\n\n\t\t// r: 0-255\n\t\t// g: 0-255\n\t\t// b: 0-255\n\t\t//\n\t\t// returns: [ 0-360, 0-100, 0-100 ]\n\t\t//\n\t\tfunction RGB_HSV (r, g, b) {\n\t\t\tr /= 255;\n\t\t\tg /= 255;\n\t\t\tb /= 255;\n\t\t\tvar n = Math.min(Math.min(r,g),b);\n\t\t\tvar v = Math.max(Math.max(r,g),b);\n\t\t\tvar m = v - n;\n\t\t\tif (m === 0) { return [ null, 0, 100 * v ]; }\n\t\t\tvar h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m);\n\t\t\treturn [\n\t\t\t\t60 * (h===6?0:h),\n\t\t\t\t100 * (m/v),\n\t\t\t\t100 * v\n\t\t\t];\n\t\t}\n\n\n\t\t// h: 0-360\n\t\t// s: 0-100\n\t\t// v: 0-100\n\t\t//\n\t\t// returns: [ 0-255, 0-255, 0-255 ]\n\t\t//\n\t\tfunction HSV_RGB (h, s, v) {\n\t\t\tvar u = 255 * (v / 100);\n\n\t\t\tif (h === null) {\n\t\t\t\treturn [ u, u, u ];\n\t\t\t}\n\n\t\t\th /= 60;\n\t\t\ts /= 100;\n\n\t\t\tvar i = Math.floor(h);\n\t\t\tvar f = i%2 ? h-i : 1-(h-i);\n\t\t\tvar m = u * (1 - s);\n\t\t\tvar n = u * (1 - s * f);\n\t\t\tswitch (i) {\n\t\t\t\tcase 6:\n\t\t\t\tcase 0: return [u,n,m];\n\t\t\t\tcase 1: return [n,u,m];\n\t\t\t\tcase 2: return [m,u,n];\n\t\t\t\tcase 3: return [m,n,u];\n\t\t\t\tcase 4: return [n,m,u];\n\t\t\t\tcase 5: return [u,m,n];\n\t\t\t}\n\t\t}\n\n\n\t\tfunction detachPicker () {\n\t\t\tjsc.unsetClass(THIS.targetElement, THIS.activeClass);\n\t\t\tjsc.picker.wrap.parentNode.removeChild(jsc.picker.wrap);\n\t\t\tdelete jsc.picker.owner;\n\t\t}\n\n\n\t\tfunction drawPicker () {\n\n\t\t\t// At this point, when drawing the picker, we know what the parent elements are\n\t\t\t// and we can do all related DOM operations, such as registering events on them\n\t\t\t// or checking their positioning\n\t\t\tTHIS._processParentElementsInDOM();\n\n\t\t\tif (!jsc.picker) {\n\t\t\t\tjsc.picker = {\n\t\t\t\t\towner: null,\n\t\t\t\t\twrap : document.createElement('div'),\n\t\t\t\t\tbox : document.createElement('div'),\n\t\t\t\t\tboxS : document.createElement('div'), // shadow area\n\t\t\t\t\tboxB : document.createElement('div'), // border\n\t\t\t\t\tpad : document.createElement('div'),\n\t\t\t\t\tpadB : document.createElement('div'), // border\n\t\t\t\t\tpadM : document.createElement('div'), // mouse/touch area\n\t\t\t\t\tpadPal : jsc.createPalette(),\n\t\t\t\t\tcross : document.createElement('div'),\n\t\t\t\t\tcrossBY : document.createElement('div'), // border Y\n\t\t\t\t\tcrossBX : document.createElement('div'), // border X\n\t\t\t\t\tcrossLY : document.createElement('div'), // line Y\n\t\t\t\t\tcrossLX : document.createElement('div'), // line X\n\t\t\t\t\tsld : document.createElement('div'),\n\t\t\t\t\tsldB : document.createElement('div'), // border\n\t\t\t\t\tsldM : document.createElement('div'), // mouse/touch area\n\t\t\t\t\tsldGrad : jsc.createSliderGradient(),\n\t\t\t\t\tsldPtrS : document.createElement('div'), // slider pointer spacer\n\t\t\t\t\tsldPtrIB : document.createElement('div'), // slider pointer inner border\n\t\t\t\t\tsldPtrMB : document.createElement('div'), // slider pointer middle border\n\t\t\t\t\tsldPtrOB : document.createElement('div'), // slider pointer outer border\n\t\t\t\t\tbtn : document.createElement('div'),\n\t\t\t\t\tbtnT : document.createElement('span') // text\n\t\t\t\t};\n\n\t\t\t\tjsc.picker.pad.appendChild(jsc.picker.padPal.elm);\n\t\t\t\tjsc.picker.padB.appendChild(jsc.picker.pad);\n\t\t\t\tjsc.picker.cross.appendChild(jsc.picker.crossBY);\n\t\t\t\tjsc.picker.cross.appendChild(jsc.picker.crossBX);\n\t\t\t\tjsc.picker.cross.appendChild(jsc.picker.crossLY);\n\t\t\t\tjsc.picker.cross.appendChild(jsc.picker.crossLX);\n\t\t\t\tjsc.picker.padB.appendChild(jsc.picker.cross);\n\t\t\t\tjsc.picker.box.appendChild(jsc.picker.padB);\n\t\t\t\tjsc.picker.box.appendChild(jsc.picker.padM);\n\n\t\t\t\tjsc.picker.sld.appendChild(jsc.picker.sldGrad.elm);\n\t\t\t\tjsc.picker.sldB.appendChild(jsc.picker.sld);\n\t\t\t\tjsc.picker.sldB.appendChild(jsc.picker.sldPtrOB);\n\t\t\t\tjsc.picker.sldPtrOB.appendChild(jsc.picker.sldPtrMB);\n\t\t\t\tjsc.picker.sldPtrMB.appendChild(jsc.picker.sldPtrIB);\n\t\t\t\tjsc.picker.sldPtrIB.appendChild(jsc.picker.sldPtrS);\n\t\t\t\tjsc.picker.box.appendChild(jsc.picker.sldB);\n\t\t\t\tjsc.picker.box.appendChild(jsc.picker.sldM);\n\n\t\t\t\tjsc.picker.btn.appendChild(jsc.picker.btnT);\n\t\t\t\tjsc.picker.box.appendChild(jsc.picker.btn);\n\n\t\t\t\tjsc.picker.boxB.appendChild(jsc.picker.box);\n\t\t\t\tjsc.picker.wrap.appendChild(jsc.picker.boxS);\n\t\t\t\tjsc.picker.wrap.appendChild(jsc.picker.boxB);\n\t\t\t}\n\n\t\t\tvar p = jsc.picker;\n\n\t\t\tvar displaySlider = !!jsc.getSliderComponent(THIS);\n\t\t\tvar dims = jsc.getPickerDims(THIS);\n\t\t\tvar crossOuterSize = (2 * THIS.pointerBorderWidth + THIS.pointerThickness + 2 * THIS.crossSize);\n\t\t\tvar padToSliderPadding = jsc.getPadToSliderPadding(THIS);\n\t\t\tvar borderRadius = Math.min(\n\t\t\t\tTHIS.borderRadius,\n\t\t\t\tMath.round(THIS.padding * Math.PI)); // px\n\t\t\tvar padCursor = 'crosshair';\n\n\t\t\t// wrap\n\t\t\tp.wrap.style.clear = 'both';\n\t\t\tp.wrap.style.width = (dims[0] + 2 * THIS.borderWidth) + 'px';\n\t\t\tp.wrap.style.height = (dims[1] + 2 * THIS.borderWidth) + 'px';\n\t\t\tp.wrap.style.zIndex = THIS.zIndex;\n\n\t\t\t// picker\n\t\t\tp.box.style.width = dims[0] + 'px';\n\t\t\tp.box.style.height = dims[1] + 'px';\n\n\t\t\tp.boxS.style.position = 'absolute';\n\t\t\tp.boxS.style.left = '0';\n\t\t\tp.boxS.style.top = '0';\n\t\t\tp.boxS.style.width = '100%';\n\t\t\tp.boxS.style.height = '100%';\n\t\t\tjsc.setBorderRadius(p.boxS, borderRadius + 'px');\n\n\t\t\t// picker border\n\t\t\tp.boxB.style.position = 'relative';\n\t\t\tp.boxB.style.border = THIS.borderWidth + 'px solid';\n\t\t\tp.boxB.style.borderColor = THIS.borderColor;\n\t\t\tp.boxB.style.background = THIS.backgroundColor;\n\t\t\tjsc.setBorderRadius(p.boxB, borderRadius + 'px');\n\n\t\t\t// IE hack:\n\t\t\t// If the element is transparent, IE will trigger the event on the elements under it,\n\t\t\t// e.g. on Canvas or on elements with border\n\t\t\tp.padM.style.background =\n\t\t\tp.sldM.style.background =\n\t\t\t\t'#FFF';\n\t\t\tjsc.setStyle(p.padM, 'opacity', '0');\n\t\t\tjsc.setStyle(p.sldM, 'opacity', '0');\n\n\t\t\t// pad\n\t\t\tp.pad.style.position = 'relative';\n\t\t\tp.pad.style.width = THIS.width + 'px';\n\t\t\tp.pad.style.height = THIS.height + 'px';\n\n\t\t\t// pad palettes (HSV and HVS)\n\t\t\tp.padPal.draw(THIS.width, THIS.height, jsc.getPadYComponent(THIS));\n\n\t\t\t// pad border\n\t\t\tp.padB.style.position = 'absolute';\n\t\t\tp.padB.style.left = THIS.padding + 'px';\n\t\t\tp.padB.style.top = THIS.padding + 'px';\n\t\t\tp.padB.style.border = THIS.insetWidth + 'px solid';\n\t\t\tp.padB.style.borderColor = THIS.insetColor;\n\n\t\t\t// pad mouse area\n\t\t\tp.padM._jscInstance = THIS;\n\t\t\tp.padM._jscControlName = 'pad';\n\t\t\tp.padM.style.position = 'absolute';\n\t\t\tp.padM.style.left = '0';\n\t\t\tp.padM.style.top = '0';\n\t\t\tp.padM.style.width = (THIS.padding + 2 * THIS.insetWidth + THIS.width + padToSliderPadding / 2) + 'px';\n\t\t\tp.padM.style.height = dims[1] + 'px';\n\t\t\tp.padM.style.cursor = padCursor;\n\n\t\t\t// pad cross\n\t\t\tp.cross.style.position = 'absolute';\n\t\t\tp.cross.style.left =\n\t\t\tp.cross.style.top =\n\t\t\t\t'0';\n\t\t\tp.cross.style.width =\n\t\t\tp.cross.style.height =\n\t\t\t\tcrossOuterSize + 'px';\n\n\t\t\t// pad cross border Y and X\n\t\t\tp.crossBY.style.position =\n\t\t\tp.crossBX.style.position =\n\t\t\t\t'absolute';\n\t\t\tp.crossBY.style.background =\n\t\t\tp.crossBX.style.background =\n\t\t\t\tTHIS.pointerBorderColor;\n\t\t\tp.crossBY.style.width =\n\t\t\tp.crossBX.style.height =\n\t\t\t\t(2 * THIS.pointerBorderWidth + THIS.pointerThickness) + 'px';\n\t\t\tp.crossBY.style.height =\n\t\t\tp.crossBX.style.width =\n\t\t\t\tcrossOuterSize + 'px';\n\t\t\tp.crossBY.style.left =\n\t\t\tp.crossBX.style.top =\n\t\t\t\t(Math.floor(crossOuterSize / 2) - Math.floor(THIS.pointerThickness / 2) - THIS.pointerBorderWidth) + 'px';\n\t\t\tp.crossBY.style.top =\n\t\t\tp.crossBX.style.left =\n\t\t\t\t'0';\n\n\t\t\t// pad cross line Y and X\n\t\t\tp.crossLY.style.position =\n\t\t\tp.crossLX.style.position =\n\t\t\t\t'absolute';\n\t\t\tp.crossLY.style.background =\n\t\t\tp.crossLX.style.background =\n\t\t\t\tTHIS.pointerColor;\n\t\t\tp.crossLY.style.height =\n\t\t\tp.crossLX.style.width =\n\t\t\t\t(crossOuterSize - 2 * THIS.pointerBorderWidth) + 'px';\n\t\t\tp.crossLY.style.width =\n\t\t\tp.crossLX.style.height =\n\t\t\t\tTHIS.pointerThickness + 'px';\n\t\t\tp.crossLY.style.left =\n\t\t\tp.crossLX.style.top =\n\t\t\t\t(Math.floor(crossOuterSize / 2) - Math.floor(THIS.pointerThickness / 2)) + 'px';\n\t\t\tp.crossLY.style.top =\n\t\t\tp.crossLX.style.left =\n\t\t\t\tTHIS.pointerBorderWidth + 'px';\n\n\t\t\t// slider\n\t\t\tp.sld.style.overflow = 'hidden';\n\t\t\tp.sld.style.width = THIS.sliderSize + 'px';\n\t\t\tp.sld.style.height = THIS.height + 'px';\n\n\t\t\t// slider gradient\n\t\t\tp.sldGrad.draw(THIS.sliderSize, THIS.height, '#000', '#000');\n\n\t\t\t// slider border\n\t\t\tp.sldB.style.display = displaySlider ? 'block' : 'none';\n\t\t\tp.sldB.style.position = 'absolute';\n\t\t\tp.sldB.style.right = THIS.padding + 'px';\n\t\t\tp.sldB.style.top = THIS.padding + 'px';\n\t\t\tp.sldB.style.border = THIS.insetWidth + 'px solid';\n\t\t\tp.sldB.style.borderColor = THIS.insetColor;\n\n\t\t\t// slider mouse area\n\t\t\tp.sldM._jscInstance = THIS;\n\t\t\tp.sldM._jscControlName = 'sld';\n\t\t\tp.sldM.style.display = displaySlider ? 'block' : 'none';\n\t\t\tp.sldM.style.position = 'absolute';\n\t\t\tp.sldM.style.right = '0';\n\t\t\tp.sldM.style.top = '0';\n\t\t\tp.sldM.style.width = (THIS.sliderSize + padToSliderPadding / 2 + THIS.padding + 2 * THIS.insetWidth) + 'px';\n\t\t\tp.sldM.style.height = dims[1] + 'px';\n\t\t\tp.sldM.style.cursor = 'default';\n\n\t\t\t// slider pointer inner and outer border\n\t\t\tp.sldPtrIB.style.border =\n\t\t\tp.sldPtrOB.style.border =\n\t\t\t\tTHIS.pointerBorderWidth + 'px solid ' + THIS.pointerBorderColor;\n\n\t\t\t// slider pointer outer border\n\t\t\tp.sldPtrOB.style.position = 'absolute';\n\t\t\tp.sldPtrOB.style.left = -(2 * THIS.pointerBorderWidth + THIS.pointerThickness) + 'px';\n\t\t\tp.sldPtrOB.style.top = '0';\n\n\t\t\t// slider pointer middle border\n\t\t\tp.sldPtrMB.style.border = THIS.pointerThickness + 'px solid ' + THIS.pointerColor;\n\n\t\t\t// slider pointer spacer\n\t\t\tp.sldPtrS.style.width = THIS.sliderSize + 'px';\n\t\t\tp.sldPtrS.style.height = sliderPtrSpace + 'px';\n\n\t\t\t// the Close button\n\t\t\tfunction setBtnBorder () {\n\t\t\t\tvar insetColors = THIS.insetColor.split(/\\s+/);\n\t\t\t\tvar outsetColor = insetColors.length < 2 ? insetColors[0] : insetColors[1] + ' ' + insetColors[0] + ' ' + insetColors[0] + ' ' + insetColors[1];\n\t\t\t\tp.btn.style.borderColor = outsetColor;\n\t\t\t}\n\t\t\tp.btn.style.display = THIS.closable ? 'block' : 'none';\n\t\t\tp.btn.style.position = 'absolute';\n\t\t\tp.btn.style.left = THIS.padding + 'px';\n\t\t\tp.btn.style.bottom = THIS.padding + 'px';\n\t\t\tp.btn.style.padding = '0 15px';\n\t\t\tp.btn.style.height = THIS.buttonHeight + 'px';\n\t\t\tp.btn.style.border = THIS.insetWidth + 'px solid';\n\t\t\tsetBtnBorder();\n\t\t\tp.btn.style.color = THIS.buttonColor;\n\t\t\tp.btn.style.font = '12px sans-serif';\n\t\t\tp.btn.style.textAlign = 'center';\n\t\t\ttry {\n\t\t\t\tp.btn.style.cursor = 'pointer';\n\t\t\t} catch(eOldIE) {\n\t\t\t\tp.btn.style.cursor = 'hand';\n\t\t\t}\n\t\t\tp.btn.onmousedown = function () {\n\t\t\t\tTHIS.hide();\n\t\t\t};\n\t\t\tp.btnT.style.lineHeight = THIS.buttonHeight + 'px';\n\t\t\tp.btnT.innerHTML = '';\n\t\t\tp.btnT.appendChild(document.createTextNode(THIS.closeText));\n\n\t\t\t// place pointers\n\t\t\tredrawPad();\n\t\t\tredrawSld();\n\n\t\t\t// If we are changing the owner without first closing the picker,\n\t\t\t// make sure to first deal with the old owner\n\t\t\tif (jsc.picker.owner && jsc.picker.owner !== THIS) {\n\t\t\t\tjsc.unsetClass(jsc.picker.owner.targetElement, THIS.activeClass);\n\t\t\t}\n\n\t\t\t// Set the new picker owner\n\t\t\tjsc.picker.owner = THIS;\n\n\t\t\t// The redrawPosition() method needs picker.owner to be set, that's why we call it here,\n\t\t\t// after setting the owner\n\t\t\tif (jsc.isElementType(container, 'body')) {\n\t\t\t\tjsc.redrawPosition();\n\t\t\t} else {\n\t\t\t\tjsc._drawPosition(THIS, 0, 0, 'relative', false);\n\t\t\t}\n\n\t\t\tif (p.wrap.parentNode != container) {\n\t\t\t\tcontainer.appendChild(p.wrap);\n\t\t\t}\n\n\t\t\tjsc.setClass(THIS.targetElement, THIS.activeClass);\n\t\t}\n\n\n\t\tfunction redrawPad () {\n\t\t\t// redraw the pad pointer\n\t\t\tswitch (jsc.getPadYComponent(THIS)) {\n\t\t\tcase 's': var yComponent = 1; break;\n\t\t\tcase 'v': var yComponent = 2; break;\n\t\t\t}\n\t\t\tvar x = Math.round((THIS.hsv[0] / 360) * (THIS.width - 1));\n\t\t\tvar y = Math.round((1 - THIS.hsv[yComponent] / 100) * (THIS.height - 1));\n\t\t\tvar crossOuterSize = (2 * THIS.pointerBorderWidth + THIS.pointerThickness + 2 * THIS.crossSize);\n\t\t\tvar ofs = -Math.floor(crossOuterSize / 2);\n\t\t\tjsc.picker.cross.style.left = (x + ofs) + 'px';\n\t\t\tjsc.picker.cross.style.top = (y + ofs) + 'px';\n\n\t\t\t// redraw the slider\n\t\t\tswitch (jsc.getSliderComponent(THIS)) {\n\t\t\tcase 's':\n\t\t\t\tvar rgb1 = HSV_RGB(THIS.hsv[0], 100, THIS.hsv[2]);\n\t\t\t\tvar rgb2 = HSV_RGB(THIS.hsv[0], 0, THIS.hsv[2]);\n\t\t\t\tvar color1 = 'rgb(' +\n\t\t\t\t\tMath.round(rgb1[0]) + ',' +\n\t\t\t\t\tMath.round(rgb1[1]) + ',' +\n\t\t\t\t\tMath.round(rgb1[2]) + ')';\n\t\t\t\tvar color2 = 'rgb(' +\n\t\t\t\t\tMath.round(rgb2[0]) + ',' +\n\t\t\t\t\tMath.round(rgb2[1]) + ',' +\n\t\t\t\t\tMath.round(rgb2[2]) + ')';\n\t\t\t\tjsc.picker.sldGrad.draw(THIS.sliderSize, THIS.height, color1, color2);\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tvar rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 100);\n\t\t\t\tvar color1 = 'rgb(' +\n\t\t\t\t\tMath.round(rgb[0]) + ',' +\n\t\t\t\t\tMath.round(rgb[1]) + ',' +\n\t\t\t\t\tMath.round(rgb[2]) + ')';\n\t\t\t\tvar color2 = '#000';\n\t\t\t\tjsc.picker.sldGrad.draw(THIS.sliderSize, THIS.height, color1, color2);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t\tfunction redrawSld () {\n\t\t\tvar sldComponent = jsc.getSliderComponent(THIS);\n\t\t\tif (sldComponent) {\n\t\t\t\t// redraw the slider pointer\n\t\t\t\tswitch (sldComponent) {\n\t\t\t\tcase 's': var yComponent = 1; break;\n\t\t\t\tcase 'v': var yComponent = 2; break;\n\t\t\t\t}\n\t\t\t\tvar y = Math.round((1 - THIS.hsv[yComponent] / 100) * (THIS.height - 1));\n\t\t\t\tjsc.picker.sldPtrOB.style.top = (y - (2 * THIS.pointerBorderWidth + THIS.pointerThickness) - Math.floor(sliderPtrSpace / 2)) + 'px';\n\t\t\t}\n\t\t}\n\n\n\t\tfunction isPickerOwner () {\n\t\t\treturn jsc.picker && jsc.picker.owner === THIS;\n\t\t}\n\n\n\t\tfunction blurValue () {\n\t\t\tTHIS.importColor();\n\t\t}\n\n\n\t\t// Find the target element\n\t\tif (typeof targetElement === 'string') {\n\t\t\tvar id = targetElement;\n\t\t\tvar elm = document.getElementById(id);\n\t\t\tif (elm) {\n\t\t\t\tthis.targetElement = elm;\n\t\t\t} else {\n\t\t\t\tjsc.warn('Could not find target element with ID \\'' + id + '\\'');\n\t\t\t}\n\t\t} else if (targetElement) {\n\t\t\tthis.targetElement = targetElement;\n\t\t} else {\n\t\t\tjsc.warn('Invalid target element: \\'' + targetElement + '\\'');\n\t\t}\n\n\t\tif (this.targetElement._jscLinkedInstance) {\n\t\t\tjsc.warn('Cannot link jscolor twice to the same element. Skipping.');\n\t\t\treturn;\n\t\t}\n\t\tthis.targetElement._jscLinkedInstance = this;\n\n\t\t// Find the value element\n\t\tthis.valueElement = jsc.fetchElement(this.valueElement);\n\t\t// Find the style element\n\t\tthis.styleElement = jsc.fetchElement(this.styleElement);\n\n\t\tvar THIS = this;\n\t\tvar container =\n\t\t\tthis.container ?\n\t\t\tjsc.fetchElement(this.container) :\n\t\t\tdocument.getElementsByTagName('body')[0];\n\t\tvar sliderPtrSpace = 3; // px\n\n\t\t// For BUTTON elements it's important to stop them from sending the form when clicked\n\t\t// (e.g. in Safari)\n\t\tif (jsc.isElementType(this.targetElement, 'button')) {\n\t\t\tif (this.targetElement.onclick) {\n\t\t\t\tvar origCallback = this.targetElement.onclick;\n\t\t\t\tthis.targetElement.onclick = function (evt) {\n\t\t\t\t\torigCallback.call(this, evt);\n\t\t\t\t\treturn false;\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tthis.targetElement.onclick = function () { return false; };\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\tvar elm = this.targetElement;\n\t\tdo {\n\t\t\t// If the target element or one of its offsetParents has fixed position,\n\t\t\t// then use fixed positioning instead\n\t\t\t//\n\t\t\t// Note: In Firefox, getComputedStyle returns null in a hidden iframe,\n\t\t\t// that's why we need to check if the returned style object is non-empty\n\t\t\tvar currStyle = jsc.getStyle(elm);\n\t\t\tif (currStyle && currStyle.position.toLowerCase() === 'fixed') {\n\t\t\t\tthis.fixed = true;\n\t\t\t}\n\n\t\t\tif (elm !== this.targetElement) {\n\t\t\t\t// attach onParentScroll so that we can recompute the picker position\n\t\t\t\t// when one of the offsetParents is scrolled\n\t\t\t\tif (!elm._jscEventsAttached) {\n\t\t\t\t\tjsc.attachEvent(elm, 'scroll', jsc.onParentScroll);\n\t\t\t\t\telm._jscEventsAttached = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} while ((elm = elm.offsetParent) && !jsc.isElementType(elm, 'body'));\n\t\t*/\n\n\t\t// valueElement\n\t\tif (this.valueElement) {\n\t\t\tif (jsc.isElementType(this.valueElement, 'input')) {\n\t\t\t\tvar updateField = function () {\n\t\t\t\t\tTHIS.fromString(THIS.valueElement.value, jsc.leaveValue);\n\t\t\t\t\tjsc.dispatchFineChange(THIS);\n\t\t\t\t};\n\t\t\t\tjsc.attachEvent(this.valueElement, 'keyup', updateField);\n\t\t\t\tjsc.attachEvent(this.valueElement, 'input', updateField);\n\t\t\t\tjsc.attachEvent(this.valueElement, 'blur', blurValue);\n\t\t\t\tthis.valueElement.setAttribute('autocomplete', 'off');\n\t\t\t}\n\t\t}\n\n\t\t// styleElement\n\t\tif (this.styleElement) {\n\t\t\tthis.styleElement._jscOrigStyle = {\n\t\t\t\tbackgroundImage : this.styleElement.style.backgroundImage,\n\t\t\t\tbackgroundColor : this.styleElement.style.backgroundColor,\n\t\t\t\tcolor : this.styleElement.style.color\n\t\t\t};\n\t\t}\n\n\t\tif (this.value) {\n\t\t\t// Try to set the color from the .value option and if unsuccessful,\n\t\t\t// export the current color\n\t\t\tthis.fromString(this.value) || this.exportColor();\n\t\t} else {\n\t\t\tthis.importColor();\n\t\t}\n\t}\n\n};\n\n\n//================================\n// Public properties and methods\n//================================\n\n\n// By default, search for all elements with class=\"jscolor\" and install a color picker on them.\n//\n// You can change what class name will be looked for by setting the property jscolor.lookupClass\n// anywhere in your HTML document. To completely disable the automatic lookup, set it to null.\n//\njsc.jscolor.lookupClass = 'jscolor';\n\n\njsc.jscolor.installByClassName = function (className) {\n\tvar inputElms = document.getElementsByTagName('input');\n\tvar buttonElms = document.getElementsByTagName('button');\n\n\tjsc.tryInstallOnElements(inputElms, className);\n\tjsc.tryInstallOnElements(buttonElms, className);\n};\n\n\njsc.register();\n\n\nreturn jsc.jscolor;\n\n\n})(); }\n"
  },
  {
    "path": "tool/date_picker/css/bootstrap-datepicker.css",
    "content": "/*!\n * Datepicker for Bootstrap v1.6.4 (https://github.com/eternicode/bootstrap-datepicker)\n *\n * Copyright 2012 Stefan Petre\n * Improvements by Andrew Rowls\n * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n */\n.datepicker {\n  padding: 4px;\n  -webkit-border-radius: 4px;\n  -moz-border-radius: 4px;\n  border-radius: 4px;\n  direction: ltr;\n}\n.datepicker-inline {\n  width: 220px;\n}\n.datepicker.datepicker-rtl {\n  direction: rtl;\n}\n.datepicker.datepicker-rtl table tr td span {\n  float: right;\n}\n.datepicker-dropdown {\n  top: 0;\n  left: 0;\n}\n.datepicker-dropdown:before {\n  content: '';\n  display: inline-block;\n  border-left: 7px solid transparent;\n  border-right: 7px solid transparent;\n  border-bottom: 7px solid #999;\n  border-top: 0;\n  border-bottom-color: rgba(0, 0, 0, 0.2);\n  position: absolute;\n}\n.datepicker-dropdown:after {\n  content: '';\n  display: inline-block;\n  border-left: 6px solid transparent;\n  border-right: 6px solid transparent;\n  border-bottom: 6px solid #fff;\n  border-top: 0;\n  position: absolute;\n}\n.datepicker-dropdown.datepicker-orient-left:before {\n  left: 6px;\n}\n.datepicker-dropdown.datepicker-orient-left:after {\n  left: 7px;\n}\n.datepicker-dropdown.datepicker-orient-right:before {\n  right: 6px;\n}\n.datepicker-dropdown.datepicker-orient-right:after {\n  right: 7px;\n}\n.datepicker-dropdown.datepicker-orient-bottom:before {\n  top: -7px;\n}\n.datepicker-dropdown.datepicker-orient-bottom:after {\n  top: -6px;\n}\n.datepicker-dropdown.datepicker-orient-top:before {\n  bottom: -7px;\n  border-bottom: 0;\n  border-top: 7px solid #999;\n}\n.datepicker-dropdown.datepicker-orient-top:after {\n  bottom: -6px;\n  border-bottom: 0;\n  border-top: 6px solid #fff;\n}\n.datepicker table {\n  margin: 0;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.datepicker td,\n.datepicker th {\n  text-align: center;\n  width: 20px;\n  height: 20px;\n  -webkit-border-radius: 4px;\n  -moz-border-radius: 4px;\n  border-radius: 4px;\n  border: none;\n}\n.table-striped .datepicker table tr td,\n.table-striped .datepicker table tr th {\n  background-color: transparent;\n}\n.datepicker table tr td.day:hover,\n.datepicker table tr td.day.focused {\n  background: #eee;\n  cursor: pointer;\n}\n.datepicker table tr td.old,\n.datepicker table tr td.new {\n  color: #999;\n}\n.datepicker table tr td.disabled,\n.datepicker table tr td.disabled:hover {\n  background: none;\n  color: #999;\n  cursor: default;\n}\n.datepicker table tr td.highlighted {\n  background: #d9edf7;\n  border-radius: 0;\n}\n.datepicker table tr td.today,\n.datepicker table tr td.today:hover,\n.datepicker table tr td.today.disabled,\n.datepicker table tr td.today.disabled:hover {\n  background-color: #fde19a;\n  background-image: -moz-linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-image: -ms-linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));\n  background-image: -webkit-linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-image: -o-linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-image: linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);\n  border-color: #fdf59a #fdf59a #fbed50;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  color: #000;\n}\n.datepicker table tr td.today:hover,\n.datepicker table tr td.today:hover:hover,\n.datepicker table tr td.today.disabled:hover,\n.datepicker table tr td.today.disabled:hover:hover,\n.datepicker table tr td.today:active,\n.datepicker table tr td.today:hover:active,\n.datepicker table tr td.today.disabled:active,\n.datepicker table tr td.today.disabled:hover:active,\n.datepicker table tr td.today.active,\n.datepicker table tr td.today:hover.active,\n.datepicker table tr td.today.disabled.active,\n.datepicker table tr td.today.disabled:hover.active,\n.datepicker table tr td.today.disabled,\n.datepicker table tr td.today:hover.disabled,\n.datepicker table tr td.today.disabled.disabled,\n.datepicker table tr td.today.disabled:hover.disabled,\n.datepicker table tr td.today[disabled],\n.datepicker table tr td.today:hover[disabled],\n.datepicker table tr td.today.disabled[disabled],\n.datepicker table tr td.today.disabled:hover[disabled] {\n  background-color: #fdf59a;\n}\n.datepicker table tr td.today:active,\n.datepicker table tr td.today:hover:active,\n.datepicker table tr td.today.disabled:active,\n.datepicker table tr td.today.disabled:hover:active,\n.datepicker table tr td.today.active,\n.datepicker table tr td.today:hover.active,\n.datepicker table tr td.today.disabled.active,\n.datepicker table tr td.today.disabled:hover.active {\n  background-color: #fbf069 \\9;\n}\n.datepicker table tr td.today:hover:hover {\n  color: #000;\n}\n.datepicker table tr td.today.active:hover {\n  color: #fff;\n}\n.datepicker table tr td.range,\n.datepicker table tr td.range:hover,\n.datepicker table tr td.range.disabled,\n.datepicker table tr td.range.disabled:hover {\n  background: #eee;\n  -webkit-border-radius: 0;\n  -moz-border-radius: 0;\n  border-radius: 0;\n}\n.datepicker table tr td.range.today,\n.datepicker table tr td.range.today:hover,\n.datepicker table tr td.range.today.disabled,\n.datepicker table tr td.range.today.disabled:hover {\n  background-color: #f3d17a;\n  background-image: -moz-linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-image: -ms-linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));\n  background-image: -webkit-linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-image: -o-linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-image: linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);\n  border-color: #f3e97a #f3e97a #edde34;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  -webkit-border-radius: 0;\n  -moz-border-radius: 0;\n  border-radius: 0;\n}\n.datepicker table tr td.range.today:hover,\n.datepicker table tr td.range.today:hover:hover,\n.datepicker table tr td.range.today.disabled:hover,\n.datepicker table tr td.range.today.disabled:hover:hover,\n.datepicker table tr td.range.today:active,\n.datepicker table tr td.range.today:hover:active,\n.datepicker table tr td.range.today.disabled:active,\n.datepicker table tr td.range.today.disabled:hover:active,\n.datepicker table tr td.range.today.active,\n.datepicker table tr td.range.today:hover.active,\n.datepicker table tr td.range.today.disabled.active,\n.datepicker table tr td.range.today.disabled:hover.active,\n.datepicker table tr td.range.today.disabled,\n.datepicker table tr td.range.today:hover.disabled,\n.datepicker table tr td.range.today.disabled.disabled,\n.datepicker table tr td.range.today.disabled:hover.disabled,\n.datepicker table tr td.range.today[disabled],\n.datepicker table tr td.range.today:hover[disabled],\n.datepicker table tr td.range.today.disabled[disabled],\n.datepicker table tr td.range.today.disabled:hover[disabled] {\n  background-color: #f3e97a;\n}\n.datepicker table tr td.range.today:active,\n.datepicker table tr td.range.today:hover:active,\n.datepicker table tr td.range.today.disabled:active,\n.datepicker table tr td.range.today.disabled:hover:active,\n.datepicker table tr td.range.today.active,\n.datepicker table tr td.range.today:hover.active,\n.datepicker table tr td.range.today.disabled.active,\n.datepicker table tr td.range.today.disabled:hover.active {\n  background-color: #efe24b \\9;\n}\n.datepicker table tr td.selected,\n.datepicker table tr td.selected:hover,\n.datepicker table tr td.selected.disabled,\n.datepicker table tr td.selected.disabled:hover {\n  background-color: #9e9e9e;\n  background-image: -moz-linear-gradient(to bottom, #b3b3b3, #808080);\n  background-image: -ms-linear-gradient(to bottom, #b3b3b3, #808080);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));\n  background-image: -webkit-linear-gradient(to bottom, #b3b3b3, #808080);\n  background-image: -o-linear-gradient(to bottom, #b3b3b3, #808080);\n  background-image: linear-gradient(to bottom, #b3b3b3, #808080);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);\n  border-color: #808080 #808080 #595959;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  color: #fff;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td.selected:hover,\n.datepicker table tr td.selected:hover:hover,\n.datepicker table tr td.selected.disabled:hover,\n.datepicker table tr td.selected.disabled:hover:hover,\n.datepicker table tr td.selected:active,\n.datepicker table tr td.selected:hover:active,\n.datepicker table tr td.selected.disabled:active,\n.datepicker table tr td.selected.disabled:hover:active,\n.datepicker table tr td.selected.active,\n.datepicker table tr td.selected:hover.active,\n.datepicker table tr td.selected.disabled.active,\n.datepicker table tr td.selected.disabled:hover.active,\n.datepicker table tr td.selected.disabled,\n.datepicker table tr td.selected:hover.disabled,\n.datepicker table tr td.selected.disabled.disabled,\n.datepicker table tr td.selected.disabled:hover.disabled,\n.datepicker table tr td.selected[disabled],\n.datepicker table tr td.selected:hover[disabled],\n.datepicker table tr td.selected.disabled[disabled],\n.datepicker table tr td.selected.disabled:hover[disabled] {\n  background-color: #808080;\n}\n.datepicker table tr td.selected:active,\n.datepicker table tr td.selected:hover:active,\n.datepicker table tr td.selected.disabled:active,\n.datepicker table tr td.selected.disabled:hover:active,\n.datepicker table tr td.selected.active,\n.datepicker table tr td.selected:hover.active,\n.datepicker table tr td.selected.disabled.active,\n.datepicker table tr td.selected.disabled:hover.active {\n  background-color: #666666 \\9;\n}\n.datepicker table tr td.active,\n.datepicker table tr td.active:hover,\n.datepicker table tr td.active.disabled,\n.datepicker table tr td.active.disabled:hover {\n  background-color: #006dcc;\n  background-image: -moz-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -ms-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#0044cc));\n  background-image: -webkit-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -o-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: linear-gradient(to bottom, #08c, #0044cc);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#08c', endColorstr='#0044cc', GradientType=0);\n  border-color: #0044cc #0044cc #002a80;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  color: #fff;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td.active:hover,\n.datepicker table tr td.active:hover:hover,\n.datepicker table tr td.active.disabled:hover,\n.datepicker table tr td.active.disabled:hover:hover,\n.datepicker table tr td.active:active,\n.datepicker table tr td.active:hover:active,\n.datepicker table tr td.active.disabled:active,\n.datepicker table tr td.active.disabled:hover:active,\n.datepicker table tr td.active.active,\n.datepicker table tr td.active:hover.active,\n.datepicker table tr td.active.disabled.active,\n.datepicker table tr td.active.disabled:hover.active,\n.datepicker table tr td.active.disabled,\n.datepicker table tr td.active:hover.disabled,\n.datepicker table tr td.active.disabled.disabled,\n.datepicker table tr td.active.disabled:hover.disabled,\n.datepicker table tr td.active[disabled],\n.datepicker table tr td.active:hover[disabled],\n.datepicker table tr td.active.disabled[disabled],\n.datepicker table tr td.active.disabled:hover[disabled] {\n  background-color: #0044cc;\n}\n.datepicker table tr td.active:active,\n.datepicker table tr td.active:hover:active,\n.datepicker table tr td.active.disabled:active,\n.datepicker table tr td.active.disabled:hover:active,\n.datepicker table tr td.active.active,\n.datepicker table tr td.active:hover.active,\n.datepicker table tr td.active.disabled.active,\n.datepicker table tr td.active.disabled:hover.active {\n  background-color: #003399 \\9;\n}\n.datepicker table tr td span {\n  display: block;\n  width: 23%;\n  height: 54px;\n  line-height: 54px;\n  float: left;\n  margin: 1%;\n  cursor: pointer;\n  -webkit-border-radius: 4px;\n  -moz-border-radius: 4px;\n  border-radius: 4px;\n}\n.datepicker table tr td span:hover,\n.datepicker table tr td span.focused {\n  background: #eee;\n}\n.datepicker table tr td span.disabled,\n.datepicker table tr td span.disabled:hover {\n  background: none;\n  color: #999;\n  cursor: default;\n}\n.datepicker table tr td span.active,\n.datepicker table tr td span.active:hover,\n.datepicker table tr td span.active.disabled,\n.datepicker table tr td span.active.disabled:hover {\n  background-color: #006dcc;\n  background-image: -moz-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -ms-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#0044cc));\n  background-image: -webkit-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -o-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: linear-gradient(to bottom, #08c, #0044cc);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#08c', endColorstr='#0044cc', GradientType=0);\n  border-color: #0044cc #0044cc #002a80;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  color: #fff;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td span.active:hover,\n.datepicker table tr td span.active:hover:hover,\n.datepicker table tr td span.active.disabled:hover,\n.datepicker table tr td span.active.disabled:hover:hover,\n.datepicker table tr td span.active:active,\n.datepicker table tr td span.active:hover:active,\n.datepicker table tr td span.active.disabled:active,\n.datepicker table tr td span.active.disabled:hover:active,\n.datepicker table tr td span.active.active,\n.datepicker table tr td span.active:hover.active,\n.datepicker table tr td span.active.disabled.active,\n.datepicker table tr td span.active.disabled:hover.active,\n.datepicker table tr td span.active.disabled,\n.datepicker table tr td span.active:hover.disabled,\n.datepicker table tr td span.active.disabled.disabled,\n.datepicker table tr td span.active.disabled:hover.disabled,\n.datepicker table tr td span.active[disabled],\n.datepicker table tr td span.active:hover[disabled],\n.datepicker table tr td span.active.disabled[disabled],\n.datepicker table tr td span.active.disabled:hover[disabled] {\n  background-color: #0044cc;\n}\n.datepicker table tr td span.active:active,\n.datepicker table tr td span.active:hover:active,\n.datepicker table tr td span.active.disabled:active,\n.datepicker table tr td span.active.disabled:hover:active,\n.datepicker table tr td span.active.active,\n.datepicker table tr td span.active:hover.active,\n.datepicker table tr td span.active.disabled.active,\n.datepicker table tr td span.active.disabled:hover.active {\n  background-color: #003399 \\9;\n}\n.datepicker table tr td span.old,\n.datepicker table tr td span.new {\n  color: #999;\n}\n.datepicker .datepicker-switch {\n  width: 145px;\n}\n.datepicker .datepicker-switch,\n.datepicker .prev,\n.datepicker .next,\n.datepicker tfoot tr th {\n  cursor: pointer;\n}\n.datepicker .datepicker-switch:hover,\n.datepicker .prev:hover,\n.datepicker .next:hover,\n.datepicker tfoot tr th:hover {\n  background: #eee;\n}\n.datepicker .cw {\n  font-size: 10px;\n  width: 12px;\n  padding: 0 2px 0 5px;\n  vertical-align: middle;\n}\n.input-append.date .add-on,\n.input-prepend.date .add-on {\n  cursor: pointer;\n}\n.input-append.date .add-on i,\n.input-prepend.date .add-on i {\n  margin-top: 3px;\n}\n.input-daterange input {\n  text-align: center;\n}\n.input-daterange input:first-child {\n  -webkit-border-radius: 3px 0 0 3px;\n  -moz-border-radius: 3px 0 0 3px;\n  border-radius: 3px 0 0 3px;\n}\n.input-daterange input:last-child {\n  -webkit-border-radius: 0 3px 3px 0;\n  -moz-border-radius: 0 3px 3px 0;\n  border-radius: 0 3px 3px 0;\n}\n.input-daterange .add-on {\n  display: inline-block;\n  width: auto;\n  min-width: 16px;\n  height: 18px;\n  padding: 4px 5px;\n  font-weight: normal;\n  line-height: 18px;\n  text-align: center;\n  text-shadow: 0 1px 0 #fff;\n  vertical-align: middle;\n  background-color: #eee;\n  border: 1px solid #ccc;\n  margin-left: -5px;\n  margin-right: -5px;\n}\n/*# sourceMappingURL=bootstrap-datepicker.css.map */"
  },
  {
    "path": "tool/date_picker/css/bootstrap-datepicker.standalone.css",
    "content": "/*!\n * Datepicker for Bootstrap v1.6.4 (https://github.com/eternicode/bootstrap-datepicker)\n *\n * Copyright 2012 Stefan Petre\n * Improvements by Andrew Rowls\n * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n */\n.datepicker {\n  padding: 4px;\n  -webkit-border-radius: 4px;\n  -moz-border-radius: 4px;\n  border-radius: 4px;\n  direction: ltr;\n}\n.datepicker-inline {\n  width: 220px;\n}\n.datepicker.datepicker-rtl {\n  direction: rtl;\n}\n.datepicker.datepicker-rtl table tr td span {\n  float: right;\n}\n.datepicker-dropdown {\n  top: 0;\n  left: 0;\n}\n.datepicker-dropdown:before {\n  content: '';\n  display: inline-block;\n  border-left: 7px solid transparent;\n  border-right: 7px solid transparent;\n  border-bottom: 7px solid #999;\n  border-top: 0;\n  border-bottom-color: rgba(0, 0, 0, 0.2);\n  position: absolute;\n}\n.datepicker-dropdown:after {\n  content: '';\n  display: inline-block;\n  border-left: 6px solid transparent;\n  border-right: 6px solid transparent;\n  border-bottom: 6px solid #fff;\n  border-top: 0;\n  position: absolute;\n}\n.datepicker-dropdown.datepicker-orient-left:before {\n  left: 6px;\n}\n.datepicker-dropdown.datepicker-orient-left:after {\n  left: 7px;\n}\n.datepicker-dropdown.datepicker-orient-right:before {\n  right: 6px;\n}\n.datepicker-dropdown.datepicker-orient-right:after {\n  right: 7px;\n}\n.datepicker-dropdown.datepicker-orient-bottom:before {\n  top: -7px;\n}\n.datepicker-dropdown.datepicker-orient-bottom:after {\n  top: -6px;\n}\n.datepicker-dropdown.datepicker-orient-top:before {\n  bottom: -7px;\n  border-bottom: 0;\n  border-top: 7px solid #999;\n}\n.datepicker-dropdown.datepicker-orient-top:after {\n  bottom: -6px;\n  border-bottom: 0;\n  border-top: 6px solid #fff;\n}\n.datepicker table {\n  margin: 0;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.datepicker td,\n.datepicker th {\n  text-align: center;\n  width: 20px;\n  height: 20px;\n  -webkit-border-radius: 4px;\n  -moz-border-radius: 4px;\n  border-radius: 4px;\n  border: none;\n}\n.table-striped .datepicker table tr td,\n.table-striped .datepicker table tr th {\n  background-color: transparent;\n}\n.datepicker table tr td.day:hover,\n.datepicker table tr td.day.focused {\n  background: #eee;\n  cursor: pointer;\n}\n.datepicker table tr td.old,\n.datepicker table tr td.new {\n  color: #999;\n}\n.datepicker table tr td.disabled,\n.datepicker table tr td.disabled:hover {\n  background: none;\n  color: #999;\n  cursor: default;\n}\n.datepicker table tr td.highlighted {\n  background: #d9edf7;\n  border-radius: 0;\n}\n.datepicker table tr td.today,\n.datepicker table tr td.today:hover,\n.datepicker table tr td.today.disabled,\n.datepicker table tr td.today.disabled:hover {\n  background-color: #fde19a;\n  background-image: -moz-linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-image: -ms-linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));\n  background-image: -webkit-linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-image: -o-linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-image: linear-gradient(to bottom, #fdd49a, #fdf59a);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);\n  border-color: #fdf59a #fdf59a #fbed50;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  color: #000;\n}\n.datepicker table tr td.today:hover,\n.datepicker table tr td.today:hover:hover,\n.datepicker table tr td.today.disabled:hover,\n.datepicker table tr td.today.disabled:hover:hover,\n.datepicker table tr td.today:active,\n.datepicker table tr td.today:hover:active,\n.datepicker table tr td.today.disabled:active,\n.datepicker table tr td.today.disabled:hover:active,\n.datepicker table tr td.today.active,\n.datepicker table tr td.today:hover.active,\n.datepicker table tr td.today.disabled.active,\n.datepicker table tr td.today.disabled:hover.active,\n.datepicker table tr td.today.disabled,\n.datepicker table tr td.today:hover.disabled,\n.datepicker table tr td.today.disabled.disabled,\n.datepicker table tr td.today.disabled:hover.disabled,\n.datepicker table tr td.today[disabled],\n.datepicker table tr td.today:hover[disabled],\n.datepicker table tr td.today.disabled[disabled],\n.datepicker table tr td.today.disabled:hover[disabled] {\n  background-color: #fdf59a;\n}\n.datepicker table tr td.today:active,\n.datepicker table tr td.today:hover:active,\n.datepicker table tr td.today.disabled:active,\n.datepicker table tr td.today.disabled:hover:active,\n.datepicker table tr td.today.active,\n.datepicker table tr td.today:hover.active,\n.datepicker table tr td.today.disabled.active,\n.datepicker table tr td.today.disabled:hover.active {\n  background-color: #fbf069 \\9;\n}\n.datepicker table tr td.today:hover:hover {\n  color: #000;\n}\n.datepicker table tr td.today.active:hover {\n  color: #fff;\n}\n.datepicker table tr td.range,\n.datepicker table tr td.range:hover,\n.datepicker table tr td.range.disabled,\n.datepicker table tr td.range.disabled:hover {\n  background: #eee;\n  -webkit-border-radius: 0;\n  -moz-border-radius: 0;\n  border-radius: 0;\n}\n.datepicker table tr td.range.today,\n.datepicker table tr td.range.today:hover,\n.datepicker table tr td.range.today.disabled,\n.datepicker table tr td.range.today.disabled:hover {\n  background-color: #f3d17a;\n  background-image: -moz-linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-image: -ms-linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));\n  background-image: -webkit-linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-image: -o-linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-image: linear-gradient(to bottom, #f3c17a, #f3e97a);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);\n  border-color: #f3e97a #f3e97a #edde34;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  -webkit-border-radius: 0;\n  -moz-border-radius: 0;\n  border-radius: 0;\n}\n.datepicker table tr td.range.today:hover,\n.datepicker table tr td.range.today:hover:hover,\n.datepicker table tr td.range.today.disabled:hover,\n.datepicker table tr td.range.today.disabled:hover:hover,\n.datepicker table tr td.range.today:active,\n.datepicker table tr td.range.today:hover:active,\n.datepicker table tr td.range.today.disabled:active,\n.datepicker table tr td.range.today.disabled:hover:active,\n.datepicker table tr td.range.today.active,\n.datepicker table tr td.range.today:hover.active,\n.datepicker table tr td.range.today.disabled.active,\n.datepicker table tr td.range.today.disabled:hover.active,\n.datepicker table tr td.range.today.disabled,\n.datepicker table tr td.range.today:hover.disabled,\n.datepicker table tr td.range.today.disabled.disabled,\n.datepicker table tr td.range.today.disabled:hover.disabled,\n.datepicker table tr td.range.today[disabled],\n.datepicker table tr td.range.today:hover[disabled],\n.datepicker table tr td.range.today.disabled[disabled],\n.datepicker table tr td.range.today.disabled:hover[disabled] {\n  background-color: #f3e97a;\n}\n.datepicker table tr td.range.today:active,\n.datepicker table tr td.range.today:hover:active,\n.datepicker table tr td.range.today.disabled:active,\n.datepicker table tr td.range.today.disabled:hover:active,\n.datepicker table tr td.range.today.active,\n.datepicker table tr td.range.today:hover.active,\n.datepicker table tr td.range.today.disabled.active,\n.datepicker table tr td.range.today.disabled:hover.active {\n  background-color: #efe24b \\9;\n}\n.datepicker table tr td.selected,\n.datepicker table tr td.selected:hover,\n.datepicker table tr td.selected.disabled,\n.datepicker table tr td.selected.disabled:hover {\n  background-color: #9e9e9e;\n  background-image: -moz-linear-gradient(to bottom, #b3b3b3, #808080);\n  background-image: -ms-linear-gradient(to bottom, #b3b3b3, #808080);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));\n  background-image: -webkit-linear-gradient(to bottom, #b3b3b3, #808080);\n  background-image: -o-linear-gradient(to bottom, #b3b3b3, #808080);\n  background-image: linear-gradient(to bottom, #b3b3b3, #808080);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);\n  border-color: #808080 #808080 #595959;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  color: #fff;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td.selected:hover,\n.datepicker table tr td.selected:hover:hover,\n.datepicker table tr td.selected.disabled:hover,\n.datepicker table tr td.selected.disabled:hover:hover,\n.datepicker table tr td.selected:active,\n.datepicker table tr td.selected:hover:active,\n.datepicker table tr td.selected.disabled:active,\n.datepicker table tr td.selected.disabled:hover:active,\n.datepicker table tr td.selected.active,\n.datepicker table tr td.selected:hover.active,\n.datepicker table tr td.selected.disabled.active,\n.datepicker table tr td.selected.disabled:hover.active,\n.datepicker table tr td.selected.disabled,\n.datepicker table tr td.selected:hover.disabled,\n.datepicker table tr td.selected.disabled.disabled,\n.datepicker table tr td.selected.disabled:hover.disabled,\n.datepicker table tr td.selected[disabled],\n.datepicker table tr td.selected:hover[disabled],\n.datepicker table tr td.selected.disabled[disabled],\n.datepicker table tr td.selected.disabled:hover[disabled] {\n  background-color: #808080;\n}\n.datepicker table tr td.selected:active,\n.datepicker table tr td.selected:hover:active,\n.datepicker table tr td.selected.disabled:active,\n.datepicker table tr td.selected.disabled:hover:active,\n.datepicker table tr td.selected.active,\n.datepicker table tr td.selected:hover.active,\n.datepicker table tr td.selected.disabled.active,\n.datepicker table tr td.selected.disabled:hover.active {\n  background-color: #666666 \\9;\n}\n.datepicker table tr td.active,\n.datepicker table tr td.active:hover,\n.datepicker table tr td.active.disabled,\n.datepicker table tr td.active.disabled:hover {\n  background-color: #006dcc;\n  background-image: -moz-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -ms-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#0044cc));\n  background-image: -webkit-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -o-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: linear-gradient(to bottom, #08c, #0044cc);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#08c', endColorstr='#0044cc', GradientType=0);\n  border-color: #0044cc #0044cc #002a80;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  color: #fff;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td.active:hover,\n.datepicker table tr td.active:hover:hover,\n.datepicker table tr td.active.disabled:hover,\n.datepicker table tr td.active.disabled:hover:hover,\n.datepicker table tr td.active:active,\n.datepicker table tr td.active:hover:active,\n.datepicker table tr td.active.disabled:active,\n.datepicker table tr td.active.disabled:hover:active,\n.datepicker table tr td.active.active,\n.datepicker table tr td.active:hover.active,\n.datepicker table tr td.active.disabled.active,\n.datepicker table tr td.active.disabled:hover.active,\n.datepicker table tr td.active.disabled,\n.datepicker table tr td.active:hover.disabled,\n.datepicker table tr td.active.disabled.disabled,\n.datepicker table tr td.active.disabled:hover.disabled,\n.datepicker table tr td.active[disabled],\n.datepicker table tr td.active:hover[disabled],\n.datepicker table tr td.active.disabled[disabled],\n.datepicker table tr td.active.disabled:hover[disabled] {\n  background-color: #0044cc;\n}\n.datepicker table tr td.active:active,\n.datepicker table tr td.active:hover:active,\n.datepicker table tr td.active.disabled:active,\n.datepicker table tr td.active.disabled:hover:active,\n.datepicker table tr td.active.active,\n.datepicker table tr td.active:hover.active,\n.datepicker table tr td.active.disabled.active,\n.datepicker table tr td.active.disabled:hover.active {\n  background-color: #003399 \\9;\n}\n.datepicker table tr td span {\n  display: block;\n  width: 23%;\n  height: 54px;\n  line-height: 54px;\n  float: left;\n  margin: 1%;\n  cursor: pointer;\n  -webkit-border-radius: 4px;\n  -moz-border-radius: 4px;\n  border-radius: 4px;\n}\n.datepicker table tr td span:hover,\n.datepicker table tr td span.focused {\n  background: #eee;\n}\n.datepicker table tr td span.disabled,\n.datepicker table tr td span.disabled:hover {\n  background: none;\n  color: #999;\n  cursor: default;\n}\n.datepicker table tr td span.active,\n.datepicker table tr td span.active:hover,\n.datepicker table tr td span.active.disabled,\n.datepicker table tr td span.active.disabled:hover {\n  background-color: #006dcc;\n  background-image: -moz-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -ms-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#0044cc));\n  background-image: -webkit-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: -o-linear-gradient(to bottom, #08c, #0044cc);\n  background-image: linear-gradient(to bottom, #08c, #0044cc);\n  background-repeat: repeat-x;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#08c', endColorstr='#0044cc', GradientType=0);\n  border-color: #0044cc #0044cc #002a80;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  color: #fff;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td span.active:hover,\n.datepicker table tr td span.active:hover:hover,\n.datepicker table tr td span.active.disabled:hover,\n.datepicker table tr td span.active.disabled:hover:hover,\n.datepicker table tr td span.active:active,\n.datepicker table tr td span.active:hover:active,\n.datepicker table tr td span.active.disabled:active,\n.datepicker table tr td span.active.disabled:hover:active,\n.datepicker table tr td span.active.active,\n.datepicker table tr td span.active:hover.active,\n.datepicker table tr td span.active.disabled.active,\n.datepicker table tr td span.active.disabled:hover.active,\n.datepicker table tr td span.active.disabled,\n.datepicker table tr td span.active:hover.disabled,\n.datepicker table tr td span.active.disabled.disabled,\n.datepicker table tr td span.active.disabled:hover.disabled,\n.datepicker table tr td span.active[disabled],\n.datepicker table tr td span.active:hover[disabled],\n.datepicker table tr td span.active.disabled[disabled],\n.datepicker table tr td span.active.disabled:hover[disabled] {\n  background-color: #0044cc;\n}\n.datepicker table tr td span.active:active,\n.datepicker table tr td span.active:hover:active,\n.datepicker table tr td span.active.disabled:active,\n.datepicker table tr td span.active.disabled:hover:active,\n.datepicker table tr td span.active.active,\n.datepicker table tr td span.active:hover.active,\n.datepicker table tr td span.active.disabled.active,\n.datepicker table tr td span.active.disabled:hover.active {\n  background-color: #003399 \\9;\n}\n.datepicker table tr td span.old,\n.datepicker table tr td span.new {\n  color: #999;\n}\n.datepicker .datepicker-switch {\n  width: 145px;\n}\n.datepicker .datepicker-switch,\n.datepicker .prev,\n.datepicker .next,\n.datepicker tfoot tr th {\n  cursor: pointer;\n}\n.datepicker .datepicker-switch:hover,\n.datepicker .prev:hover,\n.datepicker .next:hover,\n.datepicker tfoot tr th:hover {\n  background: #eee;\n}\n.datepicker .cw {\n  font-size: 10px;\n  width: 12px;\n  padding: 0 2px 0 5px;\n  vertical-align: middle;\n}\n.input-append.date .add-on,\n.input-prepend.date .add-on {\n  cursor: pointer;\n}\n.input-append.date .add-on i,\n.input-prepend.date .add-on i {\n  margin-top: 3px;\n}\n.input-daterange input {\n  text-align: center;\n}\n.input-daterange input:first-child {\n  -webkit-border-radius: 3px 0 0 3px;\n  -moz-border-radius: 3px 0 0 3px;\n  border-radius: 3px 0 0 3px;\n}\n.input-daterange input:last-child {\n  -webkit-border-radius: 0 3px 3px 0;\n  -moz-border-radius: 0 3px 3px 0;\n  border-radius: 0 3px 3px 0;\n}\n.input-daterange .add-on {\n  display: inline-block;\n  width: auto;\n  min-width: 16px;\n  height: 20px;\n  padding: 4px 5px;\n  font-weight: normal;\n  line-height: 20px;\n  text-align: center;\n  text-shadow: 0 1px 0 #fff;\n  vertical-align: middle;\n  background-color: #eee;\n  border: 1px solid #ccc;\n  margin-left: -5px;\n  margin-right: -5px;\n}\n.datepicker.dropdown-menu {\n  position: absolute;\n  top: 100%;\n  left: 0;\n  z-index: 1000;\n  float: left;\n  display: none;\n  min-width: 160px;\n  list-style: none;\n  background-color: #fff;\n  border: 1px solid #ccc;\n  border: 1px solid rgba(0, 0, 0, 0.2);\n  -webkit-border-radius: 5px;\n  -moz-border-radius: 5px;\n  border-radius: 5px;\n  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n  -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n  -webkit-background-clip: padding-box;\n  -moz-background-clip: padding;\n  background-clip: padding-box;\n  *border-right-width: 2px;\n  *border-bottom-width: 2px;\n  color: #333333;\n  font-size: 13px;\n  line-height: 20px;\n}\n.datepicker.dropdown-menu th,\n.datepicker.datepicker-inline th,\n.datepicker.dropdown-menu td,\n.datepicker.datepicker-inline td {\n  padding: 4px 5px;\n}\n/*# sourceMappingURL=bootstrap-datepicker.standalone.css.map */"
  },
  {
    "path": "tool/date_picker/css/bootstrap-datepicker3.css",
    "content": "/*!\n * Datepicker for Bootstrap v1.6.4 (https://github.com/eternicode/bootstrap-datepicker)\n *\n * Copyright 2012 Stefan Petre\n * Improvements by Andrew Rowls\n * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n */\n.datepicker {\n  border-radius: 4px;\n  direction: ltr;\n}\n.datepicker-inline {\n  width: 220px;\n}\n.datepicker.datepicker-rtl {\n  direction: rtl;\n}\n.datepicker.datepicker-rtl table tr td span {\n  float: right;\n}\n.datepicker-dropdown {\n  top: 0;\n  left: 0;\n  padding: 4px;\n}\n.datepicker-dropdown:before {\n  content: '';\n  display: inline-block;\n  border-left: 7px solid transparent;\n  border-right: 7px solid transparent;\n  border-bottom: 7px solid rgba(0, 0, 0, 0.15);\n  border-top: 0;\n  border-bottom-color: rgba(0, 0, 0, 0.2);\n  position: absolute;\n}\n.datepicker-dropdown:after {\n  content: '';\n  display: inline-block;\n  border-left: 6px solid transparent;\n  border-right: 6px solid transparent;\n  border-bottom: 6px solid #fff;\n  border-top: 0;\n  position: absolute;\n}\n.datepicker-dropdown.datepicker-orient-left:before {\n  left: 6px;\n}\n.datepicker-dropdown.datepicker-orient-left:after {\n  left: 7px;\n}\n.datepicker-dropdown.datepicker-orient-right:before {\n  right: 6px;\n}\n.datepicker-dropdown.datepicker-orient-right:after {\n  right: 7px;\n}\n.datepicker-dropdown.datepicker-orient-bottom:before {\n  top: -7px;\n}\n.datepicker-dropdown.datepicker-orient-bottom:after {\n  top: -6px;\n}\n.datepicker-dropdown.datepicker-orient-top:before {\n  bottom: -7px;\n  border-bottom: 0;\n  border-top: 7px solid rgba(0, 0, 0, 0.15);\n}\n.datepicker-dropdown.datepicker-orient-top:after {\n  bottom: -6px;\n  border-bottom: 0;\n  border-top: 6px solid #fff;\n}\n.datepicker table {\n  margin: 0;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.datepicker table tr td,\n.datepicker table tr th {\n  text-align: center;\n  width: 30px;\n  height: 30px;\n  border-radius: 4px;\n  border: none;\n}\n.table-striped .datepicker table tr td,\n.table-striped .datepicker table tr th {\n  background-color: transparent;\n}\n.datepicker table tr td.old,\n.datepicker table tr td.new {\n  color: #777777;\n}\n.datepicker table tr td.day:hover,\n.datepicker table tr td.focused {\n  background: #eeeeee;\n  cursor: pointer;\n}\n.datepicker table tr td.disabled,\n.datepicker table tr td.disabled:hover {\n  background: none;\n  color: #777777;\n  cursor: default;\n}\n.datepicker table tr td.highlighted {\n  color: #000;\n  background-color: #d9edf7;\n  border-color: #85c5e5;\n  border-radius: 0;\n}\n.datepicker table tr td.highlighted:focus,\n.datepicker table tr td.highlighted.focus {\n  color: #000;\n  background-color: #afd9ee;\n  border-color: #298fc2;\n}\n.datepicker table tr td.highlighted:hover {\n  color: #000;\n  background-color: #afd9ee;\n  border-color: #52addb;\n}\n.datepicker table tr td.highlighted:active,\n.datepicker table tr td.highlighted.active {\n  color: #000;\n  background-color: #afd9ee;\n  border-color: #52addb;\n}\n.datepicker table tr td.highlighted:active:hover,\n.datepicker table tr td.highlighted.active:hover,\n.datepicker table tr td.highlighted:active:focus,\n.datepicker table tr td.highlighted.active:focus,\n.datepicker table tr td.highlighted:active.focus,\n.datepicker table tr td.highlighted.active.focus {\n  color: #000;\n  background-color: #91cbe8;\n  border-color: #298fc2;\n}\n.datepicker table tr td.highlighted.disabled:hover,\n.datepicker table tr td.highlighted[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.highlighted:hover,\n.datepicker table tr td.highlighted.disabled:focus,\n.datepicker table tr td.highlighted[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.highlighted:focus,\n.datepicker table tr td.highlighted.disabled.focus,\n.datepicker table tr td.highlighted[disabled].focus,\nfieldset[disabled] .datepicker table tr td.highlighted.focus {\n  background-color: #d9edf7;\n  border-color: #85c5e5;\n}\n.datepicker table tr td.highlighted.focused {\n  background: #afd9ee;\n}\n.datepicker table tr td.highlighted.disabled,\n.datepicker table tr td.highlighted.disabled:active {\n  background: #d9edf7;\n  color: #777777;\n}\n.datepicker table tr td.today {\n  color: #000;\n  background-color: #ffdb99;\n  border-color: #ffb733;\n}\n.datepicker table tr td.today:focus,\n.datepicker table tr td.today.focus {\n  color: #000;\n  background-color: #ffc966;\n  border-color: #b37400;\n}\n.datepicker table tr td.today:hover {\n  color: #000;\n  background-color: #ffc966;\n  border-color: #f59e00;\n}\n.datepicker table tr td.today:active,\n.datepicker table tr td.today.active {\n  color: #000;\n  background-color: #ffc966;\n  border-color: #f59e00;\n}\n.datepicker table tr td.today:active:hover,\n.datepicker table tr td.today.active:hover,\n.datepicker table tr td.today:active:focus,\n.datepicker table tr td.today.active:focus,\n.datepicker table tr td.today:active.focus,\n.datepicker table tr td.today.active.focus {\n  color: #000;\n  background-color: #ffbc42;\n  border-color: #b37400;\n}\n.datepicker table tr td.today.disabled:hover,\n.datepicker table tr td.today[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.today:hover,\n.datepicker table tr td.today.disabled:focus,\n.datepicker table tr td.today[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.today:focus,\n.datepicker table tr td.today.disabled.focus,\n.datepicker table tr td.today[disabled].focus,\nfieldset[disabled] .datepicker table tr td.today.focus {\n  background-color: #ffdb99;\n  border-color: #ffb733;\n}\n.datepicker table tr td.today.focused {\n  background: #ffc966;\n}\n.datepicker table tr td.today.disabled,\n.datepicker table tr td.today.disabled:active {\n  background: #ffdb99;\n  color: #777777;\n}\n.datepicker table tr td.range {\n  color: #000;\n  background-color: #eeeeee;\n  border-color: #bbbbbb;\n  border-radius: 0;\n}\n.datepicker table tr td.range:focus,\n.datepicker table tr td.range.focus {\n  color: #000;\n  background-color: #d5d5d5;\n  border-color: #7c7c7c;\n}\n.datepicker table tr td.range:hover {\n  color: #000;\n  background-color: #d5d5d5;\n  border-color: #9d9d9d;\n}\n.datepicker table tr td.range:active,\n.datepicker table tr td.range.active {\n  color: #000;\n  background-color: #d5d5d5;\n  border-color: #9d9d9d;\n}\n.datepicker table tr td.range:active:hover,\n.datepicker table tr td.range.active:hover,\n.datepicker table tr td.range:active:focus,\n.datepicker table tr td.range.active:focus,\n.datepicker table tr td.range:active.focus,\n.datepicker table tr td.range.active.focus {\n  color: #000;\n  background-color: #c3c3c3;\n  border-color: #7c7c7c;\n}\n.datepicker table tr td.range.disabled:hover,\n.datepicker table tr td.range[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.range:hover,\n.datepicker table tr td.range.disabled:focus,\n.datepicker table tr td.range[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.range:focus,\n.datepicker table tr td.range.disabled.focus,\n.datepicker table tr td.range[disabled].focus,\nfieldset[disabled] .datepicker table tr td.range.focus {\n  background-color: #eeeeee;\n  border-color: #bbbbbb;\n}\n.datepicker table tr td.range.focused {\n  background: #d5d5d5;\n}\n.datepicker table tr td.range.disabled,\n.datepicker table tr td.range.disabled:active {\n  background: #eeeeee;\n  color: #777777;\n}\n.datepicker table tr td.range.highlighted {\n  color: #000;\n  background-color: #e4eef3;\n  border-color: #9dc1d3;\n}\n.datepicker table tr td.range.highlighted:focus,\n.datepicker table tr td.range.highlighted.focus {\n  color: #000;\n  background-color: #c1d7e3;\n  border-color: #4b88a6;\n}\n.datepicker table tr td.range.highlighted:hover {\n  color: #000;\n  background-color: #c1d7e3;\n  border-color: #73a6c0;\n}\n.datepicker table tr td.range.highlighted:active,\n.datepicker table tr td.range.highlighted.active {\n  color: #000;\n  background-color: #c1d7e3;\n  border-color: #73a6c0;\n}\n.datepicker table tr td.range.highlighted:active:hover,\n.datepicker table tr td.range.highlighted.active:hover,\n.datepicker table tr td.range.highlighted:active:focus,\n.datepicker table tr td.range.highlighted.active:focus,\n.datepicker table tr td.range.highlighted:active.focus,\n.datepicker table tr td.range.highlighted.active.focus {\n  color: #000;\n  background-color: #a8c8d8;\n  border-color: #4b88a6;\n}\n.datepicker table tr td.range.highlighted.disabled:hover,\n.datepicker table tr td.range.highlighted[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.range.highlighted:hover,\n.datepicker table tr td.range.highlighted.disabled:focus,\n.datepicker table tr td.range.highlighted[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.range.highlighted:focus,\n.datepicker table tr td.range.highlighted.disabled.focus,\n.datepicker table tr td.range.highlighted[disabled].focus,\nfieldset[disabled] .datepicker table tr td.range.highlighted.focus {\n  background-color: #e4eef3;\n  border-color: #9dc1d3;\n}\n.datepicker table tr td.range.highlighted.focused {\n  background: #c1d7e3;\n}\n.datepicker table tr td.range.highlighted.disabled,\n.datepicker table tr td.range.highlighted.disabled:active {\n  background: #e4eef3;\n  color: #777777;\n}\n.datepicker table tr td.range.today {\n  color: #000;\n  background-color: #f7ca77;\n  border-color: #f1a417;\n}\n.datepicker table tr td.range.today:focus,\n.datepicker table tr td.range.today.focus {\n  color: #000;\n  background-color: #f4b747;\n  border-color: #815608;\n}\n.datepicker table tr td.range.today:hover {\n  color: #000;\n  background-color: #f4b747;\n  border-color: #bf800c;\n}\n.datepicker table tr td.range.today:active,\n.datepicker table tr td.range.today.active {\n  color: #000;\n  background-color: #f4b747;\n  border-color: #bf800c;\n}\n.datepicker table tr td.range.today:active:hover,\n.datepicker table tr td.range.today.active:hover,\n.datepicker table tr td.range.today:active:focus,\n.datepicker table tr td.range.today.active:focus,\n.datepicker table tr td.range.today:active.focus,\n.datepicker table tr td.range.today.active.focus {\n  color: #000;\n  background-color: #f2aa25;\n  border-color: #815608;\n}\n.datepicker table tr td.range.today.disabled:hover,\n.datepicker table tr td.range.today[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.range.today:hover,\n.datepicker table tr td.range.today.disabled:focus,\n.datepicker table tr td.range.today[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.range.today:focus,\n.datepicker table tr td.range.today.disabled.focus,\n.datepicker table tr td.range.today[disabled].focus,\nfieldset[disabled] .datepicker table tr td.range.today.focus {\n  background-color: #f7ca77;\n  border-color: #f1a417;\n}\n.datepicker table tr td.range.today.disabled,\n.datepicker table tr td.range.today.disabled:active {\n  background: #f7ca77;\n  color: #777777;\n}\n.datepicker table tr td.selected,\n.datepicker table tr td.selected.highlighted {\n  color: #fff;\n  background-color: #777777;\n  border-color: #555555;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td.selected:focus,\n.datepicker table tr td.selected.highlighted:focus,\n.datepicker table tr td.selected.focus,\n.datepicker table tr td.selected.highlighted.focus {\n  color: #fff;\n  background-color: #5e5e5e;\n  border-color: #161616;\n}\n.datepicker table tr td.selected:hover,\n.datepicker table tr td.selected.highlighted:hover {\n  color: #fff;\n  background-color: #5e5e5e;\n  border-color: #373737;\n}\n.datepicker table tr td.selected:active,\n.datepicker table tr td.selected.highlighted:active,\n.datepicker table tr td.selected.active,\n.datepicker table tr td.selected.highlighted.active {\n  color: #fff;\n  background-color: #5e5e5e;\n  border-color: #373737;\n}\n.datepicker table tr td.selected:active:hover,\n.datepicker table tr td.selected.highlighted:active:hover,\n.datepicker table tr td.selected.active:hover,\n.datepicker table tr td.selected.highlighted.active:hover,\n.datepicker table tr td.selected:active:focus,\n.datepicker table tr td.selected.highlighted:active:focus,\n.datepicker table tr td.selected.active:focus,\n.datepicker table tr td.selected.highlighted.active:focus,\n.datepicker table tr td.selected:active.focus,\n.datepicker table tr td.selected.highlighted:active.focus,\n.datepicker table tr td.selected.active.focus,\n.datepicker table tr td.selected.highlighted.active.focus {\n  color: #fff;\n  background-color: #4c4c4c;\n  border-color: #161616;\n}\n.datepicker table tr td.selected.disabled:hover,\n.datepicker table tr td.selected.highlighted.disabled:hover,\n.datepicker table tr td.selected[disabled]:hover,\n.datepicker table tr td.selected.highlighted[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.selected:hover,\nfieldset[disabled] .datepicker table tr td.selected.highlighted:hover,\n.datepicker table tr td.selected.disabled:focus,\n.datepicker table tr td.selected.highlighted.disabled:focus,\n.datepicker table tr td.selected[disabled]:focus,\n.datepicker table tr td.selected.highlighted[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.selected:focus,\nfieldset[disabled] .datepicker table tr td.selected.highlighted:focus,\n.datepicker table tr td.selected.disabled.focus,\n.datepicker table tr td.selected.highlighted.disabled.focus,\n.datepicker table tr td.selected[disabled].focus,\n.datepicker table tr td.selected.highlighted[disabled].focus,\nfieldset[disabled] .datepicker table tr td.selected.focus,\nfieldset[disabled] .datepicker table tr td.selected.highlighted.focus {\n  background-color: #777777;\n  border-color: #555555;\n}\n.datepicker table tr td.active,\n.datepicker table tr td.active.highlighted {\n  color: #fff;\n  background-color: #337ab7;\n  border-color: #2e6da4;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td.active:focus,\n.datepicker table tr td.active.highlighted:focus,\n.datepicker table tr td.active.focus,\n.datepicker table tr td.active.highlighted.focus {\n  color: #fff;\n  background-color: #286090;\n  border-color: #122b40;\n}\n.datepicker table tr td.active:hover,\n.datepicker table tr td.active.highlighted:hover {\n  color: #fff;\n  background-color: #286090;\n  border-color: #204d74;\n}\n.datepicker table tr td.active:active,\n.datepicker table tr td.active.highlighted:active,\n.datepicker table tr td.active.active,\n.datepicker table tr td.active.highlighted.active {\n  color: #fff;\n  background-color: #286090;\n  border-color: #204d74;\n}\n.datepicker table tr td.active:active:hover,\n.datepicker table tr td.active.highlighted:active:hover,\n.datepicker table tr td.active.active:hover,\n.datepicker table tr td.active.highlighted.active:hover,\n.datepicker table tr td.active:active:focus,\n.datepicker table tr td.active.highlighted:active:focus,\n.datepicker table tr td.active.active:focus,\n.datepicker table tr td.active.highlighted.active:focus,\n.datepicker table tr td.active:active.focus,\n.datepicker table tr td.active.highlighted:active.focus,\n.datepicker table tr td.active.active.focus,\n.datepicker table tr td.active.highlighted.active.focus {\n  color: #fff;\n  background-color: #204d74;\n  border-color: #122b40;\n}\n.datepicker table tr td.active.disabled:hover,\n.datepicker table tr td.active.highlighted.disabled:hover,\n.datepicker table tr td.active[disabled]:hover,\n.datepicker table tr td.active.highlighted[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.active:hover,\nfieldset[disabled] .datepicker table tr td.active.highlighted:hover,\n.datepicker table tr td.active.disabled:focus,\n.datepicker table tr td.active.highlighted.disabled:focus,\n.datepicker table tr td.active[disabled]:focus,\n.datepicker table tr td.active.highlighted[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.active:focus,\nfieldset[disabled] .datepicker table tr td.active.highlighted:focus,\n.datepicker table tr td.active.disabled.focus,\n.datepicker table tr td.active.highlighted.disabled.focus,\n.datepicker table tr td.active[disabled].focus,\n.datepicker table tr td.active.highlighted[disabled].focus,\nfieldset[disabled] .datepicker table tr td.active.focus,\nfieldset[disabled] .datepicker table tr td.active.highlighted.focus {\n  background-color: #337ab7;\n  border-color: #2e6da4;\n}\n.datepicker table tr td span {\n  display: block;\n  width: 23%;\n  height: 54px;\n  line-height: 54px;\n  float: left;\n  margin: 1%;\n  cursor: pointer;\n  border-radius: 4px;\n}\n.datepicker table tr td span:hover,\n.datepicker table tr td span.focused {\n  background: #eeeeee;\n}\n.datepicker table tr td span.disabled,\n.datepicker table tr td span.disabled:hover {\n  background: none;\n  color: #777777;\n  cursor: default;\n}\n.datepicker table tr td span.active,\n.datepicker table tr td span.active:hover,\n.datepicker table tr td span.active.disabled,\n.datepicker table tr td span.active.disabled:hover {\n  color: #fff;\n  background-color: #337ab7;\n  border-color: #2e6da4;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td span.active:focus,\n.datepicker table tr td span.active:hover:focus,\n.datepicker table tr td span.active.disabled:focus,\n.datepicker table tr td span.active.disabled:hover:focus,\n.datepicker table tr td span.active.focus,\n.datepicker table tr td span.active:hover.focus,\n.datepicker table tr td span.active.disabled.focus,\n.datepicker table tr td span.active.disabled:hover.focus {\n  color: #fff;\n  background-color: #286090;\n  border-color: #122b40;\n}\n.datepicker table tr td span.active:hover,\n.datepicker table tr td span.active:hover:hover,\n.datepicker table tr td span.active.disabled:hover,\n.datepicker table tr td span.active.disabled:hover:hover {\n  color: #fff;\n  background-color: #286090;\n  border-color: #204d74;\n}\n.datepicker table tr td span.active:active,\n.datepicker table tr td span.active:hover:active,\n.datepicker table tr td span.active.disabled:active,\n.datepicker table tr td span.active.disabled:hover:active,\n.datepicker table tr td span.active.active,\n.datepicker table tr td span.active:hover.active,\n.datepicker table tr td span.active.disabled.active,\n.datepicker table tr td span.active.disabled:hover.active {\n  color: #fff;\n  background-color: #286090;\n  border-color: #204d74;\n}\n.datepicker table tr td span.active:active:hover,\n.datepicker table tr td span.active:hover:active:hover,\n.datepicker table tr td span.active.disabled:active:hover,\n.datepicker table tr td span.active.disabled:hover:active:hover,\n.datepicker table tr td span.active.active:hover,\n.datepicker table tr td span.active:hover.active:hover,\n.datepicker table tr td span.active.disabled.active:hover,\n.datepicker table tr td span.active.disabled:hover.active:hover,\n.datepicker table tr td span.active:active:focus,\n.datepicker table tr td span.active:hover:active:focus,\n.datepicker table tr td span.active.disabled:active:focus,\n.datepicker table tr td span.active.disabled:hover:active:focus,\n.datepicker table tr td span.active.active:focus,\n.datepicker table tr td span.active:hover.active:focus,\n.datepicker table tr td span.active.disabled.active:focus,\n.datepicker table tr td span.active.disabled:hover.active:focus,\n.datepicker table tr td span.active:active.focus,\n.datepicker table tr td span.active:hover:active.focus,\n.datepicker table tr td span.active.disabled:active.focus,\n.datepicker table tr td span.active.disabled:hover:active.focus,\n.datepicker table tr td span.active.active.focus,\n.datepicker table tr td span.active:hover.active.focus,\n.datepicker table tr td span.active.disabled.active.focus,\n.datepicker table tr td span.active.disabled:hover.active.focus {\n  color: #fff;\n  background-color: #204d74;\n  border-color: #122b40;\n}\n.datepicker table tr td span.active.disabled:hover,\n.datepicker table tr td span.active:hover.disabled:hover,\n.datepicker table tr td span.active.disabled.disabled:hover,\n.datepicker table tr td span.active.disabled:hover.disabled:hover,\n.datepicker table tr td span.active[disabled]:hover,\n.datepicker table tr td span.active:hover[disabled]:hover,\n.datepicker table tr td span.active.disabled[disabled]:hover,\n.datepicker table tr td span.active.disabled:hover[disabled]:hover,\nfieldset[disabled] .datepicker table tr td span.active:hover,\nfieldset[disabled] .datepicker table tr td span.active:hover:hover,\nfieldset[disabled] .datepicker table tr td span.active.disabled:hover,\nfieldset[disabled] .datepicker table tr td span.active.disabled:hover:hover,\n.datepicker table tr td span.active.disabled:focus,\n.datepicker table tr td span.active:hover.disabled:focus,\n.datepicker table tr td span.active.disabled.disabled:focus,\n.datepicker table tr td span.active.disabled:hover.disabled:focus,\n.datepicker table tr td span.active[disabled]:focus,\n.datepicker table tr td span.active:hover[disabled]:focus,\n.datepicker table tr td span.active.disabled[disabled]:focus,\n.datepicker table tr td span.active.disabled:hover[disabled]:focus,\nfieldset[disabled] .datepicker table tr td span.active:focus,\nfieldset[disabled] .datepicker table tr td span.active:hover:focus,\nfieldset[disabled] .datepicker table tr td span.active.disabled:focus,\nfieldset[disabled] .datepicker table tr td span.active.disabled:hover:focus,\n.datepicker table tr td span.active.disabled.focus,\n.datepicker table tr td span.active:hover.disabled.focus,\n.datepicker table tr td span.active.disabled.disabled.focus,\n.datepicker table tr td span.active.disabled:hover.disabled.focus,\n.datepicker table tr td span.active[disabled].focus,\n.datepicker table tr td span.active:hover[disabled].focus,\n.datepicker table tr td span.active.disabled[disabled].focus,\n.datepicker table tr td span.active.disabled:hover[disabled].focus,\nfieldset[disabled] .datepicker table tr td span.active.focus,\nfieldset[disabled] .datepicker table tr td span.active:hover.focus,\nfieldset[disabled] .datepicker table tr td span.active.disabled.focus,\nfieldset[disabled] .datepicker table tr td span.active.disabled:hover.focus {\n  background-color: #337ab7;\n  border-color: #2e6da4;\n}\n.datepicker table tr td span.old,\n.datepicker table tr td span.new {\n  color: #777777;\n}\n.datepicker .datepicker-switch {\n  width: 145px;\n}\n.datepicker .datepicker-switch,\n.datepicker .prev,\n.datepicker .next,\n.datepicker tfoot tr th {\n  cursor: pointer;\n}\n.datepicker .datepicker-switch:hover,\n.datepicker .prev:hover,\n.datepicker .next:hover,\n.datepicker tfoot tr th:hover {\n  background: #eeeeee;\n}\n.datepicker .cw {\n  font-size: 10px;\n  width: 12px;\n  padding: 0 2px 0 5px;\n  vertical-align: middle;\n}\n.input-group.date .input-group-addon {\n  cursor: pointer;\n}\n.input-daterange {\n  width: 100%;\n}\n.input-daterange input {\n  text-align: center;\n}\n.input-daterange input:first-child {\n  border-radius: 3px 0 0 3px;\n}\n.input-daterange input:last-child {\n  border-radius: 0 3px 3px 0;\n}\n.input-daterange .input-group-addon {\n  width: auto;\n  min-width: 16px;\n  padding: 4px 5px;\n  line-height: 1.42857143;\n  text-shadow: 0 1px 0 #fff;\n  border-width: 1px 0;\n  margin-left: -5px;\n  margin-right: -5px;\n}\n/*# sourceMappingURL=bootstrap-datepicker3.css.map */"
  },
  {
    "path": "tool/date_picker/css/bootstrap-datepicker3.standalone.css",
    "content": "/*!\n * Datepicker for Bootstrap v1.6.4 (https://github.com/eternicode/bootstrap-datepicker)\n *\n * Copyright 2012 Stefan Petre\n * Improvements by Andrew Rowls\n * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n */\n.datepicker {\n  border-radius: 4px;\n  direction: ltr;\n}\n.datepicker-inline {\n  width: 220px;\n}\n.datepicker.datepicker-rtl {\n  direction: rtl;\n}\n.datepicker.datepicker-rtl table tr td span {\n  float: right;\n}\n.datepicker-dropdown {\n  top: 0;\n  left: 0;\n  padding: 4px;\n}\n.datepicker-dropdown:before {\n  content: '';\n  display: inline-block;\n  border-left: 7px solid transparent;\n  border-right: 7px solid transparent;\n  border-bottom: 7px solid rgba(0, 0, 0, 0.15);\n  border-top: 0;\n  border-bottom-color: rgba(0, 0, 0, 0.2);\n  position: absolute;\n}\n.datepicker-dropdown:after {\n  content: '';\n  display: inline-block;\n  border-left: 6px solid transparent;\n  border-right: 6px solid transparent;\n  border-bottom: 6px solid #fff;\n  border-top: 0;\n  position: absolute;\n}\n.datepicker-dropdown.datepicker-orient-left:before {\n  left: 6px;\n}\n.datepicker-dropdown.datepicker-orient-left:after {\n  left: 7px;\n}\n.datepicker-dropdown.datepicker-orient-right:before {\n  right: 6px;\n}\n.datepicker-dropdown.datepicker-orient-right:after {\n  right: 7px;\n}\n.datepicker-dropdown.datepicker-orient-bottom:before {\n  top: -7px;\n}\n.datepicker-dropdown.datepicker-orient-bottom:after {\n  top: -6px;\n}\n.datepicker-dropdown.datepicker-orient-top:before {\n  bottom: -7px;\n  border-bottom: 0;\n  border-top: 7px solid rgba(0, 0, 0, 0.15);\n}\n.datepicker-dropdown.datepicker-orient-top:after {\n  bottom: -6px;\n  border-bottom: 0;\n  border-top: 6px solid #fff;\n}\n.datepicker table {\n  margin: 0;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.datepicker table tr td,\n.datepicker table tr th {\n  text-align: center;\n  width: 30px;\n  height: 30px;\n  border-radius: 4px;\n  border: none;\n}\n.table-striped .datepicker table tr td,\n.table-striped .datepicker table tr th {\n  background-color: transparent;\n}\n.datepicker table tr td.old,\n.datepicker table tr td.new {\n  color: #777777;\n}\n.datepicker table tr td.day:hover,\n.datepicker table tr td.focused {\n  background: #eeeeee;\n  cursor: pointer;\n}\n.datepicker table tr td.disabled,\n.datepicker table tr td.disabled:hover {\n  background: none;\n  color: #777777;\n  cursor: default;\n}\n.datepicker table tr td.highlighted {\n  color: #000;\n  background-color: #d9edf7;\n  border-color: #85c5e5;\n  border-radius: 0;\n}\n.datepicker table tr td.highlighted:focus,\n.datepicker table tr td.highlighted.focus {\n  color: #000;\n  background-color: #afd9ee;\n  border-color: #298fc2;\n}\n.datepicker table tr td.highlighted:hover {\n  color: #000;\n  background-color: #afd9ee;\n  border-color: #52addb;\n}\n.datepicker table tr td.highlighted:active,\n.datepicker table tr td.highlighted.active {\n  color: #000;\n  background-color: #afd9ee;\n  border-color: #52addb;\n}\n.datepicker table tr td.highlighted:active:hover,\n.datepicker table tr td.highlighted.active:hover,\n.datepicker table tr td.highlighted:active:focus,\n.datepicker table tr td.highlighted.active:focus,\n.datepicker table tr td.highlighted:active.focus,\n.datepicker table tr td.highlighted.active.focus {\n  color: #000;\n  background-color: #91cbe8;\n  border-color: #298fc2;\n}\n.datepicker table tr td.highlighted.disabled:hover,\n.datepicker table tr td.highlighted[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.highlighted:hover,\n.datepicker table tr td.highlighted.disabled:focus,\n.datepicker table tr td.highlighted[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.highlighted:focus,\n.datepicker table tr td.highlighted.disabled.focus,\n.datepicker table tr td.highlighted[disabled].focus,\nfieldset[disabled] .datepicker table tr td.highlighted.focus {\n  background-color: #d9edf7;\n  border-color: #85c5e5;\n}\n.datepicker table tr td.highlighted.focused {\n  background: #afd9ee;\n}\n.datepicker table tr td.highlighted.disabled,\n.datepicker table tr td.highlighted.disabled:active {\n  background: #d9edf7;\n  color: #777777;\n}\n.datepicker table tr td.today {\n  color: #000;\n  background-color: #ffdb99;\n  border-color: #ffb733;\n}\n.datepicker table tr td.today:focus,\n.datepicker table tr td.today.focus {\n  color: #000;\n  background-color: #ffc966;\n  border-color: #b37400;\n}\n.datepicker table tr td.today:hover {\n  color: #000;\n  background-color: #ffc966;\n  border-color: #f59e00;\n}\n.datepicker table tr td.today:active,\n.datepicker table tr td.today.active {\n  color: #000;\n  background-color: #ffc966;\n  border-color: #f59e00;\n}\n.datepicker table tr td.today:active:hover,\n.datepicker table tr td.today.active:hover,\n.datepicker table tr td.today:active:focus,\n.datepicker table tr td.today.active:focus,\n.datepicker table tr td.today:active.focus,\n.datepicker table tr td.today.active.focus {\n  color: #000;\n  background-color: #ffbc42;\n  border-color: #b37400;\n}\n.datepicker table tr td.today.disabled:hover,\n.datepicker table tr td.today[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.today:hover,\n.datepicker table tr td.today.disabled:focus,\n.datepicker table tr td.today[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.today:focus,\n.datepicker table tr td.today.disabled.focus,\n.datepicker table tr td.today[disabled].focus,\nfieldset[disabled] .datepicker table tr td.today.focus {\n  background-color: #ffdb99;\n  border-color: #ffb733;\n}\n.datepicker table tr td.today.focused {\n  background: #ffc966;\n}\n.datepicker table tr td.today.disabled,\n.datepicker table tr td.today.disabled:active {\n  background: #ffdb99;\n  color: #777777;\n}\n.datepicker table tr td.range {\n  color: #000;\n  background-color: #eeeeee;\n  border-color: #bbbbbb;\n  border-radius: 0;\n}\n.datepicker table tr td.range:focus,\n.datepicker table tr td.range.focus {\n  color: #000;\n  background-color: #d5d5d5;\n  border-color: #7c7c7c;\n}\n.datepicker table tr td.range:hover {\n  color: #000;\n  background-color: #d5d5d5;\n  border-color: #9d9d9d;\n}\n.datepicker table tr td.range:active,\n.datepicker table tr td.range.active {\n  color: #000;\n  background-color: #d5d5d5;\n  border-color: #9d9d9d;\n}\n.datepicker table tr td.range:active:hover,\n.datepicker table tr td.range.active:hover,\n.datepicker table tr td.range:active:focus,\n.datepicker table tr td.range.active:focus,\n.datepicker table tr td.range:active.focus,\n.datepicker table tr td.range.active.focus {\n  color: #000;\n  background-color: #c3c3c3;\n  border-color: #7c7c7c;\n}\n.datepicker table tr td.range.disabled:hover,\n.datepicker table tr td.range[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.range:hover,\n.datepicker table tr td.range.disabled:focus,\n.datepicker table tr td.range[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.range:focus,\n.datepicker table tr td.range.disabled.focus,\n.datepicker table tr td.range[disabled].focus,\nfieldset[disabled] .datepicker table tr td.range.focus {\n  background-color: #eeeeee;\n  border-color: #bbbbbb;\n}\n.datepicker table tr td.range.focused {\n  background: #d5d5d5;\n}\n.datepicker table tr td.range.disabled,\n.datepicker table tr td.range.disabled:active {\n  background: #eeeeee;\n  color: #777777;\n}\n.datepicker table tr td.range.highlighted {\n  color: #000;\n  background-color: #e4eef3;\n  border-color: #9dc1d3;\n}\n.datepicker table tr td.range.highlighted:focus,\n.datepicker table tr td.range.highlighted.focus {\n  color: #000;\n  background-color: #c1d7e3;\n  border-color: #4b88a6;\n}\n.datepicker table tr td.range.highlighted:hover {\n  color: #000;\n  background-color: #c1d7e3;\n  border-color: #73a6c0;\n}\n.datepicker table tr td.range.highlighted:active,\n.datepicker table tr td.range.highlighted.active {\n  color: #000;\n  background-color: #c1d7e3;\n  border-color: #73a6c0;\n}\n.datepicker table tr td.range.highlighted:active:hover,\n.datepicker table tr td.range.highlighted.active:hover,\n.datepicker table tr td.range.highlighted:active:focus,\n.datepicker table tr td.range.highlighted.active:focus,\n.datepicker table tr td.range.highlighted:active.focus,\n.datepicker table tr td.range.highlighted.active.focus {\n  color: #000;\n  background-color: #a8c8d8;\n  border-color: #4b88a6;\n}\n.datepicker table tr td.range.highlighted.disabled:hover,\n.datepicker table tr td.range.highlighted[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.range.highlighted:hover,\n.datepicker table tr td.range.highlighted.disabled:focus,\n.datepicker table tr td.range.highlighted[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.range.highlighted:focus,\n.datepicker table tr td.range.highlighted.disabled.focus,\n.datepicker table tr td.range.highlighted[disabled].focus,\nfieldset[disabled] .datepicker table tr td.range.highlighted.focus {\n  background-color: #e4eef3;\n  border-color: #9dc1d3;\n}\n.datepicker table tr td.range.highlighted.focused {\n  background: #c1d7e3;\n}\n.datepicker table tr td.range.highlighted.disabled,\n.datepicker table tr td.range.highlighted.disabled:active {\n  background: #e4eef3;\n  color: #777777;\n}\n.datepicker table tr td.range.today {\n  color: #000;\n  background-color: #f7ca77;\n  border-color: #f1a417;\n}\n.datepicker table tr td.range.today:focus,\n.datepicker table tr td.range.today.focus {\n  color: #000;\n  background-color: #f4b747;\n  border-color: #815608;\n}\n.datepicker table tr td.range.today:hover {\n  color: #000;\n  background-color: #f4b747;\n  border-color: #bf800c;\n}\n.datepicker table tr td.range.today:active,\n.datepicker table tr td.range.today.active {\n  color: #000;\n  background-color: #f4b747;\n  border-color: #bf800c;\n}\n.datepicker table tr td.range.today:active:hover,\n.datepicker table tr td.range.today.active:hover,\n.datepicker table tr td.range.today:active:focus,\n.datepicker table tr td.range.today.active:focus,\n.datepicker table tr td.range.today:active.focus,\n.datepicker table tr td.range.today.active.focus {\n  color: #000;\n  background-color: #f2aa25;\n  border-color: #815608;\n}\n.datepicker table tr td.range.today.disabled:hover,\n.datepicker table tr td.range.today[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.range.today:hover,\n.datepicker table tr td.range.today.disabled:focus,\n.datepicker table tr td.range.today[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.range.today:focus,\n.datepicker table tr td.range.today.disabled.focus,\n.datepicker table tr td.range.today[disabled].focus,\nfieldset[disabled] .datepicker table tr td.range.today.focus {\n  background-color: #f7ca77;\n  border-color: #f1a417;\n}\n.datepicker table tr td.range.today.disabled,\n.datepicker table tr td.range.today.disabled:active {\n  background: #f7ca77;\n  color: #777777;\n}\n.datepicker table tr td.selected,\n.datepicker table tr td.selected.highlighted {\n  color: #fff;\n  background-color: #777777;\n  border-color: #555555;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td.selected:focus,\n.datepicker table tr td.selected.highlighted:focus,\n.datepicker table tr td.selected.focus,\n.datepicker table tr td.selected.highlighted.focus {\n  color: #fff;\n  background-color: #5e5e5e;\n  border-color: #161616;\n}\n.datepicker table tr td.selected:hover,\n.datepicker table tr td.selected.highlighted:hover {\n  color: #fff;\n  background-color: #5e5e5e;\n  border-color: #373737;\n}\n.datepicker table tr td.selected:active,\n.datepicker table tr td.selected.highlighted:active,\n.datepicker table tr td.selected.active,\n.datepicker table tr td.selected.highlighted.active {\n  color: #fff;\n  background-color: #5e5e5e;\n  border-color: #373737;\n}\n.datepicker table tr td.selected:active:hover,\n.datepicker table tr td.selected.highlighted:active:hover,\n.datepicker table tr td.selected.active:hover,\n.datepicker table tr td.selected.highlighted.active:hover,\n.datepicker table tr td.selected:active:focus,\n.datepicker table tr td.selected.highlighted:active:focus,\n.datepicker table tr td.selected.active:focus,\n.datepicker table tr td.selected.highlighted.active:focus,\n.datepicker table tr td.selected:active.focus,\n.datepicker table tr td.selected.highlighted:active.focus,\n.datepicker table tr td.selected.active.focus,\n.datepicker table tr td.selected.highlighted.active.focus {\n  color: #fff;\n  background-color: #4c4c4c;\n  border-color: #161616;\n}\n.datepicker table tr td.selected.disabled:hover,\n.datepicker table tr td.selected.highlighted.disabled:hover,\n.datepicker table tr td.selected[disabled]:hover,\n.datepicker table tr td.selected.highlighted[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.selected:hover,\nfieldset[disabled] .datepicker table tr td.selected.highlighted:hover,\n.datepicker table tr td.selected.disabled:focus,\n.datepicker table tr td.selected.highlighted.disabled:focus,\n.datepicker table tr td.selected[disabled]:focus,\n.datepicker table tr td.selected.highlighted[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.selected:focus,\nfieldset[disabled] .datepicker table tr td.selected.highlighted:focus,\n.datepicker table tr td.selected.disabled.focus,\n.datepicker table tr td.selected.highlighted.disabled.focus,\n.datepicker table tr td.selected[disabled].focus,\n.datepicker table tr td.selected.highlighted[disabled].focus,\nfieldset[disabled] .datepicker table tr td.selected.focus,\nfieldset[disabled] .datepicker table tr td.selected.highlighted.focus {\n  background-color: #777777;\n  border-color: #555555;\n}\n.datepicker table tr td.active,\n.datepicker table tr td.active.highlighted {\n  color: #fff;\n  background-color: #337ab7;\n  border-color: #2e6da4;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td.active:focus,\n.datepicker table tr td.active.highlighted:focus,\n.datepicker table tr td.active.focus,\n.datepicker table tr td.active.highlighted.focus {\n  color: #fff;\n  background-color: #286090;\n  border-color: #122b40;\n}\n.datepicker table tr td.active:hover,\n.datepicker table tr td.active.highlighted:hover {\n  color: #fff;\n  background-color: #286090;\n  border-color: #204d74;\n}\n.datepicker table tr td.active:active,\n.datepicker table tr td.active.highlighted:active,\n.datepicker table tr td.active.active,\n.datepicker table tr td.active.highlighted.active {\n  color: #fff;\n  background-color: #286090;\n  border-color: #204d74;\n}\n.datepicker table tr td.active:active:hover,\n.datepicker table tr td.active.highlighted:active:hover,\n.datepicker table tr td.active.active:hover,\n.datepicker table tr td.active.highlighted.active:hover,\n.datepicker table tr td.active:active:focus,\n.datepicker table tr td.active.highlighted:active:focus,\n.datepicker table tr td.active.active:focus,\n.datepicker table tr td.active.highlighted.active:focus,\n.datepicker table tr td.active:active.focus,\n.datepicker table tr td.active.highlighted:active.focus,\n.datepicker table tr td.active.active.focus,\n.datepicker table tr td.active.highlighted.active.focus {\n  color: #fff;\n  background-color: #204d74;\n  border-color: #122b40;\n}\n.datepicker table tr td.active.disabled:hover,\n.datepicker table tr td.active.highlighted.disabled:hover,\n.datepicker table tr td.active[disabled]:hover,\n.datepicker table tr td.active.highlighted[disabled]:hover,\nfieldset[disabled] .datepicker table tr td.active:hover,\nfieldset[disabled] .datepicker table tr td.active.highlighted:hover,\n.datepicker table tr td.active.disabled:focus,\n.datepicker table tr td.active.highlighted.disabled:focus,\n.datepicker table tr td.active[disabled]:focus,\n.datepicker table tr td.active.highlighted[disabled]:focus,\nfieldset[disabled] .datepicker table tr td.active:focus,\nfieldset[disabled] .datepicker table tr td.active.highlighted:focus,\n.datepicker table tr td.active.disabled.focus,\n.datepicker table tr td.active.highlighted.disabled.focus,\n.datepicker table tr td.active[disabled].focus,\n.datepicker table tr td.active.highlighted[disabled].focus,\nfieldset[disabled] .datepicker table tr td.active.focus,\nfieldset[disabled] .datepicker table tr td.active.highlighted.focus {\n  background-color: #337ab7;\n  border-color: #2e6da4;\n}\n.datepicker table tr td span {\n  display: block;\n  width: 23%;\n  height: 54px;\n  line-height: 54px;\n  float: left;\n  margin: 1%;\n  cursor: pointer;\n  border-radius: 4px;\n}\n.datepicker table tr td span:hover,\n.datepicker table tr td span.focused {\n  background: #eeeeee;\n}\n.datepicker table tr td span.disabled,\n.datepicker table tr td span.disabled:hover {\n  background: none;\n  color: #777777;\n  cursor: default;\n}\n.datepicker table tr td span.active,\n.datepicker table tr td span.active:hover,\n.datepicker table tr td span.active.disabled,\n.datepicker table tr td span.active.disabled:hover {\n  color: #fff;\n  background-color: #337ab7;\n  border-color: #2e6da4;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.datepicker table tr td span.active:focus,\n.datepicker table tr td span.active:hover:focus,\n.datepicker table tr td span.active.disabled:focus,\n.datepicker table tr td span.active.disabled:hover:focus,\n.datepicker table tr td span.active.focus,\n.datepicker table tr td span.active:hover.focus,\n.datepicker table tr td span.active.disabled.focus,\n.datepicker table tr td span.active.disabled:hover.focus {\n  color: #fff;\n  background-color: #286090;\n  border-color: #122b40;\n}\n.datepicker table tr td span.active:hover,\n.datepicker table tr td span.active:hover:hover,\n.datepicker table tr td span.active.disabled:hover,\n.datepicker table tr td span.active.disabled:hover:hover {\n  color: #fff;\n  background-color: #286090;\n  border-color: #204d74;\n}\n.datepicker table tr td span.active:active,\n.datepicker table tr td span.active:hover:active,\n.datepicker table tr td span.active.disabled:active,\n.datepicker table tr td span.active.disabled:hover:active,\n.datepicker table tr td span.active.active,\n.datepicker table tr td span.active:hover.active,\n.datepicker table tr td span.active.disabled.active,\n.datepicker table tr td span.active.disabled:hover.active {\n  color: #fff;\n  background-color: #286090;\n  border-color: #204d74;\n}\n.datepicker table tr td span.active:active:hover,\n.datepicker table tr td span.active:hover:active:hover,\n.datepicker table tr td span.active.disabled:active:hover,\n.datepicker table tr td span.active.disabled:hover:active:hover,\n.datepicker table tr td span.active.active:hover,\n.datepicker table tr td span.active:hover.active:hover,\n.datepicker table tr td span.active.disabled.active:hover,\n.datepicker table tr td span.active.disabled:hover.active:hover,\n.datepicker table tr td span.active:active:focus,\n.datepicker table tr td span.active:hover:active:focus,\n.datepicker table tr td span.active.disabled:active:focus,\n.datepicker table tr td span.active.disabled:hover:active:focus,\n.datepicker table tr td span.active.active:focus,\n.datepicker table tr td span.active:hover.active:focus,\n.datepicker table tr td span.active.disabled.active:focus,\n.datepicker table tr td span.active.disabled:hover.active:focus,\n.datepicker table tr td span.active:active.focus,\n.datepicker table tr td span.active:hover:active.focus,\n.datepicker table tr td span.active.disabled:active.focus,\n.datepicker table tr td span.active.disabled:hover:active.focus,\n.datepicker table tr td span.active.active.focus,\n.datepicker table tr td span.active:hover.active.focus,\n.datepicker table tr td span.active.disabled.active.focus,\n.datepicker table tr td span.active.disabled:hover.active.focus {\n  color: #fff;\n  background-color: #204d74;\n  border-color: #122b40;\n}\n.datepicker table tr td span.active.disabled:hover,\n.datepicker table tr td span.active:hover.disabled:hover,\n.datepicker table tr td span.active.disabled.disabled:hover,\n.datepicker table tr td span.active.disabled:hover.disabled:hover,\n.datepicker table tr td span.active[disabled]:hover,\n.datepicker table tr td span.active:hover[disabled]:hover,\n.datepicker table tr td span.active.disabled[disabled]:hover,\n.datepicker table tr td span.active.disabled:hover[disabled]:hover,\nfieldset[disabled] .datepicker table tr td span.active:hover,\nfieldset[disabled] .datepicker table tr td span.active:hover:hover,\nfieldset[disabled] .datepicker table tr td span.active.disabled:hover,\nfieldset[disabled] .datepicker table tr td span.active.disabled:hover:hover,\n.datepicker table tr td span.active.disabled:focus,\n.datepicker table tr td span.active:hover.disabled:focus,\n.datepicker table tr td span.active.disabled.disabled:focus,\n.datepicker table tr td span.active.disabled:hover.disabled:focus,\n.datepicker table tr td span.active[disabled]:focus,\n.datepicker table tr td span.active:hover[disabled]:focus,\n.datepicker table tr td span.active.disabled[disabled]:focus,\n.datepicker table tr td span.active.disabled:hover[disabled]:focus,\nfieldset[disabled] .datepicker table tr td span.active:focus,\nfieldset[disabled] .datepicker table tr td span.active:hover:focus,\nfieldset[disabled] .datepicker table tr td span.active.disabled:focus,\nfieldset[disabled] .datepicker table tr td span.active.disabled:hover:focus,\n.datepicker table tr td span.active.disabled.focus,\n.datepicker table tr td span.active:hover.disabled.focus,\n.datepicker table tr td span.active.disabled.disabled.focus,\n.datepicker table tr td span.active.disabled:hover.disabled.focus,\n.datepicker table tr td span.active[disabled].focus,\n.datepicker table tr td span.active:hover[disabled].focus,\n.datepicker table tr td span.active.disabled[disabled].focus,\n.datepicker table tr td span.active.disabled:hover[disabled].focus,\nfieldset[disabled] .datepicker table tr td span.active.focus,\nfieldset[disabled] .datepicker table tr td span.active:hover.focus,\nfieldset[disabled] .datepicker table tr td span.active.disabled.focus,\nfieldset[disabled] .datepicker table tr td span.active.disabled:hover.focus {\n  background-color: #337ab7;\n  border-color: #2e6da4;\n}\n.datepicker table tr td span.old,\n.datepicker table tr td span.new {\n  color: #777777;\n}\n.datepicker .datepicker-switch {\n  width: 145px;\n}\n.datepicker .datepicker-switch,\n.datepicker .prev,\n.datepicker .next,\n.datepicker tfoot tr th {\n  cursor: pointer;\n}\n.datepicker .datepicker-switch:hover,\n.datepicker .prev:hover,\n.datepicker .next:hover,\n.datepicker tfoot tr th:hover {\n  background: #eeeeee;\n}\n.datepicker .cw {\n  font-size: 10px;\n  width: 12px;\n  padding: 0 2px 0 5px;\n  vertical-align: middle;\n}\n.input-group.date .input-group-addon {\n  cursor: pointer;\n}\n.input-daterange {\n  width: 100%;\n}\n.input-daterange input {\n  text-align: center;\n}\n.input-daterange input:first-child {\n  border-radius: 3px 0 0 3px;\n}\n.input-daterange input:last-child {\n  border-radius: 0 3px 3px 0;\n}\n.input-daterange .input-group-addon {\n  width: auto;\n  min-width: 16px;\n  padding: 4px 5px;\n  line-height: 1.42857143;\n  text-shadow: 0 1px 0 #fff;\n  border-width: 1px 0;\n  margin-left: -5px;\n  margin-right: -5px;\n}\n.datepicker.dropdown-menu {\n  position: absolute;\n  top: 100%;\n  left: 0;\n  z-index: 1000;\n  display: none;\n  float: left;\n  min-width: 160px;\n  list-style: none;\n  background-color: #fff;\n  border: 1px solid #ccc;\n  border: 1px solid rgba(0, 0, 0, 0.15);\n  border-radius: 4px;\n  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n  -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n  -webkit-background-clip: padding-box;\n  -moz-background-clip: padding;\n  background-clip: padding-box;\n  color: #333333;\n  font-size: 13px;\n  line-height: 1.42857143;\n}\n.datepicker.dropdown-menu th,\n.datepicker.datepicker-inline th,\n.datepicker.dropdown-menu td,\n.datepicker.datepicker-inline td {\n  padding: 0px 5px;\n}\n/*# sourceMappingURL=bootstrap-datepicker3.standalone.css.map */"
  },
  {
    "path": "tool/date_picker/js/bootstrap-datepicker.js",
    "content": "/*!\n * Datepicker for Bootstrap v1.6.4 (https://github.com/eternicode/bootstrap-datepicker)\n *\n * Copyright 2012 Stefan Petre\n * Improvements by Andrew Rowls\n * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n */(function(factory){\n    if (typeof define === \"function\" && define.amd) {\n        define([\"jquery\"], factory);\n    } else if (typeof exports === 'object') {\n        factory(require('jquery'));\n    } else {\n        factory(jQuery);\n    }\n}(function($, undefined){\n\n\tfunction UTCDate(){\n\t\treturn new Date(Date.UTC.apply(Date, arguments));\n\t}\n\tfunction UTCToday(){\n\t\tvar today = new Date();\n\t\treturn UTCDate(today.getFullYear(), today.getMonth(), today.getDate());\n\t}\n\tfunction isUTCEquals(date1, date2) {\n\t\treturn (\n\t\t\tdate1.getUTCFullYear() === date2.getUTCFullYear() &&\n\t\t\tdate1.getUTCMonth() === date2.getUTCMonth() &&\n\t\t\tdate1.getUTCDate() === date2.getUTCDate()\n\t\t);\n\t}\n\tfunction alias(method){\n\t\treturn function(){\n\t\t\treturn this[method].apply(this, arguments);\n\t\t};\n\t}\n\tfunction isValidDate(d) {\n\t\treturn d && !isNaN(d.getTime());\n\t}\n\n\tvar DateArray = (function(){\n\t\tvar extras = {\n\t\t\tget: function(i){\n\t\t\t\treturn this.slice(i)[0];\n\t\t\t},\n\t\t\tcontains: function(d){\n\t\t\t\t// Array.indexOf is not cross-browser;\n\t\t\t\t// $.inArray doesn't work with Dates\n\t\t\t\tvar val = d && d.valueOf();\n\t\t\t\tfor (var i=0, l=this.length; i < l; i++)\n\t\t\t\t\tif (this[i].valueOf() === val)\n\t\t\t\t\t\treturn i;\n\t\t\t\treturn -1;\n\t\t\t},\n\t\t\tremove: function(i){\n\t\t\t\tthis.splice(i,1);\n\t\t\t},\n\t\t\treplace: function(new_array){\n\t\t\t\tif (!new_array)\n\t\t\t\t\treturn;\n\t\t\t\tif (!$.isArray(new_array))\n\t\t\t\t\tnew_array = [new_array];\n\t\t\t\tthis.clear();\n\t\t\t\tthis.push.apply(this, new_array);\n\t\t\t},\n\t\t\tclear: function(){\n\t\t\t\tthis.length = 0;\n\t\t\t},\n\t\t\tcopy: function(){\n\t\t\t\tvar a = new DateArray();\n\t\t\t\ta.replace(this);\n\t\t\t\treturn a;\n\t\t\t}\n\t\t};\n\n\t\treturn function(){\n\t\t\tvar a = [];\n\t\t\ta.push.apply(a, arguments);\n\t\t\t$.extend(a, extras);\n\t\t\treturn a;\n\t\t};\n\t})();\n\n\n\t// Picker object\n\n\tvar Datepicker = function(element, options){\n\t\t$(element).data('datepicker', this);\n\t\tthis._process_options(options);\n\n\t\tthis.dates = new DateArray();\n\t\tthis.viewDate = this.o.defaultViewDate;\n\t\tthis.focusDate = null;\n\n\t\tthis.element = $(element);\n\t\tthis.isInput = this.element.is('input');\n\t\tthis.inputField = this.isInput ? this.element : this.element.find('input');\n\t\tthis.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-addon, .btn') : false;\n\t\tthis.hasInput = this.component && this.inputField.length;\n\t\tif (this.component && this.component.length === 0)\n\t\t\tthis.component = false;\n\t\tthis.isInline = !this.component && this.element.is('div');\n\n\t\tthis.picker = $(DPGlobal.template);\n\n\t\t// Checking templates and inserting\n\t\tif (this._check_template(this.o.templates.leftArrow)) {\n\t\t\tthis.picker.find('.prev').html(this.o.templates.leftArrow);\n\t\t}\n\t\tif (this._check_template(this.o.templates.rightArrow)) {\n\t\t\tthis.picker.find('.next').html(this.o.templates.rightArrow);\n\t\t}\n\n\t\tthis._buildEvents();\n\t\tthis._attachEvents();\n\n\t\tif (this.isInline){\n\t\t\tthis.picker.addClass('datepicker-inline').appendTo(this.element);\n\t\t}\n\t\telse {\n\t\t\tthis.picker.addClass('datepicker-dropdown dropdown-menu');\n\t\t}\n\n\t\tif (this.o.rtl){\n\t\t\tthis.picker.addClass('datepicker-rtl');\n\t\t}\n\n\t\tthis.viewMode = this.o.startView;\n\n\t\tif (this.o.calendarWeeks)\n\t\t\tthis.picker.find('thead .datepicker-title, tfoot .today, tfoot .clear')\n\t\t\t\t\t\t.attr('colspan', function(i, val){\n\t\t\t\t\t\t\treturn parseInt(val) + 1;\n\t\t\t\t\t\t});\n\n\t\tthis._allow_update = false;\n\n\t\tthis.setStartDate(this._o.startDate);\n\t\tthis.setEndDate(this._o.endDate);\n\t\tthis.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);\n\t\tthis.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted);\n\t\tthis.setDatesDisabled(this.o.datesDisabled);\n\n\t\tthis.fillDow();\n\t\tthis.fillMonths();\n\n\t\tthis._allow_update = true;\n\n\t\tthis.update();\n\t\tthis.showMode();\n\n\t\tif (this.isInline){\n\t\t\tthis.show();\n\t\t}\n\t};\n\n\tDatepicker.prototype = {\n\t\tconstructor: Datepicker,\n\n\t\t_resolveViewName: function(view, default_value){\n\t\t\tif (view === 0 || view === 'days' || view === 'month') {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\tif (view === 1 || view === 'months' || view === 'year') {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif (view === 2 || view === 'years' || view === 'decade') {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tif (view === 3 || view === 'decades' || view === 'century') {\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t\tif (view === 4 || view === 'centuries' || view === 'millennium') {\n\t\t\t\treturn 4;\n\t\t\t}\n\t\t\treturn default_value === undefined ? false : default_value;\n\t\t},\n\n\t\t_check_template: function(tmp){\n\t\t\ttry {\n\t\t\t\t// If empty\n\t\t\t\tif (tmp === undefined || tmp === \"\") {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// If no html, everything ok\n\t\t\t\tif ((tmp.match(/[<>]/g) || []).length <= 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Checking if html is fine\n\t\t\t\tvar jDom = $(tmp);\n\t\t\t\treturn jDom.length > 0;\n\t\t\t}\n\t\t\tcatch (ex) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\n\t\t_process_options: function(opts){\n\t\t\t// Store raw options for reference\n\t\t\tthis._o = $.extend({}, this._o, opts);\n\t\t\t// Processed options\n\t\t\tvar o = this.o = $.extend({}, this._o);\n\n\t\t\t// Check if \"de-DE\" style date is available, if not language should\n\t\t\t// fallback to 2 letter code eg \"de\"\n\t\t\tvar lang = o.language;\n\t\t\tif (!dates[lang]){\n\t\t\t\tlang = lang.split('-')[0];\n\t\t\t\tif (!dates[lang])\n\t\t\t\t\tlang = defaults.language;\n\t\t\t}\n\t\t\to.language = lang;\n\n\t\t\t// Retrieve view index from any aliases\n\t\t\to.startView = this._resolveViewName(o.startView, 0);\n\t\t\to.minViewMode = this._resolveViewName(o.minViewMode, 0);\n\t\t\to.maxViewMode = this._resolveViewName(o.maxViewMode, 4);\n\n\t\t\t// Check that the start view is between min and max\n\t\t\to.startView = Math.min(o.startView, o.maxViewMode);\n\t\t\to.startView = Math.max(o.startView, o.minViewMode);\n\n\t\t\t// true, false, or Number > 0\n\t\t\tif (o.multidate !== true){\n\t\t\t\to.multidate = Number(o.multidate) || false;\n\t\t\t\tif (o.multidate !== false)\n\t\t\t\t\to.multidate = Math.max(0, o.multidate);\n\t\t\t}\n\t\t\to.multidateSeparator = String(o.multidateSeparator);\n\n\t\t\to.weekStart %= 7;\n\t\t\to.weekEnd = (o.weekStart + 6) % 7;\n\n\t\t\tvar format = DPGlobal.parseFormat(o.format);\n\t\t\tif (o.startDate !== -Infinity){\n\t\t\t\tif (!!o.startDate){\n\t\t\t\t\tif (o.startDate instanceof Date)\n\t\t\t\t\t\to.startDate = this._local_to_utc(this._zero_time(o.startDate));\n\t\t\t\t\telse\n\t\t\t\t\t\to.startDate = DPGlobal.parseDate(o.startDate, format, o.language, o.assumeNearbyYear);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\to.startDate = -Infinity;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (o.endDate !== Infinity){\n\t\t\t\tif (!!o.endDate){\n\t\t\t\t\tif (o.endDate instanceof Date)\n\t\t\t\t\t\to.endDate = this._local_to_utc(this._zero_time(o.endDate));\n\t\t\t\t\telse\n\t\t\t\t\t\to.endDate = DPGlobal.parseDate(o.endDate, format, o.language, o.assumeNearbyYear);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\to.endDate = Infinity;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\to.daysOfWeekDisabled = o.daysOfWeekDisabled||[];\n\t\t\tif (!$.isArray(o.daysOfWeekDisabled))\n\t\t\t\to.daysOfWeekDisabled = o.daysOfWeekDisabled.split(/[,\\s]*/);\n\t\t\to.daysOfWeekDisabled = $.map(o.daysOfWeekDisabled, function(d){\n\t\t\t\treturn parseInt(d, 10);\n\t\t\t});\n\n\t\t\to.daysOfWeekHighlighted = o.daysOfWeekHighlighted||[];\n\t\t\tif (!$.isArray(o.daysOfWeekHighlighted))\n\t\t\t\to.daysOfWeekHighlighted = o.daysOfWeekHighlighted.split(/[,\\s]*/);\n\t\t\to.daysOfWeekHighlighted = $.map(o.daysOfWeekHighlighted, function(d){\n\t\t\t\treturn parseInt(d, 10);\n\t\t\t});\n\n\t\t\to.datesDisabled = o.datesDisabled||[];\n\t\t\tif (!$.isArray(o.datesDisabled)) {\n\t\t\t\to.datesDisabled = [\n\t\t\t\t\to.datesDisabled\n\t\t\t\t];\n\t\t\t}\n\t\t\to.datesDisabled = $.map(o.datesDisabled,function(d){\n\t\t\t\treturn DPGlobal.parseDate(d, format, o.language, o.assumeNearbyYear);\n\t\t\t});\n\n\t\t\tvar plc = String(o.orientation).toLowerCase().split(/\\s+/g),\n\t\t\t\t_plc = o.orientation.toLowerCase();\n\t\t\tplc = $.grep(plc, function(word){\n\t\t\t\treturn /^auto|left|right|top|bottom$/.test(word);\n\t\t\t});\n\t\t\to.orientation = {x: 'auto', y: 'auto'};\n\t\t\tif (!_plc || _plc === 'auto')\n\t\t\t\t; // no action\n\t\t\telse if (plc.length === 1){\n\t\t\t\tswitch (plc[0]){\n\t\t\t\t\tcase 'top':\n\t\t\t\t\tcase 'bottom':\n\t\t\t\t\t\to.orientation.y = plc[0];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'left':\n\t\t\t\t\tcase 'right':\n\t\t\t\t\t\to.orientation.x = plc[0];\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t_plc = $.grep(plc, function(word){\n\t\t\t\t\treturn /^left|right$/.test(word);\n\t\t\t\t});\n\t\t\t\to.orientation.x = _plc[0] || 'auto';\n\n\t\t\t\t_plc = $.grep(plc, function(word){\n\t\t\t\t\treturn /^top|bottom$/.test(word);\n\t\t\t\t});\n\t\t\t\to.orientation.y = _plc[0] || 'auto';\n\t\t\t}\n\t\t\tif (o.defaultViewDate) {\n\t\t\t\tvar year = o.defaultViewDate.year || new Date().getFullYear();\n\t\t\t\tvar month = o.defaultViewDate.month || 0;\n\t\t\t\tvar day = o.defaultViewDate.day || 1;\n\t\t\t\to.defaultViewDate = UTCDate(year, month, day);\n\t\t\t} else {\n\t\t\t\to.defaultViewDate = UTCToday();\n\t\t\t}\n\t\t},\n\t\t_events: [],\n\t\t_secondaryEvents: [],\n\t\t_applyEvents: function(evs){\n\t\t\tfor (var i=0, el, ch, ev; i < evs.length; i++){\n\t\t\t\tel = evs[i][0];\n\t\t\t\tif (evs[i].length === 2){\n\t\t\t\t\tch = undefined;\n\t\t\t\t\tev = evs[i][1];\n\t\t\t\t}\n\t\t\t\telse if (evs[i].length === 3){\n\t\t\t\t\tch = evs[i][1];\n\t\t\t\t\tev = evs[i][2];\n\t\t\t\t}\n\t\t\t\tel.on(ev, ch);\n\t\t\t}\n\t\t},\n\t\t_unapplyEvents: function(evs){\n\t\t\tfor (var i=0, el, ev, ch; i < evs.length; i++){\n\t\t\t\tel = evs[i][0];\n\t\t\t\tif (evs[i].length === 2){\n\t\t\t\t\tch = undefined;\n\t\t\t\t\tev = evs[i][1];\n\t\t\t\t}\n\t\t\t\telse if (evs[i].length === 3){\n\t\t\t\t\tch = evs[i][1];\n\t\t\t\t\tev = evs[i][2];\n\t\t\t\t}\n\t\t\t\tel.off(ev, ch);\n\t\t\t}\n\t\t},\n\t\t_buildEvents: function(){\n            var events = {\n                keyup: $.proxy(function(e){\n                    if ($.inArray(e.keyCode, [27, 37, 39, 38, 40, 32, 13, 9]) === -1)\n                        this.update();\n                }, this),\n                keydown: $.proxy(this.keydown, this),\n                paste: $.proxy(this.paste, this)\n            };\n\n            if (this.o.showOnFocus === true) {\n                events.focus = $.proxy(this.show, this);\n            }\n\n            if (this.isInput) { // single input\n                this._events = [\n                    [this.element, events]\n                ];\n            }\n            else if (this.component && this.hasInput) { // component: input + button\n                this._events = [\n                    // For components that are not readonly, allow keyboard nav\n                    [this.inputField, events],\n                    [this.component, {\n                        click: $.proxy(this.show, this)\n                    }]\n                ];\n            }\n\t\t\telse {\n\t\t\t\tthis._events = [\n\t\t\t\t\t[this.element, {\n\t\t\t\t\t\tclick: $.proxy(this.show, this),\n\t\t\t\t\t\tkeydown: $.proxy(this.keydown, this)\n\t\t\t\t\t}]\n\t\t\t\t];\n\t\t\t}\n\t\t\tthis._events.push(\n\t\t\t\t// Component: listen for blur on element descendants\n\t\t\t\t[this.element, '*', {\n\t\t\t\t\tblur: $.proxy(function(e){\n\t\t\t\t\t\tthis._focused_from = e.target;\n\t\t\t\t\t}, this)\n\t\t\t\t}],\n\t\t\t\t// Input: listen for blur on element\n\t\t\t\t[this.element, {\n\t\t\t\t\tblur: $.proxy(function(e){\n\t\t\t\t\t\tthis._focused_from = e.target;\n\t\t\t\t\t}, this)\n\t\t\t\t}]\n\t\t\t);\n\n\t\t\tif (this.o.immediateUpdates) {\n\t\t\t\t// Trigger input updates immediately on changed year/month\n\t\t\t\tthis._events.push([this.element, {\n\t\t\t\t\t'changeYear changeMonth': $.proxy(function(e){\n\t\t\t\t\t\tthis.update(e.date);\n\t\t\t\t\t}, this)\n\t\t\t\t}]);\n\t\t\t}\n\n\t\t\tthis._secondaryEvents = [\n\t\t\t\t[this.picker, {\n\t\t\t\t\tclick: $.proxy(this.click, this)\n\t\t\t\t}],\n\t\t\t\t[$(window), {\n\t\t\t\t\tresize: $.proxy(this.place, this)\n\t\t\t\t}],\n\t\t\t\t[$(document), {\n\t\t\t\t\tmousedown: $.proxy(function(e){\n\t\t\t\t\t\t// Clicked outside the datepicker, hide it\n\t\t\t\t\t\tif (!(\n\t\t\t\t\t\t\tthis.element.is(e.target) ||\n\t\t\t\t\t\t\tthis.element.find(e.target).length ||\n\t\t\t\t\t\t\tthis.picker.is(e.target) ||\n\t\t\t\t\t\t\tthis.picker.find(e.target).length ||\n\t\t\t\t\t\t\tthis.isInline\n\t\t\t\t\t\t)){\n\t\t\t\t\t\t\tthis.hide();\n\t\t\t\t\t\t}\n\t\t\t\t\t}, this)\n\t\t\t\t}]\n\t\t\t];\n\t\t},\n\t\t_attachEvents: function(){\n\t\t\tthis._detachEvents();\n\t\t\tthis._applyEvents(this._events);\n\t\t},\n\t\t_detachEvents: function(){\n\t\t\tthis._unapplyEvents(this._events);\n\t\t},\n\t\t_attachSecondaryEvents: function(){\n\t\t\tthis._detachSecondaryEvents();\n\t\t\tthis._applyEvents(this._secondaryEvents);\n\t\t},\n\t\t_detachSecondaryEvents: function(){\n\t\t\tthis._unapplyEvents(this._secondaryEvents);\n\t\t},\n\t\t_trigger: function(event, altdate){\n\t\t\tvar date = altdate || this.dates.get(-1),\n\t\t\t\tlocal_date = this._utc_to_local(date);\n\n\t\t\tthis.element.trigger({\n\t\t\t\ttype: event,\n\t\t\t\tdate: local_date,\n\t\t\t\tdates: $.map(this.dates, this._utc_to_local),\n\t\t\t\tformat: $.proxy(function(ix, format){\n\t\t\t\t\tif (arguments.length === 0){\n\t\t\t\t\t\tix = this.dates.length - 1;\n\t\t\t\t\t\tformat = this.o.format;\n\t\t\t\t\t}\n\t\t\t\t\telse if (typeof ix === 'string'){\n\t\t\t\t\t\tformat = ix;\n\t\t\t\t\t\tix = this.dates.length - 1;\n\t\t\t\t\t}\n\t\t\t\t\tformat = format || this.o.format;\n\t\t\t\t\tvar date = this.dates.get(ix);\n\t\t\t\t\treturn DPGlobal.formatDate(date, format, this.o.language);\n\t\t\t\t}, this)\n\t\t\t});\n\t\t},\n\n\t\tshow: function(){\n\t\t\tif (this.inputField.prop('disabled') || (this.inputField.prop('readonly') && this.o.enableOnReadonly === false))\n\t\t\t\treturn;\n\t\t\tif (!this.isInline)\n\t\t\t\tthis.picker.appendTo(this.o.container);\n\t\t\tthis.place();\n\t\t\tthis.picker.show();\n\t\t\tthis._attachSecondaryEvents();\n\t\t\tthis._trigger('show');\n\t\t\tif ((window.navigator.msMaxTouchPoints || 'ontouchstart' in document) && this.o.disableTouchKeyboard) {\n\t\t\t\t$(this.element).blur();\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\thide: function(){\n\t\t\tif (this.isInline || !this.picker.is(':visible'))\n\t\t\t\treturn this;\n\t\t\tthis.focusDate = null;\n\t\t\tthis.picker.hide().detach();\n\t\t\tthis._detachSecondaryEvents();\n\t\t\tthis.viewMode = this.o.startView;\n\t\t\tthis.showMode();\n\n\t\t\tif (this.o.forceParse && this.inputField.val())\n\t\t\t\tthis.setValue();\n\t\t\tthis._trigger('hide');\n\t\t\treturn this;\n\t\t},\n\n\t\tdestroy: function(){\n\t\t\tthis.hide();\n\t\t\tthis._detachEvents();\n\t\t\tthis._detachSecondaryEvents();\n\t\t\tthis.picker.remove();\n\t\t\tdelete this.element.data().datepicker;\n\t\t\tif (!this.isInput){\n\t\t\t\tdelete this.element.data().date;\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\tpaste: function(evt){\n\t\t\tvar dateString;\n\t\t\tif (evt.originalEvent.clipboardData && evt.originalEvent.clipboardData.types\n\t\t\t\t&& $.inArray('text/plain', evt.originalEvent.clipboardData.types) !== -1) {\n\t\t\t\tdateString = evt.originalEvent.clipboardData.getData('text/plain');\n\t\t\t}\n\t\t\telse if (window.clipboardData) {\n\t\t\t\tdateString = window.clipboardData.getData('Text');\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.setDate(dateString);\n\t\t\tthis.update();\n\t\t\tevt.preventDefault();\n\t\t},\n\n\t\t_utc_to_local: function(utc){\n\t\t\treturn utc && new Date(utc.getTime() + (utc.getTimezoneOffset()*60000));\n\t\t},\n\t\t_local_to_utc: function(local){\n\t\t\treturn local && new Date(local.getTime() - (local.getTimezoneOffset()*60000));\n\t\t},\n\t\t_zero_time: function(local){\n\t\t\treturn local && new Date(local.getFullYear(), local.getMonth(), local.getDate());\n\t\t},\n\t\t_zero_utc_time: function(utc){\n\t\t\treturn utc && new Date(Date.UTC(utc.getUTCFullYear(), utc.getUTCMonth(), utc.getUTCDate()));\n\t\t},\n\n\t\tgetDates: function(){\n\t\t\treturn $.map(this.dates, this._utc_to_local);\n\t\t},\n\n\t\tgetUTCDates: function(){\n\t\t\treturn $.map(this.dates, function(d){\n\t\t\t\treturn new Date(d);\n\t\t\t});\n\t\t},\n\n\t\tgetDate: function(){\n\t\t\treturn this._utc_to_local(this.getUTCDate());\n\t\t},\n\n\t\tgetUTCDate: function(){\n\t\t\tvar selected_date = this.dates.get(-1);\n\t\t\tif (typeof selected_date !== 'undefined') {\n\t\t\t\treturn new Date(selected_date);\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t},\n\n\t\tclearDates: function(){\n\t\t\tif (this.inputField) {\n\t\t\t\tthis.inputField.val('');\n\t\t\t}\n\n\t\t\tthis.update();\n\t\t\tthis._trigger('changeDate');\n\n\t\t\tif (this.o.autoclose) {\n\t\t\t\tthis.hide();\n\t\t\t}\n\t\t},\n\t\tsetDates: function(){\n\t\t\tvar args = $.isArray(arguments[0]) ? arguments[0] : arguments;\n\t\t\tthis.update.apply(this, args);\n\t\t\tthis._trigger('changeDate');\n\t\t\tthis.setValue();\n\t\t\treturn this;\n\t\t},\n\n\t\tsetUTCDates: function(){\n\t\t\tvar args = $.isArray(arguments[0]) ? arguments[0] : arguments;\n\t\t\tthis.update.apply(this, $.map(args, this._utc_to_local));\n\t\t\tthis._trigger('changeDate');\n\t\t\tthis.setValue();\n\t\t\treturn this;\n\t\t},\n\n\t\tsetDate: alias('setDates'),\n\t\tsetUTCDate: alias('setUTCDates'),\n\t\tremove: alias('destroy'),\n\n\t\tsetValue: function(){\n\t\t\tvar formatted = this.getFormattedDate();\n\t\t\tthis.inputField.val(formatted);\n\t\t\treturn this;\n\t\t},\n\n\t\tgetFormattedDate: function(format){\n\t\t\tif (format === undefined)\n\t\t\t\tformat = this.o.format;\n\n\t\t\tvar lang = this.o.language;\n\t\t\treturn $.map(this.dates, function(d){\n\t\t\t\treturn DPGlobal.formatDate(d, format, lang);\n\t\t\t}).join(this.o.multidateSeparator);\n\t\t},\n\n\t\tgetStartDate: function(){\n\t\t\treturn this.o.startDate;\n\t\t},\n\n\t\tsetStartDate: function(startDate){\n\t\t\tthis._process_options({startDate: startDate});\n\t\t\tthis.update();\n\t\t\tthis.updateNavArrows();\n\t\t\treturn this;\n\t\t},\n\n\t\tgetEndDate: function(){\n\t\t\treturn this.o.endDate;\n\t\t},\n\n\t\tsetEndDate: function(endDate){\n\t\t\tthis._process_options({endDate: endDate});\n\t\t\tthis.update();\n\t\t\tthis.updateNavArrows();\n\t\t\treturn this;\n\t\t},\n\n\t\tsetDaysOfWeekDisabled: function(daysOfWeekDisabled){\n\t\t\tthis._process_options({daysOfWeekDisabled: daysOfWeekDisabled});\n\t\t\tthis.update();\n\t\t\tthis.updateNavArrows();\n\t\t\treturn this;\n\t\t},\n\n\t\tsetDaysOfWeekHighlighted: function(daysOfWeekHighlighted){\n\t\t\tthis._process_options({daysOfWeekHighlighted: daysOfWeekHighlighted});\n\t\t\tthis.update();\n\t\t\treturn this;\n\t\t},\n\n\t\tsetDatesDisabled: function(datesDisabled){\n\t\t\tthis._process_options({datesDisabled: datesDisabled});\n\t\t\tthis.update();\n\t\t\tthis.updateNavArrows();\n\t\t},\n\n\t\tplace: function(){\n\t\t\tif (this.isInline)\n\t\t\t\treturn this;\n\t\t\tvar calendarWidth = this.picker.outerWidth(),\n\t\t\t\tcalendarHeight = this.picker.outerHeight(),\n\t\t\t\tvisualPadding = 10,\n\t\t\t\tcontainer = $(this.o.container),\n\t\t\t\twindowWidth = container.width(),\n\t\t\t\tscrollTop = this.o.container === 'body' ? $(document).scrollTop() : container.scrollTop(),\n\t\t\t\tappendOffset = container.offset();\n\n\t\t\tvar parentsZindex = [];\n\t\t\tthis.element.parents().each(function(){\n\t\t\t\tvar itemZIndex = $(this).css('z-index');\n\t\t\t\tif (itemZIndex !== 'auto' && itemZIndex !== 0) parentsZindex.push(parseInt(itemZIndex));\n\t\t\t});\n\t\t\tvar zIndex = Math.max.apply(Math, parentsZindex) + this.o.zIndexOffset;\n\t\t\tvar offset = this.component ? this.component.parent().offset() : this.element.offset();\n\t\t\tvar height = this.component ? this.component.outerHeight(true) : this.element.outerHeight(false);\n\t\t\tvar width = this.component ? this.component.outerWidth(true) : this.element.outerWidth(false);\n\t\t\tvar left = offset.left - appendOffset.left,\n\t\t\t\ttop = offset.top - appendOffset.top;\n\n\t\t\tif (this.o.container !== 'body') {\n\t\t\t\ttop += scrollTop;\n\t\t\t}\n\n\t\t\tthis.picker.removeClass(\n\t\t\t\t'datepicker-orient-top datepicker-orient-bottom '+\n\t\t\t\t'datepicker-orient-right datepicker-orient-left'\n\t\t\t);\n\n\t\t\tif (this.o.orientation.x !== 'auto'){\n\t\t\t\tthis.picker.addClass('datepicker-orient-' + this.o.orientation.x);\n\t\t\t\tif (this.o.orientation.x === 'right')\n\t\t\t\t\tleft -= calendarWidth - width;\n\t\t\t}\n\t\t\t// auto x orientation is best-placement: if it crosses a window\n\t\t\t// edge, fudge it sideways\n\t\t\telse {\n\t\t\t\tif (offset.left < 0) {\n\t\t\t\t\t// component is outside the window on the left side. Move it into visible range\n\t\t\t\t\tthis.picker.addClass('datepicker-orient-left');\n\t\t\t\t\tleft -= offset.left - visualPadding;\n\t\t\t\t} else if (left + calendarWidth > windowWidth) {\n\t\t\t\t\t// the calendar passes the widow right edge. Align it to component right side\n\t\t\t\t\tthis.picker.addClass('datepicker-orient-right');\n\t\t\t\t\tleft += width - calendarWidth;\n\t\t\t\t} else {\n\t\t\t\t\t// Default to left\n\t\t\t\t\tthis.picker.addClass('datepicker-orient-left');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// auto y orientation is best-situation: top or bottom, no fudging,\n\t\t\t// decision based on which shows more of the calendar\n\t\t\tvar yorient = this.o.orientation.y,\n\t\t\t\ttop_overflow;\n\t\t\tif (yorient === 'auto'){\n\t\t\t\ttop_overflow = -scrollTop + top - calendarHeight;\n\t\t\t\tyorient = top_overflow < 0 ? 'bottom' : 'top';\n\t\t\t}\n\n\t\t\tthis.picker.addClass('datepicker-orient-' + yorient);\n\t\t\tif (yorient === 'top')\n\t\t\t\ttop -= calendarHeight + parseInt(this.picker.css('padding-top'));\n\t\t\telse\n\t\t\t\ttop += height;\n\n\t\t\tif (this.o.rtl) {\n\t\t\t\tvar right = windowWidth - (left + width);\n\t\t\t\tthis.picker.css({\n\t\t\t\t\ttop: top,\n\t\t\t\t\tright: right,\n\t\t\t\t\tzIndex: zIndex\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.picker.css({\n\t\t\t\t\ttop: top,\n\t\t\t\t\tleft: left,\n\t\t\t\t\tzIndex: zIndex\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\t_allow_update: true,\n\t\tupdate: function(){\n\t\t\tif (!this._allow_update)\n\t\t\t\treturn this;\n\n\t\t\tvar oldDates = this.dates.copy(),\n\t\t\t\tdates = [],\n\t\t\t\tfromArgs = false;\n\t\t\tif (arguments.length){\n\t\t\t\t$.each(arguments, $.proxy(function(i, date){\n\t\t\t\t\tif (date instanceof Date)\n\t\t\t\t\t\tdate = this._local_to_utc(date);\n\t\t\t\t\tdates.push(date);\n\t\t\t\t}, this));\n\t\t\t\tfromArgs = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdates = this.isInput\n\t\t\t\t\t\t? this.element.val()\n\t\t\t\t\t\t: this.element.data('date') || this.inputField.val();\n\t\t\t\tif (dates && this.o.multidate)\n\t\t\t\t\tdates = dates.split(this.o.multidateSeparator);\n\t\t\t\telse\n\t\t\t\t\tdates = [dates];\n\t\t\t\tdelete this.element.data().date;\n\t\t\t}\n\n\t\t\tdates = $.map(dates, $.proxy(function(date){\n\t\t\t\treturn DPGlobal.parseDate(date, this.o.format, this.o.language, this.o.assumeNearbyYear);\n\t\t\t}, this));\n\t\t\tdates = $.grep(dates, $.proxy(function(date){\n\t\t\t\treturn (\n\t\t\t\t\t!this.dateWithinRange(date) ||\n\t\t\t\t\t!date\n\t\t\t\t);\n\t\t\t}, this), true);\n\t\t\tthis.dates.replace(dates);\n\n\t\t\tif (this.dates.length)\n\t\t\t\tthis.viewDate = new Date(this.dates.get(-1));\n\t\t\telse if (this.viewDate < this.o.startDate)\n\t\t\t\tthis.viewDate = new Date(this.o.startDate);\n\t\t\telse if (this.viewDate > this.o.endDate)\n\t\t\t\tthis.viewDate = new Date(this.o.endDate);\n\t\t\telse\n\t\t\t\tthis.viewDate = this.o.defaultViewDate;\n\n\t\t\tif (fromArgs){\n\t\t\t\t// setting date by clicking\n\t\t\t\tthis.setValue();\n\t\t\t}\n\t\t\telse if (dates.length){\n\t\t\t\t// setting date by typing\n\t\t\t\tif (String(oldDates) !== String(this.dates))\n\t\t\t\t\tthis._trigger('changeDate');\n\t\t\t}\n\t\t\tif (!this.dates.length && oldDates.length)\n\t\t\t\tthis._trigger('clearDate');\n\n\t\t\tthis.fill();\n\t\t\tthis.element.change();\n\t\t\treturn this;\n\t\t},\n\n\t\tfillDow: function(){\n\t\t\tvar dowCnt = this.o.weekStart,\n\t\t\t\thtml = '<tr>';\n\t\t\tif (this.o.calendarWeeks){\n\t\t\t\tthis.picker.find('.datepicker-days .datepicker-switch')\n\t\t\t\t\t.attr('colspan', function(i, val){\n\t\t\t\t\t\treturn parseInt(val) + 1;\n\t\t\t\t\t});\n\t\t\t\thtml += '<th class=\"cw\">&#160;</th>';\n\t\t\t}\n\t\t\twhile (dowCnt < this.o.weekStart + 7){\n\t\t\t\thtml += '<th class=\"dow';\n        if ($.inArray(dowCnt, this.o.daysOfWeekDisabled) > -1)\n          html += ' disabled';\n        html += '\">'+dates[this.o.language].daysMin[(dowCnt++)%7]+'</th>';\n\t\t\t}\n\t\t\thtml += '</tr>';\n\t\t\tthis.picker.find('.datepicker-days thead').append(html);\n\t\t},\n\n\t\tfillMonths: function(){\n      var localDate = this._utc_to_local(this.viewDate);\n\t\t\tvar html = '',\n\t\t\ti = 0;\n\t\t\twhile (i < 12){\n        var focused = localDate && localDate.getMonth() === i ? ' focused' : '';\n\t\t\t\thtml += '<span class=\"month' + focused + '\">' + dates[this.o.language].monthsShort[i++]+'</span>';\n\t\t\t}\n\t\t\tthis.picker.find('.datepicker-months td').html(html);\n\t\t},\n\n\t\tsetRange: function(range){\n\t\t\tif (!range || !range.length)\n\t\t\t\tdelete this.range;\n\t\t\telse\n\t\t\t\tthis.range = $.map(range, function(d){\n\t\t\t\t\treturn d.valueOf();\n\t\t\t\t});\n\t\t\tthis.fill();\n\t\t},\n\n\t\tgetClassNames: function(date){\n\t\t\tvar cls = [],\n\t\t\t\tyear = this.viewDate.getUTCFullYear(),\n\t\t\t\tmonth = this.viewDate.getUTCMonth(),\n\t\t\t\ttoday = new Date();\n\t\t\tif (date.getUTCFullYear() < year || (date.getUTCFullYear() === year && date.getUTCMonth() < month)){\n\t\t\t\tcls.push('old');\n\t\t\t}\n\t\t\telse if (date.getUTCFullYear() > year || (date.getUTCFullYear() === year && date.getUTCMonth() > month)){\n\t\t\t\tcls.push('new');\n\t\t\t}\n\t\t\tif (this.focusDate && date.valueOf() === this.focusDate.valueOf())\n\t\t\t\tcls.push('focused');\n\t\t\t// Compare internal UTC date with local today, not UTC today\n\t\t\tif (this.o.todayHighlight &&\n\t\t\t\tdate.getUTCFullYear() === today.getFullYear() &&\n\t\t\t\tdate.getUTCMonth() === today.getMonth() &&\n\t\t\t\tdate.getUTCDate() === today.getDate()){\n\t\t\t\tcls.push('today');\n\t\t\t}\n\t\t\tif (this.dates.contains(date) !== -1)\n\t\t\t\tcls.push('active');\n\t\t\tif (!this.dateWithinRange(date)){\n\t\t\t\tcls.push('disabled');\n\t\t\t}\n\t\t\tif (this.dateIsDisabled(date)){\n\t\t\t\tcls.push('disabled', 'disabled-date');\t\n\t\t\t} \n\t\t\tif ($.inArray(date.getUTCDay(), this.o.daysOfWeekHighlighted) !== -1){\n\t\t\t\tcls.push('highlighted');\n\t\t\t}\n\n\t\t\tif (this.range){\n\t\t\t\tif (date > this.range[0] && date < this.range[this.range.length-1]){\n\t\t\t\t\tcls.push('range');\n\t\t\t\t}\n\t\t\t\tif ($.inArray(date.valueOf(), this.range) !== -1){\n\t\t\t\t\tcls.push('selected');\n\t\t\t\t}\n\t\t\t\tif (date.valueOf() === this.range[0]){\n          cls.push('range-start');\n        }\n        if (date.valueOf() === this.range[this.range.length-1]){\n          cls.push('range-end');\n        }\n\t\t\t}\n\t\t\treturn cls;\n\t\t},\n\n\t\t_fill_yearsView: function(selector, cssClass, factor, step, currentYear, startYear, endYear, callback){\n\t\t\tvar html, view, year, steps, startStep, endStep, thisYear, i, classes, tooltip, before;\n\n\t\t\thtml      = '';\n\t\t\tview      = this.picker.find(selector);\n\t\t\tyear      = parseInt(currentYear / factor, 10) * factor;\n\t\t\tstartStep = parseInt(startYear / step, 10) * step;\n\t\t\tendStep   = parseInt(endYear / step, 10) * step;\n\t\t\tsteps     = $.map(this.dates, function(d){\n\t\t\t\treturn parseInt(d.getUTCFullYear() / step, 10) * step;\n\t\t\t});\n\n\t\t\tview.find('.datepicker-switch').text(year + '-' + (year + step * 9));\n\n\t\t\tthisYear = year - step;\n\t\t\tfor (i = -1; i < 11; i += 1) {\n\t\t\t\tclasses = [cssClass];\n\t\t\t\ttooltip = null;\n\n\t\t\t\tif (i === -1) {\n\t\t\t\t\tclasses.push('old');\n\t\t\t\t} else if (i === 10) {\n\t\t\t\t\tclasses.push('new');\n\t\t\t\t}\n\t\t\t\tif ($.inArray(thisYear, steps) !== -1) {\n\t\t\t\t\tclasses.push('active');\n\t\t\t\t}\n\t\t\t\tif (thisYear < startStep || thisYear > endStep) {\n\t\t\t\t\tclasses.push('disabled');\n\t\t\t\t}\n        if (thisYear === this.viewDate.getFullYear()) {\n\t\t\t\t  classes.push('focused');\n        }\n\n\t\t\t\tif (callback !== $.noop) {\n\t\t\t\t\tbefore = callback(new Date(thisYear, 0, 1));\n\t\t\t\t\tif (before === undefined) {\n\t\t\t\t\t\tbefore = {};\n\t\t\t\t\t} else if (typeof(before) === 'boolean') {\n\t\t\t\t\t\tbefore = {enabled: before};\n\t\t\t\t\t} else if (typeof(before) === 'string') {\n\t\t\t\t\t\tbefore = {classes: before};\n\t\t\t\t\t}\n\t\t\t\t\tif (before.enabled === false) {\n\t\t\t\t\t\tclasses.push('disabled');\n\t\t\t\t\t}\n\t\t\t\t\tif (before.classes) {\n\t\t\t\t\t\tclasses = classes.concat(before.classes.split(/\\s+/));\n\t\t\t\t\t}\n\t\t\t\t\tif (before.tooltip) {\n\t\t\t\t\t\ttooltip = before.tooltip;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\thtml += '<span class=\"' + classes.join(' ') + '\"' + (tooltip ? ' title=\"' + tooltip + '\"' : '') + '>' + thisYear + '</span>';\n\t\t\t\tthisYear += step;\n\t\t\t}\n\t\t\tview.find('td').html(html);\n\t\t},\n\n\t\tfill: function(){\n\t\t\tvar d = new Date(this.viewDate),\n\t\t\t\tyear = d.getUTCFullYear(),\n\t\t\t\tmonth = d.getUTCMonth(),\n\t\t\t\tstartYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,\n\t\t\t\tstartMonth = this.o.startDate !== -Infinity ? this.o.startDate.getUTCMonth() : -Infinity,\n\t\t\t\tendYear = this.o.endDate !== Infinity ? this.o.endDate.getUTCFullYear() : Infinity,\n\t\t\t\tendMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,\n\t\t\t\ttodaytxt = dates[this.o.language].today || dates['en'].today || '',\n\t\t\t\tcleartxt = dates[this.o.language].clear || dates['en'].clear || '',\n\t\t\t\ttitleFormat = dates[this.o.language].titleFormat || dates['en'].titleFormat,\n\t\t\t\ttooltip,\n\t\t\t\tbefore;\n\t\t\tif (isNaN(year) || isNaN(month))\n\t\t\t\treturn;\n\t\t\tthis.picker.find('.datepicker-days .datepicker-switch')\n\t\t\t\t\t\t.text(DPGlobal.formatDate(d, titleFormat, this.o.language));\n\t\t\tthis.picker.find('tfoot .today')\n\t\t\t\t\t\t.text(todaytxt)\n\t\t\t\t\t\t.toggle(this.o.todayBtn !== false);\n\t\t\tthis.picker.find('tfoot .clear')\n\t\t\t\t\t\t.text(cleartxt)\n\t\t\t\t\t\t.toggle(this.o.clearBtn !== false);\n\t\t\tthis.picker.find('thead .datepicker-title')\n\t\t\t\t\t\t.text(this.o.title)\n\t\t\t\t\t\t.toggle(this.o.title !== '');\n\t\t\tthis.updateNavArrows();\n\t\t\tthis.fillMonths();\n\t\t\tvar prevMonth = UTCDate(year, month-1, 28),\n\t\t\t\tday = DPGlobal.getDaysInMonth(prevMonth.getUTCFullYear(), prevMonth.getUTCMonth());\n\t\t\tprevMonth.setUTCDate(day);\n\t\t\tprevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.o.weekStart + 7)%7);\n\t\t\tvar nextMonth = new Date(prevMonth);\n\t\t\tif (prevMonth.getUTCFullYear() < 100){\n        nextMonth.setUTCFullYear(prevMonth.getUTCFullYear());\n      }\n\t\t\tnextMonth.setUTCDate(nextMonth.getUTCDate() + 42);\n\t\t\tnextMonth = nextMonth.valueOf();\n\t\t\tvar html = [];\n\t\t\tvar clsName;\n\t\t\twhile (prevMonth.valueOf() < nextMonth){\n\t\t\t\tif (prevMonth.getUTCDay() === this.o.weekStart){\n\t\t\t\t\thtml.push('<tr>');\n\t\t\t\t\tif (this.o.calendarWeeks){\n\t\t\t\t\t\t// ISO 8601: First week contains first thursday.\n\t\t\t\t\t\t// ISO also states week starts on Monday, but we can be more abstract here.\n\t\t\t\t\t\tvar\n\t\t\t\t\t\t\t// Start of current week: based on weekstart/current date\n\t\t\t\t\t\t\tws = new Date(+prevMonth + (this.o.weekStart - prevMonth.getUTCDay() - 7) % 7 * 864e5),\n\t\t\t\t\t\t\t// Thursday of this week\n\t\t\t\t\t\t\tth = new Date(Number(ws) + (7 + 4 - ws.getUTCDay()) % 7 * 864e5),\n\t\t\t\t\t\t\t// First Thursday of year, year from thursday\n\t\t\t\t\t\t\tyth = new Date(Number(yth = UTCDate(th.getUTCFullYear(), 0, 1)) + (7 + 4 - yth.getUTCDay())%7*864e5),\n\t\t\t\t\t\t\t// Calendar week: ms between thursdays, div ms per day, div 7 days\n\t\t\t\t\t\t\tcalWeek =  (th - yth) / 864e5 / 7 + 1;\n\t\t\t\t\t\thtml.push('<td class=\"cw\">'+ calWeek +'</td>');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tclsName = this.getClassNames(prevMonth);\n\t\t\t\tclsName.push('day');\n\n\t\t\t\tif (this.o.beforeShowDay !== $.noop){\n\t\t\t\t\tbefore = this.o.beforeShowDay(this._utc_to_local(prevMonth));\n\t\t\t\t\tif (before === undefined)\n\t\t\t\t\t\tbefore = {};\n\t\t\t\t\telse if (typeof(before) === 'boolean')\n\t\t\t\t\t\tbefore = {enabled: before};\n\t\t\t\t\telse if (typeof(before) === 'string')\n\t\t\t\t\t\tbefore = {classes: before};\n\t\t\t\t\tif (before.enabled === false)\n\t\t\t\t\t\tclsName.push('disabled');\n\t\t\t\t\tif (before.classes)\n\t\t\t\t\t\tclsName = clsName.concat(before.classes.split(/\\s+/));\n\t\t\t\t\tif (before.tooltip)\n\t\t\t\t\t\ttooltip = before.tooltip;\n\t\t\t\t}\n\n\t\t\t\t//Check if uniqueSort exists (supported by jquery >=1.12 and >=2.2)\n\t\t\t\t//Fallback to unique function for older jquery versions\n\t\t\t\tif ($.isFunction($.uniqueSort)) {\n\t\t\t\t\tclsName = $.uniqueSort(clsName);\n\t\t\t\t} else {\n\t\t\t\t\tclsName = $.unique(clsName);\n\t\t\t\t}\n\n\t\t\t\thtml.push('<td class=\"'+clsName.join(' ')+'\"' + (tooltip ? ' title=\"'+tooltip+'\"' : '') + '>'+prevMonth.getUTCDate() + '</td>');\n\t\t\t\ttooltip = null;\n\t\t\t\tif (prevMonth.getUTCDay() === this.o.weekEnd){\n\t\t\t\t\thtml.push('</tr>');\n\t\t\t\t}\n\t\t\t\tprevMonth.setUTCDate(prevMonth.getUTCDate()+1);\n\t\t\t}\n\t\t\tthis.picker.find('.datepicker-days tbody').empty().append(html.join(''));\n\n\t\t\tvar monthsTitle = dates[this.o.language].monthsTitle || dates['en'].monthsTitle || 'Months';\n\t\t\tvar months = this.picker.find('.datepicker-months')\n\t\t\t\t\t\t.find('.datepicker-switch')\n\t\t\t\t\t\t\t.text(this.o.maxViewMode < 2 ? monthsTitle : year)\n\t\t\t\t\t\t\t.end()\n\t\t\t\t\t\t.find('span').removeClass('active');\n\n\t\t\t$.each(this.dates, function(i, d){\n\t\t\t\tif (d.getUTCFullYear() === year)\n\t\t\t\t\tmonths.eq(d.getUTCMonth()).addClass('active');\n\t\t\t});\n\n\t\t\tif (year < startYear || year > endYear){\n\t\t\t\tmonths.addClass('disabled');\n\t\t\t}\n\t\t\tif (year === startYear){\n\t\t\t\tmonths.slice(0, startMonth).addClass('disabled');\n\t\t\t}\n\t\t\tif (year === endYear){\n\t\t\t\tmonths.slice(endMonth+1).addClass('disabled');\n\t\t\t}\n\n\t\t\tif (this.o.beforeShowMonth !== $.noop){\n\t\t\t\tvar that = this;\n\t\t\t\t$.each(months, function(i, month){\n          var moDate = new Date(year, i, 1);\n          var before = that.o.beforeShowMonth(moDate);\n\t\t\t\t\tif (before === undefined)\n\t\t\t\t\t\tbefore = {};\n\t\t\t\t\telse if (typeof(before) === 'boolean')\n\t\t\t\t\t\tbefore = {enabled: before};\n\t\t\t\t\telse if (typeof(before) === 'string')\n\t\t\t\t\t\tbefore = {classes: before};\n\t\t\t\t\tif (before.enabled === false && !$(month).hasClass('disabled'))\n\t\t\t\t\t    $(month).addClass('disabled');\n\t\t\t\t\tif (before.classes)\n\t\t\t\t\t    $(month).addClass(before.classes);\n\t\t\t\t\tif (before.tooltip)\n\t\t\t\t\t    $(month).prop('title', before.tooltip);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// Generating decade/years picker\n\t\t\tthis._fill_yearsView(\n\t\t\t\t'.datepicker-years',\n\t\t\t\t'year',\n\t\t\t\t10,\n\t\t\t\t1,\n\t\t\t\tyear,\n\t\t\t\tstartYear,\n\t\t\t\tendYear,\n\t\t\t\tthis.o.beforeShowYear\n\t\t\t);\n\n\t\t\t// Generating century/decades picker\n\t\t\tthis._fill_yearsView(\n\t\t\t\t'.datepicker-decades',\n\t\t\t\t'decade',\n\t\t\t\t100,\n\t\t\t\t10,\n\t\t\t\tyear,\n\t\t\t\tstartYear,\n\t\t\t\tendYear,\n\t\t\t\tthis.o.beforeShowDecade\n\t\t\t);\n\n\t\t\t// Generating millennium/centuries picker\n\t\t\tthis._fill_yearsView(\n\t\t\t\t'.datepicker-centuries',\n\t\t\t\t'century',\n\t\t\t\t1000,\n\t\t\t\t100,\n\t\t\t\tyear,\n\t\t\t\tstartYear,\n\t\t\t\tendYear,\n\t\t\t\tthis.o.beforeShowCentury\n\t\t\t);\n\t\t},\n\n\t\tupdateNavArrows: function(){\n\t\t\tif (!this._allow_update)\n\t\t\t\treturn;\n\n\t\t\tvar d = new Date(this.viewDate),\n\t\t\t\tyear = d.getUTCFullYear(),\n\t\t\t\tmonth = d.getUTCMonth();\n\t\t\tswitch (this.viewMode){\n\t\t\t\tcase 0:\n\t\t\t\t\tif (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear() && month <= this.o.startDate.getUTCMonth()){\n\t\t\t\t\t\tthis.picker.find('.prev').css({visibility: 'hidden'});\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.picker.find('.prev').css({visibility: 'visible'});\n\t\t\t\t\t}\n\t\t\t\t\tif (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear() && month >= this.o.endDate.getUTCMonth()){\n\t\t\t\t\t\tthis.picker.find('.next').css({visibility: 'hidden'});\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.picker.find('.next').css({visibility: 'visible'});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\tcase 3:\n\t\t\t\tcase 4:\n\t\t\t\t\tif (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear() || this.o.maxViewMode < 2){\n\t\t\t\t\t\tthis.picker.find('.prev').css({visibility: 'hidden'});\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.picker.find('.prev').css({visibility: 'visible'});\n\t\t\t\t\t}\n\t\t\t\t\tif (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear() || this.o.maxViewMode < 2){\n\t\t\t\t\t\tthis.picker.find('.next').css({visibility: 'hidden'});\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.picker.find('.next').css({visibility: 'visible'});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t},\n\n\t\tclick: function(e){\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\n\t\t\tvar target, dir, day, year, month, monthChanged, yearChanged;\n\t\t\ttarget = $(e.target);\n\n\t\t\t// Clicked on the switch\n\t\t\tif (target.hasClass('datepicker-switch')){\n\t\t\t\tthis.showMode(1);\n\t\t\t}\n\n\t\t\t// Clicked on prev or next\n\t\t\tvar navArrow = target.closest('.prev, .next');\n\t\t\tif (navArrow.length > 0) {\n\t\t\t\tdir = DPGlobal.modes[this.viewMode].navStep * (navArrow.hasClass('prev') ? -1 : 1);\n\t\t\t\tif (this.viewMode === 0){\n\t\t\t\t\tthis.viewDate = this.moveMonth(this.viewDate, dir);\n\t\t\t\t\tthis._trigger('changeMonth', this.viewDate);\n\t\t\t\t} else {\n\t\t\t\t\tthis.viewDate = this.moveYear(this.viewDate, dir);\n\t\t\t\t\tif (this.viewMode === 1){\n\t\t\t\t\t\tthis._trigger('changeYear', this.viewDate);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.fill();\n\t\t\t}\n\n\t\t\t// Clicked on today button\n\t\t\tif (target.hasClass('today') && !target.hasClass('day')){\n\t\t\t\tthis.showMode(-2);\n\t\t\t\tthis._setDate(UTCToday(), this.o.todayBtn === 'linked' ? null : 'view');\n\t\t\t}\n\n\t\t\t// Clicked on clear button\n\t\t\tif (target.hasClass('clear')){\n\t\t\t\tthis.clearDates();\n\t\t\t}\n\n\t\t\tif (!target.hasClass('disabled')){\n\t\t\t\t// Clicked on a day\n\t\t\t\tif (target.hasClass('day')){\n\t\t\t\t\tday = parseInt(target.text(), 10) || 1;\n\t\t\t\t\tyear = this.viewDate.getUTCFullYear();\n\t\t\t\t\tmonth = this.viewDate.getUTCMonth();\n\n\t\t\t\t\t// From last month\n\t\t\t\t\tif (target.hasClass('old')){\n\t\t\t\t\t\tif (month === 0) {\n\t\t\t\t\t\t\tmonth = 11;\n\t\t\t\t\t\t\tyear = year - 1;\n\t\t\t\t\t\t\tmonthChanged = true;\n\t\t\t\t\t\t\tyearChanged = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmonth = month - 1;\n\t\t\t\t\t\t\tmonthChanged = true;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n\n\t\t\t\t\t// From next month\n\t\t\t\t\tif (target.hasClass('new')) {\n\t\t\t\t\t\tif (month === 11){\n\t\t\t\t\t\t\tmonth = 0;\n\t\t\t\t\t\t\tyear = year + 1;\n\t\t\t\t\t\t\tmonthChanged = true;\n\t\t\t\t\t\t\tyearChanged = true;\n \t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmonth = month + 1;\n\t\t\t\t\t\t\tmonthChanged = true;\n \t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis._setDate(UTCDate(year, month, day));\n\t\t\t\t\tif (yearChanged) {\n\t\t\t\t\t\tthis._trigger('changeYear', this.viewDate);\n\t\t\t\t\t}\n\t\t\t\t\tif (monthChanged) {\n\t\t\t\t\t\tthis._trigger('changeMonth', this.viewDate);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Clicked on a month\n\t\t\t\tif (target.hasClass('month')) {\n\t\t\t\t\tthis.viewDate.setUTCDate(1);\n\t\t\t\t\tday = 1;\n\t\t\t\t\tmonth = target.parent().find('span').index(target);\n\t\t\t\t\tyear = this.viewDate.getUTCFullYear();\n\t\t\t\t\tthis.viewDate.setUTCMonth(month);\n\t\t\t\t\tthis._trigger('changeMonth', this.viewDate);\n\t\t\t\t\tif (this.o.minViewMode === 1){\n\t\t\t\t\t\tthis._setDate(UTCDate(year, month, day));\n\t\t\t\t\t\tthis.showMode();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.showMode(-1);\n\t\t\t\t\t}\n\t\t\t\t\tthis.fill();\n\t\t\t\t}\n\n\t\t\t\t// Clicked on a year\n\t\t\t\tif (target.hasClass('year')\n\t\t\t\t\t\t|| target.hasClass('decade')\n\t\t\t\t\t\t|| target.hasClass('century')) {\n\t\t\t\t\tthis.viewDate.setUTCDate(1);\n\n\t\t\t\t\tday = 1;\n\t\t\t\t\tmonth = 0;\n\t\t\t\t\tyear = parseInt(target.text(), 10)||0;\n\t\t\t\t\tthis.viewDate.setUTCFullYear(year);\n\n\t\t\t\t\tif (target.hasClass('year')){\n\t\t\t\t\t\tthis._trigger('changeYear', this.viewDate);\n\t\t\t\t\t\tif (this.o.minViewMode === 2){\n\t\t\t\t\t\t\tthis._setDate(UTCDate(year, month, day));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (target.hasClass('decade')){\n\t\t\t\t\t\tthis._trigger('changeDecade', this.viewDate);\n\t\t\t\t\t\tif (this.o.minViewMode === 3){\n\t\t\t\t\t\t\tthis._setDate(UTCDate(year, month, day));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (target.hasClass('century')){\n\t\t\t\t\t\tthis._trigger('changeCentury', this.viewDate);\n\t\t\t\t\t\tif (this.o.minViewMode === 4){\n\t\t\t\t\t\t\tthis._setDate(UTCDate(year, month, day));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.showMode(-1);\n\t\t\t\t\tthis.fill();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.picker.is(':visible') && this._focused_from){\n\t\t\t\t$(this._focused_from).focus();\n\t\t\t}\n\t\t\tdelete this._focused_from;\n\t\t},\n\n\t\t_toggle_multidate: function(date){\n\t\t\tvar ix = this.dates.contains(date);\n\t\t\tif (!date){\n\t\t\t\tthis.dates.clear();\n\t\t\t}\n\n\t\t\tif (ix !== -1){\n\t\t\t\tif (this.o.multidate === true || this.o.multidate > 1 || this.o.toggleActive){\n\t\t\t\t\tthis.dates.remove(ix);\n\t\t\t\t}\n\t\t\t} else if (this.o.multidate === false) {\n\t\t\t\tthis.dates.clear();\n\t\t\t\tthis.dates.push(date);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.dates.push(date);\n\t\t\t}\n\n\t\t\tif (typeof this.o.multidate === 'number')\n\t\t\t\twhile (this.dates.length > this.o.multidate)\n\t\t\t\t\tthis.dates.remove(0);\n\t\t},\n\n\t\t_setDate: function(date, which){\n\t\t\tif (!which || which === 'date')\n\t\t\t\tthis._toggle_multidate(date && new Date(date));\n\t\t\tif (!which || which === 'view')\n\t\t\t\tthis.viewDate = date && new Date(date);\n\n\t\t\tthis.fill();\n\t\t\tthis.setValue();\n\t\t\tif (!which || which !== 'view') {\n\t\t\t\tthis._trigger('changeDate');\n\t\t\t}\n\t\t\tif (this.inputField){\n\t\t\t\tthis.inputField.change();\n\t\t\t}\n\t\t\tif (this.o.autoclose && (!which || which === 'date')){\n\t\t\t\tthis.hide();\n\t\t\t}\n\t\t},\n\n\t\tmoveDay: function(date, dir){\n\t\t\tvar newDate = new Date(date);\n\t\t\tnewDate.setUTCDate(date.getUTCDate() + dir);\n\n\t\t\treturn newDate;\n\t\t},\n\n\t\tmoveWeek: function(date, dir){\n\t\t\treturn this.moveDay(date, dir * 7);\n\t\t},\n\n\t\tmoveMonth: function(date, dir){\n\t\t\tif (!isValidDate(date))\n\t\t\t\treturn this.o.defaultViewDate;\n\t\t\tif (!dir)\n\t\t\t\treturn date;\n\t\t\tvar new_date = new Date(date.valueOf()),\n\t\t\t\tday = new_date.getUTCDate(),\n\t\t\t\tmonth = new_date.getUTCMonth(),\n\t\t\t\tmag = Math.abs(dir),\n\t\t\t\tnew_month, test;\n\t\t\tdir = dir > 0 ? 1 : -1;\n\t\t\tif (mag === 1){\n\t\t\t\ttest = dir === -1\n\t\t\t\t\t// If going back one month, make sure month is not current month\n\t\t\t\t\t// (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02)\n\t\t\t\t\t? function(){\n\t\t\t\t\t\treturn new_date.getUTCMonth() === month;\n\t\t\t\t\t}\n\t\t\t\t\t// If going forward one month, make sure month is as expected\n\t\t\t\t\t// (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02)\n\t\t\t\t\t: function(){\n\t\t\t\t\t\treturn new_date.getUTCMonth() !== new_month;\n\t\t\t\t\t};\n\t\t\t\tnew_month = month + dir;\n\t\t\t\tnew_date.setUTCMonth(new_month);\n\t\t\t\t// Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11\n\t\t\t\tif (new_month < 0 || new_month > 11)\n\t\t\t\t\tnew_month = (new_month + 12) % 12;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// For magnitudes >1, move one month at a time...\n\t\t\t\tfor (var i=0; i < mag; i++)\n\t\t\t\t\t// ...which might decrease the day (eg, Jan 31 to Feb 28, etc)...\n\t\t\t\t\tnew_date = this.moveMonth(new_date, dir);\n\t\t\t\t// ...then reset the day, keeping it in the new month\n\t\t\t\tnew_month = new_date.getUTCMonth();\n\t\t\t\tnew_date.setUTCDate(day);\n\t\t\t\ttest = function(){\n\t\t\t\t\treturn new_month !== new_date.getUTCMonth();\n\t\t\t\t};\n\t\t\t}\n\t\t\t// Common date-resetting loop -- if date is beyond end of month, make it\n\t\t\t// end of month\n\t\t\twhile (test()){\n\t\t\t\tnew_date.setUTCDate(--day);\n\t\t\t\tnew_date.setUTCMonth(new_month);\n\t\t\t}\n\t\t\treturn new_date;\n\t\t},\n\n\t\tmoveYear: function(date, dir){\n\t\t\treturn this.moveMonth(date, dir*12);\n\t\t},\n\n\t\tmoveAvailableDate: function(date, dir, fn){\n\t\t\tdo {\n\t\t\t\tdate = this[fn](date, dir);\n\n\t\t\t\tif (!this.dateWithinRange(date))\n\t\t\t\t\treturn false;\n\n\t\t\t\tfn = 'moveDay';\n\t\t\t}\n\t\t\twhile (this.dateIsDisabled(date));\n\n\t\t\treturn date;\n\t\t},\n\n\t\tweekOfDateIsDisabled: function(date){\n\t\t\treturn $.inArray(date.getUTCDay(), this.o.daysOfWeekDisabled) !== -1;\n\t\t},\n\n\t\tdateIsDisabled: function(date){\n\t\t\treturn (\n\t\t\t\tthis.weekOfDateIsDisabled(date) ||\n\t\t\t\t$.grep(this.o.datesDisabled, function(d){\n\t\t\t\t\treturn isUTCEquals(date, d);\n\t\t\t\t}).length > 0\n\t\t\t);\n\t\t},\n\n\t\tdateWithinRange: function(date){\n\t\t\treturn date >= this.o.startDate && date <= this.o.endDate;\n\t\t},\n\n\t\tkeydown: function(e){\n\t\t\tif (!this.picker.is(':visible')){\n\t\t\t\tif (e.keyCode === 40 || e.keyCode === 27) { // allow down to re-show picker\n\t\t\t\t\tthis.show();\n\t\t\t\t\te.stopPropagation();\n        }\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar dateChanged = false,\n\t\t\t\tdir, newViewDate,\n\t\t\t\tfocusDate = this.focusDate || this.viewDate;\n\t\t\tswitch (e.keyCode){\n\t\t\t\tcase 27: // escape\n\t\t\t\t\tif (this.focusDate){\n\t\t\t\t\t\tthis.focusDate = null;\n\t\t\t\t\t\tthis.viewDate = this.dates.get(-1) || this.viewDate;\n\t\t\t\t\t\tthis.fill();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tthis.hide();\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\te.stopPropagation();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 37: // left\n\t\t\t\tcase 38: // up\n\t\t\t\tcase 39: // right\n\t\t\t\tcase 40: // down\n\t\t\t\t\tif (!this.o.keyboardNavigation || this.o.daysOfWeekDisabled.length === 7)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdir = e.keyCode === 37 || e.keyCode === 38 ? -1 : 1;\n          if (this.viewMode === 0) {\n  \t\t\t\t\tif (e.ctrlKey){\n  \t\t\t\t\t\tnewViewDate = this.moveAvailableDate(focusDate, dir, 'moveYear');\n\n  \t\t\t\t\t\tif (newViewDate)\n  \t\t\t\t\t\t\tthis._trigger('changeYear', this.viewDate);\n  \t\t\t\t\t}\n  \t\t\t\t\telse if (e.shiftKey){\n  \t\t\t\t\t\tnewViewDate = this.moveAvailableDate(focusDate, dir, 'moveMonth');\n\n  \t\t\t\t\t\tif (newViewDate)\n  \t\t\t\t\t\t\tthis._trigger('changeMonth', this.viewDate);\n  \t\t\t\t\t}\n  \t\t\t\t\telse if (e.keyCode === 37 || e.keyCode === 39){\n  \t\t\t\t\t\tnewViewDate = this.moveAvailableDate(focusDate, dir, 'moveDay');\n  \t\t\t\t\t}\n  \t\t\t\t\telse if (!this.weekOfDateIsDisabled(focusDate)){\n  \t\t\t\t\t\tnewViewDate = this.moveAvailableDate(focusDate, dir, 'moveWeek');\n  \t\t\t\t\t}\n          } else if (this.viewMode === 1) {\n            if (e.keyCode === 38 || e.keyCode === 40) {\n              dir = dir * 4;\n            }\n            newViewDate = this.moveAvailableDate(focusDate, dir, 'moveMonth');\n          } else if (this.viewMode === 2) {\n            if (e.keyCode === 38 || e.keyCode === 40) {\n              dir = dir * 4;\n            }\n            newViewDate = this.moveAvailableDate(focusDate, dir, 'moveYear');\n          }\n\t\t\t\t\tif (newViewDate){\n\t\t\t\t\t\tthis.focusDate = this.viewDate = newViewDate;\n\t\t\t\t\t\tthis.setValue();\n\t\t\t\t\t\tthis.fill();\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 13: // enter\n\t\t\t\t\tif (!this.o.forceParse)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tfocusDate = this.focusDate || this.dates.get(-1) || this.viewDate;\n\t\t\t\t\tif (this.o.keyboardNavigation) {\n\t\t\t\t\t\tthis._toggle_multidate(focusDate);\n\t\t\t\t\t\tdateChanged = true;\n\t\t\t\t\t}\n\t\t\t\t\tthis.focusDate = null;\n\t\t\t\t\tthis.viewDate = this.dates.get(-1) || this.viewDate;\n\t\t\t\t\tthis.setValue();\n\t\t\t\t\tthis.fill();\n\t\t\t\t\tif (this.picker.is(':visible')){\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\tif (this.o.autoclose)\n\t\t\t\t\t\t\tthis.hide();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9: // tab\n\t\t\t\t\tthis.focusDate = null;\n\t\t\t\t\tthis.viewDate = this.dates.get(-1) || this.viewDate;\n\t\t\t\t\tthis.fill();\n\t\t\t\t\tthis.hide();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (dateChanged){\n\t\t\t\tif (this.dates.length)\n\t\t\t\t\tthis._trigger('changeDate');\n\t\t\t\telse\n\t\t\t\t\tthis._trigger('clearDate');\n\t\t\t\tif (this.inputField){\n\t\t\t\t\tthis.inputField.change();\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tshowMode: function(dir){\n\t\t\tif (dir){\n\t\t\t\tthis.viewMode = Math.max(this.o.minViewMode, Math.min(this.o.maxViewMode, this.viewMode + dir));\n\t\t\t}\n\t\t\tthis.picker\n\t\t\t\t.children('div')\n\t\t\t\t.hide()\n\t\t\t\t.filter('.datepicker-' + DPGlobal.modes[this.viewMode].clsName)\n\t\t\t\t\t.show();\n\t\t\tthis.updateNavArrows();\n\t\t}\n\t};\n\n\tvar DateRangePicker = function(element, options){\n\t\t$(element).data('datepicker', this);\n\t\tthis.element = $(element);\n\t\tthis.inputs = $.map(options.inputs, function(i){\n\t\t\treturn i.jquery ? i[0] : i;\n\t\t});\n\t\tdelete options.inputs;\n\n\t\tdatepickerPlugin.call($(this.inputs), options)\n\t\t\t.on('changeDate', $.proxy(this.dateUpdated, this));\n\n\t\tthis.pickers = $.map(this.inputs, function(i){\n\t\t\treturn $(i).data('datepicker');\n\t\t});\n\t\tthis.updateDates();\n\t};\n\tDateRangePicker.prototype = {\n\t\tupdateDates: function(){\n\t\t\tthis.dates = $.map(this.pickers, function(i){\n\t\t\t\treturn i.getUTCDate();\n\t\t\t});\n\t\t\tthis.updateRanges();\n\t\t},\n\t\tupdateRanges: function(){\n\t\t\tvar range = $.map(this.dates, function(d){\n\t\t\t\treturn d.valueOf();\n\t\t\t});\n\t\t\t$.each(this.pickers, function(i, p){\n\t\t\t\tp.setRange(range);\n\t\t\t});\n\t\t},\n\t\tdateUpdated: function(e){\n\t\t\t// `this.updating` is a workaround for preventing infinite recursion\n\t\t\t// between `changeDate` triggering and `setUTCDate` calling.  Until\n\t\t\t// there is a better mechanism.\n\t\t\tif (this.updating)\n\t\t\t\treturn;\n\t\t\tthis.updating = true;\n\n\t\t\tvar dp = $(e.target).data('datepicker');\n\n\t\t\tif (typeof(dp) === \"undefined\") {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar new_date = dp.getUTCDate(),\n\t\t\t\ti = $.inArray(e.target, this.inputs),\n\t\t\t\tj = i - 1,\n\t\t\t\tk = i + 1,\n\t\t\t\tl = this.inputs.length;\n\t\t\tif (i === -1)\n\t\t\t\treturn;\n\n\t\t\t$.each(this.pickers, function(i, p){\n\t\t\t\tif (!p.getUTCDate())\n\t\t\t\t\tp.setUTCDate(new_date);\n\t\t\t});\n\n\t\t\tif (new_date < this.dates[j]){\n\t\t\t\t// Date being moved earlier/left\n\t\t\t\twhile (j >= 0 && new_date < this.dates[j]){\n\t\t\t\t\tthis.pickers[j--].setUTCDate(new_date);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (new_date > this.dates[k]){\n\t\t\t\t// Date being moved later/right\n\t\t\t\twhile (k < l && new_date > this.dates[k]){\n\t\t\t\t\tthis.pickers[k++].setUTCDate(new_date);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.updateDates();\n\n\t\t\tdelete this.updating;\n\t\t},\n\t\tremove: function(){\n\t\t\t$.map(this.pickers, function(p){ p.remove(); });\n\t\t\tdelete this.element.data().datepicker;\n\t\t}\n\t};\n\n\tfunction opts_from_el(el, prefix){\n\t\t// Derive options from element data-attrs\n\t\tvar data = $(el).data(),\n\t\t\tout = {}, inkey,\n\t\t\treplace = new RegExp('^' + prefix.toLowerCase() + '([A-Z])');\n\t\tprefix = new RegExp('^' + prefix.toLowerCase());\n\t\tfunction re_lower(_,a){\n\t\t\treturn a.toLowerCase();\n\t\t}\n\t\tfor (var key in data)\n\t\t\tif (prefix.test(key)){\n\t\t\t\tinkey = key.replace(replace, re_lower);\n\t\t\t\tout[inkey] = data[key];\n\t\t\t}\n\t\treturn out;\n\t}\n\n\tfunction opts_from_locale(lang){\n\t\t// Derive options from locale plugins\n\t\tvar out = {};\n\t\t// Check if \"de-DE\" style date is available, if not language should\n\t\t// fallback to 2 letter code eg \"de\"\n\t\tif (!dates[lang]){\n\t\t\tlang = lang.split('-')[0];\n\t\t\tif (!dates[lang])\n\t\t\t\treturn;\n\t\t}\n\t\tvar d = dates[lang];\n\t\t$.each(locale_opts, function(i,k){\n\t\t\tif (k in d)\n\t\t\t\tout[k] = d[k];\n\t\t});\n\t\treturn out;\n\t}\n\n\tvar old = $.fn.datepicker;\n\tvar datepickerPlugin = function(option){\n\t\tvar args = Array.apply(null, arguments);\n\t\targs.shift();\n\t\tvar internal_return;\n\t\tthis.each(function(){\n\t\t\tvar $this = $(this),\n\t\t\t\tdata = $this.data('datepicker'),\n\t\t\t\toptions = typeof option === 'object' && option;\n\t\t\tif (!data){\n\t\t\t\tvar elopts = opts_from_el(this, 'date'),\n\t\t\t\t\t// Preliminary otions\n\t\t\t\t\txopts = $.extend({}, defaults, elopts, options),\n\t\t\t\t\tlocopts = opts_from_locale(xopts.language),\n\t\t\t\t\t// Options priority: js args, data-attrs, locales, defaults\n\t\t\t\t\topts = $.extend({}, defaults, locopts, elopts, options);\n\t\t\t\tif ($this.hasClass('input-daterange') || opts.inputs){\n\t\t\t\t\t$.extend(opts, {\n\t\t\t\t\t\tinputs: opts.inputs || $this.find('input').toArray()\n\t\t\t\t\t});\n\t\t\t\t\tdata = new DateRangePicker(this, opts);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdata = new Datepicker(this, opts);\n\t\t\t\t}\n\t\t\t\t$this.data('datepicker', data);\n\t\t\t}\n\t\t\tif (typeof option === 'string' && typeof data[option] === 'function'){\n\t\t\t\tinternal_return = data[option].apply(data, args);\n\t\t\t}\n\t\t});\n\n\t\tif (\n\t\t\tinternal_return === undefined ||\n\t\t\tinternal_return instanceof Datepicker ||\n\t\t\tinternal_return instanceof DateRangePicker\n\t\t)\n\t\t\treturn this;\n\n\t\tif (this.length > 1)\n\t\t\tthrow new Error('Using only allowed for the collection of a single element (' + option + ' function)');\n\t\telse\n\t\t\treturn internal_return;\n\t};\n\t$.fn.datepicker = datepickerPlugin;\n\n\tvar defaults = $.fn.datepicker.defaults = {\n\t\tassumeNearbyYear: false,\n\t\tautoclose: false,\n\t\tbeforeShowDay: $.noop,\n\t\tbeforeShowMonth: $.noop,\n\t\tbeforeShowYear: $.noop,\n\t\tbeforeShowDecade: $.noop,\n\t\tbeforeShowCentury: $.noop,\n\t\tcalendarWeeks: false,\n\t\tclearBtn: false,\n\t\ttoggleActive: false,\n\t\tdaysOfWeekDisabled: [],\n\t\tdaysOfWeekHighlighted: [],\n\t\tdatesDisabled: [],\n\t\tendDate: Infinity,\n\t\tforceParse: true,\n\t\tformat: 'mm/dd/yyyy',\n\t\tkeyboardNavigation: true,\n\t\tlanguage: 'en',\n\t\tminViewMode: 0,\n\t\tmaxViewMode: 4,\n\t\tmultidate: false,\n\t\tmultidateSeparator: ',',\n\t\torientation: \"auto\",\n\t\trtl: false,\n\t\tstartDate: -Infinity,\n\t\tstartView: 0,\n\t\ttodayBtn: false,\n\t\ttodayHighlight: false,\n\t\tweekStart: 0,\n\t\tdisableTouchKeyboard: false,\n\t\tenableOnReadonly: true,\n\t\tshowOnFocus: true,\n\t\tzIndexOffset: 10,\n\t\tcontainer: 'body',\n\t\timmediateUpdates: false,\n\t\ttitle: '',\n\t\ttemplates: {\n\t\t\tleftArrow: '&laquo;',\n\t\t\trightArrow: '&raquo;'\n\t\t}\n\t};\n\tvar locale_opts = $.fn.datepicker.locale_opts = [\n\t\t'format',\n\t\t'rtl',\n\t\t'weekStart'\n\t];\n\t$.fn.datepicker.Constructor = Datepicker;\n\tvar dates = $.fn.datepicker.dates = {\n\t\ten: {\n\t\t\tdays: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n\t\t\tdaysShort: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n\t\t\tdaysMin: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n\t\t\tmonths: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"],\n\t\t\tmonthsShort: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n\t\t\ttoday: \"Today\",\n\t\t\tclear: \"Clear\",\n\t\t\ttitleFormat: \"MM yyyy\"\n\t\t}\n\t};\n\n\tvar DPGlobal = {\n\t\tmodes: [\n\t\t\t{\n\t\t\t\tclsName: 'days',\n\t\t\t\tnavFnc: 'Month',\n\t\t\t\tnavStep: 1\n\t\t\t},\n\t\t\t{\n\t\t\t\tclsName: 'months',\n\t\t\t\tnavFnc: 'FullYear',\n\t\t\t\tnavStep: 1\n\t\t\t},\n\t\t\t{\n\t\t\t\tclsName: 'years',\n\t\t\t\tnavFnc: 'FullYear',\n\t\t\t\tnavStep: 10\n\t\t\t},\n\t\t\t{\n\t\t\t\tclsName: 'decades',\n\t\t\t\tnavFnc: 'FullDecade',\n\t\t\t\tnavStep: 100\n\t\t\t},\n\t\t\t{\n\t\t\t\tclsName: 'centuries',\n\t\t\t\tnavFnc: 'FullCentury',\n\t\t\t\tnavStep: 1000\n\t\t}],\n\t\tisLeapYear: function(year){\n\t\t\treturn (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0));\n\t\t},\n\t\tgetDaysInMonth: function(year, month){\n\t\t\treturn [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];\n\t\t},\n\t\tvalidParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g,\n\t\tnonpunctuation: /[^ -\\/:-@\\u5e74\\u6708\\u65e5\\[-`{-~\\t\\n\\r]+/g,\n\t\tparseFormat: function(format){\n\t\t\tif (typeof format.toValue === 'function' && typeof format.toDisplay === 'function')\n                return format;\n            // IE treats \\0 as a string end in inputs (truncating the value),\n\t\t\t// so it's a bad format delimiter, anyway\n\t\t\tvar separators = format.replace(this.validParts, '\\0').split('\\0'),\n\t\t\t\tparts = format.match(this.validParts);\n\t\t\tif (!separators || !separators.length || !parts || parts.length === 0){\n\t\t\t\tthrow new Error(\"Invalid date format.\");\n\t\t\t}\n\t\t\treturn {separators: separators, parts: parts};\n\t\t},\n\t\tparseDate: function(date, format, language, assumeNearby){\n\t\t\tif (!date)\n\t\t\t\treturn undefined;\n\t\t\tif (date instanceof Date)\n\t\t\t\treturn date;\n\t\t\tif (typeof format === 'string')\n\t\t\t\tformat = DPGlobal.parseFormat(format);\n\t\t\tif (format.toValue)\n                return format.toValue(date, format, language);\n            var part_re = /([\\-+]\\d+)([dmwy])/,\n\t\t\t\tparts = date.match(/([\\-+]\\d+)([dmwy])/g),\n\t\t\t\tfn_map = {\n\t\t\t\t\td: 'moveDay',\n\t\t\t\t\tm: 'moveMonth',\n\t\t\t\t\tw: 'moveWeek',\n\t\t\t\t\ty: 'moveYear'\n\t\t\t\t},\n\t\t\t\tdateAliases = {\n\t\t\t\t\tyesterday: '-1d',\n\t\t\t\t\ttoday: '+0d',\n\t\t\t\t\ttomorrow: '+1d'\n\t\t\t\t},\n\t\t\t\tpart, dir, i, fn;\n\t\t\tif (/^[\\-+]\\d+[dmwy]([\\s,]+[\\-+]\\d+[dmwy])*$/.test(date)){\n\t\t\t\tdate = new Date();\n\t\t\t\tfor (i=0; i < parts.length; i++){\n\t\t\t\t\tpart = part_re.exec(parts[i]);\n\t\t\t\t\tdir = parseInt(part[1]);\n\t\t\t\t\tfn = fn_map[part[2]];\n\t\t\t\t\tdate = Datepicker.prototype[fn](date, dir);\n\t\t\t\t}\n\t\t\t\treturn UTCDate(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());\n\t\t\t}\n\n\t\t\tif (typeof dateAliases[date] !== 'undefined') {\n\t\t\t\tdate = dateAliases[date];\n\t\t\t\tparts = date.match(/([\\-+]\\d+)([dmwy])/g);\n\n\t\t\t\tif (/^[\\-+]\\d+[dmwy]([\\s,]+[\\-+]\\d+[dmwy])*$/.test(date)){\n\t\t\t\t\tdate = new Date();\n\t\t\t\t  \tfor (i=0; i < parts.length; i++){\n\t\t\t\t\t\tpart = part_re.exec(parts[i]);\n\t\t\t\t\t\tdir = parseInt(part[1]);\n\t\t\t\t\t\tfn = fn_map[part[2]];\n\t\t\t\t\t\tdate = Datepicker.prototype[fn](date, dir);\n\t\t\t\t  \t}\n\n\t\t\t  \t\treturn UTCDate(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tparts = date && date.match(this.nonpunctuation) || [];\n\t\t\tdate = new Date();\n\n\t\t\tfunction applyNearbyYear(year, threshold){\n\t\t\t\tif (threshold === true)\n\t\t\t\t\tthreshold = 10;\n\n\t\t\t\t// if year is 2 digits or less, than the user most likely is trying to get a recent century\n\t\t\t\tif (year < 100){\n\t\t\t\t\tyear += 2000;\n\t\t\t\t\t// if the new year is more than threshold years in advance, use last century\n\t\t\t\t\tif (year > ((new Date()).getFullYear()+threshold)){\n\t\t\t\t\t\tyear -= 100;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn year;\n\t\t\t}\n\n\t\t\tvar parsed = {},\n\t\t\t\tsetters_order = ['yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'd', 'dd'],\n\t\t\t\tsetters_map = {\n\t\t\t\t\tyyyy: function(d,v){\n\t\t\t\t\t\treturn d.setUTCFullYear(assumeNearby ? applyNearbyYear(v, assumeNearby) : v);\n\t\t\t\t\t},\n\t\t\t\t\tyy: function(d,v){\n\t\t\t\t\t\treturn d.setUTCFullYear(assumeNearby ? applyNearbyYear(v, assumeNearby) : v);\n\t\t\t\t\t},\n\t\t\t\t\tm: function(d,v){\n\t\t\t\t\t\tif (isNaN(d))\n\t\t\t\t\t\t\treturn d;\n\t\t\t\t\t\tv -= 1;\n\t\t\t\t\t\twhile (v < 0) v += 12;\n\t\t\t\t\t\tv %= 12;\n\t\t\t\t\t\td.setUTCMonth(v);\n\t\t\t\t\t\twhile (d.getUTCMonth() !== v)\n\t\t\t\t\t\t\td.setUTCDate(d.getUTCDate()-1);\n\t\t\t\t\t\treturn d;\n\t\t\t\t\t},\n\t\t\t\t\td: function(d,v){\n\t\t\t\t\t\treturn d.setUTCDate(v);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tval, filtered;\n\t\t\tsetters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];\n\t\t\tsetters_map['dd'] = setters_map['d'];\n\t\t\tdate = UTCToday();\n\t\t\tvar fparts = format.parts.slice();\n\t\t\t// Remove noop parts\n\t\t\tif (parts.length !== fparts.length){\n\t\t\t\tfparts = $(fparts).filter(function(i,p){\n\t\t\t\t\treturn $.inArray(p, setters_order) !== -1;\n\t\t\t\t}).toArray();\n\t\t\t}\n\t\t\t// Process remainder\n\t\t\tfunction match_part(){\n\t\t\t\tvar m = this.slice(0, parts[i].length),\n\t\t\t\t\tp = parts[i].slice(0, m.length);\n\t\t\t\treturn m.toLowerCase() === p.toLowerCase();\n\t\t\t}\n\t\t\tif (parts.length === fparts.length){\n\t\t\t\tvar cnt;\n\t\t\t\tfor (i=0, cnt = fparts.length; i < cnt; i++){\n\t\t\t\t\tval = parseInt(parts[i], 10);\n\t\t\t\t\tpart = fparts[i];\n\t\t\t\t\tif (isNaN(val)){\n\t\t\t\t\t\tswitch (part){\n\t\t\t\t\t\t\tcase 'MM':\n\t\t\t\t\t\t\t\tfiltered = $(dates[language].months).filter(match_part);\n\t\t\t\t\t\t\t\tval = $.inArray(filtered[0], dates[language].months) + 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'M':\n\t\t\t\t\t\t\t\tfiltered = $(dates[language].monthsShort).filter(match_part);\n\t\t\t\t\t\t\t\tval = $.inArray(filtered[0], dates[language].monthsShort) + 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tparsed[part] = val;\n\t\t\t\t}\n\t\t\t\tvar _date, s;\n\t\t\t\tfor (i=0; i < setters_order.length; i++){\n\t\t\t\t\ts = setters_order[i];\n\t\t\t\t\tif (s in parsed && !isNaN(parsed[s])){\n\t\t\t\t\t\t_date = new Date(date);\n\t\t\t\t\t\tsetters_map[s](_date, parsed[s]);\n\t\t\t\t\t\tif (!isNaN(_date))\n\t\t\t\t\t\t\tdate = _date;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn date;\n\t\t},\n\t\tformatDate: function(date, format, language){\n\t\t\tif (!date)\n\t\t\t\treturn '';\n\t\t\tif (typeof format === 'string')\n\t\t\t\tformat = DPGlobal.parseFormat(format);\n\t\t\tif (format.toDisplay)\n                return format.toDisplay(date, format, language);\n            var val = {\n\t\t\t\td: date.getUTCDate(),\n\t\t\t\tD: dates[language].daysShort[date.getUTCDay()],\n\t\t\t\tDD: dates[language].days[date.getUTCDay()],\n\t\t\t\tm: date.getUTCMonth() + 1,\n\t\t\t\tM: dates[language].monthsShort[date.getUTCMonth()],\n\t\t\t\tMM: dates[language].months[date.getUTCMonth()],\n\t\t\t\tyy: date.getUTCFullYear().toString().substring(2),\n\t\t\t\tyyyy: date.getUTCFullYear()\n\t\t\t};\n\t\t\tval.dd = (val.d < 10 ? '0' : '') + val.d;\n\t\t\tval.mm = (val.m < 10 ? '0' : '') + val.m;\n\t\t\tdate = [];\n\t\t\tvar seps = $.extend([], format.separators);\n\t\t\tfor (var i=0, cnt = format.parts.length; i <= cnt; i++){\n\t\t\t\tif (seps.length)\n\t\t\t\t\tdate.push(seps.shift());\n\t\t\t\tdate.push(val[format.parts[i]]);\n\t\t\t}\n\t\t\treturn date.join('');\n\t\t},\n\t\theadTemplate: '<thead>'+\n\t\t\t              '<tr>'+\n\t\t\t                '<th colspan=\"7\" class=\"datepicker-title\"></th>'+\n\t\t\t              '</tr>'+\n\t\t\t\t\t\t\t'<tr>'+\n\t\t\t\t\t\t\t\t'<th class=\"prev\">&laquo;</th>'+\n\t\t\t\t\t\t\t\t'<th colspan=\"5\" class=\"datepicker-switch\"></th>'+\n\t\t\t\t\t\t\t\t'<th class=\"next\">&raquo;</th>'+\n\t\t\t\t\t\t\t'</tr>'+\n\t\t\t\t\t\t'</thead>',\n\t\tcontTemplate: '<tbody><tr><td colspan=\"7\"></td></tr></tbody>',\n\t\tfootTemplate: '<tfoot>'+\n\t\t\t\t\t\t\t'<tr>'+\n\t\t\t\t\t\t\t\t'<th colspan=\"7\" class=\"today\"></th>'+\n\t\t\t\t\t\t\t'</tr>'+\n\t\t\t\t\t\t\t'<tr>'+\n\t\t\t\t\t\t\t\t'<th colspan=\"7\" class=\"clear\"></th>'+\n\t\t\t\t\t\t\t'</tr>'+\n\t\t\t\t\t\t'</tfoot>'\n\t};\n\tDPGlobal.template = '<div class=\"datepicker\">'+\n\t\t\t\t\t\t\t'<div class=\"datepicker-days\">'+\n\t\t\t\t\t\t\t\t'<table class=\"table-condensed\">'+\n\t\t\t\t\t\t\t\t\tDPGlobal.headTemplate+\n\t\t\t\t\t\t\t\t\t'<tbody></tbody>'+\n\t\t\t\t\t\t\t\t\tDPGlobal.footTemplate+\n\t\t\t\t\t\t\t\t'</table>'+\n\t\t\t\t\t\t\t'</div>'+\n\t\t\t\t\t\t\t'<div class=\"datepicker-months\">'+\n\t\t\t\t\t\t\t\t'<table class=\"table-condensed\">'+\n\t\t\t\t\t\t\t\t\tDPGlobal.headTemplate+\n\t\t\t\t\t\t\t\t\tDPGlobal.contTemplate+\n\t\t\t\t\t\t\t\t\tDPGlobal.footTemplate+\n\t\t\t\t\t\t\t\t'</table>'+\n\t\t\t\t\t\t\t'</div>'+\n\t\t\t\t\t\t\t'<div class=\"datepicker-years\">'+\n\t\t\t\t\t\t\t\t'<table class=\"table-condensed\">'+\n\t\t\t\t\t\t\t\t\tDPGlobal.headTemplate+\n\t\t\t\t\t\t\t\t\tDPGlobal.contTemplate+\n\t\t\t\t\t\t\t\t\tDPGlobal.footTemplate+\n\t\t\t\t\t\t\t\t'</table>'+\n\t\t\t\t\t\t\t'</div>'+\n\t\t\t\t\t\t\t'<div class=\"datepicker-decades\">'+\n\t\t\t\t\t\t\t\t'<table class=\"table-condensed\">'+\n\t\t\t\t\t\t\t\t\tDPGlobal.headTemplate+\n\t\t\t\t\t\t\t\t\tDPGlobal.contTemplate+\n\t\t\t\t\t\t\t\t\tDPGlobal.footTemplate+\n\t\t\t\t\t\t\t\t'</table>'+\n\t\t\t\t\t\t\t'</div>'+\n\t\t\t\t\t\t\t'<div class=\"datepicker-centuries\">'+\n\t\t\t\t\t\t\t\t'<table class=\"table-condensed\">'+\n\t\t\t\t\t\t\t\t\tDPGlobal.headTemplate+\n\t\t\t\t\t\t\t\t\tDPGlobal.contTemplate+\n\t\t\t\t\t\t\t\t\tDPGlobal.footTemplate+\n\t\t\t\t\t\t\t\t'</table>'+\n\t\t\t\t\t\t\t'</div>'+\n\t\t\t\t\t\t'</div>';\n\n\t$.fn.datepicker.DPGlobal = DPGlobal;\n\n\n\t/* DATEPICKER NO CONFLICT\n\t* =================== */\n\n\t$.fn.datepicker.noConflict = function(){\n\t\t$.fn.datepicker = old;\n\t\treturn this;\n\t};\n\n\t/* DATEPICKER VERSION\n\t * =================== */\n\t$.fn.datepicker.version = '1.6.4';\n\n\t/* DATEPICKER DATA-API\n\t* ================== */\n\n\t$(document).on(\n\t\t'focus.datepicker.data-api click.datepicker.data-api',\n\t\t'[data-provide=\"datepicker\"]',\n\t\tfunction(e){\n\t\t\tvar $this = $(this);\n\t\t\tif ($this.data('datepicker'))\n\t\t\t\treturn;\n\t\t\te.preventDefault();\n\t\t\t// component click requires us to explicitly show it\n\t\t\tdatepickerPlugin.call($this, 'show');\n\t\t}\n\t);\n\t$(function(){\n\t\tdatepickerPlugin.call($('[data-provide=\"datepicker-inline\"]'));\n\t});\n\n}));\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/.babelrc",
    "content": "{\n  \"presets\": [\n    [\"env\", {\n      \"targets\": {\n        \"browsers\": [\"last 2 versions\"]\n      }\n    }]\n  ]\n}\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/.gitignore",
    "content": "dist/datepickk.zip\nnode_modules/*\ntest.html"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/.travis.yml",
    "content": "sudo: false\nlanguage: node_js\ncache:\n  directories:\n    - node_modules\nnotifications:\n  email: false\nnode_js:\n  - '4'\nbefore_install:\n  - npm i -g npm@^2.0.0\nbefore_script:\n  - npm prune\nafter_success:\n  - npm run semantic-release\nbranches:\n  only:\n    - master\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2016 Carsten Jacobsen\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/README.md",
    "content": "# Datepickk.js\n[![Build Status](https://travis-ci.org/crsten/datepickk.svg?branch=master&style=flat-square)](https://travis-ci.org/crsten/datepickk)\n[![npm](https://img.shields.io/npm/dt/datepickk.svg?style=flat-square)](https://www.npmjs.com/package/datepickk)\n[![npm](https://img.shields.io/npm/v/datepickk.svg?style=flat-square)](https://www.npmjs.com/package/datepickk)\n![npm](https://img.shields.io/npm/l/datepickk.svg?style=flat-square)\n\n## Inspiration\n\nI got tired of using ugly datepickers and jQuery so i decided to build my own. Have fun :)\n\n## Demo & Docs\n\nYou can find [demo & docs here](http://crsten.github.io/datepickk/).\n\n## Installation\n\nYou can get it on npm.\n\n```shell\nnpm install datepickk --save\n```\n\nIf you're not using either package manager, you can use `datepickk` by downloading the [files in the `dist` folder](dist).\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/bower.json",
    "content": "{\n  \"name\": \"datepickk\",\n  \"description\": \"Flexbox/js datepicker\",\n  \"main\": \"src/js/datepickk.js\",\n  \"authors\": [\n    \"Carsten Jacobsen\"\n  ],\n  \"license\": \"MIT\",\n  \"keywords\": [\n    \"datepicker\",\n    \"js\",\n    \"flexbox\"\n  ],\n  \"moduleType\": [\n    \"amd\",\n    \"globals\"\n  ],\n  \"homepage\": \"https://crsten.github.io/datepickk\",\n  \"ignore\": [\n    \"**/.*\",\n    \"node_modules\",\n    \"bower_components\",\n    \"test\",\n    \"tests\"\n  ]\n}\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/dist/datepickk.css",
    "content": "/*Main color*/\n/*Datepickk*/\n.d-noscroll {\n  overflow: hidden;\n}\n#Datepickk {\n  position: fixed;\n  top: 0;\n  left: 0;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  z-index: 999;\n  width: 100%;\n  height: 100%;\n  font-family: inherit;\n  color: #333;\n  user-select: none;\n}\n#Datepickk.MSIE:not(.wrapped):not(.inline) .d-calendar {\n  height: 560px;\n}\n#Datepickk.d-show .d-overlay {\n  animation-name: show;\n  animation-duration: .2s;\n  animation-timing-function: ease-out;\n  animation-fill-mode: both;\n}\n#Datepickk.d-hide > * {\n  animation-name: DatepickkHide;\n  animation-duration: .2s;\n  animation-timing-function: linear;\n  animation-fill-mode: both;\n}\n#Datepickk.d-hide .d-overlay {\n  animation-name: show;\n  animation-duration: .15s;\n  animation-timing-function: ease-out;\n  animation-fill-mode: both;\n  animation-direction: reverse;\n}\n#Datepickk .d-overlay {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(55, 58, 71, 0.95);\n  z-index: 1;\n}\n#Datepickk .d-title {\n  color: white;\n  text-align: center;\n  position: relative;\n  font-size: 30px;\n  margin: 25px 0;\n  z-index: 2;\n}\n#Datepickk .d-confirm {\n  border: none;\n  position: relative;\n  background-color: transparent;\n  outline: none;\n  font-family: inherit;\n  font-size: 30px;\n  font-weight: 500;\n  color: white;\n  margin: 25px 0;\n  cursor: pointer;\n  padding: 0;\n  z-index: 2;\n}\n#Datepickk .d-title:empty,\n#Datepickk .d-confirm:empty {\n  display: none;\n}\n@media (max-height: 528px) {\n  #Datepickk .d-title,\n  #Datepickk .d-confirm {\n    font-size: 20px;\n    margin: 15px 0;\n  }\n  #Datepickk .d-calendar {\n    font-size: 20px;\n  }\n}\n#Datepickk.multi .d-calendar,\n#Datepickk.multi .d-legend {\n  max-width: 800px;\n}\n#Datepickk.multi .d-table {\n  position: relative;\n  padding-top: 35px;\n}\n#Datepickk.multi .d-table:before {\n  content: attr(data-month);\n  text-align: right;\n  width: 100%;\n  font-size: 1em;\n  padding: 5px 10px 5px 0;\n  box-sizing: border-box;\n  color: #CCC;\n  position: absolute;\n  left: 0;\n  top: 0;\n}\n#Datepickk.inline.d-show .d-calendar {\n  animation: none;\n}\n#Datepickk.inline,\n#Datepickk.wrapped {\n  position: static;\n  z-index: 0;\n}\n#Datepickk.inline .d-calendar,\n#Datepickk.wrapped .d-calendar {\n  box-shadow: none;\n  z-index: 0;\n  max-width: none;\n  max-height: none;\n}\n#Datepickk.inline .d-confirm,\n#Datepickk.wrapped .d-confirm,\n#Datepickk.inline .d-title,\n#Datepickk.wrapped .d-title {\n  color: #222;\n}\n#Datepickk.inline .d-overlay,\n#Datepickk.wrapped .d-overlay {\n  display: none;\n}\n#Datepickk.inline .d-legend,\n#Datepickk.wrapped .d-legend {\n  color: #222!important;\n  max-width: none;\n  max-height: none;\n}\n#Datepickk.fullscreen .d-calendar {\n  max-width: none;\n  max-height: none;\n}\n#Datepickk.fullscreen .d-calendar input + label {\n  outline: 1px solid #eaeaea;\n  box-sizing: border-box;\n  align-items: flex-start !important;\n  justify-content: flex-end !important;\n}\n#Datepickk.fullscreen .d-calendar input + label text {\n  padding: 5px 10px 0 0;\n}\n#Datepickk.fullscreen .d-legend {\n  max-width: none;\n}\n#Datepickk .d-legend {\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n  width: 100%;\n  z-index: 2;\n  background-color: whitesmoke;\n  max-width: 500px;\n  position: relative;\n  color: white;\n}\n#Datepickk .d-legend:empty {\n  height: 0;\n}\n#Datepickk .d-legend p {\n  backface-visibility: visible !important;\n  animation-name: DatepickfadeInUp;\n  animation-duration: .5s;\n  animation-fill-mode: both;\n  margin: 0;\n  padding: 15px;\n  transition: background-color 0.2s ease;\n  cursor: pointer;\n  color: #1B353F;\n}\n#Datepickk .d-legend p:after {\n  content: attr(data-legend);\n}\n#Datepickk .d-legend p span {\n  width: 20px;\n  height: 20px;\n  border-radius: 100%;\n  vertical-align: bottom;\n  display: inline-block;\n  margin-right: 10px;\n}\n#Datepickk .d-calendar {\n  margin: 0;\n  background-color: white;\n  box-shadow: 0px 2px 10px -2px rgba(0, 0, 0, 0.6);\n  font-size: 20px;\n  width: 100%;\n  position: relative;\n  max-width: 500px;\n  max-height: 560px;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  flex-grow: 1;\n  z-index: 2;\n}\n#Datepickk .d-header {\n  position: relative;\n  background-color: #1B363F;\n  color: white;\n  font-size: 1.5em;\n}\n#Datepickk .d-header p {\n  margin: .5em 0;\n  text-align: center;\n}\n#Datepickk .d-header i {\n  position: absolute;\n  top: 50%;\n  width: 30px;\n  height: 30px;\n  cursor: pointer;\n  text-align: center;\n  border-radius: 100%;\n  transition: background-color 0.2s ease;\n  transform: translateY(-50%);\n}\n#Datepickk .d-header i:before,\n#Datepickk .d-header i:after {\n  content: '';\n  width: 0;\n  height: 0;\n  position: absolute;\n}\n#Datepickk .d-header i:before {\n  border-top: 10px solid rgba(0, 0, 0, 0);\n  border-bottom: 10px solid rgba(0, 0, 0, 0);\n}\n#Datepickk .d-header i:after {\n  border-top: 7px solid rgba(0, 0, 0, 0);\n  border-bottom: 7px solid rgba(0, 0, 0, 0);\n  transition: border-color 0.2s ease;\n}\n#Datepickk .d-header i#d-previous {\n  left: 20px;\n}\n#Datepickk .d-header i#d-previous:before {\n  border-right: 10px solid #FFF;\n  top: 5px;\n  left: 7px;\n}\n#Datepickk .d-header i#d-previous:after {\n  border-right: 7px solid #1B363F;\n  top: 8px;\n  left: 10px;\n}\n#Datepickk .d-header i#d-next {\n  right: 20px;\n}\n#Datepickk .d-header i#d-next:before {\n  border-left: 10px solid #FFF;\n  top: 5px;\n  left: 12px;\n}\n#Datepickk .d-header i#d-next:after {\n  border-left: 7px solid #1B363F;\n  top: 8px;\n  left: 12px;\n}\n#Datepickk .d-header i:hover {\n  background-color: #5E7178;\n}\n#Datepickk .d-header i:hover:after {\n  border-left-color: #5E7178!important;\n  border-right-color: #5E7178!important;\n}\n#Datepickk .d-month {\n  cursor: pointer;\n  white-space: nowrap;\n}\n#Datepickk .d-year {\n  margin-left: 10px;\n  cursor: pointer;\n}\n#Datepickk .d-year:before {\n  content: \"\";\n}\n#Datepickk .d-month-picker {\n  display: flex;\n  justify-content: space-between;\n  background-color: rgba(27, 54, 63, 0.9);\n  height: 0;\n  overflow: hidden;\n  pointer-events: none;\n  transition: height .2s ease;\n}\n#Datepickk .d-month-picker.d-show {\n  height: 44px;\n  pointer-events: auto;\n}\n#Datepickk .d-month-picker > div {\n  width: calc(100% / 12);\n  text-align: center;\n  line-height: 44px;\n  color: white;\n  cursor: pointer;\n}\n#Datepickk .d-month-picker > div:hover,\n#Datepickk .d-month-picker > div:focus {\n  background-color: #e32d2d;\n  color: white;\n}\n#Datepickk .d-month-picker > div.current {\n  background-color: #e9965a;\n  color: white;\n}\n#Datepickk .d-year-picker {\n  display: flex;\n  justify-content: space-between;\n  background-color: rgba(27, 54, 63, 0.9);\n  height: 0;\n  overflow: hidden;\n  pointer-events: none;\n  transition: height .2s ease;\n}\n#Datepickk .d-year-picker.d-show {\n  height: 44px;\n  pointer-events: auto;\n}\n#Datepickk .d-year-picker > div {\n  width: calc(100% / 11);\n  text-align: center;\n  line-height: 44px;\n  color: white;\n  cursor: pointer;\n}\n#Datepickk .d-year-picker > div:hover,\n#Datepickk .d-year-picker > div:focus {\n  background-color: #e32d2d;\n  color: white;\n}\n#Datepickk .d-year-picker > div.current {\n  background-color: #e9965a;\n  color: white;\n}\n#Datepickk .d-weekdays {\n  display: flex;\n}\n#Datepickk .d-week {\n  background-color: #E95A5A;\n  color: white;\n  display: flex;\n  width: 100%;\n}\n#Datepickk .d-week + .d-week {\n  border-left: 1px solid rgba(255, 255, 255, 0.05);\n}\n#Datepickk .d-week > div {\n  flex-basis: calc(100% / 7);\n  text-align: center;\n}\n#Datepickk .d-week > div p {\n  margin: .8em 0;\n}\n@media (max-height: 540px) {\n  #Datepickk .d-week {\n    display: none;\n  }\n}\n#Datepickk .d-table {\n  width: 100%;\n  display: flex;\n  flex-wrap: wrap;\n  flex: 1;\n}\n#Datepickk .d-table:first-child:nth-last-child(n + 3),\n#Datepickk .d-table:first-child:nth-last-child(n + 3) ~ div {\n  flex: 0;\n  flex-basis: calc(100% / 3 - 1px);\n  /*-1px due to browser render*/\n  border-bottom: 1px solid rgba(0, 0, 0, 0.05);\n}\n#Datepickk .d-table label:nth-of-type(7n) .d-date-legends {\n  padding-right: 0;\n}\n#Datepickk .d-table label:nth-last-of-type(-n + 7) .d-date-legends {\n  padding-bottom: 0;\n}\n#Datepickk .d-table input {\n  display: none;\n}\n#Datepickk .d-table input + label {\n  flex-basis: calc(100% / 7);\n  -ms-flex-preferred-size: 14.28%;\n  /*Keep -> IE render fail*/\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  cursor: pointer;\n  transition: background-color 0.2s ease, background 0.2s ease, color 0.2s ease;\n  position: relative;\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n  box-sizing: border-box;\n}\n#Datepickk .d-table input + label text {\n  z-index: 9;\n  pointer-events: none;\n  position: relative;\n}\n#Datepickk .d-table input + label[style*=\"linear-gradient\"] text {\n  text-shadow: 0 0 20px black;\n}\n#Datepickk .d-table input + label.today text:before {\n  content: '';\n  width: 100%;\n  height: 2px;\n  background-color: #E95A5A;\n  position: absolute;\n  bottom: -5px;\n  left: 0;\n}\n#Datepickk .d-table input + label:before {\n  content: '';\n  position: absolute;\n  top: 12.5%;\n  left: 12.5%;\n  width: 75%;\n  height: 75%;\n  border-radius: 5px;\n  background-color: #7DD076;\n  transition: transform 0.1s ease-out;\n  transform: scaleX(0);\n  transform-origin: left;\n}\n#Datepickk .d-table input + label.legend-hover {\n  animation: legendhover 1s infinite;\n  z-index: 10;\n}\n@keyframes legendhover {\n  0% {\n    transform: translate(0, 0px);\n  }\n  50% {\n    transform: translate(0, -5px);\n  }\n  100% {\n    transform: translate(0, 0px);\n  }\n}\n#Datepickk .d-table input + label.next,\n#Datepickk .d-table input + label.prev {\n  color: #ccc;\n}\n#Datepickk .d-table input + label [data-tooltip]:after {\n  content: '';\n  border-radius: 100%;\n  background-color: #1B363F;\n  width: 5px;\n  height: 5px;\n  position: absolute;\n  top: 0;\n  right: -10px;\n}\n#Datepickk .d-table input + label .d-tooltip {\n  position: absolute;\n  background-color: #1B363F;\n  color: #FFF;\n  padding: 7px;\n  font-size: .7em;\n  z-index: 13;\n  text-align: center;\n  top: 100%;\n  left: 50%;\n  transform: translate(-50%, -5px);\n  display: none;\n}\n#Datepickk .d-table input + label .d-tooltip:before {\n  content: '';\n  border-bottom: 7px solid #1B363F;\n  border-left: 5px solid rgba(0, 0, 0, 0);\n  border-right: 5px solid rgba(0, 0, 0, 0);\n  top: -7px;\n  left: 50%;\n  position: absolute;\n  margin-left: -5px;\n}\n#Datepickk .d-table input + label .d-tooltip:empty {\n  display: none!important;\n}\n#Datepickk .d-table input + label:hover .d-tooltip {\n  display: block;\n}\n#Datepickk .d-table input:checked + label {\n  color: white;\n}\n#Datepickk .d-table input:checked + label:before {\n  transform: scaleX(1);\n}\n#Datepickk .d-table input:disabled + label {\n  cursor: not-allowed;\n}\n#Datepickk .d-table input:disabled + label:after {\n  content: '';\n  position: absolute;\n  top: 50%;\n  left: 20%;\n  width: 60%;\n  height: 2px;\n  z-index: 10;\n  background-color: #c60000;\n  transform-origin: center;\n  transform: rotate(-25deg);\n}\n#Datepickk .d-table input + label.d-hidden {\n  cursor: default;\n  color: #ccc!important;\n  background: #f0f0f0!important;\n  text-decoration: line-through;\n}\n#Datepickk .d-table input + label.d-hidden:after {\n  content: none;\n}\n#Datepickk .d-tables {\n  display: flex;\n  flex: 1;\n  flex-wrap: wrap;\n}\n#Datepickk .d-tables:not(.locked) input:not(:checked) + label:not(.hidden):hover {\n  color: #222;\n  background-color: #eaeaea;\n}\n#Datepickk .d-tables.locked label {\n  cursor: default;\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked + label {\n  color: white;\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked + label ~ label:not(.hidden) {\n  color: white;\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked + label ~ label:not(.hidden):before {\n  transform: scaleX(1);\n  background-color: rgba(125, 208, 118, 0.5);\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ label:hover ~ label,\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ label:focus ~ label {\n  color: #666;\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ label:hover ~ label:before,\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ label:focus ~ label:before {\n  transform: scaleX(0);\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ label:hover ~ label.next,\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ label:focus ~ label.next,\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ label:hover ~ label.prev,\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ label:focus ~ label.prev {\n  color: #ccc;\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ input:checked + label {\n  color: white;\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ input:checked + label:before {\n  transform: scaleX(1);\n  background-color: #7DD076;\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ input:checked + label ~ label {\n  color: inherit;\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ input:checked + label ~ label.next,\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ input:checked + label ~ label.prev {\n  color: #ccc;\n}\n#Datepickk .d-tables.range:not(.before) input:not(.single):checked ~ input:checked + label ~ label:before {\n  transform: scaleX(0);\n}\n#Datepickk .d-tables.range.before input:not(.single):not(:checked) + label {\n  color: white;\n}\n#Datepickk .d-tables.range.before input:not(.single):not(:checked) + label:before {\n  transform: scaleX(1);\n  background-color: rgba(233, 90, 126, 0.3);\n}\n#Datepickk .d-tables.range.before input:not(.single):checked + label ~ label {\n  color: inherit;\n}\n#Datepickk .d-tables.range.before input:not(.single):checked + label ~ label.next,\n#Datepickk .d-tables.range.before input:not(.single):checked + label ~ label.prev {\n  color: #ccc;\n}\n#Datepickk .d-tables.range.before input:not(.single):checked + label ~ label:before {\n  transform: scaleX(0);\n}\n#Datepickk .d-fadeInUp {\n  backface-visibility: visible !important;\n  animation-name: DatepickfadeInUp;\n  animation-duration: .5s;\n  animation-fill-mode: both;\n}\n@keyframes DatepickBGShow {\n  from {\n    opacity: 0;\n  }\n}\n@keyframes DatepickfadeInUp {\n  0% {\n    opacity: 0;\n    transform: translate3d(0, 100%, 0);\n  }\n  100% {\n    opacity: 1;\n    transform: none;\n  }\n}\n.d-fadeInUp {\n  animation-name: DatepickfadeInUp;\n}\n#Datepickk.d-show > * {\n  animation-name: DatepickkShow;\n  animation-duration: .2s;\n  animation-timing-function: ease-out;\n  animation-fill-mode: both;\n}\n@keyframes DatepickkShow {\n  from {\n    opacity: 0;\n    transform: translateY(-50px);\n  }\n}\n@keyframes DatepickkHide {\n  to {\n    opacity: 0;\n    transform: translateY(50px);\n  }\n}\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/dist/datepickk.js",
    "content": "(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Datepickk\"] = factory();\n\telse\n\t\troot[\"Datepickk\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\n__webpack_require__(1);\n\nfunction Datepickk(args) {\n\tDatepickk.numInstances = (Datepickk.numInstances || 0) + 1;\n\tvar that = this;\n\tvar eventName = 'click';\n\tvar selectedDates = [];\n\n\tvar currentYear = new Date().getFullYear();\n\tvar currentMonth = new Date().getMonth() + 1;\n\n\tvar languages = {\n\t\tno: {\n\t\t\tmonthNames: ['Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember'],\n\t\t\tdayNames: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'],\n\t\t\tweekStart: 1\n\t\t},\n\t\tse: {\n\t\t\tmonthNames: ['januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december'],\n\t\t\tdayNames: ['sö', 'må', 'ti', 'on', 'to', 'fr', 'lö'],\n\t\t\tweekStart: 1\n\t\t},\n\t\tru: {\n\t\t\tmonthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],\n\t\t\tdayNames: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],\n\t\t\tweekStart: 1\n\t\t},\n\t\ten: {\n\t\t\tmonthNames: ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'],\n\t\t\tdayNames: ['su', 'mo', 'tu', 'we', 'th', 'fr', 'sa'],\n\t\t\tweekStart: 0\n\t\t},\n\t\tde: {\n\t\t\tmonthNames: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],\n\t\t\tdayNames: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],\n\t\t\tweekStart: 1\n\t\t}\n\t};\n\n\t/*Language aliases*/\n\tlanguages.nb = languages.no;\n\tlanguages.nn = languages.no;\n\n\tvar range = false;\n\tvar maxSelections = null;\n\tvar container = document.body;\n\tvar opened = false;\n\tvar months = 1;\n\tvar closeOnSelect = false;\n\tvar button = null;\n\tvar title = null;\n\tvar onNavigation = null;\n\tvar onClose = null;\n\tvar onConfirm = null;\n\tvar closeOnClick = true;\n\tvar inline = false;\n\tvar lang = 'en';\n\tvar onSelect = null;\n\tvar disabledDates = [];\n\tvar disabledDays = [];\n\tvar highlight = [];\n\tvar tooltips = {};\n\tvar daynames = true;\n\tvar today = true;\n\tvar startDate = null;\n\tvar minDate = null;\n\tvar maxDate = null;\n\tvar weekStart = null;\n\tvar locked = false;\n\n\tfunction generateDaynames() {\n\t\tthat.el.days.innerHTML = '';\n\t\tvar ws = weekStart !== null ? weekStart : languages[lang].weekStart;\n\t\tif (daynames) {\n\t\t\tfor (var x = 0; x < months && x < 3; x++) {\n\t\t\t\tvar weekEl = document.createElement('div');\n\t\t\t\tweekEl.setAttribute('class', 'd-week');\n\t\t\t\tfor (var i = 0; i < 7; i++) {\n\t\t\t\t\tvar dayNameIndex = i + ws > languages[lang].dayNames.length - 1 ? i + ws - languages[lang].dayNames.length : i + ws;\n\n\t\t\t\t\tvar dayEl = document.createElement('div');\n\t\t\t\t\tvar dayTextEl = document.createElement('p');\n\t\t\t\t\tdayTextEl.innerHTML = languages[lang].dayNames[dayNameIndex];\n\n\t\t\t\t\tdayEl.appendChild(dayTextEl);\n\t\t\t\t\tweekEl.appendChild(dayEl);\n\t\t\t\t}\n\n\t\t\t\tthat.el.days.appendChild(weekEl);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction generateYears() {\n\t\t[].slice.call(that.el.yearPicker.childNodes).forEach(function (node, index) {\n\t\t\tnode.innerHTML = \"'\" + (currentYear + parseInt(node.getAttribute('data-year'))).toString().substring(2, 4);\n\t\t});\n\t}\n\n\tfunction generateInputs() {\n\t\tthat.el.tables.innerHTML = '';\n\t\tfor (var x = 0; x < months; x++) {\n\t\t\tvar container = document.createElement('div');\n\t\t\tcontainer.setAttribute('class', 'd-table');\n\t\t\tfor (var i = 0; i < 42; i++) {\n\t\t\t\tvar input = document.createElement('input');\n\t\t\t\tinput.type = 'checkbox';\n\t\t\t\tinput.id = Datepickk.numInstances + '-' + x + '-d-day-' + i;\n\t\t\t\tvar label = document.createElement('label');\n\t\t\t\tlabel.setAttribute(\"for\", Datepickk.numInstances + '-' + x + '-d-day-' + i);\n\n\t\t\t\tvar text = document.createElement('text');\n\n\t\t\t\tvar tooltip = document.createElement('span');\n\t\t\t\ttooltip.setAttribute('class', 'd-tooltip');\n\n\t\t\t\tcontainer.appendChild(input);\n\t\t\t\tcontainer.appendChild(label);\n\n\t\t\t\tlabel.appendChild(text);\n\t\t\t\tlabel.appendChild(tooltip);\n\n\t\t\t\tinput.addEventListener(eventName, function (event) {\n\t\t\t\t\tif (locked) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tinput.addEventListener('change', inputChange);\n\t\t\t}\n\n\t\t\tthat.el.tables.appendChild(container);\n\t\t}\n\n\t\tthat.el.tables.addEventListener('mouseover', highlightLegend);\n\t\tthat.el.tables.addEventListener('mouseout', highlightLegend);\n\n\t\tfunction highlightLegend(e) {\n\t\t\tif (e.target.nodeName !== 'LABEL') return;\n\n\t\t\tvar legendIds = e.target.getAttribute('data-legend-id') ? e.target.getAttribute('data-legend-id').split(' ') : [];\n\t\t\tif (!legendIds.length) return;\n\n\t\t\tlegendIds.forEach(function (legendId) {\n\t\t\t\tvar element = that.el.legend.querySelector('[data-legend-id=\"' + legendId + '\"]');\n\t\t\t\tif (e.type == 'mouseover' && element) {\n\t\t\t\t\tvar color = element.getAttribute('data-color') ? hexToRgb(element.getAttribute('data-color')) : null;\n\t\t\t\t\telement.setAttribute('style', 'background-color:rgba(' + color.r + ',' + color.g + ',' + color.b + ',0.35);');\n\t\t\t\t} else if (element) {\n\t\t\t\t\telement.removeAttribute('style');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tfunction hexToRgb(hex) {\n\t\t\t\tvar result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n\t\t\t\treturn result ? {\n\t\t\t\t\tr: parseInt(result[1], 16),\n\t\t\t\t\tg: parseInt(result[2], 16),\n\t\t\t\t\tb: parseInt(result[3], 16)\n\t\t\t\t} : null;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction generateLegends() {\n\t\tvar start = new Date(that.el.tables.childNodes[0].childNodes[0].getAttribute('data-date'));\n\t\tvar end = new Date(that.el.tables.childNodes[months - 1].childNodes[82].getAttribute('data-date'));\n\t\tvar _highlights = highlight.filter(function (x) {\n\t\t\tfor (var m = 0; m < x.dates.length; m++) {\n\t\t\t\tif (x.dates[m].start < end && x.dates[m].end > start) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t\tvar legends = [];\n\t\tfor (var l = 0; l < _highlights.length; l++) {\n\t\t\tif ('legend' in _highlights[l] && _highlights[l].legend) {\n\t\t\t\tvar oldLegend = container.querySelector('.d-legend-item[data-legend=\"' + _highlights[l].legend + '\"][data-color=\"' + _highlights[l].backgroundColor + '\"]');\n\t\t\t\tif (oldLegend == null) {\n\t\t\t\t\tvar legendItem = document.createElement('p');\n\t\t\t\t\tlegendItem.setAttribute('class', 'd-legend-item');\n\t\t\t\t\tlegendItem.setAttribute('data-legend', _highlights[l].legend);\n\t\t\t\t\tlegendItem.setAttribute('data-legend-id', highlight.indexOf(_highlights[l]));\n\t\t\t\t\tlegendItem.setAttribute('data-color', _highlights[l].backgroundColor);\n\t\t\t\t\tvar legendItemPoint = document.createElement('span');\n\t\t\t\t\tlegendItemPoint.setAttribute('style', 'background-color:' + _highlights[l].backgroundColor);\n\n\t\t\t\t\tlegendItem.appendChild(legendItemPoint);\n\n\t\t\t\t\tthat.el.legend.appendChild(legendItem);\n\t\t\t\t\tlegendItem.addEventListener('mouseover', hoverLegend);\n\t\t\t\t\tlegendItem.addEventListener('mouseout', hoverLegend);\n\t\t\t\t\tlegends.push(legendItem);\n\t\t\t\t} else {\n\t\t\t\t\tlegends.push(oldLegend);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t[].slice.call(that.el.legend.querySelectorAll('.d-legend-item')).forEach(function (item) {\n\t\t\tif (legends.indexOf(item) < 0) {\n\t\t\t\titem.removeEventListener('mouseover', hoverLegend);\n\t\t\t\titem.removeEventListener('mouseout', hoverLegend);\n\t\t\t\tthat.el.legend.removeChild(item);\n\t\t\t}\n\t\t});\n\n\t\tfunction hoverLegend(e) {\n\t\t\t[].slice.call(that.el.tables.querySelectorAll('[data-legend-id*=\"' + this.getAttribute('data-legend-id') + '\"]')).forEach(function (element) {\n\t\t\t\tif (e.type == 'mouseover') element.classList.add('legend-hover');else element.classList.remove('legend-hover');\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction parseMonth(month) {\n\t\tif (month > 11) month -= 12;else if (month < 0) month += 12;\n\t\treturn month;\n\t}\n\n\tfunction generateDates(year, month) {\n\t\tvar monthElements = that.el.querySelectorAll('.d-table');\n\t\tvar ws = weekStart !== null ? weekStart : languages[lang].weekStart;\n\n\t\t[].slice.call(that.el.querySelectorAll('.d-table')).forEach(function (element, index) {\n\t\t\tvar days = new Date(year, month + index, 0).getDate();\n\t\t\tvar daysLast = new Date(year, month + index - 1, 0).getDate();\n\t\t\tvar startDay = new Date(year, month + index - 1, 1).getDay();\n\t\t\tvar startDate = null;\n\t\t\tvar endDate = null;\n\t\t\tif (startDay - ws < 0) {\n\t\t\t\tstartDay = 7 - ws;\n\t\t\t} else {\n\t\t\t\tstartDay -= ws;\n\t\t\t}\n\t\t\tvar monthText = languages[lang].monthNames[parseMonth(month - 1 + index)];\n\t\t\telement.setAttribute('data-month', monthText);\n\n\t\t\t[].slice.call(element.querySelectorAll('.d-table input')).forEach(function (inputEl, i) {\n\t\t\t\tvar labelEl = inputEl.nextSibling;\n\n\t\t\t\tinputEl.checked = false;\n\t\t\t\tinputEl.removeAttribute('disabled');\n\t\t\t\tlabelEl.removeAttribute('style');\n\t\t\t\tlabelEl.removeAttribute('data-legend-id');\n\t\t\t\tlabelEl.className = '';\n\n\t\t\t\tvar date = null;\n\t\t\t\tif (i < startDay) {\n\t\t\t\t\tlabelEl.childNodes[0].innerHTML = daysLast - (startDay - i - 1);\n\t\t\t\t\tif (index == 0) {\n\t\t\t\t\t\tdate = new Date(year, month + index - 2, daysLast - (startDay - i - 1));\n\t\t\t\t\t\tlabelEl.className = 'prev';\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdate = '';\n\t\t\t\t\t\tlabelEl.className = 'd-hidden';\n\t\t\t\t\t\tinputEl.setAttribute('disabled', true);\n\t\t\t\t\t}\n\t\t\t\t} else if (i < days + startDay) {\n\t\t\t\t\tdate = new Date(year, month + index - 1, i - startDay + 1);\n\t\t\t\t\tlabelEl.childNodes[0].innerHTML = i - startDay + 1;\n\t\t\t\t\tlabelEl.className = '';\n\t\t\t\t} else {\n\t\t\t\t\tlabelEl.childNodes[0].innerHTML = i - days - startDay + 1;\n\t\t\t\t\tif (index == monthElements.length - 1) {\n\t\t\t\t\t\tdate = new Date(year, month + index, i - days - startDay + 1);\n\t\t\t\t\t\tlabelEl.className = 'next';\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdate = '';\n\t\t\t\t\t\tlabelEl.className = 'd-hidden';\n\t\t\t\t\t\tinputEl.setAttribute('disabled', true);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (date instanceof Date) {\n\t\t\t\t\tinputEl.setAttribute('data-date', date.toJSON());\n\n\t\t\t\t\tif (disabledDates.indexOf(date.getTime()) != -1 || disabledDays.indexOf(date.getDay()) != -1) {\n\t\t\t\t\t\tinputEl.setAttribute('disabled', true);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (minDate && date < minDate || maxDate && date > maxDate) {\n\t\t\t\t\t\tinputEl.setAttribute('disabled', true);\n\t\t\t\t\t\tlabelEl.className = 'd-hidden';\n\t\t\t\t\t}\n\n\t\t\t\t\tif (today && date.getTime() == new Date().setHours(0, 0, 0, 0)) {\n\t\t\t\t\t\tlabelEl.classList.add('today');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlabelEl.classList.remove('today');\n\t\t\t\t\t}\n\n\t\t\t\t\tif (tooltips[date.getTime()]) {\n\t\t\t\t\t\tlabelEl.childNodes[0].setAttribute('data-tooltip', true);\n\t\t\t\t\t\tlabelEl.childNodes[1].innerHTML = tooltips[date.getTime()];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlabelEl.childNodes[0].removeAttribute('data-tooltip');\n\t\t\t\t\t\tlabelEl.childNodes[1].innerHTML = '';\n\t\t\t\t\t}\n\n\t\t\t\t\tvar _highlights = highlight.filter(function (x) {\n\t\t\t\t\t\tfor (var m = 0; m < x.dates.length; m++) {\n\t\t\t\t\t\t\tif (date.getTime() >= x.dates[m].start.getTime() && date.getTime() <= x.dates[m].end.getTime()) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t});\n\n\t\t\t\t\tif (_highlights.length > 0) {\n\t\t\t\t\t\tvar bgColor = '';\n\t\t\t\t\t\tvar legendIds = '';\n\n\t\t\t\t\t\tif (_highlights.length > 1) {\n\t\t\t\t\t\t\tvar percent = Math.round(100 / _highlights.length);\n\t\t\t\t\t\t\tbgColor = 'background: linear-gradient(-45deg,';\n\t\t\t\t\t\t\tfor (var z = 0; z < _highlights.length; z++) {\n\t\t\t\t\t\t\t\tlegendIds += highlight.indexOf(_highlights[z]);\n\t\t\t\t\t\t\t\tif (z !== _highlights.length - 1) {\n\t\t\t\t\t\t\t\t\tlegendIds += ' ';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbgColor += _highlights[z].backgroundColor + ' ' + percent * z + '%';\n\t\t\t\t\t\t\t\tif (z != _highlights.length - 1) {\n\t\t\t\t\t\t\t\t\tbgColor += ',';\n\t\t\t\t\t\t\t\t\tbgColor += _highlights[z].backgroundColor + ' ' + percent * (z + 1) + '%,';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbgColor += ');';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbgColor = _highlights[0].backgroundColor ? 'background:' + _highlights[0].backgroundColor + ';' : '';\n\t\t\t\t\t\t\tlegendIds += highlight.indexOf(_highlights[0]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar Color = _highlights[0].color ? 'color:' + _highlights[0].color + ';' : '';\n\t\t\t\t\t\tlabelEl.setAttribute('style', bgColor + Color);\n\t\t\t\t\t\tlabelEl.setAttribute('data-legend-id', legendIds);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tgenerateLegends();\n\t};\n\n\tfunction setDate() {\n\t\tif (!that.el.tables.childNodes.length || !that.el.tables.childNodes[0].childNodes.length) return;\n\n\t\tresetCalendar();\n\n\t\tif (currentMonth > 12 || currentMonth < 1) {\n\t\t\tif (currentMonth > 12) {\n\t\t\t\tcurrentYear += 1;\n\t\t\t\tcurrentMonth -= 12;\n\t\t\t} else {\n\t\t\t\tcurrentYear -= 1;\n\t\t\t\tcurrentMonth += 12;\n\t\t\t}\n\t\t}\n\n\t\tif (maxDate && new Date(currentYear, currentMonth - 1 + months - 1, 1) >= new Date(maxDate).setDate(1)) {\n\t\t\tcurrentYear = maxDate.getFullYear();\n\t\t\tcurrentMonth = maxDate.getMonth() + 1 - months + 1;\n\t\t\tthat.el.header.childNodes[2].setAttribute('style', 'visibility:hidden');\n\t\t} else {\n\t\t\tthat.el.header.childNodes[2].removeAttribute('style');\n\t\t}\n\t\tif (minDate && new Date(currentYear, currentMonth - 1, 1) <= new Date(minDate).setDate(1)) {\n\t\t\tcurrentYear = minDate.getFullYear();\n\t\t\tcurrentMonth = minDate.getMonth() + 1;\n\t\t\tthat.el.header.childNodes[0].setAttribute('style', 'visibility:hidden');\n\t\t} else {\n\t\t\tthat.el.header.childNodes[0].removeAttribute('style');\n\t\t}\n\n\t\tfor (var c = 0; c < months; c++) {\n\t\t\tvar index = currentMonth - 1 + c;\n\t\t\tif (index > 11) {\n\t\t\t\tindex -= 12;\n\t\t\t} else if (index < 0) {\n\t\t\t\tindex += 12;\n\t\t\t}\n\n\t\t\tthat.el.monthPicker.childNodes[index].classList.add('current');\n\t\t}\n\n\t\tgenerateDates(currentYear, currentMonth);\n\t\tgenerateYears();\n\t\tvar startmonth = languages[lang].monthNames[currentMonth - 1];\n\t\tvar endmonth = '';\n\t\tif (months > 1) {\n\t\t\tendmonth += ' - ';\n\t\t\tvar monthint = currentMonth - 1 + months - 1;\n\t\t\tif (monthint > 11) {\n\t\t\t\tmonthint -= 12;\n\t\t\t} else if (monthint < 0) {\n\t\t\t\tmonthint += 12;\n\t\t\t}\n\t\t\tendmonth += languages[lang].monthNames[monthint];\n\t\t}\n\t\tvar yearname = currentMonth - 1 + months - 1 > 11 ? currentYear.toString().substring(2, 4) + '/' + (currentYear + 1).toString().substring(2, 4) : currentYear.toString().substring(2, 4);\n\t\tthat.el.header.childNodes[1].childNodes[0].innerHTML = startmonth + endmonth;\n\t\tthat.el.header.childNodes[1].childNodes[1].innerHTML = yearname;\n\n\t\tthat.el.yearPicker.querySelector('[data-year=\"0\"]').classList.add('current');\n\t\tif (currentMonth - 1 + months - 1 > 11) {\n\t\t\tthat.el.yearPicker.querySelector('[data-year=\"1\"]').classList.add('current');\n\t\t}\n\n\t\trenderSelectedDates();\n\t\tif (onNavigation) onNavigation.call(that);\n\t};\n\n\tfunction renderSelectedDates() {\n\t\tselectedDates.forEach(function (date) {\n\t\t\tvar el = that.el.querySelector('[data-date=\"' + date.toJSON() + '\"]');\n\t\t\tif (el) {\n\t\t\t\tel.checked = true;\n\t\t\t}\n\t\t});\n\n\t\tthat.el.tables.classList.remove('before');\n\t\tif (range && selectedDates.length > 1) {\n\t\t\tvar currentDate = new Date(currentYear, currentMonth - 1, 1);\n\t\t\tvar sorted = selectedDates.sort(function (a, b) {\n\t\t\t\treturn a.getTime() - b.getTime();\n\t\t\t});\n\t\t\tvar first = that.el.querySelector('[data-date=\"' + sorted[0].toJSON() + '\"]');\n\t\t\tif (!first && currentDate >= new Date(sorted[0].getFullYear(), sorted[0].getMonth(), 1) && currentDate <= new Date(sorted[1].getFullYear(), sorted[1].getMonth(), 1)) {\n\t\t\t\tthat.el.tables.classList.add('before');\n\t\t\t}\n\t\t}\n\t};\n\n\tfunction resetCalendar() {\n\t\t[].slice.call(that.el.querySelectorAll('.d-table input')).forEach(function (inputEl) {\n\t\t\tinputEl.checked = false;\n\t\t});\n\n\t\t[].slice.call(that.el.monthPicker.querySelectorAll('.current')).forEach(function (monthPickEl) {\n\t\t\tmonthPickEl.classList.remove('current');\n\t\t});\n\n\t\t[].slice.call(that.el.yearPicker.querySelectorAll('.current')).forEach(function (yearPickEl) {\n\t\t\tyearPickEl.classList.remove('current');\n\t\t});\n\t};\n\n\tfunction nextMonth() {\n\t\tcurrentMonth += months;\n\t\tsetDate();\n\t};\n\n\tfunction prevMonth() {\n\t\tcurrentMonth -= months;\n\t\tsetDate();\n\t};\n\n\tfunction selectDate(date, ignoreOnSelect) {\n\t\tdate = new Date(date);\n\t\tdate.setHours(0, 0, 0, 0);\n\t\tvar el = that.el.querySelector('[data-date=\"' + date.toJSON() + '\"]');\n\n\t\tif (range && el && el.checked) {\n\t\t\tel.classList.add('single');\n\t\t}\n\n\t\tif (el && !el.checked) {\n\t\t\tel.checked = true;\n\t\t}\n\n\t\tselectedDates.push(date);\n\n\t\tif (onSelect && !ignoreOnSelect) {\n\t\t\tonSelect.apply(date, [true]);\n\t\t}\n\t};\n\n\tfunction unselectDate(date, ignoreOnSelect) {\n\t\tdate = new Date(date);\n\t\tdate.setHours(0, 0, 0, 0);\n\t\tvar el = that.el.querySelector('[data-date=\"' + date.toJSON() + '\"]');\n\t\tif (el) {\n\t\t\tel.classList.remove('single');\n\t\t\tif (el.checked) {\n\t\t\t\tel.checked = false;\n\t\t\t}\n\t\t}\n\n\t\tselectedDates = selectedDates.filter(function (x) {\n\t\t\treturn x.getTime() != date.getTime();\n\t\t});\n\n\t\tif (onSelect && !ignoreOnSelect) {\n\t\t\tonSelect.call(date, false);\n\t\t}\n\t};\n\n\tfunction unselectAll(ignoreOnSelect) {\n\t\tselectedDates.forEach(function (date) {\n\t\t\tunselectDate(date, ignoreOnSelect);\n\t\t});\n\t};\n\n\tfunction inputChange(e) {\n\t\tvar input = this;\n\t\tvar date = new Date(input.getAttribute('data-date'));\n\t\tinput.classList.remove('single');\n\t\tif (locked) {\n\t\t\treturn;\n\t\t}\n\t\tif (range) {\n\t\t\tthat.el.tables.classList.remove('before');\n\t\t}\n\t\tif (input.checked) {\n\t\t\tif (maxSelections && selectedDates.length > maxSelections - 1) {\n\t\t\t\tvar length = selectedDates.length;\n\t\t\t\tfor (length; length > maxSelections - 1; length--) {\n\t\t\t\t\tunselectDate(selectedDates[0]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (range && selectedDates.length) {\n\t\t\t\tvar first = that.el.querySelector('[data-date=\"' + selectedDates[0].toJSON() + '\"]');\n\t\t\t\tif (!first && date > selectedDates[0]) {\n\t\t\t\t\tthat.el.tables.classList.add('before');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tselectedDates.push(date);\n\n\t\t\tif (closeOnSelect) {\n\t\t\t\tthat.hide();\n\t\t\t}\n\t\t} else {\n\t\t\tif (range && selectedDates.length == 1 && selectedDates[0].getTime() == date.getTime()) {\n\t\t\t\tselectDate(date);\n\t\t\t\tinput.classList.add('single');\n\t\t\t} else {\n\t\t\t\tselectedDates = selectedDates.filter(function (x) {\n\t\t\t\t\treturn x.getTime() != date.getTime();\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif (onSelect) {\n\t\t\tonSelect.call(date, input.checked);\n\t\t}\n\t};\n\n\tfunction setRange(val) {\n\t\tif (val) {\n\t\t\trange = true;\n\t\t\tthat.el.tables.classList.add('range');\n\t\t} else {\n\t\t\trange = false;\n\t\t\tthat.el.tables.classList.remove('range');\n\t\t}\n\t};\n\n\tfunction show(properties) {\n\t\tif (!that.inline && that.container === document.body) {\n\t\t\tdocument.body.classList.add('d-noscroll');\n\t\t}\n\t\tsetArgs(properties);\n\t\tvar handler = function handler() {\n\t\t\tthat.el.classList.remove('d-show');\n\t\t\tthat.el.calendar.removeEventListener(whichAnimationEvent(), handler);\n\t\t};\n\t\tthat.el.calendar.addEventListener(whichAnimationEvent(), handler);\n\t\tthat.el.classList.add('d-show');\n\t\tcontainer.appendChild(that.el);\n\t\topened = true;\n\t\tif (startDate) {\n\t\t\tcurrentMonth = startDate.getMonth() + 1;\n\t\t\tcurrentYear = startDate.getFullYear();\n\t\t}\n\t\tsetDate();\n\t};\n\n\tfunction hide() {\n\t\tdocument.body.classList.remove('d-noscroll');\n\t\tvar handler = function handler() {\n\t\t\tthat.el.parentNode.removeChild(that.el);\n\t\t\topened = false;\n\t\t\tthat.el.classList.remove('d-hide');\n\t\t\tif (typeof onClose == 'function') {\n\t\t\t\tonClose.apply(that);\n\t\t\t}\n\t\t\tthat.el.removeEventListener(whichAnimationEvent(), handler);\n\t\t};\n\t\tthat.el.addEventListener(whichAnimationEvent(), handler);\n\t\tthat.el.classList.add('d-hide');\n\t};\n\n\tfunction bindEvents() {\n\t\tthat.el.header.childNodes[0].addEventListener(eventName, prevMonth);\n\t\tthat.el.header.childNodes[2].addEventListener(eventName, nextMonth);\n\t\tthat.el.header.childNodes[1].childNodes[0].addEventListener(eventName, function () {\n\t\t\tif (that.el.monthPicker.classList.contains('d-show')) {\n\t\t\t\tthat.el.monthPicker.classList.remove('d-show');\n\t\t\t} else {\n\t\t\t\tthat.el.monthPicker.classList.add('d-show');\n\t\t\t}\n\t\t\tthat.el.yearPicker.classList.remove('d-show');\n\t\t});\n\t\tthat.el.header.childNodes[1].childNodes[1].addEventListener(eventName, function () {\n\t\t\tgenerateYears();\n\t\t\tif (that.el.yearPicker.classList.contains('d-show')) {\n\t\t\t\tthat.el.yearPicker.classList.remove('d-show');\n\t\t\t} else {\n\t\t\t\tthat.el.yearPicker.classList.add('d-show');\n\t\t\t}\n\t\t\tthat.el.monthPicker.classList.remove('d-show');\n\t\t});\n\t\tthat.el.button.addEventListener(eventName, hide);\n\n\t\tthat.el.overlay.addEventListener(eventName, function () {\n\t\t\tif (closeOnClick) {\n\t\t\t\tthat.hide();\n\t\t\t}\n\t\t});\n\n\t\t[].slice.call(that.el.monthPicker.childNodes).forEach(function (monthPicker) {\n\t\t\tmonthPicker.addEventListener(eventName, function () {\n\t\t\t\tcurrentMonth = parseInt(this.getAttribute('data-month'));\n\t\t\t\tsetDate();\n\t\t\t\tthat.el.monthPicker.classList.remove('d-show');\n\t\t\t});\n\t\t});\n\n\t\t[].slice.call(that.el.yearPicker.childNodes).forEach(function (yearPicker) {\n\t\t\tyearPicker.addEventListener(eventName, function () {\n\t\t\t\tcurrentYear += parseInt(this.getAttribute('data-year'));\n\t\t\t\tsetDate();\n\t\t\t\tthat.el.yearPicker.classList.remove('d-show');\n\t\t\t});\n\t\t});\n\n\t\tvar startX = 0;\n\t\tvar distance = 0;\n\t\tthat.el.calendar.addEventListener('touchstart', function (e) {\n\t\t\tstartX = e.changedTouches[0].clientX || e.originalEvent.changedTouches[0].clientX;\n\t\t\t//e.preventDefault();\n\t\t});\n\n\t\tthat.el.calendar.addEventListener('touchmove', function (e) {\n\t\t\tdistance = e.changedTouches[0].clientX - startX || e.originalEvent.changedTouches[0].clientX - startX;\n\t\t\te.preventDefault();\n\t\t});\n\n\t\tthat.el.calendar.addEventListener('touchend', function (e) {\n\t\t\tif (distance > 50) {\n\t\t\t\tprevMonth();\n\t\t\t} else if (distance < -50) {\n\t\t\t\tnextMonth();\n\t\t\t}\n\t\t\tdistance = 0;\n\t\t});\n\t};\n\n\tfunction setArgs(x) {\n\t\tfor (var key in x) {\n\t\t\tif (key in that) {\n\t\t\t\tthat[key] = x[key];\n\t\t\t}\n\t\t};\n\t};\n\n\tfunction init() {\n\t\tthat.el = document.createElement('div');\n\t\tthat.el.id = 'Datepickk';\n\t\tthat.el.classList.add(getBrowserVersion().type);\n\t\tthat.el.innerHTML = template;\n\t\tthat.el.calendar = that.el.childNodes[1];\n\t\tthat.el.titleBox = that.el.childNodes[0];\n\t\tthat.el.button = that.el.childNodes[3];\n\t\tthat.el.header = that.el.calendar.childNodes[0];\n\t\tthat.el.monthPicker = that.el.calendar.childNodes[1];\n\t\tthat.el.yearPicker = that.el.calendar.childNodes[2];\n\t\tthat.el.tables = that.el.calendar.childNodes[4];\n\t\tthat.el.days = that.el.calendar.childNodes[3];\n\t\tthat.el.overlay = that.el.childNodes[4];\n\t\tthat.el.legend = that.el.childNodes[2];\n\n\t\tsetArgs(args);\n\n\t\tgenerateInputs();\n\t\tgenerateDaynames();\n\t\tbindEvents();\n\n\t\tif (inline) {\n\t\t\tshow();\n\t\t}\n\t}\n\n\tthat.show = show;\n\tthat.hide = hide;\n\tthat.selectDate = selectDate;\n\tthat.unselectAll = unselectAll;\n\tthat.unselectDate = unselectDate;\n\n\tfunction currentDateGetter() {\n\t\treturn new Date(currentYear, currentMonth - 1, 1);\n\t}\n\tfunction currentDateSetter(x) {\n\t\tx = new Date(x);\n\t\tcurrentMonth = x.getMonth() + 1;\n\t\tcurrentYear = x.getFullYear();\n\t\tsetDate();\n\t}\n\n\tObject.defineProperties(that, {\n\t\t\"selectedDates\": {\n\t\t\tget: function get() {\n\t\t\t\treturn selectedDates.sort(function (a, b) {\n\t\t\t\t\treturn a.getTime() - b.getTime();\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\t\"range\": {\n\t\t\tget: function get() {\n\t\t\t\treturn range;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tsetRange(x);\n\t\t\t\tif (x) {\n\t\t\t\t\tmaxSelections = 2;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"button\": {\n\t\t\tget: function get() {\n\t\t\t\treturn button;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (typeof x == 'string') {\n\t\t\t\t\tbutton = x;\n\t\t\t\t} else {\n\t\t\t\t\tbutton = null;\n\t\t\t\t}\n\t\t\t\tthat.el.button.innerHTML = button ? button : '';\n\t\t\t}\n\t\t},\n\t\t\"title\": {\n\t\t\tget: function get() {\n\t\t\t\treturn title;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (typeof x == 'string') {\n\t\t\t\t\ttitle = x;\n\t\t\t\t} else {\n\t\t\t\t\ttitle = null;\n\t\t\t\t}\n\t\t\t\tthat.el.titleBox.innerText = title ? title : '';\n\t\t\t}\n\t\t},\n\t\t\"lang\": {\n\t\t\tget: function get() {\n\t\t\t\treturn lang;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x in languages) {\n\t\t\t\t\tlang = x;\n\t\t\t\t\tgenerateDaynames();\n\t\t\t\t\tsetDate();\n\t\t\t\t} else {\n\t\t\t\t\tconsole.error('Language not found');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"weekStart\": {\n\t\t\tget: function get() {\n\t\t\t\treturn weekStart !== null ? weekStart : languages[lang].weekStart;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (typeof x == 'number' && x > -1 && x < 7) {\n\t\t\t\t\tweekStart = x;\n\t\t\t\t\tgenerateDaynames();\n\t\t\t\t\tsetDate();\n\t\t\t\t} else {\n\t\t\t\t\tconsole.error('weekStart must be a number between 0 and 6');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"months\": {\n\t\t\tget: function get() {\n\t\t\t\treturn months;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (typeof x == 'number' && x > 0) {\n\t\t\t\t\tmonths = x;\n\t\t\t\t\tgenerateDaynames();\n\t\t\t\t\tgenerateInputs();\n\t\t\t\t\tsetDate();\n\n\t\t\t\t\tif (months == 1) {\n\t\t\t\t\t\tthat.el.classList.remove('multi');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthat.el.classList.add('multi');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tconsole.error('months must be a number > 0');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"isOpen\": {\n\t\t\tget: function get() {\n\t\t\t\treturn opened;\n\t\t\t}\n\t\t},\n\t\t\"closeOnSelect\": {\n\t\t\tget: function get() {\n\t\t\t\treturn closeOnSelect;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x) {\n\t\t\t\t\tcloseOnSelect = true;\n\t\t\t\t} else {\n\t\t\t\t\tcloseOnSelect = false;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"disabledDays\": {\n\t\t\tget: function get() {\n\t\t\t\treturn disabledDays;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x instanceof Array) {\n\t\t\t\t\tfor (var i = 0; i < x.length; i++) {\n\t\t\t\t\t\tif (typeof x[i] == 'number') {\n\t\t\t\t\t\t\tdisabledDays.push(x[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof x == 'number') {\n\t\t\t\t\tdisabledDays = [x];\n\t\t\t\t} else if (!x) {\n\t\t\t\t\tdisabledDays = [];\n\t\t\t\t}\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"disabledDates\": {\n\t\t\tget: function get() {\n\t\t\t\treturn disabledDates.map(function (x) {\n\t\t\t\t\treturn new Date(x);\n\t\t\t\t});\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x instanceof Array) {\n\t\t\t\t\tx.forEach(function (date) {\n\t\t\t\t\t\tif (date instanceof Date) {\n\t\t\t\t\t\t\tdisabledDates.push(new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else if (x instanceof Date) {\n\t\t\t\t\tdisabledDates = [new Date(x.getFullYear(), x.getMonth(), x.getDate()).getTime()];\n\t\t\t\t} else if (!x) {\n\t\t\t\t\tdisabledDates = [];\n\t\t\t\t}\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"highlight\": {\n\t\t\tget: function get() {\n\t\t\t\treturn highlight;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x instanceof Array) {\n\t\t\t\t\tx.forEach(function (hl) {\n\t\t\t\t\t\tif (hl instanceof Object) {\n\t\t\t\t\t\t\tvar highlightObj = {};\n\t\t\t\t\t\t\thighlightObj.dates = [];\n\n\t\t\t\t\t\t\tif ('start' in hl) {\n\t\t\t\t\t\t\t\thighlightObj.dates.push({\n\t\t\t\t\t\t\t\t\tstart: new Date(hl.start.getFullYear(), hl.start.getMonth(), hl.start.getDate()),\n\t\t\t\t\t\t\t\t\tend: 'end' in hl ? new Date(hl.end.getFullYear(), hl.end.getMonth(), hl.end.getDate()) : new Date(hl.start.getFullYear(), hl.start.getMonth(), hl.start.getDate())\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} else if ('dates' in hl && hl.dates instanceof Array) {\n\t\t\t\t\t\t\t\thl.dates.forEach(function (hlDate) {\n\t\t\t\t\t\t\t\t\thighlightObj.dates.push({\n\t\t\t\t\t\t\t\t\t\tstart: new Date(hlDate.start.getFullYear(), hlDate.start.getMonth(), hlDate.start.getDate()),\n\t\t\t\t\t\t\t\t\t\tend: 'end' in hlDate ? new Date(hlDate.end.getFullYear(), hlDate.end.getMonth(), hlDate.end.getDate()) : new Date(hlDate.start.getFullYear(), hlDate.start.getMonth(), hlDate.start.getDate())\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\thighlightObj.color = hl.color;\n\t\t\t\t\t\t\thighlightObj.backgroundColor = hl.backgroundColor;\n\t\t\t\t\t\t\thighlightObj.legend = 'legend' in hl ? hl.legend : null;\n\n\t\t\t\t\t\t\thighlight.push(highlightObj);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else if (x instanceof Object) {\n\t\t\t\t\tvar highlightObj = {};\n\t\t\t\t\thighlightObj.dates = [];\n\n\t\t\t\t\tif ('start' in x) {\n\t\t\t\t\t\thighlightObj.dates.push({\n\t\t\t\t\t\t\tstart: new Date(x.start.getFullYear(), x.start.getMonth(), x.start.getDate()),\n\t\t\t\t\t\t\tend: 'end' in x ? new Date(x.end.getFullYear(), x.end.getMonth(), x.end.getDate()) : new Date(x.start.getFullYear(), x.start.getMonth(), x.start.getDate())\n\t\t\t\t\t\t});\n\t\t\t\t\t} else if ('dates' in x && x.dates instanceof Array) {\n\t\t\t\t\t\tx.dates.forEach(function (hlDate) {\n\t\t\t\t\t\t\thighlightObj.dates.push({\n\t\t\t\t\t\t\t\tstart: new Date(hlDate.start.getFullYear(), hlDate.start.getMonth(), hlDate.start.getDate()),\n\t\t\t\t\t\t\t\tend: 'end' in hlDate ? new Date(hlDate.end.getFullYear(), hlDate.end.getMonth(), hlDate.end.getDate()) : new Date(hlDate.start.getFullYear(), hlDate.start.getMonth(), hlDate.start.getDate())\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\thighlightObj.color = x.color;\n\t\t\t\t\thighlightObj.backgroundColor = x.backgroundColor;\n\t\t\t\t\thighlightObj.legend = 'legend' in x ? x.legend : null;\n\n\t\t\t\t\thighlight.push(highlightObj);\n\t\t\t\t} else if (!x) {\n\t\t\t\t\thighlight = [];\n\t\t\t\t}\n\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"onClose\": {\n\t\t\tset: function set(callback) {\n\t\t\t\tonClose = callback;\n\t\t\t}\n\t\t},\n\t\t\"onSelect\": {\n\t\t\tset: function set(callback) {\n\t\t\t\tonSelect = callback;\n\t\t\t}\n\t\t},\n\t\t\"today\": {\n\t\t\tget: function get() {\n\t\t\t\treturn today;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x) {\n\t\t\t\t\ttoday = true;\n\t\t\t\t} else {\n\t\t\t\t\ttoday = false;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"daynames\": {\n\t\t\tget: function get() {\n\t\t\t\treturn daynames;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x) {\n\t\t\t\t\tdaynames = true;\n\t\t\t\t} else {\n\t\t\t\t\tdaynames = false;\n\t\t\t\t}\n\t\t\t\tgenerateDaynames();\n\t\t\t}\n\t\t},\n\t\t\"fullscreen\": {\n\t\t\tget: function get() {\n\t\t\t\treturn that.el.classList.contains('fullscreen');\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x) {\n\t\t\t\t\tthat.el.classList.add('fullscreen');\n\t\t\t\t} else {\n\t\t\t\t\tthat.el.classList.remove('fullscreen');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"locked\": {\n\t\t\tget: function get() {\n\t\t\t\treturn locked;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x) {\n\t\t\t\t\tlocked = true;\n\t\t\t\t\tthat.el.tables.classList.add('locked');\n\t\t\t\t} else {\n\t\t\t\t\tlocked = false;\n\t\t\t\t\tthat.el.tables.classList.remove('locked');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"maxSelections\": {\n\t\t\tget: function get() {\n\t\t\t\treturn maxSelections;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (typeof x == 'number' && !range) {\n\t\t\t\t\tmaxSelections = x;\n\t\t\t\t} else {\n\t\t\t\t\tif (range) {\n\t\t\t\t\t\tmaxSelections = 2;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmaxSelections = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"onConfirm\": {\n\t\t\tset: function set(callback) {\n\t\t\t\tif (typeof callback == 'function') {\n\t\t\t\t\tonConfirm = callback.bind(that);\n\t\t\t\t\tthat.el.button.addEventListener(eventName, onConfirm);\n\t\t\t\t} else if (!callback) {\n\t\t\t\t\tthat.el.button.removeEventListener(eventName, onConfirm);\n\t\t\t\t\tonConfirm = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"onNavigation\": {\n\t\t\tset: function set(callback) {\n\t\t\t\tif (typeof callback == 'function') {\n\t\t\t\t\tonNavigation = callback.bind(that);\n\t\t\t\t} else if (!callback) {\n\t\t\t\t\tonNavigation = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"closeOnClick\": {\n\t\t\tget: function get() {\n\t\t\t\treturn closeOnClick;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x) {\n\t\t\t\t\tcloseOnClick = true;\n\t\t\t\t} else {\n\t\t\t\t\tcloseOnClick = false;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"tooltips\": {\n\t\t\tget: function get() {\n\t\t\t\tvar ret = [];\n\t\t\t\tfor (key in tooltips) {\n\t\t\t\t\tret.push({\n\t\t\t\t\t\tdate: new Date(parseInt(key)),\n\t\t\t\t\t\ttext: tooltips[key]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn ret;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x instanceof Array) {\n\t\t\t\t\tx.forEach(function (item) {\n\t\t\t\t\t\tif (item.date && item.text && item.date instanceof Date) {\n\t\t\t\t\t\t\ttooltips[new Date(item.date.getFullYear(), item.date.getMonth(), item.date.getDate()).getTime()] = item.text;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else if (x instanceof Object) {\n\t\t\t\t\tif (x.date && x.text && x.date instanceof Date) {\n\t\t\t\t\t\ttooltips[new Date(x.date.getFullYear(), x.date.getMonth(), x.date.getDate()).getTime()] = x.text;\n\t\t\t\t\t}\n\t\t\t\t} else if (!x) {\n\t\t\t\t\ttooltips = [];\n\t\t\t\t}\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"currentDate\": {\n\t\t\tget: currentDateGetter,\n\t\t\tset: currentDateSetter\n\t\t},\n\t\t\"setDate\": {\n\t\t\tset: currentDateSetter\n\t\t},\n\t\t\"startDate\": {\n\t\t\tget: function get() {\n\t\t\t\treturn startDate;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x) {\n\t\t\t\t\tstartDate = new Date(x);\n\t\t\t\t} else {\n\t\t\t\t\tstartDate = null;\n\t\t\t\t\tcurrentYear = new Date().getFullYear();\n\t\t\t\t\tcurrentMonth = new Date().getMonth() + 1;\n\t\t\t\t}\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"minDate\": {\n\t\t\tget: function get() {\n\t\t\t\treturn minDate;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tminDate = x ? new Date(x) : null;\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"maxDate\": {\n\t\t\tget: function get() {\n\t\t\t\treturn maxDate;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tmaxDate = x ? new Date(x) : null;\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"container\": {\n\t\t\tget: function get() {\n\t\t\t\treturn container;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x instanceof String) {\n\t\t\t\t\tvar y = document.querySelector(x);\n\t\t\t\t\tif (y) {\n\t\t\t\t\t\tcontainer = y;\n\t\t\t\t\t\tif (container != document.body) {\n\t\t\t\t\t\t\tthat.el.classList.add('wrapped');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthat.el.classList.remove('wrapped');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconsole.error(\"Container doesn't exist\");\n\t\t\t\t\t}\n\t\t\t\t} else if (x instanceof HTMLElement) {\n\t\t\t\t\tcontainer = x;\n\t\t\t\t\tif (container != document.body) {\n\t\t\t\t\t\tthat.el.classList.add('wrapped');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthat.el.classList.remove('wrapped');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tconsole.error(\"Invalid type\");\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"inline\": {\n\t\t\tget: function get() {\n\t\t\t\treturn inline;\n\t\t\t},\n\t\t\tset: function set(x) {\n\t\t\t\tif (x) {\n\t\t\t\t\tinline = true;\n\t\t\t\t\tthat.el.classList.add('inline');\n\t\t\t\t} else {\n\t\t\t\t\tinline = false;\n\t\t\t\t\tthat.el.classList.remove('inline');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t});\n\n\tinit();\n\tsetDate();\n\n\treturn Object.freeze(that);\n} /*!\n  * Datepickk\n  * Docs & License: https://crsten.github.com/datepickk\n  * (c) 2017 Carsten Jacobsen\n  */\n\n;\n\nfunction whichAnimationEvent() {\n\tvar t;\n\tvar el = document.createElement('fakeelement');\n\tvar transitions = {\n\t\t'animation': 'animationend',\n\t\t'OAnimation': 'oanimationend',\n\t\t'MozAnimation': 'animationend',\n\t\t'WebkitAnimation': 'webkitAnimationEnd',\n\t\t'': 'MSAnimationEnd'\n\t};\n\n\tfor (t in transitions) {\n\t\tif (el.style[t] !== undefined) {\n\t\t\treturn transitions[t];\n\t\t}\n\t}\n}\n\nvar template = '<div class=\"d-title\"></div>' + '<div class=\"d-calendar\">' + '<div class=\"d-header\">' + '<i id=\"d-previous\"></i>' + '<p><span class=\"d-month\"></span><span class=\"d-year\"></span></p>' + '<i id=\"d-next\"></i>' + '</div>' + '<div class=\"d-month-picker\">' + '<div data-month=\"1\">1</div>' + '<div data-month=\"2\">2</div>' + '<div data-month=\"3\">3</div>' + '<div data-month=\"4\">4</div>' + '<div data-month=\"5\">5</div>' + '<div data-month=\"6\">6</div>' + '<div data-month=\"7\">7</div>' + '<div data-month=\"8\">8</div>' + '<div data-month=\"9\">9</div>' + '<div data-month=\"10\">10</div>' + '<div data-month=\"11\">11</div>' + '<div data-month=\"12\">12</div>' + '</div>' + '<div class=\"d-year-picker\">' + '<div data-year=\"-5\"></div>' + '<div data-year=\"-4\"></div>' + '<div data-year=\"-3\"></div>' + '<div data-year=\"-2\"></div>' + '<div data-year=\"-1\"></div>' + '<div data-year=\"0\"></div>' + '<div data-year=\"1\"></div>' + '<div data-year=\"2\"></div>' + '<div data-year=\"3\"></div>' + '<div data-year=\"4\"></div>' + '<div data-year=\"5\"></div>' + '</div>' + '<div class=\"d-weekdays\"></div>' + '<div class=\"d-tables\"></div>' + '</div>' + '<div class=\"d-legend\"></div>' + '<button class=\"d-confirm\"></button>' + '<div class=\"d-overlay\"></div>';\n\nvar getBrowserVersion = function getBrowserVersion() {\n\tvar browser = {\n\t\ttype: null,\n\t\tversion: null\n\t};\n\n\tvar ua = navigator.userAgent,\n\t    tem,\n\t    ios,\n\t    M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\\/))\\/?\\s*(\\d+)/i) || [];\n\tios = ua.match(/(iphone|ipad)\\s+OS\\s+([\\d+_]+\\d+)/i) || [];\n\tif (/trident/i.test(M[1])) {\n\t\ttem = /\\brv[ :]+(\\d+)/g.exec(ua) || [];\n\t\tbrowser.type = 'MSIE';\n\t\tbrowser.version = parseInt(tem[1]);\n\t\treturn browser;\n\t}\n\tif (M[1] === 'Chrome') {\n\t\ttem = ua.match(/\\bOPR\\/(\\d+)/);\n\t\tif (tem != null) return 'Opera ' + tem[1];\n\t}\n\tif (ios[1]) {\n\t\treturn browser = {\n\t\t\ttype: 'iOS',\n\t\t\tversion: ios[2]\n\t\t};\n\t}\n\tM = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?'];\n\tif ((tem = ua.match(/version\\/(\\d+)/i)) != null) M.splice(1, 1, tem[1]);\n\tbrowser.type = M[0];\n\tbrowser.version = parseInt(M[1]);\n\n\treturn browser;\n};\n\nexports.default = Datepickk;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ })\n/******/ ])[\"default\"];\n});"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/dist/doc.css",
    "content": "/*Flex grid*/\n.container {\n  padding: 7.5px;\n}\n.align-end {\n  -webkit-align-self: flex-end;\n  -ms-flex-item-align: end;\n  align-self: flex-end;\n}\n.fullheight {\n  min-height: calc(100vh - 75px);\n}\n.row {\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: row;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-flex-wrap: wrap;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  -webkit-box-pack: start;\n  -webkit-justify-content: flex-start;\n  -ms-flex-pack: start;\n  justify-content: flex-start;\n  -webkit-box-align: start;\n  -webkit-align-items: flex-start;\n  -ms-flex-align: start;\n  align-items: flex-start;\n}\n.row.auto-fill > [class*=\"col-\"] {\n  -webkit-box-flex: 1;\n  -webkit-flex-grow: 1;\n  -ms-flex-positive: 1;\n  flex-grow: 1;\n}\n.title {\n  -webkit-flex-basis: 100%;\n  -ms-flex-preferred-size: 100%;\n  flex-basis: 100%;\n  margin: 15px 0;\n}\n.block {\n  box-shadow: 0px 2px 10px -4px rgba(0, 0, 0, 0.3);\n}\n[class*=\"col-\"] {\n  -webkit-flex-basis: 100%;\n  -ms-flex-preferred-size: 100%;\n  flex-basis: 100%;\n  -webkit-box-ordinal-group: 1000;\n  -webkit-order: 999;\n  -ms-flex-order: 999;\n  order: 999;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-flex-wrap: wrap;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  -webkit-box-pack: start;\n  -webkit-justify-content: flex-start;\n  -ms-flex-pack: start;\n  justify-content: flex-start;\n  -webkit-box-align: start;\n  -webkit-align-items: flex-start;\n  -ms-flex-align: start;\n  align-items: flex-start;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: row;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-align-content: flex-start;\n  -ms-flex-line-pack: start;\n  align-content: flex-start;\n  transition: flex-basis 0.1s ease;\n  -webkit-transition: -webkit-flex-basis 0.1s ease;\n  -ms-transition: -ms-flex-basis 0.1s ease;\n}\n[class*=\"col-\"].block {\n  padding: 15px;\n  background: white;\n  margin: 7.5px;\n}\n[class*=\"col-\"].block.transparent {\n  box-shadow: none;\n}\n[class*=\"col-\"].align-center {\n  -webkit-box-pack: center;\n  -webkit-justify-content: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n}\n[class*=\"col-\"] h1,\n[class*=\"col-\"] h2 {\n  margin-top: 0;\n  margin-bottom: 15px;\n}\n[class*=\"col-\"].nested {\n  padding: 7.5px;\n}\n[class*=\"col-\"]:empty {\n  min-height: 250px;\n}\n[class*=\"col-\"].orderTop {\n  -webkit-box-ordinal-group: 2;\n  -webkit-order: 1;\n  -ms-flex-order: 1;\n  order: 1;\n}\n[class*=\"col-\"] .align-bottom {\n  margin-top: auto;\n}\n[class*=\"col-\"] .align-right {\n  margin-left: auto;\n}\n[class*=\"col-\"] .title {\n  margin-top: 0;\n}\n[class*=\"col-\"] [class*=\"col-\"] {\n  padding: 7.5px;\n}\n[class*=\"col-\"].nopadding {\n  padding: 0;\n}\n.align-middle {\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n  -ms-flex-align: center;\n  align-items: center;\n}\n.equal-height {\n  -webkit-box-align: stretch;\n  -webkit-align-items: stretch;\n  -ms-flex-align: stretch;\n  align-items: stretch;\n}\n.align-center {\n  -webkit-box-pack: center;\n  -webkit-justify-content: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n}\n.align-end {\n  -webkit-box-pack: end;\n  -webkit-justify-content: flex-end;\n  -ms-flex-pack: end;\n  justify-content: flex-end;\n}\n.column {\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: column;\n  -ms-flex-direction: column;\n  flex-direction: column;\n}\n.col-xs-1 {\n  -webkit-flex-basis: 8.33333333%;\n  -ms-flex-preferred-size: 8.33333333%;\n  flex-basis: 8.33333333%;\n}\n.col-xs-1.block {\n  -webkit-flex-basis: calc(8.33333333% - 15px);\n  flex-basis: calc(8.33333333% - 15px);\n  -ms-flex-preferred-size: calc(8.33333333% - 45px);\n}\n.col-xs-2 {\n  -webkit-flex-basis: 16.66666667%;\n  -ms-flex-preferred-size: 16.66666667%;\n  flex-basis: 16.66666667%;\n}\n.col-xs-2.block {\n  -webkit-flex-basis: calc(16.66666667% - 15px);\n  flex-basis: calc(16.66666667% - 15px);\n  -ms-flex-preferred-size: calc(16.66666667% - 45px);\n}\n.col-xs-3 {\n  -webkit-flex-basis: 25%;\n  -ms-flex-preferred-size: 25%;\n  flex-basis: 25%;\n}\n.col-xs-3.block {\n  -webkit-flex-basis: calc(25% - 15px);\n  flex-basis: calc(25% - 15px);\n  -ms-flex-preferred-size: calc(25% - 45px);\n}\n.col-xs-4 {\n  -webkit-flex-basis: 33.33333333%;\n  -ms-flex-preferred-size: 33.33333333%;\n  flex-basis: 33.33333333%;\n}\n.col-xs-4.block {\n  -webkit-flex-basis: calc(33.33333333% - 15px);\n  flex-basis: calc(33.33333333% - 15px);\n  -ms-flex-preferred-size: calc(33.33333333% - 45px);\n}\n.col-xs-5 {\n  -webkit-flex-basis: 41.66666667%;\n  -ms-flex-preferred-size: 41.66666667%;\n  flex-basis: 41.66666667%;\n}\n.col-xs-5.block {\n  -webkit-flex-basis: calc(41.66666667% - 15px);\n  flex-basis: calc(41.66666667% - 15px);\n  -ms-flex-preferred-size: calc(41.66666667% - 45px);\n}\n.col-xs-6 {\n  -webkit-flex-basis: 50%;\n  -ms-flex-preferred-size: 50%;\n  flex-basis: 50%;\n}\n.col-xs-6.block {\n  -webkit-flex-basis: calc(50% - 15px);\n  flex-basis: calc(50% - 15px);\n  -ms-flex-preferred-size: calc(50% - 45px);\n}\n.col-xs-7 {\n  -webkit-flex-basis: 58.33333333%;\n  -ms-flex-preferred-size: 58.33333333%;\n  flex-basis: 58.33333333%;\n}\n.col-xs-7.block {\n  -webkit-flex-basis: calc(58.33333333% - 15px);\n  flex-basis: calc(58.33333333% - 15px);\n  -ms-flex-preferred-size: calc(58.33333333% - 45px);\n}\n.col-xs-8 {\n  -webkit-flex-basis: 66.66666667%;\n  -ms-flex-preferred-size: 66.66666667%;\n  flex-basis: 66.66666667%;\n}\n.col-xs-8.block {\n  -webkit-flex-basis: calc(66.66666667% - 15px);\n  flex-basis: calc(66.66666667% - 15px);\n  -ms-flex-preferred-size: calc(66.66666667% - 45px);\n}\n.col-xs-9 {\n  -webkit-flex-basis: 75%;\n  -ms-flex-preferred-size: 75%;\n  flex-basis: 75%;\n}\n.col-xs-9.block {\n  -webkit-flex-basis: calc(75% - 15px);\n  flex-basis: calc(75% - 15px);\n  -ms-flex-preferred-size: calc(75% - 45px);\n}\n.col-xs-10 {\n  -webkit-flex-basis: 83.33333333%;\n  -ms-flex-preferred-size: 83.33333333%;\n  flex-basis: 83.33333333%;\n}\n.col-xs-10.block {\n  -webkit-flex-basis: calc(83.33333333% - 15px);\n  flex-basis: calc(83.33333333% - 15px);\n  -ms-flex-preferred-size: calc(83.33333333% - 45px);\n}\n.col-xs-11 {\n  -webkit-flex-basis: 91.66666667%;\n  -ms-flex-preferred-size: 91.66666667%;\n  flex-basis: 91.66666667%;\n}\n.col-xs-11.block {\n  -webkit-flex-basis: calc(91.66666667% - 15px);\n  flex-basis: calc(91.66666667% - 15px);\n  -ms-flex-preferred-size: calc(91.66666667% - 45px);\n}\n.col-xs-12 {\n  -webkit-flex-basis: 100%;\n  -ms-flex-preferred-size: 100%;\n  flex-basis: 100%;\n}\n.col-xs-12.block {\n  -webkit-flex-basis: calc(100% - 15px);\n  flex-basis: calc(100% - 15px);\n  -ms-flex-preferred-size: calc(100% - 45px);\n}\n@media (min-width: 600px) {\n  .col-sm-1 {\n    -webkit-flex-basis: 8.33333333%;\n    -ms-flex-preferred-size: 8.33333333%;\n    flex-basis: 8.33333333%;\n  }\n  .col-sm-1.block {\n    -webkit-flex-basis: calc(8.33333333% - 15px);\n    flex-basis: calc(8.33333333% - 15px);\n    -ms-flex-preferred-size: calc(8.33333333% - 45px);\n  }\n  .col-sm-2 {\n    -webkit-flex-basis: 16.66666667%;\n    -ms-flex-preferred-size: 16.66666667%;\n    flex-basis: 16.66666667%;\n  }\n  .col-sm-2.block {\n    -webkit-flex-basis: calc(16.66666667% - 15px);\n    flex-basis: calc(16.66666667% - 15px);\n    -ms-flex-preferred-size: calc(16.66666667% - 45px);\n  }\n  .col-sm-3 {\n    -webkit-flex-basis: 25%;\n    -ms-flex-preferred-size: 25%;\n    flex-basis: 25%;\n  }\n  .col-sm-3.block {\n    -webkit-flex-basis: calc(25% - 15px);\n    flex-basis: calc(25% - 15px);\n    -ms-flex-preferred-size: calc(25% - 45px);\n  }\n  .col-sm-4 {\n    -webkit-flex-basis: 33.33333333%;\n    -ms-flex-preferred-size: 33.33333333%;\n    flex-basis: 33.33333333%;\n  }\n  .col-sm-4.block {\n    -webkit-flex-basis: calc(33.33333333% - 15px);\n    flex-basis: calc(33.33333333% - 15px);\n    -ms-flex-preferred-size: calc(33.33333333% - 45px);\n  }\n  .col-sm-5 {\n    -webkit-flex-basis: 41.66666667%;\n    -ms-flex-preferred-size: 41.66666667%;\n    flex-basis: 41.66666667%;\n  }\n  .col-sm-5.block {\n    -webkit-flex-basis: calc(41.66666667% - 15px);\n    flex-basis: calc(41.66666667% - 15px);\n    -ms-flex-preferred-size: calc(41.66666667% - 45px);\n  }\n  .col-sm-6 {\n    -webkit-flex-basis: 50%;\n    -ms-flex-preferred-size: 50%;\n    flex-basis: 50%;\n  }\n  .col-sm-6.block {\n    -webkit-flex-basis: calc(50% - 15px);\n    flex-basis: calc(50% - 15px);\n    -ms-flex-preferred-size: calc(50% - 45px);\n  }\n  .col-sm-7 {\n    -webkit-flex-basis: 58.33333333%;\n    -ms-flex-preferred-size: 58.33333333%;\n    flex-basis: 58.33333333%;\n  }\n  .col-sm-7.block {\n    -webkit-flex-basis: calc(58.33333333% - 15px);\n    flex-basis: calc(58.33333333% - 15px);\n    -ms-flex-preferred-size: calc(58.33333333% - 45px);\n  }\n  .col-sm-8 {\n    -webkit-flex-basis: 66.66666667%;\n    -ms-flex-preferred-size: 66.66666667%;\n    flex-basis: 66.66666667%;\n  }\n  .col-sm-8.block {\n    -webkit-flex-basis: calc(66.66666667% - 15px);\n    flex-basis: calc(66.66666667% - 15px);\n    -ms-flex-preferred-size: calc(66.66666667% - 45px);\n  }\n  .col-sm-9 {\n    -webkit-flex-basis: 75%;\n    -ms-flex-preferred-size: 75%;\n    flex-basis: 75%;\n  }\n  .col-sm-9.block {\n    -webkit-flex-basis: calc(75% - 15px);\n    flex-basis: calc(75% - 15px);\n    -ms-flex-preferred-size: calc(75% - 45px);\n  }\n  .col-sm-10 {\n    -webkit-flex-basis: 83.33333333%;\n    -ms-flex-preferred-size: 83.33333333%;\n    flex-basis: 83.33333333%;\n  }\n  .col-sm-10.block {\n    -webkit-flex-basis: calc(83.33333333% - 15px);\n    flex-basis: calc(83.33333333% - 15px);\n    -ms-flex-preferred-size: calc(83.33333333% - 45px);\n  }\n  .col-sm-11 {\n    -webkit-flex-basis: 91.66666667%;\n    -ms-flex-preferred-size: 91.66666667%;\n    flex-basis: 91.66666667%;\n  }\n  .col-sm-11.block {\n    -webkit-flex-basis: calc(91.66666667% - 15px);\n    flex-basis: calc(91.66666667% - 15px);\n    -ms-flex-preferred-size: calc(91.66666667% - 45px);\n  }\n  .col-sm-12 {\n    -webkit-flex-basis: 100%;\n    -ms-flex-preferred-size: 100%;\n    flex-basis: 100%;\n  }\n  .col-sm-12.block {\n    -webkit-flex-basis: calc(100% - 15px);\n    flex-basis: calc(100% - 15px);\n    -ms-flex-preferred-size: calc(100% - 45px);\n  }\n}\n@media (min-width: 992px) {\n  .col-md-1 {\n    -webkit-flex-basis: 8.33333333%;\n    -ms-flex-preferred-size: 8.33333333%;\n    flex-basis: 8.33333333%;\n  }\n  .col-md-1.block {\n    -webkit-flex-basis: calc(8.33333333% - 15px);\n    flex-basis: calc(8.33333333% - 15px);\n    -ms-flex-preferred-size: calc(8.33333333% - 45px);\n  }\n  .col-md-2 {\n    -webkit-flex-basis: 16.66666667%;\n    -ms-flex-preferred-size: 16.66666667%;\n    flex-basis: 16.66666667%;\n  }\n  .col-md-2.block {\n    -webkit-flex-basis: calc(16.66666667% - 15px);\n    flex-basis: calc(16.66666667% - 15px);\n    -ms-flex-preferred-size: calc(16.66666667% - 45px);\n  }\n  .col-md-3 {\n    -webkit-flex-basis: 25%;\n    -ms-flex-preferred-size: 25%;\n    flex-basis: 25%;\n  }\n  .col-md-3.block {\n    -webkit-flex-basis: calc(25% - 15px);\n    flex-basis: calc(25% - 15px);\n    -ms-flex-preferred-size: calc(25% - 45px);\n  }\n  .col-md-4 {\n    -webkit-flex-basis: 33.33333333%;\n    -ms-flex-preferred-size: 33.33333333%;\n    flex-basis: 33.33333333%;\n  }\n  .col-md-4.block {\n    -webkit-flex-basis: calc(33.33333333% - 15px);\n    flex-basis: calc(33.33333333% - 15px);\n    -ms-flex-preferred-size: calc(33.33333333% - 45px);\n  }\n  .col-md-5 {\n    -webkit-flex-basis: 41.66666667%;\n    -ms-flex-preferred-size: 41.66666667%;\n    flex-basis: 41.66666667%;\n  }\n  .col-md-5.block {\n    -webkit-flex-basis: calc(41.66666667% - 15px);\n    flex-basis: calc(41.66666667% - 15px);\n    -ms-flex-preferred-size: calc(41.66666667% - 45px);\n  }\n  .col-md-6 {\n    -webkit-flex-basis: 50%;\n    -ms-flex-preferred-size: 50%;\n    flex-basis: 50%;\n  }\n  .col-md-6.block {\n    -webkit-flex-basis: calc(50% - 15px);\n    flex-basis: calc(50% - 15px);\n    -ms-flex-preferred-size: calc(50% - 45px);\n  }\n  .col-md-7 {\n    -webkit-flex-basis: 58.33333333%;\n    -ms-flex-preferred-size: 58.33333333%;\n    flex-basis: 58.33333333%;\n  }\n  .col-md-7.block {\n    -webkit-flex-basis: calc(58.33333333% - 15px);\n    flex-basis: calc(58.33333333% - 15px);\n    -ms-flex-preferred-size: calc(58.33333333% - 45px);\n  }\n  .col-md-8 {\n    -webkit-flex-basis: 66.66666667%;\n    -ms-flex-preferred-size: 66.66666667%;\n    flex-basis: 66.66666667%;\n  }\n  .col-md-8.block {\n    -webkit-flex-basis: calc(66.66666667% - 15px);\n    flex-basis: calc(66.66666667% - 15px);\n    -ms-flex-preferred-size: calc(66.66666667% - 45px);\n  }\n  .col-md-9 {\n    -webkit-flex-basis: 75%;\n    -ms-flex-preferred-size: 75%;\n    flex-basis: 75%;\n  }\n  .col-md-9.block {\n    -webkit-flex-basis: calc(75% - 15px);\n    flex-basis: calc(75% - 15px);\n    -ms-flex-preferred-size: calc(75% - 45px);\n  }\n  .col-md-10 {\n    -webkit-flex-basis: 83.33333333%;\n    -ms-flex-preferred-size: 83.33333333%;\n    flex-basis: 83.33333333%;\n  }\n  .col-md-10.block {\n    -webkit-flex-basis: calc(83.33333333% - 15px);\n    flex-basis: calc(83.33333333% - 15px);\n    -ms-flex-preferred-size: calc(83.33333333% - 45px);\n  }\n  .col-md-11 {\n    -webkit-flex-basis: 91.66666667%;\n    -ms-flex-preferred-size: 91.66666667%;\n    flex-basis: 91.66666667%;\n  }\n  .col-md-11.block {\n    -webkit-flex-basis: calc(91.66666667% - 15px);\n    flex-basis: calc(91.66666667% - 15px);\n    -ms-flex-preferred-size: calc(91.66666667% - 45px);\n  }\n  .col-md-12 {\n    -webkit-flex-basis: 100%;\n    -ms-flex-preferred-size: 100%;\n    flex-basis: 100%;\n  }\n  .col-md-12.block {\n    -webkit-flex-basis: calc(100% - 15px);\n    flex-basis: calc(100% - 15px);\n    -ms-flex-preferred-size: calc(100% - 45px);\n  }\n}\n@media (min-width: 1200px) {\n  .col-lg-1 {\n    -webkit-flex-basis: 8.33333333%;\n    -ms-flex-preferred-size: 8.33333333%;\n    flex-basis: 8.33333333%;\n  }\n  .col-lg-1.block {\n    -webkit-flex-basis: calc(8.33333333% - 15px);\n    flex-basis: calc(8.33333333% - 15px);\n    -ms-flex-preferred-size: calc(8.33333333% - 45px);\n  }\n  .col-lg-2 {\n    -webkit-flex-basis: 16.66666667%;\n    -ms-flex-preferred-size: 16.66666667%;\n    flex-basis: 16.66666667%;\n  }\n  .col-lg-2.block {\n    -webkit-flex-basis: calc(16.66666667% - 15px);\n    flex-basis: calc(16.66666667% - 15px);\n    -ms-flex-preferred-size: calc(16.66666667% - 45px);\n  }\n  .col-lg-3 {\n    -webkit-flex-basis: 25%;\n    -ms-flex-preferred-size: 25%;\n    flex-basis: 25%;\n  }\n  .col-lg-3.block {\n    -webkit-flex-basis: calc(25% - 15px);\n    flex-basis: calc(25% - 15px);\n    -ms-flex-preferred-size: calc(25% - 45px);\n  }\n  .col-lg-4 {\n    -webkit-flex-basis: 33.33333333%;\n    -ms-flex-preferred-size: 33.33333333%;\n    flex-basis: 33.33333333%;\n  }\n  .col-lg-4.block {\n    -webkit-flex-basis: calc(33.33333333% - 15px);\n    flex-basis: calc(33.33333333% - 15px);\n    -ms-flex-preferred-size: calc(33.33333333% - 45px);\n  }\n  .col-lg-5 {\n    -webkit-flex-basis: 41.66666667%;\n    -ms-flex-preferred-size: 41.66666667%;\n    flex-basis: 41.66666667%;\n  }\n  .col-lg-5.block {\n    -webkit-flex-basis: calc(41.66666667% - 15px);\n    flex-basis: calc(41.66666667% - 15px);\n    -ms-flex-preferred-size: calc(41.66666667% - 45px);\n  }\n  .col-lg-6 {\n    -webkit-flex-basis: 50%;\n    -ms-flex-preferred-size: 50%;\n    flex-basis: 50%;\n  }\n  .col-lg-6.block {\n    -webkit-flex-basis: calc(50% - 15px);\n    flex-basis: calc(50% - 15px);\n    -ms-flex-preferred-size: calc(50% - 45px);\n  }\n  .col-lg-7 {\n    -webkit-flex-basis: 58.33333333%;\n    -ms-flex-preferred-size: 58.33333333%;\n    flex-basis: 58.33333333%;\n  }\n  .col-lg-7.block {\n    -webkit-flex-basis: calc(58.33333333% - 15px);\n    flex-basis: calc(58.33333333% - 15px);\n    -ms-flex-preferred-size: calc(58.33333333% - 45px);\n  }\n  .col-lg-8 {\n    -webkit-flex-basis: 66.66666667%;\n    -ms-flex-preferred-size: 66.66666667%;\n    flex-basis: 66.66666667%;\n  }\n  .col-lg-8.block {\n    -webkit-flex-basis: calc(66.66666667% - 15px);\n    flex-basis: calc(66.66666667% - 15px);\n    -ms-flex-preferred-size: calc(66.66666667% - 45px);\n  }\n  .col-lg-9 {\n    -webkit-flex-basis: 75%;\n    -ms-flex-preferred-size: 75%;\n    flex-basis: 75%;\n  }\n  .col-lg-9.block {\n    -webkit-flex-basis: calc(75% - 15px);\n    flex-basis: calc(75% - 15px);\n    -ms-flex-preferred-size: calc(75% - 45px);\n  }\n  .col-lg-10 {\n    -webkit-flex-basis: 83.33333333%;\n    -ms-flex-preferred-size: 83.33333333%;\n    flex-basis: 83.33333333%;\n  }\n  .col-lg-10.block {\n    -webkit-flex-basis: calc(83.33333333% - 15px);\n    flex-basis: calc(83.33333333% - 15px);\n    -ms-flex-preferred-size: calc(83.33333333% - 45px);\n  }\n  .col-lg-11 {\n    -webkit-flex-basis: 91.66666667%;\n    -ms-flex-preferred-size: 91.66666667%;\n    flex-basis: 91.66666667%;\n  }\n  .col-lg-11.block {\n    -webkit-flex-basis: calc(91.66666667% - 15px);\n    flex-basis: calc(91.66666667% - 15px);\n    -ms-flex-preferred-size: calc(91.66666667% - 45px);\n  }\n  .col-lg-12 {\n    -webkit-flex-basis: 100%;\n    -ms-flex-preferred-size: 100%;\n    flex-basis: 100%;\n  }\n  .col-lg-12.block {\n    -webkit-flex-basis: calc(100% - 15px);\n    flex-basis: calc(100% - 15px);\n    -ms-flex-preferred-size: calc(100% - 45px);\n  }\n}\n.bg-blue {\n  background: #3f7cac;\n}\n.bg-blue-fade {\n  background: rgba(63, 124, 172, 0.4);\n}\n.red {\n  background: #AA3F3F !important;\n  color: white!important;\n}\n.orange {\n  background: #E99C00 !important;\n  color: white!important;\n}\n.grey {\n  background: #767676 !important;\n  color: white!important;\n}\n.green {\n  background: #3faa56 !important;\n  color: white!important;\n}\n.blue {\n  background: #3f7cac !important;\n  color: white!important;\n}\n.white {\n  background: white;\n}\n.darkgrey {\n  background: #222 !important;\n  color: white!important;\n}\n.transparent {\n  background: transparent!important;\n}\nbutton,\na.button {\n  font-family: inherit;\n  font-size: 1.2rem;\n  font-weight: 200;\n  display: inline-block;\n  padding: 1rem 1.5rem;\n  cursor: pointer;\n  transition: background 0.2s ease-out, opacity 0.2s ease-out;\n  text-decoration: none;\n  color: white;\n  border: none;\n  outline: none;\n  background: #3f7cac;\n}\n@media (max-width: 375px) {\n  button,\n  a.button {\n    width: 100%;\n    text-align: center;\n  }\n  button + button,\n  a.button + button,\n  button + a.button,\n  a.button + a.button {\n    margin-top: 7.5px;\n  }\n}\nbutton[data-label],\na.button[data-label] {\n  transition: all 0.2s ease-out;\n}\nbutton[data-label]:hover,\na.button[data-label]:hover {\n  padding: 0 2rem!important;\n}\nbutton[data-label]:hover:before,\na.button[data-label]:hover:before {\n  margin-right: 5px;\n}\nbutton[data-label]:hover:after,\na.button[data-label]:hover:after {\n  content: attr(data-label);\n  width: auto;\n}\nbutton:hover,\na.button:hover,\nbutton:active,\na.button:active {\n  text-decoration: none;\n  color: white;\n  background: #5b95c3;\n}\nbutton.big,\na.button.big {\n  padding: 50px 0;\n  text-align: center;\n}\nbutton.big i,\na.button.big i {\n  display: block;\n  font-size: 10vw;\n  padding-bottom: 2rem;\n}\nbutton.add,\na.button.add {\n  background: #3faa56;\n}\nbutton.add.invert,\na.button.add.invert {\n  color: #3faa56;\n}\nbutton.add:hover,\na.button.add:hover,\nbutton.add:active,\na.button.add:active {\n  background: #5ac270;\n}\nbutton.add:before,\na.button.add:before {\n  content: '\\F067';\n  font-family: 'FontAwesome';\n  margin-right: .5rem;\n  font-size: 1.2rem;\n}\nbutton.check,\na.button.check {\n  background: #3faa56;\n}\nbutton.check.invert,\na.button.check.invert {\n  color: #3faa56;\n}\nbutton.check:hover,\na.button.check:hover,\nbutton.check:active,\na.button.check:active {\n  background: #5ac270;\n}\nbutton.check:before,\na.button.check:before {\n  content: '\\F00C';\n  font-family: 'FontAwesome';\n  margin-right: .5rem;\n  font-size: 1.2rem;\n}\nbutton.save,\na.button.save {\n  background: #3faa56;\n}\nbutton.save.invert,\na.button.save.invert {\n  color: #3faa56;\n}\nbutton.save:hover,\na.button.save:hover,\nbutton.save:active,\na.button.save:active {\n  background: #5ac270;\n}\nbutton.save:before,\na.button.save:before {\n  content: '\\F0C7';\n  font-family: 'FontAwesome';\n  margin-right: .5rem;\n  font-size: 1.2rem;\n}\nbutton.refresh:before,\na.button.refresh:before {\n  content: '\\F021';\n  font-family: 'FontAwesome';\n  margin-right: .5rem;\n  font-size: 1.2rem;\n}\nbutton.view:before,\na.button.view:before {\n  content: '\\F002';\n  font-family: 'FontAwesome';\n  margin-right: .5rem;\n  font-size: 1.2rem;\n}\nbutton.edit,\na.button.edit {\n  background: #E99C00;\n}\nbutton.edit.invert,\na.button.edit.invert {\n  color: #E99C00;\n}\nbutton.edit:hover,\na.button.edit:hover,\nbutton.edit:active,\na.button.edit:active {\n  background: #ffb41d;\n}\nbutton.edit:before,\na.button.edit:before {\n  content: '\\F040';\n  font-family: 'FontAwesome';\n  margin-right: .5rem;\n  font-size: 1.2rem;\n}\nbutton.disable,\na.button.disable {\n  background: #AA3F3F;\n}\nbutton.disable.invert,\na.button.disable.invert {\n  color: #AA3F3F;\n}\nbutton.disable:hover,\na.button.disable:hover,\nbutton.disable:active,\na.button.disable:active {\n  background: #c25a5a;\n}\nbutton.disable:before,\na.button.disable:before {\n  content: '\\F05E';\n  font-family: 'FontAwesome';\n  margin-right: .5rem;\n  font-size: 1.2rem;\n}\nbutton.enable,\na.button.enable {\n  background: #E99C00;\n}\nbutton.enable.invert,\na.button.enable.invert {\n  color: #E99C00;\n}\nbutton.enable:hover,\na.button.enable:hover,\nbutton.enable:active,\na.button.enable:active {\n  background: #ffb41d;\n}\nbutton.enable:before,\na.button.enable:before {\n  content: '\\F00C';\n  font-family: 'FontAwesome';\n  margin-right: .5rem;\n  font-size: 1.2rem;\n}\nbutton.remove,\na.button.remove {\n  background: #AA3F3F;\n}\nbutton.remove.invert,\na.button.remove.invert {\n  color: #AA3F3F;\n}\nbutton.remove:hover,\na.button.remove:hover,\nbutton.remove:active,\na.button.remove:active {\n  background: #c25a5a;\n}\nbutton.remove:before,\na.button.remove:before {\n  content: '\\F00D';\n  font-family: 'FontAwesome';\n  margin-right: .5rem;\n  font-size: 1.2rem;\n}\nbutton.success,\na.button.success {\n  background: #3faa56;\n}\nbutton.success.invert,\na.button.success.invert {\n  color: #3faa56;\n}\nbutton.success:hover,\na.button.success:hover,\nbutton.success:active,\na.button.success:active {\n  background: #5ac270;\n}\nbutton.warning,\na.button.warning {\n  background: #E99C00;\n}\nbutton.warning.invert,\na.button.warning.invert {\n  color: #E99C00;\n}\nbutton.warning:hover,\na.button.warning:hover,\nbutton.warning:active,\na.button.warning:active {\n  background: #ffb41d;\n}\nbutton.error,\na.button.error {\n  background: #AA3F3F;\n}\nbutton.error.invert,\na.button.error.invert {\n  color: #AA3F3F;\n}\nbutton.error:hover,\na.button.error:hover,\nbutton.error:active,\na.button.error:active {\n  background: #c25a5a;\n}\nbutton.invert,\na.button.invert {\n  background: transparent;\n}\nbutton.invert:hover,\na.button.invert:hover {\n  color: white;\n}\nbutton.full,\na.button.full {\n  width: 100%;\n}\nbutton:empty:before,\na.button:empty:before {\n  margin-right: 0;\n}\n/*Font variables*/\n/*Grid variables*/\n* {\n  box-sizing: border-box;\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\nbody {\n  font-family: 'Raleway';\n  margin: 80px 0 0 0;\n  padding: 0;\n  background-color: #eaeaea;\n}\nul {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\nul li {\n  padding: 7.5px 0;\n}\nul li:before {\n  content: '\\F1DB';\n  opacity: .4;\n  margin-right: 10px;\n  font-family: 'FontAwesome';\n}\n.nav {\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: justify;\n  -webkit-justify-content: space-between;\n  -ms-flex-pack: justify;\n  justify-content: space-between;\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n  -ms-flex-align: center;\n  align-items: center;\n  position: fixed;\n  z-index: 10;\n  background-color: white;\n  height: 80px;\n  width: 100%;\n  top: 0;\n  left: 0;\n  padding: 0 20px;\n  box-shadow: 0 2px 5px -2px rgba(0, 0, 0, 0.4);\n}\n.nav h1 {\n  color: #222;\n  width: auto;\n  display: inline;\n}\n.nav h1 span {\n  color: rgba(34, 34, 34, 0.5);\n  font-size: .6em;\n}\n.nav p {\n  color: #A9A9A9;\n}\nbutton span {\n  font-size: .7em;\n  display: block;\n  font-style: italic;\n}\n#browsers i {\n  text-align: center;\n  font-size: 40px;\n  color: #959595;\n}\n#browsers p {\n  width: 100%;\n  text-align: center;\n  font-weight: 500;\n  color: #959595;\n  font-size: 20px;\n}\nh1,\nh2 {\n  width: 100%;\n}\nh2 span {\n  color: #3f7cac;\n  font-size: .7em;\n  font-style: italic;\n}\nh2 span:before {\n  content: '\\F121';\n  margin-right: 5px;\n  font-family: 'FontAwesome';\n}\nh2 a {\n  font-size: .8em;\n  float: right;\n  text-decoration: none;\n  color: #767676;\n}\nh2 a:after {\n  content: '\\F148';\n  margin-left: 10px;\n  font-family: 'FontAwesome';\n}\n.center {\n  text-align: center;\n}\n.center .line {\n  display: inline-block;\n  height: 1px;\n  width: 30px;\n  background-color: #BBB;\n  vertical-align: super;\n  margin: 0 10px;\n}\n.hint {\n  margin-right: 10px;\n  background-color: #FFE800;\n  border-radius: 100%;\n  width: 30px;\n  height: 30px;\n  text-align: center;\n  line-height: 30px;\n}\npre {\n  margin: 0;\n  width: 100%;\n  white-space: normal;\n}\ncode {\n  padding: 20px!important;\n  width: 100%;\n}\n#mainDemo {\n  width: 100%;\n  height: 500px;\n}\na {\n  color: #3f7cac;\n}\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/dist/doc.js",
    "content": "(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Datepickk\"] = factory();\n\telse\n\t\troot[\"Datepickk\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 2);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 2:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ })\n\n/******/ })[\"default\"];\n});"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/docs/_button.less",
    "content": "@import '_colors.less';\n@import '_variables.less';\n\nbutton,\na.button\n{\n   font-family: inherit;\n   font-size: 1.2rem;\n   font-weight: 200;\n\n   display: inline-block;\n\n   padding: 1rem 1.5rem;\n\n   cursor: pointer;\n   transition: background .2s ease-out,opacity .2s ease-out;\n   text-decoration: none;\n\n   color: white;\n   border: none;\n   outline: none;\n   background: @blue;\n\n    @media(max-width: @mobile){\n      width:100%;\n      text-align: center;\n\n      & + button,& + a.button{\n         margin-top:@gutter/2;\n      }\n   }\n\n\t&[data-label]{\n\t\ttransition:all .2s ease-out;\n\t\t&:hover{\n\t\t\tpadding:0 2rem!important;\n\n\t\t\t&:before{\n\t\t\t\tmargin-right: 5px;\n\t\t\t}\n\n\t\t\t&:after{\n\t\t\t\tcontent:attr(data-label);\n\t\t\t\twidth:auto;\n\t\t\t}\n\t\t}\n\t}\n\n   &:hover,\n   &:active\n   {\n      text-decoration: none;\n\n      color: white;\n      background: lighten(@blue,10%);\n   }\n\n   &.big{\n      padding: 50px 0;\n      text-align: center;\n\n      i{\n         display: block;\n         font-size: 10vw;\n         padding-bottom:2rem;\n      }\n   }\n\n   &.add{\n   \t.success();\n   \t&:before{\n   \t\tcontent: '\\f067';\n\t\tfont-family: 'FontAwesome';\n\t\tmargin-right: .5rem;\n\t\tfont-size: 1.2rem;\n\n   \t}\n   }\n\n   &.check{\n      .success();\n      &:before{\n         content: '\\f00c';\n         font-family: 'FontAwesome';\n         margin-right: .5rem;\n         font-size: 1.2rem;\n      }\n   }\n\n   &.save{\n      .success();\n      &:before{\n         content: '\\f0c7';\n      font-family: 'FontAwesome';\n      margin-right: .5rem;\n      font-size: 1.2rem;\n\n      }\n   }\n\n   &.refresh{\n      &:before{\n         content: '\\f021';\n      font-family: 'FontAwesome';\n      margin-right: .5rem;\n      font-size: 1.2rem;\n\n      }\n   }\n\n   &.view{\n   \t&:before{\n   \t\tcontent: '\\f002';\n\t\tfont-family: 'FontAwesome';\n\t\tmargin-right: .5rem;\n\t\tfont-size: 1.2rem;\n\n   \t}\n   }\n\n   &.edit{\n\t.warning();\n\t&:before{\n   \t\tcontent: '\\f040';\n\t\tfont-family: 'FontAwesome';\n\t\tmargin-right: .5rem;\n\t\tfont-size: 1.2rem;\n\n   \t}\n   }\n   \n   &.disable{\n      .error();\n      &:before{\n         content: '\\f05e';\n         font-family: 'FontAwesome';\n         margin-right: .5rem;\n         font-size: 1.2rem;\n\n      }\n   }\n\n    &.enable{\n      .warning();\n      &:before{\n         content: '\\f00c';\n         font-family: 'FontAwesome';\n         margin-right: .5rem;\n         font-size: 1.2rem;\n\n      }\n   }\n\n   &.remove{\n   \t.error();\n\t&:before{\n   \t\tcontent: '\\f00d';\n\t\tfont-family: 'FontAwesome';\n\t\tmargin-right: .5rem;\n\t\tfont-size: 1.2rem;\n\n   \t}\n   }\n\n  \n\n   &.success{\n   \t\tbackground:@green;\n\n         &.invert{\n            color: @green;\n         }\n\n         &:hover,&:active{\n            background:lighten(@green,10%);\n         }\n   }\n\n   &.warning{\n   \t\tbackground:@orange;\n\n         &.invert{\n            color: @orange;\n         }\n         &:hover,&:active{\n            background:lighten(@orange,10%);\n         }\n\n   }\n\n   &.error{\n   \t\tbackground:@red;\n\n         &.invert{\n            color: @red;\n         }\n         &:hover,&:active{\n            background:lighten(@red,10%);\n         }\n\n   }\n\n    &.invert{\n      background:transparent;\n\n      &:hover{\n         color:white;\n      }\n   }\n\n   &.full{\n      width: 100%;\n   }\n\n   &:empty:before{\n   \tmargin-right:0;\n   }\n}\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/docs/_colors.less",
    "content": "@blue: #3f7cac;\n@green: #3faa56;\n@orange: #E99C00;\n@red: #AA3F3F;\n@yellow: #ffff00;\n@darkgrey: #222;\n@grey: #767676;\n\n.bg-blue{\n\tbackground:@blue;\n}\n\n.bg-blue-fade{\n\tbackground: fade(@blue,40%);\n}\n\n.red{\n\tbackground: @red!important;\n\tcolor:white!important;\n}\n\n.orange{\n\tbackground: @orange!important;\n\tcolor:white!important;\n}\n\n.grey{\n\tbackground: @grey!important;\n\tcolor:white!important;\n}\n\n.green{\n\tbackground: @green!important;\n\tcolor:white!important;\n}\n\n.blue{\n\tbackground: @blue!important;\n\tcolor:white!important;\n}\n\n.white{\n\tbackground:white;\n}\n\n.darkgrey{\n\tbackground: @darkgrey!important;\n\tcolor: white!important;\n}\n\n.transparent{\n\tbackground:transparent!important;\n}"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/docs/_grid.less",
    "content": "@import \"_variables.less\";\n\n/*Flex grid*/\n.container{\n  padding:@gutter/2;\n}\n\n.align-end{\n  -webkit-align-self:flex-end;\n      -ms-flex-item-align:end;\n          align-self:flex-end;\n}\n\n.fullheight{\n  min-height: calc(100vh ~\"-\" 75px);\n}\n\n.row{\n  display:-webkit-box;\n  display:-webkit-flex;\n  display:-ms-flexbox;\n  display:flex;\n  -webkit-box-orient:horizontal;\n  -webkit-box-direction:normal;\n  -webkit-flex-direction:row;\n      -ms-flex-direction:row;\n          flex-direction:row;\n  -webkit-flex-wrap:wrap;\n      -ms-flex-wrap:wrap;\n          flex-wrap:wrap;\n  -webkit-box-pack:start;\n  -webkit-justify-content:flex-start;\n      -ms-flex-pack:start;\n          justify-content:flex-start;\n  -webkit-box-align: start;\n  -webkit-align-items: flex-start;\n      -ms-flex-align: start;\n          align-items: flex-start;\n  &.auto-fill{\n    & > [class*=\"col-\"]{\n      -webkit-box-flex: 1;\n      -webkit-flex-grow: 1;\n          -ms-flex-positive: 1;\n              flex-grow: 1;\n    }\n  }\n}\n\n.title{\n    -webkit-flex-basis: 100%;\n        -ms-flex-preferred-size: 100%;\n            flex-basis: 100%;\n    margin: @gutter 0;\n}\n\n.block{\n  box-shadow: 0px 2px 10px -4px rgba(0, 0, 0, 0.3);\n}\n\n[class*=\"col-\"]{\n  \n  -webkit-flex-basis:100%;\n      -ms-flex-preferred-size:100%;\n          flex-basis:100%;\n  -webkit-box-ordinal-group:1000;\n  -webkit-order:999;\n  -ms-flex-order:999;\n  order:999;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n   -webkit-flex-wrap:wrap;\n      -ms-flex-wrap:wrap;\n          flex-wrap:wrap;\n  -webkit-box-pack:start;\n  -webkit-justify-content:flex-start;\n      -ms-flex-pack:start;\n          justify-content:flex-start;\n  -webkit-box-align: start;\n  -webkit-align-items: flex-start;\n      -ms-flex-align: start;\n          align-items: flex-start;\n  -webkit-box-orient:vertical;\n  -webkit-box-direction:normal;\n  -webkit-flex-direction:row;\n      -ms-flex-direction:row;\n          flex-direction:row;\n\n  -webkit-align-content: flex-start;\n  -ms-flex-line-pack: start;\n  align-content: flex-start;\n\n  transition: flex-basis .1s ease;\n  -webkit-transition: -webkit-flex-basis .1s ease;\n  -ms-transition: -ms-flex-basis .1s ease;\n\n  &.block{\n    padding:@gutter;\n    background:white;\n    margin: @gutter/2;\n\n    &.transparent{\n      box-shadow: none;\n    }\n  }\n\n   &.align-center{\n    -webkit-box-pack: center;\n    -webkit-justify-content: center;\n        -ms-flex-pack: center;\n            justify-content: center;\n  }\n\n  h1,h2{\n    margin-top:0;\n    margin-bottom:@gutter;\n  }\n\n  &.nested{\n    padding: @gutter/2;\n  }\n\n  &:empty{\n    min-height: 250px;\n  }\n\n  &.orderTop{\n    -webkit-box-ordinal-group:2;\n    -webkit-order:1;\n    -ms-flex-order:1;\n    order:1;\n  }\n\n  .align-bottom{\n    margin-top:auto;\n  }\n  .align-right{\n    margin-left: auto;\n  }\n\n  .title{\n    margin-top:0;\n  }\n\n  [class*=\"col-\"]{\n    padding:@gutter/2;\n  }\n  \n  &.nopadding{\n    padding:0;\n  }\n}\n\n.align-middle{\n    -webkit-box-align: center;\n    -webkit-align-items: center;\n    -ms-flex-align: center;\n    align-items: center;\n  }\n\n.equal-height{\n    -webkit-box-align:stretch;\n    -webkit-align-items:stretch;\n        -ms-flex-align:stretch;\n            align-items:stretch;\n  }\n.align-center{\n    -webkit-box-pack: center;\n    -webkit-justify-content: center;\n        -ms-flex-pack: center;\n            justify-content: center;\n  }\n.align-end{\n    -webkit-box-pack: end;\n    -webkit-justify-content: flex-end;\n        -ms-flex-pack: end;\n            justify-content: flex-end;\n  }\n.column{\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: column;\n  -ms-flex-direction: column;\n  flex-direction: column;\n}\n\n.generate-columns(xs);\n\n@media (min-width: @small) {\n  .generate-columns(sm);\n}\n@media (min-width: @medium) {\n  .generate-columns(md);\n}\n@media (min-width: @large) {\n  .generate-columns(lg);\n}\n\n\n.generate-columns(@s,@n: 12,@i:1) when (@i =< @n){\n  .col-@{s}-@{i}{\n          -webkit-flex-basis: (@i * 100% / @n);\n     -ms-flex-preferred-size: (@i * 100% / @n);\n                  flex-basis: (@i * 100% / @n);\n    &.block{\n          -webkit-flex-basis: calc((@i * 100% / @n) ~\"-\" @gutter);\n                  flex-basis: calc((@i * 100% / @n) ~\"-\" @gutter);\n     -ms-flex-preferred-size: calc((@i * 100% / @n) ~\"-\" @gutter*3);\n    }\n  }\n  .generate-columns(@s,@n,(@i + 1));\n}"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/docs/_variables.less",
    "content": "@gutter: 15px;\n@background: #E0E0E0;\n\n/*Font variables*/\n@font-family: 'Raleway';\n@font-size:16px;\n@font-color: #666666;\n\n/*Grid variables*/\n@large: 1200px;\n@medium: 992px;\n@small: 600px;\n@mobile: 375px;"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/docs/demo.js",
    "content": "var allInternalLinks = document.querySelectorAll('[href^=\"#\"]');\n\nfor(var m = 0; m < allInternalLinks.length;m++){\n\tallInternalLinks[m].addEventListener('click',function(e){\n\t\te.preventDefault();\n\t\tSmoothScroll(this.getAttribute('href'));\n\t});\n}\n\nfunction SmoothScroll(target){\n\ttarget = (typeof target === 'object')?target:document.querySelector(target);\n\tif(!target)return;\n\tvar requestAnimationFrame = window.requestAnimationFrame || \n                        \twindow.mozRequestAnimationFrame || \n                        \twindow.webkitRequestAnimationFrame ||\n                        \twindow.msRequestAnimationFrame;\n\tvar _iteration = 0;\n\tvar _scrollPosition = window.pageYOffset;\n\tvar _finalPosition = target.getBoundingClientRect().top - 95;\n\tvar _maxIterations = 50;\n\n\tScrollAnimationLoop();\n\n\t\n\tfunction ScrollAnimationLoop(){\n\t\twindow.scrollTo(0,easeOutCubic(_iteration,_scrollPosition,_finalPosition,_maxIterations));\n\n\t\t_iteration++;\n\n\t\tif(_iteration <= _maxIterations){\n\t\t\trequestAnimationFrame(function(){\n\t\t\t\tScrollAnimationLoop();\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction easeOutCubic(currentIteration, startValue, changeInValue, totalIterations) {\n\t\treturn changeInValue * (Math.pow(currentIteration / totalIterations - 1, 3) + 1) + startValue;\n\t}\t\n}"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/docs/doc.less",
    "content": "@import \"_grid.less\";\n@import \"_colors.less\";\n@import \"_button.less\";\n@import \"_variables.less\";\n\n@main: #D55C2B;\n\n*{\n\tbox-sizing:border-box;\n\t-webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n\nbody{\n\tfont-family: 'Raleway';\n\tmargin:80px 0 0 0;\n\tpadding:0;\n\tbackground-color: #eaeaea;\n}\n\nul{\n\tmargin:0;\n\tpadding:0;\n\tlist-style: none;\n\n\tli{\n\t\tpadding: @gutter/2 0;\n\n\t\t&:before{\n\t\t\tcontent: '\\f1db';\n\t\t\topacity: .4;\n\t\t\tmargin-right: 10px;\n\t\t\tfont-family: 'FontAwesome';\n\t\t}\n\t}\n}\n\n.nav{\n\tdisplay: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;\n\t-webkit-box-pack: justify;\n    -webkit-justify-content: space-between;\n    -ms-flex-pack: justify;\n    justify-content: space-between;\n    -webkit-box-align: center;\n    -webkit-align-items: center;\n    -ms-flex-align: center;\n            align-items: center;\n\tposition: fixed;\n\tz-index: 10;\n\tbackground-color: white;\n\theight: 80px;\n\twidth: 100%;\n\ttop:0;\n\tleft: 0;\n\tpadding:0 20px;\n\tbox-shadow: 0 2px 5px -2px rgba(0,0,0,0.4);\n\n\th1{\n\t\tcolor:#222;\n\t\twidth:auto;\n\t\tdisplay: inline;\n\n\t\tspan{\n\t\t\tcolor: fade(#222,50%);\n\t\t\tfont-size: .6em;\n\t\t}\n\t}\n\n\tp{\n\t\tcolor:#A9A9A9;\n\t}\n}\n\nbutton{\n\tspan{\n\t\t    font-size: .7em;\n   \t\t display: block;\n    \tfont-style: italic;\n\t}\n}\n\n#browsers{\n\ti{\n\t\ttext-align: center;\n\t\tfont-size: 40px;\n\t\tcolor:#959595;\n\t}\n\n\tp{\n\t\twidth: 100%;\n\t\ttext-align: center;\n\t\tfont-weight: 500;\n\t\tcolor: #959595;\n\t\tfont-size: 20px;\n\t}\n}\n\nh1,h2{\n\twidth: 100%;\n}\n\nh2{\n\tspan{\n\t\tcolor: @blue;\n\t\tfont-size: .7em;\n\t\tfont-style: italic;\n\n\t\t&:before{\n\t\t\tcontent: '\\f121';\n\t\t\tmargin-right: 5px;\n\t\t\tfont-family: 'FontAwesome';\n\t\t}\n\t}\n\n\ta{\n\t\tfont-size: .8em;\n    \tfloat: right;\n    \ttext-decoration: none;\n    \tcolor: @grey;\n\n    \t&:after{\n    \t\tcontent: '\\f148';\n    \t\tmargin-left: 10px;\n    \t\tfont-family: 'FontAwesome';\n    \t}\n\t}\n}\n\n.center{\n\ttext-align: center;\n\n\t.line{\n\t\t  display: inline-block;\n\t\t  height: 1px;\n\t\t  width: 30px;\n\t\t  background-color: #BBB;\n\t\t  vertical-align: super;\n\t\t  margin: 0 10px;\n\t}\n}\n\n.hint{\n    margin-right: 10px;\n    background-color: #FFE800;\n    border-radius: 100%;\n    width: 30px;\n    height: 30px;\n    text-align: center;\n    line-height: 30px;\n}\n\npre{\n    margin: 0;\n    width: 100%;\n    white-space: normal;\n}\n\ncode{\n    padding: 20px!important;\n    width: 100%;\n}\n\n#mainDemo{\n\twidth: 100%;\n\theight: 500px;\n}\n\na{\n\tcolor:@blue;\n}\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n\t<meta charset=\"UTF-8\">\n\t<title>Datepickk - Documentation</title>\n\t<link rel=\"stylesheet\" href=\"dist/doc.css\">\n\t<link rel=\"stylesheet\" href=\"dist/datepickk.min.css\">\n\t<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/zenburn.min.css\">\n\t<link href=\"https://fonts.googleapis.com/css?family=Raleway:400,600\" rel=\"stylesheet\">\n\t<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css\">\n\t<script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/highlight.min.js\"></script>\n</head>\n<body>\n\t<script src=\"dist/datepickk.min.js\"></script>\n\t<script>hljs.initHighlightingOnLoad();</script>\n\t<div class=\"nav\">\n\t\t<h1>Datepickk<span> . js</span></h1>\n\t\t<p>Made with <i class=\"fa fa-heart\" style=\"color:#AA3F3F;\"></i> by <a href=\"http://codepen.io/crsten\">Carsten J</a>.</p>\n\t\t<a class=\"github-button\" href=\"https://github.com/crsten/datepickk\" data-icon=\"octicon-star\" data-style=\"mega\" data-count-href=\"/crsten/datepickk/stargazers\" data-count-api=\"/repos/crsten/datepickk#stargazers_count\" data-count-aria-label=\"# stargazers on GitHub\" aria-label=\"Star crsten/datepickk on GitHub\">Star</a>\n\t</div>\n\n\t<div class=\"container\">\n\t\t<div class=\"row align-center equal-height\" style=\"margin-bottom:50px;\">\n\t\t\t<h1 class=\"center\" style=\"margin-bottom:50px;\"><span class=\"line\"></span>Get started<span class=\"line\"></span></h1>\n\t\t\t<div class=\"col-xs-12 col-md-4\">\n\t\t\t\t<pre style=\"max-width: 800px;margin: 0 auto;\">\n\t\t\t\t\t<code>\n\t\t\t\t\t\tnpm install datepickk<br>\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-md-1 align-center align-middle\">\n\t\t\t\tor\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-4\">\n\t\t\t\t<pre style=\"max-width: 800px;margin: 0 auto;\">\n\t\t\t\t\t<code>\n\t\t\t\t\t\tbower install datepickk<br>\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12\" style=\"margin:50px 0;\">\n\t\t\t\t<pre style=\"max-width: 800px; margin: 0 auto;\">\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Initialize<br>\n\t\t\t\t\t\tvar datepicker = new Datepickk();<br>\n\t\t\t\t\t\t/*And some more stuff down there...*/\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<script>\n\t\t\t\t\tvar datepicker = new Datepickk();\n\t\t\t\t</script>\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-12 col-md-5 align-middle\">\n\t\t\t\t<button class=\"orange\" style=\"margin:0 auto;\" onclick=\"datepicker.show();\">Modal<span>onclick=\"datepicker.show();\"</span></button>\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-12 col-md-1 align-middle align-center\">\n\t\t\t\t<p style=\"width:100%;text-align:center;\">or</p>\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-12 col-md-6 align-center\" >\n\t\t\t\t<div id=\"demoPicker\" style=\"height:600px;width:100%;max-width: 600px;\"></div>\n\t\t\t\t<script>\n\t\t\t\t\tvar now = new Date();\n\t\t\t\t\tvar demoPicker = new Datepickk({\n\t\t\t\t\t\tcontainer: document.querySelector('#demoPicker'),\n\t\t\t\t\t\tinline:true,\n\t\t\t\t\t\trange: true,\n\t\t\t\t\t\ttooltips: {\n\t\t\t\t\t\t\tdate: new Date(),\n\t\t\t\t\t\t\ttext: 'Tooltip'\n\t\t\t\t\t\t},\n\t\t\t\t\t\thighlight:{\n\t\t\t\t\t\t\tstart: new Date(now.getFullYear(),now.getMonth(),3),\n\t\t\t\t\t\t\tend: new Date(now.getFullYear(),now.getMonth(),6),\n\t\t\t\t\t\t\tbackgroundColor:'#05676E',\n\t\t\t\t\t\t\tcolor:'#fff',\n\t\t\t\t\t\t\tlegend: 'Highlight'\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t</script>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"row align-center\" id=\"browsers\">\n\t\t\t<div class=\"col-xs-3 align-center\">\n\t\t\t\t<i class=\"fa fa-chrome\"></i>\n\t\t\t\t<p>31 +</p>\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-3 align-center\">\n\t\t\t\t<i class=\"fa fa-firefox\"></i>\n\t\t\t\t<p>31 +</p>\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-3 align-center\">\n\t\t\t\t<i class=\"fa fa-internet-explorer\"></i>\n\t\t\t\t<p>10 +</p>\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-3 align-center\">\n\t\t\t\t<i class=\"fa fa-safari\"></i>\n\t\t\t\t<p>Not tested yet</p>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"row align-center equal-height\" id=\"index\">\n\t\t\t<div class=\"col-xs-12 col-sm-6 col-md-4 col-lg-3 block\">\n\t\t\t\t<h2>Settings</h2>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href=\"#startDate\">startDate</a></li>\n\t\t\t\t\t<li><a href=\"#minDate\">minDate</a></li>\n\t\t\t\t\t<li><a href=\"#maxDate\">maxDate</a></li>\n\t\t\t\t\t<li><a href=\"#currentDate\">currentDate</a></li>\n\t\t\t\t\t<li><a href=\"#currentDate\">setDate (alias)</a></li>\n\t\t\t\t\t<li><a href=\"#maxSelections\">maxSelections</a></li>\n\t\t\t\t\t<li><a href=\"#months\">months</a></li>\n\t\t\t\t\t<li><a href=\"#title\">title</a></li>\n\t\t\t\t\t<li><a href=\"#button\">button</a></li>\n\t\t\t\t\t<li><a href=\"#lang\">lang</a></li>\n\t\t\t\t\t<li><a href=\"#weekStart\">weekStart</a></li>\n\t\t\t\t\t<li><a href=\"#range\">range</a></li>\n\t\t\t\t\t<li><a href=\"#container\">container</a></li>\n\t\t\t\t\t<li><a href=\"#inline\">inline</a></li>\n\t\t\t\t\t<li><a href=\"#closeOnSelect\">closeOnSelect</a></li>\n\t\t\t\t\t<li><a href=\"#closeOnClick\">closeOnClick</a></li>\n\t\t\t\t\t<li><a href=\"#tooltips\">tooltips</a></li>\n\t\t\t\t\t<li><a href=\"#highlight\">highlight</a></li>\n\t\t\t\t\t<li><a href=\"#disabledDays\">disabledDays</a></li>\n\t\t\t\t\t<li><a href=\"#disabledDates\">disabledDates</a></li>\n\t\t\t\t\t<li><a href=\"#today\">today</a></li>\n\t\t\t\t\t<li><a href=\"#daynames\">daynames</a></li>\n\t\t\t\t\t<li><a href=\"#fullscreen\">fullscreen</a></li>\n\t\t\t\t\t<li><a href=\"#locked\">locked</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-12 col-sm-6 col-md-4 col-lg-3 block\">\n\t\t\t\t<h2>Status</h2>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href=\"#selectedDates\">selectedDates</a></li>\n\t\t\t\t\t<li><a href=\"#isOpen\">isOpen</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-12 col-sm-6 col-md-4 col-lg-3 block\">\n\t\t\t\t<h2>Functions</h2>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href=\"#show\">show(props)</a></li>\n\t\t\t\t\t<li><a href=\"#hide\">hide()</a></li>\n\t\t\t\t\t<li><a href=\"#selectDate\">selectDate(Date,ignoreOnSelect)</a></li>\n\t\t\t\t\t<li><a href=\"#unselectDate\">unselectDate(Date,ignoreOnSelect)</a></li>\n\t\t\t\t\t<li><a href=\"#unselectAll\">unselectAll(ignoreOnSelect)</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-12 col-sm-6 col-md-4 col-lg-3 block\">\n\t\t\t\t<h2>Callbacks</h2>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href=\"#onConfirm\">onConfirm</a></li>\n\t\t\t\t\t<li><a href=\"#onClose\">onClose</a></li>\n\t\t\t\t\t<li><a href=\"#onSelect\">onSelect</a></li>\n\t\t\t\t\t<li><a href=\"#onNavigation\">onNavigation</a></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<h1 class=\"center\"><span class=\"line\"></span>Take a tour<span class=\"line\"></span></h1>\n\n\t\t<div class=\"row equal-height\">\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"startDate\">\n\t\t\t\t<h2>startDate <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Date<br>\n\t\t\t\t\t\t//Default: null -> takes current date<br>\n\t\t\t\t\t\t//Reset: assign non date object to reset default<br><br>\n\t\t\t\t\t\t/*Set startDate*/<br>\n\t\t\t\t\t\tdatepicker.startDate = new Date(2000,0,1);<br><br>\n\t\t\t\t\t\t/*Get startDate*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.startDate);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"startDateDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>Each time you show the calendar this date will show up!</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction startDateDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.startDate = new Date(2000,0,1);\n\t\t\t\t\t\tconsole.log(datepicker.startDate);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.startDate = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"minDate\">\n\t\t\t\t<h2>minDate <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Date<br>\n\t\t\t\t\t\t//Default: null -> no limit<br>\n\t\t\t\t\t\t//Reset: assign non date object to reset default<br><br>\n\t\t\t\t\t\t/*Set minDate*/<br>\n\t\t\t\t\t\tdatepicker.minDate = new Date(2015,0,1);<br><br>\n\t\t\t\t\t\t/*Get minDate*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.minDate);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"minDateDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction minDateDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.minDate = new Date(2015,0,1);\n\t\t\t\t\t\tdatepicker.startDate = new Date(2015,0,1);\n\t\t\t\t\t\tconsole.log(datepicker.minDate);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.minDate = null;\n\t\t\t\t\t\t\tdatepicker.startDate = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"maxDate\">\n\t\t\t\t<h2>maxDate <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Date<br>\n\t\t\t\t\t\t//Default: null -> no limit<br>\n\t\t\t\t\t\t//Reset: assign non date object to reset default<br><br>\n\t\t\t\t\t\t/*Set maxDate*/<br>\n\t\t\t\t\t\tdatepicker.maxDate = new Date(2015,11,31);<br><br>\n\t\t\t\t\t\t/*Get maxDate*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.maxDate);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"maxDateDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction maxDateDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.maxDate = new Date(2015,11,31);\n\t\t\t\t\t\tdatepicker.startDate = new Date(2015,11,1);\n\t\t\t\t\t\tconsole.log(datepicker.maxDate);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.maxDate = null;\n\t\t\t\t\t\t\tdatepicker.startDate = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"currentDate\">\n\t\t\t\t<h2>currentDate | setDate (alias) <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Date<br>\n\t\t\t\t\t\t//Default: current date<br><br>\n\t\t\t\t\t\t/*Set currentDate*/<br>\n\t\t\t\t\t\tdatepicker.currentDate = new Date(2015,3,1);<br>\n\t\t\t\t\t\t//OR<br>\n\t\t\t\t\t\tdatepicker.setDate = new Date(2015,3,1)<br><br>\n\t\t\t\t\t\t/*Get currentDate*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.currentDate);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"currentDateDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>Use me to jump to spesific dates</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction currentDateDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.setDate = new Date(2015,3,1);\n\t\t\t\t\t\tconsole.log(datepicker.currentDate);\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"maxSelections\">\n\t\t\t\t<h2>maxSelections <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Number<br>\n\t\t\t\t\t\t//Default: null -> infinite<br>\n\t\t\t\t\t\t//Reset: assign non number object to reset default<br><br>\n\t\t\t\t\t\t/*Set maxSelections*/<br>\n\t\t\t\t\t\tdatepicker.maxSelections = 3;<br><br>\n\t\t\t\t\t\t/*Get maxSelections*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.maxSelections);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"maxSelectionsDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>If you don't want to let the user select anyting you should use <a href=\"#locked\">locked</a> instead. Check it out</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction maxSelectionsDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.maxSelections = 3;\n\t\t\t\t\t\tconsole.log(datepicker.maxSelections);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.maxSelections = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"months\">\n\t\t\t\t<h2>months <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">\n\t\t\t\t\tIf you need to show multiple months at once this feature is perfect for you!\n\t\t\t\t</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Number (must be > 0)<br>\n\t\t\t\t\t\t//Default: 1<br><br>\n\t\t\t\t\t\t/*Set maxSelections*/<br>\n\t\t\t\t\t\tdatepicker.months = 2;<br><br>\n\t\t\t\t\t\t/*Get months*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.months);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"monthsDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>Showing multiple months at once needs much space! Be careful, the pretty looking datepicker might get ulgy <i class=\"fa fa-thumbs-o-down\"></i></p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction monthsDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.months = 2;\n\t\t\t\t\t\tconsole.log(datepicker.months);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.months = 1;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"title\">\n\t\t\t\t<h2>title <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: String<br>\n\t\t\t\t\t\t//Default: null<br>\n\t\t\t\t\t\t//Reset: assign non string object to reset default<br><br>\n\t\t\t\t\t\t/*Set title*/<br>\n\t\t\t\t\t\tdatepicker.title = 'Choose date:';<br><br>\n\t\t\t\t\t\t/*Get title*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.title);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"titleDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction titleDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.title = 'Choose date:';\n\t\t\t\t\t\tconsole.log(datepicker.title);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.title = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"button\">\n\t\t\t\t<h2>button <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: String<br>\n\t\t\t\t\t\t//Default: null<br>\n\t\t\t\t\t\t//Reset: assign non string object to reset default<br><br>\n\t\t\t\t\t\t/*Set button*/<br>\n\t\t\t\t\t\tdatepicker.button = 'OK';<br><br>\n\t\t\t\t\t\t/*Get button*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.button);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"buttonDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction buttonDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.button = 'OK';\n\t\t\t\t\t\tconsole.log(datepicker.button);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.button = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"lang\">\n\t\t\t\t<h2>lang <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">\n\t\t\t\t\tYou can change the language and the day the week starts by changing the lang property.<br>\n\t\t\t\t\tBy default there are 5 languages: English (en), Norwegian (no), German (de), Swedish (se), Russian (ru). <br>\n\t\t\t\t\tAdd your own languages to the 'languages' property in the source code.\n\t\t\t\t</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: String<br>\n\t\t\t\t\t\t//Default: 'en'<br><br>\n\t\t\t\t\t\t/*Set lang*/<br>\n\t\t\t\t\t\tdatepicker.lang = 'no';<br><br>\n\t\t\t\t\t\t/*Get lang*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.lang);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"langDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction langDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.lang = 'no';\n\t\t\t\t\t\tconsole.log(datepicker.lang);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.lang = 'en';\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"weekStart\">\n\t\t\t\t<h2>weekStart <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">\n\t\t\t\t\tYou can change when the week should start by setting the weekStart property to a number between 0 - 6 where 0 is sunday and 6 is saturday.\n\t\t\t\t\tThe languages have the weekStart predefined. So if you choose norwegian it will automatically start the week on monday if no weekStart has been set.\n\t\t\t\t</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Number<br>\n\t\t\t\t\t\t//Default: from language<br><br>\n\t\t\t\t\t\t/*Set weekStart*/<br>\n\t\t\t\t\t\tdatepicker.weekStart = 1; //week starts at monday<br><br>\n\t\t\t\t\t\t/*Get weekStart*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.weekStart);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"weekStartDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction weekStartDemo(){\n\t\t\t\t\t\tdatepicker.weekStart = 1;\n\t\t\t\t\t\tconsole.log(datepicker.weekStart);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.weekStart = 0;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"range\">\n\t\t\t\t<h2>range <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">Do you need to select a range of two dates? Use this</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Boolean<br>\n\t\t\t\t\t\t//Default: false<br><br>\n\t\t\t\t\t\t/*Set range*/<br>\n\t\t\t\t\t\tdatepicker.range = true;<br><br>\n\t\t\t\t\t\t/*Get range*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.range);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"rangeDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>This one overwrites the <a href=\"#maxSelections\">maxSelections</a> property with 2.</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction rangeDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.range = true;\n\t\t\t\t\t\tconsole.log(datepicker.range);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.range = false;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-8 block\" id=\"container\">\n\t\t\t\t<h2>container <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">Do you not like modals? Don't worry you can place the datepicker in a container you want.</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: String(selector) or HTMLElement(no jQuery bro! You can do better;)<br>\n\t\t\t\t\t\t//Default: document.body<br><br>\n\t\t\t\t\t\t/*Set container*/<br>\n\t\t\t\t\t\tdatepicker.container = document.querySelector('#sampleContainer');<br><br>\n\t\t\t\t\t\t/*Get container*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.range);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"containerDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>I'm pretty sure you will like <a href=\"#inline\">inline</a> aswell</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction containerDemo(){\n\t\t\t\t\t\tvar container = document.querySelector('#sampleContainer');\n\t\t\t\t\t\tcontainer.innerHTML = '';\n\t\t\t\t\t\tvar cdatepicker = new Datepickk();\n\t\t\t\t\t\tcdatepicker.button = 'Close me';\n\t\t\t\t\t\tcdatepicker.unselectAll();\n\t\t\t\t\t\tcdatepicker.container = container;\n\t\t\t\t\t\tconsole.log(cdatepicker.container);\n\t\t\t\t\t\tcdatepicker.onClose = function(){\n\t\t\t\t\t\t\tcdatepicker = null;\n\t\t\t\t\t\t\tcontainer.innerHTML = '<p>Hi! My name is #sampleContainer</p>'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-4 block align-center align-middle\" id=\"sampleContainer\">\n\t\t\t\t<p>Hi! My name is #sampleContainer</p>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-8 block\" id=\"inline\">\n\t\t\t\t<h2>inline <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">If you set a container and set inline true it will always be visible and you don't need to show it first</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Boolean<br>\n\t\t\t\t\t\t//Default: false<br><br>\n\t\t\t\t\t\t/*Set inline*/<br>\n\t\t\t\t\t\tdatepicker.inline = true;<br><br>\n\t\t\t\t\t\t/*Get inline*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.inline);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"inlineDemo()\">Initialize me</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>You should set <a href=\"#container\">container</a> first</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction inlineDemo(){\n\t\t\t\t\t\tvar container = document.querySelector('#inlineContainer');\n\t\t\t\t\t\tvar height = document.querySelector('#inline').getBoundingClientRect().height;//Hey don't judge me! everything is built with flexbox :) that's why i need to do this\n\t\t\t\t\t\tcontainer.setAttribute('style','height:' + height + 'px;');\n\t\t\t\t\t\tcontainer.innerHTML = '';\n\t\t\t\t\t\tvar idatepicker = new Datepickk({\n\t\t\t\t\t\t\tcontainer: container,\n\t\t\t\t\t\t\tinline: true\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconsole.log(idatepicker.inline);\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-4 block align-center align-middle\" id=\"inlineContainer\">\n\t\t\t\t<p>Hi! My name is #inlineContainer</p>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"closeOnSelect\">\n\t\t\t\t<h2>closeOnSelect <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">If a date gets selected the datepicker will close</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Boolean<br>\n\t\t\t\t\t\t//Default: false<br><br>\n\t\t\t\t\t\t/*Set closeOnSelect*/<br>\n\t\t\t\t\t\tdatepicker.closeOnSelect = true;<br><br>\n\t\t\t\t\t\t/*Get closeOnSelect*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.closeOnSelect);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"closeOnSelectDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>This is not the same as <a href=\"#closeOnClick\">closeOnClick</a></p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction closeOnSelectDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.closeOnSelect = true;\n\t\t\t\t\t\tconsole.log(datepicker.closeOnSelect);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.closeOnSelect = false;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"closeOnClick\">\n\t\t\t\t<h2>closeOnClick <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">If someone clicks outside the datepicker it closes</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Boolean<br>\n\t\t\t\t\t\t//Default: true<br><br>\n\t\t\t\t\t\t/*Set closeOnClick*/<br>\n\t\t\t\t\t\tdatepicker.closeOnClick = false;<br><br>\n\t\t\t\t\t\t/*Get closeOnClick*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.closeOnClick);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"closeOnClickDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>This is not the same as <a href=\"#closeOnSelect\">closeOnSelect</a></p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction closeOnClickDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.closeOnClick = false;\n\t\t\t\t\t\tdatepicker.button = 'Close me';\n\t\t\t\t\t\tconsole.log(datepicker.closeOnClick);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.closeOnClick = true;\n\t\t\t\t\t\t\tdatepicker.button = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"tooltips\">\n\t\t\t\t<h2>tooltips <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">Put some notes on it</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Object or Array of Objects (look how the object is built in the other code block)<br>\n\t\t\t\t\t\t//Default: null<br><br>\n\t\t\t\t\t\t/*Set tooltips*/<br>\n\t\t\t\t\t\tdatepicker.tooltips = [tooltip,tooltip2];<br><br>\n\t\t\t\t\t\t/*Get tooltips*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.tooltips);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t/*tooltip object*/<br><br>\n\n\t\t\t\t\t\tvar tooltip = {<br>\n\t\t\t\t\t\t\t date: new Date(2015,6,1),<br>\n\t\t\t\t\t\t\t text: 'Tooltip'<br>\n\t\t\t\t\t\t};<br><br>\n\n\t\t\t\t\t\tvar tooltip2 = {<br>\n\t\t\t\t\t\t\t date: new Date(2015,6,4),<br>\n\t\t\t\t\t\t\t text: 'Tooltip 2'<br>\n\t\t\t\t\t\t};<br><br>\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"tooltipsDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>Just put multiple tooltip objects in an array if you have more than 1 tooltip object</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction tooltipsDemo(){\n\t\t\t\t\t\tvar tooltip = {\n\t\t\t\t\t\t\t date: new Date(2015,6,1),\n\t\t\t\t\t\t\t text: 'Tooltip'\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tvar tooltip2 = {\n\t\t\t\t\t\t\t date: new Date(2015,6,4),\n\t\t\t\t\t\t\t text: 'Tooltip 2'\n\t\t\t\t\t\t};\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.tooltips = [tooltip,tooltip2];\n\t\t\t\t\t\tdatepicker.setDate = new Date(2015,6,1);\n\t\t\t\t\t\tconsole.log(datepicker.tooltips);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.tooltips = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"highlight\">\n\t\t\t\t<h2>highlight <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">This is a nice way to mark stuff in the datepicker</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Object or Array of Objects (look how the object is built in the other code block)<br>\n\t\t\t\t\t\t//Default: null<br><br>\n\t\t\t\t\t\t/*Set highlight*/<br>\n\t\t\t\t\t\tdatepicker.highlight = [highlight,highlight2];<br><br>\n\t\t\t\t\t\t/*Get highlight*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.highlight);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t/*highlight object*/<br><br>\n\n\t\t\t\t\t\t/*Single daterange*/<br>\n\t\t\t\t\t\tvar highlight = {<br>\n\t\t\t\t\t\t\t start: new Date(2015,6,13),<br>\n\t\t\t\t\t\t\t end: new Date(2015,6,19),<br>\n\t\t\t\t\t\t\t backgroundColor: '#3faa56',<br>\n\t\t\t\t\t\t\t color: '#ffffff',<br>\n\t\t\t\t\t\t\t legend: 'CSS Conf.'//this is optional<br>\n\t\t\t\t\t\t};<br><br>\n\n\t\t\t\t\t\t/*highlight with multiple dateranges*/<br>\n\t\t\t\t\t\tvar highlight2 = {<br>\n\t\t\t\t\t\t\t dates: [<br>\n\t\t\t\t\t\t\t\t {<br>\n\t\t\t\t\t\t\t\t\t start: new Date(2015,6,6),<br>\n\t\t\t\t\t\t\t\t\t end: new Date(2015,6,7)<br>\n\t\t\t\t\t\t\t\t },<br>\n\t\t\t\t\t\t\t\t {<br>\n\t\t\t\t\t\t\t\t\t start: new Date(2015,6,22),<br>\n\t\t\t\t\t\t\t\t\t end: new Date(2015,6,23)<br>\n\t\t\t\t\t\t\t\t }<br>\n\t\t\t\t\t\t\t ],<br>\n\t\t\t\t\t\t\t backgroundColor: '#E99C00',<br>\n\t\t\t\t\t\t\t color: '#ffffff',<br>\n\t\t\t\t\t\t\t legend: 'Holidays'//this is optional<br>\n\t\t\t\t\t\t};\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"highlightDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>Just put multiple highlight objects in an array if you have more than 1 highlight object</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction highlightDemo(){\n\t\t\t\t\t\tvar highlight = {\n\t\t\t\t\t\t\t start: new Date(2015,6,13),\n\t\t\t\t\t\t\t end: new Date(2015,6,19),\n\t\t\t\t\t\t\t backgroundColor: '#3faa56',\n\t\t\t\t\t\t\t color: '#ffffff',\n\t\t\t\t\t\t\t legend: 'CSS Conf.'\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tvar highlight2 = {\n\t\t\t\t\t\t\t dates: [\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t start: new Date(2015,6,6),\n\t\t\t\t\t\t\t\t\t end: new Date(2015,6,7)\n\t\t\t\t\t\t\t\t },\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t start: new Date(2015,6,22),\n\t\t\t\t\t\t\t\t\t end: new Date(2015,6,23)\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t ],\n\t\t\t\t\t\t\t backgroundColor: '#E99C00',\n\t\t\t\t\t\t\t color: '#ffffff',\n\t\t\t\t\t\t\t legend: 'Holidays'\n\t\t\t\t\t\t};\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.highlight = [highlight,highlight2];\n\t\t\t\t\t\tdatepicker.setDate = new Date(2015,6,1);\n\t\t\t\t\t\tconsole.log(datepicker.highlight);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.highlight = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"disabledDays\">\n\t\t\t\t<h2>disabledDays <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">You can disable spesific days</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Number(0-6) or Array of Numbers(0-6)<br>\n\t\t\t\t\t\t//Default: null<br><br>\n\t\t\t\t\t\t/*Set disabledDays*/<br>\n\t\t\t\t\t\tdatepicker.disabledDays = 0;<br><br>\n\t\t\t\t\t\t/*Get disabledDays*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.disabledDays);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"disabledDaysDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>This is not the same as <a href=\"#disabledDates\">disabledDates</a></p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction disabledDaysDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.disabledDays = 0;\n\t\t\t\t\t\tconsole.log(datepicker.disabledDays);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.disabledDays = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"disabledDates\">\n\t\t\t\t<h2>disabledDates <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">You can disable spesific days</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Date or Array of Dates<br>\n\t\t\t\t\t\t//Default: null<br><br>\n\t\t\t\t\t\t/*Set disabledDates*/<br>\n\t\t\t\t\t\tdatepicker.disabledDates = [new Date(),new Date(2015,6,20)];<br><br>\n\t\t\t\t\t\t/*Get disabledDates*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.disabledDates);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"disabledDatesDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>This is not the same as <a href=\"#disabledDays\">disabledDays</a></p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction disabledDatesDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.disabledDates = [new Date(),new Date(2015,6,20)];\n\t\t\t\t\t\tdatepicker.setDate = new Date(2015,6,1);\n\t\t\t\t\t\tconsole.log(datepicker.disabledDates);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.disabledDates = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"today\">\n\t\t\t\t<h2>today <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">Show little line on todays date</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Boolean<br>\n\t\t\t\t\t\t//Default: true<br><br>\n\t\t\t\t\t\t/*Set today*/<br>\n\t\t\t\t\t\tdatepicker.today = true;<br><br>\n\t\t\t\t\t\t/*Get today*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.today);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"todayDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>This is not the same as <a href=\"#currentDate\">currentDate</a></p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction todayDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tconsole.log(datepicker.today);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"daynames\">\n\t\t\t\t<h2>daynames <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">Show/hide daynames line</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Boolean<br>\n\t\t\t\t\t\t//Default: true<br><br>\n\t\t\t\t\t\t/*Set daynames*/<br>\n\t\t\t\t\t\tdatepicker.daynames = false;<br><br>\n\t\t\t\t\t\t/*Get daynames*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.daynames);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"daynamesDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction daynamesDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.daynames = false;\n\t\t\t\t\t\tconsole.log(datepicker.daynames);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.daynames = true;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"fullscreen\">\n\t\t\t\t<h2>fullscreen <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">Shows the datepicker fullscreen</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Boolean<br>\n\t\t\t\t\t\t//Default: false<br><br>\n\t\t\t\t\t\t/*Set fullscreen*/<br>\n\t\t\t\t\t\tdatepicker.fullscreen = true;<br><br>\n\t\t\t\t\t\t/*Get fullscreen*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.fullscreen);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"fullscreenDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>This feature is not made for inline or container</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction fullscreenDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.fullscreen = true;\n\t\t\t\t\t\tdatepicker.button = 'Close me';\n\t\t\t\t\t\tconsole.log(datepicker.fullscreen);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.fullscreen = false;\n\t\t\t\t\t\t\tdatepicker.button = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"locked\">\n\t\t\t\t<h2>locked <span>Setting</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">Locks the datepicker (viewonlymode)</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Boolean<br>\n\t\t\t\t\t\t//Default: false<br><br>\n\t\t\t\t\t\t/*Set locked*/<br>\n\t\t\t\t\t\tdatepicker.locked = true;<br><br>\n\t\t\t\t\t\t/*Get locked*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.locked);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"lockedDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction lockedDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.locked = true;\n\t\t\t\t\t\tconsole.log(datepicker.fullscreen);\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.locked = false;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"selectedDates\">\n\t\t\t\t<h2>selectedDates <span>Status</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<p class=\"description\">Returns all selected dates</p>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t/*Get selectedDates*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.selectedDates);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"selectedDatesDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction selectedDatesDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tconsole.log(datepicker.selectedDates);\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"isOpen\">\n\t\t\t\t<h2>isOpen <span>Status</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t/*Get isOpen*/<br>\n\t\t\t\t\t\tconsole.log(datepicker.isOpen);\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"isOpenDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction isOpenDemo(){\n\t\t\t\t\t\tconsole.log(datepicker.isOpen);\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"show\">\n\t\t\t\t<h2>show() <span>Function</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t/*Show datepicker*/<br>\n\t\t\t\t\t\tdatepicker.show({<br>\n\t\t\t\t\t\t\ttoday:false<br>\n\t\t\t\t\t\t});\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"showDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>You can pass all settings and callbacks as object</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction showDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.show({\n\t\t\t\t\t\t\ttoday:false,\n\t\t\t\t\t\t\tonClose:function(){\n\t\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t\t\tdatepicker.today = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"hide\">\n\t\t\t\t<h2>hide() <span>Function</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t/*Hide datepicker*/<br>\n\t\t\t\t\t\tdatepicker.hide();\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\">A bit hard to show that! But you get it :)</button>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"selectDate\">\n\t\t\t\t<h2>selectDate( Date, ignoreOnSelectEvent ) <span>Function</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Date<br>\n\t\t\t\t\t\tdatepicker.selectDate(new Date());\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"selectDateDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction selectDateDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.selectDate(new Date());\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"unselectDate\">\n\t\t\t\t<h2>unselectDate( Date, ignoreOnSelectEvent ) <span>Function</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Date<br>\n\t\t\t\t\t\tdatepicker.unselectDate(new Date());\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"unselectDateDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction unselectDateDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.selectDate(new Date())\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\tdatepicker.unselectDate(new Date());\n\t\t\t\t\t\t},1000);\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"unselectAll\">\n\t\t\t\t<h2>unselectAll( ignoreOnSelectEvent ) <span>Function</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Unselect all<br>\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"unselectAllDemo()\">Let's try that</button>\n\t\t\t\t<script>\n\t\t\t\t\tfunction unselectAllDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"onConfirm\">\n\t\t\t\t<h2>onConfirm <span>Callback</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Function<br>\n\t\t\t\t\t\tdatepicker.onConfirm = function(){<br>\n\t\t\t\t\t\t\talert('onConfirm')<br>\n\t\t\t\t\t\t};\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"onConfirmDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>The context(this) is the datepicker object</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction onConfirmDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.button = 'OK';\n\t\t\t\t\t\tdatepicker.onConfirm = function(){alert('onCofirm')};\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.onConfirm = null;\n\t\t\t\t\t\t\tdatepicker.button = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t};\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"onClose\">\n\t\t\t\t<h2>onClose <span>Callback</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Function<br>\n\t\t\t\t\t\tdatepicker.onClose = function(){<br>\n\t\t\t\t\t\t\talert('onClose')<br>\n\t\t\t\t\t\t};\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"onCloseDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>The context(this) is the datepicker object</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction onCloseDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\talert('onClose');\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t};\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"onSelect\">\n\t\t\t\t<h2>onSelect <span>Callback</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Function<br>\n\t\t\t\t\t\tdatepicker.onSelect = function(checked){<br>\n\t\t\t\t\t\t\tvar state = (checked)?'selected':'unselected';<br>\n\t\t\t\t\t\t\talert(this.toLocaleDateString() + ' ' + state)<br>\n\t\t\t\t\t\t};\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"onSelectDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>The context(this) is the date. The first parameter is the un-/selected state as Boolean</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction onSelectDemo(){\n\t\t\t\t\t\tdatepicker.unselectAll();\n\t\t\t\t\t\tdatepicker.onSelect = function(checked){\n\t\t\t\t\t\t\tvar state = (checked)?'selected':'unselected';\n\t\t\t\t\t\t\talert(this.toLocaleDateString() + ' ' + state)\n\t\t\t\t\t\t};\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.onSelect = null;\n\t\t\t\t\t\t\tdatepicker.onClose = null;\n\t\t\t\t\t\t};\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div>\n\n\t\t\t<div class=\"col-xs-12 col-md-6 block\" id=\"onNavigation\">\n\t\t\t\t<h2>onNavigation <span>Callback</span> <a href=\"#index\">Go up</a></h2>\n\t\t\t\t<pre>\n\t\t\t\t\t<code>\n\t\t\t\t\t\t//Type: Function<br>\n\t\t\t\t\t\tdatepicker.onNavigation = function(){<br>\n\t\t\t\t\t\t\talert('Navigation happened!')<br>\n\t\t\t\t\t\t};\n\t\t\t\t\t</code>\n\t\t\t\t</pre>\n\t\t\t\t<button class=\"grey full\" onclick=\"onNavigationDemo()\">Let's try that</button>\n\t\t\t\t<p><i class=\"fa fa-lightbulb-o hint\"></i>The context(this) is the datepicker object.</p>\n\t\t\t\t<script>\n\t\t\t\t\tfunction onNavigationDemo(){\n\t\t\t\t\t\tdatepicker.onNavigation = function(){\n\t\t\t\t\t\t\talert('Navigation happened!');\n\t\t\t\t\t\t};\n\t\t\t\t\t\tdatepicker.onClose = function(){\n\t\t\t\t\t\t\tdatepicker.onNavigation = null;\n\t\t\t\t\t\t};\n\t\t\t\t\t\tdatepicker.show();\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t</div\n\n\t\t</div>\n\n\t</div>\n\t<script src=\"docs/demo.js\"></script>\n\t<script async defer id=\"github-bjs\" src=\"https://buttons.github.io/buttons.js\"></script>\n</body>\n</html>\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/package.json",
    "content": "{\n  \"name\": \"datepickk\",\n  \"description\": \"Flexbox/js datepicker\",\n  \"main\": \"src/js/datepickk.js\",\n  \"directories\": {\n    \"doc\": \"docs\"\n  },\n  \"scripts\": {\n    \"commit\": \"git-cz\",\n    \"semantic-release\": \"semantic-release pre && npm publish && semantic-release post\",\n    \"build\": \"webpack\",\n    \"dev\": \"webpack --watch\",\n    \"prepare\": \"npm run build\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/crsten/datepickk.git\"\n  },\n  \"keywords\": [\n    \"datepicker\",\n    \"js\",\n    \"flexbox\"\n  ],\n  \"bugs\": {\n    \"url\": \"https://github.com/crsten/datepickk/issues\"\n  },\n  \"author\": \"Carsten Jacobsen\",\n  \"license\": \"MIT\",\n  \"devDependencies\": {\n    \"@babel/preset-env\": \"^7.0.0-beta.4\",\n    \"babel-loader\": \"^7.1.2\",\n    \"babel-minify-webpack-plugin\": \"^0.2.0\",\n    \"babel-preset-env\": \"^1.6.1\",\n    \"clean-webpack-plugin\": \"^0.1.17\",\n    \"css-loader\": \"^0.28.7\",\n    \"cz-conventional-changelog\": \"^2.1.0\",\n    \"extract-text-webpack-plugin\": \"^3.0.2\",\n    \"less\": \"^2.7.3\",\n    \"less-loader\": \"^4.0.5\",\n    \"optimize-css-assets-webpack-plugin\": \"^3.2.0\",\n    \"semantic-release\": \"^4.3.5\",\n    \"style-loader\": \"^0.19.0\",\n    \"webpack\": \"^3.8.1\"\n  },\n  \"config\": {\n    \"commitizen\": {\n      \"path\": \"./node_modules/cz-conventional-changelog\"\n    }\n  }\n}\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/src/css/datepickk.less",
    "content": "/*Main color*/\n@color: #E95A5A; //change if you want different theme\n@green: #7DD076;\n\n@spin: -15;\n\n/*Datepickk*/\n\n.d-noscroll{\n\toverflow:hidden;\n}\n\n#Datepickk{\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tz-index: 999;\n\n\twidth: 100%;\n\theight: 100%;\n\tfont-family: inherit;\n\tcolor: #333;\n\n    user-select: none;\n\n    &.MSIE:not(.wrapped):not(.inline) .d-calendar{\n    \theight:560px;\n    }\n\n    &.d-show{\n\t\t.d-overlay{\n\t\t\tanimation-name: show;\n\t\t\tanimation-duration: .2s;\n\t\t\tanimation-timing-function: ease-out;\n\t\t\tanimation-fill-mode: both;\n\t\t}\n\t}\n\n\t&.d-hide{\n\n\t\t& > *{\n\t\t\tanimation-name: DatepickkHide;\n\t\t    animation-duration: .2s;\n\t\t    animation-timing-function: linear;\n\t\t    animation-fill-mode: both;\n\t\t}\n\n\t\t.d-overlay{\n\t\t\tanimation-name: show;\n\t        animation-duration: .15s;\n\t        animation-timing-function: ease-out;\n\t        animation-fill-mode: both;\n\t\t\tanimation-direction: reverse;\n\t\t}\n\t}\n\n\t.d-overlay{\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground-color: rgba(55, 58, 71, 0.95);\n\t\tz-index:1;\n\t}\n\n\t.d-title{\n\t\tcolor:white;\n\t\ttext-align: center;\n\t\tposition: relative;\n\t\tfont-size: 30px;\n\t\tmargin:25px 0;\n\t\tz-index: 2;\n\t}\n\n\t.d-confirm{\n\t\tborder: none;\n\t\tposition: relative;\n\t\tbackground-color: transparent;\n\t\toutline: none;\n\t\tfont-family: inherit;\n\t\tfont-size: 30px;\n\t\tfont-weight: 500;\n\t\tcolor: white;\n\t\tmargin:25px 0;\n\t\tcursor:pointer;\n\t\tpadding:0;\n\t\tz-index: 2;\n\t}\n\n\t.d-title:empty,.d-confirm:empty{\n\t\tdisplay: none;\n\t}\n\n\t@media(max-height:528px){\n\t\t.d-title,.d-confirm{\n\t\t\tfont-size:20px;\n\t\t\tmargin:15px 0;\n\t\t}\n\t\t.d-calendar{\n\t\t\tfont-size: 20px;\n\t\t}\n\t}\n\n\t&.multi{\n\t\t.d-calendar,.d-legend{\n\t\t\tmax-width: 800px;\n\t\t}\n\n\t\t.d-table{\n\t\t\tposition: relative;\n\t\t\tpadding-top:35px;\n\n\t\t\t&:before{\n\t\t\t\tcontent: attr(data-month);\n\t\t\t    text-align: right;\n\t\t\t    width: 100%;\n\t\t\t    font-size: 1em;\n\t\t\t    padding: 5px 10px 5px 0;\n\t\t\t    box-sizing: border-box;\n\t\t\t    color: #CCC;\n\t\t\t    position: absolute;\n\t\t\t    left: 0;\n\t\t\t    top: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t&.inline{\n\t\t&.d-show .d-calendar{\n\t\t\tanimation: none;\n\t\t}\n\t}\n\n\t&.inline,&.wrapped{\n\t\tposition: static;\n\t\tz-index: 0;\n\n\t\t.d-calendar{\n\t\t\tbox-shadow: none;\n\t\t\tz-index: 0;\n\t\t\tmax-width: none;\n\t\t\tmax-height: none;\n\t\t}\n\n\t\t.d-confirm,.d-title{\n\t\t\tcolor:#222;\n\t\t}\n\n\t\t.d-overlay{\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t.d-legend{\n\t\t\tcolor:#222!important;\n\t\t\tmax-width: none;\n\t\t\tmax-height: none;\n\t\t}\n\t}\n\n\t&.fullscreen{\n\t\t.d-calendar{\n\t\t\t\tmax-width: none;\n\t\t\t\tmax-height: none;\n\n\t\t\t\tinput + label{\n\t\t\t\t\toutline: 1px solid #eaeaea;\n\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\talign-items:flex-start!important;\n\t\t\t\t\tjustify-content: flex-end!important;\n\n\t\t\t\t\ttext{\n\t\t\t\t\t\tpadding:5px 10px 0 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\n\t\t.d-legend{\n\t\t\tmax-width: none;\n\t\t}\n\t}\n\n\t.d-legend{\n\t\tdisplay: flex;\n\t\tflex-wrap:wrap;\n\t\tjustify-content:center;\n\t\twidth: 100%;\n\t\tz-index: 2;\n\t\tbackground-color:whitesmoke;\n\t\tmax-width: 500px;\n\t\tposition: relative;\n\t\tcolor:white;\n\n\t\t&:empty{\n\t\t\theight:0;\n\t\t}\n\n\t\tp{\n\t\t\t.d-fadeInUp();\n\t\t\tmargin:0;\n\t\t\tpadding: 15px;\n\t\t\ttransition: background-color .2s ease;\n\t\t\tcursor:pointer;\n\t\t\tcolor: #1B353F;\n\n\t\t\t&:after{\n\t\t\t\tcontent: attr(data-legend);\n\t\t\t}\n\n\t\t\tspan{\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder-radius: 100%;\n\t\t\t\tvertical-align: bottom;\n\t\t\t\tdisplay:inline-block;\n\t\t\t\tmargin-right:10px;\n\t\t\t}\n\t\t}\n\t}\n\n\t.d-calendar{\n\t\tmargin:0;\n\t\tbackground-color:white;\n\t\tbox-shadow: 0px 2px 10px -2px rgba(0, 0, 0, 0.6);\n\t\tfont-size: 20px;\n\t\twidth: 100%;\n\t\tposition: relative;\n\t\tmax-width: 500px;\n\t\tmax-height: 560px;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content:flex-start;\n\t\tflex-grow:1;\n\t\tz-index: 2;\n\t}\n\n\t.d-header{\n\t\tposition: relative;\n\t\tbackground-color: #1B363F;\n\t\tcolor: white;\n\t\tfont-size: 1.5em;\n\n  \t\tp{\n  \t\t\tmargin: .5em 0;\n  \t\t\ttext-align: center;\n  \t\t}\n\n  \t\ti{\n  \t\t\tposition: absolute;\n  \t\t\ttop: 50%;\n  \t\t\twidth: 30px;\n  \t\t\theight:30px;\n  \t\t\tcursor:pointer;\n\t\t\ttext-align: center;\n\t\t\tborder-radius: 100%;\n\t\t\ttransition: background-color .2s ease;\n\t\t\ttransform:translateY(-50%);\n\n\t\t\t&:before,&:after{\n\t\t\t\tcontent: '';\n\t\t\t    width: 0;\n\t\t\t    height: 0;\n\t\t\t    position: absolute;\n\t\t\t}\n\n\t\t\t&:before{\n\t\t\t\tborder-top: 10px solid rgba(0, 0, 0, 0);\n\t\t\t    border-bottom: 10px solid rgba(0, 0, 0, 0);\n\t\t\t}\n\n\t\t\t&:after{\n\t\t\t    border-top: 7px solid rgba(0, 0, 0, 0);\n\t\t\t    border-bottom: 7px solid rgba(0, 0, 0, 0);\n\t\t\t\ttransition: border-color .2s ease;\n\t\t\t}\n\n\t\t\t&#d-previous{\n\t\t\t\tleft:20px;\n\t\t\t\t&:before{\n\t\t\t\t\tborder-right: 10px solid #FFF;\n\t\t\t    \ttop: 5px;\n\t\t    \t\tleft: 7px;\n\t\t\t\t}\n\n\t\t\t\t&:after{\n\t\t\t\t\tborder-right: 7px solid #1B363F;\n\t\t\t    \ttop: 8px;\n\t\t\t    \tleft: 10px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&#d-next{\n\t\t\t\tright:20px;\n\t\t\t\t&:before{\n\t\t\t\t\tborder-left: 10px solid #FFF;\n\t\t\t\t\ttop: 5px;\n\t\t    \t\tleft: 12px;\n\t\t\t\t}\n\t\t\t\t&:after{\n\t\t\t\t\tborder-left: 7px solid #1B363F;\n\t\t\t\t    top: 8px;\n\t\t\t   \t\tleft: 12px;\n\t\t\t\t}\n\t\t\t}\n\n  \t\t\t&:hover{\n\t\t\t\tbackground-color: #5E7178;\n\n\t\t\t\t&:after{\n\t\t\t\t\tborder-left-color: #5E7178!important;\n\t\t\t\t\tborder-right-color: #5E7178!important;\n\t\t\t\t}\n  \t\t\t}\n  \t\t}\n\t}\n\n\t.d-month{\n\t\tcursor: pointer;\n\t\twhite-space: nowrap;\n\t}\n\n\t.d-year{\n\t\tmargin-left:10px;\n\t\tcursor: pointer;\n\n\t\t&:before{\n\t\t\tcontent:\"\";\n\t\t}\n\t}\n\n\t.d-month-picker{\n\t\tdisplay: flex;\n\t\tjustify-content:space-between;\n\t\tbackground-color: fade(#1B363F,90%);\n\t\theight: 0;\n\t\toverflow: hidden;\n\t\tpointer-events: none;\n\t\ttransition: height .2s ease;\n\n\t\t&.d-show{\n\t\t\theight: 44px;\n\t\t\tpointer-events: auto;\n\t\t}\n\n\t\t& > div{\n\t\t\twidth: calc(100% ~\"/\" 12);\n\t\t\ttext-align: center;\n\t\t\tline-height: 44px;\n\t\t\tcolor:contrast(fade(#1B363F,90%),black,white);\n\t\t\tcursor:pointer;\n\n\t\t\t&:hover,&:focus{\n\t\t\t\tbackground-color: darken(@color,10%);\n\t\t\t\tcolor:contrast(darken(@color,10%),black,white);\n\t\t\t}\n\n\t\t\t&.current{\n\t\t\t\tbackground-color: spin(@color,25);\n\t\t\t\tcolor:contrast(spin(@color,25),black,white);\n\t\t\t}\n\t\t}\n\t}\n\n\t.d-year-picker{\n\t\tdisplay: flex;\n\t\tjustify-content:space-between;\n\t\tbackground-color: fade(#1B363F,90%);\n\t\theight: 0;\n\t\toverflow: hidden;\n\t\tpointer-events: none;\n\t\ttransition: height .2s ease;\n\n\t\t&.d-show{\n\t\t\theight: 44px;\n\t\t\tpointer-events: auto;\n\t\t}\n\n\t\t& > div{\n\t\t\twidth: calc(100% ~\"/\" 11);\n\t\t\ttext-align: center;\n\t\t\tline-height: 44px;\n\t\t\tcolor:contrast(fade(#1B363F,90%),black,white);\n\t\t\tcursor:pointer;\n\n\t\t\t&:hover,&:focus{\n\t\t\t\tbackground-color: darken(@color,10%);\n\t\t\t\tcolor:contrast(darken(@color,10%),black,white);\n\t\t\t}\n\n\t\t\t&.current{\n\t\t\t\tbackground-color: spin(@color,25);\n\t\t\t\tcolor:contrast(spin(@color,25),black,white);\n\t\t\t}\n\t\t}\n\t}\n\n\t.d-weekdays{\n\t\tdisplay: flex;\n\t}\n\t.d-week{\n\t\tbackground-color:@color;\n\t\tcolor:contrast(@color,black,white);\n  \t\tdisplay: flex;\n  \t\twidth: 100%;\n\n  \t\t& + .d-week{\n  \t\t\tborder-left:1px solid rgba(255,255,255,0.05);\n  \t\t}\n\n  \t\t& > div{\n  \t\t\tflex-basis: calc(100% ~\"/\" 7);\n  \t\t\ttext-align: center;\n\n  \t\t\tp{\n  \t\t\t\tmargin:.8em 0;\n  \t\t\t}\n  \t\t}\n\n  \t\t@media(max-height: 540px){\n  \t\t\tdisplay: none;\n  \t\t}\n\t}\n\n\t.d-table{\n\t\twidth: 100%;\n\t    display: flex;\n\t    flex-wrap: wrap;\n\t    flex: 1;\n\n\t    &:first-child:nth-last-child(n + 3),&:first-child:nth-last-child(n + 3) ~ div{\n\t\t\tflex:0;\n\t\t\tflex-basis: calc(100% ~\"/\" 3 ~\"-\" 1px);/*-1px due to browser render*/\n\n\t\t\tborder-bottom:1px solid rgba(0,0,0,0.05);\n\t    }\n\n\t    label:nth-of-type(7n) .d-date-legends{\n\t\t\tpadding-right:0;\n\t    }\n\n\t    label:nth-last-of-type(-n + 7) .d-date-legends{\n\t    \tpadding-bottom:0;\n\t    }\n\n\t\tinput{\n\n\t\t\tdisplay: none;\n\n\t\t\t& + label{\n\t\t\t\tflex-basis: calc(100% ~\"/\" 7);\n\t\t\t\t-ms-flex-preferred-size: 14.28%;/*Keep -> IE render fail*/\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\tcursor: pointer;\n\t\t\t\ttransition: background-color .2s ease,background .2s ease,color .2s ease;\n\t\t\t\tposition: relative;\n\t\t\t\t-webkit-tap-highlight-color: rgba(0,0,0,0);\n\t\t\t\t\tbox-sizing: border-box;\n\n\t\t\t\t\ttext{\n\t\t\t\t\t\tz-index: 9;\n\t\t\t\t\t\tpointer-events: none;\n\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t}\n\n\t\t\t\t\t&[style*=\"linear-gradient\"] text{\n\t\t\t\t\t\ttext-shadow: 0 0 20px black;\n\t\t\t\t\t}\n\n\t\t\t\t\t&.today text:before{\n\t\t\t\t\tcontent: '';\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\theight: 2px;\n\t\t\t\t\tbackground-color: @color;\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tbottom: -5px;\n\t\t\t\t\tleft: 0;\n\t\t\t\t\t}\n\n\t\t\t\t&:before{\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\ttop: 12.5%;\n\t\t\t\t\tleft: 12.5%;\n\t\t\t\t\twidth: 75%;\n\t\t\t\t\theight: 75%;\n\t\t\t\t\tborder-radius: 5px;\n\t\t\t\t\tbackground-color: @green;\n\t\t\t\t\ttransition: transform 0.1s ease-out;\n\t\t\t\t\ttransform: scaleX(0);\n\t\t\t\t\ttransform-origin: left;\n\t\t\t\t}\n\n\t\t\t\t&.legend-hover{\n\t\t\t\t\tanimation: legendhover 1s infinite;\n\t\t\t\t\tz-index: 10;\n\n\t\t\t\t\t@keyframes legendhover{\n\t\t\t\t\t\t0%{\n\t\t\t\t\t\t\ttransform: translate(0,0px);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t50%{\n\t\t\t\t\t\t\ttransform: translate(0,-5px);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t100%{\n\t\t\t\t\t\t\ttransform: translate(0,0px);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t&.next,&.prev{\n\t\t\t\t\tcolor:#ccc;\n\t\t\t\t}\n\n  \t\t\t\t[data-tooltip]{\n  \t\t\t\t\t&:after{\n\t\t\t\t\t\tcontent: '';\n\t\t\t\t\t\tborder-radius: 100%;\n\t\t\t\t\t\tbackground-color: #1B363F;\n\t\t\t\t\t\twidth: 5px;\n\t\t\t\t\t\theight: 5px;\n\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\ttop: 0;\n\t\t\t\t\t\tright: -10px;\n\t\t\t\t\t}\n  \t\t\t\t}\n\n\n  \t\t\t\t.d-tooltip{\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tbackground-color: #1B363F;\n\t\t\t\t\tcolor: #FFF;\n\t\t\t\t\tpadding: 7px;\n\t\t\t\t\tfont-size: .7em;\n\t\t\t\t\tz-index: 13;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\ttop: 100%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\ttransform: translate(-50%, -5px);\n\t\t\t\t\tdisplay: none;\n\n\t\t\t\t\t&:before{\n\t\t\t\t\t\tcontent: '';\n\t\t\t\t\t\tborder-bottom: 7px solid #1B363F;\n\t\t\t\t\t\tborder-left: 5px solid rgba(0, 0, 0, 0);\n\t\t\t\t\t\tborder-right: 5px solid rgba(0, 0, 0, 0);\n\t\t\t\t\t\ttop: -7px;\n\t\t\t\t\t\tleft: 50%;\n\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\tmargin-left: -5px;\n\t\t\t\t\t}\n\n  \t\t\t\t\t&:empty{\n  \t\t\t\t\t\tdisplay: none!important;\n  \t\t\t\t\t}\n  \t\t\t\t}\n\n  \t\t\t\t&:hover {\n  \t\t\t\t\t.d-tooltip{\n  \t\t\t\t\t\tdisplay: block;\n  \t\t\t\t\t}\n  \t\t\t\t}\n\t\t\t}\n\n\t\t\t&:checked {\n\t\t\t\t& + label{\n\t\t\t\t\tcolor:contrast(@color,white,#666);\n\n\t\t\t\t\t&:before{\n\t\t\t\t\t\ttransform:scaleX(1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&:disabled + label{\n\t\t\t\tcursor:not-allowed;\n\n\t\t\t\t&:after{\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\ttop: 50%;\n\t\t\t\t\tleft: 20%;\n\t\t\t\t\twidth: 60%;\n\t\t\t\t\theight: 2px;\n\t\t\t\t\tz-index: 10;\n\t\t\t\t\tbackground-color: #c60000;\n\t\t\t\t\t\ttransform-origin: center;\n\t\t\t\t\t\ttransform: rotate(-25deg);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t& + label.d-hidden{\n\t\t\t\tcursor:default;\n\t\t\t\tcolor: #ccc!important;\n\t\t\t\tbackground: #f0f0f0!important;\n\t\t\t\ttext-decoration: line-through;\n\n\t\t\t\t&:after{\n\t\t\t\t\tcontent:none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.d-tables{\n\t\tdisplay: flex;\n\t\tflex:1;\n\t\tflex-wrap:wrap;\n\n\t\t&:not(.locked){\n\t\t\tinput:not(:checked) + label:not(.hidden):hover{\n  \t\t\t\t\tcolor: #222;\n  \t\t\t\t\tbackground-color:#eaeaea;\n\t\t\t}\n\t\t}\n\n\t\t&.locked label{\n\t\t\tcursor: default;\n\t\t}\n\n\t\t&.range{\n\t\t\t&:not(.before) input:not(.single){\n\t\t\t\t&:checked {\n\t\t\t\t\t& + label{\n\t\t\t\t\t\tcolor:contrast(@color,white,#222);\n\n\t\t\t\t\t\t& ~ label:not(.hidden){\n\t\t\t\t\t\t\tcolor:contrast(@color,white,#222);\n\n\t\t\t\t\t\t\t&:before{\n\t\t\t\t\t\t\t\ttransform:scaleX(1);\n\t\t\t\t\t\t\t\tbackground-color: fade(@green,50%);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t& ~ label:hover ~ label,& ~ label:focus ~ label{\n\t\t\t\t\t\t&:before{\n\t\t\t\t\t\t\ttransform:scaleX(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcolor:#666;\n\n\t\t\t\t\t\t&.next,&.prev{\n\t\t\t\t\t\t\tcolor: contrast(@color,#ccc,#222);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t& ~ input:checked + label{\n\n\t\t\t\t\t\tcolor:contrast(@color,white,#666);\n\n\t\t\t\t\t\t&:before{\n\t\t\t\t\t\t\ttransform:scaleX(1);\n\t\t\t\t\t\t\tbackground-color: @green;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t& ~ label{\n\t\t\t\t\t\t\tcolor:inherit;\n\n\t\t\t\t\t\t\t&.next,&.prev{\n\t\t\t\t\t\t\t\tcolor: contrast(@color,#ccc,#222);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t&:before{\n\t\t\t\t\t\t\t\ttransform:scaleX(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.before input:not(.single){\n\t\t\t\t&:not(:checked) + label{\n\t\t\t\t\tcolor:contrast(spin(@color,@spin),white,#666);\n\n\t\t\t\t\t&:before{\n\t\t\t\t\t\ttransform:scaleX(1);\n\t\t\t\t\t\tbackground-color: fade(spin(@color,@spin),30%);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t&:checked + label ~ label{\n\t\t\t\t\tcolor:inherit;\n\n\t\t\t\t\t&.next,&.prev{\n\t\t\t\t\t\tcolor: contrast(@color,#ccc,#222);\n\t\t\t\t\t}\n\n\t\t\t\t\t&:before{\n\t\t\t\t\t\ttransform:scaleX(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.d-fadeInUp {\n\t  backface-visibility: visible !important;\n\t  animation-name: DatepickfadeInUp;\n\t  animation-duration: .5s;\n\t  animation-fill-mode: both;\n\t}\n}\n\n@keyframes DatepickBGShow{\n\tfrom{\n\t\topacity: 0;\n\t}\n}\n\n@keyframes DatepickfadeInUp {\n  0% {\n    opacity: 0;\n    transform: translate3d(0, 100%, 0);\n  }\n\n  100% {\n    opacity: 1;\n    transform: none;\n  }\n}\n\n.d-fadeInUp {\n  animation-name: DatepickfadeInUp;\n}\n\n#Datepickk.d-show > *{\n\tanimation-name: DatepickkShow;\n\tanimation-duration: .2s;\n\tanimation-timing-function: ease-out;\n\tanimation-fill-mode: both;\n}\n\n@keyframes DatepickkShow {\n\tfrom{\n\t\topacity: 0;\n\t\ttransform: translateY(-50px);\n\t}\n}\n\n@keyframes DatepickkHide{\n\tto{\n\t\topacity: 0;\n\t\ttransform: translateY(50px);\n\t}\n}\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/src/js/datepickk.js",
    "content": "/*!\n* Datepickk\n* Docs & License: https://crsten.github.com/datepickk\n* (c) 2017 Carsten Jacobsen\n*/\n\nimport '../css/datepickk.less';\n\nfunction Datepickk(args){\n\tDatepickk.numInstances = (Datepickk.numInstances || 0) + 1;\n\tvar that = this;\n\tvar eventName = 'click';\n\tvar selectedDates = [];\n\n\tvar currentYear = new Date().getFullYear();\n\tvar currentMonth = new Date().getMonth() + 1;\n\n\tvar languages = {\n\t\tno: {\n\t\t\tmonthNames:['Januar','Februar','Mars','April','Mai','Juni','Juli','August','September','Oktober','November','Desember'],\n\t\t\tdayNames:['sø','ma','ti','on','to','fr','lø'],\n\t\t\tweekStart:1\n\t\t},\n\t\tse: {\n\t\t\tmonthNames:['januari','februari','mars','april','maj','juni','juli','augusti','september','oktober','november','december'],\n\t\t\tdayNames:['sö','må','ti','on','to','fr','lö'],\n\t\t\tweekStart:1\n\t\t},\n\t\tru: {\n\t\t\tmonthNames:['Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],\n\t\t\tdayNames:['вс','пн','вт','ср','чт','пт','сб'],\n\t\t\tweekStart:1\n\t\t},\n\t\ten: {\n\t\t\tmonthNames:['january','february','march','april','may','june','july','august','september','october','november','december'],\n\t\t\tdayNames:['su','mo','tu','we','th','fr','sa'],\n\t\t\tweekStart:0\n\t\t},\n\t\tde: {\n\t\t\tmonthNames:['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],\n\t\t\tdayNames:['So','Mo','Di','Mi','Do','Fr','Sa'],\n\t\t\tweekStart:1\n\t\t}\n\t};\n\n\t/*Language aliases*/\n\tlanguages.nb = languages.no;\n\tlanguages.nn = languages.no;\n\n\tvar range = false;\n\tvar maxSelections = null;\n\tvar container = document.body;\n\tvar opened = false;\n\tvar months = 1;\n\tvar closeOnSelect = false;\n\tvar button = null;\n\tvar title = null;\n\tvar onNavigation = null;\n\tvar onClose = null;\n\tvar onConfirm = null;\n\tvar closeOnClick = true;\n\tvar inline = false;\n\tvar lang = 'en';\n\tvar onSelect = null;\n\tvar disabledDates = [];\n\tvar disabledDays = [];\n\tvar highlight = [];\n\tvar tooltips = {};\n\tvar daynames = true;\n\tvar today = true;\n\tvar startDate = null;\n\tvar minDate = null;\n\tvar maxDate = null;\n\tvar weekStart = null;\n\tvar locked = false;\n\n\tfunction generateDaynames(){\n\t\tthat.el.days.innerHTML = '';\n\t\tvar ws = (weekStart !== null) ? weekStart : languages[lang].weekStart;\n\t\tif(daynames){\n\t\t\tfor(var x = 0;x<months && x<3;x++){\n\t\t\t\tvar weekEl = document.createElement('div');\n\t\t\t\t\tweekEl.setAttribute('class','d-week');\n\t\t\t\tfor(var i = 0; i < 7;i++){\n\t\t\t\t\tvar dayNameIndex = (i + ws > languages[lang].dayNames.length - 1) ? i + ws - languages[lang].dayNames.length : i + ws;\n\n\t\t\t\t\tvar dayEl = document.createElement('div');\n\t\t\t\t\tvar\tdayTextEl = document.createElement('p');\n\t\t\t\t\t\tdayTextEl.innerHTML = languages[lang].dayNames[dayNameIndex];\n\n\t\t\t\t\t\tdayEl.appendChild(dayTextEl);\n\t\t\t\t\t\tweekEl.appendChild(dayEl);\n\t\t\t\t}\n\n\t\t\t\tthat.el.days.appendChild(weekEl);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction generateYears(){\n\t\t[].slice.call(that.el.yearPicker.childNodes).forEach(function(node,index) {\n\t\t\tnode.innerHTML = \"'\" + (currentYear + parseInt(node.getAttribute('data-year'))).toString().substring(2,4);\n\t\t})\n\t}\n\n\tfunction generateInputs(){\n\t\tthat.el.tables.innerHTML = '';\n\t\tfor(var x = 0;x<months;x++){\n\t\t\tvar container = document.createElement('div');\n\t\t\t\tcontainer.setAttribute('class','d-table');\n\t\t\tfor(var i = 0;i<42;i++){\n\t\t\t\tvar input = document.createElement('input');\n\t\t\t\t\tinput.type = 'checkbox';\n\t\t\t\t\tinput.id   = Datepickk.numInstances + '-' + x + '-d-day-' + i;\n\t\t\t\tvar label = document.createElement('label');\n\t\t\t\t\tlabel.setAttribute(\"for\",Datepickk.numInstances + '-' + x + '-d-day-' + i);\n\n\t\t\t\tvar text = document.createElement('text');\n\n\t\t\t\tvar tooltip = document.createElement('span');\n\t\t\t\t\ttooltip.setAttribute('class','d-tooltip');\n\n\n\t\t\t\tcontainer.appendChild(input);\n\t\t\t\tcontainer.appendChild(label);\n\n\t\t\t\tlabel.appendChild(text);\n\t\t\t\tlabel.appendChild(tooltip);\n\n\t\t\t\tinput.addEventListener(eventName,function(event){\n\t\t\t\t\tif(locked){\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tinput.addEventListener('change',inputChange);\n\t\t\t}\n\n\t\t\tthat.el.tables.appendChild(container);\n\t\t}\n\n\t\tthat.el.tables.addEventListener('mouseover',highlightLegend);\n\t\tthat.el.tables.addEventListener('mouseout',highlightLegend);\n\n\t\tfunction highlightLegend(e){\n\t\t\tif(e.target.nodeName !== 'LABEL') return;\n\n\t\t\tvar legendIds = (e.target.getAttribute('data-legend-id'))?e.target.getAttribute('data-legend-id').split(' '):[];\n\t\t\tif(!legendIds.length) return;\n\n\t\t\tlegendIds.forEach(function(legendId) {\n\t\t\t\tvar element = that.el.legend.querySelector('[data-legend-id=\"' + legendId + '\"]');\n\t\t\t\tif(e.type == 'mouseover' && element){\n\t\t\t\t\tvar color = (element.getAttribute('data-color'))?hexToRgb(element.getAttribute('data-color')):null;\n\t\t\t\t\telement.setAttribute('style','background-color:rgba(' + color.r + ',' + color.g + ',' + color.b + ',0.35);');\n\t\t\t\t}else if(element){\n\t\t\t\t\telement.removeAttribute('style');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tfunction hexToRgb(hex) {\n\t\t\t    var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n\t\t\t    return result ? {\n\t\t\t        r: parseInt(result[1], 16),\n\t\t\t        g: parseInt(result[2], 16),\n\t\t\t        b: parseInt(result[3], 16)\n\t\t\t    } : null;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction generateLegends(){\n\t\tvar start = new Date(that.el.tables.childNodes[0].childNodes[0].getAttribute('data-date'));\n\t\tvar end = new Date(that.el.tables.childNodes[months-1].childNodes[82].getAttribute('data-date'));\n\t\tvar _highlights = highlight.filter(function(x){\n\t\t\tfor(var m = 0;m < x.dates.length;m++){\n\t\t\t\tif(x.dates[m].start < end && x.dates[m].end > start){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t\tvar legends = [];\n\t\tfor(var l = 0;l<_highlights.length;l++){\n\t\t\tif('legend' in _highlights[l] && _highlights[l].legend){\n\t\t\t\tvar oldLegend = container.querySelector('.d-legend-item[data-legend=\"' + _highlights[l].legend + '\"][data-color=\"' + _highlights[l].backgroundColor + '\"]');\n\t\t\t\tif(oldLegend == null){\n\t\t\t\t\tvar legendItem = document.createElement('p');\n\t\t\t\t\t\tlegendItem.setAttribute('class','d-legend-item');\n\t\t\t\t\t\tlegendItem.setAttribute('data-legend',_highlights[l].legend);\n\t\t\t\t\t\tlegendItem.setAttribute('data-legend-id',highlight.indexOf(_highlights[l]));\n\t\t\t\t\t\tlegendItem.setAttribute('data-color',_highlights[l].backgroundColor);\n\t\t\t\t\tvar legendItemPoint = document.createElement('span');\n\t\t\t\t\t\tlegendItemPoint.setAttribute('style','background-color:' + _highlights[l].backgroundColor);\n\n\t\t\t\t\tlegendItem.appendChild(legendItemPoint);\n\n\t\t\t\t\tthat.el.legend.appendChild(legendItem);\n\t\t\t\t\tlegendItem.addEventListener('mouseover',hoverLegend);\n\t\t\t\t\tlegendItem.addEventListener('mouseout',hoverLegend);\n\t\t\t\t\tlegends.push(legendItem);\n\t\t\t\t}else{\n\t\t\t\t\tlegends.push(oldLegend);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t[].slice.call(that.el.legend.querySelectorAll('.d-legend-item')).forEach(function(item) {\n\t\t\tif(legends.indexOf(item) < 0){\n\t\t\t\titem.removeEventListener('mouseover',hoverLegend);\n\t\t\t\titem.removeEventListener('mouseout',hoverLegend);\n\t\t\t\tthat.el.legend.removeChild(item);\n\t\t\t}\n\t\t});\n\n\t\tfunction hoverLegend(e){\n\t\t\t[].slice.call(that.el.tables.querySelectorAll('[data-legend-id*=\"' + this.getAttribute('data-legend-id') + '\"]')).forEach(function(element) {\n\t\t\t\tif(e.type == 'mouseover') element.classList.add('legend-hover');\n\t\t\t\telse element.classList.remove('legend-hover');\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction parseMonth(month){\n\t\tif(month > 11) month -= 12;\n\t\telse if(month < 0) month += 12;\n\t\treturn month;\n\t}\n\n\tfunction generateDates(year,month){\n\t\tvar monthElements = that.el.querySelectorAll('.d-table');\n\t\tvar ws = (weekStart !== null) ? weekStart : languages[lang].weekStart;\n\n\t\t[].slice.call(that.el.querySelectorAll('.d-table')).forEach(function(element, index) {\n\t\t\tvar days = new Date(year,month + index,0).getDate();\n\t\t\tvar daysLast = new Date(year,month + index - 1,0).getDate();\n\t\t\tvar startDay = new Date(year,month + index - 1,1).getDay();\n\t\t\tvar startDate = null;\n\t\t\tvar endDate = null;\n\t\t\tif(startDay - ws < 0){\n\t\t\t\tstartDay = 7 - ws;\n\t\t\t}else{\n\t\t\t\tstartDay -= ws;\n\t\t\t}\n\t\t\tvar monthText = languages[lang].monthNames[parseMonth(month - 1 + index)];\n\t\t\telement.setAttribute('data-month',monthText);\n\n\t\t\t[].slice.call(element.querySelectorAll('.d-table input')).forEach(function(inputEl,i) {\n\t\t\t\tvar labelEl = inputEl.nextSibling;\n\n\t\t\t\tinputEl.checked = false;\n\t\t\t\tinputEl.removeAttribute('disabled');\n\t\t\t\tlabelEl.removeAttribute('style');\n\t\t\t\tlabelEl.removeAttribute('data-legend-id');\n\t\t\t\tlabelEl.className = '';\n\n\t\t\t\tvar date = null;\n\t\t\t\tif(i < startDay){\n\t\t\t\t\tlabelEl.childNodes[0].innerHTML = daysLast - (startDay - i - 1);\n\t\t\t\t\tif(index == 0){\n\t\t\t\t\t\tdate = new Date(year,month + index - 2,daysLast - (startDay - i - 1));\n\t\t\t\t\t\tlabelEl.className = 'prev';\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdate = '';\n\t\t\t\t\t\tlabelEl.className = 'd-hidden';\n\t\t\t\t\t\tinputEl.setAttribute('disabled',true);\n\t\t\t\t\t}\n\t\t\t\t}else if(i < days + startDay){\n\t\t\t\t\tdate = new Date(year,month + index - 1,i - startDay+1);\n\t\t\t\t\tlabelEl.childNodes[0].innerHTML = i - startDay + 1;\n\t\t\t\t\tlabelEl.className = '';\n\t\t\t\t}else{\n\t\t\t\t\tlabelEl.childNodes[0].innerHTML = i - days - startDay + 1;\n\t\t\t\t\tif(index == monthElements.length-1){\n\t\t\t\t\t\tdate = new Date(year,month + index,i - days - startDay + 1);\n\t\t\t\t\t\tlabelEl.className = 'next';\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdate = '';\n\t\t\t\t\t\tlabelEl.className = 'd-hidden';\n\t\t\t\t\t\tinputEl.setAttribute('disabled',true);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(date instanceof Date){\n\t\t\t\t\tinputEl.setAttribute('data-date',date.toJSON());\n\n\t\t\t\t\tif(disabledDates.indexOf(date.getTime()) != -1 || disabledDays.indexOf(date.getDay()) != -1){\n\t\t\t\t\t\tinputEl.setAttribute('disabled',true);\n\t\t\t\t\t}\n\n\t\t\t\t\tif((minDate && date < minDate) || (maxDate && date > maxDate)){\n\t\t\t\t\t\tinputEl.setAttribute('disabled',true);\n\t\t\t\t\t\tlabelEl.className = 'd-hidden';\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif(today && date.getTime() == new Date().setHours(0,0,0,0)){\n\t\t\t\t\t\tlabelEl.classList.add('today');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlabelEl.classList.remove('today');\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif(tooltips[date.getTime()]){\n\t\t\t\t\t\tlabelEl.childNodes[0].setAttribute('data-tooltip',true);\n\t\t\t\t\t\tlabelEl.childNodes[1].innerHTML = tooltips[date.getTime()];\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlabelEl.childNodes[0].removeAttribute('data-tooltip');\n\t\t\t\t\t\tlabelEl.childNodes[1].innerHTML = '';\n\t\t\t\t\t}\n\n\t\t\t\t\tvar _highlights = highlight.filter(function(x){\n\t\t\t\t\t\tfor(var m = 0;m < x.dates.length;m++){\n\t\t\t\t\t\t\tif(date.getTime() >= x.dates[m].start.getTime() && date.getTime() <= x.dates[m].end.getTime()){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t});\n\n\t\t\t\t\tif(_highlights.length > 0){\n\t\t\t\t\t\tvar bgColor = '';\n\t\t\t\t\t\tvar legendIds = '';\n\n\t\t\t\t\t\tif(_highlights.length > 1){\n\t\t\t\t\t\t\tvar percent = Math.round(100 / _highlights.length);\n\t\t\t\t\t\t\tbgColor = 'background: linear-gradient(-45deg,';\n\t\t\t\t\t\t\tfor(var z = 0;z < _highlights.length;z++){\n\t\t\t\t\t\t\t\tlegendIds += highlight.indexOf(_highlights[z]);\n\t\t\t\t\t\t\t\tif(z !== _highlights.length -1){legendIds += ' ';}\n\t\t\t\t\t\t\t\tbgColor += _highlights[z].backgroundColor + ' ' + (percent*z) + '%';\n\t\t\t\t\t\t\t\tif(z != _highlights.length - 1){\n\t\t\t\t\t\t\t\t\tbgColor += ',';\n\t\t\t\t\t\t\t\t\tbgColor += _highlights[z].backgroundColor + ' ' + (percent*(z+1)) + '%,';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbgColor += ');';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbgColor = (_highlights[0].backgroundColor)?'background:'+ _highlights[0].backgroundColor + ';':'';\n\t\t\t\t\t\t\tlegendIds += highlight.indexOf(_highlights[0]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar Color = (_highlights[0].color)?'color:'+ _highlights[0].color + ';':'';\n\t\t\t\t\t\tlabelEl.setAttribute('style',bgColor + Color);\n\t\t\t\t\t\tlabelEl.setAttribute('data-legend-id',legendIds);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tgenerateLegends();\n\t};\n\n\tfunction setDate(){\n\t\tif(!that.el.tables.childNodes.length || !that.el.tables.childNodes[0].childNodes.length) return;\n\n\t\tresetCalendar();\n\n\t\tif(currentMonth > 12 || currentMonth < 1){\n\t\t\tif(currentMonth > 12){\n\t\t\t\tcurrentYear += 1;\n\t\t\t\tcurrentMonth -= 12;\n\t\t\t}else{\n\t\t\t\tcurrentYear -= 1;\n\t\t\t\tcurrentMonth += 12;\n\t\t\t}\n\t\t}\n\n\t\tif(maxDate && new Date(currentYear,currentMonth-1+months-1,1) >= new Date(maxDate).setDate(1)){\n\t\t\tcurrentYear = maxDate.getFullYear();\n\t\t\tcurrentMonth = maxDate.getMonth() + 1 - months + 1;\n\t\t\tthat.el.header.childNodes[2].setAttribute('style','visibility:hidden');\n\t\t}else{\n\t\t\tthat.el.header.childNodes[2].removeAttribute('style');\n\t\t}\n\t\tif(minDate && new Date(currentYear,currentMonth -1,1) <= new Date(minDate).setDate(1)){\n\t\t\tcurrentYear = minDate.getFullYear();\n\t\t\tcurrentMonth = minDate.getMonth() + 1;\n\t\t\tthat.el.header.childNodes[0].setAttribute('style','visibility:hidden');\n\t\t}else{\n\t\t\tthat.el.header.childNodes[0].removeAttribute('style');\n\t\t}\n\n\t\tfor(var c = 0;c < months;c++){\n\t\t\tvar index = currentMonth-1+c;\n\t\t\tif(index > 11){\n\t\t\t\tindex -= 12;\n\t\t\t}else if(index < 0){\n\t\t\t\tindex += 12;\n\t\t\t}\n\n\t\t\tthat.el.monthPicker.childNodes[index].classList.add('current');\n\t\t}\n\n\t\tgenerateDates(currentYear,currentMonth);\n\t\tgenerateYears();\n\t\tvar startmonth = languages[lang].monthNames[currentMonth-1];\n\t\tvar endmonth = '';\n\t\tif(months > 1){\n\t\t\tendmonth += ' - ';\n\t\t\tvar monthint = currentMonth-1+months-1;\n\t\t\tif(monthint > 11){\n\t\t\t\tmonthint -= 12;\n\t\t\t}else if(monthint < 0){\n\t\t\t\tmonthint += 12;\n\t\t\t}\n\t\t\tendmonth += languages[lang].monthNames[monthint];\n\t\t}\n\t\tvar yearname = (currentMonth-1+months-1 > 11)?currentYear.toString().substring(2,4) + '/' + (currentYear + 1).toString().substring(2,4):currentYear.toString().substring(2,4);\n\t\tthat.el.header.childNodes[1].childNodes[0].innerHTML = startmonth + endmonth;\n\t\tthat.el.header.childNodes[1].childNodes[1].innerHTML = yearname;\n\n\t\tthat.el.yearPicker.querySelector('[data-year=\"0\"]').classList.add('current');\n\t\tif(currentMonth-1+months-1>11){\n\t\t\tthat.el.yearPicker.querySelector('[data-year=\"1\"]').classList.add('current');\n\t\t}\n\n\t\trenderSelectedDates();\n\t\tif(onNavigation) onNavigation.call(that);\n\t};\n\n\tfunction renderSelectedDates(){\n\t\tselectedDates.forEach(function(date) {\n\t\t\tvar el = that.el.querySelector('[data-date=\"' + date.toJSON() + '\"]');\n\t\t\tif(el){\n\t\t\t\tel.checked = true;\n\t\t\t}\n\t\t});\n\n\t\tthat.el.tables.classList.remove('before');\n\t\tif(range && selectedDates.length > 1){\n\t\t\tvar currentDate = new Date(currentYear,currentMonth-1,1);\n\t\t\tvar sorted = selectedDates.sort(function(a,b){return a.getTime()-b.getTime()});\n\t\t\tvar first = that.el.querySelector('[data-date=\"'+ sorted[0].toJSON() +'\"]');\n\t\t\tif(!first && currentDate >= new Date(sorted[0].getFullYear(),sorted[0].getMonth(),1) && currentDate <= new Date(sorted[1].getFullYear(),sorted[1].getMonth(),1)){\n\t\t\t\tthat.el.tables.classList.add('before');\n\t\t\t}\n\t\t}\n\t};\n\n\tfunction resetCalendar(){\n\t\t[].slice.call(that.el.querySelectorAll('.d-table input')).forEach(function(inputEl) {\n\t\t\tinputEl.checked = false;\n\t\t});\n\n\t\t[].slice.call(that.el.monthPicker.querySelectorAll('.current')).forEach(function(monthPickEl) {\n\t\t\tmonthPickEl.classList.remove('current');\n\t\t});\n\n\t\t[].slice.call(that.el.yearPicker.querySelectorAll('.current')).forEach(function(yearPickEl) {\n\t\t\tyearPickEl.classList.remove('current');\n\t\t});\n\t};\n\n\tfunction nextMonth(){\n\t\tcurrentMonth += months;\n\t\tsetDate();\n\t};\n\n\tfunction prevMonth(){\n\t\tcurrentMonth -= months;\n\t\tsetDate();\n\t};\n\n\tfunction selectDate(date,ignoreOnSelect){\n\t\tdate = new Date(date);\n\t\tdate.setHours(0,0,0,0);\n\t\tvar el = that.el.querySelector('[data-date=\"'+ date.toJSON() +'\"]');\n\n\t\tif(range && el && el.checked) {\n\t\t\tel.classList.add('single');\n\t\t}\n\n\t\tif(el && !el.checked){\n\t\t\tel.checked = true;\n\t\t}\n\n\n\t\tselectedDates.push(date);\n\n\t\tif(onSelect && !ignoreOnSelect){\n\t\t\tonSelect.apply(date,[true]);\n\t\t}\n\t};\n\n\tfunction unselectDate(date,ignoreOnSelect){\n\t\tdate = new Date(date);\n\t\tdate.setHours(0,0,0,0);\n\t\tvar el = that.el.querySelector('[data-date=\"'+ date.toJSON() +'\"]');\n\t\tif(el){\n\t\t\tel.classList.remove('single');\n\t\t\tif(el.checked){el.checked = false;}\n\t\t}\n\n\t\tselectedDates = selectedDates.filter(function(x){return x.getTime() != date.getTime()});\n\n\t\tif(onSelect && !ignoreOnSelect){\n\t\t\tonSelect.call(date,false);\n\t\t}\n\t};\n\n\tfunction unselectAll(ignoreOnSelect){\n\t\tselectedDates.forEach(function(date) {\n\t\t\tunselectDate(date,ignoreOnSelect);\n\t\t});\n\t};\n\n\tfunction inputChange(e){\n\t\tvar input = this;\n\t\tvar date = new Date(input.getAttribute('data-date'));\n\t\tinput.classList.remove('single');\n\t\tif(locked){return;}\n\t\tif(range){\n\t\t\tthat.el.tables.classList.remove('before');\n\t\t}\n\t\tif(input.checked){\n\t\t\tif(maxSelections && selectedDates.length > maxSelections-1){\n\t\t\t\tvar length = selectedDates.length;\n\t\t\t\tfor(length; length > maxSelections-1; length --){\n\t\t\t\t\tunselectDate(selectedDates[0]);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif(range && selectedDates.length){\n\t\t\t\tvar first = that.el.querySelector('[data-date=\"'+ selectedDates[0].toJSON() +'\"]');\n\t\t\t\tif(!first && date > selectedDates[0]){\n\t\t\t\t\tthat.el.tables.classList.add('before');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tselectedDates.push(date);\n\n\t\t\tif(closeOnSelect){\n\t\t\t\tthat.hide();\n\t\t\t}\n\t\t}else{\n\t\t\tif(range && selectedDates.length == 1 && selectedDates[0].getTime() == date.getTime()){\n\t\t\t\tselectDate(date);\n\t\t\t\tinput.classList.add('single');\n\t\t\t}else{\n\t\t\t\tselectedDates = selectedDates.filter(function(x){return x.getTime() != date.getTime()})\n\t\t\t}\n\t\t}\n\n\t\tif(onSelect){\n\t\t\tonSelect.call(date,input.checked);\n\t\t}\n\t};\n\n\tfunction setRange(val){\n\t\tif(val){\n\t\t\trange = true;\n\t\t\tthat.el.tables.classList.add('range');\n\t\t}else{\n\t\t\trange = false;\n\t\t\tthat.el.tables.classList.remove('range');\n\t\t}\n\t};\n\n\tfunction show(properties){\n\t\tif(!that.inline && that.container === document.body){document.body.classList.add('d-noscroll');}\n\t\tsetArgs(properties);\n\t\tvar handler = function(){\n\t\t\tthat.el.classList.remove('d-show');\n\t\t\tthat.el.calendar.removeEventListener(whichAnimationEvent(),handler);\n\t\t};\n\t\tthat.el.calendar.addEventListener(whichAnimationEvent(),handler);\n\t\tthat.el.classList.add('d-show');\n\t\tcontainer.appendChild(that.el);\n\t\topened = true;\n\t\tif(startDate){\n\t\t\tcurrentMonth = startDate.getMonth() + 1;\n\t\t\tcurrentYear = startDate.getFullYear();\n\t\t}\n\t\tsetDate();\n\t};\n\n\tfunction hide(){\n\t\tdocument.body.classList.remove('d-noscroll');\n\t\tvar handler = function(){\n\t\t\tthat.el.parentNode.removeChild(that.el);\n\t\t\topened = false;\n\t\t\tthat.el.classList.remove('d-hide');\n\t\t\tif(typeof onClose == 'function'){\n\t\t\t\tonClose.apply(that);\n\t\t\t}\n\t\t\tthat.el.removeEventListener(whichAnimationEvent(),handler);\n\t\t}\n\t\tthat.el.addEventListener(whichAnimationEvent(),handler);\n\t\tthat.el.classList.add('d-hide');\n\t};\n\n\tfunction bindEvents(){\n\t\tthat.el.header.childNodes[0].addEventListener(eventName,prevMonth);\n\t\tthat.el.header.childNodes[2].addEventListener(eventName,nextMonth);\n\t\tthat.el.header.childNodes[1].childNodes[0].addEventListener(eventName,function(){\n\t\t\tif(that.el.monthPicker.classList.contains('d-show')){\n\t\t\t\tthat.el.monthPicker.classList.remove('d-show');\n\t\t\t}else{\n\t\t\t\tthat.el.monthPicker.classList.add('d-show');\n\t\t\t}\n\t\t\tthat.el.yearPicker.classList.remove('d-show');\n\t\t});\n\t\tthat.el.header.childNodes[1].childNodes[1].addEventListener(eventName,function(){\n\t\t\tgenerateYears();\n\t\t\tif(that.el.yearPicker.classList.contains('d-show')){\n\t\t\t\tthat.el.yearPicker.classList.remove('d-show');\n\t\t\t}else{\n\t\t\t\tthat.el.yearPicker.classList.add('d-show');\n\t\t\t}\n\t\t\tthat.el.monthPicker.classList.remove('d-show');\n\t\t});\n\t\tthat.el.button.addEventListener(eventName,hide);\n\n\t\tthat.el.overlay.addEventListener(eventName,function(){\n\t\t\tif(closeOnClick){\n\t\t\t\tthat.hide();\n\t\t\t}\n\t\t});\n\n\t\t[].slice.call(that.el.monthPicker.childNodes).forEach(function(monthPicker) {\n\t\t\tmonthPicker.addEventListener(eventName,function(){\n\t\t\t\tcurrentMonth = parseInt(this.getAttribute('data-month'));\n\t\t\t\tsetDate();\n\t\t\t\tthat.el.monthPicker.classList.remove('d-show');\n\t\t\t});\n\t\t});\n\n\t\t[].slice.call(that.el.yearPicker.childNodes).forEach(function(yearPicker) {\n\t\t\tyearPicker.addEventListener(eventName,function(){\n\t\t\t\tcurrentYear += parseInt(this.getAttribute('data-year'));\n\t\t\t\tsetDate();\n\t\t\t\tthat.el.yearPicker.classList.remove('d-show');\n\t\t\t});\n\t\t})\n\n\t\tvar startX = 0;\n\t\tvar distance = 0;\n\t\tthat.el.calendar.addEventListener('touchstart',function(e){\n\t\t\tstartX = e.changedTouches[0].clientX || e.originalEvent.changedTouches[0].clientX;\n\t\t\t//e.preventDefault();\n\t\t});\n\n\t\tthat.el.calendar.addEventListener('touchmove',function(e){\n\t\t\tdistance = e.changedTouches[0].clientX - startX || e.originalEvent.changedTouches[0].clientX - startX;\n\t\t\te.preventDefault();\n\t\t});\n\n\t\tthat.el.calendar.addEventListener('touchend',function(e){\n\t\t\tif(distance > 50){\n\t\t\t\tprevMonth();\n\t\t\t}else if(distance < -50){\n\t\t\t\tnextMonth();\n\t\t\t}\n\t\t\tdistance = 0;\n\t\t});\n\t};\n\n\tfunction setArgs(x){\n\t\tfor(var key in x){\n\t\t\tif(key in that){\n\t\t\t\tthat[key] = x[key];\n\t\t\t}\n\t\t};\n\t};\n\n\tfunction init(){\n\t\tthat.el = document.createElement('div');\n\t\tthat.el.id = 'Datepickk';\n\t\tthat.el.classList.add(getBrowserVersion().type);\n\t\tthat.el.innerHTML = template;\n\t\tthat.el.calendar = that.el.childNodes[1];\n\t\tthat.el.titleBox = that.el.childNodes[0];\n\t\tthat.el.button = that.el.childNodes[3];\n\t\tthat.el.header = that.el.calendar.childNodes[0];\n\t\tthat.el.monthPicker = that.el.calendar.childNodes[1];\n\t\tthat.el.yearPicker = that.el.calendar.childNodes[2];\n\t\tthat.el.tables = that.el.calendar.childNodes[4];\n\t\tthat.el.days = that.el.calendar.childNodes[3];\n\t\tthat.el.overlay = that.el.childNodes[4];\n\t\tthat.el.legend = that.el.childNodes[2];\n\n\t\tsetArgs(args);\n\n\t\tgenerateInputs();\n\t\tgenerateDaynames();\n\t\tbindEvents();\n\n\t\tif(inline){\n\t\t\tshow();\n\t\t}\n\t}\n\n\tthat.show = show;\n\tthat.hide = hide;\n\tthat.selectDate = selectDate;\n\tthat.unselectAll = unselectAll;\n\tthat.unselectDate = unselectDate;\n\n\tfunction currentDateGetter(){\n\t\treturn new Date(currentYear,currentMonth-1,1);\n\t}\n\tfunction currentDateSetter(x){\n\t\tx = new Date(x);\n\t\tcurrentMonth = x.getMonth() + 1;\n\t\tcurrentYear = x.getFullYear();\n\t\tsetDate();\n\t}\n\n\tObject.defineProperties(that,{\n\t\t\"selectedDates\": {\n\t\t\tget: function () {\n\t\t\t\treturn selectedDates.sort(function(a,b){return a.getTime() - b.getTime();});\n\t\t\t}\n\t\t},\n\t\t\"range\": {\n\t\t\tget: function() {\n\t\t\t\treturn range;\n\t\t\t},\n\t\t\tset: function(x) {\n\t\t\t\tsetRange(x);\n\t\t\t\tif(x){maxSelections = 2;}\n\t\t\t}\n\t\t},\n\t\t\"button\": {\n\t\t\tget: function() {\n\t\t\t\treturn button;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(typeof x == 'string'){\n\t\t\t\t\tbutton = x;\n\t\t\t\t}else{\n\t\t\t\t\tbutton = null;\n\t\t\t\t}\n\t\t\t\tthat.el.button.innerHTML = (button)?button:'';\n\t\t\t}\n\t\t},\n\t\t\"title\": {\n\t\t\tget: function(){\n\t\t\t\treturn title;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(typeof x == 'string'){\n\t\t\t\t\ttitle = x;\n\t\t\t\t}else{\n\t\t\t\t\ttitle = null;\n\t\t\t\t}\n\t\t\t\tthat.el.titleBox.innerText = (title)?title:'';\n\t\t\t}\n\t\t},\n\t\t\"lang\": {\n\t\t\tget: function(){\n\t\t\t\treturn lang;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x in languages){\n\t\t\t\t\tlang = x;\n\t\t\t\t\tgenerateDaynames();\n\t\t\t\t\tsetDate();\n\t\t\t\t}else{\n\t\t\t\t\tconsole.error('Language not found');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"weekStart\": {\n\t\t\tget: function(){\n\t\t\t\treturn (weekStart !== null) ? weekStart : languages[lang].weekStart;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(typeof x == 'number' && x > -1 && x < 7){\n\t\t\t\t\tweekStart = x;\n\t\t\t\t\tgenerateDaynames();\n\t\t\t\t\tsetDate();\n\t\t\t\t}else{\n\t\t\t\t\tconsole.error('weekStart must be a number between 0 and 6');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"months\": {\n\t\t\tget: function(){\n\t\t\t\treturn months;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(typeof x == 'number' && x > 0){\n\t\t\t\t\tmonths = x;\n\t\t\t\t\tgenerateDaynames();\n\t\t\t\t\tgenerateInputs();\n\t\t\t\t\tsetDate();\n\n\t\t\t\t\tif(months == 1){\n\t\t\t\t\t\tthat.el.classList.remove('multi');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tthat.el.classList.add('multi');\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tconsole.error('months must be a number > 0');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"isOpen\": {\n\t\t\tget: function(){\n\t\t\t\treturn opened;\n\t\t\t}\n\t\t},\n\t\t\"closeOnSelect\": {\n\t\t\tget: function(){\n\t\t\t\treturn closeOnSelect;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x){\n\t\t\t\t\tcloseOnSelect = true;\n\t\t\t\t}else{\n\t\t\t\t\tcloseOnSelect = false;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"disabledDays\": {\n\t\t\tget: function(){\n\t\t\t\treturn disabledDays;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x instanceof Array){\n\t\t\t\t\tfor(var i = 0;i < x.length;i++){\n\t\t\t\t\t\tif(typeof x[i] == 'number'){\n\t\t\t\t\t\t\tdisabledDays.push(x[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else if(typeof x == 'number'){\n\t\t\t\t\tdisabledDays = [x];\n\t\t\t\t}else if(!x){\n\t\t\t\t\tdisabledDays = [];\n\t\t\t\t}\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"disabledDates\": {\n\t\t\tget: function(){\n\t\t\t\treturn disabledDates.map(function(x){return new Date(x);});\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x instanceof Array){\n\t\t\t\t\tx.forEach(function(date) {\n\t\t\t\t\t\tif(date instanceof Date){\n\t\t\t\t\t\t\tdisabledDates.push(new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}else if(x instanceof Date){\n\t\t\t\t\tdisabledDates = [new Date(x.getFullYear(),x.getMonth(),x.getDate()).getTime()];\n\t\t\t\t}else if(!x){\n\t\t\t\t\tdisabledDates = [];\n\t\t\t\t}\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"highlight\": {\n\t\t\tget: function(){\n\t\t\t\treturn highlight;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x instanceof Array){\n\t\t\t\t\tx.forEach(function(hl) {\n\t\t\t\t\t\tif(hl instanceof Object){\n\t\t\t\t\t\t\tvar highlightObj = {};\n\t\t\t\t\t\t\t\thighlightObj.dates = [];\n\n\t\t\t\t\t\t\tif('start' in hl){\n\t\t\t\t\t\t\t\thighlightObj.dates.push({\n\t\t\t\t\t\t\t\t\tstart: new Date(hl.start.getFullYear(),hl.start.getMonth(),hl.start.getDate()),\n\t\t\t\t\t\t\t\t\tend: ('end' in hl)?new Date(hl.end.getFullYear(),hl.end.getMonth(),hl.end.getDate()):new Date(hl.start.getFullYear(),hl.start.getMonth(),hl.start.getDate())\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}else if('dates' in hl && hl.dates instanceof Array){\n\t\t\t\t\t\t\t\thl.dates.forEach(function(hlDate) {\n\t\t\t\t\t\t\t\t\thighlightObj.dates.push({\n\t\t\t\t\t\t\t\t\t\tstart: new Date(hlDate.start.getFullYear(),hlDate.start.getMonth(),hlDate.start.getDate()),\n\t\t\t\t\t\t\t\t\t\tend: ('end' in hlDate)?new Date(hlDate.end.getFullYear(),hlDate.end.getMonth(),hlDate.end.getDate()):new Date(hlDate.start.getFullYear(),hlDate.start.getMonth(),hlDate.start.getDate())\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\thighlightObj.color \t\t\t\t= hl.color;\n\t\t\t\t\t\t\thighlightObj.backgroundColor \t= hl.backgroundColor;\n\t\t\t\t\t\t\thighlightObj.legend\t\t\t\t= ('legend' in hl)?hl.legend:null;\n\n\t\t\t\t\t\t\thighlight.push(highlightObj);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}else if(x instanceof Object){\n\t\t\t\t\tvar highlightObj = {};\n\t\t\t\t\thighlightObj.dates = [];\n\n\t\t\t\t\tif('start' in x){\n\t\t\t\t\t\thighlightObj.dates.push({\n\t\t\t\t\t\t\tstart: new Date(x.start.getFullYear(),x.start.getMonth(),x.start.getDate()),\n\t\t\t\t\t\t\tend: ('end' in x)?new Date(x.end.getFullYear(),x.end.getMonth(),x.end.getDate()):new Date(x.start.getFullYear(),x.start.getMonth(),x.start.getDate())\n\t\t\t\t\t\t});\n\t\t\t\t\t}else if('dates' in x && x.dates instanceof Array){\n\t\t\t\t\t\tx.dates.forEach(function(hlDate) {\n\t\t\t\t\t\t\thighlightObj.dates.push({\n\t\t\t\t\t\t\t\tstart: new Date(hlDate.start.getFullYear(),hlDate.start.getMonth(),hlDate.start.getDate()),\n\t\t\t\t\t\t\t\tend: ('end' in hlDate)?new Date(hlDate.end.getFullYear(),hlDate.end.getMonth(),hlDate.end.getDate()):new Date(hlDate.start.getFullYear(),hlDate.start.getMonth(),hlDate.start.getDate())\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\thighlightObj.color \t\t\t\t= x.color;\n\t\t\t\t\thighlightObj.backgroundColor \t= x.backgroundColor;\n\t\t\t\t\thighlightObj.legend\t\t\t\t= ('legend' in x)?x.legend:null;\n\n\t\t\t\t\thighlight.push(highlightObj);\n\t\t\t\t}else if(!x){\n\t\t\t\t\thighlight = [];\n\t\t\t\t}\n\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"onClose\": {\n\t\t\tset: function(callback){\n\t\t\t\tonClose = callback;\n\t\t\t}\n\t\t},\n\t\t\"onSelect\": {\n\t\t\tset: function(callback){\n\t\t\t\tonSelect = callback;\n\t\t\t}\n\t\t},\n\t\t\"today\": {\n\t\t\tget: function(){\n\t\t\t\treturn today;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x){\n\t\t\t\t\ttoday = true;\n\t\t\t\t}else{\n\t\t\t\t\ttoday = false;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"daynames\": {\n\t\t\tget: function(){\n\t\t\t\treturn daynames;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x){\n\t\t\t\t\tdaynames = true;\n\t\t\t\t}else{\n\t\t\t\t\tdaynames = false;\n\t\t\t\t}\n\t\t\t\tgenerateDaynames();\n\t\t\t}\n\t\t},\n\t\t\"fullscreen\": {\n\t\t\tget: function(){\n\t\t\t\treturn that.el.classList.contains('fullscreen');\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x){\n\t\t\t\t\tthat.el.classList.add('fullscreen');\n\t\t\t\t}else{\n\t\t\t\t\tthat.el.classList.remove('fullscreen');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"locked\": {\n\t\t\tget: function(){\n\t\t\t\treturn locked;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x){\n\t\t\t\t\tlocked = true;\n\t\t\t\t\tthat.el.tables.classList.add('locked');\n\t\t\t\t}else{\n\t\t\t\t\tlocked = false;\n\t\t\t\t\tthat.el.tables.classList.remove('locked');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"maxSelections\": {\n\t\t\tget: function(){\n\t\t\t\treturn maxSelections;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(typeof x == 'number' && !range){\n\t\t\t\t\tmaxSelections = x;\n\t\t\t\t}else{\n\t\t\t\t\tif(range){\n\t\t\t\t\t\tmaxSelections = 2;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmaxSelections = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"onConfirm\": {\n\t\t\tset: function(callback){\n\t\t\t\tif(typeof callback == 'function'){\n\t\t\t\t\tonConfirm = callback.bind(that);\n\t\t\t\t\tthat.el.button.addEventListener(eventName,onConfirm);\n\t\t\t\t}else if(!callback){\n\t\t\t\t\tthat.el.button.removeEventListener(eventName,onConfirm);\n\t\t\t\t\tonConfirm = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"onNavigation\": {\n\t\t\tset: function(callback){\n\t\t\t\tif(typeof callback == 'function'){\n\t\t\t\t\tonNavigation = callback.bind(that);\n\t\t\t\t}else if(!callback){\n\t\t\t\t\tonNavigation = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"closeOnClick\": {\n\t\t\tget: function(){\n\t\t\t\treturn closeOnClick;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x){\n\t\t\t\t\tcloseOnClick = true;\n\t\t\t\t}else{\n\t\t\t\t\tcloseOnClick = false;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"tooltips\": {\n\t\t\tget: function(){\n\t\t\t\tvar ret = [];\n\t\t\t\tfor(key in tooltips){\n\t\t\t\t\tret.push({\n\t\t\t\t\t\tdate: new Date(parseInt(key)),\n\t\t\t\t\t\ttext: tooltips[key]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn ret;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x instanceof Array){\n\t\t\t\t\tx.forEach(function(item) {\n\t\t\t\t\t\tif(item.date && item.text && item.date instanceof Date){\n\t\t\t\t\t\t\ttooltips[new Date(item.date.getFullYear(),item.date.getMonth(),item.date.getDate()).getTime()] = item.text;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}else if(x instanceof Object){\n\t\t\t\t\tif(x.date && x.text && x.date instanceof Date){\n\t\t\t\t\t\ttooltips[new Date(x.date.getFullYear(),x.date.getMonth(),x.date.getDate()).getTime()] = x.text;\n\t\t\t\t\t}\n\t\t\t\t}else if(!x){\n\t\t\t\t\ttooltips = [];\n\t\t\t\t}\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"currentDate\": {\n\t\t\tget: currentDateGetter,\n\t\t\tset: currentDateSetter\n\t\t},\n\t\t\"setDate\": {\n\t\t\tset: currentDateSetter\n\t\t},\n\t\t\"startDate\": {\n\t\t\tget: function(){\n\t\t\t\treturn startDate;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x){\n\t\t\t\t\tstartDate = new Date(x);\n\t\t\t\t}else{\n\t\t\t\t\tstartDate = null;\n\t\t\t\t\tcurrentYear = new Date().getFullYear();\n\t\t\t\t\tcurrentMonth = new Date().getMonth() + 1;\n\t\t\t\t}\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"minDate\": {\n\t\t\tget: function(){\n\t\t\t\treturn minDate;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tminDate = (x) ? new Date(x) : null ;\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"maxDate\": {\n\t\t\tget: function(){\n\t\t\t\treturn maxDate;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tmaxDate = (x) ? new Date(x) : null ;\n\t\t\t\tsetDate();\n\t\t\t}\n\t\t},\n\t\t\"container\": {\n\t\t\tget: function(){\n\t\t\t\treturn container;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x instanceof String){\n\t\t\t\t\tvar y = document.querySelector(x);\n\t\t\t\t\tif(y){\n\t\t\t\t\t\tcontainer = y;\n\t\t\t\t\t\tif(container != document.body){\n\t\t\t\t\t\t\tthat.el.classList.add('wrapped');\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tthat.el.classList.remove('wrapped');\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tconsole.error(\"Container doesn't exist\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x instanceof HTMLElement){\n\t\t\t\t\tcontainer = x;\n\t\t\t\t\tif(container != document.body){\n\t\t\t\t\t\tthat.el.classList.add('wrapped');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tthat.el.classList.remove('wrapped');\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tconsole.error(\"Invalid type\");\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"inline\": {\n\t\t\tget: function(){\n\t\t\t\treturn inline;\n\t\t\t},\n\t\t\tset: function(x){\n\t\t\t\tif(x){\n\t\t\t\t\tinline = true;\n\t\t\t\t\tthat.el.classList.add('inline');\n\t\t\t\t}else{\n\t\t\t\t\tinline = false;\n\t\t\t\t\tthat.el.classList.remove('inline');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\n\t});\n\n\tinit();\n\tsetDate();\n\n\treturn Object.freeze(that);\n};\n\nfunction whichAnimationEvent(){\n    var t;\n    var el = document.createElement('fakeelement');\n    var transitions = {\n      'animation':'animationend',\n      'OAnimation':'oanimationend',\n      'MozAnimation':'animationend',\n      'WebkitAnimation':'webkitAnimationEnd',\n      '':'MSAnimationEnd'\n    };\n\n    for(t in transitions){\n        if( el.style[t] !== undefined ){\n            return transitions[t];\n        }\n    }\n}\n\nvar template = \t'<div class=\"d-title\"></div>' +\n\t\t\t\t'<div class=\"d-calendar\">' +\n\t\t\t\t\t'<div class=\"d-header\">' +\n\t\t\t\t\t\t'<i id=\"d-previous\"></i>' +\n\t\t\t\t\t\t'<p><span class=\"d-month\"></span><span class=\"d-year\"></span></p>' +\n\t\t\t\t\t\t'<i id=\"d-next\"></i>' +\n\t\t\t\t\t'</div>' +\n\t\t\t\t\t'<div class=\"d-month-picker\">' +\n\t\t\t\t\t\t'<div data-month=\"1\">1</div>' +\n\t\t\t\t\t\t'<div data-month=\"2\">2</div>' +\n\t\t\t\t\t\t'<div data-month=\"3\">3</div>' +\n\t\t\t\t\t\t'<div data-month=\"4\">4</div>' +\n\t\t\t\t\t\t'<div data-month=\"5\">5</div>' +\n\t\t\t\t\t\t'<div data-month=\"6\">6</div>' +\n\t\t\t\t\t\t'<div data-month=\"7\">7</div>' +\n\t\t\t\t\t\t'<div data-month=\"8\">8</div>' +\n\t\t\t\t\t\t'<div data-month=\"9\">9</div>' +\n\t\t\t\t\t\t'<div data-month=\"10\">10</div>' +\n\t\t\t\t\t\t'<div data-month=\"11\">11</div>' +\n\t\t\t\t\t\t'<div data-month=\"12\">12</div>' +\n\t\t\t\t\t'</div>' +\n\t\t\t\t\t'<div class=\"d-year-picker\">' +\n\t\t\t\t\t\t'<div data-year=\"-5\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"-4\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"-3\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"-2\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"-1\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"0\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"1\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"2\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"3\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"4\"></div>' +\n\t\t\t\t\t\t'<div data-year=\"5\"></div>' +\n\t\t\t\t\t'</div>' +\n\t\t\t\t\t'<div class=\"d-weekdays\"></div>' +\n\t\t\t\t\t'<div class=\"d-tables\"></div>' +\n\t\t\t\t'</div>' +\n\t\t\t\t'<div class=\"d-legend\"></div>' +\n\t\t\t\t'<button class=\"d-confirm\"></button>' +\n\t\t\t\t'<div class=\"d-overlay\"></div>';\n\nvar getBrowserVersion =  function(){\n\tvar browser = {\n\t\ttype: null,\n\t\tversion: null\n\t}\n\n\tvar ua= navigator.userAgent, tem, ios,\n    M= ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\\/))\\/?\\s*(\\d+)/i) || [];\n    ios = ua.match(/(iphone|ipad)\\s+OS\\s+([\\d+_]+\\d+)/i) || [];\n    if(/trident/i.test(M[1])){\n        tem=  /\\brv[ :]+(\\d+)/g.exec(ua) || [];\n        browser.type = 'MSIE';\n        browser.version = parseInt(tem[1]);\n        return browser;\n    }\n    if(M[1]=== 'Chrome'){\n        tem= ua.match(/\\bOPR\\/(\\d+)/)\n        if(tem!= null) return 'Opera '+tem[1];\n    }\n    if(ios[1]){\n    \treturn browser = {\n    \t\ttype: 'iOS',\n    \t\tversion: ios[2]\n    \t};\n    }\n    M= M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?'];\n    if((tem= ua.match(/version\\/(\\d+)/i))!= null) M.splice(1, 1, tem[1]);\n    browser.type = M[0];\n    browser.version = parseInt(M[1]);\n\n    return browser;\n}\n\nexport default Datepickk\n"
  },
  {
    "path": "tool/datepickk-master/datepickk-master/webpack.config.js",
    "content": "const path = require('path');\nconst CleanWebpackPlugin = require('clean-webpack-plugin')\nconst ExtractTextPlugin = require(\"extract-text-webpack-plugin\");\nconst MinifyPlugin = require('babel-minify-webpack-plugin');\nconst OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');\n\nmodule.exports = {\n  entry: {\n    'datepickk': './src/js/datepickk.js',\n    'datepickk.min': './src/js/datepickk.js',\n    'doc': './docs/doc.less'\n  },\n  //devtool: 'source-map',\n  output: {\n    filename: '[name].js',\n    path: path.resolve(__dirname, 'dist'),\n    library: \"Datepickk\",\n    libraryExport: 'default',\n    libraryTarget: \"umd\"\n  },\n  module: {\n    rules: [{\n      test: /\\.js$/,\n      exclude: /(node_modules|bower_components)/,\n      use: {\n        loader: 'babel-loader'\n      }\n    },{\n      test: /\\.less$/,\n      use: ExtractTextPlugin.extract({\n        fallback: \"style-loader\",\n        use: ['css-loader','less-loader']\n      })\n    }]\n  },\n  plugins: [\n    new CleanWebpackPlugin(['dist']),\n    new ExtractTextPlugin({\n      filename:  (getPath) => {\n        return getPath('[name].css');\n      }\n    }),\n    new MinifyPlugin({}, {\n      test: /\\.min\\.js$/,\n    }),\n    new OptimizeCssAssetsPlugin({\n      assetNameRegExp: /\\.min\\.css$/,\n      cssProcessorOptions: { discardComments: { removeAll: true } }\n    })\n  ]\n};\n"
  },
  {
    "path": "tool/pdf/FAQ.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>FAQ</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"fpdf.css\">\n<style type=\"text/css\">\nul {list-style-type:none; margin:0; padding:0}\nul#answers li {margin-top:1.8em}\n.question {font-weight:bold; color:#900000}\n</style>\n</head>\n<body>\n<h1>FAQ</h1>\n<ul>\n<li><b>1.</b> <a href='#q1'>What's exactly the license of FPDF? Are there any usage restrictions?</a></li>\n<li><b>2.</b> <a href='#q2'>I get the following error when I try to generate a PDF: Some data has already been output, can't send PDF file</a></li>\n<li><b>3.</b> <a href='#q3'>Accented letters are replaced with some strange characters like é.</a></li>\n<li><b>4.</b> <a href='#q4'>I try to display the Euro symbol but it doesn't work.</a></li>\n<li><b>5.</b> <a href='#q5'>I try to display a variable in the Header method but nothing prints.</a></li>\n<li><b>6.</b> <a href='#q6'>I have defined the Header and Footer methods in my PDF class but nothing shows.</a></li>\n<li><b>7.</b> <a href='#q7'>I can't make line breaks work. I put \\n in the string printed by MultiCell but it doesn't work.</a></li>\n<li><b>8.</b> <a href='#q8'>I use jQuery to generate the PDF but it doesn't show.</a></li>\n<li><b>9.</b> <a href='#q9'>I draw a frame with very precise dimensions, but when printed I notice some differences.</a></li>\n<li><b>10.</b> <a href='#q10'>I'd like to use the whole surface of the page, but when printed I always have some margins. How can I get rid of them?</a></li>\n<li><b>11.</b> <a href='#q11'>How can I put a background in my PDF?</a></li>\n<li><b>12.</b> <a href='#q12'>How can I set a specific header or footer on the first page?</a></li>\n<li><b>13.</b> <a href='#q13'>I'd like to use extensions provided by different scripts. How can I combine them?</a></li>\n<li><b>14.</b> <a href='#q14'>How can I open the PDF in a new tab?</a></li>\n<li><b>15.</b> <a href='#q15'>How can I send the PDF by email?</a></li>\n<li><b>16.</b> <a href='#q16'>What's the limit of the file sizes I can generate with FPDF?</a></li>\n<li><b>17.</b> <a href='#q17'>Can I modify a PDF with FPDF?</a></li>\n<li><b>18.</b> <a href='#q18'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</a></li>\n<li><b>19.</b> <a href='#q19'>Can I convert an HTML page to PDF with FPDF?</a></li>\n<li><b>20.</b> <a href='#q20'>Can I concatenate PDF files with FPDF?</a></li>\n</ul>\n\n<ul id='answers'>\n<li id='q1'>\n<p><b>1.</b> <span class='question'>What's exactly the license of FPDF? Are there any usage restrictions?</span></p>\nFPDF is released under a permissive license: there is no usage restriction. You may embed it\nfreely in your application (commercial or not), with or without modifications.\n</li>\n\n<li id='q2'>\n<p><b>2.</b> <span class='question'>I get the following error when I try to generate a PDF: Some data has already been output, can't send PDF file</span></p>\nYou must send nothing to the browser except the PDF itself: no HTML, no space, no carriage return. A common\ncase is having extra blank at the end of an included script file.<br>\nIf you can't figure out where the problem comes from, this other message appearing just before can help you:<br>\n<br>\n<b>Warning:</b> Cannot modify header information - headers already sent by (output started at script.php:X)<br>\n<br>\nIt means that script.php outputs something at line X. Go to this line and fix it.\nIn case the message doesn't show, first check that you didn't disable warnings, then add this at the very\nbeginning of your script:\n<div class=\"doc-source\">\n<pre><code>ob_end_clean();</code></pre>\n</div>\nIf you still don't see it, disable zlib.output_compression in your php.ini and it should appear.\n</li>\n\n<li id='q3'>\n<p><b>3.</b> <span class='question'>Accented letters are replaced with some strange characters like é.</span></p>\nDon't use UTF-8 with the standard fonts; they expect text encoded in ISO-8859-1 or windows-1252.\nYou can use utf8_decode() to perform a conversion to ISO-8859-1:\n<div class=\"doc-source\">\n<pre><code>$str = utf8_decode($str);</code></pre>\n</div>\nBut some characters such as Euro won't be translated correctly. If the iconv extension is available, the\nright way to do it is the following:\n<div class=\"doc-source\">\n<pre><code>$str = iconv('UTF-8', 'windows-1252', $str);</code></pre>\n</div>\nIn case you need characters outside windows-1252, take a look at tutorial #7 or\n<a href=\"http://www.fpdf.org/?go=script&amp;id=92\" target=\"_blank\">tFPDF</a>.\n</li>\n\n<li id='q4'>\n<p><b>4.</b> <span class='question'>I try to display the Euro symbol but it doesn't work.</span></p>\nThe standard fonts have the Euro character at position 128. You can define a constant like this\nfor convenience:\n<div class=\"doc-source\">\n<pre><code>define('EURO', chr(128));</code></pre>\n</div>\n</li>\n\n<li id='q5'>\n<p><b>5.</b> <span class='question'>I try to display a variable in the Header method but nothing prints.</span></p>\nYou have to use the <code>global</code> keyword to access global variables, for example:\n<div class=\"doc-source\">\n<pre><code>function Header()\n{\n    global $title;\n\n    $this-&gt;SetFont('Arial', 'B', 15);\n    $this-&gt;Cell(0, 10, $title, 1, 1, 'C');\n}\n\n$title = 'My title';</code></pre>\n</div>\nAlternatively, you can use an object property:\n<div class=\"doc-source\">\n<pre><code>function Header()\n{\n    $this-&gt;SetFont('Arial', 'B', 15);\n    $this-&gt;Cell(0, 10, $this-&gt;title, 1, 1, 'C');\n}\n\n$pdf-&gt;title = 'My title';</code></pre>\n</div>\n</li>\n\n<li id='q6'>\n<p><b>6.</b> <span class='question'>I have defined the Header and Footer methods in my PDF class but nothing shows.</span></p>\nYou have to create an object from the PDF class, not FPDF:\n<div class=\"doc-source\">\n<pre><code>$pdf = new PDF();</code></pre>\n</div>\n</li>\n\n<li id='q7'>\n<p><b>7.</b> <span class='question'>I can't make line breaks work. I put \\n in the string printed by MultiCell but it doesn't work.</span></p>\nYou have to enclose your string with double quotes, not single ones.\n</li>\n\n<li id='q8'>\n<p><b>8.</b> <span class='question'>I use jQuery to generate the PDF but it doesn't show.</span></p>\nDon't use an AJAX request to retrieve the PDF.\n</li>\n\n<li id='q9'>\n<p><b>9.</b> <span class='question'>I draw a frame with very precise dimensions, but when printed I notice some differences.</span></p>\nTo respect dimensions, select \"None\" for the Page Scaling setting instead of \"Shrink to Printable Area\" in the print dialog box.\n</li>\n\n<li id='q10'>\n<p><b>10.</b> <span class='question'>I'd like to use the whole surface of the page, but when printed I always have some margins. How can I get rid of them?</span></p>\nPrinters have physical margins (different depending on the models); it is therefore impossible to remove\nthem and print on the whole surface of the paper.\n</li>\n\n<li id='q11'>\n<p><b>11.</b> <span class='question'>How can I put a background in my PDF?</span></p>\nFor a picture, call Image() in the Header() method, before any other output. To set a background color, use Rect().\n</li>\n\n<li id='q12'>\n<p><b>12.</b> <span class='question'>How can I set a specific header or footer on the first page?</span></p>\nJust test the page number:\n<div class=\"doc-source\">\n<pre><code>function Header()\n{\n    if($this-&gt;PageNo()==1)\n    {\n        //First page\n        ...\n    }\n    else\n    {\n        //Other pages\n        ...\n    }\n}</code></pre>\n</div>\n</li>\n\n<li id='q13'>\n<p><b>13.</b> <span class='question'>I'd like to use extensions provided by different scripts. How can I combine them?</span></p>\nUse an inheritance chain. If you have two classes, say A in a.php:\n<div class=\"doc-source\">\n<pre><code>require('fpdf.php');\n\nclass A extends FPDF\n{\n...\n}</code></pre>\n</div>\nand B in b.php:\n<div class=\"doc-source\">\n<pre><code>require('fpdf.php');\n\nclass B extends FPDF\n{\n...\n}</code></pre>\n</div>\nthen make B extend A:\n<div class=\"doc-source\">\n<pre><code>require('a.php');\n\nclass B extends A\n{\n...\n}</code></pre>\n</div>\nand make your own class extend B:\n<div class=\"doc-source\">\n<pre><code>require('b.php');\n\nclass PDF extends B\n{\n...\n}\n\n$pdf = new PDF();</code></pre>\n</div>\n</li>\n\n<li id='q14'>\n<p><b>14.</b> <span class='question'>How can I open the PDF in a new tab?</span></p>\nJust do the same as you would for an HTML page or anything else: add a target=\"_blank\" to your link or form.\n</li>\n\n<li id='q15'>\n<p><b>15.</b> <span class='question'>How can I send the PDF by email?</span></p>\nAs for any other file, but an easy way is to use <a href=\"http://phpmailer.codeworxtech.com\" target=\"_blank\">PHPMailer</a> and\nits in-memory attachment:\n<div class=\"doc-source\">\n<pre><code>$mail = new PHPMailer();\n...\n$doc = $pdf-&gt;Output('S');\n$mail-&gt;AddStringAttachment($doc, 'doc.pdf', 'base64', 'application/pdf');\n$mail-&gt;Send();</code></pre>\n</div>\n</li>\n\n<li id='q16'>\n<p><b>16.</b> <span class='question'>What's the limit of the file sizes I can generate with FPDF?</span></p>\nThere is no particular limit. There are some constraints, however:\n<br>\n<br>\n- There is usually a maximum memory size allocated to PHP scripts. For very big documents,\nespecially with images, the limit may be reached (the file being built in memory). The\nparameter is configured in the php.ini file.\n<br>\n<br>\n- The maximum execution time allocated to scripts defaults to 30 seconds. This limit can of course\nbe easily reached. It is configured in php.ini and may be altered dynamically with set_time_limit().\n<br>\n<br>\nYou can work around the memory limit with <a href=\"http://www.fpdf.org/?go=script&amp;id=76\" target=\"_blank\">this script</a>.\n</li>\n\n<li id='q17'>\n<p><b>17.</b> <span class='question'>Can I modify a PDF with FPDF?</span></p>\nIt's possible to import pages from an existing PDF document thanks to the\n<a href=\"https://www.setasign.com/products/fpdi/about/\" target=\"_blank\">FPDI</a> extension.\nThen you can add some content to them.\n</li>\n\n<li id='q18'>\n<p><b>18.</b> <span class='question'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</span></p>\nNo. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from a PDF.\nIt's provided with the <a href=\"http://www.foolabs.com/xpdf/\" target=\"_blank\">Xpdf</a> package.\n</li>\n\n<li id='q19'>\n<p><b>19.</b> <span class='question'>Can I convert an HTML page to PDF with FPDF?</span></p>\nNot real-world pages. But a GPL C utility does exist, <a href=\"https://www.msweet.org/projects.php?Z1\" target=\"_blank\">HTMLDOC</a>,\nwhich allows to do it and gives good results.\n</li>\n\n<li id='q20'>\n<p><b>20.</b> <span class='question'>Can I concatenate PDF files with FPDF?</span></p>\nNot directly, but it's possible to use <a href=\"https://www.setasign.com/products/fpdi/demos/concatenate-fake/\" target=\"_blank\">FPDI</a>\nto perform that task. Some free command-line tools also exist:\n<a href=\"https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/\" target=\"_blank\">pdftk</a> and\n<a href=\"http://thierry.schmit.free.fr/spip/spip.php?article15\" target=\"_blank\">mbtPdfAsm</a>.\n</li>\n</ul>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/changelog.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Changelog</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"fpdf.css\">\n<style type=\"text/css\">\ndd {margin:1em 0 1em 1em}\n</style>\n</head>\n<body>\n<h1>Changelog</h1>\n<dl>\n<dt><strong>v1.81</strong> (2015-12-20)</dt>\n<dd>\n- Added GetPageWidth() and GetPageHeight().<br>\n- Fixed a bug in SetXY().<br>\n</dd>\n<dt><strong>v1.8</strong> (2015-11-29)</dt>\n<dd>\n- PHP 5.1.0 or higher is now required.<br>\n- The MakeFont utility now subsets fonts, which can greatly reduce font sizes.<br>\n- Added ToUnicode CMaps to improve text extraction.<br>\n- Added a parameter to AddPage() to rotate the page.<br>\n- Added a parameter to SetY() to indicate whether the x position should be reset or not.<br>\n- Added a parameter to Output() to specify the encoding of the name, and special characters are now properly encoded. Additionally the order of the first two parameters was reversed to be more logical (however the old order is still supported for compatibility).<br>\n- The Error() method now throws an exception.<br>\n- Adding contents before the first AddPage() or after Close() now raises an error.<br>\n- Outputting text with no font selected now raises an error.<br>\n</dd>\n<dt><strong>v1.7</strong> (2011-06-18)</dt>\n<dd>\n- The MakeFont utility has been completely rewritten and doesn't depend on ttf2pt1 anymore.<br>\n- Alpha channel is now supported for PNGs.<br>\n- When inserting an image, it's now possible to specify its resolution.<br>\n- Default resolution for images was increased from 72 to 96 dpi.<br>\n- When inserting a GIF image, no temporary file is used anymore if the PHP version is 5.1 or higher.<br>\n- When output buffering is enabled and the PDF is about to be sent, the buffer is now cleared if it contains only a UTF-8 BOM and/or whitespace (instead of throwing an error).<br>\n- Symbol and ZapfDingbats fonts now support underline style.<br>\n- Custom page sizes are now checked to ensure that width is smaller than height.<br>\n- Standard font files were changed to use the same format as user fonts.<br>\n- A bug in the embedding of Type1 fonts was fixed.<br>\n- A bug related to SetDisplayMode() and the current locale was fixed.<br>\n- A display issue occurring with the Adobe Reader X plug-in was fixed.<br>\n- An issue related to transparency with some versions of Adobe Reader was fixed.<br>\n- The Content-Length header was removed because it caused an issue when the HTTP server applies compression.<br>\n</dd>\n<dt><strong>v1.6</strong> (2008-08-03)</dt>\n<dd>\n- PHP 4.3.10 or higher is now required.<br>\n- GIF image support.<br>\n- Images can now trigger page breaks.<br>\n- Possibility to have different page formats in a single document.<br>\n- Document properties (author, creator, keywords, subject and title) can now be specified in UTF-8.<br>\n- Fixed a bug: when a PNG was inserted through a URL, an error sometimes occurred.<br>\n- An automatic page break in Header() doesn't cause an infinite loop any more.<br>\n- Removed some warning messages appearing with recent PHP versions.<br>\n- Added HTTP headers to reduce problems with IE.<br>\n</dd>\n<dt><strong>v1.53</strong> (2004-12-31)</dt>\n<dd>\n- When the font subdirectory is in the same directory as fpdf.php, it's no longer necessary to define the FPDF_FONTPATH constant.<br>\n- The array $HTTP_SERVER_VARS is no longer used. It could cause trouble on PHP5-based configurations with the register_long_arrays option disabled.<br>\n- Fixed a problem related to Type1 font embedding which caused trouble to some PDF processors.<br>\n- The file name sent to the browser could not contain a space character.<br>\n- The Cell() method could not print the number 0 (you had to pass the string '0').<br>\n</dd>\n<dt><strong>v1.52</strong> (2003-12-30)</dt>\n<dd>\n- Image() now displays the image at 72 dpi if no dimension is given.<br>\n- Output() takes a string as second parameter to indicate destination.<br>\n- Open() is now called automatically by AddPage().<br>\n- Inserting remote JPEG images doesn't generate an error any longer.<br>\n- Decimal separator is forced to dot in the constructor.<br>\n- Added several encodings (Turkish, Thai, Hebrew, Ukrainian and Vietnamese).<br>\n- The last line of a right-aligned MultiCell() was not correctly aligned if it was terminated by a carriage return.<br>\n- No more error message about already sent headers when outputting the PDF to the standard output from the command line.<br>\n- The underlining was going too far for text containing characters \\, ( or ).<br>\n- $HTTP_ENV_VARS has been replaced by $HTTP_SERVER_VARS.<br>\n</dd>\n<dt><strong>v1.51</strong> (2002-08-03)</dt>\n<dd>\n- Type1 font support.<br>\n- Added Baltic encoding.<br>\n- The class now works internally in points with the origin at the bottom in order to avoid two bugs occurring with Acrobat 5:<br>&nbsp;&nbsp;* The line thickness was too large when printed under Windows 98 SE and ME.<br>&nbsp;&nbsp;* TrueType fonts didn't appear immediately inside the plug-in (a substitution font was used), one had to cause a window refresh to make them show up.<br>\n- It's no longer necessary to set the decimal separator as dot to produce valid documents.<br>\n- The clickable area in a cell was always on the left independently from the text alignment.<br>\n- JPEG images in CMYK mode appeared in inverted colors.<br>\n- Transparent PNG images in grayscale or true color mode were incorrectly handled.<br>\n- Adding new fonts now works correctly even with the magic_quotes_runtime option set to on.<br>\n</dd>\n<dt><strong>v1.5</strong> (2002-05-28)</dt>\n<dd>\n- TrueType font (AddFont()) and encoding support (Western and Eastern Europe, Cyrillic and Greek).<br>\n- Added Write() method.<br>\n- Added underlined style.<br>\n- Internal and external link support (AddLink(), SetLink(), Link()).<br>\n- Added right margin management and methods SetRightMargin(), SetTopMargin().<br>\n- Modification of SetDisplayMode() to select page layout.<br>\n- The border parameter of MultiCell() now lets choose borders to draw as Cell().<br>\n- When a document contains no page, Close() now calls AddPage() instead of causing a fatal error.<br>\n</dd>\n<dt><strong>v1.41</strong> (2002-03-13)</dt>\n<dd>\n- Fixed SetDisplayMode() which no longer worked (the PDF viewer used its default display).<br>\n</dd>\n<dt><strong>v1.4</strong> (2002-03-02)</dt>\n<dd>\n- PHP3 is no longer supported.<br>\n- Page compression (SetCompression()).<br>\n- Choice of page format and possibility to change orientation inside document.<br>\n- Added AcceptPageBreak() method.<br>\n- Ability to print the total number of pages (AliasNbPages()).<br>\n- Choice of cell borders to draw.<br>\n- New mode for Cell(): the current position can now move under the cell.<br>\n- Ability to include an image by specifying height only (width is calculated automatically).<br>\n- Fixed a bug: when a justified line triggered a page break, the footer inherited the corresponding word spacing.<br>\n</dd>\n<dt><strong>v1.31</strong> (2002-01-12)</dt>\n<dd>\n- Fixed a bug in drawing frame with MultiCell(): the last line always started from the left margin.<br>\n- Removed Expires HTTP header (gives trouble in some situations).<br>\n- Added Content-disposition HTTP header (seems to help in some situations).<br>\n</dd>\n<dt><strong>v1.3</strong> (2001-12-03)</dt>\n<dd>\n- Line break and text justification support (MultiCell()).<br>\n- Color support (SetDrawColor(), SetFillColor(), SetTextColor()). Possibility to draw filled rectangles and paint cell background.<br>\n- A cell whose width is declared null extends up to the right margin of the page.<br>\n- Line width is now retained from page to page and defaults to 0.2 mm.<br>\n- Added SetXY() method.<br>\n- Fixed a passing by reference done in a deprecated manner for PHP4.<br>\n</dd>\n<dt><strong>v1.2</strong> (2001-11-11)</dt>\n<dd>\n- Added font metric files and GetStringWidth() method.<br>\n- Centering and right-aligning text in cells.<br>\n- Display mode control (SetDisplayMode()).<br>\n- Added methods to set document properties (SetAuthor(), SetCreator(), SetKeywords(), SetSubject(), SetTitle()).<br>\n- Possibility to force PDF download by browser.<br>\n- Added SetX() and GetX() methods.<br>\n- During automatic page break, current abscissa is now retained.<br>\n</dd>\n<dt><strong>v1.11</strong> (2001-10-20)</dt>\n<dd>\n- PNG support doesn't require PHP4/zlib any more. Data are now put directly into PDF without any decompression/recompression stage.<br>\n- Image insertion now works correctly even with magic_quotes_runtime option set to on.<br>\n</dd>\n<dt><strong>v1.1</strong> (2001-10-07)</dt>\n<dd>\n- JPEG and PNG image support.<br>\n</dd>\n<dt><strong>v1.01</strong> (2001-10-03)</dt>\n<dd>\n- Fixed a bug involving page break: in case when Header() doesn't specify a font, the one from previous page was not restored and produced an incorrect document.<br>\n</dd>\n<dt><strong>v1.0</strong> (2001-09-17)</dt>\n<dd>\n- First version.<br>\n</dd>\n</dl>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/__construct.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>__construct</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>__construct</h1>\n<code>__construct([<b>string</b> orientation [, <b>string</b> unit [, <b>mixed</b> size]]])</code>\n<h2>Description</h2>\nThis is the class constructor. It allows to set up the page size, the orientation and the\nunit of measure used in all methods (except for font sizes).\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>orientation</code></dt>\n<dd>\nDefault page orientation. Possible values are (case insensitive):\n<ul>\n<li><code>P</code> or <code>Portrait</code></li>\n<li><code>L</code> or <code>Landscape</code></li>\n</ul>\nDefault value is <code>P</code>.\n</dd>\n<dt><code>unit</code></dt>\n<dd>\nUser unit. Possible values are:\n<ul>\n<li><code>pt</code>: point</li>\n<li><code>mm</code>: millimeter</li>\n<li><code>cm</code>: centimeter</li>\n<li><code>in</code>: inch</li>\n</ul>\nA point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This\nis a very common unit in typography; font sizes are expressed in that unit.\n<br>\n<br>\nDefault value is <code>mm</code>.\n</dd>\n<dt><code>size</code></dt>\n<dd>\nThe size used for pages. It can be either one of the following values (case insensitive):\n<ul>\n<li><code>A3</code></li>\n<li><code>A4</code></li>\n<li><code>A5</code></li>\n<li><code>Letter</code></li>\n<li><code>Legal</code></li>\n</ul>\nor an array containing the width and the height (expressed in the unit given by <code>unit</code>).<br>\n<br>\nDefault value is <code>A4</code>.\n</dd>\n</dl>\n<h2>Example</h2>\nExample with a custom 100x150 mm page size:\n<div class=\"doc-source\">\n<pre><code>$pdf = new FPDF('P','mm',array(100,150));</code></pre>\n</div>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/acceptpagebreak.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>AcceptPageBreak</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>AcceptPageBreak</h1>\n<code><b>boolean</b> AcceptPageBreak()</code>\n<h2>Description</h2>\nWhenever a page break condition is met, the method is called, and the break is issued or not\ndepending on the returned value. The default implementation returns a value according to the\nmode selected by SetAutoPageBreak().\n<br>\nThis method is called automatically and should not be called directly by the application.\n<h2>Example</h2>\nThe method is overriden in an inherited class in order to obtain a 3 column layout:\n<div class=\"doc-source\">\n<pre><code>class PDF extends FPDF\n{\nvar $col = 0;\n\nfunction SetCol($col)\n{\n    // Move position to a column\n    $this-&gt;col = $col;\n    $x = 10+$col*65;\n    $this-&gt;SetLeftMargin($x);\n    $this-&gt;SetX($x);\n}\n\nfunction AcceptPageBreak()\n{\n    if($this-&gt;col&lt;2)\n    {\n        // Go to next column\n        $this-&gt;SetCol($this-&gt;col+1);\n        $this-&gt;SetY(10);\n        return false;\n    }\n    else\n    {\n        // Go back to first column and issue page break\n        $this-&gt;SetCol(0);\n        return true;\n    }\n}\n}\n\n$pdf = new PDF();\n$pdf-&gt;AddPage();\n$pdf-&gt;SetFont('Arial','',12);\nfor($i=1;$i&lt;=300;$i++)\n    $pdf-&gt;Cell(0,5,\"Line $i\",0,1);\n$pdf-&gt;Output();</code></pre>\n</div>\n<h2>See also</h2>\n<a href=\"setautopagebreak.htm\">SetAutoPageBreak</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/addfont.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>AddFont</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>AddFont</h1>\n<code>AddFont(<b>string</b> family [, <b>string</b> style [, <b>string</b> file]])</code>\n<h2>Description</h2>\nImports a TrueType, OpenType or Type1 font and makes it available. It is necessary to generate a font\ndefinition file first with the MakeFont utility.\n<br>\nThe definition file (and the font file itself when embedding) must be present in the font directory.\nIf it is not found, the error \"Could not include font definition file\" is raised.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>family</code></dt>\n<dd>\nFont family. The name can be chosen arbitrarily. If it is a standard family name, it will\noverride the corresponding font.\n</dd>\n<dt><code>style</code></dt>\n<dd>\nFont style. Possible values are (case insensitive):\n<ul>\n<li>empty string: regular</li>\n<li><code>B</code>: bold</li>\n<li><code>I</code>: italic</li>\n<li><code>BI</code> or <code>IB</code>: bold italic</li>\n</ul>\nThe default value is regular.\n</dd>\n<dt><code>file</code></dt>\n<dd>\nThe font definition file.\n<br>\nBy default, the name is built from the family and style, in lower case with no space.\n</dd>\n</dl>\n<h2>Example</h2>\n<div class=\"doc-source\">\n<pre><code>$pdf-&gt;AddFont('Comic','I');</code></pre>\n</div>\nis equivalent to:\n<div class=\"doc-source\">\n<pre><code>$pdf-&gt;AddFont('Comic','I','comici.php');</code></pre>\n</div>\n<h2>See also</h2>\n<a href=\"setfont.htm\">SetFont</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/addlink.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>AddLink</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>AddLink</h1>\n<code><b>int</b> AddLink()</code>\n<h2>Description</h2>\nCreates a new internal link and returns its identifier. An internal link is a clickable area\nwhich directs to another place within the document.\n<br>\nThe identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is\ndefined with SetLink().\n<h2>See also</h2>\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"write.htm\">Write</a>,\n<a href=\"image.htm\">Image</a>,\n<a href=\"link.htm\">Link</a>,\n<a href=\"setlink.htm\">SetLink</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/addpage.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>AddPage</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>AddPage</h1>\n<code>AddPage([<b>string</b> orientation [, <b>mixed</b> size [, <b>int</b> rotation]]])</code>\n<h2>Description</h2>\nAdds a new page to the document. If a page is already present, the Footer() method is called\nfirst to output the footer. Then the page is added, the current position set to the top-left\ncorner according to the left and top margins, and Header() is called to display the header.\n<br>\nThe font which was set before calling is automatically restored. There is no need to call\nSetFont() again if you want to continue with the same font. The same is true for colors and\nline width.\n<br>\nThe origin of the coordinate system is at the top-left corner and increasing ordinates go\ndownwards.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>orientation</code></dt>\n<dd>\nPage orientation. Possible values are (case insensitive):\n<ul>\n<li><code>P</code> or <code>Portrait</code></li>\n<li><code>L</code> or <code>Landscape</code></li>\n</ul>\nThe default value is the one passed to the constructor.\n</dd>\n<dt><code>size</code></dt>\n<dd>\nPage size. It can be either one of the following values (case insensitive):\n<ul>\n<li><code>A3</code></li>\n<li><code>A4</code></li>\n<li><code>A5</code></li>\n<li><code>Letter</code></li>\n<li><code>Legal</code></li>\n</ul>\nor an array containing the width and the height (expressed in user unit).<br>\n<br>\nThe default value is the one passed to the constructor.\n</dd>\n<dt><code>rotation</code></dt>\n<dd>\nAngle by which to rotate the page. It must be a multiple of 90; positive values\nmean clockwise rotation. The default value is <code>0</code>.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"__construct.htm\">__construct</a>,\n<a href=\"header.htm\">Header</a>,\n<a href=\"footer.htm\">Footer</a>,\n<a href=\"setmargins.htm\">SetMargins</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/aliasnbpages.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>AliasNbPages</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>AliasNbPages</h1>\n<code>AliasNbPages([<b>string</b> alias])</code>\n<h2>Description</h2>\nDefines an alias for the total number of pages. It will be substituted as the document is\nclosed.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>alias</code></dt>\n<dd>\nThe alias. Default value: <code>{nb}</code>.\n</dd>\n</dl>\n<h2>Example</h2>\n<div class=\"doc-source\">\n<pre><code>class PDF extends FPDF\n{\nfunction Footer()\n{\n    // Go to 1.5 cm from bottom\n    $this-&gt;SetY(-15);\n    // Select Arial italic 8\n    $this-&gt;SetFont('Arial','I',8);\n    // Print current and total page numbers\n    $this-&gt;Cell(0,10,'Page '.$this-&gt;PageNo().'/{nb}',0,0,'C');\n}\n}\n\n$pdf = new PDF();\n$pdf-&gt;AliasNbPages();</code></pre>\n</div>\n<h2>See also</h2>\n<a href=\"pageno.htm\">PageNo</a>,\n<a href=\"footer.htm\">Footer</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/cell.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Cell</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Cell</h1>\n<code>Cell(<b>float</b> w [, <b>float</b> h [, <b>string</b> txt [, <b>mixed</b> border [, <b>int</b> ln [, <b>string</b> align [, <b>boolean</b> fill [, <b>mixed</b> link]]]]]]])</code>\n<h2>Description</h2>\nPrints a cell (rectangular area) with optional borders, background color and character string.\nThe upper-left corner of the cell corresponds to the current position. The text can be aligned\nor centered. After the call, the current position moves to the right or to the next line. It is\npossible to put a link on the text.\n<br>\nIf automatic page breaking is enabled and the cell goes beyond the limit, a page break is\ndone before outputting.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>w</code></dt>\n<dd>\nCell width. If <code>0</code>, the cell extends up to the right margin.\n</dd>\n<dt><code>h</code></dt>\n<dd>\nCell height.\nDefault value: <code>0</code>.\n</dd>\n<dt><code>txt</code></dt>\n<dd>\nString to print.\nDefault value: empty string.\n</dd>\n<dt><code>border</code></dt>\n<dd>\nIndicates if borders must be drawn around the cell. The value can be either a number:\n<ul>\n<li><code>0</code>: no border</li>\n<li><code>1</code>: frame</li>\n</ul>\nor a string containing some or all of the following characters (in any order):\n<ul>\n<li><code>L</code>: left</li>\n<li><code>T</code>: top</li>\n<li><code>R</code>: right</li>\n<li><code>B</code>: bottom</li>\n</ul>\nDefault value: <code>0</code>.\n</dd>\n<dt><code>ln</code></dt>\n<dd>\nIndicates where the current position should go after the call. Possible values are:\n<ul>\n<li><code>0</code>: to the right</li>\n<li><code>1</code>: to the beginning of the next line</li>\n<li><code>2</code>: below</li>\n</ul>\nPutting <code>1</code> is equivalent to putting <code>0</code> and calling Ln() just after.\nDefault value: <code>0</code>.\n</dd>\n<dt><code>align</code></dt>\n<dd>\nAllows to center or align the text. Possible values are:\n<ul>\n<li><code>L</code> or empty string: left align (default value)</li>\n<li><code>C</code>: center</li>\n<li><code>R</code>: right align</li>\n</ul>\n</dd>\n<dt><code>fill</code></dt>\n<dd>\nIndicates if the cell background must be painted (<code>true</code>) or transparent (<code>false</code>).\nDefault value: <code>false</code>.\n</dd>\n<dt><code>link</code></dt>\n<dd>\nURL or identifier returned by AddLink().\n</dd>\n</dl>\n<h2>Example</h2>\n<div class=\"doc-source\">\n<pre><code>// Set font\n$pdf-&gt;SetFont('Arial','B',16);\n// Move to 8 cm to the right\n$pdf-&gt;Cell(80);\n// Centered text in a framed 20*10 mm cell and line break\n$pdf-&gt;Cell(20,10,'Title',1,1,'C');</code></pre>\n</div>\n<h2>See also</h2>\n<a href=\"setfont.htm\">SetFont</a>,\n<a href=\"setdrawcolor.htm\">SetDrawColor</a>,\n<a href=\"setfillcolor.htm\">SetFillColor</a>,\n<a href=\"settextcolor.htm\">SetTextColor</a>,\n<a href=\"setlinewidth.htm\">SetLineWidth</a>,\n<a href=\"addlink.htm\">AddLink</a>,\n<a href=\"ln.htm\">Ln</a>,\n<a href=\"multicell.htm\">MultiCell</a>,\n<a href=\"write.htm\">Write</a>,\n<a href=\"setautopagebreak.htm\">SetAutoPageBreak</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/close.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Close</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Close</h1>\n<code>Close()</code>\n<h2>Description</h2>\nTerminates the PDF document. It is not necessary to call this method explicitly because Output()\ndoes it automatically.\n<br>\nIf the document contains no page, AddPage() is called to prevent from getting an invalid document.\n<h2>See also</h2>\n<a href=\"output.htm\">Output</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/error.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Error</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Error</h1>\n<code>Error(<b>string</b> msg)</code>\n<h2>Description</h2>\nThis method is automatically called in case of a fatal error; it simply throws an exception\nwith the provided message.<br>\nAn inherited class may override it to customize the error handling but the method should\nnever return, otherwise the resulting document would probably be invalid.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>msg</code></dt>\n<dd>\nThe error message.\n</dd>\n</dl>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/footer.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Footer</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Footer</h1>\n<code>Footer()</code>\n<h2>Description</h2>\nThis method is used to render the page footer. It is automatically called by AddPage() and\nClose() and should not be called directly by the application. The implementation in FPDF is\nempty, so you have to subclass it and override the method if you want a specific processing.\n<h2>Example</h2>\n<div class=\"doc-source\">\n<pre><code>class PDF extends FPDF\n{\nfunction Footer()\n{\n    // Go to 1.5 cm from bottom\n    $this-&gt;SetY(-15);\n    // Select Arial italic 8\n    $this-&gt;SetFont('Arial','I',8);\n    // Print centered page number\n    $this-&gt;Cell(0,10,'Page '.$this-&gt;PageNo(),0,0,'C');\n}\n}</code></pre>\n</div>\n<h2>See also</h2>\n<a href=\"header.htm\">Header</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/getpageheight.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>GetPageHeight</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>GetPageHeight</h1>\n<code><b>float</b> GetPageHeight()</code>\n<h2>Description</h2>\nReturns the current page height.\n<h2>See also</h2>\n<a href=\"getpagewidth.htm\">GetPageWidth</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/getpagewidth.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>GetPageWidth</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>GetPageWidth</h1>\n<code><b>float</b> GetPageWidth()</code>\n<h2>Description</h2>\nReturns the current page width.\n<h2>See also</h2>\n<a href=\"getpageheight.htm\">GetPageHeight</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/getstringwidth.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>GetStringWidth</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>GetStringWidth</h1>\n<code><b>float</b> GetStringWidth(<b>string</b> s)</code>\n<h2>Description</h2>\nReturns the length of a string in user unit. A font must be selected.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>s</code></dt>\n<dd>\nThe string whose length is to be computed.\n</dd>\n</dl>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/getx.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>GetX</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>GetX</h1>\n<code><b>float</b> GetX()</code>\n<h2>Description</h2>\nReturns the abscissa of the current position.\n<h2>See also</h2>\n<a href=\"setx.htm\">SetX</a>,\n<a href=\"gety.htm\">GetY</a>,\n<a href=\"sety.htm\">SetY</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/gety.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>GetY</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>GetY</h1>\n<code><b>float</b> GetY()</code>\n<h2>Description</h2>\nReturns the ordinate of the current position.\n<h2>See also</h2>\n<a href=\"sety.htm\">SetY</a>,\n<a href=\"getx.htm\">GetX</a>,\n<a href=\"setx.htm\">SetX</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/header.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Header</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Header</h1>\n<code>Header()</code>\n<h2>Description</h2>\nThis method is used to render the page header. It is automatically called by AddPage() and\nshould not be called directly by the application. The implementation in FPDF is empty, so\nyou have to subclass it and override the method if you want a specific processing.\n<h2>Example</h2>\n<div class=\"doc-source\">\n<pre><code>class PDF extends FPDF\n{\nfunction Header()\n{\n    // Select Arial bold 15\n    $this-&gt;SetFont('Arial','B',15);\n    // Move to the right\n    $this-&gt;Cell(80);\n    // Framed title\n    $this-&gt;Cell(30,10,'Title',1,0,'C');\n    // Line break\n    $this-&gt;Ln(20);\n}\n}</code></pre>\n</div>\n<h2>See also</h2>\n<a href=\"footer.htm\">Footer</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/image.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Image</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Image</h1>\n<code>Image(<b>string</b> file [, <b>float</b> x [, <b>float</b> y [, <b>float</b> w [, <b>float</b> h [, <b>string</b> type [, <b>mixed</b> link]]]]]])</code>\n<h2>Description</h2>\nPuts an image. The size it will take on the page can be specified in different ways:\n<ul>\n<li>explicit width and height (expressed in user unit or dpi)</li>\n<li>one explicit dimension, the other being calculated automatically in order to keep the original proportions</li>\n<li>no explicit dimension, in which case the image is put at 96 dpi</li>\n</ul>\nSupported formats are JPEG, PNG and GIF. The GD extension is required for GIF.\n<br>\n<br>\nFor JPEGs, all flavors are allowed:\n<ul>\n<li>gray scales</li>\n<li>true colors (24 bits)</li>\n<li>CMYK (32 bits)</li>\n</ul>\nFor PNGs, are allowed:\n<ul>\n<li>gray scales on at most 8 bits (256 levels)</li>\n<li>indexed colors</li>\n<li>true colors (24 bits)</li>\n</ul>\nFor GIFs: in case of an animated GIF, only the first frame is displayed.<br>\n<br>\nTransparency is supported.<br>\n<br>\nThe format can be specified explicitly or inferred from the file extension.<br>\n<br>\nIt is possible to put a link on the image.<br>\n<br>\nRemark: if an image is used several times, only one copy is embedded in the file.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>file</code></dt>\n<dd>\nPath or URL of the image.\n</dd>\n<dt><code>x</code></dt>\n<dd>\nAbscissa of the upper-left corner. If not specified or equal to <code>null</code>, the current abscissa\nis used.\n</dd>\n<dt><code>y</code></dt>\n<dd>\nOrdinate of the upper-left corner. If not specified or equal to <code>null</code>, the current ordinate\nis used; moreover, a page break is triggered first if necessary (in case automatic page breaking is enabled)\nand, after the call, the current ordinate is moved to the bottom of the image.\n</dd>\n<dt><code>w</code></dt>\n<dd>\nWidth of the image in the page. There are three cases:\n<ul>\n<li>If the value is positive, it represents the width in user unit</li>\n<li>If the value is negative, the absolute value represents the horizontal resolution in dpi</li>\n<li>If the value is not specified or equal to zero, it is automatically calculated</li>\n</ul>\n</dd>\n<dt><code>h</code></dt>\n<dd>\nHeight of the image in the page. There are three cases:\n<ul>\n<li>If the value is positive, it represents the height in user unit</li>\n<li>If the value is negative, the absolute value represents the vertical resolution in dpi</li>\n<li>If the value is not specified or equal to zero, it is automatically calculated</li>\n</ul>\n</dd>\n<dt><code>type</code></dt>\n<dd>\nImage format. Possible values are (case insensitive): <code>JPG</code>, <code>JPEG</code>, <code>PNG</code> and <code>GIF</code>.\nIf not specified, the type is inferred from the file extension.\n</dd>\n<dt><code>link</code></dt>\n<dd>\nURL or identifier returned by AddLink().\n</dd>\n</dl>\n<h2>Example</h2>\n<div class=\"doc-source\">\n<pre><code>// Insert a logo in the top-left corner at 300 dpi\n$pdf-&gt;Image('logo.png',10,10,-300);\n// Insert a dynamic image from a URL\n$pdf-&gt;Image('http://chart.googleapis.com/chart?cht=p3&amp;chd=t:60,40&amp;chs=250x100&amp;chl=Hello|World',60,30,90,0,'PNG');</code></pre>\n</div>\n<h2>See also</h2>\n<a href=\"addlink.htm\">AddLink</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/index.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>FPDF 1.81 Reference Manual</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>FPDF 1.81 Reference Manual</h1>\n<a href=\"__construct.htm\">__construct</a> - constructor<br>\n<a href=\"acceptpagebreak.htm\">AcceptPageBreak</a> - accept or not automatic page break<br>\n<a href=\"addfont.htm\">AddFont</a> - add a new font<br>\n<a href=\"addlink.htm\">AddLink</a> - create an internal link<br>\n<a href=\"addpage.htm\">AddPage</a> - add a new page<br>\n<a href=\"aliasnbpages.htm\">AliasNbPages</a> - define an alias for number of pages<br>\n<a href=\"cell.htm\">Cell</a> - print a cell<br>\n<a href=\"close.htm\">Close</a> - terminate the document<br>\n<a href=\"error.htm\">Error</a> - fatal error<br>\n<a href=\"footer.htm\">Footer</a> - page footer<br>\n<a href=\"getpageheight.htm\">GetPageHeight</a> - get current page height<br>\n<a href=\"getpagewidth.htm\">GetPageWidth</a> - get current page width<br>\n<a href=\"getstringwidth.htm\">GetStringWidth</a> - compute string length<br>\n<a href=\"getx.htm\">GetX</a> - get current x position<br>\n<a href=\"gety.htm\">GetY</a> - get current y position<br>\n<a href=\"header.htm\">Header</a> - page header<br>\n<a href=\"image.htm\">Image</a> - output an image<br>\n<a href=\"line.htm\">Line</a> - draw a line<br>\n<a href=\"link.htm\">Link</a> - put a link<br>\n<a href=\"ln.htm\">Ln</a> - line break<br>\n<a href=\"multicell.htm\">MultiCell</a> - print text with line breaks<br>\n<a href=\"output.htm\">Output</a> - save or send the document<br>\n<a href=\"pageno.htm\">PageNo</a> - page number<br>\n<a href=\"rect.htm\">Rect</a> - draw a rectangle<br>\n<a href=\"setauthor.htm\">SetAuthor</a> - set the document author<br>\n<a href=\"setautopagebreak.htm\">SetAutoPageBreak</a> - set the automatic page breaking mode<br>\n<a href=\"setcompression.htm\">SetCompression</a> - turn compression on or off<br>\n<a href=\"setcreator.htm\">SetCreator</a> - set document creator<br>\n<a href=\"setdisplaymode.htm\">SetDisplayMode</a> - set display mode<br>\n<a href=\"setdrawcolor.htm\">SetDrawColor</a> - set drawing color<br>\n<a href=\"setfillcolor.htm\">SetFillColor</a> - set filling color<br>\n<a href=\"setfont.htm\">SetFont</a> - set font<br>\n<a href=\"setfontsize.htm\">SetFontSize</a> - set font size<br>\n<a href=\"setkeywords.htm\">SetKeywords</a> - associate keywords with document<br>\n<a href=\"setleftmargin.htm\">SetLeftMargin</a> - set left margin<br>\n<a href=\"setlinewidth.htm\">SetLineWidth</a> - set line width<br>\n<a href=\"setlink.htm\">SetLink</a> - set internal link destination<br>\n<a href=\"setmargins.htm\">SetMargins</a> - set margins<br>\n<a href=\"setrightmargin.htm\">SetRightMargin</a> - set right margin<br>\n<a href=\"setsubject.htm\">SetSubject</a> - set document subject<br>\n<a href=\"settextcolor.htm\">SetTextColor</a> - set text color<br>\n<a href=\"settitle.htm\">SetTitle</a> - set document title<br>\n<a href=\"settopmargin.htm\">SetTopMargin</a> - set top margin<br>\n<a href=\"setx.htm\">SetX</a> - set current x position<br>\n<a href=\"setxy.htm\">SetXY</a> - set current x and y positions<br>\n<a href=\"sety.htm\">SetY</a> - set current y position and optionally reset x<br>\n<a href=\"text.htm\">Text</a> - print a string<br>\n<a href=\"write.htm\">Write</a> - print flowing text<br>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/line.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Line</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Line</h1>\n<code>Line(<b>float</b> x1, <b>float</b> y1, <b>float</b> x2, <b>float</b> y2)</code>\n<h2>Description</h2>\nDraws a line between two points.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>x1</code></dt>\n<dd>\nAbscissa of first point.\n</dd>\n<dt><code>y1</code></dt>\n<dd>\nOrdinate of first point.\n</dd>\n<dt><code>x2</code></dt>\n<dd>\nAbscissa of second point.\n</dd>\n<dt><code>y2</code></dt>\n<dd>\nOrdinate of second point.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setlinewidth.htm\">SetLineWidth</a>,\n<a href=\"setdrawcolor.htm\">SetDrawColor</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/link.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Link</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Link</h1>\n<code>Link(<b>float</b> x, <b>float</b> y, <b>float</b> w, <b>float</b> h, <b>mixed</b> link)</code>\n<h2>Description</h2>\nPuts a link on a rectangular area of the page. Text or image links are generally put via Cell(),\nWrite() or Image(), but this method can be useful for instance to define a clickable area inside\nan image.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>x</code></dt>\n<dd>\nAbscissa of the upper-left corner of the rectangle.\n</dd>\n<dt><code>y</code></dt>\n<dd>\nOrdinate of the upper-left corner of the rectangle.\n</dd>\n<dt><code>w</code></dt>\n<dd>\nWidth of the rectangle.\n</dd>\n<dt><code>h</code></dt>\n<dd>\nHeight of the rectangle.\n</dd>\n<dt><code>link</code></dt>\n<dd>\nURL or identifier returned by AddLink().\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"addlink.htm\">AddLink</a>,\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"write.htm\">Write</a>,\n<a href=\"image.htm\">Image</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/ln.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Ln</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Ln</h1>\n<code>Ln([<b>float</b> h])</code>\n<h2>Description</h2>\nPerforms a line break. The current abscissa goes back to the left margin and the ordinate\nincreases by the amount passed in parameter.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>h</code></dt>\n<dd>\nThe height of the break.\n<br>\nBy default, the value equals the height of the last printed cell.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"cell.htm\">Cell</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/multicell.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>MultiCell</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>MultiCell</h1>\n<code>MultiCell(<b>float</b> w, <b>float</b> h, <b>string</b> txt [, <b>mixed</b> border [, <b>string</b> align [, <b>boolean</b> fill]]])</code>\n<h2>Description</h2>\nThis method allows printing text with line breaks. They can be automatic (as soon as the\ntext reaches the right border of the cell) or explicit (via the \\n character). As many cells\nas necessary are output, one below the other.\n<br>\nText can be aligned, centered or justified. The cell block can be framed and the background\npainted.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>w</code></dt>\n<dd>\nWidth of cells. If <code>0</code>, they extend up to the right margin of the page.\n</dd>\n<dt><code>h</code></dt>\n<dd>\nHeight of cells.\n</dd>\n<dt><code>txt</code></dt>\n<dd>\nString to print.\n</dd>\n<dt><code>border</code></dt>\n<dd>\nIndicates if borders must be drawn around the cell block. The value can be either a number:\n<ul>\n<li><code>0</code>: no border</li>\n<li><code>1</code>: frame</li>\n</ul>\nor a string containing some or all of the following characters (in any order):\n<ul>\n<li><code>L</code>: left</li>\n<li><code>T</code>: top</li>\n<li><code>R</code>: right</li>\n<li><code>B</code>: bottom</li>\n</ul>\nDefault value: <code>0</code>.\n</dd>\n<dt><code>align</code></dt>\n<dd>\nSets the text alignment. Possible values are:\n<ul>\n<li><code>L</code>: left alignment</li>\n<li><code>C</code>: center</li>\n<li><code>R</code>: right alignment</li>\n<li><code>J</code>: justification (default value)</li>\n</ul>\n</dd>\n<dt><code>fill</code></dt>\n<dd>\nIndicates if the cell background must be painted (<code>true</code>) or transparent (<code>false</code>).\nDefault value: <code>false</code>.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setfont.htm\">SetFont</a>,\n<a href=\"setdrawcolor.htm\">SetDrawColor</a>,\n<a href=\"setfillcolor.htm\">SetFillColor</a>,\n<a href=\"settextcolor.htm\">SetTextColor</a>,\n<a href=\"setlinewidth.htm\">SetLineWidth</a>,\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"write.htm\">Write</a>,\n<a href=\"setautopagebreak.htm\">SetAutoPageBreak</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/output.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Output</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Output</h1>\n<code><b>string</b> Output([<b>string</b> dest [, <b>string</b> name [, <b>boolean</b> isUTF8]]])</code>\n<h2>Description</h2>\nSend the document to a given destination: browser, file or string. In the case of a browser, the\nPDF viewer may be used or a download may be forced.\n<br>\nThe method first calls Close() if necessary to terminate the document.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>dest</code></dt>\n<dd>\nDestination where to send the document. It can be one of the following:\n<ul>\n<li><code>I</code>: send the file inline to the browser. The PDF viewer is used if available.</li>\n<li><code>D</code>: send to the browser and force a file download with the name given by <code>name</code>.</li>\n<li><code>F</code>: save to a local file with the name given by <code>name</code> (may include a path).</li>\n<li><code>S</code>: return the document as a string.</li>\n</ul>\nThe default value is <code>I</code>.\n</dd>\n<dt><code>name</code></dt>\n<dd>\nThe name of the file. It is ignored in case of destination <code>S</code>.<br>\nThe default value is <code>doc.pdf</code>.\n</dd>\n<dt><code>isUTF8</code></dt>\n<dd>\nIndicates if <code>name</code> is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).\nOnly used for destinations <code>I</code> and <code>D</code>.<br>\nThe default value is <code>false</code>.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"close.htm\">Close</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/pageno.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>PageNo</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>PageNo</h1>\n<code><b>int</b> PageNo()</code>\n<h2>Description</h2>\nReturns the current page number.\n<h2>See also</h2>\n<a href=\"aliasnbpages.htm\">AliasNbPages</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/rect.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Rect</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Rect</h1>\n<code>Rect(<b>float</b> x, <b>float</b> y, <b>float</b> w, <b>float</b> h [, <b>string</b> style])</code>\n<h2>Description</h2>\nOutputs a rectangle. It can be drawn (border only), filled (with no border) or both.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>x</code></dt>\n<dd>\nAbscissa of upper-left corner.\n</dd>\n<dt><code>y</code></dt>\n<dd>\nOrdinate of upper-left corner.\n</dd>\n<dt><code>w</code></dt>\n<dd>\nWidth.\n</dd>\n<dt><code>h</code></dt>\n<dd>\nHeight.\n</dd>\n<dt><code>style</code></dt>\n<dd>\nStyle of rendering. Possible values are:\n<ul>\n<li><code>D</code> or empty string: draw. This is the default value.</li>\n<li><code>F</code>: fill</li>\n<li><code>DF</code> or <code>FD</code>: draw and fill</li>\n</ul>\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setlinewidth.htm\">SetLineWidth</a>,\n<a href=\"setdrawcolor.htm\">SetDrawColor</a>,\n<a href=\"setfillcolor.htm\">SetFillColor</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setauthor.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetAuthor</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetAuthor</h1>\n<code>SetAuthor(<b>string</b> author [, <b>boolean</b> isUTF8])</code>\n<h2>Description</h2>\nDefines the author of the document.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>author</code></dt>\n<dd>\nThe name of the author.\n</dd>\n<dt><code>isUTF8</code></dt>\n<dd>\nIndicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>\nDefault value: <code>false</code>.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setcreator.htm\">SetCreator</a>,\n<a href=\"setkeywords.htm\">SetKeywords</a>,\n<a href=\"setsubject.htm\">SetSubject</a>,\n<a href=\"settitle.htm\">SetTitle</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setautopagebreak.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetAutoPageBreak</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetAutoPageBreak</h1>\n<code>SetAutoPageBreak(<b>boolean</b> auto [, <b>float</b> margin])</code>\n<h2>Description</h2>\nEnables or disables the automatic page breaking mode. When enabling, the second parameter is\nthe distance from the bottom of the page that defines the triggering limit. By default, the\nmode is on and the margin is 2 cm.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>auto</code></dt>\n<dd>\nBoolean indicating if mode should be on or off.\n</dd>\n<dt><code>margin</code></dt>\n<dd>\nDistance from the bottom of the page.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"multicell.htm\">MultiCell</a>,\n<a href=\"acceptpagebreak.htm\">AcceptPageBreak</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setcompression.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetCompression</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetCompression</h1>\n<code>SetCompression(<b>boolean</b> compress)</code>\n<h2>Description</h2>\nActivates or deactivates page compression. When activated, the internal representation of\neach page is compressed, which leads to a compression ratio of about 2 for the resulting\ndocument.\n<br>\nCompression is on by default.\n<br>\n<br>\n<strong>Note:</strong> the Zlib extension is required for this feature. If not present, compression\nwill be turned off.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>compress</code></dt>\n<dd>\nBoolean indicating if compression must be enabled.\n</dd>\n</dl>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setcreator.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetCreator</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetCreator</h1>\n<code>SetCreator(<b>string</b> creator [, <b>boolean</b> isUTF8])</code>\n<h2>Description</h2>\nDefines the creator of the document. This is typically the name of the application that\ngenerates the PDF.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>creator</code></dt>\n<dd>\nThe name of the creator.\n</dd>\n<dt><code>isUTF8</code></dt>\n<dd>\nIndicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>\nDefault value: <code>false</code>.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setauthor.htm\">SetAuthor</a>,\n<a href=\"setkeywords.htm\">SetKeywords</a>,\n<a href=\"setsubject.htm\">SetSubject</a>,\n<a href=\"settitle.htm\">SetTitle</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setdisplaymode.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetDisplayMode</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetDisplayMode</h1>\n<code>SetDisplayMode(<b>mixed</b> zoom [, <b>string</b> layout])</code>\n<h2>Description</h2>\nDefines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be\ndisplayed entirely on screen, occupy the full width of the window, use real size, be scaled by a\nspecific zooming factor or use viewer default (configured in the Preferences menu of Adobe Reader).\nThe page layout can be specified too: single at once, continuous display, two columns or viewer\ndefault.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>zoom</code></dt>\n<dd>\nThe zoom to use. It can be one of the following string values:\n<ul>\n<li><code>fullpage</code>: displays the entire page on screen</li>\n<li><code>fullwidth</code>: uses maximum width of window</li>\n<li><code>real</code>: uses real size (equivalent to 100% zoom)</li>\n<li><code>default</code>: uses viewer default mode</li>\n</ul>\nor a number indicating the zooming factor to use.\n</dd>\n<dt><code>layout</code></dt>\n<dd>\nThe page layout. Possible values are:\n<ul>\n<li><code>single</code>: displays one page at once</li>\n<li><code>continuous</code>: displays pages continuously</li>\n<li><code>two</code>: displays two pages on two columns</li>\n<li><code>default</code>: uses viewer default mode</li>\n</ul>\nDefault value is <code>default</code>.\n</dd>\n</dl>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setdrawcolor.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetDrawColor</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetDrawColor</h1>\n<code>SetDrawColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>\n<h2>Description</h2>\nDefines the color used for all drawing operations (lines, rectangles and cell borders). It\ncan be expressed in RGB components or gray scale. The method can be called before the first\npage is created and the value is retained from page to page.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>r</code></dt>\n<dd>\nIf <code>g</code> et <code>b</code> are given, red component; if not, indicates the gray level.\nValue between 0 and 255.\n</dd>\n<dt><code>g</code></dt>\n<dd>\nGreen component (between 0 and 255).\n</dd>\n<dt><code>b</code></dt>\n<dd>\nBlue component (between 0 and 255).\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setfillcolor.htm\">SetFillColor</a>,\n<a href=\"settextcolor.htm\">SetTextColor</a>,\n<a href=\"line.htm\">Line</a>,\n<a href=\"rect.htm\">Rect</a>,\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"multicell.htm\">MultiCell</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setfillcolor.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetFillColor</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetFillColor</h1>\n<code>SetFillColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>\n<h2>Description</h2>\nDefines the color used for all filling operations (filled rectangles and cell backgrounds).\nIt can be expressed in RGB components or gray scale. The method can be called before the first\npage is created and the value is retained from page to page.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>r</code></dt>\n<dd>\nIf <code>g</code> and <code>b</code> are given, red component; if not, indicates the gray level.\nValue between 0 and 255.\n</dd>\n<dt><code>g</code></dt>\n<dd>\nGreen component (between 0 and 255).\n</dd>\n<dt><code>b</code></dt>\n<dd>\nBlue component (between 0 and 255).\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setdrawcolor.htm\">SetDrawColor</a>,\n<a href=\"settextcolor.htm\">SetTextColor</a>,\n<a href=\"rect.htm\">Rect</a>,\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"multicell.htm\">MultiCell</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setfont.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetFont</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetFont</h1>\n<code>SetFont(<b>string</b> family [, <b>string</b> style [, <b>float</b> size]])</code>\n<h2>Description</h2>\nSets the font used to print character strings. It is mandatory to call this method\nat least once before printing text or the resulting document would not be valid.\n<br>\nThe font can be either a standard one or a font added via the AddFont() method. Standard fonts\nuse the Windows encoding cp1252 (Western Europe).\n<br>\nThe method can be called before the first page is created and the font is kept from page\nto page.\n<br>\nIf you just wish to change the current font size, it is simpler to call SetFontSize().\n<br>\n<br>\n<strong>Note:</strong> the font definition files must be accessible. They are searched successively in:\n<ul>\n<li>The directory defined by the <code>FPDF_FONTPATH</code> constant (if this constant is defined)</li>\n<li>The <code>font</code> directory located in the same directory as <code>fpdf.php</code> (if it exists)</li>\n<li>The directories accessible through <code>include()</code></li>\n</ul>\nExample using <code>FPDF_FONTPATH</code>:\n<div class=\"doc-source\">\n<pre><code>define('FPDF_FONTPATH','/home/www/font');\nrequire('fpdf.php');</code></pre>\n</div>\nIf the file corresponding to the requested font is not found, the error \"Could not include font\ndefinition file\" is raised.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>family</code></dt>\n<dd>\nFamily font. It can be either a name defined by AddFont() or one of the standard families (case\ninsensitive):\n<ul>\n<li><code>Courier</code> (fixed-width)</li>\n<li><code>Helvetica</code> or <code>Arial</code> (synonymous; sans serif)</li>\n<li><code>Times</code> (serif)</li>\n<li><code>Symbol</code> (symbolic)</li>\n<li><code>ZapfDingbats</code> (symbolic)</li>\n</ul>\nIt is also possible to pass an empty string. In that case, the current family is kept.\n</dd>\n<dt><code>style</code></dt>\n<dd>\nFont style. Possible values are (case insensitive):\n<ul>\n<li>empty string: regular</li>\n<li><code>B</code>: bold</li>\n<li><code>I</code>: italic</li>\n<li><code>U</code>: underline</li>\n</ul>\nor any combination. The default value is regular.\nBold and italic styles do not apply to <code>Symbol</code> and <code>ZapfDingbats</code>.\n</dd>\n<dt><code>size</code></dt>\n<dd>\nFont size in points.\n<br>\nThe default value is the current size. If no size has been specified since the beginning of\nthe document, the value taken is 12.\n</dd>\n</dl>\n<h2>Example</h2>\n<div class=\"doc-source\">\n<pre><code>// Times regular 12\n$pdf-&gt;SetFont('Times');\n// Arial bold 14\n$pdf-&gt;SetFont('Arial','B',14);\n// Removes bold\n$pdf-&gt;SetFont('');\n// Times bold, italic and underlined 14\n$pdf-&gt;SetFont('Times','BIU');</code></pre>\n</div>\n<h2>See also</h2>\n<a href=\"addfont.htm\">AddFont</a>,\n<a href=\"setfontsize.htm\">SetFontSize</a>,\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"multicell.htm\">MultiCell</a>,\n<a href=\"write.htm\">Write</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setfontsize.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetFontSize</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetFontSize</h1>\n<code>SetFontSize(<b>float</b> size)</code>\n<h2>Description</h2>\nDefines the size of the current font.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>size</code></dt>\n<dd>\nThe size (in points).\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setfont.htm\">SetFont</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setkeywords.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetKeywords</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetKeywords</h1>\n<code>SetKeywords(<b>string</b> keywords [, <b>boolean</b> isUTF8])</code>\n<h2>Description</h2>\nAssociates keywords with the document, generally in the form 'keyword1 keyword2 ...'.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>keywords</code></dt>\n<dd>\nThe list of keywords.\n</dd>\n<dt><code>isUTF8</code></dt>\n<dd>\nIndicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>\nDefault value: <code>false</code>.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setauthor.htm\">SetAuthor</a>,\n<a href=\"setcreator.htm\">SetCreator</a>,\n<a href=\"setsubject.htm\">SetSubject</a>,\n<a href=\"settitle.htm\">SetTitle</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setleftmargin.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetLeftMargin</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetLeftMargin</h1>\n<code>SetLeftMargin(<b>float</b> margin)</code>\n<h2>Description</h2>\nDefines the left margin. The method can be called before creating the first page.\n<br>\nIf the current abscissa gets out of page, it is brought back to the margin.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>margin</code></dt>\n<dd>\nThe margin.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"settopmargin.htm\">SetTopMargin</a>,\n<a href=\"setrightmargin.htm\">SetRightMargin</a>,\n<a href=\"setautopagebreak.htm\">SetAutoPageBreak</a>,\n<a href=\"setmargins.htm\">SetMargins</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setlinewidth.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetLineWidth</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetLineWidth</h1>\n<code>SetLineWidth(<b>float</b> width)</code>\n<h2>Description</h2>\nDefines the line width. By default, the value equals 0.2 mm. The method can be called before\nthe first page is created and the value is retained from page to page.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>width</code></dt>\n<dd>\nThe width.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"line.htm\">Line</a>,\n<a href=\"rect.htm\">Rect</a>,\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"multicell.htm\">MultiCell</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setlink.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetLink</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetLink</h1>\n<code>SetLink(<b>int</b> link [, <b>float</b> y [, <b>int</b> page]])</code>\n<h2>Description</h2>\nDefines the page and position a link points to.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>link</code></dt>\n<dd>\nThe link identifier returned by AddLink().\n</dd>\n<dt><code>y</code></dt>\n<dd>\nOrdinate of target position; <code>-1</code> indicates the current position.\nThe default value is <code>0</code> (top of page).\n</dd>\n<dt><code>page</code></dt>\n<dd>\nNumber of target page; <code>-1</code> indicates the current page. This is the default value.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"addlink.htm\">AddLink</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setmargins.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetMargins</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetMargins</h1>\n<code>SetMargins(<b>float</b> left, <b>float</b> top [, <b>float</b> right])</code>\n<h2>Description</h2>\nDefines the left, top and right margins. By default, they equal 1 cm. Call this method to change\nthem.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>left</code></dt>\n<dd>\nLeft margin.\n</dd>\n<dt><code>top</code></dt>\n<dd>\nTop margin.\n</dd>\n<dt><code>right</code></dt>\n<dd>\nRight margin. Default value is the left one.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setleftmargin.htm\">SetLeftMargin</a>,\n<a href=\"settopmargin.htm\">SetTopMargin</a>,\n<a href=\"setrightmargin.htm\">SetRightMargin</a>,\n<a href=\"setautopagebreak.htm\">SetAutoPageBreak</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setrightmargin.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetRightMargin</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetRightMargin</h1>\n<code>SetRightMargin(<b>float</b> margin)</code>\n<h2>Description</h2>\nDefines the right margin. The method can be called before creating the first page.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>margin</code></dt>\n<dd>\nThe margin.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setleftmargin.htm\">SetLeftMargin</a>,\n<a href=\"settopmargin.htm\">SetTopMargin</a>,\n<a href=\"setautopagebreak.htm\">SetAutoPageBreak</a>,\n<a href=\"setmargins.htm\">SetMargins</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setsubject.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetSubject</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetSubject</h1>\n<code>SetSubject(<b>string</b> subject [, <b>boolean</b> isUTF8])</code>\n<h2>Description</h2>\nDefines the subject of the document.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>subject</code></dt>\n<dd>\nThe subject.\n</dd>\n<dt><code>isUTF8</code></dt>\n<dd>\nIndicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>\nDefault value: <code>false</code>.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setauthor.htm\">SetAuthor</a>,\n<a href=\"setcreator.htm\">SetCreator</a>,\n<a href=\"setkeywords.htm\">SetKeywords</a>,\n<a href=\"settitle.htm\">SetTitle</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/settextcolor.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetTextColor</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetTextColor</h1>\n<code>SetTextColor(<b>int</b> r [, <b>int</b> g, <b>int</b> b])</code>\n<h2>Description</h2>\nDefines the color used for text. It can be expressed in RGB components or gray scale. The\nmethod can be called before the first page is created and the value is retained from page to\npage.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>r</code></dt>\n<dd>\nIf <code>g</code> et <code>b</code> are given, red component; if not, indicates the gray level.\nValue between 0 and 255.\n</dd>\n<dt><code>g</code></dt>\n<dd>\nGreen component (between 0 and 255).\n</dd>\n<dt><code>b</code></dt>\n<dd>\nBlue component (between 0 and 255).\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setdrawcolor.htm\">SetDrawColor</a>,\n<a href=\"setfillcolor.htm\">SetFillColor</a>,\n<a href=\"text.htm\">Text</a>,\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"multicell.htm\">MultiCell</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/settitle.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetTitle</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetTitle</h1>\n<code>SetTitle(<b>string</b> title [, <b>boolean</b> isUTF8])</code>\n<h2>Description</h2>\nDefines the title of the document.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>title</code></dt>\n<dd>\nThe title.\n</dd>\n<dt><code>isUTF8</code></dt>\n<dd>\nIndicates if the string is encoded in ISO-8859-1 (<code>false</code>) or UTF-8 (<code>true</code>).<br>\nDefault value: <code>false</code>.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setauthor.htm\">SetAuthor</a>,\n<a href=\"setcreator.htm\">SetCreator</a>,\n<a href=\"setkeywords.htm\">SetKeywords</a>,\n<a href=\"setsubject.htm\">SetSubject</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/settopmargin.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetTopMargin</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetTopMargin</h1>\n<code>SetTopMargin(<b>float</b> margin)</code>\n<h2>Description</h2>\nDefines the top margin. The method can be called before creating the first page.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>margin</code></dt>\n<dd>\nThe margin.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setleftmargin.htm\">SetLeftMargin</a>,\n<a href=\"setrightmargin.htm\">SetRightMargin</a>,\n<a href=\"setautopagebreak.htm\">SetAutoPageBreak</a>,\n<a href=\"setmargins.htm\">SetMargins</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setx.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetX</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetX</h1>\n<code>SetX(<b>float</b> x)</code>\n<h2>Description</h2>\nDefines the abscissa of the current position. If the passed value is negative, it is relative\nto the right of the page.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>x</code></dt>\n<dd>\nThe value of the abscissa.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"getx.htm\">GetX</a>,\n<a href=\"gety.htm\">GetY</a>,\n<a href=\"sety.htm\">SetY</a>,\n<a href=\"setxy.htm\">SetXY</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/setxy.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetXY</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetXY</h1>\n<code>SetXY(<b>float</b> x, <b>float</b> y)</code>\n<h2>Description</h2>\nDefines the abscissa and ordinate of the current position. If the passed values are negative,\nthey are relative respectively to the right and bottom of the page.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>x</code></dt>\n<dd>\nThe value of the abscissa.\n</dd>\n<dt><code>y</code></dt>\n<dd>\nThe value of the ordinate.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setx.htm\">SetX</a>,\n<a href=\"sety.htm\">SetY</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/sety.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>SetY</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>SetY</h1>\n<code>SetY(<b>float</b> y [, <b>boolean</b> resetX])</code>\n<h2>Description</h2>\nSets the ordinate and optionally moves the current abscissa back to the left margin. If the value\nis negative, it is relative to the bottom of the page.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>y</code></dt>\n<dd>\nThe value of the ordinate.\n</dd>\n<dt><code>resetX</code></dt>\n<dd>\nWhether to reset the abscissa. Default value: <code>true</code>.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"getx.htm\">GetX</a>,\n<a href=\"gety.htm\">GetY</a>,\n<a href=\"setx.htm\">SetX</a>,\n<a href=\"setxy.htm\">SetXY</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/text.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Text</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Text</h1>\n<code>Text(<b>float</b> x, <b>float</b> y, <b>string</b> txt)</code>\n<h2>Description</h2>\nPrints a character string. The origin is on the left of the first character, on the baseline.\nThis method allows to place a string precisely on the page, but it is usually easier to use\nCell(), MultiCell() or Write() which are the standard methods to print text.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>x</code></dt>\n<dd>\nAbscissa of the origin.\n</dd>\n<dt><code>y</code></dt>\n<dd>\nOrdinate of the origin.\n</dd>\n<dt><code>txt</code></dt>\n<dd>\nString to print.\n</dd>\n</dl>\n<h2>See also</h2>\n<a href=\"setfont.htm\">SetFont</a>,\n<a href=\"settextcolor.htm\">SetTextColor</a>,\n<a href=\"cell.htm\">Cell</a>,\n<a href=\"multicell.htm\">MultiCell</a>,\n<a href=\"write.htm\">Write</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/doc/write.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Write</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Write</h1>\n<code>Write(<b>float</b> h, <b>string</b> txt [, <b>mixed</b> link])</code>\n<h2>Description</h2>\nThis method prints text from the current position. When the right margin is reached (or the \\n\ncharacter is met) a line break occurs and text continues from the left margin. Upon method exit,\nthe current position is left just at the end of the text.\n<br>\nIt is possible to put a link on the text.\n<h2>Parameters</h2>\n<dl class=\"param\">\n<dt><code>h</code></dt>\n<dd>\nLine height.\n</dd>\n<dt><code>txt</code></dt>\n<dd>\nString to print.\n</dd>\n<dt><code>link</code></dt>\n<dd>\nURL or identifier returned by AddLink().\n</dd>\n</dl>\n<h2>Example</h2>\n<div class=\"doc-source\">\n<pre><code>// Begin with regular font\n$pdf-&gt;SetFont('Arial','',14);\n$pdf-&gt;Write(5,'Visit ');\n// Then put a blue underlined link\n$pdf-&gt;SetTextColor(0,0,255);\n$pdf-&gt;SetFont('','U');\n$pdf-&gt;Write(5,'www.fpdf.org','http://www.fpdf.org');</code></pre>\n</div>\n<h2>See also</h2>\n<a href=\"setfont.htm\">SetFont</a>,\n<a href=\"settextcolor.htm\">SetTextColor</a>,\n<a href=\"addlink.htm\">AddLink</a>,\n<a href=\"multicell.htm\">MultiCell</a>,\n<a href=\"setautopagebreak.htm\">SetAutoPageBreak</a>\n<hr style=\"margin-top:1.5em\">\n<div style=\"text-align:center\"><a href=\"index.htm\">Index</a></div>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/font/courier.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Courier';\n$up = -100;\n$ut = 50;\nfor($i=0;$i<=255;$i++)\n\t$cw[chr($i)] = 600;\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/courierb.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Courier-Bold';\n$up = -100;\n$ut = 50;\nfor($i=0;$i<=255;$i++)\n\t$cw[chr($i)] = 600;\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/courierbi.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Courier-BoldOblique';\n$up = -100;\n$ut = 50;\nfor($i=0;$i<=255;$i++)\n\t$cw[chr($i)] = 600;\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/courieri.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Courier-Oblique';\n$up = -100;\n$ut = 50;\nfor($i=0;$i<=255;$i++)\n\t$cw[chr($i)] = 600;\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/helvetica.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Helvetica';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,\n\tchr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'\"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,\n\t','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,\n\t'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,\n\t'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,\n\t'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,\n\tchr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,\n\tchr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,\n\tchr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,\n\tchr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,\n\tchr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,\n\tchr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/helveticab.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Helvetica-Bold';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,\n\tchr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'\"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,\n\t','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,\n\t'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,\n\t'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,\n\t'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,\n\tchr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,\n\tchr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,\n\tchr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,\n\tchr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,\n\tchr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,\n\tchr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/helveticabi.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Helvetica-BoldOblique';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,\n\tchr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'\"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,\n\t','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,\n\t'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,\n\t'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,\n\t'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,\n\tchr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,\n\tchr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,\n\tchr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,\n\tchr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,\n\tchr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,\n\tchr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/helveticai.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Helvetica-Oblique';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,\n\tchr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'\"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,\n\t','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,\n\t'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,\n\t'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,\n\t'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,\n\tchr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,\n\tchr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,\n\tchr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,\n\tchr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,\n\tchr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,\n\tchr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/symbol.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Symbol';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,\n\tchr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'\"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,\n\t','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,\n\t'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,\n\t'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,\n\t'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,\n\tchr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,\n\tchr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,\n\tchr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,\n\tchr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,\n\tchr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,\n\tchr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);\n$uv = array(32=>160,33=>33,34=>8704,35=>35,36=>8707,37=>array(37,2),39=>8715,40=>array(40,2),42=>8727,43=>array(43,2),45=>8722,46=>array(46,18),64=>8773,65=>array(913,2),67=>935,68=>array(916,2),70=>934,71=>915,72=>919,73=>921,74=>977,75=>array(922,4),79=>array(927,2),81=>920,82=>929,83=>array(931,3),86=>962,87=>937,88=>926,89=>936,90=>918,91=>91,92=>8756,93=>93,94=>8869,95=>95,96=>63717,97=>array(945,2),99=>967,100=>array(948,2),102=>966,103=>947,104=>951,105=>953,106=>981,107=>array(954,4),111=>array(959,2),113=>952,114=>961,115=>array(963,3),118=>982,119=>969,120=>958,121=>968,122=>950,123=>array(123,3),126=>8764,160=>8364,161=>978,162=>8242,163=>8804,164=>8725,165=>8734,166=>402,167=>9827,168=>9830,169=>9829,170=>9824,171=>8596,172=>array(8592,4),176=>array(176,2),178=>8243,179=>8805,180=>215,181=>8733,182=>8706,183=>8226,184=>247,185=>array(8800,2),187=>8776,188=>8230,189=>array(63718,2),191=>8629,192=>8501,193=>8465,194=>8476,195=>8472,196=>8855,197=>8853,198=>8709,199=>array(8745,2),201=>8835,202=>8839,203=>8836,204=>8834,205=>8838,206=>array(8712,2),208=>8736,209=>8711,210=>63194,211=>63193,212=>63195,213=>8719,214=>8730,215=>8901,216=>172,217=>array(8743,2),219=>8660,220=>array(8656,4),224=>9674,225=>9001,226=>array(63720,3),229=>8721,230=>array(63723,10),241=>9002,242=>8747,243=>8992,244=>63733,245=>8993,246=>array(63734,9));\n?>\n"
  },
  {
    "path": "tool/pdf/font/times.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Times-Roman';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,\n\tchr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'\"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,\n\t','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,\n\t'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,\n\t'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,\n\t'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,\n\tchr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,\n\tchr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,\n\tchr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,\n\tchr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,\n\tchr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,\n\tchr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/timesb.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Times-Bold';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,\n\tchr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'\"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,\n\t','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722,\n\t'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000,\n\t'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833,\n\t'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,\n\tchr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,\n\tchr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333,\n\tchr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,\n\tchr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,\n\tchr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,\n\tchr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/timesbi.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Times-BoldItalic';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,\n\tchr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'\"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,\n\t','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,\n\t'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,\n\t'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,\n\t'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,\n\tchr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,\n\tchr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,\n\tchr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,\n\tchr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,\n\tchr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,\n\tchr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/timesi.php",
    "content": "<?php\n$type = 'Core';\n$name = 'Times-Italic';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,\n\tchr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'\"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675,\n\t','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611,\n\t'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833,\n\t'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722,\n\t'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,\n\tchr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980,\n\tchr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333,\n\tchr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611,\n\tchr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,\n\tchr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,\n\tchr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444);\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n?>\n"
  },
  {
    "path": "tool/pdf/font/zapfdingbats.php",
    "content": "<?php\n$type = 'Core';\n$name = 'ZapfDingbats';\n$up = -100;\n$ut = 50;\n$cw = array(\n\tchr(0)=>0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0,\n\tchr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'\"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939,\n\t','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692,\n\t'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776,\n\t'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873,\n\t'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317,\n\tchr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,\n\tchr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788,\n\tchr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788,\n\tchr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918,\n\tchr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874,\n\tchr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0);\n$uv = array(32=>32,33=>array(9985,4),37=>9742,38=>array(9990,4),42=>9755,43=>9758,44=>array(9996,28),72=>9733,73=>array(10025,35),108=>9679,109=>10061,110=>9632,111=>array(10063,4),115=>9650,116=>9660,117=>9670,118=>10070,119=>9687,120=>array(10072,7),128=>array(10088,14),161=>array(10081,7),168=>9827,169=>9830,170=>9829,171=>9824,172=>array(9312,10),182=>array(10102,31),213=>8594,214=>array(8596,2),216=>array(10136,24),241=>array(10161,14));\n?>\n"
  },
  {
    "path": "tool/pdf/fpdf.css",
    "content": "body {font-family:\"Times New Roman\",serif}\nh1 {font:bold 135% Arial,sans-serif; color:#4000A0; margin-bottom:0.9em}\nh2 {font:bold 95% Arial,sans-serif; color:#900000; margin-top:1.5em; margin-bottom:1em}\ndl.param dt {text-decoration:underline}\ndl.param dd {margin-top:1em; margin-bottom:1em}\ndl.param ul {margin-top:1em; margin-bottom:1em}\ntt, code, kbd {font-family:\"Courier New\",Courier,monospace; font-size:82%}\ndiv.source {margin-top:1.4em; margin-bottom:1.3em}\ndiv.source pre {display:table; border:1px solid #24246A; width:100%; margin:0em; font-family:inherit; font-size:100%}\ndiv.source code {display:block; border:1px solid #C5C5EC; background-color:#F0F5FF; padding:6px; color:#000000}\ndiv.doc-source {margin-top:1.4em; margin-bottom:1.3em}\ndiv.doc-source pre {display:table; width:100%; margin:0em; font-family:inherit; font-size:100%}\ndiv.doc-source code {display:block; background-color:#E0E0E0; padding:4px}\n.kw {color:#000080; font-weight:bold}\n.str {color:#CC0000}\n.cmt {color:#008000}\np.demo {text-align:center; margin-top:-0.9em}\na.demo {text-decoration:none; font-weight:bold; color:#0000CC}\na.demo:link {text-decoration:none; font-weight:bold; color:#0000CC}\na.demo:hover {text-decoration:none; font-weight:bold; color:#0000FF}\na.demo:active {text-decoration:none; font-weight:bold; color:#0000FF}\n"
  },
  {
    "path": "tool/pdf/fpdf.php",
    "content": "<?php\n/*******************************************************************************\n* FPDF                                                                         *\n*                                                                              *\n* Version: 1.81                                                                *\n* Date:    2015-12-20                                                          *\n* Author:  Olivier PLATHEY                                                     *\n*******************************************************************************/\n\ndefine('FPDF_VERSION','1.81');\n\nclass FPDF\n{\nprotected $page;               // current page number\nprotected $n;                  // current object number\nprotected $offsets;            // array of object offsets\nprotected $buffer;             // buffer holding in-memory PDF\nprotected $pages;              // array containing pages\nprotected $state;              // current document state\nprotected $compress;           // compression flag\nprotected $k;                  // scale factor (number of points in user unit)\nprotected $DefOrientation;     // default orientation\nprotected $CurOrientation;     // current orientation\nprotected $StdPageSizes;       // standard page sizes\nprotected $DefPageSize;        // default page size\nprotected $CurPageSize;        // current page size\nprotected $CurRotation;        // current page rotation\nprotected $PageInfo;           // page-related data\nprotected $wPt, $hPt;          // dimensions of current page in points\nprotected $w, $h;              // dimensions of current page in user unit\nprotected $lMargin;            // left margin\nprotected $tMargin;            // top margin\nprotected $rMargin;            // right margin\nprotected $bMargin;            // page break margin\nprotected $cMargin;            // cell margin\nprotected $x, $y;              // current position in user unit\nprotected $lasth;              // height of last printed cell\nprotected $LineWidth;          // line width in user unit\nprotected $fontpath;           // path containing fonts\nprotected $CoreFonts;          // array of core font names\nprotected $fonts;              // array of used fonts\nprotected $FontFiles;          // array of font files\nprotected $encodings;          // array of encodings\nprotected $cmaps;              // array of ToUnicode CMaps\nprotected $FontFamily;         // current font family\nprotected $FontStyle;          // current font style\nprotected $underline;          // underlining flag\nprotected $CurrentFont;        // current font info\nprotected $FontSizePt;         // current font size in points\nprotected $FontSize;           // current font size in user unit\nprotected $DrawColor;          // commands for drawing color\nprotected $FillColor;          // commands for filling color\nprotected $TextColor;          // commands for text color\nprotected $ColorFlag;          // indicates whether fill and text colors are different\nprotected $WithAlpha;          // indicates whether alpha channel is used\nprotected $ws;                 // word spacing\nprotected $images;             // array of used images\nprotected $PageLinks;          // array of links in pages\nprotected $links;              // array of internal links\nprotected $AutoPageBreak;      // automatic page breaking\nprotected $PageBreakTrigger;   // threshold used to trigger page breaks\nprotected $InHeader;           // flag set when processing header\nprotected $InFooter;           // flag set when processing footer\nprotected $AliasNbPages;       // alias for total number of pages\nprotected $ZoomMode;           // zoom display mode\nprotected $LayoutMode;         // layout display mode\nprotected $metadata;           // document properties\nprotected $PDFVersion;         // PDF version number\n\n/*******************************************************************************\n*                               Public methods                                 *\n*******************************************************************************/\n\nfunction __construct($orientation='P', $unit='mm', $size='A4')\n{\n\t// Some checks\n\t$this->_dochecks();\n\t// Initialization of properties\n\t$this->state = 0;\n\t$this->page = 0;\n\t$this->n = 2;\n\t$this->buffer = '';\n\t$this->pages = array();\n\t$this->PageInfo = array();\n\t$this->fonts = array();\n\t$this->FontFiles = array();\n\t$this->encodings = array();\n\t$this->cmaps = array();\n\t$this->images = array();\n\t$this->links = array();\n\t$this->InHeader = false;\n\t$this->InFooter = false;\n\t$this->lasth = 0;\n\t$this->FontFamily = '';\n\t$this->FontStyle = '';\n\t$this->FontSizePt = 12;\n\t$this->underline = false;\n\t$this->DrawColor = '0 G';\n\t$this->FillColor = '0 g';\n\t$this->TextColor = '0 g';\n\t$this->ColorFlag = false;\n\t$this->WithAlpha = false;\n\t$this->ws = 0;\n\t// Font path\n\tif(defined('FPDF_FONTPATH'))\n\t{\n\t\t$this->fontpath = FPDF_FONTPATH;\n\t\tif(substr($this->fontpath,-1)!='/' && substr($this->fontpath,-1)!='\\\\')\n\t\t\t$this->fontpath .= '/';\n\t}\n\telseif(is_dir(dirname(__FILE__).'/font'))\n\t\t$this->fontpath = dirname(__FILE__).'/font/';\n\telse\n\t\t$this->fontpath = '';\n\t// Core fonts\n\t$this->CoreFonts = array('courier', 'helvetica', 'times', 'symbol', 'zapfdingbats');\n\t// Scale factor\n\tif($unit=='pt')\n\t\t$this->k = 1;\n\telseif($unit=='mm')\n\t\t$this->k = 72/25.4;\n\telseif($unit=='cm')\n\t\t$this->k = 72/2.54;\n\telseif($unit=='in')\n\t\t$this->k = 72;\n\telse\n\t\t$this->Error('Incorrect unit: '.$unit);\n\t// Page sizes\n\t$this->StdPageSizes = array('a3'=>array(841.89,1190.55), 'a4'=>array(595.28,841.89), 'a5'=>array(420.94,595.28),\n\t\t'letter'=>array(612,792), 'legal'=>array(612,1008));\n\t$size = $this->_getpagesize($size);\n\t$this->DefPageSize = $size;\n\t$this->CurPageSize = $size;\n\t// Page orientation\n\t$orientation = strtolower($orientation);\n\tif($orientation=='p' || $orientation=='portrait')\n\t{\n\t\t$this->DefOrientation = 'P';\n\t\t$this->w = $size[0];\n\t\t$this->h = $size[1];\n\t}\n\telseif($orientation=='l' || $orientation=='landscape')\n\t{\n\t\t$this->DefOrientation = 'L';\n\t\t$this->w = $size[1];\n\t\t$this->h = $size[0];\n\t}\n\telse\n\t\t$this->Error('Incorrect orientation: '.$orientation);\n\t$this->CurOrientation = $this->DefOrientation;\n\t$this->wPt = $this->w*$this->k;\n\t$this->hPt = $this->h*$this->k;\n\t// Page rotation\n\t$this->CurRotation = 0;\n\t// Page margins (1 cm)\n\t$margin = 28.35/$this->k;\n\t$this->SetMargins($margin,$margin);\n\t// Interior cell margin (1 mm)\n\t$this->cMargin = $margin/10;\n\t// Line width (0.2 mm)\n\t$this->LineWidth = .567/$this->k;\n\t// Automatic page break\n\t$this->SetAutoPageBreak(true,2*$margin);\n\t// Default display mode\n\t$this->SetDisplayMode('default');\n\t// Enable compression\n\t$this->SetCompression(true);\n\t// Set default PDF version number\n\t$this->PDFVersion = '1.3';\n}\n\nfunction SetMargins($left, $top, $right=null)\n{\n\t// Set left, top and right margins\n\t$this->lMargin = $left;\n\t$this->tMargin = $top;\n\tif($right===null)\n\t\t$right = $left;\n\t$this->rMargin = $right;\n}\n\nfunction SetLeftMargin($margin)\n{\n\t// Set left margin\n\t$this->lMargin = $margin;\n\tif($this->page>0 && $this->x<$margin)\n\t\t$this->x = $margin;\n}\n\nfunction SetTopMargin($margin)\n{\n\t// Set top margin\n\t$this->tMargin = $margin;\n}\n\nfunction SetRightMargin($margin)\n{\n\t// Set right margin\n\t$this->rMargin = $margin;\n}\n\nfunction SetAutoPageBreak($auto, $margin=0)\n{\n\t// Set auto page break mode and triggering margin\n\t$this->AutoPageBreak = $auto;\n\t$this->bMargin = $margin;\n\t$this->PageBreakTrigger = $this->h-$margin;\n}\n\nfunction SetDisplayMode($zoom, $layout='default')\n{\n\t// Set display mode in viewer\n\tif($zoom=='fullpage' || $zoom=='fullwidth' || $zoom=='real' || $zoom=='default' || !is_string($zoom))\n\t\t$this->ZoomMode = $zoom;\n\telse\n\t\t$this->Error('Incorrect zoom display mode: '.$zoom);\n\tif($layout=='single' || $layout=='continuous' || $layout=='two' || $layout=='default')\n\t\t$this->LayoutMode = $layout;\n\telse\n\t\t$this->Error('Incorrect layout display mode: '.$layout);\n}\n\nfunction SetCompression($compress)\n{\n\t// Set page compression\n\tif(function_exists('gzcompress'))\n\t\t$this->compress = $compress;\n\telse\n\t\t$this->compress = false;\n}\n\nfunction SetTitle($title, $isUTF8=false)\n{\n\t// Title of document\n\t$this->metadata['Title'] = $isUTF8 ? $title : utf8_encode($title);\n}\n\nfunction SetAuthor($author, $isUTF8=false)\n{\n\t// Author of document\n\t$this->metadata['Author'] = $isUTF8 ? $author : utf8_encode($author);\n}\n\nfunction SetSubject($subject, $isUTF8=false)\n{\n\t// Subject of document\n\t$this->metadata['Subject'] = $isUTF8 ? $subject : utf8_encode($subject);\n}\n\nfunction SetKeywords($keywords, $isUTF8=false)\n{\n\t// Keywords of document\n\t$this->metadata['Keywords'] = $isUTF8 ? $keywords : utf8_encode($keywords);\n}\n\nfunction SetCreator($creator, $isUTF8=false)\n{\n\t// Creator of document\n\t$this->metadata['Creator'] = $isUTF8 ? $creator : utf8_encode($creator);\n}\n\nfunction AliasNbPages($alias='{nb}')\n{\n\t// Define an alias for total number of pages\n\t$this->AliasNbPages = $alias;\n}\n\nfunction Error($msg)\n{\n\t// Fatal error\n\tthrow new Exception('FPDF error: '.$msg);\n}\n\nfunction Close()\n{\n\t// Terminate document\n\tif($this->state==3)\n\t\treturn;\n\tif($this->page==0)\n\t\t$this->AddPage();\n\t// Page footer\n\t$this->InFooter = true;\n\t$this->Footer();\n\t$this->InFooter = false;\n\t// Close page\n\t$this->_endpage();\n\t// Close document\n\t$this->_enddoc();\n}\n\nfunction AddPage($orientation='', $size='', $rotation=0)\n{\n\t// Start a new page\n\tif($this->state==3)\n\t\t$this->Error('The document is closed');\n\t$family = $this->FontFamily;\n\t$style = $this->FontStyle.($this->underline ? 'U' : '');\n\t$fontsize = $this->FontSizePt;\n\t$lw = $this->LineWidth;\n\t$dc = $this->DrawColor;\n\t$fc = $this->FillColor;\n\t$tc = $this->TextColor;\n\t$cf = $this->ColorFlag;\n\tif($this->page>0)\n\t{\n\t\t// Page footer\n\t\t$this->InFooter = true;\n\t\t$this->Footer();\n\t\t$this->InFooter = false;\n\t\t// Close page\n\t\t$this->_endpage();\n\t}\n\t// Start new page\n\t$this->_beginpage($orientation,$size,$rotation);\n\t// Set line cap style to square\n\t$this->_out('2 J');\n\t// Set line width\n\t$this->LineWidth = $lw;\n\t$this->_out(sprintf('%.2F w',$lw*$this->k));\n\t// Set font\n\tif($family)\n\t\t$this->SetFont($family,$style,$fontsize);\n\t// Set colors\n\t$this->DrawColor = $dc;\n\tif($dc!='0 G')\n\t\t$this->_out($dc);\n\t$this->FillColor = $fc;\n\tif($fc!='0 g')\n\t\t$this->_out($fc);\n\t$this->TextColor = $tc;\n\t$this->ColorFlag = $cf;\n\t// Page header\n\t$this->InHeader = true;\n\t$this->Header();\n\t$this->InHeader = false;\n\t// Restore line width\n\tif($this->LineWidth!=$lw)\n\t{\n\t\t$this->LineWidth = $lw;\n\t\t$this->_out(sprintf('%.2F w',$lw*$this->k));\n\t}\n\t// Restore font\n\tif($family)\n\t\t$this->SetFont($family,$style,$fontsize);\n\t// Restore colors\n\tif($this->DrawColor!=$dc)\n\t{\n\t\t$this->DrawColor = $dc;\n\t\t$this->_out($dc);\n\t}\n\tif($this->FillColor!=$fc)\n\t{\n\t\t$this->FillColor = $fc;\n\t\t$this->_out($fc);\n\t}\n\t$this->TextColor = $tc;\n\t$this->ColorFlag = $cf;\n}\n\nfunction Header()\n{\n\t// To be implemented in your own inherited class\n}\n\nfunction Footer()\n{\n\t// To be implemented in your own inherited class\n}\n\nfunction PageNo()\n{\n\t// Get current page number\n\treturn $this->page;\n}\n\nfunction SetDrawColor($r, $g=null, $b=null)\n{\n\t// Set color for all stroking operations\n\tif(($r==0 && $g==0 && $b==0) || $g===null)\n\t\t$this->DrawColor = sprintf('%.3F G',$r/255);\n\telse\n\t\t$this->DrawColor = sprintf('%.3F %.3F %.3F RG',$r/255,$g/255,$b/255);\n\tif($this->page>0)\n\t\t$this->_out($this->DrawColor);\n}\n\nfunction SetFillColor($r, $g=null, $b=null)\n{\n\t// Set color for all filling operations\n\tif(($r==0 && $g==0 && $b==0) || $g===null)\n\t\t$this->FillColor = sprintf('%.3F g',$r/255);\n\telse\n\t\t$this->FillColor = sprintf('%.3F %.3F %.3F rg',$r/255,$g/255,$b/255);\n\t$this->ColorFlag = ($this->FillColor!=$this->TextColor);\n\tif($this->page>0)\n\t\t$this->_out($this->FillColor);\n}\n\nfunction SetTextColor($r, $g=null, $b=null)\n{\n\t// Set color for text\n\tif(($r==0 && $g==0 && $b==0) || $g===null)\n\t\t$this->TextColor = sprintf('%.3F g',$r/255);\n\telse\n\t\t$this->TextColor = sprintf('%.3F %.3F %.3F rg',$r/255,$g/255,$b/255);\n\t$this->ColorFlag = ($this->FillColor!=$this->TextColor);\n}\n\nfunction GetStringWidth($s)\n{\n\t// Get width of a string in the current font\n\t$s = (string)$s;\n\t$cw = &$this->CurrentFont['cw'];\n\t$w = 0;\n\t$l = strlen($s);\n\tfor($i=0;$i<$l;$i++)\n\t\t$w += $cw[$s[$i]];\n\treturn $w*$this->FontSize/1000;\n}\n\nfunction SetLineWidth($width)\n{\n\t// Set line width\n\t$this->LineWidth = $width;\n\tif($this->page>0)\n\t\t$this->_out(sprintf('%.2F w',$width*$this->k));\n}\n\nfunction Line($x1, $y1, $x2, $y2)\n{\n\t// Draw a line\n\t$this->_out(sprintf('%.2F %.2F m %.2F %.2F l S',$x1*$this->k,($this->h-$y1)*$this->k,$x2*$this->k,($this->h-$y2)*$this->k));\n}\n\nfunction Rect($x, $y, $w, $h, $style='')\n{\n\t// Draw a rectangle\n\tif($style=='F')\n\t\t$op = 'f';\n\telseif($style=='FD' || $style=='DF')\n\t\t$op = 'B';\n\telse\n\t\t$op = 'S';\n\t$this->_out(sprintf('%.2F %.2F %.2F %.2F re %s',$x*$this->k,($this->h-$y)*$this->k,$w*$this->k,-$h*$this->k,$op));\n}\n\nfunction AddFont($family, $style='', $file='')\n{\n\t// Add a TrueType, OpenType or Type1 font\n\t$family = strtolower($family);\n\tif($file=='')\n\t\t$file = str_replace(' ','',$family).strtolower($style).'.php';\n\t$style = strtoupper($style);\n\tif($style=='IB')\n\t\t$style = 'BI';\n\t$fontkey = $family.$style;\n\tif(isset($this->fonts[$fontkey]))\n\t\treturn;\n\t$info = $this->_loadfont($file);\n\t$info['i'] = count($this->fonts)+1;\n\tif(!empty($info['file']))\n\t{\n\t\t// Embedded font\n\t\tif($info['type']=='TrueType')\n\t\t\t$this->FontFiles[$info['file']] = array('length1'=>$info['originalsize']);\n\t\telse\n\t\t\t$this->FontFiles[$info['file']] = array('length1'=>$info['size1'], 'length2'=>$info['size2']);\n\t}\n\t$this->fonts[$fontkey] = $info;\n}\n\nfunction SetFont($family, $style='', $size=0)\n{\n\t// Select a font; size given in points\n\tif($family=='')\n\t\t$family = $this->FontFamily;\n\telse\n\t\t$family = strtolower($family);\n\t$style = strtoupper($style);\n\tif(strpos($style,'U')!==false)\n\t{\n\t\t$this->underline = true;\n\t\t$style = str_replace('U','',$style);\n\t}\n\telse\n\t\t$this->underline = false;\n\tif($style=='IB')\n\t\t$style = 'BI';\n\tif($size==0)\n\t\t$size = $this->FontSizePt;\n\t// Test if font is already selected\n\tif($this->FontFamily==$family && $this->FontStyle==$style && $this->FontSizePt==$size)\n\t\treturn;\n\t// Test if font is already loaded\n\t$fontkey = $family.$style;\n\tif(!isset($this->fonts[$fontkey]))\n\t{\n\t\t// Test if one of the core fonts\n\t\tif($family=='arial')\n\t\t\t$family = 'helvetica';\n\t\tif(in_array($family,$this->CoreFonts))\n\t\t{\n\t\t\tif($family=='symbol' || $family=='zapfdingbats')\n\t\t\t\t$style = '';\n\t\t\t$fontkey = $family.$style;\n\t\t\tif(!isset($this->fonts[$fontkey]))\n\t\t\t\t$this->AddFont($family,$style);\n\t\t}\n\t\telse\n\t\t\t$this->Error('Undefined font: '.$family.' '.$style);\n\t}\n\t// Select it\n\t$this->FontFamily = $family;\n\t$this->FontStyle = $style;\n\t$this->FontSizePt = $size;\n\t$this->FontSize = $size/$this->k;\n\t$this->CurrentFont = &$this->fonts[$fontkey];\n\tif($this->page>0)\n\t\t$this->_out(sprintf('BT /F%d %.2F Tf ET',$this->CurrentFont['i'],$this->FontSizePt));\n}\n\nfunction SetFontSize($size)\n{\n\t// Set font size in points\n\tif($this->FontSizePt==$size)\n\t\treturn;\n\t$this->FontSizePt = $size;\n\t$this->FontSize = $size/$this->k;\n\tif($this->page>0)\n\t\t$this->_out(sprintf('BT /F%d %.2F Tf ET',$this->CurrentFont['i'],$this->FontSizePt));\n}\n\nfunction AddLink()\n{\n\t// Create a new internal link\n\t$n = count($this->links)+1;\n\t$this->links[$n] = array(0, 0);\n\treturn $n;\n}\n\nfunction SetLink($link, $y=0, $page=-1)\n{\n\t// Set destination of internal link\n\tif($y==-1)\n\t\t$y = $this->y;\n\tif($page==-1)\n\t\t$page = $this->page;\n\t$this->links[$link] = array($page, $y);\n}\n\nfunction Link($x, $y, $w, $h, $link)\n{\n\t// Put a link on the page\n\t$this->PageLinks[$this->page][] = array($x*$this->k, $this->hPt-$y*$this->k, $w*$this->k, $h*$this->k, $link);\n}\n\nfunction Text($x, $y, $txt)\n{\n\t// Output a string\n\tif(!isset($this->CurrentFont))\n\t\t$this->Error('No font has been set');\n\t$s = sprintf('BT %.2F %.2F Td (%s) Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt));\n\tif($this->underline && $txt!='')\n\t\t$s .= ' '.$this->_dounderline($x,$y,$txt);\n\tif($this->ColorFlag)\n\t\t$s = 'q '.$this->TextColor.' '.$s.' Q';\n\t$this->_out($s);\n}\n\nfunction AcceptPageBreak()\n{\n\t// Accept automatic page break or not\n\treturn $this->AutoPageBreak;\n}\n\nfunction Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='')\n{\n\t// Output a cell\n\t$k = $this->k;\n\tif($this->y+$h>$this->PageBreakTrigger && !$this->InHeader && !$this->InFooter && $this->AcceptPageBreak())\n\t{\n\t\t// Automatic page break\n\t\t$x = $this->x;\n\t\t$ws = $this->ws;\n\t\tif($ws>0)\n\t\t{\n\t\t\t$this->ws = 0;\n\t\t\t$this->_out('0 Tw');\n\t\t}\n\t\t$this->AddPage($this->CurOrientation,$this->CurPageSize,$this->CurRotation);\n\t\t$this->x = $x;\n\t\tif($ws>0)\n\t\t{\n\t\t\t$this->ws = $ws;\n\t\t\t$this->_out(sprintf('%.3F Tw',$ws*$k));\n\t\t}\n\t}\n\tif($w==0)\n\t\t$w = $this->w-$this->rMargin-$this->x;\n\t$s = '';\n\tif($fill || $border==1)\n\t{\n\t\tif($fill)\n\t\t\t$op = ($border==1) ? 'B' : 'f';\n\t\telse\n\t\t\t$op = 'S';\n\t\t$s = sprintf('%.2F %.2F %.2F %.2F re %s ',$this->x*$k,($this->h-$this->y)*$k,$w*$k,-$h*$k,$op);\n\t}\n\tif(is_string($border))\n\t{\n\t\t$x = $this->x;\n\t\t$y = $this->y;\n\t\tif(strpos($border,'L')!==false)\n\t\t\t$s .= sprintf('%.2F %.2F m %.2F %.2F l S ',$x*$k,($this->h-$y)*$k,$x*$k,($this->h-($y+$h))*$k);\n\t\tif(strpos($border,'T')!==false)\n\t\t\t$s .= sprintf('%.2F %.2F m %.2F %.2F l S ',$x*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-$y)*$k);\n\t\tif(strpos($border,'R')!==false)\n\t\t\t$s .= sprintf('%.2F %.2F m %.2F %.2F l S ',($x+$w)*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-($y+$h))*$k);\n\t\tif(strpos($border,'B')!==false)\n\t\t\t$s .= sprintf('%.2F %.2F m %.2F %.2F l S ',$x*$k,($this->h-($y+$h))*$k,($x+$w)*$k,($this->h-($y+$h))*$k);\n\t}\n\tif($txt!=='')\n\t{\n\t\tif(!isset($this->CurrentFont))\n\t\t\t$this->Error('No font has been set');\n\t\tif($align=='R')\n\t\t\t$dx = $w-$this->cMargin-$this->GetStringWidth($txt);\n\t\telseif($align=='C')\n\t\t\t$dx = ($w-$this->GetStringWidth($txt))/2;\n\t\telse\n\t\t\t$dx = $this->cMargin;\n\t\tif($this->ColorFlag)\n\t\t\t$s .= 'q '.$this->TextColor.' ';\n\t\t$s .= sprintf('BT %.2F %.2F Td (%s) Tj ET',($this->x+$dx)*$k,($this->h-($this->y+.5*$h+.3*$this->FontSize))*$k,$this->_escape($txt));\n\t\tif($this->underline)\n\t\t\t$s .= ' '.$this->_dounderline($this->x+$dx,$this->y+.5*$h+.3*$this->FontSize,$txt);\n\t\tif($this->ColorFlag)\n\t\t\t$s .= ' Q';\n\t\tif($link)\n\t\t\t$this->Link($this->x+$dx,$this->y+.5*$h-.5*$this->FontSize,$this->GetStringWidth($txt),$this->FontSize,$link);\n\t}\n\tif($s)\n\t\t$this->_out($s);\n\t$this->lasth = $h;\n\tif($ln>0)\n\t{\n\t\t// Go to next line\n\t\t$this->y += $h;\n\t\tif($ln==1)\n\t\t\t$this->x = $this->lMargin;\n\t}\n\telse\n\t\t$this->x += $w;\n}\n\nfunction MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false)\n{\n\t// Output text with automatic or explicit line breaks\n\tif(!isset($this->CurrentFont))\n\t\t$this->Error('No font has been set');\n\t$cw = &$this->CurrentFont['cw'];\n\tif($w==0)\n\t\t$w = $this->w-$this->rMargin-$this->x;\n\t$wmax = ($w-2*$this->cMargin)*1000/$this->FontSize;\n\t$s = str_replace(\"\\r\",'',$txt);\n\t$nb = strlen($s);\n\tif($nb>0 && $s[$nb-1]==\"\\n\")\n\t\t$nb--;\n\t$b = 0;\n\tif($border)\n\t{\n\t\tif($border==1)\n\t\t{\n\t\t\t$border = 'LTRB';\n\t\t\t$b = 'LRT';\n\t\t\t$b2 = 'LR';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$b2 = '';\n\t\t\tif(strpos($border,'L')!==false)\n\t\t\t\t$b2 .= 'L';\n\t\t\tif(strpos($border,'R')!==false)\n\t\t\t\t$b2 .= 'R';\n\t\t\t$b = (strpos($border,'T')!==false) ? $b2.'T' : $b2;\n\t\t}\n\t}\n\t$sep = -1;\n\t$i = 0;\n\t$j = 0;\n\t$l = 0;\n\t$ns = 0;\n\t$nl = 1;\n\twhile($i<$nb)\n\t{\n\t\t// Get next character\n\t\t$c = $s[$i];\n\t\tif($c==\"\\n\")\n\t\t{\n\t\t\t// Explicit line break\n\t\t\tif($this->ws>0)\n\t\t\t{\n\t\t\t\t$this->ws = 0;\n\t\t\t\t$this->_out('0 Tw');\n\t\t\t}\n\t\t\t$this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);\n\t\t\t$i++;\n\t\t\t$sep = -1;\n\t\t\t$j = $i;\n\t\t\t$l = 0;\n\t\t\t$ns = 0;\n\t\t\t$nl++;\n\t\t\tif($border && $nl==2)\n\t\t\t\t$b = $b2;\n\t\t\tcontinue;\n\t\t}\n\t\tif($c==' ')\n\t\t{\n\t\t\t$sep = $i;\n\t\t\t$ls = $l;\n\t\t\t$ns++;\n\t\t}\n\t\t$l += $cw[$c];\n\t\tif($l>$wmax)\n\t\t{\n\t\t\t// Automatic line break\n\t\t\tif($sep==-1)\n\t\t\t{\n\t\t\t\tif($i==$j)\n\t\t\t\t\t$i++;\n\t\t\t\tif($this->ws>0)\n\t\t\t\t{\n\t\t\t\t\t$this->ws = 0;\n\t\t\t\t\t$this->_out('0 Tw');\n\t\t\t\t}\n\t\t\t\t$this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($align=='J')\n\t\t\t\t{\n\t\t\t\t\t$this->ws = ($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0;\n\t\t\t\t\t$this->_out(sprintf('%.3F Tw',$this->ws*$this->k));\n\t\t\t\t}\n\t\t\t\t$this->Cell($w,$h,substr($s,$j,$sep-$j),$b,2,$align,$fill);\n\t\t\t\t$i = $sep+1;\n\t\t\t}\n\t\t\t$sep = -1;\n\t\t\t$j = $i;\n\t\t\t$l = 0;\n\t\t\t$ns = 0;\n\t\t\t$nl++;\n\t\t\tif($border && $nl==2)\n\t\t\t\t$b = $b2;\n\t\t}\n\t\telse\n\t\t\t$i++;\n\t}\n\t// Last chunk\n\tif($this->ws>0)\n\t{\n\t\t$this->ws = 0;\n\t\t$this->_out('0 Tw');\n\t}\n\tif($border && strpos($border,'B')!==false)\n\t\t$b .= 'B';\n\t$this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);\n\t$this->x = $this->lMargin;\n}\n\nfunction Write($h, $txt, $link='')\n{\n\t// Output text in flowing mode\n\tif(!isset($this->CurrentFont))\n\t\t$this->Error('No font has been set');\n\t$cw = &$this->CurrentFont['cw'];\n\t$w = $this->w-$this->rMargin-$this->x;\n\t$wmax = ($w-2*$this->cMargin)*1000/$this->FontSize;\n\t$s = str_replace(\"\\r\",'',$txt);\n\t$nb = strlen($s);\n\t$sep = -1;\n\t$i = 0;\n\t$j = 0;\n\t$l = 0;\n\t$nl = 1;\n\twhile($i<$nb)\n\t{\n\t\t// Get next character\n\t\t$c = $s[$i];\n\t\tif($c==\"\\n\")\n\t\t{\n\t\t\t// Explicit line break\n\t\t\t$this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',false,$link);\n\t\t\t$i++;\n\t\t\t$sep = -1;\n\t\t\t$j = $i;\n\t\t\t$l = 0;\n\t\t\tif($nl==1)\n\t\t\t{\n\t\t\t\t$this->x = $this->lMargin;\n\t\t\t\t$w = $this->w-$this->rMargin-$this->x;\n\t\t\t\t$wmax = ($w-2*$this->cMargin)*1000/$this->FontSize;\n\t\t\t}\n\t\t\t$nl++;\n\t\t\tcontinue;\n\t\t}\n\t\tif($c==' ')\n\t\t\t$sep = $i;\n\t\t$l += $cw[$c];\n\t\tif($l>$wmax)\n\t\t{\n\t\t\t// Automatic line break\n\t\t\tif($sep==-1)\n\t\t\t{\n\t\t\t\tif($this->x>$this->lMargin)\n\t\t\t\t{\n\t\t\t\t\t// Move to next line\n\t\t\t\t\t$this->x = $this->lMargin;\n\t\t\t\t\t$this->y += $h;\n\t\t\t\t\t$w = $this->w-$this->rMargin-$this->x;\n\t\t\t\t\t$wmax = ($w-2*$this->cMargin)*1000/$this->FontSize;\n\t\t\t\t\t$i++;\n\t\t\t\t\t$nl++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif($i==$j)\n\t\t\t\t\t$i++;\n\t\t\t\t$this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',false,$link);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->Cell($w,$h,substr($s,$j,$sep-$j),0,2,'',false,$link);\n\t\t\t\t$i = $sep+1;\n\t\t\t}\n\t\t\t$sep = -1;\n\t\t\t$j = $i;\n\t\t\t$l = 0;\n\t\t\tif($nl==1)\n\t\t\t{\n\t\t\t\t$this->x = $this->lMargin;\n\t\t\t\t$w = $this->w-$this->rMargin-$this->x;\n\t\t\t\t$wmax = ($w-2*$this->cMargin)*1000/$this->FontSize;\n\t\t\t}\n\t\t\t$nl++;\n\t\t}\n\t\telse\n\t\t\t$i++;\n\t}\n\t// Last chunk\n\tif($i!=$j)\n\t\t$this->Cell($l/1000*$this->FontSize,$h,substr($s,$j),0,0,'',false,$link);\n}\n\nfunction Ln($h=null)\n{\n\t// Line feed; default value is the last cell height\n\t$this->x = $this->lMargin;\n\tif($h===null)\n\t\t$this->y += $this->lasth;\n\telse\n\t\t$this->y += $h;\n}\n\nfunction Image($file, $x=null, $y=null, $w=0, $h=0, $type='', $link='')\n{\n\t// Put an image on the page\n\tif($file=='')\n\t\t$this->Error('Image file name is empty');\n\tif(!isset($this->images[$file]))\n\t{\n\t\t// First use of this image, get info\n\t\tif($type=='')\n\t\t{\n\t\t\t$pos = strrpos($file,'.');\n\t\t\tif(!$pos)\n\t\t\t\t$this->Error('Image file has no extension and no type was specified: '.$file);\n\t\t\t$type = substr($file,$pos+1);\n\t\t}\n\t\t$type = strtolower($type);\n\t\tif($type=='jpeg')\n\t\t\t$type = 'jpg';\n\t\t$mtd = '_parse'.$type;\n\t\tif(!method_exists($this,$mtd))\n\t\t\t$this->Error('Unsupported image type: '.$type);\n\t\t$info = $this->$mtd($file);\n\t\t$info['i'] = count($this->images)+1;\n\t\t$this->images[$file] = $info;\n\t}\n\telse\n\t\t$info = $this->images[$file];\n\n\t// Automatic width and height calculation if needed\n\tif($w==0 && $h==0)\n\t{\n\t\t// Put image at 96 dpi\n\t\t$w = -96;\n\t\t$h = -96;\n\t}\n\tif($w<0)\n\t\t$w = -$info['w']*72/$w/$this->k;\n\tif($h<0)\n\t\t$h = -$info['h']*72/$h/$this->k;\n\tif($w==0)\n\t\t$w = $h*$info['w']/$info['h'];\n\tif($h==0)\n\t\t$h = $w*$info['h']/$info['w'];\n\n\t// Flowing mode\n\tif($y===null)\n\t{\n\t\tif($this->y+$h>$this->PageBreakTrigger && !$this->InHeader && !$this->InFooter && $this->AcceptPageBreak())\n\t\t{\n\t\t\t// Automatic page break\n\t\t\t$x2 = $this->x;\n\t\t\t$this->AddPage($this->CurOrientation,$this->CurPageSize,$this->CurRotation);\n\t\t\t$this->x = $x2;\n\t\t}\n\t\t$y = $this->y;\n\t\t$this->y += $h;\n\t}\n\n\tif($x===null)\n\t\t$x = $this->x;\n\t$this->_out(sprintf('q %.2F 0 0 %.2F %.2F %.2F cm /I%d Do Q',$w*$this->k,$h*$this->k,$x*$this->k,($this->h-($y+$h))*$this->k,$info['i']));\n\tif($link)\n\t\t$this->Link($x,$y,$w,$h,$link);\n}\n\nfunction GetPageWidth()\n{\n\t// Get current page width\n\treturn $this->w;\n}\n\nfunction GetPageHeight()\n{\n\t// Get current page height\n\treturn $this->h;\n}\n\nfunction GetX()\n{\n\t// Get x position\n\treturn $this->x;\n}\n\nfunction SetX($x)\n{\n\t// Set x position\n\tif($x>=0)\n\t\t$this->x = $x;\n\telse\n\t\t$this->x = $this->w+$x;\n}\n\nfunction GetY()\n{\n\t// Get y position\n\treturn $this->y;\n}\n\nfunction SetY($y, $resetX=true)\n{\n\t// Set y position and optionally reset x\n\tif($y>=0)\n\t\t$this->y = $y;\n\telse\n\t\t$this->y = $this->h+$y;\n\tif($resetX)\n\t\t$this->x = $this->lMargin;\n}\n\nfunction SetXY($x, $y)\n{\n\t// Set x and y positions\n\t$this->SetX($x);\n\t$this->SetY($y,false);\n}\n\nfunction Output($dest='', $name='', $isUTF8=false)\n{\n\t// Output PDF to some destination\n\t$this->Close();\n\tif(strlen($name)==1 && strlen($dest)!=1)\n\t{\n\t\t// Fix parameter order\n\t\t$tmp = $dest;\n\t\t$dest = $name;\n\t\t$name = $tmp;\n\t}\n\tif($dest=='')\n\t\t$dest = 'I';\n\tif($name=='')\n\t\t$name = 'doc.pdf';\n\tswitch(strtoupper($dest))\n\t{\n\t\tcase 'I':\n\t\t\t// Send to standard output\n\t\t\t$this->_checkoutput();\n\t\t\tif(PHP_SAPI!='cli')\n\t\t\t{\n\t\t\t\t// We send to a browser\n\t\t\t\theader('Content-Type: application/pdf');\n\t\t\t\theader('Content-Disposition: inline; '.$this->_httpencode('filename',$name,$isUTF8));\n\t\t\t\theader('Cache-Control: private, max-age=0, must-revalidate');\n\t\t\t\theader('Pragma: public');\n\t\t\t}\n\t\t\techo $this->buffer;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\t// Download file\n\t\t\t$this->_checkoutput();\n\t\t\theader('Content-Type: application/x-download');\n\t\t\theader('Content-Disposition: attachment; '.$this->_httpencode('filename',$name,$isUTF8));\n\t\t\theader('Cache-Control: private, max-age=0, must-revalidate');\n\t\t\theader('Pragma: public');\n\t\t\techo $this->buffer;\n\t\t\tbreak;\n\t\tcase 'F':\n\t\t\t// Save to local file\n\t\t\tif(!file_put_contents($name,$this->buffer))\n\t\t\t\t$this->Error('Unable to create output file: '.$name);\n\t\t\tbreak;\n\t\tcase 'S':\n\t\t\t// Return as a string\n\t\t\treturn $this->buffer;\n\t\tdefault:\n\t\t\t$this->Error('Incorrect output destination: '.$dest);\n\t}\n\treturn '';\n}\n\n/*******************************************************************************\n*                              Protected methods                               *\n*******************************************************************************/\n\nprotected function _dochecks()\n{\n\t// Check mbstring overloading\n\tif(ini_get('mbstring.func_overload') & 2)\n\t\t$this->Error('mbstring overloading must be disabled');\n\t// Ensure runtime magic quotes are disabled\n\tif(get_magic_quotes_runtime())\n\t\t@set_magic_quotes_runtime(0);\n}\n\nprotected function _checkoutput()\n{\n\tif(PHP_SAPI!='cli')\n\t{\n\t\tif(headers_sent($file,$line))\n\t\t\t$this->Error(\"Some data has already been output, can't send PDF file (output started at $file:$line)\");\n\t}\n\tif(ob_get_length())\n\t{\n\t\t// The output buffer is not empty\n\t\tif(preg_match('/^(\\xEF\\xBB\\xBF)?\\s*$/',ob_get_contents()))\n\t\t{\n\t\t\t// It contains only a UTF-8 BOM and/or whitespace, let's clean it\n\t\t\tob_clean();\n\t\t}\n\t\telse\n\t\t\t$this->Error(\"Some data has already been output, can't send PDF file\");\n\t}\n}\n\nprotected function _getpagesize($size)\n{\n\tif(is_string($size))\n\t{\n\t\t$size = strtolower($size);\n\t\tif(!isset($this->StdPageSizes[$size]))\n\t\t\t$this->Error('Unknown page size: '.$size);\n\t\t$a = $this->StdPageSizes[$size];\n\t\treturn array($a[0]/$this->k, $a[1]/$this->k);\n\t}\n\telse\n\t{\n\t\tif($size[0]>$size[1])\n\t\t\treturn array($size[1], $size[0]);\n\t\telse\n\t\t\treturn $size;\n\t}\n}\n\nprotected function _beginpage($orientation, $size, $rotation)\n{\n\t$this->page++;\n\t$this->pages[$this->page] = '';\n\t$this->state = 2;\n\t$this->x = $this->lMargin;\n\t$this->y = $this->tMargin;\n\t$this->FontFamily = '';\n\t// Check page size and orientation\n\tif($orientation=='')\n\t\t$orientation = $this->DefOrientation;\n\telse\n\t\t$orientation = strtoupper($orientation[0]);\n\tif($size=='')\n\t\t$size = $this->DefPageSize;\n\telse\n\t\t$size = $this->_getpagesize($size);\n\tif($orientation!=$this->CurOrientation || $size[0]!=$this->CurPageSize[0] || $size[1]!=$this->CurPageSize[1])\n\t{\n\t\t// New size or orientation\n\t\tif($orientation=='P')\n\t\t{\n\t\t\t$this->w = $size[0];\n\t\t\t$this->h = $size[1];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->w = $size[1];\n\t\t\t$this->h = $size[0];\n\t\t}\n\t\t$this->wPt = $this->w*$this->k;\n\t\t$this->hPt = $this->h*$this->k;\n\t\t$this->PageBreakTrigger = $this->h-$this->bMargin;\n\t\t$this->CurOrientation = $orientation;\n\t\t$this->CurPageSize = $size;\n\t}\n\tif($orientation!=$this->DefOrientation || $size[0]!=$this->DefPageSize[0] || $size[1]!=$this->DefPageSize[1])\n\t\t$this->PageInfo[$this->page]['size'] = array($this->wPt, $this->hPt);\n\tif($rotation!=0)\n\t{\n\t\tif($rotation%90!=0)\n\t\t\t$this->Error('Incorrect rotation value: '.$rotation);\n\t\t$this->CurRotation = $rotation;\n\t\t$this->PageInfo[$this->page]['rotation'] = $rotation;\n\t}\n}\n\nprotected function _endpage()\n{\n\t$this->state = 1;\n}\n\nprotected function _loadfont($font)\n{\n\t// Load a font definition file from the font directory\n\tif(strpos($font,'/')!==false || strpos($font,\"\\\\\")!==false)\n\t\t$this->Error('Incorrect font definition file name: '.$font);\n\tinclude($this->fontpath.$font);\n\tif(!isset($name))\n\t\t$this->Error('Could not include font definition file');\n\tif(isset($enc))\n\t\t$enc = strtolower($enc);\n\tif(!isset($subsetted))\n\t\t$subsetted = false;\n\treturn get_defined_vars();\n}\n\nprotected function _isascii($s)\n{\n\t// Test if string is ASCII\n\t$nb = strlen($s);\n\tfor($i=0;$i<$nb;$i++)\n\t{\n\t\tif(ord($s[$i])>127)\n\t\t\treturn false;\n\t}\n\treturn true;\n}\n\nprotected function _httpencode($param, $value, $isUTF8)\n{\n\t// Encode HTTP header field parameter\n\tif($this->_isascii($value))\n\t\treturn $param.'=\"'.$value.'\"';\n\tif(!$isUTF8)\n\t\t$value = utf8_encode($value);\n\tif(strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')!==false)\n\t\treturn $param.'=\"'.rawurlencode($value).'\"';\n\telse\n\t\treturn $param.\"*=UTF-8''\".rawurlencode($value);\n}\n\nprotected function _UTF8toUTF16($s)\n{\n\t// Convert UTF-8 to UTF-16BE with BOM\n\t$res = \"\\xFE\\xFF\";\n\t$nb = strlen($s);\n\t$i = 0;\n\twhile($i<$nb)\n\t{\n\t\t$c1 = ord($s[$i++]);\n\t\tif($c1>=224)\n\t\t{\n\t\t\t// 3-byte character\n\t\t\t$c2 = ord($s[$i++]);\n\t\t\t$c3 = ord($s[$i++]);\n\t\t\t$res .= chr((($c1 & 0x0F)<<4) + (($c2 & 0x3C)>>2));\n\t\t\t$res .= chr((($c2 & 0x03)<<6) + ($c3 & 0x3F));\n\t\t}\n\t\telseif($c1>=192)\n\t\t{\n\t\t\t// 2-byte character\n\t\t\t$c2 = ord($s[$i++]);\n\t\t\t$res .= chr(($c1 & 0x1C)>>2);\n\t\t\t$res .= chr((($c1 & 0x03)<<6) + ($c2 & 0x3F));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Single-byte character\n\t\t\t$res .= \"\\0\".chr($c1);\n\t\t}\n\t}\n\treturn $res;\n}\n\nprotected function _escape($s)\n{\n\t// Escape special characters\n\tif(strpos($s,'(')!==false || strpos($s,')')!==false || strpos($s,'\\\\')!==false || strpos($s,\"\\r\")!==false)\n\t\treturn str_replace(array('\\\\','(',')',\"\\r\"), array('\\\\\\\\','\\\\(','\\\\)','\\\\r'), $s);\n\telse\n\t\treturn $s;\n}\n\nprotected function _textstring($s)\n{\n\t// Format a text string\n\tif(!$this->_isascii($s))\n\t\t$s = $this->_UTF8toUTF16($s);\n\treturn '('.$this->_escape($s).')';\n}\n\nprotected function _dounderline($x, $y, $txt)\n{\n\t// Underline text\n\t$up = $this->CurrentFont['up'];\n\t$ut = $this->CurrentFont['ut'];\n\t$w = $this->GetStringWidth($txt)+$this->ws*substr_count($txt,' ');\n\treturn sprintf('%.2F %.2F %.2F %.2F re f',$x*$this->k,($this->h-($y-$up/1000*$this->FontSize))*$this->k,$w*$this->k,-$ut/1000*$this->FontSizePt);\n}\n\nprotected function _parsejpg($file)\n{\n\t// Extract info from a JPEG file\n\t$a = getimagesize($file);\n\tif(!$a)\n\t\t$this->Error('Missing or incorrect image file: '.$file);\n\tif($a[2]!=2)\n\t\t$this->Error('Not a JPEG file: '.$file);\n\tif(!isset($a['channels']) || $a['channels']==3)\n\t\t$colspace = 'DeviceRGB';\n\telseif($a['channels']==4)\n\t\t$colspace = 'DeviceCMYK';\n\telse\n\t\t$colspace = 'DeviceGray';\n\t$bpc = isset($a['bits']) ? $a['bits'] : 8;\n\t$data = file_get_contents($file);\n\treturn array('w'=>$a[0], 'h'=>$a[1], 'cs'=>$colspace, 'bpc'=>$bpc, 'f'=>'DCTDecode', 'data'=>$data);\n}\n\nprotected function _parsepng($file)\n{\n\t// Extract info from a PNG file\n\t$f = fopen($file,'rb');\n\tif(!$f)\n\t\t$this->Error('Can\\'t open image file: '.$file);\n\t$info = $this->_parsepngstream($f,$file);\n\tfclose($f);\n\treturn $info;\n}\n\nprotected function _parsepngstream($f, $file)\n{\n\t// Check signature\n\tif($this->_readstream($f,8)!=chr(137).'PNG'.chr(13).chr(10).chr(26).chr(10))\n\t\t$this->Error('Not a PNG file: '.$file);\n\n\t// Read header chunk\n\t$this->_readstream($f,4);\n\tif($this->_readstream($f,4)!='IHDR')\n\t\t$this->Error('Incorrect PNG file: '.$file);\n\t$w = $this->_readint($f);\n\t$h = $this->_readint($f);\n\t$bpc = ord($this->_readstream($f,1));\n\tif($bpc>8)\n\t\t$this->Error('16-bit depth not supported: '.$file);\n\t$ct = ord($this->_readstream($f,1));\n\tif($ct==0 || $ct==4)\n\t\t$colspace = 'DeviceGray';\n\telseif($ct==2 || $ct==6)\n\t\t$colspace = 'DeviceRGB';\n\telseif($ct==3)\n\t\t$colspace = 'Indexed';\n\telse\n\t\t$this->Error('Unknown color type: '.$file);\n\tif(ord($this->_readstream($f,1))!=0)\n\t\t$this->Error('Unknown compression method: '.$file);\n\tif(ord($this->_readstream($f,1))!=0)\n\t\t$this->Error('Unknown filter method: '.$file);\n\tif(ord($this->_readstream($f,1))!=0)\n\t\t$this->Error('Interlacing not supported: '.$file);\n\t$this->_readstream($f,4);\n\t$dp = '/Predictor 15 /Colors '.($colspace=='DeviceRGB' ? 3 : 1).' /BitsPerComponent '.$bpc.' /Columns '.$w;\n\n\t// Scan chunks looking for palette, transparency and image data\n\t$pal = '';\n\t$trns = '';\n\t$data = '';\n\tdo\n\t{\n\t\t$n = $this->_readint($f);\n\t\t$type = $this->_readstream($f,4);\n\t\tif($type=='PLTE')\n\t\t{\n\t\t\t// Read palette\n\t\t\t$pal = $this->_readstream($f,$n);\n\t\t\t$this->_readstream($f,4);\n\t\t}\n\t\telseif($type=='tRNS')\n\t\t{\n\t\t\t// Read transparency info\n\t\t\t$t = $this->_readstream($f,$n);\n\t\t\tif($ct==0)\n\t\t\t\t$trns = array(ord(substr($t,1,1)));\n\t\t\telseif($ct==2)\n\t\t\t\t$trns = array(ord(substr($t,1,1)), ord(substr($t,3,1)), ord(substr($t,5,1)));\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pos = strpos($t,chr(0));\n\t\t\t\tif($pos!==false)\n\t\t\t\t\t$trns = array($pos);\n\t\t\t}\n\t\t\t$this->_readstream($f,4);\n\t\t}\n\t\telseif($type=='IDAT')\n\t\t{\n\t\t\t// Read image data block\n\t\t\t$data .= $this->_readstream($f,$n);\n\t\t\t$this->_readstream($f,4);\n\t\t}\n\t\telseif($type=='IEND')\n\t\t\tbreak;\n\t\telse\n\t\t\t$this->_readstream($f,$n+4);\n\t}\n\twhile($n);\n\n\tif($colspace=='Indexed' && empty($pal))\n\t\t$this->Error('Missing palette in '.$file);\n\t$info = array('w'=>$w, 'h'=>$h, 'cs'=>$colspace, 'bpc'=>$bpc, 'f'=>'FlateDecode', 'dp'=>$dp, 'pal'=>$pal, 'trns'=>$trns);\n\tif($ct>=4)\n\t{\n\t\t// Extract alpha channel\n\t\tif(!function_exists('gzuncompress'))\n\t\t\t$this->Error('Zlib not available, can\\'t handle alpha channel: '.$file);\n\t\t$data = gzuncompress($data);\n\t\t$color = '';\n\t\t$alpha = '';\n\t\tif($ct==4)\n\t\t{\n\t\t\t// Gray image\n\t\t\t$len = 2*$w;\n\t\t\tfor($i=0;$i<$h;$i++)\n\t\t\t{\n\t\t\t\t$pos = (1+$len)*$i;\n\t\t\t\t$color .= $data[$pos];\n\t\t\t\t$alpha .= $data[$pos];\n\t\t\t\t$line = substr($data,$pos+1,$len);\n\t\t\t\t$color .= preg_replace('/(.)./s','$1',$line);\n\t\t\t\t$alpha .= preg_replace('/.(.)/s','$1',$line);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// RGB image\n\t\t\t$len = 4*$w;\n\t\t\tfor($i=0;$i<$h;$i++)\n\t\t\t{\n\t\t\t\t$pos = (1+$len)*$i;\n\t\t\t\t$color .= $data[$pos];\n\t\t\t\t$alpha .= $data[$pos];\n\t\t\t\t$line = substr($data,$pos+1,$len);\n\t\t\t\t$color .= preg_replace('/(.{3})./s','$1',$line);\n\t\t\t\t$alpha .= preg_replace('/.{3}(.)/s','$1',$line);\n\t\t\t}\n\t\t}\n\t\tunset($data);\n\t\t$data = gzcompress($color);\n\t\t$info['smask'] = gzcompress($alpha);\n\t\t$this->WithAlpha = true;\n\t\tif($this->PDFVersion<'1.4')\n\t\t\t$this->PDFVersion = '1.4';\n\t}\n\t$info['data'] = $data;\n\treturn $info;\n}\n\nprotected function _readstream($f, $n)\n{\n\t// Read n bytes from stream\n\t$res = '';\n\twhile($n>0 && !feof($f))\n\t{\n\t\t$s = fread($f,$n);\n\t\tif($s===false)\n\t\t\t$this->Error('Error while reading stream');\n\t\t$n -= strlen($s);\n\t\t$res .= $s;\n\t}\n\tif($n>0)\n\t\t$this->Error('Unexpected end of stream');\n\treturn $res;\n}\n\nprotected function _readint($f)\n{\n\t// Read a 4-byte integer from stream\n\t$a = unpack('Ni',$this->_readstream($f,4));\n\treturn $a['i'];\n}\n\nprotected function _parsegif($file)\n{\n\t// Extract info from a GIF file (via PNG conversion)\n\tif(!function_exists('imagepng'))\n\t\t$this->Error('GD extension is required for GIF support');\n\tif(!function_exists('imagecreatefromgif'))\n\t\t$this->Error('GD has no GIF read support');\n\t$im = imagecreatefromgif($file);\n\tif(!$im)\n\t\t$this->Error('Missing or incorrect image file: '.$file);\n\timageinterlace($im,0);\n\tob_start();\n\timagepng($im);\n\t$data = ob_get_clean();\n\timagedestroy($im);\n\t$f = fopen('php://temp','rb+');\n\tif(!$f)\n\t\t$this->Error('Unable to create memory stream');\n\tfwrite($f,$data);\n\trewind($f);\n\t$info = $this->_parsepngstream($f,$file);\n\tfclose($f);\n\treturn $info;\n}\n\nprotected function _out($s)\n{\n\t// Add a line to the document\n\tif($this->state==2)\n\t\t$this->pages[$this->page] .= $s.\"\\n\";\n\telseif($this->state==1)\n\t\t$this->_put($s);\n\telseif($this->state==0)\n\t\t$this->Error('No page has been added yet');\n\telseif($this->state==3)\n\t\t$this->Error('The document is closed');\n}\n\nprotected function _put($s)\n{\n\t$this->buffer .= $s.\"\\n\";\n}\n\nprotected function _getoffset()\n{\n\treturn strlen($this->buffer);\n}\n\nprotected function _newobj($n=null)\n{\n\t// Begin a new object\n\tif($n===null)\n\t\t$n = ++$this->n;\n\t$this->offsets[$n] = $this->_getoffset();\n\t$this->_put($n.' 0 obj');\n}\n\nprotected function _putstream($data)\n{\n\t$this->_put('stream');\n\t$this->_put($data);\n\t$this->_put('endstream');\n}\n\nprotected function _putstreamobject($data)\n{\n\tif($this->compress)\n\t{\n\t\t$entries = '/Filter /FlateDecode ';\n\t\t$data = gzcompress($data);\n\t}\n\telse\n\t\t$entries = '';\n\t$entries .= '/Length '.strlen($data);\n\t$this->_newobj();\n\t$this->_put('<<'.$entries.'>>');\n\t$this->_putstream($data);\n\t$this->_put('endobj');\n}\n\nprotected function _putpage($n)\n{\n\t$this->_newobj();\n\t$this->_put('<</Type /Page');\n\t$this->_put('/Parent 1 0 R');\n\tif(isset($this->PageInfo[$n]['size']))\n\t\t$this->_put(sprintf('/MediaBox [0 0 %.2F %.2F]',$this->PageInfo[$n]['size'][0],$this->PageInfo[$n]['size'][1]));\n\tif(isset($this->PageInfo[$n]['rotation']))\n\t\t$this->_put('/Rotate '.$this->PageInfo[$n]['rotation']);\n\t$this->_put('/Resources 2 0 R');\n\tif(isset($this->PageLinks[$n]))\n\t{\n\t\t// Links\n\t\t$annots = '/Annots [';\n\t\tforeach($this->PageLinks[$n] as $pl)\n\t\t{\n\t\t\t$rect = sprintf('%.2F %.2F %.2F %.2F',$pl[0],$pl[1],$pl[0]+$pl[2],$pl[1]-$pl[3]);\n\t\t\t$annots .= '<</Type /Annot /Subtype /Link /Rect ['.$rect.'] /Border [0 0 0] ';\n\t\t\tif(is_string($pl[4]))\n\t\t\t\t$annots .= '/A <</S /URI /URI '.$this->_textstring($pl[4]).'>>>>';\n\t\t\telse\n\t\t\t{\n\t\t\t\t$l = $this->links[$pl[4]];\n\t\t\t\tif(isset($this->PageInfo[$l[0]]['size']))\n\t\t\t\t\t$h = $this->PageInfo[$l[0]]['size'][1];\n\t\t\t\telse\n\t\t\t\t\t$h = ($this->DefOrientation=='P') ? $this->DefPageSize[1]*$this->k : $this->DefPageSize[0]*$this->k;\n\t\t\t\t$annots .= sprintf('/Dest [%d 0 R /XYZ 0 %.2F null]>>',$this->PageInfo[$l[0]]['n'],$h-$l[1]*$this->k);\n\t\t\t}\n\t\t}\n\t\t$this->_put($annots.']');\n\t}\n\tif($this->WithAlpha)\n\t\t$this->_put('/Group <</Type /Group /S /Transparency /CS /DeviceRGB>>');\n\t$this->_put('/Contents '.($this->n+1).' 0 R>>');\n\t$this->_put('endobj');\n\t// Page content\n\tif(!empty($this->AliasNbPages))\n\t\t$this->pages[$n] = str_replace($this->AliasNbPages,$this->page,$this->pages[$n]);\n\t$this->_putstreamobject($this->pages[$n]);\n}\n\nprotected function _putpages()\n{\n\t$nb = $this->page;\n\tfor($n=1;$n<=$nb;$n++)\n\t\t$this->PageInfo[$n]['n'] = $this->n+1+2*($n-1);\n\tfor($n=1;$n<=$nb;$n++)\n\t\t$this->_putpage($n);\n\t// Pages root\n\t$this->_newobj(1);\n\t$this->_put('<</Type /Pages');\n\t$kids = '/Kids [';\n\tfor($n=1;$n<=$nb;$n++)\n\t\t$kids .= $this->PageInfo[$n]['n'].' 0 R ';\n\t$this->_put($kids.']');\n\t$this->_put('/Count '.$nb);\n\tif($this->DefOrientation=='P')\n\t{\n\t\t$w = $this->DefPageSize[0];\n\t\t$h = $this->DefPageSize[1];\n\t}\n\telse\n\t{\n\t\t$w = $this->DefPageSize[1];\n\t\t$h = $this->DefPageSize[0];\n\t}\n\t$this->_put(sprintf('/MediaBox [0 0 %.2F %.2F]',$w*$this->k,$h*$this->k));\n\t$this->_put('>>');\n\t$this->_put('endobj');\n}\n\nprotected function _putfonts()\n{\n\tforeach($this->FontFiles as $file=>$info)\n\t{\n\t\t// Font file embedding\n\t\t$this->_newobj();\n\t\t$this->FontFiles[$file]['n'] = $this->n;\n\t\t$font = file_get_contents($this->fontpath.$file,true);\n\t\tif(!$font)\n\t\t\t$this->Error('Font file not found: '.$file);\n\t\t$compressed = (substr($file,-2)=='.z');\n\t\tif(!$compressed && isset($info['length2']))\n\t\t\t$font = substr($font,6,$info['length1']).substr($font,6+$info['length1']+6,$info['length2']);\n\t\t$this->_put('<</Length '.strlen($font));\n\t\tif($compressed)\n\t\t\t$this->_put('/Filter /FlateDecode');\n\t\t$this->_put('/Length1 '.$info['length1']);\n\t\tif(isset($info['length2']))\n\t\t\t$this->_put('/Length2 '.$info['length2'].' /Length3 0');\n\t\t$this->_put('>>');\n\t\t$this->_putstream($font);\n\t\t$this->_put('endobj');\n\t}\n\tforeach($this->fonts as $k=>$font)\n\t{\n\t\t// Encoding\n\t\tif(isset($font['diff']))\n\t\t{\n\t\t\tif(!isset($this->encodings[$font['enc']]))\n\t\t\t{\n\t\t\t\t$this->_newobj();\n\t\t\t\t$this->_put('<</Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences ['.$font['diff'].']>>');\n\t\t\t\t$this->_put('endobj');\n\t\t\t\t$this->encodings[$font['enc']] = $this->n;\n\t\t\t}\n\t\t}\n\t\t// ToUnicode CMap\n\t\tif(isset($font['uv']))\n\t\t{\n\t\t\tif(isset($font['enc']))\n\t\t\t\t$cmapkey = $font['enc'];\n\t\t\telse\n\t\t\t\t$cmapkey = $font['name'];\n\t\t\tif(!isset($this->cmaps[$cmapkey]))\n\t\t\t{\n\t\t\t\t$cmap = $this->_tounicodecmap($font['uv']);\n\t\t\t\t$this->_putstreamobject($cmap);\n\t\t\t\t$this->cmaps[$cmapkey] = $this->n;\n\t\t\t}\n\t\t}\n\t\t// Font object\n\t\t$this->fonts[$k]['n'] = $this->n+1;\n\t\t$type = $font['type'];\n\t\t$name = $font['name'];\n\t\tif($font['subsetted'])\n\t\t\t$name = 'AAAAAA+'.$name;\n\t\tif($type=='Core')\n\t\t{\n\t\t\t// Core font\n\t\t\t$this->_newobj();\n\t\t\t$this->_put('<</Type /Font');\n\t\t\t$this->_put('/BaseFont /'.$name);\n\t\t\t$this->_put('/Subtype /Type1');\n\t\t\tif($name!='Symbol' && $name!='ZapfDingbats')\n\t\t\t\t$this->_put('/Encoding /WinAnsiEncoding');\n\t\t\tif(isset($font['uv']))\n\t\t\t\t$this->_put('/ToUnicode '.$this->cmaps[$cmapkey].' 0 R');\n\t\t\t$this->_put('>>');\n\t\t\t$this->_put('endobj');\n\t\t}\n\t\telseif($type=='Type1' || $type=='TrueType')\n\t\t{\n\t\t\t// Additional Type1 or TrueType/OpenType font\n\t\t\t$this->_newobj();\n\t\t\t$this->_put('<</Type /Font');\n\t\t\t$this->_put('/BaseFont /'.$name);\n\t\t\t$this->_put('/Subtype /'.$type);\n\t\t\t$this->_put('/FirstChar 32 /LastChar 255');\n\t\t\t$this->_put('/Widths '.($this->n+1).' 0 R');\n\t\t\t$this->_put('/FontDescriptor '.($this->n+2).' 0 R');\n\t\t\tif(isset($font['diff']))\n\t\t\t\t$this->_put('/Encoding '.$this->encodings[$font['enc']].' 0 R');\n\t\t\telse\n\t\t\t\t$this->_put('/Encoding /WinAnsiEncoding');\n\t\t\tif(isset($font['uv']))\n\t\t\t\t$this->_put('/ToUnicode '.$this->cmaps[$cmapkey].' 0 R');\n\t\t\t$this->_put('>>');\n\t\t\t$this->_put('endobj');\n\t\t\t// Widths\n\t\t\t$this->_newobj();\n\t\t\t$cw = &$font['cw'];\n\t\t\t$s = '[';\n\t\t\tfor($i=32;$i<=255;$i++)\n\t\t\t\t$s .= $cw[chr($i)].' ';\n\t\t\t$this->_put($s.']');\n\t\t\t$this->_put('endobj');\n\t\t\t// Descriptor\n\t\t\t$this->_newobj();\n\t\t\t$s = '<</Type /FontDescriptor /FontName /'.$name;\n\t\t\tforeach($font['desc'] as $k=>$v)\n\t\t\t\t$s .= ' /'.$k.' '.$v;\n\t\t\tif(!empty($font['file']))\n\t\t\t\t$s .= ' /FontFile'.($type=='Type1' ? '' : '2').' '.$this->FontFiles[$font['file']]['n'].' 0 R';\n\t\t\t$this->_put($s.'>>');\n\t\t\t$this->_put('endobj');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Allow for additional types\n\t\t\t$mtd = '_put'.strtolower($type);\n\t\t\tif(!method_exists($this,$mtd))\n\t\t\t\t$this->Error('Unsupported font type: '.$type);\n\t\t\t$this->$mtd($font);\n\t\t}\n\t}\n}\n\nprotected function _tounicodecmap($uv)\n{\n\t$ranges = '';\n\t$nbr = 0;\n\t$chars = '';\n\t$nbc = 0;\n\tforeach($uv as $c=>$v)\n\t{\n\t\tif(is_array($v))\n\t\t{\n\t\t\t$ranges .= sprintf(\"<%02X> <%02X> <%04X>\\n\",$c,$c+$v[1]-1,$v[0]);\n\t\t\t$nbr++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$chars .= sprintf(\"<%02X> <%04X>\\n\",$c,$v);\n\t\t\t$nbc++;\n\t\t}\n\t}\n\t$s = \"/CIDInit /ProcSet findresource begin\\n\";\n\t$s .= \"12 dict begin\\n\";\n\t$s .= \"begincmap\\n\";\n\t$s .= \"/CIDSystemInfo\\n\";\n\t$s .= \"<</Registry (Adobe)\\n\";\n\t$s .= \"/Ordering (UCS)\\n\";\n\t$s .= \"/Supplement 0\\n\";\n\t$s .= \">> def\\n\";\n\t$s .= \"/CMapName /Adobe-Identity-UCS def\\n\";\n\t$s .= \"/CMapType 2 def\\n\";\n\t$s .= \"1 begincodespacerange\\n\";\n\t$s .= \"<00> <FF>\\n\";\n\t$s .= \"endcodespacerange\\n\";\n\tif($nbr>0)\n\t{\n\t\t$s .= \"$nbr beginbfrange\\n\";\n\t\t$s .= $ranges;\n\t\t$s .= \"endbfrange\\n\";\n\t}\n\tif($nbc>0)\n\t{\n\t\t$s .= \"$nbc beginbfchar\\n\";\n\t\t$s .= $chars;\n\t\t$s .= \"endbfchar\\n\";\n\t}\n\t$s .= \"endcmap\\n\";\n\t$s .= \"CMapName currentdict /CMap defineresource pop\\n\";\n\t$s .= \"end\\n\";\n\t$s .= \"end\";\n\treturn $s;\n}\n\nprotected function _putimages()\n{\n\tforeach(array_keys($this->images) as $file)\n\t{\n\t\t$this->_putimage($this->images[$file]);\n\t\tunset($this->images[$file]['data']);\n\t\tunset($this->images[$file]['smask']);\n\t}\n}\n\nprotected function _putimage(&$info)\n{\n\t$this->_newobj();\n\t$info['n'] = $this->n;\n\t$this->_put('<</Type /XObject');\n\t$this->_put('/Subtype /Image');\n\t$this->_put('/Width '.$info['w']);\n\t$this->_put('/Height '.$info['h']);\n\tif($info['cs']=='Indexed')\n\t\t$this->_put('/ColorSpace [/Indexed /DeviceRGB '.(strlen($info['pal'])/3-1).' '.($this->n+1).' 0 R]');\n\telse\n\t{\n\t\t$this->_put('/ColorSpace /'.$info['cs']);\n\t\tif($info['cs']=='DeviceCMYK')\n\t\t\t$this->_put('/Decode [1 0 1 0 1 0 1 0]');\n\t}\n\t$this->_put('/BitsPerComponent '.$info['bpc']);\n\tif(isset($info['f']))\n\t\t$this->_put('/Filter /'.$info['f']);\n\tif(isset($info['dp']))\n\t\t$this->_put('/DecodeParms <<'.$info['dp'].'>>');\n\tif(isset($info['trns']) && is_array($info['trns']))\n\t{\n\t\t$trns = '';\n\t\tfor($i=0;$i<count($info['trns']);$i++)\n\t\t\t$trns .= $info['trns'][$i].' '.$info['trns'][$i].' ';\n\t\t$this->_put('/Mask ['.$trns.']');\n\t}\n\tif(isset($info['smask']))\n\t\t$this->_put('/SMask '.($this->n+1).' 0 R');\n\t$this->_put('/Length '.strlen($info['data']).'>>');\n\t$this->_putstream($info['data']);\n\t$this->_put('endobj');\n\t// Soft mask\n\tif(isset($info['smask']))\n\t{\n\t\t$dp = '/Predictor 15 /Colors 1 /BitsPerComponent 8 /Columns '.$info['w'];\n\t\t$smask = array('w'=>$info['w'], 'h'=>$info['h'], 'cs'=>'DeviceGray', 'bpc'=>8, 'f'=>$info['f'], 'dp'=>$dp, 'data'=>$info['smask']);\n\t\t$this->_putimage($smask);\n\t}\n\t// Palette\n\tif($info['cs']=='Indexed')\n\t\t$this->_putstreamobject($info['pal']);\n}\n\nprotected function _putxobjectdict()\n{\n\tforeach($this->images as $image)\n\t\t$this->_put('/I'.$image['i'].' '.$image['n'].' 0 R');\n}\n\nprotected function _putresourcedict()\n{\n\t$this->_put('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');\n\t$this->_put('/Font <<');\n\tforeach($this->fonts as $font)\n\t\t$this->_put('/F'.$font['i'].' '.$font['n'].' 0 R');\n\t$this->_put('>>');\n\t$this->_put('/XObject <<');\n\t$this->_putxobjectdict();\n\t$this->_put('>>');\n}\n\nprotected function _putresources()\n{\n\t$this->_putfonts();\n\t$this->_putimages();\n\t// Resource dictionary\n\t$this->_newobj(2);\n\t$this->_put('<<');\n\t$this->_putresourcedict();\n\t$this->_put('>>');\n\t$this->_put('endobj');\n}\n\nprotected function _putinfo()\n{\n\t$this->metadata['Producer'] = 'FPDF '.FPDF_VERSION;\n\t$this->metadata['CreationDate'] = 'D:'.@date('YmdHis');\n\tforeach($this->metadata as $key=>$value)\n\t\t$this->_put('/'.$key.' '.$this->_textstring($value));\n}\n\nprotected function _putcatalog()\n{\n\t$n = $this->PageInfo[1]['n'];\n\t$this->_put('/Type /Catalog');\n\t$this->_put('/Pages 1 0 R');\n\tif($this->ZoomMode=='fullpage')\n\t\t$this->_put('/OpenAction ['.$n.' 0 R /Fit]');\n\telseif($this->ZoomMode=='fullwidth')\n\t\t$this->_put('/OpenAction ['.$n.' 0 R /FitH null]');\n\telseif($this->ZoomMode=='real')\n\t\t$this->_put('/OpenAction ['.$n.' 0 R /XYZ null null 1]');\n\telseif(!is_string($this->ZoomMode))\n\t\t$this->_put('/OpenAction ['.$n.' 0 R /XYZ null null '.sprintf('%.2F',$this->ZoomMode/100).']');\n\tif($this->LayoutMode=='single')\n\t\t$this->_put('/PageLayout /SinglePage');\n\telseif($this->LayoutMode=='continuous')\n\t\t$this->_put('/PageLayout /OneColumn');\n\telseif($this->LayoutMode=='two')\n\t\t$this->_put('/PageLayout /TwoColumnLeft');\n}\n\nprotected function _putheader()\n{\n\t$this->_put('%PDF-'.$this->PDFVersion);\n}\n\nprotected function _puttrailer()\n{\n\t$this->_put('/Size '.($this->n+1));\n\t$this->_put('/Root '.$this->n.' 0 R');\n\t$this->_put('/Info '.($this->n-1).' 0 R');\n}\n\nprotected function _enddoc()\n{\n\t$this->_putheader();\n\t$this->_putpages();\n\t$this->_putresources();\n\t// Info\n\t$this->_newobj();\n\t$this->_put('<<');\n\t$this->_putinfo();\n\t$this->_put('>>');\n\t$this->_put('endobj');\n\t// Catalog\n\t$this->_newobj();\n\t$this->_put('<<');\n\t$this->_putcatalog();\n\t$this->_put('>>');\n\t$this->_put('endobj');\n\t// Cross-ref\n\t$offset = $this->_getoffset();\n\t$this->_put('xref');\n\t$this->_put('0 '.($this->n+1));\n\t$this->_put('0000000000 65535 f ');\n\tfor($i=1;$i<=$this->n;$i++)\n\t\t$this->_put(sprintf('%010d 00000 n ',$this->offsets[$i]));\n\t// Trailer\n\t$this->_put('trailer');\n\t$this->_put('<<');\n\t$this->_puttrailer();\n\t$this->_put('>>');\n\t$this->_put('startxref');\n\t$this->_put($offset);\n\t$this->_put('%%EOF');\n\t$this->state = 3;\n}\n}\n?>\n"
  },
  {
    "path": "tool/pdf/install.txt",
    "content": "The FPDF library is made up of the following elements:\n\n- the main file, fpdf.php, which contains the class\n- the font definition files located in the font directory\n\nThe font definition files are necessary as soon as you want to output some text in a document.\nIf they are not accessible, the SetFont() method will produce the following error:\n\nFPDF error: Could not include font definition file\n\n\nRemarks:\n\n- Only the files corresponding to the fonts actually used are necessary\n- The tutorials provided in this package are ready to be executed\n"
  },
  {
    "path": "tool/pdf/license.txt",
    "content": "Permission is hereby granted, free of charge, to any person obtaining a copy\nof this software to use, copy, modify, distribute, sublicense, and/or sell\ncopies of the software, and to permit persons to whom the software is furnished\nto do so.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED."
  },
  {
    "path": "tool/pdf/makefont/makefont.php",
    "content": "<?php\n/*******************************************************************************\n* Utility to generate font definition files                                    *\n*                                                                              *\n* Version: 1.3                                                                 *\n* Date:    2015-11-29                                                          *\n* Author:  Olivier PLATHEY                                                     *\n*******************************************************************************/\n\nrequire('ttfparser.php');\n\nfunction Message($txt, $severity='')\n{\n\tif(PHP_SAPI=='cli')\n\t{\n\t\tif($severity)\n\t\t\techo \"$severity: \";\n\t\techo \"$txt\\n\";\n\t}\n\telse\n\t{\n\t\tif($severity)\n\t\t\techo \"<b>$severity</b>: \";\n\t\techo \"$txt<br>\";\n\t}\n}\n\nfunction Notice($txt)\n{\n\tMessage($txt, 'Notice');\n}\n\nfunction Warning($txt)\n{\n\tMessage($txt, 'Warning');\n}\n\nfunction Error($txt)\n{\n\tMessage($txt, 'Error');\n\texit;\n}\n\nfunction LoadMap($enc)\n{\n\t$file = dirname(__FILE__).'/'.strtolower($enc).'.map';\n\t$a = file($file);\n\tif(empty($a))\n\t\tError('Encoding not found: '.$enc);\n\t$map = array_fill(0, 256, array('uv'=>-1, 'name'=>'.notdef'));\n\tforeach($a as $line)\n\t{\n\t\t$e = explode(' ', rtrim($line));\n\t\t$c = hexdec(substr($e[0],1));\n\t\t$uv = hexdec(substr($e[1],2));\n\t\t$name = $e[2];\n\t\t$map[$c] = array('uv'=>$uv, 'name'=>$name);\n\t}\n\treturn $map;\n}\n\nfunction GetInfoFromTrueType($file, $embed, $subset, $map)\n{\n\t// Return information from a TrueType font\n\ttry\n\t{\n\t\t$ttf = new TTFParser($file);\n\t\t$ttf->Parse();\n\t}\n\tcatch(Exception $e)\n\t{\n\t\tError($e->getMessage());\n\t}\n\tif($embed)\n\t{\n\t\tif(!$ttf->embeddable)\n\t\t\tError('Font license does not allow embedding');\n\t\tif($subset)\n\t\t{\n\t\t\t$chars = array();\n\t\t\tforeach($map as $v)\n\t\t\t{\n\t\t\t\tif($v['name']!='.notdef')\n\t\t\t\t\t$chars[] = $v['uv'];\n\t\t\t}\n\t\t\t$ttf->Subset($chars);\n\t\t\t$info['Data'] = $ttf->Build();\n\t\t}\n\t\telse\n\t\t\t$info['Data'] = file_get_contents($file);\n\t\t$info['OriginalSize'] = strlen($info['Data']);\n\t}\n\t$k = 1000/$ttf->unitsPerEm;\n\t$info['FontName'] = $ttf->postScriptName;\n\t$info['Bold'] = $ttf->bold;\n\t$info['ItalicAngle'] = $ttf->italicAngle;\n\t$info['IsFixedPitch'] = $ttf->isFixedPitch;\n\t$info['Ascender'] = round($k*$ttf->typoAscender);\n\t$info['Descender'] = round($k*$ttf->typoDescender);\n\t$info['UnderlineThickness'] = round($k*$ttf->underlineThickness);\n\t$info['UnderlinePosition'] = round($k*$ttf->underlinePosition);\n\t$info['FontBBox'] = array(round($k*$ttf->xMin), round($k*$ttf->yMin), round($k*$ttf->xMax), round($k*$ttf->yMax));\n\t$info['CapHeight'] = round($k*$ttf->capHeight);\n\t$info['MissingWidth'] = round($k*$ttf->glyphs[0]['w']);\n\t$widths = array_fill(0, 256, $info['MissingWidth']);\n\tforeach($map as $c=>$v)\n\t{\n\t\tif($v['name']!='.notdef')\n\t\t{\n\t\t\tif(isset($ttf->chars[$v['uv']]))\n\t\t\t{\n\t\t\t\t$id = $ttf->chars[$v['uv']];\n\t\t\t\t$w = $ttf->glyphs[$id]['w'];\n\t\t\t\t$widths[$c] = round($k*$w);\n\t\t\t}\n\t\t\telse\n\t\t\t\tWarning('Character '.$v['name'].' is missing');\n\t\t}\n\t}\n\t$info['Widths'] = $widths;\n\treturn $info;\n}\n\nfunction GetInfoFromType1($file, $embed, $map)\n{\n\t// Return information from a Type1 font\n\tif($embed)\n\t{\n\t\t$f = fopen($file, 'rb');\n\t\tif(!$f)\n\t\t\tError('Can\\'t open font file');\n\t\t// Read first segment\n\t\t$a = unpack('Cmarker/Ctype/Vsize', fread($f,6));\n\t\tif($a['marker']!=128)\n\t\t\tError('Font file is not a valid binary Type1');\n\t\t$size1 = $a['size'];\n\t\t$data = fread($f, $size1);\n\t\t// Read second segment\n\t\t$a = unpack('Cmarker/Ctype/Vsize', fread($f,6));\n\t\tif($a['marker']!=128)\n\t\t\tError('Font file is not a valid binary Type1');\n\t\t$size2 = $a['size'];\n\t\t$data .= fread($f, $size2);\n\t\tfclose($f);\n\t\t$info['Data'] = $data;\n\t\t$info['Size1'] = $size1;\n\t\t$info['Size2'] = $size2;\n\t}\n\n\t$afm = substr($file, 0, -3).'afm';\n\tif(!file_exists($afm))\n\t\tError('AFM font file not found: '.$afm);\n\t$a = file($afm);\n\tif(empty($a))\n\t\tError('AFM file empty or not readable');\n\tforeach($a as $line)\n\t{\n\t\t$e = explode(' ', rtrim($line));\n\t\tif(count($e)<2)\n\t\t\tcontinue;\n\t\t$entry = $e[0];\n\t\tif($entry=='C')\n\t\t{\n\t\t\t$w = $e[4];\n\t\t\t$name = $e[7];\n\t\t\t$cw[$name] = $w;\n\t\t}\n\t\telseif($entry=='FontName')\n\t\t\t$info['FontName'] = $e[1];\n\t\telseif($entry=='Weight')\n\t\t\t$info['Weight'] = $e[1];\n\t\telseif($entry=='ItalicAngle')\n\t\t\t$info['ItalicAngle'] = (int)$e[1];\n\t\telseif($entry=='Ascender')\n\t\t\t$info['Ascender'] = (int)$e[1];\n\t\telseif($entry=='Descender')\n\t\t\t$info['Descender'] = (int)$e[1];\n\t\telseif($entry=='UnderlineThickness')\n\t\t\t$info['UnderlineThickness'] = (int)$e[1];\n\t\telseif($entry=='UnderlinePosition')\n\t\t\t$info['UnderlinePosition'] = (int)$e[1];\n\t\telseif($entry=='IsFixedPitch')\n\t\t\t$info['IsFixedPitch'] = ($e[1]=='true');\n\t\telseif($entry=='FontBBox')\n\t\t\t$info['FontBBox'] = array((int)$e[1], (int)$e[2], (int)$e[3], (int)$e[4]);\n\t\telseif($entry=='CapHeight')\n\t\t\t$info['CapHeight'] = (int)$e[1];\n\t\telseif($entry=='StdVW')\n\t\t\t$info['StdVW'] = (int)$e[1];\n\t}\n\n\tif(!isset($info['FontName']))\n\t\tError('FontName missing in AFM file');\n\tif(!isset($info['Ascender']))\n\t\t$info['Ascender'] = $info['FontBBox'][3];\n\tif(!isset($info['Descender']))\n\t\t$info['Descender'] = $info['FontBBox'][1];\n\t$info['Bold'] = isset($info['Weight']) && preg_match('/bold|black/i', $info['Weight']);\n\tif(isset($cw['.notdef']))\n\t\t$info['MissingWidth'] = $cw['.notdef'];\n\telse\n\t\t$info['MissingWidth'] = 0;\n\t$widths = array_fill(0, 256, $info['MissingWidth']);\n\tforeach($map as $c=>$v)\n\t{\n\t\tif($v['name']!='.notdef')\n\t\t{\n\t\t\tif(isset($cw[$v['name']]))\n\t\t\t\t$widths[$c] = $cw[$v['name']];\n\t\t\telse\n\t\t\t\tWarning('Character '.$v['name'].' is missing');\n\t\t}\n\t}\n\t$info['Widths'] = $widths;\n\treturn $info;\n}\n\nfunction MakeFontDescriptor($info)\n{\n\t// Ascent\n\t$fd = \"array('Ascent'=>\".$info['Ascender'];\n\t// Descent\n\t$fd .= \",'Descent'=>\".$info['Descender'];\n\t// CapHeight\n\tif(!empty($info['CapHeight']))\n\t\t$fd .= \",'CapHeight'=>\".$info['CapHeight'];\n\telse\n\t\t$fd .= \",'CapHeight'=>\".$info['Ascender'];\n\t// Flags\n\t$flags = 0;\n\tif($info['IsFixedPitch'])\n\t\t$flags += 1<<0;\n\t$flags += 1<<5;\n\tif($info['ItalicAngle']!=0)\n\t\t$flags += 1<<6;\n\t$fd .= \",'Flags'=>\".$flags;\n\t// FontBBox\n\t$fbb = $info['FontBBox'];\n\t$fd .= \",'FontBBox'=>'[\".$fbb[0].' '.$fbb[1].' '.$fbb[2].' '.$fbb[3].\"]'\";\n\t// ItalicAngle\n\t$fd .= \",'ItalicAngle'=>\".$info['ItalicAngle'];\n\t// StemV\n\tif(isset($info['StdVW']))\n\t\t$stemv = $info['StdVW'];\n\telseif($info['Bold'])\n\t\t$stemv = 120;\n\telse\n\t\t$stemv = 70;\n\t$fd .= \",'StemV'=>\".$stemv;\n\t// MissingWidth\n\t$fd .= \",'MissingWidth'=>\".$info['MissingWidth'].')';\n\treturn $fd;\n}\n\nfunction MakeWidthArray($widths)\n{\n\t$s = \"array(\\n\\t\";\n\tfor($c=0;$c<=255;$c++)\n\t{\n\t\tif(chr($c)==\"'\")\n\t\t\t$s .= \"'\\\\''\";\n\t\telseif(chr($c)==\"\\\\\")\n\t\t\t$s .= \"'\\\\\\\\'\";\n\t\telseif($c>=32 && $c<=126)\n\t\t\t$s .= \"'\".chr($c).\"'\";\n\t\telse\n\t\t\t$s .= \"chr($c)\";\n\t\t$s .= '=>'.$widths[$c];\n\t\tif($c<255)\n\t\t\t$s .= ',';\n\t\tif(($c+1)%22==0)\n\t\t\t$s .= \"\\n\\t\";\n\t}\n\t$s .= ')';\n\treturn $s;\n}\n\nfunction MakeFontEncoding($map)\n{\n\t// Build differences from reference encoding\n\t$ref = LoadMap('cp1252');\n\t$s = '';\n\t$last = 0;\n\tfor($c=32;$c<=255;$c++)\n\t{\n\t\tif($map[$c]['name']!=$ref[$c]['name'])\n\t\t{\n\t\t\tif($c!=$last+1)\n\t\t\t\t$s .= $c.' ';\n\t\t\t$last = $c;\n\t\t\t$s .= '/'.$map[$c]['name'].' ';\n\t\t}\n\t}\n\treturn rtrim($s);\n}\n\nfunction MakeUnicodeArray($map)\n{\n\t// Build mapping to Unicode values\n\t$ranges = array();\n\tforeach($map as $c=>$v)\n\t{\n\t\t$uv = $v['uv'];\n\t\tif($uv!=-1)\n\t\t{\n\t\t\tif(isset($range))\n\t\t\t{\n\t\t\t\tif($c==$range[1]+1 && $uv==$range[3]+1)\n\t\t\t\t{\n\t\t\t\t\t$range[1]++;\n\t\t\t\t\t$range[3]++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$ranges[] = $range;\n\t\t\t\t\t$range = array($c, $c, $uv, $uv);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\t$range = array($c, $c, $uv, $uv);\n\t\t}\n\t}\n\t$ranges[] = $range;\n\n\tforeach($ranges as $range)\n\t{\n\t\tif(isset($s))\n\t\t\t$s .= ',';\n\t\telse\n\t\t\t$s = 'array(';\n\t\t$s .= $range[0].'=>';\n\t\t$nb = $range[1]-$range[0]+1;\n\t\tif($nb>1)\n\t\t\t$s .= 'array('.$range[2].','.$nb.')';\n\t\telse\n\t\t\t$s .= $range[2];\n\t}\n\t$s .= ')';\n\treturn $s;\n}\n\nfunction SaveToFile($file, $s, $mode)\n{\n\t$f = fopen($file, 'w'.$mode);\n\tif(!$f)\n\t\tError('Can\\'t write to file '.$file);\n\tfwrite($f, $s);\n\tfclose($f);\n}\n\nfunction MakeDefinitionFile($file, $type, $enc, $embed, $subset, $map, $info)\n{\n\t$s = \"<?php\\n\";\n\t$s .= '$type = \\''.$type.\"';\\n\";\n\t$s .= '$name = \\''.$info['FontName'].\"';\\n\";\n\t$s .= '$desc = '.MakeFontDescriptor($info).\";\\n\";\n\t$s .= '$up = '.$info['UnderlinePosition'].\";\\n\";\n\t$s .= '$ut = '.$info['UnderlineThickness'].\";\\n\";\n\t$s .= '$cw = '.MakeWidthArray($info['Widths']).\";\\n\";\n\t$s .= '$enc = \\''.$enc.\"';\\n\";\n\t$diff = MakeFontEncoding($map);\n\tif($diff)\n\t\t$s .= '$diff = \\''.$diff.\"';\\n\";\n\t$s .= '$uv = '.MakeUnicodeArray($map).\";\\n\";\n\tif($embed)\n\t{\n\t\t$s .= '$file = \\''.$info['File'].\"';\\n\";\n\t\tif($type=='Type1')\n\t\t{\n\t\t\t$s .= '$size1 = '.$info['Size1'].\";\\n\";\n\t\t\t$s .= '$size2 = '.$info['Size2'].\";\\n\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$s .= '$originalsize = '.$info['OriginalSize'].\";\\n\";\n\t\t\tif($subset)\n\t\t\t\t$s .= \"\\$subsetted = true;\\n\";\n\t\t}\n\t}\n\t$s .= \"?>\\n\";\n\tSaveToFile($file, $s, 't');\n}\n\nfunction MakeFont($fontfile, $enc='cp1252', $embed=true, $subset=true)\n{\n\t// Generate a font definition file\n\tif(get_magic_quotes_runtime())\n\t\t@set_magic_quotes_runtime(false);\n\tini_set('auto_detect_line_endings', '1');\n\n\tif(!file_exists($fontfile))\n\t\tError('Font file not found: '.$fontfile);\n\t$ext = strtolower(substr($fontfile,-3));\n\tif($ext=='ttf' || $ext=='otf')\n\t\t$type = 'TrueType';\n\telseif($ext=='pfb')\n\t\t$type = 'Type1';\n\telse\n\t\tError('Unrecognized font file extension: '.$ext);\n\n\t$map = LoadMap($enc);\n\n\tif($type=='TrueType')\n\t\t$info = GetInfoFromTrueType($fontfile, $embed, $subset, $map);\n\telse\n\t\t$info = GetInfoFromType1($fontfile, $embed, $map);\n\n\t$basename = substr(basename($fontfile), 0, -4);\n\tif($embed)\n\t{\n\t\tif(function_exists('gzcompress'))\n\t\t{\n\t\t\t$file = $basename.'.z';\n\t\t\tSaveToFile($file, gzcompress($info['Data']), 'b');\n\t\t\t$info['File'] = $file;\n\t\t\tMessage('Font file compressed: '.$file);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$info['File'] = basename($fontfile);\n\t\t\t$subset = false;\n\t\t\tNotice('Font file could not be compressed (zlib extension not available)');\n\t\t}\n\t}\n\n\tMakeDefinitionFile($basename.'.php', $type, $enc, $embed, $subset, $map, $info);\n\tMessage('Font definition file generated: '.$basename.'.php');\n}\n\nif(PHP_SAPI=='cli')\n{\n\t// Command-line interface\n\tini_set('log_errors', '0');\n\tif($argc==1)\n\t\tdie(\"Usage: php makefont.php fontfile [encoding] [embed] [subset]\\n\");\n\t$fontfile = $argv[1];\n\tif($argc>=3)\n\t\t$enc = $argv[2];\n\telse\n\t\t$enc = 'cp1252';\n\tif($argc>=4)\n\t\t$embed = ($argv[3]=='true' || $argv[3]=='1');\n\telse\n\t\t$embed = true;\n\tif($argc>=5)\n\t\t$subset = ($argv[4]=='true' || $argv[4]=='1');\n\telse\n\t\t$subset = true;\n\tMakeFont($fontfile, $enc, $embed, $subset);\n}\n?>\n"
  },
  {
    "path": "tool/pdf/makefont/ttfparser.php",
    "content": "<?php\n/*******************************************************************************\n* Class to parse and subset TrueType fonts                                     *\n*                                                                              *\n* Version: 1.1                                                                 *\n* Date:    2015-11-29                                                          *\n* Author:  Olivier PLATHEY                                                     *\n*******************************************************************************/\n\nclass TTFParser\n{\n\tprotected $f;\n\tprotected $tables;\n\tprotected $numberOfHMetrics;\n\tprotected $numGlyphs;\n\tprotected $glyphNames;\n\tprotected $indexToLocFormat;\n\tprotected $subsettedChars;\n\tprotected $subsettedGlyphs;\n\tpublic $chars;\n\tpublic $glyphs;\n\tpublic $unitsPerEm;\n\tpublic $xMin, $yMin, $xMax, $yMax;\n\tpublic $postScriptName;\n\tpublic $embeddable;\n\tpublic $bold;\n\tpublic $typoAscender;\n\tpublic $typoDescender;\n\tpublic $capHeight;\n\tpublic $italicAngle;\n\tpublic $underlinePosition;\n\tpublic $underlineThickness;\n\tpublic $isFixedPitch;\n\n\tfunction __construct($file)\n\t{\n\t\t$this->f = fopen($file, 'rb');\n\t\tif(!$this->f)\n\t\t\t$this->Error('Can\\'t open file: '.$file);\n\t}\n\n\tfunction __destruct()\n\t{\n\t\tif(is_resource($this->f))\n\t\t\tfclose($this->f);\n\t}\n\n\tfunction Parse()\n\t{\n\t\t$this->ParseOffsetTable();\n\t\t$this->ParseHead();\n\t\t$this->ParseHhea();\n\t\t$this->ParseMaxp();\n\t\t$this->ParseHmtx();\n\t\t$this->ParseLoca();\n\t\t$this->ParseGlyf();\n\t\t$this->ParseCmap();\n\t\t$this->ParseName();\n\t\t$this->ParseOS2();\n\t\t$this->ParsePost();\n\t}\n\n\tfunction ParseOffsetTable()\n\t{\n\t\t$version = $this->Read(4);\n\t\tif($version=='OTTO')\n\t\t\t$this->Error('OpenType fonts based on PostScript outlines are not supported');\n\t\tif($version!=\"\\x00\\x01\\x00\\x00\")\n\t\t\t$this->Error('Unrecognized file format');\n\t\t$numTables = $this->ReadUShort();\n\t\t$this->Skip(3*2); // searchRange, entrySelector, rangeShift\n\t\t$this->tables = array();\n\t\tfor($i=0;$i<$numTables;$i++)\n\t\t{\n\t\t\t$tag = $this->Read(4);\n\t\t\t$checkSum = $this->Read(4);\n\t\t\t$offset = $this->ReadULong();\n\t\t\t$length = $this->ReadULong(4);\n\t\t\t$this->tables[$tag] = array('offset'=>$offset, 'length'=>$length, 'checkSum'=>$checkSum);\n\t\t}\n\t}\t\n\n\tfunction ParseHead()\n\t{\n\t\t$this->Seek('head');\n\t\t$this->Skip(3*4); // version, fontRevision, checkSumAdjustment\n\t\t$magicNumber = $this->ReadULong();\n\t\tif($magicNumber!=0x5F0F3CF5)\n\t\t\t$this->Error('Incorrect magic number');\n\t\t$this->Skip(2); // flags\n\t\t$this->unitsPerEm = $this->ReadUShort();\n\t\t$this->Skip(2*8); // created, modified\n\t\t$this->xMin = $this->ReadShort();\n\t\t$this->yMin = $this->ReadShort();\n\t\t$this->xMax = $this->ReadShort();\n\t\t$this->yMax = $this->ReadShort();\n\t\t$this->Skip(3*2); // macStyle, lowestRecPPEM, fontDirectionHint\n\t\t$this->indexToLocFormat = $this->ReadShort();\n\t}\n\n\tfunction ParseHhea()\n\t{\n\t\t$this->Seek('hhea');\n\t\t$this->Skip(4+15*2);\n\t\t$this->numberOfHMetrics = $this->ReadUShort();\n\t}\n\n\tfunction ParseMaxp()\n\t{\n\t\t$this->Seek('maxp');\n\t\t$this->Skip(4);\n\t\t$this->numGlyphs = $this->ReadUShort();\n\t}\n\n\tfunction ParseHmtx()\n\t{\n\t\t$this->Seek('hmtx');\n\t\t$this->glyphs = array();\n\t\tfor($i=0;$i<$this->numberOfHMetrics;$i++)\n\t\t{\n\t\t\t$advanceWidth = $this->ReadUShort();\n\t\t\t$lsb = $this->ReadShort();\n\t\t\t$this->glyphs[$i] = array('w'=>$advanceWidth, 'lsb'=>$lsb);\n\t\t}\n\t\tfor($i=$this->numberOfHMetrics;$i<$this->numGlyphs;$i++)\n\t\t{\n\t\t\t$lsb = $this->ReadShort();\n\t\t\t$this->glyphs[$i] = array('w'=>$advanceWidth, 'lsb'=>$lsb);\n\t\t}\n\t}\n\n\tfunction ParseLoca()\n\t{\n\t\t$this->Seek('loca');\n\t\t$offsets = array();\n\t\tif($this->indexToLocFormat==0)\n\t\t{\n\t\t\t// Short format\n\t\t\tfor($i=0;$i<=$this->numGlyphs;$i++)\n\t\t\t\t$offsets[] = 2*$this->ReadUShort();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Long format\n\t\t\tfor($i=0;$i<=$this->numGlyphs;$i++)\n\t\t\t\t$offsets[] = $this->ReadULong();\n\t\t}\n\t\tfor($i=0;$i<$this->numGlyphs;$i++)\n\t\t{\n\t\t\t$this->glyphs[$i]['offset'] = $offsets[$i];\n\t\t\t$this->glyphs[$i]['length'] = $offsets[$i+1] - $offsets[$i];\n\t\t}\n\t}\n\n\tfunction ParseGlyf()\n\t{\n\t\t$tableOffset = $this->tables['glyf']['offset'];\n\t\tforeach($this->glyphs as &$glyph)\n\t\t{\n\t\t\tif($glyph['length']>0)\n\t\t\t{\n\t\t\t\tfseek($this->f, $tableOffset+$glyph['offset'], SEEK_SET);\n\t\t\t\tif($this->ReadShort()<0)\n\t\t\t\t{\n\t\t\t\t\t// Composite glyph\n\t\t\t\t\t$this->Skip(4*2); // xMin, yMin, xMax, yMax\n\t\t\t\t\t$offset = 5*2;\n\t\t\t\t\t$a = array();\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\t\t$flags = $this->ReadUShort();\n\t\t\t\t\t\t$index = $this->ReadUShort();\n\t\t\t\t\t\t$a[$offset+2] = $index;\n\t\t\t\t\t\tif($flags & 1) // ARG_1_AND_2_ARE_WORDS\n\t\t\t\t\t\t\t$skip = 2*2;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$skip = 2;\n\t\t\t\t\t\tif($flags & 8) // WE_HAVE_A_SCALE\n\t\t\t\t\t\t\t$skip += 2;\n\t\t\t\t\t\telseif($flags & 64) // WE_HAVE_AN_X_AND_Y_SCALE\n\t\t\t\t\t\t\t$skip += 2*2;\n\t\t\t\t\t\telseif($flags & 128) // WE_HAVE_A_TWO_BY_TWO\n\t\t\t\t\t\t\t$skip += 4*2;\n\t\t\t\t\t\t$this->Skip($skip);\n\t\t\t\t\t\t$offset += 2*2 + $skip;\n\t\t\t\t\t}\n\t\t\t\t\twhile($flags & 32); // MORE_COMPONENTS\n\t\t\t\t\t$glyph['components'] = $a;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction ParseCmap()\n\t{\n\t\t$this->Seek('cmap');\n\t\t$this->Skip(2); // version\n\t\t$numTables = $this->ReadUShort();\n\t\t$offset31 = 0;\n\t\tfor($i=0;$i<$numTables;$i++)\n\t\t{\n\t\t\t$platformID = $this->ReadUShort();\n\t\t\t$encodingID = $this->ReadUShort();\n\t\t\t$offset = $this->ReadULong();\n\t\t\tif($platformID==3 && $encodingID==1)\n\t\t\t\t$offset31 = $offset;\n\t\t}\n\t\tif($offset31==0)\n\t\t\t$this->Error('No Unicode encoding found');\n\n\t\t$startCount = array();\n\t\t$endCount = array();\n\t\t$idDelta = array();\n\t\t$idRangeOffset = array();\n\t\t$this->chars = array();\n\t\tfseek($this->f, $this->tables['cmap']['offset']+$offset31, SEEK_SET);\n\t\t$format = $this->ReadUShort();\n\t\tif($format!=4)\n\t\t\t$this->Error('Unexpected subtable format: '.$format);\n\t\t$this->Skip(2*2); // length, language\n\t\t$segCount = $this->ReadUShort()/2;\n\t\t$this->Skip(3*2); // searchRange, entrySelector, rangeShift\n\t\tfor($i=0;$i<$segCount;$i++)\n\t\t\t$endCount[$i] = $this->ReadUShort();\n\t\t$this->Skip(2); // reservedPad\n\t\tfor($i=0;$i<$segCount;$i++)\n\t\t\t$startCount[$i] = $this->ReadUShort();\n\t\tfor($i=0;$i<$segCount;$i++)\n\t\t\t$idDelta[$i] = $this->ReadShort();\n\t\t$offset = ftell($this->f);\n\t\tfor($i=0;$i<$segCount;$i++)\n\t\t\t$idRangeOffset[$i] = $this->ReadUShort();\n\n\t\tfor($i=0;$i<$segCount;$i++)\n\t\t{\n\t\t\t$c1 = $startCount[$i];\n\t\t\t$c2 = $endCount[$i];\n\t\t\t$d = $idDelta[$i];\n\t\t\t$ro = $idRangeOffset[$i];\n\t\t\tif($ro>0)\n\t\t\t\tfseek($this->f, $offset+2*$i+$ro, SEEK_SET);\n\t\t\tfor($c=$c1;$c<=$c2;$c++)\n\t\t\t{\n\t\t\t\tif($c==0xFFFF)\n\t\t\t\t\tbreak;\n\t\t\t\tif($ro>0)\n\t\t\t\t{\n\t\t\t\t\t$gid = $this->ReadUShort();\n\t\t\t\t\tif($gid>0)\n\t\t\t\t\t\t$gid += $d;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$gid = $c+$d;\n\t\t\t\tif($gid>=65536)\n\t\t\t\t\t$gid -= 65536;\n\t\t\t\tif($gid>0)\n\t\t\t\t\t$this->chars[$c] = $gid;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction ParseName()\n\t{\n\t\t$this->Seek('name');\n\t\t$tableOffset = $this->tables['name']['offset'];\n\t\t$this->postScriptName = '';\n\t\t$this->Skip(2); // format\n\t\t$count = $this->ReadUShort();\n\t\t$stringOffset = $this->ReadUShort();\n\t\tfor($i=0;$i<$count;$i++)\n\t\t{\n\t\t\t$this->Skip(3*2); // platformID, encodingID, languageID\n\t\t\t$nameID = $this->ReadUShort();\n\t\t\t$length = $this->ReadUShort();\n\t\t\t$offset = $this->ReadUShort();\n\t\t\tif($nameID==6)\n\t\t\t{\n\t\t\t\t// PostScript name\n\t\t\t\tfseek($this->f, $tableOffset+$stringOffset+$offset, SEEK_SET);\n\t\t\t\t$s = $this->Read($length);\n\t\t\t\t$s = str_replace(chr(0), '', $s);\n\t\t\t\t$s = preg_replace('|[ \\[\\](){}<>/%]|', '', $s);\n\t\t\t\t$this->postScriptName = $s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif($this->postScriptName=='')\n\t\t\t$this->Error('PostScript name not found');\n\t}\n\n\tfunction ParseOS2()\n\t{\n\t\t$this->Seek('OS/2');\n\t\t$version = $this->ReadUShort();\n\t\t$this->Skip(3*2); // xAvgCharWidth, usWeightClass, usWidthClass\n\t\t$fsType = $this->ReadUShort();\n\t\t$this->embeddable = ($fsType!=2) && ($fsType & 0x200)==0;\n\t\t$this->Skip(11*2+10+4*4+4);\n\t\t$fsSelection = $this->ReadUShort();\n\t\t$this->bold = ($fsSelection & 32)!=0;\n\t\t$this->Skip(2*2); // usFirstCharIndex, usLastCharIndex\n\t\t$this->typoAscender = $this->ReadShort();\n\t\t$this->typoDescender = $this->ReadShort();\n\t\tif($version>=2)\n\t\t{\n\t\t\t$this->Skip(3*2+2*4+2);\n\t\t\t$this->capHeight = $this->ReadShort();\n\t\t}\n\t\telse\n\t\t\t$this->capHeight = 0;\n\t}\n\n\tfunction ParsePost()\n\t{\n\t\t$this->Seek('post');\n\t\t$version = $this->ReadULong();\n\t\t$this->italicAngle = $this->ReadShort();\n\t\t$this->Skip(2); // Skip decimal part\n\t\t$this->underlinePosition = $this->ReadShort();\n\t\t$this->underlineThickness = $this->ReadShort();\n\t\t$this->isFixedPitch = ($this->ReadULong()!=0);\n\t\tif($version==0x20000)\n\t\t{\n\t\t\t// Extract glyph names\n\t\t\t$this->Skip(4*4); // min/max usage\n\t\t\t$this->Skip(2); // numberOfGlyphs\n\t\t\t$glyphNameIndex = array();\n\t\t\t$names = array();\n\t\t\t$numNames = 0;\n\t\t\tfor($i=0;$i<$this->numGlyphs;$i++)\n\t\t\t{\n\t\t\t\t$index = $this->ReadUShort();\n\t\t\t\t$glyphNameIndex[] = $index;\n\t\t\t\tif($index>=258 && $index-257>$numNames)\n\t\t\t\t\t$numNames = $index-257;\n\t\t\t}\n\t\t\tfor($i=0;$i<$numNames;$i++)\n\t\t\t{\n\t\t\t\t$len = ord($this->Read(1));\n\t\t\t\t$names[] = $this->Read($len);\n\t\t\t}\n\t\t\tforeach($glyphNameIndex as $i=>$index)\n\t\t\t{\n\t\t\t\tif($index>=258)\n\t\t\t\t\t$this->glyphs[$i]['name'] = $names[$index-258];\n\t\t\t\telse\n\t\t\t\t\t$this->glyphs[$i]['name'] = $index;\n\t\t\t}\n\t\t\t$this->glyphNames = true;\n\t\t}\n\t\telse\n\t\t\t$this->glyphNames = false;\n\t}\n\n\tfunction Subset($chars)\n\t{\n/*\t\t$chars = array_keys($this->chars);\n\t\t$this->subsettedChars = $chars;\n\t\t$this->subsettedGlyphs = array();\n\t\tfor($i=0;$i<$this->numGlyphs;$i++)\n\t\t{\n\t\t\t$this->subsettedGlyphs[] = $i;\n\t\t\t$this->glyphs[$i]['ssid'] = $i;\n\t\t}*/\n\n\t\t$this->AddGlyph(0);\n\t\t$this->subsettedChars = array();\n\t\tforeach($chars as $char)\n\t\t{\n\t\t\tif(isset($this->chars[$char]))\n\t\t\t{\n\t\t\t\t$this->subsettedChars[] = $char;\n\t\t\t\t$this->AddGlyph($this->chars[$char]);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction AddGlyph($id)\n\t{\n\t\tif(!isset($this->glyphs[$id]['ssid']))\n\t\t{\n\t\t\t$this->glyphs[$id]['ssid'] = count($this->subsettedGlyphs);\n\t\t\t$this->subsettedGlyphs[] = $id;\n\t\t\tif(isset($this->glyphs[$id]['components']))\n\t\t\t{\n\t\t\t\tforeach($this->glyphs[$id]['components'] as $cid)\n\t\t\t\t\t$this->AddGlyph($cid);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction Build()\n\t{\n\t\t$this->BuildCmap();\n\t\t$this->BuildHhea();\n\t\t$this->BuildHmtx();\n\t\t$this->BuildLoca();\n\t\t$this->BuildGlyf();\n\t\t$this->BuildMaxp();\n\t\t$this->BuildPost();\n\t\treturn $this->BuildFont();\n\t}\n\n\tfunction BuildCmap()\n\t{\n\t\tif(!isset($this->subsettedChars))\n\t\t\treturn;\n\n\t\t// Divide charset in contiguous segments\n\t\t$chars = $this->subsettedChars;\n\t\tsort($chars);\n\t\t$segments = array();\n\t\t$segment = array($chars[0], $chars[0]);\n\t\tfor($i=1;$i<count($chars);$i++)\n\t\t{\n\t\t\tif($chars[$i]>$segment[1]+1)\n\t\t\t{\n\t\t\t\t$segments[] = $segment;\n\t\t\t\t$segment = array($chars[$i], $chars[$i]);\n\t\t\t}\n\t\t\telse\n\t\t\t\t$segment[1]++;\n\t\t}\n\t\t$segments[] = $segment;\n\t\t$segments[] = array(0xFFFF, 0xFFFF);\n\t\t$segCount = count($segments);\n\n\t\t// Build a Format 4 subtable\n\t\t$startCount = array();\n\t\t$endCount = array();\n\t\t$idDelta = array();\n\t\t$idRangeOffset = array();\n\t\t$glyphIdArray = '';\n\t\tfor($i=0;$i<$segCount;$i++)\n\t\t{\n\t\t\tlist($start, $end) = $segments[$i];\n\t\t\t$startCount[] = $start;\n\t\t\t$endCount[] = $end;\n\t\t\tif($start!=$end)\n\t\t\t{\n\t\t\t\t// Segment with multiple chars\n\t\t\t\t$idDelta[] = 0;\n\t\t\t\t$idRangeOffset[] = strlen($glyphIdArray) + ($segCount-$i)*2;\n\t\t\t\tfor($c=$start;$c<=$end;$c++)\n\t\t\t\t{\n\t\t\t\t\t$ssid = $this->glyphs[$this->chars[$c]]['ssid'];\n\t\t\t\t\t$glyphIdArray .= pack('n', $ssid);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Segment with a single char\n\t\t\t\tif($start<0xFFFF)\n\t\t\t\t\t$ssid = $this->glyphs[$this->chars[$start]]['ssid'];\n\t\t\t\telse\n\t\t\t\t\t$ssid = 0;\n\t\t\t\t$idDelta[] = $ssid - $start;\n\t\t\t\t$idRangeOffset[] = 0;\n\t\t\t}\n\t\t}\n\t\t$entrySelector = 0;\n\t\t$n = $segCount;\n\t\twhile($n!=1)\n\t\t{\n\t\t\t$n = $n>>1;\n\t\t\t$entrySelector++;\n\t\t}\n\t\t$searchRange = (1<<$entrySelector)*2;\n\t\t$rangeShift = 2*$segCount - $searchRange;\n\t\t$cmap = pack('nnnn', 2*$segCount, $searchRange, $entrySelector, $rangeShift);\n\t\tforeach($endCount as $val)\n\t\t\t$cmap .= pack('n', $val);\n\t\t$cmap .= pack('n', 0); // reservedPad\n\t\tforeach($startCount as $val)\n\t\t\t$cmap .= pack('n', $val);\n\t\tforeach($idDelta as $val)\n\t\t\t$cmap .= pack('n', $val);\n\t\tforeach($idRangeOffset as $val)\n\t\t\t$cmap .= pack('n', $val);\n\t\t$cmap .= $glyphIdArray;\n\n\t\t$data = pack('nn', 0, 1); // version, numTables\n\t\t$data .= pack('nnN', 3, 1, 12); // platformID, encodingID, offset\n\t\t$data .= pack('nnn', 4, 6+strlen($cmap), 0); // format, length, language\n\t\t$data .= $cmap;\n\t\t$this->SetTable('cmap', $data);\n\t}\n\n\tfunction BuildHhea()\n\t{\n\t\t$this->LoadTable('hhea');\n\t\t$numberOfHMetrics = count($this->subsettedGlyphs);\n\t\t$data = substr_replace($this->tables['hhea']['data'], pack('n',$numberOfHMetrics), 4+15*2, 2);\n\t\t$this->SetTable('hhea', $data);\n\t}\n\n\tfunction BuildHmtx()\n\t{\n\t\t$data = '';\n\t\tforeach($this->subsettedGlyphs as $id)\n\t\t{\n\t\t\t$glyph = $this->glyphs[$id];\n\t\t\t$data .= pack('nn', $glyph['w'], $glyph['lsb']);\n\t\t}\n\t\t$this->SetTable('hmtx', $data);\n\t}\n\n\tfunction BuildLoca()\n\t{\n\t\t$data = '';\n\t\t$offset = 0;\n\t\tforeach($this->subsettedGlyphs as $id)\n\t\t{\n\t\t\tif($this->indexToLocFormat==0)\n\t\t\t\t$data .= pack('n', $offset/2);\n\t\t\telse\n\t\t\t\t$data .= pack('N', $offset);\n\t\t\t$offset += $this->glyphs[$id]['length'];\n\t\t}\n\t\tif($this->indexToLocFormat==0)\n\t\t\t$data .= pack('n', $offset/2);\n\t\telse\n\t\t\t$data .= pack('N', $offset);\n\t\t$this->SetTable('loca', $data);\n\t}\n\n\tfunction BuildGlyf()\n\t{\n\t\t$tableOffset = $this->tables['glyf']['offset'];\n\t\t$data = '';\n\t\tforeach($this->subsettedGlyphs as $id)\n\t\t{\n\t\t\t$glyph = $this->glyphs[$id];\n\t\t\tfseek($this->f, $tableOffset+$glyph['offset'], SEEK_SET);\n\t\t\t$glyph_data = $this->Read($glyph['length']);\n\t\t\tif(isset($glyph['components']))\n\t\t\t{\n\t\t\t\t// Composite glyph\n\t\t\t\tforeach($glyph['components'] as $offset=>$cid)\n\t\t\t\t{\n\t\t\t\t\t$ssid = $this->glyphs[$cid]['ssid'];\n\t\t\t\t\t$glyph_data = substr_replace($glyph_data, pack('n',$ssid), $offset, 2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data .= $glyph_data;\n\t\t}\n\t\t$this->SetTable('glyf', $data);\n\t}\n\n\tfunction BuildMaxp()\n\t{\n\t\t$this->LoadTable('maxp');\n\t\t$numGlyphs = count($this->subsettedGlyphs);\n\t\t$data = substr_replace($this->tables['maxp']['data'], pack('n',$numGlyphs), 4, 2);\n\t\t$this->SetTable('maxp', $data);\n\t}\n\n\tfunction BuildPost()\n\t{\n\t\t$this->Seek('post');\n\t\tif($this->glyphNames)\n\t\t{\n\t\t\t// Version 2.0\n\t\t\t$numberOfGlyphs = count($this->subsettedGlyphs);\n\t\t\t$numNames = 0;\n\t\t\t$names = '';\n\t\t\t$data = $this->Read(2*4+2*2+5*4);\n\t\t\t$data .= pack('n', $numberOfGlyphs);\n\t\t\tforeach($this->subsettedGlyphs as $id)\n\t\t\t{\n\t\t\t\t$name = $this->glyphs[$id]['name'];\n\t\t\t\tif(is_string($name))\n\t\t\t\t{\n\t\t\t\t\t$data .= pack('n', 258+$numNames);\n\t\t\t\t\t$names .= chr(strlen($name)).$name;\n\t\t\t\t\t$numNames++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$data .= pack('n', $name);\n\t\t\t}\n\t\t\t$data .= $names;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Version 3.0\n\t\t\t$this->Skip(4);\n\t\t\t$data = \"\\x00\\x03\\x00\\x00\";\n\t\t\t$data .= $this->Read(4+2*2+5*4);\n\t\t}\n\t\t$this->SetTable('post', $data);\n\t}\n\n\tfunction BuildFont()\n\t{\n\t\t$tags = array();\n\t\tforeach(array('cmap', 'cvt ', 'fpgm', 'glyf', 'head', 'hhea', 'hmtx', 'loca', 'maxp', 'name', 'post', 'prep') as $tag)\n\t\t{\n\t\t\tif(isset($this->tables[$tag]))\n\t\t\t\t$tags[] = $tag;\n\t\t}\n\t\t$numTables = count($tags);\n\t\t$offset = 12 + 16*$numTables;\n\t\tforeach($tags as $tag)\n\t\t{\n\t\t\tif(!isset($this->tables[$tag]['data']))\n\t\t\t\t$this->LoadTable($tag);\n\t\t\t$this->tables[$tag]['offset'] = $offset;\n\t\t\t$offset += strlen($this->tables[$tag]['data']);\n\t\t}\n//\t\t$this->tables['head']['data'] = substr_replace($this->tables['head']['data'], \"\\x00\\x00\\x00\\x00\", 8, 4);\n\n\t\t// Build offset table\n\t\t$entrySelector = 0;\n\t\t$n = $numTables;\n\t\twhile($n!=1)\n\t\t{\n\t\t\t$n = $n>>1;\n\t\t\t$entrySelector++;\n\t\t}\n\t\t$searchRange = 16*(1<<$entrySelector);\n\t\t$rangeShift = 16*$numTables - $searchRange;\n\t\t$offsetTable = pack('nnnnnn', 1, 0, $numTables, $searchRange, $entrySelector, $rangeShift);\n\t\tforeach($tags as $tag)\n\t\t{\n\t\t\t$table = $this->tables[$tag];\n\t\t\t$offsetTable .= $tag.$table['checkSum'].pack('NN', $table['offset'], $table['length']);\n\t\t}\n\n\t\t// Compute checkSumAdjustment (0xB1B0AFBA - font checkSum)\n\t\t$s = $this->CheckSum($offsetTable);\n\t\tforeach($tags as $tag)\n\t\t\t$s .= $this->tables[$tag]['checkSum'];\n\t\t$a = unpack('n2', $this->CheckSum($s));\n\t\t$high = 0xB1B0 + ($a[1]^0xFFFF);\n\t\t$low = 0xAFBA + ($a[2]^0xFFFF) + 1;\n\t\t$checkSumAdjustment = pack('nn', $high+($low>>16), $low);\n\t\t$this->tables['head']['data'] = substr_replace($this->tables['head']['data'], $checkSumAdjustment, 8, 4);\n\n\t\t$font = $offsetTable;\n\t\tforeach($tags as $tag)\n\t\t\t$font .= $this->tables[$tag]['data'];\n\n\t\treturn $font;\n\t}\n\n\tfunction LoadTable($tag)\n\t{\n\t\t$this->Seek($tag);\n\t\t$length = $this->tables[$tag]['length'];\n\t\t$n = $length % 4;\n\t\tif($n>0)\n\t\t\t$length += 4 - $n;\n\t\t$this->tables[$tag]['data'] = $this->Read($length);\n\t}\n\n\tfunction SetTable($tag, $data)\n\t{\n\t\t$length = strlen($data);\n\t\t$n = $length % 4;\n\t\tif($n>0)\n\t\t\t$data = str_pad($data, $length+4-$n, \"\\x00\");\n\t\t$this->tables[$tag]['data'] = $data;\n\t\t$this->tables[$tag]['length'] = $length;\n\t\t$this->tables[$tag]['checkSum'] = $this->CheckSum($data);\n\t}\n\n\tfunction Seek($tag)\n\t{\n\t\tif(!isset($this->tables[$tag]))\n\t\t\t$this->Error('Table not found: '.$tag);\n\t\tfseek($this->f, $this->tables[$tag]['offset'], SEEK_SET);\n\t}\n\n\tfunction Skip($n)\n\t{\n\t\tfseek($this->f, $n, SEEK_CUR);\n\t}\n\n\tfunction Read($n)\n\t{\n\t\treturn $n>0 ? fread($this->f, $n) : '';\n\t}\n\n\tfunction ReadUShort()\n\t{\n\t\t$a = unpack('nn', fread($this->f,2));\n\t\treturn $a['n'];\n\t}\n\n\tfunction ReadShort()\n\t{\n\t\t$a = unpack('nn', fread($this->f,2));\n\t\t$v = $a['n'];\n\t\tif($v>=0x8000)\n\t\t\t$v -= 65536;\n\t\treturn $v;\n\t}\n\n\tfunction ReadULong()\n\t{\n\t\t$a = unpack('NN', fread($this->f,4));\n\t\treturn $a['N'];\n\t}\n\n\tfunction CheckSum($s)\n\t{\n\t\t$n = strlen($s);\n\t\t$high = 0;\n\t\t$low = 0;\n\t\tfor($i=0;$i<$n;$i+=4)\n\t\t{\n\t\t\t$high += (ord($s[$i])<<8) + ord($s[$i+1]);\n\t\t\t$low += (ord($s[$i+2])<<8) + ord($s[$i+3]);\n\t\t}\n\t\treturn pack('nn', $high+($low>>16), $low);\n\t}\n\n\tfunction Error($msg)\n\t{\n\t\tthrow new Exception($msg);\n\t}\n}\n?>\n"
  },
  {
    "path": "tool/pdf/tutorial/20k_c1.txt",
    "content": "The year 1866 was marked by a bizarre development, an unexplained and downright inexplicable phenomenon that surely no one has forgotten. Without getting into those rumors that upset civilians in the seaports and deranged the public mind even far inland, it must be said that professional seamen were especially alarmed. Traders, shipowners, captains of vessels, skippers, and master mariners from Europe and America, naval officers from every country, and at their heels the various national governments on these two continents, were all extremely disturbed by the business.\nIn essence, over a period of time several ships had encountered \"an enormous thing\" at sea, a long spindle-shaped object, sometimes giving off a phosphorescent glow, infinitely bigger and faster than any whale.\nThe relevant data on this apparition, as recorded in various logbooks, agreed pretty closely as to the structure of the object or creature in question, its unprecedented speed of movement, its startling locomotive power, and the unique vitality with which it seemed to be gifted.  If it was a cetacean, it exceeded in bulk any whale previously classified by science.  No naturalist, neither Cuvier nor Lacpde, neither Professor Dumeril nor Professor de Quatrefages, would have accepted the existence of such a monster sight unseen -- specifically, unseen by their own scientific eyes.\nStriking an average of observations taken at different times -- rejecting those timid estimates that gave the object a length of 200 feet, and ignoring those exaggerated views that saw it as a mile wide and three long--you could still assert that this phenomenal creature greatly exceeded the dimensions of anything then known to ichthyologists, if it existed at all.\nNow then, it did exist, this was an undeniable fact; and since the human mind dotes on objects of wonder, you can understand the worldwide excitement caused by this unearthly apparition. As for relegating it to the realm of fiction, that charge had to be dropped.\nIn essence, on July 20, 1866, the steamer Governor Higginson, from the Calcutta & Burnach Steam Navigation Co., encountered this moving mass five miles off the eastern shores of Australia. Captain Baker at first thought he was in the presence of an unknown reef; he was even about to fix its exact position when two waterspouts shot out of this inexplicable object and sprang hissing into the air some 150 feet.  So, unless this reef was subject to the intermittent eruptions of a geyser, the Governor Higginson had fair and honest dealings with some aquatic mammal, until then unknown, that could spurt from its blowholes waterspouts mixed with air and steam.\nSimilar events were likewise observed in Pacific seas, on July 23 of the same year, by the Christopher Columbus from the West India & Pacific Steam Navigation Co.  Consequently, this extraordinary cetacean could transfer itself from one locality to another with startling swiftness, since within an interval of just three days, the Governor Higginson and the Christopher Columbus had observed it at two positions on the charts separated by a distance of more than 700 nautical leagues.\nFifteen days later and 2,000 leagues farther, the Helvetia from the Compagnie Nationale and the Shannon from the Royal Mail line, running on opposite tacks in that part of the Atlantic lying between the United States and Europe, respectively signaled each other that the monster had been sighted in latitude 42 degrees 15' north and longitude 60 degrees 35' west of the meridian of Greenwich.  From their simultaneous observations, they were able to estimate the mammal's minimum length at more than 350 English feet; this was because both the Shannon and the Helvetia were of smaller dimensions, although each measured 100 meters stem to stern. Now then, the biggest whales, those rorqual whales that frequent the waterways of the Aleutian Islands, have never exceeded a length of 56 meters--if they reach even that.\nOne after another, reports arrived that would profoundly affect public opinion:  new observations taken by the transatlantic liner Pereire, the Inman line's Etna running afoul of the monster, an official report drawn up by officers on the French frigate Normandy, dead-earnest reckonings obtained by the general staff of Commodore Fitz-James aboard the Lord Clyde. In lighthearted countries, people joked about this phenomenon, but such serious, practical countries as England, America, and Germany were deeply concerned.\nIn every big city the monster was the latest rage; they sang about it in the coffee houses, they ridiculed it in the newspapers, they dramatized it in the theaters.  The tabloids found it a fine opportunity for hatching all sorts of hoaxes. In those newspapers short of copy, you saw the reappearance of every gigantic imaginary creature, from \"Moby Dick,\" that dreadful white whale from the High Arctic regions, to the stupendous kraken whose tentacles could entwine a 500-ton craft and drag it into the ocean depths. They even reprinted reports from ancient times: the views of Aristotle and Pliny accepting the existence of such monsters, then the Norwegian stories of Bishop Pontoppidan, the narratives of Paul Egede, and finally the reports of Captain Harrington -- whose good faith is above suspicion--in which he claims he saw, while aboard the Castilian in 1857, one of those enormous serpents that, until then, had frequented only the seas of France's old extremist newspaper, The Constitutionalist.\n"
  },
  {
    "path": "tool/pdf/tutorial/20k_c2.txt",
    "content": "During the period in which these developments were occurring, I had returned from a scientific undertaking organized to explore the Nebraska badlands in the United States. In my capacity as Assistant Professor at the Paris Museum of Natural History, I had been attached to this expedition by the French government. After spending six months in Nebraska, I arrived in New York laden with valuable collections near the end of March. My departure for France was set for early May. In the meantime, then, I was busy classifying my mineralogical, botanical, and zoological treasures when that incident took place with the Scotia.\nI was perfectly abreast of this question, which was the big news of the day, and how could I not have been? I had read and reread every American and European newspaper without being any farther along. This mystery puzzled me. Finding it impossible to form any views, I drifted from one extreme to the other. Something was out there, that much was certain, and any doubting Thomas was invited to place his finger on the Scotia's wound.\nWhen I arrived in New York, the question was at the boiling point. The hypothesis of a drifting islet or an elusive reef, put forward by people not quite in their right minds, was completely eliminated. And indeed, unless this reef had an engine in its belly, how could it move about with such prodigious speed?\nAlso discredited was the idea of a floating hull or some other enormous wreckage, and again because of this speed of movement.\nSo only two possible solutions to the question were left, creating two very distinct groups of supporters: on one side, those favoring a monster of colossal strength; on the other, those favoring an \"underwater boat\" of tremendous motor power.\nNow then, although the latter hypothesis was completely admissible, it couldn't stand up to inquiries conducted in both the New World and the Old. That a private individual had such a mechanism at his disposal was less than probable. Where and when had he built it, and how could he have built it in secret?\nOnly some government could own such an engine of destruction, and in these disaster-filled times, when men tax their ingenuity to build increasingly powerful aggressive weapons, it was possible that, unknown to the rest of the world, some nation could have been testing such a fearsome machine. The Chassepot rifle led to the torpedo, and the torpedo has led to this underwater battering ram, which in turn will lead to the world putting its foot down. At least I hope it will.\nBut this hypothesis of a war machine collapsed in the face of formal denials from the various governments. Since the public interest was at stake and transoceanic travel was suffering, the sincerity of these governments could not be doubted. Besides, how could the assembly of this underwater boat have escaped public notice? Keeping a secret under such circumstances would be difficult enough for an individual, and certainly impossible for a nation whose every move is under constant surveillance by rival powers.\nSo, after inquiries conducted in England, France, Russia, Prussia, Spain, Italy, America, and even Turkey, the hypothesis of an underwater Monitor was ultimately rejected.\nAfter I arrived in New York, several people did me the honor of consulting me on the phenomenon in question. In France I had published a two-volume work, in quarto, entitled The Mysteries of the Great Ocean Depths. Well received in scholarly circles, this book had established me as a specialist in this pretty obscure field of natural history. My views were in demand. As long as I could deny the reality of the business, I confined myself to a flat \"no comment.\" But soon, pinned to the wall, I had to explain myself straight out. And in this vein, \"the honorable Pierre Aronnax, Professor at the Paris Museum,\" was summoned by The New York Herald to formulate his views no matter what.\nI complied. Since I could no longer hold my tongue, I let it wag. I discussed the question in its every aspect, both political and scientific, and this is an excerpt from the well-padded article I published in the issue of April 30.\n\n\"Therefore,\" I wrote, \"after examining these different hypotheses one by one, we are forced, every other supposition having been refuted, to accept the existence of an extremely powerful marine animal.\n\"The deepest parts of the ocean are totally unknown to us. No soundings have been able to reach them. What goes on in those distant depths? What creatures inhabit, or could inhabit, those regions twelve or fifteen miles beneath the surface of the water? What is the constitution of these animals? It's almost beyond conjecture.\n\"However, the solution to this problem submitted to me can take the form of a choice between two alternatives.\n\"Either we know every variety of creature populating our planet, or we do not.\n\"If we do not know every one of them, if nature still keeps ichthyological secrets from us, nothing is more admissible than to accept the existence of fish or cetaceans of new species or even new genera, animals with a basically 'cast-iron' constitution that inhabit strata beyond the reach of our soundings, and which some development or other, an urge or a whim if you prefer, can bring to the upper level of the ocean for long intervals.\n\"If, on the other hand, we do know every living species, we must look for the animal in question among those marine creatures already cataloged, and in this event I would be inclined to accept the existence of a giant narwhale.\n\"The common narwhale, or sea unicorn, often reaches a length of sixty feet. Increase its dimensions fivefold or even tenfold, then give this cetacean a strength in proportion to its size while enlarging its offensive weapons, and you have the animal we're looking for. It would have the proportions determined by the officers of the Shannon, the instrument needed to perforate the Scotia, and the power to pierce a steamer's hull.\n\"In essence, the narwhale is armed with a sort of ivory sword, or lance, as certain naturalists have expressed it. It's a king-sized tooth as hard as steel. Some of these teeth have been found buried in the bodies of baleen whales, which the narwhale attacks with invariable success. Others have been wrenched, not without difficulty, from the undersides of vessels that narwhales have pierced clean through, as a gimlet pierces a wine barrel. The museum at the Faculty of Medicine in Paris owns one of these tusks with a length of 2.25 meters and a width at its base of forty-eight centimeters!\n\"All right then! Imagine this weapon to be ten times stronger and the animal ten times more powerful, launch it at a speed of twenty miles per hour, multiply its mass times its velocity, and you get just the collision we need to cause the specified catastrophe.\n\"So, until information becomes more abundant, I plump for a sea unicorn of colossal dimensions, no longer armed with a mere lance but with an actual spur, like ironclad frigates or those warships called 'rams,' whose mass and motor power it would possess simultaneously.\n\"This inexplicable phenomenon is thus explained away--unless it's something else entirely, which, despite everything that has been sighted, studied, explored and experienced, is still possible!\"\n"
  },
  {
    "path": "tool/pdf/tutorial/calligra.php",
    "content": "<?php\n$type = 'TrueType';\n$name = 'CalligrapherRegular';\n$desc = array('Ascent'=>899,'Descent'=>-234,'CapHeight'=>899,'Flags'=>32,'FontBBox'=>'[-173 -234 1328 899]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>800);\n$up = -200;\n$ut = 20;\n$cw = array(\n\tchr(0)=>800,chr(1)=>800,chr(2)=>800,chr(3)=>800,chr(4)=>800,chr(5)=>800,chr(6)=>800,chr(7)=>800,chr(8)=>800,chr(9)=>800,chr(10)=>800,chr(11)=>800,chr(12)=>800,chr(13)=>800,chr(14)=>800,chr(15)=>800,chr(16)=>800,chr(17)=>800,chr(18)=>800,chr(19)=>800,chr(20)=>800,chr(21)=>800,\n\tchr(22)=>800,chr(23)=>800,chr(24)=>800,chr(25)=>800,chr(26)=>800,chr(27)=>800,chr(28)=>800,chr(29)=>800,chr(30)=>800,chr(31)=>800,' '=>282,'!'=>324,'\"'=>405,'#'=>584,'$'=>632,'%'=>980,'&'=>776,'\\''=>259,'('=>299,')'=>299,'*'=>377,'+'=>600,\n\t','=>259,'-'=>432,'.'=>254,'/'=>597,'0'=>529,'1'=>298,'2'=>451,'3'=>359,'4'=>525,'5'=>423,'6'=>464,'7'=>417,'8'=>457,'9'=>479,':'=>275,';'=>282,'<'=>600,'='=>600,'>'=>600,'?'=>501,'@'=>800,'A'=>743,\n\t'B'=>636,'C'=>598,'D'=>712,'E'=>608,'F'=>562,'G'=>680,'H'=>756,'I'=>308,'J'=>314,'K'=>676,'L'=>552,'M'=>1041,'N'=>817,'O'=>729,'P'=>569,'Q'=>698,'R'=>674,'S'=>618,'T'=>673,'U'=>805,'V'=>753,'W'=>1238,\n\t'X'=>716,'Y'=>754,'Z'=>599,'['=>315,'\\\\'=>463,']'=>315,'^'=>600,'_'=>547,'`'=>278,'a'=>581,'b'=>564,'c'=>440,'d'=>571,'e'=>450,'f'=>347,'g'=>628,'h'=>611,'i'=>283,'j'=>283,'k'=>560,'l'=>252,'m'=>976,\n\t'n'=>595,'o'=>508,'p'=>549,'q'=>540,'r'=>395,'s'=>441,'t'=>307,'u'=>614,'v'=>556,'w'=>915,'x'=>559,'y'=>597,'z'=>452,'{'=>315,'|'=>222,'}'=>315,'~'=>600,chr(127)=>800,chr(128)=>800,chr(129)=>800,chr(130)=>0,chr(131)=>0,\n\tchr(132)=>0,chr(133)=>780,chr(134)=>0,chr(135)=>0,chr(136)=>278,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>1064,chr(141)=>800,chr(142)=>0,chr(143)=>800,chr(144)=>800,chr(145)=>259,chr(146)=>259,chr(147)=>470,chr(148)=>470,chr(149)=>500,chr(150)=>300,chr(151)=>600,chr(152)=>278,chr(153)=>990,\n\tchr(154)=>0,chr(155)=>0,chr(156)=>790,chr(157)=>800,chr(158)=>800,chr(159)=>754,chr(160)=>282,chr(161)=>324,chr(162)=>450,chr(163)=>640,chr(164)=>518,chr(165)=>603,chr(166)=>0,chr(167)=>519,chr(168)=>254,chr(169)=>800,chr(170)=>349,chr(171)=>0,chr(172)=>0,chr(173)=>432,chr(174)=>800,chr(175)=>278,\n\tchr(176)=>0,chr(177)=>0,chr(178)=>0,chr(179)=>0,chr(180)=>278,chr(181)=>614,chr(182)=>0,chr(183)=>254,chr(184)=>278,chr(185)=>0,chr(186)=>305,chr(187)=>0,chr(188)=>0,chr(189)=>0,chr(190)=>0,chr(191)=>501,chr(192)=>743,chr(193)=>743,chr(194)=>743,chr(195)=>743,chr(196)=>743,chr(197)=>743,\n\tchr(198)=>1060,chr(199)=>598,chr(200)=>608,chr(201)=>608,chr(202)=>608,chr(203)=>608,chr(204)=>308,chr(205)=>308,chr(206)=>308,chr(207)=>308,chr(208)=>0,chr(209)=>817,chr(210)=>729,chr(211)=>729,chr(212)=>729,chr(213)=>729,chr(214)=>729,chr(215)=>0,chr(216)=>729,chr(217)=>805,chr(218)=>805,chr(219)=>805,\n\tchr(220)=>805,chr(221)=>0,chr(222)=>0,chr(223)=>688,chr(224)=>581,chr(225)=>581,chr(226)=>581,chr(227)=>581,chr(228)=>581,chr(229)=>581,chr(230)=>792,chr(231)=>440,chr(232)=>450,chr(233)=>450,chr(234)=>450,chr(235)=>450,chr(236)=>283,chr(237)=>283,chr(238)=>283,chr(239)=>283,chr(240)=>0,chr(241)=>595,\n\tchr(242)=>508,chr(243)=>508,chr(244)=>508,chr(245)=>508,chr(246)=>508,chr(247)=>0,chr(248)=>508,chr(249)=>614,chr(250)=>614,chr(251)=>614,chr(252)=>614,chr(253)=>0,chr(254)=>0,chr(255)=>597);\n$enc = 'cp1252';\n$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));\n$file = 'calligra.z';\n$originalsize = 33948;\n$subsetted = true;\n?>\n"
  },
  {
    "path": "tool/pdf/tutorial/countries.txt",
    "content": "Austria;Vienna;83859;8075\nBelgium;Brussels;30518;10192\nDenmark;Copenhagen;43094;5295\nFinland;Helsinki;304529;5147\nFrance;Paris;543965;58728\nGermany;Berlin;357022;82057\nGreece;Athens;131625;10511\nIreland;Dublin;70723;3694\nItaly;Roma;301316;57563\nLuxembourg;Luxembourg;2586;424\nNetherlands;Amsterdam;41526;15654\nPortugal;Lisbon;91906;9957\nSpain;Madrid;504790;39348\nSweden;Stockholm;410934;8839\nUnited Kingdom;London;243820;58862\n"
  },
  {
    "path": "tool/pdf/tutorial/index.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Tutorials</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Tutorials</h1>\n<ul style=\"list-style-type:none; margin-left:0; padding-left:0\">\n<li><a href=\"tuto1.htm\">Tutorial 1</a>: Minimal example</li>\n<li><a href=\"tuto2.htm\">Tutorial 2</a>: Header, footer, page break and image</li>\n<li><a href=\"tuto3.htm\">Tutorial 3</a>: Line breaks and colors</li>\n<li><a href=\"tuto4.htm\">Tutorial 4</a>: Multi-columns</li>\n<li><a href=\"tuto5.htm\">Tutorial 5</a>: Tables</li>\n<li><a href=\"tuto6.htm\">Tutorial 6</a>: Links and flowing text</li>\n<li><a href=\"tuto7.htm\">Tutorial 7</a>: Adding new fonts and encodings</li>\n</ul>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/tutorial/makefont.php",
    "content": "<?php\n// Generation of font definition file for tutorial 7\nrequire('../makefont/makefont.php');\n\nMakeFont('calligra.ttf','cp1252');\n?>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto1.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Minimal example</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Minimal example</h1>\nLet's start with the classic example:\n<div class=\"source\">\n<pre><code>&lt;?php\n<span class=\"kw\">require(</span><span class=\"str\">'fpdf.php'</span><span class=\"kw\">);\n\n</span>$pdf <span class=\"kw\">= new </span>FPDF<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>AddPage<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">'B'</span><span class=\"kw\">,</span>16<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Cell<span class=\"kw\">(</span>40<span class=\"kw\">,</span>10<span class=\"kw\">,</span><span class=\"str\">'Hello World!'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Output<span class=\"kw\">();\n</span>?&gt;</code></pre>\n</div>\n<p class='demo'><a href='tuto1.php' target='_blank' class='demo'>[Demo]</a></p>\nAfter including the library file, we create an FPDF object.\nThe <a href='../doc/__construct.htm'>constructor</a> is used here with the default values: pages are in A4 portrait and\nthe unit of measure is millimeter. It could have been specified explicitly with:\n<div class=\"source\">\n<pre><code>$pdf <span class=\"kw\">= new </span>FPDF<span class=\"kw\">(</span><span class=\"str\">'P'</span><span class=\"kw\">,</span><span class=\"str\">'mm'</span><span class=\"kw\">,</span><span class=\"str\">'A4'</span><span class=\"kw\">);\n</span></code></pre>\n</div>\nIt's possible to use landscape (<code>L</code>), other page sizes (such as <code>Letter</code> and\n<code>Legal</code>) and units (<code>pt</code>, <code>cm</code>, <code>in</code>).\n<br>\n<br>\nThere's no page at the moment, so we have to add one with <a href='../doc/addpage.htm'>AddPage()</a>. The origin\nis at the upper-left corner and the current position is by default set at 1 cm from the\nborders; the margins can be changed with <a href='../doc/setmargins.htm'>SetMargins()</a>.\n<br>\n<br>\nBefore we can print text, it's mandatory to select a font with <a href='../doc/setfont.htm'>SetFont()</a>.\nWe choose Arial bold 16:\n<div class=\"source\">\n<pre><code>$pdf<span class=\"kw\">-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">'B'</span><span class=\"kw\">,</span>16<span class=\"kw\">);\n</span></code></pre>\n</div>\nWe could have specified italics with I, underlined with U or a regular font with an empty string\n(or any combination). Note that the font size is given in points, not millimeters (or another user\nunit); it's the only exception. The other standard fonts are Times, Courier, Symbol and ZapfDingbats.\n<br>\n<br>\nWe can now print a cell with <a href='../doc/cell.htm'>Cell()</a>. A cell is a rectangular area, possibly framed,\nwhich contains a line of text. It is output at the current position. We specify its dimensions,\nits text (centered or aligned), if borders should be drawn, and where the current position\nmoves after it (to the right, below or to the beginning of the next line). To add a frame, we would do this:\n<div class=\"source\">\n<pre><code>$pdf<span class=\"kw\">-&gt;</span>Cell<span class=\"kw\">(</span>40<span class=\"kw\">,</span>10<span class=\"kw\">,</span><span class=\"str\">'Hello World !'</span><span class=\"kw\">,</span>1<span class=\"kw\">);\n</span></code></pre>\n</div>\nTo add a new cell next to it with centered text and go to the next line, we would do:\n<div class=\"source\">\n<pre><code>$pdf<span class=\"kw\">-&gt;</span>Cell<span class=\"kw\">(</span>60<span class=\"kw\">,</span>10<span class=\"kw\">,</span><span class=\"str\">'Powered by FPDF.'</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span>1<span class=\"kw\">,</span><span class=\"str\">'C'</span><span class=\"kw\">);\n</span></code></pre>\n</div>\nRemark: the line break can also be done with <a href='../doc/ln.htm'>Ln()</a>. This method additionnaly allows to specify\nthe height of the break.\n<br>\n<br>\nFinally, the document is closed and sent to the browser with <a href='../doc/output.htm'>Output()</a>. We could have saved\nit to a file by passing the appropriate parameters.\n<br>\n<br>\n<strong>Caution:</strong> in case when the PDF is sent to the browser, nothing else must be output by the\nscript, neither before nor after (no HTML, not even a space or a carriage return). If you send something\nbefore, you will get the error message: \"Some data has already been output, can't send PDF file\". If you\nsend something after, the document might not display.\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto1.php",
    "content": "<?php\nrequire('../fpdf.php');\n\n$pdf = new FPDF();\n$pdf->AddPage();\n$pdf->SetFont('Arial','B',16);\n$pdf->Cell(40,10,'<h1>Hello World!<h1>');\n$pdf->Output();\n?>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto2.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Header, footer, page break and image</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Header, footer, page break and image</h1>\nHere's a two page example with header, footer and logo:\n<div class=\"source\">\n<pre><code>&lt;?php\n<span class=\"kw\">require(</span><span class=\"str\">'fpdf.php'</span><span class=\"kw\">);\n\nclass </span>PDF <span class=\"kw\">extends </span>FPDF\n<span class=\"kw\">{\n</span><span class=\"cmt\">// Page header\n</span><span class=\"kw\">function </span>Header<span class=\"kw\">()\n{\n    </span><span class=\"cmt\">// Logo\n    </span>$<span class=\"kw\">this-&gt;</span>Image<span class=\"kw\">(</span><span class=\"str\">'logo.png'</span><span class=\"kw\">,</span>10<span class=\"kw\">,</span>6<span class=\"kw\">,</span>30<span class=\"kw\">);\n    </span><span class=\"cmt\">// Arial bold 15\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">'B'</span><span class=\"kw\">,</span>15<span class=\"kw\">);\n    </span><span class=\"cmt\">// Move to the right\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>80<span class=\"kw\">);\n    </span><span class=\"cmt\">// Title\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>30<span class=\"kw\">,</span>10<span class=\"kw\">,</span><span class=\"str\">'Title'</span><span class=\"kw\">,</span>1<span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'C'</span><span class=\"kw\">);\n    </span><span class=\"cmt\">// Line break\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">(</span>20<span class=\"kw\">);\n}\n\n</span><span class=\"cmt\">// Page footer\n</span><span class=\"kw\">function </span>Footer<span class=\"kw\">()\n{\n    </span><span class=\"cmt\">// Position at 1.5 cm from bottom\n    </span>$<span class=\"kw\">this-&gt;</span>SetY<span class=\"kw\">(-</span>15<span class=\"kw\">);\n    </span><span class=\"cmt\">// Arial italic 8\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">'I'</span><span class=\"kw\">,</span>8<span class=\"kw\">);\n    </span><span class=\"cmt\">// Page number\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>0<span class=\"kw\">,</span>10<span class=\"kw\">,</span><span class=\"str\">'Page '</span><span class=\"kw\">.</span>$<span class=\"kw\">this-&gt;</span>PageNo<span class=\"kw\">().</span><span class=\"str\">'/{nb}'</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'C'</span><span class=\"kw\">);\n}\n}\n\n</span><span class=\"cmt\">// Instanciation of inherited class\n</span>$pdf <span class=\"kw\">= new </span>PDF<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>AliasNbPages<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>AddPage<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Times'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span>12<span class=\"kw\">);\nfor(</span>$i<span class=\"kw\">=</span>1<span class=\"kw\">;</span>$i<span class=\"kw\">&lt;=</span>40<span class=\"kw\">;</span>$i<span class=\"kw\">++)\n    </span>$pdf<span class=\"kw\">-&gt;</span>Cell<span class=\"kw\">(</span>0<span class=\"kw\">,</span>10<span class=\"kw\">,</span><span class=\"str\">'Printing line number '</span><span class=\"kw\">.</span>$i<span class=\"kw\">,</span>0<span class=\"kw\">,</span>1<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Output<span class=\"kw\">();\n</span>?&gt;</code></pre>\n</div>\n<p class='demo'><a href='tuto2.php' target='_blank' class='demo'>[Demo]</a></p>\nThis example makes use of the <a href='../doc/header.htm'>Header()</a> and <a href='../doc/footer.htm'>Footer()</a> methods to process page headers and\nfooters. They are called automatically. They already exist in the FPDF class but do nothing,\ntherefore we have to extend the class and override them.\n<br>\n<br>\nThe logo is printed with the <a href='../doc/image.htm'>Image()</a> method by specifying its upper-left corner and\nits width. The height is calculated automatically to respect the image proportions.\n<br>\n<br>\nTo print the page number, a null value is passed as the cell width. It means that the cell\nshould extend up to the right margin of the page; this is handy to center text. The current page\nnumber is returned by the <a href='../doc/pageno.htm'>PageNo()</a> method; as for the total number of pages, it's obtained\nvia the special value <code>{nb}</code> which is substituted when the document is finished\n(provided you first called <a href='../doc/aliasnbpages.htm'>AliasNbPages()</a>).\n<br>\nNote the use of the <a href='../doc/sety.htm'>SetY()</a> method which allows to set position at an absolute location in\nthe page, starting from the top or the bottom.\n<br>\n<br>\nAnother interesting feature is used here: the automatic page breaking. As soon as a cell would\ncross a limit in the page (at 2 centimeters from the bottom by default), a break is issued\nand the font restored. Although the header and footer select their own font (Arial), the body\ncontinues with Times. This mechanism of automatic restoration also applies to colors and line\nwidth. The limit which triggers page breaks can be set with <a href='../doc/setautopagebreak.htm'>SetAutoPageBreak()</a>.\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto2.php",
    "content": "<?php\nrequire('../fpdf.php');\n\nclass PDF extends FPDF\n{\n// Page header\nfunction Header()\n{\n\t// Logo\n\t$this->Image('logo.png',10,6,30);\n\t// Arial bold 15\n\t$this->SetFont('Arial','B',15);\n\t// Move to the right\n\t$this->Cell(80);\n\t// Title\n\t$this->Cell(30,10,'Title',1,0,'C');\n\t// Line break\n\t$this->Ln(20);\n}\n\n// Page footer\nfunction Footer()\n{\n\t// Position at 1.5 cm from bottom\n\t$this->SetY(-15);\n\t// Arial italic 8\n\t$this->SetFont('Arial','I',8);\n\t// Page number\n\t$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n}\n}\n\n// Instanciation of inherited class\n$pdf = new PDF();\n$pdf->AliasNbPages();\n$pdf->AddPage();\n$pdf->SetFont('Times','',12);\nfor($i=1;$i<=40;$i++)\n\t$pdf->Cell(0,10,'Printing line number '.$i,0,1);\n$pdf->Output();\n?>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto3.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Line breaks and colors</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Line breaks and colors</h1>\nLet's continue with an example which prints justified paragraphs. It also illustrates the use\nof colors.\n<div class=\"source\">\n<pre><code>&lt;?php\n<span class=\"kw\">require(</span><span class=\"str\">'fpdf.php'</span><span class=\"kw\">);\n\nclass </span>PDF <span class=\"kw\">extends </span>FPDF\n<span class=\"kw\">{\nfunction </span>Header<span class=\"kw\">()\n{\n    global </span>$title<span class=\"kw\">;\n\n    </span><span class=\"cmt\">// Arial bold 15\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">'B'</span><span class=\"kw\">,</span>15<span class=\"kw\">);\n    </span><span class=\"cmt\">// Calculate width of title and position\n    </span>$w <span class=\"kw\">= </span>$<span class=\"kw\">this-&gt;</span>GetStringWidth<span class=\"kw\">(</span>$title<span class=\"kw\">)+</span>6<span class=\"kw\">;\n    </span>$<span class=\"kw\">this-&gt;</span>SetX<span class=\"kw\">((</span>210<span class=\"kw\">-</span>$w<span class=\"kw\">)/</span>2<span class=\"kw\">);\n    </span><span class=\"cmt\">// Colors of frame, background and text\n    </span>$<span class=\"kw\">this-&gt;</span>SetDrawColor<span class=\"kw\">(</span>0<span class=\"kw\">,</span>80<span class=\"kw\">,</span>180<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetFillColor<span class=\"kw\">(</span>230<span class=\"kw\">,</span>230<span class=\"kw\">,</span>0<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetTextColor<span class=\"kw\">(</span>220<span class=\"kw\">,</span>50<span class=\"kw\">,</span>50<span class=\"kw\">);\n    </span><span class=\"cmt\">// Thickness of frame (1 mm)\n    </span>$<span class=\"kw\">this-&gt;</span>SetLineWidth<span class=\"kw\">(</span>1<span class=\"kw\">);\n    </span><span class=\"cmt\">// Title\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">,</span>9<span class=\"kw\">,</span>$title<span class=\"kw\">,</span>1<span class=\"kw\">,</span>1<span class=\"kw\">,</span><span class=\"str\">'C'</span><span class=\"kw\">,</span>true<span class=\"kw\">);\n    </span><span class=\"cmt\">// Line break\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">(</span>10<span class=\"kw\">);\n}\n\nfunction </span>Footer<span class=\"kw\">()\n{\n    </span><span class=\"cmt\">// Position at 1.5 cm from bottom\n    </span>$<span class=\"kw\">this-&gt;</span>SetY<span class=\"kw\">(-</span>15<span class=\"kw\">);\n    </span><span class=\"cmt\">// Arial italic 8\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">'I'</span><span class=\"kw\">,</span>8<span class=\"kw\">);\n    </span><span class=\"cmt\">// Text color in gray\n    </span>$<span class=\"kw\">this-&gt;</span>SetTextColor<span class=\"kw\">(</span>128<span class=\"kw\">);\n    </span><span class=\"cmt\">// Page number\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>0<span class=\"kw\">,</span>10<span class=\"kw\">,</span><span class=\"str\">'Page '</span><span class=\"kw\">.</span>$<span class=\"kw\">this-&gt;</span>PageNo<span class=\"kw\">(),</span>0<span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'C'</span><span class=\"kw\">);\n}\n\nfunction </span>ChapterTitle<span class=\"kw\">(</span>$num<span class=\"kw\">, </span>$label<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Arial 12\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span>12<span class=\"kw\">);\n    </span><span class=\"cmt\">// Background color\n    </span>$<span class=\"kw\">this-&gt;</span>SetFillColor<span class=\"kw\">(</span>200<span class=\"kw\">,</span>220<span class=\"kw\">,</span>255<span class=\"kw\">);\n    </span><span class=\"cmt\">// Title\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>0<span class=\"kw\">,</span>6<span class=\"kw\">,</span><span class=\"str\">\"Chapter </span>$num<span class=\"str\"> : </span>$label<span class=\"str\">\"</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span>1<span class=\"kw\">,</span><span class=\"str\">'L'</span><span class=\"kw\">,</span>true<span class=\"kw\">);\n    </span><span class=\"cmt\">// Line break\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">(</span>4<span class=\"kw\">);\n}\n\nfunction </span>ChapterBody<span class=\"kw\">(</span>$file<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Read text file\n    </span>$txt <span class=\"kw\">= </span>file_get_contents<span class=\"kw\">(</span>$file<span class=\"kw\">);\n    </span><span class=\"cmt\">// Times 12\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Times'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span>12<span class=\"kw\">);\n    </span><span class=\"cmt\">// Output justified text\n    </span>$<span class=\"kw\">this-&gt;</span>MultiCell<span class=\"kw\">(</span>0<span class=\"kw\">,</span>5<span class=\"kw\">,</span>$txt<span class=\"kw\">);\n    </span><span class=\"cmt\">// Line break\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">();\n    </span><span class=\"cmt\">// Mention in italics\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">''</span><span class=\"kw\">,</span><span class=\"str\">'I'</span><span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>0<span class=\"kw\">,</span>5<span class=\"kw\">,</span><span class=\"str\">'(end of excerpt)'</span><span class=\"kw\">);\n}\n\nfunction </span>PrintChapter<span class=\"kw\">(</span>$num<span class=\"kw\">, </span>$title<span class=\"kw\">, </span>$file<span class=\"kw\">)\n{\n    </span>$<span class=\"kw\">this-&gt;</span>AddPage<span class=\"kw\">();\n    </span>$<span class=\"kw\">this-&gt;</span>ChapterTitle<span class=\"kw\">(</span>$num<span class=\"kw\">,</span>$title<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>ChapterBody<span class=\"kw\">(</span>$file<span class=\"kw\">);\n}\n}\n\n</span>$pdf <span class=\"kw\">= new </span>PDF<span class=\"kw\">();\n</span>$title <span class=\"kw\">= </span><span class=\"str\">'20000 Leagues Under the Seas'</span><span class=\"kw\">;\n</span>$pdf<span class=\"kw\">-&gt;</span>SetTitle<span class=\"kw\">(</span>$title<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>SetAuthor<span class=\"kw\">(</span><span class=\"str\">'Jules Verne'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>PrintChapter<span class=\"kw\">(</span>1<span class=\"kw\">,</span><span class=\"str\">'A RUNAWAY REEF'</span><span class=\"kw\">,</span><span class=\"str\">'20k_c1.txt'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>PrintChapter<span class=\"kw\">(</span>2<span class=\"kw\">,</span><span class=\"str\">'THE PROS AND CONS'</span><span class=\"kw\">,</span><span class=\"str\">'20k_c2.txt'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Output<span class=\"kw\">();\n</span>?&gt;</code></pre>\n</div>\n<p class='demo'><a href='tuto3.php' target='_blank' class='demo'>[Demo]</a></p>\nThe <a href='../doc/getstringwidth.htm'>GetStringWidth()</a> method allows to determine the length of a string in the current font,\nwhich is used here to calculate the position and the width of the frame surrounding the title.\nThen colors are set (via <a href='../doc/setdrawcolor.htm'>SetDrawColor()</a>, <a href='../doc/setfillcolor.htm'>SetFillColor()</a> and <a href='../doc/settextcolor.htm'>SetTextColor()</a>) and the\nthickness of the line is set to 1 mm (instead of 0.2 by default) with <a href='../doc/setlinewidth.htm'>SetLineWidth()</a>. Finally,\nwe output the cell (the last parameter <code>true</code> indicates that the background must\nbe filled).\n<br>\n<br>\nThe method used to print the paragraphs is <a href='../doc/multicell.htm'>MultiCell()</a>. Each time a line reaches the\nright extremity of the cell or a carriage return character is met, a line break is issued\nand a new cell automatically created under the current one. Text is justified by default.\n<br>\n<br>\nTwo document properties are defined: the title (<a href='../doc/settitle.htm'>SetTitle()</a>) and the author (<a href='../doc/setauthor.htm'>SetAuthor()</a>).\nThere are several ways to view them in Adobe Reader. The first one is to open the file directly with\nthe reader, go to the File menu and choose the Properties option. The second one, also available from\nthe plug-in, is to right-click and select Document Properties. The third method is to type the Ctrl+D\nkey combination.\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto3.php",
    "content": "<?php\nrequire('../fpdf.php');\n\nclass PDF extends FPDF\n{\nfunction Header()\n{\n\tglobal $title;\n\n\t// Arial bold 15\n\t$this->SetFont('Arial','B',15);\n\t// Calculate width of title and position\n\t$w = $this->GetStringWidth($title)+6;\n\t$this->SetX((210-$w)/2);\n\t// Colors of frame, background and text\n\t$this->SetDrawColor(0,80,180);\n\t$this->SetFillColor(230,230,0);\n\t$this->SetTextColor(220,50,50);\n\t// Thickness of frame (1 mm)\n\t$this->SetLineWidth(1);\n\t// Title\n\t$this->Cell($w,9,$title,1,1,'C',true);\n\t// Line break\n\t$this->Ln(10);\n}\n\nfunction Footer()\n{\n\t// Position at 1.5 cm from bottom\n\t$this->SetY(-15);\n\t// Arial italic 8\n\t$this->SetFont('Arial','I',8);\n\t// Text color in gray\n\t$this->SetTextColor(128);\n\t// Page number\n\t$this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');\n}\n\nfunction ChapterTitle($num, $label)\n{\n\t// Arial 12\n\t$this->SetFont('Arial','',12);\n\t// Background color\n\t$this->SetFillColor(200,220,255);\n\t// Title\n\t$this->Cell(0,6,\"Chapter $num : $label\",0,1,'L',true);\n\t// Line break\n\t$this->Ln(4);\n}\n\nfunction ChapterBody($file)\n{\n\t// Read text file\n\t$txt = file_get_contents($file);\n\t// Times 12\n\t$this->SetFont('Times','',12);\n\t// Output justified text\n\t$this->MultiCell(0,5,$txt);\n\t// Line break\n\t$this->Ln();\n\t// Mention in italics\n\t$this->SetFont('','I');\n\t$this->Cell(0,5,'(end of excerpt)');\n}\n\nfunction PrintChapter($num, $title, $file)\n{\n\t$this->AddPage();\n\t$this->ChapterTitle($num,$title);\n\t$this->ChapterBody($file);\n}\n}\n\n$pdf = new PDF();\n$title = '20000 Leagues Under the Seas';\n$pdf->SetTitle($title);\n$pdf->SetAuthor('Jules Verne');\n$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');\n$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');\n$pdf->Output();\n?>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto4.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Multi-columns</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Multi-columns</h1>\nThis example is a variant of the previous one showing how to lay the text across multiple\ncolumns.\n<div class=\"source\">\n<pre><code>&lt;?php\n<span class=\"kw\">require(</span><span class=\"str\">'fpdf.php'</span><span class=\"kw\">);\n\nclass </span>PDF <span class=\"kw\">extends </span>FPDF\n<span class=\"kw\">{\nprotected </span>$col <span class=\"kw\">= </span>0<span class=\"kw\">; </span><span class=\"cmt\">// Current column\n</span><span class=\"kw\">protected </span>$y0<span class=\"kw\">;      </span><span class=\"cmt\">// Ordinate of column start\n\n</span><span class=\"kw\">function </span>Header<span class=\"kw\">()\n{\n    </span><span class=\"cmt\">// Page header\n    </span><span class=\"kw\">global </span>$title<span class=\"kw\">;\n\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">'B'</span><span class=\"kw\">,</span>15<span class=\"kw\">);\n    </span>$w <span class=\"kw\">= </span>$<span class=\"kw\">this-&gt;</span>GetStringWidth<span class=\"kw\">(</span>$title<span class=\"kw\">)+</span>6<span class=\"kw\">;\n    </span>$<span class=\"kw\">this-&gt;</span>SetX<span class=\"kw\">((</span>210<span class=\"kw\">-</span>$w<span class=\"kw\">)/</span>2<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetDrawColor<span class=\"kw\">(</span>0<span class=\"kw\">,</span>80<span class=\"kw\">,</span>180<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetFillColor<span class=\"kw\">(</span>230<span class=\"kw\">,</span>230<span class=\"kw\">,</span>0<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetTextColor<span class=\"kw\">(</span>220<span class=\"kw\">,</span>50<span class=\"kw\">,</span>50<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetLineWidth<span class=\"kw\">(</span>1<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">,</span>9<span class=\"kw\">,</span>$title<span class=\"kw\">,</span>1<span class=\"kw\">,</span>1<span class=\"kw\">,</span><span class=\"str\">'C'</span><span class=\"kw\">,</span>true<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">(</span>10<span class=\"kw\">);\n    </span><span class=\"cmt\">// Save ordinate\n    </span>$<span class=\"kw\">this-&gt;</span>y0 <span class=\"kw\">= </span>$<span class=\"kw\">this-&gt;</span>GetY<span class=\"kw\">();\n}\n\nfunction </span>Footer<span class=\"kw\">()\n{\n    </span><span class=\"cmt\">// Page footer\n    </span>$<span class=\"kw\">this-&gt;</span>SetY<span class=\"kw\">(-</span>15<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">'I'</span><span class=\"kw\">,</span>8<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetTextColor<span class=\"kw\">(</span>128<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>0<span class=\"kw\">,</span>10<span class=\"kw\">,</span><span class=\"str\">'Page '</span><span class=\"kw\">.</span>$<span class=\"kw\">this-&gt;</span>PageNo<span class=\"kw\">(),</span>0<span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'C'</span><span class=\"kw\">);\n}\n\nfunction </span>SetCol<span class=\"kw\">(</span>$col<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Set position at a given column\n    </span>$<span class=\"kw\">this-&gt;</span>col <span class=\"kw\">= </span>$col<span class=\"kw\">;\n    </span>$x <span class=\"kw\">= </span>10<span class=\"kw\">+</span>$col<span class=\"kw\">*</span>65<span class=\"kw\">;\n    </span>$<span class=\"kw\">this-&gt;</span>SetLeftMargin<span class=\"kw\">(</span>$x<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetX<span class=\"kw\">(</span>$x<span class=\"kw\">);\n}\n\nfunction </span>AcceptPageBreak<span class=\"kw\">()\n{\n    </span><span class=\"cmt\">// Method accepting or not automatic page break\n    </span><span class=\"kw\">if(</span>$<span class=\"kw\">this-&gt;</span>col<span class=\"kw\">&lt;</span>2<span class=\"kw\">)\n    {\n        </span><span class=\"cmt\">// Go to next column\n        </span>$<span class=\"kw\">this-&gt;</span>SetCol<span class=\"kw\">(</span>$<span class=\"kw\">this-&gt;</span>col<span class=\"kw\">+</span>1<span class=\"kw\">);\n        </span><span class=\"cmt\">// Set ordinate to top\n        </span>$<span class=\"kw\">this-&gt;</span>SetY<span class=\"kw\">(</span>$<span class=\"kw\">this-&gt;</span>y0<span class=\"kw\">);\n        </span><span class=\"cmt\">// Keep on page\n        </span><span class=\"kw\">return </span>false<span class=\"kw\">;\n    }\n    else\n    {\n        </span><span class=\"cmt\">// Go back to first column\n        </span>$<span class=\"kw\">this-&gt;</span>SetCol<span class=\"kw\">(</span>0<span class=\"kw\">);\n        </span><span class=\"cmt\">// Page break\n        </span><span class=\"kw\">return </span>true<span class=\"kw\">;\n    }\n}\n\nfunction </span>ChapterTitle<span class=\"kw\">(</span>$num<span class=\"kw\">, </span>$label<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Title\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span>12<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetFillColor<span class=\"kw\">(</span>200<span class=\"kw\">,</span>220<span class=\"kw\">,</span>255<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>0<span class=\"kw\">,</span>6<span class=\"kw\">,</span><span class=\"str\">\"Chapter </span>$num<span class=\"str\"> : </span>$label<span class=\"str\">\"</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span>1<span class=\"kw\">,</span><span class=\"str\">'L'</span><span class=\"kw\">,</span>true<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">(</span>4<span class=\"kw\">);\n    </span><span class=\"cmt\">// Save ordinate\n    </span>$<span class=\"kw\">this-&gt;</span>y0 <span class=\"kw\">= </span>$<span class=\"kw\">this-&gt;</span>GetY<span class=\"kw\">();\n}\n\nfunction </span>ChapterBody<span class=\"kw\">(</span>$file<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Read text file\n    </span>$txt <span class=\"kw\">= </span>file_get_contents<span class=\"kw\">(</span>$file<span class=\"kw\">);\n    </span><span class=\"cmt\">// Font\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Times'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span>12<span class=\"kw\">);\n    </span><span class=\"cmt\">// Output text in a 6 cm width column\n    </span>$<span class=\"kw\">this-&gt;</span>MultiCell<span class=\"kw\">(</span>60<span class=\"kw\">,</span>5<span class=\"kw\">,</span>$txt<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">();\n    </span><span class=\"cmt\">// Mention\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">''</span><span class=\"kw\">,</span><span class=\"str\">'I'</span><span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>0<span class=\"kw\">,</span>5<span class=\"kw\">,</span><span class=\"str\">'(end of excerpt)'</span><span class=\"kw\">);\n    </span><span class=\"cmt\">// Go back to first column\n    </span>$<span class=\"kw\">this-&gt;</span>SetCol<span class=\"kw\">(</span>0<span class=\"kw\">);\n}\n\nfunction </span>PrintChapter<span class=\"kw\">(</span>$num<span class=\"kw\">, </span>$title<span class=\"kw\">, </span>$file<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Add chapter\n    </span>$<span class=\"kw\">this-&gt;</span>AddPage<span class=\"kw\">();\n    </span>$<span class=\"kw\">this-&gt;</span>ChapterTitle<span class=\"kw\">(</span>$num<span class=\"kw\">,</span>$title<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>ChapterBody<span class=\"kw\">(</span>$file<span class=\"kw\">);\n}\n}\n\n</span>$pdf <span class=\"kw\">= new </span>PDF<span class=\"kw\">();\n</span>$title <span class=\"kw\">= </span><span class=\"str\">'20000 Leagues Under the Seas'</span><span class=\"kw\">;\n</span>$pdf<span class=\"kw\">-&gt;</span>SetTitle<span class=\"kw\">(</span>$title<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>SetAuthor<span class=\"kw\">(</span><span class=\"str\">'Jules Verne'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>PrintChapter<span class=\"kw\">(</span>1<span class=\"kw\">,</span><span class=\"str\">'A RUNAWAY REEF'</span><span class=\"kw\">,</span><span class=\"str\">'20k_c1.txt'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>PrintChapter<span class=\"kw\">(</span>2<span class=\"kw\">,</span><span class=\"str\">'THE PROS AND CONS'</span><span class=\"kw\">,</span><span class=\"str\">'20k_c2.txt'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Output<span class=\"kw\">();\n</span>?&gt;</code></pre>\n</div>\n<p class='demo'><a href='tuto4.php' target='_blank' class='demo'>[Demo]</a></p>\nThe key method used is <a href='../doc/acceptpagebreak.htm'>AcceptPageBreak()</a>. It allows to accept or not an automatic page\nbreak. By refusing it and altering the margin and current position, the desired column layout\nis achieved.\n<br>\nFor the rest, not many changes; two properties have been added to the class to save the current\ncolumn number and the position where columns begin, and the MultiCell() call specifies a\n6 centimeter width.\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto4.php",
    "content": "<?php\nrequire('../fpdf.php');\n\nclass PDF extends FPDF\n{\nprotected $col = 0; // Current column\nprotected $y0;      // Ordinate of column start\n\nfunction Header()\n{\n\t// Page header\n\tglobal $title;\n\n\t$this->SetFont('Arial','B',15);\n\t$w = $this->GetStringWidth($title)+6;\n\t$this->SetX((210-$w)/2);\n\t$this->SetDrawColor(0,80,180);\n\t$this->SetFillColor(230,230,0);\n\t$this->SetTextColor(220,50,50);\n\t$this->SetLineWidth(1);\n\t$this->Cell($w,9,$title,1,1,'C',true);\n\t$this->Ln(10);\n\t// Save ordinate\n\t$this->y0 = $this->GetY();\n}\n\nfunction Footer()\n{\n\t// Page footer\n\t$this->SetY(-15);\n\t$this->SetFont('Arial','I',8);\n\t$this->SetTextColor(128);\n\t$this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');\n}\n\nfunction SetCol($col)\n{\n\t// Set position at a given column\n\t$this->col = $col;\n\t$x = 10+$col*65;\n\t$this->SetLeftMargin($x);\n\t$this->SetX($x);\n}\n\nfunction AcceptPageBreak()\n{\n\t// Method accepting or not automatic page break\n\tif($this->col<2)\n\t{\n\t\t// Go to next column\n\t\t$this->SetCol($this->col+1);\n\t\t// Set ordinate to top\n\t\t$this->SetY($this->y0);\n\t\t// Keep on page\n\t\treturn false;\n\t}\n\telse\n\t{\n\t\t// Go back to first column\n\t\t$this->SetCol(0);\n\t\t// Page break\n\t\treturn true;\n\t}\n}\n\nfunction ChapterTitle($num, $label)\n{\n\t// Title\n\t$this->SetFont('Arial','',12);\n\t$this->SetFillColor(200,220,255);\n\t$this->Cell(0,6,\"Chapter $num : $label\",0,1,'L',true);\n\t$this->Ln(4);\n\t// Save ordinate\n\t$this->y0 = $this->GetY();\n}\n\nfunction ChapterBody($file)\n{\n\t// Read text file\n\t$txt = file_get_contents($file);\n\t// Font\n\t$this->SetFont('Times','',12);\n\t// Output text in a 6 cm width column\n\t$this->MultiCell(60,5,$txt);\n\t$this->Ln();\n\t// Mention\n\t$this->SetFont('','I');\n\t$this->Cell(0,5,'(end of excerpt)');\n\t// Go back to first column\n\t$this->SetCol(0);\n}\n\nfunction PrintChapter($num, $title, $file)\n{\n\t// Add chapter\n\t$this->AddPage();\n\t$this->ChapterTitle($num,$title);\n\t$this->ChapterBody($file);\n}\n}\n\n$pdf = new PDF();\n$title = '20000 Leagues Under the Seas';\n$pdf->SetTitle($title);\n$pdf->SetAuthor('Jules Verne');\n$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');\n$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');\n$pdf->Output();\n?>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto5.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Tables</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Tables</h1>\nThis tutorial shows different ways to make tables.\n<div class=\"source\">\n<pre><code>&lt;?php\n<span class=\"kw\">require(</span><span class=\"str\">'fpdf.php'</span><span class=\"kw\">);\n\nclass </span>PDF <span class=\"kw\">extends </span>FPDF\n<span class=\"kw\">{\n</span><span class=\"cmt\">// Load data\n</span><span class=\"kw\">function </span>LoadData<span class=\"kw\">(</span>$file<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Read file lines\n    </span>$lines <span class=\"kw\">= </span>file<span class=\"kw\">(</span>$file<span class=\"kw\">);\n    </span>$data <span class=\"kw\">= array();\n    foreach(</span>$lines <span class=\"kw\">as </span>$line<span class=\"kw\">)\n        </span>$data<span class=\"kw\">[] = </span>explode<span class=\"kw\">(</span><span class=\"str\">';'</span><span class=\"kw\">,</span>trim<span class=\"kw\">(</span>$line<span class=\"kw\">));\n    return </span>$data<span class=\"kw\">;\n}\n\n</span><span class=\"cmt\">// Simple table\n</span><span class=\"kw\">function </span>BasicTable<span class=\"kw\">(</span>$header<span class=\"kw\">, </span>$data<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Header\n    </span><span class=\"kw\">foreach(</span>$header <span class=\"kw\">as </span>$col<span class=\"kw\">)\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>40<span class=\"kw\">,</span>7<span class=\"kw\">,</span>$col<span class=\"kw\">,</span>1<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">();\n    </span><span class=\"cmt\">// Data\n    </span><span class=\"kw\">foreach(</span>$data <span class=\"kw\">as </span>$row<span class=\"kw\">)\n    {\n        foreach(</span>$row <span class=\"kw\">as </span>$col<span class=\"kw\">)\n            </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>40<span class=\"kw\">,</span>6<span class=\"kw\">,</span>$col<span class=\"kw\">,</span>1<span class=\"kw\">);\n        </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">();\n    }\n}\n\n</span><span class=\"cmt\">// Better table\n</span><span class=\"kw\">function </span>ImprovedTable<span class=\"kw\">(</span>$header<span class=\"kw\">, </span>$data<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Column widths\n    </span>$w <span class=\"kw\">= array(</span>40<span class=\"kw\">, </span>35<span class=\"kw\">, </span>40<span class=\"kw\">, </span>45<span class=\"kw\">);\n    </span><span class=\"cmt\">// Header\n    </span><span class=\"kw\">for(</span>$i<span class=\"kw\">=</span>0<span class=\"kw\">;</span>$i<span class=\"kw\">&lt;</span>count<span class=\"kw\">(</span>$header<span class=\"kw\">);</span>$i<span class=\"kw\">++)\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>$i<span class=\"kw\">],</span>7<span class=\"kw\">,</span>$header<span class=\"kw\">[</span>$i<span class=\"kw\">],</span>1<span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'C'</span><span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">();\n    </span><span class=\"cmt\">// Data\n    </span><span class=\"kw\">foreach(</span>$data <span class=\"kw\">as </span>$row<span class=\"kw\">)\n    {\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>0<span class=\"kw\">],</span>6<span class=\"kw\">,</span>$row<span class=\"kw\">[</span>0<span class=\"kw\">],</span><span class=\"str\">'LR'</span><span class=\"kw\">);\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>1<span class=\"kw\">],</span>6<span class=\"kw\">,</span>$row<span class=\"kw\">[</span>1<span class=\"kw\">],</span><span class=\"str\">'LR'</span><span class=\"kw\">);\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>2<span class=\"kw\">],</span>6<span class=\"kw\">,</span>number_format<span class=\"kw\">(</span>$row<span class=\"kw\">[</span>2<span class=\"kw\">]),</span><span class=\"str\">'LR'</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'R'</span><span class=\"kw\">);\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>3<span class=\"kw\">],</span>6<span class=\"kw\">,</span>number_format<span class=\"kw\">(</span>$row<span class=\"kw\">[</span>3<span class=\"kw\">]),</span><span class=\"str\">'LR'</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'R'</span><span class=\"kw\">);\n        </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">();\n    }\n    </span><span class=\"cmt\">// Closing line\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>array_sum<span class=\"kw\">(</span>$w<span class=\"kw\">),</span>0<span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span><span class=\"str\">'T'</span><span class=\"kw\">);\n}\n\n</span><span class=\"cmt\">// Colored table\n</span><span class=\"kw\">function </span>FancyTable<span class=\"kw\">(</span>$header<span class=\"kw\">, </span>$data<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Colors, line width and bold font\n    </span>$<span class=\"kw\">this-&gt;</span>SetFillColor<span class=\"kw\">(</span>255<span class=\"kw\">,</span>0<span class=\"kw\">,</span>0<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetTextColor<span class=\"kw\">(</span>255<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetDrawColor<span class=\"kw\">(</span>128<span class=\"kw\">,</span>0<span class=\"kw\">,</span>0<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetLineWidth<span class=\"kw\">(</span>.3<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">''</span><span class=\"kw\">,</span><span class=\"str\">'B'</span><span class=\"kw\">);\n    </span><span class=\"cmt\">// Header\n    </span>$w <span class=\"kw\">= array(</span>40<span class=\"kw\">, </span>35<span class=\"kw\">, </span>40<span class=\"kw\">, </span>45<span class=\"kw\">);\n    for(</span>$i<span class=\"kw\">=</span>0<span class=\"kw\">;</span>$i<span class=\"kw\">&lt;</span>count<span class=\"kw\">(</span>$header<span class=\"kw\">);</span>$i<span class=\"kw\">++)\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>$i<span class=\"kw\">],</span>7<span class=\"kw\">,</span>$header<span class=\"kw\">[</span>$i<span class=\"kw\">],</span>1<span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'C'</span><span class=\"kw\">,</span>true<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">();\n    </span><span class=\"cmt\">// Color and font restoration\n    </span>$<span class=\"kw\">this-&gt;</span>SetFillColor<span class=\"kw\">(</span>224<span class=\"kw\">,</span>235<span class=\"kw\">,</span>255<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetTextColor<span class=\"kw\">(</span>0<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">''</span><span class=\"kw\">);\n    </span><span class=\"cmt\">// Data\n    </span>$fill <span class=\"kw\">= </span>false<span class=\"kw\">;\n    foreach(</span>$data <span class=\"kw\">as </span>$row<span class=\"kw\">)\n    {\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>0<span class=\"kw\">],</span>6<span class=\"kw\">,</span>$row<span class=\"kw\">[</span>0<span class=\"kw\">],</span><span class=\"str\">'LR'</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'L'</span><span class=\"kw\">,</span>$fill<span class=\"kw\">);\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>1<span class=\"kw\">],</span>6<span class=\"kw\">,</span>$row<span class=\"kw\">[</span>1<span class=\"kw\">],</span><span class=\"str\">'LR'</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'L'</span><span class=\"kw\">,</span>$fill<span class=\"kw\">);\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>2<span class=\"kw\">],</span>6<span class=\"kw\">,</span>number_format<span class=\"kw\">(</span>$row<span class=\"kw\">[</span>2<span class=\"kw\">]),</span><span class=\"str\">'LR'</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'R'</span><span class=\"kw\">,</span>$fill<span class=\"kw\">);\n        </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>$w<span class=\"kw\">[</span>3<span class=\"kw\">],</span>6<span class=\"kw\">,</span>number_format<span class=\"kw\">(</span>$row<span class=\"kw\">[</span>3<span class=\"kw\">]),</span><span class=\"str\">'LR'</span><span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">'R'</span><span class=\"kw\">,</span>$fill<span class=\"kw\">);\n        </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">();\n        </span>$fill <span class=\"kw\">= !</span>$fill<span class=\"kw\">;\n    }\n    </span><span class=\"cmt\">// Closing line\n    </span>$<span class=\"kw\">this-&gt;</span>Cell<span class=\"kw\">(</span>array_sum<span class=\"kw\">(</span>$w<span class=\"kw\">),</span>0<span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span><span class=\"str\">'T'</span><span class=\"kw\">);\n}\n}\n\n</span>$pdf <span class=\"kw\">= new </span>PDF<span class=\"kw\">();\n</span><span class=\"cmt\">// Column headings\n</span>$header <span class=\"kw\">= array(</span><span class=\"str\">'Country'</span><span class=\"kw\">, </span><span class=\"str\">'Capital'</span><span class=\"kw\">, </span><span class=\"str\">'Area (sq km)'</span><span class=\"kw\">, </span><span class=\"str\">'Pop. (thousands)'</span><span class=\"kw\">);\n</span><span class=\"cmt\">// Data loading\n</span>$data <span class=\"kw\">= </span>$pdf<span class=\"kw\">-&gt;</span>LoadData<span class=\"kw\">(</span><span class=\"str\">'countries.txt'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span>14<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>AddPage<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>BasicTable<span class=\"kw\">(</span>$header<span class=\"kw\">,</span>$data<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>AddPage<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>ImprovedTable<span class=\"kw\">(</span>$header<span class=\"kw\">,</span>$data<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>AddPage<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>FancyTable<span class=\"kw\">(</span>$header<span class=\"kw\">,</span>$data<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Output<span class=\"kw\">();\n</span>?&gt;</code></pre>\n</div>\n<p class='demo'><a href='tuto5.php' target='_blank' class='demo'>[Demo]</a></p>\nA table being just a collection of cells, it's natural to build one from them. The first\nexample is achieved in the most basic way possible: simple framed cells, all of the same size\nand left aligned. The result is rudimentary but very quick to obtain.\n<br>\n<br>\nThe second table brings some improvements: each column has its own width, headings are centered,\nand numbers right aligned. Moreover, horizontal lines have been removed. This is done by means\nof the <code>border</code> parameter of the <a href='../doc/cell.htm'>Cell()</a> method, which specifies which sides of the\ncell must be drawn. Here we want the left (<code>L</code>) and right (<code>R</code>) ones. It remains\nthe problem of the horizontal line to finish the table. There are two possibilities: either\ncheck for the last line in the loop, in which case we use <code>LRB</code> for the <code>border</code>\nparameter; or, as done here, add the line once the loop is over.\n<br>\n<br>\nThe third table is similar to the second one but uses colors. Fill, text and line colors are\nsimply specified. Alternate coloring for rows is obtained by using alternatively transparent\nand filled cells.\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto5.php",
    "content": "<?php\nrequire('../fpdf.php');\n\nclass PDF extends FPDF\n{\n// Load data\nfunction LoadData($file)\n{\n\t// Read file lines\n\t$lines = file($file);\n\t$data = array();\n\tforeach($lines as $line)\n\t\t$data[] = explode(';',trim($line));\n\treturn $data;\n}\n\n// Simple table\nfunction BasicTable($header, $data)\n{\n\t// Header\n\tforeach($header as $col)\n\t\t$this->Cell(40,7,$col,1);\n\t$this->Ln();\n\t// Data\n\tforeach($data as $row)\n\t{\n\t\tforeach($row as $col)\n\t\t\t$this->Cell(40,6,$col,1);\n\t\t$this->Ln();\n\t}\n}\n\n// Better table\nfunction ImprovedTable($header, $data)\n{\n\t// Column widths\n\t$w = array(40, 35, 40, 45);\n\t// Header\n\tfor($i=0;$i<count($header);$i++)\n\t\t$this->Cell($w[$i],7,$header[$i],1,0,'C');\n\t$this->Ln();\n\t// Data\n\tforeach($data as $row)\n\t{\n\t\t$this->Cell($w[0],6,$row[0],'LR');\n\t\t$this->Cell($w[1],6,$row[1],'LR');\n\t\t$this->Cell($w[2],6,number_format($row[2]),'LR',0,'R');\n\t\t$this->Cell($w[3],6,number_format($row[3]),'LR',0,'R');\n\t\t$this->Ln();\n\t}\n\t// Closing line\n\t$this->Cell(array_sum($w),0,'','T');\n}\n\n// Colored table\nfunction FancyTable($header, $data)\n{\n\t// Colors, line width and bold font\n\t$this->SetFillColor(255,0,0);\n\t$this->SetTextColor(255);\n\t$this->SetDrawColor(128,0,0);\n\t$this->SetLineWidth(.3);\n\t$this->SetFont('','B');\n\t// Header\n\t$w = array(40, 35, 40, 45);\n\tfor($i=0;$i<count($header);$i++)\n\t\t$this->Cell($w[$i],7,$header[$i],1,0,'C',true);\n\t$this->Ln();\n\t// Color and font restoration\n\t$this->SetFillColor(224,235,255);\n\t$this->SetTextColor(0);\n\t$this->SetFont('');\n\t// Data\n\t$fill = false;\n\tforeach($data as $row)\n\t{\n\t\t$this->Cell($w[0],6,$row[0],'LR',0,'L',$fill);\n\t\t$this->Cell($w[1],6,$row[1],'LR',0,'L',$fill);\n\t\t$this->Cell($w[2],6,number_format($row[2]),'LR',0,'R',$fill);\n\t\t$this->Cell($w[3],6,number_format($row[3]),'LR',0,'R',$fill);\n\t\t$this->Ln();\n\t\t$fill = !$fill;\n\t}\n\t// Closing line\n\t$this->Cell(array_sum($w),0,'','T');\n}\n}\n\n$pdf = new PDF();\n// Column headings\n$header = array('Country', 'Capital', 'Area (sq km)', 'Pop. (thousands)');\n// Data loading\n$data = $pdf->LoadData('countries.txt');\n$pdf->SetFont('Arial','',14);\n$pdf->AddPage();\n$pdf->BasicTable($header,$data);\n$pdf->AddPage();\n$pdf->ImprovedTable($header,$data);\n$pdf->AddPage();\n$pdf->FancyTable($header,$data);\n$pdf->Output();\n?>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto6.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Links and flowing text</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Links and flowing text</h1>\nThis tutorial explains how to insert links (internal and external) and shows a new text writing\nmode. It also contains a basic HTML parser.\n<div class=\"source\">\n<pre><code>&lt;?php\n<span class=\"kw\">require(</span><span class=\"str\">'fpdf.php'</span><span class=\"kw\">);\n\nclass </span>PDF <span class=\"kw\">extends </span>FPDF\n<span class=\"kw\">{\nprotected </span>$B <span class=\"kw\">= </span>0<span class=\"kw\">;\nprotected </span>$I <span class=\"kw\">= </span>0<span class=\"kw\">;\nprotected </span>$U <span class=\"kw\">= </span>0<span class=\"kw\">;\nprotected </span>$HREF <span class=\"kw\">= </span><span class=\"str\">''</span><span class=\"kw\">;\n\nfunction </span>WriteHTML<span class=\"kw\">(</span>$html<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// HTML parser\n    </span>$html <span class=\"kw\">= </span>str_replace<span class=\"kw\">(</span><span class=\"str\">\"\\n\"</span><span class=\"kw\">,</span><span class=\"str\">' '</span><span class=\"kw\">,</span>$html<span class=\"kw\">);\n    </span>$a <span class=\"kw\">= </span>preg_split<span class=\"kw\">(</span><span class=\"str\">'/&lt;(.*)&gt;/U'</span><span class=\"kw\">,</span>$html<span class=\"kw\">,-</span>1<span class=\"kw\">,</span>PREG_SPLIT_DELIM_CAPTURE<span class=\"kw\">);\n    foreach(</span>$a <span class=\"kw\">as </span>$i<span class=\"kw\">=&gt;</span>$e<span class=\"kw\">)\n    {\n        if(</span>$i<span class=\"kw\">%</span>2<span class=\"kw\">==</span>0<span class=\"kw\">)\n        {\n            </span><span class=\"cmt\">// Text\n            </span><span class=\"kw\">if(</span>$<span class=\"kw\">this-&gt;</span>HREF<span class=\"kw\">)\n                </span>$<span class=\"kw\">this-&gt;</span>PutLink<span class=\"kw\">(</span>$<span class=\"kw\">this-&gt;</span>HREF<span class=\"kw\">,</span>$e<span class=\"kw\">);\n            else\n                </span>$<span class=\"kw\">this-&gt;</span>Write<span class=\"kw\">(</span>5<span class=\"kw\">,</span>$e<span class=\"kw\">);\n        }\n        else\n        {\n            </span><span class=\"cmt\">// Tag\n            </span><span class=\"kw\">if(</span>$e<span class=\"kw\">[</span>0<span class=\"kw\">]==</span><span class=\"str\">'/'</span><span class=\"kw\">)\n                </span>$<span class=\"kw\">this-&gt;</span>CloseTag<span class=\"kw\">(</span>strtoupper<span class=\"kw\">(</span>substr<span class=\"kw\">(</span>$e<span class=\"kw\">,</span>1<span class=\"kw\">)));\n            else\n            {\n                </span><span class=\"cmt\">// Extract attributes\n                </span>$a2 <span class=\"kw\">= </span>explode<span class=\"kw\">(</span><span class=\"str\">' '</span><span class=\"kw\">,</span>$e<span class=\"kw\">);\n                </span>$tag <span class=\"kw\">= </span>strtoupper<span class=\"kw\">(</span>array_shift<span class=\"kw\">(</span>$a2<span class=\"kw\">));\n                </span>$attr <span class=\"kw\">= array();\n                foreach(</span>$a2 <span class=\"kw\">as </span>$v<span class=\"kw\">)\n                {\n                    if(</span>preg_match<span class=\"kw\">(</span><span class=\"str\">'/([^=]*)=[\"\\']?([^\"\\']*)/'</span><span class=\"kw\">,</span>$v<span class=\"kw\">,</span>$a3<span class=\"kw\">))\n                        </span>$attr<span class=\"kw\">[</span>strtoupper<span class=\"kw\">(</span>$a3<span class=\"kw\">[</span>1<span class=\"kw\">])] = </span>$a3<span class=\"kw\">[</span>2<span class=\"kw\">];\n                }\n                </span>$<span class=\"kw\">this-&gt;</span>OpenTag<span class=\"kw\">(</span>$tag<span class=\"kw\">,</span>$attr<span class=\"kw\">);\n            }\n        }\n    }\n}\n\nfunction </span>OpenTag<span class=\"kw\">(</span>$tag<span class=\"kw\">, </span>$attr<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Opening tag\n    </span><span class=\"kw\">if(</span>$tag<span class=\"kw\">==</span><span class=\"str\">'B' </span><span class=\"kw\">|| </span>$tag<span class=\"kw\">==</span><span class=\"str\">'I' </span><span class=\"kw\">|| </span>$tag<span class=\"kw\">==</span><span class=\"str\">'U'</span><span class=\"kw\">)\n        </span>$<span class=\"kw\">this-&gt;</span>SetStyle<span class=\"kw\">(</span>$tag<span class=\"kw\">,</span>true<span class=\"kw\">);\n    if(</span>$tag<span class=\"kw\">==</span><span class=\"str\">'A'</span><span class=\"kw\">)\n        </span>$<span class=\"kw\">this-&gt;</span>HREF <span class=\"kw\">= </span>$attr<span class=\"kw\">[</span><span class=\"str\">'HREF'</span><span class=\"kw\">];\n    if(</span>$tag<span class=\"kw\">==</span><span class=\"str\">'BR'</span><span class=\"kw\">)\n        </span>$<span class=\"kw\">this-&gt;</span>Ln<span class=\"kw\">(</span>5<span class=\"kw\">);\n}\n\nfunction </span>CloseTag<span class=\"kw\">(</span>$tag<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Closing tag\n    </span><span class=\"kw\">if(</span>$tag<span class=\"kw\">==</span><span class=\"str\">'B' </span><span class=\"kw\">|| </span>$tag<span class=\"kw\">==</span><span class=\"str\">'I' </span><span class=\"kw\">|| </span>$tag<span class=\"kw\">==</span><span class=\"str\">'U'</span><span class=\"kw\">)\n        </span>$<span class=\"kw\">this-&gt;</span>SetStyle<span class=\"kw\">(</span>$tag<span class=\"kw\">,</span>false<span class=\"kw\">);\n    if(</span>$tag<span class=\"kw\">==</span><span class=\"str\">'A'</span><span class=\"kw\">)\n        </span>$<span class=\"kw\">this-&gt;</span>HREF <span class=\"kw\">= </span><span class=\"str\">''</span><span class=\"kw\">;\n}\n\nfunction </span>SetStyle<span class=\"kw\">(</span>$tag<span class=\"kw\">, </span>$enable<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Modify style and select corresponding font\n    </span>$<span class=\"kw\">this-&gt;</span>$tag <span class=\"kw\">+= (</span>$enable <span class=\"kw\">? </span>1 <span class=\"kw\">: -</span>1<span class=\"kw\">);\n    </span>$style <span class=\"kw\">= </span><span class=\"str\">''</span><span class=\"kw\">;\n    foreach(array(</span><span class=\"str\">'B'</span><span class=\"kw\">, </span><span class=\"str\">'I'</span><span class=\"kw\">, </span><span class=\"str\">'U'</span><span class=\"kw\">) as </span>$s<span class=\"kw\">)\n    {\n        if(</span>$<span class=\"kw\">this-&gt;</span>$s<span class=\"kw\">&gt;</span>0<span class=\"kw\">)\n            </span>$style <span class=\"kw\">.= </span>$s<span class=\"kw\">;\n    }\n    </span>$<span class=\"kw\">this-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">''</span><span class=\"kw\">,</span>$style<span class=\"kw\">);\n}\n\nfunction </span>PutLink<span class=\"kw\">(</span>$URL<span class=\"kw\">, </span>$txt<span class=\"kw\">)\n{\n    </span><span class=\"cmt\">// Put a hyperlink\n    </span>$<span class=\"kw\">this-&gt;</span>SetTextColor<span class=\"kw\">(</span>0<span class=\"kw\">,</span>0<span class=\"kw\">,</span>255<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetStyle<span class=\"kw\">(</span><span class=\"str\">'U'</span><span class=\"kw\">,</span>true<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>Write<span class=\"kw\">(</span>5<span class=\"kw\">,</span>$txt<span class=\"kw\">,</span>$URL<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetStyle<span class=\"kw\">(</span><span class=\"str\">'U'</span><span class=\"kw\">,</span>false<span class=\"kw\">);\n    </span>$<span class=\"kw\">this-&gt;</span>SetTextColor<span class=\"kw\">(</span>0<span class=\"kw\">);\n}\n}\n\n</span>$html <span class=\"kw\">= </span><span class=\"str\">'You can now easily print text mixing different styles: &lt;b&gt;bold&lt;/b&gt;, &lt;i&gt;italic&lt;/i&gt;,\n&lt;u&gt;underlined&lt;/u&gt;, or &lt;b&gt;&lt;i&gt;&lt;u&gt;all at once&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;!&lt;br&gt;&lt;br&gt;You can also insert links on\ntext, such as &lt;a href=\"http://www.fpdf.org\"&gt;www.fpdf.org&lt;/a&gt;, or on an image: click on the logo.'</span><span class=\"kw\">;\n\n</span>$pdf <span class=\"kw\">= new </span>PDF<span class=\"kw\">();\n</span><span class=\"cmt\">// First page\n</span>$pdf<span class=\"kw\">-&gt;</span>AddPage<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Arial'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span>20<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Write<span class=\"kw\">(</span>5<span class=\"kw\">,</span><span class=\"str\">\"To find out what's new in this tutorial, click \"</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">''</span><span class=\"kw\">,</span><span class=\"str\">'U'</span><span class=\"kw\">);\n</span>$link <span class=\"kw\">= </span>$pdf<span class=\"kw\">-&gt;</span>AddLink<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>Write<span class=\"kw\">(</span>5<span class=\"kw\">,</span><span class=\"str\">'here'</span><span class=\"kw\">,</span>$link<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">''</span><span class=\"kw\">);\n</span><span class=\"cmt\">// Second page\n</span>$pdf<span class=\"kw\">-&gt;</span>AddPage<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>SetLink<span class=\"kw\">(</span>$link<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Image<span class=\"kw\">(</span><span class=\"str\">'logo.png'</span><span class=\"kw\">,</span>10<span class=\"kw\">,</span>12<span class=\"kw\">,</span>30<span class=\"kw\">,</span>0<span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span><span class=\"str\">'http://www.fpdf.org'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>SetLeftMargin<span class=\"kw\">(</span>45<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>SetFontSize<span class=\"kw\">(</span>14<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>WriteHTML<span class=\"kw\">(</span>$html<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Output<span class=\"kw\">();\n</span>?&gt;</code></pre>\n</div>\n<p class='demo'><a href='tuto6.php' target='_blank' class='demo'>[Demo]</a></p>\nThe new method to print text is <a href='../doc/write.htm'>Write()</a>. It's very close to <a href='../doc/multicell.htm'>MultiCell()</a>; the differences are:\n<ul>\n<li>The end of line is at the right margin and the next line begins at the left one</li>\n<li>The current position moves at the end of the text</li>\n</ul>\nSo it allows to write a chunk of text, alter the font style, then continue from the exact\nplace we left it. On the other hand, you cannot justify it.\n<br>\n<br>\nThe method is used on the first page to put a link pointing to the second one. The beginning of\nthe sentence is written in regular style, then we switch to underline and finish it. The link\nis created with <a href='../doc/addlink.htm'>AddLink()</a>, which returns a link identifier. The identifier is\npassed as third parameter of Write(). Once the second page is created, we use <a href='../doc/setlink.htm'>SetLink()</a> to\nmake the link point to the beginning of the current page.\n<br>\n<br>\nThen we put an image with an external link on it. An external link is just a URL. It's passed as\nlast parameter of <a href='../doc/image.htm'>Image()</a>.\n<br>\n<br>\nFinally, the left margin is moved after the image with <a href='../doc/setleftmargin.htm'>SetLeftMargin()</a> and some text in\nHTML format is output. A very simple HTML parser is used for this, based on regular expressions.\nRecognized tags are &lt;b&gt;, &lt;i&gt;, &lt;u&gt;, &lt;a&gt; and &lt;br&gt;; the others are\nignored. The parser also makes use of the Write() method. An external link is put the same way as\nan internal one (third parameter of Write()). Note that <a href='../doc/cell.htm'>Cell()</a> also allows to put links.\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto6.php",
    "content": "<?php\nrequire('../fpdf.php');\n\nclass PDF extends FPDF\n{\nprotected $B = 0;\nprotected $I = 0;\nprotected $U = 0;\nprotected $HREF = '';\n\nfunction WriteHTML($html)\n{\n\t// HTML parser\n\t$html = str_replace(\"\\n\",' ',$html);\n\t$a = preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE);\n\tforeach($a as $i=>$e)\n\t{\n\t\tif($i%2==0)\n\t\t{\n\t\t\t// Text\n\t\t\tif($this->HREF)\n\t\t\t\t$this->PutLink($this->HREF,$e);\n\t\t\telse\n\t\t\t\t$this->Write(5,$e);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Tag\n\t\t\tif($e[0]=='/')\n\t\t\t\t$this->CloseTag(strtoupper(substr($e,1)));\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Extract attributes\n\t\t\t\t$a2 = explode(' ',$e);\n\t\t\t\t$tag = strtoupper(array_shift($a2));\n\t\t\t\t$attr = array();\n\t\t\t\tforeach($a2 as $v)\n\t\t\t\t{\n\t\t\t\t\tif(preg_match('/([^=]*)=[\"\\']?([^\"\\']*)/',$v,$a3))\n\t\t\t\t\t\t$attr[strtoupper($a3[1])] = $a3[2];\n\t\t\t\t}\n\t\t\t\t$this->OpenTag($tag,$attr);\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction OpenTag($tag, $attr)\n{\n\t// Opening tag\n\tif($tag=='B' || $tag=='I' || $tag=='U')\n\t\t$this->SetStyle($tag,true);\n\tif($tag=='A')\n\t\t$this->HREF = $attr['HREF'];\n\tif($tag=='BR')\n\t\t$this->Ln(5);\n}\n\nfunction CloseTag($tag)\n{\n\t// Closing tag\n\tif($tag=='B' || $tag=='I' || $tag=='U')\n\t\t$this->SetStyle($tag,false);\n\tif($tag=='A')\n\t\t$this->HREF = '';\n}\n\nfunction SetStyle($tag, $enable)\n{\n\t// Modify style and select corresponding font\n\t$this->$tag += ($enable ? 1 : -1);\n\t$style = '';\n\tforeach(array('B', 'I', 'U') as $s)\n\t{\n\t\tif($this->$s>0)\n\t\t\t$style .= $s;\n\t}\n\t$this->SetFont('',$style);\n}\n\nfunction PutLink($URL, $txt)\n{\n\t// Put a hyperlink\n\t$this->SetTextColor(0,0,255);\n\t$this->SetStyle('U',true);\n\t$this->Write(5,$txt,$URL);\n\t$this->SetStyle('U',false);\n\t$this->SetTextColor(0);\n}\n}\n\n$html1=\"\n\n<div class='money_recept'>\n  <div class='money_recept_header' >\n    <center><b>Payment Recept</b></center>\n    <div class='left_header'>\n      <table style='background-color: none'>\n        <tr>\n          <td style='padding-right: 15px; background-color: none'>\n            <img class='money_logo' src='https://britainstandardschool.com/wp-content/uploads/2018/11/rsz_master_logo2-1.jpg'>\n          </td>\n          <td style='background-color: none'>\n            <font class='title_logo'>TechSerm Educational Software</font><br/>\n            <font class='title_detail'>\n            \tExcellence in Education<br/>\n            \tSouth Keraniganj , Dhaka , Bangladesh<br/>\n            \t01716404120<br/>\n            \tbritainstandard@gmail.com\n            </font>\n          </td>\n        </tr>\n      </table>\n      \n    </div>\n    <div class='right_header'>\n      <img class='barcode_recept' src='https://thewindowsclub-thewindowsclubco.netdna-ssl.com/wp-content/uploads/2011/11/Barcode.jpg'><br/>\t\n      <b>Recept No:</b> <u>450</u><br/>\n      <b>Recept Date:</b> 23-8-2018 4:32:23<br/>\n      <b>Receive By:</b> Hamza<br/>\n    </div>\n  </div>\n  <div class='payment_recept_body'>\n  \t <div class='left_body'>\n  \t \t<table>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>ID: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Name: </td>\n  \t \t\t\t<td class='td_value'>Sk.Amir Hamza</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Type: </td>\n  \t \t\t\t<td class='td_value'>Monthly</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Program Name: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Year: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Month</td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t</table>\n     \n  \t </div>\n  \t <div class='right_body'>\n  \t \t<table>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Total Fee: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Previous Total Pay: </td>\n  \t \t\t\t<td class='td_value'>Sk.Amir Hamza</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Previous Total Due: </td>\n  \t \t\t\t<td class='td_value'>Monthly</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Today Pay: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Total Due: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Status: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t</table>\n  \t \t\n  \t </div>\n<center><div class='comments'></div>\n     Signature</center>\n    \n  </div>\n</div>\n\n\n\";\n\n$html = \"\n\n<table>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Total Fee: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Previous Total Pay: </td>\n  \t \t\t\t<td class='td_value'>Sk.Amir Hamza</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Previous Total Due: </td>\n  \t \t\t\t<td class='td_value'>Monthly</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Today Pay: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Total Due: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t\t<tr>\n  \t \t\t\t<td class='td_name'>Status: </td>\n  \t \t\t\t<td class='td_value'>10006</td>\n  \t \t\t</tr>\n  \t \t</table>\n\";\n\n\n$pdf = new PDF();\n// First page\n$pdf->AddPage();\n$pdf->SetFont('Arial','',20);\n$pdf->Write(5,\"To find out what's new in this tutorial, click \");\n$pdf->SetFont('','U');\n$link = $pdf->AddLink();\n$pdf->Write(5,'here',$link);\n$pdf->SetFont('');\n// Second page\n$pdf->AddPage();\n$pdf->SetLink($link);\n$pdf->Image('logo.png',10,12,30,0,'','http://www.fpdf.org');\n$pdf->SetLeftMargin(45);\n$pdf->SetFontSize(14);\n$pdf->WriteHTML($html);\n$pdf->Output();\n?>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto7.htm",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n<title>Adding new fonts and encodings</title>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"../fpdf.css\">\n</head>\n<body>\n<h1>Adding new fonts and encodings</h1>\nThis tutorial explains how to use TrueType, OpenType and Type1 fonts so that you are not limited to the\nstandard fonts anymore. The other benefit is that you can choose the text encoding, which allows you to\nuse other languages than the Western ones (the standard fonts support only cp1252 aka windows-1252).\n<br>\n<br>\nFor OpenType, only the format based on TrueType is supported (not the one based on Type1).<br>\nFor Type1, you will need the corresponding AFM file (it is usually provided with the font).\n<br>\n<br>\nAdding a new font requires two steps:\n<ul>\n<li>Generation of the font definition file</li>\n<li>Declaration of the font in the script</li>\n</ul>\n\n<h2>Generation of the font definition file</h2>\nThe first step consists in generating a PHP file containing all the information needed by FPDF;\nin addition, the font file is compressed. To do this, a helper script is provided in the makefont\ndirectory of the package: makefont.php. It contains the following function:\n<br>\n<br>\n<code>MakeFont(<b>string</b> fontfile [, <b>string</b> enc [, <b>boolean</b> embed [, <b>boolean</b> subset]]])</code>\n<dl class=\"param\" style=\"margin-bottom:2em\">\n<dt><code>fontfile</code></dt>\n<dd>\n<p>Path to the .ttf, .otf or .pfb file.</p>\n</dd>\n<dt><code>enc</code></dt>\n<dd>\n<p>Name of the encoding to use. Default value: <code>cp1252</code>.</p>\n</dd>\n<dt><code>embed</code></dt>\n<dd>\n<p>Whether to embed the font or not. Default value: <code>true</code>.</p>\n</dd>\n<dt><code>subset</code></dt>\n<dd>\n<p>Whether to subset the font or not. Default value: <code>true</code>.</p>\n</dd>\n</dl>\nThe first parameter is the name of the font file. The extension must be either .ttf, .otf or .pfb and\ndetermines the font type. If your Type1 font is in ASCII format (.pfa), you can convert it to binary\n(.pfb) with the help of <a href=\"http://www.lcdf.org/~eddietwo/type/#t1utils\" target=\"_blank\">t1utils</a>.\n<br>\n<br>\nFor Type1 fonts, the corresponding .afm file must be present in the same directory.\n<br>\n<br>\nThe encoding defines the association between a code (from 0 to 255) and a character. The first 128 are\nalways the same and correspond to ASCII; the following are variable. Encodings are stored in .map\nfiles. The available ones are:\n<ul>\n<li>cp1250 (Central Europe)</li>\n<li>cp1251 (Cyrillic)</li>\n<li>cp1252 (Western Europe)</li>\n<li>cp1253 (Greek)</li>\n<li>cp1254 (Turkish)</li>\n<li>cp1255 (Hebrew)</li>\n<li>cp1257 (Baltic)</li>\n<li>cp1258 (Vietnamese)</li>\n<li>cp874 (Thai)</li>\n<li>ISO-8859-1 (Western Europe)</li>\n<li>ISO-8859-2 (Central Europe)</li>\n<li>ISO-8859-4 (Baltic)</li>\n<li>ISO-8859-5 (Cyrillic)</li>\n<li>ISO-8859-7 (Greek)</li>\n<li>ISO-8859-9 (Turkish)</li>\n<li>ISO-8859-11 (Thai)</li>\n<li>ISO-8859-15 (Western Europe)</li>\n<li>ISO-8859-16 (Central Europe)</li>\n<li>KOI8-R (Russian)</li>\n<li>KOI8-U (Ukrainian)</li>\n</ul>\nOf course, the font must contain the characters corresponding to the selected encoding.\n<br>\n<br>\nThe third parameter indicates whether the font should be embedded in the PDF or not. When a font is\nnot embedded, it is searched in the system. The advantage is that the PDF file is smaller; on the\nother hand, if it is not available, then a substitution font is used. So you should ensure that the\nneeded font is installed on the client systems. Embedding is the recommended option to guarantee a\ncorrect rendering.\n<br>\n<br>\nThe last parameter indicates whether subsetting should be used, that is to say, whether only\nthe characters from the selected encoding should be kept in the embedded font. As a result,\nthe size of the PDF file can be greatly reduced, especially if the original font was big.\n<br>\n<br>\nAfter you have called the function (create a new file for this and include makefont.php), a .php file\nis created, with the same name as the font file. You may rename it if you wish. If the case of embedding,\nthe font file is compressed and gives a second file with .z as extension (except if the compression\nfunction is not available, it requires Zlib). You may rename it too, but in this case you have to change\nthe variable <code>$file</code> in the .php file accordingly.\n<br>\n<br>\nExample:\n<div class=\"source\">\n<pre><code>&lt;?php\n<span class=\"kw\">require(</span><span class=\"str\">'makefont/makefont.php'</span><span class=\"kw\">);\n\n</span>MakeFont<span class=\"kw\">(</span><span class=\"str\">'C:\\\\Windows\\\\Fonts\\\\comic.ttf'</span><span class=\"kw\">,</span><span class=\"str\">'cp1252'</span><span class=\"kw\">);\n</span>?&gt;</code></pre>\n</div>\nwhich gives the files comic.php and comic.z.\n<br>\n<br>\nThen copy the generated files to the font directory. If the font file could not be compressed, copy\nit directly instead of the .z version.\n<br>\n<br>\nAnother way to call MakeFont() is through the command line:\n<br>\n<br>\n<kbd>php makefont\\makefont.php C:\\Windows\\Fonts\\comic.ttf cp1252</kbd>\n<br>\n<br>\nFinally, for TrueType and OpenType fonts, you can also generate the files\n<a href=\"http://www.fpdf.org/makefont/\">online</a> instead of doing it manually.\n\n<h2>Declaration of the font in the script</h2>\nThe second step is simple. You just need to call the <a href='../doc/addfont.htm'>AddFont()</a> method:\n<div class=\"source\">\n<pre><code>$pdf<span class=\"kw\">-&gt;</span>AddFont<span class=\"kw\">(</span><span class=\"str\">'Comic'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span><span class=\"str\">'comic.php'</span><span class=\"kw\">);\n</span></code></pre>\n</div>\nAnd the font is now available (in regular and underlined styles), usable like the others. If we\nhad worked with Comic Sans MS Bold (comicbd.ttf), we would have written:\n<div class=\"source\">\n<pre><code>$pdf<span class=\"kw\">-&gt;</span>AddFont<span class=\"kw\">(</span><span class=\"str\">'Comic'</span><span class=\"kw\">,</span><span class=\"str\">'B'</span><span class=\"kw\">,</span><span class=\"str\">'comicbd.php'</span><span class=\"kw\">);\n</span></code></pre>\n</div>\n\n<h2>Example</h2>\nLet's now see a complete example. We will use the font <a href=\"http://www.abstractfonts.com/font/52\" target=\"_blank\">Calligrapher</a>.\nThe first step is the generation of the font files:\n<div class=\"source\">\n<pre><code>&lt;?php\n<span class=\"kw\">require(</span><span class=\"str\">'makefont/makefont.php'</span><span class=\"kw\">);\n\n</span>MakeFont<span class=\"kw\">(</span><span class=\"str\">'calligra.ttf'</span><span class=\"kw\">,</span><span class=\"str\">'cp1252'</span><span class=\"kw\">);\n</span>?&gt;</code></pre>\n</div>\nThe script gives the following report:\n<br>\n<br>\n<b>Warning:</b> character Euro is missing<br>\n<b>Warning:</b> character zcaron is missing<br>\nFont file compressed: calligra.z<br>\nFont definition file generated: calligra.php<br>\n<br>\nThe euro character is not present in the font (it's too old). Another character is missing too.\n<br>\n<br>\nAlternatively we could have used the command line:\n<br>\n<br>\n<kbd>php makefont\\makefont.php calligra.ttf cp1252</kbd>\n<br>\n<br>\nor used the online generator.\n<br>\n<br>\nWe can now copy the two generated files to the font directory and write the script:\n<div class=\"source\">\n<pre><code>&lt;?php\n<span class=\"kw\">require(</span><span class=\"str\">'fpdf.php'</span><span class=\"kw\">);\n\n</span>$pdf <span class=\"kw\">= new </span>FPDF<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>AddFont<span class=\"kw\">(</span><span class=\"str\">'Calligrapher'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span><span class=\"str\">'calligra.php'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>AddPage<span class=\"kw\">();\n</span>$pdf<span class=\"kw\">-&gt;</span>SetFont<span class=\"kw\">(</span><span class=\"str\">'Calligrapher'</span><span class=\"kw\">,</span><span class=\"str\">''</span><span class=\"kw\">,</span>35<span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Write<span class=\"kw\">(</span>10<span class=\"kw\">,</span><span class=\"str\">'Enjoy new fonts with FPDF!'</span><span class=\"kw\">);\n</span>$pdf<span class=\"kw\">-&gt;</span>Output<span class=\"kw\">();\n</span>?&gt;</code></pre>\n</div>\n<p class='demo'><a href='tuto7.php' target='_blank' class='demo'>[Demo]</a></p>\n</body>\n</html>\n"
  },
  {
    "path": "tool/pdf/tutorial/tuto7.php",
    "content": "<?php\ndefine('FPDF_FONTPATH','.');\nrequire('../fpdf.php');\n\n$pdf = new FPDF();\n$pdf->AddFont('Calligrapher','','calligra.php');\n$pdf->AddPage();\n$pdf->SetFont('Calligrapher','',35);\n$pdf->Cell(0,10,'Enjoy new fonts with FPDF!');\n$pdf->Output();\n?>\n"
  },
  {
    "path": "tool/vendor/vendor/autoload.php",
    "content": "<?php\n\n// autoload.php @generated by Composer\n\nrequire_once __DIR__ . '/composer/autoload_real.php';\n\nreturn ComposerAutoloaderInit95c28ce00c66f07dd124361b6fb3cd4e::getLoader();\n"
  },
  {
    "path": "tool/vendor/vendor/composer/ClassLoader.php",
    "content": "<?php\n\n/*\n * This file is part of Composer.\n *\n * (c) Nils Adermann <naderman@naderman.de>\n *     Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Composer\\Autoload;\n\n/**\n * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.\n *\n *     $loader = new \\Composer\\Autoload\\ClassLoader();\n *\n *     // register classes with namespaces\n *     $loader->add('Symfony\\Component', __DIR__.'/component');\n *     $loader->add('Symfony',           __DIR__.'/framework');\n *\n *     // activate the autoloader\n *     $loader->register();\n *\n *     // to enable searching the include path (eg. for PEAR packages)\n *     $loader->setUseIncludePath(true);\n *\n * In this example, if you try to use a class in the Symfony\\Component\n * namespace or one of its children (Symfony\\Component\\Console for instance),\n * the autoloader will first look for the class under the component/\n * directory, and it will then fallback to the framework/ directory if not\n * found before giving up.\n *\n * This class is loosely based on the Symfony UniversalClassLoader.\n *\n * @author Fabien Potencier <fabien@symfony.com>\n * @author Jordi Boggiano <j.boggiano@seld.be>\n * @see    http://www.php-fig.org/psr/psr-0/\n * @see    http://www.php-fig.org/psr/psr-4/\n */\nclass ClassLoader\n{\n    // PSR-4\n    private $prefixLengthsPsr4 = array();\n    private $prefixDirsPsr4 = array();\n    private $fallbackDirsPsr4 = array();\n\n    // PSR-0\n    private $prefixesPsr0 = array();\n    private $fallbackDirsPsr0 = array();\n\n    private $useIncludePath = false;\n    private $classMap = array();\n    private $classMapAuthoritative = false;\n    private $missingClasses = array();\n    private $apcuPrefix;\n\n    public function getPrefixes()\n    {\n        if (!empty($this->prefixesPsr0)) {\n            return call_user_func_array('array_merge', $this->prefixesPsr0);\n        }\n\n        return array();\n    }\n\n    public function getPrefixesPsr4()\n    {\n        return $this->prefixDirsPsr4;\n    }\n\n    public function getFallbackDirs()\n    {\n        return $this->fallbackDirsPsr0;\n    }\n\n    public function getFallbackDirsPsr4()\n    {\n        return $this->fallbackDirsPsr4;\n    }\n\n    public function getClassMap()\n    {\n        return $this->classMap;\n    }\n\n    /**\n     * @param array $classMap Class to filename map\n     */\n    public function addClassMap(array $classMap)\n    {\n        if ($this->classMap) {\n            $this->classMap = array_merge($this->classMap, $classMap);\n        } else {\n            $this->classMap = $classMap;\n        }\n    }\n\n    /**\n     * Registers a set of PSR-0 directories for a given prefix, either\n     * appending or prepending to the ones previously set for this prefix.\n     *\n     * @param string       $prefix  The prefix\n     * @param array|string $paths   The PSR-0 root directories\n     * @param bool         $prepend Whether to prepend the directories\n     */\n    public function add($prefix, $paths, $prepend = false)\n    {\n        if (!$prefix) {\n            if ($prepend) {\n                $this->fallbackDirsPsr0 = array_merge(\n                    (array) $paths,\n                    $this->fallbackDirsPsr0\n                );\n            } else {\n                $this->fallbackDirsPsr0 = array_merge(\n                    $this->fallbackDirsPsr0,\n                    (array) $paths\n                );\n            }\n\n            return;\n        }\n\n        $first = $prefix[0];\n        if (!isset($this->prefixesPsr0[$first][$prefix])) {\n            $this->prefixesPsr0[$first][$prefix] = (array) $paths;\n\n            return;\n        }\n        if ($prepend) {\n            $this->prefixesPsr0[$first][$prefix] = array_merge(\n                (array) $paths,\n                $this->prefixesPsr0[$first][$prefix]\n            );\n        } else {\n            $this->prefixesPsr0[$first][$prefix] = array_merge(\n                $this->prefixesPsr0[$first][$prefix],\n                (array) $paths\n            );\n        }\n    }\n\n    /**\n     * Registers a set of PSR-4 directories for a given namespace, either\n     * appending or prepending to the ones previously set for this namespace.\n     *\n     * @param string       $prefix  The prefix/namespace, with trailing '\\\\'\n     * @param array|string $paths   The PSR-4 base directories\n     * @param bool         $prepend Whether to prepend the directories\n     *\n     * @throws \\InvalidArgumentException\n     */\n    public function addPsr4($prefix, $paths, $prepend = false)\n    {\n        if (!$prefix) {\n            // Register directories for the root namespace.\n            if ($prepend) {\n                $this->fallbackDirsPsr4 = array_merge(\n                    (array) $paths,\n                    $this->fallbackDirsPsr4\n                );\n            } else {\n                $this->fallbackDirsPsr4 = array_merge(\n                    $this->fallbackDirsPsr4,\n                    (array) $paths\n                );\n            }\n        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {\n            // Register directories for a new namespace.\n            $length = strlen($prefix);\n            if ('\\\\' !== $prefix[$length - 1]) {\n                throw new \\InvalidArgumentException(\"A non-empty PSR-4 prefix must end with a namespace separator.\");\n            }\n            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;\n            $this->prefixDirsPsr4[$prefix] = (array) $paths;\n        } elseif ($prepend) {\n            // Prepend directories for an already registered namespace.\n            $this->prefixDirsPsr4[$prefix] = array_merge(\n                (array) $paths,\n                $this->prefixDirsPsr4[$prefix]\n            );\n        } else {\n            // Append directories for an already registered namespace.\n            $this->prefixDirsPsr4[$prefix] = array_merge(\n                $this->prefixDirsPsr4[$prefix],\n                (array) $paths\n            );\n        }\n    }\n\n    /**\n     * Registers a set of PSR-0 directories for a given prefix,\n     * replacing any others previously set for this prefix.\n     *\n     * @param string       $prefix The prefix\n     * @param array|string $paths  The PSR-0 base directories\n     */\n    public function set($prefix, $paths)\n    {\n        if (!$prefix) {\n            $this->fallbackDirsPsr0 = (array) $paths;\n        } else {\n            $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;\n        }\n    }\n\n    /**\n     * Registers a set of PSR-4 directories for a given namespace,\n     * replacing any others previously set for this namespace.\n     *\n     * @param string       $prefix The prefix/namespace, with trailing '\\\\'\n     * @param array|string $paths  The PSR-4 base directories\n     *\n     * @throws \\InvalidArgumentException\n     */\n    public function setPsr4($prefix, $paths)\n    {\n        if (!$prefix) {\n            $this->fallbackDirsPsr4 = (array) $paths;\n        } else {\n            $length = strlen($prefix);\n            if ('\\\\' !== $prefix[$length - 1]) {\n                throw new \\InvalidArgumentException(\"A non-empty PSR-4 prefix must end with a namespace separator.\");\n            }\n            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;\n            $this->prefixDirsPsr4[$prefix] = (array) $paths;\n        }\n    }\n\n    /**\n     * Turns on searching the include path for class files.\n     *\n     * @param bool $useIncludePath\n     */\n    public function setUseIncludePath($useIncludePath)\n    {\n        $this->useIncludePath = $useIncludePath;\n    }\n\n    /**\n     * Can be used to check if the autoloader uses the include path to check\n     * for classes.\n     *\n     * @return bool\n     */\n    public function getUseIncludePath()\n    {\n        return $this->useIncludePath;\n    }\n\n    /**\n     * Turns off searching the prefix and fallback directories for classes\n     * that have not been registered with the class map.\n     *\n     * @param bool $classMapAuthoritative\n     */\n    public function setClassMapAuthoritative($classMapAuthoritative)\n    {\n        $this->classMapAuthoritative = $classMapAuthoritative;\n    }\n\n    /**\n     * Should class lookup fail if not found in the current class map?\n     *\n     * @return bool\n     */\n    public function isClassMapAuthoritative()\n    {\n        return $this->classMapAuthoritative;\n    }\n\n    /**\n     * APCu prefix to use to cache found/not-found classes, if the extension is enabled.\n     *\n     * @param string|null $apcuPrefix\n     */\n    public function setApcuPrefix($apcuPrefix)\n    {\n        $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;\n    }\n\n    /**\n     * The APCu prefix in use, or null if APCu caching is not enabled.\n     *\n     * @return string|null\n     */\n    public function getApcuPrefix()\n    {\n        return $this->apcuPrefix;\n    }\n\n    /**\n     * Registers this instance as an autoloader.\n     *\n     * @param bool $prepend Whether to prepend the autoloader or not\n     */\n    public function register($prepend = false)\n    {\n        spl_autoload_register(array($this, 'loadClass'), true, $prepend);\n    }\n\n    /**\n     * Unregisters this instance as an autoloader.\n     */\n    public function unregister()\n    {\n        spl_autoload_unregister(array($this, 'loadClass'));\n    }\n\n    /**\n     * Loads the given class or interface.\n     *\n     * @param  string    $class The name of the class\n     * @return bool|null True if loaded, null otherwise\n     */\n    public function loadClass($class)\n    {\n        if ($file = $this->findFile($class)) {\n            includeFile($file);\n\n            return true;\n        }\n    }\n\n    /**\n     * Finds the path to the file where the class is defined.\n     *\n     * @param string $class The name of the class\n     *\n     * @return string|false The path if found, false otherwise\n     */\n    public function findFile($class)\n    {\n        // class map lookup\n        if (isset($this->classMap[$class])) {\n            return $this->classMap[$class];\n        }\n        if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {\n            return false;\n        }\n        if (null !== $this->apcuPrefix) {\n            $file = apcu_fetch($this->apcuPrefix.$class, $hit);\n            if ($hit) {\n                return $file;\n            }\n        }\n\n        $file = $this->findFileWithExtension($class, '.php');\n\n        // Search for Hack files if we are running on HHVM\n        if (false === $file && defined('HHVM_VERSION')) {\n            $file = $this->findFileWithExtension($class, '.hh');\n        }\n\n        if (null !== $this->apcuPrefix) {\n            apcu_add($this->apcuPrefix.$class, $file);\n        }\n\n        if (false === $file) {\n            // Remember that this class does not exist.\n            $this->missingClasses[$class] = true;\n        }\n\n        return $file;\n    }\n\n    private function findFileWithExtension($class, $ext)\n    {\n        // PSR-4 lookup\n        $logicalPathPsr4 = strtr($class, '\\\\', DIRECTORY_SEPARATOR) . $ext;\n\n        $first = $class[0];\n        if (isset($this->prefixLengthsPsr4[$first])) {\n            $subPath = $class;\n            while (false !== $lastPos = strrpos($subPath, '\\\\')) {\n                $subPath = substr($subPath, 0, $lastPos);\n                $search = $subPath.'\\\\';\n                if (isset($this->prefixDirsPsr4[$search])) {\n                    foreach ($this->prefixDirsPsr4[$search] as $dir) {\n                        $length = $this->prefixLengthsPsr4[$first][$search];\n                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {\n                            return $file;\n                        }\n                    }\n                }\n            }\n        }\n\n        // PSR-4 fallback dirs\n        foreach ($this->fallbackDirsPsr4 as $dir) {\n            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {\n                return $file;\n            }\n        }\n\n        // PSR-0 lookup\n        if (false !== $pos = strrpos($class, '\\\\')) {\n            // namespaced class name\n            $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)\n                . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);\n        } else {\n            // PEAR-like class name\n            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;\n        }\n\n        if (isset($this->prefixesPsr0[$first])) {\n            foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {\n                if (0 === strpos($class, $prefix)) {\n                    foreach ($dirs as $dir) {\n                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {\n                            return $file;\n                        }\n                    }\n                }\n            }\n        }\n\n        // PSR-0 fallback dirs\n        foreach ($this->fallbackDirsPsr0 as $dir) {\n            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {\n                return $file;\n            }\n        }\n\n        // PSR-0 include paths.\n        if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {\n            return $file;\n        }\n\n        return false;\n    }\n}\n\n/**\n * Scope isolated include.\n *\n * Prevents access to $this/self from included files.\n */\nfunction includeFile($file)\n{\n    include $file;\n}\n"
  },
  {
    "path": "tool/vendor/vendor/composer/LICENSE",
    "content": "\nCopyright (c) Nils Adermann, Jordi Boggiano\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n"
  },
  {
    "path": "tool/vendor/vendor/composer/autoload_classmap.php",
    "content": "<?php\n\n// autoload_classmap.php @generated by Composer\n\n$vendorDir = dirname(dirname(__FILE__));\n$baseDir = dirname($vendorDir);\n\nreturn array(\n);\n"
  },
  {
    "path": "tool/vendor/vendor/composer/autoload_namespaces.php",
    "content": "<?php\n\n// autoload_namespaces.php @generated by Composer\n\n$vendorDir = dirname(dirname(__FILE__));\n$baseDir = dirname($vendorDir);\n\nreturn array(\n);\n"
  },
  {
    "path": "tool/vendor/vendor/composer/autoload_psr4.php",
    "content": "<?php\n\n// autoload_psr4.php @generated by Composer\n\n$vendorDir = dirname(dirname(__FILE__));\n$baseDir = dirname($vendorDir);\n\nreturn array(\n    'Picqer\\\\Barcode\\\\' => array($vendorDir . '/picqer/php-barcode-generator/src'),\n);\n"
  },
  {
    "path": "tool/vendor/vendor/composer/autoload_real.php",
    "content": "<?php\n\n// autoload_real.php @generated by Composer\n\nclass ComposerAutoloaderInit95c28ce00c66f07dd124361b6fb3cd4e\n{\n    private static $loader;\n\n    public static function loadClassLoader($class)\n    {\n        if ('Composer\\Autoload\\ClassLoader' === $class) {\n            require __DIR__ . '/ClassLoader.php';\n        }\n    }\n\n    public static function getLoader()\n    {\n        if (null !== self::$loader) {\n            return self::$loader;\n        }\n\n        spl_autoload_register(array('ComposerAutoloaderInit95c28ce00c66f07dd124361b6fb3cd4e', 'loadClassLoader'), true, true);\n        self::$loader = $loader = new \\Composer\\Autoload\\ClassLoader();\n        spl_autoload_unregister(array('ComposerAutoloaderInit95c28ce00c66f07dd124361b6fb3cd4e', 'loadClassLoader'));\n\n        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());\n        if ($useStaticLoader) {\n            require_once __DIR__ . '/autoload_static.php';\n\n            call_user_func(\\Composer\\Autoload\\ComposerStaticInit95c28ce00c66f07dd124361b6fb3cd4e::getInitializer($loader));\n        } else {\n            $map = require __DIR__ . '/autoload_namespaces.php';\n            foreach ($map as $namespace => $path) {\n                $loader->set($namespace, $path);\n            }\n\n            $map = require __DIR__ . '/autoload_psr4.php';\n            foreach ($map as $namespace => $path) {\n                $loader->setPsr4($namespace, $path);\n            }\n\n            $classMap = require __DIR__ . '/autoload_classmap.php';\n            if ($classMap) {\n                $loader->addClassMap($classMap);\n            }\n        }\n\n        $loader->register(true);\n\n        return $loader;\n    }\n}\n"
  },
  {
    "path": "tool/vendor/vendor/composer/autoload_static.php",
    "content": "<?php\n\n// autoload_static.php @generated by Composer\n\nnamespace Composer\\Autoload;\n\nclass ComposerStaticInit95c28ce00c66f07dd124361b6fb3cd4e\n{\n    public static $prefixLengthsPsr4 = array (\n        'P' => \n        array (\n            'Picqer\\\\Barcode\\\\' => 15,\n        ),\n    );\n\n    public static $prefixDirsPsr4 = array (\n        'Picqer\\\\Barcode\\\\' => \n        array (\n            0 => __DIR__ . '/..' . '/picqer/php-barcode-generator/src',\n        ),\n    );\n\n    public static function getInitializer(ClassLoader $loader)\n    {\n        return \\Closure::bind(function () use ($loader) {\n            $loader->prefixLengthsPsr4 = ComposerStaticInit95c28ce00c66f07dd124361b6fb3cd4e::$prefixLengthsPsr4;\n            $loader->prefixDirsPsr4 = ComposerStaticInit95c28ce00c66f07dd124361b6fb3cd4e::$prefixDirsPsr4;\n\n        }, null, ClassLoader::class);\n    }\n}\n"
  },
  {
    "path": "tool/vendor/vendor/composer/installed.json",
    "content": "[\n    {\n        \"name\": \"picqer/php-barcode-generator\",\n        \"version\": \"v0.2.1\",\n        \"version_normalized\": \"0.2.1.0\",\n        \"source\": {\n            \"type\": \"git\",\n            \"url\": \"https://github.com/picqer/php-barcode-generator.git\",\n            \"reference\": \"5328d821b076727163a3ad25373973055faadead\"\n        },\n        \"dist\": {\n            \"type\": \"zip\",\n            \"url\": \"https://api.github.com/repos/picqer/php-barcode-generator/zipball/5328d821b076727163a3ad25373973055faadead\",\n            \"reference\": \"5328d821b076727163a3ad25373973055faadead\",\n            \"shasum\": \"\"\n        },\n        \"require\": {\n            \"php\": \">=5.4.0\"\n        },\n        \"require-dev\": {\n            \"phpunit/phpunit\": \"^5.3\"\n        },\n        \"time\": \"2016-10-17T14:20:28+00:00\",\n        \"type\": \"library\",\n        \"installation-source\": \"dist\",\n        \"autoload\": {\n            \"psr-4\": {\n                \"Picqer\\\\Barcode\\\\\": \"src\"\n            }\n        },\n        \"notification-url\": \"https://packagist.org/downloads/\",\n        \"license\": [\n            \"LGPLv3\"\n        ],\n        \"authors\": [\n            {\n                \"name\": \"Nicola Asuni\",\n                \"email\": \"info@tecnick.com\",\n                \"homepage\": \"http://nicolaasuni.tecnick.com\"\n            },\n            {\n                \"name\": \"Casper Bakker\",\n                \"email\": \"info@picqer.com\"\n            }\n        ],\n        \"description\": \"An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.\",\n        \"homepage\": \"http://github.com/picqer/php-barcode-generator\",\n        \"keywords\": [\n            \"CODABAR\",\n            \"Code11\",\n            \"Code93\",\n            \"EAN13\",\n            \"KIX\",\n            \"KIXCODE\",\n            \"MSI\",\n            \"POSTNET\",\n            \"Pharma\",\n            \"Standard 2 of 5\",\n            \"barcode\",\n            \"barcode generator\",\n            \"code128\",\n            \"code39\",\n            \"ean\",\n            \"html\",\n            \"jpeg\",\n            \"jpg\",\n            \"php\",\n            \"png\",\n            \"svg\",\n            \"upc\"\n        ]\n    }\n]\n"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/LICENSE.md",
    "content": "                   GNU LESSER GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\n  This version of the GNU Lesser General Public License incorporates\nthe terms and conditions of version 3 of the GNU General Public\nLicense, supplemented by the additional permissions listed below.\n\n  0. Additional Definitions.\n\n  As used herein, \"this License\" refers to version 3 of the GNU Lesser\nGeneral Public License, and the \"GNU GPL\" refers to version 3 of the GNU\nGeneral Public License.\n\n  \"The Library\" refers to a covered work governed by this License,\nother than an Application or a Combined Work as defined below.\n\n  An \"Application\" is any work that makes use of an interface provided\nby the Library, but which is not otherwise based on the Library.\nDefining a subclass of a class defined by the Library is deemed a mode\nof using an interface provided by the Library.\n\n  A \"Combined Work\" is a work produced by combining or linking an\nApplication with the Library.  The particular version of the Library\nwith which the Combined Work was made is also called the \"Linked\nVersion\".\n\n  The \"Minimal Corresponding Source\" for a Combined Work means the\nCorresponding Source for the Combined Work, excluding any source code\nfor portions of the Combined Work that, considered in isolation, are\nbased on the Application, and not on the Linked Version.\n\n  The \"Corresponding Application Code\" for a Combined Work means the\nobject code and/or source code for the Application, including any data\nand utility programs needed for reproducing the Combined Work from the\nApplication, but excluding the System Libraries of the Combined Work.\n\n  1. Exception to Section 3 of the GNU GPL.\n\n  You may convey a covered work under sections 3 and 4 of this License\nwithout being bound by section 3 of the GNU GPL.\n\n  2. Conveying Modified Versions.\n\n  If you modify a copy of the Library, and, in your modifications, a\nfacility refers to a function or data to be supplied by an Application\nthat uses the facility (other than as an argument passed when the\nfacility is invoked), then you may convey a copy of the modified\nversion:\n\n   a) under this License, provided that you make a good faith effort to\n   ensure that, in the event an Application does not supply the\n   function or data, the facility still operates, and performs\n   whatever part of its purpose remains meaningful, or\n\n   b) under the GNU GPL, with none of the additional permissions of\n   this License applicable to that copy.\n\n  3. Object Code Incorporating Material from Library Header Files.\n\n  The object code form of an Application may incorporate material from\na header file that is part of the Library.  You may convey such object\ncode under terms of your choice, provided that, if the incorporated\nmaterial is not limited to numerical parameters, data structure\nlayouts and accessors, or small macros, inline functions and templates\n(ten or fewer lines in length), you do both of the following:\n\n   a) Give prominent notice with each copy of the object code that the\n   Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the object code with a copy of the GNU GPL and this license\n   document.\n\n  4. Combined Works.\n\n  You may convey a Combined Work under terms of your choice that,\ntaken together, effectively do not restrict modification of the\nportions of the Library contained in the Combined Work and reverse\nengineering for debugging such modifications, if you also do each of\nthe following:\n\n   a) Give prominent notice with each copy of the Combined Work that\n   the Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the Combined Work with a copy of the GNU GPL and this license\n   document.\n\n   c) For a Combined Work that displays copyright notices during\n   execution, include the copyright notice for the Library among\n   these notices, as well as a reference directing the user to the\n   copies of the GNU GPL and this license document.\n\n   d) Do one of the following:\n\n       0) Convey the Minimal Corresponding Source under the terms of this\n       License, and the Corresponding Application Code in a form\n       suitable for, and under terms that permit, the user to\n       recombine or relink the Application with a modified version of\n       the Linked Version to produce a modified Combined Work, in the\n       manner specified by section 6 of the GNU GPL for conveying\n       Corresponding Source.\n\n       1) Use a suitable shared library mechanism for linking with the\n       Library.  A suitable mechanism is one that (a) uses at run time\n       a copy of the Library already present on the user's computer\n       system, and (b) will operate properly with a modified version\n       of the Library that is interface-compatible with the Linked\n       Version.\n\n   e) Provide Installation Information, but only if you would otherwise\n   be required to provide such information under section 6 of the\n   GNU GPL, and only to the extent that such information is\n   necessary to install and execute a modified version of the\n   Combined Work produced by recombining or relinking the\n   Application with a modified version of the Linked Version. (If\n   you use option 4d0, the Installation Information must accompany\n   the Minimal Corresponding Source and Corresponding Application\n   Code. If you use option 4d1, you must provide the Installation\n   Information in the manner specified by section 6 of the GNU GPL\n   for conveying Corresponding Source.)\n\n  5. Combined Libraries.\n\n  You may place library facilities that are a work based on the\nLibrary side by side in a single library together with other library\nfacilities that are not Applications and are not covered by this\nLicense, and convey such a combined library under terms of your\nchoice, if you do both of the following:\n\n   a) Accompany the combined library with a copy of the same work based\n   on the Library, uncombined with any other library facilities,\n   conveyed under the terms of this License.\n\n   b) Give prominent notice with the combined library that part of it\n   is a work based on the Library, and explaining where to find the\n   accompanying uncombined form of the same work.\n\n  6. Revised Versions of the GNU Lesser General Public License.\n\n  The Free Software Foundation may publish revised and/or new versions\nof the GNU Lesser General Public License from time to time. Such new\nversions will be similar in spirit to the present version, but may\ndiffer in detail to address new problems or concerns.\n\n  Each version is given a distinguishing version number. If the\nLibrary as you received it specifies that a certain numbered version\nof the GNU Lesser General Public License \"or any later version\"\napplies to it, you have the option of following the terms and\nconditions either of that published version or of any later version\npublished by the Free Software Foundation. If the Library as you\nreceived it does not specify a version number of the GNU Lesser\nGeneral Public License, you may choose any version of the GNU Lesser\nGeneral Public License ever published by the Free Software Foundation.\n\n  If the Library as you received it specifies that a proxy can decide\nwhether future versions of the GNU Lesser General Public License shall\napply, that proxy's public statement of acceptance of any version is\npermanent authorization for you to choose that version for the\nLibrary.\n"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/Readme.md",
    "content": "# PHP Barcode Generator [![Build Status](https://travis-ci.org/picqer/php-barcode-generator.svg?branch=master)](https://travis-ci.org/picqer/php-barcode-generator) [![Total Downloads](https://poser.pugx.org/picqer/php-barcode-generator/downloads)](https://packagist.org/packages/picqer/php-barcode-generator)\nThis is an easy to use, non-bloated, framework independent, barcode generator in PHP.\n\nIt creates SVG, PNG, JPG and HTML images, from the most used 1D barcode standards.\n\n*The codebase is largely from the [TCPDF barcode generator](https://github.com/tecnickcom/TCPDF) by Nicola Asuni. This code is therefor licensed under LGPLv3. It is still a bit of a mess, bit I will clean it in the future. I do not expect the interface of this class will change during the clean ups.*\n\n## Installation\nInstall through [composer](https://getcomposer.org/doc/00-intro.md):\n\n```\ncomposer require picqer/php-barcode-generator\n```\n\n## Usage\nInitiate the barcode generator for the output you want, then call the ->getBarcode() routine as many times as you want.\n\n```php\n$generator = new Picqer\\Barcode\\BarcodeGeneratorHTML();\necho $generator->getBarcode('081231723897', $generator::TYPE_CODE_128);\n```\n\nThe ->getBarcode() routine accepts the following:\n- $code Data for the barcode\n- $type Type of barcode, use the constants defined in the class\n- $widthFactor Width is based on the length of the data, with this factor you can make the barcode bars wider then default\n- $totalHeight The total height of the barcode\n- $color Hex code of the foreground color\n\n## Image types\n```php\n$generatorSVG = new Picqer\\Barcode\\BarcodeGeneratorSVG();\n$generatorPNG = new Picqer\\Barcode\\BarcodeGeneratorPNG();\n$generatorJPG = new Picqer\\Barcode\\BarcodeGeneratorJPG();\n$generatorHTML = new Picqer\\Barcode\\BarcodeGeneratorHTML();\n```\n\n## Accepted types\n- TYPE_CODE_39\n- TYPE_CODE_39_CHECKSUM\n- TYPE_CODE_39E\n- TYPE_CODE_39E_CHECKSUM\n- TYPE_CODE_93\n- TYPE_STANDARD_2_5\n- TYPE_STANDARD_2_5_CHECKSUM\n- TYPE_INTERLEAVED_2_5\n- TYPE_INTERLEAVED_2_5_CHECKSUM\n- TYPE_CODE_128\n- TYPE_CODE_128_A\n- TYPE_CODE_128_B\n- TYPE_CODE_128_C\n- TYPE_EAN_2\n- TYPE_EAN_5\n- TYPE_EAN_8\n- TYPE_EAN_13\n- TYPE_UPC_A\n- TYPE_UPC_E\n- TYPE_MSI\n- TYPE_MSI_CHECKSUM\n- TYPE_POSTNET\n- TYPE_PLANET\n- TYPE_RMS4CC\n- TYPE_KIX\n- TYPE_IMB\n- TYPE_CODABAR\n- TYPE_CODE_11\n- TYPE_PHARMA_CODE\n- TYPE_PHARMA_CODE_TWO_TRACKS\n\n## Examples\nEmbedded PNG image in HTML:\n\n```php\n$generator = new \\Picqer\\Barcode\\BarcodeGeneratorPNG();\necho '<img src=\"data:image/png;base64,' . base64_encode($generator->getBarcode('081231723897', $generator::TYPE_CODE_128)) . '\">';\n```\n"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/_gitignore.txt",
    "content": ".idea\n.DS_Store\nvendor\ncomposer.lock"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/_travis.yml",
    "content": "language: php\n\nphp:\n  - 5.6\n  - 7.0\n  - hhvm\n\nsudo: false\n\ninstall: composer install --no-interaction --prefer-source\n\nscript: vendor/bin/phpunit"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/composer.json",
    "content": "{\n    \"name\": \"picqer/php-barcode-generator\",\n    \"type\": \"library\",\n    \"description\": \"An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.\",\n    \"keywords\": [ \"php\", \"barcode\", \"barcode generator\", \"EAN\", \"EAN13\", \"UPC\", \"Code39\", \"Code128\", \"Code93\", \"Standard 2 of 5\", \"MSI\", \"POSTNET\", \"KIX\", \"KIXCODE\", \"CODABAR\", \"PHARMA\", \"Code11\", \"SVG\", \"PNG\", \"HTML\", \"JPG\", \"JPEG\" ],\n    \"homepage\": \"http://github.com/picqer/php-barcode-generator\",\n    \"license\": \"LGPLv3\",\n    \"authors\": [\n        {\n            \"name\": \"Nicola Asuni\",\n            \"email\": \"info@tecnick.com\",\n            \"homepage\": \"http://nicolaasuni.tecnick.com\"\n        },\n        {\n            \"name\": \"Casper Bakker\",\n            \"email\": \"info@picqer.com\"\n        }\n    ],\n    \"require\": {\n        \"php\": \">=5.4.0\"\n    },\n    \"require-dev\": {\n        \"phpunit/phpunit\": \"^5.3\"\n    },\n    \"autoload\": {\n        \"psr-4\": {\n            \"Picqer\\\\Barcode\\\\\": \"src\"\n        }\n    }\n}\n"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/generate-verified-files.php",
    "content": "<?php\n\ninclude('src/BarcodeGenerator.php');\ninclude('src/BarcodeGeneratorPNG.php');\ninclude('src/BarcodeGeneratorSVG.php');\ninclude('src/BarcodeGeneratorJPG.php');\ninclude('src/BarcodeGeneratorHTML.php');\n\n$generatorSVG = new Picqer\\Barcode\\BarcodeGeneratorSVG();\nfile_put_contents('tests/verified-files/081231723897-ean13.svg', $generatorSVG->getBarcode('081231723897', $generatorSVG::TYPE_EAN_13));\n\n$generatorHTML = new Picqer\\Barcode\\BarcodeGeneratorHTML();\nfile_put_contents('tests/verified-files/081231723897-code128.html', $generatorHTML->getBarcode('081231723897', $generatorHTML::TYPE_CODE_128));\n\n$generatorSVG = new Picqer\\Barcode\\BarcodeGeneratorSVG();\nfile_put_contents('tests/verified-files/0049000004632-ean13.svg', $generatorSVG->getBarcode('0049000004632', $generatorSVG::TYPE_EAN_13));\n"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/phpunit.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<phpunit backupGlobals=\"false\"\n         backupStaticAttributes=\"false\"\n         colors=\"true\"\n         convertErrorsToExceptions=\"true\"\n         convertNoticesToExceptions=\"true\"\n         convertWarningsToExceptions=\"true\"\n         processIsolation=\"false\"\n         stopOnError=\"false\"\n         stopOnFailure=\"false\"\n         syntaxCheck=\"true\"\n         verbose=\"true\"\n>\n    <testsuites>\n        <testsuite name=\"Barcode Test Suite\">\n            <directory>./tests/</directory>\n        </testsuite>\n    </testsuites>\n    <filter>\n        <whitelist>\n            <directory>./src</directory>\n        </whitelist>\n    </filter>\n</phpunit>"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/BarcodeGenerator.php",
    "content": "<?php\n\n/**\n * General PHP Barcode Generator\n *\n * @author Casper Bakker - picqer.com\n * Based on TCPDF Barcode Generator\n */\n\n// Copyright (C) 2002-2015 Nicola Asuni - Tecnick.com LTD\n//\n// This file is part of TCPDF software library.\n//\n// TCPDF is free software: you can redistribute it and/or modify it\n// under the terms of the GNU Lesser General Public License as\n// published by the Free Software Foundation, either version 3 of the\n// License, or (at your option) any later version.\n//\n// TCPDF is distributed in the hope that it will be useful, but\n// WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n// See the GNU Lesser General Public License for more details.\n//\n// You should have received a copy of the License\n// along with TCPDF. If not, see\n// <http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT>.\n//\n// See LICENSE.TXT file for more information.\n\nnamespace Picqer\\Barcode;\n\nuse Picqer\\Barcode\\Exceptions\\BarcodeException;\nuse Picqer\\Barcode\\Exceptions\\InvalidCharacterException;\nuse Picqer\\Barcode\\Exceptions\\InvalidCheckDigitException;\nuse Picqer\\Barcode\\Exceptions\\InvalidFormatException;\nuse Picqer\\Barcode\\Exceptions\\InvalidLengthException;\nuse Picqer\\Barcode\\Exceptions\\UnknownTypeException;\n\nabstract class BarcodeGenerator\n{\n    const TYPE_CODE_39 = 'C39';\n    const TYPE_CODE_39_CHECKSUM = 'C39+';\n    const TYPE_CODE_39E = 'C39E';\n    const TYPE_CODE_39E_CHECKSUM = 'C39E+';\n    const TYPE_CODE_93 = 'C93';\n    const TYPE_STANDARD_2_5 = 'S25';\n    const TYPE_STANDARD_2_5_CHECKSUM = 'S25+';\n    const TYPE_INTERLEAVED_2_5 = 'I25';\n    const TYPE_INTERLEAVED_2_5_CHECKSUM = 'I25+';\n    const TYPE_CODE_128 = 'C128';\n    const TYPE_CODE_128_A = 'C128A';\n    const TYPE_CODE_128_B = 'C128B';\n    const TYPE_CODE_128_C = 'C128C';\n    const TYPE_EAN_2 = 'EAN2';\n    const TYPE_EAN_5 = 'EAN5';\n    const TYPE_EAN_8 = 'EAN8';\n    const TYPE_EAN_13 = 'EAN13';\n    const TYPE_UPC_A = 'UPCA';\n    const TYPE_UPC_E = 'UPCE';\n    const TYPE_MSI = 'MSI';\n    const TYPE_MSI_CHECKSUM = 'MSI+';\n    const TYPE_POSTNET = 'POSTNET';\n    const TYPE_PLANET = 'PLANET';\n    const TYPE_RMS4CC = 'RMS4CC';\n    const TYPE_KIX = 'KIX';\n    const TYPE_IMB = 'IMB';\n    const TYPE_CODABAR = 'CODABAR';\n    const TYPE_CODE_11 = 'CODE11';\n    const TYPE_PHARMA_CODE = 'PHARMA';\n    const TYPE_PHARMA_CODE_TWO_TRACKS = 'PHARMA2T';\n\n    /**\n     * Get the barcode data\n     *\n     * @param string $code code to print\n     * @param string $type type of barcode\n     * @return array barcode array\n     * @public\n     */\n    protected function getBarcodeData($code, $type)\n    {\n        switch (strtoupper($type)) {\n            case self::TYPE_CODE_39: { // CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.\n                $arrcode = $this->barcode_code39($code, false, false);\n                break;\n            }\n            case self::TYPE_CODE_39_CHECKSUM: { // CODE 39 with checksum\n                $arrcode = $this->barcode_code39($code, false, true);\n                break;\n            }\n            case self::TYPE_CODE_39E: { // CODE 39 EXTENDED\n                $arrcode = $this->barcode_code39($code, true, false);\n                break;\n            }\n            case self::TYPE_CODE_39E_CHECKSUM: { // CODE 39 EXTENDED + CHECKSUM\n                $arrcode = $this->barcode_code39($code, true, true);\n                break;\n            }\n            case self::TYPE_CODE_93: { // CODE 93 - USS-93\n                $arrcode = $this->barcode_code93($code);\n                break;\n            }\n            case self::TYPE_STANDARD_2_5: { // Standard 2 of 5\n                $arrcode = $this->barcode_s25($code, false);\n                break;\n            }\n            case self::TYPE_STANDARD_2_5_CHECKSUM: { // Standard 2 of 5 + CHECKSUM\n                $arrcode = $this->barcode_s25($code, true);\n                break;\n            }\n            case self::TYPE_INTERLEAVED_2_5: { // Interleaved 2 of 5\n                $arrcode = $this->barcode_i25($code, false);\n                break;\n            }\n            case self::TYPE_INTERLEAVED_2_5_CHECKSUM: { // Interleaved 2 of 5 + CHECKSUM\n                $arrcode = $this->barcode_i25($code, true);\n                break;\n            }\n            case self::TYPE_CODE_128: { // CODE 128\n                $arrcode = $this->barcode_c128($code, '');\n                break;\n            }\n            case self::TYPE_CODE_128_A: { // CODE 128 A\n                $arrcode = $this->barcode_c128($code, 'A');\n                break;\n            }\n            case self::TYPE_CODE_128_B: { // CODE 128 B\n                $arrcode = $this->barcode_c128($code, 'B');\n                break;\n            }\n            case self::TYPE_CODE_128_C: { // CODE 128 C\n                $arrcode = $this->barcode_c128($code, 'C');\n                break;\n            }\n            case self::TYPE_EAN_2: { // 2-Digits UPC-Based Extention\n                $arrcode = $this->barcode_eanext($code, 2);\n                break;\n            }\n            case self::TYPE_EAN_5: { // 5-Digits UPC-Based Extention\n                $arrcode = $this->barcode_eanext($code, 5);\n                break;\n            }\n            case self::TYPE_EAN_8: { // EAN 8\n                $arrcode = $this->barcode_eanupc($code, 8);\n                break;\n            }\n            case self::TYPE_EAN_13: { // EAN 13\n                $arrcode = $this->barcode_eanupc($code, 13);\n                break;\n            }\n            case self::TYPE_UPC_A: { // UPC-A\n                $arrcode = $this->barcode_eanupc($code, 12);\n                break;\n            }\n            case self::TYPE_UPC_E: { // UPC-E\n                $arrcode = $this->barcode_eanupc($code, 6);\n                break;\n            }\n            case self::TYPE_MSI: { // MSI (Variation of Plessey code)\n                $arrcode = $this->barcode_msi($code, false);\n                break;\n            }\n            case self::TYPE_MSI_CHECKSUM: { // MSI + CHECKSUM (modulo 11)\n                $arrcode = $this->barcode_msi($code, true);\n                break;\n            }\n            case self::TYPE_POSTNET: { // POSTNET\n                $arrcode = $this->barcode_postnet($code, false);\n                break;\n            }\n            case self::TYPE_PLANET: { // PLANET\n                $arrcode = $this->barcode_postnet($code, true);\n                break;\n            }\n            case self::TYPE_RMS4CC: { // RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)\n                $arrcode = $this->barcode_rms4cc($code, false);\n                break;\n            }\n            case self::TYPE_KIX: { // KIX (Klant index - Customer index)\n                $arrcode = $this->barcode_rms4cc($code, true);\n                break;\n            }\n            case self::TYPE_IMB: { // IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200\n                $arrcode = $this->barcode_imb($code);\n                break;\n            }\n            case self::TYPE_CODABAR: { // CODABAR\n                $arrcode = $this->barcode_codabar($code);\n                break;\n            }\n            case self::TYPE_CODE_11: { // CODE 11\n                $arrcode = $this->barcode_code11($code);\n                break;\n            }\n            case self::TYPE_PHARMA_CODE: { // PHARMACODE\n                $arrcode = $this->barcode_pharmacode($code);\n                break;\n            }\n            case self::TYPE_PHARMA_CODE_TWO_TRACKS: { // PHARMACODE TWO-TRACKS\n                $arrcode = $this->barcode_pharmacode2t($code);\n                break;\n            }\n            default: {\n                throw new UnknownTypeException();\n                break;\n            }\n        }\n\n        if ( ! isset($arrcode['maxWidth'])) {\n            $arrcode = $this->convertBarcodeArrayToNewStyle($arrcode);\n        }\n\n        return $arrcode;\n    }\n\n    /**\n     * CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.\n     * General-purpose code in very wide use world-wide\n     *\n     * @param $code (string) code to represent.\n     * @param $extended (boolean) if true uses the extended mode.\n     * @param $checksum (boolean) if true add a checksum to the code.\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_code39($code, $extended = false, $checksum = false)\n    {\n        $chr = [];\n        $chr['0'] = '111331311';\n        $chr['1'] = '311311113';\n        $chr['2'] = '113311113';\n        $chr['3'] = '313311111';\n        $chr['4'] = '111331113';\n        $chr['5'] = '311331111';\n        $chr['6'] = '113331111';\n        $chr['7'] = '111311313';\n        $chr['8'] = '311311311';\n        $chr['9'] = '113311311';\n        $chr['A'] = '311113113';\n        $chr['B'] = '113113113';\n        $chr['C'] = '313113111';\n        $chr['D'] = '111133113';\n        $chr['E'] = '311133111';\n        $chr['F'] = '113133111';\n        $chr['G'] = '111113313';\n        $chr['H'] = '311113311';\n        $chr['I'] = '113113311';\n        $chr['J'] = '111133311';\n        $chr['K'] = '311111133';\n        $chr['L'] = '113111133';\n        $chr['M'] = '313111131';\n        $chr['N'] = '111131133';\n        $chr['O'] = '311131131';\n        $chr['P'] = '113131131';\n        $chr['Q'] = '111111333';\n        $chr['R'] = '311111331';\n        $chr['S'] = '113111331';\n        $chr['T'] = '111131331';\n        $chr['U'] = '331111113';\n        $chr['V'] = '133111113';\n        $chr['W'] = '333111111';\n        $chr['X'] = '131131113';\n        $chr['Y'] = '331131111';\n        $chr['Z'] = '133131111';\n        $chr['-'] = '131111313';\n        $chr['.'] = '331111311';\n        $chr[' '] = '133111311';\n        $chr['$'] = '131313111';\n        $chr['/'] = '131311131';\n        $chr['+'] = '131113131';\n        $chr['%'] = '111313131';\n        $chr['*'] = '131131311';\n\n        $code = strtoupper($code);\n\n        if ($extended) {\n            // extended mode\n            $code = $this->encode_code39_ext($code);\n        }\n\n        if ($checksum) {\n            // checksum\n            $code .= $this->checksum_code39($code);\n        }\n\n        // add start and stop codes\n        $code = '*' . $code . '*';\n\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n        $k = 0;\n        $clen = strlen($code);\n        for ($i = 0; $i < $clen; ++$i) {\n            $char = $code{$i};\n            if ( ! isset($chr[$char])) {\n                throw new InvalidCharacterException('Char ' . $char . ' is unsupported');\n            }\n            for ($j = 0; $j < 9; ++$j) {\n                if (($j % 2) == 0) {\n                    $t = true; // bar\n                } else {\n                    $t = false; // space\n                }\n                $w = $chr[$char]{$j};\n                $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);\n                $bararray['maxw'] += $w;\n                ++$k;\n            }\n            // intercharacter gap\n            $bararray['bcode'][$k] = array('t' => false, 'w' => 1, 'h' => 1, 'p' => 0);\n            $bararray['maxw'] += 1;\n            ++$k;\n        }\n\n        return $bararray;\n    }\n\n    /**\n     * Encode a string to be used for CODE 39 Extended mode.\n     *\n     * @param string $code code to represent.\n     * @return bool|string encoded string.\n     * @protected\n     */\n    protected function encode_code39_ext($code)\n    {\n        $encode = array(\n            chr(0)   => '%U',\n            chr(1)   => '$A',\n            chr(2)   => '$B',\n            chr(3)   => '$C',\n            chr(4)   => '$D',\n            chr(5)   => '$E',\n            chr(6)   => '$F',\n            chr(7)   => '$G',\n            chr(8)   => '$H',\n            chr(9)   => '$I',\n            chr(10)  => '$J',\n            chr(11)  => '£K',\n            chr(12)  => '$L',\n            chr(13)  => '$M',\n            chr(14)  => '$N',\n            chr(15)  => '$O',\n            chr(16)  => '$P',\n            chr(17)  => '$Q',\n            chr(18)  => '$R',\n            chr(19)  => '$S',\n            chr(20)  => '$T',\n            chr(21)  => '$U',\n            chr(22)  => '$V',\n            chr(23)  => '$W',\n            chr(24)  => '$X',\n            chr(25)  => '$Y',\n            chr(26)  => '$Z',\n            chr(27)  => '%A',\n            chr(28)  => '%B',\n            chr(29)  => '%C',\n            chr(30)  => '%D',\n            chr(31)  => '%E',\n            chr(32)  => ' ',\n            chr(33)  => '/A',\n            chr(34)  => '/B',\n            chr(35)  => '/C',\n            chr(36)  => '/D',\n            chr(37)  => '/E',\n            chr(38)  => '/F',\n            chr(39)  => '/G',\n            chr(40)  => '/H',\n            chr(41)  => '/I',\n            chr(42)  => '/J',\n            chr(43)  => '/K',\n            chr(44)  => '/L',\n            chr(45)  => '-',\n            chr(46)  => '.',\n            chr(47)  => '/O',\n            chr(48)  => '0',\n            chr(49)  => '1',\n            chr(50)  => '2',\n            chr(51)  => '3',\n            chr(52)  => '4',\n            chr(53)  => '5',\n            chr(54)  => '6',\n            chr(55)  => '7',\n            chr(56)  => '8',\n            chr(57)  => '9',\n            chr(58)  => '/Z',\n            chr(59)  => '%F',\n            chr(60)  => '%G',\n            chr(61)  => '%H',\n            chr(62)  => '%I',\n            chr(63)  => '%J',\n            chr(64)  => '%V',\n            chr(65)  => 'A',\n            chr(66)  => 'B',\n            chr(67)  => 'C',\n            chr(68)  => 'D',\n            chr(69)  => 'E',\n            chr(70)  => 'F',\n            chr(71)  => 'G',\n            chr(72)  => 'H',\n            chr(73)  => 'I',\n            chr(74)  => 'J',\n            chr(75)  => 'K',\n            chr(76)  => 'L',\n            chr(77)  => 'M',\n            chr(78)  => 'N',\n            chr(79)  => 'O',\n            chr(80)  => 'P',\n            chr(81)  => 'Q',\n            chr(82)  => 'R',\n            chr(83)  => 'S',\n            chr(84)  => 'T',\n            chr(85)  => 'U',\n            chr(86)  => 'V',\n            chr(87)  => 'W',\n            chr(88)  => 'X',\n            chr(89)  => 'Y',\n            chr(90)  => 'Z',\n            chr(91)  => '%K',\n            chr(92)  => '%L',\n            chr(93)  => '%M',\n            chr(94)  => '%N',\n            chr(95)  => '%O',\n            chr(96)  => '%W',\n            chr(97)  => '+A',\n            chr(98)  => '+B',\n            chr(99)  => '+C',\n            chr(100) => '+D',\n            chr(101) => '+E',\n            chr(102) => '+F',\n            chr(103) => '+G',\n            chr(104) => '+H',\n            chr(105) => '+I',\n            chr(106) => '+J',\n            chr(107) => '+K',\n            chr(108) => '+L',\n            chr(109) => '+M',\n            chr(110) => '+N',\n            chr(111) => '+O',\n            chr(112) => '+P',\n            chr(113) => '+Q',\n            chr(114) => '+R',\n            chr(115) => '+S',\n            chr(116) => '+T',\n            chr(117) => '+U',\n            chr(118) => '+V',\n            chr(119) => '+W',\n            chr(120) => '+X',\n            chr(121) => '+Y',\n            chr(122) => '+Z',\n            chr(123) => '%P',\n            chr(124) => '%Q',\n            chr(125) => '%R',\n            chr(126) => '%S',\n            chr(127) => '%T'\n        );\n        $code_ext = '';\n        $clen = strlen($code);\n        for ($i = 0; $i < $clen; ++$i) {\n            if (ord($code{$i}) > 127) {\n                throw new InvalidCharacterException('Only supports till char 127');\n            }\n            $code_ext .= $encode[$code{$i}];\n        }\n\n        return $code_ext;\n    }\n\n    /**\n     * Calculate CODE 39 checksum (modulo 43).\n     *\n     * @param string $code code to represent.\n     * @return string char checksum.\n     * @protected\n     */\n    protected function checksum_code39($code)\n    {\n        $chars = array(\n            '0',\n            '1',\n            '2',\n            '3',\n            '4',\n            '5',\n            '6',\n            '7',\n            '8',\n            '9',\n            'A',\n            'B',\n            'C',\n            'D',\n            'E',\n            'F',\n            'G',\n            'H',\n            'I',\n            'J',\n            'K',\n            'L',\n            'M',\n            'N',\n            'O',\n            'P',\n            'Q',\n            'R',\n            'S',\n            'T',\n            'U',\n            'V',\n            'W',\n            'X',\n            'Y',\n            'Z',\n            '-',\n            '.',\n            ' ',\n            '$',\n            '/',\n            '+',\n            '%'\n        );\n        $sum = 0;\n        $codelength = strlen($code);\n        for ($i = 0; $i < $codelength; ++$i) {\n            $k = array_keys($chars, $code{$i});\n            $sum += $k[0];\n        }\n        $j = ($sum % 43);\n\n        return $chars[$j];\n    }\n\n    /**\n     * CODE 93 - USS-93\n     * Compact code similar to Code 39\n     *\n     * @param $code (string) code to represent.\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_code93($code)\n    {\n        $chr = [];\n        $chr[48] = '131112'; // 0\n        $chr[49] = '111213'; // 1\n        $chr[50] = '111312'; // 2\n        $chr[51] = '111411'; // 3\n        $chr[52] = '121113'; // 4\n        $chr[53] = '121212'; // 5\n        $chr[54] = '121311'; // 6\n        $chr[55] = '111114'; // 7\n        $chr[56] = '131211'; // 8\n        $chr[57] = '141111'; // 9\n        $chr[65] = '211113'; // A\n        $chr[66] = '211212'; // B\n        $chr[67] = '211311'; // C\n        $chr[68] = '221112'; // D\n        $chr[69] = '221211'; // E\n        $chr[70] = '231111'; // F\n        $chr[71] = '112113'; // G\n        $chr[72] = '112212'; // H\n        $chr[73] = '112311'; // I\n        $chr[74] = '122112'; // J\n        $chr[75] = '132111'; // K\n        $chr[76] = '111123'; // L\n        $chr[77] = '111222'; // M\n        $chr[78] = '111321'; // N\n        $chr[79] = '121122'; // O\n        $chr[80] = '131121'; // P\n        $chr[81] = '212112'; // Q\n        $chr[82] = '212211'; // R\n        $chr[83] = '211122'; // S\n        $chr[84] = '211221'; // T\n        $chr[85] = '221121'; // U\n        $chr[86] = '222111'; // V\n        $chr[87] = '112122'; // W\n        $chr[88] = '112221'; // X\n        $chr[89] = '122121'; // Y\n        $chr[90] = '123111'; // Z\n        $chr[45] = '121131'; // -\n        $chr[46] = '311112'; // .\n        $chr[32] = '311211'; //\n        $chr[36] = '321111'; // $\n        $chr[47] = '112131'; // /\n        $chr[43] = '113121'; // +\n        $chr[37] = '211131'; // %\n        $chr[128] = '121221'; // ($)\n        $chr[129] = '311121'; // (/)\n        $chr[130] = '122211'; // (+)\n        $chr[131] = '312111'; // (%)\n        $chr[42] = '111141'; // start-stop\n        $code = strtoupper($code);\n        $encode = array(\n            chr(0)   => chr(131) . 'U',\n            chr(1)   => chr(128) . 'A',\n            chr(2)   => chr(128) . 'B',\n            chr(3)   => chr(128) . 'C',\n            chr(4)   => chr(128) . 'D',\n            chr(5)   => chr(128) . 'E',\n            chr(6)   => chr(128) . 'F',\n            chr(7)   => chr(128) . 'G',\n            chr(8)   => chr(128) . 'H',\n            chr(9)   => chr(128) . 'I',\n            chr(10)  => chr(128) . 'J',\n            chr(11)  => '£K',\n            chr(12)  => chr(128) . 'L',\n            chr(13)  => chr(128) . 'M',\n            chr(14)  => chr(128) . 'N',\n            chr(15)  => chr(128) . 'O',\n            chr(16)  => chr(128) . 'P',\n            chr(17)  => chr(128) . 'Q',\n            chr(18)  => chr(128) . 'R',\n            chr(19)  => chr(128) . 'S',\n            chr(20)  => chr(128) . 'T',\n            chr(21)  => chr(128) . 'U',\n            chr(22)  => chr(128) . 'V',\n            chr(23)  => chr(128) . 'W',\n            chr(24)  => chr(128) . 'X',\n            chr(25)  => chr(128) . 'Y',\n            chr(26)  => chr(128) . 'Z',\n            chr(27)  => chr(131) . 'A',\n            chr(28)  => chr(131) . 'B',\n            chr(29)  => chr(131) . 'C',\n            chr(30)  => chr(131) . 'D',\n            chr(31)  => chr(131) . 'E',\n            chr(32)  => ' ',\n            chr(33)  => chr(129) . 'A',\n            chr(34)  => chr(129) . 'B',\n            chr(35)  => chr(129) . 'C',\n            chr(36)  => chr(129) . 'D',\n            chr(37)  => chr(129) . 'E',\n            chr(38)  => chr(129) . 'F',\n            chr(39)  => chr(129) . 'G',\n            chr(40)  => chr(129) . 'H',\n            chr(41)  => chr(129) . 'I',\n            chr(42)  => chr(129) . 'J',\n            chr(43)  => chr(129) . 'K',\n            chr(44)  => chr(129) . 'L',\n            chr(45)  => '-',\n            chr(46)  => '.',\n            chr(47)  => chr(129) . 'O',\n            chr(48)  => '0',\n            chr(49)  => '1',\n            chr(50)  => '2',\n            chr(51)  => '3',\n            chr(52)  => '4',\n            chr(53)  => '5',\n            chr(54)  => '6',\n            chr(55)  => '7',\n            chr(56)  => '8',\n            chr(57)  => '9',\n            chr(58)  => chr(129) . 'Z',\n            chr(59)  => chr(131) . 'F',\n            chr(60)  => chr(131) . 'G',\n            chr(61)  => chr(131) . 'H',\n            chr(62)  => chr(131) . 'I',\n            chr(63)  => chr(131) . 'J',\n            chr(64)  => chr(131) . 'V',\n            chr(65)  => 'A',\n            chr(66)  => 'B',\n            chr(67)  => 'C',\n            chr(68)  => 'D',\n            chr(69)  => 'E',\n            chr(70)  => 'F',\n            chr(71)  => 'G',\n            chr(72)  => 'H',\n            chr(73)  => 'I',\n            chr(74)  => 'J',\n            chr(75)  => 'K',\n            chr(76)  => 'L',\n            chr(77)  => 'M',\n            chr(78)  => 'N',\n            chr(79)  => 'O',\n            chr(80)  => 'P',\n            chr(81)  => 'Q',\n            chr(82)  => 'R',\n            chr(83)  => 'S',\n            chr(84)  => 'T',\n            chr(85)  => 'U',\n            chr(86)  => 'V',\n            chr(87)  => 'W',\n            chr(88)  => 'X',\n            chr(89)  => 'Y',\n            chr(90)  => 'Z',\n            chr(91)  => chr(131) . 'K',\n            chr(92)  => chr(131) . 'L',\n            chr(93)  => chr(131) . 'M',\n            chr(94)  => chr(131) . 'N',\n            chr(95)  => chr(131) . 'O',\n            chr(96)  => chr(131) . 'W',\n            chr(97)  => chr(130) . 'A',\n            chr(98)  => chr(130) . 'B',\n            chr(99)  => chr(130) . 'C',\n            chr(100) => chr(130) . 'D',\n            chr(101) => chr(130) . 'E',\n            chr(102) => chr(130) . 'F',\n            chr(103) => chr(130) . 'G',\n            chr(104) => chr(130) . 'H',\n            chr(105) => chr(130) . 'I',\n            chr(106) => chr(130) . 'J',\n            chr(107) => chr(130) . 'K',\n            chr(108) => chr(130) . 'L',\n            chr(109) => chr(130) . 'M',\n            chr(110) => chr(130) . 'N',\n            chr(111) => chr(130) . 'O',\n            chr(112) => chr(130) . 'P',\n            chr(113) => chr(130) . 'Q',\n            chr(114) => chr(130) . 'R',\n            chr(115) => chr(130) . 'S',\n            chr(116) => chr(130) . 'T',\n            chr(117) => chr(130) . 'U',\n            chr(118) => chr(130) . 'V',\n            chr(119) => chr(130) . 'W',\n            chr(120) => chr(130) . 'X',\n            chr(121) => chr(130) . 'Y',\n            chr(122) => chr(130) . 'Z',\n            chr(123) => chr(131) . 'P',\n            chr(124) => chr(131) . 'Q',\n            chr(125) => chr(131) . 'R',\n            chr(126) => chr(131) . 'S',\n            chr(127) => chr(131) . 'T'\n        );\n        $code_ext = '';\n        $clen = strlen($code);\n        for ($i = 0; $i < $clen; ++$i) {\n            if (ord($code{$i}) > 127) {\n                throw new InvalidCharacterException('Only supports till char 127');\n            }\n            $code_ext .= $encode[$code{$i}];\n        }\n        // checksum\n        $code_ext .= $this->checksum_code93($code_ext);\n        // add start and stop codes\n        $code = '*' . $code_ext . '*';\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n        $k = 0;\n        $clen = strlen($code);\n        for ($i = 0; $i < $clen; ++$i) {\n            $char = ord($code{$i});\n            if ( ! isset($chr[$char])) {\n                throw new InvalidCharacterException('Char ' . $char . ' is unsupported');\n            }\n            for ($j = 0; $j < 6; ++$j) {\n                if (($j % 2) == 0) {\n                    $t = true; // bar\n                } else {\n                    $t = false; // space\n                }\n                $w = $chr[$char]{$j};\n                $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);\n                $bararray['maxw'] += $w;\n                ++$k;\n            }\n        }\n        $bararray['bcode'][$k] = array('t' => true, 'w' => 1, 'h' => 1, 'p' => 0);\n        $bararray['maxw'] += 1;\n\n        return $bararray;\n    }\n\n    /**\n     * Calculate CODE 93 checksum (modulo 47).\n     *\n     * @param $code (string) code to represent.\n     * @return string checksum code.\n     * @protected\n     */\n    protected function checksum_code93($code)\n    {\n        $chars = array(\n            '0',\n            '1',\n            '2',\n            '3',\n            '4',\n            '5',\n            '6',\n            '7',\n            '8',\n            '9',\n            'A',\n            'B',\n            'C',\n            'D',\n            'E',\n            'F',\n            'G',\n            'H',\n            'I',\n            'J',\n            'K',\n            'L',\n            'M',\n            'N',\n            'O',\n            'P',\n            'Q',\n            'R',\n            'S',\n            'T',\n            'U',\n            'V',\n            'W',\n            'X',\n            'Y',\n            'Z',\n            '-',\n            '.',\n            ' ',\n            '$',\n            '/',\n            '+',\n            '%',\n            '<',\n            '=',\n            '>',\n            '?'\n        );\n        // translate special characters\n        $code = strtr($code, chr(128) . chr(131) . chr(129) . chr(130), '<=>?');\n        $len = strlen($code);\n        // calculate check digit C\n        $p = 1;\n        $check = 0;\n        for ($i = ($len - 1); $i >= 0; --$i) {\n            $k = array_keys($chars, $code{$i});\n            $check += ($k[0] * $p);\n            ++$p;\n            if ($p > 20) {\n                $p = 1;\n            }\n        }\n        $check %= 47;\n        $c = $chars[$check];\n        $code .= $c;\n        // calculate check digit K\n        $p = 1;\n        $check = 0;\n        for ($i = $len; $i >= 0; --$i) {\n            $k = array_keys($chars, $code{$i});\n            $check += ($k[0] * $p);\n            ++$p;\n            if ($p > 15) {\n                $p = 1;\n            }\n        }\n        $check %= 47;\n        $k = $chars[$check];\n        $checksum = $c . $k;\n        // resto respecial characters\n        $checksum = strtr($checksum, '<=>?', chr(128) . chr(131) . chr(129) . chr(130));\n\n        return $checksum;\n    }\n\n    /**\n     * Checksum for standard 2 of 5 barcodes.\n     *\n     * @param $code (string) code to process.\n     * @return int checksum.\n     * @protected\n     */\n    protected function checksum_s25($code)\n    {\n        $len = strlen($code);\n        $sum = 0;\n        for ($i = 0; $i < $len; $i += 2) {\n            $sum += $code{$i};\n        }\n        $sum *= 3;\n        for ($i = 1; $i < $len; $i += 2) {\n            $sum += ($code{$i});\n        }\n        $r = $sum % 10;\n        if ($r > 0) {\n            $r = (10 - $r);\n        }\n\n        return $r;\n    }\n\n    /**\n     * MSI.\n     * Variation of Plessey code, with similar applications\n     * Contains digits (0 to 9) and encodes the data only in the width of bars.\n     *\n     * @param $code (string) code to represent.\n     * @param $checksum (boolean) if true add a checksum to the code (modulo 11)\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_msi($code, $checksum = false)\n    {\n        $chr['0'] = '100100100100';\n        $chr['1'] = '100100100110';\n        $chr['2'] = '100100110100';\n        $chr['3'] = '100100110110';\n        $chr['4'] = '100110100100';\n        $chr['5'] = '100110100110';\n        $chr['6'] = '100110110100';\n        $chr['7'] = '100110110110';\n        $chr['8'] = '110100100100';\n        $chr['9'] = '110100100110';\n        $chr['A'] = '110100110100';\n        $chr['B'] = '110100110110';\n        $chr['C'] = '110110100100';\n        $chr['D'] = '110110100110';\n        $chr['E'] = '110110110100';\n        $chr['F'] = '110110110110';\n        if ($checksum) {\n            // add checksum\n            $clen = strlen($code);\n            $p = 2;\n            $check = 0;\n            for ($i = ($clen - 1); $i >= 0; --$i) {\n                $check += (hexdec($code{$i}) * $p);\n                ++$p;\n                if ($p > 7) {\n                    $p = 2;\n                }\n            }\n            $check %= 11;\n            if ($check > 0) {\n                $check = 11 - $check;\n            }\n            $code .= $check;\n        }\n        $seq = '110'; // left guard\n        $clen = strlen($code);\n        for ($i = 0; $i < $clen; ++$i) {\n            $digit = $code{$i};\n            if ( ! isset($chr[$digit])) {\n                throw new InvalidCharacterException('Char ' . $digit . ' is unsupported');\n            }\n            $seq .= $chr[$digit];\n        }\n        $seq .= '1001'; // right guard\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n\n        return $this->binseq_to_array($seq, $bararray);\n    }\n\n    /**\n     * Standard 2 of 5 barcodes.\n     * Used in airline ticket marking, photofinishing\n     * Contains digits (0 to 9) and encodes the data only in the width of bars.\n     *\n     * @param $code (string) code to represent.\n     * @param $checksum (boolean) if true add a checksum to the code\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_s25($code, $checksum = false)\n    {\n        $chr['0'] = '10101110111010';\n        $chr['1'] = '11101010101110';\n        $chr['2'] = '10111010101110';\n        $chr['3'] = '11101110101010';\n        $chr['4'] = '10101110101110';\n        $chr['5'] = '11101011101010';\n        $chr['6'] = '10111011101010';\n        $chr['7'] = '10101011101110';\n        $chr['8'] = '10101110111010';\n        $chr['9'] = '10111010111010';\n        if ($checksum) {\n            // add checksum\n            $code .= $this->checksum_s25($code);\n        }\n        if ((strlen($code) % 2) != 0) {\n            // add leading zero if code-length is odd\n            $code = '0' . $code;\n        }\n        $seq = '11011010';\n        $clen = strlen($code);\n        for ($i = 0; $i < $clen; ++$i) {\n            $digit = $code{$i};\n            if ( ! isset($chr[$digit])) {\n                throw new InvalidCharacterException('Char ' . $digit . ' is unsupported');\n            }\n            $seq .= $chr[$digit];\n        }\n        $seq .= '1101011';\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n\n        return $this->binseq_to_array($seq, $bararray);\n    }\n\n    /**\n     * Convert binary barcode sequence to TCPDF barcode array.\n     *\n     * @param $seq (string) barcode as binary sequence.\n     * @param $bararray (array) barcode array.\n     * òparam array $bararray TCPDF barcode array to fill up\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function binseq_to_array($seq, $bararray)\n    {\n        $len = strlen($seq);\n        $w = 0;\n        $k = 0;\n        for ($i = 0; $i < $len; ++$i) {\n            $w += 1;\n            if (($i == ($len - 1)) OR (($i < ($len - 1)) AND ($seq{$i} != $seq{($i + 1)}))) {\n                if ($seq{$i} == '1') {\n                    $t = true; // bar\n                } else {\n                    $t = false; // space\n                }\n                $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);\n                $bararray['maxw'] += $w;\n                ++$k;\n                $w = 0;\n            }\n        }\n\n        return $bararray;\n    }\n\n    /**\n     * Interleaved 2 of 5 barcodes.\n     * Compact numeric code, widely used in industry, air cargo\n     * Contains digits (0 to 9) and encodes the data in the width of both bars and spaces.\n     *\n     * @param $code (string) code to represent.\n     * @param $checksum (boolean) if true add a checksum to the code\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_i25($code, $checksum = false)\n    {\n        $chr['0'] = '11221';\n        $chr['1'] = '21112';\n        $chr['2'] = '12112';\n        $chr['3'] = '22111';\n        $chr['4'] = '11212';\n        $chr['5'] = '21211';\n        $chr['6'] = '12211';\n        $chr['7'] = '11122';\n        $chr['8'] = '21121';\n        $chr['9'] = '12121';\n        $chr['A'] = '11';\n        $chr['Z'] = '21';\n        if ($checksum) {\n            // add checksum\n            $code .= $this->checksum_s25($code);\n        }\n        if ((strlen($code) % 2) != 0) {\n            // add leading zero if code-length is odd\n            $code = '0' . $code;\n        }\n        // add start and stop codes\n        $code = 'AA' . strtolower($code) . 'ZA';\n\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n        $k = 0;\n        $clen = strlen($code);\n        for ($i = 0; $i < $clen; $i = ($i + 2)) {\n            $char_bar = $code{$i};\n            $char_space = $code{$i + 1};\n            if ( ! isset($chr[$char_bar]) || ! isset($chr[$char_space])) {\n                throw new InvalidCharacterException();\n            }\n            // create a bar-space sequence\n            $seq = '';\n            $chrlen = strlen($chr[$char_bar]);\n            for ($s = 0; $s < $chrlen; $s++) {\n                $seq .= $chr[$char_bar]{$s} . $chr[$char_space]{$s};\n            }\n            $seqlen = strlen($seq);\n            for ($j = 0; $j < $seqlen; ++$j) {\n                if (($j % 2) == 0) {\n                    $t = true; // bar\n                } else {\n                    $t = false; // space\n                }\n                $w = $seq{$j};\n                $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);\n                $bararray['maxw'] += $w;\n                ++$k;\n            }\n        }\n\n        return $bararray;\n    }\n\n    /**\n     * C128 barcodes.\n     * Very capable code, excellent density, high reliability; in very wide use world-wide\n     *\n     * @param $code (string) code to represent.\n     * @param $type (string) barcode type: A, B, C or empty for automatic switch (AUTO mode)\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_c128($code, $type = '')\n    {\n        $chr = array(\n            '212222', /* 00 */\n            '222122', /* 01 */\n            '222221', /* 02 */\n            '121223', /* 03 */\n            '121322', /* 04 */\n            '131222', /* 05 */\n            '122213', /* 06 */\n            '122312', /* 07 */\n            '132212', /* 08 */\n            '221213', /* 09 */\n            '221312', /* 10 */\n            '231212', /* 11 */\n            '112232', /* 12 */\n            '122132', /* 13 */\n            '122231', /* 14 */\n            '113222', /* 15 */\n            '123122', /* 16 */\n            '123221', /* 17 */\n            '223211', /* 18 */\n            '221132', /* 19 */\n            '221231', /* 20 */\n            '213212', /* 21 */\n            '223112', /* 22 */\n            '312131', /* 23 */\n            '311222', /* 24 */\n            '321122', /* 25 */\n            '321221', /* 26 */\n            '312212', /* 27 */\n            '322112', /* 28 */\n            '322211', /* 29 */\n            '212123', /* 30 */\n            '212321', /* 31 */\n            '232121', /* 32 */\n            '111323', /* 33 */\n            '131123', /* 34 */\n            '131321', /* 35 */\n            '112313', /* 36 */\n            '132113', /* 37 */\n            '132311', /* 38 */\n            '211313', /* 39 */\n            '231113', /* 40 */\n            '231311', /* 41 */\n            '112133', /* 42 */\n            '112331', /* 43 */\n            '132131', /* 44 */\n            '113123', /* 45 */\n            '113321', /* 46 */\n            '133121', /* 47 */\n            '313121', /* 48 */\n            '211331', /* 49 */\n            '231131', /* 50 */\n            '213113', /* 51 */\n            '213311', /* 52 */\n            '213131', /* 53 */\n            '311123', /* 54 */\n            '311321', /* 55 */\n            '331121', /* 56 */\n            '312113', /* 57 */\n            '312311', /* 58 */\n            '332111', /* 59 */\n            '314111', /* 60 */\n            '221411', /* 61 */\n            '431111', /* 62 */\n            '111224', /* 63 */\n            '111422', /* 64 */\n            '121124', /* 65 */\n            '121421', /* 66 */\n            '141122', /* 67 */\n            '141221', /* 68 */\n            '112214', /* 69 */\n            '112412', /* 70 */\n            '122114', /* 71 */\n            '122411', /* 72 */\n            '142112', /* 73 */\n            '142211', /* 74 */\n            '241211', /* 75 */\n            '221114', /* 76 */\n            '413111', /* 77 */\n            '241112', /* 78 */\n            '134111', /* 79 */\n            '111242', /* 80 */\n            '121142', /* 81 */\n            '121241', /* 82 */\n            '114212', /* 83 */\n            '124112', /* 84 */\n            '124211', /* 85 */\n            '411212', /* 86 */\n            '421112', /* 87 */\n            '421211', /* 88 */\n            '212141', /* 89 */\n            '214121', /* 90 */\n            '412121', /* 91 */\n            '111143', /* 92 */\n            '111341', /* 93 */\n            '131141', /* 94 */\n            '114113', /* 95 */\n            '114311', /* 96 */\n            '411113', /* 97 */\n            '411311', /* 98 */\n            '113141', /* 99 */\n            '114131', /* 100 */\n            '311141', /* 101 */\n            '411131', /* 102 */\n            '211412', /* 103 START A */\n            '211214', /* 104 START B */\n            '211232', /* 105 START C */\n            '233111', /* STOP */\n            '200000'  /* END */\n        );\n        // ASCII characters for code A (ASCII 00 - 95)\n        $keys_a = ' !\"#$%&\\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_';\n        $keys_a .= chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5) . chr(6) . chr(7) . chr(8) . chr(9);\n        $keys_a .= chr(10) . chr(11) . chr(12) . chr(13) . chr(14) . chr(15) . chr(16) . chr(17) . chr(18) . chr(19);\n        $keys_a .= chr(20) . chr(21) . chr(22) . chr(23) . chr(24) . chr(25) . chr(26) . chr(27) . chr(28) . chr(29);\n        $keys_a .= chr(30) . chr(31);\n        // ASCII characters for code B (ASCII 32 - 127)\n        $keys_b = ' !\"#$%&\\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~' . chr(127);\n        // special codes\n        $fnc_a = array(241 => 102, 242 => 97, 243 => 96, 244 => 101);\n        $fnc_b = array(241 => 102, 242 => 97, 243 => 96, 244 => 100);\n        // array of symbols\n        $code_data = array();\n        // length of the code\n        $len = strlen($code);\n        switch (strtoupper($type)) {\n            case 'A': { // MODE A\n                $startid = 103;\n                for ($i = 0; $i < $len; ++$i) {\n                    $char = $code{$i};\n                    $char_id = ord($char);\n                    if (($char_id >= 241) AND ($char_id <= 244)) {\n                        $code_data[] = $fnc_a[$char_id];\n                    } elseif (($char_id >= 0) AND ($char_id <= 95)) {\n                        $code_data[] = strpos($keys_a, $char);\n                    } else {\n                        throw new InvalidCharacterException('Char ' . $char . ' is unsupported');\n                    }\n                }\n                break;\n            }\n            case 'B': { // MODE B\n                $startid = 104;\n                for ($i = 0; $i < $len; ++$i) {\n                    $char = $code{$i};\n                    $char_id = ord($char);\n                    if (($char_id >= 241) AND ($char_id <= 244)) {\n                        $code_data[] = $fnc_b[$char_id];\n                    } elseif (($char_id >= 32) AND ($char_id <= 127)) {\n                        $code_data[] = strpos($keys_b, $char);\n                    } else {\n                        throw new InvalidCharacterException('Char ' . $char . ' is unsupported');\n                    }\n                }\n                break;\n            }\n            case 'C': { // MODE C\n                $startid = 105;\n                if (ord($code[0]) == 241) {\n                    $code_data[] = 102;\n                    $code = substr($code, 1);\n                    --$len;\n                }\n                if (($len % 2) != 0) {\n                    throw new InvalidLengthException('Length must be even');\n                }\n                for ($i = 0; $i < $len; $i += 2) {\n                    $chrnum = $code{$i} . $code{$i + 1};\n                    if (preg_match('/([0-9]{2})/', $chrnum) > 0) {\n                        $code_data[] = intval($chrnum);\n                    } else {\n                        throw new InvalidCharacterException();\n                    }\n                }\n                break;\n            }\n            default: { // MODE AUTO\n                // split code into sequences\n                $sequence = array();\n                // get numeric sequences (if any)\n                $numseq = array();\n                preg_match_all('/([0-9]{4,})/', $code, $numseq, PREG_OFFSET_CAPTURE);\n                if (isset($numseq[1]) AND ! empty($numseq[1])) {\n                    $end_offset = 0;\n                    foreach ($numseq[1] as $val) {\n                        $offset = $val[1];\n                        if ($offset > $end_offset) {\n                            // non numeric sequence\n                            $sequence = array_merge($sequence,\n                                $this->get128ABsequence(substr($code, $end_offset, ($offset - $end_offset))));\n                        }\n                        // numeric sequence\n                        $slen = strlen($val[0]);\n                        if (($slen % 2) != 0) {\n                            // the length must be even\n                            --$slen;\n                        }\n                        $sequence[] = array('C', substr($code, $offset, $slen), $slen);\n                        $end_offset = $offset + $slen;\n                    }\n                    if ($end_offset < $len) {\n                        $sequence = array_merge($sequence, $this->get128ABsequence(substr($code, $end_offset)));\n                    }\n                } else {\n                    // text code (non C mode)\n                    $sequence = array_merge($sequence, $this->get128ABsequence($code));\n                }\n                // process the sequence\n                foreach ($sequence as $key => $seq) {\n                    switch ($seq[0]) {\n                        case 'A': {\n                            if ($key == 0) {\n                                $startid = 103;\n                            } elseif ($sequence[($key - 1)][0] != 'A') {\n                                if (($seq[2] == 1) AND ($key > 0) AND ($sequence[($key - 1)][0] == 'B') AND ( ! isset($sequence[($key - 1)][3]))) {\n                                    // single character shift\n                                    $code_data[] = 98;\n                                    // mark shift\n                                    $sequence[$key][3] = true;\n                                } elseif ( ! isset($sequence[($key - 1)][3])) {\n                                    $code_data[] = 101;\n                                }\n                            }\n                            for ($i = 0; $i < $seq[2]; ++$i) {\n                                $char = $seq[1]{$i};\n                                $char_id = ord($char);\n                                if (($char_id >= 241) AND ($char_id <= 244)) {\n                                    $code_data[] = $fnc_a[$char_id];\n                                } else {\n                                    $code_data[] = strpos($keys_a, $char);\n                                }\n                            }\n                            break;\n                        }\n                        case 'B': {\n                            if ($key == 0) {\n                                $tmpchr = ord($seq[1][0]);\n                                if (($seq[2] == 1) AND ($tmpchr >= 241) AND ($tmpchr <= 244) AND isset($sequence[($key + 1)]) AND ($sequence[($key + 1)][0] != 'B')) {\n                                    switch ($sequence[($key + 1)][0]) {\n                                        case 'A': {\n                                            $startid = 103;\n                                            $sequence[$key][0] = 'A';\n                                            $code_data[] = $fnc_a[$tmpchr];\n                                            break;\n                                        }\n                                        case 'C': {\n                                            $startid = 105;\n                                            $sequence[$key][0] = 'C';\n                                            $code_data[] = $fnc_a[$tmpchr];\n                                            break;\n                                        }\n                                    }\n                                    break;\n                                } else {\n                                    $startid = 104;\n                                }\n                            } elseif ($sequence[($key - 1)][0] != 'B') {\n                                if (($seq[2] == 1) AND ($key > 0) AND ($sequence[($key - 1)][0] == 'A') AND ( ! isset($sequence[($key - 1)][3]))) {\n                                    // single character shift\n                                    $code_data[] = 98;\n                                    // mark shift\n                                    $sequence[$key][3] = true;\n                                } elseif ( ! isset($sequence[($key - 1)][3])) {\n                                    $code_data[] = 100;\n                                }\n                            }\n                            for ($i = 0; $i < $seq[2]; ++$i) {\n                                $char = $seq[1]{$i};\n                                $char_id = ord($char);\n                                if (($char_id >= 241) AND ($char_id <= 244)) {\n                                    $code_data[] = $fnc_b[$char_id];\n                                } else {\n                                    $code_data[] = strpos($keys_b, $char);\n                                }\n                            }\n                            break;\n                        }\n                        case 'C': {\n                            if ($key == 0) {\n                                $startid = 105;\n                            } elseif ($sequence[($key - 1)][0] != 'C') {\n                                $code_data[] = 99;\n                            }\n                            for ($i = 0; $i < $seq[2]; $i += 2) {\n                                $chrnum = $seq[1]{$i} . $seq[1]{$i + 1};\n                                $code_data[] = intval($chrnum);\n                            }\n                            break;\n                        }\n                    }\n                }\n            }\n        }\n        // calculate check character\n        $sum = $startid;\n        foreach ($code_data as $key => $val) {\n            $sum += ($val * ($key + 1));\n        }\n        // add check character\n        $code_data[] = ($sum % 103);\n        // add stop sequence\n        $code_data[] = 106;\n        $code_data[] = 107;\n        // add start code at the beginning\n        array_unshift($code_data, $startid);\n        // build barcode array\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n        foreach ($code_data as $val) {\n            $seq = $chr[$val];\n            for ($j = 0; $j < 6; ++$j) {\n                if (($j % 2) == 0) {\n                    $t = true; // bar\n                } else {\n                    $t = false; // space\n                }\n                $w = $seq{$j};\n                $bararray['bcode'][] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);\n                $bararray['maxw'] += $w;\n            }\n        }\n\n        return $bararray;\n    }\n\n    /**\n     * Split text code in A/B sequence for 128 code\n     *\n     * @param $code (string) code to split.\n     * @return array sequence\n     * @protected\n     */\n    protected function get128ABsequence($code)\n    {\n        $len = strlen($code);\n        $sequence = array();\n        // get A sequences (if any)\n        $numseq = array();\n        preg_match_all('/([\\x00-\\x1f])/', $code, $numseq, PREG_OFFSET_CAPTURE);\n        if (isset($numseq[1]) AND ! empty($numseq[1])) {\n            $end_offset = 0;\n            foreach ($numseq[1] as $val) {\n                $offset = $val[1];\n                if ($offset > $end_offset) {\n                    // B sequence\n                    $sequence[] = array(\n                        'B',\n                        substr($code, $end_offset, ($offset - $end_offset)),\n                        ($offset - $end_offset)\n                    );\n                }\n                // A sequence\n                $slen = strlen($val[0]);\n                $sequence[] = array('A', substr($code, $offset, $slen), $slen);\n                $end_offset = $offset + $slen;\n            }\n            if ($end_offset < $len) {\n                $sequence[] = array('B', substr($code, $end_offset), ($len - $end_offset));\n            }\n        } else {\n            // only B sequence\n            $sequence[] = array('B', $code, $len);\n        }\n\n        return $sequence;\n    }\n\n    /**\n     * EAN13 and UPC-A barcodes.\n     * EAN13: European Article Numbering international retail product code\n     * UPC-A: Universal product code seen on almost all retail products in the USA and Canada\n     * UPC-E: Short version of UPC symbol\n     *\n     * @param $code (string) code to represent.\n     * @param $len (string) barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_eanupc($code, $len = 13)\n    {\n        $upce = false;\n        if ($len == 6) {\n            $len = 12; // UPC-A\n            $upce = true; // UPC-E mode\n        }\n        $data_len = $len - 1;\n        //Padding\n        $code = str_pad($code, $data_len, '0', STR_PAD_LEFT);\n        $code_len = strlen($code);\n        // calculate check digit\n        $sum_a = 0;\n        for ($i = 1; $i < $data_len; $i += 2) {\n            $sum_a += $code{$i};\n        }\n        if ($len > 12) {\n            $sum_a *= 3;\n        }\n        $sum_b = 0;\n        for ($i = 0; $i < $data_len; $i += 2) {\n            $sum_b += ($code{$i});\n        }\n        if ($len < 13) {\n            $sum_b *= 3;\n        }\n        $r = ($sum_a + $sum_b) % 10;\n        if ($r > 0) {\n            $r = (10 - $r);\n        }\n        if ($code_len == $data_len) {\n            // add check digit\n            $code .= $r;\n        } elseif ($r !== intval($code{$data_len})) {\n            throw new InvalidCheckDigitException();\n        }\n        if ($len == 12) {\n            // UPC-A\n            $code = '0' . $code;\n            ++$len;\n        }\n        if ($upce) {\n            // convert UPC-A to UPC-E\n            $tmp = substr($code, 4, 3);\n            if (($tmp == '000') OR ($tmp == '100') OR ($tmp == '200')) {\n                // manufacturer code ends in 000, 100, or 200\n                $upce_code = substr($code, 2, 2) . substr($code, 9, 3) . substr($code, 4, 1);\n            } else {\n                $tmp = substr($code, 5, 2);\n                if ($tmp == '00') {\n                    // manufacturer code ends in 00\n                    $upce_code = substr($code, 2, 3) . substr($code, 10, 2) . '3';\n                } else {\n                    $tmp = substr($code, 6, 1);\n                    if ($tmp == '0') {\n                        // manufacturer code ends in 0\n                        $upce_code = substr($code, 2, 4) . substr($code, 11, 1) . '4';\n                    } else {\n                        // manufacturer code does not end in zero\n                        $upce_code = substr($code, 2, 5) . substr($code, 11, 1);\n                    }\n                }\n            }\n        }\n        //Convert digits to bars\n        $codes = array(\n            'A' => array( // left odd parity\n                '0' => '0001101',\n                '1' => '0011001',\n                '2' => '0010011',\n                '3' => '0111101',\n                '4' => '0100011',\n                '5' => '0110001',\n                '6' => '0101111',\n                '7' => '0111011',\n                '8' => '0110111',\n                '9' => '0001011'\n            ),\n            'B' => array( // left even parity\n                '0' => '0100111',\n                '1' => '0110011',\n                '2' => '0011011',\n                '3' => '0100001',\n                '4' => '0011101',\n                '5' => '0111001',\n                '6' => '0000101',\n                '7' => '0010001',\n                '8' => '0001001',\n                '9' => '0010111'\n            ),\n            'C' => array( // right\n                '0' => '1110010',\n                '1' => '1100110',\n                '2' => '1101100',\n                '3' => '1000010',\n                '4' => '1011100',\n                '5' => '1001110',\n                '6' => '1010000',\n                '7' => '1000100',\n                '8' => '1001000',\n                '9' => '1110100'\n            )\n        );\n        $parities = array(\n            '0' => array('A', 'A', 'A', 'A', 'A', 'A'),\n            '1' => array('A', 'A', 'B', 'A', 'B', 'B'),\n            '2' => array('A', 'A', 'B', 'B', 'A', 'B'),\n            '3' => array('A', 'A', 'B', 'B', 'B', 'A'),\n            '4' => array('A', 'B', 'A', 'A', 'B', 'B'),\n            '5' => array('A', 'B', 'B', 'A', 'A', 'B'),\n            '6' => array('A', 'B', 'B', 'B', 'A', 'A'),\n            '7' => array('A', 'B', 'A', 'B', 'A', 'B'),\n            '8' => array('A', 'B', 'A', 'B', 'B', 'A'),\n            '9' => array('A', 'B', 'B', 'A', 'B', 'A')\n        );\n        $upce_parities = array();\n        $upce_parities[0] = array(\n            '0' => array('B', 'B', 'B', 'A', 'A', 'A'),\n            '1' => array('B', 'B', 'A', 'B', 'A', 'A'),\n            '2' => array('B', 'B', 'A', 'A', 'B', 'A'),\n            '3' => array('B', 'B', 'A', 'A', 'A', 'B'),\n            '4' => array('B', 'A', 'B', 'B', 'A', 'A'),\n            '5' => array('B', 'A', 'A', 'B', 'B', 'A'),\n            '6' => array('B', 'A', 'A', 'A', 'B', 'B'),\n            '7' => array('B', 'A', 'B', 'A', 'B', 'A'),\n            '8' => array('B', 'A', 'B', 'A', 'A', 'B'),\n            '9' => array('B', 'A', 'A', 'B', 'A', 'B')\n        );\n        $upce_parities[1] = array(\n            '0' => array('A', 'A', 'A', 'B', 'B', 'B'),\n            '1' => array('A', 'A', 'B', 'A', 'B', 'B'),\n            '2' => array('A', 'A', 'B', 'B', 'A', 'B'),\n            '3' => array('A', 'A', 'B', 'B', 'B', 'A'),\n            '4' => array('A', 'B', 'A', 'A', 'B', 'B'),\n            '5' => array('A', 'B', 'B', 'A', 'A', 'B'),\n            '6' => array('A', 'B', 'B', 'B', 'A', 'A'),\n            '7' => array('A', 'B', 'A', 'B', 'A', 'B'),\n            '8' => array('A', 'B', 'A', 'B', 'B', 'A'),\n            '9' => array('A', 'B', 'B', 'A', 'B', 'A')\n        );\n        $k = 0;\n        $seq = '101'; // left guard bar\n        if ($upce) {\n            $bararray = array('code' => $upce_code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n            $p = $upce_parities[$code[1]][$r];\n            for ($i = 0; $i < 6; ++$i) {\n                $seq .= $codes[$p[$i]][$upce_code{$i}];\n            }\n            $seq .= '010101'; // right guard bar\n        } else {\n            $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n            $half_len = intval(ceil($len / 2));\n            if ($len == 8) {\n                for ($i = 0; $i < $half_len; ++$i) {\n                    $seq .= $codes['A'][$code{$i}];\n                }\n            } else {\n                $p = $parities[$code[0]];\n                for ($i = 1; $i < $half_len; ++$i) {\n                    $seq .= $codes[$p[$i - 1]][$code{$i}];\n                }\n            }\n            $seq .= '01010'; // center guard bar\n            for ($i = $half_len; $i < $len; ++$i) {\n                if ( ! isset($codes['C'][$code{$i}])) {\n                    throw new InvalidCharacterException('Char ' . $code{$i} . ' not allowed');\n                }\n                $seq .= $codes['C'][$code{$i}];\n            }\n            $seq .= '101'; // right guard bar\n        }\n        $clen = strlen($seq);\n        $w = 0;\n        for ($i = 0; $i < $clen; ++$i) {\n            $w += 1;\n            if (($i == ($clen - 1)) OR (($i < ($clen - 1)) AND ($seq{$i} != $seq{($i + 1)}))) {\n                if ($seq{$i} == '1') {\n                    $t = true; // bar\n                } else {\n                    $t = false; // space\n                }\n                $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);\n                $bararray['maxw'] += $w;\n                ++$k;\n                $w = 0;\n            }\n        }\n\n        return $bararray;\n    }\n\n    /**\n     * UPC-Based Extensions\n     * 2-Digit Ext.: Used to indicate magazines and newspaper issue numbers\n     * 5-Digit Ext.: Used to mark suggested retail price of books\n     *\n     * @param $code (string) code to represent.\n     * @param $len (string) barcode type: 2 = 2-Digit, 5 = 5-Digit\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_eanext($code, $len = 5)\n    {\n        //Padding\n        $code = str_pad($code, $len, '0', STR_PAD_LEFT);\n        // calculate check digit\n        if ($len == 2) {\n            $r = $code % 4;\n        } elseif ($len == 5) {\n            $r = (3 * ($code[0] + $code[2] + $code[4])) + (9 * ($code[1] + $code[3]));\n            $r %= 10;\n        } else {\n            throw new InvalidCheckDigitException();\n        }\n        //Convert digits to bars\n        $codes = array(\n            'A' => array( // left odd parity\n                '0' => '0001101',\n                '1' => '0011001',\n                '2' => '0010011',\n                '3' => '0111101',\n                '4' => '0100011',\n                '5' => '0110001',\n                '6' => '0101111',\n                '7' => '0111011',\n                '8' => '0110111',\n                '9' => '0001011'\n            ),\n            'B' => array( // left even parity\n                '0' => '0100111',\n                '1' => '0110011',\n                '2' => '0011011',\n                '3' => '0100001',\n                '4' => '0011101',\n                '5' => '0111001',\n                '6' => '0000101',\n                '7' => '0010001',\n                '8' => '0001001',\n                '9' => '0010111'\n            )\n        );\n        $parities = array();\n        $parities[2] = array(\n            '0' => array('A', 'A'),\n            '1' => array('A', 'B'),\n            '2' => array('B', 'A'),\n            '3' => array('B', 'B')\n        );\n        $parities[5] = array(\n            '0' => array('B', 'B', 'A', 'A', 'A'),\n            '1' => array('B', 'A', 'B', 'A', 'A'),\n            '2' => array('B', 'A', 'A', 'B', 'A'),\n            '3' => array('B', 'A', 'A', 'A', 'B'),\n            '4' => array('A', 'B', 'B', 'A', 'A'),\n            '5' => array('A', 'A', 'B', 'B', 'A'),\n            '6' => array('A', 'A', 'A', 'B', 'B'),\n            '7' => array('A', 'B', 'A', 'B', 'A'),\n            '8' => array('A', 'B', 'A', 'A', 'B'),\n            '9' => array('A', 'A', 'B', 'A', 'B')\n        );\n        $p = $parities[$len][$r];\n        $seq = '1011'; // left guard bar\n        $seq .= $codes[$p[0]][$code[0]];\n        for ($i = 1; $i < $len; ++$i) {\n            $seq .= '01'; // separator\n            $seq .= $codes[$p[$i]][$code{$i}];\n        }\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n\n        return $this->binseq_to_array($seq, $bararray);\n    }\n\n    /**\n     * POSTNET and PLANET barcodes.\n     * Used by U.S. Postal Service for automated mail sorting\n     *\n     * @param $code (string) zip code to represent. Must be a string containing a zip code of the form DDDDD or\n     *     DDDDD-DDDD.\n     * @param $planet (boolean) if true print the PLANET barcode, otherwise print POSTNET\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_postnet($code, $planet = false)\n    {\n        // bar length\n        if ($planet) {\n            $barlen = Array(\n                0 => Array(1, 1, 2, 2, 2),\n                1 => Array(2, 2, 2, 1, 1),\n                2 => Array(2, 2, 1, 2, 1),\n                3 => Array(2, 2, 1, 1, 2),\n                4 => Array(2, 1, 2, 2, 1),\n                5 => Array(2, 1, 2, 1, 2),\n                6 => Array(2, 1, 1, 2, 2),\n                7 => Array(1, 2, 2, 2, 1),\n                8 => Array(1, 2, 2, 1, 2),\n                9 => Array(1, 2, 1, 2, 2)\n            );\n        } else {\n            $barlen = Array(\n                0 => Array(2, 2, 1, 1, 1),\n                1 => Array(1, 1, 1, 2, 2),\n                2 => Array(1, 1, 2, 1, 2),\n                3 => Array(1, 1, 2, 2, 1),\n                4 => Array(1, 2, 1, 1, 2),\n                5 => Array(1, 2, 1, 2, 1),\n                6 => Array(1, 2, 2, 1, 1),\n                7 => Array(2, 1, 1, 1, 2),\n                8 => Array(2, 1, 1, 2, 1),\n                9 => Array(2, 1, 2, 1, 1)\n            );\n        }\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 2, 'bcode' => array());\n        $k = 0;\n        $code = str_replace('-', '', $code);\n        $code = str_replace(' ', '', $code);\n        $len = strlen($code);\n        // calculate checksum\n        $sum = 0;\n        for ($i = 0; $i < $len; ++$i) {\n            $sum += intval($code{$i});\n        }\n        $chkd = ($sum % 10);\n        if ($chkd > 0) {\n            $chkd = (10 - $chkd);\n        }\n        $code .= $chkd;\n        $len = strlen($code);\n        // start bar\n        $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 2, 'p' => 0);\n        $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0);\n        $bararray['maxw'] += 2;\n        for ($i = 0; $i < $len; ++$i) {\n            for ($j = 0; $j < 5; ++$j) {\n                $h = $barlen[$code{$i}][$j];\n                $p = floor(1 / $h);\n                $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p);\n                $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0);\n                $bararray['maxw'] += 2;\n            }\n        }\n        // end bar\n        $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 2, 'p' => 0);\n        $bararray['maxw'] += 1;\n\n        return $bararray;\n    }\n\n    /**\n     * RMS4CC - CBC - KIX\n     * RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - KIX (Klant index - Customer index)\n     * RM4SCC is the name of the barcode symbology used by the Royal Mail for its Cleanmail service.\n     *\n     * @param $code (string) code to print\n     * @param $kix (boolean) if true prints the KIX variation (doesn't use the start and end symbols, and the checksum)\n     *     - in this case the house number must be sufficed with an X and placed at the end of the code.\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_rms4cc($code, $kix = false)\n    {\n        $notkix = ! $kix;\n        // bar mode\n        // 1 = pos 1, length 2\n        // 2 = pos 1, length 3\n        // 3 = pos 2, length 1\n        // 4 = pos 2, length 2\n        $barmode = array(\n            '0' => array(3, 3, 2, 2),\n            '1' => array(3, 4, 1, 2),\n            '2' => array(3, 4, 2, 1),\n            '3' => array(4, 3, 1, 2),\n            '4' => array(4, 3, 2, 1),\n            '5' => array(4, 4, 1, 1),\n            '6' => array(3, 1, 4, 2),\n            '7' => array(3, 2, 3, 2),\n            '8' => array(3, 2, 4, 1),\n            '9' => array(4, 1, 3, 2),\n            'A' => array(4, 1, 4, 1),\n            'B' => array(4, 2, 3, 1),\n            'C' => array(3, 1, 2, 4),\n            'D' => array(3, 2, 1, 4),\n            'E' => array(3, 2, 2, 3),\n            'F' => array(4, 1, 1, 4),\n            'G' => array(4, 1, 2, 3),\n            'H' => array(4, 2, 1, 3),\n            'I' => array(1, 3, 4, 2),\n            'J' => array(1, 4, 3, 2),\n            'K' => array(1, 4, 4, 1),\n            'L' => array(2, 3, 3, 2),\n            'M' => array(2, 3, 4, 1),\n            'N' => array(2, 4, 3, 1),\n            'O' => array(1, 3, 2, 4),\n            'P' => array(1, 4, 1, 4),\n            'Q' => array(1, 4, 2, 3),\n            'R' => array(2, 3, 1, 4),\n            'S' => array(2, 3, 2, 3),\n            'T' => array(2, 4, 1, 3),\n            'U' => array(1, 1, 4, 4),\n            'V' => array(1, 2, 3, 4),\n            'W' => array(1, 2, 4, 3),\n            'X' => array(2, 1, 3, 4),\n            'Y' => array(2, 1, 4, 3),\n            'Z' => array(2, 2, 3, 3)\n        );\n        $code = strtoupper($code);\n        $len = strlen($code);\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 3, 'bcode' => array());\n        if ($notkix) {\n            // table for checksum calculation (row,col)\n            $checktable = array(\n                '0' => array(1, 1),\n                '1' => array(1, 2),\n                '2' => array(1, 3),\n                '3' => array(1, 4),\n                '4' => array(1, 5),\n                '5' => array(1, 0),\n                '6' => array(2, 1),\n                '7' => array(2, 2),\n                '8' => array(2, 3),\n                '9' => array(2, 4),\n                'A' => array(2, 5),\n                'B' => array(2, 0),\n                'C' => array(3, 1),\n                'D' => array(3, 2),\n                'E' => array(3, 3),\n                'F' => array(3, 4),\n                'G' => array(3, 5),\n                'H' => array(3, 0),\n                'I' => array(4, 1),\n                'J' => array(4, 2),\n                'K' => array(4, 3),\n                'L' => array(4, 4),\n                'M' => array(4, 5),\n                'N' => array(4, 0),\n                'O' => array(5, 1),\n                'P' => array(5, 2),\n                'Q' => array(5, 3),\n                'R' => array(5, 4),\n                'S' => array(5, 5),\n                'T' => array(5, 0),\n                'U' => array(0, 1),\n                'V' => array(0, 2),\n                'W' => array(0, 3),\n                'X' => array(0, 4),\n                'Y' => array(0, 5),\n                'Z' => array(0, 0)\n            );\n            $row = 0;\n            $col = 0;\n            for ($i = 0; $i < $len; ++$i) {\n                $row += $checktable[$code{$i}][0];\n                $col += $checktable[$code{$i}][1];\n            }\n            $row %= 6;\n            $col %= 6;\n            $chk = array_keys($checktable, array($row, $col));\n            $code .= $chk[0];\n            ++$len;\n        }\n        $k = 0;\n        if ($notkix) {\n            // start bar\n            $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 2, 'p' => 0);\n            $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0);\n            $bararray['maxw'] += 2;\n        }\n        for ($i = 0; $i < $len; ++$i) {\n            for ($j = 0; $j < 4; ++$j) {\n                switch ($barmode[$code{$i}][$j]) {\n                    case 1: {\n                        $p = 0;\n                        $h = 2;\n                        break;\n                    }\n                    case 2: {\n                        $p = 0;\n                        $h = 3;\n                        break;\n                    }\n                    case 3: {\n                        $p = 1;\n                        $h = 1;\n                        break;\n                    }\n                    case 4: {\n                        $p = 1;\n                        $h = 2;\n                        break;\n                    }\n                }\n                $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p);\n                $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0);\n                $bararray['maxw'] += 2;\n            }\n        }\n        if ($notkix) {\n            // stop bar\n            $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => 3, 'p' => 0);\n            $bararray['maxw'] += 1;\n        }\n\n        return $bararray;\n    }\n\n    /**\n     * CODABAR barcodes.\n     * Older code often used in library systems, sometimes in blood banks\n     *\n     * @param $code (string) code to represent.\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_codabar($code)\n    {\n        $chr = array(\n            '0' => '11111221',\n            '1' => '11112211',\n            '2' => '11121121',\n            '3' => '22111111',\n            '4' => '11211211',\n            '5' => '21111211',\n            '6' => '12111121',\n            '7' => '12112111',\n            '8' => '12211111',\n            '9' => '21121111',\n            '-' => '11122111',\n            '$' => '11221111',\n            ':' => '21112121',\n            '/' => '21211121',\n            '.' => '21212111',\n            '+' => '11222221',\n            'A' => '11221211',\n            'B' => '12121121',\n            'C' => '11121221',\n            'D' => '11122211'\n        );\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n        $k = 0;\n        $w = 0;\n        $seq = '';\n        $code = 'A' . strtoupper($code) . 'A';\n        $len = strlen($code);\n        for ($i = 0; $i < $len; ++$i) {\n            if ( ! isset($chr[$code{$i}])) {\n                throw new InvalidCharacterException('Char ' . $code{$i} . ' is unsupported');\n            }\n            $seq = $chr[$code{$i}];\n            for ($j = 0; $j < 8; ++$j) {\n                if (($j % 2) == 0) {\n                    $t = true; // bar\n                } else {\n                    $t = false; // space\n                }\n                $w = $seq{$j};\n                $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);\n                $bararray['maxw'] += $w;\n                ++$k;\n            }\n        }\n\n        return $bararray;\n    }\n\n    /**\n     * CODE11 barcodes.\n     * Used primarily for labeling telecommunications equipment\n     *\n     * @param $code (string) code to represent.\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_code11($code)\n    {\n        $chr = array(\n            '0' => '111121',\n            '1' => '211121',\n            '2' => '121121',\n            '3' => '221111',\n            '4' => '112121',\n            '5' => '212111',\n            '6' => '122111',\n            '7' => '111221',\n            '8' => '211211',\n            '9' => '211111',\n            '-' => '112111',\n            'S' => '112211'\n        );\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n        $k = 0;\n        $w = 0;\n        $seq = '';\n        $len = strlen($code);\n        // calculate check digit C\n        $p = 1;\n        $check = 0;\n        for ($i = ($len - 1); $i >= 0; --$i) {\n            $digit = $code{$i};\n            if ($digit == '-') {\n                $dval = 10;\n            } else {\n                $dval = intval($digit);\n            }\n            $check += ($dval * $p);\n            ++$p;\n            if ($p > 10) {\n                $p = 1;\n            }\n        }\n        $check %= 11;\n        if ($check == 10) {\n            $check = '-';\n        }\n        $code .= $check;\n        if ($len > 10) {\n            // calculate check digit K\n            $p = 1;\n            $check = 0;\n            for ($i = $len; $i >= 0; --$i) {\n                $digit = $code{$i};\n                if ($digit == '-') {\n                    $dval = 10;\n                } else {\n                    $dval = intval($digit);\n                }\n                $check += ($dval * $p);\n                ++$p;\n                if ($p > 9) {\n                    $p = 1;\n                }\n            }\n            $check %= 11;\n            $code .= $check;\n            ++$len;\n        }\n        $code = 'S' . $code . 'S';\n        $len += 3;\n        for ($i = 0; $i < $len; ++$i) {\n            if ( ! isset($chr[$code{$i}])) {\n                throw new InvalidCharacterException('Char ' . $code{$i} . ' is unsupported');\n            }\n            $seq = $chr[$code{$i}];\n            for ($j = 0; $j < 6; ++$j) {\n                if (($j % 2) == 0) {\n                    $t = true; // bar\n                } else {\n                    $t = false; // space\n                }\n                $w = $seq{$j};\n                $bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);\n                $bararray['maxw'] += $w;\n                ++$k;\n            }\n        }\n\n        return $bararray;\n    }\n\n    /**\n     * Pharmacode\n     * Contains digits (0 to 9)\n     *\n     * @param $code (string) code to represent.\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_pharmacode($code)\n    {\n        $seq = '';\n        $code = intval($code);\n        while ($code > 0) {\n            if (($code % 2) == 0) {\n                $seq .= '11100';\n                $code -= 2;\n            } else {\n                $seq .= '100';\n                $code -= 1;\n            }\n            $code /= 2;\n        }\n        $seq = substr($seq, 0, -2);\n        $seq = strrev($seq);\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());\n\n        return $this->binseq_to_array($seq, $bararray);\n    }\n\n    /**\n     * Pharmacode two-track\n     * Contains digits (0 to 9)\n     *\n     * @param $code (string) code to represent.\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_pharmacode2t($code)\n    {\n        $seq = '';\n        $code = intval($code);\n        do {\n            switch ($code % 3) {\n                case 0: {\n                    $seq .= '3';\n                    $code = ($code - 3) / 3;\n                    break;\n                }\n                case 1: {\n                    $seq .= '1';\n                    $code = ($code - 1) / 3;\n                    break;\n                }\n                case 2: {\n                    $seq .= '2';\n                    $code = ($code - 2) / 3;\n                    break;\n                }\n            }\n        } while ($code != 0);\n        $seq = strrev($seq);\n        $k = 0;\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 2, 'bcode' => array());\n        $len = strlen($seq);\n        for ($i = 0; $i < $len; ++$i) {\n            switch ($seq{$i}) {\n                case '1': {\n                    $p = 1;\n                    $h = 1;\n                    break;\n                }\n                case '2': {\n                    $p = 0;\n                    $h = 1;\n                    break;\n                }\n                case '3': {\n                    $p = 0;\n                    $h = 2;\n                    break;\n                }\n            }\n            $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p);\n            $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0);\n            $bararray['maxw'] += 2;\n        }\n        unset($bararray['bcode'][($k - 1)]);\n        --$bararray['maxw'];\n\n        return $bararray;\n    }\n\n    /**\n     * IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200\n     * (requires PHP bcmath extension)\n     * Intelligent Mail barcode is a 65-bar code for use on mail in the United States.\n     * The fields are described as follows:<ul><li>The Barcode Identifier shall be assigned by USPS to encode the\n     * presort identification that is currently printed in human readable form on the optional endorsement line (OEL)\n     * as well as for future USPS use. This shall be two digits, with the second digit in the range of 0–4. The\n     * allowable encoding ranges shall be 00–04, 10–14, 20–24, 30–34, 40–44, 50–54, 60–64, 70–74, 80–84, and\n     * 90–94.</li><li>The Service Type Identifier shall be assigned by USPS for any combination of services requested\n     * on the mailpiece. The allowable encoding range shall be 000http://it2.php.net/manual/en/function.dechex.php–999.\n     * Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each\n     * service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier\n     * values.</li><li>The Mailer or Customer Identifier shall be assigned by USPS as a unique, 6 or 9 digit number\n     * that identifies a business entity. The allowable encoding range for the 6 digit Mailer ID shall be 000000-\n     * 899999, while the allowable encoding range for the 9 digit Mailer ID shall be 900000000-999999999.</li><li>The\n     * Serial or Sequence Number shall be assigned by the mailer for uniquely identifying and tracking mailpieces. The\n     * allowable encoding range shall be 000000000–999999999 when used with a 6 digit Mailer ID and 000000-999999 when\n     * used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the\n     * mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be\n     * 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999,  000000000–999999999,\n     * and 00000000000–99999999999.</li></ul>\n     *\n     * @param $code (string) code to print, separate the ZIP (routing code) from the rest using a minus char '-'\n     *     (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode)\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_imb($code)\n    {\n        $asc_chr = array(\n            4,\n            0,\n            2,\n            6,\n            3,\n            5,\n            1,\n            9,\n            8,\n            7,\n            1,\n            2,\n            0,\n            6,\n            4,\n            8,\n            2,\n            9,\n            5,\n            3,\n            0,\n            1,\n            3,\n            7,\n            4,\n            6,\n            8,\n            9,\n            2,\n            0,\n            5,\n            1,\n            9,\n            4,\n            3,\n            8,\n            6,\n            7,\n            1,\n            2,\n            4,\n            3,\n            9,\n            5,\n            7,\n            8,\n            3,\n            0,\n            2,\n            1,\n            4,\n            0,\n            9,\n            1,\n            7,\n            0,\n            2,\n            4,\n            6,\n            3,\n            7,\n            1,\n            9,\n            5,\n            8\n        );\n        $dsc_chr = array(\n            7,\n            1,\n            9,\n            5,\n            8,\n            0,\n            2,\n            4,\n            6,\n            3,\n            5,\n            8,\n            9,\n            7,\n            3,\n            0,\n            6,\n            1,\n            7,\n            4,\n            6,\n            8,\n            9,\n            2,\n            5,\n            1,\n            7,\n            5,\n            4,\n            3,\n            8,\n            7,\n            6,\n            0,\n            2,\n            5,\n            4,\n            9,\n            3,\n            0,\n            1,\n            6,\n            8,\n            2,\n            0,\n            4,\n            5,\n            9,\n            6,\n            7,\n            5,\n            2,\n            6,\n            3,\n            8,\n            5,\n            1,\n            9,\n            8,\n            7,\n            4,\n            0,\n            2,\n            6,\n            3\n        );\n        $asc_pos = array(\n            3,\n            0,\n            8,\n            11,\n            1,\n            12,\n            8,\n            11,\n            10,\n            6,\n            4,\n            12,\n            2,\n            7,\n            9,\n            6,\n            7,\n            9,\n            2,\n            8,\n            4,\n            0,\n            12,\n            7,\n            10,\n            9,\n            0,\n            7,\n            10,\n            5,\n            7,\n            9,\n            6,\n            8,\n            2,\n            12,\n            1,\n            4,\n            2,\n            0,\n            1,\n            5,\n            4,\n            6,\n            12,\n            1,\n            0,\n            9,\n            4,\n            7,\n            5,\n            10,\n            2,\n            6,\n            9,\n            11,\n            2,\n            12,\n            6,\n            7,\n            5,\n            11,\n            0,\n            3,\n            2\n        );\n        $dsc_pos = array(\n            2,\n            10,\n            12,\n            5,\n            9,\n            1,\n            5,\n            4,\n            3,\n            9,\n            11,\n            5,\n            10,\n            1,\n            6,\n            3,\n            4,\n            1,\n            10,\n            0,\n            2,\n            11,\n            8,\n            6,\n            1,\n            12,\n            3,\n            8,\n            6,\n            4,\n            4,\n            11,\n            0,\n            6,\n            1,\n            9,\n            11,\n            5,\n            3,\n            7,\n            3,\n            10,\n            7,\n            11,\n            8,\n            2,\n            10,\n            3,\n            5,\n            8,\n            0,\n            3,\n            12,\n            11,\n            8,\n            4,\n            5,\n            1,\n            3,\n            0,\n            7,\n            12,\n            9,\n            8,\n            10\n        );\n        $code_arr = explode('-', $code);\n        $tracking_number = $code_arr[0];\n        if (isset($code_arr[1])) {\n            $routing_code = $code_arr[1];\n        } else {\n            $routing_code = '';\n        }\n        // Conversion of Routing Code\n        switch (strlen($routing_code)) {\n            case 0: {\n                $binary_code = 0;\n                break;\n            }\n            case 5: {\n                $binary_code = bcadd($routing_code, '1');\n                break;\n            }\n            case 9: {\n                $binary_code = bcadd($routing_code, '100001');\n                break;\n            }\n            case 11: {\n                $binary_code = bcadd($routing_code, '1000100001');\n                break;\n            }\n            default: {\n                throw new BarcodeException('Routing code unknown');\n                break;\n            }\n        }\n        $binary_code = bcmul($binary_code, 10);\n        $binary_code = bcadd($binary_code, $tracking_number[0]);\n        $binary_code = bcmul($binary_code, 5);\n        $binary_code = bcadd($binary_code, $tracking_number[1]);\n        $binary_code .= substr($tracking_number, 2, 18);\n        // convert to hexadecimal\n        $binary_code = $this->dec_to_hex($binary_code);\n        // pad to get 13 bytes\n        $binary_code = str_pad($binary_code, 26, '0', STR_PAD_LEFT);\n        // convert string to array of bytes\n        $binary_code_arr = chunk_split($binary_code, 2, \"\\r\");\n        $binary_code_arr = substr($binary_code_arr, 0, -1);\n        $binary_code_arr = explode(\"\\r\", $binary_code_arr);\n        // calculate frame check sequence\n        $fcs = $this->imb_crc11fcs($binary_code_arr);\n        // exclude first 2 bits from first byte\n        $first_byte = sprintf('%2s', dechex((hexdec($binary_code_arr[0]) << 2) >> 2));\n        $binary_code_102bit = $first_byte . substr($binary_code, 2);\n        // convert binary data to codewords\n        $codewords = array();\n        $data = $this->hex_to_dec($binary_code_102bit);\n        $codewords[0] = bcmod($data, 636) * 2;\n        $data = bcdiv($data, 636);\n        for ($i = 1; $i < 9; ++$i) {\n            $codewords[$i] = bcmod($data, 1365);\n            $data = bcdiv($data, 1365);\n        }\n        $codewords[9] = $data;\n        if (($fcs >> 10) == 1) {\n            $codewords[9] += 659;\n        }\n        // generate lookup tables\n        $table2of13 = $this->imb_tables(2, 78);\n        $table5of13 = $this->imb_tables(5, 1287);\n        // convert codewords to characters\n        $characters = array();\n        $bitmask = 512;\n        foreach ($codewords as $k => $val) {\n            if ($val <= 1286) {\n                $chrcode = $table5of13[$val];\n            } else {\n                $chrcode = $table2of13[($val - 1287)];\n            }\n            if (($fcs & $bitmask) > 0) {\n                // bitwise invert\n                $chrcode = ((~$chrcode) & 8191);\n            }\n            $characters[] = $chrcode;\n            $bitmask /= 2;\n        }\n        $characters = array_reverse($characters);\n        // build bars\n        $k = 0;\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 3, 'bcode' => array());\n        for ($i = 0; $i < 65; ++$i) {\n            $asc = (($characters[$asc_chr[$i]] & pow(2, $asc_pos[$i])) > 0);\n            $dsc = (($characters[$dsc_chr[$i]] & pow(2, $dsc_pos[$i])) > 0);\n            if ($asc AND $dsc) {\n                // full bar (F)\n                $p = 0;\n                $h = 3;\n            } elseif ($asc) {\n                // ascender (A)\n                $p = 0;\n                $h = 2;\n            } elseif ($dsc) {\n                // descender (D)\n                $p = 1;\n                $h = 2;\n            } else {\n                // tracker (T)\n                $p = 1;\n                $h = 1;\n            }\n            $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p);\n            $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0);\n            $bararray['maxw'] += 2;\n        }\n        unset($bararray['bcode'][($k - 1)]);\n        --$bararray['maxw'];\n\n        return $bararray;\n    }\n\n    /**\n     * IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200\n     *\n     * @param $code (string) pre-formatted IMB barcode (65 chars \"FADT\")\n     * @return array barcode representation.\n     * @protected\n     */\n    protected function barcode_imb_pre($code)\n    {\n        if ( ! preg_match('/^[fadtFADT]{65}$/', $code) == 1) {\n            throw new InvalidFormatException();\n        }\n        $characters = str_split(strtolower($code), 1);\n        // build bars\n        $k = 0;\n        $bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 3, 'bcode' => array());\n        for ($i = 0; $i < 65; ++$i) {\n            switch ($characters[$i]) {\n                case 'f': {\n                    // full bar\n                    $p = 0;\n                    $h = 3;\n                    break;\n                }\n                case 'a': {\n                    // ascender\n                    $p = 0;\n                    $h = 2;\n                    break;\n                }\n                case 'd': {\n                    // descender\n                    $p = 1;\n                    $h = 2;\n                    break;\n                }\n                case 't': {\n                    // tracker (short)\n                    $p = 1;\n                    $h = 1;\n                    break;\n                }\n            }\n            $bararray['bcode'][$k++] = array('t' => 1, 'w' => 1, 'h' => $h, 'p' => $p);\n            $bararray['bcode'][$k++] = array('t' => 0, 'w' => 1, 'h' => 2, 'p' => 0);\n            $bararray['maxw'] += 2;\n        }\n        unset($bararray['bcode'][($k - 1)]);\n        --$bararray['maxw'];\n\n        return $bararray;\n    }\n\n    /**\n     * Convert large integer number to hexadecimal representation.\n     * (requires PHP bcmath extension)\n     *\n     * @param $number (string) number to convert specified as a string\n     * @return string hexadecimal representation\n     */\n    protected function dec_to_hex($number)\n    {\n        if ($number == 0) {\n            return '00';\n        }\n\n        $hex = [];\n\n        while ($number > 0) {\n            array_push($hex, strtoupper(dechex(bcmod($number, '16'))));\n            $number = bcdiv($number, '16', 0);\n        }\n        $hex = array_reverse($hex);\n\n        return implode($hex);\n    }\n\n    /**\n     * Convert large hexadecimal number to decimal representation (string).\n     * (requires PHP bcmath extension)\n     *\n     * @param $hex (string) hexadecimal number to convert specified as a string\n     * @return string hexadecimal representation\n     */\n    protected function hex_to_dec($hex)\n    {\n        $dec = 0;\n        $bitval = 1;\n        $len = strlen($hex);\n        for ($pos = ($len - 1); $pos >= 0; --$pos) {\n            $dec = bcadd($dec, bcmul(hexdec($hex{$pos}), $bitval));\n            $bitval = bcmul($bitval, 16);\n        }\n\n        return $dec;\n    }\n\n    /**\n     * Intelligent Mail Barcode calculation of Frame Check Sequence\n     *\n     * @param $code_arr (string) array of hexadecimal values (13 bytes holding 102 bits right justified).\n     * @return int 11 bit Frame Check Sequence as integer (decimal base)\n     * @protected\n     */\n    protected function imb_crc11fcs($code_arr)\n    {\n        $genpoly = 0x0F35; // generator polynomial\n        $fcs = 0x07FF; // Frame Check Sequence\n        // do most significant byte skipping the 2 most significant bits\n        $data = hexdec($code_arr[0]) << 5;\n        for ($bit = 2; $bit < 8; ++$bit) {\n            if (($fcs ^ $data) & 0x400) {\n                $fcs = ($fcs << 1) ^ $genpoly;\n            } else {\n                $fcs = ($fcs << 1);\n            }\n            $fcs &= 0x7FF;\n            $data <<= 1;\n        }\n        // do rest of bytes\n        for ($byte = 1; $byte < 13; ++$byte) {\n            $data = hexdec($code_arr[$byte]) << 3;\n            for ($bit = 0; $bit < 8; ++$bit) {\n                if (($fcs ^ $data) & 0x400) {\n                    $fcs = ($fcs << 1) ^ $genpoly;\n                } else {\n                    $fcs = ($fcs << 1);\n                }\n                $fcs &= 0x7FF;\n                $data <<= 1;\n            }\n        }\n\n        return $fcs;\n    }\n\n    /**\n     * Reverse unsigned short value\n     *\n     * @param $num (int) value to reversr\n     * @return int reversed value\n     * @protected\n     */\n    protected function imb_reverse_us($num)\n    {\n        $rev = 0;\n        for ($i = 0; $i < 16; ++$i) {\n            $rev <<= 1;\n            $rev |= ($num & 1);\n            $num >>= 1;\n        }\n\n        return $rev;\n    }\n\n    /**\n     * generate Nof13 tables used for Intelligent Mail Barcode\n     *\n     * @param $n (int) is the type of table: 2 for 2of13 table, 5 for 5of13table\n     * @param $size (int) size of table (78 for n=2 and 1287 for n=5)\n     * @return array requested table\n     * @protected\n     */\n    protected function imb_tables($n, $size)\n    {\n        $table = array();\n        $lli = 0; // LUT lower index\n        $lui = $size - 1; // LUT upper index\n        for ($count = 0; $count < 8192; ++$count) {\n            $bit_count = 0;\n            for ($bit_index = 0; $bit_index < 13; ++$bit_index) {\n                $bit_count += intval(($count & (1 << $bit_index)) != 0);\n            }\n            // if we don't have the right number of bits on, go on to the next value\n            if ($bit_count == $n) {\n                $reverse = ($this->imb_reverse_us($count) >> 3);\n                // if the reverse is less than count, we have already visited this pair before\n                if ($reverse >= $count) {\n                    // If count is symmetric, place it at the first free slot from the end of the list.\n                    // Otherwise, place it at the first free slot from the beginning of the list AND place $reverse ath the next free slot from the beginning of the list\n                    if ($reverse == $count) {\n                        $table[$lui] = $count;\n                        --$lui;\n                    } else {\n                        $table[$lli] = $count;\n                        ++$lli;\n                        $table[$lli] = $reverse;\n                        ++$lli;\n                    }\n                }\n            }\n        }\n\n        return $table;\n    }\n\n    protected function convertBarcodeArrayToNewStyle($oldBarcodeArray)\n    {\n        $newBarcodeArray = [];\n        $newBarcodeArray['code'] = $oldBarcodeArray['code'];\n        $newBarcodeArray['maxWidth'] = $oldBarcodeArray['maxw'];\n        $newBarcodeArray['maxHeight'] = $oldBarcodeArray['maxh'];\n        $newBarcodeArray['bars'] = [];\n        foreach ($oldBarcodeArray['bcode'] as $oldbar) {\n            $newBar = [];\n            $newBar['width'] = $oldbar['w'];\n            $newBar['height'] = $oldbar['h'];\n            $newBar['positionVertical'] = $oldbar['p'];\n            $newBar['drawBar'] = $oldbar['t'];\n            $newBar['drawSpacing'] = ! $oldbar['t'];\n\n            $newBarcodeArray['bars'][] = $newBar;\n        }\n\n        return $newBarcodeArray;\n    }\n}\n"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorHTML.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode;\n\nclass BarcodeGeneratorHTML extends BarcodeGenerator\n{\n\n    /**\n     * Return an HTML representation of barcode.\n     *\n     * @param string $code code to print\n     * @param string $type type of barcode\n     * @param int $widthFactor Width of a single bar element in pixels.\n     * @param int $totalHeight Height of a single bar element in pixels.\n     * @param int|string $color Foreground color for bar elements (background is transparent).\n     * @return string HTML code.\n     * @public\n     */\n    public function getBarcode($code, $type, $widthFactor = 2, $totalHeight = 30, $color = 'black')\n    {\n        $barcodeData = $this->getBarcodeData($code, $type);\n\n        $html = '<div style=\"font-size:0;position:relative;width:' . ($barcodeData['maxWidth'] * $widthFactor) . 'px;height:' . ($totalHeight) . 'px;\">' . \"\\n\";\n\n        $positionHorizontal = 0;\n        foreach ($barcodeData['bars'] as $bar) {\n            $barWidth = round(($bar['width'] * $widthFactor), 3);\n            $barHeight = round(($bar['height'] * $totalHeight / $barcodeData['maxHeight']), 3);\n\n            if ($bar['drawBar']) {\n                $positionVertical = round(($bar['positionVertical'] * $totalHeight / $barcodeData['maxHeight']), 3);\n                // draw a vertical bar\n                $html .= '<div style=\"background-color:' . $color . ';width:' . $barWidth . 'px;height:' . $barHeight . 'px;position:absolute;left:' . $positionHorizontal . 'px;top:' . $positionVertical . 'px;\">&nbsp;</div>' . \"\\n\";\n            }\n\n            $positionHorizontal += $barWidth;\n        }\n\n        $html .= '</div>' . \"\\n\";\n\n        return $html;\n    }\n}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorJPG.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode;\n\nclass BarcodeGeneratorJPG extends BarcodeGenerator\n{\n\n    /**\n     * Return a JPG image representation of barcode (requires GD or Imagick library).\n     *\n     * @param string $code code to print\n     * @param string $type type of barcode:\n     * @param int $widthFactor Width of a single bar element in pixels.\n     * @param int $totalHeight Height of a single bar element in pixels.\n     * @param array $color RGB (0-255) foreground color for bar elements (background is transparent).\n     * @return string image data or false in case of error.\n     * @public\n     */\n    public function getBarcode($code, $type, $widthFactor = 2, $totalHeight = 30, $color = array(0, 0, 0))\n    {\n        $barcodeData = $this->getBarcodeData($code, $type);\n\n        // calculate image size\n        $width = ($barcodeData['maxWidth'] * $widthFactor);\n        $height = $totalHeight;\n\n        if (function_exists('imagecreate')) {\n            // GD library\n            $imagick = false;\n            $jpg = imagecreate($width, $height);\n            $colorBackground = imagecolorallocate($jpg, 255, 255, 255);\n            imagecolortransparent($jpg, $colorBackground);\n            $colorForeground = imagecolorallocate($jpg, $color[0], $color[1], $color[2]);\n        } elseif (extension_loaded('imagick')) {\n            $imagick = true;\n            $colorForeground = new \\imagickpixel('rgb(' . $color[0] . ',' . $color[1] . ',' . $color[2] . ')');\n            $jpg = new \\Imagick();\n            $jpg->newImage($width, $height, 'none', 'jpg');\n            $imageMagickObject = new \\imagickdraw();\n            $imageMagickObject->setFillColor($colorForeground);\n        } else {\n            return false;\n        }\n\n        // print bars\n        $positionHorizontal = 0;\n        foreach ($barcodeData['bars'] as $bar) {\n            $bw = round(($bar['width'] * $widthFactor), 3);\n            $bh = round(($bar['height'] * $totalHeight / $barcodeData['maxHeight']), 3);\n            if ($bar['drawBar']) {\n                $y = round(($bar['positionVertical'] * $totalHeight / $barcodeData['maxHeight']), 3);\n                // draw a vertical bar\n                if ($imagick && isset($imageMagickObject)) {\n                    $imageMagickObject->rectangle($positionHorizontal, $y, ($positionHorizontal + $bw), ($y + $bh));\n                } else {\n                    imagefilledrectangle($jpg, $positionHorizontal, $y, ($positionHorizontal + $bw) - 1, ($y + $bh),\n                        $colorForeground);\n                }\n            }\n            $positionHorizontal += $bw;\n        }\n        ob_start();\n        if ($imagick && isset($imageMagickObject)) {\n            $jpg->drawImage($imageMagickObject);\n            echo $jpg;\n        } else {\n            imagejpeg($jpg);\n            imagedestroy($jpg);\n        }\n        $image = ob_get_clean();\n\n        return $image;\n    }\n}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorPNG.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode;\n\nclass BarcodeGeneratorPNG extends BarcodeGenerator\n{\n\n    /**\n     * Return a PNG image representation of barcode (requires GD or Imagick library).\n     *\n     * @param string $code code to print\n     * @param string $type type of barcode:\n     * @param int $widthFactor Width of a single bar element in pixels.\n     * @param int $totalHeight Height of a single bar element in pixels.\n     * @param array $color RGB (0-255) foreground color for bar elements (background is transparent).\n     * @return string image data or false in case of error.\n     * @public\n     */\n    public function getBarcode($code, $type, $widthFactor = 2, $totalHeight = 30, $color = array(0, 0, 0))\n    {\n        $barcodeData = $this->getBarcodeData($code, $type);\n\n        // calculate image size\n        $width = ($barcodeData['maxWidth'] * $widthFactor);\n        $height = $totalHeight;\n\n        if (function_exists('imagecreate')) {\n            // GD library\n            $imagick = false;\n            $png = imagecreate($width, $height);\n            $colorBackground = imagecolorallocate($png, 255, 255, 255);\n            imagecolortransparent($png, $colorBackground);\n            $colorForeground = imagecolorallocate($png, $color[0], $color[1], $color[2]);\n        } elseif (extension_loaded('imagick')) {\n            $imagick = true;\n            $colorForeground = new \\imagickpixel('rgb(' . $color[0] . ',' . $color[1] . ',' . $color[2] . ')');\n            $png = new \\Imagick();\n            $png->newImage($width, $height, 'none', 'png');\n            $imageMagickObject = new \\imagickdraw();\n            $imageMagickObject->setFillColor($colorForeground);\n        } else {\n            return false;\n        }\n\n        // print bars\n        $positionHorizontal = 0;\n        foreach ($barcodeData['bars'] as $bar) {\n            $bw = round(($bar['width'] * $widthFactor), 3);\n            $bh = round(($bar['height'] * $totalHeight / $barcodeData['maxHeight']), 3);\n            if ($bar['drawBar']) {\n                $y = round(($bar['positionVertical'] * $totalHeight / $barcodeData['maxHeight']), 3);\n                // draw a vertical bar\n                if ($imagick && isset($imageMagickObject)) {\n                    $imageMagickObject->rectangle($positionHorizontal, $y, ($positionHorizontal + $bw), ($y + $bh));\n                } else {\n                    imagefilledrectangle($png, $positionHorizontal, $y, ($positionHorizontal + $bw) - 1, ($y + $bh),\n                        $colorForeground);\n                }\n            }\n            $positionHorizontal += $bw;\n        }\n        ob_start();\n        if ($imagick && isset($imageMagickObject)) {\n            $png->drawImage($imageMagickObject);\n            echo $png;\n        } else {\n            imagepng($png);\n            imagedestroy($png);\n        }\n        $image = ob_get_clean();\n\n        return $image;\n    }\n}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorSVG.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode;\n\nclass BarcodeGeneratorSVG extends BarcodeGenerator\n{\n\n    /**\n     * Return a SVG string representation of barcode.\n     *\n     * @param $code (string) code to print\n     * @param $type (const) type of barcode\n     * @param $widthFactor (int) Minimum width of a single bar in user units.\n     * @param $totalHeight (int) Height of barcode in user units.\n     * @param $color (string) Foreground color (in SVG format) for bar elements (background is transparent).\n     * @return string SVG code.\n     * @public\n     */\n    public function getBarcode($code, $type, $widthFactor = 2, $totalHeight = 30, $color = 'black')\n    {\n        $barcodeData = $this->getBarcodeData($code, $type);\n\n        // replace table for special characters\n        $repstr = array(\"\\0\" => '', '&' => '&amp;', '<' => '&lt;', '>' => '&gt;');\n\n        $svg = '<?xml version=\"1.0\" standalone=\"no\" ?>' . \"\\n\";\n        $svg .= '<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">' . \"\\n\";\n        $svg .= '<svg width=\"' . round(($barcodeData['maxWidth'] * $widthFactor),\n                3) . '\" height=\"' . $totalHeight . '\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">' . \"\\n\";\n        $svg .= \"\\t\" . '<desc>' . strtr($barcodeData['code'], $repstr) . '</desc>' . \"\\n\";\n        $svg .= \"\\t\" . '<g id=\"bars\" fill=\"' . $color . '\" stroke=\"none\">' . \"\\n\";\n        // print bars\n        $positionHorizontal = 0;\n        foreach ($barcodeData['bars'] as $bar) {\n            $barWidth = round(($bar['width'] * $widthFactor), 3);\n            $barHeight = round(($bar['height'] * $totalHeight / $barcodeData['maxHeight']), 3);\n            if ($bar['drawBar']) {\n                $positionVertical = round(($bar['positionVertical'] * $totalHeight / $barcodeData['maxHeight']), 3);\n                // draw a vertical bar\n                $svg .= \"\\t\\t\" . '<rect x=\"' . $positionHorizontal . '\" y=\"' . $positionVertical . '\" width=\"' . $barWidth . '\" height=\"' . $barHeight . '\" />' . \"\\n\";\n            }\n            $positionHorizontal += $barWidth;\n        }\n        $svg .= \"\\t\" . '</g>' . \"\\n\";\n        $svg .= '</svg>' . \"\\n\";\n\n        return $svg;\n    }\n}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/Exceptions/BarcodeException.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode\\Exceptions;\n\nclass BarcodeException extends \\Exception {}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/Exceptions/InvalidCharacterException.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode\\Exceptions;\n\nclass InvalidCharacterException extends BarcodeException {}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/Exceptions/InvalidCheckDigitException.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode\\Exceptions;\n\nclass InvalidCheckDigitException extends BarcodeException {}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/Exceptions/InvalidFormatException.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode\\Exceptions;\n\nclass InvalidFormatException extends BarcodeException {}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/Exceptions/InvalidLengthException.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode\\Exceptions;\n\nclass InvalidLengthException extends BarcodeException {}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/src/Exceptions/UnknownTypeException.php",
    "content": "<?php\n\nnamespace Picqer\\Barcode\\Exceptions;\n\nclass UnknownTypeException extends BarcodeException {}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/tests/BarcodeTest.php",
    "content": "<?php\n\nclass BarcodeTest extends PHPUnit_Framework_TestCase\n{\n    /**\n     * @test\n     */\n    public function png_barcode_generator_can_generate_code_128_barcode()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorPNG();\n        $generated = $generator->getBarcode('081231723897', $generator::TYPE_CODE_128);\n\n        $this->assertEquals('PNG', substr($generated, 1, 3));\n    }\n\n    /**\n     * @test\n     */\n    public function svg_barcode_generator_can_generate_ean_13_barcode()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorSVG();\n        $generated = $generator->getBarcode('081231723897', $generator::TYPE_EAN_13);\n\n        $this->assertStringEqualsFile('tests/verified-files/081231723897-ean13.svg', $generated);\n    }\n\n    /**\n     * @test\n     */\n    public function html_barcode_generator_can_generate_code_128_barcode()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorHTML();\n        $generated = $generator->getBarcode('081231723897', $generator::TYPE_CODE_128);\n\n        $this->assertStringEqualsFile('tests/verified-files/081231723897-code128.html', $generated);\n    }\n\n    /**\n     * @test\n     */\n    public function jpg_barcode_generator_can_generate_code_128_barcode()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorJPG();\n        $generator->getBarcode('081231723897', $generator::TYPE_CODE_128);\n    }\n\n    /**\n     * @test\n     * @expectedException \\Picqer\\Barcode\\Exceptions\\InvalidCharacterException\n     */\n    public function ean13_generator_throws_exception_if_invalid_chars_are_used()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorSVG();\n        $generator->getBarcode('A123', $generator::TYPE_EAN_13);\n    }\n\n    /**\n     * @test\n     */\n    public function ean13_generator_accepting_13_chars()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorSVG();\n        $generated = $generator->getBarcode('0049000004632', $generator::TYPE_EAN_13);\n\n        $this->assertStringEqualsFile('tests/verified-files/0049000004632-ean13.svg', $generated);\n    }\n\n    /**\n     * @test\n     */\n    public function ean13_generator_accepting_12_chars_and_generates_13th_check_digit()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorSVG();\n        $generated = $generator->getBarcode('004900000463', $generator::TYPE_EAN_13);\n\n        $this->assertStringEqualsFile('tests/verified-files/0049000004632-ean13.svg', $generated);\n    }\n\n    /**\n     * @test\n     */\n    public function ean13_generator_accepting_11_chars_and_generates_13th_check_digit_and_adds_leading_zero()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorSVG();\n        $generated = $generator->getBarcode('04900000463', $generator::TYPE_EAN_13);\n\n        $this->assertStringEqualsFile('tests/verified-files/0049000004632-ean13.svg', $generated);\n    }\n\n    /**\n     * @test\n     * @expectedException \\Picqer\\Barcode\\Exceptions\\InvalidCheckDigitException\n     */\n    public function ean13_generator_throws_exception_when_wrong_check_digit_is_given()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorSVG();\n        $generator->getBarcode('0049000004633', $generator::TYPE_EAN_13);\n    }\n\n    /**\n     * @test\n     * @expectedException \\Picqer\\Barcode\\Exceptions\\UnknownTypeException\n     */\n    public function generator_throws_unknown_type_exceptions()\n    {\n        $generator = new Picqer\\Barcode\\BarcodeGeneratorSVG();\n        $generator->getBarcode('0049000004633', 'vladimir');\n    }\n}"
  },
  {
    "path": "tool/vendor/vendor/picqer/php-barcode-generator/tests/verified-files/081231723897-code128.html",
    "content": "<div style=\"font-size:0;position:relative;width:202px;height:30px;\">\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:0px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:6px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:6px;height:30px;position:absolute;left:12px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:22px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:30px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:38px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:44px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:48px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:6px;height:30px;position:absolute;left:56px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:66px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:72px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:82px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:88px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:94px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:106px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:110px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:118px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:128px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:8px;height:30px;position:absolute;left:132px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:142px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:146px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:6px;height:30px;position:absolute;left:154px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:162px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:166px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:176px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:6px;height:30px;position:absolute;left:186px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:2px;height:30px;position:absolute;left:194px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:4px;height:30px;position:absolute;left:198px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:0px;height:30px;position:absolute;left:202px;top:0px;\">&nbsp;</div>\n<div style=\"background-color:black;width:0px;height:30px;position:absolute;left:202px;top:0px;\">&nbsp;</div>\n</div>\n"
  },
  {
    "path": "upload/index.php",
    "content": "<?php include \"../404.php\"; ?>"
  },
  {
    "path": "user_action.php",
    "content": "<?php\n\ninclude 'layout/header_script.php';\ninclude \"page_action/user/user.php\";\n\n ?>\n\n"
  },
  {
    "path": "user_info.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/user/user_profile.php\";\ninclude \"layout/footer.php\";\n\n?>"
  },
  {
    "path": "user_list.php",
    "content": "<?php\n\ninclude \"layout/header.php\";\ninclude \"page/user/user_list.php\";\ninclude \"layout/footer.php\";\n\n?>"
  },
  {
    "path": "watermark.php",
    "content": "<button onclick=\"test_pos()\">Test</button>\n<div id=\"exam_panel_body\"></div>\n<script src=\"style/lib/jquery-1.11.1.min.js\" type=\"text/javascript\"></script>\n\n<script type=\"text/javascript\" src=\"\"></script>\n<script type=\"text/javascript\">\nfunction test_pos(){\n\n    var data={\n        \"get_student_info\": 10001\n    }\n    url=\"http://localhost/project/youth/student_profile_action.php\";\n\n    $.ajax({\n        type: \"POST\",\n        url: url,\n        data: data,\n        success:function(responce){\n            document.getElementById('exam_panel_body').innerHTML=responce;\n        }\n    })\n}\n</script>"
  }
]